From 55af32b6d32e75b14f7e0df01b457b8a3a74fc28 Mon Sep 17 00:00:00 2001 From: Wim Selles Date: Mon, 17 Sep 2018 08:02:49 +0200 Subject: [PATCH] chore: prepare release --- .../app/src/main/assets/index.android.bundle | 119121 +-------------- docs/CONTRIBUTING.md | 11 +- js/components/FormComponents.js | 11 - package.json | 4 +- 4 files changed, 707 insertions(+), 118440 deletions(-) diff --git a/android/app/src/main/assets/index.android.bundle b/android/app/src/main/assets/index.android.bundle index 0099cc3..bf40899 100644 --- a/android/app/src/main/assets/index.android.bundle +++ b/android/app/src/main/assets/index.android.bundle @@ -1,118423 +1,698 @@ -var __DEV__=true,__BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),process=this.process||{};process.env=process.env||{};process.env.NODE_ENV="development"; -(function (global) { - 'use strict'; - - var PRINT_REQUIRE_PATHS = false; - global.require = metroRequire; - global.__d = define; - var modules = typeof __NUM_MODULES__ === 'number' ? Array(__NUM_MODULES__ | 0) : Object.create(null); - - if (__DEV__) { - var verboseNamesToModuleIds = Object.create(null); - } - - function define(factory, moduleId, dependencyMap) { - if (modules[moduleId] != null) { - if (__DEV__) { - var inverseDependencies = arguments[4]; - - if (inverseDependencies) { - global.__accept(moduleId, factory, dependencyMap, inverseDependencies); - } else { - console.warn("Trying to define twice module ID " + moduleId + " in the same bundle"); - } - } - - return; - } - - modules[moduleId] = { - dependencyMap: dependencyMap, - exports: undefined, - factory: factory, - hasError: false, - isInitialized: false - }; - - if (PRINT_REQUIRE_PATHS) { - var path = arguments[4]; - - if (path) { - modules[moduleId].path = path; - } else { - throw new Error('path not set on module with PRINT_REQUIRE_PATHS true. Make sure ' + 'PASS_MODULE_PATHS_TO_DEFINE is true and restart Metro or rebuild bundle'); - } - } - - if (__DEV__) { - modules[moduleId].hot = createHotReloadingObject(); - var verboseName = arguments[3]; - - if (verboseName) { - modules[moduleId].verboseName = verboseName; - verboseNamesToModuleIds[verboseName] = moduleId; - } - } - } - - function metroRequire(moduleId) { - if (__DEV__ && typeof moduleId === 'string') { - var verboseName = moduleId; - moduleId = verboseNamesToModuleIds[verboseName]; - - if (moduleId == null) { - throw new Error("Unknown named module: '" + verboseName + "'"); - } else { - console.warn("Requiring module '" + verboseName + "' by name is only supported for " + 'debugging purposes and will BREAK IN PRODUCTION!'); - } - } - - var moduleIdReallyIsNumber = moduleId; - var module = modules[moduleIdReallyIsNumber]; - return module && module.isInitialized ? module.exports : guardedLoadModule(moduleIdReallyIsNumber, module); - } - - var inGuard = false; - - function guardedLoadModule(moduleId, module) { - if (!inGuard && global.ErrorUtils) { - inGuard = true; - var returnValue; - - try { - returnValue = loadModuleImplementation(moduleId, module); - } catch (e) { - global.ErrorUtils.reportFatalError(e); - } - - inGuard = false; - return returnValue; - } else { - return loadModuleImplementation(moduleId, module); - } - } - - var ID_MASK_SHIFT = 16; - var LOCAL_ID_MASK = ~0 >>> ID_MASK_SHIFT; - - function unpackModuleId(moduleId) { - var segmentId = moduleId >>> ID_MASK_SHIFT; - var localId = moduleId & LOCAL_ID_MASK; - return { - segmentId: segmentId, - localId: localId - }; - } - - metroRequire.unpackModuleId = unpackModuleId; - - function packModuleId(value) { - return value.segmentId << ID_MASK_SHIFT + value.localId; - } - - metroRequire.packModuleId = packModuleId; - - function loadModuleImplementation(moduleId, module) { - var nativeRequire = global.nativeRequire; - - if (!module && nativeRequire) { - var _unpackModuleId = unpackModuleId(moduleId); - - var segmentId = _unpackModuleId.segmentId, - localId = _unpackModuleId.localId; - nativeRequire(localId, segmentId); - module = modules[moduleId]; - } - - if (!module) { - throw unknownModuleError(moduleId); - } - - if (module.hasError) { - throw moduleThrewError(moduleId, module.error); - } - - if (__DEV__) { - var Systrace = metroRequire.Systrace; - } - - module.isInitialized = true; - var exports = module.exports = {}; - var _module = module; - var factory = _module.factory, - dependencyMap = _module.dependencyMap; - - try { - if (PRINT_REQUIRE_PATHS) { - console.log("require file path " + (module.path || 'unknown')); - } - - if (__DEV__) { - Systrace.beginEvent('JS_require_' + (module.verboseName || moduleId)); - } - - var moduleObject = { - exports: exports - }; - - if (__DEV__ && module.hot) { - moduleObject.hot = module.hot; - } - - factory(global, metroRequire, moduleObject, exports, dependencyMap); - - if (!__DEV__) { - module.factory = undefined; - module.dependencyMap = undefined; - } - - if (__DEV__) { - Systrace.endEvent(); - } - - return module.exports = moduleObject.exports; - } catch (e) { - module.hasError = true; - module.error = e; - module.isInitialized = false; - module.exports = undefined; - throw e; - } - } - - function unknownModuleError(id) { - var message = 'Requiring unknown module "' + id + '".'; - - if (__DEV__) { - message += 'If you are sure the module is there, try restarting Metro Bundler. ' + 'You may also want to run `yarn`, or `npm install` (depending on your environment).'; - } - - return Error(message); - } - - function moduleThrewError(id, error) { - var displayName = __DEV__ && modules[id] && modules[id].verboseName || id; - return Error('Requiring module "' + displayName + '", which threw an exception: ' + error); - } - - if (__DEV__) { - metroRequire.Systrace = { - beginEvent: function beginEvent() {}, - endEvent: function endEvent() {} - }; - - metroRequire.getModules = function () { - return modules; - }; - - var createHotReloadingObject = function createHotReloadingObject() { - var hot = { - acceptCallback: null, - accept: function accept(callback) { - hot.acceptCallback = callback; - }, - disposeCallback: null, - dispose: function dispose(callback) { - hot.disposeCallback = callback; - } - }; - return hot; - }; - - var metroAcceptAll = function metroAcceptAll(dependentModules, inverseDependencies, patchedModules) { - if (!dependentModules || dependentModules.length === 0) { - return true; - } - - var notAccepted = dependentModules.filter(function (module) { - return !metroAccept(module, undefined, undefined, inverseDependencies, patchedModules); - }); - var parents = []; - - for (var i = 0; i < notAccepted.length; i++) { - if (inverseDependencies[notAccepted[i]].length === 0) { - return false; - } - - parents.push.apply(parents, inverseDependencies[notAccepted[i]]); - } - - return parents.length == 0; - }; - - var metroAccept = function metroAccept(id, factory, dependencyMap, inverseDependencies) { - var patchedModules = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {}; - - if (id in patchedModules) { - return true; - } - - patchedModules[id] = true; - var mod = modules[id]; - - if (!mod && factory) { - return true; - } - - var hot = mod.hot; - - if (!hot) { - console.warn('Cannot accept module because Hot Module Replacement ' + 'API was not installed.'); - return false; - } - - if (hot.disposeCallback) { - try { - hot.disposeCallback(); - } catch (error) { - console.error("Error while calling dispose handler for module " + id + ": ", error); - } - } - - if (factory) { - mod.factory = factory; - } - - if (dependencyMap) { - mod.dependencyMap = dependencyMap; - } - - mod.hasError = false; - mod.isInitialized = false; - metroRequire(id); - - if (hot.acceptCallback) { - try { - hot.acceptCallback(); - return true; - } catch (error) { - console.error("Error while calling accept handler for module " + id + ": ", error); - } - } - - if (!inverseDependencies) { - throw new Error('Undefined `inverseDependencies`'); - } - - return metroAcceptAll(inverseDependencies[id], inverseDependencies, patchedModules); - }; - - global.__accept = metroAccept; - } -})(this); -(function (global) { - Object.assign = function (target, sources) { - if (__DEV__) { - if (target == null) { - throw new TypeError('Object.assign target cannot be null or undefined'); - } - - if (typeof target !== 'object' && typeof target !== 'function') { - throw new TypeError('In this environment the target of assign MUST be an object. ' + 'This error is a performance optimization and not spec compliant.'); - } - } - - for (var nextIndex = 1; nextIndex < arguments.length; nextIndex++) { - var nextSource = arguments[nextIndex]; - - if (nextSource == null) { - continue; - } - - if (__DEV__) { - if (typeof nextSource !== 'object' && typeof nextSource !== 'function') { - throw new TypeError('In this environment the sources for assign MUST be an object. ' + 'This error is a performance optimization and not spec compliant.'); - } - } - - for (var key in nextSource) { - if (__DEV__) { - var hasOwnProperty = Object.prototype.hasOwnProperty; - - if (!hasOwnProperty.call(nextSource, key)) { - throw new TypeError('One of the sources for assign has an enumerable key on the ' + 'prototype chain. Are you trying to assign a prototype property? ' + "We don't allow it, as this is an edge case that we do not support. " + 'This error is a performance optimization and not spec compliant.'); - } - } - - target[key] = nextSource[key]; - } - } - - return target; - }; -})(this); -(function (global) { - var inspect = function () { - function inspect(obj, opts) { - var ctx = { - seen: [], - stylize: stylizeNoColor - }; - return formatValue(ctx, obj, opts.depth); - } - - function stylizeNoColor(str, styleType) { - return str; - } - - function arrayToHash(array) { - var hash = {}; - array.forEach(function (val, idx) { - hash[val] = true; - }); - return hash; - } - - function formatValue(ctx, value, recurseTimes) { - var primitive = formatPrimitive(ctx, value); - - if (primitive) { - return primitive; - } - - var keys = Object.keys(value); - var visibleKeys = arrayToHash(keys); - - if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) { - return formatError(value); - } - - if (keys.length === 0) { - if (isFunction(value)) { - var name = value.name ? ': ' + value.name : ''; - return ctx.stylize('[Function' + name + ']', 'special'); - } - - if (isRegExp(value)) { - return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); - } - - if (isDate(value)) { - return ctx.stylize(Date.prototype.toString.call(value), 'date'); - } - - if (isError(value)) { - return formatError(value); - } - } - - var base = '', - array = false, - braces = ['{', '}']; - - if (isArray(value)) { - array = true; - braces = ['[', ']']; - } - - if (isFunction(value)) { - var n = value.name ? ': ' + value.name : ''; - base = ' [Function' + n + ']'; - } - - if (isRegExp(value)) { - base = ' ' + RegExp.prototype.toString.call(value); - } - - if (isDate(value)) { - base = ' ' + Date.prototype.toUTCString.call(value); - } - - if (isError(value)) { - base = ' ' + formatError(value); - } - - if (keys.length === 0 && (!array || value.length == 0)) { - return braces[0] + base + braces[1]; - } - - if (recurseTimes < 0) { - if (isRegExp(value)) { - return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); - } else { - return ctx.stylize('[Object]', 'special'); - } - } - - ctx.seen.push(value); - var output; - - if (array) { - output = formatArray(ctx, value, recurseTimes, visibleKeys, keys); - } else { - output = keys.map(function (key) { - return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array); - }); - } - - ctx.seen.pop(); - return reduceToSingleString(output, base, braces); - } - - function formatPrimitive(ctx, value) { - if (isUndefined(value)) return ctx.stylize('undefined', 'undefined'); - - if (isString(value)) { - var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, '').replace(/'/g, "\\'").replace(/\\"/g, '"') + "'"; - return ctx.stylize(simple, 'string'); - } - - if (isNumber(value)) return ctx.stylize('' + value, 'number'); - if (isBoolean(value)) return ctx.stylize('' + value, 'boolean'); - if (isNull(value)) return ctx.stylize('null', 'null'); - } - - function formatError(value) { - return '[' + Error.prototype.toString.call(value) + ']'; - } - - function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { - var output = []; - - for (var i = 0, l = value.length; i < l; ++i) { - if (hasOwnProperty(value, String(i))) { - output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true)); - } else { - output.push(''); - } - } - - keys.forEach(function (key) { - if (!key.match(/^\d+$/)) { - output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true)); - } - }); - return output; - } - - function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { - var name, str, desc; - desc = Object.getOwnPropertyDescriptor(value, key) || { - value: value[key] - }; - - if (desc.get) { - if (desc.set) { - str = ctx.stylize('[Getter/Setter]', 'special'); - } else { - str = ctx.stylize('[Getter]', 'special'); - } - } else { - if (desc.set) { - str = ctx.stylize('[Setter]', 'special'); - } - } - - if (!hasOwnProperty(visibleKeys, key)) { - name = '[' + key + ']'; - } - - if (!str) { - if (ctx.seen.indexOf(desc.value) < 0) { - if (isNull(recurseTimes)) { - str = formatValue(ctx, desc.value, null); - } else { - str = formatValue(ctx, desc.value, recurseTimes - 1); - } - - if (str.indexOf('\n') > -1) { - if (array) { - str = str.split('\n').map(function (line) { - return ' ' + line; - }).join('\n').substr(2); - } else { - str = '\n' + str.split('\n').map(function (line) { - return ' ' + line; - }).join('\n'); - } - } - } else { - str = ctx.stylize('[Circular]', 'special'); - } - } - - if (isUndefined(name)) { - if (array && key.match(/^\d+$/)) { - return str; - } - - name = JSON.stringify('' + key); - - if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) { - name = name.substr(1, name.length - 2); - name = ctx.stylize(name, 'name'); - } else { - name = name.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"); - name = ctx.stylize(name, 'string'); - } - } - - return name + ': ' + str; - } - - function reduceToSingleString(output, base, braces) { - var numLinesEst = 0; - var length = output.reduce(function (prev, cur) { - numLinesEst++; - if (cur.indexOf('\n') >= 0) numLinesEst++; - return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1; - }, 0); - - if (length > 60) { - return braces[0] + (base === '' ? '' : base + '\n ') + ' ' + output.join(',\n ') + ' ' + braces[1]; - } - - return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; - } - - function isArray(ar) { - return Array.isArray(ar); - } - - function isBoolean(arg) { - return typeof arg === 'boolean'; - } - - function isNull(arg) { - return arg === null; - } - - function isNullOrUndefined(arg) { - return arg == null; - } - - function isNumber(arg) { - return typeof arg === 'number'; - } - - function isString(arg) { - return typeof arg === 'string'; - } - - function isSymbol(arg) { - return typeof arg === 'symbol'; - } - - function isUndefined(arg) { - return arg === void 0; - } - - function isRegExp(re) { - return isObject(re) && objectToString(re) === '[object RegExp]'; - } - - function isObject(arg) { - return typeof arg === 'object' && arg !== null; - } - - function isDate(d) { - return isObject(d) && objectToString(d) === '[object Date]'; - } - - function isError(e) { - return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error); - } - - function isFunction(arg) { - return typeof arg === 'function'; - } - - function isPrimitive(arg) { - return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'symbol' || typeof arg === 'undefined'; - } - - function objectToString(o) { - return Object.prototype.toString.call(o); - } - - function hasOwnProperty(obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); - } - - return inspect; - }(); - - var OBJECT_COLUMN_NAME = '(index)'; - var LOG_LEVELS = { - trace: 0, - info: 1, - warn: 2, - error: 3 - }; - var INSPECTOR_LEVELS = []; - INSPECTOR_LEVELS[LOG_LEVELS.trace] = 'debug'; - INSPECTOR_LEVELS[LOG_LEVELS.info] = 'log'; - INSPECTOR_LEVELS[LOG_LEVELS.warn] = 'warning'; - INSPECTOR_LEVELS[LOG_LEVELS.error] = 'error'; - var INSPECTOR_FRAMES_TO_SKIP = __DEV__ ? 2 : 1; - - function getNativeLogFunction(level) { - return function () { - var str; - - if (arguments.length === 1 && typeof arguments[0] === 'string') { - str = arguments[0]; - } else { - str = Array.prototype.map.call(arguments, function (arg) { - return inspect(arg, { - depth: 10 - }); - }).join(', '); - } - - var logLevel = level; - - if (str.slice(0, 9) === 'Warning: ' && logLevel >= LOG_LEVELS.error) { - logLevel = LOG_LEVELS.warn; - } - - if (global.__inspectorLog) { - global.__inspectorLog(INSPECTOR_LEVELS[logLevel], str, [].slice.call(arguments), INSPECTOR_FRAMES_TO_SKIP); - } - - global.nativeLoggingHook(str, logLevel); - }; - } - - function repeat(element, n) { - return Array.apply(null, Array(n)).map(function () { - return element; - }); - } - - function consoleTablePolyfill(rows) { - if (!Array.isArray(rows)) { - var data = rows; - rows = []; - - for (var key in data) { - if (data.hasOwnProperty(key)) { - var row = data[key]; - row[OBJECT_COLUMN_NAME] = key; - rows.push(row); - } - } - } - - if (rows.length === 0) { - global.nativeLoggingHook('', LOG_LEVELS.info); - return; - } - - var columns = Object.keys(rows[0]).sort(); - var stringRows = []; - var columnWidths = []; - columns.forEach(function (k, i) { - columnWidths[i] = k.length; - - for (var j = 0; j < rows.length; j++) { - var cellStr = (rows[j][k] || '?').toString(); - stringRows[j] = stringRows[j] || []; - stringRows[j][i] = cellStr; - columnWidths[i] = Math.max(columnWidths[i], cellStr.length); - } - }); - - function joinRow(row, space) { - var cells = row.map(function (cell, i) { - var extraSpaces = repeat(' ', columnWidths[i] - cell.length).join(''); - return cell + extraSpaces; - }); - space = space || ' '; - return cells.join(space + '|' + space); - } - - var separators = columnWidths.map(function (columnWidth) { - return repeat('-', columnWidth).join(''); - }); - var separatorRow = joinRow(separators, '-'); - var header = joinRow(columns); - var table = [header, separatorRow]; - - for (var i = 0; i < rows.length; i++) { - table.push(joinRow(stringRows[i])); - } - - global.nativeLoggingHook('\n' + table.join('\n'), LOG_LEVELS.info); - } - - if (global.nativeLoggingHook) { - var originalConsole = global.console; - global.console = { - error: getNativeLogFunction(LOG_LEVELS.error), - info: getNativeLogFunction(LOG_LEVELS.info), - log: getNativeLogFunction(LOG_LEVELS.info), - warn: getNativeLogFunction(LOG_LEVELS.warn), - trace: getNativeLogFunction(LOG_LEVELS.trace), - debug: getNativeLogFunction(LOG_LEVELS.trace), - table: consoleTablePolyfill - }; - - if (__DEV__ && originalConsole) { - var descriptor = Object.getOwnPropertyDescriptor(global, 'console'); - - if (descriptor) { - Object.defineProperty(global, 'originalConsole', descriptor); - } - - Object.keys(console).forEach(function (methodName) { - var reactNativeMethod = console[methodName]; - - if (originalConsole[methodName]) { - console[methodName] = function () { - originalConsole[methodName].apply(originalConsole, arguments); - reactNativeMethod.apply(console, arguments); - }; - } - }); - } - } else if (!global.console) { - var log = global.print || function consoleLoggingStub() {}; - - global.console = { - error: log, - info: log, - log: log, - warn: log, - trace: log, - debug: log, - table: log - }; - } -})(this); -(function (global) { - var _inGuard = 0; - - var _globalHandler = function onError(e) { - throw e; - }; - - var ErrorUtils = { - setGlobalHandler: function setGlobalHandler(fun) { - _globalHandler = fun; - }, - getGlobalHandler: function getGlobalHandler() { - return _globalHandler; - }, - reportError: function reportError(error) { - _globalHandler && _globalHandler(error); - }, - reportFatalError: function reportFatalError(error) { - _globalHandler && _globalHandler(error, true); - }, - applyWithGuard: function applyWithGuard(fun, context, args) { - try { - _inGuard++; - return fun.apply(context, args); - } catch (e) { - ErrorUtils.reportError(e); - } finally { - _inGuard--; - } - - return null; - }, - applyWithGuardIfNeeded: function applyWithGuardIfNeeded(fun, context, args) { - if (ErrorUtils.inGuard()) { - return fun.apply(context, args); - } else { - ErrorUtils.applyWithGuard(fun, context, args); - } - - return null; - }, - inGuard: function inGuard() { - return _inGuard; - }, - guard: function guard(fun, name, context) { - if (typeof fun !== 'function') { - console.warn('A function must be passed to ErrorUtils.guard, got ', fun); - return null; - } - - name = name || fun.name || ''; - - function guarded() { - return ErrorUtils.applyWithGuard(fun, context || this, arguments, null, name); - } - - return guarded; - } - }; - global.ErrorUtils = ErrorUtils; -})(this); -(function (global) { - if (Number.EPSILON === undefined) { - Object.defineProperty(Number, 'EPSILON', { - value: Math.pow(2, -52) - }); - } - - if (Number.MAX_SAFE_INTEGER === undefined) { - Object.defineProperty(Number, 'MAX_SAFE_INTEGER', { - value: Math.pow(2, 53) - 1 - }); - } - - if (Number.MIN_SAFE_INTEGER === undefined) { - Object.defineProperty(Number, 'MIN_SAFE_INTEGER', { - value: -(Math.pow(2, 53) - 1) - }); - } - - if (!Number.isNaN) { - var globalIsNaN = global.isNaN; - Object.defineProperty(Number, 'isNaN', { - configurable: true, - enumerable: false, - value: function isNaN(value) { - return typeof value === 'number' && globalIsNaN(value); - }, - writable: true - }); - } -})(this); -(function (global) { - if (!String.prototype.startsWith) { - String.prototype.startsWith = function (search) { - 'use strict'; - - if (this == null) { - throw TypeError(); - } - - var string = String(this); - var pos = arguments.length > 1 ? Number(arguments[1]) || 0 : 0; - var start = Math.min(Math.max(pos, 0), string.length); - return string.indexOf(String(search), pos) === start; - }; - } - - if (!String.prototype.endsWith) { - String.prototype.endsWith = function (search) { - 'use strict'; - - if (this == null) { - throw TypeError(); - } - - var string = String(this); - var stringLength = string.length; - var searchString = String(search); - var pos = arguments.length > 1 ? Number(arguments[1]) || 0 : stringLength; - var end = Math.min(Math.max(pos, 0), stringLength); - var start = end - searchString.length; - - if (start < 0) { - return false; - } - - return string.lastIndexOf(searchString, start) === start; - }; - } - - if (!String.prototype.repeat) { - String.prototype.repeat = function (count) { - 'use strict'; - - if (this == null) { - throw TypeError(); - } - - var string = String(this); - count = Number(count) || 0; - - if (count < 0 || count === Infinity) { - throw RangeError(); - } - - if (count === 1) { - return string; - } - - var result = ''; - - while (count) { - if (count & 1) { - result += string; - } - - if (count >>= 1) { - string += string; - } - } - - return result; - }; - } - - if (!String.prototype.includes) { - String.prototype.includes = function (search, start) { - 'use strict'; - - if (typeof start !== 'number') { - start = 0; - } - - if (start + search.length > this.length) { - return false; - } else { - return this.indexOf(search, start) !== -1; - } - }; - } - - if (!String.prototype.codePointAt) { - String.prototype.codePointAt = function (position) { - if (this == null) { - throw TypeError(); - } - - var string = String(this); - var size = string.length; - var index = position ? Number(position) : 0; - - if (Number.isNaN(index)) { - index = 0; - } - - if (index < 0 || index >= size) { - return undefined; - } - - var first = string.charCodeAt(index); - var second; - - if (first >= 0xd800 && first <= 0xdbff && size > index + 1) { - second = string.charCodeAt(index + 1); - - if (second >= 0xdc00 && second <= 0xdfff) { - return (first - 0xd800) * 0x400 + second - 0xdc00 + 0x10000; - } - } - - return first; - }; - } -})(this); -(function (global) { - function findIndex(predicate, context) { - if (this == null) { - throw new TypeError('Array.prototype.findIndex called on null or undefined'); - } - - if (typeof predicate !== 'function') { - throw new TypeError('predicate must be a function'); - } - - var list = Object(this); - var length = list.length >>> 0; - - for (var i = 0; i < length; i++) { - if (predicate.call(context, list[i], i, list)) { - return i; - } - } - - return -1; - } - - if (!Array.prototype.findIndex) { - Object.defineProperty(Array.prototype, 'findIndex', { - enumerable: false, - writable: true, - configurable: true, - value: findIndex - }); - } - - if (!Array.prototype.find) { - Object.defineProperty(Array.prototype, 'find', { - enumerable: false, - writable: true, - configurable: true, - value: function value(predicate, context) { - if (this == null) { - throw new TypeError('Array.prototype.find called on null or undefined'); - } - - var index = findIndex.call(this, predicate, context); - return index === -1 ? undefined : this[index]; - } - }); - } - - if (!Array.prototype.includes) { - Object.defineProperty(Array.prototype, 'includes', { - enumerable: false, - writable: true, - configurable: true, - value: function value(searchElement) { - var O = Object(this); - var len = parseInt(O.length) || 0; - - if (len === 0) { - return false; - } - - var n = parseInt(arguments[1]) || 0; - var k; - - if (n >= 0) { - k = n; - } else { - k = len + n; - - if (k < 0) { - k = 0; - } - } - - var currentElement; - - while (k < len) { - currentElement = O[k]; - - if (searchElement === currentElement || searchElement !== searchElement && currentElement !== currentElement) { - return true; - } - - k++; - } - - return false; - } - }); - } -})(this); -(function (global) { - if (!Array.from) { - Array.from = function (arrayLike) { - if (arrayLike == null) { - throw new TypeError('Object is null or undefined'); - } - - var mapFn = arguments[1]; - var thisArg = arguments[2]; - var C = this; - var items = Object(arrayLike); - var symbolIterator = typeof Symbol === 'function' ? typeof Symbol === "function" ? Symbol.iterator : "@@iterator" : '@@iterator'; - var mapping = typeof mapFn === 'function'; - var usingIterator = typeof items[symbolIterator] === 'function'; - var key = 0; - var ret; - var value; - - if (usingIterator) { - ret = typeof C === 'function' ? new C() : []; - var it = items[symbolIterator](); - var next; - - while (!(next = it.next()).done) { - value = next.value; - - if (mapping) { - value = mapFn.call(thisArg, value, key); - } - - ret[key] = value; - key += 1; - } - - ret.length = key; - return ret; - } - - var len = items.length; - - if (isNaN(len) || len < 0) { - len = 0; - } - - ret = typeof C === 'function' ? new C(len) : new Array(len); - - while (key < len) { - value = items[key]; - - if (mapping) { - value = mapFn.call(thisArg, value, key); - } - - ret[key] = value; - key += 1; - } - - ret.length = key; - return ret; - }; - } -})(this); -(function (global) { - (function () { - 'use strict'; - - var hasOwnProperty = Object.prototype.hasOwnProperty; - - if (typeof Object.entries !== 'function') { - Object.entries = function (object) { - if (object == null) { - throw new TypeError('Object.entries called on non-object'); - } - - var entries = []; - - for (var key in object) { - if (hasOwnProperty.call(object, key)) { - entries.push([key, object[key]]); - } - } - - return entries; - }; - } - - if (typeof Object.values !== 'function') { - Object.values = function (object) { - if (object == null) { - throw new TypeError('Object.values called on non-object'); - } - - var values = []; - - for (var key in object) { - if (hasOwnProperty.call(object, key)) { - values.push(object[key]); - } - } - - return values; - }; - } - })(); -})(this); -(function (global) { - 'use strict'; - - var babelHelpers = global.babelHelpers = {}; - - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError('Cannot call a class as a function'); - } - } - - babelHelpers.classCallCheck = _classCallCheck; - - 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, descriptor.key, descriptor); - } - } - - function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) { - _defineProperties(Constructor.prototype, protoProps); - } - - if (staticProps) { - _defineProperties(Constructor, staticProps); - } - - return Constructor; - } - - babelHelpers.createClass = _createClass; - - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - - return obj; - } - - babelHelpers.defineProperty = _defineProperty; - - function _extends() { - babelHelpers.extends = _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; - }; - - return _extends.apply(this, arguments); - } - - babelHelpers.extends = _extends; - - function _setPrototypeOf(o, p) { - babelHelpers.setPrototypeOf = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - - return _setPrototypeOf(o, p); - } - - babelHelpers.setPrototypeOf = _setPrototypeOf; - - function _superPropBase(object, property) { - while (!Object.prototype.hasOwnProperty.call(object, property)) { - object = babelHelpers.getPrototypeOf(object); - - if (object === null) { - break; - } - } - - return object; - } - - babelHelpers.superPropBase = _superPropBase; - - babelHelpers.get = function _get(target, property) { - var receiver = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : target; - var base = babelHelpers.superPropBase(target, property); - - if (!base) { - return; - } - - var desc = Object.getOwnPropertyDescriptor(base, property); - - if (desc.get) { - return desc.get.call(receiver); - } - - return desc.value; - }; - - function _inherits(subClass, superClass) { - if (typeof superClass !== 'function' && superClass !== null) { - throw new TypeError('Super expression must either be null or a function'); - } - - babelHelpers.setPrototypeOf(subClass.prototype, superClass && superClass.prototype); - - if (superClass) { - babelHelpers.setPrototypeOf(subClass, superClass); - } - } - - babelHelpers.inherits = _inherits; - - function _construct(Parent, args, Class) { - babelHelpers.construct = _construct = function _construct(Parent, args, Class) { - var a = [null]; - a.push.apply(a, args); - var Constructor = Parent.bind.apply(Parent, a); - var instance = new Constructor(); - - if (Class) { - babelHelpers.setPrototypeOf(instance, Class.prototype); - } - - return instance; - }; - - return _construct.apply(null, arguments); - } - - babelHelpers.construct = _construct; - - function _getPrototypeOf(o) { - babelHelpers.getPrototypeOf = _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { - return o.__proto__; - }; - - return _getPrototypeOf(o); - } - - babelHelpers.getPrototypeOf = _getPrototypeOf; - - function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; - } - - babelHelpers.assertThisInitialized = _assertThisInitialized; - - function _wrapNativeSuper(Class) { - var _cache = typeof Map === 'function' ? new Map() : undefined; - - babelHelpers.wrapNativeSuper = _wrapNativeSuper = function _wrapNativeSuper(Class) { - if (typeof Class !== 'function') { - throw new TypeError('Super expression must either be null or a function'); - } - - if (typeof _cache !== 'undefined') { - if (_cache.has(Class)) { - return _cache.get(Class); - } - - _cache.set(Class, Wrapper); - } - - function Wrapper() { - return _construct(Class, arguments, _getPrototypeOf(this).constructor); - } - - Wrapper.prototype = Object.create(Class.prototype, { - constructor: { - value: Wrapper, - enumerable: false, - writable: true, - configurable: true - } - }); - return babelHelpers.setPrototypeOf(Wrapper, babelHelpers.setPrototypeOf(function Super() { - return babelHelpers.construct(Class, arguments, babelHelpers.getPrototypeOf(this).constructor); - }, Class)); - }; - - return _wrapNativeSuper(Class); - } - - babelHelpers.wrapNativeSuper = _wrapNativeSuper; - - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; - } - - babelHelpers.interopRequireDefault = _interopRequireDefault; - - function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {}; - - if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; - - if (desc.get || desc.set) { - Object.defineProperty(newObj, key, desc); - } else { - newObj[key] = obj[key]; - } - } - } - } - - newObj.default = obj; - return newObj; - } - } - - babelHelpers.interopRequireWildcard = _interopRequireWildcard; - - function _objectWithoutProperties(source, excluded) { - if (source == null) { - return {}; - } - - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - - if (excluded.indexOf(key) >= 0) { - continue; - } - - target[key] = source[key]; - } - - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - - if (excluded.indexOf(key) >= 0) { - continue; - } - - if (!Object.prototype.propertyIsEnumerable.call(source, key)) { - continue; - } - - target[key] = source[key]; - } - } - - return target; - } - - babelHelpers.objectWithoutProperties = _objectWithoutProperties; - - function _possibleConstructorReturn(self, call) { - if (call && (typeof call === 'object' || typeof call === 'function')) { - return call; - } - - return babelHelpers.assertThisInitialized(self); - } - - babelHelpers.possibleConstructorReturn = _possibleConstructorReturn; - - function _arrayWithHoles(arr) { - if (Array.isArray(arr)) { - return arr; - } - } - - babelHelpers.arrayWithHoles = _arrayWithHoles; - - function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) { - for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { - arr2[i] = arr[i]; - } - - return arr2; - } - } - - babelHelpers.arrayWithoutHoles = _arrayWithoutHoles; - - function _iterableToArrayLimit(arr, i) { - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - - try { - for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - - if (i && _arr.length === i) { - break; - } - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i.return != null) { - _i.return(); - } - } finally { - if (_d) { - throw _e; - } - } - } - - return _arr; - } - - babelHelpers.iterableToArrayLimit = _iterableToArrayLimit; - - function _nonIterableRest() { - throw new TypeError('Invalid attempt to destructure non-iterable instance'); - } - - babelHelpers.nonIterableRest = _nonIterableRest; - - function _nonIterableSpread() { - throw new TypeError('Invalid attempt to spread non-iterable instance'); - } - - babelHelpers.nonIterableSpread = _nonIterableSpread; - - function _slicedToArray(arr, i) { - return babelHelpers.arrayWithHoles(arr) || babelHelpers.iterableToArrayLimit(arr, i) || babelHelpers.nonIterableRest(); - } - - babelHelpers.slicedToArray = _slicedToArray; - - function _taggedTemplateLiteral(strings, raw) { - if (!raw) { - raw = strings.slice(0); - } - - return Object.freeze(Object.defineProperties(strings, { - raw: { - value: Object.freeze(raw) - } - })); - } - - babelHelpers.taggedTemplateLiteral = _taggedTemplateLiteral; - - function _toArray(arr) { - return babelHelpers.arrayWithHoles(arr) || babelHelpers.iterableToArray(arr) || babelHelpers.nonIterableRest(); - } - - babelHelpers.toArray = _toArray; - - function _toConsumableArray(arr) { - return babelHelpers.arrayWithoutHoles(arr) || babelHelpers.iterableToArray(arr) || babelHelpers.nonIterableSpread(); - } - - babelHelpers.toConsumableArray = _toConsumableArray; - - function _taggedTemplateLiteralLoose(strings, raw) { - if (!raw) { - raw = strings.slice(0); - } - - strings.raw = raw; - return strings; - } - - babelHelpers.taggedTemplateLiteralLoose = _taggedTemplateLiteralLoose; - - function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - var ownKeys = Object.keys(source); - - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - - ownKeys.forEach(function (key) { - babelHelpers.defineProperty(target, key, source[key]); - }); - } - - return target; - } - - babelHelpers.objectSpread = _objectSpread; - - function _iterableToArray(iter) { - if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === '[object Arguments]') { - return Array.from(iter); - } - } - - babelHelpers.iterableToArray = _iterableToArray; -})(this); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); - - var _App = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./js/App")); - - var _app = _$$_REQUIRE(_dependencyMap[2], "./app.json"); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - _reactNative.AppRegistry.registerComponent(_app.name, function () { - return _App.default; - }); -},0,[1,2,3],"index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); - - var ReactNative = { - get AccessibilityInfo() { - return _$$_REQUIRE(_dependencyMap[1], 'AccessibilityInfo'); - }, - - get ActivityIndicator() { - return _$$_REQUIRE(_dependencyMap[2], 'ActivityIndicator'); - }, - - get ART() { - return _$$_REQUIRE(_dependencyMap[3], 'ReactNativeART'); - }, - - get Button() { - return _$$_REQUIRE(_dependencyMap[4], 'Button'); - }, - - get CheckBox() { - return _$$_REQUIRE(_dependencyMap[5], 'CheckBox'); - }, - - get DatePickerIOS() { - return _$$_REQUIRE(_dependencyMap[6], 'DatePickerIOS'); - }, - - get DrawerLayoutAndroid() { - return _$$_REQUIRE(_dependencyMap[7], 'DrawerLayoutAndroid'); - }, - - get FlatList() { - return _$$_REQUIRE(_dependencyMap[8], 'FlatList'); - }, - - get Image() { - return _$$_REQUIRE(_dependencyMap[9], 'Image'); - }, - - get ImageBackground() { - return _$$_REQUIRE(_dependencyMap[10], 'ImageBackground'); - }, - - get ImageEditor() { - return _$$_REQUIRE(_dependencyMap[11], 'ImageEditor'); - }, - - get ImageStore() { - return _$$_REQUIRE(_dependencyMap[12], 'ImageStore'); - }, - - get InputAccessoryView() { - return _$$_REQUIRE(_dependencyMap[13], 'InputAccessoryView'); - }, - - get KeyboardAvoidingView() { - return _$$_REQUIRE(_dependencyMap[14], 'KeyboardAvoidingView'); - }, - - get ListView() { - return _$$_REQUIRE(_dependencyMap[15], 'ListView'); - }, - - get MaskedViewIOS() { - return _$$_REQUIRE(_dependencyMap[16], 'MaskedViewIOS'); - }, - - get Modal() { - return _$$_REQUIRE(_dependencyMap[17], 'Modal'); - }, - - get NavigatorIOS() { - return _$$_REQUIRE(_dependencyMap[18], 'NavigatorIOS'); - }, - - get Picker() { - return _$$_REQUIRE(_dependencyMap[19], 'Picker'); - }, - - get PickerIOS() { - return _$$_REQUIRE(_dependencyMap[20], 'PickerIOS'); - }, - - get ProgressBarAndroid() { - return _$$_REQUIRE(_dependencyMap[21], 'ProgressBarAndroid'); - }, - - get ProgressViewIOS() { - return _$$_REQUIRE(_dependencyMap[22], 'ProgressViewIOS'); - }, - - get SafeAreaView() { - return _$$_REQUIRE(_dependencyMap[23], 'SafeAreaView'); - }, - - get ScrollView() { - return _$$_REQUIRE(_dependencyMap[24], 'ScrollView'); - }, - - get SectionList() { - return _$$_REQUIRE(_dependencyMap[25], 'SectionList'); - }, - - get SegmentedControlIOS() { - return _$$_REQUIRE(_dependencyMap[26], 'SegmentedControlIOS'); - }, - - get Slider() { - return _$$_REQUIRE(_dependencyMap[27], 'Slider'); - }, - - get SnapshotViewIOS() { - return _$$_REQUIRE(_dependencyMap[28], 'SnapshotViewIOS'); - }, - - get Switch() { - return _$$_REQUIRE(_dependencyMap[29], 'Switch'); - }, - - get RefreshControl() { - return _$$_REQUIRE(_dependencyMap[30], 'RefreshControl'); - }, - - get StatusBar() { - return _$$_REQUIRE(_dependencyMap[31], 'StatusBar'); - }, - - get SwipeableFlatList() { - return _$$_REQUIRE(_dependencyMap[32], 'SwipeableFlatList'); - }, - - get SwipeableListView() { - return _$$_REQUIRE(_dependencyMap[33], 'SwipeableListView'); - }, - - get TabBarIOS() { - return _$$_REQUIRE(_dependencyMap[34], 'TabBarIOS'); - }, - - get Text() { - return _$$_REQUIRE(_dependencyMap[35], 'Text'); - }, - - get TextInput() { - return _$$_REQUIRE(_dependencyMap[36], 'TextInput'); - }, - - get ToastAndroid() { - return _$$_REQUIRE(_dependencyMap[37], 'ToastAndroid'); - }, - - get ToolbarAndroid() { - return _$$_REQUIRE(_dependencyMap[38], 'ToolbarAndroid'); - }, - - get Touchable() { - return _$$_REQUIRE(_dependencyMap[39], 'Touchable'); - }, - - get TouchableHighlight() { - return _$$_REQUIRE(_dependencyMap[40], 'TouchableHighlight'); - }, - - get TouchableNativeFeedback() { - return _$$_REQUIRE(_dependencyMap[41], 'TouchableNativeFeedback'); - }, - - get TouchableOpacity() { - return _$$_REQUIRE(_dependencyMap[42], 'TouchableOpacity'); - }, - - get TouchableWithoutFeedback() { - return _$$_REQUIRE(_dependencyMap[43], 'TouchableWithoutFeedback'); - }, - - get View() { - return _$$_REQUIRE(_dependencyMap[44], 'View'); - }, - - get ViewPagerAndroid() { - return _$$_REQUIRE(_dependencyMap[45], 'ViewPagerAndroid'); - }, - - get VirtualizedList() { - return _$$_REQUIRE(_dependencyMap[46], 'VirtualizedList'); - }, - - get WebView() { - return _$$_REQUIRE(_dependencyMap[47], 'WebView'); - }, - - get ActionSheetIOS() { - return _$$_REQUIRE(_dependencyMap[48], 'ActionSheetIOS'); - }, - - get Alert() { - return _$$_REQUIRE(_dependencyMap[49], 'Alert'); - }, - - get AlertIOS() { - return _$$_REQUIRE(_dependencyMap[50], 'AlertIOS'); - }, - - get Animated() { - return _$$_REQUIRE(_dependencyMap[51], 'Animated'); - }, - - get AppRegistry() { - return _$$_REQUIRE(_dependencyMap[52], 'AppRegistry'); - }, - - get AppState() { - return _$$_REQUIRE(_dependencyMap[53], 'AppState'); - }, - - get AsyncStorage() { - return _$$_REQUIRE(_dependencyMap[54], 'AsyncStorage'); - }, - - get BackAndroid() { - return _$$_REQUIRE(_dependencyMap[55], 'BackAndroid'); - }, - - get BackHandler() { - return _$$_REQUIRE(_dependencyMap[56], 'BackHandler'); - }, - - get CameraRoll() { - return _$$_REQUIRE(_dependencyMap[57], 'CameraRoll'); - }, - - get Clipboard() { - return _$$_REQUIRE(_dependencyMap[58], 'Clipboard'); - }, - - get DatePickerAndroid() { - return _$$_REQUIRE(_dependencyMap[59], 'DatePickerAndroid'); - }, - - get DeviceInfo() { - return _$$_REQUIRE(_dependencyMap[60], 'DeviceInfo'); - }, - - get Dimensions() { - return _$$_REQUIRE(_dependencyMap[61], 'Dimensions'); - }, - - get Easing() { - return _$$_REQUIRE(_dependencyMap[62], 'Easing'); - }, - - get findNodeHandle() { - return _$$_REQUIRE(_dependencyMap[63], 'ReactNative').findNodeHandle; - }, - - get I18nManager() { - return _$$_REQUIRE(_dependencyMap[64], 'I18nManager'); - }, - - get ImagePickerIOS() { - return _$$_REQUIRE(_dependencyMap[65], 'ImagePickerIOS'); - }, - - get InteractionManager() { - return _$$_REQUIRE(_dependencyMap[66], 'InteractionManager'); - }, - - get Keyboard() { - return _$$_REQUIRE(_dependencyMap[67], 'Keyboard'); - }, - - get LayoutAnimation() { - return _$$_REQUIRE(_dependencyMap[68], 'LayoutAnimation'); - }, - - get Linking() { - return _$$_REQUIRE(_dependencyMap[69], 'Linking'); - }, - - get NativeEventEmitter() { - return _$$_REQUIRE(_dependencyMap[70], 'NativeEventEmitter'); - }, - - get NetInfo() { - return _$$_REQUIRE(_dependencyMap[71], 'NetInfo'); - }, - - get PanResponder() { - return _$$_REQUIRE(_dependencyMap[72], 'PanResponder'); - }, - - get PermissionsAndroid() { - return _$$_REQUIRE(_dependencyMap[73], 'PermissionsAndroid'); - }, - - get PixelRatio() { - return _$$_REQUIRE(_dependencyMap[74], 'PixelRatio'); - }, - - get PushNotificationIOS() { - return _$$_REQUIRE(_dependencyMap[75], 'PushNotificationIOS'); - }, - - get Settings() { - return _$$_REQUIRE(_dependencyMap[76], 'Settings'); - }, - - get Share() { - return _$$_REQUIRE(_dependencyMap[77], 'Share'); - }, - - get StatusBarIOS() { - return _$$_REQUIRE(_dependencyMap[78], 'StatusBarIOS'); - }, - - get StyleSheet() { - return _$$_REQUIRE(_dependencyMap[79], 'StyleSheet'); - }, - - get Systrace() { - return _$$_REQUIRE(_dependencyMap[80], 'Systrace'); - }, - - get TimePickerAndroid() { - return _$$_REQUIRE(_dependencyMap[81], 'TimePickerAndroid'); - }, - - get TVEventHandler() { - return _$$_REQUIRE(_dependencyMap[82], 'TVEventHandler'); - }, - - get UIManager() { - return _$$_REQUIRE(_dependencyMap[83], 'UIManager'); - }, - - get unstable_batchedUpdates() { - return _$$_REQUIRE(_dependencyMap[63], 'ReactNative').unstable_batchedUpdates; - }, - - get Vibration() { - return _$$_REQUIRE(_dependencyMap[84], 'Vibration'); - }, - - get VibrationIOS() { - return _$$_REQUIRE(_dependencyMap[85], 'VibrationIOS'); - }, - - get YellowBox() { - return _$$_REQUIRE(_dependencyMap[86], 'YellowBox'); - }, - - get DeviceEventEmitter() { - return _$$_REQUIRE(_dependencyMap[87], 'RCTDeviceEventEmitter'); - }, - - get NativeAppEventEmitter() { - return _$$_REQUIRE(_dependencyMap[88], 'RCTNativeAppEventEmitter'); - }, - - get NativeModules() { - return _$$_REQUIRE(_dependencyMap[89], 'NativeModules'); - }, - - get Platform() { - return _$$_REQUIRE(_dependencyMap[90], 'Platform'); - }, - - get processColor() { - return _$$_REQUIRE(_dependencyMap[91], 'processColor'); - }, - - get requireNativeComponent() { - return _$$_REQUIRE(_dependencyMap[92], 'requireNativeComponent'); - }, - - get takeSnapshot() { - return _$$_REQUIRE(_dependencyMap[93], 'takeSnapshot'); - }, - - get ColorPropType() { - return _$$_REQUIRE(_dependencyMap[94], 'ColorPropType'); - }, - - get EdgeInsetsPropType() { - return _$$_REQUIRE(_dependencyMap[95], 'EdgeInsetsPropType'); - }, - - get PointPropType() { - return _$$_REQUIRE(_dependencyMap[96], 'PointPropType'); - }, - - get ViewPropTypes() { - return _$$_REQUIRE(_dependencyMap[97], 'ViewPropTypes'); - }, - - get Navigator() { - invariant(false, 'Navigator is deprecated and has been removed from this package. It can now be installed ' + 'and imported from `react-native-deprecated-custom-components` instead of `react-native`. ' + 'Learn about alternative navigation solutions at http://facebook.github.io/react-native/docs/navigation.html'); - } - - }; - module.exports = ReactNative; -},1,[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101],"node_modules/react-native/Libraries/react-native/react-native-implementation.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var validateFormat = function validateFormat(format) {}; - - if (process.env.NODE_ENV !== 'production') { - validateFormat = function validateFormat(format) { - if (format === undefined) { - throw new Error('invariant requires an error message argument'); - } - }; - } - - function invariant(condition, format, a, b, c, d, e, f) { - validateFormat(format); - - if (!condition) { - var error; - - if (format === undefined) { - error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); - } else { - var args = [a, b, c, d, e, f]; - var argIndex = 0; - error = new Error(format.replace(/%s/g, function () { - return args[argIndex++]; - })); - error.name = 'Invariant Violation'; - } - - error.framesToPop = 1; - throw error; - } - } - - module.exports = invariant; -},4,[],"node_modules/react-native/node_modules/fbjs/lib/invariant.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var NativeModules = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'); - - var RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[1], 'RCTDeviceEventEmitter'); - - var RCTAccessibilityInfo = NativeModules.AccessibilityInfo; - var TOUCH_EXPLORATION_EVENT = 'touchExplorationDidChange'; - - var _subscriptions = new Map(); - - var AccessibilityInfo = { - fetch: function fetch() { - return new Promise(function (resolve, reject) { - RCTAccessibilityInfo.isTouchExplorationEnabled(function (resp) { - resolve(resp); - }); - }); - }, - addEventListener: function addEventListener(eventName, handler) { - var listener = RCTDeviceEventEmitter.addListener(TOUCH_EXPLORATION_EVENT, function (enabled) { - handler(enabled); - }); - - _subscriptions.set(handler, listener); - }, - removeEventListener: function removeEventListener(eventName, handler) { - var listener = _subscriptions.get(handler); - - if (!listener) { - return; - } - - listener.remove(); - - _subscriptions.delete(handler); - } - }; - module.exports = AccessibilityInfo; -},5,[93,91],"node_modules/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } - - function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } - - function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - - function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - var BatchedBridge = _$$_REQUIRE(_dependencyMap[0], 'BatchedBridge'); - - var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); - - function genModule(config, moduleID) { - if (!config) { - return null; - } - - var _config = _slicedToArray(config, 5), - moduleName = _config[0], - constants = _config[1], - methods = _config[2], - promiseMethods = _config[3], - syncMethods = _config[4]; - - invariant(!moduleName.startsWith('RCT') && !moduleName.startsWith('RK'), "Module name prefixes should've been stripped by the native side " + "but wasn't for " + moduleName); - - if (!constants && !methods) { - return { - name: moduleName - }; - } - - var module = {}; - methods && methods.forEach(function (methodName, methodID) { - var isPromise = promiseMethods && arrayContains(promiseMethods, methodID); - var isSync = syncMethods && arrayContains(syncMethods, methodID); - invariant(!isPromise || !isSync, 'Cannot have a method that is both async and a sync hook'); - var methodType = isPromise ? 'promise' : isSync ? 'sync' : 'async'; - module[methodName] = genMethod(moduleID, methodID, methodType); - }); - - _extends(module, constants); - - if (__DEV__) { - BatchedBridge.createDebugLookup(moduleID, moduleName, methods); - } - - return { - name: moduleName, - module: module - }; - } - - global.__fbGenNativeModule = genModule; - - function loadModule(name, moduleID) { - invariant(global.nativeRequireModuleConfig, "Can't lazily create module without nativeRequireModuleConfig"); - var config = global.nativeRequireModuleConfig(name); - var info = genModule(config, moduleID); - return info && info.module; - } - - function genMethod(moduleID, methodID, type) { - var fn = null; - - if (type === 'promise') { - fn = function fn() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return new Promise(function (resolve, reject) { - BatchedBridge.enqueueNativeCall(moduleID, methodID, args, function (data) { - return resolve(data); - }, function (errorData) { - return reject(createErrorFromErrorData(errorData)); - }); - }); - }; - } else if (type === 'sync') { - fn = function fn() { - if (__DEV__) { - invariant(global.nativeCallSyncHook, 'Calling synchronous methods on native ' + 'modules is not supported in Chrome.\n\n Consider providing alternative ' + 'methods to expose this method in debug mode, e.g. by exposing constants ' + 'ahead-of-time.'); - } - - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - return global.nativeCallSyncHook(moduleID, methodID, args); - }; - } else { - fn = function fn() { - for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { - args[_key3] = arguments[_key3]; - } - - var lastArg = args.length > 0 ? args[args.length - 1] : null; - var secondLastArg = args.length > 1 ? args[args.length - 2] : null; - var hasSuccessCallback = typeof lastArg === 'function'; - var hasErrorCallback = typeof secondLastArg === 'function'; - hasErrorCallback && invariant(hasSuccessCallback, 'Cannot have a non-function arg after a function arg.'); - var onSuccess = hasSuccessCallback ? lastArg : null; - var onFail = hasErrorCallback ? secondLastArg : null; - var callbackCount = hasSuccessCallback + hasErrorCallback; - args = args.slice(0, args.length - callbackCount); - BatchedBridge.enqueueNativeCall(moduleID, methodID, args, onFail, onSuccess); - }; - } - - fn.type = type; - return fn; - } - - function arrayContains(array, value) { - return array.indexOf(value) !== -1; - } - - function createErrorFromErrorData(errorData) { - var _ref = errorData || {}, - message = _ref.message, - extraErrorInfo = _objectWithoutProperties(_ref, ["message"]); - - var error = new Error(message); - error.framesToPop = 1; - return _extends(error, extraErrorInfo); - } - - var NativeModules = {}; - - if (global.nativeModuleProxy) { - NativeModules = global.nativeModuleProxy; - } else if (!global.nativeExtensions) { - var bridgeConfig = global.__fbBatchedBridgeConfig; - invariant(bridgeConfig, '__fbBatchedBridgeConfig is not set, cannot invoke native modules'); - - var defineLazyObjectProperty = _$$_REQUIRE(_dependencyMap[2], 'defineLazyObjectProperty'); - - (bridgeConfig.remoteModuleConfig || []).forEach(function (config, moduleID) { - var info = genModule(config, moduleID); - - if (!info) { - return; - } - - if (info.module) { - NativeModules[info.name] = info.module; - } else { - defineLazyObjectProperty(NativeModules, info.name, { - get: function get() { - return loadModule(info.name, moduleID); - } - }); - } - }); - } - - module.exports = NativeModules; -},93,[102,4,103],"node_modules/react-native/Libraries/BatchedBridge/NativeModules.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var MessageQueue = _$$_REQUIRE(_dependencyMap[0], 'MessageQueue'); - - var BatchedBridge = new MessageQueue(); - Object.defineProperty(global, '__fbBatchedBridge', { - configurable: true, - value: BatchedBridge - }); - module.exports = BatchedBridge; -},102,[104],"node_modules/react-native/Libraries/BatchedBridge/BatchedBridge.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var ErrorUtils = _$$_REQUIRE(_dependencyMap[0], 'ErrorUtils'); - - var Systrace = _$$_REQUIRE(_dependencyMap[1], 'Systrace'); - - var deepFreezeAndThrowOnMutationInDev = _$$_REQUIRE(_dependencyMap[2], 'deepFreezeAndThrowOnMutationInDev'); - - var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); - - var stringifySafe = _$$_REQUIRE(_dependencyMap[4], 'stringifySafe'); - - var TO_JS = 0; - var TO_NATIVE = 1; - var MODULE_IDS = 0; - var METHOD_IDS = 1; - var PARAMS = 2; - var MIN_TIME_BETWEEN_FLUSHES_MS = 5; - var TRACE_TAG_REACT_APPS = 1 << 17; - var DEBUG_INFO_LIMIT = 32; - var JSTimers = null; - - var MessageQueue = function () { - function MessageQueue() { - _classCallCheck(this, MessageQueue); - - this._lazyCallableModules = {}; - this._queue = [[], [], [], 0]; - this._successCallbacks = {}; - this._failureCallbacks = {}; - this._callID = 0; - this._lastFlush = 0; - this._eventLoopStartTime = new Date().getTime(); - - if (__DEV__) { - this._debugInfo = {}; - this._remoteModuleTable = {}; - this._remoteMethodTable = {}; - } - - this.callFunctionReturnFlushedQueue = this.callFunctionReturnFlushedQueue.bind(this); - this.callFunctionReturnResultAndFlushedQueue = this.callFunctionReturnResultAndFlushedQueue.bind(this); - this.flushedQueue = this.flushedQueue.bind(this); - this.invokeCallbackAndReturnFlushedQueue = this.invokeCallbackAndReturnFlushedQueue.bind(this); - } - - _createClass(MessageQueue, [{ - key: "callFunctionReturnFlushedQueue", - value: function callFunctionReturnFlushedQueue(module, method, args) { - var _this = this; - - this.__guard(function () { - _this.__callFunction(module, method, args); - }); - - return this.flushedQueue(); - } - }, { - key: "callFunctionReturnResultAndFlushedQueue", - value: function callFunctionReturnResultAndFlushedQueue(module, method, args) { - var _this2 = this; - - var result; - - this.__guard(function () { - result = _this2.__callFunction(module, method, args); - }); - - return [result, this.flushedQueue()]; - } - }, { - key: "invokeCallbackAndReturnFlushedQueue", - value: function invokeCallbackAndReturnFlushedQueue(cbID, args) { - var _this3 = this; - - this.__guard(function () { - _this3.__invokeCallback(cbID, args); - }); - - return this.flushedQueue(); - } - }, { - key: "flushedQueue", - value: function flushedQueue() { - var _this4 = this; - - this.__guard(function () { - _this4.__callImmediates(); - }); - - var queue = this._queue; - this._queue = [[], [], [], this._callID]; - return queue[0].length ? queue : null; - } - }, { - key: "getEventLoopRunningTime", - value: function getEventLoopRunningTime() { - return new Date().getTime() - this._eventLoopStartTime; - } - }, { - key: "registerCallableModule", - value: function registerCallableModule(name, module) { - this._lazyCallableModules[name] = function () { - return module; - }; - } - }, { - key: "registerLazyCallableModule", - value: function registerLazyCallableModule(name, factory) { - var module; - var getValue = factory; - - this._lazyCallableModules[name] = function () { - if (getValue) { - module = getValue(); - getValue = null; - } - - return module; - }; - } - }, { - key: "getCallableModule", - value: function getCallableModule(name) { - var getValue = this._lazyCallableModules[name]; - return getValue ? getValue() : null; - } - }, { - key: "enqueueNativeCall", - value: function enqueueNativeCall(moduleID, methodID, params, onFail, onSucc) { - if (onFail || onSucc) { - if (__DEV__) { - this._debugInfo[this._callID] = [moduleID, methodID]; - - if (this._callID > DEBUG_INFO_LIMIT) { - delete this._debugInfo[this._callID - DEBUG_INFO_LIMIT]; - } - } - - onFail && params.push(this._callID << 1); - onSucc && params.push(this._callID << 1 | 1); - this._successCallbacks[this._callID] = onSucc; - this._failureCallbacks[this._callID] = onFail; - } - - if (__DEV__) { - global.nativeTraceBeginAsyncFlow && global.nativeTraceBeginAsyncFlow(TRACE_TAG_REACT_APPS, 'native', this._callID); - } - - this._callID++; - - this._queue[MODULE_IDS].push(moduleID); - - this._queue[METHOD_IDS].push(methodID); - - if (__DEV__) { - var isValidArgument = function isValidArgument(val) { - var t = typeof val; - - if (t === 'undefined' || t === 'null' || t === 'boolean' || t === 'number' || t === 'string') { - return true; - } - - if (t === 'function' || t !== 'object') { - return false; - } - - if (Array.isArray(val)) { - return val.every(isValidArgument); - } - - for (var k in val) { - if (typeof val[k] !== 'function' && !isValidArgument(val[k])) { - return false; - } - } - - return true; - }; - - invariant(isValidArgument(params), '%s is not usable as a native method argument', params); - deepFreezeAndThrowOnMutationInDev(params); - } - - this._queue[PARAMS].push(params); - - var now = new Date().getTime(); - - if (global.nativeFlushQueueImmediate && now - this._lastFlush >= MIN_TIME_BETWEEN_FLUSHES_MS) { - var queue = this._queue; - this._queue = [[], [], [], this._callID]; - this._lastFlush = now; - global.nativeFlushQueueImmediate(queue); - } - - Systrace.counterEvent('pending_js_to_native_queue', this._queue[0].length); - - if (__DEV__ && this.__spy && isFinite(moduleID)) { - this.__spy({ - type: TO_NATIVE, - module: this._remoteModuleTable[moduleID], - method: this._remoteMethodTable[moduleID][methodID], - args: params - }); - } else if (this.__spy) { - this.__spy({ - type: TO_NATIVE, - module: moduleID + '', - method: methodID, - args: params - }); - } - } - }, { - key: "createDebugLookup", - value: function createDebugLookup(moduleID, name, methods) { - if (__DEV__) { - this._remoteModuleTable[moduleID] = name; - this._remoteMethodTable[moduleID] = methods; - } - } - }, { - key: "__guard", - value: function __guard(fn) { - if (this.__shouldPauseOnThrow()) { - fn(); - } else { - try { - fn(); - } catch (error) { - ErrorUtils.reportFatalError(error); - } - } - } - }, { - key: "__shouldPauseOnThrow", - value: function __shouldPauseOnThrow() { - return typeof DebuggerInternal !== 'undefined' && DebuggerInternal.shouldPauseOnThrow === true; - } - }, { - key: "__callImmediates", - value: function __callImmediates() { - Systrace.beginEvent('JSTimers.callImmediates()'); - - if (!JSTimers) { - JSTimers = _$$_REQUIRE(_dependencyMap[5], 'JSTimers'); - } - - JSTimers.callImmediates(); - Systrace.endEvent(); - } - }, { - key: "__callFunction", - value: function __callFunction(module, method, args) { - this._lastFlush = new Date().getTime(); - this._eventLoopStartTime = this._lastFlush; - - if (__DEV__ || this.__spy) { - Systrace.beginEvent(module + "." + method + "(" + stringifySafe(args) + ")"); - } else { - Systrace.beginEvent(module + "." + method + "(...)"); - } - - if (this.__spy) { - this.__spy({ - type: TO_JS, - module: module, - method: method, - args: args - }); - } - - var moduleMethods = this.getCallableModule(module); - invariant(!!moduleMethods, 'Module %s is not a registered callable module (calling %s)', module, method); - invariant(!!moduleMethods[method], 'Method %s does not exist on module %s', method, module); - var result = moduleMethods[method].apply(moduleMethods, args); - Systrace.endEvent(); - return result; - } - }, { - key: "__invokeCallback", - value: function __invokeCallback(cbID, args) { - this._lastFlush = new Date().getTime(); - this._eventLoopStartTime = this._lastFlush; - var callID = cbID >>> 1; - var isSuccess = cbID & 1; - var callback = isSuccess ? this._successCallbacks[callID] : this._failureCallbacks[callID]; - - if (__DEV__) { - var debug = this._debugInfo[callID]; - - var _module = debug && this._remoteModuleTable[debug[0]]; - - var _method = debug && this._remoteMethodTable[debug[0]][debug[1]]; - - if (!callback) { - var errorMessage = "Callback with id " + cbID + ": " + _module + "." + _method + "() not found"; - - if (_method) { - errorMessage = "The callback " + _method + "() exists in module " + _module + ", " + 'but only one callback may be registered to a function in a native module.'; - } - - invariant(callback, errorMessage); - } - - var profileName = debug ? '' : cbID; - - if (callback && this.__spy) { - this.__spy({ - type: TO_JS, - module: null, - method: profileName, - args: args - }); - } - - Systrace.beginEvent("MessageQueue.invokeCallback(" + profileName + ", " + stringifySafe(args) + ")"); - } - - if (!callback) { - return; - } - - delete this._successCallbacks[callID]; - delete this._failureCallbacks[callID]; - callback.apply(void 0, _toConsumableArray(args)); - - if (__DEV__) { - Systrace.endEvent(); - } - } - }], [{ - key: "spy", - value: function spy(spyOrToggle) { - if (spyOrToggle === true) { - MessageQueue.prototype.__spy = function (info) { - console.log((info.type === TO_JS ? 'N->JS' : 'JS->N') + " : " + ("" + (info.module ? info.module + '.' : '') + info.method) + ("(" + JSON.stringify(info.args) + ")")); - }; - } else if (spyOrToggle === false) { - MessageQueue.prototype.__spy = null; - } else { - MessageQueue.prototype.__spy = spyOrToggle; - } - } - }]); - - return MessageQueue; - }(); - - module.exports = MessageQueue; -},104,[105,84,106,4,107,108],"node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = global.ErrorUtils; -},105,[],"node_modules/react-native/Libraries/vendor/core/ErrorUtils.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); - - var TRACE_TAG_REACT_APPS = 1 << 17; - var TRACE_TAG_JS_VM_CALLS = 1 << 27; - var _enabled = false; - var _asyncCookie = 0; - var _markStack = []; - - var _markStackIndex = -1; - - var _canInstallReactHook = false; - var REACT_MARKER = "\u269B"; - var userTimingPolyfill = __DEV__ ? { - mark: function mark(markName) { - if (_enabled) { - _markStackIndex++; - _markStack[_markStackIndex] = markName; - var systraceLabel = markName; - - if (markName[0] === REACT_MARKER) { - var indexOfId = markName.lastIndexOf(' (#'); - var cutoffIndex = indexOfId !== -1 ? indexOfId : markName.length; - systraceLabel = markName.slice(2, cutoffIndex); - } - - Systrace.beginEvent(systraceLabel); - } - }, - measure: function measure(measureName, startMark, endMark) { - if (_enabled) { - invariant(typeof measureName === 'string' && typeof startMark === 'string' && typeof endMark === 'undefined', 'Only performance.measure(string, string) overload is supported.'); - var topMark = _markStack[_markStackIndex]; - invariant(startMark === topMark, 'There was a mismatching performance.measure() call. ' + 'Expected "%s" but got "%s."', topMark, startMark); - _markStackIndex--; - Systrace.endEvent(); - } - }, - clearMarks: function clearMarks(markName) { - if (_enabled) { - if (_markStackIndex === -1) { - return; - } - - if (markName === _markStack[_markStackIndex]) { - if (userTimingPolyfill != null) { - userTimingPolyfill.measure(markName, markName); - } - } - } - }, - clearMeasures: function clearMeasures() {} - } : null; - var Systrace = { - installReactHook: function installReactHook() { - if (_enabled) { - if (__DEV__) { - global.performance = userTimingPolyfill; - } - } - - _canInstallReactHook = true; - }, - setEnabled: function setEnabled(enabled) { - if (_enabled !== enabled) { - if (__DEV__) { - if (enabled) { - global.nativeTraceBeginLegacy && global.nativeTraceBeginLegacy(TRACE_TAG_JS_VM_CALLS); - } else { - global.nativeTraceEndLegacy && global.nativeTraceEndLegacy(TRACE_TAG_JS_VM_CALLS); - } - - if (_canInstallReactHook) { - if (enabled && global.performance === undefined) { - global.performance = userTimingPolyfill; - } - } - } - - _enabled = enabled; - } - }, - isEnabled: function isEnabled() { - return _enabled; - }, - beginEvent: function beginEvent(profileName, args) { - if (_enabled) { - profileName = typeof profileName === 'function' ? profileName() : profileName; - global.nativeTraceBeginSection(TRACE_TAG_REACT_APPS, profileName, args); - } - }, - endEvent: function endEvent() { - if (_enabled) { - global.nativeTraceEndSection(TRACE_TAG_REACT_APPS); - } - }, - beginAsyncEvent: function beginAsyncEvent(profileName) { - var cookie = _asyncCookie; - - if (_enabled) { - _asyncCookie++; - profileName = typeof profileName === 'function' ? profileName() : profileName; - global.nativeTraceBeginAsyncSection(TRACE_TAG_REACT_APPS, profileName, cookie); - } - - return cookie; - }, - endAsyncEvent: function endAsyncEvent(profileName, cookie) { - if (_enabled) { - profileName = typeof profileName === 'function' ? profileName() : profileName; - global.nativeTraceEndAsyncSection(TRACE_TAG_REACT_APPS, profileName, cookie); - } - }, - counterEvent: function counterEvent(profileName, value) { - if (_enabled) { - profileName = typeof profileName === 'function' ? profileName() : profileName; - global.nativeTraceCounter && global.nativeTraceCounter(TRACE_TAG_REACT_APPS, profileName, value); - } - } - }; - - if (__DEV__) { - _$$_REQUIRE.Systrace = Systrace; - } - - module.exports = Systrace; -},84,[4],"node_modules/react-native/Libraries/Performance/Systrace.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function deepFreezeAndThrowOnMutationInDev(object) { - if (__DEV__) { - if (typeof object !== 'object' || object === null || Object.isFrozen(object) || Object.isSealed(object)) { - return object; - } - - var keys = Object.keys(object); - var _hasOwnProperty = Object.prototype.hasOwnProperty; - - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - - if (_hasOwnProperty.call(object, key)) { - Object.defineProperty(object, key, { - get: identity.bind(null, object[key]) - }); - Object.defineProperty(object, key, { - set: throwOnImmutableMutation.bind(null, key) - }); - } - } - - Object.freeze(object); - Object.seal(object); - - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - - if (_hasOwnProperty.call(object, key)) { - deepFreezeAndThrowOnMutationInDev(object[key]); - } - } - } - - return object; - } - - function throwOnImmutableMutation(key, value) { - throw Error('You attempted to set the key `' + key + '` with the value `' + JSON.stringify(value) + '` on an object that is meant to be immutable ' + 'and has been frozen.'); - } - - function identity(value) { - return value; - } - - module.exports = deepFreezeAndThrowOnMutationInDev; -},106,[],"node_modules/react-native/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function stringifySafe(arg) { - var ret; - var type = typeof arg; - - if (arg === undefined) { - ret = 'undefined'; - } else if (arg === null) { - ret = 'null'; - } else if (type === 'string') { - ret = '"' + arg + '"'; - } else if (type === 'function') { - try { - ret = arg.toString(); - } catch (e) { - ret = '[function unknown]'; - } - } else { - try { - ret = JSON.stringify(arg); - } catch (e) { - if (typeof arg.toString === 'function') { - try { - ret = arg.toString(); - } catch (E) {} - } - } - } - - return ret || '["' + type + '" failed to stringify]'; - } - - module.exports = stringifySafe; -},107,[],"node_modules/react-native/Libraries/Utilities/stringifySafe.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); - - var Systrace = _$$_REQUIRE(_dependencyMap[1], 'Systrace'); - - var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); - - var _require = _$$_REQUIRE(_dependencyMap[3], 'NativeModules'), - Timing = _require.Timing; - - var _performanceNow = null; - - function performanceNow() { - if (!_performanceNow) { - _performanceNow = _$$_REQUIRE(_dependencyMap[4], 'fbjs/lib/performanceNow'); - } - - return _performanceNow(); - } - - var FRAME_DURATION = 1000 / 60; - var IDLE_CALLBACK_FRAME_DEADLINE = 1; - var MAX_TIMER_DURATION_MS = 60 * 1000; - var IS_ANDROID = Platform.OS === 'android'; - var ANDROID_LONG_TIMER_MESSAGE = 'Setting a timer for a long period of time, i.e. multiple minutes, is a ' + 'performance and correctness issue on Android as it keeps the timer ' + 'module awake, and timers can only be called when the app is in the foreground. ' + 'See https://github.com/facebook/react-native/issues/12981 for more info.'; - var callbacks = []; - var types = []; - var timerIDs = []; - var immediates = []; - var requestIdleCallbacks = []; - var requestIdleCallbackTimeouts = {}; - var identifiers = []; - var GUID = 1; - var errors = null; - var hasEmittedTimeDriftWarning = false; - - function _getFreeIndex() { - var freeIndex = timerIDs.indexOf(null); - - if (freeIndex === -1) { - freeIndex = timerIDs.length; - } - - return freeIndex; - } - - function _allocateCallback(func, type) { - var id = GUID++; - - var freeIndex = _getFreeIndex(); - - timerIDs[freeIndex] = id; - callbacks[freeIndex] = func; - types[freeIndex] = type; - - if (__DEV__) { - var parseErrorStack = _$$_REQUIRE(_dependencyMap[5], 'parseErrorStack'); - - var error = new Error(); - error.framesToPop = 1; - var stack = parseErrorStack(error); - - if (stack) { - identifiers[freeIndex] = stack.shift(); - } - } - - return id; - } - - function _callTimer(timerID, frameTime, didTimeout) { - _$$_REQUIRE(_dependencyMap[6], 'fbjs/lib/warning')(timerID <= GUID, 'Tried to call timer with ID %s but no such timer exists.', timerID); - - var timerIndex = timerIDs.indexOf(timerID); - - if (timerIndex === -1) { - return; - } - - var type = types[timerIndex]; - var callback = callbacks[timerIndex]; - - if (!callback || !type) { - console.error('No callback found for timerID ' + timerID); - return; - } - - if (__DEV__) { - var identifier = identifiers[timerIndex] || {}; - Systrace.beginEvent('Systrace.callTimer: ' + identifier.methodName); - } - - if (type === 'setTimeout' || type === 'setImmediate' || type === 'requestAnimationFrame' || type === 'requestIdleCallback') { - _clearIndex(timerIndex); - } - - try { - if (type === 'setTimeout' || type === 'setInterval' || type === 'setImmediate') { - callback(); - } else if (type === 'requestAnimationFrame') { - callback(performanceNow()); - } else if (type === 'requestIdleCallback') { - callback({ - timeRemaining: function timeRemaining() { - return Math.max(0, FRAME_DURATION - (performanceNow() - frameTime)); - }, - didTimeout: !!didTimeout - }); - } else { - console.error('Tried to call a callback with invalid type: ' + type); - } - } catch (e) { - if (!errors) { - errors = [e]; - } else { - errors.push(e); - } - } - - if (__DEV__) { - Systrace.endEvent(); - } - } - - function _callImmediatesPass() { - if (__DEV__) { - Systrace.beginEvent('callImmediatesPass()'); - } - - if (immediates.length > 0) { - var passImmediates = immediates.slice(); - immediates = []; - - for (var i = 0; i < passImmediates.length; ++i) { - _callTimer(passImmediates[i], 0); - } - } - - if (__DEV__) { - Systrace.endEvent(); - } - - return immediates.length > 0; - } - - function _clearIndex(i) { - timerIDs[i] = null; - callbacks[i] = null; - types[i] = null; - identifiers[i] = null; - } - - function _freeCallback(timerID) { - if (timerID == null) { - return; - } - - var index = timerIDs.indexOf(timerID); - - if (index !== -1) { - _clearIndex(index); - - var type = types[index]; - - if (type !== 'setImmediate' && type !== 'requestIdleCallback') { - Timing.deleteTimer(timerID); - } - } - } - - var JSTimers = { - setTimeout: function setTimeout(func, duration) { - for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; - } - - if (__DEV__ && IS_ANDROID && duration > MAX_TIMER_DURATION_MS) { - console.warn(ANDROID_LONG_TIMER_MESSAGE + '\n' + '(Saw setTimeout with duration ' + duration + 'ms)'); - } - - var id = _allocateCallback(function () { - return func.apply(undefined, args); - }, 'setTimeout'); - - Timing.createTimer(id, duration || 0, Date.now(), false); - return id; - }, - setInterval: function setInterval(func, duration) { - for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { - args[_key2 - 2] = arguments[_key2]; - } - - if (__DEV__ && IS_ANDROID && duration > MAX_TIMER_DURATION_MS) { - console.warn(ANDROID_LONG_TIMER_MESSAGE + '\n' + '(Saw setInterval with duration ' + duration + 'ms)'); - } - - var id = _allocateCallback(function () { - return func.apply(undefined, args); - }, 'setInterval'); - - Timing.createTimer(id, duration || 0, Date.now(), true); - return id; - }, - setImmediate: function setImmediate(func) { - for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) { - args[_key3 - 1] = arguments[_key3]; - } - - var id = _allocateCallback(function () { - return func.apply(undefined, args); - }, 'setImmediate'); - - immediates.push(id); - return id; - }, - requestAnimationFrame: function requestAnimationFrame(func) { - var id = _allocateCallback(func, 'requestAnimationFrame'); - - Timing.createTimer(id, 1, Date.now(), false); - return id; - }, - requestIdleCallback: function requestIdleCallback(func, options) { - if (requestIdleCallbacks.length === 0) { - Timing.setSendIdleEvents(true); - } - - var timeout = options && options.timeout; - - var id = _allocateCallback(timeout != null ? function (deadline) { - var timeoutId = requestIdleCallbackTimeouts[id]; - - if (timeoutId) { - JSTimers.clearTimeout(timeoutId); - delete requestIdleCallbackTimeouts[id]; - } - - return func(deadline); - } : func, 'requestIdleCallback'); - - requestIdleCallbacks.push(id); - - if (timeout != null) { - var timeoutId = JSTimers.setTimeout(function () { - var index = requestIdleCallbacks.indexOf(id); - - if (index > -1) { - requestIdleCallbacks.splice(index, 1); - - _callTimer(id, performanceNow(), true); - } - - delete requestIdleCallbackTimeouts[id]; - - if (requestIdleCallbacks.length === 0) { - Timing.setSendIdleEvents(false); - } - }, timeout); - requestIdleCallbackTimeouts[id] = timeoutId; - } - - return id; - }, - cancelIdleCallback: function cancelIdleCallback(timerID) { - _freeCallback(timerID); - - var index = requestIdleCallbacks.indexOf(timerID); - - if (index !== -1) { - requestIdleCallbacks.splice(index, 1); - } - - var timeoutId = requestIdleCallbackTimeouts[timerID]; - - if (timeoutId) { - JSTimers.clearTimeout(timeoutId); - delete requestIdleCallbackTimeouts[timerID]; - } - - if (requestIdleCallbacks.length === 0) { - Timing.setSendIdleEvents(false); - } - }, - clearTimeout: function clearTimeout(timerID) { - _freeCallback(timerID); - }, - clearInterval: function clearInterval(timerID) { - _freeCallback(timerID); - }, - clearImmediate: function clearImmediate(timerID) { - _freeCallback(timerID); - - var index = immediates.indexOf(timerID); - - if (index !== -1) { - immediates.splice(index, 1); - } - }, - cancelAnimationFrame: function cancelAnimationFrame(timerID) { - _freeCallback(timerID); - }, - callTimers: function callTimers(timersToCall) { - invariant(timersToCall.length !== 0, 'Cannot call `callTimers` with an empty list of IDs.'); - errors = null; - - for (var i = 0; i < timersToCall.length; i++) { - _callTimer(timersToCall[i], 0); - } - - if (errors) { - var errorCount = errors.length; - - if (errorCount > 1) { - for (var ii = 1; ii < errorCount; ii++) { - JSTimers.setTimeout(function (error) { - throw error; - }.bind(null, errors[ii]), 0); - } - } - - throw errors[0]; - } - }, - callIdleCallbacks: function callIdleCallbacks(frameTime) { - if (FRAME_DURATION - (performanceNow() - frameTime) < IDLE_CALLBACK_FRAME_DEADLINE) { - return; - } - - errors = null; - - if (requestIdleCallbacks.length > 0) { - var passIdleCallbacks = requestIdleCallbacks.slice(); - requestIdleCallbacks = []; - - for (var i = 0; i < passIdleCallbacks.length; ++i) { - _callTimer(passIdleCallbacks[i], frameTime); - } - } - - if (requestIdleCallbacks.length === 0) { - Timing.setSendIdleEvents(false); - } - - if (errors) { - errors.forEach(function (error) { - return JSTimers.setTimeout(function () { - throw error; - }, 0); - }); - } - }, - callImmediates: function callImmediates() { - errors = null; - - while (_callImmediatesPass()) {} - - if (errors) { - errors.forEach(function (error) { - return JSTimers.setTimeout(function () { - throw error; - }, 0); - }); - } - }, - emitTimeDriftWarning: function emitTimeDriftWarning(warningMessage) { - if (hasEmittedTimeDriftWarning) { - return; - } - - hasEmittedTimeDriftWarning = true; - console.warn(warningMessage); - } - }; - var ExportedJSTimers; - - if (!Timing) { - console.warn("Timing native module is not available, can't set timers."); - ExportedJSTimers = { - callImmediates: JSTimers.callImmediates, - setImmediate: JSTimers.setImmediate - }; - } else { - ExportedJSTimers = JSTimers; - } - - module.exports = ExportedJSTimers; -},108,[94,84,4,93,109,110,111],"node_modules/react-native/Libraries/Core/Timers/JSTimers.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var NativeModules = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'); - - var Platform = { - OS: 'android', - - get Version() { - var constants = NativeModules.PlatformConstants; - return constants && constants.Version; - }, - - get isTesting() { - var constants = NativeModules.PlatformConstants; - return constants && constants.isTesting; - }, - - get isTV() { - var constants = NativeModules.PlatformConstants; - return constants && constants.uiMode === 'tv'; - }, - - select: function select(obj) { - return 'android' in obj ? obj.android : obj.default; - } - }; - module.exports = Platform; -},94,[93],"node_modules/react-native/Libraries/Utilities/Platform.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var performance = _$$_REQUIRE(_dependencyMap[0], './performance'); - - var performanceNow; - - if (performance.now) { - performanceNow = function performanceNow() { - return performance.now(); - }; - } else { - performanceNow = function performanceNow() { - return Date.now(); - }; - } - - module.exports = performanceNow; -},109,[112],"node_modules/react-native/node_modules/fbjs/lib/performanceNow.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var ExecutionEnvironment = _$$_REQUIRE(_dependencyMap[0], './ExecutionEnvironment'); - - var performance; - - if (ExecutionEnvironment.canUseDOM) { - performance = window.performance || window.msPerformance || window.webkitPerformance; - } - - module.exports = performance || {}; -},112,[113],"node_modules/react-native/node_modules/fbjs/lib/performance.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); - var ExecutionEnvironment = { - canUseDOM: canUseDOM, - canUseWorkers: typeof Worker !== 'undefined', - canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent), - canUseViewport: canUseDOM && !!window.screen, - isInWorker: !canUseDOM - }; - module.exports = ExecutionEnvironment; -},113,[],"node_modules/react-native/node_modules/fbjs/lib/ExecutionEnvironment.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function parseErrorStack(e) { - if (!e || !e.stack) { - return []; - } - - var stacktraceParser = _$$_REQUIRE(_dependencyMap[0], 'stacktrace-parser'); - - var stack = Array.isArray(e.stack) ? e.stack : stacktraceParser.parse(e.stack); - var framesToPop = typeof e.framesToPop === 'number' ? e.framesToPop : 0; - - while (framesToPop--) { - stack.shift(); - } - - return stack; - } - - module.exports = parseErrorStack; -},110,[114],"node_modules/react-native/Libraries/Core/Devtools/parseErrorStack.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0], './lib/stacktrace-parser.js'); -},114,[115],"node_modules/stacktrace-parser/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var UNKNOWN_FUNCTION = ''; - var StackTraceParser = { - parse: function parse(stackString) { - var chrome = /^\s*at (?:(?:(?:Anonymous function)?|((?:\[object object\])?\S+(?: \[as \S+\])?)) )?\(?((?:file|http|https):.*?):(\d+)(?::(\d+))?\)?\s*$/i, - gecko = /^(?:\s*([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i, - node = /^\s*at (?:((?:\[object object\])?\S+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i, - lines = stackString.split('\n'), - stack = [], - parts, - element; - - for (var i = 0, j = lines.length; i < j; ++i) { - if (parts = gecko.exec(lines[i])) { - element = { - 'file': parts[3], - 'methodName': parts[1] || UNKNOWN_FUNCTION, - 'lineNumber': +parts[4], - 'column': parts[5] ? +parts[5] : null - }; - } else if (parts = chrome.exec(lines[i])) { - element = { - 'file': parts[2], - 'methodName': parts[1] || UNKNOWN_FUNCTION, - 'lineNumber': +parts[3], - 'column': parts[4] ? +parts[4] : null - }; - } else if (parts = node.exec(lines[i])) { - element = { - 'file': parts[2], - 'methodName': parts[1] || UNKNOWN_FUNCTION, - 'lineNumber': +parts[3], - 'column': parts[4] ? +parts[4] : null - }; - } else { - continue; - } - - stack.push(element); - } - - return stack; - } - }; - module.exports = StackTraceParser; -},115,[],"node_modules/stacktrace-parser/lib/stacktrace-parser.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var emptyFunction = _$$_REQUIRE(_dependencyMap[0], './emptyFunction'); - - var warning = emptyFunction; - - if (process.env.NODE_ENV !== 'production') { - var printWarning = function printWarning(format) { - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - var argIndex = 0; - var message = 'Warning: ' + format.replace(/%s/g, function () { - return args[argIndex++]; - }); - - if (typeof console !== 'undefined') { - console.error(message); - } - - try { - throw new Error(message); - } catch (x) {} - }; - - warning = function warning(condition, format) { - if (format === undefined) { - throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); - } - - if (format.indexOf('Failed Composite propType: ') === 0) { - return; - } - - if (!condition) { - for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { - args[_key2 - 2] = arguments[_key2]; - } - - printWarning.apply(undefined, [format].concat(args)); - } - }; - } - - module.exports = warning; -},111,[116],"node_modules/react-native/node_modules/fbjs/lib/warning.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - "use strict"; - - function makeEmptyFunction(arg) { - return function () { - return arg; - }; - } - - var emptyFunction = function emptyFunction() {}; - - emptyFunction.thatReturns = makeEmptyFunction; - emptyFunction.thatReturnsFalse = makeEmptyFunction(false); - emptyFunction.thatReturnsTrue = makeEmptyFunction(true); - emptyFunction.thatReturnsNull = makeEmptyFunction(null); - - emptyFunction.thatReturnsThis = function () { - return this; - }; - - emptyFunction.thatReturnsArgument = function (arg) { - return arg; - }; - - module.exports = emptyFunction; -},116,[],"node_modules/react-native/node_modules/fbjs/lib/emptyFunction.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function defineLazyObjectProperty(object, name, descriptor) { - var get = descriptor.get; - var enumerable = descriptor.enumerable !== false; - var writable = descriptor.writable !== false; - var value; - var valueSet = false; - - function getValue() { - if (!valueSet) { - valueSet = true; - setValue(get()); - } - - return value; - } - - function setValue(newValue) { - value = newValue; - valueSet = true; - Object.defineProperty(object, name, { - value: newValue, - configurable: true, - enumerable: enumerable, - writable: writable - }); - } - - Object.defineProperty(object, name, { - get: getValue, - set: setValue, - configurable: true, - enumerable: enumerable - }); - } - - module.exports = defineLazyObjectProperty; -},103,[],"node_modules/react-native/Libraries/Utilities/defineLazyObjectProperty.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } - - function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var EventEmitter = _$$_REQUIRE(_dependencyMap[0], 'EventEmitter'); - - var EventSubscriptionVendor = _$$_REQUIRE(_dependencyMap[1], 'EventSubscriptionVendor'); - - function checkNativeEventModule(eventType) { - if (eventType) { - if (eventType.lastIndexOf('statusBar', 0) === 0) { - throw new Error('`' + eventType + '` event should be registered via the StatusBarIOS module'); - } - - if (eventType.lastIndexOf('keyboard', 0) === 0) { - throw new Error('`' + eventType + '` event should be registered via the Keyboard module'); - } - - if (eventType === 'appStateDidChange' || eventType === 'memoryWarning') { - throw new Error('`' + eventType + '` event should be registered via the AppState module'); - } - } - } - - var RCTDeviceEventEmitter = function (_EventEmitter) { - function RCTDeviceEventEmitter() { - var _this; - - _classCallCheck(this, RCTDeviceEventEmitter); - - var sharedSubscriber = new EventSubscriptionVendor(); - _this = _possibleConstructorReturn(this, _getPrototypeOf(RCTDeviceEventEmitter).call(this, sharedSubscriber)); - _this.sharedSubscriber = sharedSubscriber; - return _this; - } - - _createClass(RCTDeviceEventEmitter, [{ - key: "addListener", - value: function addListener(eventType, listener, context) { - if (__DEV__) { - checkNativeEventModule(eventType); - } - - return _get(_getPrototypeOf(RCTDeviceEventEmitter.prototype), "addListener", this).call(this, eventType, listener, context); - } - }, { - key: "removeAllListeners", - value: function removeAllListeners(eventType) { - if (__DEV__) { - checkNativeEventModule(eventType); - } - - _get(_getPrototypeOf(RCTDeviceEventEmitter.prototype), "removeAllListeners", this).call(this, eventType); - } - }, { - key: "removeSubscription", - value: function removeSubscription(subscription) { - if (subscription.emitter !== this) { - subscription.emitter.removeSubscription(subscription); - } else { - _get(_getPrototypeOf(RCTDeviceEventEmitter.prototype), "removeSubscription", this).call(this, subscription); - } - } - }]); - - _inherits(RCTDeviceEventEmitter, _EventEmitter); - - return RCTDeviceEventEmitter; - }(EventEmitter); - - module.exports = new RCTDeviceEventEmitter(); -},91,[117,118],"node_modules/react-native/Libraries/EventEmitter/RCTDeviceEventEmitter.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var EmitterSubscription = _$$_REQUIRE(_dependencyMap[0], 'EmitterSubscription'); - - var EventSubscriptionVendor = _$$_REQUIRE(_dependencyMap[1], 'EventSubscriptionVendor'); - - var emptyFunction = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/emptyFunction'); - - var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); - - var EventEmitter = function () { - function EventEmitter(subscriber) { - _classCallCheck(this, EventEmitter); - - this._subscriber = subscriber || new EventSubscriptionVendor(); - } - - _createClass(EventEmitter, [{ - key: "addListener", - value: function addListener(eventType, listener, context) { - return this._subscriber.addSubscription(eventType, new EmitterSubscription(this, this._subscriber, listener, context)); - } - }, { - key: "once", - value: function once(eventType, listener, context) { - var _this = this; - - return this.addListener(eventType, function () { - _this.removeCurrentListener(); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - listener.apply(context, args); - }); - } - }, { - key: "removeAllListeners", - value: function removeAllListeners(eventType) { - this._subscriber.removeAllSubscriptions(eventType); - } - }, { - key: "removeCurrentListener", - value: function removeCurrentListener() { - invariant(!!this._currentSubscription, 'Not in an emitting cycle; there is no current subscription'); - this.removeSubscription(this._currentSubscription); - } - }, { - key: "removeSubscription", - value: function removeSubscription(subscription) { - invariant(subscription.emitter === this, 'Subscription does not belong to this emitter.'); - - this._subscriber.removeSubscription(subscription); - } - }, { - key: "listeners", - value: function listeners(eventType) { - var subscriptions = this._subscriber.getSubscriptionsForType(eventType); - - return subscriptions ? subscriptions.filter(emptyFunction.thatReturnsTrue).map(function (subscription) { - return subscription.listener; - }) : []; - } - }, { - key: "emit", - value: function emit(eventType) { - var subscriptions = this._subscriber.getSubscriptionsForType(eventType); - - if (subscriptions) { - for (var i = 0, l = subscriptions.length; i < l; i++) { - var subscription = subscriptions[i]; - - if (subscription) { - this._currentSubscription = subscription; - subscription.listener.apply(subscription.context, Array.prototype.slice.call(arguments, 1)); - } - } - - this._currentSubscription = null; - } - } - }, { - key: "removeListener", - value: function removeListener(eventType, listener) { - var subscriptions = this._subscriber.getSubscriptionsForType(eventType); - - if (subscriptions) { - for (var i = 0, l = subscriptions.length; i < l; i++) { - var subscription = subscriptions[i]; - - if (subscription && subscription.listener === listener) { - subscription.remove(); - } - } - } - } - }]); - - return EventEmitter; - }(); - - module.exports = EventEmitter; -},117,[119,118,116,4],"node_modules/react-native/Libraries/vendor/emitter/EventEmitter.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var EventSubscription = _$$_REQUIRE(_dependencyMap[0], 'EventSubscription'); - - var EmitterSubscription = function (_EventSubscription) { - function EmitterSubscription(emitter, subscriber, listener, context) { - var _this; - - _classCallCheck(this, EmitterSubscription); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(EmitterSubscription).call(this, subscriber)); - _this.emitter = emitter; - _this.listener = listener; - _this.context = context; - return _this; - } - - _createClass(EmitterSubscription, [{ - key: "remove", - value: function remove() { - this.emitter.removeSubscription(this); - } - }]); - - _inherits(EmitterSubscription, _EventSubscription); - - return EmitterSubscription; - }(EventSubscription); - - module.exports = EmitterSubscription; -},119,[120],"node_modules/react-native/Libraries/vendor/emitter/EmitterSubscription.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var EventSubscription = function () { - function EventSubscription(subscriber) { - _classCallCheck(this, EventSubscription); - - this.subscriber = subscriber; - } - - _createClass(EventSubscription, [{ - key: "remove", - value: function remove() { - this.subscriber.removeSubscription(this); - } - }]); - - return EventSubscription; - }(); - - module.exports = EventSubscription; -},120,[],"node_modules/react-native/Libraries/vendor/emitter/EventSubscription.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); - - var EventSubscriptionVendor = function () { - function EventSubscriptionVendor() { - _classCallCheck(this, EventSubscriptionVendor); - - this._subscriptionsForType = {}; - this._currentSubscription = null; - } - - _createClass(EventSubscriptionVendor, [{ - key: "addSubscription", - value: function addSubscription(eventType, subscription) { - invariant(subscription.subscriber === this, 'The subscriber of the subscription is incorrectly set.'); - - if (!this._subscriptionsForType[eventType]) { - this._subscriptionsForType[eventType] = []; - } - - var key = this._subscriptionsForType[eventType].length; - - this._subscriptionsForType[eventType].push(subscription); - - subscription.eventType = eventType; - subscription.key = key; - return subscription; - } - }, { - key: "removeAllSubscriptions", - value: function removeAllSubscriptions(eventType) { - if (eventType === undefined) { - this._subscriptionsForType = {}; - } else { - delete this._subscriptionsForType[eventType]; - } - } - }, { - key: "removeSubscription", - value: function removeSubscription(subscription) { - var eventType = subscription.eventType; - var key = subscription.key; - var subscriptionsForType = this._subscriptionsForType[eventType]; - - if (subscriptionsForType) { - delete subscriptionsForType[key]; - } - } - }, { - key: "getSubscriptionsForType", - value: function getSubscriptionsForType(eventType) { - return this._subscriptionsForType[eventType]; - } - }]); - - return EventSubscriptionVendor; - }(); - - module.exports = EventSubscriptionVendor; -},118,[4],"node_modules/react-native/Libraries/vendor/emitter/EventSubscriptionVendor.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); - - var React = _$$_REQUIRE(_dependencyMap[1], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[2], 'StyleSheet'); - - var View = _$$_REQUIRE(_dependencyMap[3], 'View'); - - var requireNativeComponent = _$$_REQUIRE(_dependencyMap[4], 'requireNativeComponent'); - - var RCTActivityIndicator = Platform.OS === 'android' ? _$$_REQUIRE(_dependencyMap[5], 'ProgressBarAndroid') : requireNativeComponent('RCTActivityIndicatorView'); - var GRAY = '#999999'; - - var ActivityIndicator = function ActivityIndicator(props) { - var onLayout = props.onLayout, - style = props.style, - forwardedRef = props.forwardedRef, - restProps = _objectWithoutProperties(props, ["onLayout", "style", "forwardedRef"]); - - var sizeStyle; - - switch (props.size) { - case 'small': - sizeStyle = styles.sizeSmall; - break; - - case 'large': - sizeStyle = styles.sizeLarge; - break; - - default: - sizeStyle = { - height: props.size, - width: props.size - }; - break; - } - - var nativeProps = _objectSpread({}, restProps, { - ref: forwardedRef, - style: sizeStyle, - styleAttr: 'Normal', - indeterminate: true - }); - - return React.createElement(View, { - onLayout: onLayout, - style: [styles.container, style], - __source: { - fileName: _jsxFileName, - lineNumber: 102 - } - }, React.createElement(RCTActivityIndicator, _extends({}, nativeProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 103 - } - }))); - }; - - var ActivityIndicatorWithRef = React.forwardRef(function (props, ref) { - return React.createElement(ActivityIndicator, _extends({}, props, { - forwardedRef: ref, - __source: { - fileName: _jsxFileName, - lineNumber: 110 - } - })); - }); - ActivityIndicatorWithRef.defaultProps = { - animating: true, - color: Platform.OS === 'ios' ? GRAY : null, - hidesWhenStopped: true, - size: 'small' - }; - ActivityIndicatorWithRef.displayName = 'ActivityIndicator'; - var styles = StyleSheet.create({ - container: { - alignItems: 'center', - justifyContent: 'center' - }, - sizeSmall: { - width: 20, - height: 20 - }, - sizeLarge: { - width: 36, - height: 36 - } - }); - module.exports = ActivityIndicatorWithRef; -},6,[94,121,83,48,96,25],"node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - module.exports = _$$_REQUIRE(_dependencyMap[0], 'react'); -},121,[122],"node_modules/react-native/Libraries/react-native/React.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - if (process.env.NODE_ENV === 'production') { - module.exports = _$$_REQUIRE(_dependencyMap[0], './cjs/react.production.min.js'); - } else { - module.exports = _$$_REQUIRE(_dependencyMap[1], './cjs/react.development.js'); - } -},122,[123,124],"node_modules/react/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - /** @license React v16.4.1 - * react.production.min.js - * - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - 'use strict'; - - var k = _$$_REQUIRE(_dependencyMap[0], "object-assign"), - n = _$$_REQUIRE(_dependencyMap[1], "fbjs/lib/invariant"), - p = _$$_REQUIRE(_dependencyMap[2], "fbjs/lib/emptyObject"), - q = _$$_REQUIRE(_dependencyMap[3], "fbjs/lib/emptyFunction"), - r = "function" === typeof Symbol && (typeof Symbol === "function" ? Symbol.for : "@@for"), - t = r ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.element") : 60103, - u = r ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.portal") : 60106, - v = r ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.fragment") : 60107, - w = r ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.strict_mode") : 60108, - x = r ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.profiler") : 60114, - y = r ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.provider") : 60109, - z = r ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.context") : 60110, - A = r ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.async_mode") : 60111, - B = r ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.forward_ref") : 60112; - - r && (typeof Symbol === "function" ? Symbol.for : "@@for")("react.timeout"); - var C = "function" === typeof Symbol && (typeof Symbol === "function" ? Symbol.iterator : "@@iterator"); - - function D(a) { - for (var b = arguments.length - 1, e = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 0; c < b; c++) { - e += "&args[]=" + encodeURIComponent(arguments[c + 1]); - } - - n(!1, "Minified React error #" + a + "; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ", e); - } - - var E = { - isMounted: function isMounted() { - return !1; - }, - enqueueForceUpdate: function enqueueForceUpdate() {}, - enqueueReplaceState: function enqueueReplaceState() {}, - enqueueSetState: function enqueueSetState() {} - }; - - function F(a, b, e) { - this.props = a; - this.context = b; - this.refs = p; - this.updater = e || E; - } - - F.prototype.isReactComponent = {}; - - F.prototype.setState = function (a, b) { - "object" !== typeof a && "function" !== typeof a && null != a ? D("85") : void 0; - this.updater.enqueueSetState(this, a, b, "setState"); - }; - - F.prototype.forceUpdate = function (a) { - this.updater.enqueueForceUpdate(this, a, "forceUpdate"); - }; - - function G() {} - - G.prototype = F.prototype; - - function H(a, b, e) { - this.props = a; - this.context = b; - this.refs = p; - this.updater = e || E; - } - - var I = H.prototype = new G(); - I.constructor = H; - k(I, F.prototype); - I.isPureReactComponent = !0; - var J = { - current: null - }, - K = Object.prototype.hasOwnProperty, - L = { - key: !0, - ref: !0, - __self: !0, - __source: !0 - }; - - function M(a, b, e) { - var c = void 0, - d = {}, - g = null, - h = null; - if (null != b) for (c in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (g = "" + b.key), b) { - K.call(b, c) && !L.hasOwnProperty(c) && (d[c] = b[c]); - } - var f = arguments.length - 2; - if (1 === f) d.children = e;else if (1 < f) { - for (var l = Array(f), m = 0; m < f; m++) { - l[m] = arguments[m + 2]; - } - - d.children = l; - } - if (a && a.defaultProps) for (c in f = a.defaultProps, f) { - void 0 === d[c] && (d[c] = f[c]); - } - return { - $$typeof: t, - type: a, - key: g, - ref: h, - props: d, - _owner: J.current - }; - } - - function N(a) { - return "object" === typeof a && null !== a && a.$$typeof === t; - } - - function escape(a) { - var b = { - "=": "=0", - ":": "=2" - }; - return "$" + ("" + a).replace(/[=:]/g, function (a) { - return b[a]; - }); - } - - var O = /\/+/g, - P = []; - - function Q(a, b, e, c) { - if (P.length) { - var d = P.pop(); - d.result = a; - d.keyPrefix = b; - d.func = e; - d.context = c; - d.count = 0; - return d; - } - - return { - result: a, - keyPrefix: b, - func: e, - context: c, - count: 0 - }; - } - - function R(a) { - a.result = null; - a.keyPrefix = null; - a.func = null; - a.context = null; - a.count = 0; - 10 > P.length && P.push(a); - } - - function S(a, b, e, c) { - var d = typeof a; - if ("undefined" === d || "boolean" === d) a = null; - var g = !1; - if (null === a) g = !0;else switch (d) { - case "string": - case "number": - g = !0; - break; - - case "object": - switch (a.$$typeof) { - case t: - case u: - g = !0; - } - - } - if (g) return e(c, a, "" === b ? "." + T(a, 0) : b), 1; - g = 0; - b = "" === b ? "." : b + ":"; - if (Array.isArray(a)) for (var h = 0; h < a.length; h++) { - d = a[h]; - var f = b + T(d, h); - g += S(d, f, e, c); - } else if (null === a || "undefined" === typeof a ? f = null : (f = C && a[C] || a["@@iterator"], f = "function" === typeof f ? f : null), "function" === typeof f) for (a = f.call(a), h = 0; !(d = a.next()).done;) { - d = d.value, f = b + T(d, h++), g += S(d, f, e, c); - } else "object" === d && (e = "" + a, D("31", "[object Object]" === e ? "object with keys {" + Object.keys(a).join(", ") + "}" : e, "")); - return g; - } - - function T(a, b) { - return "object" === typeof a && null !== a && null != a.key ? escape(a.key) : b.toString(36); - } - - function U(a, b) { - a.func.call(a.context, b, a.count++); - } - - function V(a, b, e) { - var c = a.result, - d = a.keyPrefix; - a = a.func.call(a.context, b, a.count++); - Array.isArray(a) ? W(a, c, e, q.thatReturnsArgument) : null != a && (N(a) && (b = d + (!a.key || b && b.key === a.key ? "" : ("" + a.key).replace(O, "$&/") + "/") + e, a = { - $$typeof: t, - type: a.type, - key: b, - ref: a.ref, - props: a.props, - _owner: a._owner - }), c.push(a)); - } - - function W(a, b, e, c, d) { - var g = ""; - null != e && (g = ("" + e).replace(O, "$&/") + "/"); - b = Q(b, g, c, d); - null == a || S(a, "", V, b); - R(b); - } - - var X = { - Children: { - map: function map(a, b, e) { - if (null == a) return a; - var c = []; - W(a, c, null, b, e); - return c; - }, - forEach: function forEach(a, b, e) { - if (null == a) return a; - b = Q(null, null, b, e); - null == a || S(a, "", U, b); - R(b); - }, - count: function count(a) { - return null == a ? 0 : S(a, "", q.thatReturnsNull, null); - }, - toArray: function toArray(a) { - var b = []; - W(a, b, null, q.thatReturnsArgument); - return b; - }, - only: function only(a) { - N(a) ? void 0 : D("143"); - return a; - } - }, - createRef: function createRef() { - return { - current: null - }; - }, - Component: F, - PureComponent: H, - createContext: function createContext(a, b) { - void 0 === b && (b = null); - a = { - $$typeof: z, - _calculateChangedBits: b, - _defaultValue: a, - _currentValue: a, - _currentValue2: a, - _changedBits: 0, - _changedBits2: 0, - Provider: null, - Consumer: null - }; - a.Provider = { - $$typeof: y, - _context: a - }; - return a.Consumer = a; - }, - forwardRef: function forwardRef(a) { - return { - $$typeof: B, - render: a - }; - }, - Fragment: v, - StrictMode: w, - unstable_AsyncMode: A, - unstable_Profiler: x, - createElement: M, - cloneElement: function cloneElement(a, b, e) { - null === a || void 0 === a ? D("267", a) : void 0; - var c = void 0, - d = k({}, a.props), - g = a.key, - h = a.ref, - f = a._owner; - - if (null != b) { - void 0 !== b.ref && (h = b.ref, f = J.current); - void 0 !== b.key && (g = "" + b.key); - var l = void 0; - a.type && a.type.defaultProps && (l = a.type.defaultProps); - - for (c in b) { - K.call(b, c) && !L.hasOwnProperty(c) && (d[c] = void 0 === b[c] && void 0 !== l ? l[c] : b[c]); - } - } - - c = arguments.length - 2; - if (1 === c) d.children = e;else if (1 < c) { - l = Array(c); - - for (var m = 0; m < c; m++) { - l[m] = arguments[m + 2]; - } - - d.children = l; - } - return { - $$typeof: t, - type: a.type, - key: g, - ref: h, - props: d, - _owner: f - }; - }, - createFactory: function createFactory(a) { - var b = M.bind(null, a); - b.type = a; - return b; - }, - isValidElement: N, - version: "16.4.1", - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { - ReactCurrentOwner: J, - assign: k - } - }, - Y = { - default: X - }, - Z = Y && X || Y; - module.exports = Z.default ? Z.default : Z; -},123,[125,126,127,128],"node_modules/react/cjs/react.production.min.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - /* - object-assign - (c) Sindre Sorhus - @license MIT - */ - 'use strict'; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - var getOwnPropertySymbols = Object.getOwnPropertySymbols; - var hasOwnProperty = Object.prototype.hasOwnProperty; - var propIsEnumerable = Object.prototype.propertyIsEnumerable; - - function toObject(val) { - if (val === null || val === undefined) { - throw new TypeError('Object.assign cannot be called with null or undefined'); - } - - return Object(val); - } - - function shouldUseNative() { - try { - if (!Object.assign) { - return false; - } - - var test1 = new String('abc'); - test1[5] = 'de'; - - if (Object.getOwnPropertyNames(test1)[0] === '5') { - return false; - } - - var test2 = {}; - - for (var i = 0; i < 10; i++) { - test2['_' + String.fromCharCode(i)] = i; - } - - var order2 = Object.getOwnPropertyNames(test2).map(function (n) { - return test2[n]; - }); - - if (order2.join('') !== '0123456789') { - return false; - } - - var test3 = {}; - 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { - test3[letter] = letter; - }); - - if (Object.keys(_extends({}, test3)).join('') !== 'abcdefghijklmnopqrst') { - return false; - } - - return true; - } catch (err) { - return false; - } - } - - module.exports = shouldUseNative() ? Object.assign : function (target, source) { - var from; - var to = toObject(target); - var symbols; - - for (var s = 1; s < arguments.length; s++) { - from = Object(arguments[s]); - - for (var key in from) { - if (hasOwnProperty.call(from, key)) { - to[key] = from[key]; - } - } - - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from); - - for (var i = 0; i < symbols.length; i++) { - if (propIsEnumerable.call(from, symbols[i])) { - to[symbols[i]] = from[symbols[i]]; - } - } - } - } - - return to; - }; -},125,[],"node_modules/object-assign/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var validateFormat = function validateFormat(format) {}; - - if (process.env.NODE_ENV !== 'production') { - validateFormat = function validateFormat(format) { - if (format === undefined) { - throw new Error('invariant requires an error message argument'); - } - }; - } - - function invariant(condition, format, a, b, c, d, e, f) { - validateFormat(format); - - if (!condition) { - var error; - - if (format === undefined) { - error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); - } else { - var args = [a, b, c, d, e, f]; - var argIndex = 0; - error = new Error(format.replace(/%s/g, function () { - return args[argIndex++]; - })); - error.name = 'Invariant Violation'; - } - - error.framesToPop = 1; - throw error; - } - } - - module.exports = invariant; -},126,[],"node_modules/fbjs/lib/invariant.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var emptyObject = {}; - - if (process.env.NODE_ENV !== 'production') { - Object.freeze(emptyObject); - } - - module.exports = emptyObject; -},127,[],"node_modules/fbjs/lib/emptyObject.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - "use strict"; - - function makeEmptyFunction(arg) { - return function () { - return arg; - }; - } - - var emptyFunction = function emptyFunction() {}; - - emptyFunction.thatReturns = makeEmptyFunction; - emptyFunction.thatReturnsFalse = makeEmptyFunction(false); - emptyFunction.thatReturnsTrue = makeEmptyFunction(true); - emptyFunction.thatReturnsNull = makeEmptyFunction(null); - - emptyFunction.thatReturnsThis = function () { - return this; - }; - - emptyFunction.thatReturnsArgument = function (arg) { - return arg; - }; - - module.exports = emptyFunction; -},128,[],"node_modules/fbjs/lib/emptyFunction.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - /** @license React v16.4.1 - * react.development.js - * - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - 'use strict'; - - if (process.env.NODE_ENV !== "production") { - (function () { - 'use strict'; - - var _assign = _$$_REQUIRE(_dependencyMap[0], 'object-assign'); - - var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); - - var emptyObject = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/emptyObject'); - - var warning = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/warning'); - - var emptyFunction = _$$_REQUIRE(_dependencyMap[4], 'fbjs/lib/emptyFunction'); - - var checkPropTypes = _$$_REQUIRE(_dependencyMap[5], 'prop-types/checkPropTypes'); - - var ReactVersion = '16.4.1'; - var hasSymbol = typeof Symbol === 'function' && (typeof Symbol === "function" ? Symbol.for : "@@for"); - var REACT_ELEMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.element') : 0xeac7; - var REACT_PORTAL_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.portal') : 0xeaca; - var REACT_FRAGMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.fragment') : 0xeacb; - var REACT_STRICT_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.strict_mode') : 0xeacc; - var REACT_PROFILER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.profiler') : 0xead2; - var REACT_PROVIDER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.provider') : 0xeacd; - var REACT_CONTEXT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.context') : 0xeace; - var REACT_ASYNC_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.async_mode') : 0xeacf; - var REACT_FORWARD_REF_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.forward_ref') : 0xead0; - var REACT_TIMEOUT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")('react.timeout') : 0xead1; - var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && (typeof Symbol === "function" ? Symbol.iterator : "@@iterator"); - var FAUX_ITERATOR_SYMBOL = '@@iterator'; - - function getIteratorFn(maybeIterable) { - if (maybeIterable === null || typeof maybeIterable === 'undefined') { - return null; - } - - var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; - - if (typeof maybeIterator === 'function') { - return maybeIterator; - } - - return null; - } - - var enableSuspense = false; - - var lowPriorityWarning = function lowPriorityWarning() {}; - - { - var printWarning = function printWarning(format) { - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - var argIndex = 0; - var message = 'Warning: ' + format.replace(/%s/g, function () { - return args[argIndex++]; - }); - - if (typeof console !== 'undefined') { - console.warn(message); - } - - try { - throw new Error(message); - } catch (x) {} - }; - - lowPriorityWarning = function lowPriorityWarning(condition, format) { - if (format === undefined) { - throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); - } - - if (!condition) { - for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { - args[_key2 - 2] = arguments[_key2]; - } - - printWarning.apply(undefined, [format].concat(args)); - } - }; - } - var lowPriorityWarning$1 = lowPriorityWarning; - var didWarnStateUpdateForUnmountedComponent = {}; - - function warnNoop(publicInstance, callerName) { - { - var _constructor = publicInstance.constructor; - var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass'; - var warningKey = componentName + '.' + callerName; - - if (didWarnStateUpdateForUnmountedComponent[warningKey]) { - return; - } - - warning(false, "Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName); - didWarnStateUpdateForUnmountedComponent[warningKey] = true; - } - } - - var ReactNoopUpdateQueue = { - isMounted: function isMounted(publicInstance) { - return false; - }, - enqueueForceUpdate: function enqueueForceUpdate(publicInstance, callback, callerName) { - warnNoop(publicInstance, 'forceUpdate'); - }, - enqueueReplaceState: function enqueueReplaceState(publicInstance, completeState, callback, callerName) { - warnNoop(publicInstance, 'replaceState'); - }, - enqueueSetState: function enqueueSetState(publicInstance, partialState, callback, callerName) { - warnNoop(publicInstance, 'setState'); - } - }; - - function Component(props, context, updater) { - this.props = props; - this.context = context; - this.refs = emptyObject; - this.updater = updater || ReactNoopUpdateQueue; - } - - Component.prototype.isReactComponent = {}; - - Component.prototype.setState = function (partialState, callback) { - !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : void 0; - this.updater.enqueueSetState(this, partialState, callback, 'setState'); - }; - - Component.prototype.forceUpdate = function (callback) { - this.updater.enqueueForceUpdate(this, callback, 'forceUpdate'); - }; - - { - var deprecatedAPIs = { - isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'], - replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).'] - }; - - var defineDeprecationWarning = function defineDeprecationWarning(methodName, info) { - Object.defineProperty(Component.prototype, methodName, { - get: function get() { - lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]); - return undefined; - } - }); - }; - - for (var fnName in deprecatedAPIs) { - if (deprecatedAPIs.hasOwnProperty(fnName)) { - defineDeprecationWarning(fnName, deprecatedAPIs[fnName]); - } - } - } - - function ComponentDummy() {} - - ComponentDummy.prototype = Component.prototype; - - function PureComponent(props, context, updater) { - this.props = props; - this.context = context; - this.refs = emptyObject; - this.updater = updater || ReactNoopUpdateQueue; - } - - var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); - pureComponentPrototype.constructor = PureComponent; - - _assign(pureComponentPrototype, Component.prototype); - - pureComponentPrototype.isPureReactComponent = true; - - function createRef() { - var refObject = { - current: null - }; - { - Object.seal(refObject); - } - return refObject; - } - - var ReactCurrentOwner = { - current: null - }; - var hasOwnProperty = Object.prototype.hasOwnProperty; - var RESERVED_PROPS = { - key: true, - ref: true, - __self: true, - __source: true - }; - var specialPropKeyWarningShown = void 0; - var specialPropRefWarningShown = void 0; - - function hasValidRef(config) { - { - if (hasOwnProperty.call(config, 'ref')) { - var getter = Object.getOwnPropertyDescriptor(config, 'ref').get; - - if (getter && getter.isReactWarning) { - return false; - } - } - } - return config.ref !== undefined; - } - - function hasValidKey(config) { - { - if (hasOwnProperty.call(config, 'key')) { - var getter = Object.getOwnPropertyDescriptor(config, 'key').get; - - if (getter && getter.isReactWarning) { - return false; - } - } - } - return config.key !== undefined; - } - - function defineKeyPropWarningGetter(props, displayName) { - var warnAboutAccessingKey = function warnAboutAccessingKey() { - if (!specialPropKeyWarningShown) { - specialPropKeyWarningShown = true; - warning(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName); - } - }; - - warnAboutAccessingKey.isReactWarning = true; - Object.defineProperty(props, 'key', { - get: warnAboutAccessingKey, - configurable: true - }); - } - - function defineRefPropWarningGetter(props, displayName) { - var warnAboutAccessingRef = function warnAboutAccessingRef() { - if (!specialPropRefWarningShown) { - specialPropRefWarningShown = true; - warning(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName); - } - }; - - warnAboutAccessingRef.isReactWarning = true; - Object.defineProperty(props, 'ref', { - get: warnAboutAccessingRef, - configurable: true - }); - } - - var ReactElement = function ReactElement(type, key, ref, self, source, owner, props) { - var element = { - $$typeof: REACT_ELEMENT_TYPE, - type: type, - key: key, - ref: ref, - props: props, - _owner: owner - }; - { - element._store = {}; - Object.defineProperty(element._store, 'validated', { - configurable: false, - enumerable: false, - writable: true, - value: false - }); - Object.defineProperty(element, '_self', { - configurable: false, - enumerable: false, - writable: false, - value: self - }); - Object.defineProperty(element, '_source', { - configurable: false, - enumerable: false, - writable: false, - value: source - }); - - if (Object.freeze) { - Object.freeze(element.props); - Object.freeze(element); - } - } - return element; - }; - - function createElement(type, config, children) { - var propName = void 0; - var props = {}; - var key = null; - var ref = null; - var self = null; - var source = null; - - if (config != null) { - if (hasValidRef(config)) { - ref = config.ref; - } - - if (hasValidKey(config)) { - key = '' + config.key; - } - - self = config.__self === undefined ? null : config.__self; - source = config.__source === undefined ? null : config.__source; - - for (propName in config) { - if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { - props[propName] = config[propName]; - } - } - } - - var childrenLength = arguments.length - 2; - - if (childrenLength === 1) { - props.children = children; - } else if (childrenLength > 1) { - var childArray = Array(childrenLength); - - for (var i = 0; i < childrenLength; i++) { - childArray[i] = arguments[i + 2]; - } - - { - if (Object.freeze) { - Object.freeze(childArray); - } - } - props.children = childArray; - } - - if (type && type.defaultProps) { - var defaultProps = type.defaultProps; - - for (propName in defaultProps) { - if (props[propName] === undefined) { - props[propName] = defaultProps[propName]; - } - } - } - - { - if (key || ref) { - if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) { - var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type; - - if (key) { - defineKeyPropWarningGetter(props, displayName); - } - - if (ref) { - defineRefPropWarningGetter(props, displayName); - } - } - } - } - return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); - } - - function cloneAndReplaceKey(oldElement, newKey) { - var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); - return newElement; - } - - function cloneElement(element, config, children) { - !!(element === null || element === undefined) ? invariant(false, 'React.cloneElement(...): The argument must be a React element, but you passed %s.', element) : void 0; - var propName = void 0; - - var props = _assign({}, element.props); - - var key = element.key; - var ref = element.ref; - var self = element._self; - var source = element._source; - var owner = element._owner; - - if (config != null) { - if (hasValidRef(config)) { - ref = config.ref; - owner = ReactCurrentOwner.current; - } - - if (hasValidKey(config)) { - key = '' + config.key; - } - - var defaultProps = void 0; - - if (element.type && element.type.defaultProps) { - defaultProps = element.type.defaultProps; - } - - for (propName in config) { - if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { - if (config[propName] === undefined && defaultProps !== undefined) { - props[propName] = defaultProps[propName]; - } else { - props[propName] = config[propName]; - } - } - } - } - - var childrenLength = arguments.length - 2; - - if (childrenLength === 1) { - props.children = children; - } else if (childrenLength > 1) { - var childArray = Array(childrenLength); - - for (var i = 0; i < childrenLength; i++) { - childArray[i] = arguments[i + 2]; - } - - props.children = childArray; - } - - return ReactElement(element.type, key, ref, self, source, owner, props); - } - - function isValidElement(object) { - return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; - } - - var ReactDebugCurrentFrame = {}; - { - ReactDebugCurrentFrame.getCurrentStack = null; - - ReactDebugCurrentFrame.getStackAddendum = function () { - var impl = ReactDebugCurrentFrame.getCurrentStack; - - if (impl) { - return impl(); - } - - return null; - }; - } - var SEPARATOR = '.'; - var SUBSEPARATOR = ':'; - - function escape(key) { - var escapeRegex = /[=:]/g; - var escaperLookup = { - '=': '=0', - ':': '=2' - }; - var escapedString = ('' + key).replace(escapeRegex, function (match) { - return escaperLookup[match]; - }); - return '$' + escapedString; - } - - var didWarnAboutMaps = false; - var userProvidedKeyEscapeRegex = /\/+/g; - - function escapeUserProvidedKey(text) { - return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/'); - } - - var POOL_SIZE = 10; - var traverseContextPool = []; - - function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) { - if (traverseContextPool.length) { - var traverseContext = traverseContextPool.pop(); - traverseContext.result = mapResult; - traverseContext.keyPrefix = keyPrefix; - traverseContext.func = mapFunction; - traverseContext.context = mapContext; - traverseContext.count = 0; - return traverseContext; - } else { - return { - result: mapResult, - keyPrefix: keyPrefix, - func: mapFunction, - context: mapContext, - count: 0 - }; - } - } - - function releaseTraverseContext(traverseContext) { - traverseContext.result = null; - traverseContext.keyPrefix = null; - traverseContext.func = null; - traverseContext.context = null; - traverseContext.count = 0; - - if (traverseContextPool.length < POOL_SIZE) { - traverseContextPool.push(traverseContext); - } - } - - function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) { - var type = typeof children; - - if (type === 'undefined' || type === 'boolean') { - children = null; - } - - var invokeCallback = false; - - if (children === null) { - invokeCallback = true; - } else { - switch (type) { - case 'string': - case 'number': - invokeCallback = true; - break; - - case 'object': - switch (children.$$typeof) { - case REACT_ELEMENT_TYPE: - case REACT_PORTAL_TYPE: - invokeCallback = true; - } - - } - } - - if (invokeCallback) { - callback(traverseContext, children, nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar); - return 1; - } - - var child = void 0; - var nextName = void 0; - var subtreeCount = 0; - var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR; - - if (Array.isArray(children)) { - for (var i = 0; i < children.length; i++) { - child = children[i]; - nextName = nextNamePrefix + getComponentKey(child, i); - subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); - } - } else { - var iteratorFn = getIteratorFn(children); - - if (typeof iteratorFn === 'function') { - { - if (iteratorFn === children.entries) { - !didWarnAboutMaps ? warning(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.%s', ReactDebugCurrentFrame.getStackAddendum()) : void 0; - didWarnAboutMaps = true; - } - } - var iterator = iteratorFn.call(children); - var step = void 0; - var ii = 0; - - while (!(step = iterator.next()).done) { - child = step.value; - nextName = nextNamePrefix + getComponentKey(child, ii++); - subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); - } - } else if (type === 'object') { - var addendum = ''; - { - addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum(); - } - var childrenString = '' + children; - invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum); - } - } - - return subtreeCount; - } - - function traverseAllChildren(children, callback, traverseContext) { - if (children == null) { - return 0; - } - - return traverseAllChildrenImpl(children, '', callback, traverseContext); - } - - function getComponentKey(component, index) { - if (typeof component === 'object' && component !== null && component.key != null) { - return escape(component.key); - } - - return index.toString(36); - } - - function forEachSingleChild(bookKeeping, child, name) { - var func = bookKeeping.func, - context = bookKeeping.context; - func.call(context, child, bookKeeping.count++); - } - - function forEachChildren(children, forEachFunc, forEachContext) { - if (children == null) { - return children; - } - - var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext); - traverseAllChildren(children, forEachSingleChild, traverseContext); - releaseTraverseContext(traverseContext); - } - - function mapSingleChildIntoContext(bookKeeping, child, childKey) { - var result = bookKeeping.result, - keyPrefix = bookKeeping.keyPrefix, - func = bookKeeping.func, - context = bookKeeping.context; - var mappedChild = func.call(context, child, bookKeeping.count++); - - if (Array.isArray(mappedChild)) { - mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction.thatReturnsArgument); - } else if (mappedChild != null) { - if (isValidElement(mappedChild)) { - mappedChild = cloneAndReplaceKey(mappedChild, keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey); - } - - result.push(mappedChild); - } - } - - function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) { - var escapedPrefix = ''; - - if (prefix != null) { - escapedPrefix = escapeUserProvidedKey(prefix) + '/'; - } - - var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context); - traverseAllChildren(children, mapSingleChildIntoContext, traverseContext); - releaseTraverseContext(traverseContext); - } - - function mapChildren(children, func, context) { - if (children == null) { - return children; - } - - var result = []; - mapIntoWithKeyPrefixInternal(children, result, null, func, context); - return result; - } - - function countChildren(children) { - return traverseAllChildren(children, emptyFunction.thatReturnsNull, null); - } - - function toArray(children) { - var result = []; - mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument); - return result; - } - - function onlyChild(children) { - !isValidElement(children) ? invariant(false, 'React.Children.only expected to receive a single React element child.') : void 0; - return children; - } - - function createContext(defaultValue, calculateChangedBits) { - if (calculateChangedBits === undefined) { - calculateChangedBits = null; - } else { - { - !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warning(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0; - } - } - - var context = { - $$typeof: REACT_CONTEXT_TYPE, - _calculateChangedBits: calculateChangedBits, - _defaultValue: defaultValue, - _currentValue: defaultValue, - _currentValue2: defaultValue, - _changedBits: 0, - _changedBits2: 0, - Provider: null, - Consumer: null - }; - context.Provider = { - $$typeof: REACT_PROVIDER_TYPE, - _context: context - }; - context.Consumer = context; - { - context._currentRenderer = null; - context._currentRenderer2 = null; - } - return context; - } - - function forwardRef(render) { - { - !(typeof render === 'function') ? warning(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render) : void 0; - - if (render != null) { - !(render.defaultProps == null && render.propTypes == null) ? warning(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0; - } - } - return { - $$typeof: REACT_FORWARD_REF_TYPE, - render: render - }; - } - - var describeComponentFrame = function describeComponentFrame(name, source, ownerName) { - return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : ''); - }; - - function isValidElementType(type) { - return typeof type === 'string' || typeof type === 'function' || type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_TIMEOUT_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE); - } - - function getComponentName(fiber) { - var type = fiber.type; - - if (typeof type === 'function') { - return type.displayName || type.name; - } - - if (typeof type === 'string') { - return type; - } - - switch (type) { - case REACT_ASYNC_MODE_TYPE: - return 'AsyncMode'; - - case REACT_CONTEXT_TYPE: - return 'Context.Consumer'; - - case REACT_FRAGMENT_TYPE: - return 'ReactFragment'; - - case REACT_PORTAL_TYPE: - return 'ReactPortal'; - - case REACT_PROFILER_TYPE: - return 'Profiler(' + fiber.pendingProps.id + ')'; - - case REACT_PROVIDER_TYPE: - return 'Context.Provider'; - - case REACT_STRICT_MODE_TYPE: - return 'StrictMode'; - - case REACT_TIMEOUT_TYPE: - return 'Timeout'; - } - - if (typeof type === 'object' && type !== null) { - switch (type.$$typeof) { - case REACT_FORWARD_REF_TYPE: - var functionName = type.render.displayName || type.render.name || ''; - return functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef'; - } - } - - return null; - } - - var currentlyValidatingElement = void 0; - var propTypesMisspellWarningShown = void 0; - - var getDisplayName = function getDisplayName() {}; - - var getStackAddendum = function getStackAddendum() {}; - - { - currentlyValidatingElement = null; - propTypesMisspellWarningShown = false; - - getDisplayName = function getDisplayName(element) { - if (element == null) { - return '#empty'; - } else if (typeof element === 'string' || typeof element === 'number') { - return '#text'; - } else if (typeof element.type === 'string') { - return element.type; - } - - var type = element.type; - - if (type === REACT_FRAGMENT_TYPE) { - return 'React.Fragment'; - } else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) { - var functionName = type.render.displayName || type.render.name || ''; - return functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef'; - } else { - return type.displayName || type.name || 'Unknown'; - } - }; - - getStackAddendum = function getStackAddendum() { - var stack = ''; - - if (currentlyValidatingElement) { - var name = getDisplayName(currentlyValidatingElement); - var owner = currentlyValidatingElement._owner; - stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner)); - } - - stack += ReactDebugCurrentFrame.getStackAddendum() || ''; - return stack; - }; - } - - function getDeclarationErrorAddendum() { - if (ReactCurrentOwner.current) { - var name = getComponentName(ReactCurrentOwner.current); - - if (name) { - return '\n\nCheck the render method of `' + name + '`.'; - } - } - - return ''; - } - - function getSourceInfoErrorAddendum(elementProps) { - if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) { - var source = elementProps.__source; - var fileName = source.fileName.replace(/^.*[\\\/]/, ''); - var lineNumber = source.lineNumber; - return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.'; - } - - return ''; - } - - var ownerHasKeyUseWarning = {}; - - function getCurrentComponentErrorInfo(parentType) { - var info = getDeclarationErrorAddendum(); - - if (!info) { - var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name; - - if (parentName) { - info = '\n\nCheck the top-level render call using <' + parentName + '>.'; - } - } - - return info; - } - - function validateExplicitKey(element, parentType) { - if (!element._store || element._store.validated || element.key != null) { - return; - } - - element._store.validated = true; - var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); - - if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { - return; - } - - ownerHasKeyUseWarning[currentComponentErrorInfo] = true; - var childOwner = ''; - - if (element && element._owner && element._owner !== ReactCurrentOwner.current) { - childOwner = ' It was passed a child from ' + getComponentName(element._owner) + '.'; - } - - currentlyValidatingElement = element; - { - warning(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, getStackAddendum()); - } - currentlyValidatingElement = null; - } - - function validateChildKeys(node, parentType) { - if (typeof node !== 'object') { - return; - } - - if (Array.isArray(node)) { - for (var i = 0; i < node.length; i++) { - var child = node[i]; - - if (isValidElement(child)) { - validateExplicitKey(child, parentType); - } - } - } else if (isValidElement(node)) { - if (node._store) { - node._store.validated = true; - } - } else if (node) { - var iteratorFn = getIteratorFn(node); - - if (typeof iteratorFn === 'function') { - if (iteratorFn !== node.entries) { - var iterator = iteratorFn.call(node); - var step = void 0; - - while (!(step = iterator.next()).done) { - if (isValidElement(step.value)) { - validateExplicitKey(step.value, parentType); - } - } - } - } - } - } - - function validatePropTypes(element) { - var type = element.type; - var name = void 0, - propTypes = void 0; - - if (typeof type === 'function') { - name = type.displayName || type.name; - propTypes = type.propTypes; - } else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) { - var functionName = type.render.displayName || type.render.name || ''; - name = functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef'; - propTypes = type.propTypes; - } else { - return; - } - - if (propTypes) { - currentlyValidatingElement = element; - checkPropTypes(propTypes, element.props, 'prop', name, getStackAddendum); - currentlyValidatingElement = null; - } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) { - propTypesMisspellWarningShown = true; - warning(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown'); - } - - if (typeof type.getDefaultProps === 'function') { - !type.getDefaultProps.isReactClassApproved ? warning(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0; - } - } - - function validateFragmentProps(fragment) { - currentlyValidatingElement = fragment; - var keys = Object.keys(fragment.props); - - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - - if (key !== 'children' && key !== 'key') { - warning(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.%s', key, getStackAddendum()); - break; - } - } - - if (fragment.ref !== null) { - warning(false, 'Invalid attribute `ref` supplied to `React.Fragment`.%s', getStackAddendum()); - } - - currentlyValidatingElement = null; - } - - function createElementWithValidation(type, props, children) { - var validType = isValidElementType(type); - - if (!validType) { - var info = ''; - - if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) { - info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports."; - } - - var sourceInfo = getSourceInfoErrorAddendum(props); - - if (sourceInfo) { - info += sourceInfo; - } else { - info += getDeclarationErrorAddendum(); - } - - info += getStackAddendum() || ''; - var typeString = void 0; - - if (type === null) { - typeString = 'null'; - } else if (Array.isArray(type)) { - typeString = 'array'; - } else { - typeString = typeof type; - } - - warning(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info); - } - - var element = createElement.apply(this, arguments); - - if (element == null) { - return element; - } - - if (validType) { - for (var i = 2; i < arguments.length; i++) { - validateChildKeys(arguments[i], type); - } - } - - if (type === REACT_FRAGMENT_TYPE) { - validateFragmentProps(element); - } else { - validatePropTypes(element); - } - - return element; - } - - function createFactoryWithValidation(type) { - var validatedFactory = createElementWithValidation.bind(null, type); - validatedFactory.type = type; - { - Object.defineProperty(validatedFactory, 'type', { - enumerable: false, - get: function get() { - lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.'); - Object.defineProperty(this, 'type', { - value: type - }); - return type; - } - }); - } - return validatedFactory; - } - - function cloneElementWithValidation(element, props, children) { - var newElement = cloneElement.apply(this, arguments); - - for (var i = 2; i < arguments.length; i++) { - validateChildKeys(arguments[i], newElement.type); - } - - validatePropTypes(newElement); - return newElement; - } - - var React = { - Children: { - map: mapChildren, - forEach: forEachChildren, - count: countChildren, - toArray: toArray, - only: onlyChild - }, - createRef: createRef, - Component: Component, - PureComponent: PureComponent, - createContext: createContext, - forwardRef: forwardRef, - Fragment: REACT_FRAGMENT_TYPE, - StrictMode: REACT_STRICT_MODE_TYPE, - unstable_AsyncMode: REACT_ASYNC_MODE_TYPE, - unstable_Profiler: REACT_PROFILER_TYPE, - createElement: createElementWithValidation, - cloneElement: cloneElementWithValidation, - createFactory: createFactoryWithValidation, - isValidElement: isValidElement, - version: ReactVersion, - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { - ReactCurrentOwner: ReactCurrentOwner, - assign: _assign - } - }; - - if (enableSuspense) { - React.Timeout = REACT_TIMEOUT_TYPE; - } - - { - _assign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, { - ReactDebugCurrentFrame: ReactDebugCurrentFrame, - ReactComponentTreeHook: {} - }); - } - var React$2 = Object.freeze({ - default: React - }); - var React$3 = React$2 && React || React$2; - var react = React$3.default ? React$3.default : React$3; - module.exports = react; - })(); - } -},124,[125,126,127,129,128,130],"node_modules/react/cjs/react.development.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var emptyFunction = _$$_REQUIRE(_dependencyMap[0], './emptyFunction'); - - var warning = emptyFunction; - - if (process.env.NODE_ENV !== 'production') { - var printWarning = function printWarning(format) { - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - var argIndex = 0; - var message = 'Warning: ' + format.replace(/%s/g, function () { - return args[argIndex++]; - }); - - if (typeof console !== 'undefined') { - console.error(message); - } - - try { - throw new Error(message); - } catch (x) {} - }; - - warning = function warning(condition, format) { - if (format === undefined) { - throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); - } - - if (format.indexOf('Failed Composite propType: ') === 0) { - return; - } - - if (!condition) { - for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { - args[_key2 - 2] = arguments[_key2]; - } - - printWarning.apply(undefined, [format].concat(args)); - } - }; - } - - module.exports = warning; -},129,[128],"node_modules/fbjs/lib/warning.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var printWarning = function printWarning() {}; - - if (process.env.NODE_ENV !== 'production') { - var ReactPropTypesSecret = _$$_REQUIRE(_dependencyMap[0], './lib/ReactPropTypesSecret'); - - var loggedTypeFailures = {}; - - printWarning = function printWarning(text) { - var message = 'Warning: ' + text; - - if (typeof console !== 'undefined') { - console.error(message); - } - - try { - throw new Error(message); - } catch (x) {} - }; - } - - function checkPropTypes(typeSpecs, values, location, componentName, getStack) { - if (process.env.NODE_ENV !== 'production') { - for (var typeSpecName in typeSpecs) { - if (typeSpecs.hasOwnProperty(typeSpecName)) { - var error; - - try { - if (typeof typeSpecs[typeSpecName] !== 'function') { - var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'); - err.name = 'Invariant Violation'; - throw err; - } - - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); - } catch (ex) { - error = ex; - } - - if (error && !(error instanceof Error)) { - printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).'); - } - - if (error instanceof Error && !(error.message in loggedTypeFailures)) { - loggedTypeFailures[error.message] = true; - var stack = getStack ? getStack() : ''; - printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')); - } - } - } - } - } - - module.exports = checkPropTypes; -},130,[131],"node_modules/prop-types/checkPropTypes.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - module.exports = ReactPropTypesSecret; -},131,[],"node_modules/prop-types/lib/ReactPropTypesSecret.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var PixelRatio = _$$_REQUIRE(_dependencyMap[0], 'PixelRatio'); - - var ReactNativeStyleAttributes = _$$_REQUIRE(_dependencyMap[1], 'ReactNativeStyleAttributes'); - - var StyleSheetValidation = _$$_REQUIRE(_dependencyMap[2], 'StyleSheetValidation'); - - var flatten = _$$_REQUIRE(_dependencyMap[3], 'flattenStyle'); - - var hairlineWidth = PixelRatio.roundToNearestPixel(0.4); - - if (hairlineWidth === 0) { - hairlineWidth = 1 / PixelRatio.get(); - } - - var absoluteFill = { - position: 'absolute', - left: 0, - right: 0, - top: 0, - bottom: 0 - }; - - if (__DEV__) { - Object.freeze(absoluteFill); - } - - module.exports = { - hairlineWidth: hairlineWidth, - absoluteFill: absoluteFill, - absoluteFillObject: absoluteFill, - compose: function compose(style1, style2) { - if (style1 != null && style2 != null) { - return [style1, style2]; - } else { - return style1 != null ? style1 : style2; - } - }, - flatten: flatten, - setStyleAttributePreprocessor: function setStyleAttributePreprocessor(property, process) { - var value; - - if (typeof ReactNativeStyleAttributes[property] === 'string') { - value = {}; - } else if (typeof ReactNativeStyleAttributes[property] === 'object') { - value = ReactNativeStyleAttributes[property]; - } else { - console.error(property + " is not a valid style attribute"); - return; - } - - if (__DEV__ && typeof value.process === 'function') { - console.warn("Overwriting " + property + " style attribute preprocessor"); - } - - ReactNativeStyleAttributes[property] = _objectSpread({}, value, { - process: process - }); - }, - create: function create(obj) { - if (__DEV__) { - for (var _key in obj) { - StyleSheetValidation.validateStyle(_key, obj); - - if (obj[_key]) { - Object.freeze(obj[_key]); - } - } - } - - return obj; - } - }; -},83,[78,132,133,134],"node_modules/react-native/Libraries/StyleSheet/StyleSheet.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var Dimensions = _$$_REQUIRE(_dependencyMap[0], 'Dimensions'); - - var PixelRatio = function () { - function PixelRatio() { - _classCallCheck(this, PixelRatio); - } - - _createClass(PixelRatio, null, [{ - key: "get", - value: function get() { - return Dimensions.get('window').scale; - } - }, { - key: "getFontScale", - value: function getFontScale() { - return Dimensions.get('window').fontScale || PixelRatio.get(); - } - }, { - key: "getPixelSizeForLayoutSize", - value: function getPixelSizeForLayoutSize(layoutSize) { - return Math.round(layoutSize * PixelRatio.get()); - } - }, { - key: "roundToNearestPixel", - value: function roundToNearestPixel(layoutSize) { - var ratio = PixelRatio.get(); - return Math.round(layoutSize * ratio) / ratio; - } - }, { - key: "startDetecting", - value: function startDetecting() {} - }]); - - return PixelRatio; - }(); - - module.exports = PixelRatio; -},78,[65],"node_modules/react-native/Libraries/Utilities/PixelRatio.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var EventEmitter = _$$_REQUIRE(_dependencyMap[0], 'EventEmitter'); - - var Platform = _$$_REQUIRE(_dependencyMap[1], 'Platform'); - - var RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[2], 'RCTDeviceEventEmitter'); - - var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); - - var eventEmitter = new EventEmitter(); - var dimensionsInitialized = false; - var dimensions = {}; - - var Dimensions = function () { - function Dimensions() { - _classCallCheck(this, Dimensions); - } - - _createClass(Dimensions, null, [{ - key: "set", - value: function set(dims) { - if (dims && dims.windowPhysicalPixels) { - dims = JSON.parse(JSON.stringify(dims)); - var windowPhysicalPixels = dims.windowPhysicalPixels; - dims.window = { - width: windowPhysicalPixels.width / windowPhysicalPixels.scale, - height: windowPhysicalPixels.height / windowPhysicalPixels.scale, - scale: windowPhysicalPixels.scale, - fontScale: windowPhysicalPixels.fontScale - }; - - if (Platform.OS === 'android') { - var screenPhysicalPixels = dims.screenPhysicalPixels; - dims.screen = { - width: screenPhysicalPixels.width / screenPhysicalPixels.scale, - height: screenPhysicalPixels.height / screenPhysicalPixels.scale, - scale: screenPhysicalPixels.scale, - fontScale: screenPhysicalPixels.fontScale - }; - delete dims.screenPhysicalPixels; - } else { - dims.screen = dims.window; - } - - delete dims.windowPhysicalPixels; - } - - _extends(dimensions, dims); - - if (dimensionsInitialized) { - eventEmitter.emit('change', { - window: dimensions.window, - screen: dimensions.screen - }); - } else { - dimensionsInitialized = true; - } - } - }, { - key: "get", - value: function get(dim) { - invariant(dimensions[dim], 'No dimension set for key ' + dim); - return dimensions[dim]; - } - }, { - key: "addEventListener", - value: function addEventListener(type, handler) { - invariant(type === 'change', 'Trying to subscribe to unknown event: "%s"', type); - eventEmitter.addListener(type, handler); - } - }, { - key: "removeEventListener", - value: function removeEventListener(type, handler) { - invariant(type === 'change', 'Trying to remove listener for unknown event: "%s"', type); - eventEmitter.removeListener(type, handler); - } - }]); - - return Dimensions; - }(); - - var dims = global.nativeExtensions && global.nativeExtensions.DeviceInfo && global.nativeExtensions.DeviceInfo.Dimensions; - var nativeExtensionsEnabled = true; - - if (!dims) { - var DeviceInfo = _$$_REQUIRE(_dependencyMap[4], 'DeviceInfo'); - - dims = DeviceInfo.Dimensions; - nativeExtensionsEnabled = false; - } - - invariant(dims, 'Either DeviceInfo native extension or DeviceInfo Native Module must be registered'); - Dimensions.set(dims); - - if (!nativeExtensionsEnabled) { - RCTDeviceEventEmitter.addListener('didUpdateDimensions', function (update) { - Dimensions.set(update); - }); - } - - module.exports = Dimensions; -},65,[117,94,91,4,64],"node_modules/react-native/Libraries/Utilities/Dimensions.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var DeviceInfo = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').DeviceInfo; - - var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); - - invariant(DeviceInfo, 'DeviceInfo native module is not installed correctly'); - module.exports = DeviceInfo; -},64,[93,4],"node_modules/react-native/Libraries/Utilities/DeviceInfo.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var ImageStylePropTypes = _$$_REQUIRE(_dependencyMap[0], 'ImageStylePropTypes'); - - var TextStylePropTypes = _$$_REQUIRE(_dependencyMap[1], 'TextStylePropTypes'); - - var ViewStylePropTypes = _$$_REQUIRE(_dependencyMap[2], 'ViewStylePropTypes'); - - var keyMirror = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/keyMirror'); - - var processColor = _$$_REQUIRE(_dependencyMap[4], 'processColor'); - - var processTransform = _$$_REQUIRE(_dependencyMap[5], 'processTransform'); - - var sizesDiffer = _$$_REQUIRE(_dependencyMap[6], 'sizesDiffer'); - - var ReactNativeStyleAttributes = _objectSpread({}, keyMirror(ViewStylePropTypes), keyMirror(TextStylePropTypes), keyMirror(ImageStylePropTypes)); - - ReactNativeStyleAttributes.transform = { - process: processTransform - }; - ReactNativeStyleAttributes.shadowOffset = { - diff: sizesDiffer - }; - var colorAttributes = { - process: processColor - }; - ReactNativeStyleAttributes.backgroundColor = colorAttributes; - ReactNativeStyleAttributes.borderBottomColor = colorAttributes; - ReactNativeStyleAttributes.borderColor = colorAttributes; - ReactNativeStyleAttributes.borderLeftColor = colorAttributes; - ReactNativeStyleAttributes.borderRightColor = colorAttributes; - ReactNativeStyleAttributes.borderTopColor = colorAttributes; - ReactNativeStyleAttributes.borderStartColor = colorAttributes; - ReactNativeStyleAttributes.borderEndColor = colorAttributes; - ReactNativeStyleAttributes.color = colorAttributes; - ReactNativeStyleAttributes.shadowColor = colorAttributes; - ReactNativeStyleAttributes.textDecorationColor = colorAttributes; - ReactNativeStyleAttributes.tintColor = colorAttributes; - ReactNativeStyleAttributes.textShadowColor = colorAttributes; - ReactNativeStyleAttributes.overlayColor = colorAttributes; - module.exports = ReactNativeStyleAttributes; -},132,[135,136,137,138,95,139,140],"node_modules/react-native/Libraries/Components/View/ReactNativeStyleAttributes.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var ColorPropType = _$$_REQUIRE(_dependencyMap[0], 'ColorPropType'); - - var ImageResizeMode = _$$_REQUIRE(_dependencyMap[1], 'ImageResizeMode'); - - var LayoutPropTypes = _$$_REQUIRE(_dependencyMap[2], 'LayoutPropTypes'); - - var ReactPropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); - - var ShadowPropTypesIOS = _$$_REQUIRE(_dependencyMap[4], 'ShadowPropTypesIOS'); - - var TransformPropTypes = _$$_REQUIRE(_dependencyMap[5], 'TransformPropTypes'); - - var ImageStylePropTypes = _objectSpread({}, LayoutPropTypes, ShadowPropTypesIOS, TransformPropTypes, { - resizeMode: ReactPropTypes.oneOf(Object.keys(ImageResizeMode)), - backfaceVisibility: ReactPropTypes.oneOf(['visible', 'hidden']), - backgroundColor: ColorPropType, - borderColor: ColorPropType, - borderWidth: ReactPropTypes.number, - borderRadius: ReactPropTypes.number, - overflow: ReactPropTypes.oneOf(['visible', 'hidden']), - tintColor: ColorPropType, - opacity: ReactPropTypes.number, - overlayColor: ReactPropTypes.string, - borderTopLeftRadius: ReactPropTypes.number, - borderTopRightRadius: ReactPropTypes.number, - borderBottomLeftRadius: ReactPropTypes.number, - borderBottomRightRadius: ReactPropTypes.number - }); - - module.exports = ImageStylePropTypes; -},135,[98,141,142,143,144,145],"node_modules/react-native/Libraries/Image/ImageStylePropTypes.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var normalizeColor = _$$_REQUIRE(_dependencyMap[0], 'normalizeColor'); - - var colorPropType = function colorPropType(isRequired, props, propName, componentName, location, propFullName) { - var color = props[propName]; - - if (color === undefined || color === null) { - if (isRequired) { - return new Error('Required ' + location + ' `' + (propFullName || propName) + '` was not specified in `' + componentName + '`.'); - } - - return; - } - - if (typeof color === 'number') { - return; - } - - if (normalizeColor(color) === null) { - return new Error('Invalid ' + location + ' `' + (propFullName || propName) + '` supplied to `' + componentName + '`: ' + color + '\n' + "Valid color formats are\n - '#f0f' (#rgb)\n - '#f0fc' (#rgba)\n - '#ff00ff' (#rrggbb)\n - '#ff00ff00' (#rrggbbaa)\n - 'rgb(255, 255, 255)'\n - 'rgba(255, 255, 255, 1.0)'\n - 'hsl(360, 100%, 100%)'\n - 'hsla(360, 100%, 100%, 1.0)'\n - 'transparent'\n - 'red'\n - 0xff00ff00 (0xrrggbbaa)\n"); - } - }; - - var ColorPropType = colorPropType.bind(null, false); - ColorPropType.isRequired = colorPropType.bind(null, true); - module.exports = ColorPropType; -},98,[146],"node_modules/react-native/Libraries/StyleSheet/ColorPropType.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function normalizeColor(color) { - var matchers = getMatchers(); - var match; - - if (typeof color === 'number') { - if (color >>> 0 === color && color >= 0 && color <= 0xffffffff) { - return color; - } - - return null; - } - - if (match = matchers.hex6.exec(color)) { - return parseInt(match[1] + 'ff', 16) >>> 0; - } - - if (names.hasOwnProperty(color)) { - return names[color]; - } - - if (match = matchers.rgb.exec(color)) { - return (parse255(match[1]) << 24 | parse255(match[2]) << 16 | parse255(match[3]) << 8 | 0x000000ff) >>> 0; - } - - if (match = matchers.rgba.exec(color)) { - return (parse255(match[1]) << 24 | parse255(match[2]) << 16 | parse255(match[3]) << 8 | parse1(match[4])) >>> 0; - } - - if (match = matchers.hex3.exec(color)) { - return parseInt(match[1] + match[1] + match[2] + match[2] + match[3] + match[3] + 'ff', 16) >>> 0; - } - - if (match = matchers.hex8.exec(color)) { - return parseInt(match[1], 16) >>> 0; - } - - if (match = matchers.hex4.exec(color)) { - return parseInt(match[1] + match[1] + match[2] + match[2] + match[3] + match[3] + match[4] + match[4], 16) >>> 0; - } - - if (match = matchers.hsl.exec(color)) { - return (hslToRgb(parse360(match[1]), parsePercentage(match[2]), parsePercentage(match[3])) | 0x000000ff) >>> 0; - } - - if (match = matchers.hsla.exec(color)) { - return (hslToRgb(parse360(match[1]), parsePercentage(match[2]), parsePercentage(match[3])) | parse1(match[4])) >>> 0; - } - - return null; - } - - function hue2rgb(p, q, t) { - if (t < 0) { - t += 1; - } - - if (t > 1) { - t -= 1; - } - - if (t < 1 / 6) { - return p + (q - p) * 6 * t; - } - - if (t < 1 / 2) { - return q; - } - - if (t < 2 / 3) { - return p + (q - p) * (2 / 3 - t) * 6; - } - - return p; - } - - function hslToRgb(h, s, l) { - var q = l < 0.5 ? l * (1 + s) : l + s - l * s; - var p = 2 * l - q; - var r = hue2rgb(p, q, h + 1 / 3); - var g = hue2rgb(p, q, h); - var b = hue2rgb(p, q, h - 1 / 3); - return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8; - } - - var NUMBER = '[-+]?\\d*\\.?\\d+'; - var PERCENTAGE = NUMBER + '%'; - - function call() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return '\\(\\s*(' + args.join(')\\s*,\\s*(') + ')\\s*\\)'; - } - - var cachedMatchers; - - function getMatchers() { - if (cachedMatchers === undefined) { - cachedMatchers = { - rgb: new RegExp('rgb' + call(NUMBER, NUMBER, NUMBER)), - rgba: new RegExp('rgba' + call(NUMBER, NUMBER, NUMBER, NUMBER)), - hsl: new RegExp('hsl' + call(NUMBER, PERCENTAGE, PERCENTAGE)), - hsla: new RegExp('hsla' + call(NUMBER, PERCENTAGE, PERCENTAGE, NUMBER)), - hex3: /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - hex4: /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - hex6: /^#([0-9a-fA-F]{6})$/, - hex8: /^#([0-9a-fA-F]{8})$/ - }; - } - - return cachedMatchers; - } - - function parse255(str) { - var int = parseInt(str, 10); - - if (int < 0) { - return 0; - } - - if (int > 255) { - return 255; - } - - return int; - } - - function parse360(str) { - var int = parseFloat(str); - return (int % 360 + 360) % 360 / 360; - } - - function parse1(str) { - var num = parseFloat(str); - - if (num < 0) { - return 0; - } - - if (num > 1) { - return 255; - } - - return Math.round(num * 255); - } - - function parsePercentage(str) { - var int = parseFloat(str); - - if (int < 0) { - return 0; - } - - if (int > 100) { - return 1; - } - - return int / 100; - } - - var names = { - transparent: 0x00000000, - aliceblue: 0xf0f8ffff, - antiquewhite: 0xfaebd7ff, - aqua: 0x00ffffff, - aquamarine: 0x7fffd4ff, - azure: 0xf0ffffff, - beige: 0xf5f5dcff, - bisque: 0xffe4c4ff, - black: 0x000000ff, - blanchedalmond: 0xffebcdff, - blue: 0x0000ffff, - blueviolet: 0x8a2be2ff, - brown: 0xa52a2aff, - burlywood: 0xdeb887ff, - burntsienna: 0xea7e5dff, - cadetblue: 0x5f9ea0ff, - chartreuse: 0x7fff00ff, - chocolate: 0xd2691eff, - coral: 0xff7f50ff, - cornflowerblue: 0x6495edff, - cornsilk: 0xfff8dcff, - crimson: 0xdc143cff, - cyan: 0x00ffffff, - darkblue: 0x00008bff, - darkcyan: 0x008b8bff, - darkgoldenrod: 0xb8860bff, - darkgray: 0xa9a9a9ff, - darkgreen: 0x006400ff, - darkgrey: 0xa9a9a9ff, - darkkhaki: 0xbdb76bff, - darkmagenta: 0x8b008bff, - darkolivegreen: 0x556b2fff, - darkorange: 0xff8c00ff, - darkorchid: 0x9932ccff, - darkred: 0x8b0000ff, - darksalmon: 0xe9967aff, - darkseagreen: 0x8fbc8fff, - darkslateblue: 0x483d8bff, - darkslategray: 0x2f4f4fff, - darkslategrey: 0x2f4f4fff, - darkturquoise: 0x00ced1ff, - darkviolet: 0x9400d3ff, - deeppink: 0xff1493ff, - deepskyblue: 0x00bfffff, - dimgray: 0x696969ff, - dimgrey: 0x696969ff, - dodgerblue: 0x1e90ffff, - firebrick: 0xb22222ff, - floralwhite: 0xfffaf0ff, - forestgreen: 0x228b22ff, - fuchsia: 0xff00ffff, - gainsboro: 0xdcdcdcff, - ghostwhite: 0xf8f8ffff, - gold: 0xffd700ff, - goldenrod: 0xdaa520ff, - gray: 0x808080ff, - green: 0x008000ff, - greenyellow: 0xadff2fff, - grey: 0x808080ff, - honeydew: 0xf0fff0ff, - hotpink: 0xff69b4ff, - indianred: 0xcd5c5cff, - indigo: 0x4b0082ff, - ivory: 0xfffff0ff, - khaki: 0xf0e68cff, - lavender: 0xe6e6faff, - lavenderblush: 0xfff0f5ff, - lawngreen: 0x7cfc00ff, - lemonchiffon: 0xfffacdff, - lightblue: 0xadd8e6ff, - lightcoral: 0xf08080ff, - lightcyan: 0xe0ffffff, - lightgoldenrodyellow: 0xfafad2ff, - lightgray: 0xd3d3d3ff, - lightgreen: 0x90ee90ff, - lightgrey: 0xd3d3d3ff, - lightpink: 0xffb6c1ff, - lightsalmon: 0xffa07aff, - lightseagreen: 0x20b2aaff, - lightskyblue: 0x87cefaff, - lightslategray: 0x778899ff, - lightslategrey: 0x778899ff, - lightsteelblue: 0xb0c4deff, - lightyellow: 0xffffe0ff, - lime: 0x00ff00ff, - limegreen: 0x32cd32ff, - linen: 0xfaf0e6ff, - magenta: 0xff00ffff, - maroon: 0x800000ff, - mediumaquamarine: 0x66cdaaff, - mediumblue: 0x0000cdff, - mediumorchid: 0xba55d3ff, - mediumpurple: 0x9370dbff, - mediumseagreen: 0x3cb371ff, - mediumslateblue: 0x7b68eeff, - mediumspringgreen: 0x00fa9aff, - mediumturquoise: 0x48d1ccff, - mediumvioletred: 0xc71585ff, - midnightblue: 0x191970ff, - mintcream: 0xf5fffaff, - mistyrose: 0xffe4e1ff, - moccasin: 0xffe4b5ff, - navajowhite: 0xffdeadff, - navy: 0x000080ff, - oldlace: 0xfdf5e6ff, - olive: 0x808000ff, - olivedrab: 0x6b8e23ff, - orange: 0xffa500ff, - orangered: 0xff4500ff, - orchid: 0xda70d6ff, - palegoldenrod: 0xeee8aaff, - palegreen: 0x98fb98ff, - paleturquoise: 0xafeeeeff, - palevioletred: 0xdb7093ff, - papayawhip: 0xffefd5ff, - peachpuff: 0xffdab9ff, - peru: 0xcd853fff, - pink: 0xffc0cbff, - plum: 0xdda0ddff, - powderblue: 0xb0e0e6ff, - purple: 0x800080ff, - rebeccapurple: 0x663399ff, - red: 0xff0000ff, - rosybrown: 0xbc8f8fff, - royalblue: 0x4169e1ff, - saddlebrown: 0x8b4513ff, - salmon: 0xfa8072ff, - sandybrown: 0xf4a460ff, - seagreen: 0x2e8b57ff, - seashell: 0xfff5eeff, - sienna: 0xa0522dff, - silver: 0xc0c0c0ff, - skyblue: 0x87ceebff, - slateblue: 0x6a5acdff, - slategray: 0x708090ff, - slategrey: 0x708090ff, - snow: 0xfffafaff, - springgreen: 0x00ff7fff, - steelblue: 0x4682b4ff, - tan: 0xd2b48cff, - teal: 0x008080ff, - thistle: 0xd8bfd8ff, - tomato: 0xff6347ff, - turquoise: 0x40e0d0ff, - violet: 0xee82eeff, - wheat: 0xf5deb3ff, - white: 0xffffffff, - whitesmoke: 0xf5f5f5ff, - yellow: 0xffff00ff, - yellowgreen: 0x9acd32ff - }; - module.exports = normalizeColor; -},146,[],"node_modules/react-native/Libraries/Color/normalizeColor.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var keyMirror = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/keyMirror'); - - var ImageResizeMode = keyMirror({ - contain: null, - cover: null, - stretch: null, - center: null, - repeat: null - }); - module.exports = ImageResizeMode; -},141,[138],"node_modules/react-native/Libraries/Image/ImageResizeMode.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var invariant = _$$_REQUIRE(_dependencyMap[0], './invariant'); - - var keyMirror = function keyMirror(obj) { - var ret = {}; - var key; - !(obj instanceof Object && !Array.isArray(obj)) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'keyMirror(...): Argument must be an object.') : invariant(false) : void 0; - - for (key in obj) { - if (!obj.hasOwnProperty(key)) { - continue; - } - - ret[key] = key; - } - - return ret; - }; - - module.exports = keyMirror; -},138,[4],"node_modules/react-native/node_modules/fbjs/lib/keyMirror.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var ReactPropTypes = _$$_REQUIRE(_dependencyMap[0], 'prop-types'); - - var LayoutPropTypes = { - display: ReactPropTypes.oneOf(['none', 'flex']), - width: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - height: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - start: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - end: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - top: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - left: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - right: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - bottom: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - minWidth: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - maxWidth: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - minHeight: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - maxHeight: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - margin: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - marginVertical: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - marginHorizontal: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - marginTop: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - marginBottom: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - marginLeft: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - marginRight: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - marginStart: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - marginEnd: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - padding: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - paddingVertical: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - paddingHorizontal: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - paddingTop: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - paddingBottom: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - paddingLeft: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - paddingRight: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - paddingStart: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - paddingEnd: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - borderWidth: ReactPropTypes.number, - borderTopWidth: ReactPropTypes.number, - borderStartWidth: ReactPropTypes.number, - borderEndWidth: ReactPropTypes.number, - borderRightWidth: ReactPropTypes.number, - borderBottomWidth: ReactPropTypes.number, - borderLeftWidth: ReactPropTypes.number, - position: ReactPropTypes.oneOf(['absolute', 'relative']), - flexDirection: ReactPropTypes.oneOf(['row', 'row-reverse', 'column', 'column-reverse']), - flexWrap: ReactPropTypes.oneOf(['wrap', 'nowrap', 'wrap-reverse']), - justifyContent: ReactPropTypes.oneOf(['flex-start', 'flex-end', 'center', 'space-between', 'space-around', 'space-evenly']), - alignItems: ReactPropTypes.oneOf(['flex-start', 'flex-end', 'center', 'stretch', 'baseline']), - alignSelf: ReactPropTypes.oneOf(['auto', 'flex-start', 'flex-end', 'center', 'stretch', 'baseline']), - alignContent: ReactPropTypes.oneOf(['flex-start', 'flex-end', 'center', 'stretch', 'space-between', 'space-around']), - overflow: ReactPropTypes.oneOf(['visible', 'hidden', 'scroll']), - flex: ReactPropTypes.number, - flexGrow: ReactPropTypes.number, - flexShrink: ReactPropTypes.number, - flexBasis: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]), - aspectRatio: ReactPropTypes.number, - zIndex: ReactPropTypes.number, - direction: ReactPropTypes.oneOf(['inherit', 'ltr', 'rtl']) - }; - module.exports = LayoutPropTypes; -},142,[143],"node_modules/react-native/Libraries/StyleSheet/LayoutPropTypes.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - if (process.env.NODE_ENV !== 'production') { - var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && (typeof Symbol === "function" ? Symbol.for : "@@for") && (typeof Symbol === "function" ? Symbol.for : "@@for")('react.element') || 0xeac7; - - var isValidElement = function isValidElement(object) { - return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; - }; - - var throwOnDirectAccess = true; - module.exports = _$$_REQUIRE(_dependencyMap[0], './factoryWithTypeCheckers')(isValidElement, throwOnDirectAccess); - } else { - module.exports = _$$_REQUIRE(_dependencyMap[1], './factoryWithThrowingShims')(); - } -},143,[147,148],"node_modules/prop-types/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var assign = _$$_REQUIRE(_dependencyMap[0], 'object-assign'); - - var ReactPropTypesSecret = _$$_REQUIRE(_dependencyMap[1], './lib/ReactPropTypesSecret'); - - var checkPropTypes = _$$_REQUIRE(_dependencyMap[2], './checkPropTypes'); - - var printWarning = function printWarning() {}; - - if (process.env.NODE_ENV !== 'production') { - printWarning = function printWarning(text) { - var message = 'Warning: ' + text; - - if (typeof console !== 'undefined') { - console.error(message); - } - - try { - throw new Error(message); - } catch (x) {} - }; - } - - function emptyFunctionThatReturnsNull() { - return null; - } - - module.exports = function (isValidElement, throwOnDirectAccess) { - var ITERATOR_SYMBOL = typeof Symbol === 'function' && (typeof Symbol === "function" ? Symbol.iterator : "@@iterator"); - var FAUX_ITERATOR_SYMBOL = '@@iterator'; - - function getIteratorFn(maybeIterable) { - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); - - if (typeof iteratorFn === 'function') { - return iteratorFn; - } - } - - var ANONYMOUS = '<>'; - var ReactPropTypes = { - array: createPrimitiveTypeChecker('array'), - bool: createPrimitiveTypeChecker('boolean'), - func: createPrimitiveTypeChecker('function'), - number: createPrimitiveTypeChecker('number'), - object: createPrimitiveTypeChecker('object'), - string: createPrimitiveTypeChecker('string'), - symbol: createPrimitiveTypeChecker('symbol'), - any: createAnyTypeChecker(), - arrayOf: createArrayOfTypeChecker, - element: createElementTypeChecker(), - instanceOf: createInstanceTypeChecker, - node: createNodeChecker(), - objectOf: createObjectOfTypeChecker, - oneOf: createEnumTypeChecker, - oneOfType: createUnionTypeChecker, - shape: createShapeTypeChecker, - exact: createStrictShapeTypeChecker - }; - - function is(x, y) { - if (x === y) { - return x !== 0 || 1 / x === 1 / y; - } else { - return x !== x && y !== y; - } - } - - function PropTypeError(message) { - this.message = message; - this.stack = ''; - } - - PropTypeError.prototype = Error.prototype; - - function createChainableTypeChecker(validate) { - if (process.env.NODE_ENV !== 'production') { - var manualPropTypeCallCache = {}; - var manualPropTypeWarningCount = 0; - } - - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { - componentName = componentName || ANONYMOUS; - propFullName = propFullName || propName; - - if (secret !== ReactPropTypesSecret) { - if (throwOnDirectAccess) { - var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use `PropTypes.checkPropTypes()` to call them. ' + 'Read more at http://fb.me/use-check-prop-types'); - err.name = 'Invariant Violation'; - throw err; - } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') { - var cacheKey = componentName + ':' + propName; - - if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) { - printWarning('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'); - manualPropTypeCallCache[cacheKey] = true; - manualPropTypeWarningCount++; - } - } - } - - if (props[propName] == null) { - if (isRequired) { - if (props[propName] === null) { - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); - } - - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); - } - - return null; - } else { - return validate(props, propName, componentName, location, propFullName); - } - } - - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); - return chainedCheckType; - } - - function createPrimitiveTypeChecker(expectedType) { - function validate(props, propName, componentName, location, propFullName, secret) { - var propValue = props[propName]; - var propType = getPropType(propValue); - - if (propType !== expectedType) { - var preciseType = getPreciseType(propValue); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.')); - } - - return null; - } - - return createChainableTypeChecker(validate); - } - - function createAnyTypeChecker() { - return createChainableTypeChecker(emptyFunctionThatReturnsNull); - } - - function createArrayOfTypeChecker(typeChecker) { - function validate(props, propName, componentName, location, propFullName) { - if (typeof typeChecker !== 'function') { - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); - } - - var propValue = props[propName]; - - if (!Array.isArray(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); - } - - for (var i = 0; i < propValue.length; i++) { - var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret); - - if (error instanceof Error) { - return error; - } - } - - return null; - } - - return createChainableTypeChecker(validate); - } - - function createElementTypeChecker() { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - - if (!isValidElement(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); - } - - return null; - } - - return createChainableTypeChecker(validate); - } - - function createInstanceTypeChecker(expectedClass) { - function validate(props, propName, componentName, location, propFullName) { - if (!(props[propName] instanceof expectedClass)) { - var expectedClassName = expectedClass.name || ANONYMOUS; - var actualClassName = getClassName(props[propName]); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); - } - - return null; - } - - return createChainableTypeChecker(validate); - } - - function createEnumTypeChecker(expectedValues) { - if (!Array.isArray(expectedValues)) { - process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOf, expected an instance of array.') : void 0; - return emptyFunctionThatReturnsNull; - } - - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - - for (var i = 0; i < expectedValues.length; i++) { - if (is(propValue, expectedValues[i])) { - return null; - } - } - - var valuesString = JSON.stringify(expectedValues); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); - } - - return createChainableTypeChecker(validate); - } - - function createObjectOfTypeChecker(typeChecker) { - function validate(props, propName, componentName, location, propFullName) { - if (typeof typeChecker !== 'function') { - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); - } - - var propValue = props[propName]; - var propType = getPropType(propValue); - - if (propType !== 'object') { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); - } - - for (var key in propValue) { - if (propValue.hasOwnProperty(key)) { - var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); - - if (error instanceof Error) { - return error; - } - } - } - - return null; - } - - return createChainableTypeChecker(validate); - } - - function createUnionTypeChecker(arrayOfTypeCheckers) { - if (!Array.isArray(arrayOfTypeCheckers)) { - process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0; - return emptyFunctionThatReturnsNull; - } - - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { - var checker = arrayOfTypeCheckers[i]; - - if (typeof checker !== 'function') { - printWarning('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'); - return emptyFunctionThatReturnsNull; - } - } - - function validate(props, propName, componentName, location, propFullName) { - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { - var checker = arrayOfTypeCheckers[i]; - - if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) { - return null; - } - } - - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.')); - } - - return createChainableTypeChecker(validate); - } - - function createNodeChecker() { - function validate(props, propName, componentName, location, propFullName) { - if (!isNode(props[propName])) { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); - } - - return null; - } - - return createChainableTypeChecker(validate); - } - - function createShapeTypeChecker(shapeTypes) { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = getPropType(propValue); - - if (propType !== 'object') { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); - } - - for (var key in shapeTypes) { - var checker = shapeTypes[key]; - - if (!checker) { - continue; - } - - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); - - if (error) { - return error; - } - } - - return null; - } - - return createChainableTypeChecker(validate); - } - - function createStrictShapeTypeChecker(shapeTypes) { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = getPropType(propValue); - - if (propType !== 'object') { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); - } - - var allKeys = assign({}, props[propName], shapeTypes); - - for (var key in allKeys) { - var checker = shapeTypes[key]; - - if (!checker) { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')); - } - - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); - - if (error) { - return error; - } - } - - return null; - } - - return createChainableTypeChecker(validate); - } - - function isNode(propValue) { - switch (typeof propValue) { - case 'number': - case 'string': - case 'undefined': - return true; - - case 'boolean': - return !propValue; - - case 'object': - if (Array.isArray(propValue)) { - return propValue.every(isNode); - } - - if (propValue === null || isValidElement(propValue)) { - return true; - } - - var iteratorFn = getIteratorFn(propValue); - - if (iteratorFn) { - var iterator = iteratorFn.call(propValue); - var step; - - if (iteratorFn !== propValue.entries) { - while (!(step = iterator.next()).done) { - if (!isNode(step.value)) { - return false; - } - } - } else { - while (!(step = iterator.next()).done) { - var entry = step.value; - - if (entry) { - if (!isNode(entry[1])) { - return false; - } - } - } - } - } else { - return false; - } - - return true; - - default: - return false; - } - } - - function isSymbol(propType, propValue) { - if (propType === 'symbol') { - return true; - } - - if (propValue['@@toStringTag'] === 'Symbol') { - return true; - } - - if (typeof Symbol === 'function' && propValue instanceof Symbol) { - return true; - } - - return false; - } - - function getPropType(propValue) { - var propType = typeof propValue; - - if (Array.isArray(propValue)) { - return 'array'; - } - - if (propValue instanceof RegExp) { - return 'object'; - } - - if (isSymbol(propType, propValue)) { - return 'symbol'; - } - - return propType; - } - - function getPreciseType(propValue) { - if (typeof propValue === 'undefined' || propValue === null) { - return '' + propValue; - } - - var propType = getPropType(propValue); - - if (propType === 'object') { - if (propValue instanceof Date) { - return 'date'; - } else if (propValue instanceof RegExp) { - return 'regexp'; - } - } - - return propType; - } - - function getPostfixForTypeWarning(value) { - var type = getPreciseType(value); - - switch (type) { - case 'array': - case 'object': - return 'an ' + type; - - case 'boolean': - case 'date': - case 'regexp': - return 'a ' + type; - - default: - return type; - } - } - - function getClassName(propValue) { - if (!propValue.constructor || !propValue.constructor.name) { - return ANONYMOUS; - } - - return propValue.constructor.name; - } - - ReactPropTypes.checkPropTypes = checkPropTypes; - ReactPropTypes.PropTypes = ReactPropTypes; - return ReactPropTypes; - }; -},147,[125,131,130],"node_modules/prop-types/factoryWithTypeCheckers.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var ReactPropTypesSecret = _$$_REQUIRE(_dependencyMap[0], './lib/ReactPropTypesSecret'); - - function emptyFunction() {} - - module.exports = function () { - function shim(props, propName, componentName, location, propFullName, secret) { - if (secret === ReactPropTypesSecret) { - return; - } - - var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types'); - err.name = 'Invariant Violation'; - throw err; - } - - ; - shim.isRequired = shim; - - function getShim() { - return shim; - } - - ; - var ReactPropTypes = { - array: shim, - bool: shim, - func: shim, - number: shim, - object: shim, - string: shim, - symbol: shim, - any: shim, - arrayOf: getShim, - element: shim, - instanceOf: getShim, - node: shim, - objectOf: getShim, - oneOf: getShim, - oneOfType: getShim, - shape: getShim, - exact: getShim - }; - ReactPropTypes.checkPropTypes = emptyFunction; - ReactPropTypes.PropTypes = ReactPropTypes; - return ReactPropTypes; - }; -},148,[131],"node_modules/prop-types/factoryWithThrowingShims.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var ColorPropType = _$$_REQUIRE(_dependencyMap[0], 'ColorPropType'); - - var ReactPropTypes = _$$_REQUIRE(_dependencyMap[1], 'prop-types'); - - var ShadowPropTypesIOS = { - shadowColor: ColorPropType, - shadowOffset: ReactPropTypes.shape({ - width: ReactPropTypes.number, - height: ReactPropTypes.number - }), - shadowOpacity: ReactPropTypes.number, - shadowRadius: ReactPropTypes.number - }; - module.exports = ShadowPropTypesIOS; -},144,[98,143],"node_modules/react-native/Libraries/Components/View/ShadowPropTypesIOS.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var ReactPropTypes = _$$_REQUIRE(_dependencyMap[0], 'prop-types'); - - var deprecatedPropType = _$$_REQUIRE(_dependencyMap[1], 'deprecatedPropType'); - - var TransformMatrixPropType = function TransformMatrixPropType(props, propName, componentName) { - if (props[propName]) { - return new Error('The transformMatrix style property is deprecated. ' + 'Use `transform: [{ matrix: ... }]` instead.'); - } - }; - - var DecomposedMatrixPropType = function DecomposedMatrixPropType(props, propName, componentName) { - if (props[propName]) { - return new Error('The decomposedMatrix style property is deprecated. ' + 'Use `transform: [...]` instead.'); - } - }; - - var TransformPropTypes = { - transform: ReactPropTypes.arrayOf(ReactPropTypes.oneOfType([ReactPropTypes.shape({ - perspective: ReactPropTypes.number - }), ReactPropTypes.shape({ - rotate: ReactPropTypes.string - }), ReactPropTypes.shape({ - rotateX: ReactPropTypes.string - }), ReactPropTypes.shape({ - rotateY: ReactPropTypes.string - }), ReactPropTypes.shape({ - rotateZ: ReactPropTypes.string - }), ReactPropTypes.shape({ - scale: ReactPropTypes.number - }), ReactPropTypes.shape({ - scaleX: ReactPropTypes.number - }), ReactPropTypes.shape({ - scaleY: ReactPropTypes.number - }), ReactPropTypes.shape({ - translateX: ReactPropTypes.number - }), ReactPropTypes.shape({ - translateY: ReactPropTypes.number - }), ReactPropTypes.shape({ - skewX: ReactPropTypes.string - }), ReactPropTypes.shape({ - skewY: ReactPropTypes.string - })])), - transformMatrix: TransformMatrixPropType, - decomposedMatrix: DecomposedMatrixPropType, - scaleX: deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.'), - scaleY: deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.'), - rotation: deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.'), - translateX: deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.'), - translateY: deprecatedPropType(ReactPropTypes.number, 'Use the transform prop instead.') - }; - module.exports = TransformPropTypes; -},145,[143,149],"node_modules/react-native/Libraries/StyleSheet/TransformPropTypes.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var UIManager = _$$_REQUIRE(_dependencyMap[0], 'UIManager'); - - function deprecatedPropType(propType, explanation) { - return function validate(props, propName, componentName) { - if (!UIManager[componentName] && props[propName] !== undefined) { - console.warn("`" + propName + "` supplied to `" + componentName + "` has been deprecated. " + explanation); - } - - for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) { - rest[_key - 3] = arguments[_key]; - } - - return propType.apply(void 0, [props, propName, componentName].concat(rest)); - }; - } - - module.exports = deprecatedPropType; -},149,[87],"node_modules/react-native/Libraries/Utilities/deprecatedPropType.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var NativeModules = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'); - - var Platform = _$$_REQUIRE(_dependencyMap[1], 'Platform'); - - var defineLazyObjectProperty = _$$_REQUIRE(_dependencyMap[2], 'defineLazyObjectProperty'); - - var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); - - var UIManager = NativeModules.UIManager; - invariant(UIManager, 'UIManager is undefined. The native module config is probably incorrect.'); - UIManager.__takeSnapshot = UIManager.takeSnapshot; - - UIManager.takeSnapshot = function () { - invariant(false, 'UIManager.takeSnapshot should not be called directly. ' + 'Use ReactNative.takeSnapshot instead.'); - }; - - if (Platform.OS === 'ios') { - Object.keys(UIManager).forEach(function (viewName) { - var viewConfig = UIManager[viewName]; - - if (viewConfig.Manager) { - defineLazyObjectProperty(viewConfig, 'Constants', { - get: function get() { - var viewManager = NativeModules[viewConfig.Manager]; - var constants = {}; - viewManager && Object.keys(viewManager).forEach(function (key) { - var value = viewManager[key]; - - if (typeof value !== 'function') { - constants[key] = value; - } - }); - return constants; - } - }); - defineLazyObjectProperty(viewConfig, 'Commands', { - get: function get() { - var viewManager = NativeModules[viewConfig.Manager]; - var commands = {}; - var index = 0; - viewManager && Object.keys(viewManager).forEach(function (key) { - var value = viewManager[key]; - - if (typeof value === 'function') { - commands[key] = index++; - } - }); - return commands; - } - }); - } - }); - } else if (UIManager.ViewManagerNames) { - var residual = global.__residual ? global.__residual : function (_, f) { - for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; - } - - return f.apply(undefined, args); - }; - residual('void', function (UIManager, defineLazyObjectProperty) { - UIManager.ViewManagerNames.forEach(function (viewManagerName) { - defineLazyObjectProperty(UIManager, viewManagerName, { - get: function get() { - return UIManager.getConstantsForViewManager(viewManagerName); - } - }); - }); - }, UIManager, defineLazyObjectProperty); - if (global.__makePartial) global.__makePartial(UIManager); - } - - module.exports = UIManager; -},87,[93,94,103,4],"node_modules/react-native/Libraries/ReactNative/UIManager.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var ColorPropType = _$$_REQUIRE(_dependencyMap[0], 'ColorPropType'); - - var ReactPropTypes = _$$_REQUIRE(_dependencyMap[1], 'prop-types'); - - var ViewStylePropTypes = _$$_REQUIRE(_dependencyMap[2], 'ViewStylePropTypes'); - - var TextStylePropTypes = _objectSpread({}, ViewStylePropTypes, { - color: ColorPropType, - fontFamily: ReactPropTypes.string, - fontSize: ReactPropTypes.number, - fontStyle: ReactPropTypes.oneOf(['normal', 'italic']), - fontWeight: ReactPropTypes.oneOf(['normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900']), - fontVariant: ReactPropTypes.arrayOf(ReactPropTypes.oneOf(['small-caps', 'oldstyle-nums', 'lining-nums', 'tabular-nums', 'proportional-nums'])), - textShadowOffset: ReactPropTypes.shape({ - width: ReactPropTypes.number, - height: ReactPropTypes.number - }), - textShadowRadius: ReactPropTypes.number, - textShadowColor: ColorPropType, - letterSpacing: ReactPropTypes.number, - lineHeight: ReactPropTypes.number, - textAlign: ReactPropTypes.oneOf(['auto', 'left', 'right', 'center', 'justify']), - textAlignVertical: ReactPropTypes.oneOf(['auto', 'top', 'bottom', 'center']), - includeFontPadding: ReactPropTypes.bool, - textDecorationLine: ReactPropTypes.oneOf(['none', 'underline', 'line-through', 'underline line-through']), - textDecorationStyle: ReactPropTypes.oneOf(['solid', 'double', 'dotted', 'dashed']), - textDecorationColor: ColorPropType, - textTransform: ReactPropTypes.oneOf(['none', 'capitalize', 'uppercase', 'lowercase']), - writingDirection: ReactPropTypes.oneOf(['auto', 'ltr', 'rtl']) - }); - - module.exports = TextStylePropTypes; -},136,[98,143,137],"node_modules/react-native/Libraries/Text/TextStylePropTypes.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var ColorPropType = _$$_REQUIRE(_dependencyMap[0], 'ColorPropType'); - - var LayoutPropTypes = _$$_REQUIRE(_dependencyMap[1], 'LayoutPropTypes'); - - var ReactPropTypes = _$$_REQUIRE(_dependencyMap[2], 'prop-types'); - - var ShadowPropTypesIOS = _$$_REQUIRE(_dependencyMap[3], 'ShadowPropTypesIOS'); - - var TransformPropTypes = _$$_REQUIRE(_dependencyMap[4], 'TransformPropTypes'); - - var ViewStylePropTypes = _objectSpread({}, LayoutPropTypes, ShadowPropTypesIOS, TransformPropTypes, { - backfaceVisibility: ReactPropTypes.oneOf(['visible', 'hidden']), - backgroundColor: ColorPropType, - borderColor: ColorPropType, - borderTopColor: ColorPropType, - borderRightColor: ColorPropType, - borderBottomColor: ColorPropType, - borderLeftColor: ColorPropType, - borderStartColor: ColorPropType, - borderEndColor: ColorPropType, - borderRadius: ReactPropTypes.number, - borderTopLeftRadius: ReactPropTypes.number, - borderTopRightRadius: ReactPropTypes.number, - borderTopStartRadius: ReactPropTypes.number, - borderTopEndRadius: ReactPropTypes.number, - borderBottomLeftRadius: ReactPropTypes.number, - borderBottomRightRadius: ReactPropTypes.number, - borderBottomStartRadius: ReactPropTypes.number, - borderBottomEndRadius: ReactPropTypes.number, - borderStyle: ReactPropTypes.oneOf(['solid', 'dotted', 'dashed']), - borderWidth: ReactPropTypes.number, - borderTopWidth: ReactPropTypes.number, - borderRightWidth: ReactPropTypes.number, - borderBottomWidth: ReactPropTypes.number, - borderLeftWidth: ReactPropTypes.number, - opacity: ReactPropTypes.number, - elevation: ReactPropTypes.number - }); - - module.exports = ViewStylePropTypes; -},137,[98,142,143,144,145],"node_modules/react-native/Libraries/Components/View/ViewStylePropTypes.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); - - var normalizeColor = _$$_REQUIRE(_dependencyMap[1], 'normalizeColor'); - - function processColor(color) { - if (color === undefined || color === null) { - return color; - } - - var int32Color = normalizeColor(color); - - if (int32Color === null || int32Color === undefined) { - return undefined; - } - - int32Color = (int32Color << 24 | int32Color >>> 8) >>> 0; - - if (Platform.OS === 'android') { - int32Color = int32Color | 0x0; - } - - return int32Color; - } - - module.exports = processColor; -},95,[94,146],"node_modules/react-native/Libraries/StyleSheet/processColor.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var MatrixMath = _$$_REQUIRE(_dependencyMap[0], 'MatrixMath'); - - var Platform = _$$_REQUIRE(_dependencyMap[1], 'Platform'); - - var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); - - var stringifySafe = _$$_REQUIRE(_dependencyMap[3], 'stringifySafe'); - - function processTransform(transform) { - if (__DEV__) { - _validateTransforms(transform); - } - - if (Platform.OS === 'android' || Platform.OS === 'ios') { - return transform; - } - - var result = MatrixMath.createIdentityMatrix(); - transform.forEach(function (transformation) { - var key = Object.keys(transformation)[0]; - var value = transformation[key]; - - switch (key) { - case 'matrix': - MatrixMath.multiplyInto(result, result, value); - break; - - case 'perspective': - _multiplyTransform(result, MatrixMath.reusePerspectiveCommand, [value]); - - break; - - case 'rotateX': - _multiplyTransform(result, MatrixMath.reuseRotateXCommand, [_convertToRadians(value)]); - - break; - - case 'rotateY': - _multiplyTransform(result, MatrixMath.reuseRotateYCommand, [_convertToRadians(value)]); - - break; - - case 'rotate': - case 'rotateZ': - _multiplyTransform(result, MatrixMath.reuseRotateZCommand, [_convertToRadians(value)]); - - break; - - case 'scale': - _multiplyTransform(result, MatrixMath.reuseScaleCommand, [value]); - - break; - - case 'scaleX': - _multiplyTransform(result, MatrixMath.reuseScaleXCommand, [value]); - - break; - - case 'scaleY': - _multiplyTransform(result, MatrixMath.reuseScaleYCommand, [value]); - - break; - - case 'translate': - _multiplyTransform(result, MatrixMath.reuseTranslate3dCommand, [value[0], value[1], value[2] || 0]); - - break; - - case 'translateX': - _multiplyTransform(result, MatrixMath.reuseTranslate2dCommand, [value, 0]); - - break; - - case 'translateY': - _multiplyTransform(result, MatrixMath.reuseTranslate2dCommand, [0, value]); - - break; - - case 'skewX': - _multiplyTransform(result, MatrixMath.reuseSkewXCommand, [_convertToRadians(value)]); - - break; - - case 'skewY': - _multiplyTransform(result, MatrixMath.reuseSkewYCommand, [_convertToRadians(value)]); - - break; - - default: - throw new Error('Invalid transform name: ' + key); - } - }); - return result; - } - - function _multiplyTransform(result, matrixMathFunction, args) { - var matrixToApply = MatrixMath.createIdentityMatrix(); - var argsWithIdentity = [matrixToApply].concat(args); - matrixMathFunction.apply(this, argsWithIdentity); - MatrixMath.multiplyInto(result, result, matrixToApply); - } - - function _convertToRadians(value) { - var floatValue = parseFloat(value); - return value.indexOf('rad') > -1 ? floatValue : floatValue * Math.PI / 180; - } - - function _validateTransforms(transform) { - transform.forEach(function (transformation) { - var keys = Object.keys(transformation); - invariant(keys.length === 1, 'You must specify exactly one property per transform object. Passed properties: %s', stringifySafe(transformation)); - var key = keys[0]; - var value = transformation[key]; - - _validateTransform(key, value, transformation); - }); - } - - function _validateTransform(key, value, transformation) { - invariant(!value.getValue, 'You passed an Animated.Value to a normal component. ' + 'You need to wrap that component in an Animated. For example, ' + 'replace by .'); - var multivalueTransforms = ['matrix', 'translate']; - - if (multivalueTransforms.indexOf(key) !== -1) { - invariant(Array.isArray(value), 'Transform with key of %s must have an array as the value: %s', key, stringifySafe(transformation)); - } - - switch (key) { - case 'matrix': - invariant(value.length === 9 || value.length === 16, 'Matrix transform must have a length of 9 (2d) or 16 (3d). ' + 'Provided matrix has a length of %s: %s', value.length, stringifySafe(transformation)); - break; - - case 'translate': - invariant(value.length === 2 || value.length === 3, 'Transform with key translate must be an array of length 2 or 3, found %s: %s', value.length, stringifySafe(transformation)); - break; - - case 'rotateX': - case 'rotateY': - case 'rotateZ': - case 'rotate': - case 'skewX': - case 'skewY': - invariant(typeof value === 'string', 'Transform with key of "%s" must be a string: %s', key, stringifySafe(transformation)); - invariant(value.indexOf('deg') > -1 || value.indexOf('rad') > -1, 'Rotate transform must be expressed in degrees (deg) or radians ' + '(rad): %s', stringifySafe(transformation)); - break; - - case 'perspective': - invariant(typeof value === 'number', 'Transform with key of "%s" must be a number: %s', key, stringifySafe(transformation)); - invariant(value !== 0, 'Transform with key of "%s" cannot be zero: %s', key, stringifySafe(transformation)); - break; - - case 'translateX': - case 'translateY': - case 'scale': - case 'scaleX': - case 'scaleY': - invariant(typeof value === 'number', 'Transform with key of "%s" must be a number: %s', key, stringifySafe(transformation)); - break; - - default: - invariant(false, 'Invalid transform %s: %s', key, stringifySafe(transformation)); - } - } - - module.exports = processTransform; -},139,[150,94,4,107],"node_modules/react-native/Libraries/StyleSheet/processTransform.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } - - function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } - - function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - - function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); - - var MatrixMath = { - createIdentityMatrix: function createIdentityMatrix() { - return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]; - }, - createCopy: function createCopy(m) { - return [m[0], m[1], m[2], m[3], m[4], m[5], m[6], m[7], m[8], m[9], m[10], m[11], m[12], m[13], m[14], m[15]]; - }, - createOrthographic: function createOrthographic(left, right, bottom, top, near, far) { - var a = 2 / (right - left); - var b = 2 / (top - bottom); - var c = -2 / (far - near); - var tx = -(right + left) / (right - left); - var ty = -(top + bottom) / (top - bottom); - var tz = -(far + near) / (far - near); - return [a, 0, 0, 0, 0, b, 0, 0, 0, 0, c, 0, tx, ty, tz, 1]; - }, - createFrustum: function createFrustum(left, right, bottom, top, near, far) { - var r_width = 1 / (right - left); - var r_height = 1 / (top - bottom); - var r_depth = 1 / (near - far); - var x = 2 * (near * r_width); - var y = 2 * (near * r_height); - var A = (right + left) * r_width; - var B = (top + bottom) * r_height; - var C = (far + near) * r_depth; - var D = 2 * (far * near * r_depth); - return [x, 0, 0, 0, 0, y, 0, 0, A, B, C, -1, 0, 0, D, 0]; - }, - createPerspective: function createPerspective(fovInRadians, aspect, near, far) { - var h = 1 / Math.tan(fovInRadians / 2); - var r_depth = 1 / (near - far); - var C = (far + near) * r_depth; - var D = 2 * (far * near * r_depth); - return [h / aspect, 0, 0, 0, 0, h, 0, 0, 0, 0, C, -1, 0, 0, D, 0]; - }, - createTranslate2d: function createTranslate2d(x, y) { - var mat = MatrixMath.createIdentityMatrix(); - MatrixMath.reuseTranslate2dCommand(mat, x, y); - return mat; - }, - reuseTranslate2dCommand: function reuseTranslate2dCommand(matrixCommand, x, y) { - matrixCommand[12] = x; - matrixCommand[13] = y; - }, - reuseTranslate3dCommand: function reuseTranslate3dCommand(matrixCommand, x, y, z) { - matrixCommand[12] = x; - matrixCommand[13] = y; - matrixCommand[14] = z; - }, - createScale: function createScale(factor) { - var mat = MatrixMath.createIdentityMatrix(); - MatrixMath.reuseScaleCommand(mat, factor); - return mat; - }, - reuseScaleCommand: function reuseScaleCommand(matrixCommand, factor) { - matrixCommand[0] = factor; - matrixCommand[5] = factor; - }, - reuseScale3dCommand: function reuseScale3dCommand(matrixCommand, x, y, z) { - matrixCommand[0] = x; - matrixCommand[5] = y; - matrixCommand[10] = z; - }, - reusePerspectiveCommand: function reusePerspectiveCommand(matrixCommand, p) { - matrixCommand[11] = -1 / p; - }, - reuseScaleXCommand: function reuseScaleXCommand(matrixCommand, factor) { - matrixCommand[0] = factor; - }, - reuseScaleYCommand: function reuseScaleYCommand(matrixCommand, factor) { - matrixCommand[5] = factor; - }, - reuseScaleZCommand: function reuseScaleZCommand(matrixCommand, factor) { - matrixCommand[10] = factor; - }, - reuseRotateXCommand: function reuseRotateXCommand(matrixCommand, radians) { - matrixCommand[5] = Math.cos(radians); - matrixCommand[6] = Math.sin(radians); - matrixCommand[9] = -Math.sin(radians); - matrixCommand[10] = Math.cos(radians); - }, - reuseRotateYCommand: function reuseRotateYCommand(matrixCommand, amount) { - matrixCommand[0] = Math.cos(amount); - matrixCommand[2] = -Math.sin(amount); - matrixCommand[8] = Math.sin(amount); - matrixCommand[10] = Math.cos(amount); - }, - reuseRotateZCommand: function reuseRotateZCommand(matrixCommand, radians) { - matrixCommand[0] = Math.cos(radians); - matrixCommand[1] = Math.sin(radians); - matrixCommand[4] = -Math.sin(radians); - matrixCommand[5] = Math.cos(radians); - }, - createRotateZ: function createRotateZ(radians) { - var mat = MatrixMath.createIdentityMatrix(); - MatrixMath.reuseRotateZCommand(mat, radians); - return mat; - }, - reuseSkewXCommand: function reuseSkewXCommand(matrixCommand, radians) { - matrixCommand[4] = Math.tan(radians); - }, - reuseSkewYCommand: function reuseSkewYCommand(matrixCommand, radians) { - matrixCommand[1] = Math.tan(radians); - }, - multiplyInto: function multiplyInto(out, a, b) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a03 = a[3], - a10 = a[4], - a11 = a[5], - a12 = a[6], - a13 = a[7], - a20 = a[8], - a21 = a[9], - a22 = a[10], - a23 = a[11], - a30 = a[12], - a31 = a[13], - a32 = a[14], - a33 = a[15]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3]; - out[0] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[1] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[2] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[3] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - b0 = b[4]; - b1 = b[5]; - b2 = b[6]; - b3 = b[7]; - out[4] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[5] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[6] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[7] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - b0 = b[8]; - b1 = b[9]; - b2 = b[10]; - b3 = b[11]; - out[8] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[9] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[10] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[11] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - b0 = b[12]; - b1 = b[13]; - b2 = b[14]; - b3 = b[15]; - out[12] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[13] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[14] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[15] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - }, - determinant: function determinant(matrix) { - var _matrix = _slicedToArray(matrix, 16), - m00 = _matrix[0], - m01 = _matrix[1], - m02 = _matrix[2], - m03 = _matrix[3], - m10 = _matrix[4], - m11 = _matrix[5], - m12 = _matrix[6], - m13 = _matrix[7], - m20 = _matrix[8], - m21 = _matrix[9], - m22 = _matrix[10], - m23 = _matrix[11], - m30 = _matrix[12], - m31 = _matrix[13], - m32 = _matrix[14], - m33 = _matrix[15]; - - return m03 * m12 * m21 * m30 - m02 * m13 * m21 * m30 - m03 * m11 * m22 * m30 + m01 * m13 * m22 * m30 + m02 * m11 * m23 * m30 - m01 * m12 * m23 * m30 - m03 * m12 * m20 * m31 + m02 * m13 * m20 * m31 + m03 * m10 * m22 * m31 - m00 * m13 * m22 * m31 - m02 * m10 * m23 * m31 + m00 * m12 * m23 * m31 + m03 * m11 * m20 * m32 - m01 * m13 * m20 * m32 - m03 * m10 * m21 * m32 + m00 * m13 * m21 * m32 + m01 * m10 * m23 * m32 - m00 * m11 * m23 * m32 - m02 * m11 * m20 * m33 + m01 * m12 * m20 * m33 + m02 * m10 * m21 * m33 - m00 * m12 * m21 * m33 - m01 * m10 * m22 * m33 + m00 * m11 * m22 * m33; - }, - inverse: function inverse(matrix) { - var det = MatrixMath.determinant(matrix); - - if (!det) { - return matrix; - } - - var _matrix2 = _slicedToArray(matrix, 16), - m00 = _matrix2[0], - m01 = _matrix2[1], - m02 = _matrix2[2], - m03 = _matrix2[3], - m10 = _matrix2[4], - m11 = _matrix2[5], - m12 = _matrix2[6], - m13 = _matrix2[7], - m20 = _matrix2[8], - m21 = _matrix2[9], - m22 = _matrix2[10], - m23 = _matrix2[11], - m30 = _matrix2[12], - m31 = _matrix2[13], - m32 = _matrix2[14], - m33 = _matrix2[15]; - - return [(m12 * m23 * m31 - m13 * m22 * m31 + m13 * m21 * m32 - m11 * m23 * m32 - m12 * m21 * m33 + m11 * m22 * m33) / det, (m03 * m22 * m31 - m02 * m23 * m31 - m03 * m21 * m32 + m01 * m23 * m32 + m02 * m21 * m33 - m01 * m22 * m33) / det, (m02 * m13 * m31 - m03 * m12 * m31 + m03 * m11 * m32 - m01 * m13 * m32 - m02 * m11 * m33 + m01 * m12 * m33) / det, (m03 * m12 * m21 - m02 * m13 * m21 - m03 * m11 * m22 + m01 * m13 * m22 + m02 * m11 * m23 - m01 * m12 * m23) / det, (m13 * m22 * m30 - m12 * m23 * m30 - m13 * m20 * m32 + m10 * m23 * m32 + m12 * m20 * m33 - m10 * m22 * m33) / det, (m02 * m23 * m30 - m03 * m22 * m30 + m03 * m20 * m32 - m00 * m23 * m32 - m02 * m20 * m33 + m00 * m22 * m33) / det, (m03 * m12 * m30 - m02 * m13 * m30 - m03 * m10 * m32 + m00 * m13 * m32 + m02 * m10 * m33 - m00 * m12 * m33) / det, (m02 * m13 * m20 - m03 * m12 * m20 + m03 * m10 * m22 - m00 * m13 * m22 - m02 * m10 * m23 + m00 * m12 * m23) / det, (m11 * m23 * m30 - m13 * m21 * m30 + m13 * m20 * m31 - m10 * m23 * m31 - m11 * m20 * m33 + m10 * m21 * m33) / det, (m03 * m21 * m30 - m01 * m23 * m30 - m03 * m20 * m31 + m00 * m23 * m31 + m01 * m20 * m33 - m00 * m21 * m33) / det, (m01 * m13 * m30 - m03 * m11 * m30 + m03 * m10 * m31 - m00 * m13 * m31 - m01 * m10 * m33 + m00 * m11 * m33) / det, (m03 * m11 * m20 - m01 * m13 * m20 - m03 * m10 * m21 + m00 * m13 * m21 + m01 * m10 * m23 - m00 * m11 * m23) / det, (m12 * m21 * m30 - m11 * m22 * m30 - m12 * m20 * m31 + m10 * m22 * m31 + m11 * m20 * m32 - m10 * m21 * m32) / det, (m01 * m22 * m30 - m02 * m21 * m30 + m02 * m20 * m31 - m00 * m22 * m31 - m01 * m20 * m32 + m00 * m21 * m32) / det, (m02 * m11 * m30 - m01 * m12 * m30 - m02 * m10 * m31 + m00 * m12 * m31 + m01 * m10 * m32 - m00 * m11 * m32) / det, (m01 * m12 * m20 - m02 * m11 * m20 + m02 * m10 * m21 - m00 * m12 * m21 - m01 * m10 * m22 + m00 * m11 * m22) / det]; - }, - transpose: function transpose(m) { - return [m[0], m[4], m[8], m[12], m[1], m[5], m[9], m[13], m[2], m[6], m[10], m[14], m[3], m[7], m[11], m[15]]; - }, - multiplyVectorByMatrix: function multiplyVectorByMatrix(v, m) { - var _v = _slicedToArray(v, 4), - vx = _v[0], - vy = _v[1], - vz = _v[2], - vw = _v[3]; - - return [vx * m[0] + vy * m[4] + vz * m[8] + vw * m[12], vx * m[1] + vy * m[5] + vz * m[9] + vw * m[13], vx * m[2] + vy * m[6] + vz * m[10] + vw * m[14], vx * m[3] + vy * m[7] + vz * m[11] + vw * m[15]]; - }, - v3Length: function v3Length(a) { - return Math.sqrt(a[0] * a[0] + a[1] * a[1] + a[2] * a[2]); - }, - v3Normalize: function v3Normalize(vector, v3Length) { - var im = 1 / (v3Length || MatrixMath.v3Length(vector)); - return [vector[0] * im, vector[1] * im, vector[2] * im]; - }, - v3Dot: function v3Dot(a, b) { - return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; - }, - v3Combine: function v3Combine(a, b, aScale, bScale) { - return [aScale * a[0] + bScale * b[0], aScale * a[1] + bScale * b[1], aScale * a[2] + bScale * b[2]]; - }, - v3Cross: function v3Cross(a, b) { - return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]]; - }, - quaternionToDegreesXYZ: function quaternionToDegreesXYZ(q, matrix, row) { - var _q = _slicedToArray(q, 4), - qx = _q[0], - qy = _q[1], - qz = _q[2], - qw = _q[3]; - - var qw2 = qw * qw; - var qx2 = qx * qx; - var qy2 = qy * qy; - var qz2 = qz * qz; - var test = qx * qy + qz * qw; - var unit = qw2 + qx2 + qy2 + qz2; - var conv = 180 / Math.PI; - - if (test > 0.49999 * unit) { - return [0, 2 * Math.atan2(qx, qw) * conv, 90]; - } - - if (test < -0.49999 * unit) { - return [0, -2 * Math.atan2(qx, qw) * conv, -90]; - } - - return [MatrixMath.roundTo3Places(Math.atan2(2 * qx * qw - 2 * qy * qz, 1 - 2 * qx2 - 2 * qz2) * conv), MatrixMath.roundTo3Places(Math.atan2(2 * qy * qw - 2 * qx * qz, 1 - 2 * qy2 - 2 * qz2) * conv), MatrixMath.roundTo3Places(Math.asin(2 * qx * qy + 2 * qz * qw) * conv)]; - }, - roundTo3Places: function roundTo3Places(n) { - var arr = n.toString().split('e'); - return Math.round(arr[0] + 'e' + (arr[1] ? +arr[1] - 3 : 3)) * 0.001; - }, - decomposeMatrix: function decomposeMatrix(transformMatrix) { - invariant(transformMatrix.length === 16, 'Matrix decomposition needs a list of 3d matrix values, received %s', transformMatrix); - var perspective = []; - var quaternion = []; - var scale = []; - var skew = []; - var translation = []; - - if (!transformMatrix[15]) { - return; - } - - var matrix = []; - var perspectiveMatrix = []; - - for (var i = 0; i < 4; i++) { - matrix.push([]); - - for (var j = 0; j < 4; j++) { - var value = transformMatrix[i * 4 + j] / transformMatrix[15]; - matrix[i].push(value); - perspectiveMatrix.push(j === 3 ? 0 : value); - } - } - - perspectiveMatrix[15] = 1; - - if (!MatrixMath.determinant(perspectiveMatrix)) { - return; - } - - if (matrix[0][3] !== 0 || matrix[1][3] !== 0 || matrix[2][3] !== 0) { - var rightHandSide = [matrix[0][3], matrix[1][3], matrix[2][3], matrix[3][3]]; - var inversePerspectiveMatrix = MatrixMath.inverse(perspectiveMatrix); - var transposedInversePerspectiveMatrix = MatrixMath.transpose(inversePerspectiveMatrix); - var perspective = MatrixMath.multiplyVectorByMatrix(rightHandSide, transposedInversePerspectiveMatrix); - } else { - perspective[0] = perspective[1] = perspective[2] = 0; - perspective[3] = 1; - } - - for (var i = 0; i < 3; i++) { - translation[i] = matrix[3][i]; - } - - var row = []; - - for (i = 0; i < 3; i++) { - row[i] = [matrix[i][0], matrix[i][1], matrix[i][2]]; - } - - scale[0] = MatrixMath.v3Length(row[0]); - row[0] = MatrixMath.v3Normalize(row[0], scale[0]); - skew[0] = MatrixMath.v3Dot(row[0], row[1]); - row[1] = MatrixMath.v3Combine(row[1], row[0], 1.0, -skew[0]); - skew[0] = MatrixMath.v3Dot(row[0], row[1]); - row[1] = MatrixMath.v3Combine(row[1], row[0], 1.0, -skew[0]); - scale[1] = MatrixMath.v3Length(row[1]); - row[1] = MatrixMath.v3Normalize(row[1], scale[1]); - skew[0] /= scale[1]; - skew[1] = MatrixMath.v3Dot(row[0], row[2]); - row[2] = MatrixMath.v3Combine(row[2], row[0], 1.0, -skew[1]); - skew[2] = MatrixMath.v3Dot(row[1], row[2]); - row[2] = MatrixMath.v3Combine(row[2], row[1], 1.0, -skew[2]); - scale[2] = MatrixMath.v3Length(row[2]); - row[2] = MatrixMath.v3Normalize(row[2], scale[2]); - skew[1] /= scale[2]; - skew[2] /= scale[2]; - var pdum3 = MatrixMath.v3Cross(row[1], row[2]); - - if (MatrixMath.v3Dot(row[0], pdum3) < 0) { - for (i = 0; i < 3; i++) { - scale[i] *= -1; - row[i][0] *= -1; - row[i][1] *= -1; - row[i][2] *= -1; - } - } - - quaternion[0] = 0.5 * Math.sqrt(Math.max(1 + row[0][0] - row[1][1] - row[2][2], 0)); - quaternion[1] = 0.5 * Math.sqrt(Math.max(1 - row[0][0] + row[1][1] - row[2][2], 0)); - quaternion[2] = 0.5 * Math.sqrt(Math.max(1 - row[0][0] - row[1][1] + row[2][2], 0)); - quaternion[3] = 0.5 * Math.sqrt(Math.max(1 + row[0][0] + row[1][1] + row[2][2], 0)); - - if (row[2][1] > row[1][2]) { - quaternion[0] = -quaternion[0]; - } - - if (row[0][2] > row[2][0]) { - quaternion[1] = -quaternion[1]; - } - - if (row[1][0] > row[0][1]) { - quaternion[2] = -quaternion[2]; - } - - var rotationDegrees; - - if (quaternion[0] < 0.001 && quaternion[0] >= 0 && quaternion[1] < 0.001 && quaternion[1] >= 0) { - rotationDegrees = [0, 0, MatrixMath.roundTo3Places(Math.atan2(row[0][1], row[0][0]) * 180 / Math.PI)]; - } else { - rotationDegrees = MatrixMath.quaternionToDegreesXYZ(quaternion, matrix, row); - } - - return { - rotationDegrees: rotationDegrees, - perspective: perspective, - quaternion: quaternion, - scale: scale, - skew: skew, - translation: translation, - rotate: rotationDegrees[2], - rotateX: rotationDegrees[0], - rotateY: rotationDegrees[1], - scaleX: scale[0], - scaleY: scale[1], - translateX: translation[0], - translateY: translation[1] - }; - } - }; - module.exports = MatrixMath; -},150,[4],"node_modules/react-native/Libraries/Utilities/MatrixMath.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var dummySize = { - width: undefined, - height: undefined - }; - - var sizesDiffer = function sizesDiffer(one, two) { - one = one || dummySize; - two = two || dummySize; - return one !== two && (one.width !== two.width || one.height !== two.height); - }; - - module.exports = sizesDiffer; -},140,[],"node_modules/react-native/Libraries/Utilities/differ/sizesDiffer.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var ImageStylePropTypes = _$$_REQUIRE(_dependencyMap[0], 'ImageStylePropTypes'); - - var TextStylePropTypes = _$$_REQUIRE(_dependencyMap[1], 'TextStylePropTypes'); - - var ViewStylePropTypes = _$$_REQUIRE(_dependencyMap[2], 'ViewStylePropTypes'); - - var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); - - var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - - var StyleSheetValidation = function () { - function StyleSheetValidation() { - _classCallCheck(this, StyleSheetValidation); - } - - _createClass(StyleSheetValidation, null, [{ - key: "validateStyleProp", - value: function validateStyleProp(prop, style, caller) { - if (!__DEV__) { - return; - } - - if (allStylePropTypes[prop] === undefined) { - var message1 = '"' + prop + '" is not a valid style property.'; - var message2 = '\nValid style props: ' + JSON.stringify(Object.keys(allStylePropTypes).sort(), null, ' '); - styleError(message1, style, caller, message2); - } - - var error = allStylePropTypes[prop](style, prop, caller, 'prop', null, ReactPropTypesSecret); - - if (error) { - styleError(error.message, style, caller); - } - } - }, { - key: "validateStyle", - value: function validateStyle(name, styles) { - if (!__DEV__) { - return; - } - - for (var prop in styles[name]) { - StyleSheetValidation.validateStyleProp(prop, styles[name], 'StyleSheet ' + name); - } - } - }, { - key: "addValidStylePropTypes", - value: function addValidStylePropTypes(stylePropTypes) { - for (var key in stylePropTypes) { - allStylePropTypes[key] = stylePropTypes[key]; - } - } - }]); - - return StyleSheetValidation; - }(); - - var styleError = function styleError(message1, style, caller, message2) { - invariant(false, message1 + '\n' + (caller || '<>') + ': ' + JSON.stringify(style, null, ' ') + (message2 || '')); - }; - - var allStylePropTypes = {}; - StyleSheetValidation.addValidStylePropTypes(ImageStylePropTypes); - StyleSheetValidation.addValidStylePropTypes(TextStylePropTypes); - StyleSheetValidation.addValidStylePropTypes(ViewStylePropTypes); - module.exports = StyleSheetValidation; -},133,[135,136,137,4],"node_modules/react-native/Libraries/StyleSheet/StyleSheetValidation.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function flattenStyle(style) { - if (style === null || typeof style !== 'object') { - return undefined; - } - - if (!Array.isArray(style)) { - return style; - } - - var result = {}; - - for (var i = 0, styleLength = style.length; i < styleLength; ++i) { - var computedStyle = flattenStyle(style[i]); - - if (computedStyle) { - for (var key in computedStyle) { - result[key] = computedStyle[key]; - } - } - } - - return result; - } - - module.exports = flattenStyle; -},134,[],"node_modules/react-native/Libraries/StyleSheet/flattenStyle.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/View/View.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - var React = _$$_REQUIRE(_dependencyMap[0], 'React'); - - var TextAncestor = _$$_REQUIRE(_dependencyMap[1], 'TextAncestor'); - - var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); - - var requireNativeComponent = _$$_REQUIRE(_dependencyMap[3], 'requireNativeComponent'); - - var RCTView = requireNativeComponent('RCTView'); - var ViewToExport = RCTView; - - if (__DEV__) { - ViewToExport = React.forwardRef(function (props, ref) { - return React.createElement(TextAncestor.Consumer, { - __source: { - fileName: _jsxFileName, - lineNumber: 37 - } - }, function (hasTextAncestor) { - invariant(!hasTextAncestor, 'Nesting of within is not currently supported.'); - return React.createElement(RCTView, _extends({}, props, { - ref: ref, - __source: { - fileName: _jsxFileName, - lineNumber: 43 - } - })); - }); - }); - ViewToExport.displayName = 'View'; - } - - module.exports = ViewToExport; -},48,[121,151,4,96],"node_modules/react-native/Libraries/Components/View/View.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var React = _$$_REQUIRE(_dependencyMap[0], 'React'); - - module.exports = React.createContext(false); -},151,[121],"node_modules/react-native/Libraries/Text/TextAncestor.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var ReactNativeStyleAttributes = _$$_REQUIRE(_dependencyMap[0], 'ReactNativeStyleAttributes'); - - var UIManager = _$$_REQUIRE(_dependencyMap[1], 'UIManager'); - - var createReactNativeComponentClass = _$$_REQUIRE(_dependencyMap[2], 'createReactNativeComponentClass'); - - var insetsDiffer = _$$_REQUIRE(_dependencyMap[3], 'insetsDiffer'); - - var matricesDiffer = _$$_REQUIRE(_dependencyMap[4], 'matricesDiffer'); - - var pointsDiffer = _$$_REQUIRE(_dependencyMap[5], 'pointsDiffer'); - - var processColor = _$$_REQUIRE(_dependencyMap[6], 'processColor'); - - var resolveAssetSource = _$$_REQUIRE(_dependencyMap[7], 'resolveAssetSource'); - - var sizesDiffer = _$$_REQUIRE(_dependencyMap[8], 'sizesDiffer'); - - var invariant = _$$_REQUIRE(_dependencyMap[9], 'fbjs/lib/invariant'); - - var warning = _$$_REQUIRE(_dependencyMap[10], 'fbjs/lib/warning'); - - var requireNativeComponent = function requireNativeComponent(uiViewClassName) { - return createReactNativeComponentClass(uiViewClassName, function () { - var viewConfig = UIManager[uiViewClassName]; - invariant(viewConfig != null && viewConfig.NativeProps != null, 'requireNativeComponent: "%s" was not found in the UIManager.', uiViewClassName); - var baseModuleName = viewConfig.baseModuleName, - bubblingEventTypes = viewConfig.bubblingEventTypes, - directEventTypes = viewConfig.directEventTypes; - var nativeProps = viewConfig.NativeProps; - - while (baseModuleName) { - var baseModule = UIManager[baseModuleName]; - - if (!baseModule) { - warning(false, 'Base module "%s" does not exist', baseModuleName); - baseModuleName = null; - } else { - bubblingEventTypes = _objectSpread({}, baseModule.bubblingEventTypes, bubblingEventTypes); - directEventTypes = _objectSpread({}, baseModule.directEventTypes, directEventTypes); - nativeProps = _objectSpread({}, baseModule.NativeProps, nativeProps); - baseModuleName = baseModule.baseModuleName; - } - } - - var validAttributes = {}; - - for (var key in nativeProps) { - var typeName = nativeProps[key]; - var diff = getDifferForType(typeName); - var process = getProcessorForType(typeName); - validAttributes[key] = diff == null && process == null ? true : { - diff: diff, - process: process - }; - } - - validAttributes.style = ReactNativeStyleAttributes; - - _extends(viewConfig, { - uiViewClassName: uiViewClassName, - validAttributes: validAttributes, - bubblingEventTypes: bubblingEventTypes, - directEventTypes: directEventTypes - }); - - if (!hasAttachedDefaultEventTypes) { - attachDefaultEventTypes(viewConfig); - hasAttachedDefaultEventTypes = true; - } - - return viewConfig; - }); - }; - - var hasAttachedDefaultEventTypes = false; - - function attachDefaultEventTypes(viewConfig) { - if (UIManager.ViewManagerNames) { - viewConfig = merge(viewConfig, UIManager.getDefaultEventTypes()); - } else { - viewConfig.bubblingEventTypes = merge(viewConfig.bubblingEventTypes, UIManager.genericBubblingEventTypes); - viewConfig.directEventTypes = merge(viewConfig.directEventTypes, UIManager.genericDirectEventTypes); - } - } - - function merge(destination, source) { - if (!source) { - return destination; - } - - if (!destination) { - return source; - } - - for (var key in source) { - if (!source.hasOwnProperty(key)) { - continue; - } - - var sourceValue = source[key]; - - if (destination.hasOwnProperty(key)) { - var destinationValue = destination[key]; - - if (typeof sourceValue === 'object' && typeof destinationValue === 'object') { - sourceValue = merge(destinationValue, sourceValue); - } - } - - destination[key] = sourceValue; - } - - return destination; - } - - function getDifferForType(typeName) { - switch (typeName) { - case 'CATransform3D': - return matricesDiffer; - - case 'CGPoint': - return pointsDiffer; - - case 'CGSize': - return sizesDiffer; - - case 'UIEdgeInsets': - return insetsDiffer; - } - - return null; - } - - function getProcessorForType(typeName) { - switch (typeName) { - case 'CGColor': - case 'UIColor': - return processColor; - - case 'CGColorArray': - case 'UIColorArray': - return processColorArray; - - case 'CGImage': - case 'UIImage': - case 'RCTImageSource': - return resolveAssetSource; - - case 'Color': - return processColor; - - case 'ColorArray': - return processColorArray; - } - - return null; - } - - function processColorArray(colors) { - return colors == null ? null : colors.map(processColor); - } - - module.exports = requireNativeComponent; -},96,[132,87,152,153,154,155,95,156,140,4,111],"node_modules/react-native/Libraries/ReactNative/requireNativeComponent.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _require = _$$_REQUIRE(_dependencyMap[0], 'ReactNativeViewConfigRegistry'), - register = _require.register; - - var createReactNativeComponentClass = function createReactNativeComponentClass(name, callback) { - return register(name, callback); - }; - - module.exports = createReactNativeComponentClass; -},152,[157],"node_modules/react-native/Libraries/Renderer/shims/createReactNativeComponentClass.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); - - var customBubblingEventTypes = {}; - var customDirectEventTypes = {}; - var eventTypes = {}; - exports.customBubblingEventTypes = customBubblingEventTypes; - exports.customDirectEventTypes = customDirectEventTypes; - exports.eventTypes = eventTypes; - var viewConfigCallbacks = new Map(); - var viewConfigs = new Map(); - - function processEventTypes(viewConfig) { - var bubblingEventTypes = viewConfig.bubblingEventTypes, - directEventTypes = viewConfig.directEventTypes; - - if (__DEV__) { - if (bubblingEventTypes != null && directEventTypes != null) { - for (var topLevelType in directEventTypes) { - invariant(bubblingEventTypes[topLevelType] == null, 'Event cannot be both direct and bubbling: %s', topLevelType); - } - } - } - - if (bubblingEventTypes != null) { - for (var _topLevelType in bubblingEventTypes) { - if (customBubblingEventTypes[_topLevelType] == null) { - eventTypes[_topLevelType] = customBubblingEventTypes[_topLevelType] = bubblingEventTypes[_topLevelType]; - } - } - } - - if (directEventTypes != null) { - for (var _topLevelType2 in directEventTypes) { - if (customDirectEventTypes[_topLevelType2] == null) { - eventTypes[_topLevelType2] = customDirectEventTypes[_topLevelType2] = directEventTypes[_topLevelType2]; - } - } - } - } - - exports.register = function (name, callback) { - invariant(!viewConfigCallbacks.has(name), 'Tried to register two views with the same name %s', name); - viewConfigCallbacks.set(name, callback); - return name; - }; - - exports.get = function (name) { - var viewConfig; - - if (!viewConfigs.has(name)) { - var callback = viewConfigCallbacks.get(name); - invariant(typeof callback === 'function', 'View config not found for name %s', name); - viewConfigCallbacks.set(name, null); - viewConfig = callback(); - processEventTypes(viewConfig); - viewConfigs.set(name, viewConfig); - } else { - viewConfig = viewConfigs.get(name); - } - - invariant(viewConfig, 'View config not found for name %s', name); - return viewConfig; - }; -},157,[4],"node_modules/react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var dummyInsets = { - top: undefined, - left: undefined, - right: undefined, - bottom: undefined - }; - - var insetsDiffer = function insetsDiffer(one, two) { - one = one || dummyInsets; - two = two || dummyInsets; - return one !== two && (one.top !== two.top || one.left !== two.left || one.right !== two.right || one.bottom !== two.bottom); - }; - - module.exports = insetsDiffer; -},153,[],"node_modules/react-native/Libraries/Utilities/differ/insetsDiffer.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var matricesDiffer = function matricesDiffer(one, two) { - if (one === two) { - return false; - } - - return !one || !two || one[12] !== two[12] || one[13] !== two[13] || one[14] !== two[14] || one[5] !== two[5] || one[10] !== two[10] || one[1] !== two[1] || one[2] !== two[2] || one[3] !== two[3] || one[4] !== two[4] || one[6] !== two[6] || one[7] !== two[7] || one[8] !== two[8] || one[9] !== two[9] || one[11] !== two[11] || one[15] !== two[15]; - }; - - module.exports = matricesDiffer; -},154,[],"node_modules/react-native/Libraries/Utilities/differ/matricesDiffer.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var dummyPoint = { - x: undefined, - y: undefined - }; - - var pointsDiffer = function pointsDiffer(one, two) { - one = one || dummyPoint; - two = two || dummyPoint; - return one !== two && (one.x !== two.x || one.y !== two.y); - }; - - module.exports = pointsDiffer; -},155,[],"node_modules/react-native/Libraries/Utilities/differ/pointsDiffer.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var AssetRegistry = _$$_REQUIRE(_dependencyMap[0], 'AssetRegistry'); - - var AssetSourceResolver = _$$_REQUIRE(_dependencyMap[1], 'AssetSourceResolver'); - - var _customSourceTransformer, _serverURL, _scriptURL; - - var _sourceCodeScriptURL; - - function getSourceCodeScriptURL() { - if (_sourceCodeScriptURL) { - return _sourceCodeScriptURL; - } - - var sourceCode = global.nativeExtensions && global.nativeExtensions.SourceCode; - - if (!sourceCode) { - var NativeModules = _$$_REQUIRE(_dependencyMap[2], 'NativeModules'); - - sourceCode = NativeModules && NativeModules.SourceCode; - } - - _sourceCodeScriptURL = sourceCode.scriptURL; - return _sourceCodeScriptURL; - } - - function getDevServerURL() { - if (_serverURL === undefined) { - var sourceCodeScriptURL = getSourceCodeScriptURL(); - var match = sourceCodeScriptURL && sourceCodeScriptURL.match(/^https?:\/\/.*?\//); - - if (match) { - _serverURL = match[0]; - } else { - _serverURL = null; - } - } - - return _serverURL; - } - - function _coerceLocalScriptURL(scriptURL) { - if (scriptURL) { - if (scriptURL.startsWith('assets://')) { - return null; - } - - scriptURL = scriptURL.substring(0, scriptURL.lastIndexOf('/') + 1); - - if (!scriptURL.includes('://')) { - scriptURL = 'file://' + scriptURL; - } - } - - return scriptURL; - } - - function getScriptURL() { - if (_scriptURL === undefined) { - _scriptURL = _coerceLocalScriptURL(getSourceCodeScriptURL()); - } - - return _scriptURL; - } - - function setCustomSourceTransformer(transformer) { - _customSourceTransformer = transformer; - } - - function resolveAssetSource(source) { - if (typeof source === 'object') { - return source; - } - - var asset = AssetRegistry.getAssetByID(source); - - if (!asset) { - return null; - } - - var resolver = new AssetSourceResolver(getDevServerURL(), getScriptURL(), asset); - - if (_customSourceTransformer) { - return _customSourceTransformer(resolver); - } - - return resolver.defaultAsset(); - } - - module.exports = resolveAssetSource; - module.exports.pickScale = AssetSourceResolver.pickScale; - module.exports.setCustomSourceTransformer = setCustomSourceTransformer; -},156,[158,159,93],"node_modules/react-native/Libraries/Image/resolveAssetSource.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var assets = []; - - function registerAsset(asset) { - return assets.push(asset); - } - - function getAssetByID(assetId) { - return assets[assetId - 1]; - } - - module.exports = { - registerAsset: registerAsset, - getAssetByID: getAssetByID - }; -},158,[],"node_modules/react-native/Libraries/Image/AssetRegistry.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var PixelRatio = _$$_REQUIRE(_dependencyMap[0], 'PixelRatio'); - - var Platform = _$$_REQUIRE(_dependencyMap[1], 'Platform'); - - var assetPathUtils = _$$_REQUIRE(_dependencyMap[2], '../../local-cli/bundle/assetPathUtils'); - - var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); - - function getScaledAssetPath(asset) { - var scale = AssetSourceResolver.pickScale(asset.scales, PixelRatio.get()); - var scaleSuffix = scale === 1 ? '' : '@' + scale + 'x'; - var assetDir = assetPathUtils.getBasePath(asset); - return assetDir + '/' + asset.name + scaleSuffix + '.' + asset.type; - } - - function getAssetPathInDrawableFolder(asset) { - var scale = AssetSourceResolver.pickScale(asset.scales, PixelRatio.get()); - var drawbleFolder = assetPathUtils.getAndroidResourceFolderName(asset, scale); - var fileName = assetPathUtils.getAndroidResourceIdentifier(asset); - return drawbleFolder + '/' + fileName + '.' + asset.type; - } - - var AssetSourceResolver = function () { - function AssetSourceResolver(serverUrl, jsbundleUrl, asset) { - _classCallCheck(this, AssetSourceResolver); - - this.serverUrl = serverUrl; - this.jsbundleUrl = jsbundleUrl; - this.asset = asset; - } - - _createClass(AssetSourceResolver, [{ - key: "isLoadedFromServer", - value: function isLoadedFromServer() { - return !!this.serverUrl; - } - }, { - key: "isLoadedFromFileSystem", - value: function isLoadedFromFileSystem() { - return !!(this.jsbundleUrl && this.jsbundleUrl.startsWith('file://')); - } - }, { - key: "defaultAsset", - value: function defaultAsset() { - if (this.isLoadedFromServer()) { - return this.assetServerURL(); - } - - if (Platform.OS === 'android') { - return this.isLoadedFromFileSystem() ? this.drawableFolderInBundle() : this.resourceIdentifierWithoutScale(); - } else { - return this.scaledAssetURLNearBundle(); - } - } - }, { - key: "assetServerURL", - value: function assetServerURL() { - invariant(!!this.serverUrl, 'need server to load from'); - return this.fromSource(this.serverUrl + getScaledAssetPath(this.asset) + '?platform=' + Platform.OS + '&hash=' + this.asset.hash); - } - }, { - key: "scaledAssetPath", - value: function scaledAssetPath() { - return this.fromSource(getScaledAssetPath(this.asset)); - } - }, { - key: "scaledAssetURLNearBundle", - value: function scaledAssetURLNearBundle() { - var path = this.jsbundleUrl || 'file://'; - return this.fromSource(path + getScaledAssetPath(this.asset)); - } - }, { - key: "resourceIdentifierWithoutScale", - value: function resourceIdentifierWithoutScale() { - invariant(Platform.OS === 'android', 'resource identifiers work on Android'); - return this.fromSource(assetPathUtils.getAndroidResourceIdentifier(this.asset)); - } - }, { - key: "drawableFolderInBundle", - value: function drawableFolderInBundle() { - var path = this.jsbundleUrl || 'file://'; - return this.fromSource(path + getAssetPathInDrawableFolder(this.asset)); - } - }, { - key: "fromSource", - value: function fromSource(source) { - return { - __packager_asset: true, - width: this.asset.width, - height: this.asset.height, - uri: source, - scale: AssetSourceResolver.pickScale(this.asset.scales, PixelRatio.get()) - }; - } - }], [{ - key: "pickScale", - value: function pickScale(scales, deviceScale) { - for (var i = 0; i < scales.length; i++) { - if (scales[i] >= deviceScale) { - return scales[i]; - } - } - - return scales[scales.length - 1] || 1; - } - }]); - - return AssetSourceResolver; - }(); - - module.exports = AssetSourceResolver; -},159,[78,94,160,4],"node_modules/react-native/Libraries/Image/AssetSourceResolver.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function getAndroidAssetSuffix(scale) { - switch (scale) { - case 0.75: - return 'ldpi'; - - case 1: - return 'mdpi'; - - case 1.5: - return 'hdpi'; - - case 2: - return 'xhdpi'; - - case 3: - return 'xxhdpi'; - - case 4: - return 'xxxhdpi'; - } - - throw new Error('no such scale'); - } - - var drawableFileTypes = new Set(['gif', 'jpeg', 'jpg', 'png', 'svg', 'webp', 'xml']); - - function getAndroidResourceFolderName(asset, scale) { - if (!drawableFileTypes.has(asset.type)) { - return 'raw'; - } - - var suffix = getAndroidAssetSuffix(scale); - - if (!suffix) { - throw new Error("Don't know which android drawable suffix to use for asset: " + JSON.stringify(asset)); - } - - var androidFolder = 'drawable-' + suffix; - return androidFolder; - } - - function getAndroidResourceIdentifier(asset) { - var folderPath = getBasePath(asset); - return (folderPath + '/' + asset.name).toLowerCase().replace(/\//g, '_').replace(/([^a-z0-9_])/g, '').replace(/^assets_/, ''); - } - - function getBasePath(asset) { - var basePath = asset.httpServerLocation; - - if (basePath[0] === '/') { - basePath = basePath.substr(1); - } - - return basePath; - } - - module.exports = { - getAndroidAssetSuffix: getAndroidAssetSuffix, - getAndroidResourceFolderName: getAndroidResourceFolderName, - getAndroidResourceIdentifier: getAndroidResourceIdentifier, - getBasePath: getBasePath - }; -},160,[],"node_modules/react-native/local-cli/bundle/assetPathUtils.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js"; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - ProgressBarAndroid: { - displayName: "ProgressBarAndroid" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var ColorPropType = _$$_REQUIRE(_dependencyMap[2], 'ColorPropType'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); - - var React = _$$_REQUIRE(_dependencyMap[4], 'React'); - - var ViewPropTypes = _$$_REQUIRE(_dependencyMap[5], 'ViewPropTypes'); - - var requireNativeComponent = _$$_REQUIRE(_dependencyMap[6], 'requireNativeComponent'); - - var STYLE_ATTRIBUTES = ['Horizontal', 'Normal', 'Small', 'Large', 'Inverse', 'SmallInverse', 'LargeInverse']; - - var indeterminateType = function indeterminateType(props, propName, componentName) { - var checker = function checker() { - var indeterminate = props[propName]; - var styleAttr = props.styleAttr; - - if (!indeterminate && styleAttr !== 'Horizontal') { - return new Error('indeterminate=false is only valid for styleAttr=Horizontal'); - } - }; - - for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) { - rest[_key - 3] = arguments[_key]; - } - - return PropTypes.bool.apply(PropTypes, [props, propName, componentName].concat(rest)) || checker(); - }; - - var ProgressBarAndroid = function (_React$Component) { - function ProgressBarAndroid() { - _classCallCheck(this, ProgressBarAndroid); - - return _possibleConstructorReturn(this, _getPrototypeOf(ProgressBarAndroid).apply(this, arguments)); - } - - _createClass(ProgressBarAndroid, [{ - key: "render", - value: function render() { - var _this$props = this.props, - forwardedRef = _this$props.forwardedRef, - props = _objectWithoutProperties(_this$props, ["forwardedRef"]); - - return React.createElement(AndroidProgressBar, _extends({}, props, { - ref: forwardedRef, - __source: { - fileName: _jsxFileName, - lineNumber: 113 - } - })); - } - }]); - - _inherits(ProgressBarAndroid, _React$Component); - - return ProgressBarAndroid; - }(React.Component); - - ProgressBarAndroid.propTypes = _objectSpread({}, ViewPropTypes, { - styleAttr: PropTypes.oneOf(STYLE_ATTRIBUTES), - animating: PropTypes.bool, - indeterminate: indeterminateType, - progress: PropTypes.number, - color: ColorPropType, - testID: PropTypes.string - }); - ProgressBarAndroid.defaultProps = { - styleAttr: 'Normal', - indeterminate: true, - animating: true - }; - ProgressBarAndroid = _wrapComponent("ProgressBarAndroid")(ProgressBarAndroid); - var AndroidProgressBar = requireNativeComponent('AndroidProgressBar'); - module.exports = React.forwardRef(function (props, ref) { - return React.createElement(ProgressBarAndroid, _extends({}, props, { - forwardedRef: ref, - __source: { - fileName: _jsxFileName, - lineNumber: 120 - } - })); - }); -},25,[122,161,98,143,121,101,96],"node_modules/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - Object.defineProperty(exports, '__esModule', { - value: true - }); - - var _slicedToArray = function () { - function sliceIterator(arr, i) { - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - - try { - for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i['return']) _i['return'](); - } finally { - if (_d) throw _e; - } - } - - return _arr; - } - - return function (arr, i) { - if (Array.isArray(arr)) { - return arr; - } else if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(arr)) { - return sliceIterator(arr, i); - } else { - throw new TypeError('Invalid attempt to destructure non-iterable instance'); - } - }; - }(); - - exports['default'] = proxyReactComponents; - - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - 'default': obj - }; - } - - var _reactProxy = _$$_REQUIRE(_dependencyMap[0], 'react-proxy'); - - var _globalWindow = _$$_REQUIRE(_dependencyMap[1], 'global/window'); - - var _globalWindow2 = _interopRequireDefault(_globalWindow); - - var componentProxies = undefined; - - if (_globalWindow2['default'].__reactComponentProxies) { - componentProxies = _globalWindow2['default'].__reactComponentProxies; - } else { - componentProxies = {}; - Object.defineProperty(_globalWindow2['default'], '__reactComponentProxies', { - configurable: true, - enumerable: false, - writable: false, - value: componentProxies - }); - } - - function proxyReactComponents(_ref) { - var filename = _ref.filename; - var components = _ref.components; - var imports = _ref.imports; - var locals = _ref.locals; - - var _imports = _slicedToArray(imports, 1); - - var React = _imports[0]; - - var _locals = _slicedToArray(locals, 1); - - var hot = _locals[0].hot; - - if (!React.Component) { - throw new Error('imports[0] for react-transform-hmr does not look like React.'); - } - - if (!hot || typeof hot.accept !== 'function') { - throw new Error('locals[0] does not appear to be a `module` object with Hot Module ' + 'replacement API enabled. You should disable react-transform-hmr in ' + 'production by using `env` section in Babel configuration. See the ' + 'example in README: https://github.com/gaearon/react-transform-hmr'); - } - - if (Object.keys(components).some(function (key) { - return !components[key].isInFunction; - })) { - hot.accept(function (err) { - if (err) { - console.warn('[React Transform HMR] There was an error updating ' + filename + ':'); - console.error(err); - } - }); - } - - var forceUpdate = (0, _reactProxy.getForceUpdate)(React); - return function wrapWithProxy(ReactClass, uniqueId) { - var _components$uniqueId = components[uniqueId]; - var _components$uniqueId$isInFunction = _components$uniqueId.isInFunction; - var isInFunction = _components$uniqueId$isInFunction === undefined ? false : _components$uniqueId$isInFunction; - var _components$uniqueId$displayName = _components$uniqueId.displayName; - var displayName = _components$uniqueId$displayName === undefined ? uniqueId : _components$uniqueId$displayName; - - if (isInFunction) { - return ReactClass; - } - - var globalUniqueId = filename + '$' + uniqueId; - - if (componentProxies[globalUniqueId]) { - (function () { - console.info('[React Transform HMR] Patching ' + displayName); - var instances = componentProxies[globalUniqueId].update(ReactClass); - setTimeout(function () { - return instances.forEach(forceUpdate); - }); - })(); - } else { - componentProxies[globalUniqueId] = (0, _reactProxy.createProxy)(ReactClass); - } - - return componentProxies[globalUniqueId].get(); - }; - } - - module.exports = exports['default']; -},161,[162,163],"node_modules/react-transform-hmr/lib/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getForceUpdate = exports.createProxy = undefined; - - var _supportsProtoAssignment = _$$_REQUIRE(_dependencyMap[0], './supportsProtoAssignment'); - - var _supportsProtoAssignment2 = _interopRequireDefault(_supportsProtoAssignment); - - var _createClassProxy = _$$_REQUIRE(_dependencyMap[1], './createClassProxy'); - - var _createClassProxy2 = _interopRequireDefault(_createClassProxy); - - var _reactDeepForceUpdate = _$$_REQUIRE(_dependencyMap[2], 'react-deep-force-update'); - - var _reactDeepForceUpdate2 = _interopRequireDefault(_reactDeepForceUpdate); - - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; - } - - if (!(0, _supportsProtoAssignment2.default)()) { - console.warn('This JavaScript environment does not support __proto__. ' + 'This means that react-proxy is unable to proxy React components. ' + 'Features that rely on react-proxy, such as react-transform-hmr, ' + 'will not function as expected.'); - } - - exports.createProxy = _createClassProxy2.default; - exports.getForceUpdate = _reactDeepForceUpdate2.default; -},162,[164,165,166],"node_modules/react-proxy/modules/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = supportsProtoAssignment; - var x = {}; - var y = { - supports: true - }; - - try { - x.__proto__ = y; - } catch (err) {} - - function supportsProtoAssignment() { - return x.supports || false; - } - - ; -},164,[],"node_modules/react-proxy/modules/supportsProtoAssignment.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; - }; - - var _slicedToArray = function () { - function sliceIterator(arr, i) { - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - - try { - for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"]) _i["return"](); - } finally { - if (_d) throw _e; - } - } - - return _arr; - } - - return function (arr, i) { - if (Array.isArray(arr)) { - return arr; - } else if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(arr)) { - return sliceIterator(arr, i); - } else { - throw new TypeError("Invalid attempt to destructure non-iterable instance"); - } - }; - }(); - - exports.default = proxyClass; - exports.default = createClassProxy; - - var _find = _$$_REQUIRE(_dependencyMap[0], 'lodash/find'); - - var _find2 = _interopRequireDefault(_find); - - var _createPrototypeProxy = _$$_REQUIRE(_dependencyMap[1], './createPrototypeProxy'); - - var _createPrototypeProxy2 = _interopRequireDefault(_createPrototypeProxy); - - var _bindAutoBindMethods = _$$_REQUIRE(_dependencyMap[2], './bindAutoBindMethods'); - - var _bindAutoBindMethods2 = _interopRequireDefault(_bindAutoBindMethods); - - var _deleteUnknownAutoBindMethods = _$$_REQUIRE(_dependencyMap[3], './deleteUnknownAutoBindMethods'); - - var _deleteUnknownAutoBindMethods2 = _interopRequireDefault(_deleteUnknownAutoBindMethods); - - var _supportsProtoAssignment = _$$_REQUIRE(_dependencyMap[4], './supportsProtoAssignment'); - - var _supportsProtoAssignment2 = _interopRequireDefault(_supportsProtoAssignment); - - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; - } - - function _toConsumableArray(arr) { - if (Array.isArray(arr)) { - for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { - arr2[i] = arr[i]; - } - - return arr2; - } else { - return Array.from(arr); - } - } - - var RESERVED_STATICS = ['length', 'name', 'arguments', 'caller', 'prototype', 'toString']; - - function isEqualDescriptor(a, b) { - if (!a && !b) { - return true; - } - - if (!a || !b) { - return false; - } - - for (var key in a) { - if (a[key] !== b[key]) { - return false; - } - } - - return true; - } - - var allProxies = []; - - function findProxy(Component) { - var pair = (0, _find2.default)(allProxies, function (_ref) { - var _ref2 = _slicedToArray(_ref, 1); - - var key = _ref2[0]; - return key === Component; - }); - return pair ? pair[1] : null; - } - - function addProxy(Component, proxy) { - allProxies.push([Component, proxy]); - } - - function proxyClass(InitialComponent) { - var existingProxy = findProxy(InitialComponent); - - if (existingProxy) { - return existingProxy; - } - - var prototypeProxy = (0, _createPrototypeProxy2.default)(); - var CurrentComponent = undefined; - var ProxyComponent = undefined; - var staticDescriptors = {}; - - function wasStaticModifiedByUser(key) { - var currentDescriptor = Object.getOwnPropertyDescriptor(ProxyComponent, key); - return !isEqualDescriptor(staticDescriptors[key], currentDescriptor); - } - - function instantiate(factory, context, params) { - var component = factory(); - - try { - return component.apply(context, params); - } catch (err) { - (function () { - var instance = new (Function.prototype.bind.apply(component, [null].concat(_toConsumableArray(params))))(); - Object.keys(instance).forEach(function (key) { - if (RESERVED_STATICS.indexOf(key) > -1) { - return; - } - - context[key] = instance[key]; - }); - })(); - } - } - - try { - ProxyComponent = new Function('factory', 'instantiate', 'return function ' + (InitialComponent.name || 'ProxyComponent') + '() {\n return instantiate(factory, this, arguments);\n }')(function () { - return CurrentComponent; - }, instantiate); - } catch (err) { - ProxyComponent = function ProxyComponent() { - return instantiate(function () { - return CurrentComponent; - }, this, arguments); - }; - } - - ProxyComponent.prototype = prototypeProxy.get(); - - ProxyComponent.toString = function toString() { - return CurrentComponent.toString(); - }; - - function update(NextComponent) { - if (typeof NextComponent !== 'function') { - throw new Error('Expected a constructor.'); - } - - var existingProxy = findProxy(NextComponent); - - if (existingProxy) { - return update(existingProxy.__getCurrent()); - } - - CurrentComponent = NextComponent; - var mountedInstances = prototypeProxy.update(NextComponent.prototype); - ProxyComponent.prototype.constructor = ProxyComponent; - ProxyComponent.__proto__ = NextComponent.__proto__; - Object.getOwnPropertyNames(NextComponent).forEach(function (key) { - if (RESERVED_STATICS.indexOf(key) > -1) { - return; - } - - var staticDescriptor = _extends({}, Object.getOwnPropertyDescriptor(NextComponent, key), { - configurable: true - }); - - if (!wasStaticModifiedByUser(key)) { - Object.defineProperty(ProxyComponent, key, staticDescriptor); - staticDescriptors[key] = staticDescriptor; - } - }); - Object.getOwnPropertyNames(ProxyComponent).forEach(function (key) { - if (RESERVED_STATICS.indexOf(key) > -1) { - return; - } - - if (NextComponent.hasOwnProperty(key)) { - return; - } - - var descriptor = Object.getOwnPropertyDescriptor(ProxyComponent, key); - - if (descriptor && !descriptor.configurable) { - return; - } - - if (!wasStaticModifiedByUser(key)) { - delete ProxyComponent[key]; - delete staticDescriptors[key]; - } - }); - ProxyComponent.displayName = NextComponent.displayName || NextComponent.name; - mountedInstances.forEach(_bindAutoBindMethods2.default); - mountedInstances.forEach(_deleteUnknownAutoBindMethods2.default); - return mountedInstances; - } - - ; - - function get() { - return ProxyComponent; - } - - function getCurrent() { - return CurrentComponent; - } - - update(InitialComponent); - var proxy = { - get: get, - update: update - }; - addProxy(ProxyComponent, proxy); - Object.defineProperty(proxy, '__getCurrent', { - configurable: false, - writable: false, - enumerable: false, - value: getCurrent - }); - return proxy; - } - - function createFallback(Component) { - var CurrentComponent = Component; - return { - get: function get() { - return CurrentComponent; - }, - update: function update(NextComponent) { - CurrentComponent = NextComponent; - } - }; - } - - function createClassProxy(Component) { - return Component.__proto__ && (0, _supportsProtoAssignment2.default)() ? proxyClass(Component) : createFallback(Component); - } -},165,[167,168,169,170,164],"node_modules/react-proxy/modules/createClassProxy.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var createFind = _$$_REQUIRE(_dependencyMap[0], './_createFind'), - findIndex = _$$_REQUIRE(_dependencyMap[1], './findIndex'); - - var find = createFind(findIndex); - module.exports = find; -},167,[171,172],"node_modules/lodash/find.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseIteratee = _$$_REQUIRE(_dependencyMap[0], './_baseIteratee'), - isArrayLike = _$$_REQUIRE(_dependencyMap[1], './isArrayLike'), - keys = _$$_REQUIRE(_dependencyMap[2], './keys'); - - function createFind(findIndexFunc) { - return function (collection, predicate, fromIndex) { - var iterable = Object(collection); - - if (!isArrayLike(collection)) { - var iteratee = baseIteratee(predicate, 3); - collection = keys(collection); - - predicate = function predicate(key) { - return iteratee(iterable[key], key, iterable); - }; - } - - var index = findIndexFunc(collection, predicate, fromIndex); - return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined; - }; - } - - module.exports = createFind; -},171,[173,174,175],"node_modules/lodash/_createFind.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseMatches = _$$_REQUIRE(_dependencyMap[0], './_baseMatches'), - baseMatchesProperty = _$$_REQUIRE(_dependencyMap[1], './_baseMatchesProperty'), - identity = _$$_REQUIRE(_dependencyMap[2], './identity'), - isArray = _$$_REQUIRE(_dependencyMap[3], './isArray'), - property = _$$_REQUIRE(_dependencyMap[4], './property'); - - function baseIteratee(value) { - if (typeof value == 'function') { - return value; - } - - if (value == null) { - return identity; - } - - if (typeof value == 'object') { - return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value); - } - - return property(value); - } - - module.exports = baseIteratee; -},173,[176,177,178,179,180],"node_modules/lodash/_baseIteratee.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseIsMatch = _$$_REQUIRE(_dependencyMap[0], './_baseIsMatch'), - getMatchData = _$$_REQUIRE(_dependencyMap[1], './_getMatchData'), - matchesStrictComparable = _$$_REQUIRE(_dependencyMap[2], './_matchesStrictComparable'); - - function baseMatches(source) { - var matchData = getMatchData(source); - - if (matchData.length == 1 && matchData[0][2]) { - return matchesStrictComparable(matchData[0][0], matchData[0][1]); - } - - return function (object) { - return object === source || baseIsMatch(object, source, matchData); - }; - } - - module.exports = baseMatches; -},176,[181,182,183],"node_modules/lodash/_baseMatches.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var Stack = _$$_REQUIRE(_dependencyMap[0], './_Stack'), - baseIsEqual = _$$_REQUIRE(_dependencyMap[1], './_baseIsEqual'); - - var COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; - - function baseIsMatch(object, source, matchData, customizer) { - var index = matchData.length, - length = index, - noCustomizer = !customizer; - - if (object == null) { - return !length; - } - - object = Object(object); - - while (index--) { - var data = matchData[index]; - - if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) { - return false; - } - } - - while (++index < length) { - data = matchData[index]; - var key = data[0], - objValue = object[key], - srcValue = data[1]; - - if (noCustomizer && data[2]) { - if (objValue === undefined && !(key in object)) { - return false; - } - } else { - var stack = new Stack(); - - if (customizer) { - var result = customizer(objValue, srcValue, key, object, source, stack); - } - - if (!(result === undefined ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result)) { - return false; - } - } - } - - return true; - } - - module.exports = baseIsMatch; -},181,[184,185],"node_modules/lodash/_baseIsMatch.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var ListCache = _$$_REQUIRE(_dependencyMap[0], './_ListCache'), - stackClear = _$$_REQUIRE(_dependencyMap[1], './_stackClear'), - stackDelete = _$$_REQUIRE(_dependencyMap[2], './_stackDelete'), - stackGet = _$$_REQUIRE(_dependencyMap[3], './_stackGet'), - stackHas = _$$_REQUIRE(_dependencyMap[4], './_stackHas'), - stackSet = _$$_REQUIRE(_dependencyMap[5], './_stackSet'); - - function Stack(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; - } - - Stack.prototype.clear = stackClear; - Stack.prototype['delete'] = stackDelete; - Stack.prototype.get = stackGet; - Stack.prototype.has = stackHas; - Stack.prototype.set = stackSet; - module.exports = Stack; -},184,[186,187,188,189,190,191],"node_modules/lodash/_Stack.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var listCacheClear = _$$_REQUIRE(_dependencyMap[0], './_listCacheClear'), - listCacheDelete = _$$_REQUIRE(_dependencyMap[1], './_listCacheDelete'), - listCacheGet = _$$_REQUIRE(_dependencyMap[2], './_listCacheGet'), - listCacheHas = _$$_REQUIRE(_dependencyMap[3], './_listCacheHas'), - listCacheSet = _$$_REQUIRE(_dependencyMap[4], './_listCacheSet'); - - function ListCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; - this.clear(); - - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - - ListCache.prototype.clear = listCacheClear; - ListCache.prototype['delete'] = listCacheDelete; - ListCache.prototype.get = listCacheGet; - ListCache.prototype.has = listCacheHas; - ListCache.prototype.set = listCacheSet; - module.exports = ListCache; -},186,[192,193,194,195,196],"node_modules/lodash/_ListCache.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function listCacheClear() { - this.__data__ = []; - this.size = 0; - } - - module.exports = listCacheClear; -},192,[],"node_modules/lodash/_listCacheClear.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var assocIndexOf = _$$_REQUIRE(_dependencyMap[0], './_assocIndexOf'); - - var arrayProto = Array.prototype; - var splice = arrayProto.splice; - - function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - return false; - } - - var lastIndex = data.length - 1; - - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - - --this.size; - return true; - } - - module.exports = listCacheDelete; -},193,[197],"node_modules/lodash/_listCacheDelete.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var eq = _$$_REQUIRE(_dependencyMap[0], './eq'); - - function assocIndexOf(array, key) { - var length = array.length; - - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - - return -1; - } - - module.exports = assocIndexOf; -},197,[198],"node_modules/lodash/_assocIndexOf.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function eq(value, other) { - return value === other || value !== value && other !== other; - } - - module.exports = eq; -},198,[],"node_modules/lodash/eq.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var assocIndexOf = _$$_REQUIRE(_dependencyMap[0], './_assocIndexOf'); - - function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - return index < 0 ? undefined : data[index][1]; - } - - module.exports = listCacheGet; -},194,[197],"node_modules/lodash/_listCacheGet.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var assocIndexOf = _$$_REQUIRE(_dependencyMap[0], './_assocIndexOf'); - - function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; - } - - module.exports = listCacheHas; -},195,[197],"node_modules/lodash/_listCacheHas.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var assocIndexOf = _$$_REQUIRE(_dependencyMap[0], './_assocIndexOf'); - - function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - - return this; - } - - module.exports = listCacheSet; -},196,[197],"node_modules/lodash/_listCacheSet.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var ListCache = _$$_REQUIRE(_dependencyMap[0], './_ListCache'); - - function stackClear() { - this.__data__ = new ListCache(); - this.size = 0; - } - - module.exports = stackClear; -},187,[186],"node_modules/lodash/_stackClear.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function stackDelete(key) { - var data = this.__data__, - result = data['delete'](key); - this.size = data.size; - return result; - } - - module.exports = stackDelete; -},188,[],"node_modules/lodash/_stackDelete.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function stackGet(key) { - return this.__data__.get(key); - } - - module.exports = stackGet; -},189,[],"node_modules/lodash/_stackGet.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function stackHas(key) { - return this.__data__.has(key); - } - - module.exports = stackHas; -},190,[],"node_modules/lodash/_stackHas.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var ListCache = _$$_REQUIRE(_dependencyMap[0], './_ListCache'), - Map = _$$_REQUIRE(_dependencyMap[1], './_Map'), - MapCache = _$$_REQUIRE(_dependencyMap[2], './_MapCache'); - - var LARGE_ARRAY_SIZE = 200; - - function stackSet(key, value) { - var data = this.__data__; - - if (data instanceof ListCache) { - var pairs = data.__data__; - - if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - - data = this.__data__ = new MapCache(pairs); - } - - data.set(key, value); - this.size = data.size; - return this; - } - - module.exports = stackSet; -},191,[186,199,200],"node_modules/lodash/_stackSet.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var getNative = _$$_REQUIRE(_dependencyMap[0], './_getNative'), - root = _$$_REQUIRE(_dependencyMap[1], './_root'); - - var Map = getNative(root, 'Map'); - module.exports = Map; -},199,[201,202],"node_modules/lodash/_Map.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseIsNative = _$$_REQUIRE(_dependencyMap[0], './_baseIsNative'), - getValue = _$$_REQUIRE(_dependencyMap[1], './_getValue'); - - function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; - } - - module.exports = getNative; -},201,[203,204],"node_modules/lodash/_getNative.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var isFunction = _$$_REQUIRE(_dependencyMap[0], './isFunction'), - isMasked = _$$_REQUIRE(_dependencyMap[1], './_isMasked'), - isObject = _$$_REQUIRE(_dependencyMap[2], './isObject'), - toSource = _$$_REQUIRE(_dependencyMap[3], './_toSource'); - - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - var reIsHostCtor = /^\[object .+?Constructor\]$/; - var funcProto = Function.prototype, - objectProto = Object.prototype; - var funcToString = funcProto.toString; - var hasOwnProperty = objectProto.hasOwnProperty; - var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'); - - function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - - var pattern = isFunction(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); - } - - module.exports = baseIsNative; -},203,[205,206,207,208],"node_modules/lodash/_baseIsNative.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseGetTag = _$$_REQUIRE(_dependencyMap[0], './_baseGetTag'), - isObject = _$$_REQUIRE(_dependencyMap[1], './isObject'); - - var asyncTag = '[object AsyncFunction]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - proxyTag = '[object Proxy]'; - - function isFunction(value) { - if (!isObject(value)) { - return false; - } - - var tag = baseGetTag(value); - return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; - } - - module.exports = isFunction; -},205,[209,207],"node_modules/lodash/isFunction.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var Symbol = _$$_REQUIRE(_dependencyMap[0], './_Symbol'), - getRawTag = _$$_REQUIRE(_dependencyMap[1], './_getRawTag'), - objectToString = _$$_REQUIRE(_dependencyMap[2], './_objectToString'); - - var nullTag = '[object Null]', - undefinedTag = '[object Undefined]'; - var symToStringTag = Symbol ? typeof Symbol === "function" ? Symbol.toStringTag : "@@toStringTag" : undefined; - - function baseGetTag(value) { - if (value == null) { - return value === undefined ? undefinedTag : nullTag; - } - - return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value); - } - - module.exports = baseGetTag; -},209,[210,211,212],"node_modules/lodash/_baseGetTag.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var root = _$$_REQUIRE(_dependencyMap[0], './_root'); - - var Symbol = root.Symbol; - module.exports = Symbol; -},210,[202],"node_modules/lodash/_Symbol.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var freeGlobal = _$$_REQUIRE(_dependencyMap[0], './_freeGlobal'); - - var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - var root = freeGlobal || freeSelf || Function('return this')(); - module.exports = root; -},202,[213],"node_modules/lodash/_root.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - module.exports = freeGlobal; -},213,[],"node_modules/lodash/_freeGlobal.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var Symbol = _$$_REQUIRE(_dependencyMap[0], './_Symbol'); - - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - var nativeObjectToString = objectProto.toString; - var symToStringTag = Symbol ? typeof Symbol === "function" ? Symbol.toStringTag : "@@toStringTag" : undefined; - - function getRawTag(value) { - var isOwn = hasOwnProperty.call(value, symToStringTag), - tag = value[symToStringTag]; - - try { - value[symToStringTag] = undefined; - var unmasked = true; - } catch (e) {} - - var result = nativeObjectToString.call(value); - - if (unmasked) { - if (isOwn) { - value[symToStringTag] = tag; - } else { - delete value[symToStringTag]; - } - } - - return result; - } - - module.exports = getRawTag; -},211,[210],"node_modules/lodash/_getRawTag.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var objectProto = Object.prototype; - var nativeObjectToString = objectProto.toString; - - function objectToString(value) { - return nativeObjectToString.call(value); - } - - module.exports = objectToString; -},212,[],"node_modules/lodash/_objectToString.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function isObject(value) { - var type = typeof value; - return value != null && (type == 'object' || type == 'function'); - } - - module.exports = isObject; -},207,[],"node_modules/lodash/isObject.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var coreJsData = _$$_REQUIRE(_dependencyMap[0], './_coreJsData'); - - var maskSrcKey = function () { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? 'Symbol(src)_1.' + uid : ''; - }(); - - function isMasked(func) { - return !!maskSrcKey && maskSrcKey in func; - } - - module.exports = isMasked; -},206,[214],"node_modules/lodash/_isMasked.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var root = _$$_REQUIRE(_dependencyMap[0], './_root'); - - var coreJsData = root['__core-js_shared__']; - module.exports = coreJsData; -},214,[202],"node_modules/lodash/_coreJsData.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var funcProto = Function.prototype; - var funcToString = funcProto.toString; - - function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - - try { - return func + ''; - } catch (e) {} - } - - return ''; - } - - module.exports = toSource; -},208,[],"node_modules/lodash/_toSource.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function getValue(object, key) { - return object == null ? undefined : object[key]; - } - - module.exports = getValue; -},204,[],"node_modules/lodash/_getValue.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var mapCacheClear = _$$_REQUIRE(_dependencyMap[0], './_mapCacheClear'), - mapCacheDelete = _$$_REQUIRE(_dependencyMap[1], './_mapCacheDelete'), - mapCacheGet = _$$_REQUIRE(_dependencyMap[2], './_mapCacheGet'), - mapCacheHas = _$$_REQUIRE(_dependencyMap[3], './_mapCacheHas'), - mapCacheSet = _$$_REQUIRE(_dependencyMap[4], './_mapCacheSet'); - - function MapCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; - this.clear(); - - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - - MapCache.prototype.clear = mapCacheClear; - MapCache.prototype['delete'] = mapCacheDelete; - MapCache.prototype.get = mapCacheGet; - MapCache.prototype.has = mapCacheHas; - MapCache.prototype.set = mapCacheSet; - module.exports = MapCache; -},200,[215,216,217,218,219],"node_modules/lodash/_MapCache.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var Hash = _$$_REQUIRE(_dependencyMap[0], './_Hash'), - ListCache = _$$_REQUIRE(_dependencyMap[1], './_ListCache'), - Map = _$$_REQUIRE(_dependencyMap[2], './_Map'); - - function mapCacheClear() { - this.size = 0; - this.__data__ = { - 'hash': new Hash(), - 'map': new (Map || ListCache)(), - 'string': new Hash() - }; - } - - module.exports = mapCacheClear; -},215,[220,186,199],"node_modules/lodash/_mapCacheClear.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var hashClear = _$$_REQUIRE(_dependencyMap[0], './_hashClear'), - hashDelete = _$$_REQUIRE(_dependencyMap[1], './_hashDelete'), - hashGet = _$$_REQUIRE(_dependencyMap[2], './_hashGet'), - hashHas = _$$_REQUIRE(_dependencyMap[3], './_hashHas'), - hashSet = _$$_REQUIRE(_dependencyMap[4], './_hashSet'); - - function Hash(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; - this.clear(); - - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - - Hash.prototype.clear = hashClear; - Hash.prototype['delete'] = hashDelete; - Hash.prototype.get = hashGet; - Hash.prototype.has = hashHas; - Hash.prototype.set = hashSet; - module.exports = Hash; -},220,[221,222,223,224,225],"node_modules/lodash/_Hash.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var nativeCreate = _$$_REQUIRE(_dependencyMap[0], './_nativeCreate'); - - function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; - } - - module.exports = hashClear; -},221,[226],"node_modules/lodash/_hashClear.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var getNative = _$$_REQUIRE(_dependencyMap[0], './_getNative'); - - var nativeCreate = getNative(Object, 'create'); - module.exports = nativeCreate; -},226,[201],"node_modules/lodash/_nativeCreate.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function hashDelete(key) { - var result = this.has(key) && delete this.__data__[key]; - this.size -= result ? 1 : 0; - return result; - } - - module.exports = hashDelete; -},222,[],"node_modules/lodash/_hashDelete.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var nativeCreate = _$$_REQUIRE(_dependencyMap[0], './_nativeCreate'); - - var HASH_UNDEFINED = '__lodash_hash_undefined__'; - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - - function hashGet(key) { - var data = this.__data__; - - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - - return hasOwnProperty.call(data, key) ? data[key] : undefined; - } - - module.exports = hashGet; -},223,[226],"node_modules/lodash/_hashGet.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var nativeCreate = _$$_REQUIRE(_dependencyMap[0], './_nativeCreate'); - - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - - function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); - } - - module.exports = hashHas; -},224,[226],"node_modules/lodash/_hashHas.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var nativeCreate = _$$_REQUIRE(_dependencyMap[0], './_nativeCreate'); - - var HASH_UNDEFINED = '__lodash_hash_undefined__'; - - function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value; - return this; - } - - module.exports = hashSet; -},225,[226],"node_modules/lodash/_hashSet.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var getMapData = _$$_REQUIRE(_dependencyMap[0], './_getMapData'); - - function mapCacheDelete(key) { - var result = getMapData(this, key)['delete'](key); - this.size -= result ? 1 : 0; - return result; - } - - module.exports = mapCacheDelete; -},216,[227],"node_modules/lodash/_mapCacheDelete.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var isKeyable = _$$_REQUIRE(_dependencyMap[0], './_isKeyable'); - - function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map; - } - - module.exports = getMapData; -},227,[228],"node_modules/lodash/_getMapData.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function isKeyable(value) { - var type = typeof value; - return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' : value === null; - } - - module.exports = isKeyable; -},228,[],"node_modules/lodash/_isKeyable.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var getMapData = _$$_REQUIRE(_dependencyMap[0], './_getMapData'); - - function mapCacheGet(key) { - return getMapData(this, key).get(key); - } - - module.exports = mapCacheGet; -},217,[227],"node_modules/lodash/_mapCacheGet.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var getMapData = _$$_REQUIRE(_dependencyMap[0], './_getMapData'); - - function mapCacheHas(key) { - return getMapData(this, key).has(key); - } - - module.exports = mapCacheHas; -},218,[227],"node_modules/lodash/_mapCacheHas.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var getMapData = _$$_REQUIRE(_dependencyMap[0], './_getMapData'); - - function mapCacheSet(key, value) { - var data = getMapData(this, key), - size = data.size; - data.set(key, value); - this.size += data.size == size ? 0 : 1; - return this; - } - - module.exports = mapCacheSet; -},219,[227],"node_modules/lodash/_mapCacheSet.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseIsEqualDeep = _$$_REQUIRE(_dependencyMap[0], './_baseIsEqualDeep'), - isObjectLike = _$$_REQUIRE(_dependencyMap[1], './isObjectLike'); - - function baseIsEqual(value, other, bitmask, customizer, stack) { - if (value === other) { - return true; - } - - if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) { - return value !== value && other !== other; - } - - return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); - } - - module.exports = baseIsEqual; -},185,[229,230],"node_modules/lodash/_baseIsEqual.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var Stack = _$$_REQUIRE(_dependencyMap[0], './_Stack'), - equalArrays = _$$_REQUIRE(_dependencyMap[1], './_equalArrays'), - equalByTag = _$$_REQUIRE(_dependencyMap[2], './_equalByTag'), - equalObjects = _$$_REQUIRE(_dependencyMap[3], './_equalObjects'), - getTag = _$$_REQUIRE(_dependencyMap[4], './_getTag'), - isArray = _$$_REQUIRE(_dependencyMap[5], './isArray'), - isBuffer = _$$_REQUIRE(_dependencyMap[6], './isBuffer'), - isTypedArray = _$$_REQUIRE(_dependencyMap[7], './isTypedArray'); - - var COMPARE_PARTIAL_FLAG = 1; - var argsTag = '[object Arguments]', - arrayTag = '[object Array]', - objectTag = '[object Object]'; - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - - function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { - var objIsArr = isArray(object), - othIsArr = isArray(other), - objTag = objIsArr ? arrayTag : getTag(object), - othTag = othIsArr ? arrayTag : getTag(other); - objTag = objTag == argsTag ? objectTag : objTag; - othTag = othTag == argsTag ? objectTag : othTag; - var objIsObj = objTag == objectTag, - othIsObj = othTag == objectTag, - isSameTag = objTag == othTag; - - if (isSameTag && isBuffer(object)) { - if (!isBuffer(other)) { - return false; - } - - objIsArr = true; - objIsObj = false; - } - - if (isSameTag && !objIsObj) { - stack || (stack = new Stack()); - return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); - } - - if (!(bitmask & COMPARE_PARTIAL_FLAG)) { - var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), - othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); - - if (objIsWrapped || othIsWrapped) { - var objUnwrapped = objIsWrapped ? object.value() : object, - othUnwrapped = othIsWrapped ? other.value() : other; - stack || (stack = new Stack()); - return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); - } - } - - if (!isSameTag) { - return false; - } - - stack || (stack = new Stack()); - return equalObjects(object, other, bitmask, customizer, equalFunc, stack); - } - - module.exports = baseIsEqualDeep; -},229,[184,231,232,233,234,179,235,236],"node_modules/lodash/_baseIsEqualDeep.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var SetCache = _$$_REQUIRE(_dependencyMap[0], './_SetCache'), - arraySome = _$$_REQUIRE(_dependencyMap[1], './_arraySome'), - cacheHas = _$$_REQUIRE(_dependencyMap[2], './_cacheHas'); - - var COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; - - function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, - arrLength = array.length, - othLength = other.length; - - if (arrLength != othLength && !(isPartial && othLength > arrLength)) { - return false; - } - - var stacked = stack.get(array); - - if (stacked && stack.get(other)) { - return stacked == other; - } - - var index = -1, - result = true, - seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined; - stack.set(array, other); - stack.set(other, array); - - while (++index < arrLength) { - var arrValue = array[index], - othValue = other[index]; - - if (customizer) { - var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack); - } - - if (compared !== undefined) { - if (compared) { - continue; - } - - result = false; - break; - } - - if (seen) { - if (!arraySome(other, function (othValue, othIndex) { - if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { - return seen.push(othIndex); - } - })) { - result = false; - break; - } - } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { - result = false; - break; - } - } - - stack['delete'](array); - stack['delete'](other); - return result; - } - - module.exports = equalArrays; -},231,[237,238,239],"node_modules/lodash/_equalArrays.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var MapCache = _$$_REQUIRE(_dependencyMap[0], './_MapCache'), - setCacheAdd = _$$_REQUIRE(_dependencyMap[1], './_setCacheAdd'), - setCacheHas = _$$_REQUIRE(_dependencyMap[2], './_setCacheHas'); - - function SetCache(values) { - var index = -1, - length = values == null ? 0 : values.length; - this.__data__ = new MapCache(); - - while (++index < length) { - this.add(values[index]); - } - } - - SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; - SetCache.prototype.has = setCacheHas; - module.exports = SetCache; -},237,[200,240,241],"node_modules/lodash/_SetCache.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var HASH_UNDEFINED = '__lodash_hash_undefined__'; - - function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - - return this; - } - - module.exports = setCacheAdd; -},240,[],"node_modules/lodash/_setCacheAdd.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function setCacheHas(value) { - return this.__data__.has(value); - } - - module.exports = setCacheHas; -},241,[],"node_modules/lodash/_setCacheHas.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function arraySome(array, predicate) { - var index = -1, - length = array == null ? 0 : array.length; - - while (++index < length) { - if (predicate(array[index], index, array)) { - return true; - } - } - - return false; - } - - module.exports = arraySome; -},238,[],"node_modules/lodash/_arraySome.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function cacheHas(cache, key) { - return cache.has(key); - } - - module.exports = cacheHas; -},239,[],"node_modules/lodash/_cacheHas.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var Symbol = _$$_REQUIRE(_dependencyMap[0], './_Symbol'), - Uint8Array = _$$_REQUIRE(_dependencyMap[1], './_Uint8Array'), - eq = _$$_REQUIRE(_dependencyMap[2], './eq'), - equalArrays = _$$_REQUIRE(_dependencyMap[3], './_equalArrays'), - mapToArray = _$$_REQUIRE(_dependencyMap[4], './_mapToArray'), - setToArray = _$$_REQUIRE(_dependencyMap[5], './_setToArray'); - - var COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; - var boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - mapTag = '[object Map]', - numberTag = '[object Number]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - symbolTag = '[object Symbol]'; - var arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]'; - var symbolProto = Symbol ? typeof Symbol === "function" ? Symbol.prototype : "@@prototype" : undefined, - symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; - - function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { - switch (tag) { - case dataViewTag: - if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) { - return false; - } - - object = object.buffer; - other = other.buffer; - - case arrayBufferTag: - if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) { - return false; - } - - return true; - - case boolTag: - case dateTag: - case numberTag: - return eq(+object, +other); - - case errorTag: - return object.name == other.name && object.message == other.message; - - case regexpTag: - case stringTag: - return object == other + ''; - - case mapTag: - var convert = mapToArray; - - case setTag: - var isPartial = bitmask & COMPARE_PARTIAL_FLAG; - convert || (convert = setToArray); - - if (object.size != other.size && !isPartial) { - return false; - } - - var stacked = stack.get(object); - - if (stacked) { - return stacked == other; - } - - bitmask |= COMPARE_UNORDERED_FLAG; - stack.set(object, other); - var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); - stack['delete'](object); - return result; - - case symbolTag: - if (symbolValueOf) { - return symbolValueOf.call(object) == symbolValueOf.call(other); - } - - } - - return false; - } - - module.exports = equalByTag; -},232,[210,242,198,231,243,244],"node_modules/lodash/_equalByTag.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var root = _$$_REQUIRE(_dependencyMap[0], './_root'); - - var Uint8Array = root.Uint8Array; - module.exports = Uint8Array; -},242,[202],"node_modules/lodash/_Uint8Array.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function mapToArray(map) { - var index = -1, - result = Array(map.size); - map.forEach(function (value, key) { - result[++index] = [key, value]; - }); - return result; - } - - module.exports = mapToArray; -},243,[],"node_modules/lodash/_mapToArray.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function setToArray(set) { - var index = -1, - result = Array(set.size); - set.forEach(function (value) { - result[++index] = value; - }); - return result; - } - - module.exports = setToArray; -},244,[],"node_modules/lodash/_setToArray.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var getAllKeys = _$$_REQUIRE(_dependencyMap[0], './_getAllKeys'); - - var COMPARE_PARTIAL_FLAG = 1; - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - - function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, - objProps = getAllKeys(object), - objLength = objProps.length, - othProps = getAllKeys(other), - othLength = othProps.length; - - if (objLength != othLength && !isPartial) { - return false; - } - - var index = objLength; - - while (index--) { - var key = objProps[index]; - - if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { - return false; - } - } - - var stacked = stack.get(object); - - if (stacked && stack.get(other)) { - return stacked == other; - } - - var result = true; - stack.set(object, other); - stack.set(other, object); - var skipCtor = isPartial; - - while (++index < objLength) { - key = objProps[index]; - var objValue = object[key], - othValue = other[key]; - - if (customizer) { - var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); - } - - if (!(compared === undefined ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) { - result = false; - break; - } - - skipCtor || (skipCtor = key == 'constructor'); - } - - if (result && !skipCtor) { - var objCtor = object.constructor, - othCtor = other.constructor; - - if (objCtor != othCtor && 'constructor' in object && 'constructor' in other && !(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) { - result = false; - } - } - - stack['delete'](object); - stack['delete'](other); - return result; - } - - module.exports = equalObjects; -},233,[245],"node_modules/lodash/_equalObjects.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseGetAllKeys = _$$_REQUIRE(_dependencyMap[0], './_baseGetAllKeys'), - getSymbols = _$$_REQUIRE(_dependencyMap[1], './_getSymbols'), - keys = _$$_REQUIRE(_dependencyMap[2], './keys'); - - function getAllKeys(object) { - return baseGetAllKeys(object, keys, getSymbols); - } - - module.exports = getAllKeys; -},245,[246,247,175],"node_modules/lodash/_getAllKeys.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var arrayPush = _$$_REQUIRE(_dependencyMap[0], './_arrayPush'), - isArray = _$$_REQUIRE(_dependencyMap[1], './isArray'); - - function baseGetAllKeys(object, keysFunc, symbolsFunc) { - var result = keysFunc(object); - return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); - } - - module.exports = baseGetAllKeys; -},246,[248,179],"node_modules/lodash/_baseGetAllKeys.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function arrayPush(array, values) { - var index = -1, - length = values.length, - offset = array.length; - - while (++index < length) { - array[offset + index] = values[index]; - } - - return array; - } - - module.exports = arrayPush; -},248,[],"node_modules/lodash/_arrayPush.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var isArray = Array.isArray; - module.exports = isArray; -},179,[],"node_modules/lodash/isArray.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var arrayFilter = _$$_REQUIRE(_dependencyMap[0], './_arrayFilter'), - stubArray = _$$_REQUIRE(_dependencyMap[1], './stubArray'); - - var objectProto = Object.prototype; - var propertyIsEnumerable = objectProto.propertyIsEnumerable; - var nativeGetSymbols = Object.getOwnPropertySymbols; - var getSymbols = !nativeGetSymbols ? stubArray : function (object) { - if (object == null) { - return []; - } - - object = Object(object); - return arrayFilter(nativeGetSymbols(object), function (symbol) { - return propertyIsEnumerable.call(object, symbol); - }); - }; - module.exports = getSymbols; -},247,[249,250],"node_modules/lodash/_getSymbols.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function arrayFilter(array, predicate) { - var index = -1, - length = array == null ? 0 : array.length, - resIndex = 0, - result = []; - - while (++index < length) { - var value = array[index]; - - if (predicate(value, index, array)) { - result[resIndex++] = value; - } - } - - return result; - } - - module.exports = arrayFilter; -},249,[],"node_modules/lodash/_arrayFilter.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function stubArray() { - return []; - } - - module.exports = stubArray; -},250,[],"node_modules/lodash/stubArray.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var arrayLikeKeys = _$$_REQUIRE(_dependencyMap[0], './_arrayLikeKeys'), - baseKeys = _$$_REQUIRE(_dependencyMap[1], './_baseKeys'), - isArrayLike = _$$_REQUIRE(_dependencyMap[2], './isArrayLike'); - - function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); - } - - module.exports = keys; -},175,[251,252,174],"node_modules/lodash/keys.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseTimes = _$$_REQUIRE(_dependencyMap[0], './_baseTimes'), - isArguments = _$$_REQUIRE(_dependencyMap[1], './isArguments'), - isArray = _$$_REQUIRE(_dependencyMap[2], './isArray'), - isBuffer = _$$_REQUIRE(_dependencyMap[3], './isBuffer'), - isIndex = _$$_REQUIRE(_dependencyMap[4], './_isIndex'), - isTypedArray = _$$_REQUIRE(_dependencyMap[5], './isTypedArray'); - - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - - function arrayLikeKeys(value, inherited) { - var isArr = isArray(value), - isArg = !isArr && isArguments(value), - isBuff = !isArr && !isArg && isBuffer(value), - isType = !isArr && !isArg && !isBuff && isTypedArray(value), - skipIndexes = isArr || isArg || isBuff || isType, - result = skipIndexes ? baseTimes(value.length, String) : [], - length = result.length; - - for (var key in value) { - if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == 'length' || isBuff && (key == 'offset' || key == 'parent') || isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset') || isIndex(key, length)))) { - result.push(key); - } - } - - return result; - } - - module.exports = arrayLikeKeys; -},251,[253,254,179,235,255,236],"node_modules/lodash/_arrayLikeKeys.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function baseTimes(n, iteratee) { - var index = -1, - result = Array(n); - - while (++index < n) { - result[index] = iteratee(index); - } - - return result; - } - - module.exports = baseTimes; -},253,[],"node_modules/lodash/_baseTimes.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseIsArguments = _$$_REQUIRE(_dependencyMap[0], './_baseIsArguments'), - isObjectLike = _$$_REQUIRE(_dependencyMap[1], './isObjectLike'); - - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - var propertyIsEnumerable = objectProto.propertyIsEnumerable; - var isArguments = baseIsArguments(function () { - return arguments; - }()) ? baseIsArguments : function (value) { - return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee'); - }; - module.exports = isArguments; -},254,[256,230],"node_modules/lodash/isArguments.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseGetTag = _$$_REQUIRE(_dependencyMap[0], './_baseGetTag'), - isObjectLike = _$$_REQUIRE(_dependencyMap[1], './isObjectLike'); - - var argsTag = '[object Arguments]'; - - function baseIsArguments(value) { - return isObjectLike(value) && baseGetTag(value) == argsTag; - } - - module.exports = baseIsArguments; -},256,[209,230],"node_modules/lodash/_baseIsArguments.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function isObjectLike(value) { - return value != null && typeof value == 'object'; - } - - module.exports = isObjectLike; -},230,[],"node_modules/lodash/isObjectLike.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var root = _$$_REQUIRE(_dependencyMap[0], './_root'), - stubFalse = _$$_REQUIRE(_dependencyMap[1], './stubFalse'); - - var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; - var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; - var moduleExports = freeModule && freeModule.exports === freeExports; - var Buffer = moduleExports ? root.Buffer : undefined; - var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; - var isBuffer = nativeIsBuffer || stubFalse; - module.exports = isBuffer; -},235,[202,257],"node_modules/lodash/isBuffer.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function stubFalse() { - return false; - } - - module.exports = stubFalse; -},257,[],"node_modules/lodash/stubFalse.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var MAX_SAFE_INTEGER = 9007199254740991; - var reIsUint = /^(?:0|[1-9]\d*)$/; - - function isIndex(value, length) { - var type = typeof value; - length = length == null ? MAX_SAFE_INTEGER : length; - return !!length && (type == 'number' || type != 'symbol' && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length; - } - - module.exports = isIndex; -},255,[],"node_modules/lodash/_isIndex.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseIsTypedArray = _$$_REQUIRE(_dependencyMap[0], './_baseIsTypedArray'), - baseUnary = _$$_REQUIRE(_dependencyMap[1], './_baseUnary'), - nodeUtil = _$$_REQUIRE(_dependencyMap[2], './_nodeUtil'); - - var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; - var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; - module.exports = isTypedArray; -},236,[258,259,260],"node_modules/lodash/isTypedArray.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseGetTag = _$$_REQUIRE(_dependencyMap[0], './_baseGetTag'), - isLength = _$$_REQUIRE(_dependencyMap[1], './isLength'), - isObjectLike = _$$_REQUIRE(_dependencyMap[2], './isObjectLike'); - - var argsTag = '[object Arguments]', - arrayTag = '[object Array]', - boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - funcTag = '[object Function]', - mapTag = '[object Map]', - numberTag = '[object Number]', - objectTag = '[object Object]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - weakMapTag = '[object WeakMap]'; - var arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]', - float32Tag = '[object Float32Array]', - float64Tag = '[object Float64Array]', - int8Tag = '[object Int8Array]', - int16Tag = '[object Int16Array]', - int32Tag = '[object Int32Array]', - uint8Tag = '[object Uint8Array]', - uint8ClampedTag = '[object Uint8ClampedArray]', - uint16Tag = '[object Uint16Array]', - uint32Tag = '[object Uint32Array]'; - var typedArrayTags = {}; - typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; - typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; - - function baseIsTypedArray(value) { - return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; - } - - module.exports = baseIsTypedArray; -},258,[209,261,230],"node_modules/lodash/_baseIsTypedArray.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var MAX_SAFE_INTEGER = 9007199254740991; - - function isLength(value) { - return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; - } - - module.exports = isLength; -},261,[],"node_modules/lodash/isLength.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function baseUnary(func) { - return function (value) { - return func(value); - }; - } - - module.exports = baseUnary; -},259,[],"node_modules/lodash/_baseUnary.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var freeGlobal = _$$_REQUIRE(_dependencyMap[0], './_freeGlobal'); - - var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; - var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; - var moduleExports = freeModule && freeModule.exports === freeExports; - var freeProcess = moduleExports && freeGlobal.process; - - var nodeUtil = function () { - try { - var types = freeModule && freeModule.require && freeModule.require('util').types; - - if (types) { - return types; - } - - return freeProcess && freeProcess.binding && freeProcess.binding('util'); - } catch (e) {} - }(); - - module.exports = nodeUtil; -},260,[213],"node_modules/lodash/_nodeUtil.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var isPrototype = _$$_REQUIRE(_dependencyMap[0], './_isPrototype'), - nativeKeys = _$$_REQUIRE(_dependencyMap[1], './_nativeKeys'); - - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - - function baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); - } - - var result = []; - - for (var key in Object(object)) { - if (hasOwnProperty.call(object, key) && key != 'constructor') { - result.push(key); - } - } - - return result; - } - - module.exports = baseKeys; -},252,[262,263],"node_modules/lodash/_baseKeys.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var objectProto = Object.prototype; - - function isPrototype(value) { - var Ctor = value && value.constructor, - proto = typeof Ctor == 'function' && Ctor.prototype || objectProto; - return value === proto; - } - - module.exports = isPrototype; -},262,[],"node_modules/lodash/_isPrototype.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var overArg = _$$_REQUIRE(_dependencyMap[0], './_overArg'); - - var nativeKeys = overArg(Object.keys, Object); - module.exports = nativeKeys; -},263,[264],"node_modules/lodash/_nativeKeys.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function overArg(func, transform) { - return function (arg) { - return func(transform(arg)); - }; - } - - module.exports = overArg; -},264,[],"node_modules/lodash/_overArg.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var isFunction = _$$_REQUIRE(_dependencyMap[0], './isFunction'), - isLength = _$$_REQUIRE(_dependencyMap[1], './isLength'); - - function isArrayLike(value) { - return value != null && isLength(value.length) && !isFunction(value); - } - - module.exports = isArrayLike; -},174,[205,261],"node_modules/lodash/isArrayLike.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var DataView = _$$_REQUIRE(_dependencyMap[0], './_DataView'), - Map = _$$_REQUIRE(_dependencyMap[1], './_Map'), - Promise = _$$_REQUIRE(_dependencyMap[2], './_Promise'), - Set = _$$_REQUIRE(_dependencyMap[3], './_Set'), - WeakMap = _$$_REQUIRE(_dependencyMap[4], './_WeakMap'), - baseGetTag = _$$_REQUIRE(_dependencyMap[5], './_baseGetTag'), - toSource = _$$_REQUIRE(_dependencyMap[6], './_toSource'); - - var mapTag = '[object Map]', - objectTag = '[object Object]', - promiseTag = '[object Promise]', - setTag = '[object Set]', - weakMapTag = '[object WeakMap]'; - var dataViewTag = '[object DataView]'; - var dataViewCtorString = toSource(DataView), - mapCtorString = toSource(Map), - promiseCtorString = toSource(Promise), - setCtorString = toSource(Set), - weakMapCtorString = toSource(WeakMap); - var getTag = baseGetTag; - - if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise && getTag(Promise.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) { - getTag = function getTag(value) { - var result = baseGetTag(value), - Ctor = result == objectTag ? value.constructor : undefined, - ctorString = Ctor ? toSource(Ctor) : ''; - - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: - return dataViewTag; - - case mapCtorString: - return mapTag; - - case promiseCtorString: - return promiseTag; - - case setCtorString: - return setTag; - - case weakMapCtorString: - return weakMapTag; - } - } - - return result; - }; - } - - module.exports = getTag; -},234,[265,199,266,267,268,209,208],"node_modules/lodash/_getTag.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var getNative = _$$_REQUIRE(_dependencyMap[0], './_getNative'), - root = _$$_REQUIRE(_dependencyMap[1], './_root'); - - var DataView = getNative(root, 'DataView'); - module.exports = DataView; -},265,[201,202],"node_modules/lodash/_DataView.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var getNative = _$$_REQUIRE(_dependencyMap[0], './_getNative'), - root = _$$_REQUIRE(_dependencyMap[1], './_root'); - - var Promise = getNative(root, 'Promise'); - module.exports = Promise; -},266,[201,202],"node_modules/lodash/_Promise.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var getNative = _$$_REQUIRE(_dependencyMap[0], './_getNative'), - root = _$$_REQUIRE(_dependencyMap[1], './_root'); - - var Set = getNative(root, 'Set'); - module.exports = Set; -},267,[201,202],"node_modules/lodash/_Set.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var getNative = _$$_REQUIRE(_dependencyMap[0], './_getNative'), - root = _$$_REQUIRE(_dependencyMap[1], './_root'); - - var WeakMap = getNative(root, 'WeakMap'); - module.exports = WeakMap; -},268,[201,202],"node_modules/lodash/_WeakMap.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var isStrictComparable = _$$_REQUIRE(_dependencyMap[0], './_isStrictComparable'), - keys = _$$_REQUIRE(_dependencyMap[1], './keys'); - - function getMatchData(object) { - var result = keys(object), - length = result.length; - - while (length--) { - var key = result[length], - value = object[key]; - result[length] = [key, value, isStrictComparable(value)]; - } - - return result; - } - - module.exports = getMatchData; -},182,[269,175],"node_modules/lodash/_getMatchData.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var isObject = _$$_REQUIRE(_dependencyMap[0], './isObject'); - - function isStrictComparable(value) { - return value === value && !isObject(value); - } - - module.exports = isStrictComparable; -},269,[207],"node_modules/lodash/_isStrictComparable.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function matchesStrictComparable(key, srcValue) { - return function (object) { - if (object == null) { - return false; - } - - return object[key] === srcValue && (srcValue !== undefined || key in Object(object)); - }; - } - - module.exports = matchesStrictComparable; -},183,[],"node_modules/lodash/_matchesStrictComparable.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseIsEqual = _$$_REQUIRE(_dependencyMap[0], './_baseIsEqual'), - get = _$$_REQUIRE(_dependencyMap[1], './get'), - hasIn = _$$_REQUIRE(_dependencyMap[2], './hasIn'), - isKey = _$$_REQUIRE(_dependencyMap[3], './_isKey'), - isStrictComparable = _$$_REQUIRE(_dependencyMap[4], './_isStrictComparable'), - matchesStrictComparable = _$$_REQUIRE(_dependencyMap[5], './_matchesStrictComparable'), - toKey = _$$_REQUIRE(_dependencyMap[6], './_toKey'); - - var COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; - - function baseMatchesProperty(path, srcValue) { - if (isKey(path) && isStrictComparable(srcValue)) { - return matchesStrictComparable(toKey(path), srcValue); - } - - return function (object) { - var objValue = get(object, path); - return objValue === undefined && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); - }; - } - - module.exports = baseMatchesProperty; -},177,[185,270,271,272,269,183,273],"node_modules/lodash/_baseMatchesProperty.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseGet = _$$_REQUIRE(_dependencyMap[0], './_baseGet'); - - function get(object, path, defaultValue) { - var result = object == null ? undefined : baseGet(object, path); - return result === undefined ? defaultValue : result; - } - - module.exports = get; -},270,[274],"node_modules/lodash/get.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var castPath = _$$_REQUIRE(_dependencyMap[0], './_castPath'), - toKey = _$$_REQUIRE(_dependencyMap[1], './_toKey'); - - function baseGet(object, path) { - path = castPath(path, object); - var index = 0, - length = path.length; - - while (object != null && index < length) { - object = object[toKey(path[index++])]; - } - - return index && index == length ? object : undefined; - } - - module.exports = baseGet; -},274,[275,273],"node_modules/lodash/_baseGet.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var isArray = _$$_REQUIRE(_dependencyMap[0], './isArray'), - isKey = _$$_REQUIRE(_dependencyMap[1], './_isKey'), - stringToPath = _$$_REQUIRE(_dependencyMap[2], './_stringToPath'), - toString = _$$_REQUIRE(_dependencyMap[3], './toString'); - - function castPath(value, object) { - if (isArray(value)) { - return value; - } - - return isKey(value, object) ? [value] : stringToPath(toString(value)); - } - - module.exports = castPath; -},275,[179,272,276,277],"node_modules/lodash/_castPath.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var isArray = _$$_REQUIRE(_dependencyMap[0], './isArray'), - isSymbol = _$$_REQUIRE(_dependencyMap[1], './isSymbol'); - - var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - reIsPlainProp = /^\w*$/; - - function isKey(value, object) { - if (isArray(value)) { - return false; - } - - var type = typeof value; - - if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol(value)) { - return true; - } - - return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object); - } - - module.exports = isKey; -},272,[179,278],"node_modules/lodash/_isKey.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseGetTag = _$$_REQUIRE(_dependencyMap[0], './_baseGetTag'), - isObjectLike = _$$_REQUIRE(_dependencyMap[1], './isObjectLike'); - - var symbolTag = '[object Symbol]'; - - function isSymbol(value) { - return typeof value == 'symbol' || isObjectLike(value) && baseGetTag(value) == symbolTag; - } - - module.exports = isSymbol; -},278,[209,230],"node_modules/lodash/isSymbol.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var memoizeCapped = _$$_REQUIRE(_dependencyMap[0], './_memoizeCapped'); - - var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; - var reEscapeChar = /\\(\\)?/g; - var stringToPath = memoizeCapped(function (string) { - var result = []; - - if (string.charCodeAt(0) === 46) { - result.push(''); - } - - string.replace(rePropName, function (match, number, quote, subString) { - result.push(quote ? subString.replace(reEscapeChar, '$1') : number || match); - }); - return result; - }); - module.exports = stringToPath; -},276,[279],"node_modules/lodash/_stringToPath.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var memoize = _$$_REQUIRE(_dependencyMap[0], './memoize'); - - var MAX_MEMOIZE_SIZE = 500; - - function memoizeCapped(func) { - var result = memoize(func, function (key) { - if (cache.size === MAX_MEMOIZE_SIZE) { - cache.clear(); - } - - return key; - }); - var cache = result.cache; - return result; - } - - module.exports = memoizeCapped; -},279,[280],"node_modules/lodash/_memoizeCapped.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var MapCache = _$$_REQUIRE(_dependencyMap[0], './_MapCache'); - - var FUNC_ERROR_TEXT = 'Expected a function'; - - function memoize(func, resolver) { - if (typeof func != 'function' || resolver != null && typeof resolver != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); - } - - var memoized = function memoized() { - var args = arguments, - key = resolver ? resolver.apply(this, args) : args[0], - cache = memoized.cache; - - if (cache.has(key)) { - return cache.get(key); - } - - var result = func.apply(this, args); - memoized.cache = cache.set(key, result) || cache; - return result; - }; - - memoized.cache = new (memoize.Cache || MapCache)(); - return memoized; - } - - memoize.Cache = MapCache; - module.exports = memoize; -},280,[200],"node_modules/lodash/memoize.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseToString = _$$_REQUIRE(_dependencyMap[0], './_baseToString'); - - function toString(value) { - return value == null ? '' : baseToString(value); - } - - module.exports = toString; -},277,[281],"node_modules/lodash/toString.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var Symbol = _$$_REQUIRE(_dependencyMap[0], './_Symbol'), - arrayMap = _$$_REQUIRE(_dependencyMap[1], './_arrayMap'), - isArray = _$$_REQUIRE(_dependencyMap[2], './isArray'), - isSymbol = _$$_REQUIRE(_dependencyMap[3], './isSymbol'); - - var INFINITY = 1 / 0; - var symbolProto = Symbol ? typeof Symbol === "function" ? Symbol.prototype : "@@prototype" : undefined, - symbolToString = symbolProto ? symbolProto.toString : undefined; - - function baseToString(value) { - if (typeof value == 'string') { - return value; - } - - if (isArray(value)) { - return arrayMap(value, baseToString) + ''; - } - - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ''; - } - - var result = value + ''; - return result == '0' && 1 / value == -INFINITY ? '-0' : result; - } - - module.exports = baseToString; -},281,[210,282,179,278],"node_modules/lodash/_baseToString.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function arrayMap(array, iteratee) { - var index = -1, - length = array == null ? 0 : array.length, - result = Array(length); - - while (++index < length) { - result[index] = iteratee(array[index], index, array); - } - - return result; - } - - module.exports = arrayMap; -},282,[],"node_modules/lodash/_arrayMap.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var isSymbol = _$$_REQUIRE(_dependencyMap[0], './isSymbol'); - - var INFINITY = 1 / 0; - - function toKey(value) { - if (typeof value == 'string' || isSymbol(value)) { - return value; - } - - var result = value + ''; - return result == '0' && 1 / value == -INFINITY ? '-0' : result; - } - - module.exports = toKey; -},273,[278],"node_modules/lodash/_toKey.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseHasIn = _$$_REQUIRE(_dependencyMap[0], './_baseHasIn'), - hasPath = _$$_REQUIRE(_dependencyMap[1], './_hasPath'); - - function hasIn(object, path) { - return object != null && hasPath(object, path, baseHasIn); - } - - module.exports = hasIn; -},271,[283,284],"node_modules/lodash/hasIn.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function baseHasIn(object, key) { - return object != null && key in Object(object); - } - - module.exports = baseHasIn; -},283,[],"node_modules/lodash/_baseHasIn.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var castPath = _$$_REQUIRE(_dependencyMap[0], './_castPath'), - isArguments = _$$_REQUIRE(_dependencyMap[1], './isArguments'), - isArray = _$$_REQUIRE(_dependencyMap[2], './isArray'), - isIndex = _$$_REQUIRE(_dependencyMap[3], './_isIndex'), - isLength = _$$_REQUIRE(_dependencyMap[4], './isLength'), - toKey = _$$_REQUIRE(_dependencyMap[5], './_toKey'); - - function hasPath(object, path, hasFunc) { - path = castPath(path, object); - var index = -1, - length = path.length, - result = false; - - while (++index < length) { - var key = toKey(path[index]); - - if (!(result = object != null && hasFunc(object, key))) { - break; - } - - object = object[key]; - } - - if (result || ++index != length) { - return result; - } - - length = object == null ? 0 : object.length; - return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); - } - - module.exports = hasPath; -},284,[275,254,179,255,261,273],"node_modules/lodash/_hasPath.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function identity(value) { - return value; - } - - module.exports = identity; -},178,[],"node_modules/lodash/identity.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseProperty = _$$_REQUIRE(_dependencyMap[0], './_baseProperty'), - basePropertyDeep = _$$_REQUIRE(_dependencyMap[1], './_basePropertyDeep'), - isKey = _$$_REQUIRE(_dependencyMap[2], './_isKey'), - toKey = _$$_REQUIRE(_dependencyMap[3], './_toKey'); - - function property(path) { - return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); - } - - module.exports = property; -},180,[285,286,272,273],"node_modules/lodash/property.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function baseProperty(key) { - return function (object) { - return object == null ? undefined : object[key]; - }; - } - - module.exports = baseProperty; -},285,[],"node_modules/lodash/_baseProperty.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseGet = _$$_REQUIRE(_dependencyMap[0], './_baseGet'); - - function basePropertyDeep(path) { - return function (object) { - return baseGet(object, path); - }; - } - - module.exports = basePropertyDeep; -},286,[274],"node_modules/lodash/_basePropertyDeep.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseFindIndex = _$$_REQUIRE(_dependencyMap[0], './_baseFindIndex'), - baseIteratee = _$$_REQUIRE(_dependencyMap[1], './_baseIteratee'), - toInteger = _$$_REQUIRE(_dependencyMap[2], './toInteger'); - - var nativeMax = Math.max; - - function findIndex(array, predicate, fromIndex) { - var length = array == null ? 0 : array.length; - - if (!length) { - return -1; - } - - var index = fromIndex == null ? 0 : toInteger(fromIndex); - - if (index < 0) { - index = nativeMax(length + index, 0); - } - - return baseFindIndex(array, baseIteratee(predicate, 3), index); - } - - module.exports = findIndex; -},172,[287,173,288],"node_modules/lodash/findIndex.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function baseFindIndex(array, predicate, fromIndex, fromRight) { - var length = array.length, - index = fromIndex + (fromRight ? 1 : -1); - - while (fromRight ? index-- : ++index < length) { - if (predicate(array[index], index, array)) { - return index; - } - } - - return -1; - } - - module.exports = baseFindIndex; -},287,[],"node_modules/lodash/_baseFindIndex.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var toFinite = _$$_REQUIRE(_dependencyMap[0], './toFinite'); - - function toInteger(value) { - var result = toFinite(value), - remainder = result % 1; - return result === result ? remainder ? result - remainder : result : 0; - } - - module.exports = toInteger; -},288,[289],"node_modules/lodash/toInteger.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var toNumber = _$$_REQUIRE(_dependencyMap[0], './toNumber'); - - var INFINITY = 1 / 0, - MAX_INTEGER = 1.7976931348623157e+308; - - function toFinite(value) { - if (!value) { - return value === 0 ? value : 0; - } - - value = toNumber(value); - - if (value === INFINITY || value === -INFINITY) { - var sign = value < 0 ? -1 : 1; - return sign * MAX_INTEGER; - } - - return value === value ? value : 0; - } - - module.exports = toFinite; -},289,[290],"node_modules/lodash/toFinite.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var isObject = _$$_REQUIRE(_dependencyMap[0], './isObject'), - isSymbol = _$$_REQUIRE(_dependencyMap[1], './isSymbol'); - - var NAN = 0 / 0; - var reTrim = /^\s+|\s+$/g; - var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; - var reIsBinary = /^0b[01]+$/i; - var reIsOctal = /^0o[0-7]+$/i; - var freeParseInt = parseInt; - - function toNumber(value) { - if (typeof value == 'number') { - return value; - } - - if (isSymbol(value)) { - return NAN; - } - - if (isObject(value)) { - var other = typeof value.valueOf == 'function' ? value.valueOf() : value; - value = isObject(other) ? other + '' : other; - } - - if (typeof value != 'string') { - return value === 0 ? value : +value; - } - - value = value.replace(reTrim, ''); - var isBinary = reIsBinary.test(value); - return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; - } - - module.exports = toNumber; -},290,[207,278],"node_modules/lodash/toNumber.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = createPrototypeProxy; - - var _assign = _$$_REQUIRE(_dependencyMap[0], 'lodash/assign'); - - var _assign2 = _interopRequireDefault(_assign); - - var _difference = _$$_REQUIRE(_dependencyMap[1], 'lodash/difference'); - - var _difference2 = _interopRequireDefault(_difference); - - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; - } - - function createPrototypeProxy() { - var proxy = {}; - var current = null; - var mountedInstances = []; - - function proxyToString(name) { - return function toString() { - if (typeof current[name] === 'function') { - return current[name].toString(); - } else { - return ''; - } - }; - } - - function proxyMethod(name) { - var proxiedMethod = function proxiedMethod() { - if (typeof current[name] === 'function') { - return current[name].apply(this, arguments); - } - }; - - (0, _assign2.default)(proxiedMethod, current[name]); - proxiedMethod.toString = proxyToString(name); - return proxiedMethod; - } - - function proxiedComponentDidMount() { - mountedInstances.push(this); - - if (typeof current.componentDidMount === 'function') { - return current.componentDidMount.apply(this, arguments); - } - } - - proxiedComponentDidMount.toString = proxyToString('componentDidMount'); - - function proxiedComponentWillUnmount() { - var index = mountedInstances.indexOf(this); - - if (index !== -1) { - mountedInstances.splice(index, 1); - } - - if (typeof current.componentWillUnmount === 'function') { - return current.componentWillUnmount.apply(this, arguments); - } - } - - proxiedComponentWillUnmount.toString = proxyToString('componentWillUnmount'); - - function defineProxyProperty(name, descriptor) { - Object.defineProperty(proxy, name, descriptor); - } - - function defineProxyPropertyWithValue(name, value) { - var _ref = Object.getOwnPropertyDescriptor(current, name) || {}; - - var _ref$enumerable = _ref.enumerable; - var enumerable = _ref$enumerable === undefined ? false : _ref$enumerable; - var _ref$writable = _ref.writable; - var writable = _ref$writable === undefined ? true : _ref$writable; - defineProxyProperty(name, { - configurable: true, - enumerable: enumerable, - writable: writable, - value: value - }); - } - - function createAutoBindMap() { - if (!current.__reactAutoBindMap) { - return; - } - - var __reactAutoBindMap = {}; - - for (var name in current.__reactAutoBindMap) { - if (typeof proxy[name] === 'function' && current.__reactAutoBindMap.hasOwnProperty(name)) { - __reactAutoBindMap[name] = proxy[name]; - } - } - - return __reactAutoBindMap; - } - - function createAutoBindPairs() { - var __reactAutoBindPairs = []; - - for (var i = 0; i < current.__reactAutoBindPairs.length; i += 2) { - var name = current.__reactAutoBindPairs[i]; - var method = proxy[name]; - - if (typeof method === 'function') { - __reactAutoBindPairs.push(name, method); - } - } - - return __reactAutoBindPairs; - } - - function update(next) { - current = next; - var currentNames = Object.getOwnPropertyNames(current); - var previousName = Object.getOwnPropertyNames(proxy); - var removedNames = (0, _difference2.default)(previousName, currentNames); - removedNames.forEach(function (name) { - delete proxy[name]; - }); - currentNames.forEach(function (name) { - var descriptor = Object.getOwnPropertyDescriptor(current, name); - - if (typeof descriptor.value === 'function') { - defineProxyPropertyWithValue(name, proxyMethod(name)); - } else { - defineProxyProperty(name, descriptor); - } - }); - defineProxyPropertyWithValue('componentDidMount', proxiedComponentDidMount); - defineProxyPropertyWithValue('componentWillUnmount', proxiedComponentWillUnmount); - - if (current.hasOwnProperty('__reactAutoBindMap')) { - defineProxyPropertyWithValue('__reactAutoBindMap', createAutoBindMap()); - } - - if (current.hasOwnProperty('__reactAutoBindPairs')) { - defineProxyPropertyWithValue('__reactAutoBindPairs', createAutoBindPairs()); - } - - proxy.__proto__ = next; - return mountedInstances; - } - - function get() { - return proxy; - } - - return { - update: update, - get: get - }; - } - - ; -},168,[291,292],"node_modules/react-proxy/modules/createPrototypeProxy.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var assignValue = _$$_REQUIRE(_dependencyMap[0], './_assignValue'), - copyObject = _$$_REQUIRE(_dependencyMap[1], './_copyObject'), - createAssigner = _$$_REQUIRE(_dependencyMap[2], './_createAssigner'), - isArrayLike = _$$_REQUIRE(_dependencyMap[3], './isArrayLike'), - isPrototype = _$$_REQUIRE(_dependencyMap[4], './_isPrototype'), - keys = _$$_REQUIRE(_dependencyMap[5], './keys'); - - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - var assign = createAssigner(function (object, source) { - if (isPrototype(source) || isArrayLike(source)) { - copyObject(source, keys(source), object); - return; - } - - for (var key in source) { - if (hasOwnProperty.call(source, key)) { - assignValue(object, key, source[key]); - } - } - }); - module.exports = assign; -},291,[293,294,295,174,262,175],"node_modules/lodash/assign.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseAssignValue = _$$_REQUIRE(_dependencyMap[0], './_baseAssignValue'), - eq = _$$_REQUIRE(_dependencyMap[1], './eq'); - - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - - function assignValue(object, key, value) { - var objValue = object[key]; - - if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === undefined && !(key in object)) { - baseAssignValue(object, key, value); - } - } - - module.exports = assignValue; -},293,[296,198],"node_modules/lodash/_assignValue.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var defineProperty = _$$_REQUIRE(_dependencyMap[0], './_defineProperty'); - - function baseAssignValue(object, key, value) { - if (key == '__proto__' && defineProperty) { - defineProperty(object, key, { - 'configurable': true, - 'enumerable': true, - 'value': value, - 'writable': true - }); - } else { - object[key] = value; - } - } - - module.exports = baseAssignValue; -},296,[297],"node_modules/lodash/_baseAssignValue.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var getNative = _$$_REQUIRE(_dependencyMap[0], './_getNative'); - - var defineProperty = function () { - try { - var func = getNative(Object, 'defineProperty'); - func({}, '', {}); - return func; - } catch (e) {} - }(); - - module.exports = defineProperty; -},297,[201],"node_modules/lodash/_defineProperty.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var assignValue = _$$_REQUIRE(_dependencyMap[0], './_assignValue'), - baseAssignValue = _$$_REQUIRE(_dependencyMap[1], './_baseAssignValue'); - - function copyObject(source, props, object, customizer) { - var isNew = !object; - object || (object = {}); - var index = -1, - length = props.length; - - while (++index < length) { - var key = props[index]; - var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined; - - if (newValue === undefined) { - newValue = source[key]; - } - - if (isNew) { - baseAssignValue(object, key, newValue); - } else { - assignValue(object, key, newValue); - } - } - - return object; - } - - module.exports = copyObject; -},294,[293,296],"node_modules/lodash/_copyObject.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseRest = _$$_REQUIRE(_dependencyMap[0], './_baseRest'), - isIterateeCall = _$$_REQUIRE(_dependencyMap[1], './_isIterateeCall'); - - function createAssigner(assigner) { - return baseRest(function (object, sources) { - var index = -1, - length = sources.length, - customizer = length > 1 ? sources[length - 1] : undefined, - guard = length > 2 ? sources[2] : undefined; - customizer = assigner.length > 3 && typeof customizer == 'function' ? (length--, customizer) : undefined; - - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - customizer = length < 3 ? undefined : customizer; - length = 1; - } - - object = Object(object); - - while (++index < length) { - var source = sources[index]; - - if (source) { - assigner(object, source, index, customizer); - } - } - - return object; - }); - } - - module.exports = createAssigner; -},295,[298,299],"node_modules/lodash/_createAssigner.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var identity = _$$_REQUIRE(_dependencyMap[0], './identity'), - overRest = _$$_REQUIRE(_dependencyMap[1], './_overRest'), - setToString = _$$_REQUIRE(_dependencyMap[2], './_setToString'); - - function baseRest(func, start) { - return setToString(overRest(func, start, identity), func + ''); - } - - module.exports = baseRest; -},298,[178,300,301],"node_modules/lodash/_baseRest.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var apply = _$$_REQUIRE(_dependencyMap[0], './_apply'); - - var nativeMax = Math.max; - - function overRest(func, start, transform) { - start = nativeMax(start === undefined ? func.length - 1 : start, 0); - return function () { - var args = arguments, - index = -1, - length = nativeMax(args.length - start, 0), - array = Array(length); - - while (++index < length) { - array[index] = args[start + index]; - } - - index = -1; - var otherArgs = Array(start + 1); - - while (++index < start) { - otherArgs[index] = args[index]; - } - - otherArgs[start] = transform(array); - return apply(func, this, otherArgs); - }; - } - - module.exports = overRest; -},300,[302],"node_modules/lodash/_overRest.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function apply(func, thisArg, args) { - switch (args.length) { - case 0: - return func.call(thisArg); - - case 1: - return func.call(thisArg, args[0]); - - case 2: - return func.call(thisArg, args[0], args[1]); - - case 3: - return func.call(thisArg, args[0], args[1], args[2]); - } - - return func.apply(thisArg, args); - } - - module.exports = apply; -},302,[],"node_modules/lodash/_apply.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseSetToString = _$$_REQUIRE(_dependencyMap[0], './_baseSetToString'), - shortOut = _$$_REQUIRE(_dependencyMap[1], './_shortOut'); - - var setToString = shortOut(baseSetToString); - module.exports = setToString; -},301,[303,304],"node_modules/lodash/_setToString.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var constant = _$$_REQUIRE(_dependencyMap[0], './constant'), - defineProperty = _$$_REQUIRE(_dependencyMap[1], './_defineProperty'), - identity = _$$_REQUIRE(_dependencyMap[2], './identity'); - - var baseSetToString = !defineProperty ? identity : function (func, string) { - return defineProperty(func, 'toString', { - 'configurable': true, - 'enumerable': false, - 'value': constant(string), - 'writable': true - }); - }; - module.exports = baseSetToString; -},303,[305,297,178],"node_modules/lodash/_baseSetToString.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function constant(value) { - return function () { - return value; - }; - } - - module.exports = constant; -},305,[],"node_modules/lodash/constant.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var HOT_COUNT = 800, - HOT_SPAN = 16; - var nativeNow = Date.now; - - function shortOut(func) { - var count = 0, - lastCalled = 0; - return function () { - var stamp = nativeNow(), - remaining = HOT_SPAN - (stamp - lastCalled); - lastCalled = stamp; - - if (remaining > 0) { - if (++count >= HOT_COUNT) { - return arguments[0]; - } - } else { - count = 0; - } - - return func.apply(undefined, arguments); - }; - } - - module.exports = shortOut; -},304,[],"node_modules/lodash/_shortOut.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var eq = _$$_REQUIRE(_dependencyMap[0], './eq'), - isArrayLike = _$$_REQUIRE(_dependencyMap[1], './isArrayLike'), - isIndex = _$$_REQUIRE(_dependencyMap[2], './_isIndex'), - isObject = _$$_REQUIRE(_dependencyMap[3], './isObject'); - - function isIterateeCall(value, index, object) { - if (!isObject(object)) { - return false; - } - - var type = typeof index; - - if (type == 'number' ? isArrayLike(object) && isIndex(index, object.length) : type == 'string' && index in object) { - return eq(object[index], value); - } - - return false; - } - - module.exports = isIterateeCall; -},299,[198,174,255,207],"node_modules/lodash/_isIterateeCall.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseDifference = _$$_REQUIRE(_dependencyMap[0], './_baseDifference'), - baseFlatten = _$$_REQUIRE(_dependencyMap[1], './_baseFlatten'), - baseRest = _$$_REQUIRE(_dependencyMap[2], './_baseRest'), - isArrayLikeObject = _$$_REQUIRE(_dependencyMap[3], './isArrayLikeObject'); - - var difference = baseRest(function (array, values) { - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true)) : []; - }); - module.exports = difference; -},292,[306,307,298,308],"node_modules/lodash/difference.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var SetCache = _$$_REQUIRE(_dependencyMap[0], './_SetCache'), - arrayIncludes = _$$_REQUIRE(_dependencyMap[1], './_arrayIncludes'), - arrayIncludesWith = _$$_REQUIRE(_dependencyMap[2], './_arrayIncludesWith'), - arrayMap = _$$_REQUIRE(_dependencyMap[3], './_arrayMap'), - baseUnary = _$$_REQUIRE(_dependencyMap[4], './_baseUnary'), - cacheHas = _$$_REQUIRE(_dependencyMap[5], './_cacheHas'); - - var LARGE_ARRAY_SIZE = 200; - - function baseDifference(array, values, iteratee, comparator) { - var index = -1, - includes = arrayIncludes, - isCommon = true, - length = array.length, - result = [], - valuesLength = values.length; - - if (!length) { - return result; - } - - if (iteratee) { - values = arrayMap(values, baseUnary(iteratee)); - } - - if (comparator) { - includes = arrayIncludesWith; - isCommon = false; - } else if (values.length >= LARGE_ARRAY_SIZE) { - includes = cacheHas; - isCommon = false; - values = new SetCache(values); - } - - outer: while (++index < length) { - var value = array[index], - computed = iteratee == null ? value : iteratee(value); - value = comparator || value !== 0 ? value : 0; - - if (isCommon && computed === computed) { - var valuesIndex = valuesLength; - - while (valuesIndex--) { - if (values[valuesIndex] === computed) { - continue outer; - } - } - - result.push(value); - } else if (!includes(values, computed, comparator)) { - result.push(value); - } - } - - return result; - } - - module.exports = baseDifference; -},306,[237,309,310,282,259,239],"node_modules/lodash/_baseDifference.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseIndexOf = _$$_REQUIRE(_dependencyMap[0], './_baseIndexOf'); - - function arrayIncludes(array, value) { - var length = array == null ? 0 : array.length; - return !!length && baseIndexOf(array, value, 0) > -1; - } - - module.exports = arrayIncludes; -},309,[311],"node_modules/lodash/_arrayIncludes.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseFindIndex = _$$_REQUIRE(_dependencyMap[0], './_baseFindIndex'), - baseIsNaN = _$$_REQUIRE(_dependencyMap[1], './_baseIsNaN'), - strictIndexOf = _$$_REQUIRE(_dependencyMap[2], './_strictIndexOf'); - - function baseIndexOf(array, value, fromIndex) { - return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex); - } - - module.exports = baseIndexOf; -},311,[287,312,313],"node_modules/lodash/_baseIndexOf.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function baseIsNaN(value) { - return value !== value; - } - - module.exports = baseIsNaN; -},312,[],"node_modules/lodash/_baseIsNaN.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function strictIndexOf(array, value, fromIndex) { - var index = fromIndex - 1, - length = array.length; - - while (++index < length) { - if (array[index] === value) { - return index; - } - } - - return -1; - } - - module.exports = strictIndexOf; -},313,[],"node_modules/lodash/_strictIndexOf.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function arrayIncludesWith(array, value, comparator) { - var index = -1, - length = array == null ? 0 : array.length; - - while (++index < length) { - if (comparator(value, array[index])) { - return true; - } - } - - return false; - } - - module.exports = arrayIncludesWith; -},310,[],"node_modules/lodash/_arrayIncludesWith.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var arrayPush = _$$_REQUIRE(_dependencyMap[0], './_arrayPush'), - isFlattenable = _$$_REQUIRE(_dependencyMap[1], './_isFlattenable'); - - function baseFlatten(array, depth, predicate, isStrict, result) { - var index = -1, - length = array.length; - predicate || (predicate = isFlattenable); - result || (result = []); - - while (++index < length) { - var value = array[index]; - - if (depth > 0 && predicate(value)) { - if (depth > 1) { - baseFlatten(value, depth - 1, predicate, isStrict, result); - } else { - arrayPush(result, value); - } - } else if (!isStrict) { - result[result.length] = value; - } - } - - return result; - } - - module.exports = baseFlatten; -},307,[248,314],"node_modules/lodash/_baseFlatten.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var Symbol = _$$_REQUIRE(_dependencyMap[0], './_Symbol'), - isArguments = _$$_REQUIRE(_dependencyMap[1], './isArguments'), - isArray = _$$_REQUIRE(_dependencyMap[2], './isArray'); - - var spreadableSymbol = Symbol ? typeof Symbol === "function" ? Symbol.isConcatSpreadable : "@@isConcatSpreadable" : undefined; - - function isFlattenable(value) { - return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); - } - - module.exports = isFlattenable; -},314,[210,254,179],"node_modules/lodash/_isFlattenable.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var isArrayLike = _$$_REQUIRE(_dependencyMap[0], './isArrayLike'), - isObjectLike = _$$_REQUIRE(_dependencyMap[1], './isObjectLike'); - - function isArrayLikeObject(value) { - return isObjectLike(value) && isArrayLike(value); - } - - module.exports = isArrayLikeObject; -},308,[174,230],"node_modules/lodash/isArrayLikeObject.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = bindAutoBindMethods; - - function bindAutoBindMethod(component, method) { - var boundMethod = method.bind(component); - boundMethod.__reactBoundContext = component; - boundMethod.__reactBoundMethod = method; - boundMethod.__reactBoundArguments = null; - var componentName = component.constructor.displayName, - _bind = boundMethod.bind; - - boundMethod.bind = function (newThis) { - var args = Array.prototype.slice.call(arguments, 1); - - if (newThis !== component && newThis !== null) { - console.warn('bind(): React component methods may only be bound to the ' + 'component instance. See ' + componentName); - } else if (!args.length) { - console.warn('bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call. See ' + componentName); - return boundMethod; - } - - var reboundMethod = _bind.apply(boundMethod, arguments); - - reboundMethod.__reactBoundContext = component; - reboundMethod.__reactBoundMethod = method; - reboundMethod.__reactBoundArguments = args; - return reboundMethod; - }; - - return boundMethod; - } - - function bindAutoBindMethodsFromMap(component) { - for (var autoBindKey in component.__reactAutoBindMap) { - if (!component.__reactAutoBindMap.hasOwnProperty(autoBindKey)) { - return; - } - - if (component.hasOwnProperty(autoBindKey) && component[autoBindKey].__reactBoundContext === component) { - continue; - } - - var method = component.__reactAutoBindMap[autoBindKey]; - component[autoBindKey] = bindAutoBindMethod(component, method); - } - } - - function bindAutoBindMethods(component) { - if (component.__reactAutoBindPairs) { - bindAutoBindMethodsFromArray(component); - } else if (component.__reactAutoBindMap) { - bindAutoBindMethodsFromMap(component); - } - } - - function bindAutoBindMethodsFromArray(component) { - var pairs = component.__reactAutoBindPairs; - - if (!pairs) { - return; - } - - for (var i = 0; i < pairs.length; i += 2) { - var autoBindKey = pairs[i]; - - if (component.hasOwnProperty(autoBindKey) && component[autoBindKey].__reactBoundContext === component) { - continue; - } - - var method = pairs[i + 1]; - component[autoBindKey] = bindAutoBindMethod(component, method); - } - } -},169,[],"node_modules/react-proxy/modules/bindAutoBindMethods.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = deleteUnknownAutoBindMethods; - - function shouldDeleteClassicInstanceMethod(component, name) { - if (component.__reactAutoBindMap && component.__reactAutoBindMap.hasOwnProperty(name)) { - return false; - } - - if (component.__reactAutoBindPairs && component.__reactAutoBindPairs.indexOf(name) >= 0) { - return false; - } - - if (component[name].__reactBoundArguments !== null) { - return false; - } - - return true; - } - - function shouldDeleteModernInstanceMethod(component, name) { - var prototype = component.constructor.prototype; - var prototypeDescriptor = Object.getOwnPropertyDescriptor(prototype, name); - - if (!prototypeDescriptor || !prototypeDescriptor.get) { - return false; - } - - if (prototypeDescriptor.get().length !== component[name].length) { - return false; - } - - return true; - } - - function shouldDeleteInstanceMethod(component, name) { - var descriptor = Object.getOwnPropertyDescriptor(component, name); - - if (typeof descriptor.value !== 'function') { - return; - } - - if (component.__reactAutoBindMap || component.__reactAutoBindPairs) { - return shouldDeleteClassicInstanceMethod(component, name); - } else { - return shouldDeleteModernInstanceMethod(component, name); - } - } - - function deleteUnknownAutoBindMethods(component) { - var names = Object.getOwnPropertyNames(component); - names.forEach(function (name) { - if (shouldDeleteInstanceMethod(component, name)) { - delete component[name]; - } - }); - } -},170,[],"node_modules/react-proxy/modules/deleteUnknownAutoBindMethods.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - exports.__esModule = true; - exports['default'] = getForceUpdate; - - function traverseRenderedChildren(internalInstance, callback, argument) { - callback(internalInstance, argument); - - if (internalInstance._renderedComponent) { - traverseRenderedChildren(internalInstance._renderedComponent, callback, argument); - } else { - for (var key in internalInstance._renderedChildren) { - if (internalInstance._renderedChildren.hasOwnProperty(key)) { - traverseRenderedChildren(internalInstance._renderedChildren[key], callback, argument); - } - } - } - } - - function setPendingForceUpdate(internalInstance) { - if (internalInstance._pendingForceUpdate === false) { - internalInstance._pendingForceUpdate = true; - } - } - - function forceUpdateIfPending(internalInstance, React) { - if (internalInstance._pendingForceUpdate === true) { - var publicInstance = internalInstance._instance; - React.Component.prototype.forceUpdate.call(publicInstance); - } - } - - function deepForceUpdateStack(instance, React) { - var internalInstance = instance._reactInternalInstance; - traverseRenderedChildren(internalInstance, setPendingForceUpdate); - traverseRenderedChildren(internalInstance, forceUpdateIfPending, React); - } - - function deepForceUpdate(instance, React) { - var root = instance._reactInternalFiber || instance._reactInternalInstance; - - if (typeof root.tag !== 'number') { - return deepForceUpdateStack(instance, React); - } - - var node = root; - - while (true) { - if (node.stateNode !== null && typeof node.type === 'function') { - var publicInstance = node.stateNode; - var updater = publicInstance.updater; - - if (typeof publicInstance.forceUpdate === 'function') { - publicInstance.forceUpdate(); - } else if (updater && typeof updater.enqueueForceUpdate === 'function') { - updater.enqueueForceUpdate(publicInstance); - } - } - - if (node.child) { - node.child['return'] = node; - node = node.child; - continue; - } - - if (node === root) { - return undefined; - } - - while (!node.sibling) { - if (!node['return'] || node['return'] === root) { - return undefined; - } - - node = node['return']; - } - - node.sibling['return'] = node['return']; - node = node.sibling; - } - } - - function getForceUpdate(React) { - return function (instance) { - deepForceUpdate(instance, React); - }; - } - - module.exports = exports['default']; -},166,[],"node_modules/react-deep-force-update/lib/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var win; - - if (typeof window !== "undefined") { - win = window; - } else if (typeof global !== "undefined") { - win = global; - } else if (typeof self !== "undefined") { - win = self; - } else { - win = {}; - } - - module.exports = win; -},163,[],"node_modules/global/window.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var React = _$$_REQUIRE(_dependencyMap[0], 'React'); - - var EdgeInsetsPropType = _$$_REQUIRE(_dependencyMap[1], 'EdgeInsetsPropType'); - - var PlatformViewPropTypes = _$$_REQUIRE(_dependencyMap[2], 'PlatformViewPropTypes'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); - - var StyleSheetPropType = _$$_REQUIRE(_dependencyMap[4], 'StyleSheetPropType'); - - var ViewStylePropTypes = _$$_REQUIRE(_dependencyMap[5], 'ViewStylePropTypes'); - - var _require = _$$_REQUIRE(_dependencyMap[6], 'ViewAccessibility'), - AccessibilityComponentTypes = _require.AccessibilityComponentTypes, - AccessibilityTraits = _require.AccessibilityTraits; - - var stylePropType = StyleSheetPropType(ViewStylePropTypes); - module.exports = _objectSpread({ - accessible: PropTypes.bool, - accessibilityLabel: PropTypes.node, - accessibilityActions: PropTypes.arrayOf(PropTypes.string), - accessibilityComponentType: PropTypes.oneOf(AccessibilityComponentTypes), - accessibilityLiveRegion: PropTypes.oneOf(['none', 'polite', 'assertive']), - importantForAccessibility: PropTypes.oneOf(['auto', 'yes', 'no', 'no-hide-descendants']), - accessibilityTraits: PropTypes.oneOfType([PropTypes.oneOf(AccessibilityTraits), PropTypes.arrayOf(PropTypes.oneOf(AccessibilityTraits))]), - accessibilityViewIsModal: PropTypes.bool, - accessibilityElementsHidden: PropTypes.bool, - onAccessibilityAction: PropTypes.func, - onAccessibilityTap: PropTypes.func, - onMagicTap: PropTypes.func, - testID: PropTypes.string, - nativeID: PropTypes.string, - onResponderGrant: PropTypes.func, - onResponderMove: PropTypes.func, - onResponderReject: PropTypes.func, - onResponderRelease: PropTypes.func, - onResponderTerminate: PropTypes.func, - onResponderTerminationRequest: PropTypes.func, - onStartShouldSetResponder: PropTypes.func, - onStartShouldSetResponderCapture: PropTypes.func, - onMoveShouldSetResponder: PropTypes.func, - onMoveShouldSetResponderCapture: PropTypes.func, - hitSlop: EdgeInsetsPropType, - onLayout: PropTypes.func, - pointerEvents: PropTypes.oneOf(['box-none', 'none', 'box-only', 'auto']), - style: stylePropType, - removeClippedSubviews: PropTypes.bool, - renderToHardwareTextureAndroid: PropTypes.bool, - shouldRasterizeIOS: PropTypes.bool, - collapsable: PropTypes.bool, - needsOffscreenAlphaCompositing: PropTypes.bool - }, PlatformViewPropTypes); -},101,[121,99,315,143,316,137,317],"node_modules/react-native/Libraries/Components/View/ViewPropTypes.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var PropTypes = _$$_REQUIRE(_dependencyMap[0], 'prop-types'); - - var EdgeInsetsPropType = PropTypes.shape({ - top: PropTypes.number, - left: PropTypes.number, - bottom: PropTypes.number, - right: PropTypes.number - }); - module.exports = EdgeInsetsPropType; -},99,[143],"node_modules/react-native/Libraries/StyleSheet/EdgeInsetsPropType.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); - - var TVViewPropTypes = {}; - - if (Platform.isTV || Platform.OS === 'android') { - TVViewPropTypes = _$$_REQUIRE(_dependencyMap[1], 'TVViewPropTypes'); - } - - module.exports = TVViewPropTypes; -},315,[94,318],"node_modules/react-native/Libraries/Components/View/PlatformViewPropTypes.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var PropTypes = _$$_REQUIRE(_dependencyMap[0], 'prop-types'); - - var TVViewPropTypes = { - isTVSelectable: PropTypes.bool, - hasTVPreferredFocus: PropTypes.bool, - tvParallaxProperties: PropTypes.object, - tvParallaxShiftDistanceX: PropTypes.number, - tvParallaxShiftDistanceY: PropTypes.number, - tvParallaxTiltAngle: PropTypes.number, - tvParallaxMagnification: PropTypes.number - }; - module.exports = TVViewPropTypes; -},318,[143],"node_modules/react-native/Libraries/Components/AppleTV/TVViewPropTypes.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var createStrictShapeTypeChecker = _$$_REQUIRE(_dependencyMap[0], 'createStrictShapeTypeChecker'); - - var flattenStyle = _$$_REQUIRE(_dependencyMap[1], 'flattenStyle'); - - function StyleSheetPropType(shape) { - var shapePropType = createStrictShapeTypeChecker(shape); - return function (props, propName, componentName, location) { - var newProps = props; - - if (props[propName]) { - newProps = {}; - newProps[propName] = flattenStyle(props[propName]); - } - - for (var _len = arguments.length, rest = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) { - rest[_key - 4] = arguments[_key]; - } - - return shapePropType.apply(void 0, [newProps, propName, componentName, location].concat(rest)); - }; - } - - module.exports = StyleSheetPropType; -},316,[319,134],"node_modules/react-native/Libraries/StyleSheet/StyleSheetPropType.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); - - var merge = _$$_REQUIRE(_dependencyMap[1], 'merge'); - - function createStrictShapeTypeChecker(shapeTypes) { - function checkType(isRequired, props, propName, componentName, location) { - if (!props[propName]) { - if (isRequired) { - invariant(false, "Required object `" + propName + "` was not specified in " + ("`" + componentName + "`.")); - } - - return; - } - - var propValue = props[propName]; - var propType = typeof propValue; - var locationName = location || '(unknown)'; - - if (propType !== 'object') { - invariant(false, "Invalid " + locationName + " `" + propName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`.")); - } - - var allKeys = merge(props[propName], shapeTypes); - - for (var _len = arguments.length, rest = new Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { - rest[_key - 5] = arguments[_key]; - } - - for (var _key2 in allKeys) { - var checker = shapeTypes[_key2]; - - if (!checker) { - invariant(false, "Invalid props." + propName + " key `" + _key2 + "` supplied to `" + componentName + "`." + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')); - } - - var error = checker.apply(void 0, [propValue, _key2, componentName, location].concat(rest)); - - if (error) { - invariant(false, error.message + '\nBad object: ' + JSON.stringify(props[propName], null, ' ')); - } - } - } - - function chainedCheckType(props, propName, componentName, location) { - for (var _len2 = arguments.length, rest = new Array(_len2 > 4 ? _len2 - 4 : 0), _key3 = 4; _key3 < _len2; _key3++) { - rest[_key3 - 4] = arguments[_key3]; - } - - return checkType.apply(void 0, [false, props, propName, componentName, location].concat(rest)); - } - - chainedCheckType.isRequired = checkType.bind(null, true); - return chainedCheckType; - } - - module.exports = createStrictShapeTypeChecker; -},319,[4,320],"node_modules/react-native/Libraries/Utilities/createStrictShapeTypeChecker.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - "use strict"; - - var mergeInto = _$$_REQUIRE(_dependencyMap[0], 'mergeInto'); - - var merge = function merge(one, two) { - var result = {}; - mergeInto(result, one); - mergeInto(result, two); - return result; - }; - - module.exports = merge; -},320,[321],"node_modules/react-native/Libraries/vendor/core/merge.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - "use strict"; - - var mergeHelpers = _$$_REQUIRE(_dependencyMap[0], 'mergeHelpers'); - - var checkMergeObjectArg = mergeHelpers.checkMergeObjectArg; - var checkMergeIntoObjectArg = mergeHelpers.checkMergeIntoObjectArg; - - function mergeInto(one, two) { - checkMergeIntoObjectArg(one); - - if (two != null) { - checkMergeObjectArg(two); - - for (var key in two) { - if (!two.hasOwnProperty(key)) { - continue; - } - - one[key] = two[key]; - } - } - } - - module.exports = mergeInto; -},321,[322],"node_modules/react-native/Libraries/vendor/core/mergeInto.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); - - var MAX_MERGE_DEPTH = 36; - - var isTerminal = function isTerminal(o) { - return typeof o !== 'object' || o instanceof Date || o === null; - }; - - var mergeHelpers = { - MAX_MERGE_DEPTH: MAX_MERGE_DEPTH, - isTerminal: isTerminal, - normalizeMergeArg: function normalizeMergeArg(arg) { - return arg === undefined || arg === null ? {} : arg; - }, - checkMergeArrayArgs: function checkMergeArrayArgs(one, two) { - invariant(Array.isArray(one) && Array.isArray(two), 'Tried to merge arrays, instead got %s and %s.', one, two); - }, - checkMergeObjectArgs: function checkMergeObjectArgs(one, two) { - mergeHelpers.checkMergeObjectArg(one); - mergeHelpers.checkMergeObjectArg(two); - }, - checkMergeObjectArg: function checkMergeObjectArg(arg) { - invariant(!isTerminal(arg) && !Array.isArray(arg), 'Tried to merge an object, instead got %s.', arg); - }, - checkMergeIntoObjectArg: function checkMergeIntoObjectArg(arg) { - invariant((!isTerminal(arg) || typeof arg === 'function') && !Array.isArray(arg), 'Tried to merge into an object, instead got %s.', arg); - }, - checkMergeLevel: function checkMergeLevel(level) { - invariant(level < MAX_MERGE_DEPTH, 'Maximum deep merge depth exceeded. You may be attempting to merge ' + 'circular structures in an unsupported way.'); - }, - checkArrayStrategy: function checkArrayStrategy(strategy) { - invariant(strategy === undefined || strategy in mergeHelpers.ArrayStrategies, 'You must provide an array strategy to deep merge functions to ' + 'instruct the deep merge how to resolve merging two arrays.'); - }, - ArrayStrategies: { - Clobber: 'Clobber', - Concat: 'Concat', - IndexByIndex: 'IndexByIndex' - } - }; - module.exports = mergeHelpers; -},322,[4],"node_modules/react-native/Libraries/vendor/core/mergeHelpers.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - module.exports = { - AccessibilityTraits: ['none', 'button', 'link', 'header', 'search', 'image', 'selected', 'plays', 'key', 'text', 'summary', 'disabled', 'frequentUpdates', 'startsMedia', 'adjustable', 'allowsDirectInteraction', 'pageTurn'], - AccessibilityComponentTypes: ['none', 'button', 'radiobutton_checked', 'radiobutton_unchecked'] - }; -},317,[],"node_modules/react-native/Libraries/Components/View/ViewAccessibility.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/ART/ReactNativeART.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Surface: { - displayName: "Surface" - }, - Group: { - displayName: "Group" - }, - ClippingRectangle: { - displayName: "ClippingRectangle" - }, - Shape: { - displayName: "Shape" - }, - Text: { - displayName: "Text" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/ART/ReactNativeART.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var Color = _$$_REQUIRE(_dependencyMap[2], 'art/core/color'); - - var Path = _$$_REQUIRE(_dependencyMap[3], 'ARTSerializablePath'); - - var Transform = _$$_REQUIRE(_dependencyMap[4], 'art/core/transform'); - - var React = _$$_REQUIRE(_dependencyMap[5], 'React'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[6], 'prop-types'); - - var ReactNativeViewAttributes = _$$_REQUIRE(_dependencyMap[7], 'ReactNativeViewAttributes'); - - var createReactNativeComponentClass = _$$_REQUIRE(_dependencyMap[8], 'createReactNativeComponentClass'); - - var merge = _$$_REQUIRE(_dependencyMap[9], 'merge'); - - var invariant = _$$_REQUIRE(_dependencyMap[10], 'fbjs/lib/invariant'); - - function arrayDiffer(a, b) { - if (a == null || b == null) { - return true; - } - - if (a.length !== b.length) { - return true; - } - - for (var i = 0; i < a.length; i++) { - if (a[i] !== b[i]) { - return true; - } - } - - return false; - } - - function fontAndLinesDiffer(a, b) { - if (a === b) { - return false; - } - - if (a.font !== b.font) { - if (a.font === null) { - return true; - } - - if (b.font === null) { - return true; - } - - if (a.font.fontFamily !== b.font.fontFamily || a.font.fontSize !== b.font.fontSize || a.font.fontWeight !== b.font.fontWeight || a.font.fontStyle !== b.font.fontStyle) { - return true; - } - } - - return arrayDiffer(a.lines, b.lines); - } - - var SurfaceViewAttributes = merge(ReactNativeViewAttributes.UIView, {}); - var NodeAttributes = { - transform: { - diff: arrayDiffer - }, - opacity: true - }; - var GroupAttributes = merge(NodeAttributes, { - clipping: { - diff: arrayDiffer - } - }); - var RenderableAttributes = merge(NodeAttributes, { - fill: { - diff: arrayDiffer - }, - stroke: { - diff: arrayDiffer - }, - strokeWidth: true, - strokeCap: true, - strokeJoin: true, - strokeDash: { - diff: arrayDiffer - } - }); - var ShapeAttributes = merge(RenderableAttributes, { - d: { - diff: arrayDiffer - } - }); - var TextAttributes = merge(RenderableAttributes, { - alignment: true, - frame: { - diff: fontAndLinesDiffer - }, - path: { - diff: arrayDiffer - } - }); - var NativeSurfaceView = createReactNativeComponentClass('ARTSurfaceView', function () { - return { - validAttributes: SurfaceViewAttributes, - uiViewClassName: 'ARTSurfaceView' - }; - }); - var NativeGroup = createReactNativeComponentClass('ARTGroup', function () { - return { - validAttributes: GroupAttributes, - uiViewClassName: 'ARTGroup' - }; - }); - var NativeShape = createReactNativeComponentClass('ARTShape', function () { - return { - validAttributes: ShapeAttributes, - uiViewClassName: 'ARTShape' - }; - }); - var NativeText = createReactNativeComponentClass('ARTText', function () { - return { - validAttributes: TextAttributes, - uiViewClassName: 'ARTText' - }; - }); - - function childrenAsString(children) { - if (!children) { - return ''; - } - - if (typeof children === 'string') { - return children; - } - - if (children.length) { - return children.join('\n'); - } - - return ''; - } - - var Surface = function (_React$Component) { - function Surface() { - _classCallCheck(this, Surface); - - return _possibleConstructorReturn(this, _getPrototypeOf(Surface).apply(this, arguments)); - } - - _createClass(Surface, [{ - key: "getChildContext", - value: function getChildContext() { - return { - isInSurface: true - }; - } - }, { - key: "render", - value: function render() { - var props = this.props; - var w = extractNumber(props.width, 0); - var h = extractNumber(props.height, 0); - return React.createElement(NativeSurfaceView, { - style: [props.style, { - width: w, - height: h - }], - __source: { - fileName: _jsxFileName, - lineNumber: 157 - } - }, this.props.children); - } - }]); - - _inherits(Surface, _React$Component); - - return Surface; - }(React.Component); - - Surface.childContextTypes = { - isInSurface: PropTypes.bool - }; - Surface = _wrapComponent("Surface")(Surface); - - function extractNumber(value, defaultValue) { - if (value == null) { - return defaultValue; - } - - return +value; - } - - var pooledTransform = new Transform(); - - function extractTransform(props) { - var scaleX = props.scaleX != null ? props.scaleX : props.scale != null ? props.scale : 1; - var scaleY = props.scaleY != null ? props.scaleY : props.scale != null ? props.scale : 1; - pooledTransform.transformTo(1, 0, 0, 1, 0, 0).move(props.x || 0, props.y || 0).rotate(props.rotation || 0, props.originX, props.originY).scale(scaleX, scaleY, props.originX, props.originY); - - if (props.transform != null) { - pooledTransform.transform(props.transform); - } - - return [pooledTransform.xx, pooledTransform.yx, pooledTransform.xy, pooledTransform.yy, pooledTransform.x, pooledTransform.y]; - } - - function extractOpacity(props) { - if (props.visible === false) { - return 0; - } - - if (props.opacity == null) { - return 1; - } - - return +props.opacity; - } - - var Group = function (_React$Component2) { - function Group() { - _classCallCheck(this, Group); - - return _possibleConstructorReturn(this, _getPrototypeOf(Group).apply(this, arguments)); - } - - _createClass(Group, [{ - key: "render", - value: function render() { - var props = this.props; - invariant(this.context.isInSurface, 'ART: must be a child of a '); - return React.createElement(NativeGroup, { - opacity: extractOpacity(props), - transform: extractTransform(props), - __source: { - fileName: _jsxFileName, - lineNumber: 232 - } - }, this.props.children); - } - }]); - - _inherits(Group, _React$Component2); - - return Group; - }(React.Component); - - Group.contextTypes = { - isInSurface: PropTypes.bool.isRequired - }; - Group = _wrapComponent("Group")(Group); - - var ClippingRectangle = function (_React$Component3) { - function ClippingRectangle() { - _classCallCheck(this, ClippingRectangle); - - return _possibleConstructorReturn(this, _getPrototypeOf(ClippingRectangle).apply(this, arguments)); - } - - _createClass(ClippingRectangle, [{ - key: "render", - value: function render() { - var props = this.props; - var x = extractNumber(props.x, 0); - var y = extractNumber(props.y, 0); - var w = extractNumber(props.width, 0); - var h = extractNumber(props.height, 0); - var clipping = [x, y, w, h]; - var propsExcludingXAndY = merge(props); - delete propsExcludingXAndY.x; - delete propsExcludingXAndY.y; - return React.createElement(NativeGroup, { - clipping: clipping, - opacity: extractOpacity(props), - transform: extractTransform(propsExcludingXAndY), - __source: { - fileName: _jsxFileName, - lineNumber: 254 - } - }, this.props.children); - } - }]); - - _inherits(ClippingRectangle, _React$Component3); - - return ClippingRectangle; - }(React.Component); - - ClippingRectangle = _wrapComponent("ClippingRectangle")(ClippingRectangle); - var SOLID_COLOR = 0; - var LINEAR_GRADIENT = 1; - var RADIAL_GRADIENT = 2; - var PATTERN = 3; - - function insertColorIntoArray(color, targetArray, atIndex) { - var c = new Color(color); - targetArray[atIndex + 0] = c.red / 255; - targetArray[atIndex + 1] = c.green / 255; - targetArray[atIndex + 2] = c.blue / 255; - targetArray[atIndex + 3] = c.alpha; - } - - function insertColorsIntoArray(stops, targetArray, atIndex) { - var i = 0; - - if ('length' in stops) { - while (i < stops.length) { - insertColorIntoArray(stops[i], targetArray, atIndex + i * 4); - i++; - } - } else { - for (var offset in stops) { - insertColorIntoArray(stops[offset], targetArray, atIndex + i * 4); - i++; - } - } - - return atIndex + i * 4; - } - - function insertOffsetsIntoArray(stops, targetArray, atIndex, multi, reverse) { - var offsetNumber; - var i = 0; - - if ('length' in stops) { - while (i < stops.length) { - offsetNumber = i / (stops.length - 1) * multi; - targetArray[atIndex + i] = reverse ? 1 - offsetNumber : offsetNumber; - i++; - } - } else { - for (var offsetString in stops) { - offsetNumber = +offsetString * multi; - targetArray[atIndex + i] = reverse ? 1 - offsetNumber : offsetNumber; - i++; - } - } - - return atIndex + i; - } - - function insertColorStopsIntoArray(stops, targetArray, atIndex) { - var lastIndex = insertColorsIntoArray(stops, targetArray, atIndex); - insertOffsetsIntoArray(stops, targetArray, lastIndex, 1, false); - } - - function insertDoubleColorStopsIntoArray(stops, targetArray, atIndex) { - var lastIndex = insertColorsIntoArray(stops, targetArray, atIndex); - lastIndex = insertColorsIntoArray(stops, targetArray, lastIndex); - lastIndex = insertOffsetsIntoArray(stops, targetArray, lastIndex, 0.5, false); - insertOffsetsIntoArray(stops, targetArray, lastIndex, 0.5, true); - } - - function applyBoundingBoxToBrushData(brushData, props) { - var type = brushData[0]; - var width = +props.width; - var height = +props.height; - - if (type === LINEAR_GRADIENT) { - brushData[1] *= width; - brushData[2] *= height; - brushData[3] *= width; - brushData[4] *= height; - } else if (type === RADIAL_GRADIENT) { - brushData[1] *= width; - brushData[2] *= height; - brushData[3] *= width; - brushData[4] *= height; - brushData[5] *= width; - brushData[6] *= height; - } else if (type === PATTERN) {} - } - - function extractBrush(colorOrBrush, props) { - if (colorOrBrush == null) { - return null; - } - - if (colorOrBrush._brush) { - if (colorOrBrush._bb) { - applyBoundingBoxToBrushData(colorOrBrush._brush, props); - colorOrBrush._bb = false; - } - - return colorOrBrush._brush; - } - - var c = new Color(colorOrBrush); - return [SOLID_COLOR, c.red / 255, c.green / 255, c.blue / 255, c.alpha]; - } - - function extractColor(color) { - if (color == null) { - return null; - } - - var c = new Color(color); - return [c.red / 255, c.green / 255, c.blue / 255, c.alpha]; - } - - function extractStrokeCap(strokeCap) { - switch (strokeCap) { - case 'butt': - return 0; - - case 'square': - return 2; - - default: - return 1; - } - } - - function extractStrokeJoin(strokeJoin) { - switch (strokeJoin) { - case 'miter': - return 0; - - case 'bevel': - return 2; - - default: - return 1; - } - } - - var Shape = function (_React$Component4) { - function Shape() { - _classCallCheck(this, Shape); - - return _possibleConstructorReturn(this, _getPrototypeOf(Shape).apply(this, arguments)); - } - - _createClass(Shape, [{ - key: "render", - value: function render() { - var props = this.props; - var path = props.d || childrenAsString(props.children); - var d = (path instanceof Path ? path : new Path(path)).toJSON(); - return React.createElement(NativeShape, { - fill: extractBrush(props.fill, props), - opacity: extractOpacity(props), - stroke: extractColor(props.stroke), - strokeCap: extractStrokeCap(props.strokeCap), - strokeDash: props.strokeDash || null, - strokeJoin: extractStrokeJoin(props.strokeJoin), - strokeWidth: extractNumber(props.strokeWidth, 1), - transform: extractTransform(props), - d: d, - __source: { - fileName: _jsxFileName, - lineNumber: 408 - } - }); - } - }]); - - _inherits(Shape, _React$Component4); - - return Shape; - }(React.Component); - - Shape = _wrapComponent("Shape")(Shape); - var cachedFontObjectsFromString = {}; - var fontFamilyPrefix = /^[\s"']*/; - var fontFamilySuffix = /[\s"']*$/; - - function extractSingleFontFamily(fontFamilyString) { - return fontFamilyString.split(',')[0].replace(fontFamilyPrefix, '').replace(fontFamilySuffix, ''); - } - - function parseFontString(font) { - if (cachedFontObjectsFromString.hasOwnProperty(font)) { - return cachedFontObjectsFromString[font]; - } - - var regexp = /^\s*((?:(?:normal|bold|italic)\s+)*)(?:(\d+(?:\.\d+)?)[ptexm\%]*(?:\s*\/.*?)?\s+)?\s*\"?([^\"]*)/i; - var match = regexp.exec(font); - - if (!match) { - return null; - } - - var fontFamily = extractSingleFontFamily(match[3]); - var fontSize = +match[2] || 12; - var isBold = /bold/.exec(match[1]); - var isItalic = /italic/.exec(match[1]); - cachedFontObjectsFromString[font] = { - fontFamily: fontFamily, - fontSize: fontSize, - fontWeight: isBold ? 'bold' : 'normal', - fontStyle: isItalic ? 'italic' : 'normal' - }; - return cachedFontObjectsFromString[font]; - } - - function extractFont(font) { - if (font == null) { - return null; - } - - if (typeof font === 'string') { - return parseFontString(font); - } - - var fontFamily = extractSingleFontFamily(font.fontFamily); - var fontSize = +font.fontSize || 12; - var fontWeight = font.fontWeight != null ? font.fontWeight.toString() : '400'; - return { - fontFamily: fontFamily, - fontSize: fontSize, - fontWeight: fontWeight, - fontStyle: font.fontStyle - }; - } - - var newLine = /\n/g; - - function extractFontAndLines(font, text) { - return { - font: extractFont(font), - lines: text.split(newLine) - }; - } - - function extractAlignment(alignment) { - switch (alignment) { - case 'right': - return 1; - - case 'center': - return 2; - - default: - return 0; - } - } - - var Text = function (_React$Component5) { - function Text() { - _classCallCheck(this, Text); - - return _possibleConstructorReturn(this, _getPrototypeOf(Text).apply(this, arguments)); - } - - _createClass(Text, [{ - key: "render", - value: function render() { - var props = this.props; - var path = props.path; - var textPath = path ? (path instanceof Path ? path : new Path(path)).toJSON() : null; - var textFrame = extractFontAndLines(props.font, childrenAsString(props.children)); - return React.createElement(NativeText, { - fill: extractBrush(props.fill, props), - opacity: extractOpacity(props), - stroke: extractColor(props.stroke), - strokeCap: extractStrokeCap(props.strokeCap), - strokeDash: props.strokeDash || null, - strokeJoin: extractStrokeJoin(props.strokeJoin), - strokeWidth: extractNumber(props.strokeWidth, 1), - transform: extractTransform(props), - alignment: extractAlignment(props.alignment), - frame: textFrame, - path: textPath, - __source: { - fileName: _jsxFileName, - lineNumber: 510 - } - }); - } - }]); - - _inherits(Text, _React$Component5); - - return Text; - }(React.Component); - - Text = _wrapComponent("Text")(Text); - - function LinearGradient(stops, x1, y1, x2, y2) { - var type = LINEAR_GRADIENT; - - if (arguments.length < 5) { - var angle = (x1 == null ? 270 : x1) * Math.PI / 180; - var x = Math.cos(angle); - var y = -Math.sin(angle); - var l = (Math.abs(x) + Math.abs(y)) / 2; - x *= l; - y *= l; - x1 = 0.5 - x; - x2 = 0.5 + x; - y1 = 0.5 - y; - y2 = 0.5 + y; - this._bb = true; - } else { - this._bb = false; - } - - var brushData = [type, +x1, +y1, +x2, +y2]; - insertColorStopsIntoArray(stops, brushData, 5); - this._brush = brushData; - } - - function RadialGradient(stops, fx, fy, rx, ry, cx, cy) { - if (ry == null) { - ry = rx; - } - - if (cx == null) { - cx = fx; - } - - if (cy == null) { - cy = fy; - } - - if (fx == null) { - fx = fy = rx = ry = cx = cy = 0.5; - this._bb = true; - } else { - this._bb = false; - } - - var brushData = [RADIAL_GRADIENT, +fx, +fy, +rx * 2, +ry * 2, +cx, +cy]; - insertDoubleColorStopsIntoArray(stops, brushData, 7); - this._brush = brushData; - } - - function Pattern(url, width, height, left, top) { - this._brush = [PATTERN, url, +left || 0, +top || 0, +width, +height]; - } - - var ReactART = { - LinearGradient: LinearGradient, - RadialGradient: RadialGradient, - Pattern: Pattern, - Transform: Transform, - Path: Path, - Surface: Surface, - Group: Group, - ClippingRectangle: ClippingRectangle, - Shape: Shape, - Text: Text - }; - module.exports = ReactART; -},7,[122,161,323,324,325,121,143,326,152,320,4],"node_modules/react-native/Libraries/ART/ReactNativeART.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var colors = { - maroon: '#800000', - red: '#ff0000', - orange: '#ffA500', - yellow: '#ffff00', - olive: '#808000', - purple: '#800080', - fuchsia: "#ff00ff", - white: '#ffffff', - lime: '#00ff00', - green: '#008000', - navy: '#000080', - blue: '#0000ff', - aqua: '#00ffff', - teal: '#008080', - black: '#000000', - silver: '#c0c0c0', - gray: '#808080' - }; - - var map = function map(array, fn) { - var results = []; - - for (var i = 0, l = array.length; i < l; i++) { - results[i] = fn(array[i], i); - } - - return results; - }; - - var Color = function Color(color, type) { - if (color.isColor) { - this.red = color.red; - this.green = color.green; - this.blue = color.blue; - this.alpha = color.alpha; - } else { - var namedColor = colors[color]; - - if (namedColor) { - color = namedColor; - type = 'hex'; - } - - switch (typeof color) { - case 'string': - if (!type) type = (type = color.match(/^rgb|^hsb|^hsl/)) ? type[0] : 'hex'; - break; - - case 'object': - type = type || 'rgb'; - color = color.toString(); - break; - - case 'number': - type = 'hex'; - color = color.toString(16); - break; - } - - color = Color['parse' + type.toUpperCase()](color); - this.red = color[0]; - this.green = color[1]; - this.blue = color[2]; - this.alpha = color[3]; - } - - this.isColor = true; - }; - - var limit = function limit(number, min, max) { - return Math.min(max, Math.max(min, number)); - }; - - var listMatch = /([-.\d]+\%?)\s*,\s*([-.\d]+\%?)\s*,\s*([-.\d]+\%?)\s*,?\s*([-.\d]*\%?)/; - var hexMatch = /^#?([a-f0-9]{1,2})([a-f0-9]{1,2})([a-f0-9]{1,2})([a-f0-9]{0,2})$/i; - - Color.parseRGB = function (color) { - return map(color.match(listMatch).slice(1), function (bit, i) { - if (bit) bit = parseFloat(bit) * (bit[bit.length - 1] == '%' ? 2.55 : 1); - return i < 3 ? Math.round((bit %= 256) < 0 ? bit + 256 : bit) : limit(bit === '' ? 1 : Number(bit), 0, 1); - }); - }; - - Color.parseHEX = function (color) { - if (color.length == 1) color = color + color + color; - return map(color.match(hexMatch).slice(1), function (bit, i) { - if (i == 3) return bit ? parseInt(bit, 16) / 255 : 1; - return parseInt(bit.length == 1 ? bit + bit : bit, 16); - }); - }; - - Color.parseHSB = function (color) { - var hsb = map(color.match(listMatch).slice(1), function (bit, i) { - if (bit) bit = parseFloat(bit); - if (i === 0) return Math.round((bit %= 360) < 0 ? bit + 360 : bit);else if (i < 3) return limit(Math.round(bit), 0, 100);else return limit(bit === '' ? 1 : Number(bit), 0, 1); - }); - var a = hsb[3]; - var br = Math.round(hsb[2] / 100 * 255); - if (hsb[1] == 0) return [br, br, br, a]; - var hue = hsb[0]; - var f = hue % 60; - var p = Math.round(hsb[2] * (100 - hsb[1]) / 10000 * 255); - var q = Math.round(hsb[2] * (6000 - hsb[1] * f) / 600000 * 255); - var t = Math.round(hsb[2] * (6000 - hsb[1] * (60 - f)) / 600000 * 255); - - switch (Math.floor(hue / 60)) { - case 0: - return [br, t, p, a]; - - case 1: - return [q, br, p, a]; - - case 2: - return [p, br, t, a]; - - case 3: - return [p, q, br, a]; - - case 4: - return [t, p, br, a]; - - default: - return [br, p, q, a]; - } - }; - - Color.parseHSL = function (color) { - var hsb = map(color.match(listMatch).slice(1), function (bit, i) { - if (bit) bit = parseFloat(bit); - if (i === 0) return Math.round((bit %= 360) < 0 ? bit + 360 : bit);else if (i < 3) return limit(Math.round(bit), 0, 100);else return limit(bit === '' ? 1 : Number(bit), 0, 1); - }); - var h = hsb[0] / 60; - var s = hsb[1] / 100; - var l = hsb[2] / 100; - var a = hsb[3]; - var c = (1 - Math.abs(2 * l - 1)) * s; - var x = c * (1 - Math.abs(h % 2 - 1)); - var m = l - c / 2; - var p = Math.round((c + m) * 255); - var q = Math.round((x + m) * 255); - var t = Math.round(m * 255); - - switch (Math.floor(h)) { - case 0: - return [p, q, t, a]; - - case 1: - return [q, p, t, a]; - - case 2: - return [t, p, q, a]; - - case 3: - return [t, q, p, a]; - - case 4: - return [q, t, p, a]; - - default: - return [p, t, q, a]; - } - }; - - var toString = function toString(type, array) { - if (array[3] != 1) type += 'a';else array.pop(); - return type + '(' + array.join(', ') + ')'; - }; - - Color.prototype = { - toHSB: function toHSB(array) { - var red = this.red, - green = this.green, - blue = this.blue, - alpha = this.alpha; - var max = Math.max(red, green, blue), - min = Math.min(red, green, blue), - delta = max - min; - var hue = 0, - saturation = delta != 0 ? delta / max : 0, - brightness = max / 255; - - if (saturation) { - var rr = (max - red) / delta, - gr = (max - green) / delta, - br = (max - blue) / delta; - hue = red == max ? br - gr : green == max ? 2 + rr - br : 4 + gr - rr; - if ((hue /= 6) < 0) hue++; - } - - var hsb = [Math.round(hue * 360), Math.round(saturation * 100), Math.round(brightness * 100), alpha]; - return array ? hsb : toString('hsb', hsb); - }, - toHSL: function toHSL(array) { - var red = this.red, - green = this.green, - blue = this.blue, - alpha = this.alpha; - var max = Math.max(red, green, blue), - min = Math.min(red, green, blue), - delta = max - min; - var hue = 0, - saturation = delta != 0 ? delta / (255 - Math.abs(max + min - 255)) : 0, - lightness = (max + min) / 512; - - if (saturation) { - var rr = (max - red) / delta, - gr = (max - green) / delta, - br = (max - blue) / delta; - hue = red == max ? br - gr : green == max ? 2 + rr - br : 4 + gr - rr; - if ((hue /= 6) < 0) hue++; - } - - var hsl = [Math.round(hue * 360), Math.round(saturation * 100), Math.round(lightness * 100), alpha]; - return array ? hsl : toString('hsl', hsl); - }, - toHEX: function toHEX(array) { - var a = this.alpha; - var alpha = (a = Math.round(a * 255).toString(16)).length == 1 ? a + a : a; - var hex = map([this.red, this.green, this.blue], function (bit) { - bit = bit.toString(16); - return bit.length == 1 ? '0' + bit : bit; - }); - return array ? hex.concat(alpha) : '#' + hex.join('') + (alpha == 'ff' ? '' : alpha); - }, - toRGB: function toRGB(array) { - var rgb = [this.red, this.green, this.blue, this.alpha]; - return array ? rgb : toString('rgb', rgb); - } - }; - Color.prototype.toString = Color.prototype.toRGB; - - Color.hex = function (hex) { - return new Color(hex, 'hex'); - }; - - if (this.hex == null) this.hex = Color.hex; - - Color.hsb = function (h, s, b, a) { - return new Color([h || 0, s || 0, b || 0, a == null ? 1 : a], 'hsb'); - }; - - if (this.hsb == null) this.hsb = Color.hsb; - - Color.hsl = function (h, s, l, a) { - return new Color([h || 0, s || 0, l || 0, a == null ? 1 : a], 'hsl'); - }; - - if (this.hsl == null) this.hsl = Color.hsl; - - Color.rgb = function (r, g, b, a) { - return new Color([r || 0, g || 0, b || 0, a == null ? 1 : a], 'rgb'); - }; - - if (this.rgb == null) this.rgb = Color.rgb; - - Color.detach = function (color) { - color = new Color(color); - return [Color.rgb(color.red, color.green, color.blue).toString(), color.alpha]; - }; - - module.exports = Color; -},323,[],"node_modules/art/core/color.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var Class = _$$_REQUIRE(_dependencyMap[0], 'art/core/class.js'); - - var Path = _$$_REQUIRE(_dependencyMap[1], 'art/core/path.js'); - - var MOVE_TO = 0; - var CLOSE = 1; - var LINE_TO = 2; - var CURVE_TO = 3; - var ARC = 4; - var SerializablePath = Class(Path, { - initialize: function initialize(path) { - this.reset(); - - if (path instanceof SerializablePath) { - this.path = path.path.slice(0); - } else if (path) { - if (path.applyToPath) { - path.applyToPath(this); - } else { - this.push(path); - } - } - }, - onReset: function onReset() { - this.path = []; - }, - onMove: function onMove(sx, sy, x, y) { - this.path.push(MOVE_TO, x, y); - }, - onLine: function onLine(sx, sy, x, y) { - this.path.push(LINE_TO, x, y); - }, - onBezierCurve: function onBezierCurve(sx, sy, p1x, p1y, p2x, p2y, x, y) { - this.path.push(CURVE_TO, p1x, p1y, p2x, p2y, x, y); - }, - _arcToBezier: Path.prototype.onArc, - onArc: function onArc(sx, sy, ex, ey, cx, cy, rx, ry, sa, ea, ccw, rotation) { - if (rx !== ry || rotation) { - return this._arcToBezier(sx, sy, ex, ey, cx, cy, rx, ry, sa, ea, ccw, rotation); - } - - this.path.push(ARC, cx, cy, rx, sa, ea, ccw ? 0 : 1); - }, - onClose: function onClose() { - this.path.push(CLOSE); - }, - toJSON: function toJSON() { - return this.path; - } - }); - module.exports = SerializablePath; -},324,[327,328],"node_modules/react-native/Libraries/ART/ARTSerializablePath.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = function (mixins) { - var proto = {}; - - for (var i = 0, l = arguments.length; i < l; i++) { - var mixin = arguments[i]; - if (typeof mixin == 'function') mixin = mixin.prototype; - - for (var key in mixin) { - proto[key] = mixin[key]; - } - } - - if (!proto.initialize) proto.initialize = function () {}; - - proto.constructor = function (a, b, c, d, e, f, g, h) { - return new proto.initialize(a, b, c, d, e, f, g, h); - }; - - proto.constructor.prototype = proto.initialize.prototype = proto; - return proto.constructor; - }; -},327,[],"node_modules/art/core/class.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var Class = _$$_REQUIRE(_dependencyMap[0], './class'); - - module.exports = Class({ - initialize: function initialize(path) { - this.reset().push(path); - }, - push: function push() { - var p = Array.prototype.join.call(arguments, ' ').match(/[a-df-z]|[\-+]?(?:[\d\.]e[\-+]?|[^\s\-+,a-z])+/ig); - if (!p) return this; - var last, - cmd = p[0], - i = 1; - - while (cmd) { - switch (cmd) { - case 'm': - this.move(p[i++], p[i++]); - break; - - case 'l': - this.line(p[i++], p[i++]); - break; - - case 'c': - this.curve(p[i++], p[i++], p[i++], p[i++], p[i++], p[i++]); - break; - - case 's': - this.curve(p[i++], p[i++], null, null, p[i++], p[i++]); - break; - - case 'q': - this.curve(p[i++], p[i++], p[i++], p[i++]); - break; - - case 't': - this.curve(p[i++], p[i++]); - break; - - case 'a': - this.arc(p[i + 5], p[i + 6], p[i], p[i + 1], p[i + 3], !+p[i + 4], p[i + 2]); - i += 7; - break; - - case 'h': - this.line(p[i++], 0); - break; - - case 'v': - this.line(0, p[i++]); - break; - - case 'M': - this.moveTo(p[i++], p[i++]); - break; - - case 'L': - this.lineTo(p[i++], p[i++]); - break; - - case 'C': - this.curveTo(p[i++], p[i++], p[i++], p[i++], p[i++], p[i++]); - break; - - case 'S': - this.curveTo(p[i++], p[i++], null, null, p[i++], p[i++]); - break; - - case 'Q': - this.curveTo(p[i++], p[i++], p[i++], p[i++]); - break; - - case 'T': - this.curveTo(p[i++], p[i++]); - break; - - case 'A': - this.arcTo(p[i + 5], p[i + 6], p[i], p[i + 1], p[i + 3], !+p[i + 4], p[i + 2]); - i += 7; - break; - - case 'H': - this.lineTo(p[i++], this.penY); - break; - - case 'V': - this.lineTo(this.penX, p[i++]); - break; - - case 'Z': - case 'z': - this.close(); - break; - - default: - cmd = last; - i--; - continue; - } - - last = cmd; - if (last == 'm') last = 'l';else if (last == 'M') last = 'L'; - cmd = p[i++]; - } - - return this; - }, - reset: function reset() { - this.penX = this.penY = 0; - this.penDownX = this.penDownY = null; - this._pivotX = this._pivotY = 0; - this.onReset(); - return this; - }, - move: function move(x, y) { - this.onMove(this.penX, this.penY, this._pivotX = this.penX += +x, this._pivotY = this.penY += +y); - return this; - }, - moveTo: function moveTo(x, y) { - this.onMove(this.penX, this.penY, this._pivotX = this.penX = +x, this._pivotY = this.penY = +y); - return this; - }, - line: function line(x, y) { - return this.lineTo(this.penX + +x, this.penY + +y); - }, - lineTo: function lineTo(x, y) { - if (this.penDownX == null) { - this.penDownX = this.penX; - this.penDownY = this.penY; - } - - this.onLine(this.penX, this.penY, this._pivotX = this.penX = +x, this._pivotY = this.penY = +y); - return this; - }, - curve: function curve(c1x, c1y, c2x, c2y, ex, ey) { - var x = this.penX, - y = this.penY; - return this.curveTo(x + +c1x, y + +c1y, c2x == null ? null : x + +c2x, c2y == null ? null : y + +c2y, ex == null ? null : x + +ex, ey == null ? null : y + +ey); - }, - curveTo: function curveTo(c1x, c1y, c2x, c2y, ex, ey) { - var x = this.penX, - y = this.penY; - - if (c2x == null) { - c2x = +c1x; - c2y = +c1y; - c1x = x * 2 - (this._pivotX || 0); - c1y = y * 2 - (this._pivotY || 0); - } - - if (ex == null) { - this._pivotX = +c1x; - this._pivotY = +c1y; - ex = +c2x; - ey = +c2y; - c2x = (ex + +c1x * 2) / 3; - c2y = (ey + +c1y * 2) / 3; - c1x = (x + +c1x * 2) / 3; - c1y = (y + +c1y * 2) / 3; - } else { - this._pivotX = +c2x; - this._pivotY = +c2y; - } - - if (this.penDownX == null) { - this.penDownX = x; - this.penDownY = y; - } - - this.onBezierCurve(x, y, +c1x, +c1y, +c2x, +c2y, this.penX = +ex, this.penY = +ey); - return this; - }, - arc: function arc(x, y, rx, ry, outer, counterClockwise, rotation) { - return this.arcTo(this.penX + +x, this.penY + +y, rx, ry, outer, counterClockwise, rotation); - }, - arcTo: function arcTo(x, y, rx, ry, outer, counterClockwise, rotation) { - ry = Math.abs(+ry || +rx || +y - this.penY); - rx = Math.abs(+rx || +x - this.penX); - if (!rx || !ry || x == this.penX && y == this.penY) return this.lineTo(x, y); - var tX = this.penX, - tY = this.penY, - clockwise = !+counterClockwise, - large = !!+outer; - var rad = rotation ? rotation * Math.PI / 180 : 0, - cos = Math.cos(rad), - sin = Math.sin(rad); - x -= tX; - y -= tY; - var cx = cos * x / 2 + sin * y / 2, - cy = -sin * x / 2 + cos * y / 2, - rxry = rx * rx * ry * ry, - rycx = ry * ry * cx * cx, - rxcy = rx * rx * cy * cy, - a = rxry - rxcy - rycx; - - if (a < 0) { - a = Math.sqrt(1 - a / rxry); - rx *= a; - ry *= a; - cx = x / 2; - cy = y / 2; - } else { - a = Math.sqrt(a / (rxcy + rycx)); - if (large == clockwise) a = -a; - var cxd = -a * cy * rx / ry, - cyd = a * cx * ry / rx; - cx = cos * cxd - sin * cyd + x / 2; - cy = sin * cxd + cos * cyd + y / 2; - } - - var xx = cos / rx, - yx = sin / rx, - xy = -sin / ry, - yy = cos / ry; - var sa = Math.atan2(xy * -cx + yy * -cy, xx * -cx + yx * -cy), - ea = Math.atan2(xy * (x - cx) + yy * (y - cy), xx * (x - cx) + yx * (y - cy)); - cx += tX; - cy += tY; - x += tX; - y += tY; - - if (this.penDownX == null) { - this.penDownX = this.penX; - this.penDownY = this.penY; - } - - this.onArc(tX, tY, this._pivotX = this.penX = x, this._pivotY = this.penY = y, cx, cy, rx, ry, sa, ea, !clockwise, rotation); - return this; - }, - counterArc: function counterArc(x, y, rx, ry, outer) { - return this.arc(x, y, rx, ry, outer, true); - }, - counterArcTo: function counterArcTo(x, y, rx, ry, outer) { - return this.arcTo(x, y, rx, ry, outer, true); - }, - close: function close() { - if (this.penDownX != null) { - this.onClose(this.penX, this.penY, this.penX = this.penDownX, this.penY = this.penDownY); - this.penDownX = null; - } - - return this; - }, - onReset: function onReset() {}, - onMove: function onMove(sx, sy, ex, ey) {}, - onLine: function onLine(sx, sy, ex, ey) { - this.onBezierCurve(sx, sy, sx, sy, ex, ey, ex, ey); - }, - onBezierCurve: function onBezierCurve(sx, sy, c1x, c1y, c2x, c2y, ex, ey) { - var gx = ex - sx, - gy = ey - sy, - g = gx * gx + gy * gy, - v1, - v2, - cx, - cy, - u; - cx = c1x - sx; - cy = c1y - sy; - u = cx * gx + cy * gy; - - if (u > g) { - cx -= gx; - cy -= gy; - } else if (u > 0 && g != 0) { - cx -= u / g * gx; - cy -= u / g * gy; - } - - v1 = cx * cx + cy * cy; - cx = c2x - sx; - cy = c2y - sy; - u = cx * gx + cy * gy; - - if (u > g) { - cx -= gx; - cy -= gy; - } else if (u > 0 && g != 0) { - cx -= u / g * gx; - cy -= u / g * gy; - } - - v2 = cx * cx + cy * cy; - - if (v1 < 0.01 && v2 < 0.01) { - this.onLine(sx, sy, ex, ey); - return; - } - - if (isNaN(v1) || isNaN(v2)) { - throw new Error('Bad input'); - } - - var s1x = (c1x + c2x) * 0.5, - s1y = (c1y + c2y) * 0.5, - l1x = (c1x + sx) * 0.5, - l1y = (c1y + sy) * 0.5, - l2x = (l1x + s1x) * 0.5, - l2y = (l1y + s1y) * 0.5, - r2x = (ex + c2x) * 0.5, - r2y = (ey + c2y) * 0.5, - r1x = (r2x + s1x) * 0.5, - r1y = (r2y + s1y) * 0.5, - l2r1x = (l2x + r1x) * 0.5, - l2r1y = (l2y + r1y) * 0.5; - this.onBezierCurve(sx, sy, l1x, l1y, l2x, l2y, l2r1x, l2r1y); - this.onBezierCurve(l2r1x, l2r1y, r1x, r1y, r2x, r2y, ex, ey); - }, - onArc: function onArc(sx, sy, ex, ey, cx, cy, rx, ry, sa, ea, ccw, rotation) { - var rad = rotation ? rotation * Math.PI / 180 : 0, - cos = Math.cos(rad), - sin = Math.sin(rad), - xx = cos * rx, - yx = -sin * ry, - xy = sin * rx, - yy = cos * ry; - var arc = ea - sa; - if (arc < 0 && !ccw) arc += Math.PI * 2;else if (arc > 0 && ccw) arc -= Math.PI * 2; - var n = Math.ceil(Math.abs(arc / (Math.PI / 2))), - step = arc / n, - k = 4 / 3 * Math.tan(step / 4); - var x = Math.cos(sa), - y = Math.sin(sa); - - for (var i = 0; i < n; i++) { - var cp1x = x - k * y, - cp1y = y + k * x; - sa += step; - x = Math.cos(sa); - y = Math.sin(sa); - var cp2x = x + k * y, - cp2y = y - k * x; - this.onBezierCurve(sx, sy, cx + xx * cp1x + yx * cp1y, cy + xy * cp1x + yy * cp1y, cx + xx * cp2x + yx * cp2y, cy + xy * cp2x + yy * cp2y, sx = cx + xx * x + yx * y, sy = cy + xy * x + yy * y); - } - }, - onClose: function onClose(sx, sy, ex, ey) { - this.onLine(sx, sy, ex, ey); - } - }); -},328,[327],"node_modules/art/core/path.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var Class = _$$_REQUIRE(_dependencyMap[0], './class'); - - function Transform(xx, yx, xy, yy, x, y) { - if (xx && typeof xx == 'object') { - yx = xx.yx; - yy = xx.yy; - y = xx.y; - xy = xx.xy; - x = xx.x; - xx = xx.xx; - } - - this.xx = xx == null ? 1 : xx; - this.yx = yx || 0; - this.xy = xy || 0; - this.yy = yy == null ? 1 : yy; - this.x = (x == null ? this.x : x) || 0; - this.y = (y == null ? this.y : y) || 0; - - this._transform(); - - return this; - } - - ; - module.exports = Class({ - initialize: Transform, - _transform: function _transform() {}, - xx: 1, - yx: 0, - x: 0, - xy: 0, - yy: 1, - y: 0, - transform: function transform(xx, yx, xy, yy, x, y) { - var m = this; - - if (xx && typeof xx == 'object') { - yx = xx.yx; - yy = xx.yy; - y = xx.y; - xy = xx.xy; - x = xx.x; - xx = xx.xx; - } - - if (!x) x = 0; - if (!y) y = 0; - return this.transformTo(m.xx * xx + m.xy * yx, m.yx * xx + m.yy * yx, m.xx * xy + m.xy * yy, m.yx * xy + m.yy * yy, m.xx * x + m.xy * y + m.x, m.yx * x + m.yy * y + m.y); - }, - transformTo: Transform, - translate: function translate(x, y) { - return this.transform(1, 0, 0, 1, x, y); - }, - move: function move(x, y) { - this.x += x || 0; - this.y += y || 0; - - this._transform(); - - return this; - }, - scale: function scale(x, y) { - if (y == null) y = x; - return this.transform(x, 0, 0, y, 0, 0); - }, - rotate: function rotate(deg, x, y) { - if (x == null || y == null) { - x = (this.left || 0) + (this.width || 0) / 2; - y = (this.top || 0) + (this.height || 0) / 2; - } - - var rad = deg * Math.PI / 180, - sin = Math.sin(rad), - cos = Math.cos(rad); - this.transform(1, 0, 0, 1, x, y); - var m = this; - return this.transformTo(cos * m.xx - sin * m.yx, sin * m.xx + cos * m.yx, cos * m.xy - sin * m.yy, sin * m.xy + cos * m.yy, m.x, m.y).transform(1, 0, 0, 1, -x, -y); - }, - moveTo: function moveTo(x, y) { - var m = this; - return this.transformTo(m.xx, m.yx, m.xy, m.yy, x, y); - }, - rotateTo: function rotateTo(deg, x, y) { - var m = this; - var flip = m.yx / m.xx > m.yy / m.xy ? -1 : 1; - if (m.xx < 0 ? m.xy >= 0 : m.xy < 0) flip = -flip; - return this.rotate(deg - Math.atan2(flip * m.yx, flip * m.xx) * 180 / Math.PI, x, y); - }, - scaleTo: function scaleTo(x, y) { - var m = this; - var h = Math.sqrt(m.xx * m.xx + m.yx * m.yx); - m.xx /= h; - m.yx /= h; - h = Math.sqrt(m.yy * m.yy + m.xy * m.xy); - m.yy /= h; - m.xy /= h; - return this.scale(x, y); - }, - resizeTo: function resizeTo(width, height) { - var w = this.width, - h = this.height; - if (!w || !h) return this; - return this.scaleTo(width / w, height / h); - }, - inversePoint: function inversePoint(x, y) { - var a = this.xx, - b = this.yx, - c = this.xy, - d = this.yy, - e = this.x, - f = this.y; - var det = b * c - a * d; - if (det == 0) return null; - return { - x: (d * (e - x) + c * (y - f)) / det, - y: (a * (f - y) + b * (x - e)) / det - }; - }, - point: function point(x, y) { - var m = this; - return { - x: m.xx * x + m.xy * y + m.x, - y: m.yx * x + m.yy * y + m.y - }; - } - }); -},325,[327],"node_modules/art/core/transform.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var ReactNativeStyleAttributes = _$$_REQUIRE(_dependencyMap[0], 'ReactNativeStyleAttributes'); - - var ReactNativeViewAttributes = {}; - ReactNativeViewAttributes.UIView = { - pointerEvents: true, - accessible: true, - accessibilityActions: true, - accessibilityLabel: true, - accessibilityComponentType: true, - accessibilityLiveRegion: true, - accessibilityTraits: true, - importantForAccessibility: true, - nativeID: true, - testID: true, - renderToHardwareTextureAndroid: true, - shouldRasterizeIOS: true, - onLayout: true, - onAccessibilityAction: true, - onAccessibilityTap: true, - onMagicTap: true, - collapsable: true, - needsOffscreenAlphaCompositing: true, - style: ReactNativeStyleAttributes - }; - ReactNativeViewAttributes.RCTView = _objectSpread({}, ReactNativeViewAttributes.UIView, { - removeClippedSubviews: true - }); - module.exports = ReactNativeViewAttributes; -},326,[132],"node_modules/react-native/Libraries/Components/View/ReactNativeViewAttributes.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/Button.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Button: { - displayName: "Button" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/Button.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var ColorPropType = _$$_REQUIRE(_dependencyMap[2], 'ColorPropType'); - - var Platform = _$$_REQUIRE(_dependencyMap[3], 'Platform'); - - var React = _$$_REQUIRE(_dependencyMap[4], 'React'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[5], 'prop-types'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[6], 'StyleSheet'); - - var Text = _$$_REQUIRE(_dependencyMap[7], 'Text'); - - var TouchableNativeFeedback = _$$_REQUIRE(_dependencyMap[8], 'TouchableNativeFeedback'); - - var TouchableOpacity = _$$_REQUIRE(_dependencyMap[9], 'TouchableOpacity'); - - var View = _$$_REQUIRE(_dependencyMap[10], 'View'); - - var invariant = _$$_REQUIRE(_dependencyMap[11], 'fbjs/lib/invariant'); - - var Button = function (_React$Component) { - function Button() { - _classCallCheck(this, Button); - - return _possibleConstructorReturn(this, _getPrototypeOf(Button).apply(this, arguments)); - } - - _createClass(Button, [{ - key: "render", - value: function render() { - var _this$props = this.props, - accessibilityLabel = _this$props.accessibilityLabel, - color = _this$props.color, - onPress = _this$props.onPress, - title = _this$props.title, - hasTVPreferredFocus = _this$props.hasTVPreferredFocus, - disabled = _this$props.disabled, - testID = _this$props.testID; - var buttonStyles = [styles.button]; - var textStyles = [styles.text]; - - if (color) { - if (Platform.OS === 'ios') { - textStyles.push({ - color: color - }); - } else { - buttonStyles.push({ - backgroundColor: color - }); - } - } - - var accessibilityTraits = ['button']; - - if (disabled) { - buttonStyles.push(styles.buttonDisabled); - textStyles.push(styles.textDisabled); - accessibilityTraits.push('disabled'); - } - - invariant(typeof title === 'string', 'The title prop of a Button must be a string'); - var formattedTitle = Platform.OS === 'android' ? title.toUpperCase() : title; - var Touchable = Platform.OS === 'android' ? TouchableNativeFeedback : TouchableOpacity; - return React.createElement(Touchable, { - accessibilityComponentType: "button", - accessibilityLabel: accessibilityLabel, - accessibilityTraits: accessibilityTraits, - hasTVPreferredFocus: hasTVPreferredFocus, - testID: testID, - disabled: disabled, - onPress: onPress, - __source: { - fileName: _jsxFileName, - lineNumber: 127 - } - }, React.createElement(View, { - style: buttonStyles, - __source: { - fileName: _jsxFileName, - lineNumber: 135 - } - }, React.createElement(Text, { - style: textStyles, - disabled: disabled, - __source: { - fileName: _jsxFileName, - lineNumber: 136 - } - }, formattedTitle))); - } - }]); - - _inherits(Button, _React$Component); - - return Button; - }(React.Component); - - Button.propTypes = { - title: PropTypes.string.isRequired, - accessibilityLabel: PropTypes.string, - color: ColorPropType, - disabled: PropTypes.bool, - hasTVPreferredFocus: PropTypes.bool, - onPress: PropTypes.func.isRequired, - testID: PropTypes.string - }; - Button = _wrapComponent("Button")(Button); - var styles = StyleSheet.create({ - button: Platform.select({ - ios: {}, - android: { - elevation: 4, - backgroundColor: '#2196F3', - borderRadius: 2 - } - }), - text: Platform.select({ - ios: { - color: '#007AFF', - textAlign: 'center', - padding: 8, - fontSize: 18 - }, - android: { - color: 'white', - textAlign: 'center', - padding: 8, - fontWeight: '500' - } - }), - buttonDisabled: Platform.select({ - ios: {}, - android: { - elevation: 0, - backgroundColor: '#dfdfdf' - } - }), - textDisabled: Platform.select({ - ios: { - color: '#cdcdcd' - }, - android: { - color: '#a1a1a1' - } - }) - }); - module.exports = Button; -},8,[122,161,98,94,121,143,83,39,45,46,48,4],"node_modules/react-native/Libraries/Components/Button.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Text/Text.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var _components = { - TouchableText: { - displayName: "TouchableText" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Text/Text.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var ReactNativeViewAttributes = _$$_REQUIRE(_dependencyMap[3], 'ReactNativeViewAttributes'); - - var TextAncestor = _$$_REQUIRE(_dependencyMap[4], 'TextAncestor'); - - var TextPropTypes = _$$_REQUIRE(_dependencyMap[5], 'TextPropTypes'); - - var Touchable = _$$_REQUIRE(_dependencyMap[6], 'Touchable'); - - var UIManager = _$$_REQUIRE(_dependencyMap[7], 'UIManager'); - - var createReactNativeComponentClass = _$$_REQUIRE(_dependencyMap[8], 'createReactNativeComponentClass'); - - var nullthrows = _$$_REQUIRE(_dependencyMap[9], 'fbjs/lib/nullthrows'); - - var processColor = _$$_REQUIRE(_dependencyMap[10], 'processColor'); - - var PRESS_RECT_OFFSET = { - top: 20, - left: 20, - right: 20, - bottom: 30 - }; - var viewConfig = { - validAttributes: _objectSpread({}, ReactNativeViewAttributes.UIView, { - isHighlighted: true, - numberOfLines: true, - ellipsizeMode: true, - allowFontScaling: true, - disabled: true, - selectable: true, - selectionColor: true, - adjustsFontSizeToFit: true, - minimumFontScale: true, - textBreakStrategy: true - }), - uiViewClassName: 'RCTText' - }; - - var TouchableText = function (_React$Component) { - function TouchableText() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, TouchableText); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(TouchableText)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = _objectSpread({}, Touchable.Mixin.touchableGetInitialState(), { - isHighlighted: false, - createResponderHandlers: _this._createResponseHandlers.bind(_assertThisInitialized(_assertThisInitialized(_this))), - responseHandlers: null - }), _temp)); - } - - _createClass(TouchableText, [{ - key: "render", - value: function render() { - var props = this.props; - - if (isTouchable(props)) { - props = _objectSpread({}, props, this.state.responseHandlers, { - isHighlighted: this.state.isHighlighted - }); - } - - if (props.selectionColor != null) { - props = _objectSpread({}, props, { - selectionColor: processColor(props.selectionColor) - }); - } - - if (__DEV__) { - if (Touchable.TOUCH_TARGET_DEBUG && props.onPress != null) { - props = _objectSpread({}, props, { - style: [props.style, { - color: 'magenta' - }] - }); - } - } - - return React.createElement(TextAncestor.Consumer, { - __source: { - fileName: _jsxFileName, - lineNumber: 139 - } - }, function (hasTextAncestor) { - return hasTextAncestor ? React.createElement(RCTVirtualText, _extends({}, props, { - ref: props.forwardedRef, - __source: { - fileName: _jsxFileName, - lineNumber: 142 - } - })) : React.createElement(TextAncestor.Provider, { - value: true, - __source: { - fileName: _jsxFileName, - lineNumber: 144 - } - }, React.createElement(RCTText, _extends({}, props, { - ref: props.forwardedRef, - __source: { - fileName: _jsxFileName, - lineNumber: 145 - } - }))); - }); - } - }, { - key: "_createResponseHandlers", - value: function _createResponseHandlers() { - var _this2 = this; - - return { - onStartShouldSetResponder: function onStartShouldSetResponder() { - var onStartShouldSetResponder = _this2.props.onStartShouldSetResponder; - var shouldSetResponder = (onStartShouldSetResponder == null ? false : onStartShouldSetResponder()) || isTouchable(_this2.props); - - if (shouldSetResponder) { - _this2._attachTouchHandlers(); - } - - return shouldSetResponder; - }, - onResponderGrant: function onResponderGrant(event, dispatchID) { - nullthrows(_this2.touchableHandleResponderGrant)(event, dispatchID); - - if (_this2.props.onResponderGrant != null) { - _this2.props.onResponderGrant.call(_this2, event, dispatchID); - } - }, - onResponderMove: function onResponderMove(event) { - nullthrows(_this2.touchableHandleResponderMove)(event); - - if (_this2.props.onResponderMove != null) { - _this2.props.onResponderMove.call(_this2, event); - } - }, - onResponderRelease: function onResponderRelease(event) { - nullthrows(_this2.touchableHandleResponderRelease)(event); - - if (_this2.props.onResponderRelease != null) { - _this2.props.onResponderRelease.call(_this2, event); - } - }, - onResponderTerminate: function onResponderTerminate(event) { - nullthrows(_this2.touchableHandleResponderTerminate)(event); - - if (_this2.props.onResponderTerminate != null) { - _this2.props.onResponderTerminate.call(_this2, event); - } - }, - onResponderTerminationRequest: function onResponderTerminationRequest() { - var onResponderTerminationRequest = _this2.props.onResponderTerminationRequest; - - if (!nullthrows(_this2.touchableHandleResponderTerminationRequest)()) { - return false; - } - - if (onResponderTerminationRequest == null) { - return true; - } - - return onResponderTerminationRequest(); - } - }; - } - }, { - key: "_attachTouchHandlers", - value: function _attachTouchHandlers() { - var _this3 = this; - - if (this.touchableGetPressRectOffset != null) { - return; - } - - for (var key in Touchable.Mixin) { - if (typeof Touchable.Mixin[key] === 'function') { - this[key] = Touchable.Mixin[key].bind(this); - } - } - - this.touchableHandleActivePressIn = function () { - if (!_this3.props.suppressHighlighting && isTouchable(_this3.props)) { - _this3.setState({ - isHighlighted: true - }); - } - }; - - this.touchableHandleActivePressOut = function () { - if (!_this3.props.suppressHighlighting && isTouchable(_this3.props)) { - _this3.setState({ - isHighlighted: false - }); - } - }; - - this.touchableHandlePress = function (event) { - if (_this3.props.onPress != null) { - _this3.props.onPress(event); - } - }; - - this.touchableHandleLongPress = function (event) { - if (_this3.props.onLongPress != null) { - _this3.props.onLongPress(event); - } - }; - - this.touchableGetPressRectOffset = function () { - return _this3.props.pressRetentionOffset == null ? PRESS_RECT_OFFSET : _this3.props.pressRetentionOffset; - }; - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(nextProps, prevState) { - return prevState.responseHandlers == null && isTouchable(nextProps) ? _objectSpread({}, prevState, { - responseHandlers: prevState.createResponderHandlers() - }) : null; - } - }]); - - _inherits(TouchableText, _React$Component); - - return TouchableText; - }(React.Component); - - TouchableText.defaultProps = { - accessible: true, - allowFontScaling: true, - ellipsizeMode: 'tail' - }; - TouchableText.viewConfig = viewConfig; - TouchableText = _wrapComponent("TouchableText")(TouchableText); - - var isTouchable = function isTouchable(props) { - return props.onPress != null || props.onLongPress != null || props.onStartShouldSetResponder != null; - }; - - var RCTText = createReactNativeComponentClass(viewConfig.uiViewClassName, function () { - return viewConfig; - }); - var RCTVirtualText = UIManager.RCTVirtualText == null ? RCTText : createReactNativeComponentClass('RCTVirtualText', function () { - return { - validAttributes: _objectSpread({}, ReactNativeViewAttributes.UIView, { - isHighlighted: true - }), - uiViewClassName: 'RCTVirtualText' - }; - }); - var Text = React.forwardRef(function (props, ref) { - return React.createElement(TouchableText, _extends({}, props, { - forwardedRef: ref, - __source: { - fileName: _jsxFileName, - lineNumber: 266 - } - })); - }); - Text.displayName = 'Text'; - Text.propTypes = TextPropTypes; - module.exports = Text; -},39,[122,161,121,326,151,329,43,87,152,330,95],"node_modules/react-native/Libraries/Text/Text.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var ColorPropType = _$$_REQUIRE(_dependencyMap[0], 'ColorPropType'); - - var EdgeInsetsPropType = _$$_REQUIRE(_dependencyMap[1], 'EdgeInsetsPropType'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[2], 'prop-types'); - - var StyleSheetPropType = _$$_REQUIRE(_dependencyMap[3], 'StyleSheetPropType'); - - var TextStylePropTypes = _$$_REQUIRE(_dependencyMap[4], 'TextStylePropTypes'); - - var stylePropType = StyleSheetPropType(TextStylePropTypes); - module.exports = { - ellipsizeMode: PropTypes.oneOf(['head', 'middle', 'tail', 'clip']), - numberOfLines: PropTypes.number, - textBreakStrategy: PropTypes.oneOf(['simple', 'highQuality', 'balanced']), - onLayout: PropTypes.func, - onPress: PropTypes.func, - onLongPress: PropTypes.func, - pressRetentionOffset: EdgeInsetsPropType, - selectable: PropTypes.bool, - selectionColor: ColorPropType, - suppressHighlighting: PropTypes.bool, - style: stylePropType, - testID: PropTypes.string, - nativeID: PropTypes.string, - allowFontScaling: PropTypes.bool, - accessible: PropTypes.bool, - adjustsFontSizeToFit: PropTypes.bool, - minimumFontScale: PropTypes.number, - disabled: PropTypes.bool - }; -},329,[98,99,143,316,136],"node_modules/react-native/Libraries/Text/TextPropTypes.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/Touchable/Touchable.js"; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var BoundingDimensions = _$$_REQUIRE(_dependencyMap[0], 'BoundingDimensions'); - - var Platform = _$$_REQUIRE(_dependencyMap[1], 'Platform'); - - var Position = _$$_REQUIRE(_dependencyMap[2], 'Position'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var ReactNative = _$$_REQUIRE(_dependencyMap[4], 'ReactNative'); - - var TVEventHandler = _$$_REQUIRE(_dependencyMap[5], 'TVEventHandler'); - - var TouchEventUtils = _$$_REQUIRE(_dependencyMap[6], 'fbjs/lib/TouchEventUtils'); - - var UIManager = _$$_REQUIRE(_dependencyMap[7], 'UIManager'); - - var View = _$$_REQUIRE(_dependencyMap[8], 'View'); - - var keyMirror = _$$_REQUIRE(_dependencyMap[9], 'fbjs/lib/keyMirror'); - - var normalizeColor = _$$_REQUIRE(_dependencyMap[10], 'normalizeColor'); - - var States = keyMirror({ - NOT_RESPONDER: null, - RESPONDER_INACTIVE_PRESS_IN: null, - RESPONDER_INACTIVE_PRESS_OUT: null, - RESPONDER_ACTIVE_PRESS_IN: null, - RESPONDER_ACTIVE_PRESS_OUT: null, - RESPONDER_ACTIVE_LONG_PRESS_IN: null, - RESPONDER_ACTIVE_LONG_PRESS_OUT: null, - ERROR: null - }); - var IsActive = { - RESPONDER_ACTIVE_PRESS_OUT: true, - RESPONDER_ACTIVE_PRESS_IN: true - }; - var IsPressingIn = { - RESPONDER_INACTIVE_PRESS_IN: true, - RESPONDER_ACTIVE_PRESS_IN: true, - RESPONDER_ACTIVE_LONG_PRESS_IN: true - }; - var IsLongPressingIn = { - RESPONDER_ACTIVE_LONG_PRESS_IN: true - }; - var Signals = keyMirror({ - DELAY: null, - RESPONDER_GRANT: null, - RESPONDER_RELEASE: null, - RESPONDER_TERMINATED: null, - ENTER_PRESS_RECT: null, - LEAVE_PRESS_RECT: null, - LONG_PRESS_DETECTED: null - }); - var Transitions = { - NOT_RESPONDER: { - DELAY: States.ERROR, - RESPONDER_GRANT: States.RESPONDER_INACTIVE_PRESS_IN, - RESPONDER_RELEASE: States.ERROR, - RESPONDER_TERMINATED: States.ERROR, - ENTER_PRESS_RECT: States.ERROR, - LEAVE_PRESS_RECT: States.ERROR, - LONG_PRESS_DETECTED: States.ERROR - }, - RESPONDER_INACTIVE_PRESS_IN: { - DELAY: States.RESPONDER_ACTIVE_PRESS_IN, - RESPONDER_GRANT: States.ERROR, - RESPONDER_RELEASE: States.NOT_RESPONDER, - RESPONDER_TERMINATED: States.NOT_RESPONDER, - ENTER_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_IN, - LEAVE_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_OUT, - LONG_PRESS_DETECTED: States.ERROR - }, - RESPONDER_INACTIVE_PRESS_OUT: { - DELAY: States.RESPONDER_ACTIVE_PRESS_OUT, - RESPONDER_GRANT: States.ERROR, - RESPONDER_RELEASE: States.NOT_RESPONDER, - RESPONDER_TERMINATED: States.NOT_RESPONDER, - ENTER_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_IN, - LEAVE_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_OUT, - LONG_PRESS_DETECTED: States.ERROR - }, - RESPONDER_ACTIVE_PRESS_IN: { - DELAY: States.ERROR, - RESPONDER_GRANT: States.ERROR, - RESPONDER_RELEASE: States.NOT_RESPONDER, - RESPONDER_TERMINATED: States.NOT_RESPONDER, - ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_IN, - LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_OUT, - LONG_PRESS_DETECTED: States.RESPONDER_ACTIVE_LONG_PRESS_IN - }, - RESPONDER_ACTIVE_PRESS_OUT: { - DELAY: States.ERROR, - RESPONDER_GRANT: States.ERROR, - RESPONDER_RELEASE: States.NOT_RESPONDER, - RESPONDER_TERMINATED: States.NOT_RESPONDER, - ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_IN, - LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_OUT, - LONG_PRESS_DETECTED: States.ERROR - }, - RESPONDER_ACTIVE_LONG_PRESS_IN: { - DELAY: States.ERROR, - RESPONDER_GRANT: States.ERROR, - RESPONDER_RELEASE: States.NOT_RESPONDER, - RESPONDER_TERMINATED: States.NOT_RESPONDER, - ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_IN, - LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_OUT, - LONG_PRESS_DETECTED: States.RESPONDER_ACTIVE_LONG_PRESS_IN - }, - RESPONDER_ACTIVE_LONG_PRESS_OUT: { - DELAY: States.ERROR, - RESPONDER_GRANT: States.ERROR, - RESPONDER_RELEASE: States.NOT_RESPONDER, - RESPONDER_TERMINATED: States.NOT_RESPONDER, - ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_IN, - LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_OUT, - LONG_PRESS_DETECTED: States.ERROR - }, - error: { - DELAY: States.NOT_RESPONDER, - RESPONDER_GRANT: States.RESPONDER_INACTIVE_PRESS_IN, - RESPONDER_RELEASE: States.NOT_RESPONDER, - RESPONDER_TERMINATED: States.NOT_RESPONDER, - ENTER_PRESS_RECT: States.NOT_RESPONDER, - LEAVE_PRESS_RECT: States.NOT_RESPONDER, - LONG_PRESS_DETECTED: States.NOT_RESPONDER - } - }; - var HIGHLIGHT_DELAY_MS = 130; - var PRESS_EXPAND_PX = 20; - var LONG_PRESS_THRESHOLD = 500; - var LONG_PRESS_DELAY_MS = LONG_PRESS_THRESHOLD - HIGHLIGHT_DELAY_MS; - var LONG_PRESS_ALLOWED_MOVEMENT = 10; - var TouchableMixin = { - componentDidMount: function componentDidMount() { - if (!Platform.isTV) { - return; - } - - this._tvEventHandler = new TVEventHandler(); - - this._tvEventHandler.enable(this, function (cmp, evt) { - var myTag = ReactNative.findNodeHandle(cmp); - evt.dispatchConfig = {}; - - if (myTag === evt.tag) { - if (evt.eventType === 'focus') { - cmp.touchableHandleActivePressIn && cmp.touchableHandleActivePressIn(evt); - } else if (evt.eventType === 'blur') { - cmp.touchableHandleActivePressOut && cmp.touchableHandleActivePressOut(evt); - } else if (evt.eventType === 'select') { - cmp.touchableHandlePress && !cmp.props.disabled && cmp.touchableHandlePress(evt); - } - } - }); - }, - componentWillUnmount: function componentWillUnmount() { - if (this._tvEventHandler) { - this._tvEventHandler.disable(); - - delete this._tvEventHandler; - } - - this.touchableDelayTimeout && clearTimeout(this.touchableDelayTimeout); - this.longPressDelayTimeout && clearTimeout(this.longPressDelayTimeout); - this.pressOutDelayTimeout && clearTimeout(this.pressOutDelayTimeout); - }, - touchableGetInitialState: function touchableGetInitialState() { - return { - touchable: { - touchState: undefined, - responderID: null - } - }; - }, - touchableHandleResponderTerminationRequest: function touchableHandleResponderTerminationRequest() { - return !this.props.rejectResponderTermination; - }, - touchableHandleStartShouldSetResponder: function touchableHandleStartShouldSetResponder() { - return !this.props.disabled; - }, - touchableLongPressCancelsPress: function touchableLongPressCancelsPress() { - return true; - }, - touchableHandleResponderGrant: function touchableHandleResponderGrant(e) { - var dispatchID = e.currentTarget; - e.persist(); - this.pressOutDelayTimeout && clearTimeout(this.pressOutDelayTimeout); - this.pressOutDelayTimeout = null; - this.state.touchable.touchState = States.NOT_RESPONDER; - this.state.touchable.responderID = dispatchID; - - this._receiveSignal(Signals.RESPONDER_GRANT, e); - - var delayMS = this.touchableGetHighlightDelayMS !== undefined ? Math.max(this.touchableGetHighlightDelayMS(), 0) : HIGHLIGHT_DELAY_MS; - delayMS = isNaN(delayMS) ? HIGHLIGHT_DELAY_MS : delayMS; - - if (delayMS !== 0) { - this.touchableDelayTimeout = setTimeout(this._handleDelay.bind(this, e), delayMS); - } else { - this._handleDelay(e); - } - - var longDelayMS = this.touchableGetLongPressDelayMS !== undefined ? Math.max(this.touchableGetLongPressDelayMS(), 10) : LONG_PRESS_DELAY_MS; - longDelayMS = isNaN(longDelayMS) ? LONG_PRESS_DELAY_MS : longDelayMS; - this.longPressDelayTimeout = setTimeout(this._handleLongDelay.bind(this, e), longDelayMS + delayMS); - }, - touchableHandleResponderRelease: function touchableHandleResponderRelease(e) { - this._receiveSignal(Signals.RESPONDER_RELEASE, e); - }, - touchableHandleResponderTerminate: function touchableHandleResponderTerminate(e) { - this._receiveSignal(Signals.RESPONDER_TERMINATED, e); - }, - touchableHandleResponderMove: function touchableHandleResponderMove(e) { - if (this.state.touchable.touchState === States.RESPONDER_INACTIVE_PRESS_IN) { - return; - } - - if (!this.state.touchable.positionOnActivate) { - return; - } - - var positionOnActivate = this.state.touchable.positionOnActivate; - var dimensionsOnActivate = this.state.touchable.dimensionsOnActivate; - var pressRectOffset = this.touchableGetPressRectOffset ? this.touchableGetPressRectOffset() : { - left: PRESS_EXPAND_PX, - right: PRESS_EXPAND_PX, - top: PRESS_EXPAND_PX, - bottom: PRESS_EXPAND_PX - }; - var pressExpandLeft = pressRectOffset.left; - var pressExpandTop = pressRectOffset.top; - var pressExpandRight = pressRectOffset.right; - var pressExpandBottom = pressRectOffset.bottom; - var hitSlop = this.touchableGetHitSlop ? this.touchableGetHitSlop() : null; - - if (hitSlop) { - pressExpandLeft += hitSlop.left; - pressExpandTop += hitSlop.top; - pressExpandRight += hitSlop.right; - pressExpandBottom += hitSlop.bottom; - } - - var touch = TouchEventUtils.extractSingleTouch(e.nativeEvent); - var pageX = touch && touch.pageX; - var pageY = touch && touch.pageY; - - if (this.pressInLocation) { - var movedDistance = this._getDistanceBetweenPoints(pageX, pageY, this.pressInLocation.pageX, this.pressInLocation.pageY); - - if (movedDistance > LONG_PRESS_ALLOWED_MOVEMENT) { - this._cancelLongPressDelayTimeout(); - } - } - - var isTouchWithinActive = pageX > positionOnActivate.left - pressExpandLeft && pageY > positionOnActivate.top - pressExpandTop && pageX < positionOnActivate.left + dimensionsOnActivate.width + pressExpandRight && pageY < positionOnActivate.top + dimensionsOnActivate.height + pressExpandBottom; - - if (isTouchWithinActive) { - this._receiveSignal(Signals.ENTER_PRESS_RECT, e); - - var curState = this.state.touchable.touchState; - - if (curState === States.RESPONDER_INACTIVE_PRESS_IN) { - this._cancelLongPressDelayTimeout(); - } - } else { - this._cancelLongPressDelayTimeout(); - - this._receiveSignal(Signals.LEAVE_PRESS_RECT, e); - } - }, - _remeasureMetricsOnActivation: function _remeasureMetricsOnActivation() { - var tag = this.state.touchable.responderID; - - if (tag == null) { - return; - } - - UIManager.measure(tag, this._handleQueryLayout); - }, - _handleQueryLayout: function _handleQueryLayout(l, t, w, h, globalX, globalY) { - if (!l && !t && !w && !h && !globalX && !globalY) { - return; - } - - this.state.touchable.positionOnActivate && Position.release(this.state.touchable.positionOnActivate); - this.state.touchable.dimensionsOnActivate && BoundingDimensions.release(this.state.touchable.dimensionsOnActivate); - this.state.touchable.positionOnActivate = Position.getPooled(globalX, globalY); - this.state.touchable.dimensionsOnActivate = BoundingDimensions.getPooled(w, h); - }, - _handleDelay: function _handleDelay(e) { - this.touchableDelayTimeout = null; - - this._receiveSignal(Signals.DELAY, e); - }, - _handleLongDelay: function _handleLongDelay(e) { - this.longPressDelayTimeout = null; - var curState = this.state.touchable.touchState; - - if (curState !== States.RESPONDER_ACTIVE_PRESS_IN && curState !== States.RESPONDER_ACTIVE_LONG_PRESS_IN) { - console.error('Attempted to transition from state `' + curState + '` to `' + States.RESPONDER_ACTIVE_LONG_PRESS_IN + '`, which is not supported. This is ' + 'most likely due to `Touchable.longPressDelayTimeout` not being cancelled.'); - } else { - this._receiveSignal(Signals.LONG_PRESS_DETECTED, e); - } - }, - _receiveSignal: function _receiveSignal(signal, e) { - var responderID = this.state.touchable.responderID; - var curState = this.state.touchable.touchState; - var nextState = Transitions[curState] && Transitions[curState][signal]; - - if (!responderID && signal === Signals.RESPONDER_RELEASE) { - return; - } - - if (!nextState) { - throw new Error('Unrecognized signal `' + signal + '` or state `' + curState + '` for Touchable responder `' + responderID + '`'); - } - - if (nextState === States.ERROR) { - throw new Error('Touchable cannot transition from `' + curState + '` to `' + signal + '` for responder `' + responderID + '`'); - } - - if (curState !== nextState) { - this._performSideEffectsForTransition(curState, nextState, signal, e); - - this.state.touchable.touchState = nextState; - } - }, - _cancelLongPressDelayTimeout: function _cancelLongPressDelayTimeout() { - this.longPressDelayTimeout && clearTimeout(this.longPressDelayTimeout); - this.longPressDelayTimeout = null; - }, - _isHighlight: function _isHighlight(state) { - return state === States.RESPONDER_ACTIVE_PRESS_IN || state === States.RESPONDER_ACTIVE_LONG_PRESS_IN; - }, - _savePressInLocation: function _savePressInLocation(e) { - var touch = TouchEventUtils.extractSingleTouch(e.nativeEvent); - var pageX = touch && touch.pageX; - var pageY = touch && touch.pageY; - var locationX = touch && touch.locationX; - var locationY = touch && touch.locationY; - this.pressInLocation = { - pageX: pageX, - pageY: pageY, - locationX: locationX, - locationY: locationY - }; - }, - _getDistanceBetweenPoints: function _getDistanceBetweenPoints(aX, aY, bX, bY) { - var deltaX = aX - bX; - var deltaY = aY - bY; - return Math.sqrt(deltaX * deltaX + deltaY * deltaY); - }, - _performSideEffectsForTransition: function _performSideEffectsForTransition(curState, nextState, signal, e) { - var curIsHighlight = this._isHighlight(curState); - - var newIsHighlight = this._isHighlight(nextState); - - var isFinalSignal = signal === Signals.RESPONDER_TERMINATED || signal === Signals.RESPONDER_RELEASE; - - if (isFinalSignal) { - this._cancelLongPressDelayTimeout(); - } - - if (!IsActive[curState] && IsActive[nextState]) { - this._remeasureMetricsOnActivation(); - } - - if (IsPressingIn[curState] && signal === Signals.LONG_PRESS_DETECTED) { - this.touchableHandleLongPress && this.touchableHandleLongPress(e); - } - - if (newIsHighlight && !curIsHighlight) { - this._startHighlight(e); - } else if (!newIsHighlight && curIsHighlight) { - this._endHighlight(e); - } - - if (IsPressingIn[curState] && signal === Signals.RESPONDER_RELEASE) { - var hasLongPressHandler = !!this.props.onLongPress; - var pressIsLongButStillCallOnPress = IsLongPressingIn[curState] && (!hasLongPressHandler || !this.touchableLongPressCancelsPress()); - var shouldInvokePress = !IsLongPressingIn[curState] || pressIsLongButStillCallOnPress; - - if (shouldInvokePress && this.touchableHandlePress) { - if (!newIsHighlight && !curIsHighlight) { - this._startHighlight(e); - - this._endHighlight(e); - } - - if (Platform.OS === 'android') { - this._playTouchSound(); - } - - this.touchableHandlePress(e); - } - } - - this.touchableDelayTimeout && clearTimeout(this.touchableDelayTimeout); - this.touchableDelayTimeout = null; - }, - _playTouchSound: function _playTouchSound() { - UIManager.playTouchSound(); - }, - _startHighlight: function _startHighlight(e) { - this._savePressInLocation(e); - - this.touchableHandleActivePressIn && this.touchableHandleActivePressIn(e); - }, - _endHighlight: function _endHighlight(e) { - var _this = this; - - if (this.touchableHandleActivePressOut) { - if (this.touchableGetPressOutDelayMS && this.touchableGetPressOutDelayMS()) { - this.pressOutDelayTimeout = setTimeout(function () { - _this.touchableHandleActivePressOut(e); - }, this.touchableGetPressOutDelayMS()); - } else { - this.touchableHandleActivePressOut(e); - } - } - } - }; - var Touchable = { - Mixin: TouchableMixin, - TOUCH_TARGET_DEBUG: false, - renderDebugView: function renderDebugView(_ref) { - var color = _ref.color, - hitSlop = _ref.hitSlop; - - if (!Touchable.TOUCH_TARGET_DEBUG) { - return null; - } - - if (!__DEV__) { - throw Error('Touchable.TOUCH_TARGET_DEBUG should not be enabled in prod!'); - } - - var debugHitSlopStyle = {}; - hitSlop = hitSlop || { - top: 0, - bottom: 0, - left: 0, - right: 0 - }; - - for (var key in hitSlop) { - debugHitSlopStyle[key] = -hitSlop[key]; - } - - var hexColor = '#' + ('00000000' + normalizeColor(color).toString(16)).substr(-8); - return React.createElement(View, { - pointerEvents: "none", - style: _objectSpread({ - position: 'absolute', - borderColor: hexColor.slice(0, -2) + '55', - borderWidth: 1, - borderStyle: 'dashed', - backgroundColor: hexColor.slice(0, -2) + '0F' - }, debugHitSlopStyle), - __source: { - fileName: _jsxFileName, - lineNumber: 840 - } - }); - } - }; - module.exports = Touchable; -},43,[331,94,332,121,67,86,333,87,48,138,146],"node_modules/react-native/Libraries/Components/Touchable/Touchable.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var PooledClass = _$$_REQUIRE(_dependencyMap[0], 'PooledClass'); - - var twoArgumentPooler = PooledClass.twoArgumentPooler; - - function BoundingDimensions(width, height) { - this.width = width; - this.height = height; - } - - BoundingDimensions.prototype.destructor = function () { - this.width = null; - this.height = null; - }; - - BoundingDimensions.getPooledFromElement = function (element) { - return BoundingDimensions.getPooled(element.offsetWidth, element.offsetHeight); - }; - - PooledClass.addPoolingTo(BoundingDimensions, twoArgumentPooler); - module.exports = BoundingDimensions; -},331,[334],"node_modules/react-native/Libraries/Components/Touchable/BoundingDimensions.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); - - var oneArgumentPooler = function oneArgumentPooler(copyFieldsFrom) { - var Klass = this; - - if (Klass.instancePool.length) { - var _instance = Klass.instancePool.pop(); - - Klass.call(_instance, copyFieldsFrom); - return _instance; - } else { - return new Klass(copyFieldsFrom); - } - }; - - var twoArgumentPooler = function twoArgumentPooler(a1, a2) { - var Klass = this; - - if (Klass.instancePool.length) { - var _instance2 = Klass.instancePool.pop(); - - Klass.call(_instance2, a1, a2); - return _instance2; - } else { - return new Klass(a1, a2); - } - }; - - var threeArgumentPooler = function threeArgumentPooler(a1, a2, a3) { - var Klass = this; - - if (Klass.instancePool.length) { - var _instance3 = Klass.instancePool.pop(); - - Klass.call(_instance3, a1, a2, a3); - return _instance3; - } else { - return new Klass(a1, a2, a3); - } - }; - - var fourArgumentPooler = function fourArgumentPooler(a1, a2, a3, a4) { - var Klass = this; - - if (Klass.instancePool.length) { - var _instance4 = Klass.instancePool.pop(); - - Klass.call(_instance4, a1, a2, a3, a4); - return _instance4; - } else { - return new Klass(a1, a2, a3, a4); - } - }; - - var standardReleaser = function standardReleaser(instance) { - var Klass = this; - invariant(instance instanceof Klass, 'Trying to release an instance into a pool of a different type.'); - instance.destructor(); - - if (Klass.instancePool.length < Klass.poolSize) { - Klass.instancePool.push(instance); - } - }; - - var DEFAULT_POOL_SIZE = 10; - var DEFAULT_POOLER = oneArgumentPooler; - - var addPoolingTo = function addPoolingTo(CopyConstructor, pooler) { - var NewKlass = CopyConstructor; - NewKlass.instancePool = []; - NewKlass.getPooled = pooler || DEFAULT_POOLER; - - if (!NewKlass.poolSize) { - NewKlass.poolSize = DEFAULT_POOL_SIZE; - } - - NewKlass.release = standardReleaser; - return NewKlass; - }; - - var PooledClass = { - addPoolingTo: addPoolingTo, - oneArgumentPooler: oneArgumentPooler, - twoArgumentPooler: twoArgumentPooler, - threeArgumentPooler: threeArgumentPooler, - fourArgumentPooler: fourArgumentPooler - }; - module.exports = PooledClass; -},334,[4],"node_modules/react-native/Libraries/Components/Touchable/PooledClass.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var PooledClass = _$$_REQUIRE(_dependencyMap[0], 'PooledClass'); - - var twoArgumentPooler = PooledClass.twoArgumentPooler; - - function Position(left, top) { - this.left = left; - this.top = top; - } - - Position.prototype.destructor = function () { - this.left = null; - this.top = null; - }; - - PooledClass.addPoolingTo(Position, twoArgumentPooler); - module.exports = Position; -},332,[334],"node_modules/react-native/Libraries/Components/Touchable/Position.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var ReactNative; - - if (__DEV__) { - ReactNative = _$$_REQUIRE(_dependencyMap[0], 'ReactNativeRenderer-dev'); - } else { - ReactNative = _$$_REQUIRE(_dependencyMap[1], 'ReactNativeRenderer-prod'); - } - - module.exports = ReactNative; -},67,[335,336],"node_modules/react-native/Libraries/Renderer/shims/ReactNative.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - if (__DEV__) { - (function () { - "use strict"; - - _$$_REQUIRE(_dependencyMap[0], "InitializeCore"); - - var invariant = _$$_REQUIRE(_dependencyMap[1], "fbjs/lib/invariant"); - - var warning = _$$_REQUIRE(_dependencyMap[2], "fbjs/lib/warning"); - - var ReactNativeViewConfigRegistry = _$$_REQUIRE(_dependencyMap[3], "ReactNativeViewConfigRegistry"); - - var UIManager = _$$_REQUIRE(_dependencyMap[4], "UIManager"); - - var RCTEventEmitter = _$$_REQUIRE(_dependencyMap[5], "RCTEventEmitter"); - - var React = _$$_REQUIRE(_dependencyMap[6], "react"); - - var emptyObject = _$$_REQUIRE(_dependencyMap[7], "fbjs/lib/emptyObject"); - - var deepFreezeAndThrowOnMutationInDev = _$$_REQUIRE(_dependencyMap[8], "deepFreezeAndThrowOnMutationInDev"); - - var deepDiffer = _$$_REQUIRE(_dependencyMap[9], "deepDiffer"); - - var flattenStyle = _$$_REQUIRE(_dependencyMap[10], "flattenStyle"); - - var TextInputState = _$$_REQUIRE(_dependencyMap[11], "TextInputState"); - - var checkPropTypes = _$$_REQUIRE(_dependencyMap[12], "prop-types/checkPropTypes"); - - var ExceptionsManager = _$$_REQUIRE(_dependencyMap[13], "ExceptionsManager"); - - var invokeGuardedCallback = function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { - this._hasCaughtError = false; - this._caughtError = null; - var funcArgs = Array.prototype.slice.call(arguments, 3); - - try { - func.apply(context, funcArgs); - } catch (error) { - this._caughtError = error; - this._hasCaughtError = true; - } - }; - - { - if (typeof window !== "undefined" && typeof window.dispatchEvent === "function" && typeof document !== "undefined" && typeof document.createEvent === "function") { - var fakeNode = document.createElement("react"); - - var invokeGuardedCallbackDev = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) { - invariant(typeof document !== "undefined", "The `document` global was defined when React was initialized, but is not " + "defined anymore. This can happen in a test environment if a component " + "schedules an update from an asynchronous callback, but the test has already " + "finished running. To solve this, you can either unmount the component at " + "the end of your test (and ensure that any asynchronous operations get " + "canceled in `componentWillUnmount`), or you can change the test itself " + "to be asynchronous."); - var evt = document.createEvent("Event"); - var didError = true; - var funcArgs = Array.prototype.slice.call(arguments, 3); - - function callCallback() { - fakeNode.removeEventListener(evtType, callCallback, false); - func.apply(context, funcArgs); - didError = false; - } - - var error = void 0; - var didSetError = false; - var isCrossOriginError = false; - - function onError(event) { - error = event.error; - didSetError = true; - - if (error === null && event.colno === 0 && event.lineno === 0) { - isCrossOriginError = true; - } - } - - var evtType = "react-" + (name ? name : "invokeguardedcallback"); - window.addEventListener("error", onError); - fakeNode.addEventListener(evtType, callCallback, false); - evt.initEvent(evtType, false, false); - fakeNode.dispatchEvent(evt); - - if (didError) { - if (!didSetError) { - error = new Error("An error was thrown inside one of your components, but React " + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + "your browser. Try triggering the error in production mode, " + "or switching to a modern browser. If you suspect that this is " + "actually an issue with React, please file an issue."); - } else if (isCrossOriginError) { - error = new Error("A cross-origin error was thrown. React doesn't have access to " + "the actual error object in development. " + "See https://fb.me/react-crossorigin-error for more information."); - } - - this._hasCaughtError = true; - this._caughtError = error; - } else { - this._hasCaughtError = false; - this._caughtError = null; - } - - window.removeEventListener("error", onError); - }; - - invokeGuardedCallback = invokeGuardedCallbackDev; - } - } - var invokeGuardedCallback$1 = invokeGuardedCallback; - var ReactErrorUtils = { - _caughtError: null, - _hasCaughtError: false, - _rethrowError: null, - _hasRethrowError: false, - invokeGuardedCallback: function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { - invokeGuardedCallback$1.apply(ReactErrorUtils, arguments); - }, - invokeGuardedCallbackAndCatchFirstError: function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { - ReactErrorUtils.invokeGuardedCallback.apply(this, arguments); - - if (ReactErrorUtils.hasCaughtError()) { - var error = ReactErrorUtils.clearCaughtError(); - - if (!ReactErrorUtils._hasRethrowError) { - ReactErrorUtils._hasRethrowError = true; - ReactErrorUtils._rethrowError = error; - } - } - }, - rethrowCaughtError: function rethrowCaughtError() { - return _rethrowCaughtError.apply(ReactErrorUtils, arguments); - }, - hasCaughtError: function hasCaughtError() { - return ReactErrorUtils._hasCaughtError; - }, - clearCaughtError: function clearCaughtError() { - if (ReactErrorUtils._hasCaughtError) { - var error = ReactErrorUtils._caughtError; - ReactErrorUtils._caughtError = null; - ReactErrorUtils._hasCaughtError = false; - return error; - } else { - invariant(false, "clearCaughtError was called but no error was captured. This error " + "is likely caused by a bug in React. Please file an issue."); - } - } - }; - - var _rethrowCaughtError = function _rethrowCaughtError() { - if (ReactErrorUtils._hasRethrowError) { - var error = ReactErrorUtils._rethrowError; - ReactErrorUtils._rethrowError = null; - ReactErrorUtils._hasRethrowError = false; - throw error; - } - }; - - var eventPluginOrder = null; - var namesToPlugins = {}; - - function recomputePluginOrdering() { - if (!eventPluginOrder) { - return; - } - - for (var pluginName in namesToPlugins) { - var pluginModule = namesToPlugins[pluginName]; - var pluginIndex = eventPluginOrder.indexOf(pluginName); - invariant(pluginIndex > -1, "EventPluginRegistry: Cannot inject event plugins that do not exist in " + "the plugin ordering, `%s`.", pluginName); - - if (plugins[pluginIndex]) { - continue; - } - - invariant(pluginModule.extractEvents, "EventPluginRegistry: Event plugins must implement an `extractEvents` " + "method, but `%s` does not.", pluginName); - plugins[pluginIndex] = pluginModule; - var publishedEvents = pluginModule.eventTypes; - - for (var eventName in publishedEvents) { - invariant(publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName), "EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.", eventName, pluginName); - } - } - } - - function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { - invariant(!eventNameDispatchConfigs.hasOwnProperty(eventName), "EventPluginHub: More than one plugin attempted to publish the same " + "event name, `%s`.", eventName); - eventNameDispatchConfigs[eventName] = dispatchConfig; - var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; - - if (phasedRegistrationNames) { - for (var phaseName in phasedRegistrationNames) { - if (phasedRegistrationNames.hasOwnProperty(phaseName)) { - var phasedRegistrationName = phasedRegistrationNames[phaseName]; - publishRegistrationName(phasedRegistrationName, pluginModule, eventName); - } - } - - return true; - } else if (dispatchConfig.registrationName) { - publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName); - return true; - } - - return false; - } - - function publishRegistrationName(registrationName, pluginModule, eventName) { - invariant(!registrationNameModules[registrationName], "EventPluginHub: More than one plugin attempted to publish the same " + "registration name, `%s`.", registrationName); - registrationNameModules[registrationName] = pluginModule; - registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies; - { - var lowerCasedName = registrationName.toLowerCase(); - } - } - - var plugins = []; - var eventNameDispatchConfigs = {}; - var registrationNameModules = {}; - var registrationNameDependencies = {}; - - function injectEventPluginOrder(injectedEventPluginOrder) { - invariant(!eventPluginOrder, "EventPluginRegistry: Cannot inject event plugin ordering more than " + "once. You are likely trying to load more than one copy of React."); - eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); - recomputePluginOrdering(); - } - - function injectEventPluginsByName(injectedNamesToPlugins) { - var isOrderingDirty = false; - - for (var pluginName in injectedNamesToPlugins) { - if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) { - continue; - } - - var pluginModule = injectedNamesToPlugins[pluginName]; - - if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) { - invariant(!namesToPlugins[pluginName], "EventPluginRegistry: Cannot inject two different event plugins " + "using the same name, `%s`.", pluginName); - namesToPlugins[pluginName] = pluginModule; - isOrderingDirty = true; - } - } - - if (isOrderingDirty) { - recomputePluginOrdering(); - } - } - - var getFiberCurrentPropsFromNode = null; - var getInstanceFromNode = null; - var getNodeFromInstance = null; - var injection$1 = { - injectComponentTree: function injectComponentTree(Injected) { - getFiberCurrentPropsFromNode = Injected.getFiberCurrentPropsFromNode; - getInstanceFromNode = Injected.getInstanceFromNode; - getNodeFromInstance = Injected.getNodeFromInstance; - { - !(getNodeFromInstance && getInstanceFromNode) ? warning(false, "EventPluginUtils.injection.injectComponentTree(...): Injected " + "module is missing getNodeFromInstance or getInstanceFromNode.") : void 0; - } - } - }; - var validateEventDispatches = void 0; - { - validateEventDispatches = function validateEventDispatches(event) { - var dispatchListeners = event._dispatchListeners; - var dispatchInstances = event._dispatchInstances; - var listenersIsArr = Array.isArray(dispatchListeners); - var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0; - var instancesIsArr = Array.isArray(dispatchInstances); - var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0; - !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warning(false, "EventPluginUtils: Invalid `event`.") : void 0; - }; - } - - function executeDispatch(event, simulated, listener, inst) { - var type = event.type || "unknown-event"; - event.currentTarget = getNodeFromInstance(inst); - ReactErrorUtils.invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event); - event.currentTarget = null; - } - - function executeDispatchesInOrder(event, simulated) { - var dispatchListeners = event._dispatchListeners; - var dispatchInstances = event._dispatchInstances; - { - validateEventDispatches(event); - } - - if (Array.isArray(dispatchListeners)) { - for (var i = 0; i < dispatchListeners.length; i++) { - if (event.isPropagationStopped()) { - break; - } - - executeDispatch(event, simulated, dispatchListeners[i], dispatchInstances[i]); - } - } else if (dispatchListeners) { - executeDispatch(event, simulated, dispatchListeners, dispatchInstances); - } - - event._dispatchListeners = null; - event._dispatchInstances = null; - } - - function executeDispatchesInOrderStopAtTrueImpl(event) { - var dispatchListeners = event._dispatchListeners; - var dispatchInstances = event._dispatchInstances; - { - validateEventDispatches(event); - } - - if (Array.isArray(dispatchListeners)) { - for (var i = 0; i < dispatchListeners.length; i++) { - if (event.isPropagationStopped()) { - break; - } - - if (dispatchListeners[i](event, dispatchInstances[i])) { - return dispatchInstances[i]; - } - } - } else if (dispatchListeners) { - if (dispatchListeners(event, dispatchInstances)) { - return dispatchInstances; - } - } - - return null; - } - - function executeDispatchesInOrderStopAtTrue(event) { - var ret = executeDispatchesInOrderStopAtTrueImpl(event); - event._dispatchInstances = null; - event._dispatchListeners = null; - return ret; - } - - function executeDirectDispatch(event) { - { - validateEventDispatches(event); - } - var dispatchListener = event._dispatchListeners; - var dispatchInstance = event._dispatchInstances; - invariant(!Array.isArray(dispatchListener), "executeDirectDispatch(...): Invalid `event`."); - event.currentTarget = dispatchListener ? getNodeFromInstance(dispatchInstance) : null; - var res = dispatchListener ? dispatchListener(event) : null; - event.currentTarget = null; - event._dispatchListeners = null; - event._dispatchInstances = null; - return res; - } - - function hasDispatches(event) { - return !!event._dispatchListeners; - } - - function accumulateInto(current, next) { - invariant(next != null, "accumulateInto(...): Accumulated items must not be null or undefined."); - - if (current == null) { - return next; - } - - if (Array.isArray(current)) { - if (Array.isArray(next)) { - current.push.apply(current, next); - return current; - } - - current.push(next); - return current; - } - - if (Array.isArray(next)) { - return [current].concat(next); - } - - return [current, next]; - } - - function forEachAccumulated(arr, cb, scope) { - if (Array.isArray(arr)) { - arr.forEach(cb, scope); - } else if (arr) { - cb.call(scope, arr); - } - } - - var eventQueue = null; - - var executeDispatchesAndRelease = function executeDispatchesAndRelease(event, simulated) { - if (event) { - executeDispatchesInOrder(event, simulated); - - if (!event.isPersistent()) { - event.constructor.release(event); - } - } - }; - - var executeDispatchesAndReleaseSimulated = function executeDispatchesAndReleaseSimulated(e) { - return executeDispatchesAndRelease(e, true); - }; - - var executeDispatchesAndReleaseTopLevel = function executeDispatchesAndReleaseTopLevel(e) { - return executeDispatchesAndRelease(e, false); - }; - - function isInteractive(tag) { - return tag === "button" || tag === "input" || tag === "select" || tag === "textarea"; - } - - function shouldPreventMouseEvent(name, type, props) { - switch (name) { - case "onClick": - case "onClickCapture": - case "onDoubleClick": - case "onDoubleClickCapture": - case "onMouseDown": - case "onMouseDownCapture": - case "onMouseMove": - case "onMouseMoveCapture": - case "onMouseUp": - case "onMouseUpCapture": - return !!(props.disabled && isInteractive(type)); - - default: - return false; - } - } - - var injection = { - injectEventPluginOrder: injectEventPluginOrder, - injectEventPluginsByName: injectEventPluginsByName - }; - - function getListener(inst, registrationName) { - var listener = void 0; - var stateNode = inst.stateNode; - - if (!stateNode) { - return null; - } - - var props = getFiberCurrentPropsFromNode(stateNode); - - if (!props) { - return null; - } - - listener = props[registrationName]; - - if (shouldPreventMouseEvent(registrationName, inst.type, props)) { - return null; - } - - invariant(!listener || typeof listener === "function", "Expected `%s` listener to be a function, instead got a value of `%s` type.", registrationName, typeof listener); - return listener; - } - - function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var events = null; - - for (var i = 0; i < plugins.length; i++) { - var possiblePlugin = plugins[i]; - - if (possiblePlugin) { - var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); - - if (extractedEvents) { - events = accumulateInto(events, extractedEvents); - } - } - } - - return events; - } - - function runEventsInBatch(events, simulated) { - if (events !== null) { - eventQueue = accumulateInto(eventQueue, events); - } - - var processingEventQueue = eventQueue; - eventQueue = null; - - if (!processingEventQueue) { - return; - } - - if (simulated) { - forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseSimulated); - } else { - forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel); - } - - invariant(!eventQueue, "processEventQueue(): Additional events were enqueued while processing " + "an event queue. Support for this has not yet been implemented."); - ReactErrorUtils.rethrowCaughtError(); - } - - function runExtractedEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var events = extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); - runEventsInBatch(events, false); - } - - var IndeterminateComponent = 0; - var FunctionalComponent = 1; - var ClassComponent = 2; - var HostRoot = 3; - var HostPortal = 4; - var HostComponent = 5; - var HostText = 6; - var Fragment = 10; - var Mode = 11; - var ContextConsumer = 12; - var ContextProvider = 13; - var ForwardRef = 14; - var Profiler = 15; - var TimeoutComponent = 16; - - function getParent(inst) { - do { - inst = inst.return; - } while (inst && inst.tag !== HostComponent); - - if (inst) { - return inst; - } - - return null; - } - - function getLowestCommonAncestor(instA, instB) { - var depthA = 0; - - for (var tempA = instA; tempA; tempA = getParent(tempA)) { - depthA++; - } - - var depthB = 0; - - for (var tempB = instB; tempB; tempB = getParent(tempB)) { - depthB++; - } - - while (depthA - depthB > 0) { - instA = getParent(instA); - depthA--; - } - - while (depthB - depthA > 0) { - instB = getParent(instB); - depthB--; - } - - var depth = depthA; - - while (depth--) { - if (instA === instB || instA === instB.alternate) { - return instA; - } - - instA = getParent(instA); - instB = getParent(instB); - } - - return null; - } - - function isAncestor(instA, instB) { - while (instB) { - if (instA === instB || instA === instB.alternate) { - return true; - } - - instB = getParent(instB); - } - - return false; - } - - function getParentInstance(inst) { - return getParent(inst); - } - - function traverseTwoPhase(inst, fn, arg) { - var path = []; - - while (inst) { - path.push(inst); - inst = getParent(inst); - } - - var i = void 0; - - for (i = path.length; i-- > 0;) { - fn(path[i], "captured", arg); - } - - for (i = 0; i < path.length; i++) { - fn(path[i], "bubbled", arg); - } - } - - function listenerAtPhase(inst, event, propagationPhase) { - var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; - return getListener(inst, registrationName); - } - - function accumulateDirectionalDispatches(inst, phase, event) { - { - !inst ? warning(false, "Dispatching inst must not be null") : void 0; - } - var listener = listenerAtPhase(inst, event, phase); - - if (listener) { - event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); - event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); - } - } - - function accumulateTwoPhaseDispatchesSingle(event) { - if (event && event.dispatchConfig.phasedRegistrationNames) { - traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); - } - } - - function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { - if (event && event.dispatchConfig.phasedRegistrationNames) { - var targetInst = event._targetInst; - var parentInst = targetInst ? getParentInstance(targetInst) : null; - traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event); - } - } - - function accumulateDispatches(inst, ignoredDirection, event) { - if (inst && event && event.dispatchConfig.registrationName) { - var registrationName = event.dispatchConfig.registrationName; - var listener = getListener(inst, registrationName); - - if (listener) { - event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); - event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); - } - } - } - - function accumulateDirectDispatchesSingle(event) { - if (event && event.dispatchConfig.registrationName) { - accumulateDispatches(event._targetInst, null, event); - } - } - - function accumulateTwoPhaseDispatches(events) { - forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle); - } - - function accumulateTwoPhaseDispatchesSkipTarget(events) { - forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget); - } - - function accumulateDirectDispatches(events) { - forEachAccumulated(events, accumulateDirectDispatchesSingle); - } - - var didWarnForAddedNewProperty = false; - var EVENT_POOL_SIZE = 10; - var shouldBeReleasedProperties = ["dispatchConfig", "_targetInst", "nativeEvent", "isDefaultPrevented", "isPropagationStopped", "_dispatchListeners", "_dispatchInstances"]; - var EventInterface = { - type: null, - target: null, - currentTarget: function currentTarget() { - return null; - }, - eventPhase: null, - bubbles: null, - cancelable: null, - timeStamp: function timeStamp(event) { - return event.timeStamp || Date.now(); - }, - defaultPrevented: null, - isTrusted: null - }; - - function functionThatReturnsTrue() { - return true; - } - - function functionThatReturnsFalse() { - return false; - } - - function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { - { - delete this.nativeEvent; - delete this.preventDefault; - delete this.stopPropagation; - } - this.dispatchConfig = dispatchConfig; - this._targetInst = targetInst; - this.nativeEvent = nativeEvent; - var Interface = this.constructor.Interface; - - for (var propName in Interface) { - if (!Interface.hasOwnProperty(propName)) { - continue; - } - - { - delete this[propName]; - } - var normalize = Interface[propName]; - - if (normalize) { - this[propName] = normalize(nativeEvent); - } else { - if (propName === "target") { - this.target = nativeEventTarget; - } else { - this[propName] = nativeEvent[propName]; - } - } - } - - var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false; - - if (defaultPrevented) { - this.isDefaultPrevented = functionThatReturnsTrue; - } else { - this.isDefaultPrevented = functionThatReturnsFalse; - } - - this.isPropagationStopped = functionThatReturnsFalse; - return this; - } - - _extends(SyntheticEvent.prototype, { - preventDefault: function preventDefault() { - this.defaultPrevented = true; - var event = this.nativeEvent; - - if (!event) { - return; - } - - if (event.preventDefault) { - event.preventDefault(); - } else if (typeof event.returnValue !== "unknown") { - event.returnValue = false; - } - - this.isDefaultPrevented = functionThatReturnsTrue; - }, - stopPropagation: function stopPropagation() { - var event = this.nativeEvent; - - if (!event) { - return; - } - - if (event.stopPropagation) { - event.stopPropagation(); - } else if (typeof event.cancelBubble !== "unknown") { - event.cancelBubble = true; - } - - this.isPropagationStopped = functionThatReturnsTrue; - }, - persist: function persist() { - this.isPersistent = functionThatReturnsTrue; - }, - isPersistent: functionThatReturnsFalse, - destructor: function destructor() { - var Interface = this.constructor.Interface; - - for (var propName in Interface) { - { - Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName])); - } - } - - for (var i = 0; i < shouldBeReleasedProperties.length; i++) { - this[shouldBeReleasedProperties[i]] = null; - } - - { - Object.defineProperty(this, "nativeEvent", getPooledWarningPropertyDefinition("nativeEvent", null)); - Object.defineProperty(this, "preventDefault", getPooledWarningPropertyDefinition("preventDefault", function () {})); - Object.defineProperty(this, "stopPropagation", getPooledWarningPropertyDefinition("stopPropagation", function () {})); - } - } - }); - - SyntheticEvent.Interface = EventInterface; - - SyntheticEvent.extend = function (Interface) { - var Super = this; - - var E = function E() {}; - - E.prototype = Super.prototype; - var prototype = new E(); - - function Class() { - return Super.apply(this, arguments); - } - - _extends(prototype, Class.prototype); - - Class.prototype = prototype; - Class.prototype.constructor = Class; - Class.Interface = _extends({}, Super.Interface, Interface); - Class.extend = Super.extend; - addEventPoolingTo(Class); - return Class; - }; - - { - var isProxySupported = typeof Proxy === "function" && !Object.isSealed(new Proxy({}, {})); - - if (isProxySupported) { - SyntheticEvent = new Proxy(SyntheticEvent, { - construct: function construct(target, args) { - return this.apply(target, Object.create(target.prototype), args); - }, - apply: function apply(constructor, that, args) { - return new Proxy(constructor.apply(that, args), { - set: function set(target, prop, value) { - if (prop !== "isPersistent" && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) { - !(didWarnForAddedNewProperty || target.isPersistent()) ? warning(false, "This synthetic event is reused for performance reasons. If you're " + "seeing this, you're adding a new property in the synthetic event object. " + "The property is never released. See " + "https://fb.me/react-event-pooling for more information.") : void 0; - didWarnForAddedNewProperty = true; - } - - target[prop] = value; - return true; - } - }); - } - }); - } - } - addEventPoolingTo(SyntheticEvent); - - function getPooledWarningPropertyDefinition(propName, getVal) { - var isFunction = typeof getVal === "function"; - return { - configurable: true, - set: set, - get: get$$1 - }; - - function set(val) { - var action = isFunction ? "setting the method" : "setting the property"; - warn(action, "This is effectively a no-op"); - return val; - } - - function get$$1() { - var action = isFunction ? "accessing the method" : "accessing the property"; - var result = isFunction ? "This is a no-op function" : "This is set to null"; - warn(action, result); - return getVal; - } - - function warn(action, result) { - var warningCondition = false; - !warningCondition ? warning(false, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + "If you must keep the original synthetic event around, use event.persist(). " + "See https://fb.me/react-event-pooling for more information.", action, propName, result) : void 0; - } - } - - function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { - var EventConstructor = this; - - if (EventConstructor.eventPool.length) { - var instance = EventConstructor.eventPool.pop(); - EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); - return instance; - } - - return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst); - } - - function releasePooledEvent(event) { - var EventConstructor = this; - invariant(event instanceof EventConstructor, "Trying to release an event instance into a pool of a different type."); - event.destructor(); - - if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) { - EventConstructor.eventPool.push(event); - } - } - - function addEventPoolingTo(EventConstructor) { - EventConstructor.eventPool = []; - EventConstructor.getPooled = getPooledEvent; - EventConstructor.release = releasePooledEvent; - } - - var SyntheticEvent$1 = SyntheticEvent; - var ResponderSyntheticEvent = SyntheticEvent$1.extend({ - touchHistory: function touchHistory(nativeEvent) { - return null; - } - }); - var TOP_TOUCH_START = "topTouchStart"; - var TOP_TOUCH_MOVE = "topTouchMove"; - var TOP_TOUCH_END = "topTouchEnd"; - var TOP_TOUCH_CANCEL = "topTouchCancel"; - var TOP_SCROLL = "topScroll"; - var TOP_SELECTION_CHANGE = "topSelectionChange"; - - function isStartish(topLevelType) { - return topLevelType === TOP_TOUCH_START; - } - - function isMoveish(topLevelType) { - return topLevelType === TOP_TOUCH_MOVE; - } - - function isEndish(topLevelType) { - return topLevelType === TOP_TOUCH_END || topLevelType === TOP_TOUCH_CANCEL; - } - - var startDependencies = [TOP_TOUCH_START]; - var moveDependencies = [TOP_TOUCH_MOVE]; - var endDependencies = [TOP_TOUCH_CANCEL, TOP_TOUCH_END]; - var MAX_TOUCH_BANK = 20; - var touchBank = []; - var touchHistory = { - touchBank: touchBank, - numberActiveTouches: 0, - indexOfSingleActiveTouch: -1, - mostRecentTimeStamp: 0 - }; - - function timestampForTouch(touch) { - return touch.timeStamp || touch.timestamp; - } - - function createTouchRecord(touch) { - return { - touchActive: true, - startPageX: touch.pageX, - startPageY: touch.pageY, - startTimeStamp: timestampForTouch(touch), - currentPageX: touch.pageX, - currentPageY: touch.pageY, - currentTimeStamp: timestampForTouch(touch), - previousPageX: touch.pageX, - previousPageY: touch.pageY, - previousTimeStamp: timestampForTouch(touch) - }; - } - - function resetTouchRecord(touchRecord, touch) { - touchRecord.touchActive = true; - touchRecord.startPageX = touch.pageX; - touchRecord.startPageY = touch.pageY; - touchRecord.startTimeStamp = timestampForTouch(touch); - touchRecord.currentPageX = touch.pageX; - touchRecord.currentPageY = touch.pageY; - touchRecord.currentTimeStamp = timestampForTouch(touch); - touchRecord.previousPageX = touch.pageX; - touchRecord.previousPageY = touch.pageY; - touchRecord.previousTimeStamp = timestampForTouch(touch); - } - - function getTouchIdentifier(_ref) { - var identifier = _ref.identifier; - invariant(identifier != null, "Touch object is missing identifier."); - { - !(identifier <= MAX_TOUCH_BANK) ? warning(false, "Touch identifier %s is greater than maximum supported %s which causes " + "performance issues backfilling array locations for all of the indices.", identifier, MAX_TOUCH_BANK) : void 0; - } - return identifier; - } - - function recordTouchStart(touch) { - var identifier = getTouchIdentifier(touch); - var touchRecord = touchBank[identifier]; - - if (touchRecord) { - resetTouchRecord(touchRecord, touch); - } else { - touchBank[identifier] = createTouchRecord(touch); - } - - touchHistory.mostRecentTimeStamp = timestampForTouch(touch); - } - - function recordTouchMove(touch) { - var touchRecord = touchBank[getTouchIdentifier(touch)]; - - if (touchRecord) { - touchRecord.touchActive = true; - touchRecord.previousPageX = touchRecord.currentPageX; - touchRecord.previousPageY = touchRecord.currentPageY; - touchRecord.previousTimeStamp = touchRecord.currentTimeStamp; - touchRecord.currentPageX = touch.pageX; - touchRecord.currentPageY = touch.pageY; - touchRecord.currentTimeStamp = timestampForTouch(touch); - touchHistory.mostRecentTimeStamp = timestampForTouch(touch); - } else { - console.error("Cannot record touch move without a touch start.\n" + "Touch Move: %s\n", "Touch Bank: %s", printTouch(touch), printTouchBank()); - } - } - - function recordTouchEnd(touch) { - var touchRecord = touchBank[getTouchIdentifier(touch)]; - - if (touchRecord) { - touchRecord.touchActive = false; - touchRecord.previousPageX = touchRecord.currentPageX; - touchRecord.previousPageY = touchRecord.currentPageY; - touchRecord.previousTimeStamp = touchRecord.currentTimeStamp; - touchRecord.currentPageX = touch.pageX; - touchRecord.currentPageY = touch.pageY; - touchRecord.currentTimeStamp = timestampForTouch(touch); - touchHistory.mostRecentTimeStamp = timestampForTouch(touch); - } else { - console.error("Cannot record touch end without a touch start.\n" + "Touch End: %s\n", "Touch Bank: %s", printTouch(touch), printTouchBank()); - } - } - - function printTouch(touch) { - return JSON.stringify({ - identifier: touch.identifier, - pageX: touch.pageX, - pageY: touch.pageY, - timestamp: timestampForTouch(touch) - }); - } - - function printTouchBank() { - var printed = JSON.stringify(touchBank.slice(0, MAX_TOUCH_BANK)); - - if (touchBank.length > MAX_TOUCH_BANK) { - printed += " (original size: " + touchBank.length + ")"; - } - - return printed; - } - - var ResponderTouchHistoryStore = { - recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) { - if (isMoveish(topLevelType)) { - nativeEvent.changedTouches.forEach(recordTouchMove); - } else if (isStartish(topLevelType)) { - nativeEvent.changedTouches.forEach(recordTouchStart); - touchHistory.numberActiveTouches = nativeEvent.touches.length; - - if (touchHistory.numberActiveTouches === 1) { - touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier; - } - } else if (isEndish(topLevelType)) { - nativeEvent.changedTouches.forEach(recordTouchEnd); - touchHistory.numberActiveTouches = nativeEvent.touches.length; - - if (touchHistory.numberActiveTouches === 1) { - for (var i = 0; i < touchBank.length; i++) { - var touchTrackToCheck = touchBank[i]; - - if (touchTrackToCheck != null && touchTrackToCheck.touchActive) { - touchHistory.indexOfSingleActiveTouch = i; - break; - } - } - - { - var activeRecord = touchBank[touchHistory.indexOfSingleActiveTouch]; - !(activeRecord != null && activeRecord.touchActive) ? warning(false, "Cannot find single active touch.") : void 0; - } - } - } - }, - touchHistory: touchHistory - }; - - function accumulate(current, next) { - invariant(next != null, "accumulate(...): Accumulated items must be not be null or undefined."); - - if (current == null) { - return next; - } - - if (Array.isArray(current)) { - return current.concat(next); - } - - if (Array.isArray(next)) { - return [current].concat(next); - } - - return [current, next]; - } - - var responderInst = null; - var trackedTouchCount = 0; - - var changeResponder = function changeResponder(nextResponderInst, blockHostResponder) { - var oldResponderInst = responderInst; - responderInst = nextResponderInst; - - if (ResponderEventPlugin.GlobalResponderHandler !== null) { - ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); - } - }; - - var eventTypes$1 = { - startShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onStartShouldSetResponder", - captured: "onStartShouldSetResponderCapture" - }, - dependencies: startDependencies - }, - scrollShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onScrollShouldSetResponder", - captured: "onScrollShouldSetResponderCapture" - }, - dependencies: [TOP_SCROLL] - }, - selectionChangeShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onSelectionChangeShouldSetResponder", - captured: "onSelectionChangeShouldSetResponderCapture" - }, - dependencies: [TOP_SELECTION_CHANGE] - }, - moveShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onMoveShouldSetResponder", - captured: "onMoveShouldSetResponderCapture" - }, - dependencies: moveDependencies - }, - responderStart: { - registrationName: "onResponderStart", - dependencies: startDependencies - }, - responderMove: { - registrationName: "onResponderMove", - dependencies: moveDependencies - }, - responderEnd: { - registrationName: "onResponderEnd", - dependencies: endDependencies - }, - responderRelease: { - registrationName: "onResponderRelease", - dependencies: endDependencies - }, - responderTerminationRequest: { - registrationName: "onResponderTerminationRequest", - dependencies: [] - }, - responderGrant: { - registrationName: "onResponderGrant", - dependencies: [] - }, - responderReject: { - registrationName: "onResponderReject", - dependencies: [] - }, - responderTerminate: { - registrationName: "onResponderTerminate", - dependencies: [] - } - }; - - function setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var shouldSetEventType = isStartish(topLevelType) ? eventTypes$1.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes$1.moveShouldSetResponder : topLevelType === TOP_SELECTION_CHANGE ? eventTypes$1.selectionChangeShouldSetResponder : eventTypes$1.scrollShouldSetResponder; - var bubbleShouldSetFrom = !responderInst ? targetInst : getLowestCommonAncestor(responderInst, targetInst); - var skipOverBubbleShouldSetFrom = bubbleShouldSetFrom === responderInst; - var shouldSetEvent = ResponderSyntheticEvent.getPooled(shouldSetEventType, bubbleShouldSetFrom, nativeEvent, nativeEventTarget); - shouldSetEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; - - if (skipOverBubbleShouldSetFrom) { - accumulateTwoPhaseDispatchesSkipTarget(shouldSetEvent); - } else { - accumulateTwoPhaseDispatches(shouldSetEvent); - } - - var wantsResponderInst = executeDispatchesInOrderStopAtTrue(shouldSetEvent); - - if (!shouldSetEvent.isPersistent()) { - shouldSetEvent.constructor.release(shouldSetEvent); - } - - if (!wantsResponderInst || wantsResponderInst === responderInst) { - return null; - } - - var extracted = void 0; - var grantEvent = ResponderSyntheticEvent.getPooled(eventTypes$1.responderGrant, wantsResponderInst, nativeEvent, nativeEventTarget); - grantEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; - accumulateDirectDispatches(grantEvent); - var blockHostResponder = executeDirectDispatch(grantEvent) === true; - - if (responderInst) { - var terminationRequestEvent = ResponderSyntheticEvent.getPooled(eventTypes$1.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget); - terminationRequestEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; - accumulateDirectDispatches(terminationRequestEvent); - var shouldSwitch = !hasDispatches(terminationRequestEvent) || executeDirectDispatch(terminationRequestEvent); - - if (!terminationRequestEvent.isPersistent()) { - terminationRequestEvent.constructor.release(terminationRequestEvent); - } - - if (shouldSwitch) { - var terminateEvent = ResponderSyntheticEvent.getPooled(eventTypes$1.responderTerminate, responderInst, nativeEvent, nativeEventTarget); - terminateEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; - accumulateDirectDispatches(terminateEvent); - extracted = accumulate(extracted, [grantEvent, terminateEvent]); - changeResponder(wantsResponderInst, blockHostResponder); - } else { - var rejectEvent = ResponderSyntheticEvent.getPooled(eventTypes$1.responderReject, wantsResponderInst, nativeEvent, nativeEventTarget); - rejectEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; - accumulateDirectDispatches(rejectEvent); - extracted = accumulate(extracted, rejectEvent); - } - } else { - extracted = accumulate(extracted, grantEvent); - changeResponder(wantsResponderInst, blockHostResponder); - } - - return extracted; - } - - function canTriggerTransfer(topLevelType, topLevelInst, nativeEvent) { - return topLevelInst && (topLevelType === TOP_SCROLL && !nativeEvent.responderIgnoreScroll || trackedTouchCount > 0 && topLevelType === TOP_SELECTION_CHANGE || isStartish(topLevelType) || isMoveish(topLevelType)); - } - - function noResponderTouches(nativeEvent) { - var touches = nativeEvent.touches; - - if (!touches || touches.length === 0) { - return true; - } - - for (var i = 0; i < touches.length; i++) { - var activeTouch = touches[i]; - var target = activeTouch.target; - - if (target !== null && target !== undefined && target !== 0) { - var targetInst = getInstanceFromNode(target); - - if (isAncestor(responderInst, targetInst)) { - return false; - } - } - } - - return true; - } - - var ResponderEventPlugin = { - _getResponder: function _getResponder() { - return responderInst; - }, - eventTypes: eventTypes$1, - extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - if (isStartish(topLevelType)) { - trackedTouchCount += 1; - } else if (isEndish(topLevelType)) { - if (trackedTouchCount >= 0) { - trackedTouchCount -= 1; - } else { - console.error("Ended a touch event which was not counted in `trackedTouchCount`."); - return null; - } - } - - ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); - var extracted = canTriggerTransfer(topLevelType, targetInst, nativeEvent) ? setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) : null; - var isResponderTouchStart = responderInst && isStartish(topLevelType); - var isResponderTouchMove = responderInst && isMoveish(topLevelType); - var isResponderTouchEnd = responderInst && isEndish(topLevelType); - var incrementalTouch = isResponderTouchStart ? eventTypes$1.responderStart : isResponderTouchMove ? eventTypes$1.responderMove : isResponderTouchEnd ? eventTypes$1.responderEnd : null; - - if (incrementalTouch) { - var gesture = ResponderSyntheticEvent.getPooled(incrementalTouch, responderInst, nativeEvent, nativeEventTarget); - gesture.touchHistory = ResponderTouchHistoryStore.touchHistory; - accumulateDirectDispatches(gesture); - extracted = accumulate(extracted, gesture); - } - - var isResponderTerminate = responderInst && topLevelType === TOP_TOUCH_CANCEL; - var isResponderRelease = responderInst && !isResponderTerminate && isEndish(topLevelType) && noResponderTouches(nativeEvent); - var finalTouch = isResponderTerminate ? eventTypes$1.responderTerminate : isResponderRelease ? eventTypes$1.responderRelease : null; - - if (finalTouch) { - var finalEvent = ResponderSyntheticEvent.getPooled(finalTouch, responderInst, nativeEvent, nativeEventTarget); - finalEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; - accumulateDirectDispatches(finalEvent); - extracted = accumulate(extracted, finalEvent); - changeResponder(null); - } - - return extracted; - }, - GlobalResponderHandler: null, - injection: { - injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { - ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; - } - } - }; - var customBubblingEventTypes$1 = ReactNativeViewConfigRegistry.customBubblingEventTypes; - var customDirectEventTypes$1 = ReactNativeViewConfigRegistry.customDirectEventTypes; - var eventTypes$2 = ReactNativeViewConfigRegistry.eventTypes; - var ReactNativeBridgeEventPlugin = { - eventTypes: eventTypes$2, - extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - if (targetInst == null) { - return null; - } - - var bubbleDispatchConfig = customBubblingEventTypes$1[topLevelType]; - var directDispatchConfig = customDirectEventTypes$1[topLevelType]; - invariant(bubbleDispatchConfig || directDispatchConfig, 'Unsupported top level event type "%s" dispatched', topLevelType); - var event = SyntheticEvent$1.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); - - if (bubbleDispatchConfig) { - accumulateTwoPhaseDispatches(event); - } else if (directDispatchConfig) { - accumulateDirectDispatches(event); - } else { - return null; - } - - return event; - } - }; - var ReactNativeEventPluginOrder = ["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]; - injection.injectEventPluginOrder(ReactNativeEventPluginOrder); - injection.injectEventPluginsByName({ - ResponderEventPlugin: ResponderEventPlugin, - ReactNativeBridgeEventPlugin: ReactNativeBridgeEventPlugin - }); - var instanceCache = {}; - var instanceProps = {}; - - function precacheFiberNode(hostInst, tag) { - instanceCache[tag] = hostInst; - } - - function uncacheFiberNode(tag) { - delete instanceCache[tag]; - delete instanceProps[tag]; - } - - function getInstanceFromTag(tag) { - return instanceCache[tag] || null; - } - - function getTagFromInstance(inst) { - var tag = inst.stateNode._nativeTag; - - if (tag === undefined) { - tag = inst.stateNode.canonical._nativeTag; - } - - invariant(tag, "All native instances should have a tag."); - return tag; - } - - function getFiberCurrentPropsFromNode$1(stateNode) { - return instanceProps[stateNode._nativeTag] || null; - } - - function updateFiberProps(tag, props) { - instanceProps[tag] = props; - } - - var ReactNativeComponentTree = Object.freeze({ - precacheFiberNode: precacheFiberNode, - uncacheFiberNode: uncacheFiberNode, - getClosestInstanceFromNode: getInstanceFromTag, - getInstanceFromNode: getInstanceFromTag, - getNodeFromInstance: getTagFromInstance, - getFiberCurrentPropsFromNode: getFiberCurrentPropsFromNode$1, - updateFiberProps: updateFiberProps - }); - var fiberHostComponent = null; - var restoreTarget = null; - var restoreQueue = null; - - function restoreStateOfTarget(target) { - var internalInstance = getInstanceFromNode(target); - - if (!internalInstance) { - return; - } - - invariant(fiberHostComponent && typeof fiberHostComponent.restoreControlledState === "function", "Fiber needs to be injected to handle a fiber target for controlled " + "events. This error is likely caused by a bug in React. Please file an issue."); - var props = getFiberCurrentPropsFromNode(internalInstance.stateNode); - fiberHostComponent.restoreControlledState(internalInstance.stateNode, internalInstance.type, props); - } - - function needsStateRestore() { - return restoreTarget !== null || restoreQueue !== null; - } - - function restoreStateIfNeeded() { - if (!restoreTarget) { - return; - } - - var target = restoreTarget; - var queuedTargets = restoreQueue; - restoreTarget = null; - restoreQueue = null; - restoreStateOfTarget(target); - - if (queuedTargets) { - for (var i = 0; i < queuedTargets.length; i++) { - restoreStateOfTarget(queuedTargets[i]); - } - } - } - - var _batchedUpdates = function _batchedUpdates(fn, bookkeeping) { - return fn(bookkeeping); - }; - - var _interactiveUpdates = function _interactiveUpdates(fn, a, b) { - return fn(a, b); - }; - - var _flushInteractiveUpdates = function _flushInteractiveUpdates() {}; - - var isBatching = false; - - function batchedUpdates(fn, bookkeeping) { - if (isBatching) { - return fn(bookkeeping); - } - - isBatching = true; - - try { - return _batchedUpdates(fn, bookkeeping); - } finally { - isBatching = false; - var controlledComponentsHavePendingUpdates = needsStateRestore(); - - if (controlledComponentsHavePendingUpdates) { - _flushInteractiveUpdates(); - - restoreStateIfNeeded(); - } - } - } - - var injection$2 = { - injectRenderer: function injectRenderer(renderer) { - _batchedUpdates = renderer.batchedUpdates; - _interactiveUpdates = renderer.interactiveUpdates; - _flushInteractiveUpdates = renderer.flushInteractiveUpdates; - } - }; - var EMPTY_NATIVE_EVENT = {}; - - var touchSubsequence = function touchSubsequence(touches, indices) { - var ret = []; - - for (var i = 0; i < indices.length; i++) { - ret.push(touches[indices[i]]); - } - - return ret; - }; - - var removeTouchesAtIndices = function removeTouchesAtIndices(touches, indices) { - var rippedOut = []; - var temp = touches; - - for (var i = 0; i < indices.length; i++) { - var index = indices[i]; - rippedOut.push(touches[index]); - temp[index] = null; - } - - var fillAt = 0; - - for (var j = 0; j < temp.length; j++) { - var cur = temp[j]; - - if (cur !== null) { - temp[fillAt++] = cur; - } - } - - temp.length = fillAt; - return rippedOut; - }; - - function _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam) { - var nativeEvent = nativeEventParam || EMPTY_NATIVE_EVENT; - var inst = getInstanceFromTag(rootNodeID); - batchedUpdates(function () { - runExtractedEventsInBatch(topLevelType, inst, nativeEvent, nativeEvent.target); - }); - } - - function receiveEvent(rootNodeID, topLevelType, nativeEventParam) { - _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam); - } - - function receiveTouches(eventTopLevelType, touches, changedIndices) { - var changedTouches = eventTopLevelType === "topTouchEnd" || eventTopLevelType === "topTouchCancel" ? removeTouchesAtIndices(touches, changedIndices) : touchSubsequence(touches, changedIndices); - - for (var jj = 0; jj < changedTouches.length; jj++) { - var touch = changedTouches[jj]; - touch.changedTouches = changedTouches; - touch.touches = touches; - var nativeEvent = touch; - var rootNodeID = null; - var target = nativeEvent.target; - - if (target !== null && target !== undefined) { - if (target < 1) { - { - warning(false, "A view is reporting that a touch occurred on tag zero."); - } - } else { - rootNodeID = target; - } - } - - _receiveRootNodeIDEvent(rootNodeID, eventTopLevelType, nativeEvent); - } - } - - var ReactNativeEventEmitter = Object.freeze({ - getListener: getListener, - registrationNames: registrationNameModules, - _receiveRootNodeIDEvent: _receiveRootNodeIDEvent, - receiveEvent: receiveEvent, - receiveTouches: receiveTouches - }); - var ReactNativeGlobalResponderHandler = { - onChange: function onChange(from, to, blockNativeResponder) { - if (to !== null) { - var tag = to.stateNode._nativeTag; - UIManager.setJSResponder(tag, blockNativeResponder); - } else { - UIManager.clearJSResponder(); - } - } - }; - RCTEventEmitter.register(ReactNativeEventEmitter); - injection$1.injectComponentTree(ReactNativeComponentTree); - ResponderEventPlugin.injection.injectGlobalResponderHandler(ReactNativeGlobalResponderHandler); - - function get$1(key) { - return key._reactInternalFiber; - } - - function set(key, value) { - key._reactInternalFiber = value; - } - - var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - var ReactCurrentOwner = ReactInternals.ReactCurrentOwner; - var ReactDebugCurrentFrame = ReactInternals.ReactDebugCurrentFrame; - var hasSymbol = typeof Symbol === "function" && (typeof Symbol === "function" ? Symbol.for : "@@for"); - var REACT_ELEMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.element") : 0xeac7; - var REACT_PORTAL_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.portal") : 0xeaca; - var REACT_FRAGMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.fragment") : 0xeacb; - var REACT_STRICT_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.strict_mode") : 0xeacc; - var REACT_PROFILER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.profiler") : 0xead2; - var REACT_PROVIDER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.provider") : 0xeacd; - var REACT_CONTEXT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.context") : 0xeace; - var REACT_ASYNC_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.async_mode") : 0xeacf; - var REACT_FORWARD_REF_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.forward_ref") : 0xead0; - var REACT_TIMEOUT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.timeout") : 0xead1; - var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && (typeof Symbol === "function" ? Symbol.iterator : "@@iterator"); - var FAUX_ITERATOR_SYMBOL = "@@iterator"; - - function getIteratorFn(maybeIterable) { - if (maybeIterable === null || typeof maybeIterable === "undefined") { - return null; - } - - var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; - - if (typeof maybeIterator === "function") { - return maybeIterator; - } - - return null; - } - - function getComponentName(fiber) { - var type = fiber.type; - - if (typeof type === "function") { - return type.displayName || type.name; - } - - if (typeof type === "string") { - return type; - } - - switch (type) { - case REACT_ASYNC_MODE_TYPE: - return "AsyncMode"; - - case REACT_CONTEXT_TYPE: - return "Context.Consumer"; - - case REACT_FRAGMENT_TYPE: - return "ReactFragment"; - - case REACT_PORTAL_TYPE: - return "ReactPortal"; - - case REACT_PROFILER_TYPE: - return "Profiler(" + fiber.pendingProps.id + ")"; - - case REACT_PROVIDER_TYPE: - return "Context.Provider"; - - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - - case REACT_TIMEOUT_TYPE: - return "Timeout"; - } - - if (typeof type === "object" && type !== null) { - switch (type.$$typeof) { - case REACT_FORWARD_REF_TYPE: - var functionName = type.render.displayName || type.render.name || ""; - return functionName !== "" ? "ForwardRef(" + functionName + ")" : "ForwardRef"; - } - } - - return null; - } - - var NoEffect = 0; - var PerformedWork = 1; - var Placement = 2; - var Update = 4; - var PlacementAndUpdate = 6; - var Deletion = 8; - var ContentReset = 16; - var Callback = 32; - var DidCapture = 64; - var Ref = 128; - var Snapshot = 256; - var HostEffectMask = 511; - var Incomplete = 512; - var ShouldCapture = 1024; - var MOUNTING = 1; - var MOUNTED = 2; - var UNMOUNTED = 3; - - function isFiberMountedImpl(fiber) { - var node = fiber; - - if (!fiber.alternate) { - if ((node.effectTag & Placement) !== NoEffect) { - return MOUNTING; - } - - while (node.return) { - node = node.return; - - if ((node.effectTag & Placement) !== NoEffect) { - return MOUNTING; - } - } - } else { - while (node.return) { - node = node.return; - } - } - - if (node.tag === HostRoot) { - return MOUNTED; - } - - return UNMOUNTED; - } - - function isFiberMounted(fiber) { - return isFiberMountedImpl(fiber) === MOUNTED; - } - - function isMounted(component) { - { - var owner = ReactCurrentOwner.current; - - if (owner !== null && owner.tag === ClassComponent) { - var ownerFiber = owner; - var instance = ownerFiber.stateNode; - !instance._warnedAboutRefsInRender ? warning(false, "%s is accessing isMounted inside its render() function. " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentName(ownerFiber) || "A component") : void 0; - instance._warnedAboutRefsInRender = true; - } - } - var fiber = get$1(component); - - if (!fiber) { - return false; - } - - return isFiberMountedImpl(fiber) === MOUNTED; - } - - function assertIsMounted(fiber) { - invariant(isFiberMountedImpl(fiber) === MOUNTED, "Unable to find node on an unmounted component."); - } - - function findCurrentFiberUsingSlowPath(fiber) { - var alternate = fiber.alternate; - - if (!alternate) { - var state = isFiberMountedImpl(fiber); - invariant(state !== UNMOUNTED, "Unable to find node on an unmounted component."); - - if (state === MOUNTING) { - return null; - } - - return fiber; - } - - var a = fiber; - var b = alternate; - - while (true) { - var parentA = a.return; - var parentB = parentA ? parentA.alternate : null; - - if (!parentA || !parentB) { - break; - } - - if (parentA.child === parentB.child) { - var child = parentA.child; - - while (child) { - if (child === a) { - assertIsMounted(parentA); - return fiber; - } - - if (child === b) { - assertIsMounted(parentA); - return alternate; - } - - child = child.sibling; - } - - invariant(false, "Unable to find node on an unmounted component."); - } - - if (a.return !== b.return) { - a = parentA; - b = parentB; - } else { - var didFindChild = false; - var _child = parentA.child; - - while (_child) { - if (_child === a) { - didFindChild = true; - a = parentA; - b = parentB; - break; - } - - if (_child === b) { - didFindChild = true; - b = parentA; - a = parentB; - break; - } - - _child = _child.sibling; - } - - if (!didFindChild) { - _child = parentB.child; - - while (_child) { - if (_child === a) { - didFindChild = true; - a = parentB; - b = parentA; - break; - } - - if (_child === b) { - didFindChild = true; - b = parentB; - a = parentA; - break; - } - - _child = _child.sibling; - } - - invariant(didFindChild, "Child was not found in either parent set. This indicates a bug " + "in React related to the return pointer. Please file an issue."); - } - } - - invariant(a.alternate === b, "Return fibers should always be each others' alternates. " + "This error is likely caused by a bug in React. Please file an issue."); - } - - invariant(a.tag === HostRoot, "Unable to find node on an unmounted component."); - - if (a.stateNode.current === a) { - return fiber; - } - - return alternate; - } - - function findCurrentHostFiber(parent) { - var currentParent = findCurrentFiberUsingSlowPath(parent); - - if (!currentParent) { - return null; - } - - var node = currentParent; - - while (true) { - if (node.tag === HostComponent || node.tag === HostText) { - return node; - } else if (node.child) { - node.child.return = node; - node = node.child; - continue; - } - - if (node === currentParent) { - return null; - } - - while (!node.sibling) { - if (!node.return || node.return === currentParent) { - return null; - } - - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - - return null; - } - - function findCurrentHostFiberWithNoPortals(parent) { - var currentParent = findCurrentFiberUsingSlowPath(parent); - - if (!currentParent) { - return null; - } - - var node = currentParent; - - while (true) { - if (node.tag === HostComponent || node.tag === HostText) { - return node; - } else if (node.child && node.tag !== HostPortal) { - node.child.return = node; - node = node.child; - continue; - } - - if (node === currentParent) { - return null; - } - - while (!node.sibling) { - if (!node.return || node.return === currentParent) { - return null; - } - - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - - return null; - } - - var emptyObject$1 = {}; - var removedKeys = null; - var removedKeyCount = 0; - - function defaultDiffer(prevProp, nextProp) { - if (typeof nextProp !== "object" || nextProp === null) { - return true; - } else { - return deepDiffer(prevProp, nextProp); - } - } - - function restoreDeletedValuesInNestedArray(updatePayload, node, validAttributes) { - if (Array.isArray(node)) { - var i = node.length; - - while (i-- && removedKeyCount > 0) { - restoreDeletedValuesInNestedArray(updatePayload, node[i], validAttributes); - } - } else if (node && removedKeyCount > 0) { - var obj = node; - - for (var propKey in removedKeys) { - if (!removedKeys[propKey]) { - continue; - } - - var _nextProp = obj[propKey]; - - if (_nextProp === undefined) { - continue; - } - - var attributeConfig = validAttributes[propKey]; - - if (!attributeConfig) { - continue; - } - - if (typeof _nextProp === "function") { - _nextProp = true; - } - - if (typeof _nextProp === "undefined") { - _nextProp = null; - } - - if (typeof attributeConfig !== "object") { - updatePayload[propKey] = _nextProp; - } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { - var nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(_nextProp) : _nextProp; - updatePayload[propKey] = nextValue; - } - - removedKeys[propKey] = false; - removedKeyCount--; - } - } - } - - function diffNestedArrayProperty(updatePayload, prevArray, nextArray, validAttributes) { - var minLength = prevArray.length < nextArray.length ? prevArray.length : nextArray.length; - var i = void 0; - - for (i = 0; i < minLength; i++) { - updatePayload = diffNestedProperty(updatePayload, prevArray[i], nextArray[i], validAttributes); - } - - for (; i < prevArray.length; i++) { - updatePayload = clearNestedProperty(updatePayload, prevArray[i], validAttributes); - } - - for (; i < nextArray.length; i++) { - updatePayload = addNestedProperty(updatePayload, nextArray[i], validAttributes); - } - - return updatePayload; - } - - function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { - if (!updatePayload && prevProp === nextProp) { - return updatePayload; - } - - if (!prevProp || !nextProp) { - if (nextProp) { - return addNestedProperty(updatePayload, nextProp, validAttributes); - } - - if (prevProp) { - return clearNestedProperty(updatePayload, prevProp, validAttributes); - } - - return updatePayload; - } - - if (!Array.isArray(prevProp) && !Array.isArray(nextProp)) { - return diffProperties(updatePayload, prevProp, nextProp, validAttributes); - } - - if (Array.isArray(prevProp) && Array.isArray(nextProp)) { - return diffNestedArrayProperty(updatePayload, prevProp, nextProp, validAttributes); - } - - if (Array.isArray(prevProp)) { - return diffProperties(updatePayload, flattenStyle(prevProp), nextProp, validAttributes); - } - - return diffProperties(updatePayload, prevProp, flattenStyle(nextProp), validAttributes); - } - - function addNestedProperty(updatePayload, nextProp, validAttributes) { - if (!nextProp) { - return updatePayload; - } - - if (!Array.isArray(nextProp)) { - return addProperties(updatePayload, nextProp, validAttributes); - } - - for (var i = 0; i < nextProp.length; i++) { - updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); - } - - return updatePayload; - } - - function clearNestedProperty(updatePayload, prevProp, validAttributes) { - if (!prevProp) { - return updatePayload; - } - - if (!Array.isArray(prevProp)) { - return clearProperties(updatePayload, prevProp, validAttributes); - } - - for (var i = 0; i < prevProp.length; i++) { - updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); - } - - return updatePayload; - } - - function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { - var attributeConfig = void 0; - var nextProp = void 0; - var prevProp = void 0; - - for (var propKey in nextProps) { - attributeConfig = validAttributes[propKey]; - - if (!attributeConfig) { - continue; - } - - prevProp = prevProps[propKey]; - nextProp = nextProps[propKey]; - - if (typeof nextProp === "function") { - nextProp = true; - - if (typeof prevProp === "function") { - prevProp = true; - } - } - - if (typeof nextProp === "undefined") { - nextProp = null; - - if (typeof prevProp === "undefined") { - prevProp = null; - } - } - - if (removedKeys) { - removedKeys[propKey] = false; - } - - if (updatePayload && updatePayload[propKey] !== undefined) { - if (typeof attributeConfig !== "object") { - updatePayload[propKey] = nextProp; - } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { - var nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; - updatePayload[propKey] = nextValue; - } - - continue; - } - - if (prevProp === nextProp) { - continue; - } - - if (typeof attributeConfig !== "object") { - if (defaultDiffer(prevProp, nextProp)) { - (updatePayload || (updatePayload = {}))[propKey] = nextProp; - } - } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { - var shouldUpdate = prevProp === undefined || (typeof attributeConfig.diff === "function" ? attributeConfig.diff(prevProp, nextProp) : defaultDiffer(prevProp, nextProp)); - - if (shouldUpdate) { - var _nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; - - (updatePayload || (updatePayload = {}))[propKey] = _nextValue; - } - } else { - removedKeys = null; - removedKeyCount = 0; - updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig); - - if (removedKeyCount > 0 && updatePayload) { - restoreDeletedValuesInNestedArray(updatePayload, nextProp, attributeConfig); - removedKeys = null; - } - } - } - - for (var _propKey in prevProps) { - if (nextProps[_propKey] !== undefined) { - continue; - } - - attributeConfig = validAttributes[_propKey]; - - if (!attributeConfig) { - continue; - } - - if (updatePayload && updatePayload[_propKey] !== undefined) { - continue; - } - - prevProp = prevProps[_propKey]; - - if (prevProp === undefined) { - continue; - } - - if (typeof attributeConfig !== "object" || typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { - (updatePayload || (updatePayload = {}))[_propKey] = null; - - if (!removedKeys) { - removedKeys = {}; - } - - if (!removedKeys[_propKey]) { - removedKeys[_propKey] = true; - removedKeyCount++; - } - } else { - updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig); - } - } - - return updatePayload; - } - - function addProperties(updatePayload, props, validAttributes) { - return diffProperties(updatePayload, emptyObject$1, props, validAttributes); - } - - function clearProperties(updatePayload, prevProps, validAttributes) { - return diffProperties(updatePayload, prevProps, emptyObject$1, validAttributes); - } - - function create(props, validAttributes) { - return addProperties(null, props, validAttributes); - } - - function diff(prevProps, nextProps, validAttributes) { - return diffProperties(null, prevProps, nextProps, validAttributes); - } - - function mountSafeCallback(context, callback) { - return function () { - if (!callback) { - return undefined; - } - - if (typeof context.__isMounted === "boolean") { - if (!context.__isMounted) { - return undefined; - } - } else if (typeof context.isMounted === "function") { - if (!context.isMounted()) { - return undefined; - } - } - - return callback.apply(context, arguments); - }; - } - - function throwOnStylesProp(component, props) { - if (props.styles !== undefined) { - var owner = component._owner || null; - var name = component.constructor.displayName; - var msg = "`styles` is not a supported property of `" + name + "`, did " + "you mean `style` (singular)?"; - - if (owner && owner.constructor && owner.constructor.displayName) { - msg += "\n\nCheck the `" + owner.constructor.displayName + "` parent " + " component."; - } - - throw new Error(msg); - } - } - - function warnForStyleProps(props, validAttributes) { - for (var key in validAttributes.style) { - if (!(validAttributes[key] || props[key] === undefined)) { - console.error("You are setting the style `{ " + key + ": ... }` as a prop. You " + "should nest it in a style object. " + "E.g. `{ style: { " + key + ": ... } }`"); - } - } - } - - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - } - - var ReactNativeFiberHostComponent = function () { - function ReactNativeFiberHostComponent(tag, viewConfig) { - _classCallCheck(this, ReactNativeFiberHostComponent); - - this._nativeTag = tag; - this._children = []; - this.viewConfig = viewConfig; - } - - ReactNativeFiberHostComponent.prototype.blur = function blur() { - TextInputState.blurTextInput(this._nativeTag); - }; - - ReactNativeFiberHostComponent.prototype.focus = function focus() { - TextInputState.focusTextInput(this._nativeTag); - }; - - ReactNativeFiberHostComponent.prototype.measure = function measure(callback) { - UIManager.measure(this._nativeTag, mountSafeCallback(this, callback)); - }; - - ReactNativeFiberHostComponent.prototype.measureInWindow = function measureInWindow(callback) { - UIManager.measureInWindow(this._nativeTag, mountSafeCallback(this, callback)); - }; - - ReactNativeFiberHostComponent.prototype.measureLayout = function measureLayout(relativeToNativeNode, onSuccess, onFail) { - UIManager.measureLayout(this._nativeTag, relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); - }; - - ReactNativeFiberHostComponent.prototype.setNativeProps = function setNativeProps(nativeProps) { - { - warnForStyleProps(nativeProps, this.viewConfig.validAttributes); - } - var updatePayload = create(nativeProps, this.viewConfig.validAttributes); - - if (updatePayload != null) { - UIManager.updateView(this._nativeTag, this.viewConfig.uiViewClassName, updatePayload); - } - }; - - return ReactNativeFiberHostComponent; - }(); - - var hasNativePerformanceNow = typeof performance === "object" && typeof performance.now === "function"; - var now$1 = hasNativePerformanceNow ? function () { - return performance.now(); - } : function () { - return Date.now(); - }; - var scheduledCallback = null; - var frameDeadline = 0; - var frameDeadlineObject = { - timeRemaining: function timeRemaining() { - return frameDeadline - now$1(); - }, - didTimeout: false - }; - - function setTimeoutCallback() { - frameDeadline = now$1() + 5; - var callback = scheduledCallback; - scheduledCallback = null; - - if (callback !== null) { - callback(frameDeadlineObject); - } - } - - function scheduleDeferredCallback$1(callback, options) { - scheduledCallback = callback; - var timeoutId = setTimeout(setTimeoutCallback, 1); - return timeoutId; - } - - function cancelDeferredCallback$1(callbackID) { - scheduledCallback = null; - clearTimeout(callbackID); - } - - function shim() { - invariant(false, "The current renderer does not support persistence. " + "This error is likely caused by a bug in React. " + "Please file an issue."); - } - - var supportsPersistence = false; - var cloneInstance = shim; - var createContainerChildSet = shim; - var appendChildToContainerChildSet = shim; - var finalizeContainerChildren = shim; - var replaceContainerChildren = shim; - - function shim$1() { - invariant(false, "The current renderer does not support hyration. " + "This error is likely caused by a bug in React. " + "Please file an issue."); - } - - var supportsHydration = false; - var canHydrateInstance = shim$1; - var canHydrateTextInstance = shim$1; - var getNextHydratableSibling = shim$1; - var getFirstHydratableChild = shim$1; - var hydrateInstance = shim$1; - var hydrateTextInstance = shim$1; - var didNotMatchHydratedContainerTextInstance = shim$1; - var didNotMatchHydratedTextInstance = shim$1; - var didNotHydrateContainerInstance = shim$1; - var didNotHydrateInstance = shim$1; - var didNotFindHydratableContainerInstance = shim$1; - var didNotFindHydratableContainerTextInstance = shim$1; - var didNotFindHydratableInstance = shim$1; - var didNotFindHydratableTextInstance = shim$1; - var nextReactTag = 3; - - function allocateTag() { - var tag = nextReactTag; - - if (tag % 10 === 1) { - tag += 2; - } - - nextReactTag = tag + 2; - return tag; - } - - function recursivelyUncacheFiberNode(node) { - if (typeof node === "number") { - uncacheFiberNode(node); - } else { - uncacheFiberNode(node._nativeTag); - - node._children.forEach(recursivelyUncacheFiberNode); - } - } - - function appendInitialChild(parentInstance, child) { - parentInstance._children.push(child); - } - - function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) { - var tag = allocateTag(); - var viewConfig = ReactNativeViewConfigRegistry.get(type); - { - for (var key in viewConfig.validAttributes) { - if (props.hasOwnProperty(key)) { - deepFreezeAndThrowOnMutationInDev(props[key]); - } - } - } - invariant(type !== "RCTView" || !hostContext.isInAParentText, "Nesting of within is not currently supported."); - var updatePayload = create(props, viewConfig.validAttributes); - UIManager.createView(tag, viewConfig.uiViewClassName, rootContainerInstance, updatePayload); - var component = new ReactNativeFiberHostComponent(tag, viewConfig); - precacheFiberNode(internalInstanceHandle, tag); - updateFiberProps(tag, props); - return component; - } - - function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) { - invariant(hostContext.isInAParentText, "Text strings must be rendered within a component."); - var tag = allocateTag(); - UIManager.createView(tag, "RCTRawText", rootContainerInstance, { - text: text - }); - precacheFiberNode(internalInstanceHandle, tag); - return tag; - } - - function finalizeInitialChildren(parentInstance, type, props, rootContainerInstance, hostContext) { - if (parentInstance._children.length === 0) { - return false; - } - - var nativeTags = parentInstance._children.map(function (child) { - return typeof child === "number" ? child : child._nativeTag; - }); - - UIManager.setChildren(parentInstance._nativeTag, nativeTags); - return false; - } - - function getRootHostContext(rootContainerInstance) { - return { - isInAParentText: false - }; - } - - function getChildHostContext(parentHostContext, type, rootContainerInstance) { - var prevIsInAParentText = parentHostContext.isInAParentText; - var isInAParentText = type === "AndroidTextInput" || type === "RCTMultilineTextInputView" || type === "RCTSinglelineTextInputView" || type === "RCTText" || type === "RCTVirtualText"; - - if (prevIsInAParentText !== isInAParentText) { - return { - isInAParentText: isInAParentText - }; - } else { - return parentHostContext; - } - } - - function getPublicInstance(instance) { - return instance; - } - - function prepareForCommit(containerInfo) {} - - function prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, hostContext) { - return emptyObject; - } - - function resetAfterCommit(containerInfo) {} - - var now = now$1; - var isPrimaryRenderer = true; - var scheduleDeferredCallback = scheduleDeferredCallback$1; - var cancelDeferredCallback = cancelDeferredCallback$1; - - function shouldDeprioritizeSubtree(type, props) { - return false; - } - - function shouldSetTextContent(type, props) { - return false; - } - - var supportsMutation = true; - - function appendChild(parentInstance, child) { - var childTag = typeof child === "number" ? child : child._nativeTag; - var children = parentInstance._children; - var index = children.indexOf(child); - - if (index >= 0) { - children.splice(index, 1); - children.push(child); - UIManager.manageChildren(parentInstance._nativeTag, [index], [children.length - 1], [], [], []); - } else { - children.push(child); - UIManager.manageChildren(parentInstance._nativeTag, [], [], [childTag], [children.length - 1], []); - } - } - - function appendChildToContainer(parentInstance, child) { - var childTag = typeof child === "number" ? child : child._nativeTag; - UIManager.setChildren(parentInstance, [childTag]); - } - - function commitTextUpdate(textInstance, oldText, newText) { - UIManager.updateView(textInstance, "RCTRawText", { - text: newText - }); - } - - function commitUpdate(instance, updatePayloadTODO, type, oldProps, newProps, internalInstanceHandle) { - var viewConfig = instance.viewConfig; - updateFiberProps(instance._nativeTag, newProps); - var updatePayload = diff(oldProps, newProps, viewConfig.validAttributes); - - if (updatePayload != null) { - UIManager.updateView(instance._nativeTag, viewConfig.uiViewClassName, updatePayload); - } - } - - function insertBefore(parentInstance, child, beforeChild) { - var children = parentInstance._children; - var index = children.indexOf(child); - - if (index >= 0) { - children.splice(index, 1); - var beforeChildIndex = children.indexOf(beforeChild); - children.splice(beforeChildIndex, 0, child); - UIManager.manageChildren(parentInstance._nativeTag, [index], [beforeChildIndex], [], [], []); - } else { - var _beforeChildIndex = children.indexOf(beforeChild); - - children.splice(_beforeChildIndex, 0, child); - var childTag = typeof child === "number" ? child : child._nativeTag; - UIManager.manageChildren(parentInstance._nativeTag, [], [], [childTag], [_beforeChildIndex], []); - } - } - - function insertInContainerBefore(parentInstance, child, beforeChild) { - invariant(typeof parentInstance !== "number", "Container does not support insertBefore operation"); - } - - function removeChild(parentInstance, child) { - recursivelyUncacheFiberNode(child); - var children = parentInstance._children; - var index = children.indexOf(child); - children.splice(index, 1); - UIManager.manageChildren(parentInstance._nativeTag, [], [], [], [], [index]); - } - - function removeChildFromContainer(parentInstance, child) { - recursivelyUncacheFiberNode(child); - UIManager.manageChildren(parentInstance, [], [], [], [], [0]); - } - - function resetTextContent(instance) {} - - var describeComponentFrame = function describeComponentFrame(name, source, ownerName) { - return "\n in " + (name || "Unknown") + (source ? " (at " + source.fileName.replace(/^.*[\\\/]/, "") + ":" + source.lineNumber + ")" : ownerName ? " (created by " + ownerName + ")" : ""); - }; - - function describeFiber(fiber) { - switch (fiber.tag) { - case IndeterminateComponent: - case FunctionalComponent: - case ClassComponent: - case HostComponent: - var owner = fiber._debugOwner; - var source = fiber._debugSource; - var name = getComponentName(fiber); - var ownerName = null; - - if (owner) { - ownerName = getComponentName(owner); - } - - return describeComponentFrame(name, source, ownerName); - - default: - return ""; - } - } - - function getStackAddendumByWorkInProgressFiber(workInProgress) { - var info = ""; - var node = workInProgress; - - do { - info += describeFiber(node); - node = node.return; - } while (node); - - return info; - } - - function getCurrentFiberOwnerName() { - { - var fiber = ReactDebugCurrentFiber.current; - - if (fiber === null) { - return null; - } - - var owner = fiber._debugOwner; - - if (owner !== null && typeof owner !== "undefined") { - return getComponentName(owner); - } - } - return null; - } - - function getCurrentFiberStackAddendum() { - { - var fiber = ReactDebugCurrentFiber.current; - - if (fiber === null) { - return null; - } - - return getStackAddendumByWorkInProgressFiber(fiber); - } - return null; - } - - function resetCurrentFiber() { - ReactDebugCurrentFrame.getCurrentStack = null; - ReactDebugCurrentFiber.current = null; - ReactDebugCurrentFiber.phase = null; - } - - function setCurrentFiber(fiber) { - ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackAddendum; - ReactDebugCurrentFiber.current = fiber; - ReactDebugCurrentFiber.phase = null; - } - - function setCurrentPhase(phase) { - ReactDebugCurrentFiber.phase = phase; - } - - var ReactDebugCurrentFiber = { - current: null, - phase: null, - resetCurrentFiber: resetCurrentFiber, - setCurrentFiber: setCurrentFiber, - setCurrentPhase: setCurrentPhase, - getCurrentFiberOwnerName: getCurrentFiberOwnerName, - getCurrentFiberStackAddendum: getCurrentFiberStackAddendum - }; - var debugRenderPhaseSideEffects = false; - var debugRenderPhaseSideEffectsForStrictMode = false; - var enableGetDerivedStateFromCatch = false; - var enableSuspense = false; - var enableUserTimingAPI = true; - var replayFailedUnitOfWorkWithInvokeGuardedCallback = true; - var warnAboutDeprecatedLifecycles = false; - var warnAboutLegacyContextAPI = false; - var enableProfilerTimer = true; - var reactEmoji = "\u269B"; - var warningEmoji = "\u26D4"; - var supportsUserTiming = typeof performance !== "undefined" && typeof performance.mark === "function" && typeof performance.clearMarks === "function" && typeof performance.measure === "function" && typeof performance.clearMeasures === "function"; - var currentFiber = null; - var currentPhase = null; - var currentPhaseFiber = null; - var isCommitting = false; - var hasScheduledUpdateInCurrentCommit = false; - var hasScheduledUpdateInCurrentPhase = false; - var commitCountInCurrentWorkLoop = 0; - var effectCountInCurrentCommit = 0; - var isWaitingForCallback = false; - var labelsInCurrentCommit = new Set(); - - var formatMarkName = function formatMarkName(markName) { - return reactEmoji + " " + markName; - }; - - var formatLabel = function formatLabel(label, warning$$1) { - var prefix = warning$$1 ? warningEmoji + " " : reactEmoji + " "; - var suffix = warning$$1 ? " Warning: " + warning$$1 : ""; - return "" + prefix + label + suffix; - }; - - var beginMark = function beginMark(markName) { - performance.mark(formatMarkName(markName)); - }; - - var clearMark = function clearMark(markName) { - performance.clearMarks(formatMarkName(markName)); - }; - - var endMark = function endMark(label, markName, warning$$1) { - var formattedMarkName = formatMarkName(markName); - var formattedLabel = formatLabel(label, warning$$1); - - try { - performance.measure(formattedLabel, formattedMarkName); - } catch (err) {} - - performance.clearMarks(formattedMarkName); - performance.clearMeasures(formattedLabel); - }; - - var getFiberMarkName = function getFiberMarkName(label, debugID) { - return label + " (#" + debugID + ")"; - }; - - var getFiberLabel = function getFiberLabel(componentName, isMounted, phase) { - if (phase === null) { - return componentName + " [" + (isMounted ? "update" : "mount") + "]"; - } else { - return componentName + "." + phase; - } - }; - - var beginFiberMark = function beginFiberMark(fiber, phase) { - var componentName = getComponentName(fiber) || "Unknown"; - var debugID = fiber._debugID; - var isMounted = fiber.alternate !== null; - var label = getFiberLabel(componentName, isMounted, phase); - - if (isCommitting && labelsInCurrentCommit.has(label)) { - return false; - } - - labelsInCurrentCommit.add(label); - var markName = getFiberMarkName(label, debugID); - beginMark(markName); - return true; - }; - - var clearFiberMark = function clearFiberMark(fiber, phase) { - var componentName = getComponentName(fiber) || "Unknown"; - var debugID = fiber._debugID; - var isMounted = fiber.alternate !== null; - var label = getFiberLabel(componentName, isMounted, phase); - var markName = getFiberMarkName(label, debugID); - clearMark(markName); - }; - - var endFiberMark = function endFiberMark(fiber, phase, warning$$1) { - var componentName = getComponentName(fiber) || "Unknown"; - var debugID = fiber._debugID; - var isMounted = fiber.alternate !== null; - var label = getFiberLabel(componentName, isMounted, phase); - var markName = getFiberMarkName(label, debugID); - endMark(label, markName, warning$$1); - }; - - var shouldIgnoreFiber = function shouldIgnoreFiber(fiber) { - switch (fiber.tag) { - case HostRoot: - case HostComponent: - case HostText: - case HostPortal: - case Fragment: - case ContextProvider: - case ContextConsumer: - case Mode: - return true; - - default: - return false; - } - }; - - var clearPendingPhaseMeasurement = function clearPendingPhaseMeasurement() { - if (currentPhase !== null && currentPhaseFiber !== null) { - clearFiberMark(currentPhaseFiber, currentPhase); - } - - currentPhaseFiber = null; - currentPhase = null; - hasScheduledUpdateInCurrentPhase = false; - }; - - var pauseTimers = function pauseTimers() { - var fiber = currentFiber; - - while (fiber) { - if (fiber._debugIsCurrentlyTiming) { - endFiberMark(fiber, null, null); - } - - fiber = fiber.return; - } - }; - - var resumeTimersRecursively = function resumeTimersRecursively(fiber) { - if (fiber.return !== null) { - resumeTimersRecursively(fiber.return); - } - - if (fiber._debugIsCurrentlyTiming) { - beginFiberMark(fiber, null); - } - }; - - var resumeTimers = function resumeTimers() { - if (currentFiber !== null) { - resumeTimersRecursively(currentFiber); - } - }; - - function recordEffect() { - if (enableUserTimingAPI) { - effectCountInCurrentCommit++; - } - } - - function recordScheduleUpdate() { - if (enableUserTimingAPI) { - if (isCommitting) { - hasScheduledUpdateInCurrentCommit = true; - } - - if (currentPhase !== null && currentPhase !== "componentWillMount" && currentPhase !== "componentWillReceiveProps") { - hasScheduledUpdateInCurrentPhase = true; - } - } - } - - function startRequestCallbackTimer() { - if (enableUserTimingAPI) { - if (supportsUserTiming && !isWaitingForCallback) { - isWaitingForCallback = true; - beginMark("(Waiting for async callback...)"); - } - } - } - - function stopRequestCallbackTimer(didExpire, expirationTime) { - if (enableUserTimingAPI) { - if (supportsUserTiming) { - isWaitingForCallback = false; - var warning$$1 = didExpire ? "React was blocked by main thread" : null; - endMark("(Waiting for async callback... will force flush in " + expirationTime + " ms)", "(Waiting for async callback...)", warning$$1); - } - } - } - - function startWorkTimer(fiber) { - if (enableUserTimingAPI) { - if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { - return; - } - - currentFiber = fiber; - - if (!beginFiberMark(fiber, null)) { - return; - } - - fiber._debugIsCurrentlyTiming = true; - } - } - - function cancelWorkTimer(fiber) { - if (enableUserTimingAPI) { - if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { - return; - } - - fiber._debugIsCurrentlyTiming = false; - clearFiberMark(fiber, null); - } - } - - function stopWorkTimer(fiber) { - if (enableUserTimingAPI) { - if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { - return; - } - - currentFiber = fiber.return; - - if (!fiber._debugIsCurrentlyTiming) { - return; - } - - fiber._debugIsCurrentlyTiming = false; - endFiberMark(fiber, null, null); - } - } - - function stopFailedWorkTimer(fiber) { - if (enableUserTimingAPI) { - if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { - return; - } - - currentFiber = fiber.return; - - if (!fiber._debugIsCurrentlyTiming) { - return; - } - - fiber._debugIsCurrentlyTiming = false; - var warning$$1 = "An error was thrown inside this error boundary"; - endFiberMark(fiber, null, warning$$1); - } - } - - function startPhaseTimer(fiber, phase) { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - clearPendingPhaseMeasurement(); - - if (!beginFiberMark(fiber, phase)) { - return; - } - - currentPhaseFiber = fiber; - currentPhase = phase; - } - } - - function stopPhaseTimer() { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - if (currentPhase !== null && currentPhaseFiber !== null) { - var warning$$1 = hasScheduledUpdateInCurrentPhase ? "Scheduled a cascading update" : null; - endFiberMark(currentPhaseFiber, currentPhase, warning$$1); - } - - currentPhase = null; - currentPhaseFiber = null; - } - } - - function startWorkLoopTimer(nextUnitOfWork) { - if (enableUserTimingAPI) { - currentFiber = nextUnitOfWork; - - if (!supportsUserTiming) { - return; - } - - commitCountInCurrentWorkLoop = 0; - beginMark("(React Tree Reconciliation)"); - resumeTimers(); - } - } - - function stopWorkLoopTimer(interruptedBy, didCompleteRoot) { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - var warning$$1 = null; - - if (interruptedBy !== null) { - if (interruptedBy.tag === HostRoot) { - warning$$1 = "A top-level update interrupted the previous render"; - } else { - var componentName = getComponentName(interruptedBy) || "Unknown"; - warning$$1 = "An update to " + componentName + " interrupted the previous render"; - } - } else if (commitCountInCurrentWorkLoop > 1) { - warning$$1 = "There were cascading updates"; - } - - commitCountInCurrentWorkLoop = 0; - var label = didCompleteRoot ? "(React Tree Reconciliation: Completed Root)" : "(React Tree Reconciliation: Yielded)"; - pauseTimers(); - endMark(label, "(React Tree Reconciliation)", warning$$1); - } - } - - function startCommitTimer() { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - isCommitting = true; - hasScheduledUpdateInCurrentCommit = false; - labelsInCurrentCommit.clear(); - beginMark("(Committing Changes)"); - } - } - - function stopCommitTimer() { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - var warning$$1 = null; - - if (hasScheduledUpdateInCurrentCommit) { - warning$$1 = "Lifecycle hook scheduled a cascading update"; - } else if (commitCountInCurrentWorkLoop > 0) { - warning$$1 = "Caused by a cascading update in earlier commit"; - } - - hasScheduledUpdateInCurrentCommit = false; - commitCountInCurrentWorkLoop++; - isCommitting = false; - labelsInCurrentCommit.clear(); - endMark("(Committing Changes)", "(Committing Changes)", warning$$1); - } - } - - function startCommitSnapshotEffectsTimer() { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - effectCountInCurrentCommit = 0; - beginMark("(Committing Snapshot Effects)"); - } - } - - function stopCommitSnapshotEffectsTimer() { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - var count = effectCountInCurrentCommit; - effectCountInCurrentCommit = 0; - endMark("(Committing Snapshot Effects: " + count + " Total)", "(Committing Snapshot Effects)", null); - } - } - - function startCommitHostEffectsTimer() { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - effectCountInCurrentCommit = 0; - beginMark("(Committing Host Effects)"); - } - } - - function stopCommitHostEffectsTimer() { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - var count = effectCountInCurrentCommit; - effectCountInCurrentCommit = 0; - endMark("(Committing Host Effects: " + count + " Total)", "(Committing Host Effects)", null); - } - } - - function startCommitLifeCyclesTimer() { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - effectCountInCurrentCommit = 0; - beginMark("(Calling Lifecycle Methods)"); - } - } - - function stopCommitLifeCyclesTimer() { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - var count = effectCountInCurrentCommit; - effectCountInCurrentCommit = 0; - endMark("(Calling Lifecycle Methods: " + count + " Total)", "(Calling Lifecycle Methods)", null); - } - } - - var valueStack = []; - var fiberStack = void 0; - { - fiberStack = []; - } - var index = -1; - - function createCursor(defaultValue) { - return { - current: defaultValue - }; - } - - function pop(cursor, fiber) { - if (index < 0) { - { - warning(false, "Unexpected pop."); - } - return; - } - - { - if (fiber !== fiberStack[index]) { - warning(false, "Unexpected Fiber popped."); - } - } - cursor.current = valueStack[index]; - valueStack[index] = null; - { - fiberStack[index] = null; - } - index--; - } - - function push(cursor, value, fiber) { - index++; - valueStack[index] = cursor.current; - { - fiberStack[index] = fiber; - } - cursor.current = value; - } - - function checkThatStackIsEmpty() { - { - if (index !== -1) { - warning(false, "Expected an empty stack. Something was not reset properly."); - } - } - } - - function resetStackAfterFatalErrorInDev() { - { - index = -1; - valueStack.length = 0; - fiberStack.length = 0; - } - } - - var warnedAboutMissingGetChildContext = void 0; - { - warnedAboutMissingGetChildContext = {}; - } - var contextStackCursor = createCursor(emptyObject); - var didPerformWorkStackCursor = createCursor(false); - var previousContext = emptyObject; - - function getUnmaskedContext(workInProgress) { - var hasOwnContext = isContextProvider(workInProgress); - - if (hasOwnContext) { - return previousContext; - } - - return contextStackCursor.current; - } - - function cacheContext(workInProgress, unmaskedContext, maskedContext) { - var instance = workInProgress.stateNode; - instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext; - instance.__reactInternalMemoizedMaskedChildContext = maskedContext; - } - - function getMaskedContext(workInProgress, unmaskedContext) { - var type = workInProgress.type; - var contextTypes = type.contextTypes; - - if (!contextTypes) { - return emptyObject; - } - - var instance = workInProgress.stateNode; - - if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) { - return instance.__reactInternalMemoizedMaskedChildContext; - } - - var context = {}; - - for (var key in contextTypes) { - context[key] = unmaskedContext[key]; - } - - { - var name = getComponentName(workInProgress) || "Unknown"; - checkPropTypes(contextTypes, context, "context", name, ReactDebugCurrentFiber.getCurrentFiberStackAddendum); - } - - if (instance) { - cacheContext(workInProgress, unmaskedContext, context); - } - - return context; - } - - function hasContextChanged() { - return didPerformWorkStackCursor.current; - } - - function isContextConsumer(fiber) { - return fiber.tag === ClassComponent && fiber.type.contextTypes != null; - } - - function isContextProvider(fiber) { - return fiber.tag === ClassComponent && fiber.type.childContextTypes != null; - } - - function popContextProvider(fiber) { - if (!isContextProvider(fiber)) { - return; - } - - pop(didPerformWorkStackCursor, fiber); - pop(contextStackCursor, fiber); - } - - function popTopLevelContextObject(fiber) { - pop(didPerformWorkStackCursor, fiber); - pop(contextStackCursor, fiber); - } - - function pushTopLevelContextObject(fiber, context, didChange) { - invariant(contextStackCursor.current === emptyObject, "Unexpected context found on stack. " + "This error is likely caused by a bug in React. Please file an issue."); - push(contextStackCursor, context, fiber); - push(didPerformWorkStackCursor, didChange, fiber); - } - - function processChildContext(fiber, parentContext) { - var instance = fiber.stateNode; - var childContextTypes = fiber.type.childContextTypes; - - if (typeof instance.getChildContext !== "function") { - { - var componentName = getComponentName(fiber) || "Unknown"; - - if (!warnedAboutMissingGetChildContext[componentName]) { - warnedAboutMissingGetChildContext[componentName] = true; - warning(false, "%s.childContextTypes is specified but there is no getChildContext() method " + "on the instance. You can either define getChildContext() on %s or remove " + "childContextTypes from it.", componentName, componentName); - } - } - return parentContext; - } - - var childContext = void 0; - { - ReactDebugCurrentFiber.setCurrentPhase("getChildContext"); - } - startPhaseTimer(fiber, "getChildContext"); - childContext = instance.getChildContext(); - stopPhaseTimer(); - { - ReactDebugCurrentFiber.setCurrentPhase(null); - } - - for (var contextKey in childContext) { - invariant(contextKey in childContextTypes, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(fiber) || "Unknown", contextKey); - } - - { - var name = getComponentName(fiber) || "Unknown"; - checkPropTypes(childContextTypes, childContext, "child context", name, ReactDebugCurrentFiber.getCurrentFiberStackAddendum); - } - return _extends({}, parentContext, childContext); - } - - function pushContextProvider(workInProgress) { - if (!isContextProvider(workInProgress)) { - return false; - } - - var instance = workInProgress.stateNode; - var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyObject; - previousContext = contextStackCursor.current; - push(contextStackCursor, memoizedMergedChildContext, workInProgress); - push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress); - return true; - } - - function invalidateContextProvider(workInProgress, didChange) { - var instance = workInProgress.stateNode; - invariant(instance, "Expected to have an instance by this point. " + "This error is likely caused by a bug in React. Please file an issue."); - - if (didChange) { - var mergedContext = processChildContext(workInProgress, previousContext); - instance.__reactInternalMemoizedMergedChildContext = mergedContext; - pop(didPerformWorkStackCursor, workInProgress); - pop(contextStackCursor, workInProgress); - push(contextStackCursor, mergedContext, workInProgress); - push(didPerformWorkStackCursor, didChange, workInProgress); - } else { - pop(didPerformWorkStackCursor, workInProgress); - push(didPerformWorkStackCursor, didChange, workInProgress); - } - } - - function findCurrentUnmaskedContext(fiber) { - invariant(isFiberMounted(fiber) && fiber.tag === ClassComponent, "Expected subtree parent to be a mounted class component. " + "This error is likely caused by a bug in React. Please file an issue."); - var node = fiber; - - while (node.tag !== HostRoot) { - if (isContextProvider(node)) { - return node.stateNode.__reactInternalMemoizedMergedChildContext; - } - - var parent = node.return; - invariant(parent, "Found unexpected detached subtree parent. " + "This error is likely caused by a bug in React. Please file an issue."); - node = parent; - } - - return node.stateNode.context; - } - - var MAX_SIGNED_31_BIT_INT = 1073741823; - var NoWork = 0; - var Sync = 1; - var Never = MAX_SIGNED_31_BIT_INT; - var UNIT_SIZE = 10; - var MAGIC_NUMBER_OFFSET = 2; - - function msToExpirationTime(ms) { - return (ms / UNIT_SIZE | 0) + MAGIC_NUMBER_OFFSET; - } - - function expirationTimeToMs(expirationTime) { - return (expirationTime - MAGIC_NUMBER_OFFSET) * UNIT_SIZE; - } - - function ceiling(num, precision) { - return ((num / precision | 0) + 1) * precision; - } - - function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) { - return MAGIC_NUMBER_OFFSET + ceiling(currentTime - MAGIC_NUMBER_OFFSET + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE); - } - - var NoContext = 0; - var AsyncMode = 1; - var StrictMode = 2; - var ProfileMode = 4; - var hasBadMapPolyfill = void 0; - { - hasBadMapPolyfill = false; - - try { - var nonExtensibleObject = Object.preventExtensions({}); - var testMap = new Map([[nonExtensibleObject, null]]); - var testSet = new Set([nonExtensibleObject]); - testMap.set(0, 0); - testSet.add(0); - } catch (e) { - hasBadMapPolyfill = true; - } - } - var debugCounter = void 0; - { - debugCounter = 1; - } - - function FiberNode(tag, pendingProps, key, mode) { - this.tag = tag; - this.key = key; - this.type = null; - this.stateNode = null; - this.return = null; - this.child = null; - this.sibling = null; - this.index = 0; - this.ref = null; - this.pendingProps = pendingProps; - this.memoizedProps = null; - this.updateQueue = null; - this.memoizedState = null; - this.mode = mode; - this.effectTag = NoEffect; - this.nextEffect = null; - this.firstEffect = null; - this.lastEffect = null; - this.expirationTime = NoWork; - this.alternate = null; - - if (enableProfilerTimer) { - this.actualDuration = 0; - this.actualStartTime = 0; - this.selfBaseTime = 0; - this.treeBaseTime = 0; - } - - { - this._debugID = debugCounter++; - this._debugSource = null; - this._debugOwner = null; - this._debugIsCurrentlyTiming = false; - - if (!hasBadMapPolyfill && typeof Object.preventExtensions === "function") { - Object.preventExtensions(this); - } - } - } - - var createFiber = function createFiber(tag, pendingProps, key, mode) { - return new FiberNode(tag, pendingProps, key, mode); - }; - - function shouldConstruct(Component) { - return !!(Component.prototype && Component.prototype.isReactComponent); - } - - function createWorkInProgress(current, pendingProps, expirationTime) { - var workInProgress = current.alternate; - - if (workInProgress === null) { - workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode); - workInProgress.type = current.type; - workInProgress.stateNode = current.stateNode; - { - workInProgress._debugID = current._debugID; - workInProgress._debugSource = current._debugSource; - workInProgress._debugOwner = current._debugOwner; - } - workInProgress.alternate = current; - current.alternate = workInProgress; - } else { - workInProgress.pendingProps = pendingProps; - workInProgress.effectTag = NoEffect; - workInProgress.nextEffect = null; - workInProgress.firstEffect = null; - workInProgress.lastEffect = null; - - if (enableProfilerTimer) { - workInProgress.actualDuration = 0; - workInProgress.actualStartTime = 0; - } - } - - workInProgress.expirationTime = expirationTime; - workInProgress.child = current.child; - workInProgress.memoizedProps = current.memoizedProps; - workInProgress.memoizedState = current.memoizedState; - workInProgress.updateQueue = current.updateQueue; - workInProgress.sibling = current.sibling; - workInProgress.index = current.index; - workInProgress.ref = current.ref; - - if (enableProfilerTimer) { - workInProgress.selfBaseTime = current.selfBaseTime; - workInProgress.treeBaseTime = current.treeBaseTime; - } - - return workInProgress; - } - - function createHostRootFiber(isAsync) { - var mode = isAsync ? AsyncMode | StrictMode : NoContext; - return createFiber(HostRoot, null, null, mode); - } - - function createFiberFromElement(element, mode, expirationTime) { - var owner = null; - { - owner = element._owner; - } - var fiber = void 0; - var type = element.type; - var key = element.key; - var pendingProps = element.props; - var fiberTag = void 0; - - if (typeof type === "function") { - fiberTag = shouldConstruct(type) ? ClassComponent : IndeterminateComponent; - } else if (typeof type === "string") { - fiberTag = HostComponent; - } else { - switch (type) { - case REACT_FRAGMENT_TYPE: - return createFiberFromFragment(pendingProps.children, mode, expirationTime, key); - - case REACT_ASYNC_MODE_TYPE: - fiberTag = Mode; - mode |= AsyncMode | StrictMode; - break; - - case REACT_STRICT_MODE_TYPE: - fiberTag = Mode; - mode |= StrictMode; - break; - - case REACT_PROFILER_TYPE: - return createFiberFromProfiler(pendingProps, mode, expirationTime, key); - - case REACT_TIMEOUT_TYPE: - fiberTag = TimeoutComponent; - mode |= StrictMode; - break; - - default: - fiberTag = getFiberTagFromObjectType(type, owner); - break; - } - } - - fiber = createFiber(fiberTag, pendingProps, key, mode); - fiber.type = type; - fiber.expirationTime = expirationTime; - { - fiber._debugSource = element._source; - fiber._debugOwner = element._owner; - } - return fiber; - } - - function getFiberTagFromObjectType(type, owner) { - var $$typeof = typeof type === "object" && type !== null ? type.$$typeof : null; - - switch ($$typeof) { - case REACT_PROVIDER_TYPE: - return ContextProvider; - - case REACT_CONTEXT_TYPE: - return ContextConsumer; - - case REACT_FORWARD_REF_TYPE: - return ForwardRef; - - default: - { - var info = ""; - { - if (type === undefined || typeof type === "object" && type !== null && Object.keys(type).length === 0) { - info += " You likely forgot to export your component from the file " + "it's defined in, or you might have mixed up default and " + "named imports."; - } - - var ownerName = owner ? getComponentName(owner) : null; - - if (ownerName) { - info += "\n\nCheck the render method of `" + ownerName + "`."; - } - } - invariant(false, "Element type is invalid: expected a string (for built-in " + "components) or a class/function (for composite components) " + "but got: %s.%s", type == null ? type : typeof type, info); - } - } - } - - function createFiberFromFragment(elements, mode, expirationTime, key) { - var fiber = createFiber(Fragment, elements, key, mode); - fiber.expirationTime = expirationTime; - return fiber; - } - - function createFiberFromProfiler(pendingProps, mode, expirationTime, key) { - { - if (typeof pendingProps.id !== "string" || typeof pendingProps.onRender !== "function") { - invariant(false, 'Profiler must specify an "id" string and "onRender" function as props'); - } - } - var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); - fiber.type = REACT_PROFILER_TYPE; - fiber.expirationTime = expirationTime; - return fiber; - } - - function createFiberFromText(content, mode, expirationTime) { - var fiber = createFiber(HostText, content, null, mode); - fiber.expirationTime = expirationTime; - return fiber; - } - - function createFiberFromHostInstanceForDeletion() { - var fiber = createFiber(HostComponent, null, null, NoContext); - fiber.type = "DELETED"; - return fiber; - } - - function createFiberFromPortal(portal, mode, expirationTime) { - var pendingProps = portal.children !== null ? portal.children : []; - var fiber = createFiber(HostPortal, pendingProps, portal.key, mode); - fiber.expirationTime = expirationTime; - fiber.stateNode = { - containerInfo: portal.containerInfo, - pendingChildren: null, - implementation: portal.implementation - }; - return fiber; - } - - function assignFiberPropertiesInDEV(target, source) { - if (target === null) { - target = createFiber(IndeterminateComponent, null, null, NoContext); - } - - target.tag = source.tag; - target.key = source.key; - target.type = source.type; - target.stateNode = source.stateNode; - target.return = source.return; - target.child = source.child; - target.sibling = source.sibling; - target.index = source.index; - target.ref = source.ref; - target.pendingProps = source.pendingProps; - target.memoizedProps = source.memoizedProps; - target.updateQueue = source.updateQueue; - target.memoizedState = source.memoizedState; - target.mode = source.mode; - target.effectTag = source.effectTag; - target.nextEffect = source.nextEffect; - target.firstEffect = source.firstEffect; - target.lastEffect = source.lastEffect; - target.expirationTime = source.expirationTime; - target.alternate = source.alternate; - - if (enableProfilerTimer) { - target.actualDuration = source.actualDuration; - target.actualStartTime = source.actualStartTime; - target.selfBaseTime = source.selfBaseTime; - target.treeBaseTime = source.treeBaseTime; - } - - target._debugID = source._debugID; - target._debugSource = source._debugSource; - target._debugOwner = source._debugOwner; - target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming; - return target; - } - - function createFiberRoot(containerInfo, isAsync, hydrate) { - var uninitializedFiber = createHostRootFiber(isAsync); - var root = { - current: uninitializedFiber, - containerInfo: containerInfo, - pendingChildren: null, - earliestPendingTime: NoWork, - latestPendingTime: NoWork, - earliestSuspendedTime: NoWork, - latestSuspendedTime: NoWork, - latestPingedTime: NoWork, - didError: false, - pendingCommitExpirationTime: NoWork, - finishedWork: null, - context: null, - pendingContext: null, - hydrate: hydrate, - nextExpirationTimeToWorkOn: NoWork, - expirationTime: NoWork, - firstBatch: null, - nextScheduledRoot: null - }; - uninitializedFiber.stateNode = root; - return root; - } - - var onCommitFiberRoot = null; - var onCommitFiberUnmount = null; - var hasLoggedError = false; - - function catchErrors(fn) { - return function (arg) { - try { - return fn(arg); - } catch (err) { - if (true && !hasLoggedError) { - hasLoggedError = true; - warning(false, "React DevTools encountered an error: %s", err); - } - } - }; - } - - function injectInternals(internals) { - if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined") { - return false; - } - - var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; - - if (hook.isDisabled) { - return true; - } - - if (!hook.supportsFiber) { - { - warning(false, "The installed version of React DevTools is too old and will not work " + "with the current version of React. Please update React DevTools. " + "https://fb.me/react-devtools"); - } - return true; - } - - try { - var rendererID = hook.inject(internals); - onCommitFiberRoot = catchErrors(function (root) { - return hook.onCommitFiberRoot(rendererID, root); - }); - onCommitFiberUnmount = catchErrors(function (fiber) { - return hook.onCommitFiberUnmount(rendererID, fiber); - }); - } catch (err) { - { - warning(false, "React DevTools encountered an error: %s.", err); - } - } - - return true; - } - - function onCommitRoot(root) { - if (typeof onCommitFiberRoot === "function") { - onCommitFiberRoot(root); - } - } - - function onCommitUnmount(fiber) { - if (typeof onCommitFiberUnmount === "function") { - onCommitFiberUnmount(fiber); - } - } - - var lowPriorityWarning = function lowPriorityWarning() {}; - - { - var printWarning = function printWarning(format) { - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - var argIndex = 0; - var message = "Warning: " + format.replace(/%s/g, function () { - return args[argIndex++]; - }); - - if (typeof console !== "undefined") { - console.warn(message); - } - - try { - throw new Error(message); - } catch (x) {} - }; - - lowPriorityWarning = function lowPriorityWarning(condition, format) { - if (format === undefined) { - throw new Error("`warning(condition, format, ...args)` requires a warning " + "message argument"); - } - - if (!condition) { - for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { - args[_key2 - 2] = arguments[_key2]; - } - - printWarning.apply(undefined, [format].concat(args)); - } - }; - } - var lowPriorityWarning$1 = lowPriorityWarning; - var ReactStrictModeWarnings = { - discardPendingWarnings: function discardPendingWarnings() {}, - flushPendingDeprecationWarnings: function flushPendingDeprecationWarnings() {}, - flushPendingUnsafeLifecycleWarnings: function flushPendingUnsafeLifecycleWarnings() {}, - recordDeprecationWarnings: function recordDeprecationWarnings(fiber, instance) {}, - recordUnsafeLifecycleWarnings: function recordUnsafeLifecycleWarnings(fiber, instance) {}, - recordLegacyContextWarning: function recordLegacyContextWarning(fiber, instance) {}, - flushLegacyContextWarning: function flushLegacyContextWarning() {} - }; - { - var LIFECYCLE_SUGGESTIONS = { - UNSAFE_componentWillMount: "componentDidMount", - UNSAFE_componentWillReceiveProps: "static getDerivedStateFromProps", - UNSAFE_componentWillUpdate: "componentDidUpdate" - }; - var pendingComponentWillMountWarnings = []; - var pendingComponentWillReceivePropsWarnings = []; - var pendingComponentWillUpdateWarnings = []; - var pendingUnsafeLifecycleWarnings = new Map(); - var pendingLegacyContextWarning = new Map(); - var didWarnAboutDeprecatedLifecycles = new Set(); - var didWarnAboutUnsafeLifecycles = new Set(); - var didWarnAboutLegacyContext = new Set(); - - var setToSortedString = function setToSortedString(set) { - var array = []; - set.forEach(function (value) { - array.push(value); - }); - return array.sort().join(", "); - }; - - ReactStrictModeWarnings.discardPendingWarnings = function () { - pendingComponentWillMountWarnings = []; - pendingComponentWillReceivePropsWarnings = []; - pendingComponentWillUpdateWarnings = []; - pendingUnsafeLifecycleWarnings = new Map(); - pendingLegacyContextWarning = new Map(); - }; - - ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () { - pendingUnsafeLifecycleWarnings.forEach(function (lifecycleWarningsMap, strictRoot) { - var lifecyclesWarningMesages = []; - Object.keys(lifecycleWarningsMap).forEach(function (lifecycle) { - var lifecycleWarnings = lifecycleWarningsMap[lifecycle]; - - if (lifecycleWarnings.length > 0) { - var componentNames = new Set(); - lifecycleWarnings.forEach(function (fiber) { - componentNames.add(getComponentName(fiber) || "Component"); - didWarnAboutUnsafeLifecycles.add(fiber.type); - }); - var formatted = lifecycle.replace("UNSAFE_", ""); - var suggestion = LIFECYCLE_SUGGESTIONS[lifecycle]; - var sortedComponentNames = setToSortedString(componentNames); - lifecyclesWarningMesages.push(formatted + ": Please update the following components to use " + (suggestion + " instead: " + sortedComponentNames)); - } - }); - - if (lifecyclesWarningMesages.length > 0) { - var strictRootComponentStack = getStackAddendumByWorkInProgressFiber(strictRoot); - warning(false, "Unsafe lifecycle methods were found within a strict-mode tree:%s" + "\n\n%s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-strict-mode-warnings", strictRootComponentStack, lifecyclesWarningMesages.join("\n\n")); - } - }); - pendingUnsafeLifecycleWarnings = new Map(); - }; - - var findStrictRoot = function findStrictRoot(fiber) { - var maybeStrictRoot = null; - var node = fiber; - - while (node !== null) { - if (node.mode & StrictMode) { - maybeStrictRoot = node; - } - - node = node.return; - } - - return maybeStrictRoot; - }; - - ReactStrictModeWarnings.flushPendingDeprecationWarnings = function () { - if (pendingComponentWillMountWarnings.length > 0) { - var uniqueNames = new Set(); - pendingComponentWillMountWarnings.forEach(function (fiber) { - uniqueNames.add(getComponentName(fiber) || "Component"); - didWarnAboutDeprecatedLifecycles.add(fiber.type); - }); - var sortedNames = setToSortedString(uniqueNames); - lowPriorityWarning$1(false, "componentWillMount is deprecated and will be removed in the next major version. " + "Use componentDidMount instead. As a temporary workaround, " + "you can rename to UNSAFE_componentWillMount." + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-async-component-lifecycle-hooks", sortedNames); - pendingComponentWillMountWarnings = []; - } - - if (pendingComponentWillReceivePropsWarnings.length > 0) { - var _uniqueNames = new Set(); - - pendingComponentWillReceivePropsWarnings.forEach(function (fiber) { - _uniqueNames.add(getComponentName(fiber) || "Component"); - - didWarnAboutDeprecatedLifecycles.add(fiber.type); - }); - - var _sortedNames = setToSortedString(_uniqueNames); - - lowPriorityWarning$1(false, "componentWillReceiveProps is deprecated and will be removed in the next major version. " + "Use static getDerivedStateFromProps instead." + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-async-component-lifecycle-hooks", _sortedNames); - pendingComponentWillReceivePropsWarnings = []; - } - - if (pendingComponentWillUpdateWarnings.length > 0) { - var _uniqueNames2 = new Set(); - - pendingComponentWillUpdateWarnings.forEach(function (fiber) { - _uniqueNames2.add(getComponentName(fiber) || "Component"); - - didWarnAboutDeprecatedLifecycles.add(fiber.type); - }); - - var _sortedNames2 = setToSortedString(_uniqueNames2); - - lowPriorityWarning$1(false, "componentWillUpdate is deprecated and will be removed in the next major version. " + "Use componentDidUpdate instead. As a temporary workaround, " + "you can rename to UNSAFE_componentWillUpdate." + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-async-component-lifecycle-hooks", _sortedNames2); - pendingComponentWillUpdateWarnings = []; - } - }; - - ReactStrictModeWarnings.recordDeprecationWarnings = function (fiber, instance) { - if (didWarnAboutDeprecatedLifecycles.has(fiber.type)) { - return; - } - - if (typeof instance.componentWillMount === "function" && instance.componentWillMount.__suppressDeprecationWarning !== true) { - pendingComponentWillMountWarnings.push(fiber); - } - - if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { - pendingComponentWillReceivePropsWarnings.push(fiber); - } - - if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { - pendingComponentWillUpdateWarnings.push(fiber); - } - }; - - ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) { - var strictRoot = findStrictRoot(fiber); - - if (strictRoot === null) { - warning(false, "Expected to find a StrictMode component in a strict mode tree. " + "This error is likely caused by a bug in React. Please file an issue."); - return; - } - - if (didWarnAboutUnsafeLifecycles.has(fiber.type)) { - return; - } - - var warningsForRoot = void 0; - - if (!pendingUnsafeLifecycleWarnings.has(strictRoot)) { - warningsForRoot = { - UNSAFE_componentWillMount: [], - UNSAFE_componentWillReceiveProps: [], - UNSAFE_componentWillUpdate: [] - }; - pendingUnsafeLifecycleWarnings.set(strictRoot, warningsForRoot); - } else { - warningsForRoot = pendingUnsafeLifecycleWarnings.get(strictRoot); - } - - var unsafeLifecycles = []; - - if (typeof instance.componentWillMount === "function" && instance.componentWillMount.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillMount === "function") { - unsafeLifecycles.push("UNSAFE_componentWillMount"); - } - - if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillReceiveProps === "function") { - unsafeLifecycles.push("UNSAFE_componentWillReceiveProps"); - } - - if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillUpdate === "function") { - unsafeLifecycles.push("UNSAFE_componentWillUpdate"); - } - - if (unsafeLifecycles.length > 0) { - unsafeLifecycles.forEach(function (lifecycle) { - warningsForRoot[lifecycle].push(fiber); - }); - } - }; - - ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) { - var strictRoot = findStrictRoot(fiber); - - if (strictRoot === null) { - warning(false, "Expected to find a StrictMode component in a strict mode tree. " + "This error is likely caused by a bug in React. Please file an issue."); - return; - } - - if (didWarnAboutLegacyContext.has(fiber.type)) { - return; - } - - var warningsForRoot = pendingLegacyContextWarning.get(strictRoot); - - if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === "function") { - if (warningsForRoot === undefined) { - warningsForRoot = []; - pendingLegacyContextWarning.set(strictRoot, warningsForRoot); - } - - warningsForRoot.push(fiber); - } - }; - - ReactStrictModeWarnings.flushLegacyContextWarning = function () { - pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) { - var uniqueNames = new Set(); - fiberArray.forEach(function (fiber) { - uniqueNames.add(getComponentName(fiber) || "Component"); - didWarnAboutLegacyContext.add(fiber.type); - }); - var sortedNames = setToSortedString(uniqueNames); - var strictRootComponentStack = getStackAddendumByWorkInProgressFiber(strictRoot); - warning(false, "Legacy context API has been detected within a strict-mode tree: %s" + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-strict-mode-warnings", strictRootComponentStack, sortedNames); - }); - }; - } - var ReactFiberInstrumentation = { - debugTool: null - }; - var ReactFiberInstrumentation_1 = ReactFiberInstrumentation; - - function markPendingPriorityLevel(root, expirationTime) { - root.didError = false; - var earliestPendingTime = root.earliestPendingTime; - - if (earliestPendingTime === NoWork) { - root.earliestPendingTime = root.latestPendingTime = expirationTime; - } else { - if (earliestPendingTime > expirationTime) { - root.earliestPendingTime = expirationTime; - } else { - var latestPendingTime = root.latestPendingTime; - - if (latestPendingTime < expirationTime) { - root.latestPendingTime = expirationTime; - } - } - } - - findNextPendingPriorityLevel(root); - } - - function markCommittedPriorityLevels(root, currentTime, earliestRemainingTime) { - root.didError = false; - - if (earliestRemainingTime === NoWork) { - root.earliestPendingTime = NoWork; - root.latestPendingTime = NoWork; - root.earliestSuspendedTime = NoWork; - root.latestSuspendedTime = NoWork; - root.latestPingedTime = NoWork; - findNextPendingPriorityLevel(root); - return; - } - - var latestPendingTime = root.latestPendingTime; - - if (latestPendingTime !== NoWork) { - if (latestPendingTime < earliestRemainingTime) { - root.earliestPendingTime = root.latestPendingTime = NoWork; - } else { - var earliestPendingTime = root.earliestPendingTime; - - if (earliestPendingTime < earliestRemainingTime) { - root.earliestPendingTime = root.latestPendingTime; - } - } - } - - var earliestSuspendedTime = root.earliestSuspendedTime; - - if (earliestSuspendedTime === NoWork) { - markPendingPriorityLevel(root, earliestRemainingTime); - findNextPendingPriorityLevel(root); - return; - } - - var latestSuspendedTime = root.latestSuspendedTime; - - if (earliestRemainingTime > latestSuspendedTime) { - root.earliestSuspendedTime = NoWork; - root.latestSuspendedTime = NoWork; - root.latestPingedTime = NoWork; - markPendingPriorityLevel(root, earliestRemainingTime); - findNextPendingPriorityLevel(root); - return; - } - - if (earliestRemainingTime < earliestSuspendedTime) { - markPendingPriorityLevel(root, earliestRemainingTime); - findNextPendingPriorityLevel(root); - return; - } - - findNextPendingPriorityLevel(root); - } - - function hasLowerPriorityWork(root, renderExpirationTime) { - return renderExpirationTime !== root.latestPendingTime && renderExpirationTime !== root.latestSuspendedTime; - } - - function markSuspendedPriorityLevel(root, suspendedTime, didError) { - if (didError && !hasLowerPriorityWork(root, suspendedTime)) { - root.didError = true; - findNextPendingPriorityLevel(root); - return; - } - - var earliestPendingTime = root.earliestPendingTime; - var latestPendingTime = root.latestPendingTime; - - if (earliestPendingTime === suspendedTime) { - if (latestPendingTime === suspendedTime) { - root.earliestPendingTime = root.latestPendingTime = NoWork; - } else { - root.earliestPendingTime = latestPendingTime; - } - } else if (latestPendingTime === suspendedTime) { - root.latestPendingTime = earliestPendingTime; - } - - var latestSuspendedTime = root.latestSuspendedTime; - - if (latestSuspendedTime === suspendedTime) { - root.latestPingedTime = NoWork; - } - - var earliestSuspendedTime = root.earliestSuspendedTime; - - if (earliestSuspendedTime === NoWork) { - root.earliestSuspendedTime = root.latestSuspendedTime = suspendedTime; - } else { - if (earliestSuspendedTime > suspendedTime) { - root.earliestSuspendedTime = suspendedTime; - } else if (latestSuspendedTime < suspendedTime) { - root.latestSuspendedTime = suspendedTime; - } - } - - findNextPendingPriorityLevel(root); - } - - function markPingedPriorityLevel(root, pingedTime) { - var latestSuspendedTime = root.latestSuspendedTime; - - if (latestSuspendedTime !== NoWork && latestSuspendedTime <= pingedTime) { - var latestPingedTime = root.latestPingedTime; - - if (latestPingedTime === NoWork || latestPingedTime < pingedTime) { - root.latestPingedTime = pingedTime; - } - } - - findNextPendingPriorityLevel(root); - } - - function findNextPendingPriorityLevel(root) { - var earliestSuspendedTime = root.earliestSuspendedTime; - var earliestPendingTime = root.earliestPendingTime; - var nextExpirationTimeToWorkOn = void 0; - var expirationTime = void 0; - - if (earliestSuspendedTime === NoWork) { - nextExpirationTimeToWorkOn = expirationTime = earliestPendingTime; - } else if (earliestPendingTime !== NoWork) { - nextExpirationTimeToWorkOn = earliestPendingTime; - expirationTime = earliestSuspendedTime < earliestPendingTime ? earliestSuspendedTime : earliestPendingTime; - } else { - nextExpirationTimeToWorkOn = expirationTime = root.latestPingedTime; - } - - if (root.didError) { - expirationTime = Sync; - } - - root.nextExpirationTimeToWorkOn = nextExpirationTimeToWorkOn; - root.expirationTime = expirationTime; - } - - var UpdateState = 0; - var ReplaceState = 1; - var ForceUpdate = 2; - var CaptureUpdate = 3; - var hasForceUpdate = false; - var didWarnUpdateInsideUpdate = void 0; - var currentlyProcessingQueue = void 0; - var resetCurrentlyProcessingQueue = void 0; - { - didWarnUpdateInsideUpdate = false; - currentlyProcessingQueue = null; - - resetCurrentlyProcessingQueue = function resetCurrentlyProcessingQueue() { - currentlyProcessingQueue = null; - }; - } - - function createUpdateQueue(baseState) { - var queue = { - expirationTime: NoWork, - baseState: baseState, - firstUpdate: null, - lastUpdate: null, - firstCapturedUpdate: null, - lastCapturedUpdate: null, - firstEffect: null, - lastEffect: null, - firstCapturedEffect: null, - lastCapturedEffect: null - }; - return queue; - } - - function cloneUpdateQueue(currentQueue) { - var queue = { - expirationTime: currentQueue.expirationTime, - baseState: currentQueue.baseState, - firstUpdate: currentQueue.firstUpdate, - lastUpdate: currentQueue.lastUpdate, - firstCapturedUpdate: null, - lastCapturedUpdate: null, - firstEffect: null, - lastEffect: null, - firstCapturedEffect: null, - lastCapturedEffect: null - }; - return queue; - } - - function createUpdate(expirationTime) { - return { - expirationTime: expirationTime, - tag: UpdateState, - payload: null, - callback: null, - next: null, - nextEffect: null - }; - } - - function appendUpdateToQueue(queue, update, expirationTime) { - if (queue.lastUpdate === null) { - queue.firstUpdate = queue.lastUpdate = update; - } else { - queue.lastUpdate.next = update; - queue.lastUpdate = update; - } - - if (queue.expirationTime === NoWork || queue.expirationTime > expirationTime) { - queue.expirationTime = expirationTime; - } - } - - function enqueueUpdate(fiber, update, expirationTime) { - var alternate = fiber.alternate; - var queue1 = void 0; - var queue2 = void 0; - - if (alternate === null) { - queue1 = fiber.updateQueue; - queue2 = null; - - if (queue1 === null) { - queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState); - } - } else { - queue1 = fiber.updateQueue; - queue2 = alternate.updateQueue; - - if (queue1 === null) { - if (queue2 === null) { - queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState); - queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState); - } else { - queue1 = fiber.updateQueue = cloneUpdateQueue(queue2); - } - } else { - if (queue2 === null) { - queue2 = alternate.updateQueue = cloneUpdateQueue(queue1); - } else {} - } - } - - if (queue2 === null || queue1 === queue2) { - appendUpdateToQueue(queue1, update, expirationTime); - } else { - if (queue1.lastUpdate === null || queue2.lastUpdate === null) { - appendUpdateToQueue(queue1, update, expirationTime); - appendUpdateToQueue(queue2, update, expirationTime); - } else { - appendUpdateToQueue(queue1, update, expirationTime); - queue2.lastUpdate = update; - } - } - - { - if (fiber.tag === ClassComponent && (currentlyProcessingQueue === queue1 || queue2 !== null && currentlyProcessingQueue === queue2) && !didWarnUpdateInsideUpdate) { - warning(false, "An update (setState, replaceState, or forceUpdate) was scheduled " + "from inside an update function. Update functions should be pure, " + "with zero side-effects. Consider using componentDidUpdate or a " + "callback."); - didWarnUpdateInsideUpdate = true; - } - } - } - - function enqueueCapturedUpdate(workInProgress, update, renderExpirationTime) { - var workInProgressQueue = workInProgress.updateQueue; - - if (workInProgressQueue === null) { - workInProgressQueue = workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState); - } else { - workInProgressQueue = ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue); - } - - if (workInProgressQueue.lastCapturedUpdate === null) { - workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update; - } else { - workInProgressQueue.lastCapturedUpdate.next = update; - workInProgressQueue.lastCapturedUpdate = update; - } - - if (workInProgressQueue.expirationTime === NoWork || workInProgressQueue.expirationTime > renderExpirationTime) { - workInProgressQueue.expirationTime = renderExpirationTime; - } - } - - function ensureWorkInProgressQueueIsAClone(workInProgress, queue) { - var current = workInProgress.alternate; - - if (current !== null) { - if (queue === current.updateQueue) { - queue = workInProgress.updateQueue = cloneUpdateQueue(queue); - } - } - - return queue; - } - - function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) { - switch (update.tag) { - case ReplaceState: - { - var _payload = update.payload; - - if (typeof _payload === "function") { - { - if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { - _payload.call(instance, prevState, nextProps); - } - } - return _payload.call(instance, prevState, nextProps); - } - - return _payload; - } - - case CaptureUpdate: - { - workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture; - } - - case UpdateState: - { - var _payload2 = update.payload; - var partialState = void 0; - - if (typeof _payload2 === "function") { - { - if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { - _payload2.call(instance, prevState, nextProps); - } - } - partialState = _payload2.call(instance, prevState, nextProps); - } else { - partialState = _payload2; - } - - if (partialState === null || partialState === undefined) { - return prevState; - } - - return _extends({}, prevState, partialState); - } - - case ForceUpdate: - { - hasForceUpdate = true; - return prevState; - } - } - - return prevState; - } - - function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) { - hasForceUpdate = false; - - if (queue.expirationTime === NoWork || queue.expirationTime > renderExpirationTime) { - return; - } - - queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue); - { - currentlyProcessingQueue = queue; - } - var newBaseState = queue.baseState; - var newFirstUpdate = null; - var newExpirationTime = NoWork; - var update = queue.firstUpdate; - var resultState = newBaseState; - - while (update !== null) { - var updateExpirationTime = update.expirationTime; - - if (updateExpirationTime > renderExpirationTime) { - if (newFirstUpdate === null) { - newFirstUpdate = update; - newBaseState = resultState; - } - - if (newExpirationTime === NoWork || newExpirationTime > updateExpirationTime) { - newExpirationTime = updateExpirationTime; - } - } else { - resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance); - var _callback = update.callback; - - if (_callback !== null) { - workInProgress.effectTag |= Callback; - update.nextEffect = null; - - if (queue.lastEffect === null) { - queue.firstEffect = queue.lastEffect = update; - } else { - queue.lastEffect.nextEffect = update; - queue.lastEffect = update; - } - } - } - - update = update.next; - } - - var newFirstCapturedUpdate = null; - update = queue.firstCapturedUpdate; - - while (update !== null) { - var _updateExpirationTime = update.expirationTime; - - if (_updateExpirationTime > renderExpirationTime) { - if (newFirstCapturedUpdate === null) { - newFirstCapturedUpdate = update; - - if (newFirstUpdate === null) { - newBaseState = resultState; - } - } - - if (newExpirationTime === NoWork || newExpirationTime > _updateExpirationTime) { - newExpirationTime = _updateExpirationTime; - } - } else { - resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance); - var _callback2 = update.callback; - - if (_callback2 !== null) { - workInProgress.effectTag |= Callback; - update.nextEffect = null; - - if (queue.lastCapturedEffect === null) { - queue.firstCapturedEffect = queue.lastCapturedEffect = update; - } else { - queue.lastCapturedEffect.nextEffect = update; - queue.lastCapturedEffect = update; - } - } - } - - update = update.next; - } - - if (newFirstUpdate === null) { - queue.lastUpdate = null; - } - - if (newFirstCapturedUpdate === null) { - queue.lastCapturedUpdate = null; - } else { - workInProgress.effectTag |= Callback; - } - - if (newFirstUpdate === null && newFirstCapturedUpdate === null) { - newBaseState = resultState; - } - - queue.baseState = newBaseState; - queue.firstUpdate = newFirstUpdate; - queue.firstCapturedUpdate = newFirstCapturedUpdate; - queue.expirationTime = newExpirationTime; - workInProgress.memoizedState = resultState; - { - currentlyProcessingQueue = null; - } - } - - function callCallback(callback, context) { - invariant(typeof callback === "function", "Invalid argument passed as callback. Expected a function. Instead " + "received: %s", callback); - callback.call(context); - } - - function resetHasForceUpdateBeforeProcessing() { - hasForceUpdate = false; - } - - function checkHasForceUpdateAfterProcessing() { - return hasForceUpdate; - } - - function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) { - if (finishedQueue.firstCapturedUpdate !== null) { - if (finishedQueue.lastUpdate !== null) { - finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate; - finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate; - } - - finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null; - } - - var effect = finishedQueue.firstEffect; - finishedQueue.firstEffect = finishedQueue.lastEffect = null; - - while (effect !== null) { - var _callback3 = effect.callback; - - if (_callback3 !== null) { - effect.callback = null; - callCallback(_callback3, instance); - } - - effect = effect.nextEffect; - } - - effect = finishedQueue.firstCapturedEffect; - finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null; - - while (effect !== null) { - var _callback4 = effect.callback; - - if (_callback4 !== null) { - effect.callback = null; - callCallback(_callback4, instance); - } - - effect = effect.nextEffect; - } - } - - function createCapturedValue(value, source) { - return { - value: value, - source: source, - stack: getStackAddendumByWorkInProgressFiber(source) - }; - } - - var providerCursor = createCursor(null); - var valueCursor = createCursor(null); - var changedBitsCursor = createCursor(0); - var rendererSigil = void 0; - { - rendererSigil = {}; - } - - function pushProvider(providerFiber) { - var context = providerFiber.type._context; - - if (isPrimaryRenderer) { - push(changedBitsCursor, context._changedBits, providerFiber); - push(valueCursor, context._currentValue, providerFiber); - push(providerCursor, providerFiber, providerFiber); - context._currentValue = providerFiber.pendingProps.value; - context._changedBits = providerFiber.stateNode; - { - !(context._currentRenderer === undefined || context._currentRenderer === null || context._currentRenderer === rendererSigil) ? warning(false, "Detected multiple renderers concurrently rendering the " + "same context provider. This is currently unsupported.") : void 0; - context._currentRenderer = rendererSigil; - } - } else { - push(changedBitsCursor, context._changedBits2, providerFiber); - push(valueCursor, context._currentValue2, providerFiber); - push(providerCursor, providerFiber, providerFiber); - context._currentValue2 = providerFiber.pendingProps.value; - context._changedBits2 = providerFiber.stateNode; - { - !(context._currentRenderer2 === undefined || context._currentRenderer2 === null || context._currentRenderer2 === rendererSigil) ? warning(false, "Detected multiple renderers concurrently rendering the " + "same context provider. This is currently unsupported.") : void 0; - context._currentRenderer2 = rendererSigil; - } - } - } - - function popProvider(providerFiber) { - var changedBits = changedBitsCursor.current; - var currentValue = valueCursor.current; - pop(providerCursor, providerFiber); - pop(valueCursor, providerFiber); - pop(changedBitsCursor, providerFiber); - var context = providerFiber.type._context; - - if (isPrimaryRenderer) { - context._currentValue = currentValue; - context._changedBits = changedBits; - } else { - context._currentValue2 = currentValue; - context._changedBits2 = changedBits; - } - } - - function getContextCurrentValue(context) { - return isPrimaryRenderer ? context._currentValue : context._currentValue2; - } - - function getContextChangedBits(context) { - return isPrimaryRenderer ? context._changedBits : context._changedBits2; - } - - var NO_CONTEXT = {}; - var contextStackCursor$1 = createCursor(NO_CONTEXT); - var contextFiberStackCursor = createCursor(NO_CONTEXT); - var rootInstanceStackCursor = createCursor(NO_CONTEXT); - - function requiredContext(c) { - invariant(c !== NO_CONTEXT, "Expected host context to exist. This error is likely caused by a bug " + "in React. Please file an issue."); - return c; - } - - function getRootHostContainer() { - var rootInstance = requiredContext(rootInstanceStackCursor.current); - return rootInstance; - } - - function pushHostContainer(fiber, nextRootInstance) { - push(rootInstanceStackCursor, nextRootInstance, fiber); - push(contextFiberStackCursor, fiber, fiber); - push(contextStackCursor$1, NO_CONTEXT, fiber); - var nextRootContext = getRootHostContext(nextRootInstance); - pop(contextStackCursor$1, fiber); - push(contextStackCursor$1, nextRootContext, fiber); - } - - function popHostContainer(fiber) { - pop(contextStackCursor$1, fiber); - pop(contextFiberStackCursor, fiber); - pop(rootInstanceStackCursor, fiber); - } - - function getHostContext() { - var context = requiredContext(contextStackCursor$1.current); - return context; - } - - function pushHostContext(fiber) { - var rootInstance = requiredContext(rootInstanceStackCursor.current); - var context = requiredContext(contextStackCursor$1.current); - var nextContext = getChildHostContext(context, fiber.type, rootInstance); - - if (context === nextContext) { - return; - } - - push(contextFiberStackCursor, fiber, fiber); - push(contextStackCursor$1, nextContext, fiber); - } - - function popHostContext(fiber) { - if (contextFiberStackCursor.current !== fiber) { - return; - } - - pop(contextStackCursor$1, fiber); - pop(contextFiberStackCursor, fiber); - } - - var commitTime = 0; - - function getCommitTime() { - return commitTime; - } - - function recordCommitTime() { - if (!enableProfilerTimer) { - return; - } - - commitTime = now(); - } - - var fiberStack$1 = void 0; - { - fiberStack$1 = []; - } - var timerPausedAt = 0; - var totalElapsedPauseTime = 0; - - function checkActualRenderTimeStackEmpty() { - if (!enableProfilerTimer) { - return; - } - - { - !(fiberStack$1.length === 0) ? warning(false, "Expected an empty stack. Something was not reset properly.") : void 0; - } - } - - function markActualRenderTimeStarted(fiber) { - if (!enableProfilerTimer) { - return; - } - - { - fiberStack$1.push(fiber); - } - fiber.actualDuration = now() - fiber.actualDuration - totalElapsedPauseTime; - fiber.actualStartTime = now(); - } - - function pauseActualRenderTimerIfRunning() { - if (!enableProfilerTimer) { - return; - } - - if (timerPausedAt === 0) { - timerPausedAt = now(); - } - } - - function recordElapsedActualRenderTime(fiber) { - if (!enableProfilerTimer) { - return; - } - - { - !(fiber === fiberStack$1.pop()) ? warning(false, "Unexpected Fiber (%s) popped.", getComponentName(fiber)) : void 0; - } - fiber.actualDuration = now() - totalElapsedPauseTime - fiber.actualDuration; - } - - function resetActualRenderTimer() { - if (!enableProfilerTimer) { - return; - } - - totalElapsedPauseTime = 0; - } - - function resumeActualRenderTimerIfPaused() { - if (!enableProfilerTimer) { - return; - } - - if (timerPausedAt > 0) { - totalElapsedPauseTime += now() - timerPausedAt; - timerPausedAt = 0; - } - } - - var baseStartTime = -1; - - function recordElapsedBaseRenderTimeIfRunning(fiber) { - if (!enableProfilerTimer) { - return; - } - - if (baseStartTime !== -1) { - fiber.selfBaseTime = now() - baseStartTime; - } - } - - function startBaseRenderTimer() { - if (!enableProfilerTimer) { - return; - } - - { - if (baseStartTime !== -1) { - warning(false, "Cannot start base timer that is already running. " + "This error is likely caused by a bug in React. " + "Please file an issue."); - } - } - baseStartTime = now(); - } - - function stopBaseRenderTimerIfRunning() { - if (!enableProfilerTimer) { - return; - } - - baseStartTime = -1; - } - - var hasOwnProperty = Object.prototype.hasOwnProperty; - - function is(x, y) { - if (x === y) { - return x !== 0 || y !== 0 || 1 / x === 1 / y; - } else { - return x !== x && y !== y; - } - } - - function shallowEqual(objA, objB) { - if (is(objA, objB)) { - return true; - } - - if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) { - return false; - } - - var keysA = Object.keys(objA); - var keysB = Object.keys(objB); - - if (keysA.length !== keysB.length) { - return false; - } - - for (var i = 0; i < keysA.length; i++) { - if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) { - return false; - } - } - - return true; - } - - var fakeInternalInstance = {}; - var isArray = Array.isArray; - var didWarnAboutStateAssignmentForComponent = void 0; - var didWarnAboutUninitializedState = void 0; - var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = void 0; - var didWarnAboutLegacyLifecyclesAndDerivedState = void 0; - var didWarnAboutUndefinedDerivedState = void 0; - var warnOnUndefinedDerivedState = void 0; - var warnOnInvalidCallback = void 0; - { - didWarnAboutStateAssignmentForComponent = new Set(); - didWarnAboutUninitializedState = new Set(); - didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set(); - didWarnAboutLegacyLifecyclesAndDerivedState = new Set(); - didWarnAboutUndefinedDerivedState = new Set(); - var didWarnOnInvalidCallback = new Set(); - - warnOnInvalidCallback = function warnOnInvalidCallback(callback, callerName) { - if (callback === null || typeof callback === "function") { - return; - } - - var key = callerName + "_" + callback; - - if (!didWarnOnInvalidCallback.has(key)) { - didWarnOnInvalidCallback.add(key); - warning(false, "%s(...): Expected the last optional `callback` argument to be a " + "function. Instead received: %s.", callerName, callback); - } - }; - - warnOnUndefinedDerivedState = function warnOnUndefinedDerivedState(workInProgress, partialState) { - if (partialState === undefined) { - var componentName = getComponentName(workInProgress) || "Component"; - - if (!didWarnAboutUndefinedDerivedState.has(componentName)) { - didWarnAboutUndefinedDerivedState.add(componentName); - warning(false, "%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. " + "You have returned undefined.", componentName); - } - } - }; - - Object.defineProperty(fakeInternalInstance, "_processChildContext", { - enumerable: false, - value: function value() { - invariant(false, "_processChildContext is not available in React 16+. This likely " + "means you have multiple copies of React and are attempting to nest " + "a React 15 tree inside a React 16 tree using " + "unstable_renderSubtreeIntoContainer, which isn't supported. Try " + "to make sure you have only one copy of React (and ideally, switch " + "to ReactDOM.createPortal)."); - } - }); - Object.freeze(fakeInternalInstance); - } - - function applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, nextProps) { - var prevState = workInProgress.memoizedState; - { - if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { - getDerivedStateFromProps(nextProps, prevState); - } - } - var partialState = getDerivedStateFromProps(nextProps, prevState); - { - warnOnUndefinedDerivedState(workInProgress, partialState); - } - var memoizedState = partialState === null || partialState === undefined ? prevState : _extends({}, prevState, partialState); - workInProgress.memoizedState = memoizedState; - var updateQueue = workInProgress.updateQueue; - - if (updateQueue !== null && updateQueue.expirationTime === NoWork) { - updateQueue.baseState = memoizedState; - } - } - - var classComponentUpdater = { - isMounted: isMounted, - enqueueSetState: function enqueueSetState(inst, payload, callback) { - var fiber = get$1(inst); - var currentTime = recalculateCurrentTime(); - var expirationTime = computeExpirationForFiber(currentTime, fiber); - var update = createUpdate(expirationTime); - update.payload = payload; - - if (callback !== undefined && callback !== null) { - { - warnOnInvalidCallback(callback, "setState"); - } - update.callback = callback; - } - - enqueueUpdate(fiber, update, expirationTime); - scheduleWork(fiber, expirationTime); - }, - enqueueReplaceState: function enqueueReplaceState(inst, payload, callback) { - var fiber = get$1(inst); - var currentTime = recalculateCurrentTime(); - var expirationTime = computeExpirationForFiber(currentTime, fiber); - var update = createUpdate(expirationTime); - update.tag = ReplaceState; - update.payload = payload; - - if (callback !== undefined && callback !== null) { - { - warnOnInvalidCallback(callback, "replaceState"); - } - update.callback = callback; - } - - enqueueUpdate(fiber, update, expirationTime); - scheduleWork(fiber, expirationTime); - }, - enqueueForceUpdate: function enqueueForceUpdate(inst, callback) { - var fiber = get$1(inst); - var currentTime = recalculateCurrentTime(); - var expirationTime = computeExpirationForFiber(currentTime, fiber); - var update = createUpdate(expirationTime); - update.tag = ForceUpdate; - - if (callback !== undefined && callback !== null) { - { - warnOnInvalidCallback(callback, "forceUpdate"); - } - update.callback = callback; - } - - enqueueUpdate(fiber, update, expirationTime); - scheduleWork(fiber, expirationTime); - } - }; - - function checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext) { - var instance = workInProgress.stateNode; - var ctor = workInProgress.type; - - if (typeof instance.shouldComponentUpdate === "function") { - startPhaseTimer(workInProgress, "shouldComponentUpdate"); - var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, newContext); - stopPhaseTimer(); - { - !(shouldUpdate !== undefined) ? warning(false, "%s.shouldComponentUpdate(): Returned undefined instead of a " + "boolean value. Make sure to return true or false.", getComponentName(workInProgress) || "Component") : void 0; - } - return shouldUpdate; - } - - if (ctor.prototype && ctor.prototype.isPureReactComponent) { - return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState); - } - - return true; - } - - function checkClassInstance(workInProgress) { - var instance = workInProgress.stateNode; - var type = workInProgress.type; - { - var name = getComponentName(workInProgress) || "Component"; - var renderPresent = instance.render; - - if (!renderPresent) { - if (type.prototype && typeof type.prototype.render === "function") { - warning(false, "%s(...): No `render` method found on the returned component " + "instance: did you accidentally return an object from the constructor?", name); - } else { - warning(false, "%s(...): No `render` method found on the returned component " + "instance: you may have forgotten to define `render`.", name); - } - } - - var noGetInitialStateOnES6 = !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state; - !noGetInitialStateOnES6 ? warning(false, "getInitialState was defined on %s, a plain JavaScript class. " + "This is only supported for classes created using React.createClass. " + "Did you mean to define a state property instead?", name) : void 0; - var noGetDefaultPropsOnES6 = !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved; - !noGetDefaultPropsOnES6 ? warning(false, "getDefaultProps was defined on %s, a plain JavaScript class. " + "This is only supported for classes created using React.createClass. " + "Use a static property to define defaultProps instead.", name) : void 0; - var noInstancePropTypes = !instance.propTypes; - !noInstancePropTypes ? warning(false, "propTypes was defined as an instance property on %s. Use a static " + "property to define propTypes instead.", name) : void 0; - var noInstanceContextTypes = !instance.contextTypes; - !noInstanceContextTypes ? warning(false, "contextTypes was defined as an instance property on %s. Use a static " + "property to define contextTypes instead.", name) : void 0; - var noComponentShouldUpdate = typeof instance.componentShouldUpdate !== "function"; - !noComponentShouldUpdate ? warning(false, "%s has a method called " + "componentShouldUpdate(). Did you mean shouldComponentUpdate()? " + "The name is phrased as a question because the function is " + "expected to return a value.", name) : void 0; - - if (type.prototype && type.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== "undefined") { - warning(false, "%s has a method called shouldComponentUpdate(). " + "shouldComponentUpdate should not be used when extending React.PureComponent. " + "Please extend React.Component if shouldComponentUpdate is used.", getComponentName(workInProgress) || "A pure component"); - } - - var noComponentDidUnmount = typeof instance.componentDidUnmount !== "function"; - !noComponentDidUnmount ? warning(false, "%s has a method called " + "componentDidUnmount(). But there is no such lifecycle method. " + "Did you mean componentWillUnmount()?", name) : void 0; - var noComponentDidReceiveProps = typeof instance.componentDidReceiveProps !== "function"; - !noComponentDidReceiveProps ? warning(false, "%s has a method called " + "componentDidReceiveProps(). But there is no such lifecycle method. " + "If you meant to update the state in response to changing props, " + "use componentWillReceiveProps(). If you meant to fetch data or " + "run side-effects or mutations after React has updated the UI, use componentDidUpdate().", name) : void 0; - var noComponentWillRecieveProps = typeof instance.componentWillRecieveProps !== "function"; - !noComponentWillRecieveProps ? warning(false, "%s has a method called " + "componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", name) : void 0; - var noUnsafeComponentWillRecieveProps = typeof instance.UNSAFE_componentWillRecieveProps !== "function"; - !noUnsafeComponentWillRecieveProps ? warning(false, "%s has a method called " + "UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", name) : void 0; - var hasMutatedProps = instance.props !== workInProgress.pendingProps; - !(instance.props === undefined || !hasMutatedProps) ? warning(false, "%s(...): When calling super() in `%s`, make sure to pass " + "up the same props that your component's constructor was passed.", name, name) : void 0; - var noInstanceDefaultProps = !instance.defaultProps; - !noInstanceDefaultProps ? warning(false, "Setting defaultProps as an instance property on %s is not supported and will be ignored." + " Instead, define defaultProps as a static property on %s.", name, name) : void 0; - - if (typeof instance.getSnapshotBeforeUpdate === "function" && typeof instance.componentDidUpdate !== "function" && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(type)) { - didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(type); - warning(false, "%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). " + "This component defines getSnapshotBeforeUpdate() only.", getComponentName(workInProgress)); - } - - var noInstanceGetDerivedStateFromProps = typeof instance.getDerivedStateFromProps !== "function"; - !noInstanceGetDerivedStateFromProps ? warning(false, "%s: getDerivedStateFromProps() is defined as an instance method " + "and will be ignored. Instead, declare it as a static method.", name) : void 0; - var noInstanceGetDerivedStateFromCatch = typeof instance.getDerivedStateFromCatch !== "function"; - !noInstanceGetDerivedStateFromCatch ? warning(false, "%s: getDerivedStateFromCatch() is defined as an instance method " + "and will be ignored. Instead, declare it as a static method.", name) : void 0; - var noStaticGetSnapshotBeforeUpdate = typeof type.getSnapshotBeforeUpdate !== "function"; - !noStaticGetSnapshotBeforeUpdate ? warning(false, "%s: getSnapshotBeforeUpdate() is defined as a static method " + "and will be ignored. Instead, declare it as an instance method.", name) : void 0; - var _state = instance.state; - - if (_state && (typeof _state !== "object" || isArray(_state))) { - warning(false, "%s.state: must be set to an object or null", name); - } - - if (typeof instance.getChildContext === "function") { - !(typeof type.childContextTypes === "object") ? warning(false, "%s.getChildContext(): childContextTypes must be defined in order to " + "use getChildContext().", name) : void 0; - } - } - } - - function adoptClassInstance(workInProgress, instance) { - instance.updater = classComponentUpdater; - workInProgress.stateNode = instance; - set(instance, workInProgress); - { - instance._reactInternalInstance = fakeInternalInstance; - } - } - - function constructClassInstance(workInProgress, props, renderExpirationTime) { - var ctor = workInProgress.type; - var unmaskedContext = getUnmaskedContext(workInProgress); - var needsContext = isContextConsumer(workInProgress); - var context = needsContext ? getMaskedContext(workInProgress, unmaskedContext) : emptyObject; - { - if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { - new ctor(props, context); - } - } - var instance = new ctor(props, context); - var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null; - adoptClassInstance(workInProgress, instance); - { - if (typeof ctor.getDerivedStateFromProps === "function" && state === null) { - var componentName = getComponentName(workInProgress) || "Component"; - - if (!didWarnAboutUninitializedState.has(componentName)) { - didWarnAboutUninitializedState.add(componentName); - warning(false, "%s: Did not properly initialize state during construction. " + "Expected state to be an object, but it was %s.", componentName, instance.state === null ? "null" : "undefined"); - } - } - - if (typeof ctor.getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function") { - var foundWillMountName = null; - var foundWillReceivePropsName = null; - var foundWillUpdateName = null; - - if (typeof instance.componentWillMount === "function" && instance.componentWillMount.__suppressDeprecationWarning !== true) { - foundWillMountName = "componentWillMount"; - } else if (typeof instance.UNSAFE_componentWillMount === "function") { - foundWillMountName = "UNSAFE_componentWillMount"; - } - - if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { - foundWillReceivePropsName = "componentWillReceiveProps"; - } else if (typeof instance.UNSAFE_componentWillReceiveProps === "function") { - foundWillReceivePropsName = "UNSAFE_componentWillReceiveProps"; - } - - if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { - foundWillUpdateName = "componentWillUpdate"; - } else if (typeof instance.UNSAFE_componentWillUpdate === "function") { - foundWillUpdateName = "UNSAFE_componentWillUpdate"; - } - - if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) { - var _componentName = getComponentName(workInProgress) || "Component"; - - var newApiName = typeof ctor.getDerivedStateFromProps === "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; - - if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) { - didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName); - warning(false, "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + "https://fb.me/react-async-component-lifecycle-hooks", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", foundWillReceivePropsName !== null ? "\n " + foundWillReceivePropsName : "", foundWillUpdateName !== null ? "\n " + foundWillUpdateName : ""); - } - } - } - } - - if (needsContext) { - cacheContext(workInProgress, unmaskedContext, context); - } - - return instance; - } - - function callComponentWillMount(workInProgress, instance) { - startPhaseTimer(workInProgress, "componentWillMount"); - var oldState = instance.state; - - if (typeof instance.componentWillMount === "function") { - instance.componentWillMount(); - } - - if (typeof instance.UNSAFE_componentWillMount === "function") { - instance.UNSAFE_componentWillMount(); - } - - stopPhaseTimer(); - - if (oldState !== instance.state) { - { - warning(false, "%s.componentWillMount(): Assigning directly to this.state is " + "deprecated (except inside a component's " + "constructor). Use setState instead.", getComponentName(workInProgress) || "Component"); - } - classComponentUpdater.enqueueReplaceState(instance, instance.state, null); - } - } - - function callComponentWillReceiveProps(workInProgress, instance, newProps, newContext) { - var oldState = instance.state; - startPhaseTimer(workInProgress, "componentWillReceiveProps"); - - if (typeof instance.componentWillReceiveProps === "function") { - instance.componentWillReceiveProps(newProps, newContext); - } - - if (typeof instance.UNSAFE_componentWillReceiveProps === "function") { - instance.UNSAFE_componentWillReceiveProps(newProps, newContext); - } - - stopPhaseTimer(); - - if (instance.state !== oldState) { - { - var componentName = getComponentName(workInProgress) || "Component"; - - if (!didWarnAboutStateAssignmentForComponent.has(componentName)) { - didWarnAboutStateAssignmentForComponent.add(componentName); - warning(false, "%s.componentWillReceiveProps(): Assigning directly to " + "this.state is deprecated (except inside a component's " + "constructor). Use setState instead.", componentName); - } - } - classComponentUpdater.enqueueReplaceState(instance, instance.state, null); - } - } - - function mountClassInstance(workInProgress, renderExpirationTime) { - var ctor = workInProgress.type; - { - checkClassInstance(workInProgress); - } - var instance = workInProgress.stateNode; - var props = workInProgress.pendingProps; - var unmaskedContext = getUnmaskedContext(workInProgress); - instance.props = props; - instance.state = workInProgress.memoizedState; - instance.refs = emptyObject; - instance.context = getMaskedContext(workInProgress, unmaskedContext); - { - if (workInProgress.mode & StrictMode) { - ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance); - ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance); - } - - if (warnAboutDeprecatedLifecycles) { - ReactStrictModeWarnings.recordDeprecationWarnings(workInProgress, instance); - } - } - var updateQueue = workInProgress.updateQueue; - - if (updateQueue !== null) { - processUpdateQueue(workInProgress, updateQueue, props, instance, renderExpirationTime); - instance.state = workInProgress.memoizedState; - } - - var getDerivedStateFromProps = workInProgress.type.getDerivedStateFromProps; - - if (typeof getDerivedStateFromProps === "function") { - applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, props); - instance.state = workInProgress.memoizedState; - } - - if (typeof ctor.getDerivedStateFromProps !== "function" && typeof instance.getSnapshotBeforeUpdate !== "function" && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { - callComponentWillMount(workInProgress, instance); - updateQueue = workInProgress.updateQueue; - - if (updateQueue !== null) { - processUpdateQueue(workInProgress, updateQueue, props, instance, renderExpirationTime); - instance.state = workInProgress.memoizedState; - } - } - - if (typeof instance.componentDidMount === "function") { - workInProgress.effectTag |= Update; - } - } - - function resumeMountClassInstance(workInProgress, renderExpirationTime) { - var ctor = workInProgress.type; - var instance = workInProgress.stateNode; - var oldProps = workInProgress.memoizedProps; - var newProps = workInProgress.pendingProps; - instance.props = oldProps; - var oldContext = instance.context; - var newUnmaskedContext = getUnmaskedContext(workInProgress); - var newContext = getMaskedContext(workInProgress, newUnmaskedContext); - var getDerivedStateFromProps = ctor.getDerivedStateFromProps; - var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; - - if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { - if (oldProps !== newProps || oldContext !== newContext) { - callComponentWillReceiveProps(workInProgress, instance, newProps, newContext); - } - } - - resetHasForceUpdateBeforeProcessing(); - var oldState = workInProgress.memoizedState; - var newState = instance.state = oldState; - var updateQueue = workInProgress.updateQueue; - - if (updateQueue !== null) { - processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime); - newState = workInProgress.memoizedState; - } - - if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) { - if (typeof instance.componentDidMount === "function") { - workInProgress.effectTag |= Update; - } - - return false; - } - - if (typeof getDerivedStateFromProps === "function") { - applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, newProps); - newState = workInProgress.memoizedState; - } - - var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext); - - if (shouldUpdate) { - if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { - startPhaseTimer(workInProgress, "componentWillMount"); - - if (typeof instance.componentWillMount === "function") { - instance.componentWillMount(); - } - - if (typeof instance.UNSAFE_componentWillMount === "function") { - instance.UNSAFE_componentWillMount(); - } - - stopPhaseTimer(); - } - - if (typeof instance.componentDidMount === "function") { - workInProgress.effectTag |= Update; - } - } else { - if (typeof instance.componentDidMount === "function") { - workInProgress.effectTag |= Update; - } - - workInProgress.memoizedProps = newProps; - workInProgress.memoizedState = newState; - } - - instance.props = newProps; - instance.state = newState; - instance.context = newContext; - return shouldUpdate; - } - - function updateClassInstance(current, workInProgress, renderExpirationTime) { - var ctor = workInProgress.type; - var instance = workInProgress.stateNode; - var oldProps = workInProgress.memoizedProps; - var newProps = workInProgress.pendingProps; - instance.props = oldProps; - var oldContext = instance.context; - var newUnmaskedContext = getUnmaskedContext(workInProgress); - var newContext = getMaskedContext(workInProgress, newUnmaskedContext); - var getDerivedStateFromProps = ctor.getDerivedStateFromProps; - var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; - - if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { - if (oldProps !== newProps || oldContext !== newContext) { - callComponentWillReceiveProps(workInProgress, instance, newProps, newContext); - } - } - - resetHasForceUpdateBeforeProcessing(); - var oldState = workInProgress.memoizedState; - var newState = instance.state = oldState; - var updateQueue = workInProgress.updateQueue; - - if (updateQueue !== null) { - processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime); - newState = workInProgress.memoizedState; - } - - if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) { - if (typeof instance.componentDidUpdate === "function") { - if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { - workInProgress.effectTag |= Update; - } - } - - if (typeof instance.getSnapshotBeforeUpdate === "function") { - if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { - workInProgress.effectTag |= Snapshot; - } - } - - return false; - } - - if (typeof getDerivedStateFromProps === "function") { - applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, newProps); - newState = workInProgress.memoizedState; - } - - var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext); - - if (shouldUpdate) { - if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === "function" || typeof instance.componentWillUpdate === "function")) { - startPhaseTimer(workInProgress, "componentWillUpdate"); - - if (typeof instance.componentWillUpdate === "function") { - instance.componentWillUpdate(newProps, newState, newContext); - } - - if (typeof instance.UNSAFE_componentWillUpdate === "function") { - instance.UNSAFE_componentWillUpdate(newProps, newState, newContext); - } - - stopPhaseTimer(); - } - - if (typeof instance.componentDidUpdate === "function") { - workInProgress.effectTag |= Update; - } - - if (typeof instance.getSnapshotBeforeUpdate === "function") { - workInProgress.effectTag |= Snapshot; - } - } else { - if (typeof instance.componentDidUpdate === "function") { - if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { - workInProgress.effectTag |= Update; - } - } - - if (typeof instance.getSnapshotBeforeUpdate === "function") { - if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { - workInProgress.effectTag |= Snapshot; - } - } - - workInProgress.memoizedProps = newProps; - workInProgress.memoizedState = newState; - } - - instance.props = newProps; - instance.state = newState; - instance.context = newContext; - return shouldUpdate; - } - - var getCurrentFiberStackAddendum$2 = ReactDebugCurrentFiber.getCurrentFiberStackAddendum; - var didWarnAboutMaps = void 0; - var didWarnAboutStringRefInStrictMode = void 0; - var ownerHasKeyUseWarning = void 0; - var ownerHasFunctionTypeWarning = void 0; - - var warnForMissingKey = function warnForMissingKey(child) {}; - - { - didWarnAboutMaps = false; - didWarnAboutStringRefInStrictMode = {}; - ownerHasKeyUseWarning = {}; - ownerHasFunctionTypeWarning = {}; - - warnForMissingKey = function warnForMissingKey(child) { - if (child === null || typeof child !== "object") { - return; - } - - if (!child._store || child._store.validated || child.key != null) { - return; - } - - invariant(typeof child._store === "object", "React Component in warnForMissingKey should have a _store. " + "This error is likely caused by a bug in React. Please file an issue."); - child._store.validated = true; - var currentComponentErrorInfo = "Each child in an array or iterator should have a unique " + '"key" prop. See https://fb.me/react-warning-keys for ' + "more information." + (getCurrentFiberStackAddendum$2() || ""); - - if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { - return; - } - - ownerHasKeyUseWarning[currentComponentErrorInfo] = true; - warning(false, "Each child in an array or iterator should have a unique " + '"key" prop. See https://fb.me/react-warning-keys for ' + "more information.%s", getCurrentFiberStackAddendum$2()); - }; - } - var isArray$1 = Array.isArray; - - function coerceRef(returnFiber, current, element) { - var mixedRef = element.ref; - - if (mixedRef !== null && typeof mixedRef !== "function" && typeof mixedRef !== "object") { - { - if (returnFiber.mode & StrictMode) { - var componentName = getComponentName(returnFiber) || "Component"; - - if (!didWarnAboutStringRefInStrictMode[componentName]) { - warning(false, 'A string ref, "%s", has been found within a strict mode tree. ' + "String refs are a source of potential bugs and should be avoided. " + "We recommend using createRef() instead." + "\n%s" + "\n\nLearn more about using refs safely here:" + "\nhttps://fb.me/react-strict-mode-string-ref", mixedRef, getStackAddendumByWorkInProgressFiber(returnFiber)); - didWarnAboutStringRefInStrictMode[componentName] = true; - } - } - } - - if (element._owner) { - var owner = element._owner; - var inst = void 0; - - if (owner) { - var ownerFiber = owner; - invariant(ownerFiber.tag === ClassComponent, "Stateless function components cannot have refs."); - inst = ownerFiber.stateNode; - } - - invariant(inst, "Missing owner for string ref %s. This error is likely caused by a " + "bug in React. Please file an issue.", mixedRef); - var stringRef = "" + mixedRef; - - if (current !== null && current.ref !== null && typeof current.ref === "function" && current.ref._stringRef === stringRef) { - return current.ref; - } - - var ref = function ref(value) { - var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs; - - if (value === null) { - delete refs[stringRef]; - } else { - refs[stringRef] = value; - } - }; - - ref._stringRef = stringRef; - return ref; - } else { - invariant(typeof mixedRef === "string", "Expected ref to be a function or a string."); - invariant(element._owner, "Element ref was specified as a string (%s) but no owner was set. This could happen for one of" + " the following reasons:\n" + "1. You may be adding a ref to a functional component\n" + "2. You may be adding a ref to a component that was not created inside a component's render method\n" + "3. You have multiple copies of React loaded\n" + "See https://fb.me/react-refs-must-have-owner for more information.", mixedRef); - } - } - - return mixedRef; - } - - function throwOnInvalidObjectType(returnFiber, newChild) { - if (returnFiber.type !== "textarea") { - var addendum = ""; - { - addendum = " If you meant to render a collection of children, use an array " + "instead." + (getCurrentFiberStackAddendum$2() || ""); - } - invariant(false, "Objects are not valid as a React child (found: %s).%s", Object.prototype.toString.call(newChild) === "[object Object]" ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : newChild, addendum); - } - } - - function warnOnFunctionType() { - var currentComponentErrorInfo = "Functions are not valid as a React child. This may happen if " + "you return a Component instead of from render. " + "Or maybe you meant to call this function rather than return it." + (getCurrentFiberStackAddendum$2() || ""); - - if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) { - return; - } - - ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true; - warning(false, "Functions are not valid as a React child. This may happen if " + "you return a Component instead of from render. " + "Or maybe you meant to call this function rather than return it.%s", getCurrentFiberStackAddendum$2() || ""); - } - - function ChildReconciler(shouldTrackSideEffects) { - function deleteChild(returnFiber, childToDelete) { - if (!shouldTrackSideEffects) { - return; - } - - var last = returnFiber.lastEffect; - - if (last !== null) { - last.nextEffect = childToDelete; - returnFiber.lastEffect = childToDelete; - } else { - returnFiber.firstEffect = returnFiber.lastEffect = childToDelete; - } - - childToDelete.nextEffect = null; - childToDelete.effectTag = Deletion; - } - - function deleteRemainingChildren(returnFiber, currentFirstChild) { - if (!shouldTrackSideEffects) { - return null; - } - - var childToDelete = currentFirstChild; - - while (childToDelete !== null) { - deleteChild(returnFiber, childToDelete); - childToDelete = childToDelete.sibling; - } - - return null; - } - - function mapRemainingChildren(returnFiber, currentFirstChild) { - var existingChildren = new Map(); - var existingChild = currentFirstChild; - - while (existingChild !== null) { - if (existingChild.key !== null) { - existingChildren.set(existingChild.key, existingChild); - } else { - existingChildren.set(existingChild.index, existingChild); - } - - existingChild = existingChild.sibling; - } - - return existingChildren; - } - - function useFiber(fiber, pendingProps, expirationTime) { - var clone = createWorkInProgress(fiber, pendingProps, expirationTime); - clone.index = 0; - clone.sibling = null; - return clone; - } - - function placeChild(newFiber, lastPlacedIndex, newIndex) { - newFiber.index = newIndex; - - if (!shouldTrackSideEffects) { - return lastPlacedIndex; - } - - var current = newFiber.alternate; - - if (current !== null) { - var oldIndex = current.index; - - if (oldIndex < lastPlacedIndex) { - newFiber.effectTag = Placement; - return lastPlacedIndex; - } else { - return oldIndex; - } - } else { - newFiber.effectTag = Placement; - return lastPlacedIndex; - } - } - - function placeSingleChild(newFiber) { - if (shouldTrackSideEffects && newFiber.alternate === null) { - newFiber.effectTag = Placement; - } - - return newFiber; - } - - function updateTextNode(returnFiber, current, textContent, expirationTime) { - if (current === null || current.tag !== HostText) { - var created = createFiberFromText(textContent, returnFiber.mode, expirationTime); - created.return = returnFiber; - return created; - } else { - var existing = useFiber(current, textContent, expirationTime); - existing.return = returnFiber; - return existing; - } - } - - function updateElement(returnFiber, current, element, expirationTime) { - if (current !== null && current.type === element.type) { - var existing = useFiber(current, element.props, expirationTime); - existing.ref = coerceRef(returnFiber, current, element); - existing.return = returnFiber; - { - existing._debugSource = element._source; - existing._debugOwner = element._owner; - } - return existing; - } else { - var created = createFiberFromElement(element, returnFiber.mode, expirationTime); - created.ref = coerceRef(returnFiber, current, element); - created.return = returnFiber; - return created; - } - } - - function updatePortal(returnFiber, current, portal, expirationTime) { - if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) { - var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime); - created.return = returnFiber; - return created; - } else { - var existing = useFiber(current, portal.children || [], expirationTime); - existing.return = returnFiber; - return existing; - } - } - - function updateFragment(returnFiber, current, fragment, expirationTime, key) { - if (current === null || current.tag !== Fragment) { - var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key); - created.return = returnFiber; - return created; - } else { - var existing = useFiber(current, fragment, expirationTime); - existing.return = returnFiber; - return existing; - } - } - - function createChild(returnFiber, newChild, expirationTime) { - if (typeof newChild === "string" || typeof newChild === "number") { - var created = createFiberFromText("" + newChild, returnFiber.mode, expirationTime); - created.return = returnFiber; - return created; - } - - if (typeof newChild === "object" && newChild !== null) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - { - var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime); - - _created.ref = coerceRef(returnFiber, null, newChild); - _created.return = returnFiber; - return _created; - } - - case REACT_PORTAL_TYPE: - { - var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime); - - _created2.return = returnFiber; - return _created2; - } - } - - if (isArray$1(newChild) || getIteratorFn(newChild)) { - var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null); - - _created3.return = returnFiber; - return _created3; - } - - throwOnInvalidObjectType(returnFiber, newChild); - } - - { - if (typeof newChild === "function") { - warnOnFunctionType(); - } - } - return null; - } - - function updateSlot(returnFiber, oldFiber, newChild, expirationTime) { - var key = oldFiber !== null ? oldFiber.key : null; - - if (typeof newChild === "string" || typeof newChild === "number") { - if (key !== null) { - return null; - } - - return updateTextNode(returnFiber, oldFiber, "" + newChild, expirationTime); - } - - if (typeof newChild === "object" && newChild !== null) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - { - if (newChild.key === key) { - if (newChild.type === REACT_FRAGMENT_TYPE) { - return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key); - } - - return updateElement(returnFiber, oldFiber, newChild, expirationTime); - } else { - return null; - } - } - - case REACT_PORTAL_TYPE: - { - if (newChild.key === key) { - return updatePortal(returnFiber, oldFiber, newChild, expirationTime); - } else { - return null; - } - } - } - - if (isArray$1(newChild) || getIteratorFn(newChild)) { - if (key !== null) { - return null; - } - - return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null); - } - - throwOnInvalidObjectType(returnFiber, newChild); - } - - { - if (typeof newChild === "function") { - warnOnFunctionType(); - } - } - return null; - } - - function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) { - if (typeof newChild === "string" || typeof newChild === "number") { - var matchedFiber = existingChildren.get(newIdx) || null; - return updateTextNode(returnFiber, matchedFiber, "" + newChild, expirationTime); - } - - if (typeof newChild === "object" && newChild !== null) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - { - var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; - - if (newChild.type === REACT_FRAGMENT_TYPE) { - return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key); - } - - return updateElement(returnFiber, _matchedFiber, newChild, expirationTime); - } - - case REACT_PORTAL_TYPE: - { - var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; - - return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime); - } - } - - if (isArray$1(newChild) || getIteratorFn(newChild)) { - var _matchedFiber3 = existingChildren.get(newIdx) || null; - - return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null); - } - - throwOnInvalidObjectType(returnFiber, newChild); - } - - { - if (typeof newChild === "function") { - warnOnFunctionType(); - } - } - return null; - } - - function warnOnInvalidKey(child, knownKeys) { - { - if (typeof child !== "object" || child === null) { - return knownKeys; - } - - switch (child.$$typeof) { - case REACT_ELEMENT_TYPE: - case REACT_PORTAL_TYPE: - warnForMissingKey(child); - var key = child.key; - - if (typeof key !== "string") { - break; - } - - if (knownKeys === null) { - knownKeys = new Set(); - knownKeys.add(key); - break; - } - - if (!knownKeys.has(key)) { - knownKeys.add(key); - break; - } - - warning(false, "Encountered two children with the same key, `%s`. " + "Keys should be unique so that components maintain their identity " + "across updates. Non-unique keys may cause children to be " + "duplicated and/or omitted — the behavior is unsupported and " + "could change in a future version.%s", key, getCurrentFiberStackAddendum$2()); - break; - - default: - break; - } - } - return knownKeys; - } - - function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) { - { - var knownKeys = null; - - for (var i = 0; i < newChildren.length; i++) { - var child = newChildren[i]; - knownKeys = warnOnInvalidKey(child, knownKeys); - } - } - var resultingFirstChild = null; - var previousNewFiber = null; - var oldFiber = currentFirstChild; - var lastPlacedIndex = 0; - var newIdx = 0; - var nextOldFiber = null; - - for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) { - if (oldFiber.index > newIdx) { - nextOldFiber = oldFiber; - oldFiber = null; - } else { - nextOldFiber = oldFiber.sibling; - } - - var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime); - - if (newFiber === null) { - if (oldFiber === null) { - oldFiber = nextOldFiber; - } - - break; - } - - if (shouldTrackSideEffects) { - if (oldFiber && newFiber.alternate === null) { - deleteChild(returnFiber, oldFiber); - } - } - - lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); - - if (previousNewFiber === null) { - resultingFirstChild = newFiber; - } else { - previousNewFiber.sibling = newFiber; - } - - previousNewFiber = newFiber; - oldFiber = nextOldFiber; - } - - if (newIdx === newChildren.length) { - deleteRemainingChildren(returnFiber, oldFiber); - return resultingFirstChild; - } - - if (oldFiber === null) { - for (; newIdx < newChildren.length; newIdx++) { - var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime); - - if (!_newFiber) { - continue; - } - - lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx); - - if (previousNewFiber === null) { - resultingFirstChild = _newFiber; - } else { - previousNewFiber.sibling = _newFiber; - } - - previousNewFiber = _newFiber; - } - - return resultingFirstChild; - } - - var existingChildren = mapRemainingChildren(returnFiber, oldFiber); - - for (; newIdx < newChildren.length; newIdx++) { - var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime); - - if (_newFiber2) { - if (shouldTrackSideEffects) { - if (_newFiber2.alternate !== null) { - existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key); - } - } - - lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx); - - if (previousNewFiber === null) { - resultingFirstChild = _newFiber2; - } else { - previousNewFiber.sibling = _newFiber2; - } - - previousNewFiber = _newFiber2; - } - } - - if (shouldTrackSideEffects) { - existingChildren.forEach(function (child) { - return deleteChild(returnFiber, child); - }); - } - - return resultingFirstChild; - } - - function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) { - var iteratorFn = getIteratorFn(newChildrenIterable); - invariant(typeof iteratorFn === "function", "An object is not an iterable. This error is likely caused by a bug in " + "React. Please file an issue."); - { - if (newChildrenIterable.entries === iteratorFn) { - !didWarnAboutMaps ? warning(false, "Using Maps as children is unsupported and will likely yield " + "unexpected results. Convert it to a sequence/iterable of keyed " + "ReactElements instead.%s", getCurrentFiberStackAddendum$2()) : void 0; - didWarnAboutMaps = true; - } - - var _newChildren = iteratorFn.call(newChildrenIterable); - - if (_newChildren) { - var knownKeys = null; - - var _step = _newChildren.next(); - - for (; !_step.done; _step = _newChildren.next()) { - var child = _step.value; - knownKeys = warnOnInvalidKey(child, knownKeys); - } - } - } - var newChildren = iteratorFn.call(newChildrenIterable); - invariant(newChildren != null, "An iterable object provided no iterator."); - var resultingFirstChild = null; - var previousNewFiber = null; - var oldFiber = currentFirstChild; - var lastPlacedIndex = 0; - var newIdx = 0; - var nextOldFiber = null; - var step = newChildren.next(); - - for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) { - if (oldFiber.index > newIdx) { - nextOldFiber = oldFiber; - oldFiber = null; - } else { - nextOldFiber = oldFiber.sibling; - } - - var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime); - - if (newFiber === null) { - if (!oldFiber) { - oldFiber = nextOldFiber; - } - - break; - } - - if (shouldTrackSideEffects) { - if (oldFiber && newFiber.alternate === null) { - deleteChild(returnFiber, oldFiber); - } - } - - lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); - - if (previousNewFiber === null) { - resultingFirstChild = newFiber; - } else { - previousNewFiber.sibling = newFiber; - } - - previousNewFiber = newFiber; - oldFiber = nextOldFiber; - } - - if (step.done) { - deleteRemainingChildren(returnFiber, oldFiber); - return resultingFirstChild; - } - - if (oldFiber === null) { - for (; !step.done; newIdx++, step = newChildren.next()) { - var _newFiber3 = createChild(returnFiber, step.value, expirationTime); - - if (_newFiber3 === null) { - continue; - } - - lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx); - - if (previousNewFiber === null) { - resultingFirstChild = _newFiber3; - } else { - previousNewFiber.sibling = _newFiber3; - } - - previousNewFiber = _newFiber3; - } - - return resultingFirstChild; - } - - var existingChildren = mapRemainingChildren(returnFiber, oldFiber); - - for (; !step.done; newIdx++, step = newChildren.next()) { - var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime); - - if (_newFiber4 !== null) { - if (shouldTrackSideEffects) { - if (_newFiber4.alternate !== null) { - existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key); - } - } - - lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx); - - if (previousNewFiber === null) { - resultingFirstChild = _newFiber4; - } else { - previousNewFiber.sibling = _newFiber4; - } - - previousNewFiber = _newFiber4; - } - } - - if (shouldTrackSideEffects) { - existingChildren.forEach(function (child) { - return deleteChild(returnFiber, child); - }); - } - - return resultingFirstChild; - } - - function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) { - if (currentFirstChild !== null && currentFirstChild.tag === HostText) { - deleteRemainingChildren(returnFiber, currentFirstChild.sibling); - var existing = useFiber(currentFirstChild, textContent, expirationTime); - existing.return = returnFiber; - return existing; - } - - deleteRemainingChildren(returnFiber, currentFirstChild); - var created = createFiberFromText(textContent, returnFiber.mode, expirationTime); - created.return = returnFiber; - return created; - } - - function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) { - var key = element.key; - var child = currentFirstChild; - - while (child !== null) { - if (child.key === key) { - if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.type === element.type) { - deleteRemainingChildren(returnFiber, child.sibling); - var existing = useFiber(child, element.type === REACT_FRAGMENT_TYPE ? element.props.children : element.props, expirationTime); - existing.ref = coerceRef(returnFiber, child, element); - existing.return = returnFiber; - { - existing._debugSource = element._source; - existing._debugOwner = element._owner; - } - return existing; - } else { - deleteRemainingChildren(returnFiber, child); - break; - } - } else { - deleteChild(returnFiber, child); - } - - child = child.sibling; - } - - if (element.type === REACT_FRAGMENT_TYPE) { - var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key); - created.return = returnFiber; - return created; - } else { - var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime); - - _created4.ref = coerceRef(returnFiber, currentFirstChild, element); - _created4.return = returnFiber; - return _created4; - } - } - - function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) { - var key = portal.key; - var child = currentFirstChild; - - while (child !== null) { - if (child.key === key) { - if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) { - deleteRemainingChildren(returnFiber, child.sibling); - var existing = useFiber(child, portal.children || [], expirationTime); - existing.return = returnFiber; - return existing; - } else { - deleteRemainingChildren(returnFiber, child); - break; - } - } else { - deleteChild(returnFiber, child); - } - - child = child.sibling; - } - - var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime); - created.return = returnFiber; - return created; - } - - function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) { - var isUnkeyedTopLevelFragment = typeof newChild === "object" && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null; - - if (isUnkeyedTopLevelFragment) { - newChild = newChild.props.children; - } - - var isObject = typeof newChild === "object" && newChild !== null; - - if (isObject) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime)); - - case REACT_PORTAL_TYPE: - return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime)); - } - } - - if (typeof newChild === "string" || typeof newChild === "number") { - return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, "" + newChild, expirationTime)); - } - - if (isArray$1(newChild)) { - return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime); - } - - if (getIteratorFn(newChild)) { - return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime); - } - - if (isObject) { - throwOnInvalidObjectType(returnFiber, newChild); - } - - { - if (typeof newChild === "function") { - warnOnFunctionType(); - } - } - - if (typeof newChild === "undefined" && !isUnkeyedTopLevelFragment) { - switch (returnFiber.tag) { - case ClassComponent: - { - { - var instance = returnFiber.stateNode; - - if (instance.render._isMockFunction) { - break; - } - } - } - - case FunctionalComponent: - { - var Component = returnFiber.type; - invariant(false, "%s(...): Nothing was returned from render. This usually means a " + "return statement is missing. Or, to render nothing, " + "return null.", Component.displayName || Component.name || "Component"); - } - } - } - - return deleteRemainingChildren(returnFiber, currentFirstChild); - } - - return reconcileChildFibers; - } - - var reconcileChildFibers = ChildReconciler(true); - var mountChildFibers = ChildReconciler(false); - - function cloneChildFibers(current, workInProgress) { - invariant(current === null || workInProgress.child === current.child, "Resuming work not yet implemented."); - - if (workInProgress.child === null) { - return; - } - - var currentChild = workInProgress.child; - var newChild = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime); - workInProgress.child = newChild; - newChild.return = workInProgress; - - while (currentChild.sibling !== null) { - currentChild = currentChild.sibling; - newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime); - newChild.return = workInProgress; - } - - newChild.sibling = null; - } - - var hydrationParentFiber = null; - var nextHydratableInstance = null; - var isHydrating = false; - - function enterHydrationState(fiber) { - if (!supportsHydration) { - return false; - } - - var parentInstance = fiber.stateNode.containerInfo; - nextHydratableInstance = getFirstHydratableChild(parentInstance); - hydrationParentFiber = fiber; - isHydrating = true; - return true; - } - - function deleteHydratableInstance(returnFiber, instance) { - { - switch (returnFiber.tag) { - case HostRoot: - didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance); - break; - - case HostComponent: - didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance); - break; - } - } - var childToDelete = createFiberFromHostInstanceForDeletion(); - childToDelete.stateNode = instance; - childToDelete.return = returnFiber; - childToDelete.effectTag = Deletion; - - if (returnFiber.lastEffect !== null) { - returnFiber.lastEffect.nextEffect = childToDelete; - returnFiber.lastEffect = childToDelete; - } else { - returnFiber.firstEffect = returnFiber.lastEffect = childToDelete; - } - } - - function insertNonHydratedInstance(returnFiber, fiber) { - fiber.effectTag |= Placement; - { - switch (returnFiber.tag) { - case HostRoot: - { - var parentContainer = returnFiber.stateNode.containerInfo; - - switch (fiber.tag) { - case HostComponent: - var type = fiber.type; - var props = fiber.pendingProps; - didNotFindHydratableContainerInstance(parentContainer, type, props); - break; - - case HostText: - var text = fiber.pendingProps; - didNotFindHydratableContainerTextInstance(parentContainer, text); - break; - } - - break; - } - - case HostComponent: - { - var parentType = returnFiber.type; - var parentProps = returnFiber.memoizedProps; - var parentInstance = returnFiber.stateNode; - - switch (fiber.tag) { - case HostComponent: - var _type = fiber.type; - var _props = fiber.pendingProps; - didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props); - break; - - case HostText: - var _text = fiber.pendingProps; - didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text); - break; - } - - break; - } - - default: - return; - } - } - } - - function tryHydrate(fiber, nextInstance) { - switch (fiber.tag) { - case HostComponent: - { - var type = fiber.type; - var props = fiber.pendingProps; - var instance = canHydrateInstance(nextInstance, type, props); - - if (instance !== null) { - fiber.stateNode = instance; - return true; - } - - return false; - } - - case HostText: - { - var text = fiber.pendingProps; - var textInstance = canHydrateTextInstance(nextInstance, text); - - if (textInstance !== null) { - fiber.stateNode = textInstance; - return true; - } - - return false; - } - - default: - return false; - } - } - - function tryToClaimNextHydratableInstance(fiber) { - if (!isHydrating) { - return; - } - - var nextInstance = nextHydratableInstance; - - if (!nextInstance) { - insertNonHydratedInstance(hydrationParentFiber, fiber); - isHydrating = false; - hydrationParentFiber = fiber; - return; - } - - var firstAttemptedInstance = nextInstance; - - if (!tryHydrate(fiber, nextInstance)) { - nextInstance = getNextHydratableSibling(firstAttemptedInstance); - - if (!nextInstance || !tryHydrate(fiber, nextInstance)) { - insertNonHydratedInstance(hydrationParentFiber, fiber); - isHydrating = false; - hydrationParentFiber = fiber; - return; - } - - deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance); - } - - hydrationParentFiber = fiber; - nextHydratableInstance = getFirstHydratableChild(nextInstance); - } - - function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) { - if (!supportsHydration) { - invariant(false, "Expected prepareToHydrateHostInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); - } - - var instance = fiber.stateNode; - var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); - fiber.updateQueue = updatePayload; - - if (updatePayload !== null) { - return true; - } - - return false; - } - - function prepareToHydrateHostTextInstance(fiber) { - if (!supportsHydration) { - invariant(false, "Expected prepareToHydrateHostTextInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); - } - - var textInstance = fiber.stateNode; - var textContent = fiber.memoizedProps; - var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber); - { - if (shouldUpdate) { - var returnFiber = hydrationParentFiber; - - if (returnFiber !== null) { - switch (returnFiber.tag) { - case HostRoot: - { - var parentContainer = returnFiber.stateNode.containerInfo; - didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent); - break; - } - - case HostComponent: - { - var parentType = returnFiber.type; - var parentProps = returnFiber.memoizedProps; - var parentInstance = returnFiber.stateNode; - didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent); - break; - } - } - } - } - } - return shouldUpdate; - } - - function popToNextHostParent(fiber) { - var parent = fiber.return; - - while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot) { - parent = parent.return; - } - - hydrationParentFiber = parent; - } - - function popHydrationState(fiber) { - if (!supportsHydration) { - return false; - } - - if (fiber !== hydrationParentFiber) { - return false; - } - - if (!isHydrating) { - popToNextHostParent(fiber); - isHydrating = true; - return false; - } - - var type = fiber.type; - - if (fiber.tag !== HostComponent || type !== "head" && type !== "body" && !shouldSetTextContent(type, fiber.memoizedProps)) { - var nextInstance = nextHydratableInstance; - - while (nextInstance) { - deleteHydratableInstance(fiber, nextInstance); - nextInstance = getNextHydratableSibling(nextInstance); - } - } - - popToNextHostParent(fiber); - nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null; - return true; - } - - function resetHydrationState() { - if (!supportsHydration) { - return; - } - - hydrationParentFiber = null; - nextHydratableInstance = null; - isHydrating = false; - } - - var getCurrentFiberStackAddendum$1 = ReactDebugCurrentFiber.getCurrentFiberStackAddendum; - var didWarnAboutBadClass = void 0; - var didWarnAboutGetDerivedStateOnFunctionalComponent = void 0; - var didWarnAboutStatelessRefs = void 0; - { - didWarnAboutBadClass = {}; - didWarnAboutGetDerivedStateOnFunctionalComponent = {}; - didWarnAboutStatelessRefs = {}; - } - - function reconcileChildren(current, workInProgress, nextChildren) { - reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, workInProgress.expirationTime); - } - - function reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime) { - if (current === null) { - workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime); - } else { - workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderExpirationTime); - } - } - - function updateForwardRef(current, workInProgress) { - var render = workInProgress.type.render; - var nextProps = workInProgress.pendingProps; - var ref = workInProgress.ref; - - if (hasContextChanged()) {} else if (workInProgress.memoizedProps === nextProps) { - var currentRef = current !== null ? current.ref : null; - - if (ref === currentRef) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - } - - var nextChildren = void 0; - { - ReactCurrentOwner.current = workInProgress; - ReactDebugCurrentFiber.setCurrentPhase("render"); - nextChildren = render(nextProps, ref); - ReactDebugCurrentFiber.setCurrentPhase(null); - } - reconcileChildren(current, workInProgress, nextChildren); - memoizeProps(workInProgress, nextProps); - return workInProgress.child; - } - - function updateFragment(current, workInProgress) { - var nextChildren = workInProgress.pendingProps; - - if (hasContextChanged()) {} else if (workInProgress.memoizedProps === nextChildren) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - reconcileChildren(current, workInProgress, nextChildren); - memoizeProps(workInProgress, nextChildren); - return workInProgress.child; - } - - function updateMode(current, workInProgress) { - var nextChildren = workInProgress.pendingProps.children; - - if (hasContextChanged()) {} else if (nextChildren === null || workInProgress.memoizedProps === nextChildren) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - reconcileChildren(current, workInProgress, nextChildren); - memoizeProps(workInProgress, nextChildren); - return workInProgress.child; - } - - function updateProfiler(current, workInProgress) { - var nextProps = workInProgress.pendingProps; - - if (enableProfilerTimer) { - workInProgress.effectTag |= Update; - } - - if (workInProgress.memoizedProps === nextProps) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - var nextChildren = nextProps.children; - reconcileChildren(current, workInProgress, nextChildren); - memoizeProps(workInProgress, nextProps); - return workInProgress.child; - } - - function markRef(current, workInProgress) { - var ref = workInProgress.ref; - - if (current === null && ref !== null || current !== null && current.ref !== ref) { - workInProgress.effectTag |= Ref; - } - } - - function updateFunctionalComponent(current, workInProgress) { - var fn = workInProgress.type; - var nextProps = workInProgress.pendingProps; - - if (hasContextChanged()) {} else { - if (workInProgress.memoizedProps === nextProps) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - } - - var unmaskedContext = getUnmaskedContext(workInProgress); - var context = getMaskedContext(workInProgress, unmaskedContext); - var nextChildren = void 0; - { - ReactCurrentOwner.current = workInProgress; - ReactDebugCurrentFiber.setCurrentPhase("render"); - nextChildren = fn(nextProps, context); - ReactDebugCurrentFiber.setCurrentPhase(null); - } - workInProgress.effectTag |= PerformedWork; - reconcileChildren(current, workInProgress, nextChildren); - memoizeProps(workInProgress, nextProps); - return workInProgress.child; - } - - function updateClassComponent(current, workInProgress, renderExpirationTime) { - var hasContext = pushContextProvider(workInProgress); - var shouldUpdate = void 0; - - if (current === null) { - if (workInProgress.stateNode === null) { - constructClassInstance(workInProgress, workInProgress.pendingProps, renderExpirationTime); - mountClassInstance(workInProgress, renderExpirationTime); - shouldUpdate = true; - } else { - shouldUpdate = resumeMountClassInstance(workInProgress, renderExpirationTime); - } - } else { - shouldUpdate = updateClassInstance(current, workInProgress, renderExpirationTime); - } - - return finishClassComponent(current, workInProgress, shouldUpdate, hasContext, renderExpirationTime); - } - - function finishClassComponent(current, workInProgress, shouldUpdate, hasContext, renderExpirationTime) { - markRef(current, workInProgress); - var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect; - - if (!shouldUpdate && !didCaptureError) { - if (hasContext) { - invalidateContextProvider(workInProgress, false); - } - - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - var ctor = workInProgress.type; - var instance = workInProgress.stateNode; - ReactCurrentOwner.current = workInProgress; - var nextChildren = void 0; - - if (didCaptureError && (!enableGetDerivedStateFromCatch || typeof ctor.getDerivedStateFromCatch !== "function")) { - nextChildren = null; - - if (enableProfilerTimer) { - stopBaseRenderTimerIfRunning(); - } - } else { - { - ReactDebugCurrentFiber.setCurrentPhase("render"); - nextChildren = instance.render(); - - if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { - instance.render(); - } - - ReactDebugCurrentFiber.setCurrentPhase(null); - } - } - - workInProgress.effectTag |= PerformedWork; - - if (didCaptureError) { - reconcileChildrenAtExpirationTime(current, workInProgress, null, renderExpirationTime); - workInProgress.child = null; - } - - reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime); - memoizeState(workInProgress, instance.state); - memoizeProps(workInProgress, instance.props); - - if (hasContext) { - invalidateContextProvider(workInProgress, true); - } - - return workInProgress.child; - } - - function pushHostRootContext(workInProgress) { - var root = workInProgress.stateNode; - - if (root.pendingContext) { - pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context); - } else if (root.context) { - pushTopLevelContextObject(workInProgress, root.context, false); - } - - pushHostContainer(workInProgress, root.containerInfo); - } - - function updateHostRoot(current, workInProgress, renderExpirationTime) { - pushHostRootContext(workInProgress); - var updateQueue = workInProgress.updateQueue; - - if (updateQueue !== null) { - var nextProps = workInProgress.pendingProps; - var prevState = workInProgress.memoizedState; - var prevChildren = prevState !== null ? prevState.element : null; - processUpdateQueue(workInProgress, updateQueue, nextProps, null, renderExpirationTime); - var nextState = workInProgress.memoizedState; - var nextChildren = nextState.element; - - if (nextChildren === prevChildren) { - resetHydrationState(); - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - var root = workInProgress.stateNode; - - if ((current === null || current.child === null) && root.hydrate && enterHydrationState(workInProgress)) { - workInProgress.effectTag |= Placement; - workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime); - } else { - resetHydrationState(); - reconcileChildren(current, workInProgress, nextChildren); - } - - return workInProgress.child; - } - - resetHydrationState(); - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - function updateHostComponent(current, workInProgress, renderExpirationTime) { - pushHostContext(workInProgress); - - if (current === null) { - tryToClaimNextHydratableInstance(workInProgress); - } - - var type = workInProgress.type; - var memoizedProps = workInProgress.memoizedProps; - var nextProps = workInProgress.pendingProps; - var prevProps = current !== null ? current.memoizedProps : null; - - if (hasContextChanged()) {} else if (memoizedProps === nextProps) { - var isHidden = workInProgress.mode & AsyncMode && shouldDeprioritizeSubtree(type, nextProps); - - if (isHidden) { - workInProgress.expirationTime = Never; - } - - if (!isHidden || renderExpirationTime !== Never) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - } - - var nextChildren = nextProps.children; - var isDirectTextChild = shouldSetTextContent(type, nextProps); - - if (isDirectTextChild) { - nextChildren = null; - } else if (prevProps && shouldSetTextContent(type, prevProps)) { - workInProgress.effectTag |= ContentReset; - } - - markRef(current, workInProgress); - - if (renderExpirationTime !== Never && workInProgress.mode & AsyncMode && shouldDeprioritizeSubtree(type, nextProps)) { - workInProgress.expirationTime = Never; - workInProgress.memoizedProps = nextProps; - return null; - } - - reconcileChildren(current, workInProgress, nextChildren); - memoizeProps(workInProgress, nextProps); - return workInProgress.child; - } - - function updateHostText(current, workInProgress) { - if (current === null) { - tryToClaimNextHydratableInstance(workInProgress); - } - - var nextProps = workInProgress.pendingProps; - memoizeProps(workInProgress, nextProps); - return null; - } - - function mountIndeterminateComponent(current, workInProgress, renderExpirationTime) { - invariant(current === null, "An indeterminate component should never have mounted. This error is " + "likely caused by a bug in React. Please file an issue."); - var fn = workInProgress.type; - var props = workInProgress.pendingProps; - var unmaskedContext = getUnmaskedContext(workInProgress); - var context = getMaskedContext(workInProgress, unmaskedContext); - var value = void 0; - { - if (fn.prototype && typeof fn.prototype.render === "function") { - var componentName = getComponentName(workInProgress) || "Unknown"; - - if (!didWarnAboutBadClass[componentName]) { - warning(false, "The <%s /> component appears to have a render method, but doesn't extend React.Component. " + "This is likely to cause errors. Change %s to extend React.Component instead.", componentName, componentName); - didWarnAboutBadClass[componentName] = true; - } - } - - if (workInProgress.mode & StrictMode) { - ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null); - } - - ReactCurrentOwner.current = workInProgress; - value = fn(props, context); - } - workInProgress.effectTag |= PerformedWork; - - if (typeof value === "object" && value !== null && typeof value.render === "function" && value.$$typeof === undefined) { - var Component = workInProgress.type; - workInProgress.tag = ClassComponent; - workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null; - var getDerivedStateFromProps = Component.getDerivedStateFromProps; - - if (typeof getDerivedStateFromProps === "function") { - applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, props); - } - - var hasContext = pushContextProvider(workInProgress); - adoptClassInstance(workInProgress, value); - mountClassInstance(workInProgress, renderExpirationTime); - return finishClassComponent(current, workInProgress, true, hasContext, renderExpirationTime); - } else { - workInProgress.tag = FunctionalComponent; - { - var _Component = workInProgress.type; - - if (_Component) { - !!_Component.childContextTypes ? warning(false, "%s(...): childContextTypes cannot be defined on a functional component.", _Component.displayName || _Component.name || "Component") : void 0; - } - - if (workInProgress.ref !== null) { - var info = ""; - var ownerName = ReactDebugCurrentFiber.getCurrentFiberOwnerName(); - - if (ownerName) { - info += "\n\nCheck the render method of `" + ownerName + "`."; - } - - var warningKey = ownerName || workInProgress._debugID || ""; - var debugSource = workInProgress._debugSource; - - if (debugSource) { - warningKey = debugSource.fileName + ":" + debugSource.lineNumber; - } - - if (!didWarnAboutStatelessRefs[warningKey]) { - didWarnAboutStatelessRefs[warningKey] = true; - warning(false, "Stateless function components cannot be given refs. " + "Attempts to access this ref will fail.%s%s", info, ReactDebugCurrentFiber.getCurrentFiberStackAddendum()); - } - } - - if (typeof fn.getDerivedStateFromProps === "function") { - var _componentName = getComponentName(workInProgress) || "Unknown"; - - if (!didWarnAboutGetDerivedStateOnFunctionalComponent[_componentName]) { - warning(false, "%s: Stateless functional components do not support getDerivedStateFromProps.", _componentName); - didWarnAboutGetDerivedStateOnFunctionalComponent[_componentName] = true; - } - } - } - reconcileChildren(current, workInProgress, value); - memoizeProps(workInProgress, props); - return workInProgress.child; - } - } - - function updateTimeoutComponent(current, workInProgress, renderExpirationTime) { - if (enableSuspense) { - var nextProps = workInProgress.pendingProps; - var prevProps = workInProgress.memoizedProps; - var prevDidTimeout = workInProgress.memoizedState; - var alreadyCaptured = (workInProgress.effectTag & DidCapture) === NoEffect; - var nextDidTimeout = !alreadyCaptured; - - if (hasContextChanged()) {} else if (nextProps === prevProps && nextDidTimeout === prevDidTimeout) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - var render = nextProps.children; - var nextChildren = render(nextDidTimeout); - workInProgress.memoizedProps = nextProps; - workInProgress.memoizedState = nextDidTimeout; - reconcileChildren(current, workInProgress, nextChildren); - return workInProgress.child; - } else { - return null; - } - } - - function updatePortalComponent(current, workInProgress, renderExpirationTime) { - pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); - var nextChildren = workInProgress.pendingProps; - - if (hasContextChanged()) {} else if (workInProgress.memoizedProps === nextChildren) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - if (current === null) { - workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime); - memoizeProps(workInProgress, nextChildren); - } else { - reconcileChildren(current, workInProgress, nextChildren); - memoizeProps(workInProgress, nextChildren); - } - - return workInProgress.child; - } - - function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) { - var fiber = workInProgress.child; - - if (fiber !== null) { - fiber.return = workInProgress; - } - - while (fiber !== null) { - var nextFiber = void 0; - - switch (fiber.tag) { - case ContextConsumer: - var observedBits = fiber.stateNode | 0; - - if (fiber.type === context && (observedBits & changedBits) !== 0) { - var node = fiber; - - while (node !== null) { - var alternate = node.alternate; - - if (node.expirationTime === NoWork || node.expirationTime > renderExpirationTime) { - node.expirationTime = renderExpirationTime; - - if (alternate !== null && (alternate.expirationTime === NoWork || alternate.expirationTime > renderExpirationTime)) { - alternate.expirationTime = renderExpirationTime; - } - } else if (alternate !== null && (alternate.expirationTime === NoWork || alternate.expirationTime > renderExpirationTime)) { - alternate.expirationTime = renderExpirationTime; - } else { - break; - } - - node = node.return; - } - - nextFiber = null; - } else { - nextFiber = fiber.child; - } - - break; - - case ContextProvider: - nextFiber = fiber.type === workInProgress.type ? null : fiber.child; - break; - - default: - nextFiber = fiber.child; - break; - } - - if (nextFiber !== null) { - nextFiber.return = fiber; - } else { - nextFiber = fiber; - - while (nextFiber !== null) { - if (nextFiber === workInProgress) { - nextFiber = null; - break; - } - - var sibling = nextFiber.sibling; - - if (sibling !== null) { - sibling.return = nextFiber.return; - nextFiber = sibling; - break; - } - - nextFiber = nextFiber.return; - } - } - - fiber = nextFiber; - } - } - - function updateContextProvider(current, workInProgress, renderExpirationTime) { - var providerType = workInProgress.type; - var context = providerType._context; - var newProps = workInProgress.pendingProps; - var oldProps = workInProgress.memoizedProps; - var canBailOnProps = true; - - if (hasContextChanged()) { - canBailOnProps = false; - } else if (oldProps === newProps) { - workInProgress.stateNode = 0; - pushProvider(workInProgress); - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - var newValue = newProps.value; - workInProgress.memoizedProps = newProps; - { - var providerPropTypes = workInProgress.type.propTypes; - - if (providerPropTypes) { - checkPropTypes(providerPropTypes, newProps, "prop", "Context.Provider", getCurrentFiberStackAddendum$1); - } - } - var changedBits = void 0; - - if (oldProps === null) { - changedBits = MAX_SIGNED_31_BIT_INT; - } else { - if (oldProps.value === newProps.value) { - if (oldProps.children === newProps.children && canBailOnProps) { - workInProgress.stateNode = 0; - pushProvider(workInProgress); - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - changedBits = 0; - } else { - var oldValue = oldProps.value; - - if (oldValue === newValue && (oldValue !== 0 || 1 / oldValue === 1 / newValue) || oldValue !== oldValue && newValue !== newValue) { - if (oldProps.children === newProps.children && canBailOnProps) { - workInProgress.stateNode = 0; - pushProvider(workInProgress); - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - changedBits = 0; - } else { - changedBits = typeof context._calculateChangedBits === "function" ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT; - { - !((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits) ? warning(false, "calculateChangedBits: Expected the return value to be a " + "31-bit integer. Instead received: %s", changedBits) : void 0; - } - changedBits |= 0; - - if (changedBits === 0) { - if (oldProps.children === newProps.children && canBailOnProps) { - workInProgress.stateNode = 0; - pushProvider(workInProgress); - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - } else { - propagateContextChange(workInProgress, context, changedBits, renderExpirationTime); - } - } - } - } - - workInProgress.stateNode = changedBits; - pushProvider(workInProgress); - var newChildren = newProps.children; - reconcileChildren(current, workInProgress, newChildren); - return workInProgress.child; - } - - function updateContextConsumer(current, workInProgress, renderExpirationTime) { - var context = workInProgress.type; - var newProps = workInProgress.pendingProps; - var oldProps = workInProgress.memoizedProps; - var newValue = getContextCurrentValue(context); - var changedBits = getContextChangedBits(context); - - if (hasContextChanged()) {} else if (changedBits === 0 && oldProps === newProps) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - workInProgress.memoizedProps = newProps; - var observedBits = newProps.unstable_observedBits; - - if (observedBits === undefined || observedBits === null) { - observedBits = MAX_SIGNED_31_BIT_INT; - } - - workInProgress.stateNode = observedBits; - - if ((changedBits & observedBits) !== 0) { - propagateContextChange(workInProgress, context, changedBits, renderExpirationTime); - } else if (oldProps === newProps) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - var render = newProps.children; - { - !(typeof render === "function") ? warning(false, "A context consumer was rendered with multiple children, or a child " + "that isn't a function. A context consumer expects a single child " + "that is a function. If you did pass a function, make sure there " + "is no trailing or leading whitespace around it.") : void 0; - } - var newChildren = void 0; - { - ReactCurrentOwner.current = workInProgress; - ReactDebugCurrentFiber.setCurrentPhase("render"); - newChildren = render(newValue); - ReactDebugCurrentFiber.setCurrentPhase(null); - } - workInProgress.effectTag |= PerformedWork; - reconcileChildren(current, workInProgress, newChildren); - return workInProgress.child; - } - - function bailoutOnAlreadyFinishedWork(current, workInProgress) { - cancelWorkTimer(workInProgress); - - if (enableProfilerTimer) { - stopBaseRenderTimerIfRunning(); - } - - cloneChildFibers(current, workInProgress); - return workInProgress.child; - } - - function bailoutOnLowPriority(current, workInProgress) { - cancelWorkTimer(workInProgress); - - if (enableProfilerTimer) { - stopBaseRenderTimerIfRunning(); - } - - switch (workInProgress.tag) { - case HostRoot: - pushHostRootContext(workInProgress); - break; - - case ClassComponent: - pushContextProvider(workInProgress); - break; - - case HostPortal: - pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); - break; - - case ContextProvider: - pushProvider(workInProgress); - break; - } - - return null; - } - - function memoizeProps(workInProgress, nextProps) { - workInProgress.memoizedProps = nextProps; - } - - function memoizeState(workInProgress, nextState) { - workInProgress.memoizedState = nextState; - } - - function beginWork(current, workInProgress, renderExpirationTime) { - if (enableProfilerTimer) { - if (workInProgress.mode & ProfileMode) { - markActualRenderTimeStarted(workInProgress); - } - } - - if (workInProgress.expirationTime === NoWork || workInProgress.expirationTime > renderExpirationTime) { - return bailoutOnLowPriority(current, workInProgress); - } - - switch (workInProgress.tag) { - case IndeterminateComponent: - return mountIndeterminateComponent(current, workInProgress, renderExpirationTime); - - case FunctionalComponent: - return updateFunctionalComponent(current, workInProgress); - - case ClassComponent: - return updateClassComponent(current, workInProgress, renderExpirationTime); - - case HostRoot: - return updateHostRoot(current, workInProgress, renderExpirationTime); - - case HostComponent: - return updateHostComponent(current, workInProgress, renderExpirationTime); - - case HostText: - return updateHostText(current, workInProgress); - - case TimeoutComponent: - return updateTimeoutComponent(current, workInProgress, renderExpirationTime); - - case HostPortal: - return updatePortalComponent(current, workInProgress, renderExpirationTime); - - case ForwardRef: - return updateForwardRef(current, workInProgress); - - case Fragment: - return updateFragment(current, workInProgress); - - case Mode: - return updateMode(current, workInProgress); - - case Profiler: - return updateProfiler(current, workInProgress); - - case ContextProvider: - return updateContextProvider(current, workInProgress, renderExpirationTime); - - case ContextConsumer: - return updateContextConsumer(current, workInProgress, renderExpirationTime); - - default: - invariant(false, "Unknown unit of work tag. This error is likely caused by a bug in " + "React. Please file an issue."); - } - } - - function markUpdate(workInProgress) { - workInProgress.effectTag |= Update; - } - - function markRef$1(workInProgress) { - workInProgress.effectTag |= Ref; - } - - function appendAllChildren(parent, workInProgress) { - var node = workInProgress.child; - - while (node !== null) { - if (node.tag === HostComponent || node.tag === HostText) { - appendInitialChild(parent, node.stateNode); - } else if (node.tag === HostPortal) {} else if (node.child !== null) { - node.child.return = node; - node = node.child; - continue; - } - - if (node === workInProgress) { - return; - } - - while (node.sibling === null) { - if (node.return === null || node.return === workInProgress) { - return; - } - - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - } - - var updateHostContainer = void 0; - var updateHostComponent$1 = void 0; - var updateHostText$1 = void 0; - - if (supportsMutation) { - updateHostContainer = function updateHostContainer(workInProgress) {}; - - updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext) { - workInProgress.updateQueue = updatePayload; - - if (updatePayload) { - markUpdate(workInProgress); - } - }; - - updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { - if (oldText !== newText) { - markUpdate(workInProgress); - } - }; - } else if (supportsPersistence) { - var appendAllChildrenToContainer = function appendAllChildrenToContainer(containerChildSet, workInProgress) { - var node = workInProgress.child; - - while (node !== null) { - if (node.tag === HostComponent || node.tag === HostText) { - appendChildToContainerChildSet(containerChildSet, node.stateNode); - } else if (node.tag === HostPortal) {} else if (node.child !== null) { - node.child.return = node; - node = node.child; - continue; - } - - if (node === workInProgress) { - return; - } - - while (node.sibling === null) { - if (node.return === null || node.return === workInProgress) { - return; - } - - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - }; - - updateHostContainer = function updateHostContainer(workInProgress) { - var portalOrRoot = workInProgress.stateNode; - var childrenUnchanged = workInProgress.firstEffect === null; - - if (childrenUnchanged) {} else { - var container = portalOrRoot.containerInfo; - var newChildSet = createContainerChildSet(container); - appendAllChildrenToContainer(newChildSet, workInProgress); - portalOrRoot.pendingChildren = newChildSet; - markUpdate(workInProgress); - finalizeContainerChildren(container, newChildSet); - } - }; - - updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext) { - var childrenUnchanged = workInProgress.firstEffect === null; - var currentInstance = current.stateNode; - - if (childrenUnchanged && updatePayload === null) { - workInProgress.stateNode = currentInstance; - } else { - var recyclableInstance = workInProgress.stateNode; - var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged, recyclableInstance); - - if (finalizeInitialChildren(newInstance, type, newProps, rootContainerInstance, currentHostContext)) { - markUpdate(workInProgress); - } - - workInProgress.stateNode = newInstance; - - if (childrenUnchanged) { - markUpdate(workInProgress); - } else { - appendAllChildren(newInstance, workInProgress); - } - } - }; - - updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { - if (oldText !== newText) { - var rootContainerInstance = getRootHostContainer(); - var currentHostContext = getHostContext(); - workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress); - markUpdate(workInProgress); - } - }; - } else { - updateHostContainer = function updateHostContainer(workInProgress) {}; - - updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext) {}; - - updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) {}; - } - - function completeWork(current, workInProgress, renderExpirationTime) { - var newProps = workInProgress.pendingProps; - - if (enableProfilerTimer) { - if (workInProgress.mode & ProfileMode) { - recordElapsedActualRenderTime(workInProgress); - } - } - - switch (workInProgress.tag) { - case FunctionalComponent: - return null; - - case ClassComponent: - { - popContextProvider(workInProgress); - return null; - } - - case HostRoot: - { - popHostContainer(workInProgress); - popTopLevelContextObject(workInProgress); - var fiberRoot = workInProgress.stateNode; - - if (fiberRoot.pendingContext) { - fiberRoot.context = fiberRoot.pendingContext; - fiberRoot.pendingContext = null; - } - - if (current === null || current.child === null) { - popHydrationState(workInProgress); - workInProgress.effectTag &= ~Placement; - } - - updateHostContainer(workInProgress); - return null; - } - - case HostComponent: - { - popHostContext(workInProgress); - var rootContainerInstance = getRootHostContainer(); - var type = workInProgress.type; - - if (current !== null && workInProgress.stateNode != null) { - var oldProps = current.memoizedProps; - var instance = workInProgress.stateNode; - var currentHostContext = getHostContext(); - var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); - updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext); - - if (current.ref !== workInProgress.ref) { - markRef$1(workInProgress); - } - } else { - if (!newProps) { - invariant(workInProgress.stateNode !== null, "We must have new props for new mounts. This error is likely " + "caused by a bug in React. Please file an issue."); - return null; - } - - var _currentHostContext = getHostContext(); - - var wasHydrated = popHydrationState(workInProgress); - - if (wasHydrated) { - if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, _currentHostContext)) { - markUpdate(workInProgress); - } - } else { - var _instance = createInstance(type, newProps, rootContainerInstance, _currentHostContext, workInProgress); - - appendAllChildren(_instance, workInProgress); - - if (finalizeInitialChildren(_instance, type, newProps, rootContainerInstance, _currentHostContext)) { - markUpdate(workInProgress); - } - - workInProgress.stateNode = _instance; - } - - if (workInProgress.ref !== null) { - markRef$1(workInProgress); - } - } - - return null; - } - - case HostText: - { - var newText = newProps; - - if (current && workInProgress.stateNode != null) { - var oldText = current.memoizedProps; - updateHostText$1(current, workInProgress, oldText, newText); - } else { - if (typeof newText !== "string") { - invariant(workInProgress.stateNode !== null, "We must have new props for new mounts. This error is likely " + "caused by a bug in React. Please file an issue."); - return null; - } - - var _rootContainerInstance = getRootHostContainer(); - - var _currentHostContext2 = getHostContext(); - - var _wasHydrated = popHydrationState(workInProgress); - - if (_wasHydrated) { - if (prepareToHydrateHostTextInstance(workInProgress)) { - markUpdate(workInProgress); - } - } else { - workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext2, workInProgress); - } - } - - return null; - } - - case ForwardRef: - return null; - - case TimeoutComponent: - return null; - - case Fragment: - return null; - - case Mode: - return null; - - case Profiler: - return null; - - case HostPortal: - popHostContainer(workInProgress); - updateHostContainer(workInProgress); - return null; - - case ContextProvider: - popProvider(workInProgress); - return null; - - case ContextConsumer: - return null; - - case IndeterminateComponent: - invariant(false, "An indeterminate component should have become determinate before " + "completing. This error is likely caused by a bug in React. Please " + "file an issue."); - - default: - invariant(false, "Unknown unit of work tag. This error is likely caused by a bug in " + "React. Please file an issue."); - } - } - - function showErrorDialog(capturedError) { - var componentStack = capturedError.componentStack, - error = capturedError.error; - var errorToHandle = void 0; - - if (error instanceof Error) { - var message = error.message, - name = error.name; - var summary = message ? name + ": " + message : name; - errorToHandle = error; - - try { - errorToHandle.message = summary + "\n\nThis error is located at:" + componentStack; - } catch (e) {} - } else if (typeof error === "string") { - errorToHandle = new Error(error + "\n\nThis error is located at:" + componentStack); - } else { - errorToHandle = new Error("Unspecified error at:" + componentStack); - } - - ExceptionsManager.handleException(errorToHandle, false); - return false; - } - - function logCapturedError(capturedError) { - var logError = showErrorDialog(capturedError); - - if (logError === false) { - return; - } - - var error = capturedError.error; - var suppressLogging = error && error.suppressReactErrorLogging; - - if (suppressLogging) { - return; - } - - { - var componentName = capturedError.componentName, - componentStack = capturedError.componentStack, - errorBoundaryName = capturedError.errorBoundaryName, - errorBoundaryFound = capturedError.errorBoundaryFound, - willRetry = capturedError.willRetry; - var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : "The above error occurred in one of your React components:"; - var errorBoundaryMessage = void 0; - - if (errorBoundaryFound && errorBoundaryName) { - if (willRetry) { - errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + "."); - } else { - errorBoundaryMessage = "This error was initially handled by the error boundary " + errorBoundaryName + ".\n" + "Recreating the tree from scratch failed so React will unmount the tree."; - } - } else { - errorBoundaryMessage = "Consider adding an error boundary to your tree to customize error handling behavior.\n" + "Visit https://fb.me/react-error-boundaries to learn more about error boundaries."; - } - - var combinedMessage = "" + componentNameMessage + componentStack + "\n\n" + ("" + errorBoundaryMessage); - console.error(combinedMessage); - } - } - - var invokeGuardedCallback$3 = ReactErrorUtils.invokeGuardedCallback; - var hasCaughtError$1 = ReactErrorUtils.hasCaughtError; - var clearCaughtError$1 = ReactErrorUtils.clearCaughtError; - var didWarnAboutUndefinedSnapshotBeforeUpdate = null; - { - didWarnAboutUndefinedSnapshotBeforeUpdate = new Set(); - } - - function logError(boundary, errorInfo) { - var source = errorInfo.source; - var stack = errorInfo.stack; - - if (stack === null && source !== null) { - stack = getStackAddendumByWorkInProgressFiber(source); - } - - var capturedError = { - componentName: source !== null ? getComponentName(source) : null, - componentStack: stack !== null ? stack : "", - error: errorInfo.value, - errorBoundary: null, - errorBoundaryName: null, - errorBoundaryFound: false, - willRetry: false - }; - - if (boundary !== null && boundary.tag === ClassComponent) { - capturedError.errorBoundary = boundary.stateNode; - capturedError.errorBoundaryName = getComponentName(boundary); - capturedError.errorBoundaryFound = true; - capturedError.willRetry = true; - } - - try { - logCapturedError(capturedError); - } catch (e) { - var suppressLogging = e && e.suppressReactErrorLogging; - - if (!suppressLogging) { - console.error(e); - } - } - } - - var callComponentWillUnmountWithTimer = function callComponentWillUnmountWithTimer(current, instance) { - startPhaseTimer(current, "componentWillUnmount"); - instance.props = current.memoizedProps; - instance.state = current.memoizedState; - instance.componentWillUnmount(); - stopPhaseTimer(); - }; - - function safelyCallComponentWillUnmount(current, instance) { - { - invokeGuardedCallback$3(null, callComponentWillUnmountWithTimer, null, current, instance); - - if (hasCaughtError$1()) { - var unmountError = clearCaughtError$1(); - captureCommitPhaseError(current, unmountError); - } - } - } - - function safelyDetachRef(current) { - var ref = current.ref; - - if (ref !== null) { - if (typeof ref === "function") { - { - invokeGuardedCallback$3(null, ref, null, null); - - if (hasCaughtError$1()) { - var refError = clearCaughtError$1(); - captureCommitPhaseError(current, refError); - } - } - } else { - ref.current = null; - } - } - } - - function commitBeforeMutationLifeCycles(current, finishedWork) { - switch (finishedWork.tag) { - case ClassComponent: - { - if (finishedWork.effectTag & Snapshot) { - if (current !== null) { - var prevProps = current.memoizedProps; - var prevState = current.memoizedState; - startPhaseTimer(finishedWork, "getSnapshotBeforeUpdate"); - var instance = finishedWork.stateNode; - instance.props = finishedWork.memoizedProps; - instance.state = finishedWork.memoizedState; - var snapshot = instance.getSnapshotBeforeUpdate(prevProps, prevState); - { - var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate; - - if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) { - didWarnSet.add(finishedWork.type); - warning(false, "%s.getSnapshotBeforeUpdate(): A snapshot value (or null) " + "must be returned. You have returned undefined.", getComponentName(finishedWork)); - } - } - instance.__reactInternalSnapshotBeforeUpdate = snapshot; - stopPhaseTimer(); - } - } - - return; - } - - case HostRoot: - case HostComponent: - case HostText: - case HostPortal: - return; - - default: - { - invariant(false, "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue."); - } - } - } - - function commitLifeCycles(finishedRoot, current, finishedWork, currentTime, committedExpirationTime) { - switch (finishedWork.tag) { - case ClassComponent: - { - var instance = finishedWork.stateNode; - - if (finishedWork.effectTag & Update) { - if (current === null) { - startPhaseTimer(finishedWork, "componentDidMount"); - instance.props = finishedWork.memoizedProps; - instance.state = finishedWork.memoizedState; - instance.componentDidMount(); - stopPhaseTimer(); - } else { - var prevProps = current.memoizedProps; - var prevState = current.memoizedState; - startPhaseTimer(finishedWork, "componentDidUpdate"); - instance.props = finishedWork.memoizedProps; - instance.state = finishedWork.memoizedState; - instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate); - stopPhaseTimer(); - } - } - - var updateQueue = finishedWork.updateQueue; - - if (updateQueue !== null) { - instance.props = finishedWork.memoizedProps; - instance.state = finishedWork.memoizedState; - commitUpdateQueue(finishedWork, updateQueue, instance, committedExpirationTime); - } - - return; - } - - case HostRoot: - { - var _updateQueue = finishedWork.updateQueue; - - if (_updateQueue !== null) { - var _instance = null; - - if (finishedWork.child !== null) { - switch (finishedWork.child.tag) { - case HostComponent: - _instance = getPublicInstance(finishedWork.child.stateNode); - break; - - case ClassComponent: - _instance = finishedWork.child.stateNode; - break; - } - } - - commitUpdateQueue(finishedWork, _updateQueue, _instance, committedExpirationTime); - } - - return; - } - - case HostComponent: - { - var _instance2 = finishedWork.stateNode; - - if (current === null && finishedWork.effectTag & Update) { - var type = finishedWork.type; - var props = finishedWork.memoizedProps; - } - - return; - } - - case HostText: - { - return; - } - - case HostPortal: - { - return; - } - - case Profiler: - { - return; - } - - case TimeoutComponent: - { - return; - } - - default: - { - invariant(false, "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue."); - } - } - } - - function commitAttachRef(finishedWork) { - var ref = finishedWork.ref; - - if (ref !== null) { - var instance = finishedWork.stateNode; - var instanceToUse = void 0; - - switch (finishedWork.tag) { - case HostComponent: - instanceToUse = getPublicInstance(instance); - break; - - default: - instanceToUse = instance; - } - - if (typeof ref === "function") { - ref(instanceToUse); - } else { - { - if (!ref.hasOwnProperty("current")) { - warning(false, "Unexpected ref object provided for %s. " + "Use either a ref-setter function or React.createRef().%s", getComponentName(finishedWork), getStackAddendumByWorkInProgressFiber(finishedWork)); - } - } - ref.current = instanceToUse; - } - } - } - - function commitDetachRef(current) { - var currentRef = current.ref; - - if (currentRef !== null) { - if (typeof currentRef === "function") { - currentRef(null); - } else { - currentRef.current = null; - } - } - } - - function commitUnmount(current) { - if (typeof onCommitUnmount === "function") { - onCommitUnmount(current); - } - - switch (current.tag) { - case ClassComponent: - { - safelyDetachRef(current); - var instance = current.stateNode; - - if (typeof instance.componentWillUnmount === "function") { - safelyCallComponentWillUnmount(current, instance); - } - - return; - } - - case HostComponent: - { - safelyDetachRef(current); - return; - } - - case HostPortal: - { - if (supportsMutation) { - unmountHostComponents(current); - } else if (supportsPersistence) { - emptyPortalContainer(current); - } - - return; - } - } - } - - function commitNestedUnmounts(root) { - var node = root; - - while (true) { - commitUnmount(node); - - if (node.child !== null && (!supportsMutation || node.tag !== HostPortal)) { - node.child.return = node; - node = node.child; - continue; - } - - if (node === root) { - return; - } - - while (node.sibling === null) { - if (node.return === null || node.return === root) { - return; - } - - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - } - - function detachFiber(current) { - current.return = null; - current.child = null; - - if (current.alternate) { - current.alternate.child = null; - current.alternate.return = null; - } - } - - function emptyPortalContainer(current) { - if (!supportsPersistence) { - return; - } - - var portal = current.stateNode; - var containerInfo = portal.containerInfo; - var emptyChildSet = createContainerChildSet(containerInfo); - replaceContainerChildren(containerInfo, emptyChildSet); - } - - function commitContainer(finishedWork) { - if (!supportsPersistence) { - return; - } - - switch (finishedWork.tag) { - case ClassComponent: - { - return; - } - - case HostComponent: - { - return; - } - - case HostText: - { - return; - } - - case HostRoot: - case HostPortal: - { - var portalOrRoot = finishedWork.stateNode; - var containerInfo = portalOrRoot.containerInfo, - _pendingChildren = portalOrRoot.pendingChildren; - replaceContainerChildren(containerInfo, _pendingChildren); - return; - } - - default: - { - invariant(false, "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue."); - } - } - } - - function getHostParentFiber(fiber) { - var parent = fiber.return; - - while (parent !== null) { - if (isHostParent(parent)) { - return parent; - } - - parent = parent.return; - } - - invariant(false, "Expected to find a host parent. This error is likely caused by a bug " + "in React. Please file an issue."); - } - - function isHostParent(fiber) { - return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal; - } - - function getHostSibling(fiber) { - var node = fiber; - - siblings: while (true) { - while (node.sibling === null) { - if (node.return === null || isHostParent(node.return)) { - return null; - } - - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - - while (node.tag !== HostComponent && node.tag !== HostText) { - if (node.effectTag & Placement) { - continue siblings; - } - - if (node.child === null || node.tag === HostPortal) { - continue siblings; - } else { - node.child.return = node; - node = node.child; - } - } - - if (!(node.effectTag & Placement)) { - return node.stateNode; - } - } - } - - function commitPlacement(finishedWork) { - if (!supportsMutation) { - return; - } - - var parentFiber = getHostParentFiber(finishedWork); - var parent = void 0; - var isContainer = void 0; - - switch (parentFiber.tag) { - case HostComponent: - parent = parentFiber.stateNode; - isContainer = false; - break; - - case HostRoot: - parent = parentFiber.stateNode.containerInfo; - isContainer = true; - break; - - case HostPortal: - parent = parentFiber.stateNode.containerInfo; - isContainer = true; - break; - - default: - invariant(false, "Invalid host parent fiber. This error is likely caused by a bug " + "in React. Please file an issue."); - } - - if (parentFiber.effectTag & ContentReset) { - parentFiber.effectTag &= ~ContentReset; - } - - var before = getHostSibling(finishedWork); - var node = finishedWork; - - while (true) { - if (node.tag === HostComponent || node.tag === HostText) { - if (before) { - if (isContainer) { - insertInContainerBefore(parent, node.stateNode, before); - } else { - insertBefore(parent, node.stateNode, before); - } - } else { - if (isContainer) { - appendChildToContainer(parent, node.stateNode); - } else { - appendChild(parent, node.stateNode); - } - } - } else if (node.tag === HostPortal) {} else if (node.child !== null) { - node.child.return = node; - node = node.child; - continue; - } - - if (node === finishedWork) { - return; - } - - while (node.sibling === null) { - if (node.return === null || node.return === finishedWork) { - return; - } - - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - } - - function unmountHostComponents(current) { - var node = current; - var currentParentIsValid = false; - var currentParent = void 0; - var currentParentIsContainer = void 0; - - while (true) { - if (!currentParentIsValid) { - var parent = node.return; - - findParent: while (true) { - invariant(parent !== null, "Expected to find a host parent. This error is likely caused by " + "a bug in React. Please file an issue."); - - switch (parent.tag) { - case HostComponent: - currentParent = parent.stateNode; - currentParentIsContainer = false; - break findParent; - - case HostRoot: - currentParent = parent.stateNode.containerInfo; - currentParentIsContainer = true; - break findParent; - - case HostPortal: - currentParent = parent.stateNode.containerInfo; - currentParentIsContainer = true; - break findParent; - } - - parent = parent.return; - } - - currentParentIsValid = true; - } - - if (node.tag === HostComponent || node.tag === HostText) { - commitNestedUnmounts(node); - - if (currentParentIsContainer) { - removeChildFromContainer(currentParent, node.stateNode); - } else { - removeChild(currentParent, node.stateNode); - } - } else if (node.tag === HostPortal) { - currentParent = node.stateNode.containerInfo; - - if (node.child !== null) { - node.child.return = node; - node = node.child; - continue; - } - } else { - commitUnmount(node); - - if (node.child !== null) { - node.child.return = node; - node = node.child; - continue; - } - } - - if (node === current) { - return; - } - - while (node.sibling === null) { - if (node.return === null || node.return === current) { - return; - } - - node = node.return; - - if (node.tag === HostPortal) { - currentParentIsValid = false; - } - } - - node.sibling.return = node.return; - node = node.sibling; - } - } - - function commitDeletion(current) { - if (supportsMutation) { - unmountHostComponents(current); - } else { - commitNestedUnmounts(current); - } - - detachFiber(current); - } - - function commitWork(current, finishedWork) { - if (!supportsMutation) { - commitContainer(finishedWork); - return; - } - - switch (finishedWork.tag) { - case ClassComponent: - { - return; - } - - case HostComponent: - { - var instance = finishedWork.stateNode; - - if (instance != null) { - var newProps = finishedWork.memoizedProps; - var oldProps = current !== null ? current.memoizedProps : newProps; - var type = finishedWork.type; - var updatePayload = finishedWork.updateQueue; - finishedWork.updateQueue = null; - - if (updatePayload !== null) { - commitUpdate(instance, updatePayload, type, oldProps, newProps, finishedWork); - } - } - - return; - } - - case HostText: - { - invariant(finishedWork.stateNode !== null, "This should have a text node initialized. This error is likely " + "caused by a bug in React. Please file an issue."); - var textInstance = finishedWork.stateNode; - var newText = finishedWork.memoizedProps; - var oldText = current !== null ? current.memoizedProps : newText; - commitTextUpdate(textInstance, oldText, newText); - return; - } - - case HostRoot: - { - return; - } - - case Profiler: - { - if (enableProfilerTimer) { - var onRender = finishedWork.memoizedProps.onRender; - onRender(finishedWork.memoizedProps.id, current === null ? "mount" : "update", finishedWork.actualDuration, finishedWork.treeBaseTime, finishedWork.actualStartTime, getCommitTime()); - } - - return; - } - - case TimeoutComponent: - { - return; - } - - default: - { - invariant(false, "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue."); - } - } - } - - function commitResetTextContent(current) { - if (!supportsMutation) { - return; - } - - resetTextContent(current.stateNode); - } - - function createRootErrorUpdate(fiber, errorInfo, expirationTime) { - var update = createUpdate(expirationTime); - update.tag = CaptureUpdate; - update.payload = { - element: null - }; - var error = errorInfo.value; - - update.callback = function () { - onUncaughtError(error); - logError(fiber, errorInfo); - }; - - return update; - } - - function createClassErrorUpdate(fiber, errorInfo, expirationTime) { - var update = createUpdate(expirationTime); - update.tag = CaptureUpdate; - var getDerivedStateFromCatch = fiber.type.getDerivedStateFromCatch; - - if (enableGetDerivedStateFromCatch && typeof getDerivedStateFromCatch === "function") { - var error = errorInfo.value; - - update.payload = function () { - return getDerivedStateFromCatch(error); - }; - } - - var inst = fiber.stateNode; - - if (inst !== null && typeof inst.componentDidCatch === "function") { - update.callback = function callback() { - if (!enableGetDerivedStateFromCatch || getDerivedStateFromCatch !== "function") { - markLegacyErrorBoundaryAsFailed(this); - } - - var error = errorInfo.value; - var stack = errorInfo.stack; - logError(fiber, errorInfo); - this.componentDidCatch(error, { - componentStack: stack !== null ? stack : "" - }); - }; - } - - return update; - } - - function schedulePing(finishedWork) { - var currentTime = recalculateCurrentTime(); - var expirationTime = computeExpirationForFiber(currentTime, finishedWork); - var recoveryUpdate = createUpdate(expirationTime); - enqueueUpdate(finishedWork, recoveryUpdate, expirationTime); - scheduleWork(finishedWork, expirationTime); - } - - function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime, currentTimeMs) { - sourceFiber.effectTag |= Incomplete; - sourceFiber.firstEffect = sourceFiber.lastEffect = null; - - if (enableSuspense && value !== null && typeof value === "object" && typeof value.then === "function") { - var thenable = value; - var expirationTimeMs = expirationTimeToMs(renderExpirationTime); - var startTimeMs = expirationTimeMs - 5000; - var elapsedMs = currentTimeMs - startTimeMs; - - if (elapsedMs < 0) { - elapsedMs = 0; - } - - var remainingTimeMs = expirationTimeMs - currentTimeMs; - var _workInProgress = returnFiber; - var earliestTimeoutMs = -1; - - searchForEarliestTimeout: do { - if (_workInProgress.tag === TimeoutComponent) { - var current = _workInProgress.alternate; - - if (current !== null && current.memoizedState === true) { - earliestTimeoutMs = 0; - break searchForEarliestTimeout; - } - - var timeoutPropMs = _workInProgress.pendingProps.ms; - - if (typeof timeoutPropMs === "number") { - if (timeoutPropMs <= 0) { - earliestTimeoutMs = 0; - break searchForEarliestTimeout; - } else if (earliestTimeoutMs === -1 || timeoutPropMs < earliestTimeoutMs) { - earliestTimeoutMs = timeoutPropMs; - } - } else if (earliestTimeoutMs === -1) { - earliestTimeoutMs = remainingTimeMs; - } - } - - _workInProgress = _workInProgress.return; - } while (_workInProgress !== null); - - var msUntilTimeout = earliestTimeoutMs - elapsedMs; - - if (renderExpirationTime === Never || msUntilTimeout > 0) { - markTimeout(root, thenable, msUntilTimeout, renderExpirationTime); - - var onResolveOrReject = function onResolveOrReject() { - retrySuspendedRoot(root, renderExpirationTime); - }; - - thenable.then(onResolveOrReject, onResolveOrReject); - return; - } else { - _workInProgress = returnFiber; - - do { - switch (_workInProgress.tag) { - case HostRoot: - { - var message = renderExpirationTime === Sync ? "A synchronous update was suspended, but no fallback UI " + "was provided." : "An update was suspended for longer than the timeout, " + "but no fallback UI was provided."; - value = new Error(message); - break; - } - - case TimeoutComponent: - { - if ((_workInProgress.effectTag & DidCapture) === NoEffect) { - _workInProgress.effectTag |= ShouldCapture; - - var _onResolveOrReject = schedulePing.bind(null, _workInProgress); - - thenable.then(_onResolveOrReject, _onResolveOrReject); - return; - } - - break; - } - } - - _workInProgress = _workInProgress.return; - } while (_workInProgress !== null); - } - } else { - markError(root); - - if (!root.didError && renderExpirationTime !== Sync || hasLowerPriorityWork(root, renderExpirationTime)) { - return; - } - } - - value = createCapturedValue(value, sourceFiber); - var workInProgress = returnFiber; - - do { - switch (workInProgress.tag) { - case HostRoot: - { - var _errorInfo = value; - workInProgress.effectTag |= ShouldCapture; - var update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime); - enqueueCapturedUpdate(workInProgress, update, renderExpirationTime); - return; - } - - case ClassComponent: - var errorInfo = value; - var ctor = workInProgress.type; - var instance = workInProgress.stateNode; - - if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromCatch === "function" && enableGetDerivedStateFromCatch || instance !== null && typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance))) { - workInProgress.effectTag |= ShouldCapture; - - var _update = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime); - - enqueueCapturedUpdate(workInProgress, _update, renderExpirationTime); - return; - } - - break; - - default: - break; - } - - workInProgress = workInProgress.return; - } while (workInProgress !== null); - } - - function unwindWork(workInProgress, renderExpirationTime) { - if (enableProfilerTimer) { - if (workInProgress.mode & ProfileMode) { - recordElapsedActualRenderTime(workInProgress); - } - } - - switch (workInProgress.tag) { - case ClassComponent: - { - popContextProvider(workInProgress); - var effectTag = workInProgress.effectTag; - - if (effectTag & ShouldCapture) { - workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture; - return workInProgress; - } - - return null; - } - - case HostRoot: - { - popHostContainer(workInProgress); - popTopLevelContextObject(workInProgress); - var _effectTag = workInProgress.effectTag; - - if (_effectTag & ShouldCapture) { - workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture; - return workInProgress; - } - - return null; - } - - case HostComponent: - { - popHostContext(workInProgress); - return null; - } - - case TimeoutComponent: - { - var _effectTag2 = workInProgress.effectTag; - - if (_effectTag2 & ShouldCapture) { - workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture; - return workInProgress; - } - - return null; - } - - case HostPortal: - popHostContainer(workInProgress); - return null; - - case ContextProvider: - popProvider(workInProgress); - return null; - - default: - return null; - } - } - - function unwindInterruptedWork(interruptedWork) { - if (enableProfilerTimer) { - if (interruptedWork.mode & ProfileMode) { - resumeActualRenderTimerIfPaused(); - recordElapsedActualRenderTime(interruptedWork); - } - } - - switch (interruptedWork.tag) { - case ClassComponent: - { - popContextProvider(interruptedWork); - break; - } - - case HostRoot: - { - popHostContainer(interruptedWork); - popTopLevelContextObject(interruptedWork); - break; - } - - case HostComponent: - { - popHostContext(interruptedWork); - break; - } - - case HostPortal: - popHostContainer(interruptedWork); - break; - - case ContextProvider: - popProvider(interruptedWork); - break; - - default: - break; - } - } - - var invokeGuardedCallback$2 = ReactErrorUtils.invokeGuardedCallback; - var hasCaughtError = ReactErrorUtils.hasCaughtError; - var clearCaughtError = ReactErrorUtils.clearCaughtError; - var didWarnAboutStateTransition = void 0; - var didWarnSetStateChildContext = void 0; - var warnAboutUpdateOnUnmounted = void 0; - var warnAboutInvalidUpdates = void 0; - { - didWarnAboutStateTransition = false; - didWarnSetStateChildContext = false; - var didWarnStateUpdateForUnmountedComponent = {}; - - warnAboutUpdateOnUnmounted = function warnAboutUpdateOnUnmounted(fiber) { - var componentName = getComponentName(fiber) || "ReactClass"; - - if (didWarnStateUpdateForUnmountedComponent[componentName]) { - return; - } - - warning(false, "Can't call setState (or forceUpdate) on an unmounted component. This " + "is a no-op, but it indicates a memory leak in your application. To " + "fix, cancel all subscriptions and asynchronous tasks in the " + "componentWillUnmount method.%s", getStackAddendumByWorkInProgressFiber(fiber)); - didWarnStateUpdateForUnmountedComponent[componentName] = true; - }; - - warnAboutInvalidUpdates = function warnAboutInvalidUpdates(instance) { - switch (ReactDebugCurrentFiber.phase) { - case "getChildContext": - if (didWarnSetStateChildContext) { - return; - } - - warning(false, "setState(...): Cannot call setState() inside getChildContext()"); - didWarnSetStateChildContext = true; - break; - - case "render": - if (didWarnAboutStateTransition) { - return; - } - - warning(false, "Cannot update during an existing state transition (such as within " + "`render` or another component's constructor). Render methods should " + "be a pure function of props and state; constructor side-effects are " + "an anti-pattern, but can be moved to `componentWillMount`."); - didWarnAboutStateTransition = true; - break; - } - }; - } - var originalStartTimeMs = now(); - var mostRecentCurrentTime = msToExpirationTime(0); - var mostRecentCurrentTimeMs = originalStartTimeMs; - var lastUniqueAsyncExpiration = 0; - var expirationContext = NoWork; - var isWorking = false; - var nextUnitOfWork = null; - var nextRoot = null; - var nextRenderExpirationTime = NoWork; - var nextLatestTimeoutMs = -1; - var nextRenderDidError = false; - var nextEffect = null; - var isCommitting$1 = false; - var legacyErrorBoundariesThatAlreadyFailed = null; - var interruptedBy = null; - var stashedWorkInProgressProperties = void 0; - var replayUnitOfWork = void 0; - var isReplayingFailedUnitOfWork = void 0; - var originalReplayError = void 0; - var rethrowOriginalError = void 0; - - if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) { - stashedWorkInProgressProperties = null; - isReplayingFailedUnitOfWork = false; - originalReplayError = null; - - replayUnitOfWork = function replayUnitOfWork(failedUnitOfWork, thrownValue, isYieldy) { - if (thrownValue !== null && typeof thrownValue === "object" && typeof thrownValue.then === "function") { - return; - } - - if (stashedWorkInProgressProperties === null) { - warning(false, "Could not replay rendering after an error. This is likely a bug in React. " + "Please file an issue."); - return; - } - - assignFiberPropertiesInDEV(failedUnitOfWork, stashedWorkInProgressProperties); - - switch (failedUnitOfWork.tag) { - case HostRoot: - popHostContainer(failedUnitOfWork); - popTopLevelContextObject(failedUnitOfWork); - break; - - case HostComponent: - popHostContext(failedUnitOfWork); - break; - - case ClassComponent: - popContextProvider(failedUnitOfWork); - break; - - case HostPortal: - popHostContainer(failedUnitOfWork); - break; - - case ContextProvider: - popProvider(failedUnitOfWork); - break; - } - - isReplayingFailedUnitOfWork = true; - originalReplayError = thrownValue; - invokeGuardedCallback$2(null, workLoop, null, isYieldy); - isReplayingFailedUnitOfWork = false; - originalReplayError = null; - - if (hasCaughtError()) { - clearCaughtError(); - - if (enableProfilerTimer) { - if (failedUnitOfWork.mode & ProfileMode) { - recordElapsedActualRenderTime(failedUnitOfWork); - } - - stopBaseRenderTimerIfRunning(); - } - } else { - nextUnitOfWork = failedUnitOfWork; - } - }; - - rethrowOriginalError = function rethrowOriginalError() { - throw originalReplayError; - }; - } - - function resetStack() { - if (nextUnitOfWork !== null) { - var interruptedWork = nextUnitOfWork.return; - - while (interruptedWork !== null) { - unwindInterruptedWork(interruptedWork); - interruptedWork = interruptedWork.return; - } - } - - { - ReactStrictModeWarnings.discardPendingWarnings(); - checkThatStackIsEmpty(); - } - nextRoot = null; - nextRenderExpirationTime = NoWork; - nextLatestTimeoutMs = -1; - nextRenderDidError = false; - nextUnitOfWork = null; - } - - function commitAllHostEffects() { - while (nextEffect !== null) { - { - ReactDebugCurrentFiber.setCurrentFiber(nextEffect); - } - recordEffect(); - var effectTag = nextEffect.effectTag; - - if (effectTag & ContentReset) { - commitResetTextContent(nextEffect); - } - - if (effectTag & Ref) { - var current = nextEffect.alternate; - - if (current !== null) { - commitDetachRef(current); - } - } - - var primaryEffectTag = effectTag & (Placement | Update | Deletion); - - switch (primaryEffectTag) { - case Placement: - { - commitPlacement(nextEffect); - nextEffect.effectTag &= ~Placement; - break; - } - - case PlacementAndUpdate: - { - commitPlacement(nextEffect); - nextEffect.effectTag &= ~Placement; - var _current = nextEffect.alternate; - commitWork(_current, nextEffect); - break; - } - - case Update: - { - var _current2 = nextEffect.alternate; - commitWork(_current2, nextEffect); - break; - } - - case Deletion: - { - commitDeletion(nextEffect); - break; - } - } - - nextEffect = nextEffect.nextEffect; - } - - { - ReactDebugCurrentFiber.resetCurrentFiber(); - } - } - - function commitBeforeMutationLifecycles() { - while (nextEffect !== null) { - var effectTag = nextEffect.effectTag; - - if (effectTag & Snapshot) { - recordEffect(); - var current = nextEffect.alternate; - commitBeforeMutationLifeCycles(current, nextEffect); - } - - nextEffect = nextEffect.nextEffect; - } - } - - function commitAllLifeCycles(finishedRoot, currentTime, committedExpirationTime) { - { - ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); - - if (warnAboutDeprecatedLifecycles) { - ReactStrictModeWarnings.flushPendingDeprecationWarnings(); - } - - if (warnAboutLegacyContextAPI) { - ReactStrictModeWarnings.flushLegacyContextWarning(); - } - } - - while (nextEffect !== null) { - var effectTag = nextEffect.effectTag; - - if (effectTag & (Update | Callback)) { - recordEffect(); - var current = nextEffect.alternate; - commitLifeCycles(finishedRoot, current, nextEffect, currentTime, committedExpirationTime); - } - - if (effectTag & Ref) { - recordEffect(); - commitAttachRef(nextEffect); - } - - var next = nextEffect.nextEffect; - nextEffect.nextEffect = null; - nextEffect = next; - } - } - - function isAlreadyFailedLegacyErrorBoundary(instance) { - return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance); - } - - function markLegacyErrorBoundaryAsFailed(instance) { - if (legacyErrorBoundariesThatAlreadyFailed === null) { - legacyErrorBoundariesThatAlreadyFailed = new Set([instance]); - } else { - legacyErrorBoundariesThatAlreadyFailed.add(instance); - } - } - - function commitRoot(root, finishedWork) { - isWorking = true; - isCommitting$1 = true; - startCommitTimer(); - invariant(root.current !== finishedWork, "Cannot commit the same tree as before. This is probably a bug " + "related to the return field. This error is likely caused by a bug " + "in React. Please file an issue."); - var committedExpirationTime = root.pendingCommitExpirationTime; - invariant(committedExpirationTime !== NoWork, "Cannot commit an incomplete root. This error is likely caused by a " + "bug in React. Please file an issue."); - root.pendingCommitExpirationTime = NoWork; - var earliestRemainingTime = finishedWork.expirationTime; - var currentTime = recalculateCurrentTime(); - markCommittedPriorityLevels(root, currentTime, earliestRemainingTime); - ReactCurrentOwner.current = null; - var firstEffect = void 0; - - if (finishedWork.effectTag > PerformedWork) { - if (finishedWork.lastEffect !== null) { - finishedWork.lastEffect.nextEffect = finishedWork; - firstEffect = finishedWork.firstEffect; - } else { - firstEffect = finishedWork; - } - } else { - firstEffect = finishedWork.firstEffect; - } - - prepareForCommit(root.containerInfo); - nextEffect = firstEffect; - startCommitSnapshotEffectsTimer(); - - while (nextEffect !== null) { - var didError = false; - var error = void 0; - { - invokeGuardedCallback$2(null, commitBeforeMutationLifecycles, null); - - if (hasCaughtError()) { - didError = true; - error = clearCaughtError(); - } - } - - if (didError) { - invariant(nextEffect !== null, "Should have next effect. This error is likely caused by a bug " + "in React. Please file an issue."); - captureCommitPhaseError(nextEffect, error); - - if (nextEffect !== null) { - nextEffect = nextEffect.nextEffect; - } - } - } - - stopCommitSnapshotEffectsTimer(); - - if (enableProfilerTimer) { - recordCommitTime(); - } - - nextEffect = firstEffect; - startCommitHostEffectsTimer(); - - while (nextEffect !== null) { - var _didError = false; - - var _error = void 0; - - { - invokeGuardedCallback$2(null, commitAllHostEffects, null); - - if (hasCaughtError()) { - _didError = true; - _error = clearCaughtError(); - } - } - - if (_didError) { - invariant(nextEffect !== null, "Should have next effect. This error is likely caused by a bug " + "in React. Please file an issue."); - captureCommitPhaseError(nextEffect, _error); - - if (nextEffect !== null) { - nextEffect = nextEffect.nextEffect; - } - } - } - - stopCommitHostEffectsTimer(); - resetAfterCommit(root.containerInfo); - root.current = finishedWork; - nextEffect = firstEffect; - startCommitLifeCyclesTimer(); - - while (nextEffect !== null) { - var _didError2 = false; - - var _error2 = void 0; - - { - invokeGuardedCallback$2(null, commitAllLifeCycles, null, root, currentTime, committedExpirationTime); - - if (hasCaughtError()) { - _didError2 = true; - _error2 = clearCaughtError(); - } - } - - if (_didError2) { - invariant(nextEffect !== null, "Should have next effect. This error is likely caused by a bug " + "in React. Please file an issue."); - captureCommitPhaseError(nextEffect, _error2); - - if (nextEffect !== null) { - nextEffect = nextEffect.nextEffect; - } - } - } - - if (enableProfilerTimer) { - { - checkActualRenderTimeStackEmpty(); - } - resetActualRenderTimer(); - } - - isCommitting$1 = false; - isWorking = false; - stopCommitLifeCyclesTimer(); - stopCommitTimer(); - - if (typeof onCommitRoot === "function") { - onCommitRoot(finishedWork.stateNode); - } - - if (true && ReactFiberInstrumentation_1.debugTool) { - ReactFiberInstrumentation_1.debugTool.onCommitWork(finishedWork); - } - - var expirationTime = root.expirationTime; - - if (expirationTime === NoWork) { - legacyErrorBoundariesThatAlreadyFailed = null; - } - - onCommit(root, expirationTime); - } - - function resetExpirationTime(workInProgress, renderTime) { - if (renderTime !== Never && workInProgress.expirationTime === Never) { - return; - } - - var newExpirationTime = NoWork; - - switch (workInProgress.tag) { - case HostRoot: - case ClassComponent: - { - var updateQueue = workInProgress.updateQueue; - - if (updateQueue !== null) { - newExpirationTime = updateQueue.expirationTime; - } - } - } - - if (enableProfilerTimer && workInProgress.mode & ProfileMode) { - var treeBaseTime = workInProgress.selfBaseTime; - var child = workInProgress.child; - - while (child !== null) { - treeBaseTime += child.treeBaseTime; - - if (child.expirationTime !== NoWork && (newExpirationTime === NoWork || newExpirationTime > child.expirationTime)) { - newExpirationTime = child.expirationTime; - } - - child = child.sibling; - } - - workInProgress.treeBaseTime = treeBaseTime; - } else { - var _child = workInProgress.child; - - while (_child !== null) { - if (_child.expirationTime !== NoWork && (newExpirationTime === NoWork || newExpirationTime > _child.expirationTime)) { - newExpirationTime = _child.expirationTime; - } - - _child = _child.sibling; - } - } - - workInProgress.expirationTime = newExpirationTime; - } - - function completeUnitOfWork(workInProgress) { - while (true) { - var current = workInProgress.alternate; - { - ReactDebugCurrentFiber.setCurrentFiber(workInProgress); - } - var returnFiber = workInProgress.return; - var siblingFiber = workInProgress.sibling; - - if ((workInProgress.effectTag & Incomplete) === NoEffect) { - var next = completeWork(current, workInProgress, nextRenderExpirationTime); - stopWorkTimer(workInProgress); - resetExpirationTime(workInProgress, nextRenderExpirationTime); - { - ReactDebugCurrentFiber.resetCurrentFiber(); - } - - if (next !== null) { - stopWorkTimer(workInProgress); - - if (true && ReactFiberInstrumentation_1.debugTool) { - ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress); - } - - return next; - } - - if (returnFiber !== null && (returnFiber.effectTag & Incomplete) === NoEffect) { - if (returnFiber.firstEffect === null) { - returnFiber.firstEffect = workInProgress.firstEffect; - } - - if (workInProgress.lastEffect !== null) { - if (returnFiber.lastEffect !== null) { - returnFiber.lastEffect.nextEffect = workInProgress.firstEffect; - } - - returnFiber.lastEffect = workInProgress.lastEffect; - } - - var effectTag = workInProgress.effectTag; - - if (effectTag > PerformedWork) { - if (returnFiber.lastEffect !== null) { - returnFiber.lastEffect.nextEffect = workInProgress; - } else { - returnFiber.firstEffect = workInProgress; - } - - returnFiber.lastEffect = workInProgress; - } - } - - if (true && ReactFiberInstrumentation_1.debugTool) { - ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress); - } - - if (siblingFiber !== null) { - return siblingFiber; - } else if (returnFiber !== null) { - workInProgress = returnFiber; - continue; - } else { - return null; - } - } else { - var _next = unwindWork(workInProgress, nextRenderExpirationTime); - - if (workInProgress.effectTag & DidCapture) { - stopFailedWorkTimer(workInProgress); - } else { - stopWorkTimer(workInProgress); - } - - { - ReactDebugCurrentFiber.resetCurrentFiber(); - } - - if (_next !== null) { - stopWorkTimer(workInProgress); - - if (true && ReactFiberInstrumentation_1.debugTool) { - ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress); - } - - _next.effectTag &= HostEffectMask; - return _next; - } - - if (returnFiber !== null) { - returnFiber.firstEffect = returnFiber.lastEffect = null; - returnFiber.effectTag |= Incomplete; - } - - if (true && ReactFiberInstrumentation_1.debugTool) { - ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress); - } - - if (siblingFiber !== null) { - return siblingFiber; - } else if (returnFiber !== null) { - workInProgress = returnFiber; - continue; - } else { - return null; - } - } - } - - return null; - } - - function performUnitOfWork(workInProgress) { - var current = workInProgress.alternate; - startWorkTimer(workInProgress); - { - ReactDebugCurrentFiber.setCurrentFiber(workInProgress); - } - - if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) { - stashedWorkInProgressProperties = assignFiberPropertiesInDEV(stashedWorkInProgressProperties, workInProgress); - } - - var next = void 0; - - if (enableProfilerTimer) { - if (workInProgress.mode & ProfileMode) { - startBaseRenderTimer(); - } - - next = beginWork(current, workInProgress, nextRenderExpirationTime); - - if (workInProgress.mode & ProfileMode) { - recordElapsedBaseRenderTimeIfRunning(workInProgress); - stopBaseRenderTimerIfRunning(); - } - } else { - next = beginWork(current, workInProgress, nextRenderExpirationTime); - } - - { - ReactDebugCurrentFiber.resetCurrentFiber(); - - if (isReplayingFailedUnitOfWork) { - rethrowOriginalError(); - } - } - - if (true && ReactFiberInstrumentation_1.debugTool) { - ReactFiberInstrumentation_1.debugTool.onBeginWork(workInProgress); - } - - if (next === null) { - next = completeUnitOfWork(workInProgress); - } - - ReactCurrentOwner.current = null; - return next; - } - - function workLoop(isYieldy) { - if (!isYieldy) { - while (nextUnitOfWork !== null) { - nextUnitOfWork = performUnitOfWork(nextUnitOfWork); - } - } else { - while (nextUnitOfWork !== null && !shouldYield()) { - nextUnitOfWork = performUnitOfWork(nextUnitOfWork); - } - - if (enableProfilerTimer) { - pauseActualRenderTimerIfRunning(); - } - } - } - - function renderRoot(root, isYieldy) { - invariant(!isWorking, "renderRoot was called recursively. This error is likely caused " + "by a bug in React. Please file an issue."); - isWorking = true; - var expirationTime = root.nextExpirationTimeToWorkOn; - - if (expirationTime !== nextRenderExpirationTime || root !== nextRoot || nextUnitOfWork === null) { - resetStack(); - nextRoot = root; - nextRenderExpirationTime = expirationTime; - nextLatestTimeoutMs = -1; - nextRenderDidError = false; - nextUnitOfWork = createWorkInProgress(nextRoot.current, null, nextRenderExpirationTime); - root.pendingCommitExpirationTime = NoWork; - } - - var didFatal = false; - startWorkLoopTimer(nextUnitOfWork); - - do { - try { - workLoop(isYieldy); - } catch (thrownValue) { - if (enableProfilerTimer) { - stopBaseRenderTimerIfRunning(); - } - - if (nextUnitOfWork === null) { - didFatal = true; - onUncaughtError(thrownValue); - } else { - { - resetCurrentlyProcessingQueue(); - } - var failedUnitOfWork = nextUnitOfWork; - - if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) { - replayUnitOfWork(failedUnitOfWork, thrownValue, isYieldy); - } - - invariant(nextUnitOfWork !== null, "Failed to replay rendering after an error. This " + "is likely caused by a bug in React. Please file an issue " + "with a reproducing case to help us find it."); - var sourceFiber = nextUnitOfWork; - var returnFiber = sourceFiber.return; - - if (returnFiber === null) { - didFatal = true; - onUncaughtError(thrownValue); - break; - } - - throwException(root, returnFiber, sourceFiber, thrownValue, nextRenderExpirationTime, mostRecentCurrentTimeMs); - nextUnitOfWork = completeUnitOfWork(sourceFiber); - } - } - - break; - } while (true); - - isWorking = false; - - if (didFatal) { - var didCompleteRoot = false; - stopWorkLoopTimer(interruptedBy, didCompleteRoot); - interruptedBy = null; - { - resetStackAfterFatalErrorInDev(); - } - onFatal(root); - } else if (nextUnitOfWork === null) { - var rootWorkInProgress = root.current.alternate; - invariant(rootWorkInProgress !== null, "Finished root should have a work-in-progress. This error is likely " + "caused by a bug in React. Please file an issue."); - - if ((rootWorkInProgress.effectTag & Incomplete) === NoEffect) { - var _didCompleteRoot = true; - stopWorkLoopTimer(interruptedBy, _didCompleteRoot); - interruptedBy = null; - onComplete(root, rootWorkInProgress, expirationTime); - } else { - var _didCompleteRoot2 = false; - stopWorkLoopTimer(interruptedBy, _didCompleteRoot2); - interruptedBy = null; - markSuspendedPriorityLevel(root, expirationTime, nextRenderDidError); - var suspendedExpirationTime = expirationTime; - var newExpirationTime = root.expirationTime; - onSuspend(root, suspendedExpirationTime, newExpirationTime, nextLatestTimeoutMs); - } - } else { - var _didCompleteRoot3 = false; - stopWorkLoopTimer(interruptedBy, _didCompleteRoot3); - interruptedBy = null; - onYield(root); - } - } - - function dispatch(sourceFiber, value, expirationTime) { - invariant(!isWorking || isCommitting$1, "dispatch: Cannot dispatch during the render phase."); - var fiber = sourceFiber.return; - - while (fiber !== null) { - switch (fiber.tag) { - case ClassComponent: - var ctor = fiber.type; - var instance = fiber.stateNode; - - if (typeof ctor.getDerivedStateFromCatch === "function" || typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance)) { - var errorInfo = createCapturedValue(value, sourceFiber); - var update = createClassErrorUpdate(fiber, errorInfo, expirationTime); - enqueueUpdate(fiber, update, expirationTime); - scheduleWork(fiber, expirationTime); - return; - } - - break; - - case HostRoot: - { - var _errorInfo = createCapturedValue(value, sourceFiber); - - var _update = createRootErrorUpdate(fiber, _errorInfo, expirationTime); - - enqueueUpdate(fiber, _update, expirationTime); - scheduleWork(fiber, expirationTime); - return; - } - } - - fiber = fiber.return; - } - - if (sourceFiber.tag === HostRoot) { - var rootFiber = sourceFiber; - - var _errorInfo2 = createCapturedValue(value, rootFiber); - - var _update2 = createRootErrorUpdate(rootFiber, _errorInfo2, expirationTime); - - enqueueUpdate(rootFiber, _update2, expirationTime); - scheduleWork(rootFiber, expirationTime); - } - } - - function captureCommitPhaseError(fiber, error) { - return dispatch(fiber, error, Sync); - } - - function computeAsyncExpiration(currentTime) { - var expirationMs = 5000; - var bucketSizeMs = 250; - return computeExpirationBucket(currentTime, expirationMs, bucketSizeMs); - } - - function computeInteractiveExpiration(currentTime) { - var expirationMs = void 0; - { - expirationMs = 500; - } - var bucketSizeMs = 100; - return computeExpirationBucket(currentTime, expirationMs, bucketSizeMs); - } - - function computeUniqueAsyncExpiration() { - var currentTime = recalculateCurrentTime(); - var result = computeAsyncExpiration(currentTime); - - if (result <= lastUniqueAsyncExpiration) { - result = lastUniqueAsyncExpiration + 1; - } - - lastUniqueAsyncExpiration = result; - return lastUniqueAsyncExpiration; - } - - function computeExpirationForFiber(currentTime, fiber) { - var expirationTime = void 0; - - if (expirationContext !== NoWork) { - expirationTime = expirationContext; - } else if (isWorking) { - if (isCommitting$1) { - expirationTime = Sync; - } else { - expirationTime = nextRenderExpirationTime; - } - } else { - if (fiber.mode & AsyncMode) { - if (isBatchingInteractiveUpdates) { - expirationTime = computeInteractiveExpiration(currentTime); - } else { - expirationTime = computeAsyncExpiration(currentTime); - } - } else { - expirationTime = Sync; - } - } - - if (isBatchingInteractiveUpdates) { - if (lowestPendingInteractiveExpirationTime === NoWork || expirationTime > lowestPendingInteractiveExpirationTime) { - lowestPendingInteractiveExpirationTime = expirationTime; - } - } - - return expirationTime; - } - - function markTimeout(root, thenable, timeoutMs, suspendedTime) { - if (timeoutMs >= 0 && nextLatestTimeoutMs < timeoutMs) { - nextLatestTimeoutMs = timeoutMs; - } - } - - function markError(root) { - nextRenderDidError = true; - } - - function retrySuspendedRoot(root, suspendedTime) { - markPingedPriorityLevel(root, suspendedTime); - var retryTime = root.expirationTime; - - if (retryTime !== NoWork) { - requestWork(root, retryTime); - } - } - - function scheduleWork(fiber, expirationTime) { - recordScheduleUpdate(); - { - if (fiber.tag === ClassComponent) { - var instance = fiber.stateNode; - warnAboutInvalidUpdates(instance); - } - } - var node = fiber; - - while (node !== null) { - if (node.expirationTime === NoWork || node.expirationTime > expirationTime) { - node.expirationTime = expirationTime; - } - - if (node.alternate !== null) { - if (node.alternate.expirationTime === NoWork || node.alternate.expirationTime > expirationTime) { - node.alternate.expirationTime = expirationTime; - } - } - - if (node.return === null) { - if (node.tag === HostRoot) { - var root = node.stateNode; - - if (!isWorking && nextRenderExpirationTime !== NoWork && expirationTime < nextRenderExpirationTime) { - interruptedBy = fiber; - resetStack(); - } - - markPendingPriorityLevel(root, expirationTime); - - if (!isWorking || isCommitting$1 || nextRoot !== root) { - var rootExpirationTime = root.expirationTime; - requestWork(root, rootExpirationTime); - } - - if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { - invariant(false, "Maximum update depth exceeded. This can happen when a " + "component repeatedly calls setState inside " + "componentWillUpdate or componentDidUpdate. React limits " + "the number of nested updates to prevent infinite loops."); - } - } else { - { - if (fiber.tag === ClassComponent) { - warnAboutUpdateOnUnmounted(fiber); - } - } - return; - } - } - - node = node.return; - } - } - - function recalculateCurrentTime() { - mostRecentCurrentTimeMs = now() - originalStartTimeMs; - mostRecentCurrentTime = msToExpirationTime(mostRecentCurrentTimeMs); - return mostRecentCurrentTime; - } - - function deferredUpdates(fn) { - var previousExpirationContext = expirationContext; - var currentTime = recalculateCurrentTime(); - expirationContext = computeAsyncExpiration(currentTime); - - try { - return fn(); - } finally { - expirationContext = previousExpirationContext; - } - } - - function syncUpdates(fn, a, b, c, d) { - var previousExpirationContext = expirationContext; - expirationContext = Sync; - - try { - return fn(a, b, c, d); - } finally { - expirationContext = previousExpirationContext; - } - } - - var firstScheduledRoot = null; - var lastScheduledRoot = null; - var callbackExpirationTime = NoWork; - var callbackID = void 0; - var isRendering = false; - var nextFlushedRoot = null; - var nextFlushedExpirationTime = NoWork; - var lowestPendingInteractiveExpirationTime = NoWork; - var deadlineDidExpire = false; - var hasUnhandledError = false; - var unhandledError = null; - var deadline = null; - var isBatchingUpdates = false; - var isUnbatchingUpdates = false; - var isBatchingInteractiveUpdates = false; - var completedBatches = null; - var NESTED_UPDATE_LIMIT = 1000; - var nestedUpdateCount = 0; - var timeHeuristicForUnitOfWork = 1; - - function scheduleCallbackWithExpirationTime(expirationTime) { - if (callbackExpirationTime !== NoWork) { - if (expirationTime > callbackExpirationTime) { - return; - } else { - if (callbackID !== null) { - cancelDeferredCallback(callbackID); - } - } - } else { - startRequestCallbackTimer(); - } - - callbackExpirationTime = expirationTime; - var currentMs = now() - originalStartTimeMs; - var expirationTimeMs = expirationTimeToMs(expirationTime); - var timeout = expirationTimeMs - currentMs; - callbackID = scheduleDeferredCallback(performAsyncWork, { - timeout: timeout - }); - } - - function onFatal(root) { - root.finishedWork = null; - } - - function onComplete(root, finishedWork, expirationTime) { - root.pendingCommitExpirationTime = expirationTime; - root.finishedWork = finishedWork; - } - - function onSuspend(root, suspendedExpirationTime, expirationTime, timeoutMs) { - if (timeoutMs >= 0) { - var suspendedRoot = root; - setTimeout(function () { - retrySuspendedRoot(suspendedRoot, suspendedExpirationTime); - }, timeoutMs); - } - - root.expirationTime = expirationTime; - } - - function onYield(root) { - root.finishedWork = null; - } - - function onCommit(root, expirationTime) { - root.expirationTime = expirationTime; - root.finishedWork = null; - } - - function requestWork(root, expirationTime) { - addRootToSchedule(root, expirationTime); - - if (isRendering) { - return; - } - - if (isBatchingUpdates) { - if (isUnbatchingUpdates) { - nextFlushedRoot = root; - nextFlushedExpirationTime = Sync; - performWorkOnRoot(root, Sync, false); - } - - return; - } - - if (expirationTime === Sync) { - performSyncWork(); - } else { - scheduleCallbackWithExpirationTime(expirationTime); - } - } - - function addRootToSchedule(root, expirationTime) { - if (root.nextScheduledRoot === null) { - root.expirationTime = expirationTime; - - if (lastScheduledRoot === null) { - firstScheduledRoot = lastScheduledRoot = root; - root.nextScheduledRoot = root; - } else { - lastScheduledRoot.nextScheduledRoot = root; - lastScheduledRoot = root; - lastScheduledRoot.nextScheduledRoot = firstScheduledRoot; - } - } else { - var remainingExpirationTime = root.expirationTime; - - if (remainingExpirationTime === NoWork || expirationTime < remainingExpirationTime) { - root.expirationTime = expirationTime; - } - } - } - - function findHighestPriorityRoot() { - var highestPriorityWork = NoWork; - var highestPriorityRoot = null; - - if (lastScheduledRoot !== null) { - var previousScheduledRoot = lastScheduledRoot; - var root = firstScheduledRoot; - - while (root !== null) { - var remainingExpirationTime = root.expirationTime; - - if (remainingExpirationTime === NoWork) { - invariant(previousScheduledRoot !== null && lastScheduledRoot !== null, "Should have a previous and last root. This error is likely " + "caused by a bug in React. Please file an issue."); - - if (root === root.nextScheduledRoot) { - root.nextScheduledRoot = null; - firstScheduledRoot = lastScheduledRoot = null; - break; - } else if (root === firstScheduledRoot) { - var next = root.nextScheduledRoot; - firstScheduledRoot = next; - lastScheduledRoot.nextScheduledRoot = next; - root.nextScheduledRoot = null; - } else if (root === lastScheduledRoot) { - lastScheduledRoot = previousScheduledRoot; - lastScheduledRoot.nextScheduledRoot = firstScheduledRoot; - root.nextScheduledRoot = null; - break; - } else { - previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot; - root.nextScheduledRoot = null; - } - - root = previousScheduledRoot.nextScheduledRoot; - } else { - if (highestPriorityWork === NoWork || remainingExpirationTime < highestPriorityWork) { - highestPriorityWork = remainingExpirationTime; - highestPriorityRoot = root; - } - - if (root === lastScheduledRoot) { - break; - } - - previousScheduledRoot = root; - root = root.nextScheduledRoot; - } - } - } - - var previousFlushedRoot = nextFlushedRoot; - - if (previousFlushedRoot !== null && previousFlushedRoot === highestPriorityRoot && highestPriorityWork === Sync) { - nestedUpdateCount++; - } else { - nestedUpdateCount = 0; - } - - nextFlushedRoot = highestPriorityRoot; - nextFlushedExpirationTime = highestPriorityWork; - } - - function performAsyncWork(dl) { - performWork(NoWork, dl); - } - - function performSyncWork() { - performWork(Sync, null); - } - - function performWork(minExpirationTime, dl) { - deadline = dl; - findHighestPriorityRoot(); - - if (enableProfilerTimer) { - resumeActualRenderTimerIfPaused(); - } - - if (enableUserTimingAPI && deadline !== null) { - var didExpire = nextFlushedExpirationTime < recalculateCurrentTime(); - var timeout = expirationTimeToMs(nextFlushedExpirationTime); - stopRequestCallbackTimer(didExpire, timeout); - } - - if (deadline !== null) { - while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && (minExpirationTime === NoWork || minExpirationTime >= nextFlushedExpirationTime) && (!deadlineDidExpire || recalculateCurrentTime() >= nextFlushedExpirationTime)) { - recalculateCurrentTime(); - performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, true); - findHighestPriorityRoot(); - } - } else { - while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && (minExpirationTime === NoWork || minExpirationTime >= nextFlushedExpirationTime)) { - performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, false); - findHighestPriorityRoot(); - } - } - - if (deadline !== null) { - callbackExpirationTime = NoWork; - callbackID = null; - } - - if (nextFlushedExpirationTime !== NoWork) { - scheduleCallbackWithExpirationTime(nextFlushedExpirationTime); - } - - deadline = null; - deadlineDidExpire = false; - finishRendering(); - } - - function flushRoot(root, expirationTime) { - invariant(!isRendering, "work.commit(): Cannot commit while already rendering. This likely " + "means you attempted to commit from inside a lifecycle method."); - nextFlushedRoot = root; - nextFlushedExpirationTime = expirationTime; - performWorkOnRoot(root, expirationTime, false); - performSyncWork(); - finishRendering(); - } - - function finishRendering() { - nestedUpdateCount = 0; - - if (completedBatches !== null) { - var batches = completedBatches; - completedBatches = null; - - for (var i = 0; i < batches.length; i++) { - var batch = batches[i]; - - try { - batch._onComplete(); - } catch (error) { - if (!hasUnhandledError) { - hasUnhandledError = true; - unhandledError = error; - } - } - } - } - - if (hasUnhandledError) { - var error = unhandledError; - unhandledError = null; - hasUnhandledError = false; - throw error; - } - } - - function performWorkOnRoot(root, expirationTime, isYieldy) { - invariant(!isRendering, "performWorkOnRoot was called recursively. This error is likely caused " + "by a bug in React. Please file an issue."); - isRendering = true; - - if (!isYieldy) { - var finishedWork = root.finishedWork; - - if (finishedWork !== null) { - completeRoot(root, finishedWork, expirationTime); - } else { - root.finishedWork = null; - renderRoot(root, false); - finishedWork = root.finishedWork; - - if (finishedWork !== null) { - completeRoot(root, finishedWork, expirationTime); - } - } - } else { - var _finishedWork = root.finishedWork; - - if (_finishedWork !== null) { - completeRoot(root, _finishedWork, expirationTime); - } else { - root.finishedWork = null; - renderRoot(root, true); - _finishedWork = root.finishedWork; - - if (_finishedWork !== null) { - if (!shouldYield()) { - completeRoot(root, _finishedWork, expirationTime); - } else { - root.finishedWork = _finishedWork; - - if (enableProfilerTimer) { - pauseActualRenderTimerIfRunning(); - } - } - } - } - } - - isRendering = false; - } - - function completeRoot(root, finishedWork, expirationTime) { - var firstBatch = root.firstBatch; - - if (firstBatch !== null && firstBatch._expirationTime <= expirationTime) { - if (completedBatches === null) { - completedBatches = [firstBatch]; - } else { - completedBatches.push(firstBatch); - } - - if (firstBatch._defer) { - root.finishedWork = finishedWork; - root.expirationTime = NoWork; - return; - } - } - - root.finishedWork = null; - commitRoot(root, finishedWork); - } - - function shouldYield() { - if (deadline === null || deadlineDidExpire) { - return false; - } - - if (deadline.timeRemaining() > timeHeuristicForUnitOfWork) { - return false; - } - - deadlineDidExpire = true; - return true; - } - - function onUncaughtError(error) { - invariant(nextFlushedRoot !== null, "Should be working on a root. This error is likely caused by a bug in " + "React. Please file an issue."); - nextFlushedRoot.expirationTime = NoWork; - - if (!hasUnhandledError) { - hasUnhandledError = true; - unhandledError = error; - } - } - - function batchedUpdates$1(fn, a) { - var previousIsBatchingUpdates = isBatchingUpdates; - isBatchingUpdates = true; - - try { - return fn(a); - } finally { - isBatchingUpdates = previousIsBatchingUpdates; - - if (!isBatchingUpdates && !isRendering) { - performSyncWork(); - } - } - } - - function unbatchedUpdates(fn, a) { - if (isBatchingUpdates && !isUnbatchingUpdates) { - isUnbatchingUpdates = true; - - try { - return fn(a); - } finally { - isUnbatchingUpdates = false; - } - } - - return fn(a); - } - - function flushSync(fn, a) { - invariant(!isRendering, "flushSync was called from inside a lifecycle method. It cannot be " + "called when React is already rendering."); - var previousIsBatchingUpdates = isBatchingUpdates; - isBatchingUpdates = true; - - try { - return syncUpdates(fn, a); - } finally { - isBatchingUpdates = previousIsBatchingUpdates; - performSyncWork(); - } - } - - function interactiveUpdates$1(fn, a, b) { - if (isBatchingInteractiveUpdates) { - return fn(a, b); - } - - if (!isBatchingUpdates && !isRendering && lowestPendingInteractiveExpirationTime !== NoWork) { - performWork(lowestPendingInteractiveExpirationTime, null); - lowestPendingInteractiveExpirationTime = NoWork; - } - - var previousIsBatchingInteractiveUpdates = isBatchingInteractiveUpdates; - var previousIsBatchingUpdates = isBatchingUpdates; - isBatchingInteractiveUpdates = true; - isBatchingUpdates = true; - - try { - return fn(a, b); - } finally { - isBatchingInteractiveUpdates = previousIsBatchingInteractiveUpdates; - isBatchingUpdates = previousIsBatchingUpdates; - - if (!isBatchingUpdates && !isRendering) { - performSyncWork(); - } - } - } - - function flushInteractiveUpdates$1() { - if (!isRendering && lowestPendingInteractiveExpirationTime !== NoWork) { - performWork(lowestPendingInteractiveExpirationTime, null); - lowestPendingInteractiveExpirationTime = NoWork; - } - } - - function flushControlled(fn) { - var previousIsBatchingUpdates = isBatchingUpdates; - isBatchingUpdates = true; - - try { - syncUpdates(fn); - } finally { - isBatchingUpdates = previousIsBatchingUpdates; - - if (!isBatchingUpdates && !isRendering) { - performWork(Sync, null); - } - } - } - - var didWarnAboutNestedUpdates = void 0; - { - didWarnAboutNestedUpdates = false; - } - - function getContextForSubtree(parentComponent) { - if (!parentComponent) { - return emptyObject; - } - - var fiber = get$1(parentComponent); - var parentContext = findCurrentUnmaskedContext(fiber); - return isContextProvider(fiber) ? processChildContext(fiber, parentContext) : parentContext; - } - - function scheduleRootUpdate(current, element, expirationTime, callback) { - { - if (ReactDebugCurrentFiber.phase === "render" && ReactDebugCurrentFiber.current !== null && !didWarnAboutNestedUpdates) { - didWarnAboutNestedUpdates = true; - warning(false, "Render methods should be a pure function of props and state; " + "triggering nested component updates from render is not allowed. " + "If necessary, trigger nested updates in componentDidUpdate.\n\n" + "Check the render method of %s.", getComponentName(ReactDebugCurrentFiber.current) || "Unknown"); - } - } - var update = createUpdate(expirationTime); - update.payload = { - element: element - }; - callback = callback === undefined ? null : callback; - - if (callback !== null) { - !(typeof callback === "function") ? warning(false, "render(...): Expected the last optional `callback` argument to be a " + "function. Instead received: %s.", callback) : void 0; - update.callback = callback; - } - - enqueueUpdate(current, update, expirationTime); - scheduleWork(current, expirationTime); - return expirationTime; - } - - function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback) { - var current = container.current; - { - if (ReactFiberInstrumentation_1.debugTool) { - if (current.alternate === null) { - ReactFiberInstrumentation_1.debugTool.onMountContainer(container); - } else if (element === null) { - ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container); - } else { - ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container); - } - } - } - var context = getContextForSubtree(parentComponent); - - if (container.context === null) { - container.context = context; - } else { - container.pendingContext = context; - } - - return scheduleRootUpdate(current, element, expirationTime, callback); - } - - function findHostInstance$1(component) { - var fiber = get$1(component); - - if (fiber === undefined) { - if (typeof component.render === "function") { - invariant(false, "Unable to find node on an unmounted component."); - } else { - invariant(false, "Argument appears to not be a ReactComponent. Keys: %s", Object.keys(component)); - } - } - - var hostFiber = findCurrentHostFiber(fiber); - - if (hostFiber === null) { - return null; - } - - return hostFiber.stateNode; - } - - function createContainer(containerInfo, isAsync, hydrate) { - return createFiberRoot(containerInfo, isAsync, hydrate); - } - - function updateContainer(element, container, parentComponent, callback) { - var current = container.current; - var currentTime = recalculateCurrentTime(); - var expirationTime = computeExpirationForFiber(currentTime, current); - return updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback); - } - - function getPublicRootInstance(container) { - var containerFiber = container.current; - - if (!containerFiber.child) { - return null; - } - - switch (containerFiber.child.tag) { - case HostComponent: - return getPublicInstance(containerFiber.child.stateNode); - - default: - return containerFiber.child.stateNode; - } - } - - function findHostInstanceWithNoPortals(fiber) { - var hostFiber = findCurrentHostFiberWithNoPortals(fiber); - - if (hostFiber === null) { - return null; - } - - return hostFiber.stateNode; - } - - function injectIntoDevTools(devToolsConfig) { - var _findFiberByHostInstance = devToolsConfig.findFiberByHostInstance; - return injectInternals(_extends({}, devToolsConfig, { - findHostInstanceByFiber: function findHostInstanceByFiber(fiber) { - var hostFiber = findCurrentHostFiber(fiber); - - if (hostFiber === null) { - return null; - } - - return hostFiber.stateNode; - }, - findFiberByHostInstance: function findFiberByHostInstance(instance) { - if (!_findFiberByHostInstance) { - return null; - } - - return _findFiberByHostInstance(instance); - } - })); - } - - var ReactNativeFiberRenderer = Object.freeze({ - updateContainerAtExpirationTime: updateContainerAtExpirationTime, - createContainer: createContainer, - updateContainer: updateContainer, - flushRoot: flushRoot, - requestWork: requestWork, - computeUniqueAsyncExpiration: computeUniqueAsyncExpiration, - batchedUpdates: batchedUpdates$1, - unbatchedUpdates: unbatchedUpdates, - deferredUpdates: deferredUpdates, - syncUpdates: syncUpdates, - interactiveUpdates: interactiveUpdates$1, - flushInteractiveUpdates: flushInteractiveUpdates$1, - flushControlled: flushControlled, - flushSync: flushSync, - getPublicRootInstance: getPublicRootInstance, - findHostInstance: findHostInstance$1, - findHostInstanceWithNoPortals: findHostInstanceWithNoPortals, - injectIntoDevTools: injectIntoDevTools - }); - - function _createPortal(children, containerInfo, implementation) { - var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; - return { - $$typeof: REACT_PORTAL_TYPE, - key: key == null ? null : "" + key, - children: children, - containerInfo: containerInfo, - implementation: implementation - }; - } - - var ReactVersion = "16.4.1"; - - var NativeMethodsMixin = function NativeMethodsMixin(findNodeHandle, findHostInstance) { - var NativeMethodsMixin = { - measure: function measure(callback) { - UIManager.measure(findNodeHandle(this), mountSafeCallback(this, callback)); - }, - measureInWindow: function measureInWindow(callback) { - UIManager.measureInWindow(findNodeHandle(this), mountSafeCallback(this, callback)); - }, - measureLayout: function measureLayout(relativeToNativeNode, onSuccess, onFail) { - UIManager.measureLayout(findNodeHandle(this), relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); - }, - setNativeProps: function setNativeProps(nativeProps) { - var maybeInstance = void 0; - - try { - maybeInstance = findHostInstance(this); - } catch (error) {} - - if (maybeInstance == null) { - return; - } - - var viewConfig = maybeInstance.viewConfig; - { - warnForStyleProps(nativeProps, viewConfig.validAttributes); - } - var updatePayload = create(nativeProps, viewConfig.validAttributes); - - if (updatePayload != null) { - UIManager.updateView(maybeInstance._nativeTag, viewConfig.uiViewClassName, updatePayload); - } - }, - focus: function focus() { - TextInputState.focusTextInput(findNodeHandle(this)); - }, - blur: function blur() { - TextInputState.blurTextInput(findNodeHandle(this)); - } - }; - { - var NativeMethodsMixin_DEV = NativeMethodsMixin; - invariant(!NativeMethodsMixin_DEV.componentWillMount && !NativeMethodsMixin_DEV.componentWillReceiveProps && !NativeMethodsMixin_DEV.UNSAFE_componentWillMount && !NativeMethodsMixin_DEV.UNSAFE_componentWillReceiveProps, "Do not override existing functions."); - - NativeMethodsMixin_DEV.componentWillMount = function () { - throwOnStylesProp(this, this.props); - }; - - NativeMethodsMixin_DEV.componentWillReceiveProps = function (newProps) { - throwOnStylesProp(this, newProps); - }; - - NativeMethodsMixin_DEV.UNSAFE_componentWillMount = function () { - throwOnStylesProp(this, this.props); - }; - - NativeMethodsMixin_DEV.UNSAFE_componentWillReceiveProps = function (newProps) { - throwOnStylesProp(this, newProps); - }; - - NativeMethodsMixin_DEV.componentWillMount.__suppressDeprecationWarning = true; - NativeMethodsMixin_DEV.componentWillReceiveProps.__suppressDeprecationWarning = true; - } - return NativeMethodsMixin; - }; - - function _classCallCheck$1(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - } - - function _possibleConstructorReturn(self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return call && (typeof call === "object" || typeof call === "function") ? call : self; - } - - function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } - - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; - } - - var ReactNativeComponent = function ReactNativeComponent(findNodeHandle, findHostInstance) { - var ReactNativeComponent = function (_React$Component) { - _inherits(ReactNativeComponent, _React$Component); - - function ReactNativeComponent() { - _classCallCheck$1(this, ReactNativeComponent); - - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } - - ReactNativeComponent.prototype.blur = function blur() { - TextInputState.blurTextInput(findNodeHandle(this)); - }; - - ReactNativeComponent.prototype.focus = function focus() { - TextInputState.focusTextInput(findNodeHandle(this)); - }; - - ReactNativeComponent.prototype.measure = function measure(callback) { - UIManager.measure(findNodeHandle(this), mountSafeCallback(this, callback)); - }; - - ReactNativeComponent.prototype.measureInWindow = function measureInWindow(callback) { - UIManager.measureInWindow(findNodeHandle(this), mountSafeCallback(this, callback)); - }; - - ReactNativeComponent.prototype.measureLayout = function measureLayout(relativeToNativeNode, onSuccess, onFail) { - UIManager.measureLayout(findNodeHandle(this), relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); - }; - - ReactNativeComponent.prototype.setNativeProps = function setNativeProps(nativeProps) { - var maybeInstance = void 0; - - try { - maybeInstance = findHostInstance(this); - } catch (error) {} - - if (maybeInstance == null) { - return; - } - - var viewConfig = maybeInstance.viewConfig || maybeInstance.canonical.viewConfig; - var updatePayload = create(nativeProps, viewConfig.validAttributes); - - if (updatePayload != null) { - UIManager.updateView(maybeInstance._nativeTag, viewConfig.uiViewClassName, updatePayload); - } - }; - - return ReactNativeComponent; - }(React.Component); - - return ReactNativeComponent; - }; - - var getInspectorDataForViewTag = void 0; - { - var traverseOwnerTreeUp = function traverseOwnerTreeUp(hierarchy, instance) { - if (instance) { - hierarchy.unshift(instance); - traverseOwnerTreeUp(hierarchy, instance._debugOwner); - } - }; - - var getOwnerHierarchy = function getOwnerHierarchy(instance) { - var hierarchy = []; - traverseOwnerTreeUp(hierarchy, instance); - return hierarchy; - }; - - var lastNonHostInstance = function lastNonHostInstance(hierarchy) { - for (var i = hierarchy.length - 1; i > 1; i--) { - var instance = hierarchy[i]; - - if (instance.tag !== HostComponent) { - return instance; - } - } - - return hierarchy[0]; - }; - - var getHostProps = function getHostProps(fiber) { - var host = findCurrentHostFiber(fiber); - - if (host) { - return host.memoizedProps || emptyObject; - } - - return emptyObject; - }; - - var getHostNode = function getHostNode(fiber, findNodeHandle) { - var hostNode = void 0; - - while (fiber) { - if (fiber.stateNode !== null && fiber.tag === HostComponent) { - hostNode = findNodeHandle(fiber.stateNode); - } - - if (hostNode) { - return hostNode; - } - - fiber = fiber.child; - } - - return null; - }; - - var createHierarchy = function createHierarchy(fiberHierarchy) { - return fiberHierarchy.map(function (fiber) { - return { - name: getComponentName(fiber), - getInspectorData: function getInspectorData(findNodeHandle) { - return { - measure: function measure(callback) { - return UIManager.measure(getHostNode(fiber, findNodeHandle), callback); - }, - props: getHostProps(fiber), - source: fiber._debugSource - }; - } - }; - }); - }; - - getInspectorDataForViewTag = function getInspectorDataForViewTag(viewTag) { - var closestInstance = getInstanceFromTag(viewTag); - - if (!closestInstance) { - return { - hierarchy: [], - props: emptyObject, - selection: null, - source: null - }; - } - - var fiber = findCurrentFiberUsingSlowPath(closestInstance); - var fiberHierarchy = getOwnerHierarchy(fiber); - var instance = lastNonHostInstance(fiberHierarchy); - var hierarchy = createHierarchy(fiberHierarchy); - var props = getHostProps(instance); - var source = instance._debugSource; - var selection = fiberHierarchy.indexOf(instance); - return { - hierarchy: hierarchy, - props: props, - selection: selection, - source: source - }; - }; - } - var findHostInstance = findHostInstance$1; - - function findNodeHandle(componentOrHandle) { - { - var owner = ReactCurrentOwner.current; - - if (owner !== null && owner.stateNode !== null) { - !owner.stateNode._warnedAboutRefsInRender ? warning(false, "%s is accessing findNodeHandle inside its render(). " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentName(owner) || "A component") : void 0; - owner.stateNode._warnedAboutRefsInRender = true; - } - } - - if (componentOrHandle == null) { - return null; - } - - if (typeof componentOrHandle === "number") { - return componentOrHandle; - } - - if (componentOrHandle._nativeTag) { - return componentOrHandle._nativeTag; - } - - if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) { - return componentOrHandle.canonical._nativeTag; - } - - var hostInstance = findHostInstance(componentOrHandle); - - if (hostInstance == null) { - return hostInstance; - } - - if (hostInstance.canonical) { - return hostInstance.canonical._nativeTag; - } - - return hostInstance._nativeTag; - } - - injection$2.injectRenderer(ReactNativeFiberRenderer); - - function computeComponentStackForErrorReporting(reactTag) { - var fiber = getInstanceFromTag(reactTag); - - if (!fiber) { - return ""; - } - - return getStackAddendumByWorkInProgressFiber(fiber); - } - - var roots = new Map(); - var ReactNativeRenderer = { - NativeComponent: ReactNativeComponent(findNodeHandle, findHostInstance), - findNodeHandle: findNodeHandle, - render: function render(element, containerTag, callback) { - var root = roots.get(containerTag); - - if (!root) { - root = createContainer(containerTag, false, false); - roots.set(containerTag, root); - } - - updateContainer(element, root, null, callback); - return getPublicRootInstance(root); - }, - unmountComponentAtNode: function unmountComponentAtNode(containerTag) { - var root = roots.get(containerTag); - - if (root) { - updateContainer(null, root, null, function () { - roots.delete(containerTag); - }); - } - }, - unmountComponentAtNodeAndRemoveContainer: function unmountComponentAtNodeAndRemoveContainer(containerTag) { - ReactNativeRenderer.unmountComponentAtNode(containerTag); - UIManager.removeRootView(containerTag); - }, - createPortal: function createPortal(children, containerTag) { - var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - return _createPortal(children, containerTag, null, key); - }, - unstable_batchedUpdates: batchedUpdates, - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { - NativeMethodsMixin: NativeMethodsMixin(findNodeHandle, findHostInstance), - computeComponentStackForErrorReporting: computeComponentStackForErrorReporting - } - }; - injectIntoDevTools({ - findFiberByHostInstance: getInstanceFromTag, - getInspectorDataForViewTag: getInspectorDataForViewTag, - bundleType: 1, - version: ReactVersion, - rendererPackageName: "react-native-renderer" - }); - var ReactNativeRenderer$2 = Object.freeze({ - default: ReactNativeRenderer - }); - var ReactNativeRenderer$3 = ReactNativeRenderer$2 && ReactNativeRenderer || ReactNativeRenderer$2; - var reactNativeRenderer = ReactNativeRenderer$3.default ? ReactNativeRenderer$3.default : ReactNativeRenderer$3; - module.exports = reactNativeRenderer; - })(); - } -},335,[337,4,111,157,87,338,122,339,106,340,134,341,130,342],"node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _require = _$$_REQUIRE(_dependencyMap[0], 'PolyfillFunctions'), - polyfillObjectProperty = _require.polyfillObjectProperty, - polyfillGlobal = _require.polyfillGlobal; - - if (global.GLOBAL === undefined) { - global.GLOBAL = global; - } - - if (global.window === undefined) { - global.window = global; - } - - var _shouldPolyfillCollection = _$$_REQUIRE(_dependencyMap[1], '_shouldPolyfillES6Collection'); - - if (_shouldPolyfillCollection('Map')) { - polyfillGlobal('Map', function () { - return _$$_REQUIRE(_dependencyMap[2], 'Map'); - }); - } - - if (_shouldPolyfillCollection('Set')) { - polyfillGlobal('Set', function () { - return _$$_REQUIRE(_dependencyMap[3], 'Set'); - }); - } - - global.process = global.process || {}; - global.process.env = global.process.env || {}; - - if (!global.process.env.NODE_ENV) { - global.process.env.NODE_ENV = __DEV__ ? 'development' : 'production'; - } - - if (global.__RCTProfileIsProfiling) { - var Systrace = _$$_REQUIRE(_dependencyMap[4], 'Systrace'); - - Systrace.installReactHook(); - Systrace.setEnabled(true); - } - - var ExceptionsManager = _$$_REQUIRE(_dependencyMap[5], 'ExceptionsManager'); - - ExceptionsManager.installConsoleErrorReporter(); - - if (!global.__fbDisableExceptionsManager) { - var handleError = function handleError(e, isFatal) { - try { - ExceptionsManager.handleException(e, isFatal); - } catch (ee) { - console.log('Failed to print error: ', ee.message); - throw e; - } - }; - - var ErrorUtils = _$$_REQUIRE(_dependencyMap[6], 'ErrorUtils'); - - ErrorUtils.setGlobalHandler(handleError); - } - - var ReactNativeVersionCheck = _$$_REQUIRE(_dependencyMap[7], 'ReactNativeVersionCheck'); - - ReactNativeVersionCheck.checkVersions(); - polyfillGlobal('Promise', function () { - return _$$_REQUIRE(_dependencyMap[8], 'Promise'); - }); - polyfillGlobal('regeneratorRuntime', function () { - delete global.regeneratorRuntime; - - _$$_REQUIRE(_dependencyMap[9], 'regenerator-runtime/runtime'); - - return global.regeneratorRuntime; - }); - - var defineLazyTimer = function defineLazyTimer(name) { - polyfillGlobal(name, function () { - return _$$_REQUIRE(_dependencyMap[10], 'JSTimers')[name]; - }); - }; - - defineLazyTimer('setTimeout'); - defineLazyTimer('setInterval'); - defineLazyTimer('setImmediate'); - defineLazyTimer('clearTimeout'); - defineLazyTimer('clearInterval'); - defineLazyTimer('clearImmediate'); - defineLazyTimer('requestAnimationFrame'); - defineLazyTimer('cancelAnimationFrame'); - defineLazyTimer('requestIdleCallback'); - defineLazyTimer('cancelIdleCallback'); - polyfillGlobal('XMLHttpRequest', function () { - return _$$_REQUIRE(_dependencyMap[11], 'XMLHttpRequest'); - }); - polyfillGlobal('FormData', function () { - return _$$_REQUIRE(_dependencyMap[12], 'FormData'); - }); - polyfillGlobal('fetch', function () { - return _$$_REQUIRE(_dependencyMap[13], 'fetch').fetch; - }); - polyfillGlobal('Headers', function () { - return _$$_REQUIRE(_dependencyMap[13], 'fetch').Headers; - }); - polyfillGlobal('Request', function () { - return _$$_REQUIRE(_dependencyMap[13], 'fetch').Request; - }); - polyfillGlobal('Response', function () { - return _$$_REQUIRE(_dependencyMap[13], 'fetch').Response; - }); - polyfillGlobal('WebSocket', function () { - return _$$_REQUIRE(_dependencyMap[14], 'WebSocket'); - }); - polyfillGlobal('Blob', function () { - return _$$_REQUIRE(_dependencyMap[15], 'Blob'); - }); - polyfillGlobal('File', function () { - return _$$_REQUIRE(_dependencyMap[16], 'File'); - }); - polyfillGlobal('FileReader', function () { - return _$$_REQUIRE(_dependencyMap[17], 'FileReader'); - }); - polyfillGlobal('URL', function () { - return _$$_REQUIRE(_dependencyMap[18], 'URL'); - }); - - if (!global.alert) { - global.alert = function (text) { - _$$_REQUIRE(_dependencyMap[19], 'Alert').alert('Alert', '' + text); - }; - } - - var navigator = global.navigator; - - if (navigator === undefined) { - global.navigator = navigator = {}; - } - - polyfillObjectProperty(navigator, 'product', function () { - return 'ReactNative'; - }); - polyfillObjectProperty(navigator, 'geolocation', function () { - return _$$_REQUIRE(_dependencyMap[20], 'Geolocation'); - }); - - var BatchedBridge = _$$_REQUIRE(_dependencyMap[21], 'BatchedBridge'); - - BatchedBridge.registerLazyCallableModule('Systrace', function () { - return _$$_REQUIRE(_dependencyMap[4], 'Systrace'); - }); - BatchedBridge.registerLazyCallableModule('JSTimers', function () { - return _$$_REQUIRE(_dependencyMap[10], 'JSTimers'); - }); - BatchedBridge.registerLazyCallableModule('HeapCapture', function () { - return _$$_REQUIRE(_dependencyMap[22], 'HeapCapture'); - }); - BatchedBridge.registerLazyCallableModule('SamplingProfiler', function () { - return _$$_REQUIRE(_dependencyMap[23], 'SamplingProfiler'); - }); - BatchedBridge.registerLazyCallableModule('RCTLog', function () { - return _$$_REQUIRE(_dependencyMap[24], 'RCTLog'); - }); - BatchedBridge.registerLazyCallableModule('RCTDeviceEventEmitter', function () { - return _$$_REQUIRE(_dependencyMap[25], 'RCTDeviceEventEmitter'); - }); - BatchedBridge.registerLazyCallableModule('RCTNativeAppEventEmitter', function () { - return _$$_REQUIRE(_dependencyMap[26], 'RCTNativeAppEventEmitter'); - }); - BatchedBridge.registerLazyCallableModule('PerformanceLogger', function () { - return _$$_REQUIRE(_dependencyMap[27], 'PerformanceLogger'); - }); - BatchedBridge.registerLazyCallableModule('JSDevSupportModule', function () { - return _$$_REQUIRE(_dependencyMap[28], 'JSDevSupportModule'); - }); - - global.__fetchSegment = function (segmentId, options, callback) { - var _require2 = _$$_REQUIRE(_dependencyMap[29], 'NativeModules'), - SegmentFetcher = _require2.SegmentFetcher; - - if (!SegmentFetcher) { - throw new Error('SegmentFetcher is missing. Please ensure that it is ' + 'included as a NativeModule.'); - } - - SegmentFetcher.fetchSegment(segmentId, options, function (errorObject) { - if (errorObject) { - var error = new Error(errorObject.message); - error.code = errorObject.code; - callback(error); - } - - callback(null); - }); - }; - - if (__DEV__) { - if (!global.__RCTProfileIsProfiling) { - BatchedBridge.registerCallableModule('HMRClient', _$$_REQUIRE(_dependencyMap[30], 'HMRClient')); - - if (!window.document) { - _$$_REQUIRE(_dependencyMap[31], 'setupDevtools'); - } - - var JSInspector = _$$_REQUIRE(_dependencyMap[32], 'JSInspector'); - - JSInspector.registerAgent(_$$_REQUIRE(_dependencyMap[33], 'NetworkAgent')); - } - } -},337,[343,344,345,346,84,342,105,347,348,349,108,350,351,352,353,354,355,356,357,53,358,102,359,360,361,91,92,362,363,93,364,365,366,367],"node_modules/react-native/Libraries/Core/InitializeCore.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var defineLazyObjectProperty = _$$_REQUIRE(_dependencyMap[0], 'defineLazyObjectProperty'); - - function polyfillObjectProperty(object, name, getValue) { - var descriptor = Object.getOwnPropertyDescriptor(object, name); - - if (__DEV__ && descriptor) { - var backupName = "original" + name[0].toUpperCase() + name.substr(1); - Object.defineProperty(object, backupName, _objectSpread({}, descriptor, { - value: object[name] - })); - } - - var _ref = descriptor || {}, - enumerable = _ref.enumerable, - writable = _ref.writable, - configurable = _ref.configurable; - - if (descriptor && !configurable) { - console.error('Failed to set polyfill. ' + name + ' is not configurable.'); - return; - } - - defineLazyObjectProperty(object, name, { - get: getValue, - enumerable: enumerable !== false, - writable: writable !== false - }); - } - - function polyfillGlobal(name, getValue) { - polyfillObjectProperty(global, name, getValue); - } - - module.exports = { - polyfillObjectProperty: polyfillObjectProperty, - polyfillGlobal: polyfillGlobal - }; -},343,[103],"node_modules/react-native/Libraries/Utilities/PolyfillFunctions.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _shouldActuallyPolyfillES6Collection(collectionName) { - var Collection = global[collectionName]; - - if (Collection == null) { - return true; - } - - if (typeof global.Symbol !== 'function') { - return true; - } - - var proto = Collection.prototype; - return Collection == null || typeof Collection !== 'function' || typeof proto.clear !== 'function' || new Collection().size !== 0 || typeof proto.keys !== 'function' || typeof proto.forEach !== 'function'; - } - - var cache = {}; - - function _shouldPolyfillES6Collection(collectionName) { - var result = cache[collectionName]; - - if (result !== undefined) { - return result; - } - - result = _shouldActuallyPolyfillES6Collection(collectionName); - cache[collectionName] = result; - return result; - } - - module.exports = _shouldPolyfillES6Collection; -},344,[],"node_modules/react-native/Libraries/vendor/core/_shouldPolyfillES6Collection.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var _shouldPolyfillES6Collection = _$$_REQUIRE(_dependencyMap[0], '_shouldPolyfillES6Collection'); - - var guid = _$$_REQUIRE(_dependencyMap[1], 'guid'); - - var isNode = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/isNode'); - - var toIterator = _$$_REQUIRE(_dependencyMap[3], 'toIterator'); - - module.exports = function (global, undefined) { - if (!_shouldPolyfillES6Collection('Map')) { - return global.Map; - } - - var KIND_KEY = 'key'; - var KIND_VALUE = 'value'; - var KIND_KEY_VALUE = 'key+value'; - var KEY_PREFIX = '$map_'; - var SECRET_SIZE_PROP; - - if (__DEV__) { - SECRET_SIZE_PROP = '$size' + guid(); - } - - var OLD_IE_HASH_PREFIX = 'IE_HASH_'; - - var Map = function () { - function Map(iterable) { - _classCallCheck(this, Map); - - if (!isObject(this)) { - throw new TypeError('Wrong map object type.'); - } - - initMap(this); - - if (iterable != null) { - var it = toIterator(iterable); - var next; - - while (!(next = it.next()).done) { - if (!isObject(next.value)) { - throw new TypeError('Expected iterable items to be pair objects.'); - } - - this.set(next.value[0], next.value[1]); - } - } - } - - _createClass(Map, [{ - key: "clear", - value: function clear() { - initMap(this); - } - }, { - key: "has", - value: function has(key) { - var index = getIndex(this, key); - return !!(index != null && this._mapData[index]); - } - }, { - key: "set", - value: function set(key, value) { - var index = getIndex(this, key); - - if (index != null && this._mapData[index]) { - this._mapData[index][1] = value; - } else { - index = this._mapData.push([key, value]) - 1; - setIndex(this, key, index); - - if (__DEV__) { - this[SECRET_SIZE_PROP] += 1; - } else { - this.size += 1; - } - } - - return this; - } - }, { - key: "get", - value: function get(key) { - var index = getIndex(this, key); - - if (index == null) { - return undefined; - } else { - return this._mapData[index][1]; - } - } - }, { - key: "delete", - value: function _delete(key) { - var index = getIndex(this, key); - - if (index != null && this._mapData[index]) { - setIndex(this, key, undefined); - this._mapData[index] = undefined; - - if (__DEV__) { - this[SECRET_SIZE_PROP] -= 1; - } else { - this.size -= 1; - } - - return true; - } else { - return false; - } - } - }, { - key: "entries", - value: function entries() { - return new MapIterator(this, KIND_KEY_VALUE); - } - }, { - key: "keys", - value: function keys() { - return new MapIterator(this, KIND_KEY); - } - }, { - key: "values", - value: function values() { - return new MapIterator(this, KIND_VALUE); - } - }, { - key: "forEach", - value: function forEach(callback, thisArg) { - if (typeof callback !== 'function') { - throw new TypeError('Callback must be callable.'); - } - - var boundCallback = callback.bind(thisArg || undefined); - var mapData = this._mapData; - - for (var i = 0; i < mapData.length; i++) { - var entry = mapData[i]; - - if (entry != null) { - boundCallback(entry[1], entry[0], this); - } - } - } - }]); - - return Map; - }(); - - Map.prototype[toIterator.ITERATOR_SYMBOL] = Map.prototype.entries; - - var MapIterator = function () { - function MapIterator(map, kind) { - _classCallCheck(this, MapIterator); - - if (!(isObject(map) && map._mapData)) { - throw new TypeError('Object is not a map.'); - } - - if ([KIND_KEY, KIND_KEY_VALUE, KIND_VALUE].indexOf(kind) === -1) { - throw new Error('Invalid iteration kind.'); - } - - this._map = map; - this._nextIndex = 0; - this._kind = kind; - } - - _createClass(MapIterator, [{ - key: "next", - value: function next() { - if (!this instanceof Map) { - throw new TypeError('Expected to be called on a MapIterator.'); - } - - var map = this._map; - var index = this._nextIndex; - var kind = this._kind; - - if (map == null) { - return createIterResultObject(undefined, true); - } - - var entries = map._mapData; - - while (index < entries.length) { - var record = entries[index]; - index += 1; - this._nextIndex = index; - - if (record) { - if (kind === KIND_KEY) { - return createIterResultObject(record[0], false); - } else if (kind === KIND_VALUE) { - return createIterResultObject(record[1], false); - } else if (kind) { - return createIterResultObject(record, false); - } - } - } - - this._map = undefined; - return createIterResultObject(undefined, true); - } - }]); - - return MapIterator; - }(); - - MapIterator.prototype[toIterator.ITERATOR_SYMBOL] = function () { - return this; - }; - - function getIndex(map, key) { - if (isObject(key)) { - var hash = getHash(key); - return map._objectIndex[hash]; - } else { - var prefixedKey = KEY_PREFIX + key; - - if (typeof key === 'string') { - return map._stringIndex[prefixedKey]; - } else { - return map._otherIndex[prefixedKey]; - } - } - } - - function setIndex(map, key, index) { - var shouldDelete = index == null; - - if (isObject(key)) { - var hash = getHash(key); - - if (shouldDelete) { - delete map._objectIndex[hash]; - } else { - map._objectIndex[hash] = index; - } - } else { - var prefixedKey = KEY_PREFIX + key; - - if (typeof key === 'string') { - if (shouldDelete) { - delete map._stringIndex[prefixedKey]; - } else { - map._stringIndex[prefixedKey] = index; - } - } else { - if (shouldDelete) { - delete map._otherIndex[prefixedKey]; - } else { - map._otherIndex[prefixedKey] = index; - } - } - } - } - - function initMap(map) { - map._mapData = []; - map._objectIndex = {}; - map._stringIndex = {}; - map._otherIndex = {}; - - if (__DEV__) { - if (isES5) { - if (map.hasOwnProperty(SECRET_SIZE_PROP)) { - map[SECRET_SIZE_PROP] = 0; - } else { - Object.defineProperty(map, SECRET_SIZE_PROP, { - value: 0, - writable: true - }); - Object.defineProperty(map, 'size', { - set: function set(v) { - console.error('PLEASE FIX ME: You are changing the map size property which ' + 'should not be writable and will break in production.'); - throw new Error('The map size property is not writable.'); - }, - get: function get() { - return map[SECRET_SIZE_PROP]; - } - }); - } - - return; - } - } - - map.size = 0; - } - - function isObject(o) { - return o != null && (typeof o === 'object' || typeof o === 'function'); - } - - function createIterResultObject(value, done) { - return { - value: value, - done: done - }; - } - - var isES5 = function () { - try { - Object.defineProperty({}, 'x', {}); - return true; - } catch (e) { - return false; - } - }(); - - function isExtensible(o) { - if (!isES5) { - return true; - } else { - return Object.isExtensible(o); - } - } - - function getIENodeHash(node) { - var uniqueID; - - switch (node.nodeType) { - case 1: - uniqueID = node.uniqueID; - break; - - case 9: - uniqueID = node.documentElement.uniqueID; - break; - - default: - return null; - } - - if (uniqueID) { - return OLD_IE_HASH_PREFIX + uniqueID; - } else { - return null; - } - } - - var getHash = function () { - var propIsEnumerable = Object.prototype.propertyIsEnumerable; - var hashProperty = guid(); - var hashCounter = 0; - return function getHash(o) { - if (o[hashProperty]) { - return o[hashProperty]; - } else if (!isES5 && o.propertyIsEnumerable && o.propertyIsEnumerable[hashProperty]) { - return o.propertyIsEnumerable[hashProperty]; - } else if (!isES5 && isNode(o) && getIENodeHash(o)) { - return getIENodeHash(o); - } else if (!isES5 && o[hashProperty]) { - return o[hashProperty]; - } - - if (isExtensible(o)) { - hashCounter += 1; - - if (isES5) { - Object.defineProperty(o, hashProperty, { - enumerable: false, - writable: false, - configurable: false, - value: hashCounter - }); - } else if (o.propertyIsEnumerable) { - o.propertyIsEnumerable = function () { - return propIsEnumerable.apply(this, arguments); - }; - - o.propertyIsEnumerable[hashProperty] = hashCounter; - } else if (isNode(o)) { - o[hashProperty] = hashCounter; - } else { - throw new Error('Unable to set a non-enumerable property on object.'); - } - - return hashCounter; - } else { - throw new Error('Non-extensible objects are not allowed as keys.'); - } - }; - }(); - - return Map; - }(Function('return this')()); -},345,[344,368,369,370],"node_modules/react-native/Libraries/vendor/core/Map.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function guid() { - return 'f' + (Math.random() * (1 << 30)).toString(16).replace('.', ''); - } - - module.exports = guid; -},368,[],"node_modules/react-native/Libraries/vendor/core/guid.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function isNode(object) { - var doc = object ? object.ownerDocument || object : document; - var defaultView = doc.defaultView || window; - return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string')); - } - - module.exports = isNode; -},369,[],"node_modules/react-native/node_modules/fbjs/lib/isNode.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var KIND_KEY = 'key'; - var KIND_VALUE = 'value'; - var KIND_KEY_VAL = 'key+value'; - var ITERATOR_SYMBOL = typeof Symbol === 'function' ? typeof Symbol === "function" ? Symbol.iterator : "@@iterator" : '@@iterator'; - - var toIterator = function () { - if (!(Array.prototype[ITERATOR_SYMBOL] && String.prototype[ITERATOR_SYMBOL])) { - return function () { - var ArrayIterator = function () { - function ArrayIterator(array, kind) { - _classCallCheck(this, ArrayIterator); - - if (!Array.isArray(array)) { - throw new TypeError('Object is not an Array'); - } - - this._iteratedObject = array; - this._kind = kind; - this._nextIndex = 0; - } - - _createClass(ArrayIterator, [{ - key: "next", - value: function next() { - if (!this instanceof ArrayIterator) { - throw new TypeError('Object is not an ArrayIterator'); - } - - if (this._iteratedObject == null) { - return createIterResultObject(undefined, true); - } - - var array = this._iteratedObject; - var len = this._iteratedObject.length; - var index = this._nextIndex; - var kind = this._kind; - - if (index >= len) { - this._iteratedObject = undefined; - return createIterResultObject(undefined, true); - } - - this._nextIndex = index + 1; - - if (kind === KIND_KEY) { - return createIterResultObject(index, false); - } else if (kind === KIND_VALUE) { - return createIterResultObject(array[index], false); - } else if (kind === KIND_KEY_VAL) { - return createIterResultObject([index, array[index]], false); - } - } - }, { - key: '@@iterator', - value: function iterator() { - return this; - } - }]); - - return ArrayIterator; - }(); - - var StringIterator = function () { - function StringIterator(string) { - _classCallCheck(this, StringIterator); - - if (typeof string !== 'string') { - throw new TypeError('Object is not a string'); - } - - this._iteratedString = string; - this._nextIndex = 0; - } - - _createClass(StringIterator, [{ - key: "next", - value: function next() { - if (!this instanceof StringIterator) { - throw new TypeError('Object is not a StringIterator'); - } - - if (this._iteratedString == null) { - return createIterResultObject(undefined, true); - } - - var index = this._nextIndex; - var s = this._iteratedString; - var len = s.length; - - if (index >= len) { - this._iteratedString = undefined; - return createIterResultObject(undefined, true); - } - - var ret; - var first = s.charCodeAt(index); - - if (first < 0xd800 || first > 0xdbff || index + 1 === len) { - ret = s[index]; - } else { - var second = s.charCodeAt(index + 1); - - if (second < 0xdc00 || second > 0xdfff) { - ret = s[index]; - } else { - ret = s[index] + s[index + 1]; - } - } - - this._nextIndex = index + ret.length; - return createIterResultObject(ret, false); - } - }, { - key: '@@iterator', - value: function iterator() { - return this; - } - }]); - - return StringIterator; - }(); - - function createIterResultObject(value, done) { - return { - value: value, - done: done - }; - } - - return function (object, kind) { - if (typeof object === 'string') { - return new StringIterator(object); - } else if (Array.isArray(object)) { - return new ArrayIterator(object, kind || KIND_VALUE); - } else { - return object[ITERATOR_SYMBOL](); - } - }; - }(); - } else { - return function (object) { - return object[ITERATOR_SYMBOL](); - }; - } - }(); - - _extends(toIterator, { - KIND_KEY: KIND_KEY, - KIND_VALUE: KIND_VALUE, - KIND_KEY_VAL: KIND_KEY_VAL, - ITERATOR_SYMBOL: ITERATOR_SYMBOL - }); - - module.exports = toIterator; -},370,[],"node_modules/react-native/Libraries/vendor/core/toIterator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var Map = _$$_REQUIRE(_dependencyMap[0], 'Map'); - - var _shouldPolyfillES6Collection = _$$_REQUIRE(_dependencyMap[1], '_shouldPolyfillES6Collection'); - - var toIterator = _$$_REQUIRE(_dependencyMap[2], 'toIterator'); - - module.exports = function (global) { - if (!_shouldPolyfillES6Collection('Set')) { - return global.Set; - } - - var Set = function () { - function Set(iterable) { - _classCallCheck(this, Set); - - if (this == null || typeof this !== 'object' && typeof this !== 'function') { - throw new TypeError('Wrong set object type.'); - } - - initSet(this); - - if (iterable != null) { - var it = toIterator(iterable); - var next; - - while (!(next = it.next()).done) { - this.add(next.value); - } - } - } - - _createClass(Set, [{ - key: "add", - value: function add(value) { - this._map.set(value, value); - - this.size = this._map.size; - return this; - } - }, { - key: "clear", - value: function clear() { - initSet(this); - } - }, { - key: "delete", - value: function _delete(value) { - var ret = this._map.delete(value); - - this.size = this._map.size; - return ret; - } - }, { - key: "entries", - value: function entries() { - return this._map.entries(); - } - }, { - key: "forEach", - value: function forEach(callback) { - var thisArg = arguments[1]; - - var it = this._map.keys(); - - var next; - - while (!(next = it.next()).done) { - callback.call(thisArg, next.value, next.value, this); - } - } - }, { - key: "has", - value: function has(value) { - return this._map.has(value); - } - }, { - key: "values", - value: function values() { - return this._map.values(); - } - }]); - - return Set; - }(); - - Set.prototype[toIterator.ITERATOR_SYMBOL] = Set.prototype.values; - Set.prototype.keys = Set.prototype.values; - - function initSet(set) { - set._map = new Map(); - set.size = set._map.size; - } - - return Set; - }(Function('return this')()); -},346,[345,344,370],"node_modules/react-native/Libraries/vendor/core/Set.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var exceptionID = 0; - - function reportException(e, isFatal) { - var _require = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'), - ExceptionsManager = _require.ExceptionsManager; - - if (ExceptionsManager) { - var parseErrorStack = _$$_REQUIRE(_dependencyMap[1], 'parseErrorStack'); - - var stack = parseErrorStack(e); - var currentExceptionID = ++exceptionID; - - if (isFatal) { - ExceptionsManager.reportFatalException(e.message, stack, currentExceptionID); - } else { - ExceptionsManager.reportSoftException(e.message, stack, currentExceptionID); - } - - if (__DEV__) { - var symbolicateStackTrace = _$$_REQUIRE(_dependencyMap[2], 'symbolicateStackTrace'); - - symbolicateStackTrace(stack).then(function (prettyStack) { - if (prettyStack) { - ExceptionsManager.updateExceptionMessage(e.message, prettyStack, currentExceptionID); - } else { - throw new Error('The stack is null'); - } - }).catch(function (error) { - return console.warn('Unable to symbolicate stack trace: ' + error.message); - }); - } - } - } - - function handleException(e, isFatal) { - if (!e.message) { - e = new Error(e); - } - - if (console._errorOriginal) { - console._errorOriginal(e.message); - } else { - console.error(e.message); - } - - reportException(e, isFatal); - } - - function reactConsoleErrorHandler() { - console._errorOriginal.apply(console, arguments); - - if (!console.reportErrorsAsExceptions) { - return; - } - - if (arguments[0] && arguments[0].stack) { - reportException(arguments[0], false); - } else { - var stringifySafe = _$$_REQUIRE(_dependencyMap[3], 'stringifySafe'); - - var str = Array.prototype.map.call(arguments, stringifySafe).join(', '); - - if (str.slice(0, 10) === '"Warning: ') { - return; - } - - var error = new Error('console.error: ' + str); - error.framesToPop = 1; - reportException(error, false); - } - } - - function installConsoleErrorReporter() { - if (console._errorOriginal) { - return; - } - - console._errorOriginal = console.error.bind(console); - console.error = reactConsoleErrorHandler; - - if (console.reportErrorsAsExceptions === undefined) { - console.reportErrorsAsExceptions = true; - } - } - - module.exports = { - handleException: handleException, - installConsoleErrorReporter: installConsoleErrorReporter - }; -},342,[93,110,371,107],"node_modules/react-native/Libraries/Core/ExceptionsManager.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var getDevServer = _$$_REQUIRE(_dependencyMap[0], 'getDevServer'); - - var _require = _$$_REQUIRE(_dependencyMap[1], 'NativeModules'), - SourceCode = _require.SourceCode; - - var fetch; - - function isSourcedFromDisk(sourcePath) { - return !/^http/.test(sourcePath) && /[\\/]/.test(sourcePath); - } - - function symbolicateStackTrace(stack) { - var devServer, stackCopy, foundInternalSource, response, json; - return regeneratorRuntime.async(function symbolicateStackTrace$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - if (!fetch) { - fetch = global.fetch || _$$_REQUIRE(_dependencyMap[2], 'fetch').fetch; - } - - devServer = getDevServer(); - - if (devServer.bundleLoadedFromServer) { - _context.next = 4; - break; - } - - throw new Error('Bundle was not loaded from the packager'); - - case 4: - stackCopy = stack; - - if (SourceCode.scriptURL) { - foundInternalSource = false; - stackCopy = stack.map(function (frame) { - if (!foundInternalSource && isSourcedFromDisk(frame.file)) { - return _objectSpread({}, frame, { - file: SourceCode.scriptURL - }); - } - - foundInternalSource = true; - return frame; - }); - } - - _context.next = 8; - return regeneratorRuntime.awrap(fetch(devServer.url + 'symbolicate', { - method: 'POST', - body: JSON.stringify({ - stack: stackCopy - }) - })); - - case 8: - response = _context.sent; - _context.next = 11; - return regeneratorRuntime.awrap(response.json()); - - case 11: - json = _context.sent; - return _context.abrupt("return", json.stack); - - case 13: - case "end": - return _context.stop(); - } - } - }, null, this); - } - - module.exports = symbolicateStackTrace; -},371,[372,93,352],"node_modules/react-native/Libraries/Core/Devtools/symbolicateStackTrace.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _require = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'), - SourceCode = _require.SourceCode; - - var _cachedDevServerURL; - - var FALLBACK = 'http://localhost:8081/'; - - function getDevServer() { - if (_cachedDevServerURL === undefined) { - var match = SourceCode && SourceCode.scriptURL && SourceCode.scriptURL.match(/^https?:\/\/.*?\//); - _cachedDevServerURL = match ? match[0] : null; - } - - return { - url: _cachedDevServerURL || FALLBACK, - bundleLoadedFromServer: _cachedDevServerURL !== null - }; - } - - module.exports = getDevServer; -},372,[93],"node_modules/react-native/Libraries/Core/Devtools/getDevServer.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var whatwg = _$$_REQUIRE(_dependencyMap[0], 'whatwg-fetch'); - - if (whatwg && whatwg.fetch) { - module.exports = whatwg; - } else { - module.exports = { - fetch: fetch, - Headers: Headers, - Request: Request, - Response: Response - }; - } -},352,[373],"node_modules/react-native/Libraries/Network/fetch.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - (function (self) { - 'use strict'; - - if (self.fetch) { - return; - } - - var support = { - searchParams: 'URLSearchParams' in self, - iterable: 'Symbol' in self && 'iterator' in Symbol, - blob: 'FileReader' in self && 'Blob' in self && function () { - try { - new Blob(); - return true; - } catch (e) { - return false; - } - }(), - formData: 'FormData' in self, - arrayBuffer: 'ArrayBuffer' in self - }; - - if (support.arrayBuffer) { - var viewClasses = ['[object Int8Array]', '[object Uint8Array]', '[object Uint8ClampedArray]', '[object Int16Array]', '[object Uint16Array]', '[object Int32Array]', '[object Uint32Array]', '[object Float32Array]', '[object Float64Array]']; - - var isDataView = function isDataView(obj) { - return obj && DataView.prototype.isPrototypeOf(obj); - }; - - var isArrayBufferView = ArrayBuffer.isView || function (obj) { - return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1; - }; - } - - function normalizeName(name) { - if (typeof name !== 'string') { - name = String(name); - } - - if (/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(name)) { - throw new TypeError('Invalid character in header field name'); - } - - return name.toLowerCase(); - } - - function normalizeValue(value) { - if (typeof value !== 'string') { - value = String(value); - } - - return value; - } - - function iteratorFor(items) { - var iterator = { - next: function next() { - var value = items.shift(); - return { - done: value === undefined, - value: value - }; - } - }; - - if (support.iterable) { - iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"] = function () { - return iterator; - }; - } - - return iterator; - } - - function Headers(headers) { - this.map = {}; - - if (headers instanceof Headers) { - headers.forEach(function (value, name) { - this.append(name, value); - }, this); - } else if (Array.isArray(headers)) { - headers.forEach(function (header) { - this.append(header[0], header[1]); - }, this); - } else if (headers) { - Object.getOwnPropertyNames(headers).forEach(function (name) { - this.append(name, headers[name]); - }, this); - } - } - - Headers.prototype.append = function (name, value) { - name = normalizeName(name); - value = normalizeValue(value); - var oldValue = this.map[name]; - this.map[name] = oldValue ? oldValue + ',' + value : value; - }; - - Headers.prototype['delete'] = function (name) { - delete this.map[normalizeName(name)]; - }; - - Headers.prototype.get = function (name) { - name = normalizeName(name); - return this.has(name) ? this.map[name] : null; - }; - - Headers.prototype.has = function (name) { - return this.map.hasOwnProperty(normalizeName(name)); - }; - - Headers.prototype.set = function (name, value) { - this.map[normalizeName(name)] = normalizeValue(value); - }; - - Headers.prototype.forEach = function (callback, thisArg) { - for (var name in this.map) { - if (this.map.hasOwnProperty(name)) { - callback.call(thisArg, this.map[name], name, this); - } - } - }; - - Headers.prototype.keys = function () { - var items = []; - this.forEach(function (value, name) { - items.push(name); - }); - return iteratorFor(items); - }; - - Headers.prototype.values = function () { - var items = []; - this.forEach(function (value) { - items.push(value); - }); - return iteratorFor(items); - }; - - Headers.prototype.entries = function () { - var items = []; - this.forEach(function (value, name) { - items.push([name, value]); - }); - return iteratorFor(items); - }; - - if (support.iterable) { - Headers.prototype[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"] = Headers.prototype.entries; - } - - function consumed(body) { - if (body.bodyUsed) { - return Promise.reject(new TypeError('Already read')); - } - - body.bodyUsed = true; - } - - function fileReaderReady(reader) { - return new Promise(function (resolve, reject) { - reader.onload = function () { - resolve(reader.result); - }; - - reader.onerror = function () { - reject(reader.error); - }; - }); - } - - function readBlobAsArrayBuffer(blob) { - var reader = new FileReader(); - var promise = fileReaderReady(reader); - reader.readAsArrayBuffer(blob); - return promise; - } - - function readBlobAsText(blob) { - var reader = new FileReader(); - var promise = fileReaderReady(reader); - reader.readAsText(blob); - return promise; - } - - function readArrayBufferAsText(buf) { - var view = new Uint8Array(buf); - var chars = new Array(view.length); - - for (var i = 0; i < view.length; i++) { - chars[i] = String.fromCharCode(view[i]); - } - - return chars.join(''); - } - - function bufferClone(buf) { - if (buf.slice) { - return buf.slice(0); - } else { - var view = new Uint8Array(buf.byteLength); - view.set(new Uint8Array(buf)); - return view.buffer; - } - } - - function Body() { - this.bodyUsed = false; - - this._initBody = function (body) { - this._bodyInit = body; - - if (!body) { - this._bodyText = ''; - } else if (typeof body === 'string') { - this._bodyText = body; - } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { - this._bodyBlob = body; - } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { - this._bodyFormData = body; - } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { - this._bodyText = body.toString(); - } else if (support.arrayBuffer && support.blob && isDataView(body)) { - this._bodyArrayBuffer = bufferClone(body.buffer); - this._bodyInit = new Blob([this._bodyArrayBuffer]); - } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) { - this._bodyArrayBuffer = bufferClone(body); - } else { - throw new Error('unsupported BodyInit type'); - } - - if (!this.headers.get('content-type')) { - if (typeof body === 'string') { - this.headers.set('content-type', 'text/plain;charset=UTF-8'); - } else if (this._bodyBlob && this._bodyBlob.type) { - this.headers.set('content-type', this._bodyBlob.type); - } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { - this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); - } - } - }; - - if (support.blob) { - this.blob = function () { - var rejected = consumed(this); - - if (rejected) { - return rejected; - } - - if (this._bodyBlob) { - return Promise.resolve(this._bodyBlob); - } else if (this._bodyArrayBuffer) { - return Promise.resolve(new Blob([this._bodyArrayBuffer])); - } else if (this._bodyFormData) { - throw new Error('could not read FormData body as blob'); - } else { - return Promise.resolve(new Blob([this._bodyText])); - } - }; - - this.arrayBuffer = function () { - if (this._bodyArrayBuffer) { - return consumed(this) || Promise.resolve(this._bodyArrayBuffer); - } else { - return this.blob().then(readBlobAsArrayBuffer); - } - }; - } - - this.text = function () { - var rejected = consumed(this); - - if (rejected) { - return rejected; - } - - if (this._bodyBlob) { - return readBlobAsText(this._bodyBlob); - } else if (this._bodyArrayBuffer) { - return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer)); - } else if (this._bodyFormData) { - throw new Error('could not read FormData body as text'); - } else { - return Promise.resolve(this._bodyText); - } - }; - - if (support.formData) { - this.formData = function () { - return this.text().then(decode); - }; - } - - this.json = function () { - return this.text().then(JSON.parse); - }; - - return this; - } - - var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']; - - function normalizeMethod(method) { - var upcased = method.toUpperCase(); - return methods.indexOf(upcased) > -1 ? upcased : method; - } - - function Request(input, options) { - options = options || {}; - var body = options.body; - - if (input instanceof Request) { - if (input.bodyUsed) { - throw new TypeError('Already read'); - } - - this.url = input.url; - this.credentials = input.credentials; - - if (!options.headers) { - this.headers = new Headers(input.headers); - } - - this.method = input.method; - this.mode = input.mode; - - if (!body && input._bodyInit != null) { - body = input._bodyInit; - input.bodyUsed = true; - } - } else { - this.url = String(input); - } - - this.credentials = options.credentials || this.credentials || 'omit'; - - if (options.headers || !this.headers) { - this.headers = new Headers(options.headers); - } - - this.method = normalizeMethod(options.method || this.method || 'GET'); - this.mode = options.mode || this.mode || null; - this.referrer = null; - - if ((this.method === 'GET' || this.method === 'HEAD') && body) { - throw new TypeError('Body not allowed for GET or HEAD requests'); - } - - this._initBody(body); - } - - Request.prototype.clone = function () { - return new Request(this, { - body: this._bodyInit - }); - }; - - function decode(body) { - var form = new FormData(); - body.trim().split('&').forEach(function (bytes) { - if (bytes) { - var split = bytes.split('='); - var name = split.shift().replace(/\+/g, ' '); - var value = split.join('=').replace(/\+/g, ' '); - form.append(decodeURIComponent(name), decodeURIComponent(value)); - } - }); - return form; - } - - function parseHeaders(rawHeaders) { - var headers = new Headers(); - var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' '); - preProcessedHeaders.split(/\r?\n/).forEach(function (line) { - var parts = line.split(':'); - var key = parts.shift().trim(); - - if (key) { - var value = parts.join(':').trim(); - headers.append(key, value); - } - }); - return headers; - } - - Body.call(Request.prototype); - - function Response(bodyInit, options) { - if (!options) { - options = {}; - } - - this.type = 'default'; - this.status = options.status === undefined ? 200 : options.status; - this.ok = this.status >= 200 && this.status < 300; - this.statusText = 'statusText' in options ? options.statusText : 'OK'; - this.headers = new Headers(options.headers); - this.url = options.url || ''; - - this._initBody(bodyInit); - } - - Body.call(Response.prototype); - - Response.prototype.clone = function () { - return new Response(this._bodyInit, { - status: this.status, - statusText: this.statusText, - headers: new Headers(this.headers), - url: this.url - }); - }; - - Response.error = function () { - var response = new Response(null, { - status: 0, - statusText: '' - }); - response.type = 'error'; - return response; - }; - - var redirectStatuses = [301, 302, 303, 307, 308]; - - Response.redirect = function (url, status) { - if (redirectStatuses.indexOf(status) === -1) { - throw new RangeError('Invalid status code'); - } - - return new Response(null, { - status: status, - headers: { - location: url - } - }); - }; - - self.Headers = Headers; - self.Request = Request; - self.Response = Response; - - self.fetch = function (input, init) { - return new Promise(function (resolve, reject) { - var request = new Request(input, init); - var xhr = new XMLHttpRequest(); - - xhr.onload = function () { - var options = { - status: xhr.status, - statusText: xhr.statusText, - headers: parseHeaders(xhr.getAllResponseHeaders() || '') - }; - options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL'); - var body = 'response' in xhr ? xhr.response : xhr.responseText; - resolve(new Response(body, options)); - }; - - xhr.onerror = function () { - reject(new TypeError('Network request failed')); - }; - - xhr.ontimeout = function () { - reject(new TypeError('Network request failed')); - }; - - xhr.open(request.method, request.url, true); - - if (request.credentials === 'include') { - xhr.withCredentials = true; - } else if (request.credentials === 'omit') { - xhr.withCredentials = false; - } - - request.headers.forEach(function (value, name) { - xhr.setRequestHeader(name, value); - }); - xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit); - }); - }; - - self.fetch.polyfill = true; - })(typeof self !== 'undefined' ? self : this); -},373,[],"node_modules/react-native/Libraries/vendor/core/whatwg-fetch.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _require = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'), - PlatformConstants = _require.PlatformConstants; - - var ReactNativeVersion = _$$_REQUIRE(_dependencyMap[1], 'ReactNativeVersion'); - - exports.checkVersions = function checkVersions() { - if (!PlatformConstants) { - return; - } - - var nativeVersion = PlatformConstants.reactNativeVersion; - - if (ReactNativeVersion.version.major !== nativeVersion.major || ReactNativeVersion.version.minor !== nativeVersion.minor) { - console.error("React Native version mismatch.\n\nJavaScript version: " + _formatVersion(ReactNativeVersion.version) + "\n" + ("Native version: " + _formatVersion(nativeVersion) + "\n\n") + 'Make sure that you have rebuilt the native code. If the problem ' + 'persists try clearing the Watchman and packager caches with ' + '`watchman watch-del-all && react-native start --reset-cache`.'); - } - }; - - function _formatVersion(version) { - return version.major + "." + version.minor + "." + version.patch + (version.prerelease !== null ? "-" + version.prerelease : ''); - } -},347,[93,374],"node_modules/react-native/Libraries/Core/ReactNativeVersionCheck.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - exports.version = { - major: 0, - minor: 56, - patch: 0, - prerelease: null - }; -},374,[],"node_modules/react-native/Libraries/Core/ReactNativeVersion.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var Promise = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/Promise.native'); - - if (__DEV__) { - _$$_REQUIRE(_dependencyMap[1], 'promise/setimmediate/rejection-tracking').enable({ - allRejections: true, - onUnhandled: function onUnhandled(id) { - var error = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var message; - var stack; - var stringValue = Object.prototype.toString.call(error); - - if (stringValue === '[object Error]') { - message = Error.prototype.toString.call(error); - stack = error.stack; - } else { - message = _$$_REQUIRE(_dependencyMap[2], 'pretty-format')(error); - } - - var warning = "Possible Unhandled Promise Rejection (id: " + id + "):\n" + (message + "\n") + (stack == null ? '' : stack); - console.warn(warning); - }, - onHandled: function onHandled(id) { - var warning = "Promise Rejection Handled (id: " + id + ")\n" + 'This means you can ignore any previous messages of the form ' + ("\"Possible Unhandled Promise Rejection (id: " + id + "):\""); - console.warn(warning); - } - }); - } - - module.exports = Promise; -},348,[375,376,377],"node_modules/react-native/Libraries/Promise.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var Promise = _$$_REQUIRE(_dependencyMap[0], 'promise/setimmediate/es6-extensions'); - - _$$_REQUIRE(_dependencyMap[1], 'promise/setimmediate/done'); - - Promise.prototype['finally'] = function (onSettled) { - return this.then(onSettled, onSettled); - }; - - module.exports = Promise; -},375,[378,379],"node_modules/react-native/node_modules/fbjs/lib/Promise.native.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var Promise = _$$_REQUIRE(_dependencyMap[0], './core.js'); - - module.exports = Promise; - var TRUE = valuePromise(true); - var FALSE = valuePromise(false); - var NULL = valuePromise(null); - var UNDEFINED = valuePromise(undefined); - var ZERO = valuePromise(0); - var EMPTYSTRING = valuePromise(''); - - function valuePromise(value) { - var p = new Promise(Promise._61); - p._65 = 1; - p._55 = value; - return p; - } - - Promise.resolve = function (value) { - if (value instanceof Promise) return value; - if (value === null) return NULL; - if (value === undefined) return UNDEFINED; - if (value === true) return TRUE; - if (value === false) return FALSE; - if (value === 0) return ZERO; - if (value === '') return EMPTYSTRING; - - if (typeof value === 'object' || typeof value === 'function') { - try { - var then = value.then; - - if (typeof then === 'function') { - return new Promise(then.bind(value)); - } - } catch (ex) { - return new Promise(function (resolve, reject) { - reject(ex); - }); - } - } - - return valuePromise(value); - }; - - Promise.all = function (arr) { - var args = Array.prototype.slice.call(arr); - return new Promise(function (resolve, reject) { - if (args.length === 0) return resolve([]); - var remaining = args.length; - - function res(i, val) { - if (val && (typeof val === 'object' || typeof val === 'function')) { - if (val instanceof Promise && val.then === Promise.prototype.then) { - while (val._65 === 3) { - val = val._55; - } - - if (val._65 === 1) return res(i, val._55); - if (val._65 === 2) reject(val._55); - val.then(function (val) { - res(i, val); - }, reject); - return; - } else { - var then = val.then; - - if (typeof then === 'function') { - var p = new Promise(then.bind(val)); - p.then(function (val) { - res(i, val); - }, reject); - return; - } - } - } - - args[i] = val; - - if (--remaining === 0) { - resolve(args); - } - } - - for (var i = 0; i < args.length; i++) { - res(i, args[i]); - } - }); - }; - - Promise.reject = function (value) { - return new Promise(function (resolve, reject) { - reject(value); - }); - }; - - Promise.race = function (values) { - return new Promise(function (resolve, reject) { - values.forEach(function (value) { - Promise.resolve(value).then(resolve, reject); - }); - }); - }; - - Promise.prototype['catch'] = function (onRejected) { - return this.then(null, onRejected); - }; -},378,[380],"node_modules/promise/setimmediate/es6-extensions.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function noop() {} - - var LAST_ERROR = null; - var IS_ERROR = {}; - - function getThen(obj) { - try { - return obj.then; - } catch (ex) { - LAST_ERROR = ex; - return IS_ERROR; - } - } - - function tryCallOne(fn, a) { - try { - return fn(a); - } catch (ex) { - LAST_ERROR = ex; - return IS_ERROR; - } - } - - function tryCallTwo(fn, a, b) { - try { - fn(a, b); - } catch (ex) { - LAST_ERROR = ex; - return IS_ERROR; - } - } - - module.exports = Promise; - - function Promise(fn) { - if (typeof this !== 'object') { - throw new TypeError('Promises must be constructed via new'); - } - - if (typeof fn !== 'function') { - throw new TypeError('Promise constructor\'s argument is not a function'); - } - - this._40 = 0; - this._65 = 0; - this._55 = null; - this._72 = null; - if (fn === noop) return; - doResolve(fn, this); - } - - Promise._37 = null; - Promise._87 = null; - Promise._61 = noop; - - Promise.prototype.then = function (onFulfilled, onRejected) { - if (this.constructor !== Promise) { - return safeThen(this, onFulfilled, onRejected); - } - - var res = new Promise(noop); - handle(this, new Handler(onFulfilled, onRejected, res)); - return res; - }; - - function safeThen(self, onFulfilled, onRejected) { - return new self.constructor(function (resolve, reject) { - var res = new Promise(noop); - res.then(resolve, reject); - handle(self, new Handler(onFulfilled, onRejected, res)); - }); - } - - function handle(self, deferred) { - while (self._65 === 3) { - self = self._55; - } - - if (Promise._37) { - Promise._37(self); - } - - if (self._65 === 0) { - if (self._40 === 0) { - self._40 = 1; - self._72 = deferred; - return; - } - - if (self._40 === 1) { - self._40 = 2; - self._72 = [self._72, deferred]; - return; - } - - self._72.push(deferred); - - return; - } - - handleResolved(self, deferred); - } - - function handleResolved(self, deferred) { - setImmediate(function () { - var cb = self._65 === 1 ? deferred.onFulfilled : deferred.onRejected; - - if (cb === null) { - if (self._65 === 1) { - resolve(deferred.promise, self._55); - } else { - reject(deferred.promise, self._55); - } - - return; - } - - var ret = tryCallOne(cb, self._55); - - if (ret === IS_ERROR) { - reject(deferred.promise, LAST_ERROR); - } else { - resolve(deferred.promise, ret); - } - }); - } - - function resolve(self, newValue) { - if (newValue === self) { - return reject(self, new TypeError('A promise cannot be resolved with itself.')); - } - - if (newValue && (typeof newValue === 'object' || typeof newValue === 'function')) { - var then = getThen(newValue); - - if (then === IS_ERROR) { - return reject(self, LAST_ERROR); - } - - if (then === self.then && newValue instanceof Promise) { - self._65 = 3; - self._55 = newValue; - finale(self); - return; - } else if (typeof then === 'function') { - doResolve(then.bind(newValue), self); - return; - } - } - - self._65 = 1; - self._55 = newValue; - finale(self); - } - - function reject(self, newValue) { - self._65 = 2; - self._55 = newValue; - - if (Promise._87) { - Promise._87(self, newValue); - } - - finale(self); - } - - function finale(self) { - if (self._40 === 1) { - handle(self, self._72); - self._72 = null; - } - - if (self._40 === 2) { - for (var i = 0; i < self._72.length; i++) { - handle(self, self._72[i]); - } - - self._72 = null; - } - } - - function Handler(onFulfilled, onRejected, promise) { - this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null; - this.onRejected = typeof onRejected === 'function' ? onRejected : null; - this.promise = promise; - } - - function doResolve(fn, promise) { - var done = false; - var res = tryCallTwo(fn, function (value) { - if (done) return; - done = true; - resolve(promise, value); - }, function (reason) { - if (done) return; - done = true; - reject(promise, reason); - }); - - if (!done && res === IS_ERROR) { - done = true; - reject(promise, LAST_ERROR); - } - } -},380,[],"node_modules/promise/setimmediate/core.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var Promise = _$$_REQUIRE(_dependencyMap[0], './core.js'); - - module.exports = Promise; - - Promise.prototype.done = function (onFulfilled, onRejected) { - var self = arguments.length ? this.then.apply(this, arguments) : this; - self.then(null, function (err) { - setTimeout(function () { - throw err; - }, 0); - }); - }; -},379,[380],"node_modules/promise/setimmediate/done.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var Promise = _$$_REQUIRE(_dependencyMap[0], './core'); - - var DEFAULT_WHITELIST = [ReferenceError, TypeError, RangeError]; - var enabled = false; - exports.disable = disable; - - function disable() { - enabled = false; - Promise._37 = null; - Promise._87 = null; - } - - exports.enable = enable; - - function enable(options) { - options = options || {}; - if (enabled) disable(); - enabled = true; - var id = 0; - var displayId = 0; - var rejections = {}; - - Promise._37 = function (promise) { - if (promise._65 === 2 && rejections[promise._51]) { - if (rejections[promise._51].logged) { - onHandled(promise._51); - } else { - clearTimeout(rejections[promise._51].timeout); - } - - delete rejections[promise._51]; - } - }; - - Promise._87 = function (promise, err) { - if (promise._40 === 0) { - promise._51 = id++; - rejections[promise._51] = { - displayId: null, - error: err, - timeout: setTimeout(onUnhandled.bind(null, promise._51), matchWhitelist(err, DEFAULT_WHITELIST) ? 100 : 2000), - logged: false - }; - } - }; - - function onUnhandled(id) { - if (options.allRejections || matchWhitelist(rejections[id].error, options.whitelist || DEFAULT_WHITELIST)) { - rejections[id].displayId = displayId++; - - if (options.onUnhandled) { - rejections[id].logged = true; - options.onUnhandled(rejections[id].displayId, rejections[id].error); - } else { - rejections[id].logged = true; - logError(rejections[id].displayId, rejections[id].error); - } - } - } - - function onHandled(id) { - if (rejections[id].logged) { - if (options.onHandled) { - options.onHandled(rejections[id].displayId, rejections[id].error); - } else if (!rejections[id].onUnhandled) { - console.warn('Promise Rejection Handled (id: ' + rejections[id].displayId + '):'); - console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id ' + rejections[id].displayId + '.'); - } - } - } - } - - function logError(id, error) { - console.warn('Possible Unhandled Promise Rejection (id: ' + id + '):'); - var errStr = (error && (error.stack || error)) + ''; - errStr.split('\n').forEach(function (line) { - console.warn(' ' + line); - }); - } - - function matchWhitelist(error, list) { - return list.some(function (cls) { - return error instanceof cls; - }); - } -},376,[380],"node_modules/promise/setimmediate/rejection-tracking.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var printString = _$$_REQUIRE(_dependencyMap[0], './printString'); - - var toString = Object.prototype.toString; - var toISOString = Date.prototype.toISOString; - var errorToString = Error.prototype.toString; - var regExpToString = RegExp.prototype.toString; - var symbolToString = (typeof Symbol === "function" ? Symbol.prototype : "@@prototype").toString; - var SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/; - var NEWLINE_REGEXP = /\n/ig; - - var getSymbols = Object.getOwnPropertySymbols || function (obj) { - return []; - }; - - function isToStringedArrayType(toStringed) { - return toStringed === '[object Array]' || toStringed === '[object ArrayBuffer]' || toStringed === '[object DataView]' || toStringed === '[object Float32Array]' || toStringed === '[object Float64Array]' || toStringed === '[object Int8Array]' || toStringed === '[object Int16Array]' || toStringed === '[object Int32Array]' || toStringed === '[object Uint8Array]' || toStringed === '[object Uint8ClampedArray]' || toStringed === '[object Uint16Array]' || toStringed === '[object Uint32Array]'; - } - - function printNumber(val) { - if (val != +val) return 'NaN'; - var isNegativeZero = val === 0 && 1 / val < 0; - return isNegativeZero ? '-0' : '' + val; - } - - function printFunction(val, printFunctionName) { - if (!printFunctionName) { - return '[Function]'; - } else if (val.name === '') { - return '[Function anonymous]'; - } else { - return '[Function ' + val.name + ']'; - } - } - - function printSymbol(val) { - return symbolToString.call(val).replace(SYMBOL_REGEXP, 'Symbol($1)'); - } - - function printError(val) { - return '[' + errorToString.call(val) + ']'; - } - - function printBasicValue(val, printFunctionName, escapeRegex) { - if (val === true || val === false) return '' + val; - if (val === undefined) return 'undefined'; - if (val === null) return 'null'; - var typeOf = typeof val; - if (typeOf === 'number') return printNumber(val); - if (typeOf === 'string') return '"' + printString(val) + '"'; - if (typeOf === 'function') return printFunction(val, printFunctionName); - if (typeOf === 'symbol') return printSymbol(val); - var toStringed = toString.call(val); - if (toStringed === '[object WeakMap]') return 'WeakMap {}'; - if (toStringed === '[object WeakSet]') return 'WeakSet {}'; - if (toStringed === '[object Function]' || toStringed === '[object GeneratorFunction]') return printFunction(val, printFunctionName); - if (toStringed === '[object Symbol]') return printSymbol(val); - if (toStringed === '[object Date]') return toISOString.call(val); - if (toStringed === '[object Error]') return printError(val); - - if (toStringed === '[object RegExp]') { - if (escapeRegex) { - return printString(regExpToString.call(val)); - } - - return regExpToString.call(val); - } - - ; - if (toStringed === '[object Arguments]' && val.length === 0) return 'Arguments []'; - if (isToStringedArrayType(toStringed) && val.length === 0) return val.constructor.name + ' []'; - if (val instanceof Error) return printError(val); - return false; - } - - function printList(list, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex) { - var body = ''; - - if (list.length) { - body += edgeSpacing; - var innerIndent = prevIndent + indent; - - for (var i = 0; i < list.length; i++) { - body += innerIndent + print(list[i], indent, innerIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); - - if (i < list.length - 1) { - body += ',' + spacing; - } - } - - body += (min ? '' : ',') + edgeSpacing + prevIndent; - } - - return '[' + body + ']'; - } - - function printArguments(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex) { - return (min ? '' : 'Arguments ') + printList(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); - } - - function printArray(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex) { - return (min ? '' : val.constructor.name + ' ') + printList(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); - } - - function printMap(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex) { - var result = 'Map {'; - var iterator = val.entries(); - var current = iterator.next(); - - if (!current.done) { - result += edgeSpacing; - var innerIndent = prevIndent + indent; - - while (!current.done) { - var key = print(current.value[0], indent, innerIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); - var value = print(current.value[1], indent, innerIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); - result += innerIndent + key + ' => ' + value; - current = iterator.next(); - - if (!current.done) { - result += ',' + spacing; - } - } - - result += (min ? '' : ',') + edgeSpacing + prevIndent; - } - - return result + '}'; - } - - function printObject(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex) { - var constructor = min ? '' : val.constructor ? val.constructor.name + ' ' : 'Object '; - var result = constructor + '{'; - var keys = Object.keys(val).sort(); - var symbols = getSymbols(val); - - if (symbols.length) { - keys = keys.filter(function (key) { - return !(typeof key === 'symbol' || toString.call(key) === '[object Symbol]'); - }).concat(symbols); - } - - if (keys.length) { - result += edgeSpacing; - var innerIndent = prevIndent + indent; - - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - var name = print(key, indent, innerIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); - var value = print(val[key], indent, innerIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); - result += innerIndent + name + ': ' + value; - - if (i < keys.length - 1) { - result += ',' + spacing; - } - } - - result += (min ? '' : ',') + edgeSpacing + prevIndent; - } - - return result + '}'; - } - - function printSet(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex) { - var result = 'Set {'; - var iterator = val.entries(); - var current = iterator.next(); - - if (!current.done) { - result += edgeSpacing; - var innerIndent = prevIndent + indent; - - while (!current.done) { - result += innerIndent + print(current.value[1], indent, innerIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); - current = iterator.next(); - - if (!current.done) { - result += ',' + spacing; - } - } - - result += (min ? '' : ',') + edgeSpacing + prevIndent; - } - - return result + '}'; - } - - function printComplexValue(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex) { - refs = refs.slice(); - - if (refs.indexOf(val) > -1) { - return '[Circular]'; - } else { - refs.push(val); - } - - currentDepth++; - var hitMaxDepth = currentDepth > maxDepth; - - if (callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON === 'function') { - return print(val.toJSON(), indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); - } - - var toStringed = toString.call(val); - - if (toStringed === '[object Arguments]') { - return hitMaxDepth ? '[Arguments]' : printArguments(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); - } else if (isToStringedArrayType(toStringed)) { - return hitMaxDepth ? '[Array]' : printArray(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); - } else if (toStringed === '[object Map]') { - return hitMaxDepth ? '[Map]' : printMap(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); - } else if (toStringed === '[object Set]') { - return hitMaxDepth ? '[Set]' : printSet(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); - } else if (typeof val === 'object') { - return hitMaxDepth ? '[Object]' : printObject(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); - } - } - - function printPlugin(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex) { - var match = false; - var plugin; - - for (var p = 0; p < plugins.length; p++) { - plugin = plugins[p]; - - if (plugin.test(val)) { - match = true; - break; - } - } - - if (!match) { - return false; - } - - function boundPrint(val) { - return print(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); - } - - function boundIndent(str) { - var indentation = prevIndent + indent; - return indentation + str.replace(NEWLINE_REGEXP, '\n' + indentation); - } - - return plugin.print(val, boundPrint, boundIndent, { - edgeSpacing: edgeSpacing, - spacing: spacing - }); - } - - function print(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex) { - var basic = printBasicValue(val, printFunctionName, escapeRegex); - if (basic) return basic; - var plugin = printPlugin(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); - if (plugin) return plugin; - return printComplexValue(val, indent, prevIndent, spacing, edgeSpacing, refs, maxDepth, currentDepth, plugins, min, callToJSON, printFunctionName, escapeRegex); - } - - var DEFAULTS = { - callToJSON: true, - indent: 2, - maxDepth: Infinity, - min: false, - plugins: [], - printFunctionName: true, - escapeRegex: false - }; - - function validateOptions(opts) { - Object.keys(opts).forEach(function (key) { - if (!DEFAULTS.hasOwnProperty(key)) { - throw new Error('prettyFormat: Invalid option: ' + key); - } - }); - - if (opts.min && opts.indent !== undefined && opts.indent !== 0) { - throw new Error('prettyFormat: Cannot run with min option and indent'); - } - } - - function normalizeOptions(opts) { - var result = {}; - Object.keys(DEFAULTS).forEach(function (key) { - return result[key] = opts.hasOwnProperty(key) ? opts[key] : DEFAULTS[key]; - }); - - if (result.min) { - result.indent = 0; - } - - return result; - } - - function createIndent(indent) { - return new Array(indent + 1).join(' '); - } - - function prettyFormat(val, opts) { - if (!opts) { - opts = DEFAULTS; - } else { - validateOptions(opts); - opts = normalizeOptions(opts); - } - - var indent; - var refs; - var prevIndent = ''; - var currentDepth = 0; - var spacing = opts.min ? ' ' : '\n'; - var edgeSpacing = opts.min ? '' : '\n'; - - if (opts && opts.plugins.length) { - indent = createIndent(opts.indent); - refs = []; - var pluginsResult = printPlugin(val, indent, prevIndent, spacing, edgeSpacing, refs, opts.maxDepth, currentDepth, opts.plugins, opts.min, opts.callToJSON, opts.printFunctionName, opts.escapeRegex); - if (pluginsResult) return pluginsResult; - } - - var basicResult = printBasicValue(val, opts.printFunctionName, opts.escapeRegex); - if (basicResult) return basicResult; - if (!indent) indent = createIndent(opts.indent); - if (!refs) refs = []; - return printComplexValue(val, indent, prevIndent, spacing, edgeSpacing, refs, opts.maxDepth, currentDepth, opts.plugins, opts.min, opts.callToJSON, opts.printFunctionName, opts.escapeRegex); - } - - module.exports = prettyFormat; -},377,[381],"node_modules/react-native/node_modules/pretty-format/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var ESCAPED_CHARACTERS = /(\\|\"|\')/g; - - module.exports = function printString(val) { - return val.replace(ESCAPED_CHARACTERS, '\\$1'); - }; -},381,[],"node_modules/react-native/node_modules/pretty-format/printString.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - !function (global) { - "use strict"; - - var Op = Object.prototype; - var hasOwn = Op.hasOwnProperty; - var undefined; - var $Symbol = typeof Symbol === "function" ? Symbol : {}; - var iteratorSymbol = $Symbol.iterator || "@@iterator"; - var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; - var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; - var inModule = typeof module === "object"; - var runtime = global.regeneratorRuntime; - - if (runtime) { - if (inModule) { - module.exports = runtime; - } - - return; - } - - runtime = global.regeneratorRuntime = inModule ? module.exports : {}; - - function wrap(innerFn, outerFn, self, tryLocsList) { - var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; - var generator = Object.create(protoGenerator.prototype); - var context = new Context(tryLocsList || []); - generator._invoke = makeInvokeMethod(innerFn, self, context); - return generator; - } - - runtime.wrap = wrap; - - function tryCatch(fn, obj, arg) { - try { - return { - type: "normal", - arg: fn.call(obj, arg) - }; - } catch (err) { - return { - type: "throw", - arg: err - }; - } - } - - var GenStateSuspendedStart = "suspendedStart"; - var GenStateSuspendedYield = "suspendedYield"; - var GenStateExecuting = "executing"; - var GenStateCompleted = "completed"; - var ContinueSentinel = {}; - - function Generator() {} - - function GeneratorFunction() {} - - function GeneratorFunctionPrototype() {} - - var IteratorPrototype = {}; - - IteratorPrototype[iteratorSymbol] = function () { - return this; - }; - - var getProto = Object.getPrototypeOf; - var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); - - if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { - IteratorPrototype = NativeIteratorPrototype; - } - - var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); - GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; - GeneratorFunctionPrototype.constructor = GeneratorFunction; - GeneratorFunctionPrototype[toStringTagSymbol] = GeneratorFunction.displayName = "GeneratorFunction"; - - function defineIteratorMethods(prototype) { - ["next", "throw", "return"].forEach(function (method) { - prototype[method] = function (arg) { - return this._invoke(method, arg); - }; - }); - } - - runtime.isGeneratorFunction = function (genFun) { - var ctor = typeof genFun === "function" && genFun.constructor; - return ctor ? ctor === GeneratorFunction || (ctor.displayName || ctor.name) === "GeneratorFunction" : false; - }; - - runtime.mark = function (genFun) { - if (Object.setPrototypeOf) { - Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); - } else { - genFun.__proto__ = GeneratorFunctionPrototype; - - if (!(toStringTagSymbol in genFun)) { - genFun[toStringTagSymbol] = "GeneratorFunction"; - } - } - - genFun.prototype = Object.create(Gp); - return genFun; - }; - - runtime.awrap = function (arg) { - return { - __await: arg - }; - }; - - function AsyncIterator(generator) { - function invoke(method, arg, resolve, reject) { - var record = tryCatch(generator[method], generator, arg); - - if (record.type === "throw") { - reject(record.arg); - } else { - var result = record.arg; - var value = result.value; - - if (value && typeof value === "object" && hasOwn.call(value, "__await")) { - return Promise.resolve(value.__await).then(function (value) { - invoke("next", value, resolve, reject); - }, function (err) { - invoke("throw", err, resolve, reject); - }); - } - - return Promise.resolve(value).then(function (unwrapped) { - result.value = unwrapped; - resolve(result); - }, reject); - } - } - - var previousPromise; - - function enqueue(method, arg) { - function callInvokeWithMethodAndArg() { - return new Promise(function (resolve, reject) { - invoke(method, arg, resolve, reject); - }); - } - - return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); - } - - this._invoke = enqueue; - } - - defineIteratorMethods(AsyncIterator.prototype); - - AsyncIterator.prototype[asyncIteratorSymbol] = function () { - return this; - }; - - runtime.AsyncIterator = AsyncIterator; - - runtime.async = function (innerFn, outerFn, self, tryLocsList) { - var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList)); - return runtime.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { - return result.done ? result.value : iter.next(); - }); - }; - - function makeInvokeMethod(innerFn, self, context) { - var state = GenStateSuspendedStart; - return function invoke(method, arg) { - if (state === GenStateExecuting) { - throw new Error("Generator is already running"); - } - - if (state === GenStateCompleted) { - if (method === "throw") { - throw arg; - } - - return doneResult(); - } - - context.method = method; - context.arg = arg; - - while (true) { - var delegate = context.delegate; - - if (delegate) { - var delegateResult = maybeInvokeDelegate(delegate, context); - - if (delegateResult) { - if (delegateResult === ContinueSentinel) continue; - return delegateResult; - } - } - - if (context.method === "next") { - context.sent = context._sent = context.arg; - } else if (context.method === "throw") { - if (state === GenStateSuspendedStart) { - state = GenStateCompleted; - throw context.arg; - } - - context.dispatchException(context.arg); - } else if (context.method === "return") { - context.abrupt("return", context.arg); - } - - state = GenStateExecuting; - var record = tryCatch(innerFn, self, context); - - if (record.type === "normal") { - state = context.done ? GenStateCompleted : GenStateSuspendedYield; - - if (record.arg === ContinueSentinel) { - continue; - } - - return { - value: record.arg, - done: context.done - }; - } else if (record.type === "throw") { - state = GenStateCompleted; - context.method = "throw"; - context.arg = record.arg; - } - } - }; - } - - function maybeInvokeDelegate(delegate, context) { - var method = delegate.iterator[context.method]; - - if (method === undefined) { - context.delegate = null; - - if (context.method === "throw") { - if (delegate.iterator.return) { - context.method = "return"; - context.arg = undefined; - maybeInvokeDelegate(delegate, context); - - if (context.method === "throw") { - return ContinueSentinel; - } - } - - context.method = "throw"; - context.arg = new TypeError("The iterator does not provide a 'throw' method"); - } - - return ContinueSentinel; - } - - var record = tryCatch(method, delegate.iterator, context.arg); - - if (record.type === "throw") { - context.method = "throw"; - context.arg = record.arg; - context.delegate = null; - return ContinueSentinel; - } - - var info = record.arg; - - if (!info) { - context.method = "throw"; - context.arg = new TypeError("iterator result is not an object"); - context.delegate = null; - return ContinueSentinel; - } - - if (info.done) { - context[delegate.resultName] = info.value; - context.next = delegate.nextLoc; - - if (context.method !== "return") { - context.method = "next"; - context.arg = undefined; - } - } else { - return info; - } - - context.delegate = null; - return ContinueSentinel; - } - - defineIteratorMethods(Gp); - Gp[toStringTagSymbol] = "Generator"; - - Gp[iteratorSymbol] = function () { - return this; - }; - - Gp.toString = function () { - return "[object Generator]"; - }; - - function pushTryEntry(locs) { - var entry = { - tryLoc: locs[0] - }; - - if (1 in locs) { - entry.catchLoc = locs[1]; - } - - if (2 in locs) { - entry.finallyLoc = locs[2]; - entry.afterLoc = locs[3]; - } - - this.tryEntries.push(entry); - } - - function resetTryEntry(entry) { - var record = entry.completion || {}; - record.type = "normal"; - delete record.arg; - entry.completion = record; - } - - function Context(tryLocsList) { - this.tryEntries = [{ - tryLoc: "root" - }]; - tryLocsList.forEach(pushTryEntry, this); - this.reset(true); - } - - runtime.keys = function (object) { - var keys = []; - - for (var key in object) { - keys.push(key); - } - - keys.reverse(); - return function next() { - while (keys.length) { - var key = keys.pop(); - - if (key in object) { - next.value = key; - next.done = false; - return next; - } - } - - next.done = true; - return next; - }; - }; - - function values(iterable) { - if (iterable) { - var iteratorMethod = iterable[iteratorSymbol]; - - if (iteratorMethod) { - return iteratorMethod.call(iterable); - } - - if (typeof iterable.next === "function") { - return iterable; - } - - if (!isNaN(iterable.length)) { - var i = -1, - next = function next() { - while (++i < iterable.length) { - if (hasOwn.call(iterable, i)) { - next.value = iterable[i]; - next.done = false; - return next; - } - } - - next.value = undefined; - next.done = true; - return next; - }; - - return next.next = next; - } - } - - return { - next: doneResult - }; - } - - runtime.values = values; - - function doneResult() { - return { - value: undefined, - done: true - }; - } - - Context.prototype = { - constructor: Context, - reset: function reset(skipTempReset) { - this.prev = 0; - this.next = 0; - this.sent = this._sent = undefined; - this.done = false; - this.delegate = null; - this.method = "next"; - this.arg = undefined; - this.tryEntries.forEach(resetTryEntry); - - if (!skipTempReset) { - for (var name in this) { - if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) { - this[name] = undefined; - } - } - } - }, - stop: function stop() { - this.done = true; - var rootEntry = this.tryEntries[0]; - var rootRecord = rootEntry.completion; - - if (rootRecord.type === "throw") { - throw rootRecord.arg; - } - - return this.rval; - }, - dispatchException: function dispatchException(exception) { - if (this.done) { - throw exception; - } - - var context = this; - - function handle(loc, caught) { - record.type = "throw"; - record.arg = exception; - context.next = loc; - - if (caught) { - context.method = "next"; - context.arg = undefined; - } - - return !!caught; - } - - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - var record = entry.completion; - - if (entry.tryLoc === "root") { - return handle("end"); - } - - if (entry.tryLoc <= this.prev) { - var hasCatch = hasOwn.call(entry, "catchLoc"); - var hasFinally = hasOwn.call(entry, "finallyLoc"); - - if (hasCatch && hasFinally) { - if (this.prev < entry.catchLoc) { - return handle(entry.catchLoc, true); - } else if (this.prev < entry.finallyLoc) { - return handle(entry.finallyLoc); - } - } else if (hasCatch) { - if (this.prev < entry.catchLoc) { - return handle(entry.catchLoc, true); - } - } else if (hasFinally) { - if (this.prev < entry.finallyLoc) { - return handle(entry.finallyLoc); - } - } else { - throw new Error("try statement without catch or finally"); - } - } - } - }, - abrupt: function abrupt(type, arg) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - - if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { - var finallyEntry = entry; - break; - } - } - - if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) { - finallyEntry = null; - } - - var record = finallyEntry ? finallyEntry.completion : {}; - record.type = type; - record.arg = arg; - - if (finallyEntry) { - this.method = "next"; - this.next = finallyEntry.finallyLoc; - return ContinueSentinel; - } - - return this.complete(record); - }, - complete: function complete(record, afterLoc) { - if (record.type === "throw") { - throw record.arg; - } - - if (record.type === "break" || record.type === "continue") { - this.next = record.arg; - } else if (record.type === "return") { - this.rval = this.arg = record.arg; - this.method = "return"; - this.next = "end"; - } else if (record.type === "normal" && afterLoc) { - this.next = afterLoc; - } - - return ContinueSentinel; - }, - finish: function finish(finallyLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - - if (entry.finallyLoc === finallyLoc) { - this.complete(entry.completion, entry.afterLoc); - resetTryEntry(entry); - return ContinueSentinel; - } - } - }, - "catch": function _catch(tryLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - - if (entry.tryLoc === tryLoc) { - var record = entry.completion; - - if (record.type === "throw") { - var thrown = record.arg; - resetTryEntry(entry); - } - - return thrown; - } - } - - throw new Error("illegal catch attempt"); - }, - delegateYield: function delegateYield(iterable, resultName, nextLoc) { - this.delegate = { - iterator: values(iterable), - resultName: resultName, - nextLoc: nextLoc - }; - - if (this.method === "next") { - this.arg = undefined; - } - - return ContinueSentinel; - } - }; - }(function () { - return this; - }() || Function("return this")()); -},349,[],"node_modules/regenerator-runtime/runtime.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } - - function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var EventTarget = _$$_REQUIRE(_dependencyMap[0], 'event-target-shim'); - - var RCTNetworking = _$$_REQUIRE(_dependencyMap[1], 'RCTNetworking'); - - var base64 = _$$_REQUIRE(_dependencyMap[2], 'base64-js'); - - var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); - - var warning = _$$_REQUIRE(_dependencyMap[4], 'fbjs/lib/warning'); - - var BlobManager = _$$_REQUIRE(_dependencyMap[5], 'BlobManager'); - - if (BlobManager.isAvailable) { - BlobManager.addNetworkingHandler(); - } - - var UNSENT = 0; - var OPENED = 1; - var HEADERS_RECEIVED = 2; - var LOADING = 3; - var DONE = 4; - var SUPPORTED_RESPONSE_TYPES = { - arraybuffer: typeof global.ArrayBuffer === 'function', - blob: typeof global.Blob === 'function', - document: false, - json: true, - text: true, - '': true - }; - var REQUEST_EVENTS = ['abort', 'error', 'load', 'loadstart', 'progress', 'timeout', 'loadend']; - var XHR_EVENTS = REQUEST_EVENTS.concat('readystatechange'); - - var XMLHttpRequestEventTarget = function (_EventTarget) { - function XMLHttpRequestEventTarget() { - _classCallCheck(this, XMLHttpRequestEventTarget); - - return _possibleConstructorReturn(this, _getPrototypeOf(XMLHttpRequestEventTarget).apply(this, arguments)); - } - - _inherits(XMLHttpRequestEventTarget, _EventTarget); - - return XMLHttpRequestEventTarget; - }(EventTarget.apply(void 0, REQUEST_EVENTS)); - - var XMLHttpRequest = function (_EventTarget2) { - _createClass(XMLHttpRequest, null, [{ - key: "setInterceptor", - value: function setInterceptor(interceptor) { - XMLHttpRequest._interceptor = interceptor; - } - }]); - - function XMLHttpRequest() { - var _this; - - _classCallCheck(this, XMLHttpRequest); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(XMLHttpRequest).call(this)); - _this.UNSENT = UNSENT; - _this.OPENED = OPENED; - _this.HEADERS_RECEIVED = HEADERS_RECEIVED; - _this.LOADING = LOADING; - _this.DONE = DONE; - _this.readyState = UNSENT; - _this.status = 0; - _this.timeout = 0; - _this.withCredentials = true; - _this.upload = new XMLHttpRequestEventTarget(); - _this._aborted = false; - _this._hasError = false; - _this._method = null; - _this._response = ''; - _this._url = null; - _this._timedOut = false; - _this._trackingName = 'unknown'; - _this._incrementalEvents = false; - - _this._reset(); - - return _this; - } - - _createClass(XMLHttpRequest, [{ - key: "_reset", - value: function _reset() { - this.readyState = this.UNSENT; - this.responseHeaders = undefined; - this.status = 0; - delete this.responseURL; - this._requestId = null; - this._cachedResponse = undefined; - this._hasError = false; - this._headers = {}; - this._response = ''; - this._responseType = ''; - this._sent = false; - this._lowerCaseResponseHeaders = {}; - - this._clearSubscriptions(); - - this._timedOut = false; - } - }, { - key: "__didCreateRequest", - value: function __didCreateRequest(requestId) { - this._requestId = requestId; - XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.requestSent(requestId, this._url || '', this._method || 'GET', this._headers); - } - }, { - key: "__didUploadProgress", - value: function __didUploadProgress(requestId, progress, total) { - if (requestId === this._requestId) { - this.upload.dispatchEvent({ - type: 'progress', - lengthComputable: true, - loaded: progress, - total: total - }); - } - } - }, { - key: "__didReceiveResponse", - value: function __didReceiveResponse(requestId, status, responseHeaders, responseURL) { - if (requestId === this._requestId) { - this.status = status; - this.setResponseHeaders(responseHeaders); - this.setReadyState(this.HEADERS_RECEIVED); - - if (responseURL || responseURL === '') { - this.responseURL = responseURL; - } else { - delete this.responseURL; - } - - XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.responseReceived(requestId, responseURL || this._url || '', status, responseHeaders || {}); - } - } - }, { - key: "__didReceiveData", - value: function __didReceiveData(requestId, response) { - if (requestId !== this._requestId) { - return; - } - - this._response = response; - this._cachedResponse = undefined; - this.setReadyState(this.LOADING); - XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.dataReceived(requestId, response); - } - }, { - key: "__didReceiveIncrementalData", - value: function __didReceiveIncrementalData(requestId, responseText, progress, total) { - if (requestId !== this._requestId) { - return; - } - - if (!this._response) { - this._response = responseText; - } else { - this._response += responseText; - } - - XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.dataReceived(requestId, responseText); - this.setReadyState(this.LOADING); - - this.__didReceiveDataProgress(requestId, progress, total); - } - }, { - key: "__didReceiveDataProgress", - value: function __didReceiveDataProgress(requestId, loaded, total) { - if (requestId !== this._requestId) { - return; - } - - this.dispatchEvent({ - type: 'progress', - lengthComputable: total >= 0, - loaded: loaded, - total: total - }); - } - }, { - key: "__didCompleteResponse", - value: function __didCompleteResponse(requestId, error, timeOutError) { - if (requestId === this._requestId) { - if (error) { - if (this._responseType === '' || this._responseType === 'text') { - this._response = error; - } - - this._hasError = true; - - if (timeOutError) { - this._timedOut = true; - } - } - - this._clearSubscriptions(); - - this._requestId = null; - this.setReadyState(this.DONE); - - if (error) { - XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.loadingFailed(requestId, error); - } else { - XMLHttpRequest._interceptor && XMLHttpRequest._interceptor.loadingFinished(requestId, this._response.length); - } - } - } - }, { - key: "_clearSubscriptions", - value: function _clearSubscriptions() { - (this._subscriptions || []).forEach(function (sub) { - if (sub) { - sub.remove(); - } - }); - this._subscriptions = []; - } - }, { - key: "getAllResponseHeaders", - value: function getAllResponseHeaders() { - if (!this.responseHeaders) { - return null; - } - - var headers = this.responseHeaders || {}; - return Object.keys(headers).map(function (headerName) { - return headerName + ': ' + headers[headerName]; - }).join('\r\n'); - } - }, { - key: "getResponseHeader", - value: function getResponseHeader(header) { - var value = this._lowerCaseResponseHeaders[header.toLowerCase()]; - - return value !== undefined ? value : null; - } - }, { - key: "setRequestHeader", - value: function setRequestHeader(header, value) { - if (this.readyState !== this.OPENED) { - throw new Error('Request has not been opened'); - } - - this._headers[header.toLowerCase()] = String(value); - } - }, { - key: "setTrackingName", - value: function setTrackingName(trackingName) { - this._trackingName = trackingName; - return this; - } - }, { - key: "open", - value: function open(method, url, async) { - if (this.readyState !== this.UNSENT) { - throw new Error('Cannot open, already sending'); - } - - if (async !== undefined && !async) { - throw new Error('Synchronous http requests are not supported'); - } - - if (!url) { - throw new Error('Cannot load an empty url'); - } - - this._method = method.toUpperCase(); - this._url = url; - this._aborted = false; - this.setReadyState(this.OPENED); - } - }, { - key: "send", - value: function send(data) { - var _this2 = this; - - if (this.readyState !== this.OPENED) { - throw new Error('Request has not been opened'); - } - - if (this._sent) { - throw new Error('Request has already been sent'); - } - - this._sent = true; - var incrementalEvents = this._incrementalEvents || !!this.onreadystatechange || !!this.onprogress; - - this._subscriptions.push(RCTNetworking.addListener('didSendNetworkData', function (args) { - return _this2.__didUploadProgress.apply(_this2, _toConsumableArray(args)); - })); - - this._subscriptions.push(RCTNetworking.addListener('didReceiveNetworkResponse', function (args) { - return _this2.__didReceiveResponse.apply(_this2, _toConsumableArray(args)); - })); - - this._subscriptions.push(RCTNetworking.addListener('didReceiveNetworkData', function (args) { - return _this2.__didReceiveData.apply(_this2, _toConsumableArray(args)); - })); - - this._subscriptions.push(RCTNetworking.addListener('didReceiveNetworkIncrementalData', function (args) { - return _this2.__didReceiveIncrementalData.apply(_this2, _toConsumableArray(args)); - })); - - this._subscriptions.push(RCTNetworking.addListener('didReceiveNetworkDataProgress', function (args) { - return _this2.__didReceiveDataProgress.apply(_this2, _toConsumableArray(args)); - })); - - this._subscriptions.push(RCTNetworking.addListener('didCompleteNetworkResponse', function (args) { - return _this2.__didCompleteResponse.apply(_this2, _toConsumableArray(args)); - })); - - var nativeResponseType = 'text'; - - if (this._responseType === 'arraybuffer') { - nativeResponseType = 'base64'; - } - - if (this._responseType === 'blob') { - nativeResponseType = 'blob'; - } - - invariant(this._method, 'Request method needs to be defined.'); - invariant(this._url, 'Request URL needs to be defined.'); - RCTNetworking.sendRequest(this._method, this._trackingName, this._url, this._headers, data, nativeResponseType, incrementalEvents, this.timeout, this.__didCreateRequest.bind(this), this.withCredentials); - } - }, { - key: "abort", - value: function abort() { - this._aborted = true; - - if (this._requestId) { - RCTNetworking.abortRequest(this._requestId); - } - - if (!(this.readyState === this.UNSENT || this.readyState === this.OPENED && !this._sent || this.readyState === this.DONE)) { - this._reset(); - - this.setReadyState(this.DONE); - } - - this._reset(); - } - }, { - key: "setResponseHeaders", - value: function setResponseHeaders(responseHeaders) { - this.responseHeaders = responseHeaders || null; - var headers = responseHeaders || {}; - this._lowerCaseResponseHeaders = Object.keys(headers).reduce(function (lcaseHeaders, headerName) { - lcaseHeaders[headerName.toLowerCase()] = headers[headerName]; - return lcaseHeaders; - }, {}); - } - }, { - key: "setReadyState", - value: function setReadyState(newState) { - this.readyState = newState; - this.dispatchEvent({ - type: 'readystatechange' - }); - - if (newState === this.DONE) { - if (this._aborted) { - this.dispatchEvent({ - type: 'abort' - }); - } else if (this._hasError) { - if (this._timedOut) { - this.dispatchEvent({ - type: 'timeout' - }); - } else { - this.dispatchEvent({ - type: 'error' - }); - } - } else { - this.dispatchEvent({ - type: 'load' - }); - } - - this.dispatchEvent({ - type: 'loadend' - }); - } - } - }, { - key: "addEventListener", - value: function addEventListener(type, listener) { - if (type === 'readystatechange' || type === 'progress') { - this._incrementalEvents = true; - } - - _get(_getPrototypeOf(XMLHttpRequest.prototype), "addEventListener", this).call(this, type, listener); - } - }, { - key: "responseType", - get: function get() { - return this._responseType; - }, - set: function set(responseType) { - if (this._sent) { - throw new Error("Failed to set the 'responseType' property on 'XMLHttpRequest': The " + 'response type cannot be set after the request has been sent.'); - } - - if (!SUPPORTED_RESPONSE_TYPES.hasOwnProperty(responseType)) { - warning(false, "The provided value '" + responseType + "' is not a valid 'responseType'."); - return; - } - - invariant(SUPPORTED_RESPONSE_TYPES[responseType] || responseType === 'document', "The provided value '" + responseType + "' is unsupported in this environment."); - - if (responseType === 'blob') { - invariant(BlobManager.isAvailable, 'Native module BlobModule is required for blob support'); - } - - this._responseType = responseType; - } - }, { - key: "responseText", - get: function get() { - if (this._responseType !== '' && this._responseType !== 'text') { - throw new Error("The 'responseText' property is only available if 'responseType' " + ("is set to '' or 'text', but it is '" + this._responseType + "'.")); - } - - if (this.readyState < LOADING) { - return ''; - } - - return this._response; - } - }, { - key: "response", - get: function get() { - var responseType = this.responseType; - - if (responseType === '' || responseType === 'text') { - return this.readyState < LOADING || this._hasError ? '' : this._response; - } - - if (this.readyState !== DONE) { - return null; - } - - if (this._cachedResponse !== undefined) { - return this._cachedResponse; - } - - switch (responseType) { - case 'document': - this._cachedResponse = null; - break; - - case 'arraybuffer': - this._cachedResponse = base64.toByteArray(this._response).buffer; - break; - - case 'blob': - if (typeof this._response === 'object' && this._response) { - this._cachedResponse = BlobManager.createFromOptions(this._response); - } else { - throw new Error("Invalid response for blob: " + this._response); - } - - break; - - case 'json': - try { - this._cachedResponse = JSON.parse(this._response); - } catch (_) { - this._cachedResponse = null; - } - - break; - - default: - this._cachedResponse = null; - } - - return this._cachedResponse; - } - }]); - - _inherits(XMLHttpRequest, _EventTarget2); - - return XMLHttpRequest; - }(EventTarget.apply(void 0, _toConsumableArray(XHR_EVENTS))); - - XMLHttpRequest.UNSENT = UNSENT; - XMLHttpRequest.OPENED = OPENED; - XMLHttpRequest.HEADERS_RECEIVED = HEADERS_RECEIVED; - XMLHttpRequest.LOADING = LOADING; - XMLHttpRequest.DONE = DONE; - XMLHttpRequest._interceptor = null; - module.exports = XMLHttpRequest; -},350,[382,383,384,4,111,385],"node_modules/react-native/Libraries/Network/XMLHttpRequest.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - "use strict"; - - var Commons = _$$_REQUIRE(_dependencyMap[0], "./commons"); - - var CustomEventTarget = _$$_REQUIRE(_dependencyMap[1], "./custom-event-target"); - - var EventWrapper = _$$_REQUIRE(_dependencyMap[2], "./event-wrapper"); - - var LISTENERS = Commons.LISTENERS; - var CAPTURE = Commons.CAPTURE; - var BUBBLE = Commons.BUBBLE; - var ATTRIBUTE = Commons.ATTRIBUTE; - var newNode = Commons.newNode; - var defineCustomEventTarget = CustomEventTarget.defineCustomEventTarget; - var createEventWrapper = EventWrapper.createEventWrapper; - var STOP_IMMEDIATE_PROPAGATION_FLAG = EventWrapper.STOP_IMMEDIATE_PROPAGATION_FLAG; - var HAS_EVENTTARGET_INTERFACE = typeof window !== "undefined" && typeof window.EventTarget !== "undefined"; - - var EventTarget = module.exports = function EventTarget() { - if (this instanceof EventTarget) { - Object.defineProperty(this, LISTENERS, { - value: Object.create(null) - }); - } else if (arguments.length === 1 && Array.isArray(arguments[0])) { - return defineCustomEventTarget(EventTarget, arguments[0]); - } else if (arguments.length > 0) { - var types = Array(arguments.length); - - for (var i = 0; i < arguments.length; ++i) { - types[i] = arguments[i]; - } - - return defineCustomEventTarget(EventTarget, types); - } else { - throw new TypeError("Cannot call a class as a function"); - } - }; - - EventTarget.prototype = Object.create((HAS_EVENTTARGET_INTERFACE ? window.EventTarget : Object).prototype, { - constructor: { - value: EventTarget, - writable: true, - configurable: true - }, - addEventListener: { - value: function addEventListener(type, listener, capture) { - if (listener == null) { - return false; - } - - if (typeof listener !== "function" && typeof listener !== "object") { - throw new TypeError("\"listener\" is not an object."); - } - - var kind = capture ? CAPTURE : BUBBLE; - var node = this[LISTENERS][type]; - - if (node == null) { - this[LISTENERS][type] = newNode(listener, kind); - return true; - } - - var prev = null; - - while (node != null) { - if (node.listener === listener && node.kind === kind) { - return false; - } - - prev = node; - node = node.next; - } - - prev.next = newNode(listener, kind); - return true; - }, - configurable: true, - writable: true - }, - removeEventListener: { - value: function removeEventListener(type, listener, capture) { - if (listener == null) { - return false; - } - - var kind = capture ? CAPTURE : BUBBLE; - var prev = null; - var node = this[LISTENERS][type]; - - while (node != null) { - if (node.listener === listener && node.kind === kind) { - if (prev == null) { - this[LISTENERS][type] = node.next; - } else { - prev.next = node.next; - } - - return true; - } - - prev = node; - node = node.next; - } - - return false; - }, - configurable: true, - writable: true - }, - dispatchEvent: { - value: function dispatchEvent(event) { - var node = this[LISTENERS][event.type]; - - if (node == null) { - return true; - } - - var wrapped = createEventWrapper(event, this); - - while (node != null) { - if (typeof node.listener === "function") { - node.listener.call(this, wrapped); - } else if (node.kind !== ATTRIBUTE && typeof node.listener.handleEvent === "function") { - node.listener.handleEvent(wrapped); - } - - if (wrapped[STOP_IMMEDIATE_PROPAGATION_FLAG]) { - break; - } - - node = node.next; - } - - return !wrapped.defaultPrevented; - }, - configurable: true, - writable: true - } - }); -},382,[386,387,388],"node_modules/event-target-shim/lib/event-target.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - "use strict"; - - var createUniqueKey = exports.createUniqueKey = typeof Symbol !== "undefined" ? Symbol : function createUniqueKey(name) { - return "[[" + name + "_" + Math.random().toFixed(8).slice(2) + "]]"; - }; - exports.LISTENERS = createUniqueKey("listeners"); - exports.CAPTURE = 1; - exports.BUBBLE = 2; - exports.ATTRIBUTE = 3; - - exports.newNode = function newNode(listener, kind) { - return { - listener: listener, - kind: kind, - next: null - }; - }; -},386,[],"node_modules/event-target-shim/lib/commons.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - "use strict"; - - var Commons = _$$_REQUIRE(_dependencyMap[0], "./commons"); - - var LISTENERS = Commons.LISTENERS; - var ATTRIBUTE = Commons.ATTRIBUTE; - var newNode = Commons.newNode; - - function getAttributeListener(eventTarget, type) { - var node = eventTarget[LISTENERS][type]; - - while (node != null) { - if (node.kind === ATTRIBUTE) { - return node.listener; - } - - node = node.next; - } - - return null; - } - - function setAttributeListener(eventTarget, type, listener) { - if (typeof listener !== "function" && typeof listener !== "object") { - listener = null; - } - - var prev = null; - var node = eventTarget[LISTENERS][type]; - - while (node != null) { - if (node.kind === ATTRIBUTE) { - if (prev == null) { - eventTarget[LISTENERS][type] = node.next; - } else { - prev.next = node.next; - } - } else { - prev = node; - } - - node = node.next; - } - - if (listener != null) { - if (prev == null) { - eventTarget[LISTENERS][type] = newNode(listener, ATTRIBUTE); - } else { - prev.next = newNode(listener, ATTRIBUTE); - } - } - } - - exports.defineCustomEventTarget = function (EventTargetBase, types) { - function EventTarget() { - EventTargetBase.call(this); - } - - var descripter = { - constructor: { - value: EventTarget, - configurable: true, - writable: true - } - }; - types.forEach(function (type) { - descripter["on" + type] = { - get: function get() { - return getAttributeListener(this, type); - }, - set: function set(listener) { - setAttributeListener(this, type, listener); - }, - configurable: true, - enumerable: true - }; - }); - EventTarget.prototype = Object.create(EventTargetBase.prototype, descripter); - return EventTarget; - }; -},387,[386],"node_modules/event-target-shim/lib/custom-event-target.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - "use strict"; - - var createUniqueKey = _$$_REQUIRE(_dependencyMap[0], "./commons").createUniqueKey; - - var STOP_IMMEDIATE_PROPAGATION_FLAG = createUniqueKey("stop_immediate_propagation_flag"); - var CANCELED_FLAG = createUniqueKey("canceled_flag"); - var ORIGINAL_EVENT = createUniqueKey("original_event"); - var wrapperPrototypeDefinition = Object.freeze({ - stopPropagation: Object.freeze({ - value: function stopPropagation() { - var e = this[ORIGINAL_EVENT]; - - if (typeof e.stopPropagation === "function") { - e.stopPropagation(); - } - }, - writable: true, - configurable: true - }), - stopImmediatePropagation: Object.freeze({ - value: function stopImmediatePropagation() { - this[STOP_IMMEDIATE_PROPAGATION_FLAG] = true; - var e = this[ORIGINAL_EVENT]; - - if (typeof e.stopImmediatePropagation === "function") { - e.stopImmediatePropagation(); - } - }, - writable: true, - configurable: true - }), - preventDefault: Object.freeze({ - value: function preventDefault() { - if (this.cancelable === true) { - this[CANCELED_FLAG] = true; - } - - var e = this[ORIGINAL_EVENT]; - - if (typeof e.preventDefault === "function") { - e.preventDefault(); - } - }, - writable: true, - configurable: true - }), - defaultPrevented: Object.freeze({ - get: function defaultPrevented() { - return this[CANCELED_FLAG]; - }, - enumerable: true, - configurable: true - }) - }); - exports.STOP_IMMEDIATE_PROPAGATION_FLAG = STOP_IMMEDIATE_PROPAGATION_FLAG; - - exports.createEventWrapper = function createEventWrapper(event, eventTarget) { - var timeStamp = typeof event.timeStamp === "number" ? event.timeStamp : Date.now(); - var propertyDefinition = { - type: { - value: event.type, - enumerable: true - }, - target: { - value: eventTarget, - enumerable: true - }, - currentTarget: { - value: eventTarget, - enumerable: true - }, - eventPhase: { - value: 2, - enumerable: true - }, - bubbles: { - value: Boolean(event.bubbles), - enumerable: true - }, - cancelable: { - value: Boolean(event.cancelable), - enumerable: true - }, - timeStamp: { - value: timeStamp, - enumerable: true - }, - isTrusted: { - value: false, - enumerable: true - } - }; - propertyDefinition[STOP_IMMEDIATE_PROPAGATION_FLAG] = { - value: false, - writable: true - }; - propertyDefinition[CANCELED_FLAG] = { - value: false, - writable: true - }; - propertyDefinition[ORIGINAL_EVENT] = { - value: event - }; - - if (typeof event.detail !== "undefined") { - propertyDefinition.detail = { - value: event.detail, - enumerable: true - }; - } - - return Object.create(Object.create(event, wrapperPrototypeDefinition), propertyDefinition); - }; -},388,[386],"node_modules/event-target-shim/lib/event-wrapper.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var MissingNativeEventEmitterShim = _$$_REQUIRE(_dependencyMap[0], 'MissingNativeEventEmitterShim'); - - var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[1], 'NativeEventEmitter'); - - var RCTNetworkingNative = _$$_REQUIRE(_dependencyMap[2], 'NativeModules').Networking; - - var convertRequestBody = _$$_REQUIRE(_dependencyMap[3], 'convertRequestBody'); - - function convertHeadersMapToArray(headers) { - var headerArray = []; - - for (var name in headers) { - headerArray.push([name, headers[name]]); - } - - return headerArray; - } - - var _requestId = 1; - - function generateRequestId() { - return _requestId++; - } - - var RCTNetworking = function (_NativeEventEmitter) { - function RCTNetworking() { - var _this; - - _classCallCheck(this, RCTNetworking); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(RCTNetworking).call(this, RCTNetworkingNative)); - _this.isAvailable = true; - return _this; - } - - _createClass(RCTNetworking, [{ - key: "sendRequest", - value: function sendRequest(method, trackingName, url, headers, data, responseType, incrementalUpdates, timeout, callback, withCredentials) { - var body = convertRequestBody(data); - - if (body && body.formData) { - body.formData = body.formData.map(function (part) { - return _objectSpread({}, part, { - headers: convertHeadersMapToArray(part.headers) - }); - }); - } - - var requestId = generateRequestId(); - RCTNetworkingNative.sendRequest(method, url, requestId, convertHeadersMapToArray(headers), _objectSpread({}, body, { - trackingName: trackingName - }), responseType, incrementalUpdates, timeout, withCredentials); - callback(requestId); - } - }, { - key: "abortRequest", - value: function abortRequest(requestId) { - RCTNetworkingNative.abortRequest(requestId); - } - }, { - key: "clearCookies", - value: function clearCookies(callback) { - RCTNetworkingNative.clearCookies(callback); - } - }]); - - _inherits(RCTNetworking, _NativeEventEmitter); - - return RCTNetworking; - }(NativeEventEmitter); - - if (__DEV__ && !RCTNetworkingNative) { - var MissingNativeRCTNetworkingShim = function (_MissingNativeEventEm) { - function MissingNativeRCTNetworkingShim() { - _classCallCheck(this, MissingNativeRCTNetworkingShim); - - return _possibleConstructorReturn(this, _getPrototypeOf(MissingNativeRCTNetworkingShim).call(this, 'RCTNetworking', 'Networking')); - } - - _createClass(MissingNativeRCTNetworkingShim, [{ - key: "sendRequest", - value: function sendRequest() { - this.throwMissingNativeModule(); - } - }, { - key: "abortRequest", - value: function abortRequest() { - this.throwMissingNativeModule(); - } - }, { - key: "clearCookies", - value: function clearCookies() { - this.throwMissingNativeModule(); - } - }]); - - _inherits(MissingNativeRCTNetworkingShim, _MissingNativeEventEm); - - return MissingNativeRCTNetworkingShim; - }(MissingNativeEventEmitterShim); - - RCTNetworking = new MissingNativeRCTNetworkingShim(); - } else { - RCTNetworking = new RCTNetworking(); - } - - module.exports = RCTNetworking; -},383,[389,74,93,390],"node_modules/react-native/Libraries/Network/RCTNetworking.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var EmitterSubscription = _$$_REQUIRE(_dependencyMap[0], 'EmitterSubscription'); - - var EventEmitter = _$$_REQUIRE(_dependencyMap[1], 'EventEmitter'); - - var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); - - var MissingNativeEventEmitterShim = function (_EventEmitter) { - function MissingNativeEventEmitterShim(nativeModuleName, nativeEventEmitterName) { - var _this; - - _classCallCheck(this, MissingNativeEventEmitterShim); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(MissingNativeEventEmitterShim).call(this, null)); - _this.isAvailable = false; - _this._nativeModuleName = nativeModuleName; - _this._nativeEventEmitterName = nativeEventEmitterName; - return _this; - } - - _createClass(MissingNativeEventEmitterShim, [{ - key: "throwMissingNativeModule", - value: function throwMissingNativeModule() { - invariant(false, "Cannot use '" + this._nativeEventEmitterName + "' module when " + ("native '" + this._nativeModuleName + "' is not included in the build. ") + ("Either include it, or check '" + this._nativeEventEmitterName + "'.isAvailable ") + 'before calling any methods.'); - } - }, { - key: "addListener", - value: function addListener(eventType, listener, context) { - this.throwMissingNativeModule(); - } - }, { - key: "removeAllListeners", - value: function removeAllListeners(eventType) { - this.throwMissingNativeModule(); - } - }, { - key: "removeSubscription", - value: function removeSubscription(subscription) { - this.throwMissingNativeModule(); - } - }]); - - _inherits(MissingNativeEventEmitterShim, _EventEmitter); - - return MissingNativeEventEmitterShim; - }(EventEmitter); - - module.exports = MissingNativeEventEmitterShim; -},389,[119,117,4],"node_modules/react-native/Libraries/EventEmitter/MissingNativeEventEmitterShim.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } - - function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var EventEmitter = _$$_REQUIRE(_dependencyMap[0], 'EventEmitter'); - - var Platform = _$$_REQUIRE(_dependencyMap[1], 'Platform'); - - var RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[2], 'RCTDeviceEventEmitter'); - - var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); - - var NativeEventEmitter = function (_EventEmitter) { - function NativeEventEmitter(nativeModule) { - var _this; - - _classCallCheck(this, NativeEventEmitter); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(NativeEventEmitter).call(this, RCTDeviceEventEmitter.sharedSubscriber)); - - if (Platform.OS === 'ios') { - invariant(nativeModule, 'Native module cannot be null.'); - _this._nativeModule = nativeModule; - } - - return _this; - } - - _createClass(NativeEventEmitter, [{ - key: "addListener", - value: function addListener(eventType, listener, context) { - if (this._nativeModule != null) { - this._nativeModule.addListener(eventType); - } - - return _get(_getPrototypeOf(NativeEventEmitter.prototype), "addListener", this).call(this, eventType, listener, context); - } - }, { - key: "removeAllListeners", - value: function removeAllListeners(eventType) { - invariant(eventType, 'eventType argument is required.'); - var count = this.listeners(eventType).length; - - if (this._nativeModule != null) { - this._nativeModule.removeListeners(count); - } - - _get(_getPrototypeOf(NativeEventEmitter.prototype), "removeAllListeners", this).call(this, eventType); - } - }, { - key: "removeSubscription", - value: function removeSubscription(subscription) { - if (this._nativeModule != null) { - this._nativeModule.removeListeners(1); - } - - _get(_getPrototypeOf(NativeEventEmitter.prototype), "removeSubscription", this).call(this, subscription); - } - }]); - - _inherits(NativeEventEmitter, _EventEmitter); - - return NativeEventEmitter; - }(EventEmitter); - - module.exports = NativeEventEmitter; -},74,[117,94,91,4],"node_modules/react-native/Libraries/EventEmitter/NativeEventEmitter.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var binaryToBase64 = _$$_REQUIRE(_dependencyMap[0], 'binaryToBase64'); - - var Blob = _$$_REQUIRE(_dependencyMap[1], 'Blob'); - - var FormData = _$$_REQUIRE(_dependencyMap[2], 'FormData'); - - function convertRequestBody(body) { - if (typeof body === 'string') { - return { - string: body - }; - } - - if (body instanceof Blob) { - return { - blob: body.data - }; - } - - if (body instanceof FormData) { - return { - formData: body.getParts() - }; - } - - if (body instanceof ArrayBuffer || ArrayBuffer.isView(body)) { - return { - base64: binaryToBase64(body) - }; - } - - return body; - } - - module.exports = convertRequestBody; -},390,[391,354,351],"node_modules/react-native/Libraries/Network/convertRequestBody.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var base64 = _$$_REQUIRE(_dependencyMap[0], 'base64-js'); - - function binaryToBase64(data) { - if (data instanceof ArrayBuffer) { - data = new Uint8Array(data); - } - - if (data instanceof Uint8Array) { - return base64.fromByteArray(data); - } - - if (!ArrayBuffer.isView(data)) { - throw new Error('data must be ArrayBuffer or typed array'); - } - - var _data = data, - buffer = _data.buffer, - byteOffset = _data.byteOffset, - byteLength = _data.byteLength; - return base64.fromByteArray(new Uint8Array(buffer, byteOffset, byteLength)); - } - - module.exports = binaryToBase64; -},391,[384],"node_modules/react-native/Libraries/Utilities/binaryToBase64.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - exports.byteLength = byteLength; - exports.toByteArray = toByteArray; - exports.fromByteArray = fromByteArray; - var lookup = []; - var revLookup = []; - var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array; - var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; - - for (var i = 0, len = code.length; i < len; ++i) { - lookup[i] = code[i]; - revLookup[code.charCodeAt(i)] = i; - } - - revLookup['-'.charCodeAt(0)] = 62; - revLookup['_'.charCodeAt(0)] = 63; - - function getLens(b64) { - var len = b64.length; - - if (len % 4 > 0) { - throw new Error('Invalid string. Length must be a multiple of 4'); - } - - var validLen = b64.indexOf('='); - if (validLen === -1) validLen = len; - var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4; - return [validLen, placeHoldersLen]; - } - - function byteLength(b64) { - var lens = getLens(b64); - var validLen = lens[0]; - var placeHoldersLen = lens[1]; - return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen; - } - - function _byteLength(b64, validLen, placeHoldersLen) { - return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen; - } - - function toByteArray(b64) { - var tmp; - var lens = getLens(b64); - var validLen = lens[0]; - var placeHoldersLen = lens[1]; - var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)); - var curByte = 0; - var len = placeHoldersLen > 0 ? validLen - 4 : validLen; - - for (var i = 0; i < len; i += 4) { - tmp = revLookup[b64.charCodeAt(i)] << 18 | revLookup[b64.charCodeAt(i + 1)] << 12 | revLookup[b64.charCodeAt(i + 2)] << 6 | revLookup[b64.charCodeAt(i + 3)]; - arr[curByte++] = tmp >> 16 & 0xFF; - arr[curByte++] = tmp >> 8 & 0xFF; - arr[curByte++] = tmp & 0xFF; - } - - if (placeHoldersLen === 2) { - tmp = revLookup[b64.charCodeAt(i)] << 2 | revLookup[b64.charCodeAt(i + 1)] >> 4; - arr[curByte++] = tmp & 0xFF; - } - - if (placeHoldersLen === 1) { - tmp = revLookup[b64.charCodeAt(i)] << 10 | revLookup[b64.charCodeAt(i + 1)] << 4 | revLookup[b64.charCodeAt(i + 2)] >> 2; - arr[curByte++] = tmp >> 8 & 0xFF; - arr[curByte++] = tmp & 0xFF; - } - - return arr; - } - - function tripletToBase64(num) { - return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F]; - } - - function encodeChunk(uint8, start, end) { - var tmp; - var output = []; - - for (var i = start; i < end; i += 3) { - tmp = (uint8[i] << 16 & 0xFF0000) + (uint8[i + 1] << 8 & 0xFF00) + (uint8[i + 2] & 0xFF); - output.push(tripletToBase64(tmp)); - } - - return output.join(''); - } - - function fromByteArray(uint8) { - var tmp; - var len = uint8.length; - var extraBytes = len % 3; - var parts = []; - var maxChunkLength = 16383; - - for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) { - parts.push(encodeChunk(uint8, i, i + maxChunkLength > len2 ? len2 : i + maxChunkLength)); - } - - if (extraBytes === 1) { - tmp = uint8[len - 1]; - parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 0x3F] + '=='); - } else if (extraBytes === 2) { - tmp = (uint8[len - 2] << 8) + uint8[len - 1]; - parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 0x3F] + lookup[tmp << 2 & 0x3F] + '='); - } - - return parts.join(''); - } -},384,[],"node_modules/base64-js/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var Blob = function () { - function Blob() { - var parts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var options = arguments.length > 1 ? arguments[1] : undefined; - - _classCallCheck(this, Blob); - - var BlobManager = _$$_REQUIRE(_dependencyMap[0], 'BlobManager'); - - this.data = BlobManager.createFromParts(parts, options).data; - } - - _createClass(Blob, [{ - key: "slice", - value: function slice(start, end) { - var BlobManager = _$$_REQUIRE(_dependencyMap[0], 'BlobManager'); - - var _this$data = this.data, - offset = _this$data.offset, - size = _this$data.size; - - if (typeof start === 'number') { - if (start > size) { - start = size; - } - - offset += start; - size -= start; - - if (typeof end === 'number') { - if (end < 0) { - end = this.size + end; - } - - size = end - start; - } - } - - return BlobManager.createFromOptions({ - blobId: this.data.blobId, - offset: offset, - size: size - }); - } - }, { - key: "close", - value: function close() { - var BlobManager = _$$_REQUIRE(_dependencyMap[0], 'BlobManager'); - - BlobManager.release(this.data.blobId); - this.data = null; - } - }, { - key: "data", - set: function set(data) { - this._data = data; - }, - get: function get() { - if (!this._data) { - throw new Error('Blob has been closed and is no longer available'); - } - - return this._data; - } - }, { - key: "size", - get: function get() { - return this.data.size; - } - }, { - key: "type", - get: function get() { - return this.data.type || ''; - } - }]); - - return Blob; - }(); - - module.exports = Blob; -},354,[385],"node_modules/react-native/Libraries/Blob/Blob.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var Blob = _$$_REQUIRE(_dependencyMap[0], 'Blob'); - - var BlobRegistry = _$$_REQUIRE(_dependencyMap[1], 'BlobRegistry'); - - var _require = _$$_REQUIRE(_dependencyMap[2], 'NativeModules'), - BlobModule = _require.BlobModule; - - function uuidv4() { - return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { - var r = Math.random() * 16 | 0, - v = c == 'x' ? r : r & 0x3 | 0x8; - return v.toString(16); - }); - } - - var BlobManager = function () { - function BlobManager() { - _classCallCheck(this, BlobManager); - } - - _createClass(BlobManager, null, [{ - key: "createFromParts", - value: function createFromParts(parts, options) { - var blobId = uuidv4(); - var items = parts.map(function (part) { - if (part instanceof ArrayBuffer || global.ArrayBufferView && part instanceof global.ArrayBufferView) { - throw new Error("Creating blobs from 'ArrayBuffer' and 'ArrayBufferView' are not supported"); - } - - if (part instanceof Blob) { - return { - data: part.data, - type: 'blob' - }; - } else { - return { - data: String(part), - type: 'string' - }; - } - }); - var size = items.reduce(function (acc, curr) { - if (curr.type === 'string') { - return acc + global.unescape(encodeURI(curr.data)).length; - } else { - return acc + curr.data.size; - } - }, 0); - BlobModule.createFromParts(items, blobId); - return BlobManager.createFromOptions({ - blobId: blobId, - offset: 0, - size: size, - type: options ? options.type : '', - lastModified: options ? options.lastModified : Date.now() - }); - } - }, { - key: "createFromOptions", - value: function createFromOptions(options) { - BlobRegistry.register(options.blobId); - return _extends(Object.create(Blob.prototype), { - data: options - }); - } - }, { - key: "release", - value: function release(blobId) { - BlobRegistry.unregister(blobId); - - if (BlobRegistry.has(blobId)) { - return; - } - - BlobModule.release(blobId); - } - }, { - key: "addNetworkingHandler", - value: function addNetworkingHandler() { - BlobModule.addNetworkingHandler(); - } - }, { - key: "addWebSocketHandler", - value: function addWebSocketHandler(socketId) { - BlobModule.addWebSocketHandler(socketId); - } - }, { - key: "removeWebSocketHandler", - value: function removeWebSocketHandler(socketId) { - BlobModule.removeWebSocketHandler(socketId); - } - }, { - key: "sendOverSocket", - value: function sendOverSocket(blob, socketId) { - BlobModule.sendOverSocket(blob.data, socketId); - } - }]); - - return BlobManager; - }(); - - BlobManager.isAvailable = !!BlobModule; - module.exports = BlobManager; -},385,[354,392,93],"node_modules/react-native/Libraries/Blob/BlobManager.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var registry = {}; - - var register = function register(id) { - if (registry[id]) { - registry[id]++; - } else { - registry[id] = 1; - } - }; - - var unregister = function unregister(id) { - if (registry[id]) { - registry[id]--; - - if (registry[id] <= 0) { - delete registry[id]; - } - } - }; - - var has = function has(id) { - return registry[id] && registry[id] > 0; - }; - - module.exports = { - register: register, - unregister: unregister, - has: has - }; -},392,[],"node_modules/react-native/Libraries/Blob/BlobRegistry.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } - - function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } - - function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - - function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var FormData = function () { - function FormData() { - _classCallCheck(this, FormData); - - this._parts = []; - } - - _createClass(FormData, [{ - key: "append", - value: function append(key, value) { - this._parts.push([key, value]); - } - }, { - key: "getParts", - value: function getParts() { - return this._parts.map(function (_ref) { - var _ref2 = _slicedToArray(_ref, 2), - name = _ref2[0], - value = _ref2[1]; - - var contentDisposition = 'form-data; name="' + name + '"'; - var headers = { - 'content-disposition': contentDisposition - }; - - if (typeof value === 'object' && value) { - if (typeof value.name === 'string') { - headers['content-disposition'] += '; filename="' + value.name + '"'; - } - - if (typeof value.type === 'string') { - headers['content-type'] = value.type; - } - - return _objectSpread({}, value, { - headers: headers, - fieldName: name - }); - } - - return { - string: String(value), - headers: headers, - fieldName: name - }; - }); - } - }]); - - return FormData; - }(); - - module.exports = FormData; -},351,[],"node_modules/react-native/Libraries/Network/FormData.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var Blob = _$$_REQUIRE(_dependencyMap[0], 'Blob'); - - var EventTarget = _$$_REQUIRE(_dependencyMap[1], 'event-target-shim'); - - var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[2], 'NativeEventEmitter'); - - var BlobManager = _$$_REQUIRE(_dependencyMap[3], 'BlobManager'); - - var NativeModules = _$$_REQUIRE(_dependencyMap[4], 'NativeModules'); - - var Platform = _$$_REQUIRE(_dependencyMap[5], 'Platform'); - - var WebSocketEvent = _$$_REQUIRE(_dependencyMap[6], 'WebSocketEvent'); - - var base64 = _$$_REQUIRE(_dependencyMap[7], 'base64-js'); - - var binaryToBase64 = _$$_REQUIRE(_dependencyMap[8], 'binaryToBase64'); - - var invariant = _$$_REQUIRE(_dependencyMap[9], 'fbjs/lib/invariant'); - - var WebSocketModule = NativeModules.WebSocketModule; - var CONNECTING = 0; - var OPEN = 1; - var CLOSING = 2; - var CLOSED = 3; - var CLOSE_NORMAL = 1000; - var WEBSOCKET_EVENTS = ['close', 'error', 'message', 'open']; - var nextWebSocketId = 0; - - var WebSocket = function (_EventTarget) { - function WebSocket(url, protocols, options) { - var _this; - - _classCallCheck(this, WebSocket); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(WebSocket).call(this)); - _this.CONNECTING = CONNECTING; - _this.OPEN = OPEN; - _this.CLOSING = CLOSING; - _this.CLOSED = CLOSED; - _this.readyState = CONNECTING; - - if (typeof protocols === 'string') { - protocols = [protocols]; - } - - var _ref = options || {}, - _ref$headers = _ref.headers, - headers = _ref$headers === void 0 ? {} : _ref$headers, - unrecognized = _objectWithoutProperties(_ref, ["headers"]); - - if (unrecognized && typeof unrecognized.origin === 'string') { - console.warn('Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.'); - headers.origin = unrecognized.origin; - delete unrecognized.origin; - } - - if (Object.keys(unrecognized).length > 0) { - console.warn('Unrecognized WebSocket connection option(s) `' + Object.keys(unrecognized).join('`, `') + '`. ' + 'Did you mean to put these under `headers`?'); - } - - if (!Array.isArray(protocols)) { - protocols = null; - } - - if (!WebSocket.isAvailable) { - throw new Error('Cannot initialize WebSocket module. ' + 'Native module WebSocketModule is missing.'); - } - - _this._eventEmitter = new NativeEventEmitter(WebSocketModule); - _this._socketId = nextWebSocketId++; - - _this._registerEvents(); - - WebSocketModule.connect(url, protocols, { - headers: headers - }, _this._socketId); - return _this; - } - - _createClass(WebSocket, [{ - key: "close", - value: function close(code, reason) { - if (this.readyState === this.CLOSING || this.readyState === this.CLOSED) { - return; - } - - this.readyState = this.CLOSING; - - this._close(code, reason); - } - }, { - key: "send", - value: function send(data) { - if (this.readyState === this.CONNECTING) { - throw new Error('INVALID_STATE_ERR'); - } - - if (data instanceof Blob) { - invariant(BlobManager.isAvailable, 'Native module BlobModule is required for blob support'); - BlobManager.sendOverSocket(data, this._socketId); - return; - } - - if (typeof data === 'string') { - WebSocketModule.send(data, this._socketId); - return; - } - - if (data instanceof ArrayBuffer || ArrayBuffer.isView(data)) { - WebSocketModule.sendBinary(binaryToBase64(data), this._socketId); - return; - } - - throw new Error('Unsupported data type'); - } - }, { - key: "ping", - value: function ping() { - if (this.readyState === this.CONNECTING) { - throw new Error('INVALID_STATE_ERR'); - } - - WebSocketModule.ping(this._socketId); - } - }, { - key: "_close", - value: function _close(code, reason) { - if (Platform.OS === 'android') { - var statusCode = typeof code === 'number' ? code : CLOSE_NORMAL; - var closeReason = typeof reason === 'string' ? reason : ''; - WebSocketModule.close(statusCode, closeReason, this._socketId); - } else { - WebSocketModule.close(this._socketId); - } - - if (BlobManager.isAvailable && this._binaryType === 'blob') { - BlobManager.removeWebSocketHandler(this._socketId); - } - } - }, { - key: "_unregisterEvents", - value: function _unregisterEvents() { - this._subscriptions.forEach(function (e) { - return e.remove(); - }); - - this._subscriptions = []; - } - }, { - key: "_registerEvents", - value: function _registerEvents() { - var _this2 = this; - - this._subscriptions = [this._eventEmitter.addListener('websocketMessage', function (ev) { - if (ev.id !== _this2._socketId) { - return; - } - - var data = ev.data; - - switch (ev.type) { - case 'binary': - data = base64.toByteArray(ev.data).buffer; - break; - - case 'blob': - data = BlobManager.createFromOptions(ev.data); - break; - } - - _this2.dispatchEvent(new WebSocketEvent('message', { - data: data - })); - }), this._eventEmitter.addListener('websocketOpen', function (ev) { - if (ev.id !== _this2._socketId) { - return; - } - - _this2.readyState = _this2.OPEN; - - _this2.dispatchEvent(new WebSocketEvent('open')); - }), this._eventEmitter.addListener('websocketClosed', function (ev) { - if (ev.id !== _this2._socketId) { - return; - } - - _this2.readyState = _this2.CLOSED; - - _this2.dispatchEvent(new WebSocketEvent('close', { - code: ev.code, - reason: ev.reason - })); - - _this2._unregisterEvents(); - - _this2.close(); - }), this._eventEmitter.addListener('websocketFailed', function (ev) { - if (ev.id !== _this2._socketId) { - return; - } - - _this2.readyState = _this2.CLOSED; - - _this2.dispatchEvent(new WebSocketEvent('error', { - message: ev.message - })); - - _this2.dispatchEvent(new WebSocketEvent('close', { - message: ev.message - })); - - _this2._unregisterEvents(); - - _this2.close(); - })]; - } - }, { - key: "binaryType", - get: function get() { - return this._binaryType; - }, - set: function set(binaryType) { - if (binaryType !== 'blob' && binaryType !== 'arraybuffer') { - throw new Error("binaryType must be either 'blob' or 'arraybuffer'"); - } - - if (this._binaryType === 'blob' || binaryType === 'blob') { - invariant(BlobManager.isAvailable, 'Native module BlobModule is required for blob support'); - - if (binaryType === 'blob') { - BlobManager.addWebSocketHandler(this._socketId); - } else { - BlobManager.removeWebSocketHandler(this._socketId); - } - } - - this._binaryType = binaryType; - } - }]); - - _inherits(WebSocket, _EventTarget); - - return WebSocket; - }(EventTarget.apply(void 0, WEBSOCKET_EVENTS)); - - WebSocket.CONNECTING = CONNECTING; - WebSocket.OPEN = OPEN; - WebSocket.CLOSING = CLOSING; - WebSocket.CLOSED = CLOSED; - WebSocket.isAvailable = !!WebSocketModule; - module.exports = WebSocket; -},353,[354,382,74,385,93,94,393,384,391,4],"node_modules/react-native/Libraries/WebSocket/WebSocket.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - var WebSocketEvent = function WebSocketEvent(type, eventInitDict) { - _classCallCheck(this, WebSocketEvent); - - this.type = type.toString(); - - _extends(this, eventInitDict); - }; - - module.exports = WebSocketEvent; -},393,[],"node_modules/react-native/Libraries/WebSocket/WebSocketEvent.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var Blob = _$$_REQUIRE(_dependencyMap[0], 'Blob'); - - var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); - - var File = function (_Blob) { - function File(parts, name, options) { - var _this; - - _classCallCheck(this, File); - - invariant(parts != null && name != null, 'Failed to construct `File`: Must pass both `parts` and `name` arguments.'); - _this = _possibleConstructorReturn(this, _getPrototypeOf(File).call(this, parts, options)); - _this.data.name = name; - return _this; - } - - _createClass(File, [{ - key: "name", - get: function get() { - invariant(this.data.name != null, 'Files must have a name set.'); - return this.data.name; - } - }, { - key: "lastModified", - get: function get() { - return this.data.lastModified || 0; - } - }]); - - _inherits(File, _Blob); - - return File; - }(Blob); - - module.exports = File; -},355,[354,4],"node_modules/react-native/Libraries/Blob/File.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var EventTarget = _$$_REQUIRE(_dependencyMap[0], 'event-target-shim'); - - var Blob = _$$_REQUIRE(_dependencyMap[1], 'Blob'); - - var _require = _$$_REQUIRE(_dependencyMap[2], 'NativeModules'), - FileReaderModule = _require.FileReaderModule; - - var READER_EVENTS = ['abort', 'error', 'load', 'loadstart', 'loadend', 'progress']; - var EMPTY = 0; - var LOADING = 1; - var DONE = 2; - - var FileReader = function (_EventTarget) { - function FileReader() { - var _this; - - _classCallCheck(this, FileReader); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(FileReader).call(this)); - _this.EMPTY = EMPTY; - _this.LOADING = LOADING; - _this.DONE = DONE; - _this._aborted = false; - _this._subscriptions = []; - - _this._reset(); - - return _this; - } - - _createClass(FileReader, [{ - key: "_reset", - value: function _reset() { - this._readyState = EMPTY; - this._error = null; - this._result = null; - } - }, { - key: "_clearSubscriptions", - value: function _clearSubscriptions() { - this._subscriptions.forEach(function (sub) { - return sub.remove(); - }); - - this._subscriptions = []; - } - }, { - key: "_setReadyState", - value: function _setReadyState(newState) { - this._readyState = newState; - this.dispatchEvent({ - type: 'readystatechange' - }); - - if (newState === DONE) { - if (this._aborted) { - this.dispatchEvent({ - type: 'abort' - }); - } else if (this._error) { - this.dispatchEvent({ - type: 'error' - }); - } else { - this.dispatchEvent({ - type: 'load' - }); - } - - this.dispatchEvent({ - type: 'loadend' - }); - } - } - }, { - key: "readAsArrayBuffer", - value: function readAsArrayBuffer() { - throw new Error('FileReader.readAsArrayBuffer is not implemented'); - } - }, { - key: "readAsDataURL", - value: function readAsDataURL(blob) { - var _this2 = this; - - this._aborted = false; - FileReaderModule.readAsDataURL(blob.data).then(function (text) { - if (_this2._aborted) { - return; - } - - _this2._result = text; - - _this2._setReadyState(DONE); - }, function (error) { - if (_this2._aborted) { - return; - } - - _this2._error = error; - - _this2._setReadyState(DONE); - }); - } - }, { - key: "readAsText", - value: function readAsText(blob) { - var _this3 = this; - - var encoding = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'UTF-8'; - this._aborted = false; - FileReaderModule.readAsText(blob.data, encoding).then(function (text) { - if (_this3._aborted) { - return; - } - - _this3._result = text; - - _this3._setReadyState(DONE); - }, function (error) { - if (_this3._aborted) { - return; - } - - _this3._error = error; - - _this3._setReadyState(DONE); - }); - } - }, { - key: "abort", - value: function abort() { - this._aborted = true; - - if (this._readyState !== EMPTY && this._readyState !== DONE) { - this._reset(); - - this._setReadyState(DONE); - } - - this._reset(); - } - }, { - key: "readyState", - get: function get() { - return this._readyState; - } - }, { - key: "error", - get: function get() { - return this._error; - } - }, { - key: "result", - get: function get() { - return this._result; - } - }]); - - _inherits(FileReader, _EventTarget); - - return FileReader; - }(EventTarget.apply(void 0, READER_EVENTS)); - - FileReader.EMPTY = EMPTY; - FileReader.LOADING = LOADING; - FileReader.DONE = DONE; - module.exports = FileReader; -},356,[382,354,93],"node_modules/react-native/Libraries/Blob/FileReader.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var Blob = _$$_REQUIRE(_dependencyMap[0], 'Blob'); - - var _require = _$$_REQUIRE(_dependencyMap[1], 'NativeModules'), - BlobModule = _require.BlobModule; - - var BLOB_URL_PREFIX = null; - - if (BlobModule && typeof BlobModule.BLOB_URI_SCHEME === 'string') { - BLOB_URL_PREFIX = BlobModule.BLOB_URI_SCHEME + ':'; - - if (typeof BlobModule.BLOB_URI_HOST === 'string') { - BLOB_URL_PREFIX += "//" + BlobModule.BLOB_URI_HOST + "/"; - } - } - - var URL = function () { - function URL() { - _classCallCheck(this, URL); - - throw new Error('Creating URL objects is not supported yet.'); - } - - _createClass(URL, null, [{ - key: "createObjectURL", - value: function createObjectURL(blob) { - if (BLOB_URL_PREFIX === null) { - throw new Error('Cannot create URL for blob!'); - } - - return "" + BLOB_URL_PREFIX + blob.data.blobId + "?offset=" + blob.data.offset + "&size=" + blob.size; - } - }, { - key: "revokeObjectURL", - value: function revokeObjectURL(url) {} - }]); - - return URL; - }(); - - module.exports = URL; -},357,[354,93],"node_modules/react-native/Libraries/Blob/URL.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var AlertIOS = _$$_REQUIRE(_dependencyMap[0], 'AlertIOS'); - - var NativeModules = _$$_REQUIRE(_dependencyMap[1], 'NativeModules'); - - var Platform = _$$_REQUIRE(_dependencyMap[2], 'Platform'); - - var Alert = function () { - function Alert() { - _classCallCheck(this, Alert); - } - - _createClass(Alert, null, [{ - key: "alert", - value: function alert(title, message, buttons, options, type) { - if (Platform.OS === 'ios') { - if (typeof type !== 'undefined') { - console.warn('Alert.alert() with a 5th "type" parameter is deprecated and will be removed. Use AlertIOS.prompt() instead.'); - AlertIOS.alert(title, message, buttons, type); - return; - } - - AlertIOS.alert(title, message, buttons); - } else if (Platform.OS === 'android') { - AlertAndroid.alert(title, message, buttons, options); - } - } - }]); - - return Alert; - }(); - - var AlertAndroid = function () { - function AlertAndroid() { - _classCallCheck(this, AlertAndroid); - } - - _createClass(AlertAndroid, null, [{ - key: "alert", - value: function alert(title, message, buttons, options) { - var config = { - title: title || '', - message: message || '' - }; - - if (options) { - config = _objectSpread({}, config, { - cancelable: options.cancelable - }); - } - - var validButtons = buttons ? buttons.slice(0, 3) : [{ - text: 'OK' - }]; - var buttonPositive = validButtons.pop(); - var buttonNegative = validButtons.pop(); - var buttonNeutral = validButtons.pop(); - - if (buttonNeutral) { - config = _objectSpread({}, config, { - buttonNeutral: buttonNeutral.text || '' - }); - } - - if (buttonNegative) { - config = _objectSpread({}, config, { - buttonNegative: buttonNegative.text || '' - }); - } - - if (buttonPositive) { - config = _objectSpread({}, config, { - buttonPositive: buttonPositive.text || '' - }); - } - - NativeModules.DialogManagerAndroid.showAlert(config, function (errorMessage) { - return console.warn(errorMessage); - }, function (action, buttonKey) { - if (action === NativeModules.DialogManagerAndroid.buttonClicked) { - if (buttonKey === NativeModules.DialogManagerAndroid.buttonNeutral) { - buttonNeutral.onPress && buttonNeutral.onPress(); - } else if (buttonKey === NativeModules.DialogManagerAndroid.buttonNegative) { - buttonNegative.onPress && buttonNegative.onPress(); - } else if (buttonKey === NativeModules.DialogManagerAndroid.buttonPositive) { - buttonPositive.onPress && buttonPositive.onPress(); - } - } else if (action === NativeModules.DialogManagerAndroid.dismissed) { - options && options.onDismiss && options.onDismiss(); - } - }); - } - }]); - - return AlertAndroid; - }(); - - module.exports = Alert; -},53,[54,93,94],"node_modules/react-native/Libraries/Alert/Alert.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var RCTAlertManager = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').AlertManager; - - var AlertIOS = function () { - function AlertIOS() { - _classCallCheck(this, AlertIOS); - } - - _createClass(AlertIOS, null, [{ - key: "alert", - value: function alert(title, message, callbackOrButtons, type) { - if (typeof type !== 'undefined') { - console.warn('AlertIOS.alert() with a 4th "type" parameter is deprecated and will be removed. Use AlertIOS.prompt() instead.'); - this.prompt(title, message, callbackOrButtons, type); - return; - } - - this.prompt(title, message, callbackOrButtons, 'default'); - } - }, { - key: "prompt", - value: function prompt(title, message, callbackOrButtons) { - var type = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'plain-text'; - var defaultValue = arguments.length > 4 ? arguments[4] : undefined; - var keyboardType = arguments.length > 5 ? arguments[5] : undefined; - - if (typeof type === 'function') { - console.warn('You passed a callback function as the "type" argument to AlertIOS.prompt(). React Native is ' + 'assuming you want to use the deprecated AlertIOS.prompt(title, defaultValue, buttons, callback) ' + 'signature. The current signature is AlertIOS.prompt(title, message, callbackOrButtons, type, defaultValue, ' + 'keyboardType) and the old syntax will be removed in a future version.'); - var callback = type; - RCTAlertManager.alertWithArgs({ - title: title || '', - type: 'plain-text', - defaultValue: message - }, function (id, value) { - callback(value); - }); - return; - } - - var callbacks = []; - var buttons = []; - var cancelButtonKey; - var destructiveButtonKey; - - if (typeof callbackOrButtons === 'function') { - callbacks = [callbackOrButtons]; - } else if (callbackOrButtons instanceof Array) { - callbackOrButtons.forEach(function (btn, index) { - callbacks[index] = btn.onPress; - - if (btn.style === 'cancel') { - cancelButtonKey = String(index); - } else if (btn.style === 'destructive') { - destructiveButtonKey = String(index); - } - - if (btn.text || index < (callbackOrButtons || []).length - 1) { - var btnDef = {}; - btnDef[index] = btn.text || ''; - buttons.push(btnDef); - } - }); - } - - RCTAlertManager.alertWithArgs({ - title: title || '', - message: message || undefined, - buttons: buttons, - type: type || undefined, - defaultValue: defaultValue, - cancelButtonKey: cancelButtonKey, - destructiveButtonKey: destructiveButtonKey, - keyboardType: keyboardType - }, function (id, value) { - var cb = callbacks[id]; - cb && cb(value); - }); - } - }]); - - return AlertIOS; - }(); - - module.exports = AlertIOS; -},54,[93],"node_modules/react-native/Libraries/Alert/AlertIOS.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], 'NativeEventEmitter'); - - var RCTLocationObserver = _$$_REQUIRE(_dependencyMap[1], 'NativeModules').LocationObserver; - - var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); - - var logError = _$$_REQUIRE(_dependencyMap[3], 'logError'); - - var warning = _$$_REQUIRE(_dependencyMap[4], 'fbjs/lib/warning'); - - var LocationEventEmitter = new NativeEventEmitter(RCTLocationObserver); - - var Platform = _$$_REQUIRE(_dependencyMap[5], 'Platform'); - - var PermissionsAndroid = _$$_REQUIRE(_dependencyMap[6], 'PermissionsAndroid'); - - var subscriptions = []; - var updatesEnabled = false; - var Geolocation = { - setRNConfiguration: function setRNConfiguration(config) { - if (RCTLocationObserver.setConfiguration) { - RCTLocationObserver.setConfiguration(config); - } - }, - requestAuthorization: function requestAuthorization() { - RCTLocationObserver.requestAuthorization(); - }, - getCurrentPosition: function getCurrentPosition(geo_success, geo_error, geo_options) { - var hasPermission, status; - return regeneratorRuntime.async(function getCurrentPosition$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - invariant(typeof geo_success === 'function', 'Must provide a valid geo_success callback.'); - hasPermission = true; - - if (!(Platform.OS === 'android' && Platform.Version >= 23)) { - _context.next = 11; - break; - } - - _context.next = 5; - return regeneratorRuntime.awrap(PermissionsAndroid.check(PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION)); - - case 5: - hasPermission = _context.sent; - - if (hasPermission) { - _context.next = 11; - break; - } - - _context.next = 9; - return regeneratorRuntime.awrap(PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION)); - - case 9: - status = _context.sent; - hasPermission = status === PermissionsAndroid.RESULTS.GRANTED; - - case 11: - if (hasPermission) { - RCTLocationObserver.getCurrentPosition(geo_options || {}, geo_success, geo_error || logError); - } - - case 12: - case "end": - return _context.stop(); - } - } - }, null, this); - }, - watchPosition: function watchPosition(success, error, options) { - if (!updatesEnabled) { - RCTLocationObserver.startObserving(options || {}); - updatesEnabled = true; - } - - var watchID = subscriptions.length; - subscriptions.push([LocationEventEmitter.addListener('geolocationDidChange', success), error ? LocationEventEmitter.addListener('geolocationError', error) : null]); - return watchID; - }, - clearWatch: function clearWatch(watchID) { - var sub = subscriptions[watchID]; - - if (!sub) { - return; - } - - sub[0].remove(); - var sub1 = sub[1]; - sub1 && sub1.remove(); - subscriptions[watchID] = undefined; - var noWatchers = true; - - for (var ii = 0; ii < subscriptions.length; ii++) { - if (subscriptions[ii]) { - noWatchers = false; - } - } - - if (noWatchers) { - Geolocation.stopObserving(); - } - }, - stopObserving: function stopObserving() { - if (updatesEnabled) { - RCTLocationObserver.stopObserving(); - updatesEnabled = false; - - for (var ii = 0; ii < subscriptions.length; ii++) { - var sub = subscriptions[ii]; - - if (sub) { - warning(false, 'Called stopObserving with existing subscriptions.'); - sub[0].remove(); - var sub1 = sub[1]; - sub1 && sub1.remove(); - } - } - - subscriptions = []; - } - } - }; - module.exports = Geolocation; -},358,[74,93,4,394,111,94,77],"node_modules/react-native/Libraries/Geolocation/Geolocation.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var logError = function logError() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - if (args.length === 1 && args[0] instanceof Error) { - var err = args[0]; - console.error('Error: "' + err.message + '". Stack:\n' + err.stack); - } else { - console.error.apply(console, args); - } - }; - - module.exports = logError; -},394,[],"node_modules/react-native/Libraries/Utilities/logError.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var NativeModules = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'); - - var PermissionsAndroid = function () { - function PermissionsAndroid() { - _classCallCheck(this, PermissionsAndroid); - - this.PERMISSIONS = { - READ_CALENDAR: 'android.permission.READ_CALENDAR', - WRITE_CALENDAR: 'android.permission.WRITE_CALENDAR', - CAMERA: 'android.permission.CAMERA', - READ_CONTACTS: 'android.permission.READ_CONTACTS', - WRITE_CONTACTS: 'android.permission.WRITE_CONTACTS', - GET_ACCOUNTS: 'android.permission.GET_ACCOUNTS', - ACCESS_FINE_LOCATION: 'android.permission.ACCESS_FINE_LOCATION', - ACCESS_COARSE_LOCATION: 'android.permission.ACCESS_COARSE_LOCATION', - RECORD_AUDIO: 'android.permission.RECORD_AUDIO', - READ_PHONE_STATE: 'android.permission.READ_PHONE_STATE', - CALL_PHONE: 'android.permission.CALL_PHONE', - READ_CALL_LOG: 'android.permission.READ_CALL_LOG', - WRITE_CALL_LOG: 'android.permission.WRITE_CALL_LOG', - ADD_VOICEMAIL: 'com.android.voicemail.permission.ADD_VOICEMAIL', - USE_SIP: 'android.permission.USE_SIP', - PROCESS_OUTGOING_CALLS: 'android.permission.PROCESS_OUTGOING_CALLS', - BODY_SENSORS: 'android.permission.BODY_SENSORS', - SEND_SMS: 'android.permission.SEND_SMS', - RECEIVE_SMS: 'android.permission.RECEIVE_SMS', - READ_SMS: 'android.permission.READ_SMS', - RECEIVE_WAP_PUSH: 'android.permission.RECEIVE_WAP_PUSH', - RECEIVE_MMS: 'android.permission.RECEIVE_MMS', - READ_EXTERNAL_STORAGE: 'android.permission.READ_EXTERNAL_STORAGE', - WRITE_EXTERNAL_STORAGE: 'android.permission.WRITE_EXTERNAL_STORAGE' - }; - this.RESULTS = { - GRANTED: 'granted', - DENIED: 'denied', - NEVER_ASK_AGAIN: 'never_ask_again' - }; - } - - _createClass(PermissionsAndroid, [{ - key: "checkPermission", - value: function checkPermission(permission) { - console.warn('"PermissionsAndroid.checkPermission" is deprecated. Use "PermissionsAndroid.check" instead'); - return NativeModules.PermissionsAndroid.checkPermission(permission); - } - }, { - key: "check", - value: function check(permission) { - return NativeModules.PermissionsAndroid.checkPermission(permission); - } - }, { - key: "requestPermission", - value: function requestPermission(permission, rationale) { - var response; - return regeneratorRuntime.async(function requestPermission$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - console.warn('"PermissionsAndroid.requestPermission" is deprecated. Use "PermissionsAndroid.request" instead'); - _context.next = 3; - return regeneratorRuntime.awrap(this.request(permission, rationale)); - - case 3: - response = _context.sent; - return _context.abrupt("return", response === this.RESULTS.GRANTED); - - case 5: - case "end": - return _context.stop(); - } - } - }, null, this); - } - }, { - key: "request", - value: function request(permission, rationale) { - var shouldShowRationale; - return regeneratorRuntime.async(function request$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - if (!rationale) { - _context2.next = 6; - break; - } - - _context2.next = 3; - return regeneratorRuntime.awrap(NativeModules.PermissionsAndroid.shouldShowRequestPermissionRationale(permission)); - - case 3: - shouldShowRationale = _context2.sent; - - if (!shouldShowRationale) { - _context2.next = 6; - break; - } - - return _context2.abrupt("return", new Promise(function (resolve, reject) { - NativeModules.DialogManagerAndroid.showAlert(rationale, function () { - return reject(new Error('Error showing rationale')); - }, function () { - return resolve(NativeModules.PermissionsAndroid.requestPermission(permission)); - }); - })); - - case 6: - return _context2.abrupt("return", NativeModules.PermissionsAndroid.requestPermission(permission)); - - case 7: - case "end": - return _context2.stop(); - } - } - }, null, this); - } - }, { - key: "requestMultiple", - value: function requestMultiple(permissions) { - return NativeModules.PermissionsAndroid.requestMultiplePermissions(permissions); - } - }]); - - return PermissionsAndroid; - }(); - - PermissionsAndroid = new PermissionsAndroid(); - module.exports = PermissionsAndroid; -},77,[93],"node_modules/react-native/Libraries/PermissionsAndroid/PermissionsAndroid.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var HeapCapture = { - captureHeap: function captureHeap(path) { - var error = null; - - try { - global.nativeCaptureHeap(path); - console.log('HeapCapture.captureHeap succeeded: ' + path); - } catch (e) { - console.log('HeapCapture.captureHeap error: ' + e.toString()); - error = e.toString(); - } - - _$$_REQUIRE(_dependencyMap[0], 'NativeModules').JSCHeapCapture.captureComplete(path, error); - } - }; - module.exports = HeapCapture; -},359,[93],"node_modules/react-native/Libraries/Utilities/HeapCapture.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var SamplingProfiler = { - poke: function poke(token) { - var error = null; - var result = null; - - try { - result = global.pokeSamplingProfiler(); - - if (result === null) { - console.log('The JSC Sampling Profiler has started'); - } else { - console.log('The JSC Sampling Profiler has stopped'); - } - } catch (e) { - console.log('Error occurred when restarting Sampling Profiler: ' + e.toString()); - error = e.toString(); - } - - var _require = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'), - JSCSamplingProfiler = _require.JSCSamplingProfiler; - - JSCSamplingProfiler.operationComplete(token, result, error); - } - }; - module.exports = SamplingProfiler; -},360,[93],"node_modules/react-native/Libraries/Performance/SamplingProfiler.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); - - var levelsMap = { - log: 'log', - info: 'info', - warn: 'warn', - error: 'error', - fatal: 'error' - }; - var warningHandler = null; - var RCTLog = { - logIfNoNativeHook: function logIfNoNativeHook(level) { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - if (typeof global.nativeLoggingHook === 'undefined') { - RCTLog.logToConsole.apply(RCTLog, [level].concat(args)); - } else { - if (warningHandler && level === 'warn') { - warningHandler.apply(void 0, args); - } - } - }, - logToConsole: function logToConsole(level) { - var _console; - - var logFn = levelsMap[level]; - invariant(logFn, 'Level "' + level + '" not one of ' + Object.keys(levelsMap).toString()); - - for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } - - (_console = console)[logFn].apply(_console, args); - }, - setWarningHandler: function setWarningHandler(handler) { - warningHandler = handler; - } - }; - module.exports = RCTLog; -},361,[4],"node_modules/react-native/Libraries/Utilities/RCTLog.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], 'RCTDeviceEventEmitter'); - - var RCTNativeAppEventEmitter = RCTDeviceEventEmitter; - module.exports = RCTNativeAppEventEmitter; -},92,[91],"node_modules/react-native/Libraries/EventEmitter/RCTNativeAppEventEmitter.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var Systrace = _$$_REQUIRE(_dependencyMap[0], 'Systrace'); - - var infoLog = _$$_REQUIRE(_dependencyMap[1], 'infoLog'); - - var performanceNow = global.nativeQPLTimestamp || global.nativePerformanceNow || _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/performanceNow'); - - var timespans = {}; - var extras = {}; - var cookies = {}; - var PRINT_TO_CONSOLE = false; - var PerformanceLogger = { - addTimespan: function addTimespan(key, lengthInMs, description) { - if (timespans[key]) { - if (__DEV__) { - infoLog('PerformanceLogger: Attempting to add a timespan that already exists ', key); - } - - return; - } - - timespans[key] = { - description: description, - totalTime: lengthInMs - }; - }, - startTimespan: function startTimespan(key, description) { - if (timespans[key]) { - if (__DEV__) { - infoLog('PerformanceLogger: Attempting to start a timespan that already exists ', key); - } - - return; - } - - timespans[key] = { - description: description, - startTime: performanceNow() - }; - cookies[key] = Systrace.beginAsyncEvent(key); - - if (PRINT_TO_CONSOLE) { - infoLog('PerformanceLogger.js', 'start: ' + key); - } - }, - stopTimespan: function stopTimespan(key) { - var timespan = timespans[key]; - - if (!timespan || !timespan.startTime) { - if (__DEV__) { - infoLog('PerformanceLogger: Attempting to end a timespan that has not started ', key); - } - - return; - } - - if (timespan.endTime) { - if (__DEV__) { - infoLog('PerformanceLogger: Attempting to end a timespan that has already ended ', key); - } - - return; - } - - timespan.endTime = performanceNow(); - timespan.totalTime = timespan.endTime - (timespan.startTime || 0); - - if (PRINT_TO_CONSOLE) { - infoLog('PerformanceLogger.js', 'end: ' + key); - } - - Systrace.endAsyncEvent(key, cookies[key]); - delete cookies[key]; - }, - clear: function clear() { - timespans = {}; - extras = {}; - - if (PRINT_TO_CONSOLE) { - infoLog('PerformanceLogger.js', 'clear'); - } - }, - clearCompleted: function clearCompleted() { - for (var _key in timespans) { - if (timespans[_key].totalTime) { - delete timespans[_key]; - } - } - - extras = {}; - - if (PRINT_TO_CONSOLE) { - infoLog('PerformanceLogger.js', 'clearCompleted'); - } - }, - clearExceptTimespans: function clearExceptTimespans(keys) { - timespans = Object.keys(timespans).reduce(function (previous, key) { - if (keys.indexOf(key) !== -1) { - previous[key] = timespans[key]; - } - - return previous; - }, {}); - extras = {}; - - if (PRINT_TO_CONSOLE) { - infoLog('PerformanceLogger.js', 'clearExceptTimespans', keys); - } - }, - currentTimestamp: function currentTimestamp() { - return performanceNow(); - }, - getTimespans: function getTimespans() { - return timespans; - }, - hasTimespan: function hasTimespan(key) { - return !!timespans[key]; - }, - logTimespans: function logTimespans() { - for (var _key2 in timespans) { - if (timespans[_key2].totalTime) { - infoLog(_key2 + ': ' + timespans[_key2].totalTime + 'ms'); - } - } - }, - addTimespans: function addTimespans(newTimespans, labels) { - for (var ii = 0, l = newTimespans.length; ii < l; ii += 2) { - var label = labels[ii / 2]; - PerformanceLogger.addTimespan(label, newTimespans[ii + 1] - newTimespans[ii], label); - } - }, - setExtra: function setExtra(key, value) { - if (extras[key]) { - if (__DEV__) { - infoLog('PerformanceLogger: Attempting to set an extra that already exists ', { - key: key, - currentValue: extras[key], - attemptedValue: value - }); - } - - return; - } - - extras[key] = value; - }, - getExtras: function getExtras() { - return extras; - }, - logExtras: function logExtras() { - infoLog(extras); - } - }; - module.exports = PerformanceLogger; -},362,[84,395,109],"node_modules/react-native/Libraries/Utilities/PerformanceLogger.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function infoLog() { - var _console; - - return (_console = console).log.apply(_console, arguments); - } - - module.exports = infoLog; -},395,[],"node_modules/react-native/Libraries/Utilities/infoLog.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var JSDevSupport = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').JSDevSupport; - - var ReactNative = _$$_REQUIRE(_dependencyMap[1], 'ReactNative'); - - var JSDevSupportModule = { - getJSHierarchy: function getJSHierarchy(tag) { - try { - var computeComponentStackForErrorReporting = ReactNative.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.computeComponentStackForErrorReporting; - var componentStack = computeComponentStackForErrorReporting(tag); - - if (!componentStack) { - JSDevSupport.onFailure(JSDevSupport.ERROR_CODE_VIEW_NOT_FOUND, "Component stack doesn't exist for tag " + tag); - } else { - JSDevSupport.onSuccess(componentStack); - } - } catch (e) { - JSDevSupport.onFailure(JSDevSupport.ERROR_CODE_EXCEPTION, e.message); - } - } - }; - module.exports = JSDevSupportModule; -},363,[93,67],"node_modules/react-native/Libraries/Utilities/JSDevSupportModule.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); - - var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); - - var MetroHMRClient = _$$_REQUIRE(_dependencyMap[2], 'metro/src/lib/bundle-modules/HMRClient'); - - var HMRClient = { - enable: function enable(platform, bundleEntry, host, port) { - invariant(platform, 'Missing required parameter `platform`'); - invariant(bundleEntry, 'Missing required paramenter `bundleEntry`'); - invariant(host, 'Missing required paramenter `host`'); - - var HMRLoadingView = _$$_REQUIRE(_dependencyMap[3], 'HMRLoadingView'); - - var wsHostPort = port !== null && port !== '' ? host + ":" + port : host; - bundleEntry = bundleEntry.replace(/\.(bundle|delta)/, '.js'); - var wsUrl = "ws://" + wsHostPort + "/hot?" + ("platform=" + platform + "&") + ("bundleEntry=" + bundleEntry); - var hmrClient = new MetroHMRClient(wsUrl); - hmrClient.on('connection-error', function (e) { - var error = "Hot loading isn't working because it cannot connect to the development server.\n\nTry the following to fix the issue:\n- Ensure that the packager server is running and available on the same network"; - - if (Platform.OS === 'ios') { - error += "\n- Ensure that the Packager server URL is correctly set in AppDelegate"; - } else { - error += "\n- Ensure that your device/emulator is connected to your machine and has USB debugging enabled - run 'adb devices' to see a list of connected devices\n- If you're on a physical device connected to the same machine, run 'adb reverse tcp:8081 tcp:8081' to forward requests from your device\n- If your device is on the same Wi-Fi network, set 'Debug server host & port for device' in 'Dev settings' to your machine's IP address and the port of the local dev server - e.g. 10.0.1.1:8081"; - } - - error += "\n\nURL: " + host + ":" + port + "\n\nError: " + e.message; - throw new Error(error); - }); - hmrClient.on('update-start', function () { - HMRLoadingView.showMessage('Hot Loading...'); - }); - hmrClient.on('update', function () { - if (Platform.OS === 'ios') { - var RCTRedBox = _$$_REQUIRE(_dependencyMap[4], 'NativeModules').RedBox; - - RCTRedBox && RCTRedBox.dismiss && RCTRedBox.dismiss(); - } else { - var RCTExceptionsManager = _$$_REQUIRE(_dependencyMap[4], 'NativeModules').ExceptionsManager; - - RCTExceptionsManager && RCTExceptionsManager.dismissRedbox && RCTExceptionsManager.dismissRedbox(); - } - }); - hmrClient.on('update-done', function () { - HMRLoadingView.hide(); - }); - hmrClient.on('error', function (data) { - HMRLoadingView.hide(); - throw new Error(data.type + " " + data.message); - }); - hmrClient.enable(); - } - }; - module.exports = HMRClient; -},364,[94,4,396,397,93],"node_modules/react-native/Libraries/Utilities/HMRClient.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - module.exports = _$$_REQUIRE(_dependencyMap[0], './MetroClient'); -},396,[398],"node_modules/metro/src/lib/bundle-modules/HMRClient.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var EventEmitter = _$$_REQUIRE(_dependencyMap[0], 'eventemitter3'); - - var MetroClient = function (_EventEmitter) { - function MetroClient(url) { - var _this; - - _classCallCheck(this, MetroClient); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(MetroClient).call(this)); - _this._url = url; - return _this; - } - - _createClass(MetroClient, [{ - key: "enable", - value: function enable() { - var _this2 = this; - - if (this._ws) { - this.disable(); - } - - this._ws = new global.WebSocket(this._url); - - this._ws.onerror = function (error) { - _this2.emit('connection-error', error); - }; - - this._ws.onclose = function () { - _this2.emit('close'); - }; - - this._ws.onmessage = function (message) { - var data = JSON.parse(message.data); - - switch (data.type) { - case 'update-start': - _this2.emit('update-start'); - - break; - - case 'update': - var _data$body = data.body; - var modules = _data$body.modules, - sourceMappingURLs = _data$body.sourceMappingURLs, - sourceURLs = _data$body.sourceURLs; - - _this2.emit('update'); - - modules.forEach(function (_ref, i) { - var id = _ref.id, - code = _ref.code; - code += '\n\n' + sourceMappingURLs[i]; - var injectFunction = typeof global.nativeInjectHMRUpdate === 'function' ? global.nativeInjectHMRUpdate : eval; - injectFunction(code, sourceURLs[i]); - }); - break; - - case 'update-done': - _this2.emit('update-done'); - - break; - - case 'error': - _this2.emit('error', data.body); - - break; - - default: - _this2.emit('error', { - type: 'unknown-message', - message: data - }); - - } - }; - } - }, { - key: "disable", - value: function disable() { - if (this._ws) { - this._ws.close(); - - this._ws = undefined; - } - } - }]); - - _inherits(MetroClient, _EventEmitter); - - return MetroClient; - }(EventEmitter); - - module.exports = MetroClient; -},398,[399],"node_modules/metro/src/lib/bundle-modules/MetroClient.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var has = Object.prototype.hasOwnProperty, - prefix = '~'; - - function Events() {} - - if (Object.create) { - Events.prototype = Object.create(null); - if (!new Events().__proto__) prefix = false; - } - - function EE(fn, context, once) { - this.fn = fn; - this.context = context; - this.once = once || false; - } - - function addListener(emitter, event, fn, context, once) { - if (typeof fn !== 'function') { - throw new TypeError('The listener must be a function'); - } - - var listener = new EE(fn, context || emitter, once), - evt = prefix ? prefix + event : event; - if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);else emitter._events[evt] = [emitter._events[evt], listener]; - return emitter; - } - - function clearEvent(emitter, evt) { - if (--emitter._eventsCount === 0) emitter._events = new Events();else delete emitter._events[evt]; - } - - function EventEmitter() { - this._events = new Events(); - this._eventsCount = 0; - } - - EventEmitter.prototype.eventNames = function eventNames() { - var names = [], - events, - name; - if (this._eventsCount === 0) return names; - - for (name in events = this._events) { - if (has.call(events, name)) names.push(prefix ? name.slice(1) : name); - } - - if (Object.getOwnPropertySymbols) { - return names.concat(Object.getOwnPropertySymbols(events)); - } - - return names; - }; - - EventEmitter.prototype.listeners = function listeners(event) { - var evt = prefix ? prefix + event : event, - handlers = this._events[evt]; - if (!handlers) return []; - if (handlers.fn) return [handlers.fn]; - - for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) { - ee[i] = handlers[i].fn; - } - - return ee; - }; - - EventEmitter.prototype.listenerCount = function listenerCount(event) { - var evt = prefix ? prefix + event : event, - listeners = this._events[evt]; - if (!listeners) return 0; - if (listeners.fn) return 1; - return listeners.length; - }; - - EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) { - var evt = prefix ? prefix + event : event; - if (!this._events[evt]) return false; - var listeners = this._events[evt], - len = arguments.length, - args, - i; - - if (listeners.fn) { - if (listeners.once) this.removeListener(event, listeners.fn, undefined, true); - - switch (len) { - case 1: - return listeners.fn.call(listeners.context), true; - - case 2: - return listeners.fn.call(listeners.context, a1), true; - - case 3: - return listeners.fn.call(listeners.context, a1, a2), true; - - case 4: - return listeners.fn.call(listeners.context, a1, a2, a3), true; - - case 5: - return listeners.fn.call(listeners.context, a1, a2, a3, a4), true; - - case 6: - return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true; - } - - for (i = 1, args = new Array(len - 1); i < len; i++) { - args[i - 1] = arguments[i]; - } - - listeners.fn.apply(listeners.context, args); - } else { - var length = listeners.length, - j; - - for (i = 0; i < length; i++) { - if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true); - - switch (len) { - case 1: - listeners[i].fn.call(listeners[i].context); - break; - - case 2: - listeners[i].fn.call(listeners[i].context, a1); - break; - - case 3: - listeners[i].fn.call(listeners[i].context, a1, a2); - break; - - case 4: - listeners[i].fn.call(listeners[i].context, a1, a2, a3); - break; - - default: - if (!args) for (j = 1, args = new Array(len - 1); j < len; j++) { - args[j - 1] = arguments[j]; - } - listeners[i].fn.apply(listeners[i].context, args); - } - } - } - - return true; - }; - - EventEmitter.prototype.on = function on(event, fn, context) { - return addListener(this, event, fn, context, false); - }; - - EventEmitter.prototype.once = function once(event, fn, context) { - return addListener(this, event, fn, context, true); - }; - - EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) { - var evt = prefix ? prefix + event : event; - if (!this._events[evt]) return this; - - if (!fn) { - clearEvent(this, evt); - return this; - } - - var listeners = this._events[evt]; - - if (listeners.fn) { - if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) { - clearEvent(this, evt); - } - } else { - for (var i = 0, events = [], length = listeners.length; i < length; i++) { - if (listeners[i].fn !== fn || once && !listeners[i].once || context && listeners[i].context !== context) { - events.push(listeners[i]); - } - } - - if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;else clearEvent(this, evt); - } - - return this; - }; - - EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) { - var evt; - - if (event) { - evt = prefix ? prefix + event : event; - if (this._events[evt]) clearEvent(this, evt); - } else { - this._events = new Events(); - this._eventsCount = 0; - } - - return this; - }; - - EventEmitter.prototype.off = EventEmitter.prototype.removeListener; - EventEmitter.prototype.addListener = EventEmitter.prototype.on; - EventEmitter.prefixed = prefix; - EventEmitter.EventEmitter = EventEmitter; - - if ('undefined' !== typeof module) { - module.exports = EventEmitter; - } -},399,[],"node_modules/eventemitter3/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var ToastAndroid = _$$_REQUIRE(_dependencyMap[0], 'ToastAndroid'); - - var TOAST_SHORT_DELAY = 2000; - - var HMRLoadingView = function () { - function HMRLoadingView() { - _classCallCheck(this, HMRLoadingView); - } - - _createClass(HMRLoadingView, null, [{ - key: "showMessage", - value: function showMessage(message) { - if (HMRLoadingView._showing) { - return; - } - - ToastAndroid.show(message, ToastAndroid.SHORT); - HMRLoadingView._showing = true; - setTimeout(function () { - HMRLoadingView._showing = false; - }, TOAST_SHORT_DELAY); - } - }, { - key: "hide", - value: function hide() {} - }]); - - return HMRLoadingView; - }(); - - module.exports = HMRLoadingView; -},397,[41],"node_modules/react-native/Libraries/Utilities/HMRLoadingView.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var RCTToastAndroid = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').ToastAndroid; - - var ToastAndroid = { - SHORT: RCTToastAndroid.SHORT, - LONG: RCTToastAndroid.LONG, - TOP: RCTToastAndroid.TOP, - BOTTOM: RCTToastAndroid.BOTTOM, - CENTER: RCTToastAndroid.CENTER, - show: function show(message, duration) { - RCTToastAndroid.show(message, duration); - }, - showWithGravity: function showWithGravity(message, duration, gravity) { - RCTToastAndroid.showWithGravity(message, duration, gravity); - }, - showWithGravityAndOffset: function showWithGravityAndOffset(message, duration, gravity, xOffset, yOffset) { - RCTToastAndroid.showWithGravityAndOffset(message, duration, gravity, xOffset, yOffset); - } - }; - module.exports = ToastAndroid; -},41,[93],"node_modules/react-native/Libraries/Components/ToastAndroid/ToastAndroid.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var register = function register() {}; - - if (__DEV__) { - var AppState = _$$_REQUIRE(_dependencyMap[0], 'AppState'); - - var WebSocket = _$$_REQUIRE(_dependencyMap[1], 'WebSocket'); - - var reactDevTools = _$$_REQUIRE(_dependencyMap[2], 'react-devtools-core'); - - var getDevServer = _$$_REQUIRE(_dependencyMap[3], 'getDevServer'); - - if (WebSocket.isAvailable) { - var _isAppActive = function _isAppActive() { - return AppState.currentState !== 'background'; - }; - - var devServer = getDevServer(); - - var _host = devServer.bundleLoadedFromServer ? devServer.url.replace(/https?:\/\//, '').split(':')[0] : 'localhost'; - - reactDevTools.connectToDevTools({ - isAppActive: _isAppActive, - host: _host, - port: window.__REACT_DEVTOOLS_PORT__, - resolveRNStyle: _$$_REQUIRE(_dependencyMap[4], 'flattenStyle') - }); - } - } - - module.exports = { - register: register - }; -},365,[57,353,400,372,134],"node_modules/react-native/Libraries/Core/Devtools/setupDevtools.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var MissingNativeEventEmitterShim = _$$_REQUIRE(_dependencyMap[0], 'MissingNativeEventEmitterShim'); - - var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[1], 'NativeEventEmitter'); - - var NativeModules = _$$_REQUIRE(_dependencyMap[2], 'NativeModules'); - - var RCTAppState = NativeModules.AppState; - - var logError = _$$_REQUIRE(_dependencyMap[3], 'logError'); - - var invariant = _$$_REQUIRE(_dependencyMap[4], 'fbjs/lib/invariant'); - - var AppState = function (_NativeEventEmitter) { - function AppState() { - var _this; - - _classCallCheck(this, AppState); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(AppState).call(this, RCTAppState)); - _this.isAvailable = true; - _this.isAvailable = true; - _this._eventHandlers = { - change: new Map(), - memoryWarning: new Map() - }; - _this.currentState = RCTAppState.initialAppState || 'active'; - var eventUpdated = false; - - _this.addListener('appStateDidChange', function (appStateData) { - eventUpdated = true; - _this.currentState = appStateData.app_state; - }); - - RCTAppState.getCurrentAppState(function (appStateData) { - if (!eventUpdated && _this.currentState !== appStateData.app_state) { - _this.currentState = appStateData.app_state; - - _this.emit('appStateDidChange', appStateData); - } - }, logError); - return _this; - } - - _createClass(AppState, [{ - key: "addEventListener", - value: function addEventListener(type, handler) { - invariant(['change', 'memoryWarning'].indexOf(type) !== -1, 'Trying to subscribe to unknown event: "%s"', type); - - if (type === 'change') { - this._eventHandlers[type].set(handler, this.addListener('appStateDidChange', function (appStateData) { - handler(appStateData.app_state); - })); - } else if (type === 'memoryWarning') { - this._eventHandlers[type].set(handler, this.addListener('memoryWarning', handler)); - } - } - }, { - key: "removeEventListener", - value: function removeEventListener(type, handler) { - invariant(['change', 'memoryWarning'].indexOf(type) !== -1, 'Trying to remove listener for unknown event: "%s"', type); - - if (!this._eventHandlers[type].has(handler)) { - return; - } - - this._eventHandlers[type].get(handler).remove(); - - this._eventHandlers[type].delete(handler); - } - }]); - - _inherits(AppState, _NativeEventEmitter); - - return AppState; - }(NativeEventEmitter); - - if (__DEV__ && !RCTAppState) { - var MissingNativeAppStateShim = function (_MissingNativeEventEm) { - function MissingNativeAppStateShim() { - _classCallCheck(this, MissingNativeAppStateShim); - - return _possibleConstructorReturn(this, _getPrototypeOf(MissingNativeAppStateShim).call(this, 'RCTAppState', 'AppState')); - } - - _createClass(MissingNativeAppStateShim, [{ - key: "addEventListener", - value: function addEventListener() { - this.throwMissingNativeModule(); - } - }, { - key: "removeEventListener", - value: function removeEventListener() { - this.throwMissingNativeModule(); - } - }, { - key: "currentState", - get: function get() { - this.throwMissingNativeModule(); - } - }]); - - _inherits(MissingNativeAppStateShim, _MissingNativeEventEm); - - return MissingNativeAppStateShim; - }(MissingNativeEventEmitterShim); - - AppState = new MissingNativeAppStateShim(); - } else { - AppState = new AppState(); - } - - module.exports = AppState; -},57,[389,74,93,394,4],"node_modules/react-native/Libraries/AppState/AppState.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function _extends2() { _extends2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends2.apply(this, arguments); } - - !function (root, factory) { - "object" == typeof exports && "object" == typeof module ? module.exports = factory() : "function" == typeof define && define.amd ? define([], factory) : "object" == typeof exports ? exports.ReactDevToolsBackend = factory() : root.ReactDevToolsBackend = factory(); - }(this, function () { - return function (modules) { - function __webpack_require__(moduleId) { - if (installedModules[moduleId]) return installedModules[moduleId].exports; - var module = installedModules[moduleId] = { - exports: {}, - id: moduleId, - loaded: !1 - }; - return modules[moduleId].call(module.exports, module, module.exports, __webpack_require__), module.loaded = !0, module.exports; - } - - var installedModules = {}; - return __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.p = "", __webpack_require__(0); - }([function (module, exports, __webpack_require__) { - "use strict"; - - function connectToDevTools(options) { - function scheduleRetry() { - setTimeout(function () { - return connectToDevTools(options); - }, 2e3); - } - - function handleClose() { - hasClosed || (hasClosed = !0, scheduleRetry(), closeListeners.forEach(function (fn) { - return fn(); - })); - } - - function handleMessage(evt) { - var data; - - try { - invariant("string" == typeof evt.data), data = JSON.parse(evt.data); - } catch (e) { - return void console.error("failed to parse json: " + String(evt.data)); - } - - messageListeners.forEach(function (fn) { - try { - fn(data); - } catch (e) { - throw console.log(data), e; - } - }); - } - - var _ref = options || {}, - _ref$host = _ref.host, - host = void 0 === _ref$host ? "localhost" : _ref$host, - _ref$port = _ref.port, - port = void 0 === _ref$port ? 8097 : _ref$port, - websocket = _ref.websocket, - _ref$resolveRNStyle = _ref.resolveRNStyle, - resolveRNStyle = void 0 === _ref$resolveRNStyle ? null : _ref$resolveRNStyle, - _ref$isAppActive = _ref.isAppActive, - isAppActive = void 0 === _ref$isAppActive ? function () { - return !0; - } : _ref$isAppActive; - - if (!isAppActive()) return void scheduleRetry(); - var messageListeners = [], - closeListeners = [], - uri = "ws://" + host + ":" + port, - ws = websocket ? websocket : new window.WebSocket(uri); - ws.onclose = handleClose, ws.onerror = handleClose, ws.onmessage = handleMessage, ws.onopen = function () { - var wall = { - listen: function listen(fn) { - messageListeners.push(fn); - }, - onClose: function onClose(fn) { - closeListeners.push(fn); - }, - send: function send(data) { - ws.send(JSON.stringify(data)); - } - }; - setupBackend(wall, resolveRNStyle); - }; - var hasClosed = !1; - } - - function setupBackend(wall, resolveRNStyle) { - wall.onClose(function () { - agent && agent.emit("shutdown"), window.__REACT_DEVTOOLS_GLOBAL_HOOK__.emit("shutdown"), bridge = null, agent = null, console.log("closing devtools"); - }); - var bridge = new Bridge(wall), - agent = new Agent(window, { - rnStyle: !!resolveRNStyle, - rnStyleMeasure: !!resolveRNStyle - }); - agent.addBridge(bridge), resolveRNStyle && setupRNStyle(bridge, agent, resolveRNStyle), setupProfiler(bridge, agent, window.__REACT_DEVTOOLS_GLOBAL_HOOK__), setupRelay(bridge, agent, window.__REACT_DEVTOOLS_GLOBAL_HOOK__); - - var _connectTimeout = setTimeout(function () { - console.warn("react-devtools agent got no connection"); - }, 2e4); - - agent.once("connected", function () { - agent && (inject(window.__REACT_DEVTOOLS_GLOBAL_HOOK__, agent), clearTimeout(_connectTimeout)); - }), ProfileCollector.init(agent); - } - - var Agent = __webpack_require__(1), - Bridge = __webpack_require__(7), - ProfileCollector = __webpack_require__(32), - installGlobalHook = __webpack_require__(33), - installRelayHook = __webpack_require__(34), - inject = __webpack_require__(35), - invariant = __webpack_require__(47), - setupRNStyle = __webpack_require__(51), - setupProfiler = __webpack_require__(53), - setupRelay = __webpack_require__(54); - - installGlobalHook(window), installRelayHook(window), window.document && window.__REACT_DEVTOOLS_GLOBAL_HOOK__.on("react-devtools", function (agent) { - var setupHighlighter = __webpack_require__(55); - - setupHighlighter(agent); - }), module.exports = { - connectToDevTools: connectToDevTools - }; - }, function (module, exports, __webpack_require__) { - "use strict"; - - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); - } - - function _possibleConstructorReturn(self, call) { - if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || "object" != typeof call && "function" != typeof call ? self : call; - } - - function _inherits(subClass, superClass) { - if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: !1, - writable: !0, - configurable: !0 - } - }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); - } - - var _typeof = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (obj) { - return typeof obj; - } : function (obj) { - return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof obj; - }, - _createClass = function () { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); - } - } - - return function (Constructor, protoProps, staticProps) { - return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), Constructor; - }; - }(), - _require = __webpack_require__(2), - EventEmitter = _require.EventEmitter, - assign = __webpack_require__(3), - nullthrows = __webpack_require__(4)["default"], - guid = __webpack_require__(5), - getIn = __webpack_require__(6), - Agent = function (_EventEmitter) { - function Agent(global, capabilities) { - _classCallCheck(this, Agent); - - var _this = _possibleConstructorReturn(this, (Agent.__proto__ || Object.getPrototypeOf(Agent)).call(this)); - - _this.global = global, _this.internalInstancesById = new Map(), _this.idsByInternalInstances = new WeakMap(), _this.renderers = new Map(), _this.elementData = new Map(), _this.roots = new Set(), _this.reactInternals = {}; - var lastSelected; - _this.on("selected", function (id) { - var data = _this.elementData.get(id); - - data && data.publicInstance && _this.global.$r === lastSelected && (_this.global.$r = data.publicInstance, lastSelected = data.publicInstance); - }), _this._prevSelected = null, _this._scrollUpdate = !1; - var isReactDOM = window.document && "function" == typeof window.document.createElement; - return _this.capabilities = assign({ - scroll: isReactDOM && "function" == typeof window.document.body.scrollIntoView, - dom: isReactDOM, - editTextContent: !1 - }, capabilities), isReactDOM && (_this._updateScroll = _this._updateScroll.bind(_this), window.addEventListener("scroll", _this._onScroll.bind(_this), !0), window.addEventListener("click", _this._onClick.bind(_this), !0), window.addEventListener("mouseover", _this._onMouseOver.bind(_this), !0), window.addEventListener("resize", _this._onResize.bind(_this), !0)), _this; - } - - return _inherits(Agent, _EventEmitter), _createClass(Agent, [{ - key: "sub", - value: function value(ev, fn) { - var _this2 = this; - - return this.on(ev, fn), function () { - _this2.removeListener(ev, fn); - }; - } - }, { - key: "setReactInternals", - value: function value(renderer, reactInternals) { - this.reactInternals[renderer] = reactInternals; - } - }, { - key: "addBridge", - value: function value(bridge) { - var _this3 = this; - - bridge.on("requestCapabilities", function () { - bridge.send("capabilities", _this3.capabilities), _this3.emit("connected"); - }), bridge.on("setState", this._setState.bind(this)), bridge.on("setProps", this._setProps.bind(this)), bridge.on("setContext", this._setContext.bind(this)), bridge.on("makeGlobal", this._makeGlobal.bind(this)), bridge.on("highlight", function (id) { - return _this3.highlight(id); - }), bridge.on("highlightMany", function (id) { - return _this3.highlightMany(id); - }), bridge.on("hideHighlight", function () { - return _this3.emit("hideHighlight"); - }), bridge.on("startInspecting", function () { - return _this3.emit("startInspecting"); - }), bridge.on("stopInspecting", function () { - return _this3.emit("stopInspecting"); - }), bridge.on("selected", function (id) { - return _this3.emit("selected", id); - }), bridge.on("isRecording", function (isRecording) { - return _this3.emit("isRecording", isRecording); - }), bridge.on("setInspectEnabled", function (enabled) { - _this3._inspectEnabled = enabled, _this3.emit("stopInspecting"); - }), bridge.on("shutdown", function () { - return _this3.emit("shutdown"); - }), bridge.on("changeTextContent", function (_ref) { - var id = _ref.id, - text = _ref.text, - node = _this3.getNodeForID(id); - - node && (node.textContent = text); - }), bridge.on("putSelectedNode", function (id) { - window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$node = _this3.getNodeForID(id); - }), bridge.on("putSelectedInstance", function (id) { - var node = _this3.elementData.get(id); - - node ? window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$type = node.type : window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$type = null, node && node.publicInstance ? window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$inst = node.publicInstance : window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$inst = null; - }), bridge.on("checkSelection", function () { - var newSelected = window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0; - - if (newSelected !== _this3._prevSelected) { - _this3._prevSelected = newSelected; - var sentSelected = window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$node; - newSelected !== sentSelected && _this3.selectFromDOMNode(newSelected, !0); - } - }), bridge.on("scrollToNode", function (id) { - return _this3.scrollToNode(id); - }), bridge.on("traceupdatesstatechange", function (value) { - return _this3.emit("traceupdatesstatechange", value); - }), bridge.on("colorizerchange", function (value) { - return _this3.emit("colorizerchange", value); - }), this.on("root", function (id) { - return bridge.send("root", id); - }), this.on("mount", function (data) { - return bridge.send("mount", data); - }), this.on("update", function (data) { - return bridge.send("update", data); - }), this.on("updateProfileTimes", function (data) { - return bridge.send("updateProfileTimes", data); - }), this.on("unmount", function (id) { - bridge.send("unmount", id), bridge.forget(id); - }), this.on("setSelection", function (data) { - return bridge.send("select", data); - }), this.on("setInspectEnabled", function (data) { - return bridge.send("setInspectEnabled", data); - }), this.on("isRecording", function (isRecording) { - return bridge.send("isRecording", isRecording); - }), this.on("storeSnapshot", function (data) { - return bridge.send("storeSnapshot", data); - }), this.on("clearSnapshots", function () { - return bridge.send("clearSnapshots"); - }); - } - }, { - key: "scrollToNode", - value: function value(id) { - var node = this.getNodeForID(id); - if (!node) return void console.warn("unable to get the node for scrolling"); - var domElement = node.nodeType === Node.ELEMENT_NODE ? node : node.parentElement; - return domElement ? ("function" == typeof domElement.scrollIntoViewIfNeeded ? domElement.scrollIntoViewIfNeeded() : "function" == typeof domElement.scrollIntoView && domElement.scrollIntoView(), void this.highlight(id)) : void console.warn("unable to get the domElement for scrolling"); - } - }, { - key: "highlight", - value: function value(id) { - var data = this.elementData.get(id), - node = this.getNodeForID(id); - data && node && this.emit("highlight", { - node: node, - name: data.name, - props: data.props - }); - } - }, { - key: "highlightMany", - value: function value(ids) { - var _this4 = this, - nodes = []; - - ids.forEach(function (id) { - var node = _this4.getNodeForID(id); - - node && nodes.push(node); - }), nodes.length && this.emit("highlightMany", nodes); - } - }, { - key: "getNodeForID", - value: function value(id) { - var component = this.internalInstancesById.get(id); - if (!component) return null; - var renderer = this.renderers.get(id); - return renderer && this.reactInternals[renderer].getNativeFromReactElement ? this.reactInternals[renderer].getNativeFromReactElement(component) : null; - } - }, { - key: "selectFromDOMNode", - value: function value(node, quiet) { - var offsetFromLeaf = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0, - id = this.getIDForNode(node); - id && this.emit("setSelection", { - id: id, - quiet: quiet, - offsetFromLeaf: offsetFromLeaf - }); - } - }, { - key: "selectFromReactInstance", - value: function value(instance, quiet) { - var id = this.getId(instance); - return id ? void this.emit("setSelection", { - id: id, - quiet: quiet - }) : void console.log("no instance id", instance); - } - }, { - key: "getIDForNode", - value: function value(node) { - if (!this.reactInternals) return null; - var component; - - for (var renderer in this.reactInternals) { - try { - component = this.reactInternals[renderer].getReactElementFromNative(node); - } catch (e) {} - - if (component) return this.getId(component); - } - - return null; - } - }, { - key: "_setProps", - value: function value(_ref2) { - var id = _ref2.id, - path = _ref2.path, - value = _ref2.value, - data = this.elementData.get(id); - data && data.updater && "function" == typeof data.updater.setInProps ? data.updater.setInProps(path, value) : console.warn("trying to set props on a component that doesn't support it"); - } - }, { - key: "_setState", - value: function value(_ref3) { - var id = _ref3.id, - path = _ref3.path, - value = _ref3.value, - data = this.elementData.get(id); - data && data.updater && "function" == typeof data.updater.setInState ? data.updater.setInState(path, value) : console.warn("trying to set state on a component that doesn't support it"); - } - }, { - key: "_setContext", - value: function value(_ref4) { - var id = _ref4.id, - path = _ref4.path, - value = _ref4.value, - data = this.elementData.get(id); - data && data.updater && "function" == typeof data.updater.setInContext ? data.updater.setInContext(path, value) : console.warn("trying to set context on a component that doesn't support it"); - } - }, { - key: "_makeGlobal", - value: function value(_ref5) { - var id = _ref5.id, - path = _ref5.path, - data = this.elementData.get(id); - - if (data) { - var value; - value = "instance" === path ? data.publicInstance : getIn(data, path), this.global.$tmp = value, console.log("$tmp =", value); - } - } - }, { - key: "getId", - value: function value(internalInstance) { - return "object" === ("undefined" == typeof internalInstance ? "undefined" : _typeof(internalInstance)) && internalInstance ? (this.idsByInternalInstances.has(internalInstance) || (this.idsByInternalInstances.set(internalInstance, guid()), this.internalInstancesById.set(nullthrows(this.idsByInternalInstances.get(internalInstance)), internalInstance)), nullthrows(this.idsByInternalInstances.get(internalInstance))) : internalInstance; - } - }, { - key: "addRoot", - value: function value(renderer, internalInstance) { - var id = this.getId(internalInstance); - this.roots.add(id), this.emit("root", id); - } - }, { - key: "rootCommitted", - value: function value(renderer, internalInstance) { - var id = this.getId(internalInstance); - this.emit("rootCommitted", id, internalInstance); - } - }, { - key: "onMounted", - value: function value(renderer, component, data) { - var _this5 = this, - id = this.getId(component); - - this.renderers.set(id, renderer), this.elementData.set(id, data); - var send = assign({}, data); - send.children && send.children.map && (send.children = send.children.map(function (c) { - return _this5.getId(c); - })), send.id = id, send.canUpdate = send.updater && !!send.updater.forceUpdate, delete send.type, delete send.updater, this.emit("mount", send); - } - }, { - key: "onUpdated", - value: function value(component, data) { - var _this6 = this, - id = this.getId(component); - - this.elementData.set(id, data); - var send = assign({}, data); - send.children && send.children.map && (send.children = send.children.map(function (c) { - return _this6.getId(c); - })), send.id = id, send.canUpdate = send.updater && !!send.updater.forceUpdate, delete send.type, delete send.updater, this.emit("update", send); - } - }, { - key: "onUpdatedProfileTimes", - value: function value(component, data) { - var _this7 = this, - id = this.getId(component); - - this.elementData.set(id, data); - var send = assign({}, data); - send.children && send.children.map && (send.children = send.children.map(function (c) { - return _this7.getId(c); - })), send.id = id, send.canUpdate = send.updater && !!send.updater.forceUpdate, delete send.type, delete send.updater, this.emit("updateProfileTimes", send); - } - }, { - key: "onUnmounted", - value: function value(component) { - var id = this.getId(component); - this.elementData["delete"](id), this.roots.has(id) && (this.roots["delete"](id), this.emit("rootUnmounted", id)), this.renderers["delete"](id), this.emit("unmount", id), this.idsByInternalInstances["delete"](component); - } - }, { - key: "_onScroll", - value: function value() { - this._scrollUpdate || (this._scrollUpdate = !0, window.requestAnimationFrame(this._updateScroll)); - } - }, { - key: "_updateScroll", - value: function value() { - this.emit("refreshMultiOverlay"), this.emit("stopInspecting"), this._scrollUpdate = !1; - } - }, { - key: "_onClick", - value: function value(event) { - if (this._inspectEnabled) { - var id = this.getIDForNode(event.target); - id && (event.stopPropagation(), event.preventDefault(), this.emit("setSelection", { - id: id - }), this.emit("setInspectEnabled", !1)); - } - } - }, { - key: "_onMouseOver", - value: function value(event) { - if (this._inspectEnabled) { - var id = this.getIDForNode(event.target); - if (!id) return; - this.highlight(id); - } - } - }, { - key: "_onResize", - value: function value(event) { - this.emit("stopInspecting"); - } - }]), Agent; - }(EventEmitter); - - module.exports = Agent; - }, function (module, exports) { - function EventEmitter() { - this._events = this._events || {}, this._maxListeners = this._maxListeners || void 0; - } - - function isFunction(arg) { - return "function" == typeof arg; - } - - function isNumber(arg) { - return "number" == typeof arg; - } - - function isObject(arg) { - return "object" == typeof arg && null !== arg; - } - - function isUndefined(arg) { - return void 0 === arg; - } - - module.exports = EventEmitter, EventEmitter.EventEmitter = EventEmitter, EventEmitter.prototype._events = void 0, EventEmitter.prototype._maxListeners = void 0, EventEmitter.defaultMaxListeners = 10, EventEmitter.prototype.setMaxListeners = function (n) { - if (!isNumber(n) || n < 0 || isNaN(n)) throw TypeError("n must be a positive number"); - return this._maxListeners = n, this; - }, EventEmitter.prototype.emit = function (type) { - var er, handler, len, args, i, listeners; - - if (this._events || (this._events = {}), "error" === type && (!this._events.error || isObject(this._events.error) && !this._events.error.length)) { - if (er = arguments[1], er instanceof Error) throw er; - var err = new Error('Uncaught, unspecified "error" event. (' + er + ")"); - throw err.context = er, err; - } - - if (handler = this._events[type], isUndefined(handler)) return !1; - if (isFunction(handler)) switch (arguments.length) { - case 1: - handler.call(this); - break; - - case 2: - handler.call(this, arguments[1]); - break; - - case 3: - handler.call(this, arguments[1], arguments[2]); - break; - - default: - args = Array.prototype.slice.call(arguments, 1), handler.apply(this, args); - } else if (isObject(handler)) for (args = Array.prototype.slice.call(arguments, 1), listeners = handler.slice(), len = listeners.length, i = 0; i < len; i++) { - listeners[i].apply(this, args); - } - return !0; - }, EventEmitter.prototype.addListener = function (type, listener) { - var m; - if (!isFunction(listener)) throw TypeError("listener must be a function"); - return this._events || (this._events = {}), this._events.newListener && this.emit("newListener", type, isFunction(listener.listener) ? listener.listener : listener), this._events[type] ? isObject(this._events[type]) ? this._events[type].push(listener) : this._events[type] = [this._events[type], listener] : this._events[type] = listener, isObject(this._events[type]) && !this._events[type].warned && (m = isUndefined(this._maxListeners) ? EventEmitter.defaultMaxListeners : this._maxListeners, m && m > 0 && this._events[type].length > m && (this._events[type].warned = !0, console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.", this._events[type].length), "function" == typeof console.trace && console.trace())), this; - }, EventEmitter.prototype.on = EventEmitter.prototype.addListener, EventEmitter.prototype.once = function (type, listener) { - function g() { - this.removeListener(type, g), fired || (fired = !0, listener.apply(this, arguments)); - } - - if (!isFunction(listener)) throw TypeError("listener must be a function"); - var fired = !1; - return g.listener = listener, this.on(type, g), this; - }, EventEmitter.prototype.removeListener = function (type, listener) { - var list, position, length, i; - if (!isFunction(listener)) throw TypeError("listener must be a function"); - if (!this._events || !this._events[type]) return this; - if (list = this._events[type], length = list.length, position = -1, list === listener || isFunction(list.listener) && list.listener === listener) delete this._events[type], this._events.removeListener && this.emit("removeListener", type, listener);else if (isObject(list)) { - for (i = length; i-- > 0;) { - if (list[i] === listener || list[i].listener && list[i].listener === listener) { - position = i; - break; - } - } - - if (position < 0) return this; - 1 === list.length ? (list.length = 0, delete this._events[type]) : list.splice(position, 1), this._events.removeListener && this.emit("removeListener", type, listener); - } - return this; - }, EventEmitter.prototype.removeAllListeners = function (type) { - var key, listeners; - if (!this._events) return this; - if (!this._events.removeListener) return 0 === arguments.length ? this._events = {} : this._events[type] && delete this._events[type], this; - - if (0 === arguments.length) { - for (key in this._events) { - "removeListener" !== key && this.removeAllListeners(key); - } - - return this.removeAllListeners("removeListener"), this._events = {}, this; - } - - if (listeners = this._events[type], isFunction(listeners)) this.removeListener(type, listeners);else if (listeners) for (; listeners.length;) { - this.removeListener(type, listeners[listeners.length - 1]); - } - return delete this._events[type], this; - }, EventEmitter.prototype.listeners = function (type) { - var ret; - return ret = this._events && this._events[type] ? isFunction(this._events[type]) ? [this._events[type]] : this._events[type].slice() : []; - }, EventEmitter.prototype.listenerCount = function (type) { - if (this._events) { - var evlistener = this._events[type]; - if (isFunction(evlistener)) return 1; - if (evlistener) return evlistener.length; - } - - return 0; - }, EventEmitter.listenerCount = function (emitter, type) { - return emitter.listenerCount(type); - }; - }, function (module, exports) { - "use strict"; - - function toObject(val) { - if (null === val || void 0 === val) throw new TypeError("Object.assign cannot be called with null or undefined"); - return Object(val); - } - - var hasOwnProperty = Object.prototype.hasOwnProperty, - propIsEnumerable = Object.prototype.propertyIsEnumerable; - - module.exports = Object.assign || function (target, source) { - for (var from, symbols, to = toObject(target), s = 1; s < arguments.length; s++) { - from = Object(arguments[s]); - - for (var key in from) { - hasOwnProperty.call(from, key) && (to[key] = from[key]); - } - - if (Object.getOwnPropertySymbols) { - symbols = Object.getOwnPropertySymbols(from); - - for (var i = 0; i < symbols.length; i++) { - propIsEnumerable.call(from, symbols[i]) && (to[symbols[i]] = from[symbols[i]]); - } - } - } - - return to; - }; - }, function (module, exports) { - "use strict"; - - Object.defineProperty(exports, "__esModule", { - value: !0 - }), exports["default"] = function (x) { - if (null != x) return x; - throw new Error("Got unexpected null or undefined"); - }; - }, function (module, exports) { - "use strict"; - - function guid() { - return "g" + Math.random().toString(16).substr(2); - } - - module.exports = guid; - }, function (module, exports) { - "use strict"; - - function _toConsumableArray(arr) { - if (Array.isArray(arr)) { - for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { - arr2[i] = arr[i]; - } - - return arr2; - } - - return Array.from(arr); - } - - function getIn(base, path) { - return path.reduce(function (obj, attr) { - if (obj) { - if (hasOwnProperty.call(obj, attr)) return obj[attr]; - if ("function" == typeof obj[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]) return [].concat(_toConsumableArray(obj))[attr]; - } - - return null; - }, base); - } - - var hasOwnProperty = Object.prototype.hasOwnProperty; - module.exports = getIn; - }, function (module, exports, __webpack_require__) { - "use strict"; - - function _toConsumableArray(arr) { - if (Array.isArray(arr)) { - for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { - arr2[i] = arr[i]; - } - - return arr2; - } - - return Array.from(arr); - } - - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); - } - - function getWindowFunction(name, polyfill) { - return String(window[name]).indexOf("[native code]") === -1 ? polyfill : window[name]; - } - - var _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - } - - return target; - }, - _createClass = function () { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); - } - } - - return function (Constructor, protoProps, staticProps) { - return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), Constructor; - }; - }(), - consts = __webpack_require__(8), - hydrate = __webpack_require__(27), - dehydrate = __webpack_require__(28), - getIn = __webpack_require__(6), - performanceNow = __webpack_require__(29), - lastRunTimeMS = 5, - cancelIdleCallback = getWindowFunction("cancelIdleCallback", clearTimeout), - requestIdleCallback = getWindowFunction("requestIdleCallback", function (cb, options) { - var delayMS = 3e3 * lastRunTimeMS; - return delayMS > 500 && (delayMS = 500), setTimeout(function () { - var startTime = performanceNow(); - cb({ - didTimeout: !1, - timeRemaining: function timeRemaining() { - return 1 / 0; - } - }); - var endTime = performanceNow(); - lastRunTimeMS = (endTime - startTime) / 1e3; - }, delayMS); - }), - Bridge = function () { - function Bridge(wall) { - _classCallCheck(this, Bridge), this._cbs = new Map(), this._inspectables = new Map(), this._cid = 0, this._listeners = {}, this._buffer = [], this._flushHandle = null, this._callers = {}, this._paused = !1, this._wall = wall, wall.listen(this._handleMessage.bind(this)); - } - - return _createClass(Bridge, [{ - key: "inspect", - value: function value(id, path, cb) { - var _cid = this._cid++; - - this._cbs.set(_cid, function (data, cleaned, proto, protoclean) { - cleaned.length && hydrate(data, cleaned), proto && protoclean.length && hydrate(proto, protoclean), proto && (data[consts.proto] = proto), cb(data); - }), this._wall.send({ - type: "inspect", - callback: _cid, - path: path, - id: id - }); - } - }, { - key: "call", - value: function value(name, args, cb) { - var _cid = this._cid++; - - this._cbs.set(_cid, cb), this._wall.send({ - type: "call", - callback: _cid, - args: args, - name: name - }); - } - }, { - key: "onCall", - value: function value(name, handler) { - if (this._callers[name]) throw new Error("only one call handler per call name allowed"); - this._callers[name] = handler; - } - }, { - key: "pause", - value: function value() { - this._wall.send({ - type: "pause" - }); - } - }, { - key: "resume", - value: function value() { - this._wall.send({ - type: "resume" - }); - } - }, { - key: "setInspectable", - value: function value(id, data) { - var prev = this._inspectables.get(id); - - return prev ? void this._inspectables.set(id, _extends({}, prev, data)) : void this._inspectables.set(id, data); - } - }, { - key: "send", - value: function value(evt, data) { - this._buffer.push({ - evt: evt, - data: data - }), this.scheduleFlush(); - } - }, { - key: "scheduleFlush", - value: function value() { - if (!this._flushHandle && this._buffer.length) { - var timeout = this._paused ? 5e3 : 500; - this._flushHandle = requestIdleCallback(this.flushBufferWhileIdle.bind(this), { - timeout: timeout - }); - } - } - }, { - key: "cancelFlush", - value: function value() { - this._flushHandle && (cancelIdleCallback(this._flushHandle), this._flushHandle = null); - } - }, { - key: "flushBufferWhileIdle", - value: function value(deadline) { - this._flushHandle = null; - - for (var chunkCount = this._paused ? 20 : 10, chunkSize = Math.round(this._buffer.length / chunkCount), minChunkSize = this._paused ? 50 : 100; this._buffer.length && (deadline.timeRemaining() > 0 || deadline.didTimeout);) { - var take = Math.min(this._buffer.length, Math.max(minChunkSize, chunkSize)), - currentBuffer = this._buffer.splice(0, take); - - this.flushBufferSlice(currentBuffer); - } - - this._buffer.length && this.scheduleFlush(); - } - }, { - key: "flushBufferSlice", - value: function value(bufferSlice) { - var _this = this, - events = bufferSlice.map(function (_ref) { - var evt = _ref.evt, - data = _ref.data, - cleaned = [], - san = dehydrate(data, cleaned); - return cleaned.length && _this.setInspectable(data.id, data), { - type: "event", - evt: evt, - data: san, - cleaned: cleaned - }; - }); - - this._wall.send({ - type: "many-events", - events: events - }); - } - }, { - key: "forget", - value: function value(id) { - this._inspectables["delete"](id); - } - }, { - key: "on", - value: function value(evt, fn) { - this._listeners[evt] ? this._listeners[evt].push(fn) : this._listeners[evt] = [fn]; - } - }, { - key: "off", - value: function value(evt, fn) { - if (this._listeners[evt]) { - var ix = this._listeners[evt].indexOf(fn); - - ix !== -1 && this._listeners[evt].splice(ix, 1); - } - } - }, { - key: "once", - value: function value(evt, fn) { - var self = this, - listener = function listener() { - fn.apply(this, arguments), self.off(evt, listener); - }; - - this.on(evt, listener); - } - }, { - key: "_handleMessage", - value: function value(payload) { - var _this2 = this; - - if ("resume" === payload.type) return this._paused = !1, void this.scheduleFlush(); - if ("pause" === payload.type) return this._paused = !0, void this.cancelFlush(); - - if ("callback" === payload.type) { - var callback = this._cbs.get(payload.id); - - return void (callback && (callback.apply(void 0, _toConsumableArray(payload.args)), this._cbs["delete"](payload.id))); - } - - if ("call" === payload.type) return void this._handleCall(payload.name, payload.args, payload.callback); - if ("inspect" === payload.type) return void this._inspectResponse(payload.id, payload.path, payload.callback); - - if ("event" === payload.type) { - payload.cleaned && hydrate(payload.data, payload.cleaned); - var fns = this._listeners[payload.evt], - data = payload.data; - fns && fns.forEach(function (fn) { - return fn(data); - }); - } - - "many-events" === payload.type && payload.events.forEach(function (event) { - event.cleaned && hydrate(event.data, event.cleaned); - var handlers = _this2._listeners[event.evt]; - handlers && handlers.forEach(function (fn) { - return fn(event.data); - }); - }); - } - }, { - key: "_handleCall", - value: function value(name, args, callback) { - if (!this._callers[name]) return void console.warn('unknown call: "' + name + '"'); - args = Array.isArray(args) ? args : [args]; - var result; - - try { - result = this._callers[name].apply(null, args); - } catch (e) { - return void console.error("Failed to call", e); - } - - this._wall.send({ - type: "callback", - id: callback, - args: [result] - }); - } - }, { - key: "_inspectResponse", - value: function value(id, path, callback) { - var inspectable = this._inspectables.get(id), - result = {}, - cleaned = [], - proto = null, - protoclean = []; - - if (inspectable) { - var val = getIn(inspectable, path), - protod = !1, - isFn = "function" == typeof val; - - if (val && "function" == typeof val[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]) { - var iterVal = Object.create({}), - count = 0, - _iteratorNormalCompletion = !0, - _didIteratorError = !1, - _iteratorError = void 0; - - try { - for (var _step, _iterator = val[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) { - var entry = _step.value; - if (count > 100) break; - iterVal[count] = entry, count++; - } - } catch (err) { - _didIteratorError = !0, _iteratorError = err; - } finally { - try { - !_iteratorNormalCompletion && _iterator["return"] && _iterator["return"](); - } finally { - if (_didIteratorError) throw _iteratorError; - } - } - - val = iterVal; - } - - if (Object.getOwnPropertyNames(val).forEach(function (name) { - "__proto__" === name && (protod = !0), (!isFn || "arguments" !== name && "callee" !== name && "caller" !== name) && (result[name] = dehydrate(val[name], cleaned, [name])); - }), !protod && val.__proto__ && "Object" !== val.constructor.name) { - var newProto = {}, - pIsFn = "function" == typeof val.__proto__; - Object.getOwnPropertyNames(val.__proto__).forEach(function (name) { - (!pIsFn || "arguments" !== name && "callee" !== name && "caller" !== name) && (newProto[name] = dehydrate(val.__proto__[name], protoclean, [name])); - }), proto = newProto; - } - } - - this._wall.send({ - type: "callback", - id: callback, - args: [result, cleaned, proto, protoclean] - }); - } - }]), Bridge; - }(); - - module.exports = Bridge; - }, function (module, exports, __webpack_require__) { - "use strict"; - - var _Symbol = __webpack_require__(9); - - module.exports = { - name: _Symbol("name"), - type: _Symbol("type"), - inspected: _Symbol("inspected"), - meta: _Symbol("meta"), - proto: _Symbol("proto") - }; - }, function (module, exports, __webpack_require__) { - "use strict"; - - module.exports = __webpack_require__(10)() ? Symbol : __webpack_require__(11); - }, function (module, exports) { - "use strict"; - - module.exports = function () { - var symbol; - if ("function" != typeof Symbol) return !1; - symbol = Symbol("test symbol"); - - try { - String(symbol); - } catch (e) { - return !1; - } - - return "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") || "object" == typeof (typeof Symbol === "function" ? Symbol.isConcatSpreadable : "@@isConcatSpreadable") && "object" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") && "object" == typeof (typeof Symbol === "function" ? Symbol.toPrimitive : "@@toPrimitive") && "object" == typeof (typeof Symbol === "function" ? Symbol.toStringTag : "@@toStringTag") && "object" == typeof (typeof Symbol === "function" ? Symbol.unscopables : "@@unscopables"); - }; - }, function (module, exports, __webpack_require__) { - "use strict"; - - var NativeSymbol, - SymbolPolyfill, - _HiddenSymbol, - d = __webpack_require__(12), - validateSymbol = __webpack_require__(25), - create = Object.create, - defineProperties = Object.defineProperties, - defineProperty = Object.defineProperty, - objPrototype = Object.prototype, - globalSymbols = create(null); - - "function" == typeof Symbol && (NativeSymbol = Symbol); - - var generateName = function () { - var created = create(null); - return function (desc) { - for (var name, ie11BugWorkaround, postfix = 0; created[desc + (postfix || "")];) { - ++postfix; - } - - return desc += postfix || "", created[desc] = !0, name = "@@" + desc, defineProperty(objPrototype, name, d.gs(null, function (value) { - ie11BugWorkaround || (ie11BugWorkaround = !0, defineProperty(this, name, d(value)), ie11BugWorkaround = !1); - })), name; - }; - }(); - - _HiddenSymbol = function HiddenSymbol(description) { - if (this instanceof _HiddenSymbol) throw new TypeError("TypeError: Symbol is not a constructor"); - return SymbolPolyfill(description); - }, module.exports = SymbolPolyfill = function Symbol(description) { - var symbol; - if (this instanceof Symbol) throw new TypeError("TypeError: Symbol is not a constructor"); - return symbol = create(_HiddenSymbol.prototype), description = void 0 === description ? "" : String(description), defineProperties(symbol, { - __description__: d("", description), - __name__: d("", generateName(description)) - }); - }, defineProperties(SymbolPolyfill, { - "for": d(function (key) { - return globalSymbols[key] ? globalSymbols[key] : globalSymbols[key] = SymbolPolyfill(String(key)); - }), - keyFor: d(function (s) { - var key; - validateSymbol(s); - - for (key in globalSymbols) { - if (globalSymbols[key] === s) return key; - } - }), - hasInstance: d("", NativeSymbol && NativeSymbol.hasInstance || SymbolPolyfill("hasInstance")), - isConcatSpreadable: d("", NativeSymbol && NativeSymbol.isConcatSpreadable || SymbolPolyfill("isConcatSpreadable")), - iterator: d("", NativeSymbol && NativeSymbol.iterator || SymbolPolyfill("iterator")), - match: d("", NativeSymbol && NativeSymbol.match || SymbolPolyfill("match")), - replace: d("", NativeSymbol && NativeSymbol.replace || SymbolPolyfill("replace")), - search: d("", NativeSymbol && NativeSymbol.search || SymbolPolyfill("search")), - species: d("", NativeSymbol && NativeSymbol.species || SymbolPolyfill("species")), - split: d("", NativeSymbol && NativeSymbol.split || SymbolPolyfill("split")), - toPrimitive: d("", NativeSymbol && NativeSymbol.toPrimitive || SymbolPolyfill("toPrimitive")), - toStringTag: d("", NativeSymbol && NativeSymbol.toStringTag || SymbolPolyfill("toStringTag")), - unscopables: d("", NativeSymbol && NativeSymbol.unscopables || SymbolPolyfill("unscopables")) - }), defineProperties(_HiddenSymbol.prototype, { - constructor: d(SymbolPolyfill), - toString: d("", function () { - return this.__name__; - }) - }), defineProperties(SymbolPolyfill.prototype, { - toString: d(function () { - return "Symbol (" + validateSymbol(this).__description__ + ")"; - }), - valueOf: d(function () { - return validateSymbol(this); - }) - }), defineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toPrimitive, d("", function () { - return validateSymbol(this); - })), defineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toStringTag, d("c", "Symbol")), defineProperty(_HiddenSymbol.prototype, SymbolPolyfill.toStringTag, d("c", SymbolPolyfill.prototype[SymbolPolyfill.toStringTag])), defineProperty(_HiddenSymbol.prototype, SymbolPolyfill.toPrimitive, d("c", SymbolPolyfill.prototype[SymbolPolyfill.toPrimitive])); - }, function (module, exports, __webpack_require__) { - "use strict"; - - var d, - assign = __webpack_require__(13), - normalizeOpts = __webpack_require__(20), - isCallable = __webpack_require__(21), - contains = __webpack_require__(22); - - d = module.exports = function (dscr, value) { - var c, e, w, options, desc; - return arguments.length < 2 || "string" != typeof dscr ? (options = value, value = dscr, dscr = null) : options = arguments[2], null == dscr ? (c = w = !0, e = !1) : (c = contains.call(dscr, "c"), e = contains.call(dscr, "e"), w = contains.call(dscr, "w")), desc = { - value: value, - configurable: c, - enumerable: e, - writable: w - }, options ? assign(normalizeOpts(options), desc) : desc; - }, d.gs = function (dscr, get, set) { - var c, e, options, desc; - return "string" != typeof dscr ? (options = set, set = get, get = dscr, dscr = null) : options = arguments[3], null == get ? get = void 0 : isCallable(get) ? null == set ? set = void 0 : isCallable(set) || (options = set, set = void 0) : (options = get, get = set = void 0), null == dscr ? (c = !0, e = !1) : (c = contains.call(dscr, "c"), e = contains.call(dscr, "e")), desc = { - get: get, - set: set, - configurable: c, - enumerable: e - }, options ? assign(normalizeOpts(options), desc) : desc; - }; - }, function (module, exports, __webpack_require__) { - "use strict"; - - module.exports = __webpack_require__(14)() ? Object.assign : __webpack_require__(15); - }, function (module, exports) { - "use strict"; - - module.exports = function () { - var obj, - assign = Object.assign; - return "function" == typeof assign && (obj = { - foo: "raz" - }, assign(obj, { - bar: "dwa" - }, { - trzy: "trzy" - }), obj.foo + obj.bar + obj.trzy === "razdwatrzy"); - }; - }, function (module, exports, __webpack_require__) { - "use strict"; - - var keys = __webpack_require__(16), - value = __webpack_require__(19), - max = Math.max; - - module.exports = function (dest, src) { - var error, - i, - assign, - l = max(arguments.length, 2); - - for (dest = Object(value(dest)), assign = function assign(key) { - try { - dest[key] = src[key]; - } catch (e) { - error || (error = e); - } - }, i = 1; i < l; ++i) { - src = arguments[i], keys(src).forEach(assign); - } - - if (void 0 !== error) throw error; - return dest; - }; - }, function (module, exports, __webpack_require__) { - "use strict"; - - module.exports = __webpack_require__(17)() ? Object.keys : __webpack_require__(18); - }, function (module, exports) { - "use strict"; - - module.exports = function () { - try { - return Object.keys("primitive"), !0; - } catch (e) { - return !1; - } - }; - }, function (module, exports) { - "use strict"; - - var keys = Object.keys; - - module.exports = function (object) { - return keys(null == object ? object : Object(object)); - }; - }, function (module, exports) { - "use strict"; - - module.exports = function (value) { - if (null == value) throw new TypeError("Cannot use null or undefined"); - return value; - }; - }, function (module, exports) { - "use strict"; - - var forEach = Array.prototype.forEach, - create = Object.create, - process = function process(src, obj) { - var key; - - for (key in src) { - obj[key] = src[key]; - } - }; - - module.exports = function (options) { - var result = create(null); - return forEach.call(arguments, function (options) { - null != options && process(Object(options), result); - }), result; - }; - }, function (module, exports) { - "use strict"; - - module.exports = function (obj) { - return "function" == typeof obj; - }; - }, function (module, exports, __webpack_require__) { - "use strict"; - - module.exports = __webpack_require__(23)() ? String.prototype.contains : __webpack_require__(24); - }, function (module, exports) { - "use strict"; - - var str = "razdwatrzy"; - - module.exports = function () { - return "function" == typeof str.contains && str.contains("dwa") === !0 && str.contains("foo") === !1; - }; - }, function (module, exports) { - "use strict"; - - var indexOf = String.prototype.indexOf; - - module.exports = function (searchString) { - return indexOf.call(this, searchString, arguments[1]) > -1; - }; - }, function (module, exports, __webpack_require__) { - "use strict"; - - var isSymbol = __webpack_require__(26); - - module.exports = function (value) { - if (!isSymbol(value)) throw new TypeError(value + " is not a symbol"); - return value; - }; - }, function (module, exports) { - "use strict"; - - module.exports = function (x) { - return x && ("symbol" == typeof x || "Symbol" === x["@@toStringTag"]) || !1; - }; - }, function (module, exports, __webpack_require__) { - "use strict"; - - function hydrate(data, cleaned) { - cleaned.forEach(function (path) { - var last = path.pop(), - obj = path.reduce(function (obj_, attr) { - return obj_ ? obj_[attr] : null; - }, data); - - if (obj && obj[last]) { - var replace = {}; - replace[consts.name] = obj[last].name, replace[consts.type] = obj[last].type, replace[consts.meta] = obj[last].meta, replace[consts.inspected] = !1, obj[last] = replace; - } - }); - } - - var consts = __webpack_require__(8); - - module.exports = hydrate; - }, function (module, exports) { - "use strict"; - - function getPropType(data) { - if (!data) return null; - var type = "undefined" == typeof data ? "undefined" : _typeof(data); - - if ("object" === type) { - if (data._reactFragment) return "react_fragment"; - if (Array.isArray(data)) return "array"; - if (ArrayBuffer.isView(data)) return data instanceof DataView ? "data_view" : "typed_array"; - if (data instanceof ArrayBuffer) return "array_buffer"; - if ("function" == typeof data[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]) return "iterator"; - if ("[object Date]" === Object.prototype.toString.call(data)) return "date"; - } - - return type; - } - - function createDehydrated(type, data, cleaned, path) { - var meta = {}; - return "array" !== type && "typed_array" !== type || (meta.length = data.length), "iterator" !== type && "typed_array" !== type || (meta.readOnly = !0), cleaned.push(path), { - type: type, - meta: meta, - name: data.constructor && "Object" !== data.constructor.name ? data.constructor.name : "" - }; - } - - function dehydrate(data, cleaned) { - var path = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : [], - level = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 0, - type = getPropType(data); - - switch (type) { - case "function": - return cleaned.push(path), { - name: data.name, - type: "function" - }; - - case "string": - return data.length <= 500 ? data : data.slice(0, 500) + "..."; - - case "symbol": - return cleaned.push(path), { - type: "symbol", - name: data.toString() - }; - - case "react_fragment": - return "A React Fragment"; - - case "array_buffer": - case "data_view": - return cleaned.push(path), { - type: type, - name: "data_view" === type ? "DataView" : "ArrayBuffer", - meta: { - length: data.byteLength, - uninspectable: !0 - } - }; - - case "array": - return level > 2 ? createDehydrated(type, data, cleaned, path) : data.map(function (item, i) { - return dehydrate(item, cleaned, path.concat([i]), level + 1); - }); - - case "typed_array": - case "iterator": - return createDehydrated(type, data, cleaned, path); - - case "date": - return cleaned.push(path), { - name: data.toString(), - type: "date", - meta: { - uninspectable: !0 - } - }; - - case "object": - if (level > 2 || data.constructor && "function" == typeof data.constructor && "Object" !== data.constructor.name) return createDehydrated(type, data, cleaned, path); - var res = {}; - - for (var name in data) { - res[name] = dehydrate(data[name], cleaned, path.concat([name]), level + 1); - } - - return res; - - default: - return data; - } - } - - var _typeof = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (obj) { - return typeof obj; - } : function (obj) { - return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof obj; - }; - - module.exports = dehydrate; - }, function (module, exports, __webpack_require__) { - "use strict"; - - var performanceNow, - performance = __webpack_require__(30); - - performanceNow = performance.now ? function () { - return performance.now(); - } : function () { - return Date.now(); - }, module.exports = performanceNow; - }, function (module, exports, __webpack_require__) { - "use strict"; - - var performance, - ExecutionEnvironment = __webpack_require__(31); - - ExecutionEnvironment.canUseDOM && (performance = window.performance || window.msPerformance || window.webkitPerformance), module.exports = performance || {}; - }, function (module, exports) { - "use strict"; - - var canUseDOM = !("undefined" == typeof window || !window.document || !window.document.createElement), - ExecutionEnvironment = { - canUseDOM: canUseDOM, - canUseWorkers: "undefined" != typeof Worker, - canUseEventListeners: canUseDOM && !(!window.addEventListener && !window.attachEvent), - canUseViewport: canUseDOM && !!window.screen, - isInWorker: !canUseDOM - }; - module.exports = ExecutionEnvironment; - }, function (module, exports) { - "use strict"; - - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); - } - - function init(agent) { - return new ProfileCollector(agent); - } - - var _createClass = function () { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); - } - } - - return function (Constructor, protoProps, staticProps) { - return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), Constructor; - }; - }(), - ProfileCollector = function () { - function ProfileCollector(agent) { - var _this = this; - - _classCallCheck(this, ProfileCollector), this._committedNodes = new Set(), this._isRecording = !1, this._maxActualDuration = 0, this._recordingStartTime = 0, this._onIsRecording = function (isRecording) { - _this._committedNodes = new Set(), _this._isRecording = isRecording, _this._recordingStartTime = isRecording ? performance.now() : 0, isRecording && _this._agent.emit("clearSnapshots"); - }, this._onMountOrUpdate = function (data) { - _this._isRecording && void 0 !== data.actualDuration && (_this._committedNodes.add(data.id), _this._maxActualDuration = Math.max(_this._maxActualDuration, data.actualDuration)); - }, this._onRootCommitted = function (id, data) { - _this._isRecording && (_this._takeCommitSnapshotForRoot(id, data), _this._committedNodes = new Set(), _this._maxActualDuration = 0); - }, this._onUnmount = function (id) { - _this._committedNodes["delete"](id); - }, this._agent = agent, agent.on("isRecording", this._onIsRecording), agent.on("mount", this._onMountOrUpdate), agent.on("rootCommitted", this._onRootCommitted), agent.on("unmount", this._onUnmount), agent.on("update", this._onMountOrUpdate); - } - - return _createClass(ProfileCollector, [{ - key: "_takeCommitSnapshotForRoot", - value: function value(id, data) { - var _this2 = this, - interactionsArray = null != data.stateNode.memoizedInteractions ? Array.from(data.stateNode.memoizedInteractions) : [], - memoizedInteractions = interactionsArray.map(function (_ref) { - var name = _ref.name, - timestamp = _ref.timestamp; - return { - name: name, - timestamp: timestamp - _this2._recordingStartTime - }; - }), - storeSnapshot = { - memoizedInteractions: memoizedInteractions, - committedNodes: Array.from(this._committedNodes), - commitTime: performance.now() - this._recordingStartTime, - duration: this._maxActualDuration, - root: id - }; - - this._agent.emit("storeSnapshot", storeSnapshot); - } - }]), ProfileCollector; - }(); - - module.exports = { - init: init - }; - }, function (module, exports) { - "use strict"; - - function installGlobalHook(window) { - function detectReactBuildType(renderer) { - try { - if ("string" == typeof renderer.version) return renderer.bundleType > 0 ? "development" : "production"; - var toString = Function.prototype.toString; - - if (renderer.Mount && renderer.Mount._renderNewRootComponent) { - var renderRootCode = toString.call(renderer.Mount._renderNewRootComponent); - return 0 !== renderRootCode.indexOf("function") ? "production" : renderRootCode.indexOf("storedMeasure") !== -1 ? "development" : renderRootCode.indexOf("should be a pure function") !== -1 ? renderRootCode.indexOf("NODE_ENV") !== -1 ? "development" : renderRootCode.indexOf("development") !== -1 ? "development" : renderRootCode.indexOf("true") !== -1 ? "development" : renderRootCode.indexOf("nextElement") !== -1 || renderRootCode.indexOf("nextComponent") !== -1 ? "unminified" : "development" : renderRootCode.indexOf("nextElement") !== -1 || renderRootCode.indexOf("nextComponent") !== -1 ? "unminified" : "outdated"; - } - } catch (err) {} - - return "production"; - } - - if (!window.__REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hasDetectedBadDCE = !1, - hook = { - _renderers: {}, - helpers: {}, - checkDCE: function checkDCE(fn) { - try { - var toString = Function.prototype.toString, - code = toString.call(fn); - code.indexOf("^_^") > -1 && (hasDetectedBadDCE = !0, setTimeout(function () { - throw new Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://fb.me/react-perf-use-the-production-build"); - })); - } catch (err) {} - }, - inject: function inject(renderer) { - var id = Math.random().toString(16).slice(2); - hook._renderers[id] = renderer; - var reactBuildType = hasDetectedBadDCE ? "deadcode" : detectReactBuildType(renderer); - return hook.emit("renderer", { - id: id, - renderer: renderer, - reactBuildType: reactBuildType - }), id; - }, - _listeners: {}, - sub: function sub(evt, fn) { - return hook.on(evt, fn), function () { - return hook.off(evt, fn); - }; - }, - on: function on(evt, fn) { - hook._listeners[evt] || (hook._listeners[evt] = []), hook._listeners[evt].push(fn); - }, - off: function off(evt, fn) { - if (hook._listeners[evt]) { - var ix = hook._listeners[evt].indexOf(fn); - - ix !== -1 && hook._listeners[evt].splice(ix, 1), hook._listeners[evt].length || (hook._listeners[evt] = null); - } - }, - emit: function emit(evt, data) { - hook._listeners[evt] && hook._listeners[evt].map(function (fn) { - return fn(data); - }); - }, - supportsFiber: !0, - _fiberRoots: {}, - getFiberRoots: function getFiberRoots(rendererID) { - var roots = hook._fiberRoots; - return roots[rendererID] || (roots[rendererID] = new Set()), roots[rendererID]; - }, - onCommitFiberUnmount: function onCommitFiberUnmount(rendererID, fiber) { - hook.helpers[rendererID] && hook.helpers[rendererID].handleCommitFiberUnmount(fiber); - }, - onCommitFiberRoot: function onCommitFiberRoot(rendererID, root) { - var mountedRoots = hook.getFiberRoots(rendererID), - current = root.current, - isKnownRoot = mountedRoots.has(root), - isUnmounting = null == current.memoizedState || null == current.memoizedState.element; - isKnownRoot || isUnmounting ? isKnownRoot && isUnmounting && mountedRoots["delete"](root) : mountedRoots.add(root), hook.helpers[rendererID] && hook.helpers[rendererID].handleCommitFiberRoot(root); - } - }; - Object.defineProperty(window, "__REACT_DEVTOOLS_GLOBAL_HOOK__", { - value: hook - }); - } - } - - module.exports = installGlobalHook; - }, function (module, exports) { - "use strict"; - - function installRelayHook(window) { - function decorate(obj, attr, fn) { - var old = obj[attr]; - - obj[attr] = function () { - var res = old.apply(this, arguments); - return fn.apply(this, arguments), res; - }; - } - - function emit(name, data) { - _eventQueue.push({ - name: name, - data: data - }), _listener && _listener(name, data); - } - - function setRequestListener(listener) { - if (_listener) throw new Error("Relay Devtools: Called only call setRequestListener once."); - return _listener = listener, _eventQueue.forEach(function (_ref) { - var name = _ref.name, - data = _ref.data; - listener(name, data); - }), function () { - _listener = null; - }; - } - - function recordRequest(type, start, request, requestNumber) { - var id = Math.random().toString(16).substr(2); - request.getPromise().then(function (response) { - emit("relay:success", { - id: id, - end: performanceNow(), - response: response.response - }); - }, function (error) { - emit("relay:failure", { - id: id, - end: performanceNow(), - error: error - }); - }); - - for (var textChunks = [], text = request.getQueryString(); text.length > 0;) { - textChunks.push(text.substr(0, TEXT_CHUNK_LENGTH)), text = text.substr(TEXT_CHUNK_LENGTH); - } - - return { - id: id, - name: request.getDebugName(), - requestNumber: requestNumber, - start: start, - text: textChunks, - type: type, - variables: request.getVariables() - }; - } - - function instrumentRelayRequests(relayInternals) { - var NetworkLayer = relayInternals.NetworkLayer; - decorate(NetworkLayer, "sendMutation", function (mutation) { - requestNumber++, emit("relay:pending", [recordRequest("mutation", performanceNow(), mutation, requestNumber)]); - }), decorate(NetworkLayer, "sendQueries", function (queries) { - requestNumber++; - var start = performanceNow(); - emit("relay:pending", queries.map(function (query) { - return recordRequest("query", start, query, requestNumber); - })); - }); - var instrumented = {}; - - for (var key in relayInternals) { - relayInternals.hasOwnProperty(key) && (instrumented[key] = relayInternals[key]); - } - - return instrumented.setRequestListener = setRequestListener, instrumented; - } - - var performanceNow, - performance = window.performance; - performanceNow = performance && "function" == typeof performance.now ? function () { - return performance.now(); - } : function () { - return Date.now(); - }; - var TEXT_CHUNK_LENGTH = 500, - hook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__; - - if (hook) { - var _eventQueue = [], - _listener = null, - requestNumber = 0, - _relayInternals = null; - Object.defineProperty(hook, "_relayInternals", { - configurable: !0, - set: function set(relayInternals) { - _relayInternals = instrumentRelayRequests(relayInternals); - }, - get: function get() { - return _relayInternals; - } - }); - } - } - - module.exports = installRelayHook; - }, function (module, exports, __webpack_require__) { - "use strict"; - - var setupBackend = __webpack_require__(36); - - module.exports = function (hook, agent) { - var subs = [hook.sub("renderer-attached", function (_ref) { - var id = _ref.id, - helpers = (_ref.renderer, _ref.helpers); - agent.setReactInternals(id, helpers), helpers.walkTree(agent.onMounted.bind(agent, id), agent.addRoot.bind(agent, id)); - }), hook.sub("mount", function (_ref2) { - var renderer = _ref2.renderer, - internalInstance = _ref2.internalInstance, - data = _ref2.data; - return agent.onMounted(renderer, internalInstance, data); - }), hook.sub("unmount", function (_ref3) { - var internalInstance = (_ref3.renderer, _ref3.internalInstance); - return agent.onUnmounted(internalInstance); - }), hook.sub("update", function (_ref4) { - var internalInstance = (_ref4.renderer, _ref4.internalInstance), - data = _ref4.data; - return agent.onUpdated(internalInstance, data); - }), hook.sub("root", function (_ref5) { - var renderer = _ref5.renderer, - internalInstance = _ref5.internalInstance; - return agent.addRoot(renderer, internalInstance); - }), hook.sub("rootCommitted", function (_ref6) { - var renderer = _ref6.renderer, - internalInstance = _ref6.internalInstance; - return agent.rootCommitted(renderer, internalInstance); - }), hook.sub("updateProfileTimes", function (_ref7) { - var internalInstance = (_ref7.renderer, _ref7.internalInstance), - data = _ref7.data; - return agent.onUpdatedProfileTimes(internalInstance, data); - })], - success = setupBackend(hook); - success && (hook.emit("react-devtools", agent), hook.reactDevtoolsAgent = agent, agent.on("shutdown", function () { - subs.forEach(function (fn) { - return fn(); - }), hook.reactDevtoolsAgent = null; - })); - }; - }, function (module, exports, __webpack_require__) { - "use strict"; - - var attachRenderer = __webpack_require__(37); - - module.exports = function (hook) { - var oldReact = window.React && window.React.__internals; - oldReact && 0 === Object.keys(hook._renderers).length && hook.inject(oldReact); - - for (var rid in hook._renderers) { - hook.helpers[rid] = attachRenderer(hook, rid, hook._renderers[rid]), hook.emit("renderer-attached", { - id: rid, - renderer: hook._renderers[rid], - helpers: hook.helpers[rid] - }); - } - - hook.on("renderer", function (_ref) { - var id = _ref.id, - renderer = _ref.renderer; - hook.helpers[id] = attachRenderer(hook, id, renderer), hook.emit("renderer-attached", { - id: id, - renderer: renderer, - helpers: hook.helpers[id] - }); - }); - - var shutdown = function shutdown() { - for (var id in hook.helpers) { - hook.helpers[id].cleanup(); - } - - hook.off("shutdown", shutdown); - }; - - return hook.on("shutdown", shutdown), !0; - }; - }, function (module, exports, __webpack_require__) { - "use strict"; - - function attachRenderer(hook, rid, renderer) { - var rootNodeIDMap = new Map(), - extras = {}, - isPre013 = !renderer.Reconciler; - if ("function" == typeof renderer.findFiberByHostInstance) return attachRendererFiber(hook, rid, renderer); - renderer.Mount.findNodeHandle && renderer.Mount.nativeTagToRootNodeID ? (extras.getNativeFromReactElement = function (component) { - return renderer.Mount.findNodeHandle(component); - }, extras.getReactElementFromNative = function (nativeTag) { - var id = renderer.Mount.nativeTagToRootNodeID(nativeTag); - return rootNodeIDMap.get(id); - }) : renderer.ComponentTree ? (extras.getNativeFromReactElement = function (component) { - return renderer.ComponentTree.getNodeFromInstance(component); - }, extras.getReactElementFromNative = function (node) { - return renderer.ComponentTree.getClosestInstanceFromNode(node); - }) : renderer.Mount.getID && renderer.Mount.getNode ? (extras.getNativeFromReactElement = function (component) { - try { - return renderer.Mount.getNode(component._rootNodeID); - } catch (e) { - return; - } - }, extras.getReactElementFromNative = function (node) { - for (var id = renderer.Mount.getID(node); node && node.parentNode && !id;) { - node = node.parentNode, id = renderer.Mount.getID(node); - } - - return rootNodeIDMap.get(id); - }) : console.warn("Unknown react version (does not have getID), probably an unshimmed React Native"); - var oldMethods, oldRenderComponent, oldRenderRoot; - return renderer.Mount._renderNewRootComponent ? oldRenderRoot = decorateResult(renderer.Mount, "_renderNewRootComponent", function (internalInstance) { - hook.emit("root", { - renderer: rid, - internalInstance: internalInstance - }); - }) : renderer.Mount.renderComponent && (oldRenderComponent = decorateResult(renderer.Mount, "renderComponent", function (internalInstance) { - hook.emit("root", { - renderer: rid, - internalInstance: internalInstance._reactInternalInstance - }); - })), renderer.Component ? (console.error("You are using a version of React with limited support in this version of the devtools.\nPlease upgrade to use at least 0.13, or you can downgrade to use the old version of the devtools:\ninstructions here https://github.com/facebook/react-devtools/tree/devtools-next#how-do-i-use-this-for-react--013"), oldMethods = decorateMany(renderer.Component.Mixin, { - mountComponent: function mountComponent() { - var _this = this; - - rootNodeIDMap.set(this._rootNodeID, this), setTimeout(function () { - hook.emit("mount", { - internalInstance: _this, - data: getData012(_this), - renderer: rid - }); - }, 0); - }, - updateComponent: function updateComponent() { - var _this2 = this; - - setTimeout(function () { - hook.emit("update", { - internalInstance: _this2, - data: getData012(_this2), - renderer: rid - }); - }, 0); - }, - unmountComponent: function unmountComponent() { - hook.emit("unmount", { - internalInstance: this, - renderer: rid - }), rootNodeIDMap["delete"](this._rootNodeID); - } - })) : renderer.Reconciler && (oldMethods = decorateMany(renderer.Reconciler, { - mountComponent: function mountComponent(internalInstance, rootID, transaction, context) { - var data = getData(internalInstance); - rootNodeIDMap.set(internalInstance._rootNodeID, internalInstance), hook.emit("mount", { - internalInstance: internalInstance, - data: data, - renderer: rid - }); - }, - performUpdateIfNecessary: function performUpdateIfNecessary(internalInstance, nextChild, transaction, context) { - hook.emit("update", { - internalInstance: internalInstance, - data: getData(internalInstance), - renderer: rid - }); - }, - receiveComponent: function receiveComponent(internalInstance, nextChild, transaction, context) { - hook.emit("update", { - internalInstance: internalInstance, - data: getData(internalInstance), - renderer: rid - }); - }, - unmountComponent: function unmountComponent(internalInstance) { - hook.emit("unmount", { - internalInstance: internalInstance, - renderer: rid - }), rootNodeIDMap["delete"](internalInstance._rootNodeID); - } - })), extras.walkTree = function (visit, visitRoot) { - var onMount = function onMount(component, data) { - rootNodeIDMap.set(component._rootNodeID, component), visit(component, data); - }; - - walkRoots(renderer.Mount._instancesByReactRootID || renderer.Mount._instancesByContainerID, onMount, visitRoot, isPre013); - }, extras.cleanup = function () { - oldMethods && (renderer.Component ? restoreMany(renderer.Component.Mixin, oldMethods) : restoreMany(renderer.Reconciler, oldMethods)), oldRenderRoot && (renderer.Mount._renderNewRootComponent = oldRenderRoot), oldRenderComponent && (renderer.Mount.renderComponent = oldRenderComponent), oldMethods = null, oldRenderRoot = null, oldRenderComponent = null; - }, extras; - } - - function walkRoots(roots, onMount, onRoot, isPre013) { - for (var name in roots) { - walkNode(roots[name], onMount, isPre013), onRoot(roots[name]); - } - } - - function walkNode(internalInstance, onMount, isPre013) { - var data = isPre013 ? getData012(internalInstance) : getData(internalInstance); - data.children && Array.isArray(data.children) && data.children.forEach(function (child) { - return walkNode(child, onMount, isPre013); - }), onMount(internalInstance, data); - } - - function decorateResult(obj, attr, fn) { - var old = obj[attr]; - return obj[attr] = function (instance) { - var res = old.apply(this, arguments); - return fn(res), res; - }, old; - } - - function decorate(obj, attr, fn) { - var old = obj[attr]; - return obj[attr] = function (instance) { - var res = old.apply(this, arguments); - return fn.apply(this, arguments), res; - }, old; - } - - function decorateMany(source, fns) { - var olds = {}; - - for (var name in fns) { - olds[name] = decorate(source, name, fns[name]); - } - - return olds; - } - - function restoreMany(source, olds) { - for (var name in olds) { - source[name] = olds[name]; - } - } - - var getData = __webpack_require__(38), - getData012 = __webpack_require__(43), - attachRendererFiber = __webpack_require__(44); - - module.exports = attachRenderer; - }, function (module, exports, __webpack_require__) { - "use strict"; - - function getData(internalInstance) { - var children = null, - props = null, - state = null, - context = null, - updater = null, - name = null, - type = null, - key = null, - ref = null, - source = null, - text = null, - publicInstance = null, - nodeType = "Native"; - if ("object" !== ("undefined" == typeof internalInstance ? "undefined" : _typeof(internalInstance))) nodeType = "Text", text = internalInstance + "";else if (null === internalInstance._currentElement || internalInstance._currentElement === !1) nodeType = "Empty";else if (internalInstance._renderedComponent) nodeType = "NativeWrapper", children = [internalInstance._renderedComponent], props = internalInstance._instance.props, state = internalInstance._instance.state, context = internalInstance._instance.context, context && 0 === Object.keys(context).length && (context = null);else if (internalInstance._renderedChildren) children = childrenList(internalInstance._renderedChildren);else if (internalInstance._currentElement && internalInstance._currentElement.props) { - var unfilteredChildren = internalInstance._currentElement.props.children, - filteredChildren = []; - traverseAllChildrenImpl(unfilteredChildren, "", function (_traverseContext, child) { - var childType = "undefined" == typeof child ? "undefined" : _typeof(child); - "string" !== childType && "number" !== childType || filteredChildren.push(child); - }), children = filteredChildren.length <= 1 ? filteredChildren.length ? String(filteredChildren[0]) : void 0 : filteredChildren; - } - - if (!props && internalInstance._currentElement && internalInstance._currentElement.props && (props = internalInstance._currentElement.props), null != internalInstance._currentElement && (type = internalInstance._currentElement.type, internalInstance._currentElement.key && (key = String(internalInstance._currentElement.key)), source = internalInstance._currentElement._source, ref = internalInstance._currentElement.ref, "string" == typeof type ? (name = type, null != internalInstance._nativeNode && (publicInstance = internalInstance._nativeNode), null != internalInstance._hostNode && (publicInstance = internalInstance._hostNode)) : "function" == typeof type ? (nodeType = "Composite", name = getDisplayName(type), internalInstance._renderedComponent && (internalInstance._currentElement.props === internalInstance._renderedComponent._currentElement || internalInstance._currentElement.type.isReactTopLevelWrapper) && (nodeType = "Wrapper"), null === name && (name = "No display name")) : "string" == typeof internalInstance._stringText ? (nodeType = "Text", text = internalInstance._stringText) : name = getDisplayName(type)), internalInstance._instance) { - var inst = internalInstance._instance, - forceUpdate = inst.forceUpdate || inst.updater && inst.updater.enqueueForceUpdate && function (cb) { - inst.updater.enqueueForceUpdate(this, cb, "forceUpdate"); - }; - - updater = { - setState: inst.setState && inst.setState.bind(inst), - forceUpdate: forceUpdate && forceUpdate.bind(inst), - setInProps: forceUpdate && setInProps.bind(null, internalInstance, forceUpdate), - setInState: inst.forceUpdate && setInState.bind(null, inst), - setInContext: forceUpdate && setInContext.bind(null, inst, forceUpdate) - }, "function" == typeof type && (publicInstance = inst), inst._renderedChildren && (children = childrenList(inst._renderedChildren)); - } - - return "function" == typeof internalInstance.setNativeProps && (updater = { - setNativeProps: function setNativeProps(nativeProps) { - internalInstance.setNativeProps(nativeProps); - } - }), { - nodeType: nodeType, - type: type, - key: key, - ref: ref, - source: source, - name: name, - props: props, - state: state, - context: context, - children: children, - text: text, - updater: updater, - publicInstance: publicInstance - }; - } - - function setInProps(internalInst, forceUpdate, path, value) { - var element = internalInst._currentElement; - internalInst._currentElement = _extends({}, element, { - props: copyWithSet(element.props, path, value) - }), forceUpdate.call(internalInst._instance); - } - - function setInState(inst, path, value) { - setIn(inst.state, path, value), inst.forceUpdate(); - } - - function setInContext(inst, forceUpdate, path, value) { - setIn(inst.context, path, value), forceUpdate.call(inst); - } - - function setIn(obj, path, value) { - var last = path.pop(), - parent = path.reduce(function (obj_, attr) { - return obj_ ? obj_[attr] : null; - }, obj); - parent && (parent[last] = value); - } - - function childrenList(children) { - var res = []; - - for (var name in children) { - res.push(children[name]); - } - - return res; - } - - var _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - } - - return target; - }, - _typeof = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (obj) { - return typeof obj; - } : function (obj) { - return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof obj; - }, - copyWithSet = __webpack_require__(39), - getDisplayName = __webpack_require__(40), - traverseAllChildrenImpl = __webpack_require__(41); - - module.exports = getData; - }, function (module, exports) { - "use strict"; - - function copyWithSetImpl(obj, path, idx, value) { - if (idx >= path.length) return value; - var key = path[idx], - updated = Array.isArray(obj) ? obj.slice() : _extends({}, obj); - return updated[key] = copyWithSetImpl(obj[key], path, idx + 1, value), updated; - } - - function copyWithSet(obj, path, value) { - return copyWithSetImpl(obj, path, 0, value); - } - - var _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); - } - } - - return target; - }; - - module.exports = copyWithSet; - }, function (module, exports) { - "use strict"; - - function getDisplayName(type) { - var fallbackName = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "Unknown", - nameFromCache = cachedDisplayNames.get(type); - if (null != nameFromCache) return nameFromCache; - var displayName = void 0; - "string" == typeof type.displayName && (displayName = type.displayName), displayName || (displayName = type.name || fallbackName); - var match = displayName.match(FB_MODULE_RE); - - if (match) { - var componentName = match[1], - moduleName = match[2]; - componentName && moduleName && (moduleName === componentName || moduleName.startsWith(componentName + ".")) && (displayName = componentName); - } - - return cachedDisplayNames.set(type, displayName), displayName; - } - - var FB_MODULE_RE = /^(.*) \[from (.*)\]$/, - cachedDisplayNames = new WeakMap(); - module.exports = getDisplayName; - }, function (module, exports, __webpack_require__) { - "use strict"; - - function escape(key) { - var escapeRegex = /[=:]/g, - escaperLookup = { - "=": "=0", - ":": "=2" - }, - escapedString = ("" + key).replace(escapeRegex, function (match) { - return escaperLookup[match]; - }); - return "$" + escapedString; - } - - function getComponentKey(component, index) { - return "object" === ("undefined" == typeof component ? "undefined" : _typeof(component)) && null !== component && null != component.key ? escape(component.key) : index.toString(36); - } - - function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) { - var type = "undefined" == typeof children ? "undefined" : _typeof(children); - if ("undefined" !== type && "boolean" !== type || (children = null), null === children || "string" === type || "number" === type || "object" === type && children.$$typeof === REACT_ELEMENT_TYPE) return callback(traverseContext, children, "" === nameSoFar ? SEPARATOR + getComponentKey(children, 0) : nameSoFar), 1; - var child, - nextName, - subtreeCount = 0, - nextNamePrefix = "" === nameSoFar ? SEPARATOR : nameSoFar + SUBSEPARATOR; - if (Array.isArray(children)) for (var i = 0; i < children.length; i++) { - child = children[i], nextName = nextNamePrefix + getComponentKey(child, i), subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); - } else { - var iteratorFn = ITERATOR_SYMBOL && children[ITERATOR_SYMBOL] || children[FAUX_ITERATOR_SYMBOL]; - if ("function" == typeof iteratorFn) for (var step, iterator = iteratorFn.call(children), ii = 0; !(step = iterator.next()).done;) { - child = step.value, nextName = nextNamePrefix + getComponentKey(child, ii++), subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); - } else if ("object" === type) { - var addendum = " If you meant to render a collection of children, use an array instead.", - childrenString = "" + children; - invariant(!1, "The React Devtools cannot render an object as a child. (found: %s).%s", "[object Object]" === childrenString ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString, addendum); - } - } - return subtreeCount; - } - - var _typeof = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (obj) { - return typeof obj; - } : function (obj) { - return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof obj; - }, - invariant = __webpack_require__(42), - SEPARATOR = ".", - SUBSEPARATOR = ":", - FAUX_ITERATOR_SYMBOL = "@@iterator", - ITERATOR_SYMBOL = "function" == typeof Symbol && (typeof Symbol === "function" ? Symbol.iterator : "@@iterator"), - REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol["for"] && Symbol["for"]("react.element") || 60103; - - module.exports = traverseAllChildrenImpl; - }, function (module, exports, __webpack_require__) { - "use strict"; - - function invariant(condition, format, a, b, c, d, e, f) { - if (!condition) { - var error; - if (void 0 === format) error = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else { - var args = [a, b, c, d, e, f], - argIndex = 0; - error = new Error(format.replace(/%s/g, function () { - return args[argIndex++]; - })), error.name = "Invariant Violation"; - } - throw error.framesToPop = 1, error; - } - } - - module.exports = invariant; - }, function (module, exports, __webpack_require__) { - "use strict"; - - function getData012(internalInstance) { - var children = null, - props = internalInstance.props, - state = internalInstance.state, - context = internalInstance.context, - updater = null, - name = null, - type = null, - key = null, - ref = null, - text = null, - publicInstance = null, - nodeType = "Native"; - return internalInstance._renderedComponent ? (nodeType = "Wrapper", children = [internalInstance._renderedComponent], context && 0 === Object.keys(context).length && (context = null)) : internalInstance._renderedChildren ? (name = internalInstance.constructor.displayName, children = childrenList(internalInstance._renderedChildren)) : "string" == typeof props.children && (name = internalInstance.constructor.displayName, children = props.children, nodeType = "Native"), !props && internalInstance._currentElement && internalInstance._currentElement.props && (props = internalInstance._currentElement.props), internalInstance._currentElement && (type = internalInstance._currentElement.type, internalInstance._currentElement.key && (key = String(internalInstance._currentElement.key)), ref = internalInstance._currentElement.ref, "string" == typeof type ? name = type : (nodeType = "Composite", name = type.displayName, name || (name = "No display name"))), name || (name = internalInstance.constructor.displayName || "No display name", nodeType = "Composite"), "string" == typeof props && (nodeType = "Text", text = props, props = null, name = null), internalInstance.forceUpdate && (updater = { - setState: internalInstance.setState.bind(internalInstance), - forceUpdate: internalInstance.forceUpdate.bind(internalInstance), - setInProps: internalInstance.forceUpdate && setInProps.bind(null, internalInstance), - setInState: internalInstance.forceUpdate && setInState.bind(null, internalInstance), - setInContext: internalInstance.forceUpdate && setInContext.bind(null, internalInstance) - }, publicInstance = internalInstance), { - nodeType: nodeType, - type: type, - key: key, - ref: ref, - source: null, - name: name, - props: props, - state: state, - context: context, - children: children, - text: text, - updater: updater, - publicInstance: publicInstance - }; - } - - function setInProps(inst, path, value) { - inst.props = copyWithSet(inst.props, path, value), inst.forceUpdate(); - } - - function setInState(inst, path, value) { - setIn(inst.state, path, value), inst.forceUpdate(); - } - - function setInContext(inst, path, value) { - setIn(inst.context, path, value), inst.forceUpdate(); - } - - function setIn(obj, path, value) { - var last = path.pop(), - parent = path.reduce(function (obj_, attr) { - return obj_ ? obj_[attr] : null; - }, obj); - parent && (parent[last] = value); - } - - function childrenList(children) { - var res = []; - - for (var name in children) { - res.push(children[name]); - } - - return res; - } - - var copyWithSet = __webpack_require__(39); - - module.exports = getData012; - }, function (module, exports, __webpack_require__) { - "use strict"; - - function getInternalReactConstants(version) { - var ReactTypeOfWork, ReactSymbols, ReactTypeOfSideEffect; - return ReactTypeOfWork = semver.gte(version, "16.4.3-alpha") ? { - FunctionalComponent: 0, - FunctionalComponentLazy: 1, - ClassComponent: 2, - ClassComponentLazy: 3, - IndeterminateComponent: 4, - HostRoot: 5, - HostPortal: 6, - HostComponent: 7, - HostText: 8, - Fragment: 9, - Mode: 10, - ContextConsumer: 11, - ContextProvider: 12, - ForwardRef: 13, - ForwardRefLazy: 14, - Profiler: 15, - PlaceholderComponent: 16 - } : { - IndeterminateComponent: 0, - FunctionalComponent: 1, - FunctionalComponentLazy: -1, - ClassComponent: 2, - ClassComponentLazy: -1, - HostRoot: 3, - HostPortal: 4, - HostComponent: 5, - HostText: 6, - CoroutineComponent: 7, - CoroutineHandlerPhase: 8, - YieldComponent: 9, - Fragment: 10, - Mode: 11, - ContextConsumer: 12, - ContextProvider: 13, - ForwardRef: 14, - ForwardRefLazy: -1, - Profiler: 15, - Placeholder: 16 - }, ReactSymbols = { - ASYNC_MODE_NUMBER: 60111, - ASYNC_MODE_SYMBOL_STRING: "Symbol(react.async_mode)", - CONTEXT_CONSUMER_NUMBER: 60110, - CONTEXT_CONSUMER_SYMBOL_STRING: "Symbol(react.context)", - CONTEXT_PROVIDER_NUMBER: 60109, - CONTEXT_PROVIDER_SYMBOL_STRING: "Symbol(react.provider)", - FORWARD_REF_NUMBER: 60112, - FORWARD_REF_SYMBOL_STRING: "Symbol(react.forward_ref)", - PROFILER_NUMBER: 60114, - PROFILER_SYMBOL_STRING: "Symbol(react.profiler)", - STRICT_MODE_NUMBER: 60108, - STRICT_MODE_SYMBOL_STRING: "Symbol(react.strict_mode)", - PLACEHOLDER_NUMBER: 60113, - PLACEHOLDER_SYMBOL_STRING: "Symbol(react.placeholder)" - }, ReactTypeOfSideEffect = { - PerformedWork: 1 - }, { - ReactTypeOfWork: ReactTypeOfWork, - ReactSymbols: ReactSymbols, - ReactTypeOfSideEffect: ReactTypeOfSideEffect - }; - } - - function attachRendererFiber(hook, rid, renderer) { - function getDataFiber(fiber) { - var type = fiber.type, - key = fiber.key, - ref = fiber.ref, - source = fiber._debugSource, - publicInstance = null, - props = null, - state = null, - children = null, - context = null, - updater = null, - nodeType = null, - name = null, - text = null, - actualDuration = null, - actualStartTime = null, - treeBaseDuration = null, - resolvedType = type; - - switch ("object" === ("undefined" == typeof type ? "undefined" : _typeof(type)) && null !== type && "function" == typeof type.then && (resolvedType = type._reactResult), fiber.tag) { - case FunctionalComponent: - case FunctionalComponentLazy: - case ClassComponent: - case ClassComponentLazy: - nodeType = "Composite", name = getDisplayName(resolvedType), publicInstance = fiber.stateNode, props = fiber.memoizedProps, state = fiber.memoizedState, null != publicInstance && (context = publicInstance.context, context && 0 === Object.keys(context).length && (context = null)); - var inst = publicInstance; - inst && (updater = { - setState: inst.setState && inst.setState.bind(inst), - forceUpdate: inst.forceUpdate && inst.forceUpdate.bind(inst), - setInProps: inst.forceUpdate && setInProps.bind(null, fiber), - setInState: inst.forceUpdate && setInState.bind(null, inst), - setInContext: inst.forceUpdate && setInContext.bind(null, inst) - }), children = []; - break; - - case ForwardRef: - case ForwardRefLazy: - var functionName = getDisplayName(resolvedType.render, ""); - nodeType = "Special", name = "" !== functionName ? "ForwardRef(" + functionName + ")" : "ForwardRef", children = []; - break; - - case HostRoot: - nodeType = "Wrapper", children = []; - break; - - case HostPortal: - nodeType = "Portal", name = "ReactPortal", props = { - target: fiber.stateNode.containerInfo - }, children = []; - break; - - case HostComponent: - nodeType = "Native", name = fiber.type, name = name.replace("topsecret-", ""), publicInstance = fiber.stateNode, props = fiber.memoizedProps, children = "string" == typeof props.children || "number" == typeof props.children ? props.children.toString() : [], "function" == typeof fiber.stateNode.setNativeProps && (updater = { - setNativeProps: function setNativeProps(nativeProps) { - fiber.stateNode.setNativeProps(nativeProps); - } - }); - break; - - case HostText: - nodeType = "Text", text = fiber.memoizedProps; - break; - - case Fragment: - nodeType = "Wrapper", children = []; - break; - - default: - var symbolOrNumber = "object" === ("undefined" == typeof type ? "undefined" : _typeof(type)) && null !== type ? type.$$typeof : type, - switchValue = "symbol" === ("undefined" == typeof symbolOrNumber ? "undefined" : _typeof(symbolOrNumber)) ? symbolOrNumber.toString() : symbolOrNumber; - - switch (switchValue) { - case ASYNC_MODE_NUMBER: - case ASYNC_MODE_SYMBOL_STRING: - nodeType = "Special", name = "AsyncMode", children = []; - break; - - case CONTEXT_PROVIDER_NUMBER: - case CONTEXT_PROVIDER_SYMBOL_STRING: - nodeType = "Special", props = fiber.memoizedProps, name = "Context.Provider", children = []; - break; - - case CONTEXT_CONSUMER_NUMBER: - case CONTEXT_CONSUMER_SYMBOL_STRING: - nodeType = "Special", props = fiber.memoizedProps, name = "Context.Consumer", children = []; - break; - - case STRICT_MODE_NUMBER: - case STRICT_MODE_SYMBOL_STRING: - nodeType = "Special", name = "StrictMode", children = []; - break; - - case PLACEHOLDER_NUMBER: - case PLACEHOLDER_SYMBOL_STRING: - nodeType = "Special", name = "Placeholder", props = fiber.memoizedProps, children = []; - break; - - case PROFILER_NUMBER: - case PROFILER_SYMBOL_STRING: - nodeType = "Special", props = fiber.memoizedProps, name = "Profiler(" + fiber.memoizedProps.id + ")", children = []; - break; - - default: - nodeType = "Native", props = fiber.memoizedProps, name = "TODO_NOT_IMPLEMENTED_YET", children = []; - } - - } - - if (Array.isArray(children)) for (var child = fiber.child; child;) { - children.push(getOpaqueNode(child)), child = child.sibling; - } - return void 0 !== fiber.actualDuration && (actualDuration = fiber.actualDuration, actualStartTime = fiber.actualStartTime, treeBaseDuration = fiber.treeBaseDuration), { - nodeType: nodeType, - type: type, - key: key, - ref: ref, - source: source, - name: name, - props: props, - state: state, - context: context, - children: children, - text: text, - updater: updater, - publicInstance: publicInstance, - actualDuration: actualDuration, - actualStartTime: actualStartTime, - treeBaseDuration: treeBaseDuration - }; - } - - function setInProps(fiber, path, value) { - var inst = fiber.stateNode; - fiber.pendingProps = copyWithSet(inst.props, path, value), fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps), fiber.stateNode.forceUpdate(); - } - - function setInState(inst, path, value) { - setIn(inst.state, path, value), inst.forceUpdate(); - } - - function setInContext(inst, path, value) { - setIn(inst.context, path, value), inst.forceUpdate(); - } - - function setIn(obj, path, value) { - var last = path.pop(), - parent = path.reduce(function (obj_, attr) { - return obj_ ? obj_[attr] : null; - }, obj); - parent && (parent[last] = value); - } - - function getOpaqueNode(fiber) { - if (opaqueNodes.has(fiber)) return fiber; - var alternate = fiber.alternate; - return null != alternate && opaqueNodes.has(alternate) ? alternate : (opaqueNodes.add(fiber), fiber); - } - - function hasDataChanged(prevFiber, nextFiber) { - switch (nextFiber.tag) { - case ClassComponent: - case FunctionalComponent: - case ContextConsumer: - return (nextFiber.effectTag & PerformedWork) === PerformedWork; - - default: - return prevFiber.memoizedProps !== nextFiber.memoizedProps || prevFiber.memoizedState !== nextFiber.memoizedState || prevFiber.ref !== nextFiber.ref; - } - } - - function haveProfilerTimesChanged(prevFiber, nextFiber) { - return void 0 !== prevFiber.actualDuration && (prevFiber.actualDuration !== nextFiber.actualDuration || prevFiber.actualStartTime !== nextFiber.actualStartTime || prevFiber.selfBaseDuration !== nextFiber.selfBaseDuration || prevFiber.treeBaseDuration !== nextFiber.treeBaseDuration); - } - - function flushPendingEvents() { - var events = pendingEvents; - pendingEvents = []; - - for (var i = 0; i < events.length; i++) { - var event = events[i]; - hook.emit(event.type, event); - } - } - - function enqueueMount(fiber) { - pendingEvents.push({ - internalInstance: getOpaqueNode(fiber), - data: getDataFiber(fiber), - renderer: rid, - type: "mount" - }); - var isRoot = fiber.tag === HostRoot; - isRoot && pendingEvents.push({ - internalInstance: getOpaqueNode(fiber), - renderer: rid, - type: "root" - }); - } - - function enqueueUpdateIfNecessary(fiber, hasChildOrderChanged) { - return hasChildOrderChanged || hasDataChanged(fiber.alternate, fiber) ? void pendingEvents.push({ - internalInstance: getOpaqueNode(fiber), - data: getDataFiber(fiber), - renderer: rid, - type: "update" - }) : void (haveProfilerTimesChanged(fiber.alternate, fiber) && pendingEvents.push({ - internalInstance: getOpaqueNode(fiber), - data: getDataFiber(fiber), - renderer: rid, - type: "updateProfileTimes" - })); - } - - function enqueueUnmount(fiber) { - var isRoot = fiber.tag === HostRoot, - opaqueNode = getOpaqueNode(fiber), - event = { - internalInstance: opaqueNode, - renderer: rid, - type: "unmount" - }; - isRoot ? pendingEvents.push(event) : pendingEvents.unshift(event), opaqueNodes["delete"](opaqueNode); - } - - function markRootCommitted(fiber) { - pendingEvents.push({ - internalInstance: getOpaqueNode(fiber), - renderer: rid, - type: "rootCommitted" - }); - } - - function mountFiber(fiber) { - var node = fiber; - - outer: for (;;) { - if (node.child) node.child["return"] = node, node = node.child;else { - if (enqueueMount(node), node == fiber) return; - - if (!node.sibling) { - for (; node["return"];) { - if (node = node["return"], enqueueMount(node), node == fiber) return; - - if (node.sibling) { - node.sibling["return"] = node["return"], node = node.sibling; - continue outer; - } - } - - return; - } - - node.sibling["return"] = node["return"], node = node.sibling; - } - } - } - - function updateFiber(nextFiber, prevFiber) { - var hasChildOrderChanged = !1; - - if (nextFiber.child !== prevFiber.child) { - for (var nextChild = nextFiber.child, prevChildAtSameIndex = prevFiber.child; nextChild;) { - if (nextChild.alternate) { - var prevChild = nextChild.alternate; - updateFiber(nextChild, prevChild), hasChildOrderChanged || prevChild === prevChildAtSameIndex || (hasChildOrderChanged = !0); - } else mountFiber(nextChild), hasChildOrderChanged || (hasChildOrderChanged = !0); - - nextChild = nextChild.sibling, hasChildOrderChanged || null == prevChildAtSameIndex || (prevChildAtSameIndex = prevChildAtSameIndex.sibling); - } - - hasChildOrderChanged || null == prevChildAtSameIndex || (hasChildOrderChanged = !0); - } - - enqueueUpdateIfNecessary(nextFiber, hasChildOrderChanged); - } - - function walkTree() { - hook.getFiberRoots(rid).forEach(function (root) { - mountFiber(root.current), markRootCommitted(root.current); - }), flushPendingEvents(); - } - - function cleanup() {} - - function handleCommitFiberUnmount(fiber) { - enqueueUnmount(fiber); - } - - function handleCommitFiberRoot(root) { - var current = root.current, - alternate = current.alternate; - - if (alternate) { - var wasMounted = null != alternate.memoizedState && null != alternate.memoizedState.element, - isMounted = null != current.memoizedState && null != current.memoizedState.element; - !wasMounted && isMounted ? mountFiber(current) : wasMounted && isMounted ? updateFiber(current, alternate) : wasMounted && !isMounted && enqueueUnmount(current); - } else mountFiber(current); - - markRootCommitted(current), flushPendingEvents(); - } - - function getNativeFromReactElement(fiber) { - try { - var opaqueNode = fiber, - hostInstance = renderer.findHostInstanceByFiber(opaqueNode); - return hostInstance; - } catch (err) { - return null; - } - } - - function getReactElementFromNative(hostInstance) { - var fiber = renderer.findFiberByHostInstance(hostInstance); - - if (null != fiber) { - var opaqueNode = getOpaqueNode(fiber); - return opaqueNode; - } - - return null; - } - - var _getInternalReactCons = getInternalReactConstants(renderer.version), - ReactTypeOfWork = _getInternalReactCons.ReactTypeOfWork, - ReactSymbols = _getInternalReactCons.ReactSymbols, - ReactTypeOfSideEffect = _getInternalReactCons.ReactTypeOfSideEffect, - PerformedWork = ReactTypeOfSideEffect.PerformedWork, - FunctionalComponent = ReactTypeOfWork.FunctionalComponent, - FunctionalComponentLazy = ReactTypeOfWork.FunctionalComponentLazy, - ClassComponent = ReactTypeOfWork.ClassComponent, - ClassComponentLazy = ReactTypeOfWork.ClassComponentLazy, - ContextConsumer = ReactTypeOfWork.ContextConsumer, - HostRoot = ReactTypeOfWork.HostRoot, - HostPortal = ReactTypeOfWork.HostPortal, - HostComponent = ReactTypeOfWork.HostComponent, - HostText = ReactTypeOfWork.HostText, - Fragment = ReactTypeOfWork.Fragment, - ForwardRef = ReactTypeOfWork.ForwardRef, - ForwardRefLazy = ReactTypeOfWork.ForwardRefLazy, - ASYNC_MODE_NUMBER = ReactSymbols.ASYNC_MODE_NUMBER, - ASYNC_MODE_SYMBOL_STRING = ReactSymbols.ASYNC_MODE_SYMBOL_STRING, - CONTEXT_CONSUMER_NUMBER = ReactSymbols.CONTEXT_CONSUMER_NUMBER, - CONTEXT_CONSUMER_SYMBOL_STRING = ReactSymbols.CONTEXT_CONSUMER_SYMBOL_STRING, - CONTEXT_PROVIDER_NUMBER = ReactSymbols.CONTEXT_PROVIDER_NUMBER, - CONTEXT_PROVIDER_SYMBOL_STRING = ReactSymbols.CONTEXT_PROVIDER_SYMBOL_STRING, - PROFILER_NUMBER = ReactSymbols.PROFILER_NUMBER, - PROFILER_SYMBOL_STRING = ReactSymbols.PROFILER_SYMBOL_STRING, - STRICT_MODE_NUMBER = ReactSymbols.STRICT_MODE_NUMBER, - STRICT_MODE_SYMBOL_STRING = ReactSymbols.STRICT_MODE_SYMBOL_STRING, - PLACEHOLDER_NUMBER = ReactSymbols.PLACEHOLDER_NUMBER, - PLACEHOLDER_SYMBOL_STRING = ReactSymbols.PLACEHOLDER_SYMBOL_STRING, - opaqueNodes = new Set(), - pendingEvents = []; - - return { - getNativeFromReactElement: getNativeFromReactElement, - getReactElementFromNative: getReactElementFromNative, - handleCommitFiberRoot: handleCommitFiberRoot, - handleCommitFiberUnmount: handleCommitFiberUnmount, - cleanup: cleanup, - walkTree: walkTree - }; - } - - var _typeof = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (obj) { - return typeof obj; - } : function (obj) { - return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof obj; - }, - semver = __webpack_require__(45), - copyWithSet = __webpack_require__(39), - getDisplayName = __webpack_require__(40); - - module.exports = attachRendererFiber; - }, function (module, exports, __webpack_require__) { - (function (process) { - function parse(version, loose) { - if (version instanceof SemVer) return version; - if ("string" != typeof version) return null; - if (version.length > MAX_LENGTH) return null; - var r = loose ? re[LOOSE] : re[FULL]; - if (!r.test(version)) return null; - - try { - return new SemVer(version, loose); - } catch (er) { - return null; - } - } - - function valid(version, loose) { - var v = parse(version, loose); - return v ? v.version : null; - } - - function clean(version, loose) { - var s = parse(version.trim().replace(/^[=v]+/, ""), loose); - return s ? s.version : null; - } - - function SemVer(version, loose) { - if (version instanceof SemVer) { - if (version.loose === loose) return version; - version = version.version; - } else if ("string" != typeof version) throw new TypeError("Invalid Version: " + version); - - if (version.length > MAX_LENGTH) throw new TypeError("version is longer than " + MAX_LENGTH + " characters"); - if (!(this instanceof SemVer)) return new SemVer(version, loose); - debug("SemVer", version, loose), this.loose = loose; - var m = version.trim().match(loose ? re[LOOSE] : re[FULL]); - if (!m) throw new TypeError("Invalid Version: " + version); - if (this.raw = version, this.major = +m[1], this.minor = +m[2], this.patch = +m[3], this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version"); - if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version"); - if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version"); - m[4] ? this.prerelease = m[4].split(".").map(function (id) { - if (/^[0-9]+$/.test(id)) { - var num = +id; - if (num >= 0 && num < MAX_SAFE_INTEGER) return num; - } - - return id; - }) : this.prerelease = [], this.build = m[5] ? m[5].split(".") : [], this.format(); - } - - function inc(version, release, loose, identifier) { - "string" == typeof loose && (identifier = loose, loose = void 0); - - try { - return new SemVer(version, loose).inc(release, identifier).version; - } catch (er) { - return null; - } - } - - function diff(version1, version2) { - if (eq(version1, version2)) return null; - var v1 = parse(version1), - v2 = parse(version2); - - if (v1.prerelease.length || v2.prerelease.length) { - for (var key in v1) { - if (("major" === key || "minor" === key || "patch" === key) && v1[key] !== v2[key]) return "pre" + key; - } - - return "prerelease"; - } - - for (var key in v1) { - if (("major" === key || "minor" === key || "patch" === key) && v1[key] !== v2[key]) return key; - } - } - - function compareIdentifiers(a, b) { - var anum = numeric.test(a), - bnum = numeric.test(b); - return anum && bnum && (a = +a, b = +b), anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : a > b ? 1 : 0; - } - - function rcompareIdentifiers(a, b) { - return compareIdentifiers(b, a); - } - - function major(a, loose) { - return new SemVer(a, loose).major; - } - - function minor(a, loose) { - return new SemVer(a, loose).minor; - } - - function patch(a, loose) { - return new SemVer(a, loose).patch; - } - - function compare(a, b, loose) { - return new SemVer(a, loose).compare(new SemVer(b, loose)); - } - - function compareLoose(a, b) { - return compare(a, b, !0); - } - - function rcompare(a, b, loose) { - return compare(b, a, loose); - } - - function sort(list, loose) { - return list.sort(function (a, b) { - return exports.compare(a, b, loose); - }); - } - - function rsort(list, loose) { - return list.sort(function (a, b) { - return exports.rcompare(a, b, loose); - }); - } - - function gt(a, b, loose) { - return compare(a, b, loose) > 0; - } - - function lt(a, b, loose) { - return compare(a, b, loose) < 0; - } - - function eq(a, b, loose) { - return 0 === compare(a, b, loose); - } - - function neq(a, b, loose) { - return 0 !== compare(a, b, loose); - } - - function gte(a, b, loose) { - return compare(a, b, loose) >= 0; - } - - function lte(a, b, loose) { - return compare(a, b, loose) <= 0; - } - - function cmp(a, op, b, loose) { - var ret; - - switch (op) { - case "===": - "object" == typeof a && (a = a.version), "object" == typeof b && (b = b.version), ret = a === b; - break; - - case "!==": - "object" == typeof a && (a = a.version), "object" == typeof b && (b = b.version), ret = a !== b; - break; - - case "": - case "=": - case "==": - ret = eq(a, b, loose); - break; - - case "!=": - ret = neq(a, b, loose); - break; - - case ">": - ret = gt(a, b, loose); - break; - - case ">=": - ret = gte(a, b, loose); - break; - - case "<": - ret = lt(a, b, loose); - break; - - case "<=": - ret = lte(a, b, loose); - break; - - default: - throw new TypeError("Invalid operator: " + op); - } - - return ret; - } - - function Comparator(comp, loose) { - if (comp instanceof Comparator) { - if (comp.loose === loose) return comp; - comp = comp.value; - } - - return this instanceof Comparator ? (debug("comparator", comp, loose), this.loose = loose, this.parse(comp), this.semver === ANY ? this.value = "" : this.value = this.operator + this.semver.version, void debug("comp", this)) : new Comparator(comp, loose); - } - - function Range(range, loose) { - if (range instanceof Range) return range.loose === loose ? range : new Range(range.raw, loose); - if (range instanceof Comparator) return new Range(range.value, loose); - if (!(this instanceof Range)) return new Range(range, loose); - if (this.loose = loose, this.raw = range, this.set = range.split(/\s*\|\|\s*/).map(function (range) { - return this.parseRange(range.trim()); - }, this).filter(function (c) { - return c.length; - }), !this.set.length) throw new TypeError("Invalid SemVer Range: " + range); - this.format(); - } - - function toComparators(range, loose) { - return new Range(range, loose).set.map(function (comp) { - return comp.map(function (c) { - return c.value; - }).join(" ").trim().split(" "); - }); - } - - function parseComparator(comp, loose) { - return debug("comp", comp), comp = replaceCarets(comp, loose), debug("caret", comp), comp = replaceTildes(comp, loose), debug("tildes", comp), comp = replaceXRanges(comp, loose), debug("xrange", comp), comp = replaceStars(comp, loose), debug("stars", comp), comp; - } - - function isX(id) { - return !id || "x" === id.toLowerCase() || "*" === id; - } - - function replaceTildes(comp, loose) { - return comp.trim().split(/\s+/).map(function (comp) { - return replaceTilde(comp, loose); - }).join(" "); - } - - function replaceTilde(comp, loose) { - var r = loose ? re[TILDELOOSE] : re[TILDE]; - return comp.replace(r, function (_, M, m, p, pr) { - debug("tilde", comp, _, M, m, p, pr); - var ret; - return isX(M) ? ret = "" : isX(m) ? ret = ">=" + M + ".0.0 <" + (+M + 1) + ".0.0" : isX(p) ? ret = ">=" + M + "." + m + ".0 <" + M + "." + (+m + 1) + ".0" : pr ? (debug("replaceTilde pr", pr), "-" !== pr.charAt(0) && (pr = "-" + pr), ret = ">=" + M + "." + m + "." + p + pr + " <" + M + "." + (+m + 1) + ".0") : ret = ">=" + M + "." + m + "." + p + " <" + M + "." + (+m + 1) + ".0", debug("tilde return", ret), ret; - }); - } - - function replaceCarets(comp, loose) { - return comp.trim().split(/\s+/).map(function (comp) { - return replaceCaret(comp, loose); - }).join(" "); - } - - function replaceCaret(comp, loose) { - debug("caret", comp, loose); - var r = loose ? re[CARETLOOSE] : re[CARET]; - return comp.replace(r, function (_, M, m, p, pr) { - debug("caret", comp, _, M, m, p, pr); - var ret; - return isX(M) ? ret = "" : isX(m) ? ret = ">=" + M + ".0.0 <" + (+M + 1) + ".0.0" : isX(p) ? ret = "0" === M ? ">=" + M + "." + m + ".0 <" + M + "." + (+m + 1) + ".0" : ">=" + M + "." + m + ".0 <" + (+M + 1) + ".0.0" : pr ? (debug("replaceCaret pr", pr), "-" !== pr.charAt(0) && (pr = "-" + pr), ret = "0" === M ? "0" === m ? ">=" + M + "." + m + "." + p + pr + " <" + M + "." + m + "." + (+p + 1) : ">=" + M + "." + m + "." + p + pr + " <" + M + "." + (+m + 1) + ".0" : ">=" + M + "." + m + "." + p + pr + " <" + (+M + 1) + ".0.0") : (debug("no pr"), ret = "0" === M ? "0" === m ? ">=" + M + "." + m + "." + p + " <" + M + "." + m + "." + (+p + 1) : ">=" + M + "." + m + "." + p + " <" + M + "." + (+m + 1) + ".0" : ">=" + M + "." + m + "." + p + " <" + (+M + 1) + ".0.0"), debug("caret return", ret), ret; - }); - } - - function replaceXRanges(comp, loose) { - return debug("replaceXRanges", comp, loose), comp.split(/\s+/).map(function (comp) { - return replaceXRange(comp, loose); - }).join(" "); - } - - function replaceXRange(comp, loose) { - comp = comp.trim(); - var r = loose ? re[XRANGELOOSE] : re[XRANGE]; - return comp.replace(r, function (ret, gtlt, M, m, p, pr) { - debug("xRange", comp, ret, gtlt, M, m, p, pr); - var xM = isX(M), - xm = xM || isX(m), - xp = xm || isX(p), - anyX = xp; - return "=" === gtlt && anyX && (gtlt = ""), xM ? ret = ">" === gtlt || "<" === gtlt ? "<0.0.0" : "*" : gtlt && anyX ? (xm && (m = 0), xp && (p = 0), ">" === gtlt ? (gtlt = ">=", xm ? (M = +M + 1, m = 0, p = 0) : xp && (m = +m + 1, p = 0)) : "<=" === gtlt && (gtlt = "<", xm ? M = +M + 1 : m = +m + 1), ret = gtlt + M + "." + m + "." + p) : xm ? ret = ">=" + M + ".0.0 <" + (+M + 1) + ".0.0" : xp && (ret = ">=" + M + "." + m + ".0 <" + M + "." + (+m + 1) + ".0"), debug("xRange return", ret), ret; - }); - } - - function replaceStars(comp, loose) { - return debug("replaceStars", comp, loose), comp.trim().replace(re[STAR], ""); - } - - function hyphenReplace($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) { - return from = isX(fM) ? "" : isX(fm) ? ">=" + fM + ".0.0" : isX(fp) ? ">=" + fM + "." + fm + ".0" : ">=" + from, to = isX(tM) ? "" : isX(tm) ? "<" + (+tM + 1) + ".0.0" : isX(tp) ? "<" + tM + "." + (+tm + 1) + ".0" : tpr ? "<=" + tM + "." + tm + "." + tp + "-" + tpr : "<=" + to, (from + " " + to).trim(); - } - - function testSet(set, version) { - for (var i = 0; i < set.length; i++) { - if (!set[i].test(version)) return !1; - } - - if (version.prerelease.length) { - for (var i = 0; i < set.length; i++) { - if (debug(set[i].semver), set[i].semver !== ANY && set[i].semver.prerelease.length > 0) { - var allowed = set[i].semver; - if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return !0; - } - } - - return !1; - } - - return !0; - } - - function satisfies(version, range, loose) { - try { - range = new Range(range, loose); - } catch (er) { - return !1; - } - - return range.test(version); - } - - function maxSatisfying(versions, range, loose) { - var max = null, - maxSV = null; - - try { - var rangeObj = new Range(range, loose); - } catch (er) { - return null; - } - - return versions.forEach(function (v) { - rangeObj.test(v) && (max && maxSV.compare(v) !== -1 || (max = v, maxSV = new SemVer(max, loose))); - }), max; - } - - function minSatisfying(versions, range, loose) { - var min = null, - minSV = null; - - try { - var rangeObj = new Range(range, loose); - } catch (er) { - return null; - } - - return versions.forEach(function (v) { - rangeObj.test(v) && (min && 1 !== minSV.compare(v) || (min = v, minSV = new SemVer(min, loose))); - }), min; - } - - function validRange(range, loose) { - try { - return new Range(range, loose).range || "*"; - } catch (er) { - return null; - } - } - - function ltr(version, range, loose) { - return outside(version, range, "<", loose); - } - - function gtr(version, range, loose) { - return outside(version, range, ">", loose); - } - - function outside(version, range, hilo, loose) { - version = new SemVer(version, loose), range = new Range(range, loose); - var gtfn, ltefn, ltfn, comp, ecomp; - - switch (hilo) { - case ">": - gtfn = gt, ltefn = lte, ltfn = lt, comp = ">", ecomp = ">="; - break; - - case "<": - gtfn = lt, ltefn = gte, ltfn = gt, comp = "<", ecomp = "<="; - break; - - default: - throw new TypeError('Must provide a hilo val of "<" or ">"'); - } - - if (satisfies(version, range, loose)) return !1; - - for (var i = 0; i < range.set.length; ++i) { - var comparators = range.set[i], - high = null, - low = null; - if (comparators.forEach(function (comparator) { - comparator.semver === ANY && (comparator = new Comparator(">=0.0.0")), high = high || comparator, low = low || comparator, gtfn(comparator.semver, high.semver, loose) ? high = comparator : ltfn(comparator.semver, low.semver, loose) && (low = comparator); - }), high.operator === comp || high.operator === ecomp) return !1; - if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return !1; - if (low.operator === ecomp && ltfn(version, low.semver)) return !1; - } - - return !0; - } - - function prerelease(version, loose) { - var parsed = parse(version, loose); - return parsed && parsed.prerelease.length ? parsed.prerelease : null; - } - - function intersects(r1, r2, loose) { - return r1 = new Range(r1, loose), r2 = new Range(r2, loose), r1.intersects(r2); - } - - function coerce(version) { - if (version instanceof SemVer) return version; - if ("string" != typeof version) return null; - var match = version.match(re[COERCE]); - return null == match ? null : parse((match[1] || "0") + "." + (match[2] || "0") + "." + (match[3] || "0")); - } - - exports = module.exports = SemVer; - var debug; - debug = "object" == typeof process && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? function () { - var args = Array.prototype.slice.call(arguments, 0); - args.unshift("SEMVER"), console.log.apply(console, args); - } : function () {}, exports.SEMVER_SPEC_VERSION = "2.0.0"; - var MAX_LENGTH = 256, - MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991, - MAX_SAFE_COMPONENT_LENGTH = 16, - re = exports.re = [], - src = exports.src = [], - R = 0, - NUMERICIDENTIFIER = R++; - src[NUMERICIDENTIFIER] = "0|[1-9]\\d*"; - var NUMERICIDENTIFIERLOOSE = R++; - src[NUMERICIDENTIFIERLOOSE] = "[0-9]+"; - var NONNUMERICIDENTIFIER = R++; - src[NONNUMERICIDENTIFIER] = "\\d*[a-zA-Z-][a-zA-Z0-9-]*"; - var MAINVERSION = R++; - src[MAINVERSION] = "(" + src[NUMERICIDENTIFIER] + ")\\.(" + src[NUMERICIDENTIFIER] + ")\\.(" + src[NUMERICIDENTIFIER] + ")"; - var MAINVERSIONLOOSE = R++; - src[MAINVERSIONLOOSE] = "(" + src[NUMERICIDENTIFIERLOOSE] + ")\\.(" + src[NUMERICIDENTIFIERLOOSE] + ")\\.(" + src[NUMERICIDENTIFIERLOOSE] + ")"; - var PRERELEASEIDENTIFIER = R++; - src[PRERELEASEIDENTIFIER] = "(?:" + src[NUMERICIDENTIFIER] + "|" + src[NONNUMERICIDENTIFIER] + ")"; - var PRERELEASEIDENTIFIERLOOSE = R++; - src[PRERELEASEIDENTIFIERLOOSE] = "(?:" + src[NUMERICIDENTIFIERLOOSE] + "|" + src[NONNUMERICIDENTIFIER] + ")"; - var PRERELEASE = R++; - src[PRERELEASE] = "(?:-(" + src[PRERELEASEIDENTIFIER] + "(?:\\." + src[PRERELEASEIDENTIFIER] + ")*))"; - var PRERELEASELOOSE = R++; - src[PRERELEASELOOSE] = "(?:-?(" + src[PRERELEASEIDENTIFIERLOOSE] + "(?:\\." + src[PRERELEASEIDENTIFIERLOOSE] + ")*))"; - var BUILDIDENTIFIER = R++; - src[BUILDIDENTIFIER] = "[0-9A-Za-z-]+"; - var BUILD = R++; - src[BUILD] = "(?:\\+(" + src[BUILDIDENTIFIER] + "(?:\\." + src[BUILDIDENTIFIER] + ")*))"; - var FULL = R++, - FULLPLAIN = "v?" + src[MAINVERSION] + src[PRERELEASE] + "?" + src[BUILD] + "?"; - src[FULL] = "^" + FULLPLAIN + "$"; - var LOOSEPLAIN = "[v=\\s]*" + src[MAINVERSIONLOOSE] + src[PRERELEASELOOSE] + "?" + src[BUILD] + "?", - LOOSE = R++; - src[LOOSE] = "^" + LOOSEPLAIN + "$"; - var GTLT = R++; - src[GTLT] = "((?:<|>)?=?)"; - var XRANGEIDENTIFIERLOOSE = R++; - src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + "|x|X|\\*"; - var XRANGEIDENTIFIER = R++; - src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + "|x|X|\\*"; - var XRANGEPLAIN = R++; - src[XRANGEPLAIN] = "[v=\\s]*(" + src[XRANGEIDENTIFIER] + ")(?:\\.(" + src[XRANGEIDENTIFIER] + ")(?:\\.(" + src[XRANGEIDENTIFIER] + ")(?:" + src[PRERELEASE] + ")?" + src[BUILD] + "?)?)?"; - var XRANGEPLAINLOOSE = R++; - src[XRANGEPLAINLOOSE] = "[v=\\s]*(" + src[XRANGEIDENTIFIERLOOSE] + ")(?:\\.(" + src[XRANGEIDENTIFIERLOOSE] + ")(?:\\.(" + src[XRANGEIDENTIFIERLOOSE] + ")(?:" + src[PRERELEASELOOSE] + ")?" + src[BUILD] + "?)?)?"; - var XRANGE = R++; - src[XRANGE] = "^" + src[GTLT] + "\\s*" + src[XRANGEPLAIN] + "$"; - var XRANGELOOSE = R++; - src[XRANGELOOSE] = "^" + src[GTLT] + "\\s*" + src[XRANGEPLAINLOOSE] + "$"; - var COERCE = R++; - src[COERCE] = "(?:^|[^\\d])(\\d{1," + MAX_SAFE_COMPONENT_LENGTH + "})(?:\\.(\\d{1," + MAX_SAFE_COMPONENT_LENGTH + "}))?(?:\\.(\\d{1," + MAX_SAFE_COMPONENT_LENGTH + "}))?(?:$|[^\\d])"; - var LONETILDE = R++; - src[LONETILDE] = "(?:~>?)"; - var TILDETRIM = R++; - src[TILDETRIM] = "(\\s*)" + src[LONETILDE] + "\\s+", re[TILDETRIM] = new RegExp(src[TILDETRIM], "g"); - var tildeTrimReplace = "$1~", - TILDE = R++; - src[TILDE] = "^" + src[LONETILDE] + src[XRANGEPLAIN] + "$"; - var TILDELOOSE = R++; - src[TILDELOOSE] = "^" + src[LONETILDE] + src[XRANGEPLAINLOOSE] + "$"; - var LONECARET = R++; - src[LONECARET] = "(?:\\^)"; - var CARETTRIM = R++; - src[CARETTRIM] = "(\\s*)" + src[LONECARET] + "\\s+", re[CARETTRIM] = new RegExp(src[CARETTRIM], "g"); - var caretTrimReplace = "$1^", - CARET = R++; - src[CARET] = "^" + src[LONECARET] + src[XRANGEPLAIN] + "$"; - var CARETLOOSE = R++; - src[CARETLOOSE] = "^" + src[LONECARET] + src[XRANGEPLAINLOOSE] + "$"; - var COMPARATORLOOSE = R++; - src[COMPARATORLOOSE] = "^" + src[GTLT] + "\\s*(" + LOOSEPLAIN + ")$|^$"; - var COMPARATOR = R++; - src[COMPARATOR] = "^" + src[GTLT] + "\\s*(" + FULLPLAIN + ")$|^$"; - var COMPARATORTRIM = R++; - src[COMPARATORTRIM] = "(\\s*)" + src[GTLT] + "\\s*(" + LOOSEPLAIN + "|" + src[XRANGEPLAIN] + ")", re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], "g"); - var comparatorTrimReplace = "$1$2$3", - HYPHENRANGE = R++; - src[HYPHENRANGE] = "^\\s*(" + src[XRANGEPLAIN] + ")\\s+-\\s+(" + src[XRANGEPLAIN] + ")\\s*$"; - var HYPHENRANGELOOSE = R++; - src[HYPHENRANGELOOSE] = "^\\s*(" + src[XRANGEPLAINLOOSE] + ")\\s+-\\s+(" + src[XRANGEPLAINLOOSE] + ")\\s*$"; - var STAR = R++; - src[STAR] = "(<|>)?=?\\s*\\*"; - - for (var i = 0; i < R; i++) { - debug(i, src[i]), re[i] || (re[i] = new RegExp(src[i])); - } - - exports.parse = parse, exports.valid = valid, exports.clean = clean, exports.SemVer = SemVer, SemVer.prototype.format = function () { - return this.version = this.major + "." + this.minor + "." + this.patch, this.prerelease.length && (this.version += "-" + this.prerelease.join(".")), this.version; - }, SemVer.prototype.toString = function () { - return this.version; - }, SemVer.prototype.compare = function (other) { - return debug("SemVer.compare", this.version, this.loose, other), other instanceof SemVer || (other = new SemVer(other, this.loose)), this.compareMain(other) || this.comparePre(other); - }, SemVer.prototype.compareMain = function (other) { - return other instanceof SemVer || (other = new SemVer(other, this.loose)), compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch); - }, SemVer.prototype.comparePre = function (other) { - if (other instanceof SemVer || (other = new SemVer(other, this.loose)), this.prerelease.length && !other.prerelease.length) return -1; - if (!this.prerelease.length && other.prerelease.length) return 1; - if (!this.prerelease.length && !other.prerelease.length) return 0; - var i = 0; - - do { - var a = this.prerelease[i], - b = other.prerelease[i]; - if (debug("prerelease compare", i, a, b), void 0 === a && void 0 === b) return 0; - if (void 0 === b) return 1; - if (void 0 === a) return -1; - if (a !== b) return compareIdentifiers(a, b); - } while (++i); - }, SemVer.prototype.inc = function (release, identifier) { - switch (release) { - case "premajor": - this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", identifier); - break; - - case "preminor": - this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", identifier); - break; - - case "prepatch": - this.prerelease.length = 0, this.inc("patch", identifier), this.inc("pre", identifier); - break; - - case "prerelease": - 0 === this.prerelease.length && this.inc("patch", identifier), this.inc("pre", identifier); - break; - - case "major": - 0 === this.minor && 0 === this.patch && 0 !== this.prerelease.length || this.major++, this.minor = 0, this.patch = 0, this.prerelease = []; - break; - - case "minor": - 0 === this.patch && 0 !== this.prerelease.length || this.minor++, this.patch = 0, this.prerelease = []; - break; - - case "patch": - 0 === this.prerelease.length && this.patch++, this.prerelease = []; - break; - - case "pre": - if (0 === this.prerelease.length) this.prerelease = [0];else { - for (var i = this.prerelease.length; --i >= 0;) { - "number" == typeof this.prerelease[i] && (this.prerelease[i]++, i = -2); - } - - i === -1 && this.prerelease.push(0); - } - identifier && (this.prerelease[0] === identifier ? isNaN(this.prerelease[1]) && (this.prerelease = [identifier, 0]) : this.prerelease = [identifier, 0]); - break; - - default: - throw new Error("invalid increment argument: " + release); - } - - return this.format(), this.raw = this.version, this; - }, exports.inc = inc, exports.diff = diff, exports.compareIdentifiers = compareIdentifiers; - var numeric = /^[0-9]+$/; - exports.rcompareIdentifiers = rcompareIdentifiers, exports.major = major, exports.minor = minor, exports.patch = patch, exports.compare = compare, exports.compareLoose = compareLoose, exports.rcompare = rcompare, exports.sort = sort, exports.rsort = rsort, exports.gt = gt, exports.lt = lt, exports.eq = eq, exports.neq = neq, exports.gte = gte, exports.lte = lte, exports.cmp = cmp, exports.Comparator = Comparator; - var ANY = {}; - Comparator.prototype.parse = function (comp) { - var r = this.loose ? re[COMPARATORLOOSE] : re[COMPARATOR], - m = comp.match(r); - if (!m) throw new TypeError("Invalid comparator: " + comp); - this.operator = m[1], "=" === this.operator && (this.operator = ""), m[2] ? this.semver = new SemVer(m[2], this.loose) : this.semver = ANY; - }, Comparator.prototype.toString = function () { - return this.value; - }, Comparator.prototype.test = function (version) { - return debug("Comparator.test", version, this.loose), this.semver === ANY || ("string" == typeof version && (version = new SemVer(version, this.loose)), cmp(version, this.operator, this.semver, this.loose)); - }, Comparator.prototype.intersects = function (comp, loose) { - if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required"); - var rangeTmp; - if ("" === this.operator) return rangeTmp = new Range(comp.value, loose), satisfies(this.value, rangeTmp, loose); - if ("" === comp.operator) return rangeTmp = new Range(this.value, loose), satisfies(comp.semver, rangeTmp, loose); - var sameDirectionIncreasing = !(">=" !== this.operator && ">" !== this.operator || ">=" !== comp.operator && ">" !== comp.operator), - sameDirectionDecreasing = !("<=" !== this.operator && "<" !== this.operator || "<=" !== comp.operator && "<" !== comp.operator), - sameSemVer = this.semver.version === comp.semver.version, - differentDirectionsInclusive = !(">=" !== this.operator && "<=" !== this.operator || ">=" !== comp.operator && "<=" !== comp.operator), - oppositeDirectionsLessThan = cmp(this.semver, "<", comp.semver, loose) && (">=" === this.operator || ">" === this.operator) && ("<=" === comp.operator || "<" === comp.operator), - oppositeDirectionsGreaterThan = cmp(this.semver, ">", comp.semver, loose) && ("<=" === this.operator || "<" === this.operator) && (">=" === comp.operator || ">" === comp.operator); - return sameDirectionIncreasing || sameDirectionDecreasing || sameSemVer && differentDirectionsInclusive || oppositeDirectionsLessThan || oppositeDirectionsGreaterThan; - }, exports.Range = Range, Range.prototype.format = function () { - return this.range = this.set.map(function (comps) { - return comps.join(" ").trim(); - }).join("||").trim(), this.range; - }, Range.prototype.toString = function () { - return this.range; - }, Range.prototype.parseRange = function (range) { - var loose = this.loose; - range = range.trim(), debug("range", range, loose); - var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE]; - range = range.replace(hr, hyphenReplace), debug("hyphen replace", range), range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace), debug("comparator trim", range, re[COMPARATORTRIM]), range = range.replace(re[TILDETRIM], tildeTrimReplace), range = range.replace(re[CARETTRIM], caretTrimReplace), range = range.split(/\s+/).join(" "); - var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR], - set = range.split(" ").map(function (comp) { - return parseComparator(comp, loose); - }).join(" ").split(/\s+/); - return this.loose && (set = set.filter(function (comp) { - return !!comp.match(compRe); - })), set = set.map(function (comp) { - return new Comparator(comp, loose); - }); - }, Range.prototype.intersects = function (range, loose) { - if (!(range instanceof Range)) throw new TypeError("a Range is required"); - return this.set.some(function (thisComparators) { - return thisComparators.every(function (thisComparator) { - return range.set.some(function (rangeComparators) { - return rangeComparators.every(function (rangeComparator) { - return thisComparator.intersects(rangeComparator, loose); - }); - }); - }); - }); - }, exports.toComparators = toComparators, Range.prototype.test = function (version) { - if (!version) return !1; - "string" == typeof version && (version = new SemVer(version, this.loose)); - - for (var i = 0; i < this.set.length; i++) { - if (testSet(this.set[i], version)) return !0; - } - - return !1; - }, exports.satisfies = satisfies, exports.maxSatisfying = maxSatisfying, exports.minSatisfying = minSatisfying, exports.validRange = validRange, exports.ltr = ltr, exports.gtr = gtr, exports.outside = outside, exports.prerelease = prerelease, exports.intersects = intersects, exports.coerce = coerce; - }).call(exports, __webpack_require__(46)); - }, function (module, exports) { - function defaultSetTimout() { - throw new Error("setTimeout has not been defined"); - } - - function defaultClearTimeout() { - throw new Error("clearTimeout has not been defined"); - } - - function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) return setTimeout(fun, 0); - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) return cachedSetTimeout = setTimeout, setTimeout(fun, 0); - - try { - return cachedSetTimeout(fun, 0); - } catch (e) { - try { - return cachedSetTimeout.call(null, fun, 0); - } catch (e) { - return cachedSetTimeout.call(this, fun, 0); - } - } - } - - function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) return clearTimeout(marker); - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) return cachedClearTimeout = clearTimeout, clearTimeout(marker); - - try { - return cachedClearTimeout(marker); - } catch (e) { - try { - return cachedClearTimeout.call(null, marker); - } catch (e) { - return cachedClearTimeout.call(this, marker); - } - } - } - - function cleanUpNextTick() { - draining && currentQueue && (draining = !1, currentQueue.length ? queue = currentQueue.concat(queue) : queueIndex = -1, queue.length && drainQueue()); - } - - function drainQueue() { - if (!draining) { - var timeout = runTimeout(cleanUpNextTick); - draining = !0; - - for (var len = queue.length; len;) { - for (currentQueue = queue, queue = []; ++queueIndex < len;) { - currentQueue && currentQueue[queueIndex].run(); - } - - queueIndex = -1, len = queue.length; - } - - currentQueue = null, draining = !1, runClearTimeout(timeout); - } - } - - function Item(fun, array) { - this.fun = fun, this.array = array; - } - - function noop() {} - - var cachedSetTimeout, - cachedClearTimeout, - process = module.exports = {}; - !function () { - try { - cachedSetTimeout = "function" == typeof setTimeout ? setTimeout : defaultSetTimout; - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - - try { - cachedClearTimeout = "function" == typeof clearTimeout ? clearTimeout : defaultClearTimeout; - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } - }(); - var currentQueue, - queue = [], - draining = !1, - queueIndex = -1; - process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - queue.push(new Item(fun, args)), 1 !== queue.length || draining || runTimeout(drainQueue); - }, Item.prototype.run = function () { - this.fun.apply(null, this.array); - }, process.title = "browser", process.browser = !0, process.env = {}, process.argv = [], process.version = "", process.versions = {}, process.on = noop, process.addListener = noop, process.once = noop, process.off = noop, process.removeListener = noop, process.removeAllListeners = noop, process.emit = noop, process.binding = function (name) { - throw new Error("process.binding is not supported"); - }, process.cwd = function () { - return "/"; - }, process.chdir = function (dir) { - throw new Error("process.chdir is not supported"); - }, process.umask = function () { - return 0; - }; - }, function (module, exports, __webpack_require__) { - (function (global) { - "use strict"; - /*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ - - function compare(a, b) { - if (a === b) return 0; - - for (var x = a.length, y = b.length, i = 0, len = Math.min(x, y); i < len; ++i) { - if (a[i] !== b[i]) { - x = a[i], y = b[i]; - break; - } - } - - return x < y ? -1 : y < x ? 1 : 0; - } - - function isBuffer(b) { - return global.Buffer && "function" == typeof global.Buffer.isBuffer ? global.Buffer.isBuffer(b) : !(null == b || !b._isBuffer); - } - - function pToString(obj) { - return Object.prototype.toString.call(obj); - } - - function isView(arrbuf) { - return !isBuffer(arrbuf) && "function" == typeof global.ArrayBuffer && ("function" == typeof ArrayBuffer.isView ? ArrayBuffer.isView(arrbuf) : !!arrbuf && (arrbuf instanceof DataView || !!(arrbuf.buffer && arrbuf.buffer instanceof ArrayBuffer))); - } - - function getName(func) { - if (util.isFunction(func)) { - if (functionsHaveNames) return func.name; - var str = func.toString(), - match = str.match(regex); - return match && match[1]; - } - } - - function truncate(s, n) { - return "string" == typeof s ? s.length < n ? s : s.slice(0, n) : s; - } - - function inspect(something) { - if (functionsHaveNames || !util.isFunction(something)) return util.inspect(something); - var rawname = getName(something), - name = rawname ? ": " + rawname : ""; - return "[Function" + name + "]"; - } - - function getMessage(self) { - return truncate(inspect(self.actual), 128) + " " + self.operator + " " + truncate(inspect(self.expected), 128); - } - - function fail(actual, expected, message, operator, stackStartFunction) { - throw new assert.AssertionError({ - message: message, - actual: actual, - expected: expected, - operator: operator, - stackStartFunction: stackStartFunction - }); - } - - function ok(value, message) { - value || fail(value, !0, message, "==", assert.ok); - } - - function _deepEqual(actual, expected, strict, memos) { - if (actual === expected) return !0; - if (isBuffer(actual) && isBuffer(expected)) return 0 === compare(actual, expected); - if (util.isDate(actual) && util.isDate(expected)) return actual.getTime() === expected.getTime(); - if (util.isRegExp(actual) && util.isRegExp(expected)) return actual.source === expected.source && actual.global === expected.global && actual.multiline === expected.multiline && actual.lastIndex === expected.lastIndex && actual.ignoreCase === expected.ignoreCase; - - if (null !== actual && "object" == typeof actual || null !== expected && "object" == typeof expected) { - if (isView(actual) && isView(expected) && pToString(actual) === pToString(expected) && !(actual instanceof Float32Array || actual instanceof Float64Array)) return 0 === compare(new Uint8Array(actual.buffer), new Uint8Array(expected.buffer)); - if (isBuffer(actual) !== isBuffer(expected)) return !1; - memos = memos || { - actual: [], - expected: [] - }; - var actualIndex = memos.actual.indexOf(actual); - return actualIndex !== -1 && actualIndex === memos.expected.indexOf(expected) || (memos.actual.push(actual), memos.expected.push(expected), objEquiv(actual, expected, strict, memos)); - } - - return strict ? actual === expected : actual == expected; - } - - function isArguments(object) { - return "[object Arguments]" == Object.prototype.toString.call(object); - } - - function objEquiv(a, b, strict, actualVisitedObjects) { - if (null === a || void 0 === a || null === b || void 0 === b) return !1; - if (util.isPrimitive(a) || util.isPrimitive(b)) return a === b; - if (strict && Object.getPrototypeOf(a) !== Object.getPrototypeOf(b)) return !1; - var aIsArgs = isArguments(a), - bIsArgs = isArguments(b); - if (aIsArgs && !bIsArgs || !aIsArgs && bIsArgs) return !1; - if (aIsArgs) return a = pSlice.call(a), b = pSlice.call(b), _deepEqual(a, b, strict); - var key, - i, - ka = objectKeys(a), - kb = objectKeys(b); - if (ka.length !== kb.length) return !1; - - for (ka.sort(), kb.sort(), i = ka.length - 1; i >= 0; i--) { - if (ka[i] !== kb[i]) return !1; - } - - for (i = ka.length - 1; i >= 0; i--) { - if (key = ka[i], !_deepEqual(a[key], b[key], strict, actualVisitedObjects)) return !1; - } - - return !0; - } - - function notDeepStrictEqual(actual, expected, message) { - _deepEqual(actual, expected, !0) && fail(actual, expected, message, "notDeepStrictEqual", notDeepStrictEqual); - } - - function expectedException(actual, expected) { - if (!actual || !expected) return !1; - if ("[object RegExp]" == Object.prototype.toString.call(expected)) return expected.test(actual); - - try { - if (actual instanceof expected) return !0; - } catch (e) {} - - return !Error.isPrototypeOf(expected) && expected.call({}, actual) === !0; - } - - function _tryBlock(block) { - var error; - - try { - block(); - } catch (e) { - error = e; - } - - return error; - } - - function _throws(shouldThrow, block, expected, message) { - var actual; - if ("function" != typeof block) throw new TypeError('"block" argument must be a function'); - "string" == typeof expected && (message = expected, expected = null), actual = _tryBlock(block), message = (expected && expected.name ? " (" + expected.name + ")." : ".") + (message ? " " + message : "."), shouldThrow && !actual && fail(actual, expected, "Missing expected exception" + message); - var userProvidedMessage = "string" == typeof message, - isUnwantedException = !shouldThrow && util.isError(actual), - isUnexpectedException = !shouldThrow && actual && !expected; - if ((isUnwantedException && userProvidedMessage && expectedException(actual, expected) || isUnexpectedException) && fail(actual, expected, "Got unwanted exception" + message), shouldThrow && actual && expected && !expectedException(actual, expected) || !shouldThrow && actual) throw actual; - } - - var util = __webpack_require__(48), - hasOwn = Object.prototype.hasOwnProperty, - pSlice = Array.prototype.slice, - functionsHaveNames = function () { - return "foo" === function () {}.name; - }(), - assert = module.exports = ok, - regex = /\s*function\s+([^\(\s]*)\s*/; - - assert.AssertionError = function (options) { - this.name = "AssertionError", this.actual = options.actual, this.expected = options.expected, this.operator = options.operator, options.message ? (this.message = options.message, this.generatedMessage = !1) : (this.message = getMessage(this), this.generatedMessage = !0); - var stackStartFunction = options.stackStartFunction || fail; - if (Error.captureStackTrace) Error.captureStackTrace(this, stackStartFunction);else { - var err = new Error(); - - if (err.stack) { - var out = err.stack, - fn_name = getName(stackStartFunction), - idx = out.indexOf("\n" + fn_name); - - if (idx >= 0) { - var next_line = out.indexOf("\n", idx + 1); - out = out.substring(next_line + 1); - } - - this.stack = out; - } - } - }, util.inherits(assert.AssertionError, Error), assert.fail = fail, assert.ok = ok, assert.equal = function (actual, expected, message) { - actual != expected && fail(actual, expected, message, "==", assert.equal); - }, assert.notEqual = function (actual, expected, message) { - actual == expected && fail(actual, expected, message, "!=", assert.notEqual); - }, assert.deepEqual = function (actual, expected, message) { - _deepEqual(actual, expected, !1) || fail(actual, expected, message, "deepEqual", assert.deepEqual); - }, assert.deepStrictEqual = function (actual, expected, message) { - _deepEqual(actual, expected, !0) || fail(actual, expected, message, "deepStrictEqual", assert.deepStrictEqual); - }, assert.notDeepEqual = function (actual, expected, message) { - _deepEqual(actual, expected, !1) && fail(actual, expected, message, "notDeepEqual", assert.notDeepEqual); - }, assert.notDeepStrictEqual = notDeepStrictEqual, assert.strictEqual = function (actual, expected, message) { - actual !== expected && fail(actual, expected, message, "===", assert.strictEqual); - }, assert.notStrictEqual = function (actual, expected, message) { - actual === expected && fail(actual, expected, message, "!==", assert.notStrictEqual); - }, assert["throws"] = function (block, error, message) { - _throws(!0, block, error, message); - }, assert.doesNotThrow = function (block, error, message) { - _throws(!1, block, error, message); - }, assert.ifError = function (err) { - if (err) throw err; - }; - - var objectKeys = Object.keys || function (obj) { - var keys = []; - - for (var key in obj) { - hasOwn.call(obj, key) && keys.push(key); - } - - return keys; - }; - }).call(exports, function () { - return this; - }()); - }, function (module, exports, __webpack_require__) { - (function (global, process) { - function inspect(obj, opts) { - var ctx = { - seen: [], - stylize: stylizeNoColor - }; - return arguments.length >= 3 && (ctx.depth = arguments[2]), arguments.length >= 4 && (ctx.colors = arguments[3]), isBoolean(opts) ? ctx.showHidden = opts : opts && exports._extend(ctx, opts), isUndefined(ctx.showHidden) && (ctx.showHidden = !1), isUndefined(ctx.depth) && (ctx.depth = 2), isUndefined(ctx.colors) && (ctx.colors = !1), isUndefined(ctx.customInspect) && (ctx.customInspect = !0), ctx.colors && (ctx.stylize = stylizeWithColor), formatValue(ctx, obj, ctx.depth); - } - - function stylizeWithColor(str, styleType) { - var style = inspect.styles[styleType]; - return style ? "[" + inspect.colors[style][0] + "m" + str + "[" + inspect.colors[style][1] + "m" : str; - } - - function stylizeNoColor(str, styleType) { - return str; - } - - function arrayToHash(array) { - var hash = {}; - return array.forEach(function (val, idx) { - hash[val] = !0; - }), hash; - } - - function formatValue(ctx, value, recurseTimes) { - if (ctx.customInspect && value && isFunction(value.inspect) && value.inspect !== exports.inspect && (!value.constructor || value.constructor.prototype !== value)) { - var ret = value.inspect(recurseTimes, ctx); - return isString(ret) || (ret = formatValue(ctx, ret, recurseTimes)), ret; - } - - var primitive = formatPrimitive(ctx, value); - if (primitive) return primitive; - var keys = Object.keys(value), - visibleKeys = arrayToHash(keys); - if (ctx.showHidden && (keys = Object.getOwnPropertyNames(value)), isError(value) && (keys.indexOf("message") >= 0 || keys.indexOf("description") >= 0)) return formatError(value); - - if (0 === keys.length) { - if (isFunction(value)) { - var name = value.name ? ": " + value.name : ""; - return ctx.stylize("[Function" + name + "]", "special"); - } - - if (isRegExp(value)) return ctx.stylize(RegExp.prototype.toString.call(value), "regexp"); - if (isDate(value)) return ctx.stylize(Date.prototype.toString.call(value), "date"); - if (isError(value)) return formatError(value); - } - - var base = "", - array = !1, - braces = ["{", "}"]; - - if (isArray(value) && (array = !0, braces = ["[", "]"]), isFunction(value)) { - var n = value.name ? ": " + value.name : ""; - base = " [Function" + n + "]"; - } - - if (isRegExp(value) && (base = " " + RegExp.prototype.toString.call(value)), isDate(value) && (base = " " + Date.prototype.toUTCString.call(value)), isError(value) && (base = " " + formatError(value)), 0 === keys.length && (!array || 0 == value.length)) return braces[0] + base + braces[1]; - if (recurseTimes < 0) return isRegExp(value) ? ctx.stylize(RegExp.prototype.toString.call(value), "regexp") : ctx.stylize("[Object]", "special"); - ctx.seen.push(value); - var output; - return output = array ? formatArray(ctx, value, recurseTimes, visibleKeys, keys) : keys.map(function (key) { - return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array); - }), ctx.seen.pop(), reduceToSingleString(output, base, braces); - } - - function formatPrimitive(ctx, value) { - if (isUndefined(value)) return ctx.stylize("undefined", "undefined"); - - if (isString(value)) { - var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'"; - return ctx.stylize(simple, "string"); - } - - return isNumber(value) ? ctx.stylize("" + value, "number") : isBoolean(value) ? ctx.stylize("" + value, "boolean") : isNull(value) ? ctx.stylize("null", "null") : void 0; - } - - function formatError(value) { - return "[" + Error.prototype.toString.call(value) + "]"; - } - - function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { - for (var output = [], i = 0, l = value.length; i < l; ++i) { - hasOwnProperty(value, String(i)) ? output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), !0)) : output.push(""); - } - - return keys.forEach(function (key) { - key.match(/^\d+$/) || output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, !0)); - }), output; - } - - function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { - var name, str, desc; - - if (desc = Object.getOwnPropertyDescriptor(value, key) || { - value: value[key] - }, desc.get ? str = desc.set ? ctx.stylize("[Getter/Setter]", "special") : ctx.stylize("[Getter]", "special") : desc.set && (str = ctx.stylize("[Setter]", "special")), hasOwnProperty(visibleKeys, key) || (name = "[" + key + "]"), str || (ctx.seen.indexOf(desc.value) < 0 ? (str = isNull(recurseTimes) ? formatValue(ctx, desc.value, null) : formatValue(ctx, desc.value, recurseTimes - 1), str.indexOf("\n") > -1 && (str = array ? str.split("\n").map(function (line) { - return " " + line; - }).join("\n").substr(2) : "\n" + str.split("\n").map(function (line) { - return " " + line; - }).join("\n"))) : str = ctx.stylize("[Circular]", "special")), isUndefined(name)) { - if (array && key.match(/^\d+$/)) return str; - name = JSON.stringify("" + key), name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (name = name.substr(1, name.length - 2), name = ctx.stylize(name, "name")) : (name = name.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), name = ctx.stylize(name, "string")); - } - - return name + ": " + str; - } - - function reduceToSingleString(output, base, braces) { - var numLinesEst = 0, - length = output.reduce(function (prev, cur) { - return numLinesEst++, cur.indexOf("\n") >= 0 && numLinesEst++, prev + cur.replace(/\u001b\[\d\d?m/g, "").length + 1; - }, 0); - return length > 60 ? braces[0] + ("" === base ? "" : base + "\n ") + " " + output.join(",\n ") + " " + braces[1] : braces[0] + base + " " + output.join(", ") + " " + braces[1]; - } - - function isArray(ar) { - return Array.isArray(ar); - } - - function isBoolean(arg) { - return "boolean" == typeof arg; - } - - function isNull(arg) { - return null === arg; - } - - function isNullOrUndefined(arg) { - return null == arg; - } - - function isNumber(arg) { - return "number" == typeof arg; - } - - function isString(arg) { - return "string" == typeof arg; - } - - function isSymbol(arg) { - return "symbol" == typeof arg; - } - - function isUndefined(arg) { - return void 0 === arg; - } - - function isRegExp(re) { - return isObject(re) && "[object RegExp]" === objectToString(re); - } - - function isObject(arg) { - return "object" == typeof arg && null !== arg; - } - - function isDate(d) { - return isObject(d) && "[object Date]" === objectToString(d); - } - - function isError(e) { - return isObject(e) && ("[object Error]" === objectToString(e) || e instanceof Error); - } - - function isFunction(arg) { - return "function" == typeof arg; - } - - function isPrimitive(arg) { - return null === arg || "boolean" == typeof arg || "number" == typeof arg || "string" == typeof arg || "symbol" == typeof arg || "undefined" == typeof arg; - } - - function objectToString(o) { - return Object.prototype.toString.call(o); - } - - function pad(n) { - return n < 10 ? "0" + n.toString(10) : n.toString(10); - } - - function timestamp() { - var d = new Date(), - time = [pad(d.getHours()), pad(d.getMinutes()), pad(d.getSeconds())].join(":"); - return [d.getDate(), months[d.getMonth()], time].join(" "); - } - - function hasOwnProperty(obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); - } - - var formatRegExp = /%[sdj%]/g; - exports.format = function (f) { - if (!isString(f)) { - for (var objects = [], i = 0; i < arguments.length; i++) { - objects.push(inspect(arguments[i])); - } - - return objects.join(" "); - } - - for (var i = 1, args = arguments, len = args.length, str = String(f).replace(formatRegExp, function (x) { - if ("%%" === x) return "%"; - if (i >= len) return x; - - switch (x) { - case "%s": - return String(args[i++]); - - case "%d": - return Number(args[i++]); - - case "%j": - try { - return JSON.stringify(args[i++]); - } catch (_) { - return "[Circular]"; - } - - default: - return x; - } - }), x = args[i]; i < len; x = args[++i]) { - str += isNull(x) || !isObject(x) ? " " + x : " " + inspect(x); - } - - return str; - }, exports.deprecate = function (fn, msg) { - function deprecated() { - if (!warned) { - if (process.throwDeprecation) throw new Error(msg); - process.traceDeprecation ? console.trace(msg) : console.error(msg), warned = !0; - } - - return fn.apply(this, arguments); - } - - if (isUndefined(global.process)) return function () { - return exports.deprecate(fn, msg).apply(this, arguments); - }; - if (process.noDeprecation === !0) return fn; - var warned = !1; - return deprecated; - }; - var debugEnviron, - debugs = {}; - exports.debuglog = function (set) { - if (isUndefined(debugEnviron) && (debugEnviron = process.env.NODE_DEBUG || ""), set = set.toUpperCase(), !debugs[set]) if (new RegExp("\\b" + set + "\\b", "i").test(debugEnviron)) { - var pid = process.pid; - - debugs[set] = function () { - var msg = exports.format.apply(exports, arguments); - console.error("%s %d: %s", set, pid, msg); - }; - } else debugs[set] = function () {}; - return debugs[set]; - }, exports.inspect = inspect, inspect.colors = { - bold: [1, 22], - italic: [3, 23], - underline: [4, 24], - inverse: [7, 27], - white: [37, 39], - grey: [90, 39], - black: [30, 39], - blue: [34, 39], - cyan: [36, 39], - green: [32, 39], - magenta: [35, 39], - red: [31, 39], - yellow: [33, 39] - }, inspect.styles = { - special: "cyan", - number: "yellow", - "boolean": "yellow", - undefined: "grey", - "null": "bold", - string: "green", - date: "magenta", - regexp: "red" - }, exports.isArray = isArray, exports.isBoolean = isBoolean, exports.isNull = isNull, exports.isNullOrUndefined = isNullOrUndefined, exports.isNumber = isNumber, exports.isString = isString, exports.isSymbol = isSymbol, exports.isUndefined = isUndefined, exports.isRegExp = isRegExp, exports.isObject = isObject, exports.isDate = isDate, exports.isError = isError, exports.isFunction = isFunction, exports.isPrimitive = isPrimitive, exports.isBuffer = __webpack_require__(49); - var months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; - exports.log = function () { - console.log("%s - %s", timestamp(), exports.format.apply(exports, arguments)); - }, exports.inherits = __webpack_require__(50), exports._extend = function (origin, add) { - if (!add || !isObject(add)) return origin; - - for (var keys = Object.keys(add), i = keys.length; i--;) { - origin[keys[i]] = add[keys[i]]; - } - - return origin; - }; - }).call(exports, function () { - return this; - }(), __webpack_require__(46)); - }, function (module, exports) { - module.exports = function (arg) { - return arg && "object" == typeof arg && "function" == typeof arg.copy && "function" == typeof arg.fill && "function" == typeof arg.readUInt8; - }; - }, function (module, exports) { - "function" == typeof Object.create ? module.exports = function (ctor, superCtor) { - ctor.super_ = superCtor, ctor.prototype = Object.create(superCtor.prototype, { - constructor: { - value: ctor, - enumerable: !1, - writable: !0, - configurable: !0 - } - }); - } : module.exports = function (ctor, superCtor) { - ctor.super_ = superCtor; - - var TempCtor = function TempCtor() {}; - - TempCtor.prototype = superCtor.prototype, ctor.prototype = new TempCtor(), ctor.prototype.constructor = ctor; - }; - }, function (module, exports, __webpack_require__) { - "use strict"; - - function _defineProperty(obj, key, value) { - return key in obj ? Object.defineProperty(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }) : obj[key] = value, obj; - } - - function measureStyle(agent, bridge, resolveRNStyle, id) { - var node = agent.elementData.get(id); - if (!node || !node.props) return void bridge.send("rn-style:measure", {}); - var style = resolveRNStyle(node.props.style); - styleOverridesByHostComponentId[id] && (style = _extends2({}, style, styleOverridesByHostComponentId[id])); - var instance = node.publicInstance; - return instance && instance.measure ? void instance.measure(function (x, y, width, height, left, top) { - if ("number" != typeof x) return void bridge.send("rn-style:measure", { - style: style - }); - var margin = style && resolveBoxStyle("margin", style) || blank, - padding = style && resolveBoxStyle("padding", style) || blank; - bridge.send("rn-style:measure", { - style: style, - measuredLayout: { - x: x, - y: y, - width: width, - height: height, - left: left, - top: top, - margin: margin, - padding: padding - } - }); - }) : void bridge.send("rn-style:measure", { - style: style - }); - } - - function shallowClone(obj) { - var nobj = {}; - - for (var n in obj) { - nobj[n] = obj[n]; - } - - return nobj; - } - - function renameStyle(agent, id, oldName, newName, val) { - var _ref3, - data = agent.elementData.get(id), - newStyle = newName ? (_ref3 = {}, _defineProperty(_ref3, oldName, void 0), _defineProperty(_ref3, newName, val), _ref3) : _defineProperty({}, oldName, void 0); - - if (data && data.updater && "function" == typeof data.updater.setInProps) { - var customStyle, - style = data && data.props && data.props.style; - - if (Array.isArray(style)) { - var lastLength = style.length - 1; - "object" !== _typeof(style[lastLength]) || Array.isArray(style[lastLength]) ? (style = style.concat([newStyle]), data.updater.setInProps(["style"], style)) : (customStyle = shallowClone(style[lastLength]), delete customStyle[oldName], newName ? customStyle[newName] = val : customStyle[oldName] = void 0, data.updater.setInProps(["style", lastLength], customStyle)); - } else "object" === ("undefined" == typeof style ? "undefined" : _typeof(style)) ? (customStyle = shallowClone(style), delete customStyle[oldName], newName ? customStyle[newName] = val : customStyle[oldName] = void 0, data.updater.setInProps(["style"], customStyle)) : (style = [style, newStyle], data.updater.setInProps(["style"], style)); - } else { - if (!data || !data.updater || "function" != typeof data.updater.setNativeProps) return; - styleOverridesByHostComponentId[id] ? _extends2(styleOverridesByHostComponentId[id], newStyle) : styleOverridesByHostComponentId[id] = newStyle, data.updater.setNativeProps({ - style: newStyle - }); - } - - agent.emit("hideHighlight"); - } - - function setStyle(agent, id, attr, val) { - var data = agent.elementData.get(id), - newStyle = _defineProperty({}, attr, val); - - if (data && data.updater && "function" == typeof data.updater.setInProps) { - var style = data.props && data.props.style; - - if (Array.isArray(style)) { - var lastLength = style.length - 1; - "object" !== _typeof(style[lastLength]) || Array.isArray(style[lastLength]) ? (style = style.concat([newStyle]), data.updater.setInProps(["style"], style)) : data.updater.setInProps(["style", lastLength, attr], val); - } else style = [style, newStyle], data.updater.setInProps(["style"], style); - } else { - if (!data || !data.updater || "function" != typeof data.updater.setNativeProps) return; - styleOverridesByHostComponentId[id] ? _extends2(styleOverridesByHostComponentId[id], newStyle) : styleOverridesByHostComponentId[id] = newStyle, data.updater.setNativeProps({ - style: newStyle - }); - } - - agent.emit("hideHighlight"); - } - - var _typeof = "function" == typeof Symbol && "symbol" == typeof (typeof Symbol === "function" ? Symbol.iterator : "@@iterator") ? function (obj) { - return typeof obj; - } : function (obj) { - return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof obj; - }, - resolveBoxStyle = __webpack_require__(52), - styleOverridesByHostComponentId = {}; - - module.exports = function (bridge, agent, resolveRNStyle) { - bridge.onCall("rn-style:get", function (id) { - var node = agent.elementData.get(id); - return node && node.props ? resolveRNStyle(node.props.style) : null; - }), bridge.on("rn-style:measure", function (id) { - measureStyle(agent, bridge, resolveRNStyle, id); - }), bridge.on("rn-style:rename", function (_ref) { - var id = _ref.id, - oldName = _ref.oldName, - newName = _ref.newName, - val = _ref.val; - renameStyle(agent, id, oldName, newName, val), setTimeout(function () { - return measureStyle(agent, bridge, resolveRNStyle, id); - }); - }), bridge.on("rn-style:set", function (_ref2) { - var id = _ref2.id, - attr = _ref2.attr, - val = _ref2.val; - setStyle(agent, id, attr, val), setTimeout(function () { - return measureStyle(agent, bridge, resolveRNStyle, id); - }); - }); - }; - - var blank = { - top: 0, - left: 0, - right: 0, - bottom: 0 - }; - }, function (module, exports) { - "use strict"; - - function resolveBoxStyle(prefix, style) { - var res = {}, - subs = ["top", "left", "bottom", "right"], - set = !1; - return subs.forEach(function (sub) { - res[sub] = style[prefix] || 0; - }), style[prefix] && (set = !0), style[prefix + "Vertical"] && (res.top = res.bottom = style[prefix + "Vertical"], set = !0), style[prefix + "Horizontal"] && (res.left = res.right = style[prefix + "Horizontal"], set = !0), subs.forEach(function (sub) { - var val = style[prefix + capFirst(sub)]; - val && (res[sub] = val, set = !0); - }), set ? res : null; - } - - function capFirst(text) { - return text[0].toUpperCase() + text.slice(1); - } - - module.exports = resolveBoxStyle; - }, function (module, exports) { - "use strict"; - - var emptyFunction = function emptyFunction() {}; - - module.exports = function (bridge, agent, hook) { - var checkIfProfilingIsSupported = function checkIfProfilingIsSupported() { - var profilingIsSupported = !1; - agent.roots.forEach(function (rootId) { - var root = agent.internalInstancesById.get(rootId); - root.hasOwnProperty("treeBaseDuration") && (profilingIsSupported = !0); - }), bridge.call("profiler:update", [profilingIsSupported], emptyFunction); - }; - - agent.on("root", checkIfProfilingIsSupported), agent.on("rootUnmounted", checkIfProfilingIsSupported), checkIfProfilingIsSupported(); - }; - }, function (module, exports) { - "use strict"; - - function decorate(obj, attr, fn) { - var old = obj[attr]; - return obj[attr] = function () { - var res = old.apply(this, arguments); - return fn.apply(this, arguments), res; - }, function () { - obj[attr] = old; - }; - } - - var subscriptionEnabled = !1; - - module.exports = function (bridge, agent, hook) { - function sendStoreData() { - subscriptionEnabled && bridge.send("relay:store", { - id: "relay:store", - nodes: DefaultStoreData.getNodeData() - }); - } - - var shouldEnable = !!hook._relayInternals; - - if (bridge.onCall("relay:check", function () { - return shouldEnable; - }), shouldEnable) { - var _hook$_relayInternals = hook._relayInternals, - DefaultStoreData = _hook$_relayInternals.DefaultStoreData, - setRequestListener = _hook$_relayInternals.setRequestListener; - bridge.onCall("relay:store:enable", function () { - subscriptionEnabled = !0, sendStoreData(); - }), bridge.onCall("relay:store:disable", function () { - subscriptionEnabled = !1; - }), sendStoreData(), decorate(DefaultStoreData, "handleUpdatePayload", sendStoreData), decorate(DefaultStoreData, "handleQueryPayload", sendStoreData); - var removeListener = setRequestListener(function (event, data) { - bridge.send(event, data); - }); - hook.on("shutdown", removeListener); - } - }; - }, function (module, exports, __webpack_require__) { - "use strict"; - - var Highlighter = __webpack_require__(56); - - module.exports = function (agent) { - var hl = new Highlighter(window, function (node) { - agent.selectFromDOMNode(node); - }); - agent.on("highlight", function (data) { - return hl.highlight(data.node, data.name); - }), agent.on("highlightMany", function (nodes) { - return hl.highlightMany(nodes); - }), agent.on("hideHighlight", function () { - return hl.hideHighlight(); - }), agent.on("refreshMultiOverlay", function () { - return hl.refreshMultiOverlay(); - }), agent.on("startInspecting", function () { - return hl.startInspecting(); - }), agent.on("stopInspecting", function () { - return hl.stopInspecting(); - }), agent.on("shutdown", function () { - hl.remove(); - }); - }; - }, function (module, exports, __webpack_require__) { - "use strict"; - - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); - } - - function captureSubscription(obj, evt, cb) { - return obj.addEventListener(evt, cb, !0), function () { - return obj.removeEventListener(evt, cb, !0); - }; - } - - function makeMagnifier() { - var button = window.document.createElement("button"); - return button.innerHTML = "🔍", button.style.backgroundColor = "transparent", button.style.border = "none", button.style.outline = "none", button.style.cursor = "pointer", button.style.position = "fixed", button.style.bottom = "10px", button.style.right = "10px", button.style.fontSize = "30px", button.style.zIndex = 1e7, button; - } - - var _createClass = function () { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); - } - } - - return function (Constructor, protoProps, staticProps) { - return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), Constructor; - }; - }(), - Overlay = __webpack_require__(57), - MultiOverlay = __webpack_require__(59), - Highlighter = function () { - function Highlighter(win, onSelect) { - _classCallCheck(this, Highlighter), this._win = win, this._onSelect = onSelect, this._overlay = null, this._multiOverlay = null, this._subs = []; - } - - return _createClass(Highlighter, [{ - key: "startInspecting", - value: function value() { - this._inspecting = !0, this._subs = [captureSubscription(this._win, "mouseover", this.onHover.bind(this)), captureSubscription(this._win, "mousedown", this.onMouseDown.bind(this)), captureSubscription(this._win, "click", this.onClick.bind(this))]; - } - }, { - key: "stopInspecting", - value: function value() { - this._subs.forEach(function (unsub) { - return unsub(); - }), this.hideHighlight(); - } - }, { - key: "remove", - value: function value() { - this.stopInspecting(), this._button && this._button.parentNode && this._button.parentNode.removeChild(this._button); - } - }, { - key: "highlight", - value: function value(node, name) { - this.removeMultiOverlay(), node.nodeType !== Node.COMMENT_NODE && (this._overlay || (this._overlay = new Overlay(this._win)), this._overlay.inspect(node, name)); - } - }, { - key: "highlightMany", - value: function value(nodes) { - this.removeOverlay(), this._multiOverlay || (this._multiOverlay = new MultiOverlay(this._win)), this._multiOverlay.highlightMany(nodes); - } - }, { - key: "hideHighlight", - value: function value() { - this._inspecting = !1, this.removeOverlay(), this.removeMultiOverlay(); - } - }, { - key: "refreshMultiOverlay", - value: function value() { - this._multiOverlay && this._multiOverlay.refresh(); - } - }, { - key: "removeOverlay", - value: function value() { - this._overlay && (this._overlay.remove(), this._overlay = null); - } - }, { - key: "removeMultiOverlay", - value: function value() { - this._multiOverlay && (this._multiOverlay.remove(), this._multiOverlay = null); - } - }, { - key: "onMouseDown", - value: function value(evt) { - this._inspecting && (evt.preventDefault(), evt.stopPropagation(), evt.cancelBubble = !0, this._onSelect(evt.target)); - } - }, { - key: "onClick", - value: function value(evt) { - this._inspecting && (this._subs.forEach(function (unsub) { - return unsub(); - }), evt.preventDefault(), evt.stopPropagation(), evt.cancelBubble = !0, this.hideHighlight()); - } - }, { - key: "onHover", - value: function value(evt) { - this._inspecting && (evt.preventDefault(), evt.stopPropagation(), evt.cancelBubble = !0, this.highlight(evt.target)); - } - }, { - key: "injectButton", - value: function value() { - this._button = makeMagnifier(), this._button.onclick = this.startInspecting.bind(this), this._win.document.body.appendChild(this._button); - } - }]), Highlighter; - }(); - - module.exports = Highlighter; - }, function (module, exports, __webpack_require__) { - "use strict"; - - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); - } - - function findTipPos(dims, win) { - var top, - tipHeight = 20, - margin = 5; - return top = dims.top + dims.height + tipHeight <= win.innerHeight ? dims.top + dims.height < 0 ? margin : dims.top + dims.height + margin : dims.top - tipHeight <= win.innerHeight ? dims.top - tipHeight - margin < margin ? margin : dims.top - tipHeight - margin : win.innerHeight - tipHeight - margin, top += "px", dims.left < 0 ? { - top: top, - left: margin - } : dims.left + 200 > win.innerWidth ? { - top: top, - right: margin - } : { - top: top, - left: dims.left + margin + "px" - }; - } - - function getElementDimensions(domElement) { - var calculatedStyle = window.getComputedStyle(domElement); - return { - borderLeft: +calculatedStyle.borderLeftWidth.match(/[0-9]*/)[0], - borderRight: +calculatedStyle.borderRightWidth.match(/[0-9]*/)[0], - borderTop: +calculatedStyle.borderTopWidth.match(/[0-9]*/)[0], - borderBottom: +calculatedStyle.borderBottomWidth.match(/[0-9]*/)[0], - marginLeft: +calculatedStyle.marginLeft.match(/[0-9]*/)[0], - marginRight: +calculatedStyle.marginRight.match(/[0-9]*/)[0], - marginTop: +calculatedStyle.marginTop.match(/[0-9]*/)[0], - marginBottom: +calculatedStyle.marginBottom.match(/[0-9]*/)[0], - paddingLeft: +calculatedStyle.paddingLeft.match(/[0-9]*/)[0], - paddingRight: +calculatedStyle.paddingRight.match(/[0-9]*/)[0], - paddingTop: +calculatedStyle.paddingTop.match(/[0-9]*/)[0], - paddingBottom: +calculatedStyle.paddingBottom.match(/[0-9]*/)[0] - }; - } - - function getOwnerWindow(node) { - return node.ownerDocument ? node.ownerDocument.defaultView : null; - } - - function getOwnerIframe(node) { - var nodeWindow = getOwnerWindow(node); - return nodeWindow ? nodeWindow.frameElement : null; - } - - function getBoundingClientRectWithBorderOffset(node) { - var dimensions = getElementDimensions(node); - return mergeRectOffsets([node.getBoundingClientRect(), { - top: dimensions.borderTop, - left: dimensions.borderLeft, - bottom: dimensions.borderBottom, - right: dimensions.borderRight, - width: 0, - height: 0 - }]); - } - - function mergeRectOffsets(rects) { - return rects.reduce(function (previousRect, rect) { - return null == previousRect ? rect : { - top: previousRect.top + rect.top, - left: previousRect.left + rect.left, - width: previousRect.width, - height: previousRect.height, - bottom: previousRect.bottom + rect.bottom, - right: previousRect.right + rect.right - }; - }); - } - - function getNestedBoundingClientRect(node, boundaryWindow) { - var ownerIframe = getOwnerIframe(node); - - if (ownerIframe && ownerIframe !== boundaryWindow) { - for (var rects = [node.getBoundingClientRect()], currentIframe = ownerIframe, onlyOneMore = !1; currentIframe;) { - var rect = getBoundingClientRectWithBorderOffset(currentIframe); - if (rects.push(rect), currentIframe = getOwnerIframe(currentIframe), onlyOneMore) break; - currentIframe && getOwnerWindow(currentIframe) === boundaryWindow && (onlyOneMore = !0); - } - - return mergeRectOffsets(rects); - } - - return node.getBoundingClientRect(); - } - - function boxWrap(dims, what, node) { - assign(node.style, { - borderTopWidth: dims[what + "Top"] + "px", - borderLeftWidth: dims[what + "Left"] + "px", - borderRightWidth: dims[what + "Right"] + "px", - borderBottomWidth: dims[what + "Bottom"] + "px", - borderStyle: "solid" - }); - } - - var _createClass = function () { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); - } - } - - return function (Constructor, protoProps, staticProps) { - return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), Constructor; - }; - }(), - assign = __webpack_require__(3), - _require = __webpack_require__(58), - monospace = _require.monospace, - Overlay = function () { - function Overlay(window) { - _classCallCheck(this, Overlay); - - var doc = window.document; - this.win = window, this.container = doc.createElement("div"), this.node = doc.createElement("div"), this.border = doc.createElement("div"), this.padding = doc.createElement("div"), this.content = doc.createElement("div"), this.border.style.borderColor = overlayStyles.border, this.padding.style.borderColor = overlayStyles.padding, this.content.style.backgroundColor = overlayStyles.background, assign(this.node.style, { - borderColor: overlayStyles.margin, - pointerEvents: "none", - position: "fixed" - }), this.tip = doc.createElement("div"), assign(this.tip.style, { - backgroundColor: "#333740", - borderRadius: "2px", - fontFamily: monospace.family, - fontWeight: "bold", - padding: "3px 5px", - position: "fixed", - fontSize: monospace.sizes.normal + "px" - }), this.nameSpan = doc.createElement("span"), this.tip.appendChild(this.nameSpan), assign(this.nameSpan.style, { - color: "#ee78e6", - borderRight: "1px solid #aaaaaa", - paddingRight: "0.5rem", - marginRight: "0.5rem" - }), this.dimSpan = doc.createElement("span"), this.tip.appendChild(this.dimSpan), assign(this.dimSpan.style, { - color: "#d7d7d7" - }), this.container.style.zIndex = 1e7, this.node.style.zIndex = 1e7, this.tip.style.zIndex = 1e7, this.container.appendChild(this.node), this.container.appendChild(this.tip), this.node.appendChild(this.border), this.border.appendChild(this.padding), this.padding.appendChild(this.content), doc.body.appendChild(this.container); - } - - return _createClass(Overlay, [{ - key: "remove", - value: function value() { - this.container.parentNode && this.container.parentNode.removeChild(this.container); - } - }, { - key: "inspect", - value: function value(node, name) { - if (node.nodeType === Node.ELEMENT_NODE) { - var box = getNestedBoundingClientRect(node, this.win), - dims = getElementDimensions(node); - boxWrap(dims, "margin", this.node), boxWrap(dims, "border", this.border), boxWrap(dims, "padding", this.padding), assign(this.content.style, { - height: box.height - dims.borderTop - dims.borderBottom - dims.paddingTop - dims.paddingBottom + "px", - width: box.width - dims.borderLeft - dims.borderRight - dims.paddingLeft - dims.paddingRight + "px" - }), assign(this.node.style, { - top: box.top - dims.marginTop + "px", - left: box.left - dims.marginLeft + "px" - }), this.nameSpan.textContent = name || node.nodeName.toLowerCase(), this.dimSpan.textContent = box.width + "px × " + box.height + "px"; - var tipPos = findTipPos({ - top: box.top - dims.marginTop, - left: box.left - dims.marginLeft, - height: box.height + dims.marginTop + dims.marginBottom, - width: box.width + dims.marginLeft + dims.marginRight - }, this.win); - assign(this.tip.style, tipPos); - } - } - }]), Overlay; - }(), - overlayStyles = { - background: "rgba(120, 170, 210, 0.7)", - padding: "rgba(77, 200, 0, 0.3)", - margin: "rgba(255, 155, 0, 0.3)", - border: "rgba(255, 200, 50, 0.3)" - }; - - module.exports = Overlay; - }, function (module, exports) { - "use strict"; - - module.exports = { - monospace: { - family: "Menlo, Consolas, monospace", - sizes: { - normal: 11, - large: 14 - } - }, - sansSerif: { - family: '"Helvetica Neue", "Lucida Grande", -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, sans-serif', - sizes: { - small: 10, - normal: 12, - large: 14 - } - } - }; - }, function (module, exports, __webpack_require__) { - "use strict"; - - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); - } - - var _createClass = function () { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); - } - } - - return function (Constructor, protoProps, staticProps) { - return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), Constructor; - }; - }(), - assign = __webpack_require__(3), - MultiOverlay = function () { - function MultiOverlay(window) { - _classCallCheck(this, MultiOverlay), this.win = window; - var doc = window.document; - this.container = doc.createElement("div"), doc.body.appendChild(this.container), this._currentNodes = null; - } - - return _createClass(MultiOverlay, [{ - key: "highlightMany", - value: function value(nodes) { - var _this = this; - - this._currentNodes = nodes, this.container.innerHTML = "", nodes.forEach(function (node) { - var div = _this.win.document.createElement("div"); - - if ("function" == typeof node.getBoundingClientRect) { - var box = node.getBoundingClientRect(); - box.bottom < 0 || box.top > window.innerHeight || (assign(div.style, { - top: box.top + "px", - left: box.left + "px", - width: box.width + "px", - height: box.height + "px", - border: "2px dotted rgba(200, 100, 100, .8)", - boxSizing: "border-box", - backgroundColor: "rgba(200, 100, 100, .2)", - position: "fixed", - zIndex: 1e7, - pointerEvents: "none" - }), _this.container.appendChild(div)); - } - }); - } - }, { - key: "refresh", - value: function value() { - this._currentNodes && this.highlightMany(this._currentNodes); - } - }, { - key: "remove", - value: function value() { - this.container.parentNode && (this.container.parentNode.removeChild(this.container), this._currentNodes = null); - } - }]), MultiOverlay; - }(); - - module.exports = MultiOverlay; - }]); - }); -},400,[],"node_modules/react-devtools-core/build/backend.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var JSInspector = { - registerAgent: function registerAgent(type) { - if (global.__registerInspectorAgent) { - global.__registerInspectorAgent(type); - } - }, - getTimestamp: function getTimestamp() { - return global.__inspectorTimestamp(); - } - }; - module.exports = JSInspector; -},366,[],"node_modules/react-native/Libraries/JSInspector/JSInspector.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var InspectorAgent = _$$_REQUIRE(_dependencyMap[0], 'InspectorAgent'); - - var JSInspector = _$$_REQUIRE(_dependencyMap[1], 'JSInspector'); - - var Map = _$$_REQUIRE(_dependencyMap[2], 'Map'); - - var XMLHttpRequest = _$$_REQUIRE(_dependencyMap[3], 'XMLHttpRequest'); - - var Interceptor = function () { - function Interceptor(agent) { - _classCallCheck(this, Interceptor); - - this._agent = agent; - this._requests = new Map(); - } - - _createClass(Interceptor, [{ - key: "getData", - value: function getData(requestId) { - return this._requests.get(requestId); - } - }, { - key: "requestSent", - value: function requestSent(id, url, method, headers) { - var requestId = String(id); - - this._requests.set(requestId, ''); - - var request = { - url: url, - method: method, - headers: headers, - initialPriority: 'Medium' - }; - var event = { - requestId: requestId, - documentURL: '', - frameId: '1', - loaderId: '1', - request: request, - timestamp: JSInspector.getTimestamp(), - initiator: { - type: 'other' - }, - type: 'Other' - }; - - this._agent.sendEvent('requestWillBeSent', event); - } - }, { - key: "responseReceived", - value: function responseReceived(id, url, status, headers) { - var requestId = String(id); - var response = { - url: url, - status: status, - statusText: String(status), - headers: headers, - requestHeaders: {}, - mimeType: this._getMimeType(headers), - connectionReused: false, - connectionId: -1, - encodedDataLength: 0, - securityState: 'unknown' - }; - var event = { - requestId: requestId, - frameId: '1', - loaderId: '1', - timestamp: JSInspector.getTimestamp(), - type: 'Other', - response: response - }; - - this._agent.sendEvent('responseReceived', event); - } - }, { - key: "dataReceived", - value: function dataReceived(id, data) { - var requestId = String(id); - var existingData = this._requests.get(requestId) || ''; - - this._requests.set(requestId, existingData.concat(data)); - - var event = { - requestId: requestId, - timestamp: JSInspector.getTimestamp(), - dataLength: data.length, - encodedDataLength: data.length - }; - - this._agent.sendEvent('dataReceived', event); - } - }, { - key: "loadingFinished", - value: function loadingFinished(id, encodedDataLength) { - var event = { - requestId: String(id), - timestamp: JSInspector.getTimestamp(), - encodedDataLength: encodedDataLength - }; - - this._agent.sendEvent('loadingFinished', event); - } - }, { - key: "loadingFailed", - value: function loadingFailed(id, error) { - var event = { - requestId: String(id), - timestamp: JSInspector.getTimestamp(), - type: 'Other', - errorText: error - }; - - this._agent.sendEvent('loadingFailed', event); - } - }, { - key: "_getMimeType", - value: function _getMimeType(headers) { - var contentType = headers['Content-Type'] || ''; - return contentType.split(';')[0]; - } - }]); - - return Interceptor; - }(); - - var NetworkAgent = function (_InspectorAgent) { - function NetworkAgent() { - _classCallCheck(this, NetworkAgent); - - return _possibleConstructorReturn(this, _getPrototypeOf(NetworkAgent).apply(this, arguments)); - } - - _createClass(NetworkAgent, [{ - key: "enable", - value: function enable(_ref) { - var maxResourceBufferSize = _ref.maxResourceBufferSize, - maxTotalBufferSize = _ref.maxTotalBufferSize; - this._interceptor = new Interceptor(this); - XMLHttpRequest.setInterceptor(this._interceptor); - } - }, { - key: "disable", - value: function disable() { - XMLHttpRequest.setInterceptor(null); - this._interceptor = null; - } - }, { - key: "getResponseBody", - value: function getResponseBody(_ref2) { - var requestId = _ref2.requestId; - return { - body: this.interceptor().getData(requestId), - base64Encoded: false - }; - } - }, { - key: "interceptor", - value: function interceptor() { - if (this._interceptor) { - return this._interceptor; - } else { - throw Error('_interceptor can not be null'); - } - } - }]); - - _inherits(NetworkAgent, _InspectorAgent); - - return NetworkAgent; - }(InspectorAgent); - - NetworkAgent.DOMAIN = 'Network'; - module.exports = NetworkAgent; -},367,[401,366,345,350],"node_modules/react-native/Libraries/JSInspector/NetworkAgent.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var InspectorAgent = function () { - function InspectorAgent(eventSender) { - _classCallCheck(this, InspectorAgent); - - this._eventSender = eventSender; - } - - _createClass(InspectorAgent, [{ - key: "sendEvent", - value: function sendEvent(name, params) { - this._eventSender(name, params); - } - }]); - - return InspectorAgent; - }(); - - module.exports = InspectorAgent; -},401,[],"node_modules/react-native/Libraries/JSInspector/InspectorAgent.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var BatchedBridge = _$$_REQUIRE(_dependencyMap[0], 'BatchedBridge'); - - var RCTEventEmitter = { - register: function register(eventEmitter) { - BatchedBridge.registerCallableModule('RCTEventEmitter', eventEmitter); - } - }; - module.exports = RCTEventEmitter; -},338,[102],"node_modules/react-native/Libraries/EventEmitter/RCTEventEmitter.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var emptyObject = {}; - - if (process.env.NODE_ENV !== 'production') { - Object.freeze(emptyObject); - } - - module.exports = emptyObject; -},339,[],"node_modules/react-native/node_modules/fbjs/lib/emptyObject.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var deepDiffer = function deepDiffer(one, two) { - var maxDepth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1; - - if (maxDepth === 0) { - return true; - } - - if (one === two) { - return false; - } - - if (typeof one === 'function' && typeof two === 'function') { - return false; - } - - if (typeof one !== 'object' || one === null) { - return one !== two; - } - - if (typeof two !== 'object' || two === null) { - return true; - } - - if (one.constructor !== two.constructor) { - return true; - } - - if (Array.isArray(one)) { - var len = one.length; - - if (two.length !== len) { - return true; - } - - for (var ii = 0; ii < len; ii++) { - if (deepDiffer(one[ii], two[ii], maxDepth - 1)) { - return true; - } - } - } else { - for (var key in one) { - if (deepDiffer(one[key], two[key], maxDepth - 1)) { - return true; - } - } - - for (var twoKey in two) { - if (one[twoKey] === undefined && two[twoKey] !== undefined) { - return true; - } - } - } - - return false; - }; - - module.exports = deepDiffer; -},340,[],"node_modules/react-native/Libraries/Utilities/differ/deepDiffer.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); - - var UIManager = _$$_REQUIRE(_dependencyMap[1], 'UIManager'); - - var inputs = new Set(); - var TextInputState = { - _currentlyFocusedID: null, - currentlyFocusedField: function currentlyFocusedField() { - return this._currentlyFocusedID; - }, - focusTextInput: function focusTextInput(textFieldID) { - if (this._currentlyFocusedID !== textFieldID && textFieldID !== null) { - this._currentlyFocusedID = textFieldID; - - if (Platform.OS === 'ios') { - UIManager.focus(textFieldID); - } else if (Platform.OS === 'android') { - UIManager.dispatchViewManagerCommand(textFieldID, UIManager.AndroidTextInput.Commands.focusTextInput, null); - } - } - }, - blurTextInput: function blurTextInput(textFieldID) { - if (this._currentlyFocusedID === textFieldID && textFieldID !== null) { - this._currentlyFocusedID = null; - - if (Platform.OS === 'ios') { - UIManager.blur(textFieldID); - } else if (Platform.OS === 'android') { - UIManager.dispatchViewManagerCommand(textFieldID, UIManager.AndroidTextInput.Commands.blurTextInput, null); - } - } - }, - registerInput: function registerInput(textFieldID) { - inputs.add(textFieldID); - }, - unregisterInput: function unregisterInput(textFieldID) { - inputs.delete(textFieldID); - }, - isTextInput: function isTextInput(textFieldID) { - return inputs.has(textFieldID); - } - }; - module.exports = TextInputState; -},341,[94,87],"node_modules/react-native/Libraries/Components/TextInput/TextInputState.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - "use strict"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - _$$_REQUIRE(_dependencyMap[0], "InitializeCore"); - - var invariant = _$$_REQUIRE(_dependencyMap[1], "fbjs/lib/invariant"), - ReactNativeViewConfigRegistry = _$$_REQUIRE(_dependencyMap[2], "ReactNativeViewConfigRegistry"), - UIManager = _$$_REQUIRE(_dependencyMap[3], "UIManager"), - RCTEventEmitter = _$$_REQUIRE(_dependencyMap[4], "RCTEventEmitter"), - React = _$$_REQUIRE(_dependencyMap[5], "react"), - emptyObject = _$$_REQUIRE(_dependencyMap[6], "fbjs/lib/emptyObject"), - deepDiffer = _$$_REQUIRE(_dependencyMap[7], "deepDiffer"), - flattenStyle = _$$_REQUIRE(_dependencyMap[8], "flattenStyle"), - TextInputState = _$$_REQUIRE(_dependencyMap[9], "TextInputState"), - ExceptionsManager = _$$_REQUIRE(_dependencyMap[10], "ExceptionsManager"); - - function _invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { - this._hasCaughtError = !1; - this._caughtError = null; - var funcArgs = Array.prototype.slice.call(arguments, 3); - - try { - func.apply(context, funcArgs); - } catch (error) { - this._caughtError = error, this._hasCaughtError = !0; - } - } - - var ReactErrorUtils = { - _caughtError: null, - _hasCaughtError: !1, - _rethrowError: null, - _hasRethrowError: !1, - invokeGuardedCallback: function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { - _invokeGuardedCallback.apply(ReactErrorUtils, arguments); - }, - invokeGuardedCallbackAndCatchFirstError: function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { - ReactErrorUtils.invokeGuardedCallback.apply(this, arguments); - - if (ReactErrorUtils.hasCaughtError()) { - var error = ReactErrorUtils.clearCaughtError(); - ReactErrorUtils._hasRethrowError || (ReactErrorUtils._hasRethrowError = !0, ReactErrorUtils._rethrowError = error); - } - }, - rethrowCaughtError: function rethrowCaughtError() { - return _rethrowCaughtError.apply(ReactErrorUtils, arguments); - }, - hasCaughtError: function hasCaughtError() { - return ReactErrorUtils._hasCaughtError; - }, - clearCaughtError: function clearCaughtError() { - if (ReactErrorUtils._hasCaughtError) { - var error = ReactErrorUtils._caughtError; - ReactErrorUtils._caughtError = null; - ReactErrorUtils._hasCaughtError = !1; - return error; - } - - invariant(!1, "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue."); - } - }; - - function _rethrowCaughtError() { - if (ReactErrorUtils._hasRethrowError) { - var error = ReactErrorUtils._rethrowError; - ReactErrorUtils._rethrowError = null; - ReactErrorUtils._hasRethrowError = !1; - throw error; - } - } - - var eventPluginOrder = null, - namesToPlugins = {}; - - function recomputePluginOrdering() { - if (eventPluginOrder) for (var pluginName in namesToPlugins) { - var pluginModule = namesToPlugins[pluginName], - pluginIndex = eventPluginOrder.indexOf(pluginName); - invariant(-1 < pluginIndex, "EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.", pluginName); - - if (!plugins[pluginIndex]) { - invariant(pluginModule.extractEvents, "EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.", pluginName); - plugins[pluginIndex] = pluginModule; - pluginIndex = pluginModule.eventTypes; - - for (var eventName in pluginIndex) { - var JSCompiler_inline_result = void 0; - var dispatchConfig = pluginIndex[eventName], - pluginModule$jscomp$0 = pluginModule, - eventName$jscomp$0 = eventName; - invariant(!eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0), "EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.", eventName$jscomp$0); - eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig; - var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; - - if (phasedRegistrationNames) { - for (JSCompiler_inline_result in phasedRegistrationNames) { - phasedRegistrationNames.hasOwnProperty(JSCompiler_inline_result) && publishRegistrationName(phasedRegistrationNames[JSCompiler_inline_result], pluginModule$jscomp$0, eventName$jscomp$0); - } - - JSCompiler_inline_result = !0; - } else dispatchConfig.registrationName ? (publishRegistrationName(dispatchConfig.registrationName, pluginModule$jscomp$0, eventName$jscomp$0), JSCompiler_inline_result = !0) : JSCompiler_inline_result = !1; - - invariant(JSCompiler_inline_result, "EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.", eventName, pluginName); - } - } - } - } - - function publishRegistrationName(registrationName, pluginModule) { - invariant(!registrationNameModules[registrationName], "EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.", registrationName); - registrationNameModules[registrationName] = pluginModule; - } - - var plugins = [], - eventNameDispatchConfigs = {}, - registrationNameModules = {}, - getFiberCurrentPropsFromNode = null, - getInstanceFromNode = null, - getNodeFromInstance = null; - - function executeDispatch(event, simulated, listener, inst) { - simulated = event.type || "unknown-event"; - event.currentTarget = getNodeFromInstance(inst); - ReactErrorUtils.invokeGuardedCallbackAndCatchFirstError(simulated, listener, void 0, event); - event.currentTarget = null; - } - - function executeDirectDispatch(event) { - var dispatchListener = event._dispatchListeners, - dispatchInstance = event._dispatchInstances; - invariant(!Array.isArray(dispatchListener), "executeDirectDispatch(...): Invalid `event`."); - event.currentTarget = dispatchListener ? getNodeFromInstance(dispatchInstance) : null; - dispatchListener = dispatchListener ? dispatchListener(event) : null; - event.currentTarget = null; - event._dispatchListeners = null; - event._dispatchInstances = null; - return dispatchListener; - } - - function accumulateInto(current, next) { - invariant(null != next, "accumulateInto(...): Accumulated items must not be null or undefined."); - if (null == current) return next; - - if (Array.isArray(current)) { - if (Array.isArray(next)) return current.push.apply(current, next), current; - current.push(next); - return current; - } - - return Array.isArray(next) ? [current].concat(next) : [current, next]; - } - - function forEachAccumulated(arr, cb, scope) { - Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr); - } - - var eventQueue = null; - - function executeDispatchesAndReleaseTopLevel(e) { - if (e) { - var dispatchListeners = e._dispatchListeners, - dispatchInstances = e._dispatchInstances; - if (Array.isArray(dispatchListeners)) for (var i = 0; i < dispatchListeners.length && !e.isPropagationStopped(); i++) { - executeDispatch(e, !1, dispatchListeners[i], dispatchInstances[i]); - } else dispatchListeners && executeDispatch(e, !1, dispatchListeners, dispatchInstances); - e._dispatchListeners = null; - e._dispatchInstances = null; - e.isPersistent() || e.constructor.release(e); - } - } - - var injection = { - injectEventPluginOrder: function injectEventPluginOrder(injectedEventPluginOrder) { - invariant(!eventPluginOrder, "EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."); - eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); - recomputePluginOrdering(); - }, - injectEventPluginsByName: function injectEventPluginsByName(injectedNamesToPlugins) { - var isOrderingDirty = !1, - pluginName; - - for (pluginName in injectedNamesToPlugins) { - if (injectedNamesToPlugins.hasOwnProperty(pluginName)) { - var pluginModule = injectedNamesToPlugins[pluginName]; - namesToPlugins.hasOwnProperty(pluginName) && namesToPlugins[pluginName] === pluginModule || (invariant(!namesToPlugins[pluginName], "EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.", pluginName), namesToPlugins[pluginName] = pluginModule, isOrderingDirty = !0); - } - } - - isOrderingDirty && recomputePluginOrdering(); - } - }; - - function getListener(inst, registrationName) { - var listener = inst.stateNode; - if (!listener) return null; - var props = getFiberCurrentPropsFromNode(listener); - if (!props) return null; - listener = props[registrationName]; - - a: switch (registrationName) { - case "onClick": - case "onClickCapture": - case "onDoubleClick": - case "onDoubleClickCapture": - case "onMouseDown": - case "onMouseDownCapture": - case "onMouseMove": - case "onMouseMoveCapture": - case "onMouseUp": - case "onMouseUpCapture": - (props = !props.disabled) || (inst = inst.type, props = !("button" === inst || "input" === inst || "select" === inst || "textarea" === inst)); - inst = !props; - break a; - - default: - inst = !1; - } - - if (inst) return null; - invariant(!listener || "function" === typeof listener, "Expected `%s` listener to be a function, instead got a value of `%s` type.", registrationName, typeof listener); - return listener; - } - - function getParent(inst) { - do { - inst = inst.return; - } while (inst && 5 !== inst.tag); - - return inst ? inst : null; - } - - function traverseTwoPhase(inst, fn, arg) { - for (var path = []; inst;) { - path.push(inst), inst = getParent(inst); - } - - for (inst = path.length; 0 < inst--;) { - fn(path[inst], "captured", arg); - } - - for (inst = 0; inst < path.length; inst++) { - fn(path[inst], "bubbled", arg); - } - } - - function accumulateDirectionalDispatches(inst, phase, event) { - if (phase = getListener(inst, event.dispatchConfig.phasedRegistrationNames[phase])) event._dispatchListeners = accumulateInto(event._dispatchListeners, phase), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); - } - - function accumulateTwoPhaseDispatchesSingle(event) { - event && event.dispatchConfig.phasedRegistrationNames && traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); - } - - function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { - if (event && event.dispatchConfig.phasedRegistrationNames) { - var targetInst = event._targetInst; - targetInst = targetInst ? getParent(targetInst) : null; - traverseTwoPhase(targetInst, accumulateDirectionalDispatches, event); - } - } - - function accumulateDirectDispatchesSingle(event) { - if (event && event.dispatchConfig.registrationName) { - var inst = event._targetInst; - - if (inst && event && event.dispatchConfig.registrationName) { - var listener = getListener(inst, event.dispatchConfig.registrationName); - listener && (event._dispatchListeners = accumulateInto(event._dispatchListeners, listener), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst)); - } - } - } - - var shouldBeReleasedProperties = "dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "); - - function functionThatReturnsTrue() { - return !0; - } - - function functionThatReturnsFalse() { - return !1; - } - - function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { - this.dispatchConfig = dispatchConfig; - this._targetInst = targetInst; - this.nativeEvent = nativeEvent; - dispatchConfig = this.constructor.Interface; - - for (var propName in dispatchConfig) { - dispatchConfig.hasOwnProperty(propName) && ((targetInst = dispatchConfig[propName]) ? this[propName] = targetInst(nativeEvent) : "target" === propName ? this.target = nativeEventTarget : this[propName] = nativeEvent[propName]); - } - - this.isDefaultPrevented = (null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : !1 === nativeEvent.returnValue) ? functionThatReturnsTrue : functionThatReturnsFalse; - this.isPropagationStopped = functionThatReturnsFalse; - return this; - } - - _extends(SyntheticEvent.prototype, { - preventDefault: function preventDefault() { - this.defaultPrevented = !0; - var event = this.nativeEvent; - event && (event.preventDefault ? event.preventDefault() : "unknown" !== typeof event.returnValue && (event.returnValue = !1), this.isDefaultPrevented = functionThatReturnsTrue); - }, - stopPropagation: function stopPropagation() { - var event = this.nativeEvent; - event && (event.stopPropagation ? event.stopPropagation() : "unknown" !== typeof event.cancelBubble && (event.cancelBubble = !0), this.isPropagationStopped = functionThatReturnsTrue); - }, - persist: function persist() { - this.isPersistent = functionThatReturnsTrue; - }, - isPersistent: functionThatReturnsFalse, - destructor: function destructor() { - var Interface = this.constructor.Interface, - propName; - - for (propName in Interface) { - this[propName] = null; - } - - for (Interface = 0; Interface < shouldBeReleasedProperties.length; Interface++) { - this[shouldBeReleasedProperties[Interface]] = null; - } - } - }); - - SyntheticEvent.Interface = { - type: null, - target: null, - currentTarget: function currentTarget() { - return null; - }, - eventPhase: null, - bubbles: null, - cancelable: null, - timeStamp: function timeStamp(event) { - return event.timeStamp || Date.now(); - }, - defaultPrevented: null, - isTrusted: null - }; - - SyntheticEvent.extend = function (Interface) { - function E() {} - - function Class() { - return Super.apply(this, arguments); - } - - var Super = this; - E.prototype = Super.prototype; - var prototype = new E(); - - _extends(prototype, Class.prototype); - - Class.prototype = prototype; - Class.prototype.constructor = Class; - Class.Interface = _extends({}, Super.Interface, Interface); - Class.extend = Super.extend; - addEventPoolingTo(Class); - return Class; - }; - - addEventPoolingTo(SyntheticEvent); - - function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { - if (this.eventPool.length) { - var instance = this.eventPool.pop(); - this.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); - return instance; - } - - return new this(dispatchConfig, targetInst, nativeEvent, nativeInst); - } - - function releasePooledEvent(event) { - invariant(event instanceof this, "Trying to release an event instance into a pool of a different type."); - event.destructor(); - 10 > this.eventPool.length && this.eventPool.push(event); - } - - function addEventPoolingTo(EventConstructor) { - EventConstructor.eventPool = []; - EventConstructor.getPooled = getPooledEvent; - EventConstructor.release = releasePooledEvent; - } - - var ResponderSyntheticEvent = SyntheticEvent.extend({ - touchHistory: function touchHistory() { - return null; - } - }); - - function isStartish(topLevelType) { - return "topTouchStart" === topLevelType; - } - - function isMoveish(topLevelType) { - return "topTouchMove" === topLevelType; - } - - var startDependencies = ["topTouchStart"], - moveDependencies = ["topTouchMove"], - endDependencies = ["topTouchCancel", "topTouchEnd"], - touchBank = [], - touchHistory = { - touchBank: touchBank, - numberActiveTouches: 0, - indexOfSingleActiveTouch: -1, - mostRecentTimeStamp: 0 - }; - - function timestampForTouch(touch) { - return touch.timeStamp || touch.timestamp; - } - - function getTouchIdentifier(_ref) { - _ref = _ref.identifier; - invariant(null != _ref, "Touch object is missing identifier."); - return _ref; - } - - function recordTouchStart(touch) { - var identifier = getTouchIdentifier(touch), - touchRecord = touchBank[identifier]; - touchRecord ? (touchRecord.touchActive = !0, touchRecord.startPageX = touch.pageX, touchRecord.startPageY = touch.pageY, touchRecord.startTimeStamp = timestampForTouch(touch), touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchRecord.previousPageX = touch.pageX, touchRecord.previousPageY = touch.pageY, touchRecord.previousTimeStamp = timestampForTouch(touch)) : (touchRecord = { - touchActive: !0, - startPageX: touch.pageX, - startPageY: touch.pageY, - startTimeStamp: timestampForTouch(touch), - currentPageX: touch.pageX, - currentPageY: touch.pageY, - currentTimeStamp: timestampForTouch(touch), - previousPageX: touch.pageX, - previousPageY: touch.pageY, - previousTimeStamp: timestampForTouch(touch) - }, touchBank[identifier] = touchRecord); - touchHistory.mostRecentTimeStamp = timestampForTouch(touch); - } - - function recordTouchMove(touch) { - var touchRecord = touchBank[getTouchIdentifier(touch)]; - touchRecord ? (touchRecord.touchActive = !0, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)) : console.error("Cannot record touch move without a touch start.\nTouch Move: %s\n", "Touch Bank: %s", printTouch(touch), printTouchBank()); - } - - function recordTouchEnd(touch) { - var touchRecord = touchBank[getTouchIdentifier(touch)]; - touchRecord ? (touchRecord.touchActive = !1, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)) : console.error("Cannot record touch end without a touch start.\nTouch End: %s\n", "Touch Bank: %s", printTouch(touch), printTouchBank()); - } - - function printTouch(touch) { - return JSON.stringify({ - identifier: touch.identifier, - pageX: touch.pageX, - pageY: touch.pageY, - timestamp: timestampForTouch(touch) - }); - } - - function printTouchBank() { - var printed = JSON.stringify(touchBank.slice(0, 20)); - 20 < touchBank.length && (printed += " (original size: " + touchBank.length + ")"); - return printed; - } - - var ResponderTouchHistoryStore = { - recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) { - if (isMoveish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchMove);else if (isStartish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchStart), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches && (touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier);else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (nativeEvent.changedTouches.forEach(recordTouchEnd), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches) for (topLevelType = 0; topLevelType < touchBank.length; topLevelType++) { - if (nativeEvent = touchBank[topLevelType], null != nativeEvent && nativeEvent.touchActive) { - touchHistory.indexOfSingleActiveTouch = topLevelType; - break; - } - } - }, - touchHistory: touchHistory - }; - - function accumulate(current, next) { - invariant(null != next, "accumulate(...): Accumulated items must be not be null or undefined."); - return null == current ? next : Array.isArray(current) ? current.concat(next) : Array.isArray(next) ? [current].concat(next) : [current, next]; - } - - var responderInst = null, - trackedTouchCount = 0; - - function changeResponder(nextResponderInst, blockHostResponder) { - var oldResponderInst = responderInst; - responderInst = nextResponderInst; - if (null !== ResponderEventPlugin.GlobalResponderHandler) ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); - } - - var eventTypes$1 = { - startShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onStartShouldSetResponder", - captured: "onStartShouldSetResponderCapture" - }, - dependencies: startDependencies - }, - scrollShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onScrollShouldSetResponder", - captured: "onScrollShouldSetResponderCapture" - }, - dependencies: ["topScroll"] - }, - selectionChangeShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onSelectionChangeShouldSetResponder", - captured: "onSelectionChangeShouldSetResponderCapture" - }, - dependencies: ["topSelectionChange"] - }, - moveShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onMoveShouldSetResponder", - captured: "onMoveShouldSetResponderCapture" - }, - dependencies: moveDependencies - }, - responderStart: { - registrationName: "onResponderStart", - dependencies: startDependencies - }, - responderMove: { - registrationName: "onResponderMove", - dependencies: moveDependencies - }, - responderEnd: { - registrationName: "onResponderEnd", - dependencies: endDependencies - }, - responderRelease: { - registrationName: "onResponderRelease", - dependencies: endDependencies - }, - responderTerminationRequest: { - registrationName: "onResponderTerminationRequest", - dependencies: [] - }, - responderGrant: { - registrationName: "onResponderGrant", - dependencies: [] - }, - responderReject: { - registrationName: "onResponderReject", - dependencies: [] - }, - responderTerminate: { - registrationName: "onResponderTerminate", - dependencies: [] - } - }, - ResponderEventPlugin = { - _getResponder: function _getResponder() { - return responderInst; - }, - eventTypes: eventTypes$1, - extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - if (isStartish(topLevelType)) trackedTouchCount += 1;else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (0 <= trackedTouchCount) --trackedTouchCount;else return console.error("Ended a touch event which was not counted in `trackedTouchCount`."), null; - ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); - - if (targetInst && ("topScroll" === topLevelType && !nativeEvent.responderIgnoreScroll || 0 < trackedTouchCount && "topSelectionChange" === topLevelType || isStartish(topLevelType) || isMoveish(topLevelType))) { - var JSCompiler_temp = isStartish(topLevelType) ? eventTypes$1.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes$1.moveShouldSetResponder : "topSelectionChange" === topLevelType ? eventTypes$1.selectionChangeShouldSetResponder : eventTypes$1.scrollShouldSetResponder; - if (responderInst) b: { - var JSCompiler_temp$jscomp$0 = responderInst; - - for (var depthA = 0, tempA = JSCompiler_temp$jscomp$0; tempA; tempA = getParent(tempA)) { - depthA++; - } - - tempA = 0; - - for (var tempB = targetInst; tempB; tempB = getParent(tempB)) { - tempA++; - } - - for (; 0 < depthA - tempA;) { - JSCompiler_temp$jscomp$0 = getParent(JSCompiler_temp$jscomp$0), depthA--; - } - - for (; 0 < tempA - depthA;) { - targetInst = getParent(targetInst), tempA--; - } - - for (; depthA--;) { - if (JSCompiler_temp$jscomp$0 === targetInst || JSCompiler_temp$jscomp$0 === targetInst.alternate) break b; - JSCompiler_temp$jscomp$0 = getParent(JSCompiler_temp$jscomp$0); - targetInst = getParent(targetInst); - } - - JSCompiler_temp$jscomp$0 = null; - } else JSCompiler_temp$jscomp$0 = targetInst; - targetInst = JSCompiler_temp$jscomp$0 === responderInst; - JSCompiler_temp$jscomp$0 = ResponderSyntheticEvent.getPooled(JSCompiler_temp, JSCompiler_temp$jscomp$0, nativeEvent, nativeEventTarget); - JSCompiler_temp$jscomp$0.touchHistory = ResponderTouchHistoryStore.touchHistory; - targetInst ? forEachAccumulated(JSCompiler_temp$jscomp$0, accumulateTwoPhaseDispatchesSingleSkipTarget) : forEachAccumulated(JSCompiler_temp$jscomp$0, accumulateTwoPhaseDispatchesSingle); - - b: { - JSCompiler_temp = JSCompiler_temp$jscomp$0._dispatchListeners; - targetInst = JSCompiler_temp$jscomp$0._dispatchInstances; - if (Array.isArray(JSCompiler_temp)) for (depthA = 0; depthA < JSCompiler_temp.length && !JSCompiler_temp$jscomp$0.isPropagationStopped(); depthA++) { - if (JSCompiler_temp[depthA](JSCompiler_temp$jscomp$0, targetInst[depthA])) { - JSCompiler_temp = targetInst[depthA]; - break b; - } - } else if (JSCompiler_temp && JSCompiler_temp(JSCompiler_temp$jscomp$0, targetInst)) { - JSCompiler_temp = targetInst; - break b; - } - JSCompiler_temp = null; - } - - JSCompiler_temp$jscomp$0._dispatchInstances = null; - JSCompiler_temp$jscomp$0._dispatchListeners = null; - JSCompiler_temp$jscomp$0.isPersistent() || JSCompiler_temp$jscomp$0.constructor.release(JSCompiler_temp$jscomp$0); - JSCompiler_temp && JSCompiler_temp !== responderInst ? (JSCompiler_temp$jscomp$0 = void 0, targetInst = ResponderSyntheticEvent.getPooled(eventTypes$1.responderGrant, JSCompiler_temp, nativeEvent, nativeEventTarget), targetInst.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(targetInst, accumulateDirectDispatchesSingle), depthA = !0 === executeDirectDispatch(targetInst), responderInst ? (tempA = ResponderSyntheticEvent.getPooled(eventTypes$1.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget), tempA.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(tempA, accumulateDirectDispatchesSingle), tempB = !tempA._dispatchListeners || executeDirectDispatch(tempA), tempA.isPersistent() || tempA.constructor.release(tempA), tempB ? (tempA = ResponderSyntheticEvent.getPooled(eventTypes$1.responderTerminate, responderInst, nativeEvent, nativeEventTarget), tempA.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(tempA, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, [targetInst, tempA]), changeResponder(JSCompiler_temp, depthA)) : (JSCompiler_temp = ResponderSyntheticEvent.getPooled(eventTypes$1.responderReject, JSCompiler_temp, nativeEvent, nativeEventTarget), JSCompiler_temp.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(JSCompiler_temp, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, JSCompiler_temp))) : (JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, targetInst), changeResponder(JSCompiler_temp, depthA)), JSCompiler_temp = JSCompiler_temp$jscomp$0) : JSCompiler_temp = null; - } else JSCompiler_temp = null; - - JSCompiler_temp$jscomp$0 = responderInst && isStartish(topLevelType); - targetInst = responderInst && isMoveish(topLevelType); - depthA = responderInst && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType); - if (JSCompiler_temp$jscomp$0 = JSCompiler_temp$jscomp$0 ? eventTypes$1.responderStart : targetInst ? eventTypes$1.responderMove : depthA ? eventTypes$1.responderEnd : null) JSCompiler_temp$jscomp$0 = ResponderSyntheticEvent.getPooled(JSCompiler_temp$jscomp$0, responderInst, nativeEvent, nativeEventTarget), JSCompiler_temp$jscomp$0.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(JSCompiler_temp$jscomp$0, accumulateDirectDispatchesSingle), JSCompiler_temp = accumulate(JSCompiler_temp, JSCompiler_temp$jscomp$0); - JSCompiler_temp$jscomp$0 = responderInst && "topTouchCancel" === topLevelType; - if (topLevelType = responderInst && !JSCompiler_temp$jscomp$0 && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType)) a: { - if ((topLevelType = nativeEvent.touches) && 0 !== topLevelType.length) for (targetInst = 0; targetInst < topLevelType.length; targetInst++) { - if (depthA = topLevelType[targetInst].target, null !== depthA && void 0 !== depthA && 0 !== depthA) { - tempA = getInstanceFromNode(depthA); - - b: { - for (depthA = responderInst; tempA;) { - if (depthA === tempA || depthA === tempA.alternate) { - depthA = !0; - break b; - } - - tempA = getParent(tempA); - } - - depthA = !1; - } - - if (depthA) { - topLevelType = !1; - break a; - } - } - } - topLevelType = !0; - } - if (topLevelType = JSCompiler_temp$jscomp$0 ? eventTypes$1.responderTerminate : topLevelType ? eventTypes$1.responderRelease : null) nativeEvent = ResponderSyntheticEvent.getPooled(topLevelType, responderInst, nativeEvent, nativeEventTarget), nativeEvent.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(nativeEvent, accumulateDirectDispatchesSingle), JSCompiler_temp = accumulate(JSCompiler_temp, nativeEvent), changeResponder(null); - return JSCompiler_temp; - }, - GlobalResponderHandler: null, - injection: { - injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { - ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; - } - } - }, - customBubblingEventTypes$1 = ReactNativeViewConfigRegistry.customBubblingEventTypes, - customDirectEventTypes$1 = ReactNativeViewConfigRegistry.customDirectEventTypes, - ReactNativeBridgeEventPlugin = { - eventTypes: ReactNativeViewConfigRegistry.eventTypes, - extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - if (null == targetInst) return null; - var bubbleDispatchConfig = customBubblingEventTypes$1[topLevelType], - directDispatchConfig = customDirectEventTypes$1[topLevelType]; - invariant(bubbleDispatchConfig || directDispatchConfig, 'Unsupported top level event type "%s" dispatched', topLevelType); - topLevelType = SyntheticEvent.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); - if (bubbleDispatchConfig) forEachAccumulated(topLevelType, accumulateTwoPhaseDispatchesSingle);else if (directDispatchConfig) forEachAccumulated(topLevelType, accumulateDirectDispatchesSingle);else return null; - return topLevelType; - } - }; - injection.injectEventPluginOrder(["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]); - injection.injectEventPluginsByName({ - ResponderEventPlugin: ResponderEventPlugin, - ReactNativeBridgeEventPlugin: ReactNativeBridgeEventPlugin - }); - var instanceCache = {}, - instanceProps = {}; - - function uncacheFiberNode(tag) { - delete instanceCache[tag]; - delete instanceProps[tag]; - } - - function getInstanceFromTag(tag) { - return instanceCache[tag] || null; - } - - var ReactNativeComponentTree = { - precacheFiberNode: function precacheFiberNode(hostInst, tag) { - instanceCache[tag] = hostInst; - }, - uncacheFiberNode: uncacheFiberNode, - getClosestInstanceFromNode: getInstanceFromTag, - getInstanceFromNode: getInstanceFromTag, - getNodeFromInstance: function getNodeFromInstance(inst) { - var tag = inst.stateNode._nativeTag; - void 0 === tag && (tag = inst.stateNode.canonical._nativeTag); - invariant(tag, "All native instances should have a tag."); - return tag; - }, - getFiberCurrentPropsFromNode: function getFiberCurrentPropsFromNode(stateNode) { - return instanceProps[stateNode._nativeTag] || null; - }, - updateFiberProps: function updateFiberProps(tag, props) { - instanceProps[tag] = props; - } - }, - restoreTarget = null, - restoreQueue = null; - - function restoreStateOfTarget(target) { - if (target = getInstanceFromNode(target)) { - invariant(null, "Fiber needs to be injected to handle a fiber target for controlled events. This error is likely caused by a bug in React. Please file an issue."); - var props = getFiberCurrentPropsFromNode(target.stateNode); - null.restoreControlledState(target.stateNode, target.type, props); - } - } - - function _batchedUpdates(fn, bookkeeping) { - return fn(bookkeeping); - } - - function _flushInteractiveUpdates() {} - - var isBatching = !1; - - function batchedUpdates(fn, bookkeeping) { - if (isBatching) return fn(bookkeeping); - isBatching = !0; - - try { - return _batchedUpdates(fn, bookkeeping); - } finally { - if (isBatching = !1, null !== restoreTarget || null !== restoreQueue) if (_flushInteractiveUpdates(), restoreTarget && (bookkeeping = restoreTarget, fn = restoreQueue, restoreQueue = restoreTarget = null, restoreStateOfTarget(bookkeeping), fn)) for (bookkeeping = 0; bookkeeping < fn.length; bookkeeping++) { - restoreStateOfTarget(fn[bookkeeping]); - } - } - } - - var EMPTY_NATIVE_EVENT = {}; - - function _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam) { - var nativeEvent = nativeEventParam || EMPTY_NATIVE_EVENT, - inst = getInstanceFromTag(rootNodeID); - batchedUpdates(function () { - var events = nativeEvent.target; - - for (var events$jscomp$0 = null, i = 0; i < plugins.length; i++) { - var possiblePlugin = plugins[i]; - possiblePlugin && (possiblePlugin = possiblePlugin.extractEvents(topLevelType, inst, nativeEvent, events)) && (events$jscomp$0 = accumulateInto(events$jscomp$0, possiblePlugin)); - } - - events = events$jscomp$0; - null !== events && (eventQueue = accumulateInto(eventQueue, events)); - events = eventQueue; - eventQueue = null; - events && (forEachAccumulated(events, executeDispatchesAndReleaseTopLevel), invariant(!eventQueue, "processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."), ReactErrorUtils.rethrowCaughtError()); - }); - } - - RCTEventEmitter.register({ - getListener: getListener, - registrationNames: registrationNameModules, - _receiveRootNodeIDEvent: _receiveRootNodeIDEvent, - receiveEvent: function receiveEvent(rootNodeID, topLevelType, nativeEventParam) { - _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam); - }, - receiveTouches: function receiveTouches(eventTopLevelType, touches, changedIndices) { - if ("topTouchEnd" === eventTopLevelType || "topTouchCancel" === eventTopLevelType) { - var JSCompiler_temp = []; - - for (var i = 0; i < changedIndices.length; i++) { - var index = changedIndices[i]; - JSCompiler_temp.push(touches[index]); - touches[index] = null; - } - - for (i = changedIndices = 0; i < touches.length; i++) { - index = touches[i], null !== index && (touches[changedIndices++] = index); - } - - touches.length = changedIndices; - } else for (JSCompiler_temp = [], i = 0; i < changedIndices.length; i++) { - JSCompiler_temp.push(touches[changedIndices[i]]); - } - - for (changedIndices = 0; changedIndices < JSCompiler_temp.length; changedIndices++) { - i = JSCompiler_temp[changedIndices]; - i.changedTouches = JSCompiler_temp; - i.touches = touches; - index = null; - var target = i.target; - null === target || void 0 === target || 1 > target || (index = target); - - _receiveRootNodeIDEvent(index, eventTopLevelType, i); - } - } - }); - getFiberCurrentPropsFromNode = ReactNativeComponentTree.getFiberCurrentPropsFromNode; - getInstanceFromNode = ReactNativeComponentTree.getInstanceFromNode; - getNodeFromInstance = ReactNativeComponentTree.getNodeFromInstance; - ResponderEventPlugin.injection.injectGlobalResponderHandler({ - onChange: function onChange(from, to, blockNativeResponder) { - null !== to ? UIManager.setJSResponder(to.stateNode._nativeTag, blockNativeResponder) : UIManager.clearJSResponder(); - } - }); - var ReactCurrentOwner = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, - hasSymbol = "function" === typeof Symbol && (typeof Symbol === "function" ? Symbol.for : "@@for"), - REACT_ELEMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.element") : 60103, - REACT_PORTAL_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.portal") : 60106, - REACT_FRAGMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.fragment") : 60107, - REACT_STRICT_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.strict_mode") : 60108, - REACT_PROFILER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.profiler") : 60114, - REACT_PROVIDER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.provider") : 60109, - REACT_CONTEXT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.context") : 60110, - REACT_ASYNC_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.async_mode") : 60111, - REACT_FORWARD_REF_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.forward_ref") : 60112, - REACT_TIMEOUT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.timeout") : 60113, - MAYBE_ITERATOR_SYMBOL = "function" === typeof Symbol && (typeof Symbol === "function" ? Symbol.iterator : "@@iterator"); - - function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "undefined" === typeof maybeIterable) return null; - maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; - } - - function getComponentName(fiber) { - var type = fiber.type; - if ("function" === typeof type) return type.displayName || type.name; - if ("string" === typeof type) return type; - - switch (type) { - case REACT_ASYNC_MODE_TYPE: - return "AsyncMode"; - - case REACT_CONTEXT_TYPE: - return "Context.Consumer"; - - case REACT_FRAGMENT_TYPE: - return "ReactFragment"; - - case REACT_PORTAL_TYPE: - return "ReactPortal"; - - case REACT_PROFILER_TYPE: - return "Profiler(" + fiber.pendingProps.id + ")"; - - case REACT_PROVIDER_TYPE: - return "Context.Provider"; - - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - - case REACT_TIMEOUT_TYPE: - return "Timeout"; - } - - if ("object" === typeof type && null !== type) switch (type.$$typeof) { - case REACT_FORWARD_REF_TYPE: - return fiber = type.render.displayName || type.render.name || "", "" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef"; - } - return null; - } - - function isFiberMountedImpl(fiber) { - var node = fiber; - if (fiber.alternate) for (; node.return;) { - node = node.return; - } else { - if (0 !== (node.effectTag & 2)) return 1; - - for (; node.return;) { - if (node = node.return, 0 !== (node.effectTag & 2)) return 1; - } - } - return 3 === node.tag ? 2 : 3; - } - - function assertIsMounted(fiber) { - invariant(2 === isFiberMountedImpl(fiber), "Unable to find node on an unmounted component."); - } - - function findCurrentFiberUsingSlowPath(fiber) { - var alternate = fiber.alternate; - if (!alternate) return alternate = isFiberMountedImpl(fiber), invariant(3 !== alternate, "Unable to find node on an unmounted component."), 1 === alternate ? null : fiber; - - for (var a = fiber, b = alternate;;) { - var parentA = a.return, - parentB = parentA ? parentA.alternate : null; - if (!parentA || !parentB) break; - - if (parentA.child === parentB.child) { - for (var child = parentA.child; child;) { - if (child === a) return assertIsMounted(parentA), fiber; - if (child === b) return assertIsMounted(parentA), alternate; - child = child.sibling; - } - - invariant(!1, "Unable to find node on an unmounted component."); - } - - if (a.return !== b.return) a = parentA, b = parentB;else { - child = !1; - - for (var _child = parentA.child; _child;) { - if (_child === a) { - child = !0; - a = parentA; - b = parentB; - break; - } - - if (_child === b) { - child = !0; - b = parentA; - a = parentB; - break; - } - - _child = _child.sibling; - } - - if (!child) { - for (_child = parentB.child; _child;) { - if (_child === a) { - child = !0; - a = parentB; - b = parentA; - break; - } - - if (_child === b) { - child = !0; - b = parentB; - a = parentA; - break; - } - - _child = _child.sibling; - } - - invariant(child, "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."); - } - } - invariant(a.alternate === b, "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."); - } - - invariant(3 === a.tag, "Unable to find node on an unmounted component."); - return a.stateNode.current === a ? fiber : alternate; - } - - function findCurrentHostFiber(parent) { - parent = findCurrentFiberUsingSlowPath(parent); - if (!parent) return null; - - for (var node = parent;;) { - if (5 === node.tag || 6 === node.tag) return node; - if (node.child) node.child.return = node, node = node.child;else { - if (node === parent) break; - - for (; !node.sibling;) { - if (!node.return || node.return === parent) return null; - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - } - - return null; - } - - function findCurrentHostFiberWithNoPortals(parent) { - parent = findCurrentFiberUsingSlowPath(parent); - if (!parent) return null; - - for (var node = parent;;) { - if (5 === node.tag || 6 === node.tag) return node; - if (node.child && 4 !== node.tag) node.child.return = node, node = node.child;else { - if (node === parent) break; - - for (; !node.sibling;) { - if (!node.return || node.return === parent) return null; - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - } - - return null; - } - - var emptyObject$1 = {}, - removedKeys = null, - removedKeyCount = 0; - - function restoreDeletedValuesInNestedArray(updatePayload, node, validAttributes) { - if (Array.isArray(node)) for (var i = node.length; i-- && 0 < removedKeyCount;) { - restoreDeletedValuesInNestedArray(updatePayload, node[i], validAttributes); - } else if (node && 0 < removedKeyCount) for (i in removedKeys) { - if (removedKeys[i]) { - var _nextProp = node[i]; - - if (void 0 !== _nextProp) { - var attributeConfig = validAttributes[i]; - - if (attributeConfig) { - "function" === typeof _nextProp && (_nextProp = !0); - "undefined" === typeof _nextProp && (_nextProp = null); - if ("object" !== typeof attributeConfig) updatePayload[i] = _nextProp;else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) _nextProp = "function" === typeof attributeConfig.process ? attributeConfig.process(_nextProp) : _nextProp, updatePayload[i] = _nextProp; - removedKeys[i] = !1; - removedKeyCount--; - } - } - } - } - } - - function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { - if (!updatePayload && prevProp === nextProp) return updatePayload; - if (!prevProp || !nextProp) return nextProp ? addNestedProperty(updatePayload, nextProp, validAttributes) : prevProp ? clearNestedProperty(updatePayload, prevProp, validAttributes) : updatePayload; - if (!Array.isArray(prevProp) && !Array.isArray(nextProp)) return diffProperties(updatePayload, prevProp, nextProp, validAttributes); - - if (Array.isArray(prevProp) && Array.isArray(nextProp)) { - var minLength = prevProp.length < nextProp.length ? prevProp.length : nextProp.length, - i; - - for (i = 0; i < minLength; i++) { - updatePayload = diffNestedProperty(updatePayload, prevProp[i], nextProp[i], validAttributes); - } - - for (; i < prevProp.length; i++) { - updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); - } - - for (; i < nextProp.length; i++) { - updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); - } - - return updatePayload; - } - - return Array.isArray(prevProp) ? diffProperties(updatePayload, flattenStyle(prevProp), nextProp, validAttributes) : diffProperties(updatePayload, prevProp, flattenStyle(nextProp), validAttributes); - } - - function addNestedProperty(updatePayload, nextProp, validAttributes) { - if (!nextProp) return updatePayload; - if (!Array.isArray(nextProp)) return diffProperties(updatePayload, emptyObject$1, nextProp, validAttributes); - - for (var i = 0; i < nextProp.length; i++) { - updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); - } - - return updatePayload; - } - - function clearNestedProperty(updatePayload, prevProp, validAttributes) { - if (!prevProp) return updatePayload; - if (!Array.isArray(prevProp)) return diffProperties(updatePayload, prevProp, emptyObject$1, validAttributes); - - for (var i = 0; i < prevProp.length; i++) { - updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); - } - - return updatePayload; - } - - function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { - var attributeConfig, propKey; - - for (propKey in nextProps) { - if (attributeConfig = validAttributes[propKey]) { - var prevProp = prevProps[propKey]; - var nextProp = nextProps[propKey]; - "function" === typeof nextProp && (nextProp = !0, "function" === typeof prevProp && (prevProp = !0)); - "undefined" === typeof nextProp && (nextProp = null, "undefined" === typeof prevProp && (prevProp = null)); - removedKeys && (removedKeys[propKey] = !1); - if (updatePayload && void 0 !== updatePayload[propKey]) { - if ("object" !== typeof attributeConfig) updatePayload[propKey] = nextProp;else { - if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, updatePayload[propKey] = attributeConfig; - } - } else if (prevProp !== nextProp) if ("object" !== typeof attributeConfig) ("object" !== typeof nextProp || null === nextProp || deepDiffer(prevProp, nextProp)) && ((updatePayload || (updatePayload = {}))[propKey] = nextProp);else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) { - if (void 0 === prevProp || ("function" === typeof attributeConfig.diff ? attributeConfig.diff(prevProp, nextProp) : "object" !== typeof nextProp || null === nextProp || deepDiffer(prevProp, nextProp))) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, (updatePayload || (updatePayload = {}))[propKey] = attributeConfig; - } else removedKeys = null, removedKeyCount = 0, updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig), 0 < removedKeyCount && updatePayload && (restoreDeletedValuesInNestedArray(updatePayload, nextProp, attributeConfig), removedKeys = null); - } - } - - for (var _propKey in prevProps) { - void 0 === nextProps[_propKey] && (!(attributeConfig = validAttributes[_propKey]) || updatePayload && void 0 !== updatePayload[_propKey] || (prevProp = prevProps[_propKey], void 0 !== prevProp && ("object" !== typeof attributeConfig || "function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process ? ((updatePayload || (updatePayload = {}))[_propKey] = null, removedKeys || (removedKeys = {}), removedKeys[_propKey] || (removedKeys[_propKey] = !0, removedKeyCount++)) : updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig)))); - } - - return updatePayload; - } - - function mountSafeCallback(context, callback) { - return function () { - if (callback) { - if ("boolean" === typeof context.__isMounted) { - if (!context.__isMounted) return; - } else if ("function" === typeof context.isMounted && !context.isMounted()) return; - - return callback.apply(context, arguments); - } - }; - } - - var ReactNativeFiberHostComponent = function () { - function ReactNativeFiberHostComponent(tag, viewConfig) { - if (!(this instanceof ReactNativeFiberHostComponent)) throw new TypeError("Cannot call a class as a function"); - this._nativeTag = tag; - this._children = []; - this.viewConfig = viewConfig; - } - - ReactNativeFiberHostComponent.prototype.blur = function () { - TextInputState.blurTextInput(this._nativeTag); - }; - - ReactNativeFiberHostComponent.prototype.focus = function () { - TextInputState.focusTextInput(this._nativeTag); - }; - - ReactNativeFiberHostComponent.prototype.measure = function (callback) { - UIManager.measure(this._nativeTag, mountSafeCallback(this, callback)); - }; - - ReactNativeFiberHostComponent.prototype.measureInWindow = function (callback) { - UIManager.measureInWindow(this._nativeTag, mountSafeCallback(this, callback)); - }; - - ReactNativeFiberHostComponent.prototype.measureLayout = function (relativeToNativeNode, onSuccess, onFail) { - UIManager.measureLayout(this._nativeTag, relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); - }; - - ReactNativeFiberHostComponent.prototype.setNativeProps = function (nativeProps) { - nativeProps = diffProperties(null, emptyObject$1, nativeProps, this.viewConfig.validAttributes); - null != nativeProps && UIManager.updateView(this._nativeTag, this.viewConfig.uiViewClassName, nativeProps); - }; - - return ReactNativeFiberHostComponent; - }(), - now$1 = "object" === typeof performance && "function" === typeof performance.now ? function () { - return performance.now(); - } : function () { - return Date.now(); - }, - scheduledCallback = null, - frameDeadline = 0, - frameDeadlineObject = { - timeRemaining: function timeRemaining() { - return frameDeadline - now$1(); - }, - didTimeout: !1 - }; - - function setTimeoutCallback() { - frameDeadline = now$1() + 5; - var callback = scheduledCallback; - scheduledCallback = null; - null !== callback && callback(frameDeadlineObject); - } - - function shim$1() { - invariant(!1, "The current renderer does not support hyration. This error is likely caused by a bug in React. Please file an issue."); - } - - var nextReactTag = 3; - - function allocateTag() { - var tag = nextReactTag; - 1 === tag % 10 && (tag += 2); - nextReactTag = tag + 2; - return tag; - } - - function recursivelyUncacheFiberNode(node) { - "number" === typeof node ? uncacheFiberNode(node) : (uncacheFiberNode(node._nativeTag), node._children.forEach(recursivelyUncacheFiberNode)); - } - - function finalizeInitialChildren(parentInstance) { - if (0 === parentInstance._children.length) return !1; - - var nativeTags = parentInstance._children.map(function (child) { - return "number" === typeof child ? child : child._nativeTag; - }); - - UIManager.setChildren(parentInstance._nativeTag, nativeTags); - return !1; - } - - function getStackAddendumByWorkInProgressFiber(workInProgress) { - var info = ""; - - do { - a: switch (workInProgress.tag) { - case 0: - case 1: - case 2: - case 5: - var owner = workInProgress._debugOwner, - source = workInProgress._debugSource; - var JSCompiler_inline_result = getComponentName(workInProgress); - var ownerName = null; - owner && (ownerName = getComponentName(owner)); - owner = source; - JSCompiler_inline_result = "\n in " + (JSCompiler_inline_result || "Unknown") + (owner ? " (at " + owner.fileName.replace(/^.*[\\\/]/, "") + ":" + owner.lineNumber + ")" : ownerName ? " (created by " + ownerName + ")" : ""); - break a; - - default: - JSCompiler_inline_result = ""; - } - - info += JSCompiler_inline_result; - workInProgress = workInProgress.return; - } while (workInProgress); - - return info; - } - - new Set(); - var valueStack = [], - index = -1; - - function createCursor(defaultValue) { - return { - current: defaultValue - }; - } - - function pop(cursor) { - 0 > index || (cursor.current = valueStack[index], valueStack[index] = null, index--); - } - - function push(cursor, value) { - index++; - valueStack[index] = cursor.current; - cursor.current = value; - } - - var contextStackCursor = createCursor(emptyObject), - didPerformWorkStackCursor = createCursor(!1), - previousContext = emptyObject; - - function getUnmaskedContext(workInProgress) { - return isContextProvider(workInProgress) ? previousContext : contextStackCursor.current; - } - - function getMaskedContext(workInProgress, unmaskedContext) { - var contextTypes = workInProgress.type.contextTypes; - if (!contextTypes) return emptyObject; - var instance = workInProgress.stateNode; - if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) return instance.__reactInternalMemoizedMaskedChildContext; - var context = {}, - key; - - for (key in contextTypes) { - context[key] = unmaskedContext[key]; - } - - instance && (workInProgress = workInProgress.stateNode, workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, workInProgress.__reactInternalMemoizedMaskedChildContext = context); - return context; - } - - function isContextProvider(fiber) { - return 2 === fiber.tag && null != fiber.type.childContextTypes; - } - - function popContextProvider(fiber) { - isContextProvider(fiber) && (pop(didPerformWorkStackCursor, fiber), pop(contextStackCursor, fiber)); - } - - function popTopLevelContextObject(fiber) { - pop(didPerformWorkStackCursor, fiber); - pop(contextStackCursor, fiber); - } - - function pushTopLevelContextObject(fiber, context, didChange) { - invariant(contextStackCursor.current === emptyObject, "Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue."); - push(contextStackCursor, context, fiber); - push(didPerformWorkStackCursor, didChange, fiber); - } - - function processChildContext(fiber, parentContext) { - var instance = fiber.stateNode, - childContextTypes = fiber.type.childContextTypes; - if ("function" !== typeof instance.getChildContext) return parentContext; - instance = instance.getChildContext(); - - for (var contextKey in instance) { - invariant(contextKey in childContextTypes, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(fiber) || "Unknown", contextKey); - } - - return _extends({}, parentContext, instance); - } - - function pushContextProvider(workInProgress) { - if (!isContextProvider(workInProgress)) return !1; - var instance = workInProgress.stateNode; - instance = instance && instance.__reactInternalMemoizedMergedChildContext || emptyObject; - previousContext = contextStackCursor.current; - push(contextStackCursor, instance, workInProgress); - push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress); - return !0; - } - - function invalidateContextProvider(workInProgress, didChange) { - var instance = workInProgress.stateNode; - invariant(instance, "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue."); - - if (didChange) { - var mergedContext = processChildContext(workInProgress, previousContext); - instance.__reactInternalMemoizedMergedChildContext = mergedContext; - pop(didPerformWorkStackCursor, workInProgress); - pop(contextStackCursor, workInProgress); - push(contextStackCursor, mergedContext, workInProgress); - } else pop(didPerformWorkStackCursor, workInProgress); - - push(didPerformWorkStackCursor, didChange, workInProgress); - } - - function FiberNode(tag, pendingProps, key, mode) { - this.tag = tag; - this.key = key; - this.sibling = this.child = this.return = this.stateNode = this.type = null; - this.index = 0; - this.ref = null; - this.pendingProps = pendingProps; - this.memoizedState = this.updateQueue = this.memoizedProps = null; - this.mode = mode; - this.effectTag = 0; - this.lastEffect = this.firstEffect = this.nextEffect = null; - this.expirationTime = 0; - this.alternate = null; - } - - function createWorkInProgress(current, pendingProps, expirationTime) { - var workInProgress = current.alternate; - null === workInProgress ? (workInProgress = new FiberNode(current.tag, pendingProps, current.key, current.mode), workInProgress.type = current.type, workInProgress.stateNode = current.stateNode, workInProgress.alternate = current, current.alternate = workInProgress) : (workInProgress.pendingProps = pendingProps, workInProgress.effectTag = 0, workInProgress.nextEffect = null, workInProgress.firstEffect = null, workInProgress.lastEffect = null); - workInProgress.expirationTime = expirationTime; - workInProgress.child = current.child; - workInProgress.memoizedProps = current.memoizedProps; - workInProgress.memoizedState = current.memoizedState; - workInProgress.updateQueue = current.updateQueue; - workInProgress.sibling = current.sibling; - workInProgress.index = current.index; - workInProgress.ref = current.ref; - return workInProgress; - } - - function createFiberFromElement(element, mode, expirationTime) { - var type = element.type, - key = element.key; - element = element.props; - if ("function" === typeof type) var fiberTag = type.prototype && type.prototype.isReactComponent ? 2 : 0;else if ("string" === typeof type) fiberTag = 5;else switch (type) { - case REACT_FRAGMENT_TYPE: - return createFiberFromFragment(element.children, mode, expirationTime, key); - - case REACT_ASYNC_MODE_TYPE: - fiberTag = 11; - mode |= 3; - break; - - case REACT_STRICT_MODE_TYPE: - fiberTag = 11; - mode |= 2; - break; - - case REACT_PROFILER_TYPE: - return type = new FiberNode(15, element, key, mode | 4), type.type = REACT_PROFILER_TYPE, type.expirationTime = expirationTime, type; - - case REACT_TIMEOUT_TYPE: - fiberTag = 16; - mode |= 2; - break; - - default: - a: { - switch ("object" === typeof type && null !== type ? type.$$typeof : null) { - case REACT_PROVIDER_TYPE: - fiberTag = 13; - break a; - - case REACT_CONTEXT_TYPE: - fiberTag = 12; - break a; - - case REACT_FORWARD_REF_TYPE: - fiberTag = 14; - break a; - - default: - invariant(!1, "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", null == type ? type : typeof type, ""); - } - - fiberTag = void 0; - } - - } - mode = new FiberNode(fiberTag, element, key, mode); - mode.type = type; - mode.expirationTime = expirationTime; - return mode; - } - - function createFiberFromFragment(elements, mode, expirationTime, key) { - elements = new FiberNode(10, elements, key, mode); - elements.expirationTime = expirationTime; - return elements; - } - - function createFiberFromText(content, mode, expirationTime) { - content = new FiberNode(6, content, null, mode); - content.expirationTime = expirationTime; - return content; - } - - function createFiberFromPortal(portal, mode, expirationTime) { - mode = new FiberNode(4, null !== portal.children ? portal.children : [], portal.key, mode); - mode.expirationTime = expirationTime; - mode.stateNode = { - containerInfo: portal.containerInfo, - pendingChildren: null, - implementation: portal.implementation - }; - return mode; - } - - function createFiberRoot(containerInfo, isAsync, hydrate) { - isAsync = new FiberNode(3, null, null, isAsync ? 3 : 0); - containerInfo = { - current: isAsync, - containerInfo: containerInfo, - pendingChildren: null, - earliestPendingTime: 0, - latestPendingTime: 0, - earliestSuspendedTime: 0, - latestSuspendedTime: 0, - latestPingedTime: 0, - didError: !1, - pendingCommitExpirationTime: 0, - finishedWork: null, - context: null, - pendingContext: null, - hydrate: hydrate, - nextExpirationTimeToWorkOn: 0, - expirationTime: 0, - firstBatch: null, - nextScheduledRoot: null - }; - return isAsync.stateNode = containerInfo; - } - - var onCommitFiberRoot = null, - onCommitFiberUnmount = null; - - function catchErrors(fn) { - return function (arg) { - try { - return fn(arg); - } catch (err) {} - }; - } - - function injectInternals(internals) { - if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; - var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if (hook.isDisabled || !hook.supportsFiber) return !0; - - try { - var rendererID = hook.inject(internals); - onCommitFiberRoot = catchErrors(function (root) { - return hook.onCommitFiberRoot(rendererID, root); - }); - onCommitFiberUnmount = catchErrors(function (fiber) { - return hook.onCommitFiberUnmount(rendererID, fiber); - }); - } catch (err) {} - - return !0; - } - - function onCommitRoot(root) { - "function" === typeof onCommitFiberRoot && onCommitFiberRoot(root); - } - - function onCommitUnmount(fiber) { - "function" === typeof onCommitFiberUnmount && onCommitFiberUnmount(fiber); - } - - function markPendingPriorityLevel(root, expirationTime) { - root.didError = !1; - var earliestPendingTime = root.earliestPendingTime; - 0 === earliestPendingTime ? root.earliestPendingTime = root.latestPendingTime = expirationTime : earliestPendingTime > expirationTime ? root.earliestPendingTime = expirationTime : root.latestPendingTime < expirationTime && (root.latestPendingTime = expirationTime); - findNextPendingPriorityLevel(root); - } - - function findNextPendingPriorityLevel(root) { - var earliestSuspendedTime = root.earliestSuspendedTime, - earliestPendingTime = root.earliestPendingTime; - if (0 === earliestSuspendedTime) var nextExpirationTimeToWorkOn = earliestSuspendedTime = earliestPendingTime;else 0 !== earliestPendingTime ? (nextExpirationTimeToWorkOn = earliestPendingTime, earliestSuspendedTime = earliestSuspendedTime < earliestPendingTime ? earliestSuspendedTime : earliestPendingTime) : nextExpirationTimeToWorkOn = earliestSuspendedTime = root.latestPingedTime; - root.didError && (earliestSuspendedTime = 1); - root.nextExpirationTimeToWorkOn = nextExpirationTimeToWorkOn; - root.expirationTime = earliestSuspendedTime; - } - - var hasForceUpdate = !1; - - function createUpdateQueue(baseState) { - return { - expirationTime: 0, - baseState: baseState, - firstUpdate: null, - lastUpdate: null, - firstCapturedUpdate: null, - lastCapturedUpdate: null, - firstEffect: null, - lastEffect: null, - firstCapturedEffect: null, - lastCapturedEffect: null - }; - } - - function cloneUpdateQueue(currentQueue) { - return { - expirationTime: currentQueue.expirationTime, - baseState: currentQueue.baseState, - firstUpdate: currentQueue.firstUpdate, - lastUpdate: currentQueue.lastUpdate, - firstCapturedUpdate: null, - lastCapturedUpdate: null, - firstEffect: null, - lastEffect: null, - firstCapturedEffect: null, - lastCapturedEffect: null - }; - } - - function createUpdate(expirationTime) { - return { - expirationTime: expirationTime, - tag: 0, - payload: null, - callback: null, - next: null, - nextEffect: null - }; - } - - function appendUpdateToQueue(queue, update, expirationTime) { - null === queue.lastUpdate ? queue.firstUpdate = queue.lastUpdate = update : (queue.lastUpdate.next = update, queue.lastUpdate = update); - if (0 === queue.expirationTime || queue.expirationTime > expirationTime) queue.expirationTime = expirationTime; - } - - function enqueueUpdate(fiber, update, expirationTime) { - var alternate = fiber.alternate; - - if (null === alternate) { - var queue1 = fiber.updateQueue; - var queue2 = null; - null === queue1 && (queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState)); - } else queue1 = fiber.updateQueue, queue2 = alternate.updateQueue, null === queue1 ? null === queue2 ? (queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState), queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState)) : queue1 = fiber.updateQueue = cloneUpdateQueue(queue2) : null === queue2 && (queue2 = alternate.updateQueue = cloneUpdateQueue(queue1)); - - null === queue2 || queue1 === queue2 ? appendUpdateToQueue(queue1, update, expirationTime) : null === queue1.lastUpdate || null === queue2.lastUpdate ? (appendUpdateToQueue(queue1, update, expirationTime), appendUpdateToQueue(queue2, update, expirationTime)) : (appendUpdateToQueue(queue1, update, expirationTime), queue2.lastUpdate = update); - } - - function enqueueCapturedUpdate(workInProgress, update, renderExpirationTime) { - var workInProgressQueue = workInProgress.updateQueue; - workInProgressQueue = null === workInProgressQueue ? workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState) : ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue); - null === workInProgressQueue.lastCapturedUpdate ? workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update : (workInProgressQueue.lastCapturedUpdate.next = update, workInProgressQueue.lastCapturedUpdate = update); - if (0 === workInProgressQueue.expirationTime || workInProgressQueue.expirationTime > renderExpirationTime) workInProgressQueue.expirationTime = renderExpirationTime; - } - - function ensureWorkInProgressQueueIsAClone(workInProgress, queue) { - var current = workInProgress.alternate; - null !== current && queue === current.updateQueue && (queue = workInProgress.updateQueue = cloneUpdateQueue(queue)); - return queue; - } - - function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) { - switch (update.tag) { - case 1: - return workInProgress = update.payload, "function" === typeof workInProgress ? workInProgress.call(instance, prevState, nextProps) : workInProgress; - - case 3: - workInProgress.effectTag = workInProgress.effectTag & -1025 | 64; - - case 0: - workInProgress = update.payload; - nextProps = "function" === typeof workInProgress ? workInProgress.call(instance, prevState, nextProps) : workInProgress; - if (null === nextProps || void 0 === nextProps) break; - return _extends({}, prevState, nextProps); - - case 2: - hasForceUpdate = !0; - } - - return prevState; - } - - function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) { - hasForceUpdate = !1; - - if (!(0 === queue.expirationTime || queue.expirationTime > renderExpirationTime)) { - queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue); - - for (var newBaseState = queue.baseState, newFirstUpdate = null, newExpirationTime = 0, update = queue.firstUpdate, resultState = newBaseState; null !== update;) { - var updateExpirationTime = update.expirationTime; - - if (updateExpirationTime > renderExpirationTime) { - if (null === newFirstUpdate && (newFirstUpdate = update, newBaseState = resultState), 0 === newExpirationTime || newExpirationTime > updateExpirationTime) newExpirationTime = updateExpirationTime; - } else resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance), null !== update.callback && (workInProgress.effectTag |= 32, update.nextEffect = null, null === queue.lastEffect ? queue.firstEffect = queue.lastEffect = update : (queue.lastEffect.nextEffect = update, queue.lastEffect = update)); - - update = update.next; - } - - updateExpirationTime = null; - - for (update = queue.firstCapturedUpdate; null !== update;) { - var _updateExpirationTime = update.expirationTime; - - if (_updateExpirationTime > renderExpirationTime) { - if (null === updateExpirationTime && (updateExpirationTime = update, null === newFirstUpdate && (newBaseState = resultState)), 0 === newExpirationTime || newExpirationTime > _updateExpirationTime) newExpirationTime = _updateExpirationTime; - } else resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance), null !== update.callback && (workInProgress.effectTag |= 32, update.nextEffect = null, null === queue.lastCapturedEffect ? queue.firstCapturedEffect = queue.lastCapturedEffect = update : (queue.lastCapturedEffect.nextEffect = update, queue.lastCapturedEffect = update)); - - update = update.next; - } - - null === newFirstUpdate && (queue.lastUpdate = null); - null === updateExpirationTime ? queue.lastCapturedUpdate = null : workInProgress.effectTag |= 32; - null === newFirstUpdate && null === updateExpirationTime && (newBaseState = resultState); - queue.baseState = newBaseState; - queue.firstUpdate = newFirstUpdate; - queue.firstCapturedUpdate = updateExpirationTime; - queue.expirationTime = newExpirationTime; - workInProgress.memoizedState = resultState; - } - } - - function callCallback(callback, context) { - invariant("function" === typeof callback, "Invalid argument passed as callback. Expected a function. Instead received: %s", callback); - callback.call(context); - } - - function commitUpdateQueue(finishedWork, finishedQueue, instance) { - null !== finishedQueue.firstCapturedUpdate && (null !== finishedQueue.lastUpdate && (finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate, finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate), finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null); - finishedWork = finishedQueue.firstEffect; - - for (finishedQueue.firstEffect = finishedQueue.lastEffect = null; null !== finishedWork;) { - var _callback3 = finishedWork.callback; - null !== _callback3 && (finishedWork.callback = null, callCallback(_callback3, instance)); - finishedWork = finishedWork.nextEffect; - } - - finishedWork = finishedQueue.firstCapturedEffect; - - for (finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null; null !== finishedWork;) { - finishedQueue = finishedWork.callback, null !== finishedQueue && (finishedWork.callback = null, callCallback(finishedQueue, instance)), finishedWork = finishedWork.nextEffect; - } - } - - function createCapturedValue(value, source) { - return { - value: value, - source: source, - stack: getStackAddendumByWorkInProgressFiber(source) - }; - } - - var providerCursor = createCursor(null), - valueCursor = createCursor(null), - changedBitsCursor = createCursor(0); - - function pushProvider(providerFiber) { - var context = providerFiber.type._context; - push(changedBitsCursor, context._changedBits, providerFiber); - push(valueCursor, context._currentValue, providerFiber); - push(providerCursor, providerFiber, providerFiber); - context._currentValue = providerFiber.pendingProps.value; - context._changedBits = providerFiber.stateNode; - } - - function popProvider(providerFiber) { - var changedBits = changedBitsCursor.current, - currentValue = valueCursor.current; - pop(providerCursor, providerFiber); - pop(valueCursor, providerFiber); - pop(changedBitsCursor, providerFiber); - providerFiber = providerFiber.type._context; - providerFiber._currentValue = currentValue; - providerFiber._changedBits = changedBits; - } - - var NO_CONTEXT = {}, - contextStackCursor$1 = createCursor(NO_CONTEXT), - contextFiberStackCursor = createCursor(NO_CONTEXT), - rootInstanceStackCursor = createCursor(NO_CONTEXT); - - function requiredContext(c) { - invariant(c !== NO_CONTEXT, "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."); - return c; - } - - function pushHostContainer(fiber, nextRootInstance) { - push(rootInstanceStackCursor, nextRootInstance, fiber); - push(contextFiberStackCursor, fiber, fiber); - push(contextStackCursor$1, NO_CONTEXT, fiber); - pop(contextStackCursor$1, fiber); - push(contextStackCursor$1, { - isInAParentText: !1 - }, fiber); - } - - function popHostContainer(fiber) { - pop(contextStackCursor$1, fiber); - pop(contextFiberStackCursor, fiber); - pop(rootInstanceStackCursor, fiber); - } - - function popHostContext(fiber) { - contextFiberStackCursor.current === fiber && (pop(contextStackCursor$1, fiber), pop(contextFiberStackCursor, fiber)); - } - - var hasOwnProperty = Object.prototype.hasOwnProperty; - - function is(x, y) { - return x === y ? 0 !== x || 0 !== y || 1 / x === 1 / y : x !== x && y !== y; - } - - function shallowEqual(objA, objB) { - if (is(objA, objB)) return !0; - if ("object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB) return !1; - var keysA = Object.keys(objA), - keysB = Object.keys(objB); - if (keysA.length !== keysB.length) return !1; - - for (keysB = 0; keysB < keysA.length; keysB++) { - if (!hasOwnProperty.call(objB, keysA[keysB]) || !is(objA[keysA[keysB]], objB[keysA[keysB]])) return !1; - } - - return !0; - } - - function applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, nextProps) { - var prevState = workInProgress.memoizedState; - getDerivedStateFromProps = getDerivedStateFromProps(nextProps, prevState); - prevState = null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps ? prevState : _extends({}, prevState, getDerivedStateFromProps); - workInProgress.memoizedState = prevState; - workInProgress = workInProgress.updateQueue; - null !== workInProgress && 0 === workInProgress.expirationTime && (workInProgress.baseState = prevState); - } - - var classComponentUpdater = { - isMounted: function isMounted(component) { - return (component = component._reactInternalFiber) ? 2 === isFiberMountedImpl(component) : !1; - }, - enqueueSetState: function enqueueSetState(inst, payload, callback) { - inst = inst._reactInternalFiber; - var currentTime = recalculateCurrentTime(); - currentTime = computeExpirationForFiber(currentTime, inst); - var update = createUpdate(currentTime); - update.payload = payload; - void 0 !== callback && null !== callback && (update.callback = callback); - enqueueUpdate(inst, update, currentTime); - scheduleWork(inst, currentTime); - }, - enqueueReplaceState: function enqueueReplaceState(inst, payload, callback) { - inst = inst._reactInternalFiber; - var currentTime = recalculateCurrentTime(); - currentTime = computeExpirationForFiber(currentTime, inst); - var update = createUpdate(currentTime); - update.tag = 1; - update.payload = payload; - void 0 !== callback && null !== callback && (update.callback = callback); - enqueueUpdate(inst, update, currentTime); - scheduleWork(inst, currentTime); - }, - enqueueForceUpdate: function enqueueForceUpdate(inst, callback) { - inst = inst._reactInternalFiber; - var currentTime = recalculateCurrentTime(); - currentTime = computeExpirationForFiber(currentTime, inst); - var update = createUpdate(currentTime); - update.tag = 2; - void 0 !== callback && null !== callback && (update.callback = callback); - enqueueUpdate(inst, update, currentTime); - scheduleWork(inst, currentTime); - } - }; - - function checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext) { - var instance = workInProgress.stateNode; - workInProgress = workInProgress.type; - return "function" === typeof instance.shouldComponentUpdate ? instance.shouldComponentUpdate(newProps, newState, newContext) : workInProgress.prototype && workInProgress.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0; - } - - function callComponentWillReceiveProps(workInProgress, instance, newProps, newContext) { - workInProgress = instance.state; - "function" === typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, newContext); - "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, newContext); - instance.state !== workInProgress && classComponentUpdater.enqueueReplaceState(instance, instance.state, null); - } - - function mountClassInstance(workInProgress, renderExpirationTime) { - var ctor = workInProgress.type, - instance = workInProgress.stateNode, - props = workInProgress.pendingProps, - unmaskedContext = getUnmaskedContext(workInProgress); - instance.props = props; - instance.state = workInProgress.memoizedState; - instance.refs = emptyObject; - instance.context = getMaskedContext(workInProgress, unmaskedContext); - unmaskedContext = workInProgress.updateQueue; - null !== unmaskedContext && (processUpdateQueue(workInProgress, unmaskedContext, props, instance, renderExpirationTime), instance.state = workInProgress.memoizedState); - unmaskedContext = workInProgress.type.getDerivedStateFromProps; - "function" === typeof unmaskedContext && (applyDerivedStateFromProps(workInProgress, unmaskedContext, props), instance.state = workInProgress.memoizedState); - "function" === typeof ctor.getDerivedStateFromProps || "function" === typeof instance.getSnapshotBeforeUpdate || "function" !== typeof instance.UNSAFE_componentWillMount && "function" !== typeof instance.componentWillMount || (ctor = instance.state, "function" === typeof instance.componentWillMount && instance.componentWillMount(), "function" === typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount(), ctor !== instance.state && classComponentUpdater.enqueueReplaceState(instance, instance.state, null), unmaskedContext = workInProgress.updateQueue, null !== unmaskedContext && (processUpdateQueue(workInProgress, unmaskedContext, props, instance, renderExpirationTime), instance.state = workInProgress.memoizedState)); - "function" === typeof instance.componentDidMount && (workInProgress.effectTag |= 4); - } - - var isArray$1 = Array.isArray; - - function coerceRef(returnFiber, current, element) { - returnFiber = element.ref; - - if (null !== returnFiber && "function" !== typeof returnFiber && "object" !== typeof returnFiber) { - if (element._owner) { - element = element._owner; - var inst = void 0; - element && (invariant(2 === element.tag, "Stateless function components cannot have refs."), inst = element.stateNode); - invariant(inst, "Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.", returnFiber); - var stringRef = "" + returnFiber; - if (null !== current && null !== current.ref && "function" === typeof current.ref && current.ref._stringRef === stringRef) return current.ref; - - current = function current(value) { - var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs; - null === value ? delete refs[stringRef] : refs[stringRef] = value; - }; - - current._stringRef = stringRef; - return current; - } - - invariant("string" === typeof returnFiber, "Expected ref to be a function or a string."); - invariant(element._owner, "Element ref was specified as a string (%s) but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a functional component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://fb.me/react-refs-must-have-owner for more information.", returnFiber); - } - - return returnFiber; - } - - function throwOnInvalidObjectType(returnFiber, newChild) { - "textarea" !== returnFiber.type && invariant(!1, "Objects are not valid as a React child (found: %s).%s", "[object Object]" === Object.prototype.toString.call(newChild) ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : newChild, ""); - } - - function ChildReconciler(shouldTrackSideEffects) { - function deleteChild(returnFiber, childToDelete) { - if (shouldTrackSideEffects) { - var last = returnFiber.lastEffect; - null !== last ? (last.nextEffect = childToDelete, returnFiber.lastEffect = childToDelete) : returnFiber.firstEffect = returnFiber.lastEffect = childToDelete; - childToDelete.nextEffect = null; - childToDelete.effectTag = 8; - } - } - - function deleteRemainingChildren(returnFiber, currentFirstChild) { - if (!shouldTrackSideEffects) return null; - - for (; null !== currentFirstChild;) { - deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling; - } - - return null; - } - - function mapRemainingChildren(returnFiber, currentFirstChild) { - for (returnFiber = new Map(); null !== currentFirstChild;) { - null !== currentFirstChild.key ? returnFiber.set(currentFirstChild.key, currentFirstChild) : returnFiber.set(currentFirstChild.index, currentFirstChild), currentFirstChild = currentFirstChild.sibling; - } - - return returnFiber; - } - - function useFiber(fiber, pendingProps, expirationTime) { - fiber = createWorkInProgress(fiber, pendingProps, expirationTime); - fiber.index = 0; - fiber.sibling = null; - return fiber; - } - - function placeChild(newFiber, lastPlacedIndex, newIndex) { - newFiber.index = newIndex; - if (!shouldTrackSideEffects) return lastPlacedIndex; - newIndex = newFiber.alternate; - if (null !== newIndex) return newIndex = newIndex.index, newIndex < lastPlacedIndex ? (newFiber.effectTag = 2, lastPlacedIndex) : newIndex; - newFiber.effectTag = 2; - return lastPlacedIndex; - } - - function placeSingleChild(newFiber) { - shouldTrackSideEffects && null === newFiber.alternate && (newFiber.effectTag = 2); - return newFiber; - } - - function updateTextNode(returnFiber, current, textContent, expirationTime) { - if (null === current || 6 !== current.tag) return current = createFiberFromText(textContent, returnFiber.mode, expirationTime), current.return = returnFiber, current; - current = useFiber(current, textContent, expirationTime); - current.return = returnFiber; - return current; - } - - function updateElement(returnFiber, current, element, expirationTime) { - if (null !== current && current.type === element.type) return expirationTime = useFiber(current, element.props, expirationTime), expirationTime.ref = coerceRef(returnFiber, current, element), expirationTime.return = returnFiber, expirationTime; - expirationTime = createFiberFromElement(element, returnFiber.mode, expirationTime); - expirationTime.ref = coerceRef(returnFiber, current, element); - expirationTime.return = returnFiber; - return expirationTime; - } - - function updatePortal(returnFiber, current, portal, expirationTime) { - if (null === current || 4 !== current.tag || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) return current = createFiberFromPortal(portal, returnFiber.mode, expirationTime), current.return = returnFiber, current; - current = useFiber(current, portal.children || [], expirationTime); - current.return = returnFiber; - return current; - } - - function updateFragment(returnFiber, current, fragment, expirationTime, key) { - if (null === current || 10 !== current.tag) return current = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key), current.return = returnFiber, current; - current = useFiber(current, fragment, expirationTime); - current.return = returnFiber; - return current; - } - - function createChild(returnFiber, newChild, expirationTime) { - if ("string" === typeof newChild || "number" === typeof newChild) return newChild = createFiberFromText("" + newChild, returnFiber.mode, expirationTime), newChild.return = returnFiber, newChild; - - if ("object" === typeof newChild && null !== newChild) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - return expirationTime = createFiberFromElement(newChild, returnFiber.mode, expirationTime), expirationTime.ref = coerceRef(returnFiber, null, newChild), expirationTime.return = returnFiber, expirationTime; - - case REACT_PORTAL_TYPE: - return newChild = createFiberFromPortal(newChild, returnFiber.mode, expirationTime), newChild.return = returnFiber, newChild; - } - - if (isArray$1(newChild) || getIteratorFn(newChild)) return newChild = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null), newChild.return = returnFiber, newChild; - throwOnInvalidObjectType(returnFiber, newChild); - } - - return null; - } - - function updateSlot(returnFiber, oldFiber, newChild, expirationTime) { - var key = null !== oldFiber ? oldFiber.key : null; - if ("string" === typeof newChild || "number" === typeof newChild) return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, expirationTime); - - if ("object" === typeof newChild && null !== newChild) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - return newChild.key === key ? newChild.type === REACT_FRAGMENT_TYPE ? updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key) : updateElement(returnFiber, oldFiber, newChild, expirationTime) : null; - - case REACT_PORTAL_TYPE: - return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, expirationTime) : null; - } - - if (isArray$1(newChild) || getIteratorFn(newChild)) return null !== key ? null : updateFragment(returnFiber, oldFiber, newChild, expirationTime, null); - throwOnInvalidObjectType(returnFiber, newChild); - } - - return null; - } - - function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) { - if ("string" === typeof newChild || "number" === typeof newChild) return existingChildren = existingChildren.get(newIdx) || null, updateTextNode(returnFiber, existingChildren, "" + newChild, expirationTime); - - if ("object" === typeof newChild && null !== newChild) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, newChild.type === REACT_FRAGMENT_TYPE ? updateFragment(returnFiber, existingChildren, newChild.props.children, expirationTime, newChild.key) : updateElement(returnFiber, existingChildren, newChild, expirationTime); - - case REACT_PORTAL_TYPE: - return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updatePortal(returnFiber, existingChildren, newChild, expirationTime); - } - - if (isArray$1(newChild) || getIteratorFn(newChild)) return existingChildren = existingChildren.get(newIdx) || null, updateFragment(returnFiber, existingChildren, newChild, expirationTime, null); - throwOnInvalidObjectType(returnFiber, newChild); - } - - return null; - } - - function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) { - for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++) { - oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; - var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime); - - if (null === newFiber) { - null === oldFiber && (oldFiber = nextOldFiber); - break; - } - - shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); - currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); - null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber; - previousNewFiber = newFiber; - oldFiber = nextOldFiber; - } - - if (newIdx === newChildren.length) return deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild; - - if (null === oldFiber) { - for (; newIdx < newChildren.length; newIdx++) { - if (oldFiber = createChild(returnFiber, newChildren[newIdx], expirationTime)) currentFirstChild = placeChild(oldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber; - } - - return resultingFirstChild; - } - - for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); newIdx < newChildren.length; newIdx++) { - if (nextOldFiber = updateFromMap(oldFiber, returnFiber, newIdx, newChildren[newIdx], expirationTime)) shouldTrackSideEffects && null !== nextOldFiber.alternate && oldFiber.delete(null === nextOldFiber.key ? newIdx : nextOldFiber.key), currentFirstChild = placeChild(nextOldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber; - } - - shouldTrackSideEffects && oldFiber.forEach(function (child) { - return deleteChild(returnFiber, child); - }); - return resultingFirstChild; - } - - function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) { - var iteratorFn = getIteratorFn(newChildrenIterable); - invariant("function" === typeof iteratorFn, "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue."); - newChildrenIterable = iteratorFn.call(newChildrenIterable); - invariant(null != newChildrenIterable, "An iterable object provided no iterator."); - - for (var previousNewFiber = iteratorFn = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, step = newChildrenIterable.next(); null !== oldFiber && !step.done; newIdx++, step = newChildrenIterable.next()) { - oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; - var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime); - - if (null === newFiber) { - oldFiber || (oldFiber = nextOldFiber); - break; - } - - shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); - currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); - null === previousNewFiber ? iteratorFn = newFiber : previousNewFiber.sibling = newFiber; - previousNewFiber = newFiber; - oldFiber = nextOldFiber; - } - - if (step.done) return deleteRemainingChildren(returnFiber, oldFiber), iteratorFn; - - if (null === oldFiber) { - for (; !step.done; newIdx++, step = newChildrenIterable.next()) { - step = createChild(returnFiber, step.value, expirationTime), null !== step && (currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); - } - - return iteratorFn; - } - - for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); !step.done; newIdx++, step = newChildrenIterable.next()) { - step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, expirationTime), null !== step && (shouldTrackSideEffects && null !== step.alternate && oldFiber.delete(null === step.key ? newIdx : step.key), currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); - } - - shouldTrackSideEffects && oldFiber.forEach(function (child) { - return deleteChild(returnFiber, child); - }); - return iteratorFn; - } - - return function (returnFiber, currentFirstChild, newChild, expirationTime) { - var isUnkeyedTopLevelFragment = "object" === typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key; - isUnkeyedTopLevelFragment && (newChild = newChild.props.children); - var isObject = "object" === typeof newChild && null !== newChild; - if (isObject) switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - a: { - isObject = newChild.key; - - for (isUnkeyedTopLevelFragment = currentFirstChild; null !== isUnkeyedTopLevelFragment;) { - if (isUnkeyedTopLevelFragment.key === isObject) { - if (10 === isUnkeyedTopLevelFragment.tag ? newChild.type === REACT_FRAGMENT_TYPE : isUnkeyedTopLevelFragment.type === newChild.type) { - deleteRemainingChildren(returnFiber, isUnkeyedTopLevelFragment.sibling); - currentFirstChild = useFiber(isUnkeyedTopLevelFragment, newChild.type === REACT_FRAGMENT_TYPE ? newChild.props.children : newChild.props, expirationTime); - currentFirstChild.ref = coerceRef(returnFiber, isUnkeyedTopLevelFragment, newChild); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; - break a; - } else { - deleteRemainingChildren(returnFiber, isUnkeyedTopLevelFragment); - break; - } - } else deleteChild(returnFiber, isUnkeyedTopLevelFragment); - isUnkeyedTopLevelFragment = isUnkeyedTopLevelFragment.sibling; - } - - newChild.type === REACT_FRAGMENT_TYPE ? (currentFirstChild = createFiberFromFragment(newChild.props.children, returnFiber.mode, expirationTime, newChild.key), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (expirationTime = createFiberFromElement(newChild, returnFiber.mode, expirationTime), expirationTime.ref = coerceRef(returnFiber, currentFirstChild, newChild), expirationTime.return = returnFiber, returnFiber = expirationTime); - } - - return placeSingleChild(returnFiber); - - case REACT_PORTAL_TYPE: - a: { - for (isUnkeyedTopLevelFragment = newChild.key; null !== currentFirstChild;) { - if (currentFirstChild.key === isUnkeyedTopLevelFragment) { - if (4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === newChild.containerInfo && currentFirstChild.stateNode.implementation === newChild.implementation) { - deleteRemainingChildren(returnFiber, currentFirstChild.sibling); - currentFirstChild = useFiber(currentFirstChild, newChild.children || [], expirationTime); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; - break a; - } else { - deleteRemainingChildren(returnFiber, currentFirstChild); - break; - } - } else deleteChild(returnFiber, currentFirstChild); - currentFirstChild = currentFirstChild.sibling; - } - - currentFirstChild = createFiberFromPortal(newChild, returnFiber.mode, expirationTime); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; - } - - return placeSingleChild(returnFiber); - } - if ("string" === typeof newChild || "number" === typeof newChild) return newChild = "" + newChild, null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), currentFirstChild = useFiber(currentFirstChild, newChild, expirationTime), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (deleteRemainingChildren(returnFiber, currentFirstChild), currentFirstChild = createFiberFromText(newChild, returnFiber.mode, expirationTime), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild), placeSingleChild(returnFiber); - if (isArray$1(newChild)) return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime); - if (getIteratorFn(newChild)) return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime); - isObject && throwOnInvalidObjectType(returnFiber, newChild); - if ("undefined" === typeof newChild && !isUnkeyedTopLevelFragment) switch (returnFiber.tag) { - case 2: - case 1: - expirationTime = returnFiber.type, invariant(!1, "%s(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.", expirationTime.displayName || expirationTime.name || "Component"); - } - return deleteRemainingChildren(returnFiber, currentFirstChild); - }; - } - - var reconcileChildFibers = ChildReconciler(!0), - mountChildFibers = ChildReconciler(!1), - hydrationParentFiber = null, - nextHydratableInstance = null, - isHydrating = !1; - - function tryHydrate(fiber, nextInstance) { - switch (fiber.tag) { - case 5: - return nextInstance = shim$1(nextInstance, fiber.type, fiber.pendingProps), null !== nextInstance ? (fiber.stateNode = nextInstance, !0) : !1; - - case 6: - return nextInstance = shim$1(nextInstance, fiber.pendingProps), null !== nextInstance ? (fiber.stateNode = nextInstance, !0) : !1; - - default: - return !1; - } - } - - function tryToClaimNextHydratableInstance(fiber$jscomp$0) { - if (isHydrating) { - var nextInstance = nextHydratableInstance; - - if (nextInstance) { - var firstAttemptedInstance = nextInstance; - - if (!tryHydrate(fiber$jscomp$0, nextInstance)) { - nextInstance = shim$1(firstAttemptedInstance); - - if (!nextInstance || !tryHydrate(fiber$jscomp$0, nextInstance)) { - fiber$jscomp$0.effectTag |= 2; - isHydrating = !1; - hydrationParentFiber = fiber$jscomp$0; - return; - } - - var returnFiber = hydrationParentFiber, - fiber = new FiberNode(5, null, null, 0); - fiber.type = "DELETED"; - fiber.stateNode = firstAttemptedInstance; - fiber.return = returnFiber; - fiber.effectTag = 8; - null !== returnFiber.lastEffect ? (returnFiber.lastEffect.nextEffect = fiber, returnFiber.lastEffect = fiber) : returnFiber.firstEffect = returnFiber.lastEffect = fiber; - } - - hydrationParentFiber = fiber$jscomp$0; - nextHydratableInstance = shim$1(nextInstance); - } else fiber$jscomp$0.effectTag |= 2, isHydrating = !1, hydrationParentFiber = fiber$jscomp$0; - } - } - - function reconcileChildren(current, workInProgress, nextChildren) { - reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, workInProgress.expirationTime); - } - - function reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime) { - workInProgress.child = null === current ? mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime) : reconcileChildFibers(workInProgress, current.child, nextChildren, renderExpirationTime); - } - - function markRef(current, workInProgress) { - var ref = workInProgress.ref; - if (null === current && null !== ref || null !== current && current.ref !== ref) workInProgress.effectTag |= 128; - } - - function finishClassComponent(current, workInProgress, shouldUpdate, hasContext, renderExpirationTime) { - markRef(current, workInProgress); - var didCaptureError = 0 !== (workInProgress.effectTag & 64); - if (!shouldUpdate && !didCaptureError) return hasContext && invalidateContextProvider(workInProgress, !1), bailoutOnAlreadyFinishedWork(current, workInProgress); - shouldUpdate = workInProgress.stateNode; - ReactCurrentOwner.current = workInProgress; - var nextChildren = didCaptureError ? null : shouldUpdate.render(); - workInProgress.effectTag |= 1; - didCaptureError && (reconcileChildrenAtExpirationTime(current, workInProgress, null, renderExpirationTime), workInProgress.child = null); - reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime); - workInProgress.memoizedState = shouldUpdate.state; - workInProgress.memoizedProps = shouldUpdate.props; - hasContext && invalidateContextProvider(workInProgress, !0); - return workInProgress.child; - } - - function pushHostRootContext(workInProgress) { - var root = workInProgress.stateNode; - root.pendingContext ? pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context) : root.context && pushTopLevelContextObject(workInProgress, root.context, !1); - pushHostContainer(workInProgress, root.containerInfo); - } - - function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) { - var fiber = workInProgress.child; - null !== fiber && (fiber.return = workInProgress); - - for (; null !== fiber;) { - switch (fiber.tag) { - case 12: - var nextFiber = fiber.stateNode | 0; - - if (fiber.type === context && 0 !== (nextFiber & changedBits)) { - for (nextFiber = fiber; null !== nextFiber;) { - var alternate = nextFiber.alternate; - if (0 === nextFiber.expirationTime || nextFiber.expirationTime > renderExpirationTime) nextFiber.expirationTime = renderExpirationTime, null !== alternate && (0 === alternate.expirationTime || alternate.expirationTime > renderExpirationTime) && (alternate.expirationTime = renderExpirationTime);else if (null !== alternate && (0 === alternate.expirationTime || alternate.expirationTime > renderExpirationTime)) alternate.expirationTime = renderExpirationTime;else break; - nextFiber = nextFiber.return; - } - - nextFiber = null; - } else nextFiber = fiber.child; - - break; - - case 13: - nextFiber = fiber.type === workInProgress.type ? null : fiber.child; - break; - - default: - nextFiber = fiber.child; - } - - if (null !== nextFiber) nextFiber.return = fiber;else for (nextFiber = fiber; null !== nextFiber;) { - if (nextFiber === workInProgress) { - nextFiber = null; - break; - } - - fiber = nextFiber.sibling; - - if (null !== fiber) { - fiber.return = nextFiber.return; - nextFiber = fiber; - break; - } - - nextFiber = nextFiber.return; - } - fiber = nextFiber; - } - } - - function updateContextProvider(current, workInProgress, renderExpirationTime) { - var context = workInProgress.type._context, - newProps = workInProgress.pendingProps, - oldProps = workInProgress.memoizedProps, - canBailOnProps = !0; - if (didPerformWorkStackCursor.current) canBailOnProps = !1;else if (oldProps === newProps) return workInProgress.stateNode = 0, pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); - var newValue = newProps.value; - workInProgress.memoizedProps = newProps; - if (null === oldProps) newValue = 1073741823;else if (oldProps.value === newProps.value) { - if (oldProps.children === newProps.children && canBailOnProps) return workInProgress.stateNode = 0, pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); - newValue = 0; - } else { - var oldValue = oldProps.value; - - if (oldValue === newValue && (0 !== oldValue || 1 / oldValue === 1 / newValue) || oldValue !== oldValue && newValue !== newValue) { - if (oldProps.children === newProps.children && canBailOnProps) return workInProgress.stateNode = 0, pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); - newValue = 0; - } else if (newValue = "function" === typeof context._calculateChangedBits ? context._calculateChangedBits(oldValue, newValue) : 1073741823, newValue |= 0, 0 === newValue) { - if (oldProps.children === newProps.children && canBailOnProps) return workInProgress.stateNode = 0, pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); - } else propagateContextChange(workInProgress, context, newValue, renderExpirationTime); - } - workInProgress.stateNode = newValue; - pushProvider(workInProgress); - reconcileChildren(current, workInProgress, newProps.children); - return workInProgress.child; - } - - function bailoutOnAlreadyFinishedWork(current, workInProgress) { - invariant(null === current || workInProgress.child === current.child, "Resuming work not yet implemented."); - - if (null !== workInProgress.child) { - current = workInProgress.child; - var newChild = createWorkInProgress(current, current.pendingProps, current.expirationTime); - workInProgress.child = newChild; - - for (newChild.return = workInProgress; null !== current.sibling;) { - current = current.sibling, newChild = newChild.sibling = createWorkInProgress(current, current.pendingProps, current.expirationTime), newChild.return = workInProgress; - } - - newChild.sibling = null; - } - - return workInProgress.child; - } - - function beginWork(current, workInProgress, renderExpirationTime) { - if (0 === workInProgress.expirationTime || workInProgress.expirationTime > renderExpirationTime) { - switch (workInProgress.tag) { - case 3: - pushHostRootContext(workInProgress); - break; - - case 2: - pushContextProvider(workInProgress); - break; - - case 4: - pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); - break; - - case 13: - pushProvider(workInProgress); - } - - return null; - } - - switch (workInProgress.tag) { - case 0: - invariant(null === current, "An indeterminate component should never have mounted. This error is likely caused by a bug in React. Please file an issue."); - var fn = workInProgress.type, - props = workInProgress.pendingProps, - unmaskedContext = getUnmaskedContext(workInProgress); - unmaskedContext = getMaskedContext(workInProgress, unmaskedContext); - fn = fn(props, unmaskedContext); - workInProgress.effectTag |= 1; - "object" === typeof fn && null !== fn && "function" === typeof fn.render && void 0 === fn.$$typeof ? (unmaskedContext = workInProgress.type, workInProgress.tag = 2, workInProgress.memoizedState = null !== fn.state && void 0 !== fn.state ? fn.state : null, unmaskedContext = unmaskedContext.getDerivedStateFromProps, "function" === typeof unmaskedContext && applyDerivedStateFromProps(workInProgress, unmaskedContext, props), props = pushContextProvider(workInProgress), fn.updater = classComponentUpdater, workInProgress.stateNode = fn, fn._reactInternalFiber = workInProgress, mountClassInstance(workInProgress, renderExpirationTime), current = finishClassComponent(current, workInProgress, !0, props, renderExpirationTime)) : (workInProgress.tag = 1, reconcileChildren(current, workInProgress, fn), workInProgress.memoizedProps = props, current = workInProgress.child); - return current; - - case 1: - return props = workInProgress.type, renderExpirationTime = workInProgress.pendingProps, didPerformWorkStackCursor.current || workInProgress.memoizedProps !== renderExpirationTime ? (fn = getUnmaskedContext(workInProgress), fn = getMaskedContext(workInProgress, fn), props = props(renderExpirationTime, fn), workInProgress.effectTag |= 1, reconcileChildren(current, workInProgress, props), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; - - case 2: - props = pushContextProvider(workInProgress); - if (null === current) { - if (null === workInProgress.stateNode) { - var props$jscomp$0 = workInProgress.pendingProps, - ctor = workInProgress.type; - fn = getUnmaskedContext(workInProgress); - var needsContext = 2 === workInProgress.tag && null != workInProgress.type.contextTypes; - unmaskedContext = needsContext ? getMaskedContext(workInProgress, fn) : emptyObject; - props$jscomp$0 = new ctor(props$jscomp$0, unmaskedContext); - workInProgress.memoizedState = null !== props$jscomp$0.state && void 0 !== props$jscomp$0.state ? props$jscomp$0.state : null; - props$jscomp$0.updater = classComponentUpdater; - workInProgress.stateNode = props$jscomp$0; - props$jscomp$0._reactInternalFiber = workInProgress; - needsContext && (needsContext = workInProgress.stateNode, needsContext.__reactInternalMemoizedUnmaskedChildContext = fn, needsContext.__reactInternalMemoizedMaskedChildContext = unmaskedContext); - mountClassInstance(workInProgress, renderExpirationTime); - fn = !0; - } else { - ctor = workInProgress.type; - fn = workInProgress.stateNode; - needsContext = workInProgress.memoizedProps; - unmaskedContext = workInProgress.pendingProps; - fn.props = needsContext; - var oldContext = fn.context; - props$jscomp$0 = getUnmaskedContext(workInProgress); - props$jscomp$0 = getMaskedContext(workInProgress, props$jscomp$0); - var getDerivedStateFromProps = ctor.getDerivedStateFromProps; - (ctor = "function" === typeof getDerivedStateFromProps || "function" === typeof fn.getSnapshotBeforeUpdate) || "function" !== typeof fn.UNSAFE_componentWillReceiveProps && "function" !== typeof fn.componentWillReceiveProps || (needsContext !== unmaskedContext || oldContext !== props$jscomp$0) && callComponentWillReceiveProps(workInProgress, fn, unmaskedContext, props$jscomp$0); - hasForceUpdate = !1; - var oldState = workInProgress.memoizedState; - oldContext = fn.state = oldState; - var updateQueue = workInProgress.updateQueue; - null !== updateQueue && (processUpdateQueue(workInProgress, updateQueue, unmaskedContext, fn, renderExpirationTime), oldContext = workInProgress.memoizedState); - needsContext !== unmaskedContext || oldState !== oldContext || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, unmaskedContext), oldContext = workInProgress.memoizedState), (needsContext = hasForceUpdate || checkShouldComponentUpdate(workInProgress, needsContext, unmaskedContext, oldState, oldContext, props$jscomp$0)) ? (ctor || "function" !== typeof fn.UNSAFE_componentWillMount && "function" !== typeof fn.componentWillMount || ("function" === typeof fn.componentWillMount && fn.componentWillMount(), "function" === typeof fn.UNSAFE_componentWillMount && fn.UNSAFE_componentWillMount()), "function" === typeof fn.componentDidMount && (workInProgress.effectTag |= 4)) : ("function" === typeof fn.componentDidMount && (workInProgress.effectTag |= 4), workInProgress.memoizedProps = unmaskedContext, workInProgress.memoizedState = oldContext), fn.props = unmaskedContext, fn.state = oldContext, fn.context = props$jscomp$0, fn = needsContext) : ("function" === typeof fn.componentDidMount && (workInProgress.effectTag |= 4), fn = !1); - } - } else ctor = workInProgress.type, fn = workInProgress.stateNode, unmaskedContext = workInProgress.memoizedProps, needsContext = workInProgress.pendingProps, fn.props = unmaskedContext, oldContext = fn.context, props$jscomp$0 = getUnmaskedContext(workInProgress), props$jscomp$0 = getMaskedContext(workInProgress, props$jscomp$0), getDerivedStateFromProps = ctor.getDerivedStateFromProps, (ctor = "function" === typeof getDerivedStateFromProps || "function" === typeof fn.getSnapshotBeforeUpdate) || "function" !== typeof fn.UNSAFE_componentWillReceiveProps && "function" !== typeof fn.componentWillReceiveProps || (unmaskedContext !== needsContext || oldContext !== props$jscomp$0) && callComponentWillReceiveProps(workInProgress, fn, needsContext, props$jscomp$0), hasForceUpdate = !1, oldContext = workInProgress.memoizedState, oldState = fn.state = oldContext, updateQueue = workInProgress.updateQueue, null !== updateQueue && (processUpdateQueue(workInProgress, updateQueue, needsContext, fn, renderExpirationTime), oldState = workInProgress.memoizedState), unmaskedContext !== needsContext || oldContext !== oldState || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, needsContext), oldState = workInProgress.memoizedState), (getDerivedStateFromProps = hasForceUpdate || checkShouldComponentUpdate(workInProgress, unmaskedContext, needsContext, oldContext, oldState, props$jscomp$0)) ? (ctor || "function" !== typeof fn.UNSAFE_componentWillUpdate && "function" !== typeof fn.componentWillUpdate || ("function" === typeof fn.componentWillUpdate && fn.componentWillUpdate(needsContext, oldState, props$jscomp$0), "function" === typeof fn.UNSAFE_componentWillUpdate && fn.UNSAFE_componentWillUpdate(needsContext, oldState, props$jscomp$0)), "function" === typeof fn.componentDidUpdate && (workInProgress.effectTag |= 4), "function" === typeof fn.getSnapshotBeforeUpdate && (workInProgress.effectTag |= 256)) : ("function" !== typeof fn.componentDidUpdate || unmaskedContext === current.memoizedProps && oldContext === current.memoizedState || (workInProgress.effectTag |= 4), "function" !== typeof fn.getSnapshotBeforeUpdate || unmaskedContext === current.memoizedProps && oldContext === current.memoizedState || (workInProgress.effectTag |= 256), workInProgress.memoizedProps = needsContext, workInProgress.memoizedState = oldState), fn.props = needsContext, fn.state = oldState, fn.context = props$jscomp$0, fn = getDerivedStateFromProps) : ("function" !== typeof fn.componentDidUpdate || unmaskedContext === current.memoizedProps && oldContext === current.memoizedState || (workInProgress.effectTag |= 4), "function" !== typeof fn.getSnapshotBeforeUpdate || unmaskedContext === current.memoizedProps && oldContext === current.memoizedState || (workInProgress.effectTag |= 256), fn = !1); - return finishClassComponent(current, workInProgress, fn, props, renderExpirationTime); - - case 3: - return pushHostRootContext(workInProgress), props = workInProgress.updateQueue, null !== props ? (fn = workInProgress.memoizedState, fn = null !== fn ? fn.element : null, processUpdateQueue(workInProgress, props, workInProgress.pendingProps, null, renderExpirationTime), renderExpirationTime = workInProgress.memoizedState.element, renderExpirationTime === fn ? current = bailoutOnAlreadyFinishedWork(current, workInProgress) : (reconcileChildren(current, workInProgress, renderExpirationTime), current = workInProgress.child)) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; - - case 5: - return requiredContext(rootInstanceStackCursor.current), renderExpirationTime = requiredContext(contextStackCursor$1.current), props = workInProgress.type, props = "AndroidTextInput" === props || "RCTMultilineTextInputView" === props || "RCTSinglelineTextInputView" === props || "RCTText" === props || "RCTVirtualText" === props, props = renderExpirationTime.isInAParentText !== props ? { - isInAParentText: props - } : renderExpirationTime, renderExpirationTime !== props && (push(contextFiberStackCursor, workInProgress, workInProgress), push(contextStackCursor$1, props, workInProgress)), null === current && tryToClaimNextHydratableInstance(workInProgress), props = workInProgress.memoizedProps, renderExpirationTime = workInProgress.pendingProps, didPerformWorkStackCursor.current || props !== renderExpirationTime ? (props = renderExpirationTime.children, markRef(current, workInProgress), reconcileChildren(current, workInProgress, props), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; - - case 6: - return null === current && tryToClaimNextHydratableInstance(workInProgress), workInProgress.memoizedProps = workInProgress.pendingProps, null; - - case 16: - return null; - - case 4: - return pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo), props = workInProgress.pendingProps, didPerformWorkStackCursor.current || workInProgress.memoizedProps !== props ? (null === current ? workInProgress.child = reconcileChildFibers(workInProgress, null, props, renderExpirationTime) : reconcileChildren(current, workInProgress, props), workInProgress.memoizedProps = props, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; - - case 14: - return props = workInProgress.type.render, renderExpirationTime = workInProgress.pendingProps, fn = workInProgress.ref, didPerformWorkStackCursor.current || workInProgress.memoizedProps !== renderExpirationTime || fn !== (null !== current ? current.ref : null) ? (props = props(renderExpirationTime, fn), reconcileChildren(current, workInProgress, props), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; - - case 10: - return renderExpirationTime = workInProgress.pendingProps, didPerformWorkStackCursor.current || workInProgress.memoizedProps !== renderExpirationTime ? (reconcileChildren(current, workInProgress, renderExpirationTime), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; - - case 11: - return renderExpirationTime = workInProgress.pendingProps.children, didPerformWorkStackCursor.current || null !== renderExpirationTime && workInProgress.memoizedProps !== renderExpirationTime ? (reconcileChildren(current, workInProgress, renderExpirationTime), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; - - case 15: - return renderExpirationTime = workInProgress.pendingProps, workInProgress.memoizedProps === renderExpirationTime ? current = bailoutOnAlreadyFinishedWork(current, workInProgress) : (reconcileChildren(current, workInProgress, renderExpirationTime.children), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child), current; - - case 13: - return updateContextProvider(current, workInProgress, renderExpirationTime); - - case 12: - a: if (fn = workInProgress.type, unmaskedContext = workInProgress.pendingProps, needsContext = workInProgress.memoizedProps, props = fn._currentValue, props$jscomp$0 = fn._changedBits, didPerformWorkStackCursor.current || 0 !== props$jscomp$0 || needsContext !== unmaskedContext) { - workInProgress.memoizedProps = unmaskedContext; - ctor = unmaskedContext.unstable_observedBits; - if (void 0 === ctor || null === ctor) ctor = 1073741823; - workInProgress.stateNode = ctor; - if (0 !== (props$jscomp$0 & ctor)) propagateContextChange(workInProgress, fn, props$jscomp$0, renderExpirationTime);else if (needsContext === unmaskedContext) { - current = bailoutOnAlreadyFinishedWork(current, workInProgress); - break a; - } - renderExpirationTime = unmaskedContext.children; - renderExpirationTime = renderExpirationTime(props); - workInProgress.effectTag |= 1; - reconcileChildren(current, workInProgress, renderExpirationTime); - current = workInProgress.child; - } else current = bailoutOnAlreadyFinishedWork(current, workInProgress); - - return current; - - default: - invariant(!1, "Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue."); - } - } - - var updateHostContainer = void 0, - updateHostComponent$1 = void 0, - updateHostText$1 = void 0; - - updateHostContainer = function updateHostContainer() {}; - - updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, updatePayload) { - if (workInProgress.updateQueue = updatePayload) workInProgress.effectTag |= 4; - }; - - updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { - oldText !== newText && (workInProgress.effectTag |= 4); - }; - - function completeWork(current, workInProgress) { - var newProps = workInProgress.pendingProps; - - switch (workInProgress.tag) { - case 1: - return null; - - case 2: - return popContextProvider(workInProgress), null; - - case 3: - popHostContainer(workInProgress); - popTopLevelContextObject(workInProgress); - newProps = workInProgress.stateNode; - newProps.pendingContext && (newProps.context = newProps.pendingContext, newProps.pendingContext = null); - if (null === current || null === current.child) workInProgress.effectTag &= -3; - updateHostContainer(workInProgress); - return null; - - case 5: - popHostContext(workInProgress); - var rootContainerInstance = requiredContext(rootInstanceStackCursor.current), - type = workInProgress.type; - - if (null !== current && null != workInProgress.stateNode) { - var oldProps = current.memoizedProps, - currentHostContext = requiredContext(contextStackCursor$1.current); - updateHostComponent$1(current, workInProgress, emptyObject, type, oldProps, newProps, rootContainerInstance, currentHostContext); - current.ref !== workInProgress.ref && (workInProgress.effectTag |= 128); - } else { - if (!newProps) return invariant(null !== workInProgress.stateNode, "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."), null; - current = requiredContext(contextStackCursor$1.current); - oldProps = allocateTag(); - currentHostContext = ReactNativeViewConfigRegistry.get(type); - invariant("RCTView" !== type || !current.isInAParentText, "Nesting of within is not currently supported."); - var updatePayload = diffProperties(null, emptyObject$1, newProps, currentHostContext.validAttributes); - UIManager.createView(oldProps, currentHostContext.uiViewClassName, rootContainerInstance, updatePayload); - currentHostContext = new ReactNativeFiberHostComponent(oldProps, currentHostContext); - instanceCache[oldProps] = workInProgress; - instanceProps[oldProps] = newProps; - - a: for (oldProps = workInProgress.child; null !== oldProps;) { - if (5 === oldProps.tag || 6 === oldProps.tag) currentHostContext._children.push(oldProps.stateNode);else if (4 !== oldProps.tag && null !== oldProps.child) { - oldProps.child.return = oldProps; - oldProps = oldProps.child; - continue; - } - if (oldProps === workInProgress) break; - - for (; null === oldProps.sibling;) { - if (null === oldProps.return || oldProps.return === workInProgress) break a; - oldProps = oldProps.return; - } - - oldProps.sibling.return = oldProps.return; - oldProps = oldProps.sibling; - } - - finalizeInitialChildren(currentHostContext, type, newProps, rootContainerInstance, current) && (workInProgress.effectTag |= 4); - workInProgress.stateNode = currentHostContext; - null !== workInProgress.ref && (workInProgress.effectTag |= 128); - } - - return null; - - case 6: - if (current && null != workInProgress.stateNode) updateHostText$1(current, workInProgress, current.memoizedProps, newProps);else { - if ("string" !== typeof newProps) return invariant(null !== workInProgress.stateNode, "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."), null; - rootContainerInstance = requiredContext(rootInstanceStackCursor.current); - type = requiredContext(contextStackCursor$1.current); - invariant(type.isInAParentText, "Text strings must be rendered within a component."); - type = allocateTag(); - UIManager.createView(type, "RCTRawText", rootContainerInstance, { - text: newProps - }); - instanceCache[type] = workInProgress; - workInProgress.stateNode = type; - } - return null; - - case 14: - return null; - - case 16: - return null; - - case 10: - return null; - - case 11: - return null; - - case 15: - return null; - - case 4: - return popHostContainer(workInProgress), updateHostContainer(workInProgress), null; - - case 13: - return popProvider(workInProgress), null; - - case 12: - return null; - - case 0: - invariant(!1, "An indeterminate component should have become determinate before completing. This error is likely caused by a bug in React. Please file an issue."); - - default: - invariant(!1, "Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue."); - } - } - - function logError(boundary, errorInfo) { - var source = errorInfo.source, - stack = errorInfo.stack; - null === stack && null !== source && (stack = getStackAddendumByWorkInProgressFiber(source)); - null !== source && getComponentName(source); - source = null !== stack ? stack : ""; - errorInfo = errorInfo.value; - null !== boundary && 2 === boundary.tag && getComponentName(boundary); - - try { - if (errorInfo instanceof Error) { - var message = errorInfo.message, - name = errorInfo.name; - var errorToHandle = errorInfo; - - try { - errorToHandle.message = (message ? name + ": " + message : name) + "\n\nThis error is located at:" + source; - } catch (e) {} - } else errorToHandle = "string" === typeof errorInfo ? Error(errorInfo + "\n\nThis error is located at:" + source) : Error("Unspecified error at:" + source); - - ExceptionsManager.handleException(errorToHandle, !1); - } catch (e) { - e && e.suppressReactErrorLogging || console.error(e); - } - } - - function safelyDetachRef(current) { - var ref = current.ref; - if (null !== ref) if ("function" === typeof ref) try { - ref(null); - } catch (refError) { - captureCommitPhaseError(current, refError); - } else ref.current = null; - } - - function commitUnmount(current) { - "function" === typeof onCommitUnmount && onCommitUnmount(current); - - switch (current.tag) { - case 2: - safelyDetachRef(current); - var instance = current.stateNode; - if ("function" === typeof instance.componentWillUnmount) try { - instance.props = current.memoizedProps, instance.state = current.memoizedState, instance.componentWillUnmount(); - } catch (unmountError) { - captureCommitPhaseError(current, unmountError); - } - break; - - case 5: - safelyDetachRef(current); - break; - - case 4: - unmountHostComponents(current); - } - } - - function isHostParent(fiber) { - return 5 === fiber.tag || 3 === fiber.tag || 4 === fiber.tag; - } - - function commitPlacement(finishedWork) { - a: { - for (var parent = finishedWork.return; null !== parent;) { - if (isHostParent(parent)) { - var parentFiber = parent; - break a; - } - - parent = parent.return; - } - - invariant(!1, "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); - parentFiber = void 0; - } - - var isContainer = parent = void 0; - - switch (parentFiber.tag) { - case 5: - parent = parentFiber.stateNode; - isContainer = !1; - break; - - case 3: - parent = parentFiber.stateNode.containerInfo; - isContainer = !0; - break; - - case 4: - parent = parentFiber.stateNode.containerInfo; - isContainer = !0; - break; - - default: - invariant(!1, "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue."); - } - - parentFiber.effectTag & 16 && (parentFiber.effectTag &= -17); - - a: b: for (parentFiber = finishedWork;;) { - for (; null === parentFiber.sibling;) { - if (null === parentFiber.return || isHostParent(parentFiber.return)) { - parentFiber = null; - break a; - } - - parentFiber = parentFiber.return; - } - - parentFiber.sibling.return = parentFiber.return; - - for (parentFiber = parentFiber.sibling; 5 !== parentFiber.tag && 6 !== parentFiber.tag;) { - if (parentFiber.effectTag & 2) continue b; - if (null === parentFiber.child || 4 === parentFiber.tag) continue b;else parentFiber.child.return = parentFiber, parentFiber = parentFiber.child; - } - - if (!(parentFiber.effectTag & 2)) { - parentFiber = parentFiber.stateNode; - break a; - } - } - - for (var node = finishedWork;;) { - if (5 === node.tag || 6 === node.tag) { - if (parentFiber) { - if (isContainer) invariant("number" !== typeof parent, "Container does not support insertBefore operation");else { - var parentInstance = parent, - child = node.stateNode, - beforeChild = parentFiber, - children = parentInstance._children, - index = children.indexOf(child); - 0 <= index ? (children.splice(index, 1), beforeChild = children.indexOf(beforeChild), children.splice(beforeChild, 0, child), UIManager.manageChildren(parentInstance._nativeTag, [index], [beforeChild], [], [], [])) : (index = children.indexOf(beforeChild), children.splice(index, 0, child), UIManager.manageChildren(parentInstance._nativeTag, [], [], ["number" === typeof child ? child : child._nativeTag], [index], [])); - } - } else isContainer ? (parentInstance = node.stateNode, UIManager.setChildren(parent, ["number" === typeof parentInstance ? parentInstance : parentInstance._nativeTag])) : (parentInstance = parent, child = node.stateNode, children = "number" === typeof child ? child : child._nativeTag, index = parentInstance._children, beforeChild = index.indexOf(child), 0 <= beforeChild ? (index.splice(beforeChild, 1), index.push(child), UIManager.manageChildren(parentInstance._nativeTag, [beforeChild], [index.length - 1], [], [], [])) : (index.push(child), UIManager.manageChildren(parentInstance._nativeTag, [], [], [children], [index.length - 1], []))); - } else if (4 !== node.tag && null !== node.child) { - node.child.return = node; - node = node.child; - continue; - } - if (node === finishedWork) break; - - for (; null === node.sibling;) { - if (null === node.return || node.return === finishedWork) return; - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - } - - function unmountHostComponents(current) { - for (var node = current, currentParentIsValid = !1, currentParent = void 0, currentParentIsContainer = void 0;;) { - if (!currentParentIsValid) { - currentParentIsValid = node.return; - - a: for (;;) { - invariant(null !== currentParentIsValid, "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); - - switch (currentParentIsValid.tag) { - case 5: - currentParent = currentParentIsValid.stateNode; - currentParentIsContainer = !1; - break a; - - case 3: - currentParent = currentParentIsValid.stateNode.containerInfo; - currentParentIsContainer = !0; - break a; - - case 4: - currentParent = currentParentIsValid.stateNode.containerInfo; - currentParentIsContainer = !0; - break a; - } - - currentParentIsValid = currentParentIsValid.return; - } - - currentParentIsValid = !0; - } - - if (5 === node.tag || 6 === node.tag) { - a: for (var root = node, node$jscomp$0 = root;;) { - if (commitUnmount(node$jscomp$0), null !== node$jscomp$0.child && 4 !== node$jscomp$0.tag) node$jscomp$0.child.return = node$jscomp$0, node$jscomp$0 = node$jscomp$0.child;else { - if (node$jscomp$0 === root) break; - - for (; null === node$jscomp$0.sibling;) { - if (null === node$jscomp$0.return || node$jscomp$0.return === root) break a; - node$jscomp$0 = node$jscomp$0.return; - } - - node$jscomp$0.sibling.return = node$jscomp$0.return; - node$jscomp$0 = node$jscomp$0.sibling; - } - } - - if (currentParentIsContainer) root = currentParent, recursivelyUncacheFiberNode(node.stateNode), UIManager.manageChildren(root, [], [], [], [], [0]);else { - root = currentParent; - var child = node.stateNode; - recursivelyUncacheFiberNode(child); - node$jscomp$0 = root._children; - child = node$jscomp$0.indexOf(child); - node$jscomp$0.splice(child, 1); - UIManager.manageChildren(root._nativeTag, [], [], [], [], [child]); - } - } else if (4 === node.tag ? currentParent = node.stateNode.containerInfo : commitUnmount(node), null !== node.child) { - node.child.return = node; - node = node.child; - continue; - } - - if (node === current) break; - - for (; null === node.sibling;) { - if (null === node.return || node.return === current) return; - node = node.return; - 4 === node.tag && (currentParentIsValid = !1); - } - - node.sibling.return = node.return; - node = node.sibling; - } - } - - function commitWork(current, finishedWork) { - switch (finishedWork.tag) { - case 2: - break; - - case 5: - var instance = finishedWork.stateNode; - - if (null != instance) { - var newProps = finishedWork.memoizedProps; - current = null !== current ? current.memoizedProps : newProps; - var updatePayload = finishedWork.updateQueue; - finishedWork.updateQueue = null; - null !== updatePayload && (finishedWork = instance.viewConfig, instanceProps[instance._nativeTag] = newProps, newProps = diffProperties(null, current, newProps, finishedWork.validAttributes), null != newProps && UIManager.updateView(instance._nativeTag, finishedWork.uiViewClassName, newProps)); - } - - break; - - case 6: - invariant(null !== finishedWork.stateNode, "This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue."); - UIManager.updateView(finishedWork.stateNode, "RCTRawText", { - text: finishedWork.memoizedProps - }); - break; - - case 3: - break; - - case 15: - break; - - case 16: - break; - - default: - invariant(!1, "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); - } - } - - function createRootErrorUpdate(fiber, errorInfo, expirationTime) { - expirationTime = createUpdate(expirationTime); - expirationTime.tag = 3; - expirationTime.payload = { - element: null - }; - var error = errorInfo.value; - - expirationTime.callback = function () { - onUncaughtError(error); - logError(fiber, errorInfo); - }; - - return expirationTime; - } - - function createClassErrorUpdate(fiber, errorInfo, expirationTime) { - expirationTime = createUpdate(expirationTime); - expirationTime.tag = 3; - var inst = fiber.stateNode; - null !== inst && "function" === typeof inst.componentDidCatch && (expirationTime.callback = function () { - null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this); - var error = errorInfo.value, - stack = errorInfo.stack; - logError(fiber, errorInfo); - this.componentDidCatch(error, { - componentStack: null !== stack ? stack : "" - }); - }); - return expirationTime; - } - - function unwindWork(workInProgress) { - switch (workInProgress.tag) { - case 2: - popContextProvider(workInProgress); - var effectTag = workInProgress.effectTag; - return effectTag & 1024 ? (workInProgress.effectTag = effectTag & -1025 | 64, workInProgress) : null; - - case 3: - return popHostContainer(workInProgress), popTopLevelContextObject(workInProgress), effectTag = workInProgress.effectTag, effectTag & 1024 ? (workInProgress.effectTag = effectTag & -1025 | 64, workInProgress) : null; - - case 5: - return popHostContext(workInProgress), null; - - case 16: - return effectTag = workInProgress.effectTag, effectTag & 1024 ? (workInProgress.effectTag = effectTag & -1025 | 64, workInProgress) : null; - - case 4: - return popHostContainer(workInProgress), null; - - case 13: - return popProvider(workInProgress), null; - - default: - return null; - } - } - - var originalStartTimeMs = now$1(), - mostRecentCurrentTime = 2, - mostRecentCurrentTimeMs = originalStartTimeMs, - lastUniqueAsyncExpiration = 0, - expirationContext = 0, - isWorking = !1, - nextUnitOfWork = null, - nextRoot = null, - nextRenderExpirationTime = 0, - nextLatestTimeoutMs = -1, - nextRenderDidError = !1, - nextEffect = null, - isCommitting$1 = !1, - legacyErrorBoundariesThatAlreadyFailed = null; - - function resetStack() { - if (null !== nextUnitOfWork) for (var interruptedWork = nextUnitOfWork.return; null !== interruptedWork;) { - var interruptedWork$jscomp$0 = interruptedWork; - - switch (interruptedWork$jscomp$0.tag) { - case 2: - popContextProvider(interruptedWork$jscomp$0); - break; - - case 3: - popHostContainer(interruptedWork$jscomp$0); - popTopLevelContextObject(interruptedWork$jscomp$0); - break; - - case 5: - popHostContext(interruptedWork$jscomp$0); - break; - - case 4: - popHostContainer(interruptedWork$jscomp$0); - break; - - case 13: - popProvider(interruptedWork$jscomp$0); - } - - interruptedWork = interruptedWork.return; - } - nextRoot = null; - nextRenderExpirationTime = 0; - nextLatestTimeoutMs = -1; - nextRenderDidError = !1; - nextUnitOfWork = null; - } - - function completeUnitOfWork(workInProgress$jscomp$0) { - for (;;) { - var current = workInProgress$jscomp$0.alternate, - returnFiber = workInProgress$jscomp$0.return, - siblingFiber = workInProgress$jscomp$0.sibling; - - if (0 === (workInProgress$jscomp$0.effectTag & 512)) { - current = completeWork(current, workInProgress$jscomp$0, nextRenderExpirationTime); - var workInProgress = workInProgress$jscomp$0; - - if (1073741823 === nextRenderExpirationTime || 1073741823 !== workInProgress.expirationTime) { - var newExpirationTime = 0; - - switch (workInProgress.tag) { - case 3: - case 2: - var updateQueue = workInProgress.updateQueue; - null !== updateQueue && (newExpirationTime = updateQueue.expirationTime); - } - - for (updateQueue = workInProgress.child; null !== updateQueue;) { - 0 !== updateQueue.expirationTime && (0 === newExpirationTime || newExpirationTime > updateQueue.expirationTime) && (newExpirationTime = updateQueue.expirationTime), updateQueue = updateQueue.sibling; - } - - workInProgress.expirationTime = newExpirationTime; - } - - if (null !== current) return current; - null !== returnFiber && 0 === (returnFiber.effectTag & 512) && (null === returnFiber.firstEffect && (returnFiber.firstEffect = workInProgress$jscomp$0.firstEffect), null !== workInProgress$jscomp$0.lastEffect && (null !== returnFiber.lastEffect && (returnFiber.lastEffect.nextEffect = workInProgress$jscomp$0.firstEffect), returnFiber.lastEffect = workInProgress$jscomp$0.lastEffect), 1 < workInProgress$jscomp$0.effectTag && (null !== returnFiber.lastEffect ? returnFiber.lastEffect.nextEffect = workInProgress$jscomp$0 : returnFiber.firstEffect = workInProgress$jscomp$0, returnFiber.lastEffect = workInProgress$jscomp$0)); - } else { - workInProgress$jscomp$0 = unwindWork(workInProgress$jscomp$0, nextRenderExpirationTime); - if (null !== workInProgress$jscomp$0) return workInProgress$jscomp$0.effectTag &= 511, workInProgress$jscomp$0; - null !== returnFiber && (returnFiber.firstEffect = returnFiber.lastEffect = null, returnFiber.effectTag |= 512); - } - - if (null !== siblingFiber) return siblingFiber; - if (null !== returnFiber) workInProgress$jscomp$0 = returnFiber;else break; - } - - return null; - } - - function performUnitOfWork(workInProgress) { - var next = beginWork(workInProgress.alternate, workInProgress, nextRenderExpirationTime); - null === next && (next = completeUnitOfWork(workInProgress)); - ReactCurrentOwner.current = null; - return next; - } - - function renderRoot(root$jscomp$0, isYieldy) { - invariant(!isWorking, "renderRoot was called recursively. This error is likely caused by a bug in React. Please file an issue."); - isWorking = !0; - var expirationTime = root$jscomp$0.nextExpirationTimeToWorkOn; - if (expirationTime !== nextRenderExpirationTime || root$jscomp$0 !== nextRoot || null === nextUnitOfWork) resetStack(), nextRoot = root$jscomp$0, nextRenderExpirationTime = expirationTime, nextLatestTimeoutMs = -1, nextRenderDidError = !1, nextUnitOfWork = createWorkInProgress(nextRoot.current, null, nextRenderExpirationTime), root$jscomp$0.pendingCommitExpirationTime = 0; - var didFatal = !1; - - do { - try { - if (isYieldy) for (; null !== nextUnitOfWork && !shouldYield();) { - nextUnitOfWork = performUnitOfWork(nextUnitOfWork); - } else for (; null !== nextUnitOfWork;) { - nextUnitOfWork = performUnitOfWork(nextUnitOfWork); - } - } catch (thrownValue) { - if (null === nextUnitOfWork) didFatal = !0, onUncaughtError(thrownValue);else { - invariant(null !== nextUnitOfWork, "Failed to replay rendering after an error. This is likely caused by a bug in React. Please file an issue with a reproducing case to help us find it."); - isYieldy = nextUnitOfWork; - var returnFiber = isYieldy.return; - - if (null === returnFiber) { - didFatal = !0; - onUncaughtError(thrownValue); - break; - } - - a: { - var root = root$jscomp$0, - returnFiber$jscomp$0 = returnFiber, - sourceFiber = isYieldy, - value = thrownValue; - returnFiber = nextRenderExpirationTime; - sourceFiber.effectTag |= 512; - sourceFiber.firstEffect = sourceFiber.lastEffect = null; - nextRenderDidError = !0; - - if ((root.didError || 1 === returnFiber) && (returnFiber === root.latestPendingTime || returnFiber === root.latestSuspendedTime)) { - value = createCapturedValue(value, sourceFiber); - root = returnFiber$jscomp$0; - - do { - switch (root.tag) { - case 3: - root.effectTag |= 1024; - value = createRootErrorUpdate(root, value, returnFiber); - enqueueCapturedUpdate(root, value, returnFiber); - break a; - - case 2: - if (returnFiber$jscomp$0 = value, sourceFiber = root.stateNode, 0 === (root.effectTag & 64) && null !== sourceFiber && "function" === typeof sourceFiber.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(sourceFiber))) { - root.effectTag |= 1024; - value = createClassErrorUpdate(root, returnFiber$jscomp$0, returnFiber); - enqueueCapturedUpdate(root, value, returnFiber); - break a; - } - - } - - root = root.return; - } while (null !== root); - } - } - - nextUnitOfWork = completeUnitOfWork(isYieldy); - } - } - - break; - } while (1); - - isWorking = !1; - didFatal ? root$jscomp$0.finishedWork = null : null === nextUnitOfWork ? (didFatal = root$jscomp$0.current.alternate, invariant(null !== didFatal, "Finished root should have a work-in-progress. This error is likely caused by a bug in React. Please file an issue."), 0 === (didFatal.effectTag & 512) ? (root$jscomp$0.pendingCommitExpirationTime = expirationTime, root$jscomp$0.finishedWork = didFatal) : (!nextRenderDidError || expirationTime !== root$jscomp$0.latestPendingTime && expirationTime !== root$jscomp$0.latestSuspendedTime ? (didFatal = root$jscomp$0.earliestPendingTime, isYieldy = root$jscomp$0.latestPendingTime, didFatal === expirationTime ? root$jscomp$0.earliestPendingTime = isYieldy === expirationTime ? root$jscomp$0.latestPendingTime = 0 : isYieldy : isYieldy === expirationTime && (root$jscomp$0.latestPendingTime = didFatal), didFatal = root$jscomp$0.latestSuspendedTime, didFatal === expirationTime && (root$jscomp$0.latestPingedTime = 0), isYieldy = root$jscomp$0.earliestSuspendedTime, 0 === isYieldy ? root$jscomp$0.earliestSuspendedTime = root$jscomp$0.latestSuspendedTime = expirationTime : isYieldy > expirationTime ? root$jscomp$0.earliestSuspendedTime = expirationTime : didFatal < expirationTime && (root$jscomp$0.latestSuspendedTime = expirationTime)) : root$jscomp$0.didError = !0, findNextPendingPriorityLevel(root$jscomp$0), onSuspend(root$jscomp$0, expirationTime, root$jscomp$0.expirationTime, nextLatestTimeoutMs))) : root$jscomp$0.finishedWork = null; - } - - function captureCommitPhaseError(fiber, error) { - var JSCompiler_inline_result; - - a: { - invariant(!isWorking || isCommitting$1, "dispatch: Cannot dispatch during the render phase."); - - for (JSCompiler_inline_result = fiber.return; null !== JSCompiler_inline_result;) { - switch (JSCompiler_inline_result.tag) { - case 2: - var instance = JSCompiler_inline_result.stateNode; - - if ("function" === typeof JSCompiler_inline_result.type.getDerivedStateFromCatch || "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) { - fiber = createCapturedValue(error, fiber); - fiber = createClassErrorUpdate(JSCompiler_inline_result, fiber, 1); - enqueueUpdate(JSCompiler_inline_result, fiber, 1); - scheduleWork(JSCompiler_inline_result, 1); - JSCompiler_inline_result = void 0; - break a; - } - - break; - - case 3: - fiber = createCapturedValue(error, fiber); - fiber = createRootErrorUpdate(JSCompiler_inline_result, fiber, 1); - enqueueUpdate(JSCompiler_inline_result, fiber, 1); - scheduleWork(JSCompiler_inline_result, 1); - JSCompiler_inline_result = void 0; - break a; - } - - JSCompiler_inline_result = JSCompiler_inline_result.return; - } - - 3 === fiber.tag && (JSCompiler_inline_result = createCapturedValue(error, fiber), JSCompiler_inline_result = createRootErrorUpdate(fiber, JSCompiler_inline_result, 1), enqueueUpdate(fiber, JSCompiler_inline_result, 1), scheduleWork(fiber, 1)); - JSCompiler_inline_result = void 0; - } - - return JSCompiler_inline_result; - } - - function computeExpirationForFiber(currentTime, fiber) { - currentTime = 0 !== expirationContext ? expirationContext : isWorking ? isCommitting$1 ? 1 : nextRenderExpirationTime : fiber.mode & 1 ? isBatchingInteractiveUpdates ? 2 + 10 * (((currentTime - 2 + 15) / 10 | 0) + 1) : 2 + 25 * (((currentTime - 2 + 500) / 25 | 0) + 1) : 1; - isBatchingInteractiveUpdates && (0 === lowestPendingInteractiveExpirationTime || currentTime > lowestPendingInteractiveExpirationTime) && (lowestPendingInteractiveExpirationTime = currentTime); - return currentTime; - } - - function scheduleWork(fiber, expirationTime) { - for (; null !== fiber;) { - if (0 === fiber.expirationTime || fiber.expirationTime > expirationTime) fiber.expirationTime = expirationTime; - null !== fiber.alternate && (0 === fiber.alternate.expirationTime || fiber.alternate.expirationTime > expirationTime) && (fiber.alternate.expirationTime = expirationTime); - if (null === fiber.return) if (3 === fiber.tag) { - var root = fiber.stateNode; - !isWorking && 0 !== nextRenderExpirationTime && expirationTime < nextRenderExpirationTime && resetStack(); - markPendingPriorityLevel(root, expirationTime); - isWorking && !isCommitting$1 && nextRoot === root || requestWork(root, root.expirationTime); - nestedUpdateCount > NESTED_UPDATE_LIMIT && invariant(!1, "Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."); - } else break; - fiber = fiber.return; - } - } - - function recalculateCurrentTime() { - mostRecentCurrentTimeMs = now$1() - originalStartTimeMs; - return mostRecentCurrentTime = (mostRecentCurrentTimeMs / 10 | 0) + 2; - } - - function syncUpdates(fn, a, b, c, d) { - var previousExpirationContext = expirationContext; - expirationContext = 1; - - try { - return fn(a, b, c, d); - } finally { - expirationContext = previousExpirationContext; - } - } - - var firstScheduledRoot = null, - lastScheduledRoot = null, - callbackExpirationTime = 0, - callbackID = void 0, - isRendering = !1, - nextFlushedRoot = null, - nextFlushedExpirationTime = 0, - lowestPendingInteractiveExpirationTime = 0, - deadlineDidExpire = !1, - hasUnhandledError = !1, - unhandledError = null, - deadline = null, - isBatchingUpdates = !1, - isUnbatchingUpdates = !1, - isBatchingInteractiveUpdates = !1, - completedBatches = null, - NESTED_UPDATE_LIMIT = 1e3, - nestedUpdateCount = 0, - timeHeuristicForUnitOfWork = 1; - - function scheduleCallbackWithExpirationTime(expirationTime) { - if (0 !== callbackExpirationTime) { - if (expirationTime > callbackExpirationTime) return; - - if (null !== callbackID) { - var callbackID$jscomp$0 = callbackID; - scheduledCallback = null; - clearTimeout(callbackID$jscomp$0); - } - } - - callbackExpirationTime = expirationTime; - now$1(); - scheduledCallback = performAsyncWork; - callbackID = setTimeout(setTimeoutCallback, 1); - } - - function onSuspend(root, suspendedExpirationTime, expirationTime, timeoutMs) { - 0 <= timeoutMs && setTimeout(function () { - var latestSuspendedTime = root.latestSuspendedTime; - 0 !== latestSuspendedTime && latestSuspendedTime <= suspendedExpirationTime && (latestSuspendedTime = root.latestPingedTime, 0 === latestSuspendedTime || latestSuspendedTime < suspendedExpirationTime) && (root.latestPingedTime = suspendedExpirationTime); - findNextPendingPriorityLevel(root); - latestSuspendedTime = root.expirationTime; - 0 !== latestSuspendedTime && requestWork(root, latestSuspendedTime); - }, timeoutMs); - root.expirationTime = expirationTime; - } - - function requestWork(root, expirationTime) { - if (null === root.nextScheduledRoot) root.expirationTime = expirationTime, null === lastScheduledRoot ? (firstScheduledRoot = lastScheduledRoot = root, root.nextScheduledRoot = root) : (lastScheduledRoot = lastScheduledRoot.nextScheduledRoot = root, lastScheduledRoot.nextScheduledRoot = firstScheduledRoot);else { - var remainingExpirationTime = root.expirationTime; - if (0 === remainingExpirationTime || expirationTime < remainingExpirationTime) root.expirationTime = expirationTime; - } - isRendering || (isBatchingUpdates ? isUnbatchingUpdates && (nextFlushedRoot = root, nextFlushedExpirationTime = 1, performWorkOnRoot(root, 1, !1)) : 1 === expirationTime ? performWork(1, null) : scheduleCallbackWithExpirationTime(expirationTime)); - } - - function findHighestPriorityRoot() { - var highestPriorityWork = 0, - highestPriorityRoot = null; - if (null !== lastScheduledRoot) for (var previousScheduledRoot = lastScheduledRoot, root = firstScheduledRoot; null !== root;) { - var remainingExpirationTime = root.expirationTime; - - if (0 === remainingExpirationTime) { - invariant(null !== previousScheduledRoot && null !== lastScheduledRoot, "Should have a previous and last root. This error is likely caused by a bug in React. Please file an issue."); - - if (root === root.nextScheduledRoot) { - firstScheduledRoot = lastScheduledRoot = root.nextScheduledRoot = null; - break; - } else if (root === firstScheduledRoot) firstScheduledRoot = remainingExpirationTime = root.nextScheduledRoot, lastScheduledRoot.nextScheduledRoot = remainingExpirationTime, root.nextScheduledRoot = null;else if (root === lastScheduledRoot) { - lastScheduledRoot = previousScheduledRoot; - lastScheduledRoot.nextScheduledRoot = firstScheduledRoot; - root.nextScheduledRoot = null; - break; - } else previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot, root.nextScheduledRoot = null; - - root = previousScheduledRoot.nextScheduledRoot; - } else { - if (0 === highestPriorityWork || remainingExpirationTime < highestPriorityWork) highestPriorityWork = remainingExpirationTime, highestPriorityRoot = root; - if (root === lastScheduledRoot) break; - previousScheduledRoot = root; - root = root.nextScheduledRoot; - } - } - previousScheduledRoot = nextFlushedRoot; - null !== previousScheduledRoot && previousScheduledRoot === highestPriorityRoot && 1 === highestPriorityWork ? nestedUpdateCount++ : nestedUpdateCount = 0; - nextFlushedRoot = highestPriorityRoot; - nextFlushedExpirationTime = highestPriorityWork; - } - - function performAsyncWork(dl) { - performWork(0, dl); - } - - function performWork(minExpirationTime, dl) { - deadline = dl; - findHighestPriorityRoot(); - if (null !== deadline) for (; null !== nextFlushedRoot && 0 !== nextFlushedExpirationTime && (0 === minExpirationTime || minExpirationTime >= nextFlushedExpirationTime) && (!deadlineDidExpire || recalculateCurrentTime() >= nextFlushedExpirationTime);) { - recalculateCurrentTime(), performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, !0), findHighestPriorityRoot(); - } else for (; null !== nextFlushedRoot && 0 !== nextFlushedExpirationTime && (0 === minExpirationTime || minExpirationTime >= nextFlushedExpirationTime);) { - performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, !1), findHighestPriorityRoot(); - } - null !== deadline && (callbackExpirationTime = 0, callbackID = null); - 0 !== nextFlushedExpirationTime && scheduleCallbackWithExpirationTime(nextFlushedExpirationTime); - deadline = null; - deadlineDidExpire = !1; - finishRendering(); - } - - function finishRendering() { - nestedUpdateCount = 0; - - if (null !== completedBatches) { - var batches = completedBatches; - completedBatches = null; - - for (var i = 0; i < batches.length; i++) { - var batch = batches[i]; - - try { - batch._onComplete(); - } catch (error) { - hasUnhandledError || (hasUnhandledError = !0, unhandledError = error); - } - } - } - - if (hasUnhandledError) throw batches = unhandledError, unhandledError = null, hasUnhandledError = !1, batches; - } - - function performWorkOnRoot(root, expirationTime, isYieldy) { - invariant(!isRendering, "performWorkOnRoot was called recursively. This error is likely caused by a bug in React. Please file an issue."); - isRendering = !0; - isYieldy ? (isYieldy = root.finishedWork, null !== isYieldy ? completeRoot(root, isYieldy, expirationTime) : (root.finishedWork = null, renderRoot(root, !0), isYieldy = root.finishedWork, null !== isYieldy && (shouldYield() ? root.finishedWork = isYieldy : completeRoot(root, isYieldy, expirationTime)))) : (isYieldy = root.finishedWork, null !== isYieldy ? completeRoot(root, isYieldy, expirationTime) : (root.finishedWork = null, renderRoot(root, !1), isYieldy = root.finishedWork, null !== isYieldy && completeRoot(root, isYieldy, expirationTime))); - isRendering = !1; - } - - function completeRoot(root, finishedWork$jscomp$0, expirationTime) { - var firstBatch = root.firstBatch; - - if (null !== firstBatch && firstBatch._expirationTime <= expirationTime && (null === completedBatches ? completedBatches = [firstBatch] : completedBatches.push(firstBatch), firstBatch._defer)) { - root.finishedWork = finishedWork$jscomp$0; - root.expirationTime = 0; - return; - } - - root.finishedWork = null; - isCommitting$1 = isWorking = !0; - invariant(root.current !== finishedWork$jscomp$0, "Cannot commit the same tree as before. This is probably a bug related to the return field. This error is likely caused by a bug in React. Please file an issue."); - expirationTime = root.pendingCommitExpirationTime; - invariant(0 !== expirationTime, "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."); - root.pendingCommitExpirationTime = 0; - firstBatch = finishedWork$jscomp$0.expirationTime; - recalculateCurrentTime(); - root.didError = !1; - if (0 === firstBatch) root.earliestPendingTime = 0, root.latestPendingTime = 0, root.earliestSuspendedTime = 0, root.latestSuspendedTime = 0, root.latestPingedTime = 0;else { - var latestPendingTime = root.latestPendingTime; - 0 !== latestPendingTime && (latestPendingTime < firstBatch ? root.earliestPendingTime = root.latestPendingTime = 0 : root.earliestPendingTime < firstBatch && (root.earliestPendingTime = root.latestPendingTime)); - latestPendingTime = root.earliestSuspendedTime; - 0 === latestPendingTime ? markPendingPriorityLevel(root, firstBatch) : firstBatch > root.latestSuspendedTime ? (root.earliestSuspendedTime = 0, root.latestSuspendedTime = 0, root.latestPingedTime = 0, markPendingPriorityLevel(root, firstBatch)) : firstBatch < latestPendingTime && markPendingPriorityLevel(root, firstBatch); - } - findNextPendingPriorityLevel(root); - ReactCurrentOwner.current = null; - 1 < finishedWork$jscomp$0.effectTag ? null !== finishedWork$jscomp$0.lastEffect ? (finishedWork$jscomp$0.lastEffect.nextEffect = finishedWork$jscomp$0, firstBatch = finishedWork$jscomp$0.firstEffect) : firstBatch = finishedWork$jscomp$0 : firstBatch = finishedWork$jscomp$0.firstEffect; - - for (nextEffect = firstBatch; null !== nextEffect;) { - latestPendingTime = !1; - var error = void 0; - - try { - for (; null !== nextEffect;) { - if (nextEffect.effectTag & 256) { - var current = nextEffect.alternate, - finishedWork = nextEffect; - - switch (finishedWork.tag) { - case 2: - if (finishedWork.effectTag & 256 && null !== current) { - var prevProps = current.memoizedProps, - prevState = current.memoizedState, - instance = finishedWork.stateNode; - instance.props = finishedWork.memoizedProps; - instance.state = finishedWork.memoizedState; - var snapshot = instance.getSnapshotBeforeUpdate(prevProps, prevState); - instance.__reactInternalSnapshotBeforeUpdate = snapshot; - } - - break; - - case 3: - case 5: - case 6: - case 4: - break; - - default: - invariant(!1, "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); - } - } - - nextEffect = nextEffect.nextEffect; - } - } catch (e) { - latestPendingTime = !0, error = e; - } - - latestPendingTime && (invariant(null !== nextEffect, "Should have next effect. This error is likely caused by a bug in React. Please file an issue."), captureCommitPhaseError(nextEffect, error), null !== nextEffect && (nextEffect = nextEffect.nextEffect)); - } - - for (nextEffect = firstBatch; null !== nextEffect;) { - current = !1; - prevProps = void 0; - - try { - for (; null !== nextEffect;) { - var effectTag = nextEffect.effectTag; - - if (effectTag & 128) { - var current$jscomp$0 = nextEffect.alternate; - - if (null !== current$jscomp$0) { - var currentRef = current$jscomp$0.ref; - null !== currentRef && ("function" === typeof currentRef ? currentRef(null) : currentRef.current = null); - } - } - - switch (effectTag & 14) { - case 2: - commitPlacement(nextEffect); - nextEffect.effectTag &= -3; - break; - - case 6: - commitPlacement(nextEffect); - nextEffect.effectTag &= -3; - commitWork(nextEffect.alternate, nextEffect); - break; - - case 4: - commitWork(nextEffect.alternate, nextEffect); - break; - - case 8: - prevState = nextEffect, unmountHostComponents(prevState), prevState.return = null, prevState.child = null, prevState.alternate && (prevState.alternate.child = null, prevState.alternate.return = null); - } - - nextEffect = nextEffect.nextEffect; - } - } catch (e) { - current = !0, prevProps = e; - } - - current && (invariant(null !== nextEffect, "Should have next effect. This error is likely caused by a bug in React. Please file an issue."), captureCommitPhaseError(nextEffect, prevProps), null !== nextEffect && (nextEffect = nextEffect.nextEffect)); - } - - root.current = finishedWork$jscomp$0; - - for (nextEffect = firstBatch; null !== nextEffect;) { - effectTag = !1; - current$jscomp$0 = void 0; - - try { - for (currentRef = expirationTime; null !== nextEffect;) { - var effectTag$jscomp$0 = nextEffect.effectTag; - - if (effectTag$jscomp$0 & 36) { - var current$jscomp$1 = nextEffect.alternate; - current = nextEffect; - prevProps = currentRef; - - switch (current.tag) { - case 2: - var instance$jscomp$0 = current.stateNode; - if (current.effectTag & 4) if (null === current$jscomp$1) instance$jscomp$0.props = current.memoizedProps, instance$jscomp$0.state = current.memoizedState, instance$jscomp$0.componentDidMount();else { - var prevProps$jscomp$0 = current$jscomp$1.memoizedProps, - prevState$jscomp$0 = current$jscomp$1.memoizedState; - instance$jscomp$0.props = current.memoizedProps; - instance$jscomp$0.state = current.memoizedState; - instance$jscomp$0.componentDidUpdate(prevProps$jscomp$0, prevState$jscomp$0, instance$jscomp$0.__reactInternalSnapshotBeforeUpdate); - } - var updateQueue = current.updateQueue; - null !== updateQueue && (instance$jscomp$0.props = current.memoizedProps, instance$jscomp$0.state = current.memoizedState, commitUpdateQueue(current, updateQueue, instance$jscomp$0, prevProps)); - break; - - case 3: - var _updateQueue = current.updateQueue; - - if (null !== _updateQueue) { - prevState = null; - if (null !== current.child) switch (current.child.tag) { - case 5: - prevState = current.child.stateNode; - break; - - case 2: - prevState = current.child.stateNode; - } - commitUpdateQueue(current, _updateQueue, prevState, prevProps); - } - - break; - - case 5: - break; - - case 6: - break; - - case 4: - break; - - case 15: - break; - - case 16: - break; - - default: - invariant(!1, "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); - } - } - - if (effectTag$jscomp$0 & 128) { - current = void 0; - var ref = nextEffect.ref; - - if (null !== ref) { - var instance$jscomp$1 = nextEffect.stateNode; - - switch (nextEffect.tag) { - case 5: - current = instance$jscomp$1; - break; - - default: - current = instance$jscomp$1; - } - - "function" === typeof ref ? ref(current) : ref.current = current; - } - } - - var next = nextEffect.nextEffect; - nextEffect.nextEffect = null; - nextEffect = next; - } - } catch (e) { - effectTag = !0, current$jscomp$0 = e; - } - - effectTag && (invariant(null !== nextEffect, "Should have next effect. This error is likely caused by a bug in React. Please file an issue."), captureCommitPhaseError(nextEffect, current$jscomp$0), null !== nextEffect && (nextEffect = nextEffect.nextEffect)); - } - - isWorking = isCommitting$1 = !1; - "function" === typeof onCommitRoot && onCommitRoot(finishedWork$jscomp$0.stateNode); - finishedWork$jscomp$0 = root.expirationTime; - 0 === finishedWork$jscomp$0 && (legacyErrorBoundariesThatAlreadyFailed = null); - root.expirationTime = finishedWork$jscomp$0; - root.finishedWork = null; - } - - function shouldYield() { - return null === deadline || deadlineDidExpire || deadline.timeRemaining() > timeHeuristicForUnitOfWork ? !1 : deadlineDidExpire = !0; - } - - function onUncaughtError(error) { - invariant(null !== nextFlushedRoot, "Should be working on a root. This error is likely caused by a bug in React. Please file an issue."); - nextFlushedRoot.expirationTime = 0; - hasUnhandledError || (hasUnhandledError = !0, unhandledError = error); - } - - function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback) { - var current = container.current; - - if (parentComponent) { - parentComponent = parentComponent._reactInternalFiber; - var parentContext; - - b: { - invariant(2 === isFiberMountedImpl(parentComponent) && 2 === parentComponent.tag, "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."); - - for (parentContext = parentComponent; 3 !== parentContext.tag;) { - if (isContextProvider(parentContext)) { - parentContext = parentContext.stateNode.__reactInternalMemoizedMergedChildContext; - break b; - } - - parentContext = parentContext.return; - invariant(parentContext, "Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue."); - } - - parentContext = parentContext.stateNode.context; - } - - parentComponent = isContextProvider(parentComponent) ? processChildContext(parentComponent, parentContext) : parentContext; - } else parentComponent = emptyObject; - - null === container.context ? container.context = parentComponent : container.pendingContext = parentComponent; - container = callback; - callback = createUpdate(expirationTime); - callback.payload = { - element: element - }; - container = void 0 === container ? null : container; - null !== container && (callback.callback = container); - enqueueUpdate(current, callback, expirationTime); - scheduleWork(current, expirationTime); - return expirationTime; - } - - function findHostInstance$1(component) { - var fiber = component._reactInternalFiber; - void 0 === fiber && ("function" === typeof component.render ? invariant(!1, "Unable to find node on an unmounted component.") : invariant(!1, "Argument appears to not be a ReactComponent. Keys: %s", Object.keys(component))); - component = findCurrentHostFiber(fiber); - return null === component ? null : component.stateNode; - } - - function updateContainer(element, container, parentComponent, callback) { - var current = container.current, - currentTime = recalculateCurrentTime(); - current = computeExpirationForFiber(currentTime, current); - return updateContainerAtExpirationTime(element, container, parentComponent, current, callback); - } - - function getPublicRootInstance(container) { - container = container.current; - if (!container.child) return null; - - switch (container.child.tag) { - case 5: - return container.child.stateNode; - - default: - return container.child.stateNode; - } - } - - function injectIntoDevTools(devToolsConfig) { - var _findFiberByHostInstance = devToolsConfig.findFiberByHostInstance; - return injectInternals(_extends({}, devToolsConfig, { - findHostInstanceByFiber: function findHostInstanceByFiber(fiber) { - fiber = findCurrentHostFiber(fiber); - return null === fiber ? null : fiber.stateNode; - }, - findFiberByHostInstance: function findFiberByHostInstance(instance) { - return _findFiberByHostInstance ? _findFiberByHostInstance(instance) : null; - } - })); - } - - var ReactNativeFiberRenderer = { - updateContainerAtExpirationTime: updateContainerAtExpirationTime, - createContainer: function createContainer(containerInfo, isAsync, hydrate) { - return createFiberRoot(containerInfo, isAsync, hydrate); - }, - updateContainer: updateContainer, - flushRoot: function flushRoot(root, expirationTime) { - invariant(!isRendering, "work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method."); - nextFlushedRoot = root; - nextFlushedExpirationTime = expirationTime; - performWorkOnRoot(root, expirationTime, !1); - performWork(1, null); - finishRendering(); - }, - requestWork: requestWork, - computeUniqueAsyncExpiration: function computeUniqueAsyncExpiration() { - var result = 2 + 25 * (((recalculateCurrentTime() - 2 + 500) / 25 | 0) + 1); - result <= lastUniqueAsyncExpiration && (result = lastUniqueAsyncExpiration + 1); - return lastUniqueAsyncExpiration = result; - }, - batchedUpdates: function batchedUpdates(fn, a) { - var previousIsBatchingUpdates = isBatchingUpdates; - isBatchingUpdates = !0; - - try { - return fn(a); - } finally { - (isBatchingUpdates = previousIsBatchingUpdates) || isRendering || performWork(1, null); - } - }, - unbatchedUpdates: function unbatchedUpdates(fn, a) { - if (isBatchingUpdates && !isUnbatchingUpdates) { - isUnbatchingUpdates = !0; - - try { - return fn(a); - } finally { - isUnbatchingUpdates = !1; - } - } - - return fn(a); - }, - deferredUpdates: function deferredUpdates(fn) { - var previousExpirationContext = expirationContext; - expirationContext = 2 + 25 * (((recalculateCurrentTime() - 2 + 500) / 25 | 0) + 1); - - try { - return fn(); - } finally { - expirationContext = previousExpirationContext; - } - }, - syncUpdates: syncUpdates, - interactiveUpdates: function interactiveUpdates(fn, a, b) { - if (isBatchingInteractiveUpdates) return fn(a, b); - isBatchingUpdates || isRendering || 0 === lowestPendingInteractiveExpirationTime || (performWork(lowestPendingInteractiveExpirationTime, null), lowestPendingInteractiveExpirationTime = 0); - var previousIsBatchingInteractiveUpdates = isBatchingInteractiveUpdates, - previousIsBatchingUpdates = isBatchingUpdates; - isBatchingUpdates = isBatchingInteractiveUpdates = !0; - - try { - return fn(a, b); - } finally { - isBatchingInteractiveUpdates = previousIsBatchingInteractiveUpdates, (isBatchingUpdates = previousIsBatchingUpdates) || isRendering || performWork(1, null); - } - }, - flushInteractiveUpdates: function flushInteractiveUpdates() { - isRendering || 0 === lowestPendingInteractiveExpirationTime || (performWork(lowestPendingInteractiveExpirationTime, null), lowestPendingInteractiveExpirationTime = 0); - }, - flushControlled: function flushControlled(fn) { - var previousIsBatchingUpdates = isBatchingUpdates; - isBatchingUpdates = !0; - - try { - syncUpdates(fn); - } finally { - (isBatchingUpdates = previousIsBatchingUpdates) || isRendering || performWork(1, null); - } - }, - flushSync: function flushSync(fn, a) { - invariant(!isRendering, "flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering."); - var previousIsBatchingUpdates = isBatchingUpdates; - isBatchingUpdates = !0; - - try { - return syncUpdates(fn, a); - } finally { - isBatchingUpdates = previousIsBatchingUpdates, performWork(1, null); - } - }, - getPublicRootInstance: getPublicRootInstance, - findHostInstance: findHostInstance$1, - findHostInstanceWithNoPortals: function findHostInstanceWithNoPortals(fiber) { - fiber = findCurrentHostFiberWithNoPortals(fiber); - return null === fiber ? null : fiber.stateNode; - }, - injectIntoDevTools: injectIntoDevTools - }; - - function _createPortal(children, containerInfo, implementation) { - var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; - return { - $$typeof: REACT_PORTAL_TYPE, - key: null == key ? null : "" + key, - children: children, - containerInfo: containerInfo, - implementation: implementation - }; - } - - function _inherits(subClass, superClass) { - if ("function" !== typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: !1, - writable: !0, - configurable: !0 - } - }); - superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); - } - - var getInspectorDataForViewTag = void 0; - - getInspectorDataForViewTag = function getInspectorDataForViewTag() { - invariant(!1, "getInspectorDataForViewTag() is not available in production"); - }; - - function findNodeHandle(componentOrHandle) { - if (null == componentOrHandle) return null; - if ("number" === typeof componentOrHandle) return componentOrHandle; - if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag; - if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) return componentOrHandle.canonical._nativeTag; - componentOrHandle = findHostInstance$1(componentOrHandle); - return null == componentOrHandle ? componentOrHandle : componentOrHandle.canonical ? componentOrHandle.canonical._nativeTag : componentOrHandle._nativeTag; - } - - _batchedUpdates = ReactNativeFiberRenderer.batchedUpdates; - _flushInteractiveUpdates = ReactNativeFiberRenderer.flushInteractiveUpdates; - var roots = new Map(), - ReactNativeRenderer = { - NativeComponent: function (findNodeHandle, findHostInstance) { - return function (_React$Component) { - function ReactNativeComponent() { - if (!(this instanceof ReactNativeComponent)) throw new TypeError("Cannot call a class as a function"); - - var call = _React$Component.apply(this, arguments); - - if (!this) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || "object" !== typeof call && "function" !== typeof call ? this : call; - } - - _inherits(ReactNativeComponent, _React$Component); - - ReactNativeComponent.prototype.blur = function () { - TextInputState.blurTextInput(findNodeHandle(this)); - }; - - ReactNativeComponent.prototype.focus = function () { - TextInputState.focusTextInput(findNodeHandle(this)); - }; - - ReactNativeComponent.prototype.measure = function (callback) { - UIManager.measure(findNodeHandle(this), mountSafeCallback(this, callback)); - }; - - ReactNativeComponent.prototype.measureInWindow = function (callback) { - UIManager.measureInWindow(findNodeHandle(this), mountSafeCallback(this, callback)); - }; - - ReactNativeComponent.prototype.measureLayout = function (relativeToNativeNode, onSuccess, onFail) { - UIManager.measureLayout(findNodeHandle(this), relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); - }; - - ReactNativeComponent.prototype.setNativeProps = function (nativeProps) { - var maybeInstance = void 0; - - try { - maybeInstance = findHostInstance(this); - } catch (error) {} - - if (null != maybeInstance) { - var viewConfig = maybeInstance.viewConfig || maybeInstance.canonical.viewConfig; - nativeProps = diffProperties(null, emptyObject$1, nativeProps, viewConfig.validAttributes); - null != nativeProps && UIManager.updateView(maybeInstance._nativeTag, viewConfig.uiViewClassName, nativeProps); - } - }; - - return ReactNativeComponent; - }(React.Component); - }(findNodeHandle, findHostInstance$1), - findNodeHandle: findNodeHandle, - render: function render(element, containerTag, callback) { - var root = roots.get(containerTag); - root || (root = createFiberRoot(containerTag, !1, !1), roots.set(containerTag, root)); - updateContainer(element, root, null, callback); - return getPublicRootInstance(root); - }, - unmountComponentAtNode: function unmountComponentAtNode(containerTag) { - var root = roots.get(containerTag); - root && updateContainer(null, root, null, function () { - roots.delete(containerTag); - }); - }, - unmountComponentAtNodeAndRemoveContainer: function unmountComponentAtNodeAndRemoveContainer(containerTag) { - ReactNativeRenderer.unmountComponentAtNode(containerTag); - UIManager.removeRootView(containerTag); - }, - createPortal: function createPortal(children, containerTag) { - return _createPortal(children, containerTag, null, 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null); - }, - unstable_batchedUpdates: batchedUpdates, - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { - NativeMethodsMixin: function (findNodeHandle, findHostInstance) { - return { - measure: function measure(callback) { - UIManager.measure(findNodeHandle(this), mountSafeCallback(this, callback)); - }, - measureInWindow: function measureInWindow(callback) { - UIManager.measureInWindow(findNodeHandle(this), mountSafeCallback(this, callback)); - }, - measureLayout: function measureLayout(relativeToNativeNode, onSuccess, onFail) { - UIManager.measureLayout(findNodeHandle(this), relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); - }, - setNativeProps: function setNativeProps(nativeProps) { - var maybeInstance = void 0; - - try { - maybeInstance = findHostInstance(this); - } catch (error) {} - - if (null != maybeInstance) { - var viewConfig = maybeInstance.viewConfig; - nativeProps = diffProperties(null, emptyObject$1, nativeProps, viewConfig.validAttributes); - null != nativeProps && UIManager.updateView(maybeInstance._nativeTag, viewConfig.uiViewClassName, nativeProps); - } - }, - focus: function focus() { - TextInputState.focusTextInput(findNodeHandle(this)); - }, - blur: function blur() { - TextInputState.blurTextInput(findNodeHandle(this)); - } - }; - }(findNodeHandle, findHostInstance$1), - computeComponentStackForErrorReporting: function computeComponentStackForErrorReporting(reactTag) { - return (reactTag = getInstanceFromTag(reactTag)) ? getStackAddendumByWorkInProgressFiber(reactTag) : ""; - } - } - }; - injectIntoDevTools({ - findFiberByHostInstance: getInstanceFromTag, - getInspectorDataForViewTag: getInspectorDataForViewTag, - bundleType: 0, - version: "16.4.1", - rendererPackageName: "react-native-renderer" - }); - var ReactNativeRenderer$2 = { - default: ReactNativeRenderer - }, - ReactNativeRenderer$3 = ReactNativeRenderer$2 && ReactNativeRenderer || ReactNativeRenderer$2; - module.exports = ReactNativeRenderer$3.default ? ReactNativeRenderer$3.default : ReactNativeRenderer$3; -},336,[337,4,157,87,338,122,339,340,134,341,342],"node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-prod.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); - - var TVNavigationEventEmitter = _$$_REQUIRE(_dependencyMap[1], 'NativeModules').TVNavigationEventEmitter; - - var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[2], 'NativeEventEmitter'); - - function TVEventHandler() { - this.__nativeTVNavigationEventListener = null; - this.__nativeTVNavigationEventEmitter = null; - } - - TVEventHandler.prototype.enable = function (component, callback) { - if (Platform.OS === 'ios' && !TVNavigationEventEmitter) { - return; - } - - this.__nativeTVNavigationEventEmitter = new NativeEventEmitter(TVNavigationEventEmitter); - this.__nativeTVNavigationEventListener = this.__nativeTVNavigationEventEmitter.addListener('onHWKeyEvent', function (data) { - if (callback) { - callback(component, data); - } - }); - }; - - TVEventHandler.prototype.disable = function () { - if (this.__nativeTVNavigationEventListener) { - this.__nativeTVNavigationEventListener.remove(); - - delete this.__nativeTVNavigationEventListener; - } - - if (this.__nativeTVNavigationEventEmitter) { - delete this.__nativeTVNavigationEventEmitter; - } - }; - - module.exports = TVEventHandler; -},86,[94,93,74],"node_modules/react-native/Libraries/Components/AppleTV/TVEventHandler.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - "use strict"; - - var TouchEventUtils = { - extractSingleTouch: function extractSingleTouch(nativeEvent) { - var touches = nativeEvent.touches; - var changedTouches = nativeEvent.changedTouches; - var hasTouches = touches && touches.length > 0; - var hasChangedTouches = changedTouches && changedTouches.length > 0; - return !hasTouches && hasChangedTouches ? changedTouches[0] : hasTouches ? touches[0] : nativeEvent; - } - }; - module.exports = TouchEventUtils; -},333,[],"node_modules/react-native/node_modules/fbjs/lib/TouchEventUtils.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - "use strict"; - - var nullthrows = function nullthrows(x) { - if (x != null) { - return x; - } - - throw new Error("Got unexpected null or undefined"); - }; - - module.exports = nullthrows; -},330,[],"node_modules/react-native/node_modules/fbjs/lib/nullthrows.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); - - var React = _$$_REQUIRE(_dependencyMap[1], 'React'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[2], 'prop-types'); - - var ReactNative = _$$_REQUIRE(_dependencyMap[3], 'ReactNative'); - - var Touchable = _$$_REQUIRE(_dependencyMap[4], 'Touchable'); - - var TouchableWithoutFeedback = _$$_REQUIRE(_dependencyMap[5], 'TouchableWithoutFeedback'); - - var UIManager = _$$_REQUIRE(_dependencyMap[6], 'UIManager'); - - var createReactClass = _$$_REQUIRE(_dependencyMap[7], 'create-react-class'); - - var ensurePositiveDelayProps = _$$_REQUIRE(_dependencyMap[8], 'ensurePositiveDelayProps'); - - var processColor = _$$_REQUIRE(_dependencyMap[9], 'processColor'); - - var rippleBackgroundPropType = PropTypes.shape({ - type: PropTypes.oneOf(['RippleAndroid']), - color: PropTypes.number, - borderless: PropTypes.bool - }); - var themeAttributeBackgroundPropType = PropTypes.shape({ - type: PropTypes.oneOf(['ThemeAttrAndroid']), - attribute: PropTypes.string.isRequired - }); - var backgroundPropType = PropTypes.oneOfType([rippleBackgroundPropType, themeAttributeBackgroundPropType]); - var PRESS_RETENTION_OFFSET = { - top: 20, - left: 20, - right: 20, - bottom: 30 - }; - var TouchableNativeFeedback = createReactClass({ - displayName: 'TouchableNativeFeedback', - propTypes: _objectSpread({}, TouchableWithoutFeedback.propTypes, { - background: backgroundPropType, - hasTVPreferredFocus: PropTypes.bool, - useForeground: PropTypes.bool - }), - statics: { - SelectableBackground: function SelectableBackground() { - return { - type: 'ThemeAttrAndroid', - attribute: 'selectableItemBackground' - }; - }, - SelectableBackgroundBorderless: function SelectableBackgroundBorderless() { - return { - type: 'ThemeAttrAndroid', - attribute: 'selectableItemBackgroundBorderless' - }; - }, - Ripple: function Ripple(color, borderless) { - return { - type: 'RippleAndroid', - color: processColor(color), - borderless: borderless - }; - }, - canUseNativeForeground: function canUseNativeForeground() { - return Platform.OS === 'android' && Platform.Version >= 23; - } - }, - mixins: [Touchable.Mixin], - getDefaultProps: function getDefaultProps() { - return { - background: this.SelectableBackground() - }; - }, - getInitialState: function getInitialState() { - return this.touchableGetInitialState(); - }, - componentDidMount: function componentDidMount() { - ensurePositiveDelayProps(this.props); - }, - UNSAFE_componentWillReceiveProps: function UNSAFE_componentWillReceiveProps(nextProps) { - ensurePositiveDelayProps(nextProps); - }, - touchableHandleActivePressIn: function touchableHandleActivePressIn(e) { - this.props.onPressIn && this.props.onPressIn(e); - - this._dispatchPressedStateChange(true); - - if (this.pressInLocation) { - this._dispatchHotspotUpdate(this.pressInLocation.locationX, this.pressInLocation.locationY); - } - }, - touchableHandleActivePressOut: function touchableHandleActivePressOut(e) { - this.props.onPressOut && this.props.onPressOut(e); - - this._dispatchPressedStateChange(false); - }, - touchableHandlePress: function touchableHandlePress(e) { - this.props.onPress && this.props.onPress(e); - }, - touchableHandleLongPress: function touchableHandleLongPress(e) { - this.props.onLongPress && this.props.onLongPress(e); - }, - touchableGetPressRectOffset: function touchableGetPressRectOffset() { - return this.props.pressRetentionOffset || PRESS_RETENTION_OFFSET; - }, - touchableGetHitSlop: function touchableGetHitSlop() { - return this.props.hitSlop; - }, - touchableGetHighlightDelayMS: function touchableGetHighlightDelayMS() { - return this.props.delayPressIn; - }, - touchableGetLongPressDelayMS: function touchableGetLongPressDelayMS() { - return this.props.delayLongPress; - }, - touchableGetPressOutDelayMS: function touchableGetPressOutDelayMS() { - return this.props.delayPressOut; - }, - _handleResponderMove: function _handleResponderMove(e) { - this.touchableHandleResponderMove(e); - - this._dispatchHotspotUpdate(e.nativeEvent.locationX, e.nativeEvent.locationY); - }, - _dispatchHotspotUpdate: function _dispatchHotspotUpdate(destX, destY) { - UIManager.dispatchViewManagerCommand(ReactNative.findNodeHandle(this), UIManager.RCTView.Commands.hotspotUpdate, [destX || 0, destY || 0]); - }, - _dispatchPressedStateChange: function _dispatchPressedStateChange(pressed) { - UIManager.dispatchViewManagerCommand(ReactNative.findNodeHandle(this), UIManager.RCTView.Commands.setPressed, [pressed]); - }, - render: function render() { - var _objectSpread2; - - var child = React.Children.only(this.props.children); - var children = child.props.children; - - if (Touchable.TOUCH_TARGET_DEBUG && child.type.displayName === 'View') { - if (!Array.isArray(children)) { - children = [children]; - } - - children.push(Touchable.renderDebugView({ - color: 'brown', - hitSlop: this.props.hitSlop - })); - } - - if (this.props.useForeground && !TouchableNativeFeedback.canUseNativeForeground()) { - console.warn('Requested foreground ripple, but it is not available on this version of Android. ' + 'Consider calling TouchableNativeFeedback.canUseNativeForeground() and using a different ' + 'Touchable if the result is false.'); - } - - var drawableProp = this.props.useForeground && TouchableNativeFeedback.canUseNativeForeground() ? 'nativeForegroundAndroid' : 'nativeBackgroundAndroid'; - - var childProps = _objectSpread({}, child.props, (_objectSpread2 = {}, _defineProperty(_objectSpread2, drawableProp, this.props.background), _defineProperty(_objectSpread2, "accessible", this.props.accessible !== false), _defineProperty(_objectSpread2, "accessibilityLabel", this.props.accessibilityLabel), _defineProperty(_objectSpread2, "accessibilityComponentType", this.props.accessibilityComponentType), _defineProperty(_objectSpread2, "accessibilityTraits", this.props.accessibilityTraits), _defineProperty(_objectSpread2, "children", children), _defineProperty(_objectSpread2, "testID", this.props.testID), _defineProperty(_objectSpread2, "onLayout", this.props.onLayout), _defineProperty(_objectSpread2, "hitSlop", this.props.hitSlop), _defineProperty(_objectSpread2, "isTVSelectable", true), _defineProperty(_objectSpread2, "hasTVPreferredFocus", this.props.hasTVPreferredFocus), _defineProperty(_objectSpread2, "onStartShouldSetResponder", this.touchableHandleStartShouldSetResponder), _defineProperty(_objectSpread2, "onResponderTerminationRequest", this.touchableHandleResponderTerminationRequest), _defineProperty(_objectSpread2, "onResponderGrant", this.touchableHandleResponderGrant), _defineProperty(_objectSpread2, "onResponderMove", this._handleResponderMove), _defineProperty(_objectSpread2, "onResponderRelease", this.touchableHandleResponderRelease), _defineProperty(_objectSpread2, "onResponderTerminate", this.touchableHandleResponderTerminate), _objectSpread2)); - - return React.cloneElement(child, childProps); - } - }); - module.exports = TouchableNativeFeedback; -},45,[94,121,143,67,43,47,87,402,403,95],"node_modules/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var EdgeInsetsPropType = _$$_REQUIRE(_dependencyMap[0], 'EdgeInsetsPropType'); - - var React = _$$_REQUIRE(_dependencyMap[1], 'React'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[2], 'prop-types'); - - var TimerMixin = _$$_REQUIRE(_dependencyMap[3], 'react-timer-mixin'); - - var Touchable = _$$_REQUIRE(_dependencyMap[4], 'Touchable'); - - var createReactClass = _$$_REQUIRE(_dependencyMap[5], 'create-react-class'); - - var ensurePositiveDelayProps = _$$_REQUIRE(_dependencyMap[6], 'ensurePositiveDelayProps'); - - var warning = _$$_REQUIRE(_dependencyMap[7], 'fbjs/lib/warning'); - - var _require = _$$_REQUIRE(_dependencyMap[8], 'ViewAccessibility'), - AccessibilityComponentTypes = _require.AccessibilityComponentTypes, - AccessibilityTraits = _require.AccessibilityTraits; - - var PRESS_RETENTION_OFFSET = { - top: 20, - left: 20, - right: 20, - bottom: 30 - }; - var TouchableWithoutFeedback = createReactClass({ - displayName: 'TouchableWithoutFeedback', - mixins: [TimerMixin, Touchable.Mixin], - propTypes: { - accessible: PropTypes.bool, - accessibilityLabel: PropTypes.node, - accessibilityComponentType: PropTypes.oneOf(AccessibilityComponentTypes), - accessibilityTraits: PropTypes.oneOfType([PropTypes.oneOf(AccessibilityTraits), PropTypes.arrayOf(PropTypes.oneOf(AccessibilityTraits))]), - disabled: PropTypes.bool, - onPress: PropTypes.func, - onPressIn: PropTypes.func, - onPressOut: PropTypes.func, - onLayout: PropTypes.func, - onLongPress: PropTypes.func, - nativeID: PropTypes.string, - testID: PropTypes.string, - delayPressIn: PropTypes.number, - delayPressOut: PropTypes.number, - delayLongPress: PropTypes.number, - pressRetentionOffset: EdgeInsetsPropType, - hitSlop: EdgeInsetsPropType - }, - getInitialState: function getInitialState() { - return this.touchableGetInitialState(); - }, - componentDidMount: function componentDidMount() { - ensurePositiveDelayProps(this.props); - }, - UNSAFE_componentWillReceiveProps: function UNSAFE_componentWillReceiveProps(nextProps) { - ensurePositiveDelayProps(nextProps); - }, - touchableHandlePress: function touchableHandlePress(e) { - this.props.onPress && this.props.onPress(e); - }, - touchableHandleActivePressIn: function touchableHandleActivePressIn(e) { - this.props.onPressIn && this.props.onPressIn(e); - }, - touchableHandleActivePressOut: function touchableHandleActivePressOut(e) { - this.props.onPressOut && this.props.onPressOut(e); - }, - touchableHandleLongPress: function touchableHandleLongPress(e) { - this.props.onLongPress && this.props.onLongPress(e); - }, - touchableGetPressRectOffset: function touchableGetPressRectOffset() { - return this.props.pressRetentionOffset || PRESS_RETENTION_OFFSET; - }, - touchableGetHitSlop: function touchableGetHitSlop() { - return this.props.hitSlop; - }, - touchableGetHighlightDelayMS: function touchableGetHighlightDelayMS() { - return this.props.delayPressIn || 0; - }, - touchableGetLongPressDelayMS: function touchableGetLongPressDelayMS() { - return this.props.delayLongPress === 0 ? 0 : this.props.delayLongPress || 500; - }, - touchableGetPressOutDelayMS: function touchableGetPressOutDelayMS() { - return this.props.delayPressOut || 0; - }, - render: function render() { - var child = React.Children.only(this.props.children); - var children = child.props.children; - warning(!child.type || child.type.displayName !== 'Text', 'TouchableWithoutFeedback does not work well with Text children. Wrap children in a View instead. See ' + (child._owner && child._owner.getName && child._owner.getName() || '')); - - if (Touchable.TOUCH_TARGET_DEBUG && child.type && child.type.displayName === 'View') { - children = React.Children.toArray(children); - children.push(Touchable.renderDebugView({ - color: 'red', - hitSlop: this.props.hitSlop - })); - } - - var style = Touchable.TOUCH_TARGET_DEBUG && child.type && child.type.displayName === 'Text' ? [child.props.style, { - color: 'red' - }] : child.props.style; - return React.cloneElement(child, { - accessible: this.props.accessible !== false, - accessibilityLabel: this.props.accessibilityLabel, - accessibilityComponentType: this.props.accessibilityComponentType, - accessibilityTraits: this.props.accessibilityTraits, - nativeID: this.props.nativeID, - testID: this.props.testID, - onLayout: this.props.onLayout, - hitSlop: this.props.hitSlop, - onStartShouldSetResponder: this.touchableHandleStartShouldSetResponder, - onResponderTerminationRequest: this.touchableHandleResponderTerminationRequest, - onResponderGrant: this.touchableHandleResponderGrant, - onResponderMove: this.touchableHandleResponderMove, - onResponderRelease: this.touchableHandleResponderRelease, - onResponderTerminate: this.touchableHandleResponderTerminate, - style: style, - children: children - }); - } - }); - module.exports = TouchableWithoutFeedback; -},47,[99,121,143,404,43,402,403,111,317],"node_modules/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var GLOBAL = typeof window === 'undefined' ? global : window; - - var setter = function setter(_setter, _clearer, array) { - return function (callback, delta) { - var id = _setter(function () { - _clearer.call(this, id); - - callback.apply(this, arguments); - }.bind(this), delta); - - if (!this[array]) { - this[array] = [id]; - } else { - this[array].push(id); - } - - return id; - }; - }; - - var clearer = function clearer(_clearer, array) { - return function (id) { - if (this[array]) { - var index = this[array].indexOf(id); - - if (index !== -1) { - this[array].splice(index, 1); - } - } - - _clearer(id); - }; - }; - - var _timeouts = 'TimerMixin_timeouts'; - - var _clearTimeout = clearer(GLOBAL.clearTimeout, _timeouts); - - var _setTimeout = setter(GLOBAL.setTimeout, _clearTimeout, _timeouts); - - var _intervals = 'TimerMixin_intervals'; - - var _clearInterval = clearer(GLOBAL.clearInterval, _intervals); - - var _setInterval = setter(GLOBAL.setInterval, function () {}, _intervals); - - var _immediates = 'TimerMixin_immediates'; - - var _clearImmediate = clearer(GLOBAL.clearImmediate, _immediates); - - var _setImmediate = setter(GLOBAL.setImmediate, _clearImmediate, _immediates); - - var _rafs = 'TimerMixin_rafs'; - - var _cancelAnimationFrame = clearer(GLOBAL.cancelAnimationFrame, _rafs); - - var _requestAnimationFrame = setter(GLOBAL.requestAnimationFrame, _cancelAnimationFrame, _rafs); - - var TimerMixin = { - componentWillUnmount: function componentWillUnmount() { - this[_timeouts] && this[_timeouts].forEach(function (id) { - GLOBAL.clearTimeout(id); - }); - this[_timeouts] = null; - this[_intervals] && this[_intervals].forEach(function (id) { - GLOBAL.clearInterval(id); - }); - this[_intervals] = null; - this[_immediates] && this[_immediates].forEach(function (id) { - GLOBAL.clearImmediate(id); - }); - this[_immediates] = null; - this[_rafs] && this[_rafs].forEach(function (id) { - GLOBAL.cancelAnimationFrame(id); - }); - this[_rafs] = null; - }, - setTimeout: _setTimeout, - clearTimeout: _clearTimeout, - setInterval: _setInterval, - clearInterval: _clearInterval, - setImmediate: _setImmediate, - clearImmediate: _clearImmediate, - requestAnimationFrame: _requestAnimationFrame, - cancelAnimationFrame: _cancelAnimationFrame - }; - module.exports = TimerMixin; -},404,[],"node_modules/react-timer-mixin/TimerMixin.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var React = _$$_REQUIRE(_dependencyMap[0], 'react'); - - var factory = _$$_REQUIRE(_dependencyMap[1], './factory'); - - if (typeof React === 'undefined') { - throw Error('create-react-class could not find the React object. If you are using script tags, ' + 'make sure that React is being loaded before create-react-class.'); - } - - var ReactNoopUpdateQueue = new React.Component().updater; - module.exports = factory(React.Component, React.isValidElement, ReactNoopUpdateQueue); -},402,[122,405],"node_modules/create-react-class/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _assign = _$$_REQUIRE(_dependencyMap[0], 'object-assign'); - - var emptyObject = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/emptyObject'); - - var _invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); - - if (process.env.NODE_ENV !== 'production') { - var warning = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/warning'); - } - - var MIXINS_KEY = 'mixins'; - - function identity(fn) { - return fn; - } - - var ReactPropTypeLocationNames; - - if (process.env.NODE_ENV !== 'production') { - ReactPropTypeLocationNames = { - prop: 'prop', - context: 'context', - childContext: 'child context' - }; - } else { - ReactPropTypeLocationNames = {}; - } - - function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { - var injectedMixins = []; - var ReactClassInterface = { - mixins: 'DEFINE_MANY', - statics: 'DEFINE_MANY', - propTypes: 'DEFINE_MANY', - contextTypes: 'DEFINE_MANY', - childContextTypes: 'DEFINE_MANY', - getDefaultProps: 'DEFINE_MANY_MERGED', - getInitialState: 'DEFINE_MANY_MERGED', - getChildContext: 'DEFINE_MANY_MERGED', - render: 'DEFINE_ONCE', - componentWillMount: 'DEFINE_MANY', - componentDidMount: 'DEFINE_MANY', - componentWillReceiveProps: 'DEFINE_MANY', - shouldComponentUpdate: 'DEFINE_ONCE', - componentWillUpdate: 'DEFINE_MANY', - componentDidUpdate: 'DEFINE_MANY', - componentWillUnmount: 'DEFINE_MANY', - UNSAFE_componentWillMount: 'DEFINE_MANY', - UNSAFE_componentWillReceiveProps: 'DEFINE_MANY', - UNSAFE_componentWillUpdate: 'DEFINE_MANY', - updateComponent: 'OVERRIDE_BASE' - }; - var ReactClassStaticInterface = { - getDerivedStateFromProps: 'DEFINE_MANY_MERGED' - }; - var RESERVED_SPEC_KEYS = { - displayName: function displayName(Constructor, _displayName) { - Constructor.displayName = _displayName; - }, - mixins: function mixins(Constructor, _mixins) { - if (_mixins) { - for (var i = 0; i < _mixins.length; i++) { - mixSpecIntoComponent(Constructor, _mixins[i]); - } - } - }, - childContextTypes: function childContextTypes(Constructor, _childContextTypes) { - if (process.env.NODE_ENV !== 'production') { - validateTypeDef(Constructor, _childContextTypes, 'childContext'); - } - - Constructor.childContextTypes = _assign({}, Constructor.childContextTypes, _childContextTypes); - }, - contextTypes: function contextTypes(Constructor, _contextTypes) { - if (process.env.NODE_ENV !== 'production') { - validateTypeDef(Constructor, _contextTypes, 'context'); - } - - Constructor.contextTypes = _assign({}, Constructor.contextTypes, _contextTypes); - }, - getDefaultProps: function getDefaultProps(Constructor, _getDefaultProps) { - if (Constructor.getDefaultProps) { - Constructor.getDefaultProps = createMergedResultFunction(Constructor.getDefaultProps, _getDefaultProps); - } else { - Constructor.getDefaultProps = _getDefaultProps; - } - }, - propTypes: function propTypes(Constructor, _propTypes) { - if (process.env.NODE_ENV !== 'production') { - validateTypeDef(Constructor, _propTypes, 'prop'); - } - - Constructor.propTypes = _assign({}, Constructor.propTypes, _propTypes); - }, - statics: function statics(Constructor, _statics) { - mixStaticSpecIntoComponent(Constructor, _statics); - }, - autobind: function autobind() {} - }; - - function validateTypeDef(Constructor, typeDef, location) { - for (var propName in typeDef) { - if (typeDef.hasOwnProperty(propName)) { - if (process.env.NODE_ENV !== 'production') { - warning(typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', Constructor.displayName || 'ReactClass', ReactPropTypeLocationNames[location], propName); - } - } - } - } - - function validateMethodOverride(isAlreadyDefined, name) { - var specPolicy = ReactClassInterface.hasOwnProperty(name) ? ReactClassInterface[name] : null; - - if (ReactClassMixin.hasOwnProperty(name)) { - _invariant(specPolicy === 'OVERRIDE_BASE', 'ReactClassInterface: You are attempting to override ' + '`%s` from your class specification. Ensure that your method names ' + 'do not overlap with React methods.', name); - } - - if (isAlreadyDefined) { - _invariant(specPolicy === 'DEFINE_MANY' || specPolicy === 'DEFINE_MANY_MERGED', 'ReactClassInterface: You are attempting to define ' + '`%s` on your component more than once. This conflict may be due ' + 'to a mixin.', name); - } - } - - function mixSpecIntoComponent(Constructor, spec) { - if (!spec) { - if (process.env.NODE_ENV !== 'production') { - var typeofSpec = typeof spec; - var isMixinValid = typeofSpec === 'object' && spec !== null; - - if (process.env.NODE_ENV !== 'production') { - warning(isMixinValid, "%s: You're attempting to include a mixin that is either null " + 'or not an object. Check the mixins included by the component, ' + 'as well as any mixins they include themselves. ' + 'Expected object but got %s.', Constructor.displayName || 'ReactClass', spec === null ? null : typeofSpec); - } - } - - return; - } - - _invariant(typeof spec !== 'function', "ReactClass: You're attempting to " + 'use a component class or function as a mixin. Instead, just use a ' + 'regular object.'); - - _invariant(!isValidElement(spec), "ReactClass: You're attempting to " + 'use a component as a mixin. Instead, just use a regular object.'); - - var proto = Constructor.prototype; - var autoBindPairs = proto.__reactAutoBindPairs; - - if (spec.hasOwnProperty(MIXINS_KEY)) { - RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins); - } - - for (var name in spec) { - if (!spec.hasOwnProperty(name)) { - continue; - } - - if (name === MIXINS_KEY) { - continue; - } - - var property = spec[name]; - var isAlreadyDefined = proto.hasOwnProperty(name); - validateMethodOverride(isAlreadyDefined, name); - - if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) { - RESERVED_SPEC_KEYS[name](Constructor, property); - } else { - var isReactClassMethod = ReactClassInterface.hasOwnProperty(name); - var isFunction = typeof property === 'function'; - var shouldAutoBind = isFunction && !isReactClassMethod && !isAlreadyDefined && spec.autobind !== false; - - if (shouldAutoBind) { - autoBindPairs.push(name, property); - proto[name] = property; - } else { - if (isAlreadyDefined) { - var specPolicy = ReactClassInterface[name]; - - _invariant(isReactClassMethod && (specPolicy === 'DEFINE_MANY_MERGED' || specPolicy === 'DEFINE_MANY'), 'ReactClass: Unexpected spec policy %s for key %s ' + 'when mixing in component specs.', specPolicy, name); - - if (specPolicy === 'DEFINE_MANY_MERGED') { - proto[name] = createMergedResultFunction(proto[name], property); - } else if (specPolicy === 'DEFINE_MANY') { - proto[name] = createChainedFunction(proto[name], property); - } - } else { - proto[name] = property; - - if (process.env.NODE_ENV !== 'production') { - if (typeof property === 'function' && spec.displayName) { - proto[name].displayName = spec.displayName + '_' + name; - } - } - } - } - } - } - } - - function mixStaticSpecIntoComponent(Constructor, statics) { - if (!statics) { - return; - } - - for (var name in statics) { - var property = statics[name]; - - if (!statics.hasOwnProperty(name)) { - continue; - } - - var isReserved = name in RESERVED_SPEC_KEYS; - - _invariant(!isReserved, 'ReactClass: You are attempting to define a reserved ' + 'property, `%s`, that shouldn\'t be on the "statics" key. Define it ' + 'as an instance property instead; it will still be accessible on the ' + 'constructor.', name); - - var isAlreadyDefined = name in Constructor; - - if (isAlreadyDefined) { - var specPolicy = ReactClassStaticInterface.hasOwnProperty(name) ? ReactClassStaticInterface[name] : null; - - _invariant(specPolicy === 'DEFINE_MANY_MERGED', 'ReactClass: You are attempting to define ' + '`%s` on your component more than once. This conflict may be ' + 'due to a mixin.', name); - - Constructor[name] = createMergedResultFunction(Constructor[name], property); - return; - } - - Constructor[name] = property; - } - } - - function mergeIntoWithNoDuplicateKeys(one, two) { - _invariant(one && two && typeof one === 'object' && typeof two === 'object', 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.'); - - for (var key in two) { - if (two.hasOwnProperty(key)) { - _invariant(one[key] === undefined, 'mergeIntoWithNoDuplicateKeys(): ' + 'Tried to merge two objects with the same key: `%s`. This conflict ' + 'may be due to a mixin; in particular, this may be caused by two ' + 'getInitialState() or getDefaultProps() methods returning objects ' + 'with clashing keys.', key); - - one[key] = two[key]; - } - } - - return one; - } - - function createMergedResultFunction(one, two) { - return function mergedResult() { - var a = one.apply(this, arguments); - var b = two.apply(this, arguments); - - if (a == null) { - return b; - } else if (b == null) { - return a; - } - - var c = {}; - mergeIntoWithNoDuplicateKeys(c, a); - mergeIntoWithNoDuplicateKeys(c, b); - return c; - }; - } - - function createChainedFunction(one, two) { - return function chainedFunction() { - one.apply(this, arguments); - two.apply(this, arguments); - }; - } - - function bindAutoBindMethod(component, method) { - var boundMethod = method.bind(component); - - if (process.env.NODE_ENV !== 'production') { - boundMethod.__reactBoundContext = component; - boundMethod.__reactBoundMethod = method; - boundMethod.__reactBoundArguments = null; - var componentName = component.constructor.displayName; - var _bind = boundMethod.bind; - - boundMethod.bind = function (newThis) { - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - if (newThis !== component && newThis !== null) { - if (process.env.NODE_ENV !== 'production') { - warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance. See %s', componentName); - } - } else if (!args.length) { - if (process.env.NODE_ENV !== 'production') { - warning(false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call. See %s', componentName); - } - - return boundMethod; - } - - var reboundMethod = _bind.apply(boundMethod, arguments); - - reboundMethod.__reactBoundContext = component; - reboundMethod.__reactBoundMethod = method; - reboundMethod.__reactBoundArguments = args; - return reboundMethod; - }; - } - - return boundMethod; - } - - function bindAutoBindMethods(component) { - var pairs = component.__reactAutoBindPairs; - - for (var i = 0; i < pairs.length; i += 2) { - var autoBindKey = pairs[i]; - var method = pairs[i + 1]; - component[autoBindKey] = bindAutoBindMethod(component, method); - } - } - - var IsMountedPreMixin = { - componentDidMount: function componentDidMount() { - this.__isMounted = true; - } - }; - var IsMountedPostMixin = { - componentWillUnmount: function componentWillUnmount() { - this.__isMounted = false; - } - }; - var ReactClassMixin = { - replaceState: function replaceState(newState, callback) { - this.updater.enqueueReplaceState(this, newState, callback); - }, - isMounted: function isMounted() { - if (process.env.NODE_ENV !== 'production') { - warning(this.__didWarnIsMounted, '%s: isMounted is deprecated. Instead, make sure to clean up ' + 'subscriptions and pending requests in componentWillUnmount to ' + 'prevent memory leaks.', this.constructor && this.constructor.displayName || this.name || 'Component'); - this.__didWarnIsMounted = true; - } - - return !!this.__isMounted; - } - }; - - var ReactClassComponent = function ReactClassComponent() {}; - - _assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin); - - function createClass(spec) { - var Constructor = identity(function (props, context, updater) { - if (process.env.NODE_ENV !== 'production') { - warning(this instanceof Constructor, 'Something is calling a React component directly. Use a factory or ' + 'JSX instead. See: https://fb.me/react-legacyfactory'); - } - - if (this.__reactAutoBindPairs.length) { - bindAutoBindMethods(this); - } - - this.props = props; - this.context = context; - this.refs = emptyObject; - this.updater = updater || ReactNoopUpdateQueue; - this.state = null; - var initialState = this.getInitialState ? this.getInitialState() : null; - - if (process.env.NODE_ENV !== 'production') { - if (initialState === undefined && this.getInitialState._isMockFunction) { - initialState = null; - } - } - - _invariant(typeof initialState === 'object' && !Array.isArray(initialState), '%s.getInitialState(): must return an object or null', Constructor.displayName || 'ReactCompositeComponent'); - - this.state = initialState; - }); - Constructor.prototype = new ReactClassComponent(); - Constructor.prototype.constructor = Constructor; - Constructor.prototype.__reactAutoBindPairs = []; - injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor)); - mixSpecIntoComponent(Constructor, IsMountedPreMixin); - mixSpecIntoComponent(Constructor, spec); - mixSpecIntoComponent(Constructor, IsMountedPostMixin); - - if (Constructor.getDefaultProps) { - Constructor.defaultProps = Constructor.getDefaultProps(); - } - - if (process.env.NODE_ENV !== 'production') { - if (Constructor.getDefaultProps) { - Constructor.getDefaultProps.isReactClassApproved = {}; - } - - if (Constructor.prototype.getInitialState) { - Constructor.prototype.getInitialState.isReactClassApproved = {}; - } - } - - _invariant(Constructor.prototype.render, 'createClass(...): Class specification must implement a `render` method.'); - - if (process.env.NODE_ENV !== 'production') { - warning(!Constructor.prototype.componentShouldUpdate, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', spec.displayName || 'A component'); - warning(!Constructor.prototype.componentWillRecieveProps, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', spec.displayName || 'A component'); - warning(!Constructor.prototype.UNSAFE_componentWillRecieveProps, '%s has a method called UNSAFE_componentWillRecieveProps(). ' + 'Did you mean UNSAFE_componentWillReceiveProps()?', spec.displayName || 'A component'); - } - - for (var methodName in ReactClassInterface) { - if (!Constructor.prototype[methodName]) { - Constructor.prototype[methodName] = null; - } - } - - return Constructor; - } - - return createClass; - } - - module.exports = factory; -},405,[125,127,126,129],"node_modules/create-react-class/factory.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); - - var ensurePositiveDelayProps = function ensurePositiveDelayProps(props) { - invariant(!(props.delayPressIn < 0 || props.delayPressOut < 0 || props.delayLongPress < 0), 'Touchable components cannot have negative delay properties'); - }; - - module.exports = ensurePositiveDelayProps; -},403,[4],"node_modules/react-native/Libraries/Components/Touchable/ensurePositiveDelayProps.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/Touchable/TouchableOpacity.js"; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var Animated = _$$_REQUIRE(_dependencyMap[0], 'Animated'); - - var Easing = _$$_REQUIRE(_dependencyMap[1], 'Easing'); - - var NativeMethodsMixin = _$$_REQUIRE(_dependencyMap[2], 'NativeMethodsMixin'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[4], 'prop-types'); - - var TimerMixin = _$$_REQUIRE(_dependencyMap[5], 'react-timer-mixin'); - - var Touchable = _$$_REQUIRE(_dependencyMap[6], 'Touchable'); - - var TouchableWithoutFeedback = _$$_REQUIRE(_dependencyMap[7], 'TouchableWithoutFeedback'); - - var createReactClass = _$$_REQUIRE(_dependencyMap[8], 'create-react-class'); - - var ensurePositiveDelayProps = _$$_REQUIRE(_dependencyMap[9], 'ensurePositiveDelayProps'); - - var flattenStyle = _$$_REQUIRE(_dependencyMap[10], 'flattenStyle'); - - var PRESS_RETENTION_OFFSET = { - top: 20, - left: 20, - right: 20, - bottom: 30 - }; - var TouchableOpacity = createReactClass({ - displayName: 'TouchableOpacity', - mixins: [TimerMixin, Touchable.Mixin, NativeMethodsMixin], - propTypes: _objectSpread({}, TouchableWithoutFeedback.propTypes, { - activeOpacity: PropTypes.number, - hasTVPreferredFocus: PropTypes.bool, - tvParallaxProperties: PropTypes.object - }), - getDefaultProps: function getDefaultProps() { - return { - activeOpacity: 0.2 - }; - }, - getInitialState: function getInitialState() { - return _objectSpread({}, this.touchableGetInitialState(), { - anim: new Animated.Value(this._getChildStyleOpacityWithDefault()) - }); - }, - componentDidMount: function componentDidMount() { - ensurePositiveDelayProps(this.props); - }, - UNSAFE_componentWillReceiveProps: function UNSAFE_componentWillReceiveProps(nextProps) { - ensurePositiveDelayProps(nextProps); - }, - componentDidUpdate: function componentDidUpdate(prevProps, prevState) { - if (this.props.disabled !== prevProps.disabled) { - this._opacityInactive(250); - } - }, - setOpacityTo: function setOpacityTo(value, duration) { - Animated.timing(this.state.anim, { - toValue: value, - duration: duration, - easing: Easing.inOut(Easing.quad), - useNativeDriver: true - }).start(); - }, - touchableHandleActivePressIn: function touchableHandleActivePressIn(e) { - if (e.dispatchConfig.registrationName === 'onResponderGrant') { - this._opacityActive(0); - } else { - this._opacityActive(150); - } - - this.props.onPressIn && this.props.onPressIn(e); - }, - touchableHandleActivePressOut: function touchableHandleActivePressOut(e) { - this._opacityInactive(250); - - this.props.onPressOut && this.props.onPressOut(e); - }, - touchableHandlePress: function touchableHandlePress(e) { - this.props.onPress && this.props.onPress(e); - }, - touchableHandleLongPress: function touchableHandleLongPress(e) { - this.props.onLongPress && this.props.onLongPress(e); - }, - touchableGetPressRectOffset: function touchableGetPressRectOffset() { - return this.props.pressRetentionOffset || PRESS_RETENTION_OFFSET; - }, - touchableGetHitSlop: function touchableGetHitSlop() { - return this.props.hitSlop; - }, - touchableGetHighlightDelayMS: function touchableGetHighlightDelayMS() { - return this.props.delayPressIn || 0; - }, - touchableGetLongPressDelayMS: function touchableGetLongPressDelayMS() { - return this.props.delayLongPress === 0 ? 0 : this.props.delayLongPress || 500; - }, - touchableGetPressOutDelayMS: function touchableGetPressOutDelayMS() { - return this.props.delayPressOut; - }, - _opacityActive: function _opacityActive(duration) { - this.setOpacityTo(this.props.activeOpacity, duration); - }, - _opacityInactive: function _opacityInactive(duration) { - this.setOpacityTo(this._getChildStyleOpacityWithDefault(), duration); - }, - _getChildStyleOpacityWithDefault: function _getChildStyleOpacityWithDefault() { - var childStyle = flattenStyle(this.props.style) || {}; - return childStyle.opacity == undefined ? 1 : childStyle.opacity; - }, - render: function render() { - return React.createElement(Animated.View, { - accessible: this.props.accessible !== false, - accessibilityLabel: this.props.accessibilityLabel, - accessibilityComponentType: this.props.accessibilityComponentType, - accessibilityTraits: this.props.accessibilityTraits, - style: [this.props.style, { - opacity: this.state.anim - }], - nativeID: this.props.nativeID, - testID: this.props.testID, - onLayout: this.props.onLayout, - isTVSelectable: true, - hasTVPreferredFocus: this.props.hasTVPreferredFocus, - tvParallaxProperties: this.props.tvParallaxProperties, - hitSlop: this.props.hitSlop, - onStartShouldSetResponder: this.touchableHandleStartShouldSetResponder, - onResponderTerminationRequest: this.touchableHandleResponderTerminationRequest, - onResponderGrant: this.touchableHandleResponderGrant, - onResponderMove: this.touchableHandleResponderMove, - onResponderRelease: this.touchableHandleResponderRelease, - onResponderTerminate: this.touchableHandleResponderTerminate, - __source: { - fileName: _jsxFileName, - lineNumber: 256 - } - }, this.props.children, Touchable.renderDebugView({ - color: 'cyan', - hitSlop: this.props.hitSlop - })); - } - }); - module.exports = TouchableOpacity; -},46,[55,66,406,121,143,404,43,47,402,403,134],"node_modules/react-native/Libraries/Components/Touchable/TouchableOpacity.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - var AnimatedImplementation = _$$_REQUIRE(_dependencyMap[0], 'AnimatedImplementation'); - - var Image = _$$_REQUIRE(_dependencyMap[1], 'Image'); - - var ScrollView = _$$_REQUIRE(_dependencyMap[2], 'ScrollView'); - - var Text = _$$_REQUIRE(_dependencyMap[3], 'Text'); - - var View = _$$_REQUIRE(_dependencyMap[4], 'View'); - - var Animated = { - View: AnimatedImplementation.createAnimatedComponent(View), - Text: AnimatedImplementation.createAnimatedComponent(Text), - Image: AnimatedImplementation.createAnimatedComponent(Image), - ScrollView: AnimatedImplementation.createAnimatedComponent(ScrollView) - }; - - _extends(Animated, AnimatedImplementation); - - module.exports = Animated; -},55,[407,13,28,39,48],"node_modules/react-native/Libraries/Animated/src/Animated.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var _require = _$$_REQUIRE(_dependencyMap[0], './AnimatedEvent'), - AnimatedEvent = _require.AnimatedEvent, - attachNativeEvent = _require.attachNativeEvent; - - var AnimatedAddition = _$$_REQUIRE(_dependencyMap[1], './nodes/AnimatedAddition'); - - var AnimatedDiffClamp = _$$_REQUIRE(_dependencyMap[2], './nodes/AnimatedDiffClamp'); - - var AnimatedDivision = _$$_REQUIRE(_dependencyMap[3], './nodes/AnimatedDivision'); - - var AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[4], './nodes/AnimatedInterpolation'); - - var AnimatedModulo = _$$_REQUIRE(_dependencyMap[5], './nodes/AnimatedModulo'); - - var AnimatedMultiplication = _$$_REQUIRE(_dependencyMap[6], './nodes/AnimatedMultiplication'); - - var AnimatedNode = _$$_REQUIRE(_dependencyMap[7], './nodes/AnimatedNode'); - - var AnimatedProps = _$$_REQUIRE(_dependencyMap[8], './nodes/AnimatedProps'); - - var AnimatedSubtraction = _$$_REQUIRE(_dependencyMap[9], './nodes/AnimatedSubtraction'); - - var AnimatedTracking = _$$_REQUIRE(_dependencyMap[10], './nodes/AnimatedTracking'); - - var AnimatedValue = _$$_REQUIRE(_dependencyMap[11], './nodes/AnimatedValue'); - - var AnimatedValueXY = _$$_REQUIRE(_dependencyMap[12], './nodes/AnimatedValueXY'); - - var DecayAnimation = _$$_REQUIRE(_dependencyMap[13], './animations/DecayAnimation'); - - var SpringAnimation = _$$_REQUIRE(_dependencyMap[14], './animations/SpringAnimation'); - - var TimingAnimation = _$$_REQUIRE(_dependencyMap[15], './animations/TimingAnimation'); - - var createAnimatedComponent = _$$_REQUIRE(_dependencyMap[16], './createAnimatedComponent'); - - var add = function add(a, b) { - return new AnimatedAddition(a, b); - }; - - var subtract = function subtract(a, b) { - return new AnimatedSubtraction(a, b); - }; - - var divide = function divide(a, b) { - return new AnimatedDivision(a, b); - }; - - var multiply = function multiply(a, b) { - return new AnimatedMultiplication(a, b); - }; - - var modulo = function modulo(a, modulus) { - return new AnimatedModulo(a, modulus); - }; - - var diffClamp = function diffClamp(a, min, max) { - return new AnimatedDiffClamp(a, min, max); - }; - - var _combineCallbacks = function _combineCallbacks(callback, config) { - if (callback && config.onComplete) { - return function () { - config.onComplete && config.onComplete.apply(config, arguments); - callback && callback.apply(void 0, arguments); - }; - } else { - return callback || config.onComplete; - } - }; - - var maybeVectorAnim = function maybeVectorAnim(value, config, anim) { - if (value instanceof AnimatedValueXY) { - var configX = _objectSpread({}, config); - - var configY = _objectSpread({}, config); - - for (var key in config) { - var _config$key = config[key], - x = _config$key.x, - y = _config$key.y; - - if (x !== undefined && y !== undefined) { - configX[key] = x; - configY[key] = y; - } - } - - var aX = anim(value.x, configX); - var aY = anim(value.y, configY); - return parallel([aX, aY], { - stopTogether: false - }); - } - - return null; - }; - - var spring = function spring(value, config) { - var start = function start(animatedValue, configuration, callback) { - callback = _combineCallbacks(callback, configuration); - var singleValue = animatedValue; - var singleConfig = configuration; - singleValue.stopTracking(); - - if (configuration.toValue instanceof AnimatedNode) { - singleValue.track(new AnimatedTracking(singleValue, configuration.toValue, SpringAnimation, singleConfig, callback)); - } else { - singleValue.animate(new SpringAnimation(singleConfig), callback); - } - }; - - return maybeVectorAnim(value, config, spring) || { - start: function (_start) { - function start(_x) { - return _start.apply(this, arguments); - } - - start.toString = function () { - return _start.toString(); - }; - - return start; - }(function (callback) { - start(value, config, callback); - }), - stop: function stop() { - value.stopAnimation(); - }, - reset: function reset() { - value.resetAnimation(); - }, - _startNativeLoop: function _startNativeLoop(iterations) { - var singleConfig = _objectSpread({}, config, { - iterations: iterations - }); - - start(value, singleConfig); - }, - _isUsingNativeDriver: function _isUsingNativeDriver() { - return config.useNativeDriver || false; - } - }; - }; - - var timing = function timing(value, config) { - var start = function start(animatedValue, configuration, callback) { - callback = _combineCallbacks(callback, configuration); - var singleValue = animatedValue; - var singleConfig = configuration; - singleValue.stopTracking(); - - if (configuration.toValue instanceof AnimatedNode) { - singleValue.track(new AnimatedTracking(singleValue, configuration.toValue, TimingAnimation, singleConfig, callback)); - } else { - singleValue.animate(new TimingAnimation(singleConfig), callback); - } - }; - - return maybeVectorAnim(value, config, timing) || { - start: function (_start2) { - function start(_x2) { - return _start2.apply(this, arguments); - } - - start.toString = function () { - return _start2.toString(); - }; - - return start; - }(function (callback) { - start(value, config, callback); - }), - stop: function stop() { - value.stopAnimation(); - }, - reset: function reset() { - value.resetAnimation(); - }, - _startNativeLoop: function _startNativeLoop(iterations) { - var singleConfig = _objectSpread({}, config, { - iterations: iterations - }); - - start(value, singleConfig); - }, - _isUsingNativeDriver: function _isUsingNativeDriver() { - return config.useNativeDriver || false; - } - }; - }; - - var decay = function decay(value, config) { - var start = function start(animatedValue, configuration, callback) { - callback = _combineCallbacks(callback, configuration); - var singleValue = animatedValue; - var singleConfig = configuration; - singleValue.stopTracking(); - singleValue.animate(new DecayAnimation(singleConfig), callback); - }; - - return maybeVectorAnim(value, config, decay) || { - start: function (_start3) { - function start(_x3) { - return _start3.apply(this, arguments); - } - - start.toString = function () { - return _start3.toString(); - }; - - return start; - }(function (callback) { - start(value, config, callback); - }), - stop: function stop() { - value.stopAnimation(); - }, - reset: function reset() { - value.resetAnimation(); - }, - _startNativeLoop: function _startNativeLoop(iterations) { - var singleConfig = _objectSpread({}, config, { - iterations: iterations - }); - - start(value, singleConfig); - }, - _isUsingNativeDriver: function _isUsingNativeDriver() { - return config.useNativeDriver || false; - } - }; - }; - - var sequence = function sequence(animations) { - var current = 0; - return { - start: function start(callback) { - var onComplete = function onComplete(result) { - if (!result.finished) { - callback && callback(result); - return; - } - - current++; - - if (current === animations.length) { - callback && callback(result); - return; - } - - animations[current].start(onComplete); - }; - - if (animations.length === 0) { - callback && callback({ - finished: true - }); - } else { - animations[current].start(onComplete); - } - }, - stop: function stop() { - if (current < animations.length) { - animations[current].stop(); - } - }, - reset: function reset() { - animations.forEach(function (animation, idx) { - if (idx <= current) { - animation.reset(); - } - }); - current = 0; - }, - _startNativeLoop: function _startNativeLoop() { - throw new Error('Loops run using the native driver cannot contain Animated.sequence animations'); - }, - _isUsingNativeDriver: function _isUsingNativeDriver() { - return false; - } - }; - }; - - var parallel = function parallel(animations, config) { - var doneCount = 0; - var hasEnded = {}; - var stopTogether = !(config && config.stopTogether === false); - var result = { - start: function start(callback) { - if (doneCount === animations.length) { - callback && callback({ - finished: true - }); - return; - } - - animations.forEach(function (animation, idx) { - var cb = function cb(endResult) { - hasEnded[idx] = true; - doneCount++; - - if (doneCount === animations.length) { - doneCount = 0; - callback && callback(endResult); - return; - } - - if (!endResult.finished && stopTogether) { - result.stop(); - } - }; - - if (!animation) { - cb({ - finished: true - }); - } else { - animation.start(cb); - } - }); - }, - stop: function stop() { - animations.forEach(function (animation, idx) { - !hasEnded[idx] && animation.stop(); - hasEnded[idx] = true; - }); - }, - reset: function reset() { - animations.forEach(function (animation, idx) { - animation.reset(); - hasEnded[idx] = false; - doneCount = 0; - }); - }, - _startNativeLoop: function _startNativeLoop() { - throw new Error('Loops run using the native driver cannot contain Animated.parallel animations'); - }, - _isUsingNativeDriver: function _isUsingNativeDriver() { - return false; - } - }; - return result; - }; - - var delay = function delay(time) { - return timing(new AnimatedValue(0), { - toValue: 0, - delay: time, - duration: 0 - }); - }; - - var stagger = function stagger(time, animations) { - return parallel(animations.map(function (animation, i) { - return sequence([delay(time * i), animation]); - })); - }; - - var loop = function loop(animation) { - var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref$iterations = _ref.iterations, - iterations = _ref$iterations === void 0 ? -1 : _ref$iterations; - - var isFinished = false; - var iterationsSoFar = 0; - return { - start: function start(callback) { - var restart = function restart() { - var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { - finished: true - }; - - if (isFinished || iterationsSoFar === iterations || result.finished === false) { - callback && callback(result); - } else { - iterationsSoFar++; - animation.reset(); - animation.start(restart); - } - }; - - if (!animation || iterations === 0) { - callback && callback({ - finished: true - }); - } else { - if (animation._isUsingNativeDriver()) { - animation._startNativeLoop(iterations); - } else { - restart(); - } - } - }, - stop: function stop() { - isFinished = true; - animation.stop(); - }, - reset: function reset() { - iterationsSoFar = 0; - isFinished = false; - animation.reset(); - }, - _startNativeLoop: function _startNativeLoop() { - throw new Error('Loops run using the native driver cannot contain Animated.loop animations'); - }, - _isUsingNativeDriver: function _isUsingNativeDriver() { - return animation._isUsingNativeDriver(); - } - }; - }; - - function forkEvent(event, listener) { - if (!event) { - return listener; - } else if (event instanceof AnimatedEvent) { - event.__addListener(listener); - - return event; - } else { - return function () { - typeof event === 'function' && event.apply(void 0, arguments); - listener.apply(void 0, arguments); - }; - } - } - - function unforkEvent(event, listener) { - if (event && event instanceof AnimatedEvent) { - event.__removeListener(listener); - } - } - - var event = function event(argMapping, config) { - var animatedEvent = new AnimatedEvent(argMapping, config); - - if (animatedEvent.__isNative) { - return animatedEvent; - } else { - return animatedEvent.__getHandler(); - } - }; - - module.exports = { - Value: AnimatedValue, - ValueXY: AnimatedValueXY, - Interpolation: AnimatedInterpolation, - Node: AnimatedNode, - decay: decay, - timing: timing, - spring: spring, - add: add, - subtract: subtract, - divide: divide, - multiply: multiply, - modulo: modulo, - diffClamp: diffClamp, - delay: delay, - sequence: sequence, - parallel: parallel, - stagger: stagger, - loop: loop, - event: event, - createAnimatedComponent: createAnimatedComponent, - attachNativeEvent: attachNativeEvent, - forkEvent: forkEvent, - unforkEvent: unforkEvent, - __PropsOnlyForTests: AnimatedProps - }; -},407,[408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424],"node_modules/react-native/Libraries/Animated/src/AnimatedImplementation.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var AnimatedValue = _$$_REQUIRE(_dependencyMap[0], './nodes/AnimatedValue'); - - var NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[1], './NativeAnimatedHelper'); - - var ReactNative = _$$_REQUIRE(_dependencyMap[2], 'ReactNative'); - - var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); - - var _require = _$$_REQUIRE(_dependencyMap[1], './NativeAnimatedHelper'), - shouldUseNativeDriver = _require.shouldUseNativeDriver; - - function attachNativeEvent(viewRef, eventName, argMapping) { - var eventMappings = []; - - var traverse = function traverse(value, path) { - if (value instanceof AnimatedValue) { - value.__makeNative(); - - eventMappings.push({ - nativeEventPath: path, - animatedValueTag: value.__getNativeTag() - }); - } else if (typeof value === 'object') { - for (var _key in value) { - traverse(value[_key], path.concat(_key)); - } - } - }; - - invariant(argMapping[0] && argMapping[0].nativeEvent, 'Native driven events only support animated values contained inside `nativeEvent`.'); - traverse(argMapping[0].nativeEvent, []); - var viewTag = ReactNative.findNodeHandle(viewRef); - eventMappings.forEach(function (mapping) { - NativeAnimatedHelper.API.addAnimatedEventToView(viewTag, eventName, mapping); - }); - return { - detach: function detach() { - eventMappings.forEach(function (mapping) { - NativeAnimatedHelper.API.removeAnimatedEventFromView(viewTag, eventName, mapping.animatedValueTag); - }); - } - }; - } - - var AnimatedEvent = function () { - function AnimatedEvent(argMapping) { - var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - _classCallCheck(this, AnimatedEvent); - - this._listeners = []; - this._argMapping = argMapping; - - if (config.listener) { - this.__addListener(config.listener); - } - - this._callListeners = this._callListeners.bind(this); - this._attachedEvent = null; - this.__isNative = shouldUseNativeDriver(config); - - if (__DEV__) { - this._validateMapping(); - } - } - - _createClass(AnimatedEvent, [{ - key: "__addListener", - value: function __addListener(callback) { - this._listeners.push(callback); - } - }, { - key: "__removeListener", - value: function __removeListener(callback) { - this._listeners = this._listeners.filter(function (listener) { - return listener !== callback; - }); - } - }, { - key: "__attach", - value: function __attach(viewRef, eventName) { - invariant(this.__isNative, 'Only native driven events need to be attached.'); - this._attachedEvent = attachNativeEvent(viewRef, eventName, this._argMapping); - } - }, { - key: "__detach", - value: function __detach(viewTag, eventName) { - invariant(this.__isNative, 'Only native driven events need to be detached.'); - this._attachedEvent && this._attachedEvent.detach(); - } - }, { - key: "__getHandler", - value: function __getHandler() { - var _this = this; - - if (this.__isNative) { - return this._callListeners; - } - - return function () { - for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) { - args[_key2] = arguments[_key2]; - } - - var traverse = function traverse(recMapping, recEvt, key) { - if (typeof recEvt === 'number' && recMapping instanceof AnimatedValue) { - recMapping.setValue(recEvt); - } else if (typeof recMapping === 'object') { - for (var mappingKey in recMapping) { - traverse(recMapping[mappingKey], recEvt[mappingKey], mappingKey); - } - } - }; - - if (!_this.__isNative) { - _this._argMapping.forEach(function (mapping, idx) { - traverse(mapping, args[idx], 'arg' + idx); - }); - } - - _this._callListeners.apply(_this, args); - }; - } - }, { - key: "_callListeners", - value: function _callListeners() { - for (var _len2 = arguments.length, args = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++) { - args[_key3] = arguments[_key3]; - } - - this._listeners.forEach(function (listener) { - return listener.apply(void 0, args); - }); - } - }, { - key: "_validateMapping", - value: function _validateMapping() { - var traverse = function traverse(recMapping, recEvt, key) { - if (typeof recEvt === 'number') { - invariant(recMapping instanceof AnimatedValue, 'Bad mapping of type ' + typeof recMapping + ' for key ' + key + ', event value must map to AnimatedValue'); - return; - } - - invariant(typeof recMapping === 'object', 'Bad mapping of type ' + typeof recMapping + ' for key ' + key); - invariant(typeof recEvt === 'object', 'Bad event of type ' + typeof recEvt + ' for key ' + key); - - for (var mappingKey in recMapping) { - traverse(recMapping[mappingKey], recEvt[mappingKey], mappingKey); - } - }; - } - }]); - - return AnimatedEvent; - }(); - - module.exports = { - AnimatedEvent: AnimatedEvent, - attachNativeEvent: attachNativeEvent - }; -},408,[419,425,67,4],"node_modules/react-native/Libraries/Animated/src/AnimatedEvent.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } - - function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], './AnimatedInterpolation'); - - var AnimatedNode = _$$_REQUIRE(_dependencyMap[1], './AnimatedNode'); - - var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[2], './AnimatedWithChildren'); - - var InteractionManager = _$$_REQUIRE(_dependencyMap[3], 'InteractionManager'); - - var NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[4], '../NativeAnimatedHelper'); - - var NativeAnimatedAPI = NativeAnimatedHelper.API; - var _uniqueId = 1; - - function _flush(rootNode) { - var animatedStyles = new Set(); - - function findAnimatedStyles(node) { - if (typeof node.update === 'function') { - animatedStyles.add(node); - } else { - node.__getChildren().forEach(findAnimatedStyles); - } - } - - findAnimatedStyles(rootNode); - animatedStyles.forEach(function (animatedStyle) { - return animatedStyle.update(); - }); - } - - var AnimatedValue = function (_AnimatedWithChildren) { - function AnimatedValue(value) { - var _this; - - _classCallCheck(this, AnimatedValue); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedValue).call(this)); - _this._startingValue = _this._value = value; - _this._offset = 0; - _this._animation = null; - _this._listeners = {}; - return _this; - } - - _createClass(AnimatedValue, [{ - key: "__detach", - value: function __detach() { - this.stopAnimation(); - - _get(_getPrototypeOf(AnimatedValue.prototype), "__detach", this).call(this); - } - }, { - key: "__getValue", - value: function __getValue() { - return this._value + this._offset; - } - }, { - key: "__makeNative", - value: function __makeNative() { - _get(_getPrototypeOf(AnimatedValue.prototype), "__makeNative", this).call(this); - - if (Object.keys(this._listeners).length) { - this._startListeningToNativeValueUpdates(); - } - } - }, { - key: "setValue", - value: function setValue(value) { - if (this._animation) { - this._animation.stop(); - - this._animation = null; - } - - this._updateValue(value, !this.__isNative); - - if (this.__isNative) { - NativeAnimatedAPI.setAnimatedNodeValue(this.__getNativeTag(), value); - } - } - }, { - key: "setOffset", - value: function setOffset(offset) { - this._offset = offset; - - if (this.__isNative) { - NativeAnimatedAPI.setAnimatedNodeOffset(this.__getNativeTag(), offset); - } - } - }, { - key: "flattenOffset", - value: function flattenOffset() { - this._value += this._offset; - this._offset = 0; - - if (this.__isNative) { - NativeAnimatedAPI.flattenAnimatedNodeOffset(this.__getNativeTag()); - } - } - }, { - key: "extractOffset", - value: function extractOffset() { - this._offset += this._value; - this._value = 0; - - if (this.__isNative) { - NativeAnimatedAPI.extractAnimatedNodeOffset(this.__getNativeTag()); - } - } - }, { - key: "addListener", - value: function addListener(callback) { - var id = String(_uniqueId++); - this._listeners[id] = callback; - - if (this.__isNative) { - this._startListeningToNativeValueUpdates(); - } - - return id; - } - }, { - key: "removeListener", - value: function removeListener(id) { - delete this._listeners[id]; - - if (this.__isNative && Object.keys(this._listeners).length === 0) { - this._stopListeningForNativeValueUpdates(); - } - } - }, { - key: "removeAllListeners", - value: function removeAllListeners() { - this._listeners = {}; - - if (this.__isNative) { - this._stopListeningForNativeValueUpdates(); - } - } - }, { - key: "_startListeningToNativeValueUpdates", - value: function _startListeningToNativeValueUpdates() { - var _this2 = this; - - if (this.__nativeAnimatedValueListener) { - return; - } - - NativeAnimatedAPI.startListeningToAnimatedNodeValue(this.__getNativeTag()); - this.__nativeAnimatedValueListener = NativeAnimatedHelper.nativeEventEmitter.addListener('onAnimatedValueUpdate', function (data) { - if (data.tag !== _this2.__getNativeTag()) { - return; - } - - _this2._updateValue(data.value, false); - }); - } - }, { - key: "_stopListeningForNativeValueUpdates", - value: function _stopListeningForNativeValueUpdates() { - if (!this.__nativeAnimatedValueListener) { - return; - } - - this.__nativeAnimatedValueListener.remove(); - - this.__nativeAnimatedValueListener = null; - NativeAnimatedAPI.stopListeningToAnimatedNodeValue(this.__getNativeTag()); - } - }, { - key: "stopAnimation", - value: function stopAnimation(callback) { - this.stopTracking(); - this._animation && this._animation.stop(); - this._animation = null; - callback && callback(this.__getValue()); - } - }, { - key: "resetAnimation", - value: function resetAnimation(callback) { - this.stopAnimation(callback); - this._value = this._startingValue; - } - }, { - key: "interpolate", - value: function interpolate(config) { - return new AnimatedInterpolation(this, config); - } - }, { - key: "animate", - value: function animate(animation, callback) { - var _this3 = this; - - var handle = null; - - if (animation.__isInteraction) { - handle = InteractionManager.createInteractionHandle(); - } - - var previousAnimation = this._animation; - this._animation && this._animation.stop(); - this._animation = animation; - animation.start(this._value, function (value) { - _this3._updateValue(value, true); - }, function (result) { - _this3._animation = null; - - if (handle !== null) { - InteractionManager.clearInteractionHandle(handle); - } - - callback && callback(result); - }, previousAnimation, this); - } - }, { - key: "stopTracking", - value: function stopTracking() { - this._tracking && this._tracking.__detach(); - this._tracking = null; - } - }, { - key: "track", - value: function track(tracking) { - this.stopTracking(); - this._tracking = tracking; - } - }, { - key: "_updateValue", - value: function _updateValue(value, flush) { - this._value = value; - - if (flush) { - _flush(this); - } - - for (var _key in this._listeners) { - this._listeners[_key]({ - value: this.__getValue() - }); - } - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - return { - type: 'value', - value: this._value, - offset: this._offset - }; - } - }]); - - _inherits(AnimatedValue, _AnimatedWithChildren); - - return AnimatedValue; - }(AnimatedWithChildren); - - module.exports = AnimatedValue; -},419,[412,415,426,70,425],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedValue.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } - - function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var AnimatedNode = _$$_REQUIRE(_dependencyMap[0], './AnimatedNode'); - - var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[1], './AnimatedWithChildren'); - - var NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[2], '../NativeAnimatedHelper'); - - var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); - - var normalizeColor = _$$_REQUIRE(_dependencyMap[4], 'normalizeColor'); - - var linear = function linear(t) { - return t; - }; - - function createInterpolation(config) { - if (config.outputRange && typeof config.outputRange[0] === 'string') { - return createInterpolationFromStringOutputRange(config); - } - - var outputRange = config.outputRange; - checkInfiniteRange('outputRange', outputRange); - var inputRange = config.inputRange; - checkInfiniteRange('inputRange', inputRange); - checkValidInputRange(inputRange); - invariant(inputRange.length === outputRange.length, 'inputRange (' + inputRange.length + ') and outputRange (' + outputRange.length + ') must have the same length'); - var easing = config.easing || linear; - var extrapolateLeft = 'extend'; - - if (config.extrapolateLeft !== undefined) { - extrapolateLeft = config.extrapolateLeft; - } else if (config.extrapolate !== undefined) { - extrapolateLeft = config.extrapolate; - } - - var extrapolateRight = 'extend'; - - if (config.extrapolateRight !== undefined) { - extrapolateRight = config.extrapolateRight; - } else if (config.extrapolate !== undefined) { - extrapolateRight = config.extrapolate; - } - - return function (input) { - invariant(typeof input === 'number', 'Cannot interpolation an input which is not a number'); - var range = findRange(input, inputRange); - return interpolate(input, inputRange[range], inputRange[range + 1], outputRange[range], outputRange[range + 1], easing, extrapolateLeft, extrapolateRight); - }; - } - - function interpolate(input, inputMin, inputMax, outputMin, outputMax, easing, extrapolateLeft, extrapolateRight) { - var result = input; - - if (result < inputMin) { - if (extrapolateLeft === 'identity') { - return result; - } else if (extrapolateLeft === 'clamp') { - result = inputMin; - } else if (extrapolateLeft === 'extend') {} - } - - if (result > inputMax) { - if (extrapolateRight === 'identity') { - return result; - } else if (extrapolateRight === 'clamp') { - result = inputMax; - } else if (extrapolateRight === 'extend') {} - } - - if (outputMin === outputMax) { - return outputMin; - } - - if (inputMin === inputMax) { - if (input <= inputMin) { - return outputMin; - } - - return outputMax; - } - - if (inputMin === -Infinity) { - result = -result; - } else if (inputMax === Infinity) { - result = result - inputMin; - } else { - result = (result - inputMin) / (inputMax - inputMin); - } - - result = easing(result); - - if (outputMin === -Infinity) { - result = -result; - } else if (outputMax === Infinity) { - result = result + outputMin; - } else { - result = result * (outputMax - outputMin) + outputMin; - } - - return result; - } - - function colorToRgba(input) { - var int32Color = normalizeColor(input); - - if (int32Color === null) { - return input; - } - - int32Color = int32Color || 0; - var r = (int32Color & 0xff000000) >>> 24; - var g = (int32Color & 0x00ff0000) >>> 16; - var b = (int32Color & 0x0000ff00) >>> 8; - var a = (int32Color & 0x000000ff) / 255; - return "rgba(" + r + ", " + g + ", " + b + ", " + a + ")"; - } - - var stringShapeRegex = /[0-9\.-]+/g; - - function createInterpolationFromStringOutputRange(config) { - var outputRange = config.outputRange; - invariant(outputRange.length >= 2, 'Bad output range'); - outputRange = outputRange.map(colorToRgba); - checkPattern(outputRange); - var outputRanges = outputRange[0].match(stringShapeRegex).map(function () { - return []; - }); - outputRange.forEach(function (value) { - value.match(stringShapeRegex).forEach(function (number, i) { - outputRanges[i].push(+number); - }); - }); - var interpolations = outputRange[0].match(stringShapeRegex).map(function (value, i) { - return createInterpolation(_objectSpread({}, config, { - outputRange: outputRanges[i] - })); - }); - var shouldRound = isRgbOrRgba(outputRange[0]); - return function (input) { - var i = 0; - return outputRange[0].replace(stringShapeRegex, function () { - var val = +interpolations[i++](input); - var rounded = shouldRound && i < 4 ? Math.round(val) : Math.round(val * 1000) / 1000; - return String(rounded); - }); - }; - } - - function isRgbOrRgba(range) { - return typeof range === 'string' && range.startsWith('rgb'); - } - - function checkPattern(arr) { - var pattern = arr[0].replace(stringShapeRegex, ''); - - for (var i = 1; i < arr.length; ++i) { - invariant(pattern === arr[i].replace(stringShapeRegex, ''), 'invalid pattern ' + arr[0] + ' and ' + arr[i]); - } - } - - function findRange(input, inputRange) { - var i; - - for (i = 1; i < inputRange.length - 1; ++i) { - if (inputRange[i] >= input) { - break; - } - } - - return i - 1; - } - - function checkValidInputRange(arr) { - invariant(arr.length >= 2, 'inputRange must have at least 2 elements'); - - for (var i = 1; i < arr.length; ++i) { - invariant(arr[i] >= arr[i - 1], 'inputRange must be monotonically non-decreasing ' + arr); - } - } - - function checkInfiniteRange(name, arr) { - invariant(arr.length >= 2, name + ' must have at least 2 elements'); - invariant(arr.length !== 2 || arr[0] !== -Infinity || arr[1] !== Infinity, name + 'cannot be ]-infinity;+infinity[ ' + arr); - } - - var AnimatedInterpolation = function (_AnimatedWithChildren) { - function AnimatedInterpolation(parent, config) { - var _this; - - _classCallCheck(this, AnimatedInterpolation); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedInterpolation).call(this)); - _this._parent = parent; - _this._config = config; - _this._interpolation = createInterpolation(config); - return _this; - } - - _createClass(AnimatedInterpolation, [{ - key: "__makeNative", - value: function __makeNative() { - this._parent.__makeNative(); - - _get(_getPrototypeOf(AnimatedInterpolation.prototype), "__makeNative", this).call(this); - } - }, { - key: "__getValue", - value: function __getValue() { - var parentValue = this._parent.__getValue(); - - invariant(typeof parentValue === 'number', 'Cannot interpolate an input which is not a number.'); - return this._interpolation(parentValue); - } - }, { - key: "interpolate", - value: function interpolate(config) { - return new AnimatedInterpolation(this, config); - } - }, { - key: "__attach", - value: function __attach() { - this._parent.__addChild(this); - } - }, { - key: "__detach", - value: function __detach() { - this._parent.__removeChild(this); - - _get(_getPrototypeOf(AnimatedInterpolation.prototype), "__detach", this).call(this); - } - }, { - key: "__transformDataType", - value: function __transformDataType(range) { - return range.map(function (value) { - if (typeof value !== 'string') { - return value; - } - - if (/deg$/.test(value)) { - var degrees = parseFloat(value) || 0; - var radians = degrees * Math.PI / 180.0; - return radians; - } else { - return parseFloat(value) || 0; - } - }); - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - if (__DEV__) { - NativeAnimatedHelper.validateInterpolation(this._config); - } - - return { - inputRange: this._config.inputRange, - outputRange: this.__transformDataType(this._config.outputRange), - extrapolateLeft: this._config.extrapolateLeft || this._config.extrapolate || 'extend', - extrapolateRight: this._config.extrapolateRight || this._config.extrapolate || 'extend', - type: 'interpolation' - }; - } - }]); - - _inherits(AnimatedInterpolation, _AnimatedWithChildren); - - return AnimatedInterpolation; - }(AnimatedWithChildren); - - AnimatedInterpolation.__createInterpolation = createInterpolation; - module.exports = AnimatedInterpolation; -},412,[415,426,425,4,146],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedInterpolation.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], '../NativeAnimatedHelper'); - - var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); - - var AnimatedNode = function () { - function AnimatedNode() { - _classCallCheck(this, AnimatedNode); - } - - _createClass(AnimatedNode, [{ - key: "__attach", - value: function __attach() {} - }, { - key: "__detach", - value: function __detach() { - if (this.__isNative && this.__nativeTag != null) { - NativeAnimatedHelper.API.dropAnimatedNode(this.__nativeTag); - this.__nativeTag = undefined; - } - } - }, { - key: "__getValue", - value: function __getValue() {} - }, { - key: "__getAnimatedValue", - value: function __getAnimatedValue() { - return this.__getValue(); - } - }, { - key: "__addChild", - value: function __addChild(child) {} - }, { - key: "__removeChild", - value: function __removeChild(child) {} - }, { - key: "__getChildren", - value: function __getChildren() { - return []; - } - }, { - key: "__makeNative", - value: function __makeNative() { - if (!this.__isNative) { - throw new Error('This node cannot be made a "native" animated node'); - } - } - }, { - key: "__getNativeTag", - value: function __getNativeTag() { - NativeAnimatedHelper.assertNativeAnimatedModule(); - invariant(this.__isNative, 'Attempt to get native tag from node not marked as "native"'); - - if (this.__nativeTag == null) { - var nativeTag = NativeAnimatedHelper.generateNewNodeTag(); - NativeAnimatedHelper.API.createAnimatedNode(nativeTag, this.__getNativeConfig()); - this.__nativeTag = nativeTag; - } - - return this.__nativeTag; - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - throw new Error('This JS animated node type cannot be used as native animated node'); - } - }, { - key: "toJSON", - value: function toJSON() { - return this.__getValue(); - } - }]); - - return AnimatedNode; - }(); - - module.exports = AnimatedNode; -},415,[425,4],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedNode.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var NativeAnimatedModule = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').NativeAnimatedModule; - - var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[1], 'NativeEventEmitter'); - - var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); - - var __nativeAnimatedNodeTagCount = 1; - var __nativeAnimationIdCount = 1; - var nativeEventEmitter; - var API = { - createAnimatedNode: function createAnimatedNode(tag, config) { - assertNativeAnimatedModule(); - NativeAnimatedModule.createAnimatedNode(tag, config); - }, - startListeningToAnimatedNodeValue: function startListeningToAnimatedNodeValue(tag) { - assertNativeAnimatedModule(); - NativeAnimatedModule.startListeningToAnimatedNodeValue(tag); - }, - stopListeningToAnimatedNodeValue: function stopListeningToAnimatedNodeValue(tag) { - assertNativeAnimatedModule(); - NativeAnimatedModule.stopListeningToAnimatedNodeValue(tag); - }, - connectAnimatedNodes: function connectAnimatedNodes(parentTag, childTag) { - assertNativeAnimatedModule(); - NativeAnimatedModule.connectAnimatedNodes(parentTag, childTag); - }, - disconnectAnimatedNodes: function disconnectAnimatedNodes(parentTag, childTag) { - assertNativeAnimatedModule(); - NativeAnimatedModule.disconnectAnimatedNodes(parentTag, childTag); - }, - startAnimatingNode: function startAnimatingNode(animationId, nodeTag, config, endCallback) { - assertNativeAnimatedModule(); - NativeAnimatedModule.startAnimatingNode(animationId, nodeTag, config, endCallback); - }, - stopAnimation: function stopAnimation(animationId) { - assertNativeAnimatedModule(); - NativeAnimatedModule.stopAnimation(animationId); - }, - setAnimatedNodeValue: function setAnimatedNodeValue(nodeTag, value) { - assertNativeAnimatedModule(); - NativeAnimatedModule.setAnimatedNodeValue(nodeTag, value); - }, - setAnimatedNodeOffset: function setAnimatedNodeOffset(nodeTag, offset) { - assertNativeAnimatedModule(); - NativeAnimatedModule.setAnimatedNodeOffset(nodeTag, offset); - }, - flattenAnimatedNodeOffset: function flattenAnimatedNodeOffset(nodeTag) { - assertNativeAnimatedModule(); - NativeAnimatedModule.flattenAnimatedNodeOffset(nodeTag); - }, - extractAnimatedNodeOffset: function extractAnimatedNodeOffset(nodeTag) { - assertNativeAnimatedModule(); - NativeAnimatedModule.extractAnimatedNodeOffset(nodeTag); - }, - connectAnimatedNodeToView: function connectAnimatedNodeToView(nodeTag, viewTag) { - assertNativeAnimatedModule(); - NativeAnimatedModule.connectAnimatedNodeToView(nodeTag, viewTag); - }, - disconnectAnimatedNodeFromView: function disconnectAnimatedNodeFromView(nodeTag, viewTag) { - assertNativeAnimatedModule(); - NativeAnimatedModule.disconnectAnimatedNodeFromView(nodeTag, viewTag); - }, - dropAnimatedNode: function dropAnimatedNode(tag) { - assertNativeAnimatedModule(); - NativeAnimatedModule.dropAnimatedNode(tag); - }, - addAnimatedEventToView: function addAnimatedEventToView(viewTag, eventName, eventMapping) { - assertNativeAnimatedModule(); - NativeAnimatedModule.addAnimatedEventToView(viewTag, eventName, eventMapping); - }, - removeAnimatedEventFromView: function removeAnimatedEventFromView(viewTag, eventName, animatedNodeTag) { - assertNativeAnimatedModule(); - NativeAnimatedModule.removeAnimatedEventFromView(viewTag, eventName, animatedNodeTag); - } - }; - var STYLES_WHITELIST = { - opacity: true, - transform: true, - borderRadius: true, - borderBottomEndRadius: true, - borderBottomLeftRadius: true, - borderBottomRightRadius: true, - borderBottomStartRadius: true, - borderTopEndRadius: true, - borderTopLeftRadius: true, - borderTopRightRadius: true, - borderTopStartRadius: true, - shadowOpacity: true, - shadowRadius: true, - scaleX: true, - scaleY: true, - translateX: true, - translateY: true - }; - var TRANSFORM_WHITELIST = { - translateX: true, - translateY: true, - scale: true, - scaleX: true, - scaleY: true, - rotate: true, - rotateX: true, - rotateY: true, - perspective: true - }; - var SUPPORTED_INTERPOLATION_PARAMS = { - inputRange: true, - outputRange: true, - extrapolate: true, - extrapolateRight: true, - extrapolateLeft: true - }; - - function addWhitelistedStyleProp(prop) { - STYLES_WHITELIST[prop] = true; - } - - function addWhitelistedTransformProp(prop) { - TRANSFORM_WHITELIST[prop] = true; - } - - function addWhitelistedInterpolationParam(param) { - SUPPORTED_INTERPOLATION_PARAMS[param] = true; - } - - function validateTransform(configs) { - configs.forEach(function (config) { - if (!TRANSFORM_WHITELIST.hasOwnProperty(config.property)) { - throw new Error("Property '" + config.property + "' is not supported by native animated module"); - } - }); - } - - function validateStyles(styles) { - for (var key in styles) { - if (!STYLES_WHITELIST.hasOwnProperty(key)) { - throw new Error("Style property '" + key + "' is not supported by native animated module"); - } - } - } - - function validateInterpolation(config) { - for (var key in config) { - if (!SUPPORTED_INTERPOLATION_PARAMS.hasOwnProperty(key)) { - throw new Error("Interpolation property '" + key + "' is not supported by native animated module"); - } - } - } - - function generateNewNodeTag() { - return __nativeAnimatedNodeTagCount++; - } - - function generateNewAnimationId() { - return __nativeAnimationIdCount++; - } - - function assertNativeAnimatedModule() { - invariant(NativeAnimatedModule, 'Native animated module is not available'); - } - - var _warnedMissingNativeAnimated = false; - - function shouldUseNativeDriver(config) { - if (config.useNativeDriver && !NativeAnimatedModule) { - if (!_warnedMissingNativeAnimated) { - console.warn('Animated: `useNativeDriver` is not supported because the native ' + 'animated module is missing. Falling back to JS-based animation. To ' + 'resolve this, add `RCTAnimation` module to this app, or remove ' + '`useNativeDriver`. ' + 'More info: https://github.com/facebook/react-native/issues/11094#issuecomment-263240420'); - _warnedMissingNativeAnimated = true; - } - - return false; - } - - return config.useNativeDriver || false; - } - - module.exports = { - API: API, - addWhitelistedStyleProp: addWhitelistedStyleProp, - addWhitelistedTransformProp: addWhitelistedTransformProp, - addWhitelistedInterpolationParam: addWhitelistedInterpolationParam, - validateStyles: validateStyles, - validateTransform: validateTransform, - validateInterpolation: validateInterpolation, - generateNewNodeTag: generateNewNodeTag, - generateNewAnimationId: generateNewAnimationId, - assertNativeAnimatedModule: assertNativeAnimatedModule, - shouldUseNativeDriver: shouldUseNativeDriver, - - get nativeEventEmitter() { - if (!nativeEventEmitter) { - nativeEventEmitter = new NativeEventEmitter(NativeAnimatedModule); - } - - return nativeEventEmitter; - } - - }; -},425,[93,74,4],"node_modules/react-native/Libraries/Animated/src/NativeAnimatedHelper.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var AnimatedNode = _$$_REQUIRE(_dependencyMap[0], './AnimatedNode'); - - var NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[1], '../NativeAnimatedHelper'); - - var AnimatedWithChildren = function (_AnimatedNode) { - function AnimatedWithChildren() { - var _this; - - _classCallCheck(this, AnimatedWithChildren); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedWithChildren).call(this)); - _this._children = []; - return _this; - } - - _createClass(AnimatedWithChildren, [{ - key: "__makeNative", - value: function __makeNative() { - if (!this.__isNative) { - this.__isNative = true; - - for (var _iterator = this._children, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var _child = _ref; - - _child.__makeNative(); - - NativeAnimatedHelper.API.connectAnimatedNodes(this.__getNativeTag(), _child.__getNativeTag()); - } - } - } - }, { - key: "__addChild", - value: function __addChild(child) { - if (this._children.length === 0) { - this.__attach(); - } - - this._children.push(child); - - if (this.__isNative) { - child.__makeNative(); - - NativeAnimatedHelper.API.connectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag()); - } - } - }, { - key: "__removeChild", - value: function __removeChild(child) { - var index = this._children.indexOf(child); - - if (index === -1) { - console.warn("Trying to remove a child that doesn't exist"); - return; - } - - if (this.__isNative && child.__isNative) { - NativeAnimatedHelper.API.disconnectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag()); - } - - this._children.splice(index, 1); - - if (this._children.length === 0) { - this.__detach(); - } - } - }, { - key: "__getChildren", - value: function __getChildren() { - return this._children; - } - }]); - - _inherits(AnimatedWithChildren, _AnimatedNode); - - return AnimatedWithChildren; - }(AnimatedNode); - - module.exports = AnimatedWithChildren; -},426,[415,425],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedWithChildren.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var BatchedBridge = _$$_REQUIRE(_dependencyMap[0], 'BatchedBridge'); - - var EventEmitter = _$$_REQUIRE(_dependencyMap[1], 'EventEmitter'); - - var Set = _$$_REQUIRE(_dependencyMap[2], 'Set'); - - var TaskQueue = _$$_REQUIRE(_dependencyMap[3], 'TaskQueue'); - - var infoLog = _$$_REQUIRE(_dependencyMap[4], 'infoLog'); - - var invariant = _$$_REQUIRE(_dependencyMap[5], 'fbjs/lib/invariant'); - - var keyMirror = _$$_REQUIRE(_dependencyMap[6], 'fbjs/lib/keyMirror'); - - var _emitter = new EventEmitter(); - - var DEBUG_DELAY = 0; - var DEBUG = false; - var InteractionManager = { - Events: keyMirror({ - interactionStart: true, - interactionComplete: true - }), - runAfterInteractions: function runAfterInteractions(task) { - var tasks = []; - var promise = new Promise(function (resolve) { - _scheduleUpdate(); - - if (task) { - tasks.push(task); - } - - tasks.push({ - run: resolve, - name: 'resolve ' + (task && task.name || '?') - }); - - _taskQueue.enqueueTasks(tasks); - }); - return { - then: promise.then.bind(promise), - done: function done() { - if (promise.done) { - return promise.done.apply(promise, arguments); - } else { - console.warn('Tried to call done when not supported by current Promise implementation.'); - } - }, - cancel: function cancel() { - _taskQueue.cancelTasks(tasks); - } - }; - }, - createInteractionHandle: function createInteractionHandle() { - DEBUG && infoLog('create interaction handle'); - - _scheduleUpdate(); - - var handle = ++_inc; - - _addInteractionSet.add(handle); - - return handle; - }, - clearInteractionHandle: function clearInteractionHandle(handle) { - DEBUG && infoLog('clear interaction handle'); - invariant(!!handle, 'Must provide a handle to clear.'); - - _scheduleUpdate(); - - _addInteractionSet.delete(handle); - - _deleteInteractionSet.add(handle); - }, - addListener: _emitter.addListener.bind(_emitter), - setDeadline: function setDeadline(deadline) { - _deadline = deadline; - } - }; - - var _interactionSet = new Set(); - - var _addInteractionSet = new Set(); - - var _deleteInteractionSet = new Set(); - - var _taskQueue = new TaskQueue({ - onMoreTasks: _scheduleUpdate - }); - - var _nextUpdateHandle = 0; - var _inc = 0; - - var _deadline = -1; - - function _scheduleUpdate() { - if (!_nextUpdateHandle) { - if (_deadline > 0) { - _nextUpdateHandle = setTimeout(_processUpdate, 0 + DEBUG_DELAY); - } else { - _nextUpdateHandle = setImmediate(_processUpdate); - } - } - } - - function _processUpdate() { - _nextUpdateHandle = 0; - var interactionCount = _interactionSet.size; - - _addInteractionSet.forEach(function (handle) { - return _interactionSet.add(handle); - }); - - _deleteInteractionSet.forEach(function (handle) { - return _interactionSet.delete(handle); - }); - - var nextInteractionCount = _interactionSet.size; - - if (interactionCount !== 0 && nextInteractionCount === 0) { - _emitter.emit(InteractionManager.Events.interactionComplete); - } else if (interactionCount === 0 && nextInteractionCount !== 0) { - _emitter.emit(InteractionManager.Events.interactionStart); - } - - if (nextInteractionCount === 0) { - while (_taskQueue.hasTasksToProcess()) { - _taskQueue.processNext(); - - if (_deadline > 0 && BatchedBridge.getEventLoopRunningTime() >= _deadline) { - _scheduleUpdate(); - - break; - } - } - } - - _addInteractionSet.clear(); - - _deleteInteractionSet.clear(); - } - - module.exports = InteractionManager; -},70,[102,117,346,427,395,4,138],"node_modules/react-native/Libraries/Interaction/InteractionManager.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var infoLog = _$$_REQUIRE(_dependencyMap[0], 'infoLog'); - - var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); - - var DEBUG = false; - - var TaskQueue = function () { - function TaskQueue(_ref) { - var onMoreTasks = _ref.onMoreTasks; - - _classCallCheck(this, TaskQueue); - - this._onMoreTasks = onMoreTasks; - this._queueStack = [{ - tasks: [], - popable: false - }]; - } - - _createClass(TaskQueue, [{ - key: "enqueue", - value: function enqueue(task) { - this._getCurrentQueue().push(task); - } - }, { - key: "enqueueTasks", - value: function enqueueTasks(tasks) { - var _this = this; - - tasks.forEach(function (task) { - return _this.enqueue(task); - }); - } - }, { - key: "cancelTasks", - value: function cancelTasks(tasksToCancel) { - this._queueStack = this._queueStack.map(function (queue) { - return _objectSpread({}, queue, { - tasks: queue.tasks.filter(function (task) { - return tasksToCancel.indexOf(task) === -1; - }) - }); - }).filter(function (queue, idx) { - return queue.tasks.length > 0 || idx === 0; - }); - } - }, { - key: "hasTasksToProcess", - value: function hasTasksToProcess() { - return this._getCurrentQueue().length > 0; - } - }, { - key: "processNext", - value: function processNext() { - var queue = this._getCurrentQueue(); - - if (queue.length) { - var task = queue.shift(); - - try { - if (task.gen) { - DEBUG && infoLog('genPromise for task ' + task.name); - - this._genPromise(task); - } else if (task.run) { - DEBUG && infoLog('run task ' + task.name); - task.run(); - } else { - invariant(typeof task === 'function', 'Expected Function, SimpleTask, or PromiseTask, but got:\n' + JSON.stringify(task, null, 2)); - DEBUG && infoLog('run anonymous task'); - task(); - } - } catch (e) { - e.message = 'TaskQueue: Error with task ' + (task.name || '') + ': ' + e.message; - throw e; - } - } - } - }, { - key: "_getCurrentQueue", - value: function _getCurrentQueue() { - var stackIdx = this._queueStack.length - 1; - var queue = this._queueStack[stackIdx]; - - if (queue.popable && queue.tasks.length === 0 && this._queueStack.length > 1) { - this._queueStack.pop(); - - DEBUG && infoLog('popped queue: ', { - stackIdx: stackIdx, - queueStackSize: this._queueStack.length - }); - return this._getCurrentQueue(); - } else { - return queue.tasks; - } - } - }, { - key: "_genPromise", - value: function _genPromise(task) { - var _this2 = this; - - this._queueStack.push({ - tasks: [], - popable: false - }); - - var stackIdx = this._queueStack.length - 1; - DEBUG && infoLog('push new queue: ', { - stackIdx: stackIdx - }); - DEBUG && infoLog('exec gen task ' + task.name); - task.gen().then(function () { - DEBUG && infoLog('onThen for gen task ' + task.name, { - stackIdx: stackIdx, - queueStackSize: _this2._queueStack.length - }); - _this2._queueStack[stackIdx].popable = true; - _this2.hasTasksToProcess() && _this2._onMoreTasks(); - }).catch(function (ex) { - ex.message = "TaskQueue: Error resolving Promise in task " + task.name + ": " + ex.message; - throw ex; - }).done(); - } - }]); - - return TaskQueue; - }(); - - module.exports = TaskQueue; -},427,[395,4],"node_modules/react-native/Libraries/Interaction/TaskQueue.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } - - function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], './AnimatedInterpolation'); - - var AnimatedNode = _$$_REQUIRE(_dependencyMap[1], './AnimatedNode'); - - var AnimatedValue = _$$_REQUIRE(_dependencyMap[2], './AnimatedValue'); - - var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[3], './AnimatedWithChildren'); - - var AnimatedAddition = function (_AnimatedWithChildren) { - function AnimatedAddition(a, b) { - var _this; - - _classCallCheck(this, AnimatedAddition); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedAddition).call(this)); - _this._a = typeof a === 'number' ? new AnimatedValue(a) : a; - _this._b = typeof b === 'number' ? new AnimatedValue(b) : b; - return _this; - } - - _createClass(AnimatedAddition, [{ - key: "__makeNative", - value: function __makeNative() { - this._a.__makeNative(); - - this._b.__makeNative(); - - _get(_getPrototypeOf(AnimatedAddition.prototype), "__makeNative", this).call(this); - } - }, { - key: "__getValue", - value: function __getValue() { - return this._a.__getValue() + this._b.__getValue(); - } - }, { - key: "interpolate", - value: function interpolate(config) { - return new AnimatedInterpolation(this, config); - } - }, { - key: "__attach", - value: function __attach() { - this._a.__addChild(this); - - this._b.__addChild(this); - } - }, { - key: "__detach", - value: function __detach() { - this._a.__removeChild(this); - - this._b.__removeChild(this); - - _get(_getPrototypeOf(AnimatedAddition.prototype), "__detach", this).call(this); - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - return { - type: 'addition', - input: [this._a.__getNativeTag(), this._b.__getNativeTag()] - }; - } - }]); - - _inherits(AnimatedAddition, _AnimatedWithChildren); - - return AnimatedAddition; - }(AnimatedWithChildren); - - module.exports = AnimatedAddition; -},409,[412,415,419,426],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedAddition.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } - - function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], './AnimatedInterpolation'); - - var AnimatedNode = _$$_REQUIRE(_dependencyMap[1], './AnimatedNode'); - - var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[2], './AnimatedWithChildren'); - - var AnimatedDiffClamp = function (_AnimatedWithChildren) { - function AnimatedDiffClamp(a, min, max) { - var _this; - - _classCallCheck(this, AnimatedDiffClamp); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedDiffClamp).call(this)); - _this._a = a; - _this._min = min; - _this._max = max; - _this._value = _this._lastValue = _this._a.__getValue(); - return _this; - } - - _createClass(AnimatedDiffClamp, [{ - key: "__makeNative", - value: function __makeNative() { - this._a.__makeNative(); - - _get(_getPrototypeOf(AnimatedDiffClamp.prototype), "__makeNative", this).call(this); - } - }, { - key: "interpolate", - value: function interpolate(config) { - return new AnimatedInterpolation(this, config); - } - }, { - key: "__getValue", - value: function __getValue() { - var value = this._a.__getValue(); - - var diff = value - this._lastValue; - this._lastValue = value; - this._value = Math.min(Math.max(this._value + diff, this._min), this._max); - return this._value; - } - }, { - key: "__attach", - value: function __attach() { - this._a.__addChild(this); - } - }, { - key: "__detach", - value: function __detach() { - this._a.__removeChild(this); - - _get(_getPrototypeOf(AnimatedDiffClamp.prototype), "__detach", this).call(this); - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - return { - type: 'diffclamp', - input: this._a.__getNativeTag(), - min: this._min, - max: this._max - }; - } - }]); - - _inherits(AnimatedDiffClamp, _AnimatedWithChildren); - - return AnimatedDiffClamp; - }(AnimatedWithChildren); - - module.exports = AnimatedDiffClamp; -},410,[412,415,426],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedDiffClamp.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } - - function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], './AnimatedInterpolation'); - - var AnimatedNode = _$$_REQUIRE(_dependencyMap[1], './AnimatedNode'); - - var AnimatedValue = _$$_REQUIRE(_dependencyMap[2], './AnimatedValue'); - - var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[3], './AnimatedWithChildren'); - - var AnimatedDivision = function (_AnimatedWithChildren) { - function AnimatedDivision(a, b) { - var _this; - - _classCallCheck(this, AnimatedDivision); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedDivision).call(this)); - _this._a = typeof a === 'number' ? new AnimatedValue(a) : a; - _this._b = typeof b === 'number' ? new AnimatedValue(b) : b; - return _this; - } - - _createClass(AnimatedDivision, [{ - key: "__makeNative", - value: function __makeNative() { - this._a.__makeNative(); - - this._b.__makeNative(); - - _get(_getPrototypeOf(AnimatedDivision.prototype), "__makeNative", this).call(this); - } - }, { - key: "__getValue", - value: function __getValue() { - var a = this._a.__getValue(); - - var b = this._b.__getValue(); - - if (b === 0) { - console.error('Detected division by zero in AnimatedDivision'); - } - - return a / b; - } - }, { - key: "interpolate", - value: function interpolate(config) { - return new AnimatedInterpolation(this, config); - } - }, { - key: "__attach", - value: function __attach() { - this._a.__addChild(this); - - this._b.__addChild(this); - } - }, { - key: "__detach", - value: function __detach() { - this._a.__removeChild(this); - - this._b.__removeChild(this); - - _get(_getPrototypeOf(AnimatedDivision.prototype), "__detach", this).call(this); - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - return { - type: 'division', - input: [this._a.__getNativeTag(), this._b.__getNativeTag()] - }; - } - }]); - - _inherits(AnimatedDivision, _AnimatedWithChildren); - - return AnimatedDivision; - }(AnimatedWithChildren); - - module.exports = AnimatedDivision; -},411,[412,415,419,426],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedDivision.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } - - function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], './AnimatedInterpolation'); - - var AnimatedNode = _$$_REQUIRE(_dependencyMap[1], './AnimatedNode'); - - var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[2], './AnimatedWithChildren'); - - var AnimatedModulo = function (_AnimatedWithChildren) { - function AnimatedModulo(a, modulus) { - var _this; - - _classCallCheck(this, AnimatedModulo); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedModulo).call(this)); - _this._a = a; - _this._modulus = modulus; - return _this; - } - - _createClass(AnimatedModulo, [{ - key: "__makeNative", - value: function __makeNative() { - this._a.__makeNative(); - - _get(_getPrototypeOf(AnimatedModulo.prototype), "__makeNative", this).call(this); - } - }, { - key: "__getValue", - value: function __getValue() { - return (this._a.__getValue() % this._modulus + this._modulus) % this._modulus; - } - }, { - key: "interpolate", - value: function interpolate(config) { - return new AnimatedInterpolation(this, config); - } - }, { - key: "__attach", - value: function __attach() { - this._a.__addChild(this); - } - }, { - key: "__detach", - value: function __detach() { - this._a.__removeChild(this); - - _get(_getPrototypeOf(AnimatedModulo.prototype), "__detach", this).call(this); - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - return { - type: 'modulus', - input: this._a.__getNativeTag(), - modulus: this._modulus - }; - } - }]); - - _inherits(AnimatedModulo, _AnimatedWithChildren); - - return AnimatedModulo; - }(AnimatedWithChildren); - - module.exports = AnimatedModulo; -},413,[412,415,426],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedModulo.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } - - function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], './AnimatedInterpolation'); - - var AnimatedNode = _$$_REQUIRE(_dependencyMap[1], './AnimatedNode'); - - var AnimatedValue = _$$_REQUIRE(_dependencyMap[2], './AnimatedValue'); - - var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[3], './AnimatedWithChildren'); - - var AnimatedMultiplication = function (_AnimatedWithChildren) { - function AnimatedMultiplication(a, b) { - var _this; - - _classCallCheck(this, AnimatedMultiplication); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedMultiplication).call(this)); - _this._a = typeof a === 'number' ? new AnimatedValue(a) : a; - _this._b = typeof b === 'number' ? new AnimatedValue(b) : b; - return _this; - } - - _createClass(AnimatedMultiplication, [{ - key: "__makeNative", - value: function __makeNative() { - this._a.__makeNative(); - - this._b.__makeNative(); - - _get(_getPrototypeOf(AnimatedMultiplication.prototype), "__makeNative", this).call(this); - } - }, { - key: "__getValue", - value: function __getValue() { - return this._a.__getValue() * this._b.__getValue(); - } - }, { - key: "interpolate", - value: function interpolate(config) { - return new AnimatedInterpolation(this, config); - } - }, { - key: "__attach", - value: function __attach() { - this._a.__addChild(this); - - this._b.__addChild(this); - } - }, { - key: "__detach", - value: function __detach() { - this._a.__removeChild(this); - - this._b.__removeChild(this); - - _get(_getPrototypeOf(AnimatedMultiplication.prototype), "__detach", this).call(this); - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - return { - type: 'multiplication', - input: [this._a.__getNativeTag(), this._b.__getNativeTag()] - }; - } - }]); - - _inherits(AnimatedMultiplication, _AnimatedWithChildren); - - return AnimatedMultiplication; - }(AnimatedWithChildren); - - module.exports = AnimatedMultiplication; -},414,[412,415,419,426],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedMultiplication.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } - - function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _require = _$$_REQUIRE(_dependencyMap[0], '../AnimatedEvent'), - AnimatedEvent = _require.AnimatedEvent; - - var AnimatedNode = _$$_REQUIRE(_dependencyMap[1], './AnimatedNode'); - - var AnimatedStyle = _$$_REQUIRE(_dependencyMap[2], './AnimatedStyle'); - - var NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[3], '../NativeAnimatedHelper'); - - var ReactNative = _$$_REQUIRE(_dependencyMap[4], 'ReactNative'); - - var invariant = _$$_REQUIRE(_dependencyMap[5], 'fbjs/lib/invariant'); - - var AnimatedProps = function (_AnimatedNode) { - function AnimatedProps(props, callback) { - var _this; - - _classCallCheck(this, AnimatedProps); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedProps).call(this)); - - if (props.style) { - props = _objectSpread({}, props, { - style: new AnimatedStyle(props.style) - }); - } - - _this._props = props; - _this._callback = callback; - - _this.__attach(); - - return _this; - } - - _createClass(AnimatedProps, [{ - key: "__getValue", - value: function __getValue() { - var props = {}; - - for (var key in this._props) { - var value = this._props[key]; - - if (value instanceof AnimatedNode) { - if (!value.__isNative || value instanceof AnimatedStyle) { - props[key] = value.__getValue(); - } - } else if (value instanceof AnimatedEvent) { - props[key] = value.__getHandler(); - } else { - props[key] = value; - } - } - - return props; - } - }, { - key: "__getAnimatedValue", - value: function __getAnimatedValue() { - var props = {}; - - for (var key in this._props) { - var value = this._props[key]; - - if (value instanceof AnimatedNode) { - props[key] = value.__getAnimatedValue(); - } - } - - return props; - } - }, { - key: "__attach", - value: function __attach() { - for (var key in this._props) { - var value = this._props[key]; - - if (value instanceof AnimatedNode) { - value.__addChild(this); - } - } - } - }, { - key: "__detach", - value: function __detach() { - if (this.__isNative && this._animatedView) { - this.__disconnectAnimatedView(); - } - - for (var key in this._props) { - var value = this._props[key]; - - if (value instanceof AnimatedNode) { - value.__removeChild(this); - } - } - - _get(_getPrototypeOf(AnimatedProps.prototype), "__detach", this).call(this); - } - }, { - key: "update", - value: function update() { - this._callback(); - } - }, { - key: "__makeNative", - value: function __makeNative() { - if (!this.__isNative) { - this.__isNative = true; - - for (var key in this._props) { - var value = this._props[key]; - - if (value instanceof AnimatedNode) { - value.__makeNative(); - } - } - - if (this._animatedView) { - this.__connectAnimatedView(); - } - } - } - }, { - key: "setNativeView", - value: function setNativeView(animatedView) { - if (this._animatedView === animatedView) { - return; - } - - this._animatedView = animatedView; - - if (this.__isNative) { - this.__connectAnimatedView(); - } - } - }, { - key: "__connectAnimatedView", - value: function __connectAnimatedView() { - invariant(this.__isNative, 'Expected node to be marked as "native"'); - var nativeViewTag = ReactNative.findNodeHandle(this._animatedView); - invariant(nativeViewTag != null, 'Unable to locate attached view in the native tree'); - NativeAnimatedHelper.API.connectAnimatedNodeToView(this.__getNativeTag(), nativeViewTag); - } - }, { - key: "__disconnectAnimatedView", - value: function __disconnectAnimatedView() { - invariant(this.__isNative, 'Expected node to be marked as "native"'); - var nativeViewTag = ReactNative.findNodeHandle(this._animatedView); - invariant(nativeViewTag != null, 'Unable to locate attached view in the native tree'); - NativeAnimatedHelper.API.disconnectAnimatedNodeFromView(this.__getNativeTag(), nativeViewTag); - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - var propsConfig = {}; - - for (var propKey in this._props) { - var value = this._props[propKey]; - - if (value instanceof AnimatedNode) { - propsConfig[propKey] = value.__getNativeTag(); - } - } - - return { - type: 'props', - props: propsConfig - }; - } - }]); - - _inherits(AnimatedProps, _AnimatedNode); - - return AnimatedProps; - }(AnimatedNode); - - module.exports = AnimatedProps; -},416,[408,415,428,425,67,4],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedProps.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } - - function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var AnimatedNode = _$$_REQUIRE(_dependencyMap[0], './AnimatedNode'); - - var AnimatedTransform = _$$_REQUIRE(_dependencyMap[1], './AnimatedTransform'); - - var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[2], './AnimatedWithChildren'); - - var NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[3], '../NativeAnimatedHelper'); - - var flattenStyle = _$$_REQUIRE(_dependencyMap[4], 'flattenStyle'); - - var AnimatedStyle = function (_AnimatedWithChildren) { - function AnimatedStyle(style) { - var _this; - - _classCallCheck(this, AnimatedStyle); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedStyle).call(this)); - style = flattenStyle(style) || {}; - - if (style.transform) { - style = _objectSpread({}, style, { - transform: new AnimatedTransform(style.transform) - }); - } - - _this._style = style; - return _this; - } - - _createClass(AnimatedStyle, [{ - key: "_walkStyleAndGetValues", - value: function _walkStyleAndGetValues(style) { - var updatedStyle = {}; - - for (var key in style) { - var value = style[key]; - - if (value instanceof AnimatedNode) { - if (!value.__isNative) { - updatedStyle[key] = value.__getValue(); - } - } else if (value && !Array.isArray(value) && typeof value === 'object') { - updatedStyle[key] = this._walkStyleAndGetValues(value); - } else { - updatedStyle[key] = value; - } - } - - return updatedStyle; - } - }, { - key: "__getValue", - value: function __getValue() { - return this._walkStyleAndGetValues(this._style); - } - }, { - key: "_walkStyleAndGetAnimatedValues", - value: function _walkStyleAndGetAnimatedValues(style) { - var updatedStyle = {}; - - for (var key in style) { - var value = style[key]; - - if (value instanceof AnimatedNode) { - updatedStyle[key] = value.__getAnimatedValue(); - } else if (value && !Array.isArray(value) && typeof value === 'object') { - updatedStyle[key] = this._walkStyleAndGetAnimatedValues(value); - } - } - - return updatedStyle; - } - }, { - key: "__getAnimatedValue", - value: function __getAnimatedValue() { - return this._walkStyleAndGetAnimatedValues(this._style); - } - }, { - key: "__attach", - value: function __attach() { - for (var key in this._style) { - var value = this._style[key]; - - if (value instanceof AnimatedNode) { - value.__addChild(this); - } - } - } - }, { - key: "__detach", - value: function __detach() { - for (var key in this._style) { - var value = this._style[key]; - - if (value instanceof AnimatedNode) { - value.__removeChild(this); - } - } - - _get(_getPrototypeOf(AnimatedStyle.prototype), "__detach", this).call(this); - } - }, { - key: "__makeNative", - value: function __makeNative() { - _get(_getPrototypeOf(AnimatedStyle.prototype), "__makeNative", this).call(this); - - for (var key in this._style) { - var value = this._style[key]; - - if (value instanceof AnimatedNode) { - value.__makeNative(); - } - } - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - var styleConfig = {}; - - for (var styleKey in this._style) { - if (this._style[styleKey] instanceof AnimatedNode) { - styleConfig[styleKey] = this._style[styleKey].__getNativeTag(); - } - } - - NativeAnimatedHelper.validateStyles(styleConfig); - return { - type: 'style', - style: styleConfig - }; - } - }]); - - _inherits(AnimatedStyle, _AnimatedWithChildren); - - return AnimatedStyle; - }(AnimatedWithChildren); - - module.exports = AnimatedStyle; -},428,[415,429,426,425,134],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedStyle.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } - - function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var AnimatedNode = _$$_REQUIRE(_dependencyMap[0], './AnimatedNode'); - - var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[1], './AnimatedWithChildren'); - - var NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[2], '../NativeAnimatedHelper'); - - var AnimatedTransform = function (_AnimatedWithChildren) { - function AnimatedTransform(transforms) { - var _this; - - _classCallCheck(this, AnimatedTransform); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedTransform).call(this)); - _this._transforms = transforms; - return _this; - } - - _createClass(AnimatedTransform, [{ - key: "__makeNative", - value: function __makeNative() { - _get(_getPrototypeOf(AnimatedTransform.prototype), "__makeNative", this).call(this); - - this._transforms.forEach(function (transform) { - for (var key in transform) { - var value = transform[key]; - - if (value instanceof AnimatedNode) { - value.__makeNative(); - } - } - }); - } - }, { - key: "__getValue", - value: function __getValue() { - return this._transforms.map(function (transform) { - var result = {}; - - for (var key in transform) { - var value = transform[key]; - - if (value instanceof AnimatedNode) { - result[key] = value.__getValue(); - } else { - result[key] = value; - } - } - - return result; - }); - } - }, { - key: "__getAnimatedValue", - value: function __getAnimatedValue() { - return this._transforms.map(function (transform) { - var result = {}; - - for (var key in transform) { - var value = transform[key]; - - if (value instanceof AnimatedNode) { - result[key] = value.__getAnimatedValue(); - } else { - result[key] = value; - } - } - - return result; - }); - } - }, { - key: "__attach", - value: function __attach() { - var _this2 = this; - - this._transforms.forEach(function (transform) { - for (var key in transform) { - var value = transform[key]; - - if (value instanceof AnimatedNode) { - value.__addChild(_this2); - } - } - }); - } - }, { - key: "__detach", - value: function __detach() { - var _this3 = this; - - this._transforms.forEach(function (transform) { - for (var key in transform) { - var value = transform[key]; - - if (value instanceof AnimatedNode) { - value.__removeChild(_this3); - } - } - }); - - _get(_getPrototypeOf(AnimatedTransform.prototype), "__detach", this).call(this); - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - var transConfigs = []; - - this._transforms.forEach(function (transform) { - for (var key in transform) { - var value = transform[key]; - - if (value instanceof AnimatedNode) { - transConfigs.push({ - type: 'animated', - property: key, - nodeTag: value.__getNativeTag() - }); - } else { - transConfigs.push({ - type: 'static', - property: key, - value: value - }); - } - } - }); - - NativeAnimatedHelper.validateTransform(transConfigs); - return { - type: 'transform', - transforms: transConfigs - }; - } - }]); - - _inherits(AnimatedTransform, _AnimatedWithChildren); - - return AnimatedTransform; - }(AnimatedWithChildren); - - module.exports = AnimatedTransform; -},429,[415,426,425],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedTransform.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } - - function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var AnimatedInterpolation = _$$_REQUIRE(_dependencyMap[0], './AnimatedInterpolation'); - - var AnimatedNode = _$$_REQUIRE(_dependencyMap[1], './AnimatedNode'); - - var AnimatedValue = _$$_REQUIRE(_dependencyMap[2], './AnimatedValue'); - - var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[3], './AnimatedWithChildren'); - - var AnimatedSubtraction = function (_AnimatedWithChildren) { - function AnimatedSubtraction(a, b) { - var _this; - - _classCallCheck(this, AnimatedSubtraction); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedSubtraction).call(this)); - _this._a = typeof a === 'number' ? new AnimatedValue(a) : a; - _this._b = typeof b === 'number' ? new AnimatedValue(b) : b; - return _this; - } - - _createClass(AnimatedSubtraction, [{ - key: "__makeNative", - value: function __makeNative() { - this._a.__makeNative(); - - this._b.__makeNative(); - - _get(_getPrototypeOf(AnimatedSubtraction.prototype), "__makeNative", this).call(this); - } - }, { - key: "__getValue", - value: function __getValue() { - return this._a.__getValue() - this._b.__getValue(); - } - }, { - key: "interpolate", - value: function interpolate(config) { - return new AnimatedInterpolation(this, config); - } - }, { - key: "__attach", - value: function __attach() { - this._a.__addChild(this); - - this._b.__addChild(this); - } - }, { - key: "__detach", - value: function __detach() { - this._a.__removeChild(this); - - this._b.__removeChild(this); - - _get(_getPrototypeOf(AnimatedSubtraction.prototype), "__detach", this).call(this); - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - return { - type: 'subtraction', - input: [this._a.__getNativeTag(), this._b.__getNativeTag()] - }; - } - }]); - - _inherits(AnimatedSubtraction, _AnimatedWithChildren); - - return AnimatedSubtraction; - }(AnimatedWithChildren); - - module.exports = AnimatedSubtraction; -},417,[412,415,419,426],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedSubtraction.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } - - function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var AnimatedValue = _$$_REQUIRE(_dependencyMap[0], './AnimatedValue'); - - var AnimatedNode = _$$_REQUIRE(_dependencyMap[1], './AnimatedNode'); - - var _require = _$$_REQUIRE(_dependencyMap[2], '../NativeAnimatedHelper'), - generateNewAnimationId = _require.generateNewAnimationId, - shouldUseNativeDriver = _require.shouldUseNativeDriver; - - var AnimatedTracking = function (_AnimatedNode) { - function AnimatedTracking(value, parent, animationClass, animationConfig, callback) { - var _this; - - _classCallCheck(this, AnimatedTracking); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedTracking).call(this)); - _this._value = value; - _this._parent = parent; - _this._animationClass = animationClass; - _this._animationConfig = animationConfig; - _this._useNativeDriver = shouldUseNativeDriver(animationConfig); - _this._callback = callback; - - _this.__attach(); - - return _this; - } - - _createClass(AnimatedTracking, [{ - key: "__makeNative", - value: function __makeNative() { - this.__isNative = true; - - this._parent.__makeNative(); - - _get(_getPrototypeOf(AnimatedTracking.prototype), "__makeNative", this).call(this); - - this._value.__makeNative(); - } - }, { - key: "__getValue", - value: function __getValue() { - return this._parent.__getValue(); - } - }, { - key: "__attach", - value: function __attach() { - this._parent.__addChild(this); - - if (this._useNativeDriver) { - this.__makeNative(); - } - } - }, { - key: "__detach", - value: function __detach() { - this._parent.__removeChild(this); - - _get(_getPrototypeOf(AnimatedTracking.prototype), "__detach", this).call(this); - } - }, { - key: "update", - value: function update() { - this._value.animate(new this._animationClass(_objectSpread({}, this._animationConfig, { - toValue: this._animationConfig.toValue.__getValue() - })), this._callback); - } - }, { - key: "__getNativeConfig", - value: function __getNativeConfig() { - var animation = new this._animationClass(_objectSpread({}, this._animationConfig, { - toValue: undefined - })); - - var animationConfig = animation.__getNativeAnimationConfig(); - - return { - type: 'tracking', - animationId: generateNewAnimationId(), - animationConfig: animationConfig, - toValue: this._parent.__getNativeTag(), - value: this._value.__getNativeTag() - }; - } - }]); - - _inherits(AnimatedTracking, _AnimatedNode); - - return AnimatedTracking; - }(AnimatedNode); - - module.exports = AnimatedTracking; -},418,[419,415,425],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedTracking.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var AnimatedValue = _$$_REQUIRE(_dependencyMap[0], './AnimatedValue'); - - var AnimatedWithChildren = _$$_REQUIRE(_dependencyMap[1], './AnimatedWithChildren'); - - var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); - - var _uniqueId = 1; - - var AnimatedValueXY = function (_AnimatedWithChildren) { - function AnimatedValueXY(valueIn) { - var _this; - - _classCallCheck(this, AnimatedValueXY); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedValueXY).call(this)); - var value = valueIn || { - x: 0, - y: 0 - }; - - if (typeof value.x === 'number' && typeof value.y === 'number') { - _this.x = new AnimatedValue(value.x); - _this.y = new AnimatedValue(value.y); - } else { - invariant(value.x instanceof AnimatedValue && value.y instanceof AnimatedValue, 'AnimatedValueXY must be initialized with an object of numbers or ' + 'AnimatedValues.'); - _this.x = value.x; - _this.y = value.y; - } - - _this._listeners = {}; - return _this; - } - - _createClass(AnimatedValueXY, [{ - key: "setValue", - value: function setValue(value) { - this.x.setValue(value.x); - this.y.setValue(value.y); - } - }, { - key: "setOffset", - value: function setOffset(offset) { - this.x.setOffset(offset.x); - this.y.setOffset(offset.y); - } - }, { - key: "flattenOffset", - value: function flattenOffset() { - this.x.flattenOffset(); - this.y.flattenOffset(); - } - }, { - key: "extractOffset", - value: function extractOffset() { - this.x.extractOffset(); - this.y.extractOffset(); - } - }, { - key: "__getValue", - value: function __getValue() { - return { - x: this.x.__getValue(), - y: this.y.__getValue() - }; - } - }, { - key: "resetAnimation", - value: function resetAnimation(callback) { - this.x.resetAnimation(); - this.y.resetAnimation(); - callback && callback(this.__getValue()); - } - }, { - key: "stopAnimation", - value: function stopAnimation(callback) { - this.x.stopAnimation(); - this.y.stopAnimation(); - callback && callback(this.__getValue()); - } - }, { - key: "addListener", - value: function addListener(callback) { - var _this2 = this; - - var id = String(_uniqueId++); - - var jointCallback = function jointCallback(_ref) { - var number = _ref.value; - callback(_this2.__getValue()); - }; - - this._listeners[id] = { - x: this.x.addListener(jointCallback), - y: this.y.addListener(jointCallback) - }; - return id; - } - }, { - key: "removeListener", - value: function removeListener(id) { - this.x.removeListener(this._listeners[id].x); - this.y.removeListener(this._listeners[id].y); - delete this._listeners[id]; - } - }, { - key: "removeAllListeners", - value: function removeAllListeners() { - this.x.removeAllListeners(); - this.y.removeAllListeners(); - this._listeners = {}; - } - }, { - key: "getLayout", - value: function getLayout() { - return { - left: this.x, - top: this.y - }; - } - }, { - key: "getTranslateTransform", - value: function getTranslateTransform() { - return [{ - translateX: this.x - }, { - translateY: this.y - }]; - } - }]); - - _inherits(AnimatedValueXY, _AnimatedWithChildren); - - return AnimatedValueXY; - }(AnimatedWithChildren); - - module.exports = AnimatedValueXY; -},420,[419,426,4],"node_modules/react-native/Libraries/Animated/src/nodes/AnimatedValueXY.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } - - function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var Animation = _$$_REQUIRE(_dependencyMap[0], './Animation'); - - var _require = _$$_REQUIRE(_dependencyMap[1], '../NativeAnimatedHelper'), - shouldUseNativeDriver = _require.shouldUseNativeDriver; - - var DecayAnimation = function (_Animation) { - function DecayAnimation(config) { - var _this; - - _classCallCheck(this, DecayAnimation); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(DecayAnimation).call(this)); - _this._deceleration = config.deceleration !== undefined ? config.deceleration : 0.998; - _this._velocity = config.velocity; - _this._useNativeDriver = shouldUseNativeDriver(config); - _this.__isInteraction = config.isInteraction !== undefined ? config.isInteraction : true; - _this.__iterations = config.iterations !== undefined ? config.iterations : 1; - return _this; - } - - _createClass(DecayAnimation, [{ - key: "__getNativeAnimationConfig", - value: function __getNativeAnimationConfig() { - return { - type: 'decay', - deceleration: this._deceleration, - velocity: this._velocity, - iterations: this.__iterations - }; - } - }, { - key: "start", - value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) { - this.__active = true; - this._lastValue = fromValue; - this._fromValue = fromValue; - this._onUpdate = onUpdate; - this.__onEnd = onEnd; - this._startTime = Date.now(); - - if (this._useNativeDriver) { - this.__startNativeAnimation(animatedValue); - } else { - this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); - } - } - }, { - key: "onUpdate", - value: function onUpdate() { - var now = Date.now(); - var value = this._fromValue + this._velocity / (1 - this._deceleration) * (1 - Math.exp(-(1 - this._deceleration) * (now - this._startTime))); - - this._onUpdate(value); - - if (Math.abs(this._lastValue - value) < 0.1) { - this.__debouncedOnEnd({ - finished: true - }); - - return; - } - - this._lastValue = value; - - if (this.__active) { - this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); - } - } - }, { - key: "stop", - value: function stop() { - _get(_getPrototypeOf(DecayAnimation.prototype), "stop", this).call(this); - - this.__active = false; - global.cancelAnimationFrame(this._animationFrame); - - this.__debouncedOnEnd({ - finished: false - }); - } - }]); - - _inherits(DecayAnimation, _Animation); - - return DecayAnimation; - }(Animation); - - module.exports = DecayAnimation; -},421,[430,425],"node_modules/react-native/Libraries/Animated/src/animations/DecayAnimation.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var NativeAnimatedHelper = _$$_REQUIRE(_dependencyMap[0], 'NativeAnimatedHelper'); - - var Animation = function () { - function Animation() { - _classCallCheck(this, Animation); - } - - _createClass(Animation, [{ - key: "start", - value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) {} - }, { - key: "stop", - value: function stop() { - if (this.__nativeId) { - NativeAnimatedHelper.API.stopAnimation(this.__nativeId); - } - } - }, { - key: "__getNativeAnimationConfig", - value: function __getNativeAnimationConfig() { - throw new Error('This animation type cannot be offloaded to native'); - } - }, { - key: "__debouncedOnEnd", - value: function __debouncedOnEnd(result) { - var onEnd = this.__onEnd; - this.__onEnd = null; - onEnd && onEnd(result); - } - }, { - key: "__startNativeAnimation", - value: function __startNativeAnimation(animatedValue) { - animatedValue.__makeNative(); - - this.__nativeId = NativeAnimatedHelper.generateNewAnimationId(); - NativeAnimatedHelper.API.startAnimatingNode(this.__nativeId, animatedValue.__getNativeTag(), this.__getNativeAnimationConfig(), this.__debouncedOnEnd.bind(this)); - } - }]); - - return Animation; - }(); - - module.exports = Animation; -},430,[425],"node_modules/react-native/Libraries/Animated/src/animations/Animation.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } - - function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var AnimatedValue = _$$_REQUIRE(_dependencyMap[0], '../nodes/AnimatedValue'); - - var AnimatedValueXY = _$$_REQUIRE(_dependencyMap[1], '../nodes/AnimatedValueXY'); - - var Animation = _$$_REQUIRE(_dependencyMap[2], './Animation'); - - var SpringConfig = _$$_REQUIRE(_dependencyMap[3], '../SpringConfig'); - - var invariant = _$$_REQUIRE(_dependencyMap[4], 'fbjs/lib/invariant'); - - var _require = _$$_REQUIRE(_dependencyMap[5], '../NativeAnimatedHelper'), - shouldUseNativeDriver = _require.shouldUseNativeDriver; - - function withDefault(value, defaultValue) { - if (value === undefined || value === null) { - return defaultValue; - } - - return value; - } - - var SpringAnimation = function (_Animation) { - function SpringAnimation(config) { - var _this; - - _classCallCheck(this, SpringAnimation); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(SpringAnimation).call(this)); - _this._overshootClamping = withDefault(config.overshootClamping, false); - _this._restDisplacementThreshold = withDefault(config.restDisplacementThreshold, 0.001); - _this._restSpeedThreshold = withDefault(config.restSpeedThreshold, 0.001); - _this._initialVelocity = withDefault(config.velocity, 0); - _this._lastVelocity = withDefault(config.velocity, 0); - _this._toValue = config.toValue; - _this._delay = withDefault(config.delay, 0); - _this._useNativeDriver = shouldUseNativeDriver(config); - _this.__isInteraction = config.isInteraction !== undefined ? config.isInteraction : true; - _this.__iterations = config.iterations !== undefined ? config.iterations : 1; - - if (config.stiffness !== undefined || config.damping !== undefined || config.mass !== undefined) { - invariant(config.bounciness === undefined && config.speed === undefined && config.tension === undefined && config.friction === undefined, 'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'); - _this._stiffness = withDefault(config.stiffness, 100); - _this._damping = withDefault(config.damping, 10); - _this._mass = withDefault(config.mass, 1); - } else if (config.bounciness !== undefined || config.speed !== undefined) { - invariant(config.tension === undefined && config.friction === undefined && config.stiffness === undefined && config.damping === undefined && config.mass === undefined, 'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'); - var springConfig = SpringConfig.fromBouncinessAndSpeed(withDefault(config.bounciness, 8), withDefault(config.speed, 12)); - _this._stiffness = springConfig.stiffness; - _this._damping = springConfig.damping; - _this._mass = 1; - } else { - var _springConfig = SpringConfig.fromOrigamiTensionAndFriction(withDefault(config.tension, 40), withDefault(config.friction, 7)); - - _this._stiffness = _springConfig.stiffness; - _this._damping = _springConfig.damping; - _this._mass = 1; - } - - invariant(_this._stiffness > 0, 'Stiffness value must be greater than 0'); - invariant(_this._damping > 0, 'Damping value must be greater than 0'); - invariant(_this._mass > 0, 'Mass value must be greater than 0'); - return _this; - } - - _createClass(SpringAnimation, [{ - key: "__getNativeAnimationConfig", - value: function __getNativeAnimationConfig() { - return { - type: 'spring', - overshootClamping: this._overshootClamping, - restDisplacementThreshold: this._restDisplacementThreshold, - restSpeedThreshold: this._restSpeedThreshold, - stiffness: this._stiffness, - damping: this._damping, - mass: this._mass, - initialVelocity: withDefault(this._initialVelocity, this._lastVelocity), - toValue: this._toValue, - iterations: this.__iterations - }; - } - }, { - key: "start", - value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) { - var _this2 = this; - - this.__active = true; - this._startPosition = fromValue; - this._lastPosition = this._startPosition; - this._onUpdate = onUpdate; - this.__onEnd = onEnd; - this._lastTime = Date.now(); - this._frameTime = 0.0; - - if (previousAnimation instanceof SpringAnimation) { - var internalState = previousAnimation.getInternalState(); - this._lastPosition = internalState.lastPosition; - this._lastVelocity = internalState.lastVelocity; - this._initialVelocity = this._lastVelocity; - this._lastTime = internalState.lastTime; - } - - var start = function start() { - if (_this2._useNativeDriver) { - _this2.__startNativeAnimation(animatedValue); - } else { - _this2.onUpdate(); - } - }; - - if (this._delay) { - this._timeout = setTimeout(start, this._delay); - } else { - start(); - } - } - }, { - key: "getInternalState", - value: function getInternalState() { - return { - lastPosition: this._lastPosition, - lastVelocity: this._lastVelocity, - lastTime: this._lastTime - }; - } - }, { - key: "onUpdate", - value: function onUpdate() { - var MAX_STEPS = 64; - var now = Date.now(); - - if (now > this._lastTime + MAX_STEPS) { - now = this._lastTime + MAX_STEPS; - } - - var deltaTime = (now - this._lastTime) / 1000; - this._frameTime += deltaTime; - var c = this._damping; - var m = this._mass; - var k = this._stiffness; - var v0 = -this._initialVelocity; - var zeta = c / (2 * Math.sqrt(k * m)); - var omega0 = Math.sqrt(k / m); - var omega1 = omega0 * Math.sqrt(1.0 - zeta * zeta); - var x0 = this._toValue - this._startPosition; - var position = 0.0; - var velocity = 0.0; - var t = this._frameTime; - - if (zeta < 1) { - var envelope = Math.exp(-zeta * omega0 * t); - position = this._toValue - envelope * ((v0 + zeta * omega0 * x0) / omega1 * Math.sin(omega1 * t) + x0 * Math.cos(omega1 * t)); - velocity = zeta * omega0 * envelope * (Math.sin(omega1 * t) * (v0 + zeta * omega0 * x0) / omega1 + x0 * Math.cos(omega1 * t)) - envelope * (Math.cos(omega1 * t) * (v0 + zeta * omega0 * x0) - omega1 * x0 * Math.sin(omega1 * t)); - } else { - var _envelope = Math.exp(-omega0 * t); - - position = this._toValue - _envelope * (x0 + (v0 + omega0 * x0) * t); - velocity = _envelope * (v0 * (t * omega0 - 1) + t * x0 * (omega0 * omega0)); - } - - this._lastTime = now; - this._lastPosition = position; - this._lastVelocity = velocity; - - this._onUpdate(position); - - if (!this.__active) { - return; - } - - var isOvershooting = false; - - if (this._overshootClamping && this._stiffness !== 0) { - if (this._startPosition < this._toValue) { - isOvershooting = position > this._toValue; - } else { - isOvershooting = position < this._toValue; - } - } - - var isVelocity = Math.abs(velocity) <= this._restSpeedThreshold; - - var isDisplacement = true; - - if (this._stiffness !== 0) { - isDisplacement = Math.abs(this._toValue - position) <= this._restDisplacementThreshold; - } - - if (isOvershooting || isVelocity && isDisplacement) { - if (this._stiffness !== 0) { - this._lastPosition = this._toValue; - this._lastVelocity = 0; - - this._onUpdate(this._toValue); - } - - this.__debouncedOnEnd({ - finished: true - }); - - return; - } - - this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); - } - }, { - key: "stop", - value: function stop() { - _get(_getPrototypeOf(SpringAnimation.prototype), "stop", this).call(this); - - this.__active = false; - clearTimeout(this._timeout); - global.cancelAnimationFrame(this._animationFrame); - - this.__debouncedOnEnd({ - finished: false - }); - } - }]); - - _inherits(SpringAnimation, _Animation); - - return SpringAnimation; - }(Animation); - - module.exports = SpringAnimation; -},422,[419,420,430,431,4,425],"node_modules/react-native/Libraries/Animated/src/animations/SpringAnimation.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function stiffnessFromOrigamiValue(oValue) { - return (oValue - 30) * 3.62 + 194; - } - - function dampingFromOrigamiValue(oValue) { - return (oValue - 8) * 3 + 25; - } - - function fromOrigamiTensionAndFriction(tension, friction) { - return { - stiffness: stiffnessFromOrigamiValue(tension), - damping: dampingFromOrigamiValue(friction) - }; - } - - function fromBouncinessAndSpeed(bounciness, speed) { - function normalize(value, startValue, endValue) { - return (value - startValue) / (endValue - startValue); - } - - function projectNormal(n, start, end) { - return start + n * (end - start); - } - - function linearInterpolation(t, start, end) { - return t * end + (1 - t) * start; - } - - function quadraticOutInterpolation(t, start, end) { - return linearInterpolation(2 * t - t * t, start, end); - } - - function b3Friction1(x) { - return 0.0007 * Math.pow(x, 3) - 0.031 * Math.pow(x, 2) + 0.64 * x + 1.28; - } - - function b3Friction2(x) { - return 0.000044 * Math.pow(x, 3) - 0.006 * Math.pow(x, 2) + 0.36 * x + 2; - } - - function b3Friction3(x) { - return 0.00000045 * Math.pow(x, 3) - 0.000332 * Math.pow(x, 2) + 0.1078 * x + 5.84; - } - - function b3Nobounce(tension) { - if (tension <= 18) { - return b3Friction1(tension); - } else if (tension > 18 && tension <= 44) { - return b3Friction2(tension); - } else { - return b3Friction3(tension); - } - } - - var b = normalize(bounciness / 1.7, 0, 20); - b = projectNormal(b, 0, 0.8); - var s = normalize(speed / 1.7, 0, 20); - var bouncyTension = projectNormal(s, 0.5, 200); - var bouncyFriction = quadraticOutInterpolation(b, b3Nobounce(bouncyTension), 0.01); - return { - stiffness: stiffnessFromOrigamiValue(bouncyTension), - damping: dampingFromOrigamiValue(bouncyFriction) - }; - } - - module.exports = { - fromOrigamiTensionAndFriction: fromOrigamiTensionAndFriction, - fromBouncinessAndSpeed: fromBouncinessAndSpeed - }; -},431,[],"node_modules/react-native/Libraries/Animated/src/SpringConfig.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } - - function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var AnimatedValue = _$$_REQUIRE(_dependencyMap[0], '../nodes/AnimatedValue'); - - var AnimatedValueXY = _$$_REQUIRE(_dependencyMap[1], '../nodes/AnimatedValueXY'); - - var Animation = _$$_REQUIRE(_dependencyMap[2], './Animation'); - - var _require = _$$_REQUIRE(_dependencyMap[3], '../NativeAnimatedHelper'), - shouldUseNativeDriver = _require.shouldUseNativeDriver; - - var _easeInOut; - - function easeInOut() { - if (!_easeInOut) { - var Easing = _$$_REQUIRE(_dependencyMap[4], 'Easing'); - - _easeInOut = Easing.inOut(Easing.ease); - } - - return _easeInOut; - } - - var TimingAnimation = function (_Animation) { - function TimingAnimation(config) { - var _this; - - _classCallCheck(this, TimingAnimation); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(TimingAnimation).call(this)); - _this._toValue = config.toValue; - _this._easing = config.easing !== undefined ? config.easing : easeInOut(); - _this._duration = config.duration !== undefined ? config.duration : 500; - _this._delay = config.delay !== undefined ? config.delay : 0; - _this.__iterations = config.iterations !== undefined ? config.iterations : 1; - _this.__isInteraction = config.isInteraction !== undefined ? config.isInteraction : true; - _this._useNativeDriver = shouldUseNativeDriver(config); - return _this; - } - - _createClass(TimingAnimation, [{ - key: "__getNativeAnimationConfig", - value: function __getNativeAnimationConfig() { - var frameDuration = 1000.0 / 60.0; - var frames = []; - - for (var dt = 0.0; dt < this._duration; dt += frameDuration) { - frames.push(this._easing(dt / this._duration)); - } - - frames.push(this._easing(1)); - return { - type: 'frames', - frames: frames, - toValue: this._toValue, - iterations: this.__iterations - }; - } - }, { - key: "start", - value: function start(fromValue, onUpdate, onEnd, previousAnimation, animatedValue) { - var _this2 = this; - - this.__active = true; - this._fromValue = fromValue; - this._onUpdate = onUpdate; - this.__onEnd = onEnd; - - var start = function start() { - if (_this2._duration === 0 && !_this2._useNativeDriver) { - _this2._onUpdate(_this2._toValue); - - _this2.__debouncedOnEnd({ - finished: true - }); - } else { - _this2._startTime = Date.now(); - - if (_this2._useNativeDriver) { - _this2.__startNativeAnimation(animatedValue); - } else { - _this2._animationFrame = requestAnimationFrame(_this2.onUpdate.bind(_this2)); - } - } - }; - - if (this._delay) { - this._timeout = setTimeout(start, this._delay); - } else { - start(); - } - } - }, { - key: "onUpdate", - value: function onUpdate() { - var now = Date.now(); - - if (now >= this._startTime + this._duration) { - if (this._duration === 0) { - this._onUpdate(this._toValue); - } else { - this._onUpdate(this._fromValue + this._easing(1) * (this._toValue - this._fromValue)); - } - - this.__debouncedOnEnd({ - finished: true - }); - - return; - } - - this._onUpdate(this._fromValue + this._easing((now - this._startTime) / this._duration) * (this._toValue - this._fromValue)); - - if (this.__active) { - this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); - } - } - }, { - key: "stop", - value: function stop() { - _get(_getPrototypeOf(TimingAnimation.prototype), "stop", this).call(this); - - this.__active = false; - clearTimeout(this._timeout); - global.cancelAnimationFrame(this._animationFrame); - - this.__debouncedOnEnd({ - finished: false - }); - } - }]); - - _inherits(TimingAnimation, _Animation); - - return TimingAnimation; - }(Animation); - - module.exports = TimingAnimation; -},423,[419,420,430,425,66],"node_modules/react-native/Libraries/Animated/src/animations/TimingAnimation.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var _ease; - - var Easing = function () { - function Easing() { - _classCallCheck(this, Easing); - } - - _createClass(Easing, null, [{ - key: "step0", - value: function step0(n) { - return n > 0 ? 1 : 0; - } - }, { - key: "step1", - value: function step1(n) { - return n >= 1 ? 1 : 0; - } - }, { - key: "linear", - value: function linear(t) { - return t; - } - }, { - key: "ease", - value: function ease(t) { - if (!_ease) { - _ease = Easing.bezier(0.42, 0, 1, 1); - } - - return _ease(t); - } - }, { - key: "quad", - value: function quad(t) { - return t * t; - } - }, { - key: "cubic", - value: function cubic(t) { - return t * t * t; - } - }, { - key: "poly", - value: function poly(n) { - return function (t) { - return Math.pow(t, n); - }; - } - }, { - key: "sin", - value: function sin(t) { - return 1 - Math.cos(t * Math.PI / 2); - } - }, { - key: "circle", - value: function circle(t) { - return 1 - Math.sqrt(1 - t * t); - } - }, { - key: "exp", - value: function exp(t) { - return Math.pow(2, 10 * (t - 1)); - } - }, { - key: "elastic", - value: function elastic() { - var bounciness = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; - var p = bounciness * Math.PI; - return function (t) { - return 1 - Math.pow(Math.cos(t * Math.PI / 2), 3) * Math.cos(t * p); - }; - } - }, { - key: "back", - value: function back(s) { - if (s === undefined) { - s = 1.70158; - } - - return function (t) { - return t * t * ((s + 1) * t - s); - }; - } - }, { - key: "bounce", - value: function bounce(t) { - if (t < 1 / 2.75) { - return 7.5625 * t * t; - } - - if (t < 2 / 2.75) { - t -= 1.5 / 2.75; - return 7.5625 * t * t + 0.75; - } - - if (t < 2.5 / 2.75) { - t -= 2.25 / 2.75; - return 7.5625 * t * t + 0.9375; - } - - t -= 2.625 / 2.75; - return 7.5625 * t * t + 0.984375; - } - }, { - key: "bezier", - value: function bezier(x1, y1, x2, y2) { - var _bezier = _$$_REQUIRE(_dependencyMap[0], 'bezier'); - - return _bezier(x1, y1, x2, y2); - } - }, { - key: "in", - value: function _in(easing) { - return easing; - } - }, { - key: "out", - value: function out(easing) { - return function (t) { - return 1 - easing(1 - t); - }; - } - }, { - key: "inOut", - value: function inOut(easing) { - return function (t) { - if (t < 0.5) { - return easing(t * 2) / 2; - } - - return 1 - easing((1 - t) * 2) / 2; - }; - } - }]); - - return Easing; - }(); - - module.exports = Easing; -},66,[432],"node_modules/react-native/Libraries/Animated/src/Easing.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var NEWTON_ITERATIONS = 4; - var NEWTON_MIN_SLOPE = 0.001; - var SUBDIVISION_PRECISION = 0.0000001; - var SUBDIVISION_MAX_ITERATIONS = 10; - var kSplineTableSize = 11; - var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0); - var float32ArraySupported = typeof Float32Array === 'function'; - - function A(aA1, aA2) { - return 1.0 - 3.0 * aA2 + 3.0 * aA1; - } - - function B(aA1, aA2) { - return 3.0 * aA2 - 6.0 * aA1; - } - - function C(aA1) { - return 3.0 * aA1; - } - - function calcBezier(aT, aA1, aA2) { - return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT; - } - - function getSlope(aT, aA1, aA2) { - return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1); - } - - function binarySubdivide(aX, aA, aB, mX1, mX2) { - var currentX, - currentT, - i = 0; - - do { - currentT = aA + (aB - aA) / 2.0; - currentX = calcBezier(currentT, mX1, mX2) - aX; - - if (currentX > 0.0) { - aB = currentT; - } else { - aA = currentT; - } - } while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS); - - return currentT; - } - - function newtonRaphsonIterate(aX, aGuessT, mX1, mX2) { - for (var i = 0; i < NEWTON_ITERATIONS; ++i) { - var currentSlope = getSlope(aGuessT, mX1, mX2); - - if (currentSlope === 0.0) { - return aGuessT; - } - - var currentX = calcBezier(aGuessT, mX1, mX2) - aX; - aGuessT -= currentX / currentSlope; - } - - return aGuessT; - } - - module.exports = function bezier(mX1, mY1, mX2, mY2) { - if (!(0 <= mX1 && mX1 <= 1 && 0 <= mX2 && mX2 <= 1)) { - throw new Error('bezier x values must be in [0, 1] range'); - } - - var sampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize) : new Array(kSplineTableSize); - - if (mX1 !== mY1 || mX2 !== mY2) { - for (var i = 0; i < kSplineTableSize; ++i) { - sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2); - } - } - - function getTForX(aX) { - var intervalStart = 0.0; - var currentSample = 1; - var lastSample = kSplineTableSize - 1; - - for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) { - intervalStart += kSampleStepSize; - } - - --currentSample; - var dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]); - var guessForT = intervalStart + dist * kSampleStepSize; - var initialSlope = getSlope(guessForT, mX1, mX2); - - if (initialSlope >= NEWTON_MIN_SLOPE) { - return newtonRaphsonIterate(aX, guessForT, mX1, mX2); - } else if (initialSlope === 0.0) { - return guessForT; - } else { - return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2); - } - } - - return function BezierEasing(x) { - if (mX1 === mY1 && mX2 === mY2) { - return x; - } - - if (x === 0) { - return 0; - } - - if (x === 1) { - return 1; - } - - return calcBezier(getTForX(x), mY1, mY2); - }; - }; -},432,[],"node_modules/react-native/Libraries/Animated/src/bezier.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Animated/src/createAnimatedComponent.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - var _components = { - AnimatedComponent: { - displayName: "AnimatedComponent", - isInFunction: true - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Animated/src/createAnimatedComponent.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var _require = _$$_REQUIRE(_dependencyMap[2], './AnimatedEvent'), - AnimatedEvent = _require.AnimatedEvent; - - var AnimatedProps = _$$_REQUIRE(_dependencyMap[3], './nodes/AnimatedProps'); - - var React = _$$_REQUIRE(_dependencyMap[4], 'React'); - - var ViewStylePropTypes = _$$_REQUIRE(_dependencyMap[5], 'ViewStylePropTypes'); - - var invariant = _$$_REQUIRE(_dependencyMap[6], 'fbjs/lib/invariant'); - - function createAnimatedComponent(Component) { - invariant(typeof Component !== 'function' || Component.prototype && Component.prototype.isReactComponent, '`createAnimatedComponent` does not support stateless functional components; ' + 'use a class component instead.'); - - var AnimatedComponent = function (_React$Component) { - function AnimatedComponent(props) { - var _this; - - _classCallCheck(this, AnimatedComponent); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(AnimatedComponent).call(this, props)); - _this._invokeAnimatedPropsCallbackOnMount = false; - _this._eventDetachers = []; - - _this._animatedPropsCallback = function () { - if (_this._component == null) { - _this._invokeAnimatedPropsCallbackOnMount = true; - } else if (AnimatedComponent.__skipSetNativeProps_FOR_TESTS_ONLY || typeof _this._component.setNativeProps !== 'function') { - _this.forceUpdate(); - } else if (!_this._propsAnimated.__isNative) { - _this._component.setNativeProps(_this._propsAnimated.__getAnimatedValue()); - } else { - throw new Error('Attempting to run JS driven animation on animated ' + 'node that has been moved to "native" earlier by starting an ' + 'animation with `useNativeDriver: true`'); - } - }; - - _this._setComponentRef = _this._setComponentRef.bind(_assertThisInitialized(_assertThisInitialized(_this))); - return _this; - } - - _createClass(AnimatedComponent, [{ - key: "componentWillUnmount", - value: function componentWillUnmount() { - this._propsAnimated && this._propsAnimated.__detach(); - - this._detachNativeEvents(); - } - }, { - key: "setNativeProps", - value: function setNativeProps(props) { - this._component.setNativeProps(props); - } - }, { - key: "UNSAFE_componentWillMount", - value: function UNSAFE_componentWillMount() { - this._attachProps(this.props); - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - if (this._invokeAnimatedPropsCallbackOnMount) { - this._invokeAnimatedPropsCallbackOnMount = false; - - this._animatedPropsCallback(); - } - - this._propsAnimated.setNativeView(this._component); - - this._attachNativeEvents(); - } - }, { - key: "_attachNativeEvents", - value: function _attachNativeEvents() { - var _this2 = this; - - var scrollableNode = this._component.getScrollableNode ? this._component.getScrollableNode() : this._component; - - var _loop = function _loop(key) { - var prop = _this2.props[key]; - - if (prop instanceof AnimatedEvent && prop.__isNative) { - prop.__attach(scrollableNode, key); - - _this2._eventDetachers.push(function () { - return prop.__detach(scrollableNode, key); - }); - } - }; - - for (var key in this.props) { - _loop(key); - } - } - }, { - key: "_detachNativeEvents", - value: function _detachNativeEvents() { - this._eventDetachers.forEach(function (remove) { - return remove(); - }); - - this._eventDetachers = []; - } - }, { - key: "_attachProps", - value: function _attachProps(nextProps) { - var oldPropsAnimated = this._propsAnimated; - this._propsAnimated = new AnimatedProps(nextProps, this._animatedPropsCallback); - oldPropsAnimated && oldPropsAnimated.__detach(); - } - }, { - key: "UNSAFE_componentWillReceiveProps", - value: function UNSAFE_componentWillReceiveProps(newProps) { - this._attachProps(newProps); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (this._component !== this._prevComponent) { - this._propsAnimated.setNativeView(this._component); - } - - if (this._component !== this._prevComponent || prevProps !== this.props) { - this._detachNativeEvents(); - - this._attachNativeEvents(); - } - } - }, { - key: "render", - value: function render() { - var props = this._propsAnimated.__getValue(); - - return React.createElement(Component, _extends({}, props, { - ref: this._setComponentRef, - collapsable: this._propsAnimated.__isNative ? false : props.collapsable, - __source: { - fileName: _jsxFileName, - lineNumber: 153 - } - })); - } - }, { - key: "_setComponentRef", - value: function _setComponentRef(c) { - this._prevComponent = this._component; - this._component = c; - } - }, { - key: "getNode", - value: function getNode() { - return this._component; - } - }]); - - _inherits(AnimatedComponent, _React$Component); - - return AnimatedComponent; - }(React.Component); - - AnimatedComponent.__skipSetNativeProps_FOR_TESTS_ONLY = false; - AnimatedComponent = _wrapComponent("AnimatedComponent")(AnimatedComponent); - var propTypes = Component.propTypes; - AnimatedComponent.propTypes = { - style: function style(props, propName, componentName) { - if (!propTypes) { - return; - } - - for (var key in ViewStylePropTypes) { - if (!propTypes[key] && props[key] !== undefined) { - console.warn('You are setting the style `{ ' + key + ': ... }` as a prop. You ' + 'should nest it in a style object. ' + 'E.g. `{ style: { ' + key + ': ... } }`'); - } - } - } - }; - return AnimatedComponent; - } - - module.exports = createAnimatedComponent; -},424,[122,161,408,416,121,137,4],"node_modules/react-native/Libraries/Animated/src/createAnimatedComponent.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Image/Image.android.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var ImageStylePropTypes = _$$_REQUIRE(_dependencyMap[0], 'ImageStylePropTypes'); - - var NativeMethodsMixin = _$$_REQUIRE(_dependencyMap[1], 'NativeMethodsMixin'); - - var NativeModules = _$$_REQUIRE(_dependencyMap[2], 'NativeModules'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[4], 'prop-types'); - - var ReactNativeViewAttributes = _$$_REQUIRE(_dependencyMap[5], 'ReactNativeViewAttributes'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[6], 'StyleSheet'); - - var StyleSheetPropType = _$$_REQUIRE(_dependencyMap[7], 'StyleSheetPropType'); - - var TextAncestor = _$$_REQUIRE(_dependencyMap[8], 'TextAncestor'); - - var ViewPropTypes = _$$_REQUIRE(_dependencyMap[9], 'ViewPropTypes'); - - var createReactClass = _$$_REQUIRE(_dependencyMap[10], 'create-react-class'); - - var flattenStyle = _$$_REQUIRE(_dependencyMap[11], 'flattenStyle'); - - var merge = _$$_REQUIRE(_dependencyMap[12], 'merge'); - - var requireNativeComponent = _$$_REQUIRE(_dependencyMap[13], 'requireNativeComponent'); - - var resolveAssetSource = _$$_REQUIRE(_dependencyMap[14], 'resolveAssetSource'); - - var ImageLoader = NativeModules.ImageLoader; - var RKImage = requireNativeComponent('RCTImageView'); - var RCTTextInlineImage = requireNativeComponent('RCTTextInlineImage'); - var _requestId = 1; - - function generateRequestId() { - return _requestId++; - } - - var Image = createReactClass({ - displayName: 'Image', - propTypes: _objectSpread({}, ViewPropTypes, { - style: StyleSheetPropType(ImageStylePropTypes), - source: PropTypes.oneOfType([PropTypes.shape({ - uri: PropTypes.string, - headers: PropTypes.objectOf(PropTypes.string) - }), PropTypes.number, PropTypes.arrayOf(PropTypes.shape({ - uri: PropTypes.string, - width: PropTypes.number, - height: PropTypes.number, - headers: PropTypes.objectOf(PropTypes.string) - }))]), - blurRadius: PropTypes.number, - defaultSource: PropTypes.number, - loadingIndicatorSource: PropTypes.oneOfType([PropTypes.shape({ - uri: PropTypes.string - }), PropTypes.number]), - progressiveRenderingEnabled: PropTypes.bool, - fadeDuration: PropTypes.number, - onLoadStart: PropTypes.func, - onError: PropTypes.func, - onLoad: PropTypes.func, - onLoadEnd: PropTypes.func, - testID: PropTypes.string, - resizeMethod: PropTypes.oneOf(['auto', 'resize', 'scale']), - resizeMode: PropTypes.oneOf(['cover', 'contain', 'stretch', 'repeat', 'center']) - }), - statics: { - getSize: function getSize(url, success, failure) { - return ImageLoader.getSize(url).then(function (sizes) { - success(sizes.width, sizes.height); - }).catch(failure || function () { - console.warn('Failed to get size for image: ' + url); - }); - }, - prefetch: function prefetch(url, callback) { - var requestId = generateRequestId(); - callback && callback(requestId); - return ImageLoader.prefetchImage(url, requestId); - }, - abortPrefetch: function abortPrefetch(requestId) { - ImageLoader.abortRequest(requestId); - }, - queryCache: function queryCache(urls) { - return regeneratorRuntime.async(function queryCache$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return regeneratorRuntime.awrap(ImageLoader.queryCache(urls)); - - case 2: - return _context.abrupt("return", _context.sent); - - case 3: - case "end": - return _context.stop(); - } - } - }, null, this); - }, - resolveAssetSource: resolveAssetSource - }, - mixins: [NativeMethodsMixin], - viewConfig: { - uiViewClassName: 'RCTView', - validAttributes: ReactNativeViewAttributes.RCTView - }, - render: function render() { - var source = resolveAssetSource(this.props.source); - var defaultSource = resolveAssetSource(this.props.defaultSource); - var loadingIndicatorSource = resolveAssetSource(this.props.loadingIndicatorSource); - - if (source && source.uri === '') { - console.warn('source.uri should not be an empty string'); - } - - if (this.props.src) { - console.warn('The component requires a `source` property rather than `src`.'); - } - - if (this.props.children) { - throw new Error('The component cannot contain children. If you want to render content on top of the image, consider using the component or absolute positioning.'); - } - - if (this.props.defaultSource && this.props.loadingIndicatorSource) { - throw new Error('The component cannot have defaultSource and loadingIndicatorSource at the same time. Please use either defaultSource or loadingIndicatorSource.'); - } - - if (!source || !source.uri && !Array.isArray(source)) { - return null; - } - - var style; - var sources; - - if (source.uri) { - var _width = source.width, - _height = source.height; - style = flattenStyle([{ - width: _width, - height: _height - }, styles.base, this.props.style]); - sources = [{ - uri: source.uri - }]; - } else { - style = flattenStyle([styles.base, this.props.style]); - sources = source; - } - - var _this$props = this.props, - onLoadStart = _this$props.onLoadStart, - onLoad = _this$props.onLoad, - onLoadEnd = _this$props.onLoadEnd, - onError = _this$props.onError; - var nativeProps = merge(this.props, { - style: style, - shouldNotifyLoadEvents: !!(onLoadStart || onLoad || onLoadEnd || onError), - src: sources, - headers: source.headers, - defaultSrc: defaultSource ? defaultSource.uri : null, - loadingIndicatorSrc: loadingIndicatorSource ? loadingIndicatorSource.uri : null - }); - return React.createElement(TextAncestor.Consumer, { - __source: { - fileName: _jsxFileName, - lineNumber: 265 - } - }, function (hasTextAncestor) { - return hasTextAncestor ? React.createElement(RCTTextInlineImage, _extends({}, nativeProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 268 - } - })) : React.createElement(RKImage, _extends({}, nativeProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 270 - } - })); - }); - } - }); - var styles = StyleSheet.create({ - base: { - overflow: 'hidden' - } - }); - module.exports = Image; -},13,[135,406,93,121,143,326,83,316,151,101,402,134,320,96,156],"node_modules/react-native/Libraries/Image/Image.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _require = _$$_REQUIRE(_dependencyMap[0], 'ReactNative'), - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = _require.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - - var NativeMethodsMixin = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.NativeMethodsMixin; - module.exports = NativeMethodsMixin; -},406,[67],"node_modules/react-native/Libraries/Renderer/shims/NativeMethodsMixin.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var AnimatedImplementation = _$$_REQUIRE(_dependencyMap[0], 'AnimatedImplementation'); - - var ColorPropType = _$$_REQUIRE(_dependencyMap[1], 'ColorPropType'); - - var EdgeInsetsPropType = _$$_REQUIRE(_dependencyMap[2], 'EdgeInsetsPropType'); - - var Platform = _$$_REQUIRE(_dependencyMap[3], 'Platform'); - - var PointPropType = _$$_REQUIRE(_dependencyMap[4], 'PointPropType'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[5], 'prop-types'); - - var React = _$$_REQUIRE(_dependencyMap[6], 'React'); - - var ReactNative = _$$_REQUIRE(_dependencyMap[7], 'ReactNative'); - - var ScrollResponder = _$$_REQUIRE(_dependencyMap[8], 'ScrollResponder'); - - var ScrollViewStickyHeader = _$$_REQUIRE(_dependencyMap[9], 'ScrollViewStickyHeader'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[10], 'StyleSheet'); - - var StyleSheetPropType = _$$_REQUIRE(_dependencyMap[11], 'StyleSheetPropType'); - - var View = _$$_REQUIRE(_dependencyMap[12], 'View'); - - var ViewPropTypes = _$$_REQUIRE(_dependencyMap[13], 'ViewPropTypes'); - - var ViewStylePropTypes = _$$_REQUIRE(_dependencyMap[14], 'ViewStylePropTypes'); - - var InternalScrollViewType = _$$_REQUIRE(_dependencyMap[15], 'InternalScrollViewType'); - - var createReactClass = _$$_REQUIRE(_dependencyMap[16], 'create-react-class'); - - var dismissKeyboard = _$$_REQUIRE(_dependencyMap[17], 'dismissKeyboard'); - - var flattenStyle = _$$_REQUIRE(_dependencyMap[18], 'flattenStyle'); - - var invariant = _$$_REQUIRE(_dependencyMap[19], 'fbjs/lib/invariant'); - - var processDecelerationRate = _$$_REQUIRE(_dependencyMap[20], 'processDecelerationRate'); - - var requireNativeComponent = _$$_REQUIRE(_dependencyMap[21], 'requireNativeComponent'); - - var warning = _$$_REQUIRE(_dependencyMap[22], 'fbjs/lib/warning'); - - var resolveAssetSource = _$$_REQUIRE(_dependencyMap[23], 'resolveAssetSource'); - - var AndroidScrollView; - var AndroidHorizontalScrollContentView; - var AndroidHorizontalScrollView; - var RCTScrollView; - var RCTScrollContentView; - - if (Platform.OS === 'android') { - AndroidScrollView = requireNativeComponent('RCTScrollView'); - AndroidHorizontalScrollView = requireNativeComponent('AndroidHorizontalScrollView'); - AndroidHorizontalScrollContentView = requireNativeComponent('AndroidHorizontalScrollContentView'); - } else if (Platform.OS === 'ios') { - RCTScrollView = requireNativeComponent('RCTScrollView'); - RCTScrollContentView = requireNativeComponent('RCTScrollContentView'); - } else { - RCTScrollView = requireNativeComponent('RCTScrollView'); - RCTScrollContentView = requireNativeComponent('RCTScrollContentView'); - } - - var ScrollView = createReactClass({ - displayName: 'ScrollView', - propTypes: _objectSpread({}, ViewPropTypes, { - automaticallyAdjustContentInsets: PropTypes.bool, - contentInset: EdgeInsetsPropType, - contentOffset: PointPropType, - bounces: PropTypes.bool, - bouncesZoom: PropTypes.bool, - alwaysBounceHorizontal: PropTypes.bool, - alwaysBounceVertical: PropTypes.bool, - centerContent: PropTypes.bool, - contentContainerStyle: StyleSheetPropType(ViewStylePropTypes), - decelerationRate: PropTypes.oneOfType([PropTypes.oneOf(['fast', 'normal']), PropTypes.number]), - horizontal: PropTypes.bool, - indicatorStyle: PropTypes.oneOf(['default', 'black', 'white']), - invertStickyHeaders: PropTypes.bool, - directionalLockEnabled: PropTypes.bool, - canCancelContentTouches: PropTypes.bool, - keyboardDismissMode: PropTypes.oneOf(['none', 'on-drag', 'interactive']), - keyboardShouldPersistTaps: PropTypes.oneOf(['always', 'never', 'handled', false, true]), - maintainVisibleContentPosition: PropTypes.shape({ - minIndexForVisible: PropTypes.number.isRequired, - autoscrollToTopThreshold: PropTypes.number - }), - maximumZoomScale: PropTypes.number, - minimumZoomScale: PropTypes.number, - nestedScrollEnabled: PropTypes.bool, - onMomentumScrollBegin: PropTypes.func, - onMomentumScrollEnd: PropTypes.func, - onScroll: PropTypes.func, - onScrollBeginDrag: PropTypes.func, - onScrollEndDrag: PropTypes.func, - onContentSizeChange: PropTypes.func, - pagingEnabled: PropTypes.bool, - pinchGestureEnabled: PropTypes.bool, - scrollEnabled: PropTypes.bool, - scrollEventThrottle: PropTypes.number, - scrollIndicatorInsets: EdgeInsetsPropType, - scrollsToTop: PropTypes.bool, - showsHorizontalScrollIndicator: PropTypes.bool, - showsVerticalScrollIndicator: PropTypes.bool, - stickyHeaderIndices: PropTypes.arrayOf(PropTypes.number), - snapToInterval: PropTypes.number, - snapToAlignment: PropTypes.oneOf(['start', 'center', 'end']), - removeClippedSubviews: PropTypes.bool, - zoomScale: PropTypes.number, - contentInsetAdjustmentBehavior: PropTypes.oneOf(['automatic', 'scrollableAxes', 'never', 'always']), - refreshControl: PropTypes.element, - endFillColor: ColorPropType, - scrollPerfTag: PropTypes.string, - overScrollMode: PropTypes.oneOf(['auto', 'always', 'never']), - DEPRECATED_sendUpdatedChildFrames: PropTypes.bool, - scrollBarThumbImage: PropTypes.oneOfType([PropTypes.shape({ - uri: PropTypes.string - }), PropTypes.number]) - }), - mixins: [ScrollResponder.Mixin], - _scrollAnimatedValue: new AnimatedImplementation.Value(0), - _scrollAnimatedValueAttachment: null, - _stickyHeaderRefs: new Map(), - _headerLayoutYs: new Map(), - getInitialState: function getInitialState() { - return _objectSpread({}, this.scrollResponderMixinGetInitialState(), { - layoutHeight: null - }); - }, - UNSAFE_componentWillMount: function UNSAFE_componentWillMount() { - this._scrollAnimatedValue = new AnimatedImplementation.Value(this.props.contentOffset ? this.props.contentOffset.y : 0); - - this._scrollAnimatedValue.setOffset(this.props.contentInset ? this.props.contentInset.top : 0); - - this._stickyHeaderRefs = new Map(); - this._headerLayoutYs = new Map(); - }, - componentDidMount: function componentDidMount() { - this._updateAnimatedNodeAttachment(); - }, - componentDidUpdate: function componentDidUpdate() { - this._updateAnimatedNodeAttachment(); - }, - componentWillUnmount: function componentWillUnmount() { - if (this._scrollAnimatedValueAttachment) { - this._scrollAnimatedValueAttachment.detach(); - } - }, - setNativeProps: function setNativeProps(props) { - this._scrollViewRef && this._scrollViewRef.setNativeProps(props); - }, - getScrollResponder: function getScrollResponder() { - return this; - }, - getScrollableNode: function getScrollableNode() { - return ReactNative.findNodeHandle(this._scrollViewRef); - }, - getInnerViewNode: function getInnerViewNode() { - return ReactNative.findNodeHandle(this._innerViewRef); - }, - scrollTo: function scrollTo(y, x, animated) { - if (typeof y === 'number') { - console.warn('`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, ' + 'animated: true})` instead.'); - } else { - var _ref = y || {}; - - x = _ref.x; - y = _ref.y; - animated = _ref.animated; - } - - this.getScrollResponder().scrollResponderScrollTo({ - x: x || 0, - y: y || 0, - animated: animated !== false - }); - }, - scrollToEnd: function scrollToEnd(options) { - var animated = (options && options.animated) !== false; - this.getScrollResponder().scrollResponderScrollToEnd({ - animated: animated - }); - }, - scrollWithoutAnimationTo: function scrollWithoutAnimationTo() { - var y = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - var x = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - console.warn('`scrollWithoutAnimationTo` is deprecated. Use `scrollTo` instead'); - this.scrollTo({ - x: x, - y: y, - animated: false - }); - }, - flashScrollIndicators: function flashScrollIndicators() { - this.getScrollResponder().scrollResponderFlashScrollIndicators(); - }, - _getKeyForIndex: function _getKeyForIndex(index, childArray) { - var child = childArray[index]; - return child && child.key; - }, - _updateAnimatedNodeAttachment: function _updateAnimatedNodeAttachment() { - if (this._scrollAnimatedValueAttachment) { - this._scrollAnimatedValueAttachment.detach(); - } - - if (this.props.stickyHeaderIndices && this.props.stickyHeaderIndices.length > 0) { - this._scrollAnimatedValueAttachment = AnimatedImplementation.attachNativeEvent(this._scrollViewRef, 'onScroll', [{ - nativeEvent: { - contentOffset: { - y: this._scrollAnimatedValue - } - } - }]); - } - }, - _setStickyHeaderRef: function _setStickyHeaderRef(key, ref) { - if (ref) { - this._stickyHeaderRefs.set(key, ref); - } else { - this._stickyHeaderRefs.delete(key); - } - }, - _onStickyHeaderLayout: function _onStickyHeaderLayout(index, event, key) { - if (!this.props.stickyHeaderIndices) { - return; - } - - var childArray = React.Children.toArray(this.props.children); - - if (key !== this._getKeyForIndex(index, childArray)) { - return; - } - - var layoutY = event.nativeEvent.layout.y; - - this._headerLayoutYs.set(key, layoutY); - - var indexOfIndex = this.props.stickyHeaderIndices.indexOf(index); - var previousHeaderIndex = this.props.stickyHeaderIndices[indexOfIndex - 1]; - - if (previousHeaderIndex != null) { - var previousHeader = this._stickyHeaderRefs.get(this._getKeyForIndex(previousHeaderIndex, childArray)); - - previousHeader && previousHeader.setNextHeaderY(layoutY); - } - }, - _handleScroll: function _handleScroll(e) { - if (__DEV__) { - if (this.props.onScroll && this.props.scrollEventThrottle == null && Platform.OS === 'ios') { - console.log('You specified `onScroll` on a but not ' + '`scrollEventThrottle`. You will only receive one event. ' + 'Using `16` you get all the events but be aware that it may ' + "cause frame drops, use a bigger number if you don't need as " + 'much precision.'); - } - } - - if (Platform.OS === 'android') { - if (this.props.keyboardDismissMode === 'on-drag' && this.state.isTouching) { - dismissKeyboard(); - } - } - - this.scrollResponderHandleScroll(e); - }, - _handleLayout: function _handleLayout(e) { - if (this.props.invertStickyHeaders) { - this.setState({ - layoutHeight: e.nativeEvent.layout.height - }); - } - - if (this.props.onLayout) { - this.props.onLayout(e); - } - }, - _handleContentOnLayout: function _handleContentOnLayout(e) { - var _e$nativeEvent$layout = e.nativeEvent.layout, - width = _e$nativeEvent$layout.width, - height = _e$nativeEvent$layout.height; - this.props.onContentSizeChange && this.props.onContentSizeChange(width, height); - }, - _scrollViewRef: null, - _setScrollViewRef: function _setScrollViewRef(ref) { - this._scrollViewRef = ref; - }, - _innerViewRef: null, - _setInnerViewRef: function _setInnerViewRef(ref) { - this._innerViewRef = ref; - }, - render: function render() { - var _this = this; - - var ScrollViewClass; - var ScrollContentContainerViewClass; - - if (Platform.OS === 'android') { - if (this.props.horizontal) { - ScrollViewClass = AndroidHorizontalScrollView; - ScrollContentContainerViewClass = AndroidHorizontalScrollContentView; - } else { - ScrollViewClass = AndroidScrollView; - ScrollContentContainerViewClass = View; - } - } else { - ScrollViewClass = RCTScrollView; - ScrollContentContainerViewClass = RCTScrollContentView; - warning(!this.props.snapToInterval || !this.props.pagingEnabled, 'snapToInterval is currently ignored when pagingEnabled is true.'); - } - - invariant(ScrollViewClass !== undefined, 'ScrollViewClass must not be undefined'); - invariant(ScrollContentContainerViewClass !== undefined, 'ScrollContentContainerViewClass must not be undefined'); - var contentContainerStyle = [this.props.horizontal && styles.contentContainerHorizontal, this.props.contentContainerStyle]; - - if (__DEV__ && this.props.style) { - var _style = flattenStyle(this.props.style); - - var childLayoutProps = ['alignItems', 'justifyContent'].filter(function (prop) { - return _style && _style[prop] !== undefined; - }); - invariant(childLayoutProps.length === 0, 'ScrollView child layout (' + JSON.stringify(childLayoutProps) + ') must be applied through the contentContainerStyle prop.'); - } - - var contentSizeChangeProps = {}; - - if (this.props.onContentSizeChange) { - contentSizeChangeProps = { - onLayout: this._handleContentOnLayout - }; - } - - var stickyHeaderIndices = this.props.stickyHeaderIndices; - var hasStickyHeaders = stickyHeaderIndices && stickyHeaderIndices.length > 0; - var childArray = hasStickyHeaders && React.Children.toArray(this.props.children); - var children = hasStickyHeaders ? childArray.map(function (child, index) { - var indexOfIndex = child ? stickyHeaderIndices.indexOf(index) : -1; - - if (indexOfIndex > -1) { - var key = child.key; - var nextIndex = stickyHeaderIndices[indexOfIndex + 1]; - return React.createElement(ScrollViewStickyHeader, { - key: key, - ref: function ref(_ref2) { - return _this._setStickyHeaderRef(key, _ref2); - }, - nextHeaderLayoutY: _this._headerLayoutYs.get(_this._getKeyForIndex(nextIndex, childArray)), - onLayout: function onLayout(event) { - return _this._onStickyHeaderLayout(index, event, key); - }, - scrollAnimatedValue: _this._scrollAnimatedValue, - inverted: _this.props.invertStickyHeaders, - scrollViewHeight: _this.state.layoutHeight, - __source: { - fileName: _jsxFileName, - lineNumber: 933 - } - }, child); - } else { - return child; - } - }) : this.props.children; - var contentContainer = React.createElement(ScrollContentContainerViewClass, _extends({}, contentSizeChangeProps, { - ref: this._setInnerViewRef, - style: contentContainerStyle, - removeClippedSubviews: Platform.OS === 'android' && hasStickyHeaders ? false : this.props.removeClippedSubviews, - collapsable: false, - __source: { - fileName: _jsxFileName, - lineNumber: 955 - } - }), children); - var alwaysBounceHorizontal = this.props.alwaysBounceHorizontal !== undefined ? this.props.alwaysBounceHorizontal : this.props.horizontal; - var alwaysBounceVertical = this.props.alwaysBounceVertical !== undefined ? this.props.alwaysBounceVertical : !this.props.horizontal; - var DEPRECATED_sendUpdatedChildFrames = !!this.props.DEPRECATED_sendUpdatedChildFrames; - var baseStyle = this.props.horizontal ? styles.baseHorizontal : styles.baseVertical; - - var props = _objectSpread({}, this.props, { - alwaysBounceHorizontal: alwaysBounceHorizontal, - alwaysBounceVertical: alwaysBounceVertical, - style: [baseStyle, this.props.style], - onContentSizeChange: null, - onLayout: this._handleLayout, - onMomentumScrollBegin: this.scrollResponderHandleMomentumScrollBegin, - onMomentumScrollEnd: this.scrollResponderHandleMomentumScrollEnd, - onResponderGrant: this.scrollResponderHandleResponderGrant, - onResponderReject: this.scrollResponderHandleResponderReject, - onResponderRelease: this.scrollResponderHandleResponderRelease, - onResponderTerminate: this.scrollResponderHandleTerminate, - onResponderTerminationRequest: this.scrollResponderHandleTerminationRequest, - onScroll: this._handleScroll, - onScrollBeginDrag: this.scrollResponderHandleScrollBeginDrag, - onScrollEndDrag: this.scrollResponderHandleScrollEndDrag, - onScrollShouldSetResponder: this.scrollResponderHandleScrollShouldSetResponder, - onStartShouldSetResponder: this.scrollResponderHandleStartShouldSetResponder, - onStartShouldSetResponderCapture: this.scrollResponderHandleStartShouldSetResponderCapture, - onTouchEnd: this.scrollResponderHandleTouchEnd, - onTouchMove: this.scrollResponderHandleTouchMove, - onTouchStart: this.scrollResponderHandleTouchStart, - onTouchCancel: this.scrollResponderHandleTouchCancel, - scrollBarThumbImage: resolveAssetSource(this.props.scrollBarThumbImage), - scrollEventThrottle: hasStickyHeaders ? 1 : this.props.scrollEventThrottle, - sendMomentumEvents: this.props.onMomentumScrollBegin || this.props.onMomentumScrollEnd ? true : false, - DEPRECATED_sendUpdatedChildFrames: DEPRECATED_sendUpdatedChildFrames - }); - - var decelerationRate = this.props.decelerationRate; - - if (decelerationRate) { - props.decelerationRate = processDecelerationRate(decelerationRate); - } - - var refreshControl = this.props.refreshControl; - - if (refreshControl) { - if (Platform.OS === 'ios') { - return React.createElement(ScrollViewClass, _extends({}, props, { - ref: this._setScrollViewRef, - __source: { - fileName: _jsxFileName, - lineNumber: 1043 - } - }), Platform.isTV ? null : refreshControl, contentContainer); - } else if (Platform.OS === 'android') { - return React.cloneElement(refreshControl, { - style: props.style - }, React.createElement(ScrollViewClass, _extends({}, props, { - style: baseStyle, - ref: this._setScrollViewRef, - __source: { - fileName: _jsxFileName, - lineNumber: 1058 - } - }), contentContainer)); - } - } - - return React.createElement(ScrollViewClass, _extends({}, props, { - ref: this._setScrollViewRef, - __source: { - fileName: _jsxFileName, - lineNumber: 1070 - } - }), contentContainer); - } - }); - var TypedScrollView = ScrollView; - var styles = StyleSheet.create({ - baseVertical: { - flexGrow: 1, - flexShrink: 1, - flexDirection: 'column', - overflow: 'scroll' - }, - baseHorizontal: { - flexGrow: 1, - flexShrink: 1, - flexDirection: 'row', - overflow: 'scroll' - }, - contentContainerHorizontal: { - flexDirection: 'row' - } - }); - module.exports = TypedScrollView; -},28,[407,98,99,94,100,143,121,67,433,434,83,316,48,101,137,435,402,436,134,4,437,96,111,156],"node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var PropTypes = _$$_REQUIRE(_dependencyMap[0], 'prop-types'); - - var PointPropType = PropTypes.shape({ - x: PropTypes.number, - y: PropTypes.number - }); - module.exports = PointPropType; -},100,[143],"node_modules/react-native/Libraries/StyleSheet/PointPropType.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var Dimensions = _$$_REQUIRE(_dependencyMap[0], 'Dimensions'); - - var FrameRateLogger = _$$_REQUIRE(_dependencyMap[1], 'FrameRateLogger'); - - var Keyboard = _$$_REQUIRE(_dependencyMap[2], 'Keyboard'); - - var ReactNative = _$$_REQUIRE(_dependencyMap[3], 'ReactNative'); - - var Subscribable = _$$_REQUIRE(_dependencyMap[4], 'Subscribable'); - - var TextInputState = _$$_REQUIRE(_dependencyMap[5], 'TextInputState'); - - var UIManager = _$$_REQUIRE(_dependencyMap[6], 'UIManager'); - - var invariant = _$$_REQUIRE(_dependencyMap[7], 'fbjs/lib/invariant'); - - var nullthrows = _$$_REQUIRE(_dependencyMap[8], 'fbjs/lib/nullthrows'); - - var performanceNow = _$$_REQUIRE(_dependencyMap[9], 'fbjs/lib/performanceNow'); - - var warning = _$$_REQUIRE(_dependencyMap[10], 'fbjs/lib/warning'); - - var _require = _$$_REQUIRE(_dependencyMap[11], 'NativeModules'), - ScrollViewManager = _require.ScrollViewManager; - - var IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16; - var ScrollResponderMixin = { - mixins: [Subscribable.Mixin], - scrollResponderMixinGetInitialState: function scrollResponderMixinGetInitialState() { - return { - isTouching: false, - lastMomentumScrollBeginTime: 0, - lastMomentumScrollEndTime: 0, - observedScrollSinceBecomingResponder: false, - becameResponderWhileAnimating: false - }; - }, - scrollResponderHandleScrollShouldSetResponder: function scrollResponderHandleScrollShouldSetResponder() { - return this.state.isTouching; - }, - scrollResponderHandleStartShouldSetResponder: function scrollResponderHandleStartShouldSetResponder(e) { - var currentlyFocusedTextInput = TextInputState.currentlyFocusedField(); - - if (this.props.keyboardShouldPersistTaps === 'handled' && currentlyFocusedTextInput != null && e.target !== currentlyFocusedTextInput) { - return true; - } - - return false; - }, - scrollResponderHandleStartShouldSetResponderCapture: function scrollResponderHandleStartShouldSetResponderCapture(e) { - if (this.scrollResponderIsAnimating()) { - return true; - } - - var currentlyFocusedTextInput = TextInputState.currentlyFocusedField(); - var keyboardShouldPersistTaps = this.props.keyboardShouldPersistTaps; - var keyboardNeverPersistTaps = !keyboardShouldPersistTaps || keyboardShouldPersistTaps === 'never'; - - if (keyboardNeverPersistTaps && currentlyFocusedTextInput != null && !TextInputState.isTextInput(e.target)) { - return true; - } - - return false; - }, - scrollResponderHandleResponderReject: function scrollResponderHandleResponderReject() {}, - scrollResponderHandleTerminationRequest: function scrollResponderHandleTerminationRequest() { - return !this.state.observedScrollSinceBecomingResponder; - }, - scrollResponderHandleTouchEnd: function scrollResponderHandleTouchEnd(e) { - var nativeEvent = e.nativeEvent; - this.state.isTouching = nativeEvent.touches.length !== 0; - this.props.onTouchEnd && this.props.onTouchEnd(e); - }, - scrollResponderHandleTouchCancel: function scrollResponderHandleTouchCancel(e) { - this.state.isTouching = false; - this.props.onTouchCancel && this.props.onTouchCancel(e); - }, - scrollResponderHandleResponderRelease: function scrollResponderHandleResponderRelease(e) { - this.props.onResponderRelease && this.props.onResponderRelease(e); - var currentlyFocusedTextInput = TextInputState.currentlyFocusedField(); - - if (this.props.keyboardShouldPersistTaps !== true && this.props.keyboardShouldPersistTaps !== 'always' && currentlyFocusedTextInput != null && e.target !== currentlyFocusedTextInput && !this.state.observedScrollSinceBecomingResponder && !this.state.becameResponderWhileAnimating) { - this.props.onScrollResponderKeyboardDismissed && this.props.onScrollResponderKeyboardDismissed(e); - TextInputState.blurTextInput(currentlyFocusedTextInput); - } - }, - scrollResponderHandleScroll: function scrollResponderHandleScroll(e) { - this.state.observedScrollSinceBecomingResponder = true; - this.props.onScroll && this.props.onScroll(e); - }, - scrollResponderHandleResponderGrant: function scrollResponderHandleResponderGrant(e) { - this.state.observedScrollSinceBecomingResponder = false; - this.props.onResponderGrant && this.props.onResponderGrant(e); - this.state.becameResponderWhileAnimating = this.scrollResponderIsAnimating(); - }, - scrollResponderHandleScrollBeginDrag: function scrollResponderHandleScrollBeginDrag(e) { - FrameRateLogger.beginScroll(); - this.props.onScrollBeginDrag && this.props.onScrollBeginDrag(e); - }, - scrollResponderHandleScrollEndDrag: function scrollResponderHandleScrollEndDrag(e) { - var velocity = e.nativeEvent.velocity; - - if (!this.scrollResponderIsAnimating() && (!velocity || velocity.x === 0 && velocity.y === 0)) { - FrameRateLogger.endScroll(); - } - - this.props.onScrollEndDrag && this.props.onScrollEndDrag(e); - }, - scrollResponderHandleMomentumScrollBegin: function scrollResponderHandleMomentumScrollBegin(e) { - this.state.lastMomentumScrollBeginTime = performanceNow(); - this.props.onMomentumScrollBegin && this.props.onMomentumScrollBegin(e); - }, - scrollResponderHandleMomentumScrollEnd: function scrollResponderHandleMomentumScrollEnd(e) { - FrameRateLogger.endScroll(); - this.state.lastMomentumScrollEndTime = performanceNow(); - this.props.onMomentumScrollEnd && this.props.onMomentumScrollEnd(e); - }, - scrollResponderHandleTouchStart: function scrollResponderHandleTouchStart(e) { - this.state.isTouching = true; - this.props.onTouchStart && this.props.onTouchStart(e); - }, - scrollResponderHandleTouchMove: function scrollResponderHandleTouchMove(e) { - this.props.onTouchMove && this.props.onTouchMove(e); - }, - scrollResponderIsAnimating: function scrollResponderIsAnimating() { - var now = performanceNow(); - var timeSinceLastMomentumScrollEnd = now - this.state.lastMomentumScrollEndTime; - var isAnimating = timeSinceLastMomentumScrollEnd < IS_ANIMATING_TOUCH_START_THRESHOLD_MS || this.state.lastMomentumScrollEndTime < this.state.lastMomentumScrollBeginTime; - return isAnimating; - }, - scrollResponderGetScrollableNode: function scrollResponderGetScrollableNode() { - return this.getScrollableNode ? this.getScrollableNode() : ReactNative.findNodeHandle(this); - }, - scrollResponderScrollTo: function scrollResponderScrollTo(x, y, animated) { - if (typeof x === 'number') { - console.warn('`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.'); - } else { - var _ref = x || {}; - - x = _ref.x; - y = _ref.y; - animated = _ref.animated; - } - - UIManager.dispatchViewManagerCommand(nullthrows(this.scrollResponderGetScrollableNode()), UIManager.RCTScrollView.Commands.scrollTo, [x || 0, y || 0, animated !== false]); - }, - scrollResponderScrollToEnd: function scrollResponderScrollToEnd(options) { - var animated = (options && options.animated) !== false; - UIManager.dispatchViewManagerCommand(this.scrollResponderGetScrollableNode(), UIManager.RCTScrollView.Commands.scrollToEnd, [animated]); - }, - scrollResponderScrollWithoutAnimationTo: function scrollResponderScrollWithoutAnimationTo(offsetX, offsetY) { - console.warn('`scrollResponderScrollWithoutAnimationTo` is deprecated. Use `scrollResponderScrollTo` instead'); - this.scrollResponderScrollTo({ - x: offsetX, - y: offsetY, - animated: false - }); - }, - scrollResponderZoomTo: function scrollResponderZoomTo(rect, animated) { - invariant(ScrollViewManager && ScrollViewManager.zoomToRect, 'zoomToRect is not implemented'); - - if ('animated' in rect) { - animated = rect.animated; - delete rect.animated; - } else if (typeof animated !== 'undefined') { - console.warn('`scrollResponderZoomTo` `animated` argument is deprecated. Use `options.animated` instead'); - } - - ScrollViewManager.zoomToRect(this.scrollResponderGetScrollableNode(), rect, animated !== false); - }, - scrollResponderFlashScrollIndicators: function scrollResponderFlashScrollIndicators() { - UIManager.dispatchViewManagerCommand(this.scrollResponderGetScrollableNode(), UIManager.RCTScrollView.Commands.flashScrollIndicators, []); - }, - scrollResponderScrollNativeHandleToKeyboard: function scrollResponderScrollNativeHandleToKeyboard(nodeHandle, additionalOffset, preventNegativeScrollOffset) { - this.additionalScrollOffset = additionalOffset || 0; - this.preventNegativeScrollOffset = !!preventNegativeScrollOffset; - UIManager.measureLayout(nodeHandle, ReactNative.findNodeHandle(this.getInnerViewNode()), this.scrollResponderTextInputFocusError, this.scrollResponderInputMeasureAndScrollToKeyboard); - }, - scrollResponderInputMeasureAndScrollToKeyboard: function scrollResponderInputMeasureAndScrollToKeyboard(left, top, width, height) { - var keyboardScreenY = Dimensions.get('window').height; - - if (this.keyboardWillOpenTo) { - keyboardScreenY = this.keyboardWillOpenTo.endCoordinates.screenY; - } - - var scrollOffsetY = top - keyboardScreenY + height + this.additionalScrollOffset; - - if (this.preventNegativeScrollOffset) { - scrollOffsetY = Math.max(0, scrollOffsetY); - } - - this.scrollResponderScrollTo({ - x: 0, - y: scrollOffsetY, - animated: true - }); - this.additionalOffset = 0; - this.preventNegativeScrollOffset = false; - }, - scrollResponderTextInputFocusError: function scrollResponderTextInputFocusError(e) { - console.error('Error measuring text field: ', e); - }, - UNSAFE_componentWillMount: function UNSAFE_componentWillMount() { - var keyboardShouldPersistTaps = this.props.keyboardShouldPersistTaps; - warning(typeof keyboardShouldPersistTaps !== 'boolean', "'keyboardShouldPersistTaps={" + keyboardShouldPersistTaps + "}' is deprecated. " + ("Use 'keyboardShouldPersistTaps=\"" + (keyboardShouldPersistTaps ? 'always' : 'never') + "\"' instead")); - this.keyboardWillOpenTo = null; - this.additionalScrollOffset = 0; - this.addListenerOn(Keyboard, 'keyboardWillShow', this.scrollResponderKeyboardWillShow); - this.addListenerOn(Keyboard, 'keyboardWillHide', this.scrollResponderKeyboardWillHide); - this.addListenerOn(Keyboard, 'keyboardDidShow', this.scrollResponderKeyboardDidShow); - this.addListenerOn(Keyboard, 'keyboardDidHide', this.scrollResponderKeyboardDidHide); - }, - scrollResponderKeyboardWillShow: function scrollResponderKeyboardWillShow(e) { - this.keyboardWillOpenTo = e; - this.props.onKeyboardWillShow && this.props.onKeyboardWillShow(e); - }, - scrollResponderKeyboardWillHide: function scrollResponderKeyboardWillHide(e) { - this.keyboardWillOpenTo = null; - this.props.onKeyboardWillHide && this.props.onKeyboardWillHide(e); - }, - scrollResponderKeyboardDidShow: function scrollResponderKeyboardDidShow(e) { - if (e) { - this.keyboardWillOpenTo = e; - } - - this.props.onKeyboardDidShow && this.props.onKeyboardDidShow(e); - }, - scrollResponderKeyboardDidHide: function scrollResponderKeyboardDidHide(e) { - this.keyboardWillOpenTo = null; - this.props.onKeyboardDidHide && this.props.onKeyboardDidHide(e); - } - }; - var ScrollResponder = { - Mixin: ScrollResponderMixin - }; - module.exports = ScrollResponder; -},433,[65,438,71,67,439,341,87,4,330,109,111,93],"node_modules/react-native/Libraries/Components/ScrollResponder.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var NativeModules = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'); - - var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); - - var FrameRateLogger = { - setGlobalOptions: function setGlobalOptions(options) { - if (options.debug !== undefined) { - invariant(NativeModules.FrameRateLogger, 'Trying to debug FrameRateLogger without the native module!'); - } - - if (NativeModules.FrameRateLogger) { - var optionsClone = { - debug: !!options.debug, - reportStackTraces: !!options.reportStackTraces - }; - Object.freeze(optionsClone); - Object.seal(optionsClone); - NativeModules.FrameRateLogger.setGlobalOptions(optionsClone); - } - }, - setContext: function setContext(context) { - NativeModules.FrameRateLogger && NativeModules.FrameRateLogger.setContext(context); - }, - beginScroll: function beginScroll() { - NativeModules.FrameRateLogger && NativeModules.FrameRateLogger.beginScroll(); - }, - endScroll: function endScroll() { - NativeModules.FrameRateLogger && NativeModules.FrameRateLogger.endScroll(); - } - }; - module.exports = FrameRateLogger; -},438,[93,4],"node_modules/react-native/Libraries/Interaction/FrameRateLogger.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var LayoutAnimation = _$$_REQUIRE(_dependencyMap[0], 'LayoutAnimation'); - - var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); - - var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[2], 'NativeEventEmitter'); - - var KeyboardObserver = _$$_REQUIRE(_dependencyMap[3], 'NativeModules').KeyboardObserver; - - var dismissKeyboard = _$$_REQUIRE(_dependencyMap[4], 'dismissKeyboard'); - - var KeyboardEventEmitter = new NativeEventEmitter(KeyboardObserver); - var Keyboard = { - addListener: function addListener(eventName, callback) { - invariant(false, 'Dummy method used for documentation'); - }, - removeListener: function removeListener(eventName, callback) { - invariant(false, 'Dummy method used for documentation'); - }, - removeAllListeners: function removeAllListeners(eventName) { - invariant(false, 'Dummy method used for documentation'); - }, - dismiss: function dismiss() { - invariant(false, 'Dummy method used for documentation'); - }, - scheduleLayoutAnimation: function scheduleLayoutAnimation(event) { - invariant(false, 'Dummy method used for documentation'); - } - }; - Keyboard = KeyboardEventEmitter; - Keyboard.dismiss = dismissKeyboard; - - Keyboard.scheduleLayoutAnimation = function (event) { - var duration = event.duration, - easing = event.easing; - - if (duration) { - LayoutAnimation.configureNext({ - duration: duration, - update: { - duration: duration, - type: easing && LayoutAnimation.Types[easing] || 'keyboard' - } - }); - } - }; - - module.exports = Keyboard; -},71,[72,4,74,93,436],"node_modules/react-native/Libraries/Components/Keyboard/Keyboard.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var PropTypes = _$$_REQUIRE(_dependencyMap[0], 'prop-types'); - - var UIManager = _$$_REQUIRE(_dependencyMap[1], 'UIManager'); - - var keyMirror = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/keyMirror'); - - var checkPropTypes = PropTypes.checkPropTypes; - var TypesEnum = { - spring: true, - linear: true, - easeInEaseOut: true, - easeIn: true, - easeOut: true, - keyboard: true - }; - var Types = keyMirror(TypesEnum); - var PropertiesEnum = { - opacity: true, - scaleX: true, - scaleY: true, - scaleXY: true - }; - var Properties = keyMirror(PropertiesEnum); - var animType = PropTypes.shape({ - duration: PropTypes.number, - delay: PropTypes.number, - springDamping: PropTypes.number, - initialVelocity: PropTypes.number, - type: PropTypes.oneOf(Object.keys(Types)).isRequired, - property: PropTypes.oneOf(Object.keys(Properties)) - }); - var configType = PropTypes.shape({ - duration: PropTypes.number.isRequired, - create: animType, - update: animType, - delete: animType - }); - - function checkConfig(config, location, name) { - checkPropTypes({ - config: configType - }, { - config: config - }, location, name); - } - - function configureNext(config, onAnimationDidEnd) { - if (__DEV__) { - checkConfig(config, 'config', 'LayoutAnimation.configureNext'); - } - - UIManager.configureNextLayoutAnimation(config, onAnimationDidEnd || function () {}, function () {}); - } - - function create(duration, type, creationProp) { - return { - duration: duration, - create: { - type: type, - property: creationProp - }, - update: { - type: type - }, - delete: { - type: type, - property: creationProp - } - }; - } - - var Presets = { - easeInEaseOut: create(300, Types.easeInEaseOut, Properties.opacity), - linear: create(500, Types.linear, Properties.opacity), - spring: { - duration: 700, - create: { - type: Types.linear, - property: Properties.opacity - }, - update: { - type: Types.spring, - springDamping: 0.4 - }, - delete: { - type: Types.linear, - property: Properties.opacity - } - } - }; - var LayoutAnimation = { - configureNext: configureNext, - create: create, - Types: Types, - Properties: Properties, - checkConfig: checkConfig, - Presets: Presets, - easeInEaseOut: configureNext.bind(null, Presets.easeInEaseOut), - linear: configureNext.bind(null, Presets.linear), - spring: configureNext.bind(null, Presets.spring) - }; - module.exports = LayoutAnimation; -},72,[143,87,138],"node_modules/react-native/Libraries/LayoutAnimation/LayoutAnimation.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var TextInputState = _$$_REQUIRE(_dependencyMap[0], 'TextInputState'); - - function dismissKeyboard() { - TextInputState.blurTextInput(TextInputState.currentlyFocusedField()); - } - - module.exports = dismissKeyboard; -},436,[341],"node_modules/react-native/Libraries/Utilities/dismissKeyboard.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var Subscribable = {}; - Subscribable.Mixin = { - UNSAFE_componentWillMount: function UNSAFE_componentWillMount() { - this._subscribableSubscriptions = []; - }, - componentWillUnmount: function componentWillUnmount() { - this._subscribableSubscriptions && this._subscribableSubscriptions.forEach(function (subscription) { - return subscription.remove(); - }); - this._subscribableSubscriptions = null; - }, - addListenerOn: function addListenerOn(eventEmitter, eventType, listener, context) { - this._subscribableSubscriptions.push(eventEmitter.addListener(eventType, listener, context)); - } - }; - module.exports = Subscribable; -},439,[],"node_modules/react-native/Libraries/Components/Subscribable.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - ScrollViewStickyHeader: { - displayName: "ScrollViewStickyHeader" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var AnimatedImplementation = _$$_REQUIRE(_dependencyMap[2], 'AnimatedImplementation'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[4], 'StyleSheet'); - - var View = _$$_REQUIRE(_dependencyMap[5], 'View'); - - var AnimatedView = AnimatedImplementation.createAnimatedComponent(View); - - var ScrollViewStickyHeader = function (_React$Component) { - function ScrollViewStickyHeader() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, ScrollViewStickyHeader); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ScrollViewStickyHeader)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { - measured: false, - layoutY: 0, - layoutHeight: 0, - nextHeaderLayoutY: _this.props.nextHeaderLayoutY - }, _this._onLayout = function (event) { - _this.setState({ - measured: true, - layoutY: event.nativeEvent.layout.y, - layoutHeight: event.nativeEvent.layout.height - }); - - _this.props.onLayout(event); - - var child = React.Children.only(_this.props.children); - - if (child.props.onLayout) { - child.props.onLayout(event); - } - }, _temp)); - } - - _createClass(ScrollViewStickyHeader, [{ - key: "setNextHeaderY", - value: function setNextHeaderY(y) { - this.setState({ - nextHeaderLayoutY: y - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - inverted = _this$props.inverted, - scrollViewHeight = _this$props.scrollViewHeight; - var _this$state = this.state, - measured = _this$state.measured, - layoutHeight = _this$state.layoutHeight, - layoutY = _this$state.layoutY, - nextHeaderLayoutY = _this$state.nextHeaderLayoutY; - var inputRange = [-1, 0]; - var outputRange = [0, 0]; - - if (measured) { - if (inverted) { - if (scrollViewHeight != null) { - var stickStartPoint = layoutY + layoutHeight - scrollViewHeight; - - if (stickStartPoint > 0) { - inputRange.push(stickStartPoint); - outputRange.push(0); - inputRange.push(stickStartPoint + 1); - outputRange.push(1); - var collisionPoint = (nextHeaderLayoutY || 0) - layoutHeight - scrollViewHeight; - - if (collisionPoint > stickStartPoint) { - inputRange.push(collisionPoint, collisionPoint + 1); - outputRange.push(collisionPoint - stickStartPoint, collisionPoint - stickStartPoint); - } - } - } - } else { - inputRange.push(layoutY); - outputRange.push(0); - - var _collisionPoint = (nextHeaderLayoutY || 0) - layoutHeight; - - if (_collisionPoint >= layoutY) { - inputRange.push(_collisionPoint, _collisionPoint + 1); - outputRange.push(_collisionPoint - layoutY, _collisionPoint - layoutY); - } else { - inputRange.push(layoutY + 1); - outputRange.push(1); - } - } - } - - var translateY = this.props.scrollAnimatedValue.interpolate({ - inputRange: inputRange, - outputRange: outputRange - }); - var child = React.Children.only(this.props.children); - return React.createElement(AnimatedView, { - collapsable: false, - onLayout: this._onLayout, - style: [child.props.style, styles.header, { - transform: [{ - translateY: translateY - }] - }], - __source: { - fileName: _jsxFileName, - lineNumber: 141 - } - }, React.cloneElement(child, { - style: styles.fill, - onLayout: undefined - })); - } - }]); - - _inherits(ScrollViewStickyHeader, _React$Component); - - return ScrollViewStickyHeader; - }(React.Component); - - ScrollViewStickyHeader = _wrapComponent("ScrollViewStickyHeader")(ScrollViewStickyHeader); - var styles = StyleSheet.create({ - header: { - zIndex: 10 - }, - fill: { - flex: 1 - } - }); - module.exports = ScrollViewStickyHeader; -},434,[122,161,407,121,83,48],"node_modules/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var ReactNative = _$$_REQUIRE(_dependencyMap[0], 'ReactNative'); - - var InternalScrollViewType = function (_ReactNative$NativeCo) { - "use strict"; - - function InternalScrollViewType() { - _classCallCheck(this, InternalScrollViewType); - - return _possibleConstructorReturn(this, _getPrototypeOf(InternalScrollViewType).apply(this, arguments)); - } - - _createClass(InternalScrollViewType, [{ - key: "scrollTo", - value: function scrollTo(y, x, animated) {} - }, { - key: "flashScrollIndicators", - value: function flashScrollIndicators() {} - }, { - key: "scrollToEnd", - value: function scrollToEnd(options) {} - }, { - key: "scrollWithoutAnimationTo", - value: function scrollWithoutAnimationTo() { - var y = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - var x = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - } - }, { - key: "getScrollResponder", - value: function getScrollResponder() {} - }, { - key: "getScrollableNode", - value: function getScrollableNode() {} - }, { - key: "getInnerViewNode", - value: function getInnerViewNode() {} - }, { - key: "scrollResponderScrollNativeHandleToKeyboard", - value: function scrollResponderScrollNativeHandleToKeyboard(nodeHandle, additionalOffset, preventNegativeScrollOffset) {} - }, { - key: "scrollResponderScrollTo", - value: function scrollResponderScrollTo(x, y, animated) {} - }]); - - _inherits(InternalScrollViewType, _ReactNative$NativeCo); - - return InternalScrollViewType; - }(ReactNative.NativeComponent); - - module.exports = InternalScrollViewType; -},435,[67],"node_modules/react-native/Libraries/Components/ScrollView/InternalScrollViewType.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function processDecelerationRate(decelerationRate) { - if (decelerationRate === 'normal') { - decelerationRate = 0.998; - } else if (decelerationRate === 'fast') { - decelerationRate = 0.99; - } - - return decelerationRate; - } - - module.exports = processDecelerationRate; -},437,[],"node_modules/react-native/Libraries/Components/ScrollView/processDecelerationRate.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/CheckBox/CheckBox.android.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var NativeMethodsMixin = _$$_REQUIRE(_dependencyMap[0], 'NativeMethodsMixin'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[1], 'prop-types'); - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); - - var ViewPropTypes = _$$_REQUIRE(_dependencyMap[4], 'ViewPropTypes'); - - var createReactClass = _$$_REQUIRE(_dependencyMap[5], 'create-react-class'); - - var requireNativeComponent = _$$_REQUIRE(_dependencyMap[6], 'requireNativeComponent'); - - var RCTCheckBox = requireNativeComponent('AndroidCheckBox'); - var CheckBox = createReactClass({ - displayName: 'CheckBox', - propTypes: _objectSpread({}, ViewPropTypes, { - value: PropTypes.bool, - disabled: PropTypes.bool, - onChange: PropTypes.func, - onValueChange: PropTypes.func, - testID: PropTypes.string - }), - getDefaultProps: function getDefaultProps() { - return { - value: false, - disabled: false - }; - }, - mixins: [NativeMethodsMixin], - _rctCheckBox: {}, - _onChange: function _onChange(event) { - this._rctCheckBox.setNativeProps({ - value: this.props.value - }); - - this.props.onChange && this.props.onChange(event); - this.props.onValueChange && this.props.onValueChange(event.nativeEvent.value); - }, - render: function render() { - var _this = this; - - var props = _objectSpread({}, this.props); - - props.onStartShouldSetResponder = function () { - return true; - }; - - props.onResponderTerminationRequest = function () { - return false; - }; - - props.enabled = !this.props.disabled; - props.on = this.props.value; - props.style = [styles.rctCheckBox, this.props.style]; - return React.createElement(RCTCheckBox, _extends({}, props, { - ref: function ref(_ref) { - _this._rctCheckBox = _ref; - }, - onChange: this._onChange, - __source: { - fileName: _jsxFileName, - lineNumber: 139 - } - })); - } - }); - var styles = StyleSheet.create({ - rctCheckBox: { - height: 32, - width: 32 - } - }); - module.exports = CheckBox; -},9,[406,143,121,83,101,402,96],"node_modules/react-native/Libraries/Components/CheckBox/CheckBox.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS.android.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - DummyDatePickerIOS: { - displayName: "DummyDatePickerIOS" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS.android.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); - - var Text = _$$_REQUIRE(_dependencyMap[4], 'Text'); - - var View = _$$_REQUIRE(_dependencyMap[5], 'View'); - - var DummyDatePickerIOS = function (_React$Component) { - function DummyDatePickerIOS() { - _classCallCheck(this, DummyDatePickerIOS); - - return _possibleConstructorReturn(this, _getPrototypeOf(DummyDatePickerIOS).apply(this, arguments)); - } - - _createClass(DummyDatePickerIOS, [{ - key: "render", - value: function render() { - return React.createElement(View, { - style: [styles.dummyDatePickerIOS, this.props.style], - __source: { - fileName: _jsxFileName, - lineNumber: 20 - } - }, React.createElement(Text, { - style: styles.datePickerText, - __source: { - fileName: _jsxFileName, - lineNumber: 21 - } - }, "DatePickerIOS is not supported on this platform!")); - } - }]); - - _inherits(DummyDatePickerIOS, _React$Component); - - return DummyDatePickerIOS; - }(React.Component); - - DummyDatePickerIOS = _wrapComponent("DummyDatePickerIOS")(DummyDatePickerIOS); - var styles = StyleSheet.create({ - dummyDatePickerIOS: { - height: 100, - width: 300, - backgroundColor: '#ffbcbc', - borderWidth: 1, - borderColor: 'red', - alignItems: 'center', - justifyContent: 'center', - margin: 10 - }, - datePickerText: { - color: '#333333', - margin: 20 - } - }); - module.exports = DummyDatePickerIOS; -},10,[122,161,121,83,39,48],"node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var ColorPropType = _$$_REQUIRE(_dependencyMap[0], 'ColorPropType'); - - var NativeMethodsMixin = _$$_REQUIRE(_dependencyMap[1], 'NativeMethodsMixin'); - - var Platform = _$$_REQUIRE(_dependencyMap[2], 'Platform'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[4], 'prop-types'); - - var ReactNative = _$$_REQUIRE(_dependencyMap[5], 'ReactNative'); - - var StatusBar = _$$_REQUIRE(_dependencyMap[6], 'StatusBar'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[7], 'StyleSheet'); - - var UIManager = _$$_REQUIRE(_dependencyMap[8], 'UIManager'); - - var View = _$$_REQUIRE(_dependencyMap[9], 'View'); - - var ViewPropTypes = _$$_REQUIRE(_dependencyMap[10], 'ViewPropTypes'); - - var DrawerConsts = UIManager.AndroidDrawerLayout.Constants; - - var createReactClass = _$$_REQUIRE(_dependencyMap[11], 'create-react-class'); - - var dismissKeyboard = _$$_REQUIRE(_dependencyMap[12], 'dismissKeyboard'); - - var requireNativeComponent = _$$_REQUIRE(_dependencyMap[13], 'requireNativeComponent'); - - var RK_DRAWER_REF = 'drawerlayout'; - var INNERVIEW_REF = 'innerView'; - var DRAWER_STATES = ['Idle', 'Dragging', 'Settling']; - var DrawerLayoutAndroid = createReactClass({ - displayName: 'DrawerLayoutAndroid', - statics: { - positions: DrawerConsts.DrawerPosition - }, - propTypes: _objectSpread({}, ViewPropTypes, { - keyboardDismissMode: PropTypes.oneOf(['none', 'on-drag']), - drawerBackgroundColor: ColorPropType, - drawerPosition: PropTypes.oneOf([DrawerConsts.DrawerPosition.Left, DrawerConsts.DrawerPosition.Right]), - drawerWidth: PropTypes.number, - drawerLockMode: PropTypes.oneOf(['unlocked', 'locked-closed', 'locked-open']), - onDrawerSlide: PropTypes.func, - onDrawerStateChanged: PropTypes.func, - onDrawerOpen: PropTypes.func, - onDrawerClose: PropTypes.func, - renderNavigationView: PropTypes.func.isRequired, - statusBarBackgroundColor: ColorPropType - }), - mixins: [NativeMethodsMixin], - getDefaultProps: function getDefaultProps() { - return { - drawerBackgroundColor: 'white' - }; - }, - getInitialState: function getInitialState() { - return { - statusBarBackgroundColor: undefined - }; - }, - getInnerViewNode: function getInnerViewNode() { - return this.refs[INNERVIEW_REF].getInnerViewNode(); - }, - render: function render() { - var drawStatusBar = Platform.Version >= 21 && this.props.statusBarBackgroundColor; - var drawerViewWrapper = React.createElement(View, { - style: [styles.drawerSubview, { - width: this.props.drawerWidth, - backgroundColor: this.props.drawerBackgroundColor - }], - collapsable: false, - __source: { - fileName: _jsxFileName, - lineNumber: 172 - } - }, this.props.renderNavigationView(), drawStatusBar && React.createElement(View, { - style: styles.drawerStatusBar, - __source: { - fileName: _jsxFileName, - lineNumber: 182 - } - })); - var childrenWrapper = React.createElement(View, { - ref: INNERVIEW_REF, - style: styles.mainSubview, - collapsable: false, - __source: { - fileName: _jsxFileName, - lineNumber: 186 - } - }, drawStatusBar && React.createElement(StatusBar, { - translucent: true, - backgroundColor: this.props.statusBarBackgroundColor, - __source: { - fileName: _jsxFileName, - lineNumber: 188 - } - }), drawStatusBar && React.createElement(View, { - style: [styles.statusBar, { - backgroundColor: this.props.statusBarBackgroundColor - }], - __source: { - fileName: _jsxFileName, - lineNumber: 194 - } - }), this.props.children); - return React.createElement(AndroidDrawerLayout, _extends({}, this.props, { - ref: RK_DRAWER_REF, - drawerWidth: this.props.drawerWidth, - drawerPosition: this.props.drawerPosition, - drawerLockMode: this.props.drawerLockMode, - style: [styles.base, this.props.style], - onDrawerSlide: this._onDrawerSlide, - onDrawerOpen: this._onDrawerOpen, - onDrawerClose: this._onDrawerClose, - onDrawerStateChanged: this._onDrawerStateChanged, - __source: { - fileName: _jsxFileName, - lineNumber: 205 - } - }), childrenWrapper, drawerViewWrapper); - }, - _onDrawerSlide: function _onDrawerSlide(event) { - if (this.props.onDrawerSlide) { - this.props.onDrawerSlide(event); - } - - if (this.props.keyboardDismissMode === 'on-drag') { - dismissKeyboard(); - } - }, - _onDrawerOpen: function _onDrawerOpen() { - if (this.props.onDrawerOpen) { - this.props.onDrawerOpen(); - } - }, - _onDrawerClose: function _onDrawerClose() { - if (this.props.onDrawerClose) { - this.props.onDrawerClose(); - } - }, - _onDrawerStateChanged: function _onDrawerStateChanged(event) { - if (this.props.onDrawerStateChanged) { - this.props.onDrawerStateChanged(DRAWER_STATES[event.nativeEvent.drawerState]); - } - }, - openDrawer: function openDrawer() { - UIManager.dispatchViewManagerCommand(this._getDrawerLayoutHandle(), UIManager.AndroidDrawerLayout.Commands.openDrawer, null); - }, - closeDrawer: function closeDrawer() { - UIManager.dispatchViewManagerCommand(this._getDrawerLayoutHandle(), UIManager.AndroidDrawerLayout.Commands.closeDrawer, null); - }, - _getDrawerLayoutHandle: function _getDrawerLayoutHandle() { - return ReactNative.findNodeHandle(this.refs[RK_DRAWER_REF]); - } - }); - var styles = StyleSheet.create({ - base: { - flex: 1, - elevation: 16 - }, - mainSubview: { - position: 'absolute', - top: 0, - left: 0, - right: 0, - bottom: 0 - }, - drawerSubview: { - position: 'absolute', - top: 0, - bottom: 0 - }, - statusBar: { - height: StatusBar.currentHeight - }, - drawerStatusBar: { - position: 'absolute', - top: 0, - left: 0, - right: 0, - height: StatusBar.currentHeight, - backgroundColor: 'rgba(0, 0, 0, 0.251)' - } - }); - var AndroidDrawerLayout = requireNativeComponent('AndroidDrawerLayout'); - module.exports = DrawerLayoutAndroid; -},11,[98,406,94,121,143,67,35,83,87,48,101,402,436,96],"node_modules/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - var _components = { - StatusBar: { - displayName: "StatusBar" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); - - var ColorPropType = _$$_REQUIRE(_dependencyMap[4], 'ColorPropType'); - - var Platform = _$$_REQUIRE(_dependencyMap[5], 'Platform'); - - var processColor = _$$_REQUIRE(_dependencyMap[6], 'processColor'); - - var StatusBarManager = _$$_REQUIRE(_dependencyMap[7], 'NativeModules').StatusBarManager; - - function mergePropsStack(propsStack, defaultValues) { - return propsStack.reduce(function (prev, cur) { - for (var prop in cur) { - if (cur[prop] != null) { - prev[prop] = cur[prop]; - } - } - - return prev; - }, _extends({}, defaultValues)); - } - - function createStackEntry(props) { - return { - backgroundColor: props.backgroundColor != null ? { - value: props.backgroundColor, - animated: props.animated - } : null, - barStyle: props.barStyle != null ? { - value: props.barStyle, - animated: props.animated - } : null, - translucent: props.translucent, - hidden: props.hidden != null ? { - value: props.hidden, - animated: props.animated, - transition: props.showHideTransition - } : null, - networkActivityIndicatorVisible: props.networkActivityIndicatorVisible - }; - } - - var StatusBar = function (_React$Component) { - function StatusBar() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, StatusBar); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(StatusBar)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._stackEntry = null, _this._updatePropsStack = function () { - clearImmediate(StatusBar._updateImmediate); - StatusBar._updateImmediate = setImmediate(function () { - var oldProps = StatusBar._currentValues; - var mergedProps = mergePropsStack(StatusBar._propsStack, StatusBar._defaultProps); - - if (Platform.OS === 'ios') { - if (!oldProps || oldProps.barStyle.value !== mergedProps.barStyle.value) { - StatusBarManager.setStyle(mergedProps.barStyle.value, mergedProps.barStyle.animated); - } - - if (!oldProps || oldProps.hidden.value !== mergedProps.hidden.value) { - StatusBarManager.setHidden(mergedProps.hidden.value, mergedProps.hidden.animated ? mergedProps.hidden.transition : 'none'); - } - - if (!oldProps || oldProps.networkActivityIndicatorVisible !== mergedProps.networkActivityIndicatorVisible) { - StatusBarManager.setNetworkActivityIndicatorVisible(mergedProps.networkActivityIndicatorVisible); - } - } else if (Platform.OS === 'android') { - if (!oldProps || oldProps.barStyle.value !== mergedProps.barStyle.value) { - StatusBarManager.setStyle(mergedProps.barStyle.value); - } - - if (!oldProps || oldProps.backgroundColor.value !== mergedProps.backgroundColor.value) { - StatusBarManager.setColor(processColor(mergedProps.backgroundColor.value), mergedProps.backgroundColor.animated); - } - - if (!oldProps || oldProps.hidden.value !== mergedProps.hidden.value) { - StatusBarManager.setHidden(mergedProps.hidden.value); - } - - if (!oldProps || oldProps.translucent !== mergedProps.translucent) { - StatusBarManager.setTranslucent(mergedProps.translucent); - } - } - - StatusBar._currentValues = mergedProps; - }); - }, _temp)); - } - - _createClass(StatusBar, [{ - key: "componentDidMount", - value: function componentDidMount() { - this._stackEntry = createStackEntry(this.props); - - StatusBar._propsStack.push(this._stackEntry); - - this._updatePropsStack(); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - var index = StatusBar._propsStack.indexOf(this._stackEntry); - - StatusBar._propsStack.splice(index, 1); - - this._updatePropsStack(); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - var index = StatusBar._propsStack.indexOf(this._stackEntry); - - this._stackEntry = createStackEntry(this.props); - StatusBar._propsStack[index] = this._stackEntry; - - this._updatePropsStack(); - } - }, { - key: "render", - value: function render() { - return null; - } - }], [{ - key: "setHidden", - value: function setHidden(hidden, animation) { - animation = animation || 'none'; - StatusBar._defaultProps.hidden.value = hidden; - - if (Platform.OS === 'ios') { - StatusBarManager.setHidden(hidden, animation); - } else if (Platform.OS === 'android') { - StatusBarManager.setHidden(hidden); - } - } - }, { - key: "setBarStyle", - value: function setBarStyle(style, animated) { - animated = animated || false; - StatusBar._defaultProps.barStyle.value = style; - - if (Platform.OS === 'ios') { - StatusBarManager.setStyle(style, animated); - } else if (Platform.OS === 'android') { - StatusBarManager.setStyle(style); - } - } - }, { - key: "setNetworkActivityIndicatorVisible", - value: function setNetworkActivityIndicatorVisible(visible) { - if (Platform.OS !== 'ios') { - console.warn('`setNetworkActivityIndicatorVisible` is only available on iOS'); - return; - } - - StatusBar._defaultProps.networkActivityIndicatorVisible = visible; - StatusBarManager.setNetworkActivityIndicatorVisible(visible); - } - }, { - key: "setBackgroundColor", - value: function setBackgroundColor(color, animated) { - if (Platform.OS !== 'android') { - console.warn('`setBackgroundColor` is only available on Android'); - return; - } - - animated = animated || false; - StatusBar._defaultProps.backgroundColor.value = color; - StatusBarManager.setColor(processColor(color), animated); - } - }, { - key: "setTranslucent", - value: function setTranslucent(translucent) { - if (Platform.OS !== 'android') { - console.warn('`setTranslucent` is only available on Android'); - return; - } - - StatusBar._defaultProps.translucent = translucent; - StatusBarManager.setTranslucent(translucent); - } - }]); - - _inherits(StatusBar, _React$Component); - - return StatusBar; - }(React.Component); - - StatusBar._propsStack = []; - StatusBar._defaultProps = createStackEntry({ - animated: false, - showHideTransition: 'fade', - backgroundColor: 'black', - barStyle: 'default', - translucent: false, - hidden: false, - networkActivityIndicatorVisible: false - }); - StatusBar._updateImmediate = null; - StatusBar._currentValues = null; - StatusBar.currentHeight = StatusBarManager.HEIGHT; - StatusBar.propTypes = { - hidden: PropTypes.bool, - animated: PropTypes.bool, - backgroundColor: ColorPropType, - translucent: PropTypes.bool, - barStyle: PropTypes.oneOf(['default', 'light-content', 'dark-content']), - networkActivityIndicatorVisible: PropTypes.bool, - showHideTransition: PropTypes.oneOf(['fade', 'slide']) - }; - StatusBar.defaultProps = { - animated: false, - showHideTransition: 'fade' - }; - StatusBar = _wrapComponent("StatusBar")(StatusBar); - module.exports = StatusBar; -},35,[122,161,121,143,98,94,95,93],"node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Lists/FlatList.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var _components = { - FlatList: { - displayName: "FlatList" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Lists/FlatList.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var MetroListView = _$$_REQUIRE(_dependencyMap[2], 'MetroListView'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var View = _$$_REQUIRE(_dependencyMap[4], 'View'); - - var VirtualizedList = _$$_REQUIRE(_dependencyMap[5], 'VirtualizedList'); - - var ListView = _$$_REQUIRE(_dependencyMap[6], 'ListView'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[7], 'StyleSheet'); - - var invariant = _$$_REQUIRE(_dependencyMap[8], 'fbjs/lib/invariant'); - - var defaultProps = _objectSpread({}, VirtualizedList.defaultProps, { - numColumns: 1 - }); - - var FlatList = function (_React$PureComponent) { - _createClass(FlatList, [{ - key: "scrollToEnd", - value: function scrollToEnd(params) { - if (this._listRef) { - this._listRef.scrollToEnd(params); - } - } - }, { - key: "scrollToIndex", - value: function scrollToIndex(params) { - if (this._listRef) { - this._listRef.scrollToIndex(params); - } - } - }, { - key: "scrollToItem", - value: function scrollToItem(params) { - if (this._listRef) { - this._listRef.scrollToItem(params); - } - } - }, { - key: "scrollToOffset", - value: function scrollToOffset(params) { - if (this._listRef) { - this._listRef.scrollToOffset(params); - } - } - }, { - key: "recordInteraction", - value: function recordInteraction() { - if (this._listRef) { - this._listRef.recordInteraction(); - } - } - }, { - key: "flashScrollIndicators", - value: function flashScrollIndicators() { - if (this._listRef) { - this._listRef.flashScrollIndicators(); - } - } - }, { - key: "getScrollResponder", - value: function getScrollResponder() { - if (this._listRef) { - return this._listRef.getScrollResponder(); - } - } - }, { - key: "getScrollableNode", - value: function getScrollableNode() { - if (this._listRef) { - return this._listRef.getScrollableNode(); - } - } - }, { - key: "setNativeProps", - value: function setNativeProps(props) { - if (this._listRef) { - this._listRef.setNativeProps(props); - } - } - }]); - - function FlatList(props) { - var _this; - - _classCallCheck(this, FlatList); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(FlatList).call(this, props)); - _this._hasWarnedLegacy = false; - _this._virtualizedListPairs = []; - - _this._captureRef = function (ref) { - _this._listRef = ref; - }; - - _this._getItem = function (data, index) { - var numColumns = _this.props.numColumns; - - if (numColumns > 1) { - var ret = []; - - for (var kk = 0; kk < numColumns; kk++) { - var _item = data[index * numColumns + kk]; - - if (_item != null) { - ret.push(_item); - } - } - - return ret; - } else { - return data[index]; - } - }; - - _this._getItemCount = function (data) { - return data ? Math.ceil(data.length / _this.props.numColumns) : 0; - }; - - _this._keyExtractor = function (items, index) { - var _this$props = _this.props, - keyExtractor = _this$props.keyExtractor, - numColumns = _this$props.numColumns; - - if (numColumns > 1) { - invariant(Array.isArray(items), 'FlatList: Encountered internal consistency error, expected each item to consist of an ' + 'array with 1-%s columns; instead, received a single item.', numColumns); - return items.map(function (it, kk) { - return keyExtractor(it, index * numColumns + kk); - }).join(':'); - } else { - return keyExtractor(items, index); - } - }; - - _this._renderItem = function (info) { - var _this$props2 = _this.props, - renderItem = _this$props2.renderItem, - numColumns = _this$props2.numColumns, - columnWrapperStyle = _this$props2.columnWrapperStyle; - - if (numColumns > 1) { - var _item2 = info.item, - _index = info.index; - invariant(Array.isArray(_item2), 'Expected array of items with numColumns > 1'); - return React.createElement(View, { - style: StyleSheet.compose(styles.row, columnWrapperStyle), - __source: { - fileName: _jsxFileName, - lineNumber: 617 - } - }, _item2.map(function (it, kk) { - var element = renderItem({ - item: it, - index: _index * numColumns + kk, - separators: info.separators - }); - return element && React.cloneElement(element, { - key: kk - }); - })); - } else { - return renderItem(info); - } - }; - - _this._checkProps(_this.props); - - if (_this.props.viewabilityConfigCallbackPairs) { - _this._virtualizedListPairs = _this.props.viewabilityConfigCallbackPairs.map(function (pair) { - return { - viewabilityConfig: pair.viewabilityConfig, - onViewableItemsChanged: _this._createOnViewableItemsChanged(pair.onViewableItemsChanged) - }; - }); - } else if (_this.props.onViewableItemsChanged) { - _this._virtualizedListPairs.push({ - viewabilityConfig: _this.props.viewabilityConfig, - onViewableItemsChanged: _this._createOnViewableItemsChanged(_this.props.onViewableItemsChanged) - }); - } - - return _this; - } - - _createClass(FlatList, [{ - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - invariant(prevProps.numColumns === this.props.numColumns, 'Changing numColumns on the fly is not supported. Change the key prop on FlatList when ' + 'changing the number of columns to force a fresh render of the component.'); - invariant(prevProps.onViewableItemsChanged === this.props.onViewableItemsChanged, 'Changing onViewableItemsChanged on the fly is not supported'); - invariant(prevProps.viewabilityConfig === this.props.viewabilityConfig, 'Changing viewabilityConfig on the fly is not supported'); - invariant(prevProps.viewabilityConfigCallbackPairs === this.props.viewabilityConfigCallbackPairs, 'Changing viewabilityConfigCallbackPairs on the fly is not supported'); - - this._checkProps(this.props); - } - }, { - key: "_checkProps", - value: function _checkProps(props) { - var getItem = props.getItem, - getItemCount = props.getItemCount, - horizontal = props.horizontal, - legacyImplementation = props.legacyImplementation, - numColumns = props.numColumns, - columnWrapperStyle = props.columnWrapperStyle, - onViewableItemsChanged = props.onViewableItemsChanged, - viewabilityConfigCallbackPairs = props.viewabilityConfigCallbackPairs; - invariant(!getItem && !getItemCount, 'FlatList does not support custom data formats.'); - - if (numColumns > 1) { - invariant(!horizontal, 'numColumns does not support horizontal.'); - } else { - invariant(!columnWrapperStyle, 'columnWrapperStyle not supported for single column lists'); - } - - if (legacyImplementation) { - invariant(numColumns === 1, 'Legacy list does not support multiple columns.'); - - if (!this._hasWarnedLegacy) { - console.warn('FlatList: Using legacyImplementation - some features not supported and performance ' + 'may suffer'); - this._hasWarnedLegacy = true; - } - } - - invariant(!(onViewableItemsChanged && viewabilityConfigCallbackPairs), 'FlatList does not support setting both onViewableItemsChanged and ' + 'viewabilityConfigCallbackPairs.'); - } - }, { - key: "_pushMultiColumnViewable", - value: function _pushMultiColumnViewable(arr, v) { - var _this$props3 = this.props, - numColumns = _this$props3.numColumns, - keyExtractor = _this$props3.keyExtractor; - v.item.forEach(function (item, ii) { - invariant(v.index != null, 'Missing index!'); - var index = v.index * numColumns + ii; - arr.push(_objectSpread({}, v, { - item: item, - key: keyExtractor(item, index), - index: index - })); - }); - } - }, { - key: "_createOnViewableItemsChanged", - value: function _createOnViewableItemsChanged(onViewableItemsChanged) { - var _this2 = this; - - return function (info) { - var numColumns = _this2.props.numColumns; - - if (onViewableItemsChanged) { - if (numColumns > 1) { - var _changed = []; - var _viewableItems = []; - info.viewableItems.forEach(function (v) { - return _this2._pushMultiColumnViewable(_viewableItems, v); - }); - info.changed.forEach(function (v) { - return _this2._pushMultiColumnViewable(_changed, v); - }); - onViewableItemsChanged({ - viewableItems: _viewableItems, - changed: _changed - }); - } else { - onViewableItemsChanged(info); - } - } - }; - } - }, { - key: "render", - value: function render() { - if (this.props.legacyImplementation) { - return React.createElement(MetroListView, _extends({}, this.props, { - items: this.props.data, - ref: this._captureRef, - __source: { - fileName: _jsxFileName, - lineNumber: 643 - } - })); - } else { - return React.createElement(VirtualizedList, _extends({}, this.props, { - renderItem: this._renderItem, - getItem: this._getItem, - getItemCount: this._getItemCount, - keyExtractor: this._keyExtractor, - ref: this._captureRef, - viewabilityConfigCallbackPairs: this._virtualizedListPairs, - __source: { - fileName: _jsxFileName, - lineNumber: 654 - } - })); - } - } - }]); - - _inherits(FlatList, _React$PureComponent); - - return FlatList; - }(React.PureComponent); - - FlatList.defaultProps = defaultProps; - FlatList = _wrapComponent("FlatList")(FlatList); - var styles = StyleSheet.create({ - row: { - flexDirection: 'row' - } - }); - module.exports = FlatList; -},12,[122,161,440,121,48,50,19,83,4],"node_modules/react-native/Libraries/Lists/FlatList.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Lists/MetroListView.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - MetroListView: { - displayName: "MetroListView" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Lists/MetroListView.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var ListView = _$$_REQUIRE(_dependencyMap[2], 'ListView'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var RefreshControl = _$$_REQUIRE(_dependencyMap[4], 'RefreshControl'); - - var ScrollView = _$$_REQUIRE(_dependencyMap[5], 'ScrollView'); - - var invariant = _$$_REQUIRE(_dependencyMap[6], 'fbjs/lib/invariant'); - - var MetroListView = function (_React$Component) { - function MetroListView() { - var _getPrototypeOf2, - _this2 = this; - - var _temp, _this; - - _classCallCheck(this, MetroListView); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(MetroListView)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = _this._computeState(_this.props, { - ds: new ListView.DataSource({ - rowHasChanged: function rowHasChanged(itemA, itemB) { - return true; - }, - sectionHeaderHasChanged: function sectionHeaderHasChanged() { - return true; - }, - getSectionHeaderData: function getSectionHeaderData(dataBlob, sectionID) { - return _this.state.sectionHeaderData[sectionID]; - } - }), - sectionHeaderData: {} - }), _this._captureRef = function (ref) { - _this._listRef = ref; - }, _this._renderFooter = function () { - return React.createElement(_this2.props.FooterComponent, { - key: "$footer", - __source: { - fileName: _jsxFileName, - lineNumber: 183 - } - }); - }, _this._renderRow = function (item, sectionID, rowID, highlightRow) { - return _this.props.renderItem({ - item: item, - index: rowID - }); - }, _this._renderSectionHeader = function (section, sectionID) { - var renderSectionHeader = _this.props.renderSectionHeader; - invariant(renderSectionHeader, 'Must provide renderSectionHeader with sections prop'); - return renderSectionHeader({ - section: section - }); - }, _this._renderSeparator = function (sID, rID) { - return React.createElement(_this2.props.SeparatorComponent, { - key: sID + rID, - __source: { - fileName: _jsxFileName, - lineNumber: 199 - } - }); - }, _temp)); - } - - _createClass(MetroListView, [{ - key: "scrollToEnd", - value: function scrollToEnd(params) { - throw new Error('scrollToEnd not supported in legacy ListView.'); - } - }, { - key: "scrollToIndex", - value: function scrollToIndex(params) { - throw new Error('scrollToIndex not supported in legacy ListView.'); - } - }, { - key: "scrollToItem", - value: function scrollToItem(params) { - throw new Error('scrollToItem not supported in legacy ListView.'); - } - }, { - key: "scrollToLocation", - value: function scrollToLocation(params) { - throw new Error('scrollToLocation not supported in legacy ListView.'); - } - }, { - key: "scrollToOffset", - value: function scrollToOffset(params) { - var animated = params.animated, - offset = params.offset; - - this._listRef.scrollTo(this.props.horizontal ? { - x: offset, - animated: animated - } : { - y: offset, - animated: animated - }); - } - }, { - key: "getListRef", - value: function getListRef() { - return this._listRef; - } - }, { - key: "setNativeProps", - value: function setNativeProps(props) { - if (this._listRef) { - this._listRef.setNativeProps(props); - } - } - }, { - key: "UNSAFE_componentWillReceiveProps", - value: function UNSAFE_componentWillReceiveProps(newProps) { - var _this3 = this; - - this.setState(function (state) { - return _this3._computeState(newProps, state); - }); - } - }, { - key: "render", - value: function render() { - return React.createElement(ListView, _extends({}, this.props, { - dataSource: this.state.ds, - ref: this._captureRef, - renderRow: this._renderRow, - renderFooter: this.props.FooterComponent && this._renderFooter, - renderSectionHeader: this.props.sections && this._renderSectionHeader, - renderSeparator: this.props.SeparatorComponent && this._renderSeparator, - __source: { - fileName: _jsxFileName, - lineNumber: 142 - } - })); - } - }, { - key: "_computeState", - value: function _computeState(props, state) { - var sectionHeaderData = {}; - - if (props.sections) { - invariant(!props.items, 'Cannot have both sections and items props.'); - var _sections = {}; - props.sections.forEach(function (sectionIn, ii) { - var sectionID = 's' + ii; - _sections[sectionID] = sectionIn.data; - sectionHeaderData[sectionID] = sectionIn; - }); - return { - ds: state.ds.cloneWithRowsAndSections(_sections), - sectionHeaderData: sectionHeaderData - }; - } else { - invariant(!props.sections, 'Cannot have both sections and items props.'); - return { - ds: state.ds.cloneWithRows(props.items), - sectionHeaderData: sectionHeaderData - }; - } - } - }]); - - _inherits(MetroListView, _React$Component); - - return MetroListView; - }(React.Component); - - MetroListView.defaultProps = { - keyExtractor: function keyExtractor(item, index) { - return item.key || String(index); - }, - renderScrollComponent: function renderScrollComponent(props) { - if (props.onRefresh) { - return React.createElement(ScrollView, _extends({}, props, { - refreshControl: React.createElement(RefreshControl, { - refreshing: props.refreshing, - onRefresh: props.onRefresh, - __source: { - fileName: _jsxFileName, - lineNumber: 114 - } - }), - __source: { - fileName: _jsxFileName, - lineNumber: 107 - } - })); - } else { - return React.createElement(ScrollView, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 123 - } - })); - } - } - }; - MetroListView = _wrapComponent("MetroListView")(MetroListView); - module.exports = MetroListView; -},440,[122,161,19,121,34,28,4],"node_modules/react-native/Libraries/Lists/MetroListView.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Lists/ListView/ListView.js"; - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var InternalListViewType = _$$_REQUIRE(_dependencyMap[0], 'InternalListViewType'); - - var ListViewDataSource = _$$_REQUIRE(_dependencyMap[1], 'ListViewDataSource'); - - var Platform = _$$_REQUIRE(_dependencyMap[2], 'Platform'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[4], 'prop-types'); - - var ReactNative = _$$_REQUIRE(_dependencyMap[5], 'ReactNative'); - - var RCTScrollViewManager = _$$_REQUIRE(_dependencyMap[6], 'NativeModules').ScrollViewManager; - - var ScrollView = _$$_REQUIRE(_dependencyMap[7], 'ScrollView'); - - var ScrollResponder = _$$_REQUIRE(_dependencyMap[8], 'ScrollResponder'); - - var StaticRenderer = _$$_REQUIRE(_dependencyMap[9], 'StaticRenderer'); - - var TimerMixin = _$$_REQUIRE(_dependencyMap[10], 'react-timer-mixin'); - - var View = _$$_REQUIRE(_dependencyMap[11], 'View'); - - var cloneReferencedElement = _$$_REQUIRE(_dependencyMap[12], 'react-clone-referenced-element'); - - var createReactClass = _$$_REQUIRE(_dependencyMap[13], 'create-react-class'); - - var isEmpty = _$$_REQUIRE(_dependencyMap[14], 'isEmpty'); - - var merge = _$$_REQUIRE(_dependencyMap[15], 'merge'); - - var DEFAULT_PAGE_SIZE = 1; - var DEFAULT_INITIAL_ROWS = 10; - var DEFAULT_SCROLL_RENDER_AHEAD = 1000; - var DEFAULT_END_REACHED_THRESHOLD = 1000; - var DEFAULT_SCROLL_CALLBACK_THROTTLE = 50; - var ListView = createReactClass({ - displayName: 'ListView', - _childFrames: [], - _sentEndForContentLength: null, - _scrollComponent: null, - _prevRenderedRowsCount: 0, - _visibleRows: {}, - scrollProperties: {}, - mixins: [ScrollResponder.Mixin, TimerMixin], - statics: { - DataSource: ListViewDataSource - }, - propTypes: _objectSpread({}, ScrollView.propTypes, { - dataSource: PropTypes.instanceOf(ListViewDataSource).isRequired, - renderSeparator: PropTypes.func, - renderRow: PropTypes.func.isRequired, - initialListSize: PropTypes.number.isRequired, - onEndReached: PropTypes.func, - onEndReachedThreshold: PropTypes.number.isRequired, - pageSize: PropTypes.number.isRequired, - renderFooter: PropTypes.func, - renderHeader: PropTypes.func, - renderSectionHeader: PropTypes.func, - renderScrollComponent: PropTypes.func.isRequired, - scrollRenderAheadDistance: PropTypes.number.isRequired, - onChangeVisibleRows: PropTypes.func, - removeClippedSubviews: PropTypes.bool, - stickySectionHeadersEnabled: PropTypes.bool, - stickyHeaderIndices: PropTypes.arrayOf(PropTypes.number).isRequired, - enableEmptySections: PropTypes.bool - }), - getMetrics: function getMetrics() { - return { - contentLength: this.scrollProperties.contentLength, - totalRows: this.props.enableEmptySections ? this.props.dataSource.getRowAndSectionCount() : this.props.dataSource.getRowCount(), - renderedRows: this.state.curRenderedRowsCount, - visibleRows: Object.keys(this._visibleRows).length - }; - }, - getScrollResponder: function getScrollResponder() { - if (this._scrollComponent && this._scrollComponent.getScrollResponder) { - return this._scrollComponent.getScrollResponder(); - } - }, - getScrollableNode: function getScrollableNode() { - if (this._scrollComponent && this._scrollComponent.getScrollableNode) { - return this._scrollComponent.getScrollableNode(); - } else { - return ReactNative.findNodeHandle(this._scrollComponent); - } - }, - scrollTo: function scrollTo() { - if (this._scrollComponent && this._scrollComponent.scrollTo) { - var _this$_scrollComponen; - - (_this$_scrollComponen = this._scrollComponent).scrollTo.apply(_this$_scrollComponen, arguments); - } - }, - scrollToEnd: function scrollToEnd(options) { - if (this._scrollComponent) { - if (this._scrollComponent.scrollToEnd) { - this._scrollComponent.scrollToEnd(options); - } else { - console.warn('The scroll component used by the ListView does not support ' + 'scrollToEnd. Check the renderScrollComponent prop of your ListView.'); - } - } - }, - flashScrollIndicators: function flashScrollIndicators() { - if (this._scrollComponent && this._scrollComponent.flashScrollIndicators) { - this._scrollComponent.flashScrollIndicators(); - } - }, - setNativeProps: function setNativeProps(props) { - if (this._scrollComponent) { - this._scrollComponent.setNativeProps(props); - } - }, - getDefaultProps: function getDefaultProps() { - return { - initialListSize: DEFAULT_INITIAL_ROWS, - pageSize: DEFAULT_PAGE_SIZE, - renderScrollComponent: function renderScrollComponent(props) { - return React.createElement(ScrollView, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 353 - } - })); - }, - scrollRenderAheadDistance: DEFAULT_SCROLL_RENDER_AHEAD, - onEndReachedThreshold: DEFAULT_END_REACHED_THRESHOLD, - stickySectionHeadersEnabled: Platform.OS === 'ios', - stickyHeaderIndices: [] - }; - }, - getInitialState: function getInitialState() { - return { - curRenderedRowsCount: this.props.initialListSize, - highlightedRow: {} - }; - }, - getInnerViewNode: function getInnerViewNode() { - return this._scrollComponent.getInnerViewNode(); - }, - UNSAFE_componentWillMount: function UNSAFE_componentWillMount() { - this.scrollProperties = { - visibleLength: null, - contentLength: null, - offset: 0 - }; - this._childFrames = []; - this._visibleRows = {}; - this._prevRenderedRowsCount = 0; - this._sentEndForContentLength = null; - }, - componentDidMount: function componentDidMount() { - var _this = this; - - this.requestAnimationFrame(function () { - _this._measureAndUpdateScrollProps(); - }); - }, - UNSAFE_componentWillReceiveProps: function UNSAFE_componentWillReceiveProps(nextProps) { - var _this2 = this; - - if (this.props.dataSource !== nextProps.dataSource || this.props.initialListSize !== nextProps.initialListSize) { - this.setState(function (state, props) { - _this2._prevRenderedRowsCount = 0; - return { - curRenderedRowsCount: Math.min(Math.max(state.curRenderedRowsCount, props.initialListSize), props.enableEmptySections ? props.dataSource.getRowAndSectionCount() : props.dataSource.getRowCount()) - }; - }, function () { - return _this2._renderMoreRowsIfNeeded(); - }); - } - }, - componentDidUpdate: function componentDidUpdate() { - var _this3 = this; - - this.requestAnimationFrame(function () { - _this3._measureAndUpdateScrollProps(); - }); - }, - _onRowHighlighted: function _onRowHighlighted(sectionID, rowID) { - this.setState({ - highlightedRow: { - sectionID: sectionID, - rowID: rowID - } - }); - }, - render: function render() { - var bodyComponents = []; - var dataSource = this.props.dataSource; - var allRowIDs = dataSource.rowIdentities; - var rowCount = 0; - var stickySectionHeaderIndices = []; - var renderSectionHeader = this.props.renderSectionHeader; - var header = this.props.renderHeader && this.props.renderHeader(); - var footer = this.props.renderFooter && this.props.renderFooter(); - var totalIndex = header ? 1 : 0; - - for (var sectionIdx = 0; sectionIdx < allRowIDs.length; sectionIdx++) { - var sectionID = dataSource.sectionIdentities[sectionIdx]; - var rowIDs = allRowIDs[sectionIdx]; - - if (rowIDs.length === 0) { - if (this.props.enableEmptySections === undefined) { - var warning = _$$_REQUIRE(_dependencyMap[16], 'fbjs/lib/warning'); - - warning(false, 'In next release empty section headers will be rendered.' + " In this release you can use 'enableEmptySections' flag to render empty section headers."); - continue; - } else { - var invariant = _$$_REQUIRE(_dependencyMap[17], 'fbjs/lib/invariant'); - - invariant(this.props.enableEmptySections, "In next release 'enableEmptySections' flag will be deprecated, empty section headers will always be rendered." + ' If empty section headers are not desirable their indices should be excluded from sectionIDs object.' + " In this release 'enableEmptySections' may only have value 'true' to allow empty section headers rendering."); - } - } - - if (renderSectionHeader) { - var element = renderSectionHeader(dataSource.getSectionHeaderData(sectionIdx), sectionID); - - if (element) { - bodyComponents.push(React.cloneElement(element, { - key: 's_' + sectionID - })); - - if (this.props.stickySectionHeadersEnabled) { - stickySectionHeaderIndices.push(totalIndex); - } - - totalIndex++; - } - } - - for (var rowIdx = 0; rowIdx < rowIDs.length; rowIdx++) { - var rowID = rowIDs[rowIdx]; - var comboID = sectionID + '_' + rowID; - var shouldUpdateRow = rowCount >= this._prevRenderedRowsCount && dataSource.rowShouldUpdate(sectionIdx, rowIdx); - var row = React.createElement(StaticRenderer, { - key: 'r_' + comboID, - shouldUpdate: !!shouldUpdateRow, - render: this.props.renderRow.bind(null, dataSource.getRowData(sectionIdx, rowIdx), sectionID, rowID, this._onRowHighlighted), - __source: { - fileName: _jsxFileName, - lineNumber: 485 - } - }); - bodyComponents.push(row); - totalIndex++; - - if (this.props.renderSeparator && (rowIdx !== rowIDs.length - 1 || sectionIdx === allRowIDs.length - 1)) { - var adjacentRowHighlighted = this.state.highlightedRow.sectionID === sectionID && (this.state.highlightedRow.rowID === rowID || this.state.highlightedRow.rowID === rowIDs[rowIdx + 1]); - var separator = this.props.renderSeparator(sectionID, rowID, adjacentRowHighlighted); - - if (separator) { - bodyComponents.push(React.createElement(View, { - key: 's_' + comboID, - __source: { - fileName: _jsxFileName, - lineNumber: 514 - } - }, separator)); - totalIndex++; - } - } - - if (++rowCount === this.state.curRenderedRowsCount) { - break; - } - } - - if (rowCount >= this.state.curRenderedRowsCount) { - break; - } - } - - var _this$props = this.props, - renderScrollComponent = _this$props.renderScrollComponent, - props = _objectWithoutProperties(_this$props, ["renderScrollComponent"]); - - if (!props.scrollEventThrottle) { - props.scrollEventThrottle = DEFAULT_SCROLL_CALLBACK_THROTTLE; - } - - if (props.removeClippedSubviews === undefined) { - props.removeClippedSubviews = true; - } - - _extends(props, { - onScroll: this._onScroll, - stickyHeaderIndices: this.props.stickyHeaderIndices.concat(stickySectionHeaderIndices), - onKeyboardWillShow: undefined, - onKeyboardWillHide: undefined, - onKeyboardDidShow: undefined, - onKeyboardDidHide: undefined - }); - - return cloneReferencedElement(renderScrollComponent(props), { - ref: this._setScrollComponentRef, - onContentSizeChange: this._onContentSizeChange, - onLayout: this._onLayout, - DEPRECATED_sendUpdatedChildFrames: typeof props.onChangeVisibleRows !== undefined - }, header, bodyComponents, footer); - }, - _measureAndUpdateScrollProps: function _measureAndUpdateScrollProps() { - var scrollComponent = this.getScrollResponder(); - - if (!scrollComponent || !scrollComponent.getInnerViewNode) { - return; - } - - RCTScrollViewManager && RCTScrollViewManager.calculateChildFrames && RCTScrollViewManager.calculateChildFrames(ReactNative.findNodeHandle(scrollComponent), this._updateVisibleRows); - }, - _setScrollComponentRef: function _setScrollComponentRef(scrollComponent) { - this._scrollComponent = scrollComponent; - }, - _onContentSizeChange: function _onContentSizeChange(width, height) { - var contentLength = !this.props.horizontal ? height : width; - - if (contentLength !== this.scrollProperties.contentLength) { - this.scrollProperties.contentLength = contentLength; - - this._updateVisibleRows(); - - this._renderMoreRowsIfNeeded(); - } - - this.props.onContentSizeChange && this.props.onContentSizeChange(width, height); - }, - _onLayout: function _onLayout(event) { - var _event$nativeEvent$la = event.nativeEvent.layout, - width = _event$nativeEvent$la.width, - height = _event$nativeEvent$la.height; - var visibleLength = !this.props.horizontal ? height : width; - - if (visibleLength !== this.scrollProperties.visibleLength) { - this.scrollProperties.visibleLength = visibleLength; - - this._updateVisibleRows(); - - this._renderMoreRowsIfNeeded(); - } - - this.props.onLayout && this.props.onLayout(event); - }, - _maybeCallOnEndReached: function _maybeCallOnEndReached(event) { - if (this.props.onEndReached && this.scrollProperties.contentLength !== this._sentEndForContentLength && this._getDistanceFromEnd(this.scrollProperties) < this.props.onEndReachedThreshold && this.state.curRenderedRowsCount === (this.props.enableEmptySections ? this.props.dataSource.getRowAndSectionCount() : this.props.dataSource.getRowCount())) { - this._sentEndForContentLength = this.scrollProperties.contentLength; - this.props.onEndReached(event); - return true; - } - - return false; - }, - _renderMoreRowsIfNeeded: function _renderMoreRowsIfNeeded() { - if (this.scrollProperties.contentLength === null || this.scrollProperties.visibleLength === null || this.state.curRenderedRowsCount === (this.props.enableEmptySections ? this.props.dataSource.getRowAndSectionCount() : this.props.dataSource.getRowCount())) { - this._maybeCallOnEndReached(); - - return; - } - - var distanceFromEnd = this._getDistanceFromEnd(this.scrollProperties); - - if (distanceFromEnd < this.props.scrollRenderAheadDistance) { - this._pageInNewRows(); - } - }, - _pageInNewRows: function _pageInNewRows() { - var _this4 = this; - - this.setState(function (state, props) { - var rowsToRender = Math.min(state.curRenderedRowsCount + props.pageSize, props.enableEmptySections ? props.dataSource.getRowAndSectionCount() : props.dataSource.getRowCount()); - _this4._prevRenderedRowsCount = state.curRenderedRowsCount; - return { - curRenderedRowsCount: rowsToRender - }; - }, function () { - _this4._measureAndUpdateScrollProps(); - - _this4._prevRenderedRowsCount = _this4.state.curRenderedRowsCount; - }); - }, - _getDistanceFromEnd: function _getDistanceFromEnd(scrollProperties) { - return scrollProperties.contentLength - scrollProperties.visibleLength - scrollProperties.offset; - }, - _updateVisibleRows: function _updateVisibleRows(updatedFrames) { - var _this5 = this; - - if (!this.props.onChangeVisibleRows) { - return; - } - - if (updatedFrames) { - updatedFrames.forEach(function (newFrame) { - _this5._childFrames[newFrame.index] = merge(newFrame); - }); - } - - var isVertical = !this.props.horizontal; - var dataSource = this.props.dataSource; - var visibleMin = this.scrollProperties.offset; - var visibleMax = visibleMin + this.scrollProperties.visibleLength; - var allRowIDs = dataSource.rowIdentities; - var header = this.props.renderHeader && this.props.renderHeader(); - var totalIndex = header ? 1 : 0; - var visibilityChanged = false; - var changedRows = {}; - - for (var sectionIdx = 0; sectionIdx < allRowIDs.length; sectionIdx++) { - var rowIDs = allRowIDs[sectionIdx]; - - if (rowIDs.length === 0) { - continue; - } - - var sectionID = dataSource.sectionIdentities[sectionIdx]; - - if (this.props.renderSectionHeader) { - totalIndex++; - } - - var visibleSection = this._visibleRows[sectionID]; - - if (!visibleSection) { - visibleSection = {}; - } - - for (var rowIdx = 0; rowIdx < rowIDs.length; rowIdx++) { - var rowID = rowIDs[rowIdx]; - var frame = this._childFrames[totalIndex]; - totalIndex++; - - if (this.props.renderSeparator && (rowIdx !== rowIDs.length - 1 || sectionIdx === allRowIDs.length - 1)) { - totalIndex++; - } - - if (!frame) { - break; - } - - var rowVisible = visibleSection[rowID]; - var min = isVertical ? frame.y : frame.x; - var max = min + (isVertical ? frame.height : frame.width); - - if (!min && !max || min === max) { - break; - } - - if (min > visibleMax || max < visibleMin) { - if (rowVisible) { - visibilityChanged = true; - delete visibleSection[rowID]; - - if (!changedRows[sectionID]) { - changedRows[sectionID] = {}; - } - - changedRows[sectionID][rowID] = false; - } - } else if (!rowVisible) { - visibilityChanged = true; - visibleSection[rowID] = true; - - if (!changedRows[sectionID]) { - changedRows[sectionID] = {}; - } - - changedRows[sectionID][rowID] = true; - } - } - - if (!isEmpty(visibleSection)) { - this._visibleRows[sectionID] = visibleSection; - } else if (this._visibleRows[sectionID]) { - delete this._visibleRows[sectionID]; - } - } - - visibilityChanged && this.props.onChangeVisibleRows(this._visibleRows, changedRows); - }, - _onScroll: function _onScroll(e) { - var isVertical = !this.props.horizontal; - this.scrollProperties.visibleLength = e.nativeEvent.layoutMeasurement[isVertical ? 'height' : 'width']; - this.scrollProperties.contentLength = e.nativeEvent.contentSize[isVertical ? 'height' : 'width']; - this.scrollProperties.offset = e.nativeEvent.contentOffset[isVertical ? 'y' : 'x']; - - this._updateVisibleRows(e.nativeEvent.updatedChildFrames); - - if (!this._maybeCallOnEndReached(e)) { - this._renderMoreRowsIfNeeded(); - } - - if (this.props.onEndReached && this._getDistanceFromEnd(this.scrollProperties) > this.props.onEndReachedThreshold) { - this._sentEndForContentLength = null; - } - - this.props.onScroll && this.props.onScroll(e); - } - }); - module.exports = ListView; -},19,[441,442,94,121,143,67,93,28,433,443,404,48,444,402,445,320,111,4],"node_modules/react-native/Libraries/Lists/ListView/ListView.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var React = _$$_REQUIRE(_dependencyMap[0], 'React'); - - var ListViewDataSource = _$$_REQUIRE(_dependencyMap[1], 'ListViewDataSource'); - - var InternalListViewType = function (_React$Component) { - "use strict"; - - function InternalListViewType() { - _classCallCheck(this, InternalListViewType); - - return _possibleConstructorReturn(this, _getPrototypeOf(InternalListViewType).apply(this, arguments)); - } - - _createClass(InternalListViewType, [{ - key: "setNativeProps", - value: function setNativeProps(props) {} - }, { - key: "flashScrollIndicators", - value: function flashScrollIndicators() {} - }, { - key: "getScrollResponder", - value: function getScrollResponder() {} - }, { - key: "getScrollableNode", - value: function getScrollableNode() {} - }, { - key: "getMetrics", - value: function getMetrics() {} - }, { - key: "scrollTo", - value: function scrollTo() {} - }, { - key: "scrollToEnd", - value: function scrollToEnd(options) {} - }]); - - _inherits(InternalListViewType, _React$Component); - - return InternalListViewType; - }(React.Component); - - InternalListViewType.DataSource = ListViewDataSource; - module.exports = InternalListViewType; -},441,[121,442],"node_modules/react-native/Libraries/Lists/ListView/InternalListViewType.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); - - var isEmpty = _$$_REQUIRE(_dependencyMap[1], 'isEmpty'); - - var warning = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/warning'); - - function defaultGetRowData(dataBlob, sectionID, rowID) { - return dataBlob[sectionID][rowID]; - } - - function defaultGetSectionHeaderData(dataBlob, sectionID) { - return dataBlob[sectionID]; - } - - var ListViewDataSource = function () { - function ListViewDataSource(params) { - _classCallCheck(this, ListViewDataSource); - - invariant(params && typeof params.rowHasChanged === 'function', 'Must provide a rowHasChanged function.'); - this._rowHasChanged = params.rowHasChanged; - this._getRowData = params.getRowData || defaultGetRowData; - this._sectionHeaderHasChanged = params.sectionHeaderHasChanged; - this._getSectionHeaderData = params.getSectionHeaderData || defaultGetSectionHeaderData; - this._dataBlob = null; - this._dirtyRows = []; - this._dirtySections = []; - this._cachedRowCount = 0; - this.rowIdentities = []; - this.sectionIdentities = []; - } - - _createClass(ListViewDataSource, [{ - key: "cloneWithRows", - value: function cloneWithRows(dataBlob, rowIdentities) { - var rowIds = rowIdentities ? [_toConsumableArray(rowIdentities)] : null; - - if (!this._sectionHeaderHasChanged) { - this._sectionHeaderHasChanged = function () { - return false; - }; - } - - return this.cloneWithRowsAndSections({ - s1: dataBlob - }, ['s1'], rowIds); - } - }, { - key: "cloneWithRowsAndSections", - value: function cloneWithRowsAndSections(dataBlob, sectionIdentities, rowIdentities) { - invariant(typeof this._sectionHeaderHasChanged === 'function', 'Must provide a sectionHeaderHasChanged function with section data.'); - invariant(!sectionIdentities || !rowIdentities || sectionIdentities.length === rowIdentities.length, 'row and section ids lengths must be the same'); - var newSource = new ListViewDataSource({ - getRowData: this._getRowData, - getSectionHeaderData: this._getSectionHeaderData, - rowHasChanged: this._rowHasChanged, - sectionHeaderHasChanged: this._sectionHeaderHasChanged - }); - newSource._dataBlob = dataBlob; - - if (sectionIdentities) { - newSource.sectionIdentities = sectionIdentities; - } else { - newSource.sectionIdentities = Object.keys(dataBlob); - } - - if (rowIdentities) { - newSource.rowIdentities = rowIdentities; - } else { - newSource.rowIdentities = []; - newSource.sectionIdentities.forEach(function (sectionID) { - newSource.rowIdentities.push(Object.keys(dataBlob[sectionID])); - }); - } - - newSource._cachedRowCount = countRows(newSource.rowIdentities); - - newSource._calculateDirtyArrays(this._dataBlob, this.sectionIdentities, this.rowIdentities); - - return newSource; - } - }, { - key: "getRowCount", - value: function getRowCount() { - return this._cachedRowCount; - } - }, { - key: "getRowAndSectionCount", - value: function getRowAndSectionCount() { - return this._cachedRowCount + this.sectionIdentities.length; - } - }, { - key: "rowShouldUpdate", - value: function rowShouldUpdate(sectionIndex, rowIndex) { - var needsUpdate = this._dirtyRows[sectionIndex][rowIndex]; - warning(needsUpdate !== undefined, 'missing dirtyBit for section, row: ' + sectionIndex + ', ' + rowIndex); - return needsUpdate; - } - }, { - key: "getRowData", - value: function getRowData(sectionIndex, rowIndex) { - var sectionID = this.sectionIdentities[sectionIndex]; - var rowID = this.rowIdentities[sectionIndex][rowIndex]; - warning(sectionID !== undefined && rowID !== undefined, 'rendering invalid section, row: ' + sectionIndex + ', ' + rowIndex); - return this._getRowData(this._dataBlob, sectionID, rowID); - } - }, { - key: "getRowIDForFlatIndex", - value: function getRowIDForFlatIndex(index) { - var accessIndex = index; - - for (var ii = 0; ii < this.sectionIdentities.length; ii++) { - if (accessIndex >= this.rowIdentities[ii].length) { - accessIndex -= this.rowIdentities[ii].length; - } else { - return this.rowIdentities[ii][accessIndex]; - } - } - - return null; - } - }, { - key: "getSectionIDForFlatIndex", - value: function getSectionIDForFlatIndex(index) { - var accessIndex = index; - - for (var ii = 0; ii < this.sectionIdentities.length; ii++) { - if (accessIndex >= this.rowIdentities[ii].length) { - accessIndex -= this.rowIdentities[ii].length; - } else { - return this.sectionIdentities[ii]; - } - } - - return null; - } - }, { - key: "getSectionLengths", - value: function getSectionLengths() { - var results = []; - - for (var ii = 0; ii < this.sectionIdentities.length; ii++) { - results.push(this.rowIdentities[ii].length); - } - - return results; - } - }, { - key: "sectionHeaderShouldUpdate", - value: function sectionHeaderShouldUpdate(sectionIndex) { - var needsUpdate = this._dirtySections[sectionIndex]; - warning(needsUpdate !== undefined, 'missing dirtyBit for section: ' + sectionIndex); - return needsUpdate; - } - }, { - key: "getSectionHeaderData", - value: function getSectionHeaderData(sectionIndex) { - if (!this._getSectionHeaderData) { - return null; - } - - var sectionID = this.sectionIdentities[sectionIndex]; - warning(sectionID !== undefined, 'renderSection called on invalid section: ' + sectionIndex); - return this._getSectionHeaderData(this._dataBlob, sectionID); - } - }, { - key: "_calculateDirtyArrays", - value: function _calculateDirtyArrays(prevDataBlob, prevSectionIDs, prevRowIDs) { - var prevSectionsHash = keyedDictionaryFromArray(prevSectionIDs); - var prevRowsHash = {}; - - for (var ii = 0; ii < prevRowIDs.length; ii++) { - var sectionID = prevSectionIDs[ii]; - warning(!prevRowsHash[sectionID], 'SectionID appears more than once: ' + sectionID); - prevRowsHash[sectionID] = keyedDictionaryFromArray(prevRowIDs[ii]); - } - - this._dirtySections = []; - this._dirtyRows = []; - var dirty; - - for (var sIndex = 0; sIndex < this.sectionIdentities.length; sIndex++) { - var sectionID = this.sectionIdentities[sIndex]; - dirty = !prevSectionsHash[sectionID]; - var _sectionHeaderHasChanged = this._sectionHeaderHasChanged; - - if (!dirty && _sectionHeaderHasChanged) { - dirty = _sectionHeaderHasChanged(this._getSectionHeaderData(prevDataBlob, sectionID), this._getSectionHeaderData(this._dataBlob, sectionID)); - } - - this._dirtySections.push(!!dirty); - - this._dirtyRows[sIndex] = []; - - for (var rIndex = 0; rIndex < this.rowIdentities[sIndex].length; rIndex++) { - var rowID = this.rowIdentities[sIndex][rIndex]; - dirty = !prevSectionsHash[sectionID] || !prevRowsHash[sectionID][rowID] || this._rowHasChanged(this._getRowData(prevDataBlob, sectionID, rowID), this._getRowData(this._dataBlob, sectionID, rowID)); - - this._dirtyRows[sIndex].push(!!dirty); - } - } - } - }]); - - return ListViewDataSource; - }(); - - function countRows(allRowIDs) { - var totalRows = 0; - - for (var sectionIdx = 0; sectionIdx < allRowIDs.length; sectionIdx++) { - var rowIDs = allRowIDs[sectionIdx]; - totalRows += rowIDs.length; - } - - return totalRows; - } - - function keyedDictionaryFromArray(arr) { - if (isEmpty(arr)) { - return {}; - } - - var result = {}; - - for (var ii = 0; ii < arr.length; ii++) { - var _key = arr[ii]; - warning(!result[_key], 'Value appears more than once in array: ' + _key); - result[_key] = true; - } - - return result; - } - - module.exports = ListViewDataSource; -},442,[4,445,111],"node_modules/react-native/Libraries/Lists/ListView/ListViewDataSource.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function isEmpty(obj) { - if (Array.isArray(obj)) { - return obj.length === 0; - } else if (typeof obj === 'object') { - for (var i in obj) { - return false; - } - - return true; - } else { - return !obj; - } - } - - module.exports = isEmpty; -},445,[],"node_modules/react-native/Libraries/vendor/core/isEmpty.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - StaticRenderer: { - displayName: "StaticRenderer" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/StaticRenderer.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); - - var StaticRenderer = function (_React$Component) { - function StaticRenderer() { - _classCallCheck(this, StaticRenderer); - - return _possibleConstructorReturn(this, _getPrototypeOf(StaticRenderer).apply(this, arguments)); - } - - _createClass(StaticRenderer, [{ - key: "shouldComponentUpdate", - value: function shouldComponentUpdate(nextProps) { - return nextProps.shouldUpdate; - } - }, { - key: "render", - value: function render() { - return this.props.render(); - } - }]); - - _inherits(StaticRenderer, _React$Component); - - return StaticRenderer; - }(React.Component); - - StaticRenderer.propTypes = { - shouldUpdate: PropTypes.bool.isRequired, - render: PropTypes.func.isRequired - }; - StaticRenderer = _wrapComponent("StaticRenderer")(StaticRenderer); - module.exports = StaticRenderer; -},443,[122,161,121,143],"node_modules/react-native/Libraries/Components/StaticRenderer.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var React = _$$_REQUIRE(_dependencyMap[0], 'react'); - - function cloneReferencedElement(element, config) { - var cloneRef = config.ref; - var originalRef = element.ref; - - for (var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - children[_key - 2] = arguments[_key]; - } - - if (originalRef == null || cloneRef == null) { - return React.cloneElement.apply(React, [element, config].concat(children)); - } - - if (typeof originalRef !== 'function') { - if (__DEV__) { - console.warn('Cloning an element with a ref that will be overwritten because it ' + 'is not a function. Use a composable callback-style ref instead. ' + 'Ignoring ref: ' + originalRef); - } - - return React.cloneElement.apply(React, [element, config].concat(children)); - } - - return React.cloneElement.apply(React, [element, _objectSpread({}, config, { - ref: function ref(component) { - cloneRef(component); - originalRef(component); - } - })].concat(children)); - } - - module.exports = cloneReferencedElement; -},444,[122],"node_modules/react-clone-referenced-element/cloneReferencedElement.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/RefreshControl/RefreshControl.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - RefreshControl: { - displayName: "RefreshControl" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/RefreshControl/RefreshControl.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var Platform = _$$_REQUIRE(_dependencyMap[2], 'Platform'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var _require = _$$_REQUIRE(_dependencyMap[4], 'ReactNative'), - NativeComponent = _require.NativeComponent; - - var requireNativeComponent = _$$_REQUIRE(_dependencyMap[5], 'requireNativeComponent'); - - var nullthrows = _$$_REQUIRE(_dependencyMap[6], 'fbjs/lib/nullthrows'); - - if (Platform.OS === 'android') { - var AndroidSwipeRefreshLayout = _$$_REQUIRE(_dependencyMap[7], 'UIManager').AndroidSwipeRefreshLayout; - - var RefreshLayoutConsts = AndroidSwipeRefreshLayout ? AndroidSwipeRefreshLayout.Constants : { - SIZE: {} - }; - } else { - var RefreshLayoutConsts = { - SIZE: {} - }; - } - - var NativeRefreshControl = Platform.OS === 'ios' ? requireNativeComponent('RCTRefreshControl') : requireNativeComponent('AndroidSwipeRefreshLayout'); - - var RefreshControl = function (_React$Component) { - function RefreshControl() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, RefreshControl); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(RefreshControl)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._nativeRef = null, _this._lastNativeRefreshing = false, _this._onRefresh = function () { - _this._lastNativeRefreshing = true; - _this.props.onRefresh && _this.props.onRefresh(); - - _this.forceUpdate(); - }, _temp)); - } - - _createClass(RefreshControl, [{ - key: "componentDidMount", - value: function componentDidMount() { - this._lastNativeRefreshing = this.props.refreshing; - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (this.props.refreshing !== prevProps.refreshing) { - this._lastNativeRefreshing = this.props.refreshing; - } else if (this.props.refreshing !== this._lastNativeRefreshing) { - nullthrows(this._nativeRef).setNativeProps({ - refreshing: this.props.refreshing - }); - this._lastNativeRefreshing = this.props.refreshing; - } - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - return React.createElement(NativeRefreshControl, _extends({}, this.props, { - ref: function ref(_ref) { - _this2._nativeRef = _ref; - }, - onRefresh: this._onRefresh, - __source: { - fileName: _jsxFileName, - lineNumber: 167 - } - })); - } - }]); - - _inherits(RefreshControl, _React$Component); - - return RefreshControl; - }(React.Component); - - RefreshControl.SIZE = RefreshLayoutConsts.SIZE; - RefreshControl = _wrapComponent("RefreshControl")(RefreshControl); - module.exports = RefreshControl; -},34,[122,161,94,121,67,96,330,87],"node_modules/react-native/Libraries/Components/RefreshControl/RefreshControl.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Lists/VirtualizedList.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - var _components = { - VirtualizedList: { - displayName: "VirtualizedList" - }, - CellRenderer: { - displayName: "CellRenderer" - }, - VirtualizedCellWrapper: { - displayName: "VirtualizedCellWrapper" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Lists/VirtualizedList.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var Batchinator = _$$_REQUIRE(_dependencyMap[2], 'Batchinator'); - - var FillRateHelper = _$$_REQUIRE(_dependencyMap[3], 'FillRateHelper'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[4], 'prop-types'); - - var React = _$$_REQUIRE(_dependencyMap[5], 'React'); - - var ReactNative = _$$_REQUIRE(_dependencyMap[6], 'ReactNative'); - - var RefreshControl = _$$_REQUIRE(_dependencyMap[7], 'RefreshControl'); - - var ScrollView = _$$_REQUIRE(_dependencyMap[8], 'ScrollView'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[9], 'StyleSheet'); - - var UIManager = _$$_REQUIRE(_dependencyMap[10], 'UIManager'); - - var View = _$$_REQUIRE(_dependencyMap[11], 'View'); - - var ViewabilityHelper = _$$_REQUIRE(_dependencyMap[12], 'ViewabilityHelper'); - - var flattenStyle = _$$_REQUIRE(_dependencyMap[13], 'flattenStyle'); - - var infoLog = _$$_REQUIRE(_dependencyMap[14], 'infoLog'); - - var invariant = _$$_REQUIRE(_dependencyMap[15], 'fbjs/lib/invariant'); - - var warning = _$$_REQUIRE(_dependencyMap[16], 'fbjs/lib/warning'); - - var _require = _$$_REQUIRE(_dependencyMap[17], 'VirtualizeUtils'), - computeWindowedRenderLimits = _require.computeWindowedRenderLimits; - - var _usedIndexForKey = false; - var _keylessItemComponentName = ''; - - var VirtualizedList = function (_React$PureComponent) { - _createClass(VirtualizedList, [{ - key: "scrollToEnd", - value: function scrollToEnd(params) { - var animated = params ? params.animated : true; - var veryLast = this.props.getItemCount(this.props.data) - 1; - - var frame = this._getFrameMetricsApprox(veryLast); - - var offset = Math.max(0, frame.offset + frame.length + this._footerLength - this._scrollMetrics.visibleLength); - - this._scrollRef.scrollTo(this.props.horizontal ? { - x: offset, - animated: animated - } : { - y: offset, - animated: animated - }); - } - }, { - key: "scrollToIndex", - value: function scrollToIndex(params) { - var _this$props = this.props, - data = _this$props.data, - horizontal = _this$props.horizontal, - getItemCount = _this$props.getItemCount, - getItemLayout = _this$props.getItemLayout, - onScrollToIndexFailed = _this$props.onScrollToIndexFailed; - var animated = params.animated, - index = params.index, - viewOffset = params.viewOffset, - viewPosition = params.viewPosition; - invariant(index >= 0 && index < getItemCount(data), "scrollToIndex out of range: " + index + " vs " + (getItemCount(data) - 1)); - - if (!getItemLayout && index > this._highestMeasuredFrameIndex) { - invariant(!!onScrollToIndexFailed, 'scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, ' + 'otherwise there is no way to know the location of offscreen indices or handle failures.'); - onScrollToIndexFailed({ - averageItemLength: this._averageCellLength, - highestMeasuredFrameIndex: this._highestMeasuredFrameIndex, - index: index - }); - return; - } - - var frame = this._getFrameMetricsApprox(index); - - var offset = Math.max(0, frame.offset - (viewPosition || 0) * (this._scrollMetrics.visibleLength - frame.length)) - (viewOffset || 0); - - this._scrollRef.scrollTo(horizontal ? { - x: offset, - animated: animated - } : { - y: offset, - animated: animated - }); - } - }, { - key: "scrollToItem", - value: function scrollToItem(params) { - var item = params.item; - var _this$props2 = this.props, - data = _this$props2.data, - getItem = _this$props2.getItem, - getItemCount = _this$props2.getItemCount; - var itemCount = getItemCount(data); - - for (var _index = 0; _index < itemCount; _index++) { - if (getItem(data, _index) === item) { - this.scrollToIndex(_objectSpread({}, params, { - index: _index - })); - break; - } - } - } - }, { - key: "scrollToOffset", - value: function scrollToOffset(params) { - var animated = params.animated, - offset = params.offset; - - this._scrollRef.scrollTo(this.props.horizontal ? { - x: offset, - animated: animated - } : { - y: offset, - animated: animated - }); - } - }, { - key: "recordInteraction", - value: function recordInteraction() { - this._nestedChildLists.forEach(function (childList) { - childList.ref && childList.ref.recordInteraction(); - }); - - this._viewabilityTuples.forEach(function (t) { - t.viewabilityHelper.recordInteraction(); - }); - - this._updateViewableItems(this.props.data); - } - }, { - key: "flashScrollIndicators", - value: function flashScrollIndicators() { - this._scrollRef.flashScrollIndicators(); - } - }, { - key: "getScrollResponder", - value: function getScrollResponder() { - if (this._scrollRef && this._scrollRef.getScrollResponder) { - return this._scrollRef.getScrollResponder(); - } - } - }, { - key: "getScrollableNode", - value: function getScrollableNode() { - if (this._scrollRef && this._scrollRef.getScrollableNode) { - return this._scrollRef.getScrollableNode(); - } else { - return ReactNative.findNodeHandle(this._scrollRef); - } - } - }, { - key: "setNativeProps", - value: function setNativeProps(props) { - if (this._scrollRef) { - this._scrollRef.setNativeProps(props); - } - } - }, { - key: "getChildContext", - value: function getChildContext() { - return { - virtualizedList: { - getScrollMetrics: this._getScrollMetrics, - horizontal: this.props.horizontal, - getOutermostParentListRef: this._getOutermostParentListRef, - getNestedChildState: this._getNestedChildState, - registerAsNestedChild: this._registerAsNestedChild, - unregisterAsNestedChild: this._unregisterAsNestedChild - } - }; - } - }, { - key: "_getCellKey", - value: function _getCellKey() { - return this.context.virtualizedCell && this.context.virtualizedCell.cellKey || 'rootList'; - } - }, { - key: "hasMore", - value: function hasMore() { - return this._hasMore; - } - }]); - - function VirtualizedList(_props, context) { - var _this; - - _classCallCheck(this, VirtualizedList); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(VirtualizedList).call(this, _props, context)); - - _this._getScrollMetrics = function () { - return _this._scrollMetrics; - }; - - _this._getOutermostParentListRef = function () { - if (_this._isNestedWithSameOrientation()) { - return _this.context.virtualizedList.getOutermostParentListRef(); - } else { - return _assertThisInitialized(_assertThisInitialized(_this)); - } - }; - - _this._getNestedChildState = function (key) { - var existingChildData = _this._nestedChildLists.get(key); - - return existingChildData && existingChildData.state; - }; - - _this._registerAsNestedChild = function (childList) { - var childListsInCell = _this._cellKeysToChildListKeys.get(childList.cellKey) || new Set(); - childListsInCell.add(childList.key); - - _this._cellKeysToChildListKeys.set(childList.cellKey, childListsInCell); - - var existingChildData = _this._nestedChildLists.get(childList.key); - - invariant(!(existingChildData && existingChildData.ref !== null), 'A VirtualizedList contains a cell which itself contains ' + 'more than one VirtualizedList of the same orientation as the parent ' + 'list. You must pass a unique listKey prop to each sibling list.'); - - _this._nestedChildLists.set(childList.key, { - ref: childList.ref, - state: null - }); - - if (_this._hasInteracted) { - childList.ref.recordInteraction(); - } - }; - - _this._unregisterAsNestedChild = function (childList) { - _this._nestedChildLists.set(childList.key, { - ref: null, - state: childList.state - }); - }; - - _this._onUpdateSeparators = function (keys, newProps) { - keys.forEach(function (key) { - var ref = key != null && _this._cellRefs[key]; - ref && ref.updateSeparatorProps(newProps); - }); - }; - - _this._averageCellLength = 0; - _this._cellKeysToChildListKeys = new Map(); - _this._cellRefs = {}; - _this._frames = {}; - _this._footerLength = 0; - _this._hasDataChangedSinceEndReached = true; - _this._hasInteracted = false; - _this._hasMore = false; - _this._hasWarned = {}; - _this._highestMeasuredFrameIndex = 0; - _this._headerLength = 0; - _this._indicesToKeys = new Map(); - _this._hasDoneInitialScroll = false; - _this._nestedChildLists = new Map(); - _this._offsetFromParentVirtualizedList = 0; - _this._prevParentOffset = 0; - _this._scrollMetrics = { - contentLength: 0, - dOffset: 0, - dt: 10, - offset: 0, - timestamp: 0, - velocity: 0, - visibleLength: 0 - }; - _this._scrollRef = null; - _this._sentEndForContentLength = 0; - _this._totalCellLength = 0; - _this._totalCellsMeasured = 0; - _this._viewabilityTuples = []; - - _this._captureScrollRef = function (ref) { - _this._scrollRef = ref; - }; - - _this._defaultRenderScrollComponent = function (props) { - var onRefresh = props.onRefresh; - - if (_this._isNestedWithSameOrientation()) { - return React.createElement(View, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 1018 - } - })); - } else if (onRefresh) { - invariant(typeof props.refreshing === 'boolean', '`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `' + JSON.stringify(props.refreshing) + '`'); - return React.createElement(ScrollView, _extends({}, props, { - refreshControl: props.refreshControl == null ? React.createElement(RefreshControl, { - refreshing: props.refreshing, - onRefresh: onRefresh, - progressViewOffset: props.progressViewOffset, - __source: { - fileName: _jsxFileName, - lineNumber: 1032 - } - }) : props.refreshControl, - __source: { - fileName: _jsxFileName, - lineNumber: 1028 - } - })); - } else { - return React.createElement(ScrollView, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 1045 - } - })); - } - }; - - _this._onCellUnmount = function (cellKey) { - var curr = _this._frames[cellKey]; - - if (curr) { - _this._frames[cellKey] = _objectSpread({}, curr, { - inLayout: false - }); - } - }; - - _this._onLayout = function (e) { - if (_this._isNestedWithSameOrientation()) { - _this.measureLayoutRelativeToContainingList(); - } else { - _this._scrollMetrics.visibleLength = _this._selectLength(e.nativeEvent.layout); - } - - _this.props.onLayout && _this.props.onLayout(e); - - _this._scheduleCellsToRenderUpdate(); - - _this._maybeCallOnEndReached(); - }; - - _this._onLayoutEmpty = function (e) { - _this.props.onLayout && _this.props.onLayout(e); - }; - - _this._onLayoutFooter = function (e) { - _this._footerLength = _this._selectLength(e.nativeEvent.layout); - }; - - _this._onLayoutHeader = function (e) { - _this._headerLength = _this._selectLength(e.nativeEvent.layout); - }; - - _this._onContentSizeChange = function (width, height) { - if (width > 0 && height > 0 && _this.props.initialScrollIndex != null && _this.props.initialScrollIndex > 0 && !_this._hasDoneInitialScroll) { - _this.scrollToIndex({ - animated: false, - index: _this.props.initialScrollIndex - }); - - _this._hasDoneInitialScroll = true; - } - - if (_this.props.onContentSizeChange) { - _this.props.onContentSizeChange(width, height); - } - - _this._scrollMetrics.contentLength = _this._selectLength({ - height: height, - width: width - }); - - _this._scheduleCellsToRenderUpdate(); - - _this._maybeCallOnEndReached(); - }; - - _this._convertParentScrollMetrics = function (metrics) { - var offset = metrics.offset - _this._offsetFromParentVirtualizedList; - var visibleLength = metrics.visibleLength; - var dOffset = offset - _this._scrollMetrics.offset; - var contentLength = _this._scrollMetrics.contentLength; - return { - visibleLength: visibleLength, - contentLength: contentLength, - offset: offset, - dOffset: dOffset - }; - }; - - _this._onScroll = function (e) { - _this._nestedChildLists.forEach(function (childList) { - childList.ref && childList.ref._onScroll(e); - }); - - if (_this.props.onScroll) { - _this.props.onScroll(e); - } - - var timestamp = e.timeStamp; - - var visibleLength = _this._selectLength(e.nativeEvent.layoutMeasurement); - - var contentLength = _this._selectLength(e.nativeEvent.contentSize); - - var offset = _this._selectOffset(e.nativeEvent.contentOffset); - - var dOffset = offset - _this._scrollMetrics.offset; - - if (_this._isNestedWithSameOrientation()) { - if (_this._scrollMetrics.contentLength === 0) { - return; - } - - var _this$_convertParentS = _this._convertParentScrollMetrics({ - visibleLength: visibleLength, - offset: offset - }); - - visibleLength = _this$_convertParentS.visibleLength; - contentLength = _this$_convertParentS.contentLength; - offset = _this$_convertParentS.offset; - dOffset = _this$_convertParentS.dOffset; - } - - var dt = _this._scrollMetrics.timestamp ? Math.max(1, timestamp - _this._scrollMetrics.timestamp) : 1; - var velocity = dOffset / dt; - - if (dt > 500 && _this._scrollMetrics.dt > 500 && contentLength > 5 * visibleLength && !_this._hasWarned.perf) { - infoLog('VirtualizedList: You have a large list that is slow to update - make sure your ' + 'renderItem function renders components that follow React performance best practices ' + 'like PureComponent, shouldComponentUpdate, etc.', { - dt: dt, - prevDt: _this._scrollMetrics.dt, - contentLength: contentLength - }); - _this._hasWarned.perf = true; - } - - _this._scrollMetrics = { - contentLength: contentLength, - dt: dt, - dOffset: dOffset, - offset: offset, - timestamp: timestamp, - velocity: velocity, - visibleLength: visibleLength - }; - - _this._updateViewableItems(_this.props.data); - - if (!_this.props) { - return; - } - - _this._maybeCallOnEndReached(); - - if (velocity !== 0) { - _this._fillRateHelper.activate(); - } - - _this._computeBlankness(); - - _this._scheduleCellsToRenderUpdate(); - }; - - _this._onScrollBeginDrag = function (e) { - _this._nestedChildLists.forEach(function (childList) { - childList.ref && childList.ref._onScrollBeginDrag(e); - }); - - _this._viewabilityTuples.forEach(function (tuple) { - tuple.viewabilityHelper.recordInteraction(); - }); - - _this._hasInteracted = true; - _this.props.onScrollBeginDrag && _this.props.onScrollBeginDrag(e); - }; - - _this._onScrollEndDrag = function (e) { - var velocity = e.nativeEvent.velocity; - - if (velocity) { - _this._scrollMetrics.velocity = _this._selectOffset(velocity); - } - - _this._computeBlankness(); - - _this.props.onScrollEndDrag && _this.props.onScrollEndDrag(e); - }; - - _this._onMomentumScrollEnd = function (e) { - _this._scrollMetrics.velocity = 0; - - _this._computeBlankness(); - - _this.props.onMomentumScrollEnd && _this.props.onMomentumScrollEnd(e); - }; - - _this._updateCellsToRender = function () { - var _this$props3 = _this.props, - data = _this$props3.data, - getItemCount = _this$props3.getItemCount, - onEndReachedThreshold = _this$props3.onEndReachedThreshold; - - var isVirtualizationDisabled = _this._isVirtualizationDisabled(); - - _this._updateViewableItems(data); - - if (!data) { - return; - } - - _this.setState(function (state) { - var newState; - - if (!isVirtualizationDisabled) { - if (_this._scrollMetrics.visibleLength) { - if (!_this.props.initialScrollIndex || _this._scrollMetrics.offset) { - newState = computeWindowedRenderLimits(_this.props, state, _this._getFrameMetricsApprox, _this._scrollMetrics); - } - } - } else { - var _this$_scrollMetrics = _this._scrollMetrics, - contentLength = _this$_scrollMetrics.contentLength, - _offset = _this$_scrollMetrics.offset, - visibleLength = _this$_scrollMetrics.visibleLength; - - var _distanceFromEnd = contentLength - visibleLength - _offset; - - var renderAhead = _distanceFromEnd < onEndReachedThreshold * visibleLength ? _this.props.maxToRenderPerBatch : 0; - newState = { - first: 0, - last: Math.min(state.last + renderAhead, getItemCount(data) - 1) - }; - } - - if (newState && _this._nestedChildLists.size > 0) { - var newFirst = newState.first; - var newLast = newState.last; - - for (var ii = newFirst; ii <= newLast; ii++) { - var cellKeyForIndex = _this._indicesToKeys.get(ii); - - var childListKeys = cellKeyForIndex && _this._cellKeysToChildListKeys.get(cellKeyForIndex); - - if (!childListKeys) { - continue; - } - - var someChildHasMore = false; - - for (var _iterator = childListKeys, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? typeof Symbol === "function" ? Symbol.iterator : "@@iterator" : "@@iterator"]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var _childKey = _ref; - - var childList = _this._nestedChildLists.get(_childKey); - - if (childList && childList.ref && childList.ref.hasMore()) { - someChildHasMore = true; - break; - } - } - - if (someChildHasMore) { - newState.last = ii; - break; - } - } - } - - return newState; - }); - }; - - _this._createViewToken = function (index, isViewable) { - var _this$props4 = _this.props, - data = _this$props4.data, - getItem = _this$props4.getItem, - keyExtractor = _this$props4.keyExtractor; - var item = getItem(data, index); - return { - index: index, - item: item, - key: keyExtractor(item, index), - isViewable: isViewable - }; - }; - - _this._getFrameMetricsApprox = function (index) { - var frame = _this._getFrameMetrics(index); - - if (frame && frame.index === index) { - return frame; - } else { - var _getItemLayout = _this.props.getItemLayout; - invariant(!_getItemLayout, 'Should not have to estimate frames when a measurement metrics function is provided'); - return { - length: _this._averageCellLength, - offset: _this._averageCellLength * index - }; - } - }; - - _this._getFrameMetrics = function (index) { - var _this$props5 = _this.props, - data = _this$props5.data, - getItem = _this$props5.getItem, - getItemCount = _this$props5.getItemCount, - getItemLayout = _this$props5.getItemLayout, - keyExtractor = _this$props5.keyExtractor; - invariant(getItemCount(data) > index, 'Tried to get frame for out of range index ' + index); - var item = getItem(data, index); - - var frame = item && _this._frames[keyExtractor(item, index)]; - - if (!frame || frame.index !== index) { - if (getItemLayout) { - frame = getItemLayout(data, index); - - if (__DEV__) { - var frameType = PropTypes.shape({ - length: PropTypes.number.isRequired, - offset: PropTypes.number.isRequired, - index: PropTypes.number.isRequired - }).isRequired; - PropTypes.checkPropTypes({ - frame: frameType - }, { - frame: frame - }, 'frame', 'VirtualizedList.getItemLayout'); - } - } - } - - return frame; - }; - - invariant(!_props.onScroll || !_props.onScroll.__isNative, 'Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent ' + 'to support native onScroll events with useNativeDriver'); - invariant(_props.windowSize > 0, 'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.'); - _this._fillRateHelper = new FillRateHelper(_this._getFrameMetrics); - _this._updateCellsToRenderBatcher = new Batchinator(_this._updateCellsToRender, _this.props.updateCellsBatchingPeriod); - - if (_this.props.viewabilityConfigCallbackPairs) { - _this._viewabilityTuples = _this.props.viewabilityConfigCallbackPairs.map(function (pair) { - return { - viewabilityHelper: new ViewabilityHelper(pair.viewabilityConfig), - onViewableItemsChanged: pair.onViewableItemsChanged - }; - }); - } else if (_this.props.onViewableItemsChanged) { - _this._viewabilityTuples.push({ - viewabilityHelper: new ViewabilityHelper(_this.props.viewabilityConfig), - onViewableItemsChanged: _this.props.onViewableItemsChanged - }); - } - - var initialState = { - first: _this.props.initialScrollIndex || 0, - last: Math.min(_this.props.getItemCount(_this.props.data), (_this.props.initialScrollIndex || 0) + _this.props.initialNumToRender) - 1 - }; - - if (_this._isNestedWithSameOrientation()) { - var storedState = _this.context.virtualizedList.getNestedChildState(_this.props.listKey || _this._getCellKey()); - - if (storedState) { - initialState = storedState; - _this.state = storedState; - _this._frames = storedState.frames; - } - } - - _this.state = initialState; - return _this; - } - - _createClass(VirtualizedList, [{ - key: "componentDidMount", - value: function componentDidMount() { - if (this._isNestedWithSameOrientation()) { - this.context.virtualizedList.registerAsNestedChild({ - cellKey: this._getCellKey(), - key: this.props.listKey || this._getCellKey(), - ref: this - }); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this._isNestedWithSameOrientation()) { - this.context.virtualizedList.unregisterAsNestedChild({ - key: this.props.listKey || this._getCellKey(), - state: { - first: this.state.first, - last: this.state.last, - frames: this._frames - } - }); - } - - this._updateViewableItems(null); - - this._updateCellsToRenderBatcher.dispose({ - abort: true - }); - - this._viewabilityTuples.forEach(function (tuple) { - tuple.viewabilityHelper.dispose(); - }); - - this._fillRateHelper.deactivateAndFlush(); - } - }, { - key: "_pushCells", - value: function _pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, first, last, inversionStyle) { - var _this2 = this; - - var _this$props6 = this.props, - CellRendererComponent = _this$props6.CellRendererComponent, - ItemSeparatorComponent = _this$props6.ItemSeparatorComponent, - data = _this$props6.data, - getItem = _this$props6.getItem, - getItemCount = _this$props6.getItemCount, - horizontal = _this$props6.horizontal, - keyExtractor = _this$props6.keyExtractor; - var stickyOffset = this.props.ListHeaderComponent ? 1 : 0; - var end = getItemCount(data) - 1; - var prevCellKey; - last = Math.min(end, last); - - var _loop = function _loop(ii) { - var item = getItem(data, ii); - var key = keyExtractor(item, ii); - - _this2._indicesToKeys.set(ii, key); - - if (stickyIndicesFromProps.has(ii + stickyOffset)) { - stickyHeaderIndices.push(cells.length); - } - - cells.push(React.createElement(CellRenderer, { - CellRendererComponent: CellRendererComponent, - ItemSeparatorComponent: ii < end ? ItemSeparatorComponent : undefined, - cellKey: key, - fillRateHelper: _this2._fillRateHelper, - horizontal: horizontal, - index: ii, - inversionStyle: inversionStyle, - item: item, - key: key, - prevCellKey: prevCellKey, - onUpdateSeparators: _this2._onUpdateSeparators, - onLayout: function onLayout(e) { - return _this2._onCellLayout(e, key, ii); - }, - onUnmount: _this2._onCellUnmount, - parentProps: _this2.props, - ref: function (_ref2) { - function ref(_x) { - return _ref2.apply(this, arguments); - } - - ref.toString = function () { - return _ref2.toString(); - }; - - return ref; - }(function (ref) { - _this2._cellRefs[key] = ref; - }), - __source: { - fileName: _jsxFileName, - lineNumber: 679 - } - })); - prevCellKey = key; - }; - - for (var ii = first; ii <= last; ii++) { - _loop(ii); - } - } - }, { - key: "_isVirtualizationDisabled", - value: function _isVirtualizationDisabled() { - return this.props.disableVirtualization; - } - }, { - key: "_isNestedWithSameOrientation", - value: function _isNestedWithSameOrientation() { - var nestedContext = this.context.virtualizedList; - return !!(nestedContext && !!nestedContext.horizontal === !!this.props.horizontal); - } - }, { - key: "render", - value: function render() { - var _this3 = this; - - if (__DEV__) { - var flatStyles = flattenStyle(this.props.contentContainerStyle); - warning(flatStyles == null || flatStyles.flexWrap !== 'wrap', '`flexWrap: `wrap`` is not supported with the `VirtualizedList` components.' + 'Consider using `numColumns` with `FlatList` instead.'); - } - - var _this$props7 = this.props, - ListEmptyComponent = _this$props7.ListEmptyComponent, - ListFooterComponent = _this$props7.ListFooterComponent, - ListHeaderComponent = _this$props7.ListHeaderComponent; - var _this$props8 = this.props, - data = _this$props8.data, - horizontal = _this$props8.horizontal; - - var isVirtualizationDisabled = this._isVirtualizationDisabled(); - - var inversionStyle = this.props.inverted ? this.props.horizontal ? styles.horizontallyInverted : styles.verticallyInverted : null; - var cells = []; - var stickyIndicesFromProps = new Set(this.props.stickyHeaderIndices); - var stickyHeaderIndices = []; - - if (ListHeaderComponent) { - if (stickyIndicesFromProps.has(0)) { - stickyHeaderIndices.push(0); - } - - var element = React.isValidElement(ListHeaderComponent) ? ListHeaderComponent : React.createElement(ListHeaderComponent, { - __source: { - fileName: _jsxFileName, - lineNumber: 753 - } - }); - cells.push(React.createElement(VirtualizedCellWrapper, { - cellKey: this._getCellKey() + '-header', - key: "$header", - __source: { - fileName: _jsxFileName, - lineNumber: 756 - } - }, React.createElement(View, { - onLayout: this._onLayoutHeader, - style: inversionStyle, - __source: { - fileName: _jsxFileName, - lineNumber: 759 - } - }, element))); - } - - var itemCount = this.props.getItemCount(data); - - if (itemCount > 0) { - _usedIndexForKey = false; - _keylessItemComponentName = ''; - var spacerKey = !horizontal ? 'height' : 'width'; - var lastInitialIndex = this.props.initialScrollIndex ? -1 : this.props.initialNumToRender - 1; - var _this$state = this.state, - _first = _this$state.first, - _last = _this$state.last; - - this._pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, 0, lastInitialIndex, inversionStyle); - - var firstAfterInitial = Math.max(lastInitialIndex + 1, _first); - - if (!isVirtualizationDisabled && _first > lastInitialIndex + 1) { - var insertedStickySpacer = false; - - if (stickyIndicesFromProps.size > 0) { - var stickyOffset = ListHeaderComponent ? 1 : 0; - - for (var ii = firstAfterInitial - 1; ii > lastInitialIndex; ii--) { - if (stickyIndicesFromProps.has(ii + stickyOffset)) { - var initBlock = this._getFrameMetricsApprox(lastInitialIndex); - - var stickyBlock = this._getFrameMetricsApprox(ii); - - var leadSpace = stickyBlock.offset - (initBlock.offset + initBlock.length); - cells.push(React.createElement(View, { - key: "$sticky_lead", - style: _defineProperty({}, spacerKey, leadSpace), - __source: { - fileName: _jsxFileName, - lineNumber: 798 - } - })); - - this._pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, ii, ii, inversionStyle); - - var trailSpace = this._getFrameMetricsApprox(_first).offset - (stickyBlock.offset + stickyBlock.length); - cells.push(React.createElement(View, { - key: "$sticky_trail", - style: _defineProperty({}, spacerKey, trailSpace), - __source: { - fileName: _jsxFileName, - lineNumber: 812 - } - })); - insertedStickySpacer = true; - break; - } - } - } - - if (!insertedStickySpacer) { - var _initBlock = this._getFrameMetricsApprox(lastInitialIndex); - - var firstSpace = this._getFrameMetricsApprox(_first).offset - (_initBlock.offset + _initBlock.length); - - cells.push(React.createElement(View, { - key: "$lead_spacer", - style: _defineProperty({}, spacerKey, firstSpace), - __source: { - fileName: _jsxFileName, - lineNumber: 825 - } - })); - } - } - - this._pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, firstAfterInitial, _last, inversionStyle); - - if (!this._hasWarned.keys && _usedIndexForKey) { - console.warn('VirtualizedList: missing keys for items, make sure to specify a key property on each ' + 'item or provide a custom keyExtractor.', _keylessItemComponentName); - this._hasWarned.keys = true; - } - - if (!isVirtualizationDisabled && _last < itemCount - 1) { - var lastFrame = this._getFrameMetricsApprox(_last); - - var end = this.props.getItemLayout ? itemCount - 1 : Math.min(itemCount - 1, this._highestMeasuredFrameIndex); - - var endFrame = this._getFrameMetricsApprox(end); - - var tailSpacerLength = endFrame.offset + endFrame.length - (lastFrame.offset + lastFrame.length); - cells.push(React.createElement(View, { - key: "$tail_spacer", - style: _defineProperty({}, spacerKey, tailSpacerLength), - __source: { - fileName: _jsxFileName, - lineNumber: 859 - } - })); - } - } else if (ListEmptyComponent) { - var _element = React.isValidElement(ListEmptyComponent) ? ListEmptyComponent : React.createElement(ListEmptyComponent, { - __source: { - fileName: _jsxFileName, - lineNumber: 869 - } - }); - - cells.push(React.cloneElement(_element, { - key: '$empty', - onLayout: function onLayout(event) { - _this3._onLayoutEmpty(event); - - if (_element.props.onLayout) { - _element.props.onLayout(event); - } - }, - style: [_element.props.style, inversionStyle] - })); - } - - if (ListFooterComponent) { - var _element2 = React.isValidElement(ListFooterComponent) ? ListFooterComponent : React.createElement(ListFooterComponent, { - __source: { - fileName: _jsxFileName, - lineNumber: 889 - } - }); - - cells.push(React.createElement(VirtualizedCellWrapper, { - cellKey: this._getCellKey() + '-footer', - key: "$footer", - __source: { - fileName: _jsxFileName, - lineNumber: 892 - } - }, React.createElement(View, { - onLayout: this._onLayoutFooter, - style: inversionStyle, - __source: { - fileName: _jsxFileName, - lineNumber: 895 - } - }, _element2))); - } - - var scrollProps = _objectSpread({}, this.props, { - onContentSizeChange: this._onContentSizeChange, - onLayout: this._onLayout, - onScroll: this._onScroll, - onScrollBeginDrag: this._onScrollBeginDrag, - onScrollEndDrag: this._onScrollEndDrag, - onMomentumScrollEnd: this._onMomentumScrollEnd, - scrollEventThrottle: this.props.scrollEventThrottle, - invertStickyHeaders: this.props.invertStickyHeaders !== undefined ? this.props.invertStickyHeaders : this.props.inverted, - stickyHeaderIndices: stickyHeaderIndices - }); - - if (inversionStyle) { - scrollProps.style = [inversionStyle, this.props.style]; - } - - this._hasMore = this.state.last < this.props.getItemCount(this.props.data) - 1; - var ret = React.cloneElement((this.props.renderScrollComponent || this._defaultRenderScrollComponent)(scrollProps), { - ref: this._captureScrollRef - }, cells); - - if (this.props.debug) { - return React.createElement(View, { - style: { - flex: 1 - }, - __source: { - fileName: _jsxFileName, - lineNumber: 941 - } - }, ret, this._renderDebugOverlay()); - } else { - return ret; - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props9 = this.props, - data = _this$props9.data, - extraData = _this$props9.extraData; - - if (data !== prevProps.data || extraData !== prevProps.extraData) { - this._hasDataChangedSinceEndReached = true; - - this._viewabilityTuples.forEach(function (tuple) { - tuple.viewabilityHelper.resetViewableIndices(); - }); - } - - this._scheduleCellsToRenderUpdate(); - } - }, { - key: "_computeBlankness", - value: function _computeBlankness() { - this._fillRateHelper.computeBlankness(this.props, this.state, this._scrollMetrics); - } - }, { - key: "_onCellLayout", - value: function _onCellLayout(e, cellKey, index) { - var layout = e.nativeEvent.layout; - var next = { - offset: this._selectOffset(layout), - length: this._selectLength(layout), - index: index, - inLayout: true - }; - var curr = this._frames[cellKey]; - - if (!curr || next.offset !== curr.offset || next.length !== curr.length || index !== curr.index) { - this._totalCellLength += next.length - (curr ? curr.length : 0); - this._totalCellsMeasured += curr ? 0 : 1; - this._averageCellLength = this._totalCellLength / this._totalCellsMeasured; - this._frames[cellKey] = next; - this._highestMeasuredFrameIndex = Math.max(this._highestMeasuredFrameIndex, index); - - this._scheduleCellsToRenderUpdate(); - } else { - this._frames[cellKey].inLayout = true; - } - - var childListKeys = this._cellKeysToChildListKeys.get(cellKey); - - if (childListKeys) { - for (var _iterator2 = childListKeys, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref7; - - if (_isArray2) { - if (_i2 >= _iterator2.length) break; - _ref7 = _iterator2[_i2++]; - } else { - _i2 = _iterator2.next(); - if (_i2.done) break; - _ref7 = _i2.value; - } - - var _childKey2 = _ref7; - - var childList = this._nestedChildLists.get(_childKey2); - - childList && childList.ref && childList.ref.measureLayoutRelativeToContainingList(); - } - } - - this._computeBlankness(); - } - }, { - key: "measureLayoutRelativeToContainingList", - value: function measureLayoutRelativeToContainingList() { - var _this4 = this; - - UIManager.measureLayout(ReactNative.findNodeHandle(this), ReactNative.findNodeHandle(this.context.virtualizedList.getOutermostParentListRef()), function (error) { - console.warn("VirtualizedList: Encountered an error while measuring a list's" + ' offset from its containing VirtualizedList.'); - }, function (x, y, width, height) { - _this4._offsetFromParentVirtualizedList = _this4._selectOffset({ - x: x, - y: y - }); - _this4._scrollMetrics.contentLength = _this4._selectLength({ - width: width, - height: height - }); - - var scrollMetrics = _this4._convertParentScrollMetrics(_this4.context.virtualizedList.getScrollMetrics()); - - _this4._scrollMetrics.visibleLength = scrollMetrics.visibleLength; - _this4._scrollMetrics.offset = scrollMetrics.offset; - }); - } - }, { - key: "_renderDebugOverlay", - value: function _renderDebugOverlay() { - var normalize = this._scrollMetrics.visibleLength / this._scrollMetrics.contentLength; - var framesInLayout = []; - var itemCount = this.props.getItemCount(this.props.data); - - for (var ii = 0; ii < itemCount; ii++) { - var frame = this._getFrameMetricsApprox(ii); - - if (frame.inLayout) { - framesInLayout.push(frame); - } - } - - var windowTop = this._getFrameMetricsApprox(this.state.first).offset; - - var frameLast = this._getFrameMetricsApprox(this.state.last); - - var windowLen = frameLast.offset + frameLast.length - windowTop; - var visTop = this._scrollMetrics.offset; - var visLen = this._scrollMetrics.visibleLength; - var baseStyle = { - position: 'absolute', - top: 0, - right: 0 - }; - return React.createElement(View, { - style: _objectSpread({}, baseStyle, { - bottom: 0, - width: 20, - borderColor: 'blue', - borderWidth: 1 - }), - __source: { - fileName: _jsxFileName, - lineNumber: 1171 - } - }, framesInLayout.map(function (f, ii) { - return React.createElement(View, { - key: 'f' + ii, - style: _objectSpread({}, baseStyle, { - left: 0, - top: f.offset * normalize, - height: f.length * normalize, - backgroundColor: 'orange' - }), - __source: { - fileName: _jsxFileName, - lineNumber: 1180 - } - }); - }), React.createElement(View, { - style: _objectSpread({}, baseStyle, { - left: 0, - top: windowTop * normalize, - height: windowLen * normalize, - borderColor: 'green', - borderWidth: 2 - }), - __source: { - fileName: _jsxFileName, - lineNumber: 1191 - } - }), React.createElement(View, { - style: _objectSpread({}, baseStyle, { - left: 0, - top: visTop * normalize, - height: visLen * normalize, - borderColor: 'red', - borderWidth: 2 - }), - __source: { - fileName: _jsxFileName, - lineNumber: 1201 - } - })); - } - }, { - key: "_selectLength", - value: function _selectLength(metrics) { - return !this.props.horizontal ? metrics.height : metrics.width; - } - }, { - key: "_selectOffset", - value: function _selectOffset(metrics) { - return (!this.props.horizontal ? metrics.y : metrics.x) - this._headerLength; - } - }, { - key: "_maybeCallOnEndReached", - value: function _maybeCallOnEndReached() { - var _this$props10 = this.props, - data = _this$props10.data, - getItemCount = _this$props10.getItemCount, - onEndReached = _this$props10.onEndReached, - onEndReachedThreshold = _this$props10.onEndReachedThreshold; - var _this$_scrollMetrics2 = this._scrollMetrics, - contentLength = _this$_scrollMetrics2.contentLength, - visibleLength = _this$_scrollMetrics2.visibleLength, - offset = _this$_scrollMetrics2.offset; - var distanceFromEnd = contentLength - visibleLength - offset; - - if (onEndReached && this.state.last === getItemCount(data) - 1 && distanceFromEnd < onEndReachedThreshold * visibleLength && (this._hasDataChangedSinceEndReached || this._scrollMetrics.contentLength !== this._sentEndForContentLength)) { - this._hasDataChangedSinceEndReached = false; - this._sentEndForContentLength = this._scrollMetrics.contentLength; - onEndReached({ - distanceFromEnd: distanceFromEnd - }); - } - } - }, { - key: "_scheduleCellsToRenderUpdate", - value: function _scheduleCellsToRenderUpdate() { - var _this$state2 = this.state, - first = _this$state2.first, - last = _this$state2.last; - var _this$_scrollMetrics3 = this._scrollMetrics, - offset = _this$_scrollMetrics3.offset, - visibleLength = _this$_scrollMetrics3.visibleLength, - velocity = _this$_scrollMetrics3.velocity; - var itemCount = this.props.getItemCount(this.props.data); - var hiPri = false; - var scrollingThreshold = this.props.onEndReachedThreshold * visibleLength / 2; - - if (first > 0) { - var distTop = offset - this._getFrameMetricsApprox(first).offset; - - hiPri = hiPri || distTop < 0 || velocity < -2 && distTop < scrollingThreshold; - } - - if (last < itemCount - 1) { - var distBottom = this._getFrameMetricsApprox(last).offset - (offset + visibleLength); - hiPri = hiPri || distBottom < 0 || velocity > 2 && distBottom < scrollingThreshold; - } - - if (hiPri && this._averageCellLength) { - this._updateCellsToRenderBatcher.dispose({ - abort: true - }); - - this._updateCellsToRender(); - - return; - } else { - this._updateCellsToRenderBatcher.schedule(); - } - } - }, { - key: "_updateViewableItems", - value: function _updateViewableItems(data) { - var _this5 = this; - - var getItemCount = this.props.getItemCount; - - this._viewabilityTuples.forEach(function (tuple) { - tuple.viewabilityHelper.onUpdate(getItemCount(data), _this5._scrollMetrics.offset, _this5._scrollMetrics.visibleLength, _this5._getFrameMetrics, _this5._createViewToken, tuple.onViewableItemsChanged, _this5.state); - }); - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(newProps, prevState) { - var data = newProps.data, - extraData = newProps.extraData, - getItemCount = newProps.getItemCount, - maxToRenderPerBatch = newProps.maxToRenderPerBatch; - return { - first: Math.max(0, Math.min(prevState.first, getItemCount(data) - 1 - maxToRenderPerBatch)), - last: Math.max(0, Math.min(prevState.last, getItemCount(data) - 1)) - }; - } - }]); - - _inherits(VirtualizedList, _React$PureComponent); - - return VirtualizedList; - }(React.PureComponent); - - VirtualizedList.defaultProps = { - disableVirtualization: false, - horizontal: false, - initialNumToRender: 10, - keyExtractor: function keyExtractor(item, index) { - if (item.key != null) { - return item.key; - } - - _usedIndexForKey = true; - - if (item.type && item.type.displayName) { - _keylessItemComponentName = item.type.displayName; - } - - return String(index); - }, - maxToRenderPerBatch: 10, - onEndReachedThreshold: 2, - scrollEventThrottle: 50, - updateCellsBatchingPeriod: 50, - windowSize: 21 - }; - VirtualizedList.contextTypes = { - virtualizedCell: PropTypes.shape({ - cellKey: PropTypes.string - }), - virtualizedList: PropTypes.shape({ - getScrollMetrics: PropTypes.func, - horizontal: PropTypes.bool, - getOutermostParentListRef: PropTypes.func, - getNestedChildState: PropTypes.func, - registerAsNestedChild: PropTypes.func, - unregisterAsNestedChild: PropTypes.func - }) - }; - VirtualizedList.childContextTypes = { - virtualizedList: PropTypes.shape({ - getScrollMetrics: PropTypes.func, - horizontal: PropTypes.bool, - getOutermostParentListRef: PropTypes.func, - getNestedChildState: PropTypes.func, - registerAsNestedChild: PropTypes.func, - unregisterAsNestedChild: PropTypes.func - }) - }; - VirtualizedList = _wrapComponent("VirtualizedList")(VirtualizedList); - - var CellRenderer = function (_React$Component) { - function CellRenderer() { - var _getPrototypeOf2; - - var _temp, _this6; - - _classCallCheck(this, CellRenderer); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this6, (_temp = _this6 = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(CellRenderer)).call.apply(_getPrototypeOf2, [this].concat(args))), _this6.state = { - separatorProps: { - highlighted: false, - leadingItem: _this6.props.item - } - }, _this6._separators = { - highlight: function highlight() { - var _this6$props = _this6.props, - cellKey = _this6$props.cellKey, - prevCellKey = _this6$props.prevCellKey; - - _this6.props.onUpdateSeparators([cellKey, prevCellKey], { - highlighted: true - }); - }, - unhighlight: function unhighlight() { - var _this6$props2 = _this6.props, - cellKey = _this6$props2.cellKey, - prevCellKey = _this6$props2.prevCellKey; - - _this6.props.onUpdateSeparators([cellKey, prevCellKey], { - highlighted: false - }); - }, - updateProps: function updateProps(select, newProps) { - var _this6$props3 = _this6.props, - cellKey = _this6$props3.cellKey, - prevCellKey = _this6$props3.prevCellKey; - - _this6.props.onUpdateSeparators([select === 'leading' ? prevCellKey : cellKey], newProps); - } - }, _temp)); - } - - _createClass(CellRenderer, [{ - key: "getChildContext", - value: function getChildContext() { - return { - virtualizedCell: { - cellKey: this.props.cellKey - } - }; - } - }, { - key: "updateSeparatorProps", - value: function updateSeparatorProps(newProps) { - this.setState(function (state) { - return { - separatorProps: _objectSpread({}, state.separatorProps, newProps) - }; - }); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.props.onUnmount(this.props.cellKey); - } - }, { - key: "render", - value: function render() { - var _this$props11 = this.props, - CellRendererComponent = _this$props11.CellRendererComponent, - ItemSeparatorComponent = _this$props11.ItemSeparatorComponent, - fillRateHelper = _this$props11.fillRateHelper, - horizontal = _this$props11.horizontal, - item = _this$props11.item, - index = _this$props11.index, - inversionStyle = _this$props11.inversionStyle, - parentProps = _this$props11.parentProps; - var renderItem = parentProps.renderItem, - getItemLayout = parentProps.getItemLayout; - invariant(renderItem, 'no renderItem!'); - var element = renderItem({ - item: item, - index: index, - separators: this._separators - }); - var onLayout = getItemLayout && !parentProps.debug && !fillRateHelper.enabled() ? undefined : this.props.onLayout; - var itemSeparator = ItemSeparatorComponent && React.createElement(ItemSeparatorComponent, _extends({}, this.state.separatorProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 1703 - } - })); - var cellStyle = inversionStyle ? horizontal ? [{ - flexDirection: 'row-reverse' - }, inversionStyle] : [{ - flexDirection: 'column-reverse' - }, inversionStyle] : horizontal ? [{ - flexDirection: 'row' - }, inversionStyle] : inversionStyle; - - if (!CellRendererComponent) { - return React.createElement(View, { - style: cellStyle, - onLayout: onLayout, - __source: { - fileName: _jsxFileName, - lineNumber: 1714 - } - }, element, itemSeparator); - } - - return React.createElement(CellRendererComponent, _extends({}, this.props, { - style: cellStyle, - onLayout: onLayout, - __source: { - fileName: _jsxFileName, - lineNumber: 1721 - } - }), element, itemSeparator); - } - }]); - - _inherits(CellRenderer, _React$Component); - - return CellRenderer; - }(React.Component); - - CellRenderer.childContextTypes = { - virtualizedCell: PropTypes.shape({ - cellKey: PropTypes.string - }) - }; - CellRenderer = _wrapComponent("CellRenderer")(CellRenderer); - - var VirtualizedCellWrapper = function (_React$Component2) { - function VirtualizedCellWrapper() { - _classCallCheck(this, VirtualizedCellWrapper); - - return _possibleConstructorReturn(this, _getPrototypeOf(VirtualizedCellWrapper).apply(this, arguments)); - } - - _createClass(VirtualizedCellWrapper, [{ - key: "getChildContext", - value: function getChildContext() { - return { - virtualizedCell: { - cellKey: this.props.cellKey - } - }; - } - }, { - key: "render", - value: function render() { - return this.props.children; - } - }]); - - _inherits(VirtualizedCellWrapper, _React$Component2); - - return VirtualizedCellWrapper; - }(React.Component); - - VirtualizedCellWrapper.childContextTypes = { - virtualizedCell: PropTypes.shape({ - cellKey: PropTypes.string - }) - }; - VirtualizedCellWrapper = _wrapComponent("VirtualizedCellWrapper")(VirtualizedCellWrapper); - var styles = StyleSheet.create({ - verticallyInverted: { - transform: [{ - scaleY: -1 - }] - }, - horizontallyInverted: { - transform: [{ - scaleX: -1 - }] - } - }); - module.exports = VirtualizedList; -},50,[122,161,446,447,143,121,67,34,28,83,87,48,448,134,395,4,111,449],"node_modules/react-native/Libraries/Lists/VirtualizedList.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var InteractionManager = _$$_REQUIRE(_dependencyMap[0], 'InteractionManager'); - - var Batchinator = function () { - function Batchinator(callback, delayMS) { - _classCallCheck(this, Batchinator); - - this._delay = delayMS; - this._callback = callback; - } - - _createClass(Batchinator, [{ - key: "dispose", - value: function dispose() { - var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { - abort: false - }; - - if (this._taskHandle) { - this._taskHandle.cancel(); - - if (!options.abort) { - this._callback(); - } - - this._taskHandle = null; - } - } - }, { - key: "schedule", - value: function schedule() { - var _this = this; - - if (this._taskHandle) { - return; - } - - var timeoutHandle = setTimeout(function () { - _this._taskHandle = InteractionManager.runAfterInteractions(function () { - _this._taskHandle = null; - - _this._callback(); - }); - }, this._delay); - this._taskHandle = { - cancel: function cancel() { - return clearTimeout(timeoutHandle); - } - }; - } - }]); - - return Batchinator; - }(); - - module.exports = Batchinator; -},446,[70],"node_modules/react-native/Libraries/Interaction/Batchinator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - var performanceNow = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/performanceNow'); - - var warning = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/warning'); - - var Info = function Info() { - _classCallCheck(this, Info); - - this.any_blank_count = 0; - this.any_blank_ms = 0; - this.any_blank_speed_sum = 0; - this.mostly_blank_count = 0; - this.mostly_blank_ms = 0; - this.pixels_blank = 0; - this.pixels_sampled = 0; - this.pixels_scrolled = 0; - this.total_time_spent = 0; - this.sample_count = 0; - }; - - var DEBUG = false; - var _listeners = []; - var _minSampleCount = 10; - - var _sampleRate = DEBUG ? 1 : null; - - var FillRateHelper = function () { - _createClass(FillRateHelper, null, [{ - key: "addListener", - value: function addListener(callback) { - warning(_sampleRate !== null, 'Call `FillRateHelper.setSampleRate` before `addListener`.'); - - _listeners.push(callback); - - return { - remove: function remove() { - _listeners = _listeners.filter(function (listener) { - return callback !== listener; - }); - } - }; - } - }, { - key: "setSampleRate", - value: function setSampleRate(sampleRate) { - _sampleRate = sampleRate; - } - }, { - key: "setMinSampleCount", - value: function setMinSampleCount(minSampleCount) { - _minSampleCount = minSampleCount; - } - }]); - - function FillRateHelper(getFrameMetrics) { - _classCallCheck(this, FillRateHelper); - - this._anyBlankStartTime = null; - this._enabled = false; - this._info = new Info(); - this._mostlyBlankStartTime = null; - this._samplesStartTime = null; - this._getFrameMetrics = getFrameMetrics; - this._enabled = (_sampleRate || 0) > Math.random(); - - this._resetData(); - } - - _createClass(FillRateHelper, [{ - key: "activate", - value: function activate() { - if (this._enabled && this._samplesStartTime == null) { - DEBUG && console.debug('FillRateHelper: activate'); - this._samplesStartTime = performanceNow(); - } - } - }, { - key: "deactivateAndFlush", - value: function deactivateAndFlush() { - if (!this._enabled) { - return; - } - - var start = this._samplesStartTime; - - if (start == null) { - DEBUG && console.debug('FillRateHelper: bail on deactivate with no start time'); - return; - } - - if (this._info.sample_count < _minSampleCount) { - this._resetData(); - - return; - } - - var total_time_spent = performanceNow() - start; - - var info = _objectSpread({}, this._info, { - total_time_spent: total_time_spent - }); - - if (DEBUG) { - var derived = { - avg_blankness: this._info.pixels_blank / this._info.pixels_sampled, - avg_speed: this._info.pixels_scrolled / (total_time_spent / 1000), - avg_speed_when_any_blank: this._info.any_blank_speed_sum / this._info.any_blank_count, - any_blank_per_min: this._info.any_blank_count / (total_time_spent / 1000 / 60), - any_blank_time_frac: this._info.any_blank_ms / total_time_spent, - mostly_blank_per_min: this._info.mostly_blank_count / (total_time_spent / 1000 / 60), - mostly_blank_time_frac: this._info.mostly_blank_ms / total_time_spent - }; - - for (var key in derived) { - derived[key] = Math.round(1000 * derived[key]) / 1000; - } - - console.debug('FillRateHelper deactivateAndFlush: ', { - derived: derived, - info: info - }); - } - - _listeners.forEach(function (listener) { - return listener(info); - }); - - this._resetData(); - } - }, { - key: "computeBlankness", - value: function computeBlankness(props, state, scrollMetrics) { - if (!this._enabled || props.getItemCount(props.data) === 0 || this._samplesStartTime == null) { - return 0; - } - - var dOffset = scrollMetrics.dOffset, - offset = scrollMetrics.offset, - velocity = scrollMetrics.velocity, - visibleLength = scrollMetrics.visibleLength; - this._info.sample_count++; - this._info.pixels_sampled += Math.round(visibleLength); - this._info.pixels_scrolled += Math.round(Math.abs(dOffset)); - var scrollSpeed = Math.round(Math.abs(velocity) * 1000); - var now = performanceNow(); - - if (this._anyBlankStartTime != null) { - this._info.any_blank_ms += now - this._anyBlankStartTime; - } - - this._anyBlankStartTime = null; - - if (this._mostlyBlankStartTime != null) { - this._info.mostly_blank_ms += now - this._mostlyBlankStartTime; - } - - this._mostlyBlankStartTime = null; - var blankTop = 0; - var first = state.first; - - var firstFrame = this._getFrameMetrics(first); - - while (first <= state.last && (!firstFrame || !firstFrame.inLayout)) { - firstFrame = this._getFrameMetrics(first); - first++; - } - - if (firstFrame && first > 0) { - blankTop = Math.min(visibleLength, Math.max(0, firstFrame.offset - offset)); - } - - var blankBottom = 0; - var last = state.last; - - var lastFrame = this._getFrameMetrics(last); - - while (last >= state.first && (!lastFrame || !lastFrame.inLayout)) { - lastFrame = this._getFrameMetrics(last); - last--; - } - - if (lastFrame && last < props.getItemCount(props.data) - 1) { - var bottomEdge = lastFrame.offset + lastFrame.length; - blankBottom = Math.min(visibleLength, Math.max(0, offset + visibleLength - bottomEdge)); - } - - var pixels_blank = Math.round(blankTop + blankBottom); - var blankness = pixels_blank / visibleLength; - - if (blankness > 0) { - this._anyBlankStartTime = now; - this._info.any_blank_speed_sum += scrollSpeed; - this._info.any_blank_count++; - this._info.pixels_blank += pixels_blank; - - if (blankness > 0.5) { - this._mostlyBlankStartTime = now; - this._info.mostly_blank_count++; - } - } else if (scrollSpeed < 0.01 || Math.abs(dOffset) < 1) { - this.deactivateAndFlush(); - } - - return blankness; - } - }, { - key: "enabled", - value: function enabled() { - return this._enabled; - } - }, { - key: "_resetData", - value: function _resetData() { - this._anyBlankStartTime = null; - this._info = new Info(); - this._mostlyBlankStartTime = null; - this._samplesStartTime = null; - } - }]); - - return FillRateHelper; - }(); - - module.exports = FillRateHelper; -},447,[109,111],"node_modules/react-native/Libraries/Lists/FillRateHelper.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } - - function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } - - function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - - function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); - - var ViewabilityHelper = function () { - function ViewabilityHelper() { - var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { - viewAreaCoveragePercentThreshold: 0 - }; - - _classCallCheck(this, ViewabilityHelper); - - this._hasInteracted = false; - this._timers = new Set(); - this._viewableIndices = []; - this._viewableItems = new Map(); - this._config = config; - } - - _createClass(ViewabilityHelper, [{ - key: "dispose", - value: function dispose() { - this._timers.forEach(clearTimeout); - } - }, { - key: "computeViewableItems", - value: function computeViewableItems(itemCount, scrollOffset, viewportHeight, getFrameMetrics, renderRange) { - var _this$_config = this._config, - itemVisiblePercentThreshold = _this$_config.itemVisiblePercentThreshold, - viewAreaCoveragePercentThreshold = _this$_config.viewAreaCoveragePercentThreshold; - var viewAreaMode = viewAreaCoveragePercentThreshold != null; - var viewablePercentThreshold = viewAreaMode ? viewAreaCoveragePercentThreshold : itemVisiblePercentThreshold; - invariant(viewablePercentThreshold != null && itemVisiblePercentThreshold != null !== (viewAreaCoveragePercentThreshold != null), 'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold'); - var viewableIndices = []; - - if (itemCount === 0) { - return viewableIndices; - } - - var firstVisible = -1; - - var _ref = renderRange || { - first: 0, - last: itemCount - 1 - }, - first = _ref.first, - last = _ref.last; - - invariant(last < itemCount, 'Invalid render range ' + JSON.stringify({ - renderRange: renderRange, - itemCount: itemCount - })); - - for (var idx = first; idx <= last; idx++) { - var metrics = getFrameMetrics(idx); - - if (!metrics) { - continue; - } - - var top = metrics.offset - scrollOffset; - var bottom = top + metrics.length; - - if (top < viewportHeight && bottom > 0) { - firstVisible = idx; - - if (_isViewable(viewAreaMode, viewablePercentThreshold, top, bottom, viewportHeight, metrics.length)) { - viewableIndices.push(idx); - } - } else if (firstVisible >= 0) { - break; - } - } - - return viewableIndices; - } - }, { - key: "onUpdate", - value: function onUpdate(itemCount, scrollOffset, viewportHeight, getFrameMetrics, createViewToken, onViewableItemsChanged, renderRange) { - var _this = this; - - if (this._config.waitForInteraction && !this._hasInteracted || itemCount === 0 || !getFrameMetrics(0)) { - return; - } - - var viewableIndices = []; - - if (itemCount) { - viewableIndices = this.computeViewableItems(itemCount, scrollOffset, viewportHeight, getFrameMetrics, renderRange); - } - - if (this._viewableIndices.length === viewableIndices.length && this._viewableIndices.every(function (v, ii) { - return v === viewableIndices[ii]; - })) { - return; - } - - this._viewableIndices = viewableIndices; - - if (this._config.minimumViewTime) { - var handle = setTimeout(function () { - _this._timers.delete(handle); - - _this._onUpdateSync(viewableIndices, onViewableItemsChanged, createViewToken); - }, this._config.minimumViewTime); - - this._timers.add(handle); - } else { - this._onUpdateSync(viewableIndices, onViewableItemsChanged, createViewToken); - } - } - }, { - key: "resetViewableIndices", - value: function resetViewableIndices() { - this._viewableIndices = []; - } - }, { - key: "recordInteraction", - value: function recordInteraction() { - this._hasInteracted = true; - } - }, { - key: "_onUpdateSync", - value: function _onUpdateSync(viewableIndicesToCheck, onViewableItemsChanged, createViewToken) { - var _this2 = this; - - viewableIndicesToCheck = viewableIndicesToCheck.filter(function (ii) { - return _this2._viewableIndices.includes(ii); - }); - var prevItems = this._viewableItems; - var nextItems = new Map(viewableIndicesToCheck.map(function (ii) { - var viewable = createViewToken(ii, true); - return [viewable.key, viewable]; - })); - var changed = []; - - for (var _iterator = nextItems, _isArray = Array.isArray(_iterator), _i2 = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref4; - - if (_isArray) { - if (_i2 >= _iterator.length) break; - _ref4 = _iterator[_i2++]; - } else { - _i2 = _iterator.next(); - if (_i2.done) break; - _ref4 = _i2.value; - } - - var _ref8 = _ref4; - - var _ref3 = _slicedToArray(_ref8, 2); - - var _key3 = _ref3[0]; - var _viewable2 = _ref3[1]; - - if (!prevItems.has(_key3)) { - changed.push(_viewable2); - } - } - - for (var _iterator2 = prevItems, _isArray2 = Array.isArray(_iterator2), _i3 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref7; - - if (_isArray2) { - if (_i3 >= _iterator2.length) break; - _ref7 = _iterator2[_i3++]; - } else { - _i3 = _iterator2.next(); - if (_i3.done) break; - _ref7 = _i3.value; - } - - var _ref9 = _ref7; - - var _ref6 = _slicedToArray(_ref9, 2); - - var _key4 = _ref6[0]; - var _viewable3 = _ref6[1]; - - if (!nextItems.has(_key4)) { - changed.push(_objectSpread({}, _viewable3, { - isViewable: false - })); - } - } - - if (changed.length > 0) { - this._viewableItems = nextItems; - onViewableItemsChanged({ - viewableItems: Array.from(nextItems.values()), - changed: changed, - viewabilityConfig: this._config - }); - } - } - }]); - - return ViewabilityHelper; - }(); - - function _isViewable(viewAreaMode, viewablePercentThreshold, top, bottom, viewportHeight, itemLength) { - if (_isEntirelyVisible(top, bottom, viewportHeight)) { - return true; - } else { - var pixels = _getPixelsVisible(top, bottom, viewportHeight); - - var percent = 100 * (viewAreaMode ? pixels / viewportHeight : pixels / itemLength); - return percent >= viewablePercentThreshold; - } - } - - function _getPixelsVisible(top, bottom, viewportHeight) { - var visibleHeight = Math.min(bottom, viewportHeight) - Math.max(top, 0); - return Math.max(0, visibleHeight); - } - - function _isEntirelyVisible(top, bottom, viewportHeight) { - return top >= 0 && bottom <= viewportHeight && bottom > top; - } - - module.exports = ViewabilityHelper; -},448,[4],"node_modules/react-native/Libraries/Lists/ViewabilityHelper.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } - - function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } - - function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - - function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); - - function elementsThatOverlapOffsets(offsets, itemCount, getFrameMetrics) { - var out = []; - var outLength = 0; - - for (var ii = 0; ii < itemCount; ii++) { - var frame = getFrameMetrics(ii); - var trailingOffset = frame.offset + frame.length; - - for (var kk = 0; kk < offsets.length; kk++) { - if (out[kk] == null && trailingOffset >= offsets[kk]) { - out[kk] = ii; - outLength++; - - if (kk === offsets.length - 1) { - invariant(outLength === offsets.length, 'bad offsets input, should be in increasing order: %s', JSON.stringify(offsets)); - return out; - } - } - } - } - - return out; - } - - function newRangeCount(prev, next) { - return next.last - next.first + 1 - Math.max(0, 1 + Math.min(next.last, prev.last) - Math.max(next.first, prev.first)); - } - - function computeWindowedRenderLimits(props, prev, getFrameMetricsApprox, scrollMetrics) { - var data = props.data, - getItemCount = props.getItemCount, - maxToRenderPerBatch = props.maxToRenderPerBatch, - windowSize = props.windowSize; - var itemCount = getItemCount(data); - - if (itemCount === 0) { - return prev; - } - - var offset = scrollMetrics.offset, - velocity = scrollMetrics.velocity, - visibleLength = scrollMetrics.visibleLength; - var visibleBegin = Math.max(0, offset); - var visibleEnd = visibleBegin + visibleLength; - var overscanLength = (windowSize - 1) * visibleLength; - var leadFactor = 0.5; - var fillPreference = velocity > 1 ? 'after' : velocity < -1 ? 'before' : 'none'; - var overscanBegin = Math.max(0, visibleBegin - (1 - leadFactor) * overscanLength); - var overscanEnd = Math.max(0, visibleEnd + leadFactor * overscanLength); - var lastItemOffset = getFrameMetricsApprox(itemCount - 1).offset; - - if (lastItemOffset < overscanBegin) { - return { - first: Math.max(0, itemCount - 1 - maxToRenderPerBatch), - last: itemCount - 1 - }; - } - - var _elementsThatOverlapO = elementsThatOverlapOffsets([overscanBegin, visibleBegin, visibleEnd, overscanEnd], props.getItemCount(props.data), getFrameMetricsApprox), - _elementsThatOverlapO2 = _slicedToArray(_elementsThatOverlapO, 4), - overscanFirst = _elementsThatOverlapO2[0], - first = _elementsThatOverlapO2[1], - last = _elementsThatOverlapO2[2], - overscanLast = _elementsThatOverlapO2[3]; - - overscanFirst = overscanFirst == null ? 0 : overscanFirst; - first = first == null ? Math.max(0, overscanFirst) : first; - overscanLast = overscanLast == null ? itemCount - 1 : overscanLast; - last = last == null ? Math.min(overscanLast, first + maxToRenderPerBatch - 1) : last; - var visible = { - first: first, - last: last - }; - var newCellCount = newRangeCount(prev, visible); - - while (true) { - if (first <= overscanFirst && last >= overscanLast) { - break; - } - - var maxNewCells = newCellCount >= maxToRenderPerBatch; - var firstWillAddMore = first <= prev.first || first > prev.last; - var firstShouldIncrement = first > overscanFirst && (!maxNewCells || !firstWillAddMore); - var lastWillAddMore = last >= prev.last || last < prev.first; - var lastShouldIncrement = last < overscanLast && (!maxNewCells || !lastWillAddMore); - - if (maxNewCells && !firstShouldIncrement && !lastShouldIncrement) { - break; - } - - if (firstShouldIncrement && !(fillPreference === 'after' && lastShouldIncrement && lastWillAddMore)) { - if (firstWillAddMore) { - newCellCount++; - } - - first--; - } - - if (lastShouldIncrement && !(fillPreference === 'before' && firstShouldIncrement && firstWillAddMore)) { - if (lastWillAddMore) { - newCellCount++; - } - - last++; - } - } - - if (!(last >= first && first >= 0 && last < itemCount && first >= overscanFirst && last <= overscanLast && first <= visible.first && last >= visible.last)) { - throw new Error('Bad window calculation ' + JSON.stringify({ - first: first, - last: last, - itemCount: itemCount, - overscanFirst: overscanFirst, - overscanLast: overscanLast, - visible: visible - })); - } - - return { - first: first, - last: last - }; - } - - var VirtualizeUtils = { - computeWindowedRenderLimits: computeWindowedRenderLimits, - elementsThatOverlapOffsets: elementsThatOverlapOffsets, - newRangeCount: newRangeCount - }; - module.exports = VirtualizeUtils; -},449,[4],"node_modules/react-native/Libraries/Lists/VirtualizeUtils.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Image/ImageBackground.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - ImageBackground: { - displayName: "ImageBackground" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Image/ImageBackground.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var Image = _$$_REQUIRE(_dependencyMap[2], 'Image'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[4], 'StyleSheet'); - - var View = _$$_REQUIRE(_dependencyMap[5], 'View'); - - var ensureComponentIsNative = _$$_REQUIRE(_dependencyMap[6], 'ensureComponentIsNative'); - - var ImageBackground = function (_React$Component) { - function ImageBackground() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, ImageBackground); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ImageBackground)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._viewRef = null, _this._captureRef = function (ref) { - _this._viewRef = ref; - }, _temp)); - } - - _createClass(ImageBackground, [{ - key: "setNativeProps", - value: function setNativeProps(props) { - var viewRef = this._viewRef; - - if (viewRef) { - ensureComponentIsNative(viewRef); - viewRef.setNativeProps(props); - } - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - children = _this$props.children, - style = _this$props.style, - imageStyle = _this$props.imageStyle, - imageRef = _this$props.imageRef, - props = _objectWithoutProperties(_this$props, ["children", "style", "imageStyle", "imageRef"]); - - return React.createElement(View, { - style: style, - ref: this._captureRef, - __source: { - fileName: _jsxFileName, - lineNumber: 63 - } - }, React.createElement(Image, _extends({}, props, { - style: [StyleSheet.absoluteFill, { - width: style.width, - height: style.height - }, imageStyle], - ref: imageRef, - __source: { - fileName: _jsxFileName, - lineNumber: 64 - } - })), children); - } - }]); - - _inherits(ImageBackground, _React$Component); - - return ImageBackground; - }(React.Component); - - ImageBackground = _wrapComponent("ImageBackground")(ImageBackground); - module.exports = ImageBackground; -},14,[122,161,13,121,83,48,450],"node_modules/react-native/Libraries/Image/ImageBackground.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); - - var ensureComponentIsNative = function ensureComponentIsNative(component) { - invariant(component && typeof component.setNativeProps === 'function', 'Touchable child must either be native or forward setNativeProps to a ' + 'native component'); - }; - - module.exports = ensureComponentIsNative; -},450,[4],"node_modules/react-native/Libraries/Components/Touchable/ensureComponentIsNative.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var RCTImageEditingManager = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').ImageEditingManager; - - var ImageEditor = function () { - function ImageEditor() { - _classCallCheck(this, ImageEditor); - } - - _createClass(ImageEditor, null, [{ - key: "cropImage", - value: function cropImage(uri, cropData, success, failure) { - RCTImageEditingManager.cropImage(uri, cropData, success, failure); - } - }]); - - return ImageEditor; - }(); - - module.exports = ImageEditor; -},15,[93],"node_modules/react-native/Libraries/Image/ImageEditor.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var RCTImageStoreManager = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').ImageStoreManager; - - var ImageStore = function () { - function ImageStore() { - _classCallCheck(this, ImageStore); - } - - _createClass(ImageStore, null, [{ - key: "hasImageForTag", - value: function hasImageForTag(uri, callback) { - if (RCTImageStoreManager.hasImageForTag) { - RCTImageStoreManager.hasImageForTag(uri, callback); - } else { - console.warn('hasImageForTag() not implemented'); - } - } - }, { - key: "removeImageForTag", - value: function removeImageForTag(uri) { - if (RCTImageStoreManager.removeImageForTag) { - RCTImageStoreManager.removeImageForTag(uri); - } else { - console.warn('removeImageForTag() not implemented'); - } - } - }, { - key: "addImageFromBase64", - value: function addImageFromBase64(base64ImageData, success, failure) { - RCTImageStoreManager.addImageFromBase64(base64ImageData, success, failure); - } - }, { - key: "getBase64ForTag", - value: function getBase64ForTag(uri, success, failure) { - RCTImageStoreManager.getBase64ForTag(uri, success, failure); - } - }]); - - return ImageStore; - }(); - - module.exports = ImageStore; -},16,[93],"node_modules/react-native/Libraries/Image/ImageStore.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/TextInput/InputAccessoryView.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - InputAccessoryView: { - displayName: "InputAccessoryView" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/TextInput/InputAccessoryView.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var ColorPropType = _$$_REQUIRE(_dependencyMap[2], 'ColorPropType'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[4], 'StyleSheet'); - - var ViewPropTypes = _$$_REQUIRE(_dependencyMap[5], 'ViewPropTypes'); - - var requireNativeComponent = _$$_REQUIRE(_dependencyMap[6], 'requireNativeComponent'); - - var RCTInputAccessoryView = requireNativeComponent('RCTInputAccessoryView'); - - var InputAccessoryView = function (_React$Component) { - function InputAccessoryView() { - _classCallCheck(this, InputAccessoryView); - - return _possibleConstructorReturn(this, _getPrototypeOf(InputAccessoryView).apply(this, arguments)); - } - - _createClass(InputAccessoryView, [{ - key: "render", - value: function render() { - console.warn(' is not supported on Android yet.'); - - if (React.Children.count(this.props.children) === 0) { - return null; - } - - return React.createElement(RCTInputAccessoryView, { - style: [this.props.style, styles.container], - nativeID: this.props.nativeID, - backgroundColor: this.props.backgroundColor, - __source: { - fileName: _jsxFileName, - lineNumber: 99 - } - }, this.props.children); - } - }]); - - _inherits(InputAccessoryView, _React$Component); - - return InputAccessoryView; - }(React.Component); - - InputAccessoryView = _wrapComponent("InputAccessoryView")(InputAccessoryView); - var styles = StyleSheet.create({ - container: { - position: 'absolute' - } - }); - module.exports = InputAccessoryView; -},17,[122,161,98,121,83,101,96],"node_modules/react-native/Libraries/Components/TextInput/InputAccessoryView.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - KeyboardAvoidingView: { - displayName: "KeyboardAvoidingView" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var Keyboard = _$$_REQUIRE(_dependencyMap[2], 'Keyboard'); - - var LayoutAnimation = _$$_REQUIRE(_dependencyMap[3], 'LayoutAnimation'); - - var Platform = _$$_REQUIRE(_dependencyMap[4], 'Platform'); - - var React = _$$_REQUIRE(_dependencyMap[5], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[6], 'StyleSheet'); - - var View = _$$_REQUIRE(_dependencyMap[7], 'View'); - - var viewRef = 'VIEW'; - - var KeyboardAvoidingView = function (_React$Component) { - function KeyboardAvoidingView() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, KeyboardAvoidingView); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(KeyboardAvoidingView)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._frame = null, _this._subscriptions = [], _this.state = { - bottom: 0 - }, _this._onKeyboardChange = function (event) { - if (event == null) { - _this.setState({ - bottom: 0 - }); - - return; - } - - var duration = event.duration, - easing = event.easing, - endCoordinates = event.endCoordinates; - - var height = _this._relativeKeyboardHeight(endCoordinates); - - if (_this.state.bottom === height) { - return; - } - - if (duration && easing) { - LayoutAnimation.configureNext({ - duration: duration, - update: { - duration: duration, - type: LayoutAnimation.Types[easing] || 'keyboard' - } - }); - } - - _this.setState({ - bottom: height - }); - }, _this._onLayout = function (event) { - _this._frame = event.nativeEvent.layout; - }, _temp)); - } - - _createClass(KeyboardAvoidingView, [{ - key: "_relativeKeyboardHeight", - value: function _relativeKeyboardHeight(keyboardFrame) { - var frame = this._frame; - - if (!frame || !keyboardFrame) { - return 0; - } - - var keyboardY = keyboardFrame.screenY - this.props.keyboardVerticalOffset; - return Math.max(frame.y + frame.height - keyboardY, 0); - } - }, { - key: "UNSAFE_componentWillUpdate", - value: function UNSAFE_componentWillUpdate(nextProps, nextState) { - if (nextState.bottom === this.state.bottom && this.props.behavior === 'height' && nextProps.behavior === 'height') { - nextState.bottom = 0; - } - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - if (Platform.OS === 'ios') { - this._subscriptions = [Keyboard.addListener('keyboardWillChangeFrame', this._onKeyboardChange)]; - } else { - this._subscriptions = [Keyboard.addListener('keyboardDidHide', this._onKeyboardChange), Keyboard.addListener('keyboardDidShow', this._onKeyboardChange)]; - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this._subscriptions.forEach(function (subscription) { - subscription.remove(); - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - behavior = _this$props.behavior, - children = _this$props.children, - contentContainerStyle = _this$props.contentContainerStyle, - enabled = _this$props.enabled, - keyboardVerticalOffset = _this$props.keyboardVerticalOffset, - style = _this$props.style, - props = _objectWithoutProperties(_this$props, ["behavior", "children", "contentContainerStyle", "enabled", "keyboardVerticalOffset", "style"]); - - var bottomHeight = enabled ? this.state.bottom : 0; - - switch (behavior) { - case 'height': - var heightStyle; - - if (this._frame != null) { - heightStyle = { - height: this._frame.height - bottomHeight, - flex: 0 - }; - } - - return React.createElement(View, _extends({ - ref: viewRef, - style: StyleSheet.compose(style, heightStyle), - onLayout: this._onLayout - }, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 172 - } - }), children); - - case 'position': - return React.createElement(View, _extends({ - ref: viewRef, - style: style, - onLayout: this._onLayout - }, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 186 - } - }), React.createElement(View, { - style: StyleSheet.compose(contentContainerStyle, { - bottom: bottomHeight - }), - __source: { - fileName: _jsxFileName, - lineNumber: 191 - } - }, children)); - - case 'padding': - return React.createElement(View, _extends({ - ref: viewRef, - style: StyleSheet.compose(style, { - paddingBottom: bottomHeight - }), - onLayout: this._onLayout - }, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 205 - } - }), children); - - default: - return React.createElement(View, _extends({ - ref: viewRef, - onLayout: this._onLayout, - style: style - }, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 219 - } - }), children); - } - } - }]); - - _inherits(KeyboardAvoidingView, _React$Component); - - return KeyboardAvoidingView; - }(React.Component); - - KeyboardAvoidingView.defaultProps = { - enabled: true, - keyboardVerticalOffset: 0 - }; - KeyboardAvoidingView = _wrapComponent("KeyboardAvoidingView")(KeyboardAvoidingView); - module.exports = KeyboardAvoidingView; -},18,[122,161,71,72,94,121,83,48],"node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - module.exports = _$$_REQUIRE(_dependencyMap[0], 'UnimplementedView'); -},20,[451],"node_modules/react-native/Libraries/Components/MaskedView/MaskedViewIOS.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/UnimplementedViews/UnimplementedView.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - UnimplementedView: { - displayName: "UnimplementedView" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/UnimplementedViews/UnimplementedView.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); - - var UnimplementedView = function (_React$Component) { - function UnimplementedView() { - _classCallCheck(this, UnimplementedView); - - return _possibleConstructorReturn(this, _getPrototypeOf(UnimplementedView).apply(this, arguments)); - } - - _createClass(UnimplementedView, [{ - key: "setNativeProps", - value: function setNativeProps() {} - }, { - key: "render", - value: function render() { - var View = _$$_REQUIRE(_dependencyMap[4], 'View'); - - return React.createElement(View, { - style: [styles.unimplementedView, this.props.style], - __source: { - fileName: _jsxFileName, - lineNumber: 30 - } - }, this.props.children); - } - }]); - - _inherits(UnimplementedView, _React$Component); - - return UnimplementedView; - }(React.Component); - - UnimplementedView = _wrapComponent("UnimplementedView")(UnimplementedView); - var styles = StyleSheet.create({ - unimplementedView: __DEV__ ? { - alignSelf: 'flex-start', - borderColor: 'red', - borderWidth: 1 - } : {} - }); - module.exports = UnimplementedView; -},451,[122,161,121,83,48],"node_modules/react-native/Libraries/Components/UnimplementedViews/UnimplementedView.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Modal/Modal.js", - _container; - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Modal: { - displayName: "Modal" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Modal/Modal.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var AppContainer = _$$_REQUIRE(_dependencyMap[2], 'AppContainer'); - - var I18nManager = _$$_REQUIRE(_dependencyMap[3], 'I18nManager'); - - var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[4], 'NativeEventEmitter'); - - var NativeModules = _$$_REQUIRE(_dependencyMap[5], 'NativeModules'); - - var Platform = _$$_REQUIRE(_dependencyMap[6], 'Platform'); - - var React = _$$_REQUIRE(_dependencyMap[7], 'React'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[8], 'prop-types'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[9], 'StyleSheet'); - - var View = _$$_REQUIRE(_dependencyMap[10], 'View'); - - var deprecatedPropType = _$$_REQUIRE(_dependencyMap[11], 'deprecatedPropType'); - - var requireNativeComponent = _$$_REQUIRE(_dependencyMap[12], 'requireNativeComponent'); - - var RCTModalHostView = requireNativeComponent('RCTModalHostView'); - var ModalEventEmitter = Platform.OS === 'ios' && NativeModules.ModalManager ? new NativeEventEmitter(NativeModules.ModalManager) : null; - var uniqueModalIdentifier = 0; - - var Modal = function (_React$Component) { - function Modal(props) { - var _this; - - _classCallCheck(this, Modal); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(Modal).call(this, props)); - - Modal._confirmProps(props); - - _this._identifier = uniqueModalIdentifier++; - return _this; - } - - _createClass(Modal, [{ - key: "getChildContext", - value: function getChildContext() { - return { - virtualizedList: null - }; - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - if (ModalEventEmitter) { - this._eventSubscription = ModalEventEmitter.addListener('modalDismissed', function (event) { - if (event.modalID === _this2._identifier && _this2.props.onDismiss) { - _this2.props.onDismiss(); - } - }); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this._eventSubscription) { - this._eventSubscription.remove(); - } - } - }, { - key: "UNSAFE_componentWillReceiveProps", - value: function UNSAFE_componentWillReceiveProps(nextProps) { - Modal._confirmProps(nextProps); - } - }, { - key: "render", - value: function render() { - if (this.props.visible === false) { - return null; - } - - var containerStyles = { - backgroundColor: this.props.transparent ? 'transparent' : 'white' - }; - var animationType = this.props.animationType; - - if (!animationType) { - animationType = 'none'; - - if (this.props.animated) { - animationType = 'slide'; - } - } - - var presentationStyle = this.props.presentationStyle; - - if (!presentationStyle) { - presentationStyle = 'fullScreen'; - - if (this.props.transparent) { - presentationStyle = 'overFullScreen'; - } - } - - var innerChildren = __DEV__ ? React.createElement(AppContainer, { - rootTag: this.context.rootTag, - __source: { - fileName: _jsxFileName, - lineNumber: 230 - } - }, this.props.children) : this.props.children; - return React.createElement(RCTModalHostView, { - animationType: animationType, - presentationStyle: presentationStyle, - transparent: this.props.transparent, - hardwareAccelerated: this.props.hardwareAccelerated, - onRequestClose: this.props.onRequestClose, - onShow: this.props.onShow, - identifier: this._identifier, - style: styles.modal, - onStartShouldSetResponder: this._shouldSetResponder, - supportedOrientations: this.props.supportedOrientations, - onOrientationChange: this.props.onOrientationChange, - __source: { - fileName: _jsxFileName, - lineNumber: 238 - } - }, React.createElement(View, { - style: [styles.container, containerStyles], - __source: { - fileName: _jsxFileName, - lineNumber: 250 - } - }, innerChildren)); - } - }, { - key: "_shouldSetResponder", - value: function _shouldSetResponder() { - return true; - } - }], [{ - key: "_confirmProps", - value: function _confirmProps(props) { - if (props.presentationStyle && props.presentationStyle !== 'overFullScreen' && props.transparent) { - console.warn("Modal with '" + props.presentationStyle + "' presentation style and 'transparent' value is not supported."); - } - } - }]); - - _inherits(Modal, _React$Component); - - return Modal; - }(React.Component); - - Modal.propTypes = { - animationType: PropTypes.oneOf(['none', 'slide', 'fade']), - presentationStyle: PropTypes.oneOf(['fullScreen', 'pageSheet', 'formSheet', 'overFullScreen']), - transparent: PropTypes.bool, - hardwareAccelerated: PropTypes.bool, - visible: PropTypes.bool, - onRequestClose: Platform.isTV || Platform.OS === 'android' ? PropTypes.func.isRequired : PropTypes.func, - onShow: PropTypes.func, - onDismiss: PropTypes.func, - animated: deprecatedPropType(PropTypes.bool, 'Use the `animationType` prop instead.'), - supportedOrientations: PropTypes.arrayOf(PropTypes.oneOf(['portrait', 'portrait-upside-down', 'landscape', 'landscape-left', 'landscape-right'])), - onOrientationChange: PropTypes.func - }; - Modal.defaultProps = { - visible: true, - hardwareAccelerated: false - }; - Modal.contextTypes = { - rootTag: PropTypes.number - }; - Modal.childContextTypes = { - virtualizedList: PropTypes.object - }; - Modal = _wrapComponent("Modal")(Modal); - var side = I18nManager.isRTL ? 'right' : 'left'; - var styles = StyleSheet.create({ - modal: { - position: 'absolute' - }, - container: (_container = { - position: 'absolute' - }, _defineProperty(_container, side, 0), _defineProperty(_container, "top", 0), _container) - }); - module.exports = Modal; -},21,[122,161,452,68,74,93,94,121,143,83,48,149,96],"node_modules/react-native/Libraries/Modal/Modal.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/ReactNative/AppContainer.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - AppContainer: { - displayName: "AppContainer" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/ReactNative/AppContainer.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var EmitterSubscription = _$$_REQUIRE(_dependencyMap[2], 'EmitterSubscription'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); - - var RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[4], 'RCTDeviceEventEmitter'); - - var React = _$$_REQUIRE(_dependencyMap[5], 'React'); - - var ReactNative = _$$_REQUIRE(_dependencyMap[6], 'ReactNative'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[7], 'StyleSheet'); - - var View = _$$_REQUIRE(_dependencyMap[8], 'View'); - - var AppContainer = function (_React$Component) { - function AppContainer() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, AppContainer); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(AppContainer)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { - inspector: null, - mainKey: 1 - }, _this._subscription = null, _temp)); - } - - _createClass(AppContainer, [{ - key: "getChildContext", - value: function getChildContext() { - return { - rootTag: this.props.rootTag - }; - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - if (__DEV__) { - if (!global.__RCTProfileIsProfiling) { - this._subscription = RCTDeviceEventEmitter.addListener('toggleElementInspector', function () { - var Inspector = _$$_REQUIRE(_dependencyMap[9], 'Inspector'); - - var inspector = _this2.state.inspector ? null : React.createElement(Inspector, { - inspectedViewTag: ReactNative.findNodeHandle(_this2._mainRef), - onRequestRerenderApp: function onRequestRerenderApp(updateInspectedViewTag) { - _this2.setState(function (s) { - return { - mainKey: s.mainKey + 1 - }; - }, function () { - return updateInspectedViewTag(ReactNative.findNodeHandle(_this2._mainRef)); - }); - }, - __source: { - fileName: _jsxFileName, - lineNumber: 62 - } - }); - - _this2.setState({ - inspector: inspector - }); - }); - } - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this._subscription != null) { - this._subscription.remove(); - } - } - }, { - key: "render", - value: function render() { - var _this3 = this; - - var yellowBox = null; - - if (__DEV__) { - if (!global.__RCTProfileIsProfiling) { - var YellowBox = _$$_REQUIRE(_dependencyMap[10], 'YellowBox'); - - yellowBox = React.createElement(YellowBox, { - __source: { - fileName: _jsxFileName, - lineNumber: 93 - } - }); - } - } - - var innerView = React.createElement(View, { - collapsable: !this.state.inspector, - key: this.state.mainKey, - pointerEvents: "box-none", - style: styles.appContainer, - ref: function ref(_ref) { - _this3._mainRef = _ref; - }, - __source: { - fileName: _jsxFileName, - lineNumber: 98 - } - }, this.props.children); - var Wrapper = this.props.WrapperComponent; - - if (Wrapper != null) { - innerView = React.createElement(Wrapper, { - __source: { - fileName: _jsxFileName, - lineNumber: 112 - } - }, innerView); - } - - return React.createElement(View, { - style: styles.appContainer, - pointerEvents: "box-none", - __source: { - fileName: _jsxFileName, - lineNumber: 115 - } - }, innerView, yellowBox, this.state.inspector); - } - }]); - - _inherits(AppContainer, _React$Component); - - return AppContainer; - }(React.Component); - - AppContainer.childContextTypes = { - rootTag: PropTypes.number - }; - AppContainer = _wrapComponent("AppContainer")(AppContainer); - var styles = StyleSheet.create({ - appContainer: { - flex: 1 - } - }); - - if (__DEV__) { - if (!global.__RCTProfileIsProfiling) { - var YellowBox = _$$_REQUIRE(_dependencyMap[10], 'YellowBox'); - - YellowBox.install(); - } - } - - module.exports = AppContainer; -},452,[122,161,119,143,91,121,67,83,48,453,90],"node_modules/react-native/Libraries/ReactNative/AppContainer.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/Inspector.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Inspector: { - displayName: "Inspector" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/Inspector.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var Dimensions = _$$_REQUIRE(_dependencyMap[2], 'Dimensions'); - - var InspectorOverlay = _$$_REQUIRE(_dependencyMap[3], 'InspectorOverlay'); - - var InspectorPanel = _$$_REQUIRE(_dependencyMap[4], 'InspectorPanel'); - - var Platform = _$$_REQUIRE(_dependencyMap[5], 'Platform'); - - var React = _$$_REQUIRE(_dependencyMap[6], 'React'); - - var ReactNative = _$$_REQUIRE(_dependencyMap[7], 'ReactNative'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[8], 'StyleSheet'); - - var Touchable = _$$_REQUIRE(_dependencyMap[9], 'Touchable'); - - var UIManager = _$$_REQUIRE(_dependencyMap[10], 'UIManager'); - - var View = _$$_REQUIRE(_dependencyMap[11], 'View'); - - var emptyObject = _$$_REQUIRE(_dependencyMap[12], 'fbjs/lib/emptyObject'); - - var invariant = _$$_REQUIRE(_dependencyMap[13], 'fbjs/lib/invariant'); - - var hook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__; - var renderers = findRenderers(); - hook.resolveRNStyle = _$$_REQUIRE(_dependencyMap[14], 'flattenStyle'); - - function findRenderers() { - var allRenderers = Object.keys(hook._renderers).map(function (key) { - return hook._renderers[key]; - }); - invariant(allRenderers.length >= 1, 'Expected to find at least one React Native renderer on DevTools hook.'); - return allRenderers; - } - - function getInspectorDataForViewTag(touchedViewTag) { - for (var i = 0; i < renderers.length; i++) { - var renderer = renderers[i]; - var inspectorData = renderer.getInspectorDataForViewTag(touchedViewTag); - - if (inspectorData.hierarchy.length > 0) { - return inspectorData; - } - } - - throw new Error('Expected to find at least one React renderer.'); - } - - var Inspector = function (_React$Component) { - function Inspector(_props) { - var _this; - - _classCallCheck(this, Inspector); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(Inspector).call(this, _props)); - - _this.attachToDevtools = function (agent) { - var _hideWait = null; - var hlSub = agent.sub('highlight', function (_ref) { - var node = _ref.node, - name = _ref.name, - props = _ref.props; - clearTimeout(_hideWait); - - if (typeof node !== 'number') { - node = ReactNative.findNodeHandle(node); - } - - UIManager.measure(node, function (x, y, width, height, left, top) { - _this.setState({ - hierarchy: [], - inspected: { - frame: { - left: left, - top: top, - width: width, - height: height - }, - style: props ? props.style : emptyObject - } - }); - }); - }); - var hideSub = agent.sub('hideHighlight', function () { - if (_this.state.inspected === null) { - return; - } - - _hideWait = setTimeout(function () { - _this.setState({ - inspected: null - }); - }, 100); - }); - _this._subs = [hlSub, hideSub]; - agent.on('shutdown', function () { - _this.setState({ - devtoolsAgent: null - }); - - _this._subs = null; - }); - - _this.setState({ - devtoolsAgent: agent - }); - }; - - _this.state = { - devtoolsAgent: null, - hierarchy: null, - panelPos: 'bottom', - inspecting: true, - perfing: false, - inspected: null, - selection: null, - inspectedViewTag: _this.props.inspectedViewTag, - networking: false - }; - return _this; - } - - _createClass(Inspector, [{ - key: "componentDidMount", - value: function componentDidMount() { - hook.on('react-devtools', this.attachToDevtools); - - if (hook.reactDevtoolsAgent) { - this.attachToDevtools(hook.reactDevtoolsAgent); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this._subs) { - this._subs.map(function (fn) { - return fn(); - }); - } - - hook.off('react-devtools', this.attachToDevtools); - } - }, { - key: "UNSAFE_componentWillReceiveProps", - value: function UNSAFE_componentWillReceiveProps(newProps) { - this.setState({ - inspectedViewTag: newProps.inspectedViewTag - }); - } - }, { - key: "setSelection", - value: function setSelection(i) { - var _this2 = this; - - var hierarchyItem = this.state.hierarchy[i]; - - var _hierarchyItem$getIns = hierarchyItem.getInspectorData(ReactNative.findNodeHandle), - measure = _hierarchyItem$getIns.measure, - props = _hierarchyItem$getIns.props, - source = _hierarchyItem$getIns.source; - - measure(function (x, y, width, height, left, top) { - _this2.setState({ - inspected: { - frame: { - left: left, - top: top, - width: width, - height: height - }, - style: props.style, - source: source - }, - selection: i - }); - }); - } - }, { - key: "onTouchViewTag", - value: function onTouchViewTag(touchedViewTag, frame, pointerY) { - var _getInspectorDataForV = getInspectorDataForViewTag(touchedViewTag), - hierarchy = _getInspectorDataForV.hierarchy, - props = _getInspectorDataForV.props, - selection = _getInspectorDataForV.selection, - source = _getInspectorDataForV.source; - - if (this.state.devtoolsAgent) { - var offsetFromLeaf = hierarchy.length - 1 - selection; - this.state.devtoolsAgent.selectFromDOMNode(touchedViewTag, true, offsetFromLeaf); - } - - this.setState({ - panelPos: pointerY > Dimensions.get('window').height / 2 ? 'top' : 'bottom', - selection: selection, - hierarchy: hierarchy, - inspected: { - style: props.style, - frame: frame, - source: source - } - }); - } - }, { - key: "setPerfing", - value: function setPerfing(val) { - this.setState({ - perfing: val, - inspecting: false, - inspected: null, - networking: false - }); - } - }, { - key: "setInspecting", - value: function setInspecting(val) { - this.setState({ - inspecting: val, - inspected: null - }); - } - }, { - key: "setTouchTargeting", - value: function setTouchTargeting(val) { - var _this3 = this; - - Touchable.TOUCH_TARGET_DEBUG = val; - this.props.onRequestRerenderApp(function (inspectedViewTag) { - _this3.setState({ - inspectedViewTag: inspectedViewTag - }); - }); - } - }, { - key: "setNetworking", - value: function setNetworking(val) { - this.setState({ - networking: val, - perfing: false, - inspecting: false, - inspected: null - }); - } - }, { - key: "render", - value: function render() { - var panelContainerStyle = this.state.panelPos === 'bottom' ? { - bottom: 0 - } : { - top: Platform.OS === 'ios' ? 20 : 0 - }; - return React.createElement(View, { - style: styles.container, - pointerEvents: "box-none", - __source: { - fileName: _jsxFileName, - lineNumber: 249 - } - }, this.state.inspecting && React.createElement(InspectorOverlay, { - inspected: this.state.inspected, - inspectedViewTag: this.state.inspectedViewTag, - onTouchViewTag: this.onTouchViewTag.bind(this), - __source: { - fileName: _jsxFileName, - lineNumber: 251 - } - }), React.createElement(View, { - style: [styles.panelContainer, panelContainerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 257 - } - }, React.createElement(InspectorPanel, { - devtoolsIsOpen: !!this.state.devtoolsAgent, - inspecting: this.state.inspecting, - perfing: this.state.perfing, - setPerfing: this.setPerfing.bind(this), - setInspecting: this.setInspecting.bind(this), - inspected: this.state.inspected, - hierarchy: this.state.hierarchy, - selection: this.state.selection, - setSelection: this.setSelection.bind(this), - touchTargeting: Touchable.TOUCH_TARGET_DEBUG, - setTouchTargeting: this.setTouchTargeting.bind(this), - networking: this.state.networking, - setNetworking: this.setNetworking.bind(this), - __source: { - fileName: _jsxFileName, - lineNumber: 258 - } - }))); - } - }]); - - _inherits(Inspector, _React$Component); - - return Inspector; - }(React.Component); - - Inspector = _wrapComponent("Inspector")(Inspector); - var styles = StyleSheet.create({ - container: { - position: 'absolute', - backgroundColor: 'transparent', - top: 0, - left: 0, - right: 0, - bottom: 0 - }, - panelContainer: { - position: 'absolute', - left: 0, - right: 0 - } - }); - module.exports = Inspector; -},453,[122,161,65,454,455,94,121,67,83,43,87,48,339,4,134],"node_modules/react-native/Libraries/Inspector/Inspector.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/InspectorOverlay.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - InspectorOverlay: { - displayName: "InspectorOverlay" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/InspectorOverlay.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var Dimensions = _$$_REQUIRE(_dependencyMap[2], 'Dimensions'); - - var ElementBox = _$$_REQUIRE(_dependencyMap[3], 'ElementBox'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[4], 'prop-types'); - - var React = _$$_REQUIRE(_dependencyMap[5], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[6], 'StyleSheet'); - - var UIManager = _$$_REQUIRE(_dependencyMap[7], 'UIManager'); - - var View = _$$_REQUIRE(_dependencyMap[8], 'View'); - - var InspectorOverlay = function (_React$Component) { - function InspectorOverlay() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, InspectorOverlay); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(InspectorOverlay)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.findViewForTouchEvent = function (e) { - var _e$nativeEvent$touche = e.nativeEvent.touches[0], - locationX = _e$nativeEvent$touche.locationX, - locationY = _e$nativeEvent$touche.locationY; - UIManager.findSubviewIn(_this.props.inspectedViewTag, [locationX, locationY], function (nativeViewTag, left, top, width, height) { - _this.props.onTouchViewTag(nativeViewTag, { - left: left, - top: top, - width: width, - height: height - }, locationY); - }); - }, _this.shouldSetResponser = function (e) { - _this.findViewForTouchEvent(e); - - return true; - }, _temp)); - } - - _createClass(InspectorOverlay, [{ - key: "render", - value: function render() { - var content = null; - - if (this.props.inspected) { - content = React.createElement(ElementBox, { - frame: this.props.inspected.frame, - style: this.props.inspected.style, - __source: { - fileName: _jsxFileName, - lineNumber: 66 - } - }); - } - - return React.createElement(View, { - onStartShouldSetResponder: this.shouldSetResponser, - onResponderMove: this.findViewForTouchEvent, - style: [styles.inspector, { - height: Dimensions.get('window').height - }], - __source: { - fileName: _jsxFileName, - lineNumber: 74 - } - }, content); - } - }]); - - _inherits(InspectorOverlay, _React$Component); - - return InspectorOverlay; - }(React.Component); - - InspectorOverlay.propTypes = { - inspected: PropTypes.shape({ - frame: PropTypes.object, - style: PropTypes.any - }), - inspectedViewTag: PropTypes.number, - onTouchViewTag: PropTypes.func.isRequired - }; - InspectorOverlay = _wrapComponent("InspectorOverlay")(InspectorOverlay); - var styles = StyleSheet.create({ - inspector: { - backgroundColor: 'transparent', - position: 'absolute', - left: 0, - top: 0, - right: 0 - } - }); - module.exports = InspectorOverlay; -},454,[122,161,65,456,143,121,83,87,48],"node_modules/react-native/Libraries/Inspector/InspectorOverlay.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/ElementBox.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - ElementBox: { - displayName: "ElementBox" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/ElementBox.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var View = _$$_REQUIRE(_dependencyMap[3], 'View'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[4], 'StyleSheet'); - - var BorderBox = _$$_REQUIRE(_dependencyMap[5], 'BorderBox'); - - var resolveBoxStyle = _$$_REQUIRE(_dependencyMap[6], 'resolveBoxStyle'); - - var flattenStyle = _$$_REQUIRE(_dependencyMap[7], 'flattenStyle'); - - var ElementBox = function (_React$Component) { - function ElementBox() { - _classCallCheck(this, ElementBox); - - return _possibleConstructorReturn(this, _getPrototypeOf(ElementBox).apply(this, arguments)); - } - - _createClass(ElementBox, [{ - key: "render", - value: function render() { - var style = flattenStyle(this.props.style) || {}; - var margin = resolveBoxStyle('margin', style); - var padding = resolveBoxStyle('padding', style); - var frameStyle = this.props.frame; - - if (margin) { - frameStyle = { - top: frameStyle.top - margin.top, - left: frameStyle.left - margin.left, - height: frameStyle.height + margin.top + margin.bottom, - width: frameStyle.width + margin.left + margin.right - }; - } - - var contentStyle = { - width: this.props.frame.width, - height: this.props.frame.height - }; - - if (padding) { - contentStyle = { - width: contentStyle.width - padding.left - padding.right, - height: contentStyle.height - padding.top - padding.bottom - }; - } - - return React.createElement(View, { - style: [styles.frame, frameStyle], - pointerEvents: "none", - __source: { - fileName: _jsxFileName, - lineNumber: 46 - } - }, React.createElement(BorderBox, { - box: margin, - style: styles.margin, - __source: { - fileName: _jsxFileName, - lineNumber: 47 - } - }, React.createElement(BorderBox, { - box: padding, - style: styles.padding, - __source: { - fileName: _jsxFileName, - lineNumber: 48 - } - }, React.createElement(View, { - style: [styles.content, contentStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 49 - } - })))); - } - }]); - - _inherits(ElementBox, _React$Component); - - return ElementBox; - }(React.Component); - - ElementBox = _wrapComponent("ElementBox")(ElementBox); - var styles = StyleSheet.create({ - frame: { - position: 'absolute' - }, - content: { - backgroundColor: 'rgba(200, 230, 255, 0.8)' - }, - padding: { - borderColor: 'rgba(77, 255, 0, 0.3)' - }, - margin: { - borderColor: 'rgba(255, 132, 0, 0.3)' - } - }); - module.exports = ElementBox; -},456,[122,161,121,48,83,457,458,134],"node_modules/react-native/Libraries/Inspector/ElementBox.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/BorderBox.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - BorderBox: { - displayName: "BorderBox" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/BorderBox.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var View = _$$_REQUIRE(_dependencyMap[3], 'View'); - - var BorderBox = function (_React$Component) { - function BorderBox() { - _classCallCheck(this, BorderBox); - - return _possibleConstructorReturn(this, _getPrototypeOf(BorderBox).apply(this, arguments)); - } - - _createClass(BorderBox, [{ - key: "render", - value: function render() { - var box = this.props.box; - - if (!box) { - return this.props.children; - } - - var style = { - borderTopWidth: box.top, - borderBottomWidth: box.bottom, - borderLeftWidth: box.left, - borderRightWidth: box.right - }; - return React.createElement(View, { - style: [style, this.props.style], - __source: { - fileName: _jsxFileName, - lineNumber: 28 - } - }, this.props.children); - } - }]); - - _inherits(BorderBox, _React$Component); - - return BorderBox; - }(React.Component); - - BorderBox = _wrapComponent("BorderBox")(BorderBox); - module.exports = BorderBox; -},457,[122,161,121,48],"node_modules/react-native/Libraries/Inspector/BorderBox.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function resolveBoxStyle(prefix, style) { - var res = {}; - var subs = ['top', 'left', 'bottom', 'right']; - var set = false; - subs.forEach(function (sub) { - res[sub] = style[prefix] || 0; - }); - - if (style[prefix]) { - set = true; - } - - if (style[prefix + 'Vertical']) { - res.top = res.bottom = style[prefix + 'Vertical']; - set = true; - } - - if (style[prefix + 'Horizontal']) { - res.left = res.right = style[prefix + 'Horizontal']; - set = true; - } - - subs.forEach(function (sub) { - var val = style[prefix + capFirst(sub)]; - - if (val) { - res[sub] = val; - set = true; - } - }); - - if (!set) { - return; - } - - return res; - } - - function capFirst(text) { - return text[0].toUpperCase() + text.slice(1); - } - - module.exports = resolveBoxStyle; -},458,[],"node_modules/react-native/Libraries/Inspector/resolveBoxStyle.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/InspectorPanel.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - InspectorPanel: { - displayName: "InspectorPanel" - }, - Button: { - displayName: "Button" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/InspectorPanel.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var ElementProperties = _$$_REQUIRE(_dependencyMap[2], 'ElementProperties'); - - var NetworkOverlay = _$$_REQUIRE(_dependencyMap[3], 'NetworkOverlay'); - - var PerformanceOverlay = _$$_REQUIRE(_dependencyMap[4], 'PerformanceOverlay'); - - var React = _$$_REQUIRE(_dependencyMap[5], 'React'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[6], 'prop-types'); - - var ScrollView = _$$_REQUIRE(_dependencyMap[7], 'ScrollView'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[8], 'StyleSheet'); - - var Text = _$$_REQUIRE(_dependencyMap[9], 'Text'); - - var TouchableHighlight = _$$_REQUIRE(_dependencyMap[10], 'TouchableHighlight'); - - var View = _$$_REQUIRE(_dependencyMap[11], 'View'); - - var InspectorPanel = function (_React$Component) { - function InspectorPanel() { - _classCallCheck(this, InspectorPanel); - - return _possibleConstructorReturn(this, _getPrototypeOf(InspectorPanel).apply(this, arguments)); - } - - _createClass(InspectorPanel, [{ - key: "renderWaiting", - value: function renderWaiting() { - if (this.props.inspecting) { - return React.createElement(Text, { - style: styles.waitingText, - __source: { - fileName: _jsxFileName, - lineNumber: 28 - } - }, "Tap something to inspect it"); - } - - return React.createElement(Text, { - style: styles.waitingText, - __source: { - fileName: _jsxFileName, - lineNumber: 31 - } - }, "Nothing is inspected"); - } - }, { - key: "render", - value: function render() { - var contents; - - if (this.props.inspected) { - contents = React.createElement(ScrollView, { - style: styles.properties, - __source: { - fileName: _jsxFileName, - lineNumber: 38 - } - }, React.createElement(ElementProperties, { - style: this.props.inspected.style, - frame: this.props.inspected.frame, - source: this.props.inspected.source, - hierarchy: this.props.hierarchy, - selection: this.props.selection, - setSelection: this.props.setSelection, - __source: { - fileName: _jsxFileName, - lineNumber: 39 - } - })); - } else if (this.props.perfing) { - contents = React.createElement(PerformanceOverlay, { - __source: { - fileName: _jsxFileName, - lineNumber: 50 - } - }); - } else if (this.props.networking) { - contents = React.createElement(NetworkOverlay, { - __source: { - fileName: _jsxFileName, - lineNumber: 52 - } - }); - } else { - contents = React.createElement(View, { - style: styles.waiting, - __source: { - fileName: _jsxFileName, - lineNumber: 54 - } - }, this.renderWaiting()); - } - - return React.createElement(View, { - style: styles.container, - __source: { - fileName: _jsxFileName, - lineNumber: 57 - } - }, !this.props.devtoolsIsOpen && contents, React.createElement(View, { - style: styles.buttonRow, - __source: { - fileName: _jsxFileName, - lineNumber: 59 - } - }, React.createElement(Button, { - title: 'Inspect', - pressed: this.props.inspecting, - onClick: this.props.setInspecting, - __source: { - fileName: _jsxFileName, - lineNumber: 60 - } - }), React.createElement(Button, { - title: 'Perf', - pressed: this.props.perfing, - onClick: this.props.setPerfing, - __source: { - fileName: _jsxFileName, - lineNumber: 65 - } - }), React.createElement(Button, { - title: 'Network', - pressed: this.props.networking, - onClick: this.props.setNetworking, - __source: { - fileName: _jsxFileName, - lineNumber: 70 - } - }), React.createElement(Button, { - title: 'Touchables', - pressed: this.props.touchTargeting, - onClick: this.props.setTouchTargeting, - __source: { - fileName: _jsxFileName, - lineNumber: 75 - } - }))); - } - }]); - - _inherits(InspectorPanel, _React$Component); - - return InspectorPanel; - }(React.Component); - - InspectorPanel = _wrapComponent("InspectorPanel")(InspectorPanel); - InspectorPanel.propTypes = { - devtoolsIsOpen: PropTypes.bool, - inspecting: PropTypes.bool, - setInspecting: PropTypes.func, - inspected: PropTypes.object, - perfing: PropTypes.bool, - setPerfing: PropTypes.func, - touchTargeting: PropTypes.bool, - setTouchTargeting: PropTypes.func, - networking: PropTypes.bool, - setNetworking: PropTypes.func - }; - - var Button = function (_React$Component2) { - function Button() { - _classCallCheck(this, Button); - - return _possibleConstructorReturn(this, _getPrototypeOf(Button).apply(this, arguments)); - } - - _createClass(Button, [{ - key: "render", - value: function render() { - var _this = this; - - return React.createElement(TouchableHighlight, { - onPress: function onPress() { - return _this.props.onClick(!_this.props.pressed); - }, - style: [styles.button, this.props.pressed && styles.buttonPressed], - __source: { - fileName: _jsxFileName, - lineNumber: 102 - } - }, React.createElement(Text, { - style: styles.buttonText, - __source: { - fileName: _jsxFileName, - lineNumber: 105 - } - }, this.props.title)); - } - }]); - - _inherits(Button, _React$Component2); - - return Button; - }(React.Component); - - Button = _wrapComponent("Button")(Button); - var styles = StyleSheet.create({ - buttonRow: { - flexDirection: 'row' - }, - button: { - backgroundColor: 'rgba(0, 0, 0, 0.3)', - margin: 2, - height: 30, - justifyContent: 'center', - alignItems: 'center' - }, - buttonPressed: { - backgroundColor: 'rgba(255, 255, 255, 0.3)' - }, - buttonText: { - textAlign: 'center', - color: 'white', - margin: 5 - }, - container: { - backgroundColor: 'rgba(0, 0, 0, 0.7)' - }, - properties: { - height: 200 - }, - waiting: { - height: 100 - }, - waitingText: { - fontSize: 20, - textAlign: 'center', - marginVertical: 20, - color: 'white' - } - }); - module.exports = InspectorPanel; -},455,[122,161,459,460,461,121,143,28,83,39,44,48],"node_modules/react-native/Libraries/Inspector/InspectorPanel.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/ElementProperties.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - ElementProperties: { - displayName: "ElementProperties" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/ElementProperties.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var BoxInspector = _$$_REQUIRE(_dependencyMap[2], 'BoxInspector'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); - - var React = _$$_REQUIRE(_dependencyMap[4], 'React'); - - var StyleInspector = _$$_REQUIRE(_dependencyMap[5], 'StyleInspector'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[6], 'StyleSheet'); - - var Text = _$$_REQUIRE(_dependencyMap[7], 'Text'); - - var TouchableHighlight = _$$_REQUIRE(_dependencyMap[8], 'TouchableHighlight'); - - var TouchableWithoutFeedback = _$$_REQUIRE(_dependencyMap[9], 'TouchableWithoutFeedback'); - - var View = _$$_REQUIRE(_dependencyMap[10], 'View'); - - var flattenStyle = _$$_REQUIRE(_dependencyMap[11], 'flattenStyle'); - - var mapWithSeparator = _$$_REQUIRE(_dependencyMap[12], 'mapWithSeparator'); - - var openFileInEditor = _$$_REQUIRE(_dependencyMap[13], 'openFileInEditor'); - - var ElementProperties = function (_React$Component) { - function ElementProperties() { - _classCallCheck(this, ElementProperties); - - return _possibleConstructorReturn(this, _getPrototypeOf(ElementProperties).apply(this, arguments)); - } - - _createClass(ElementProperties, [{ - key: "render", - value: function render() { - var _this = this; - - var style = flattenStyle(this.props.style); - var selection = this.props.selection; - var openFileButton; - var source = this.props.source; - - var _ref = source || {}, - fileName = _ref.fileName, - lineNumber = _ref.lineNumber; - - if (fileName && lineNumber) { - var parts = fileName.split('/'); - var fileNameShort = parts[parts.length - 1]; - openFileButton = React.createElement(TouchableHighlight, { - style: styles.openButton, - onPress: openFileInEditor.bind(null, fileName, lineNumber), - __source: { - fileName: _jsxFileName, - lineNumber: 61 - } - }, React.createElement(Text, { - style: styles.openButtonTitle, - numberOfLines: 1, - __source: { - fileName: _jsxFileName, - lineNumber: 64 - } - }, fileNameShort, ":", lineNumber)); - } - - return React.createElement(TouchableWithoutFeedback, { - __source: { - fileName: _jsxFileName, - lineNumber: 73 - } - }, React.createElement(View, { - style: styles.info, - __source: { - fileName: _jsxFileName, - lineNumber: 74 - } - }, React.createElement(View, { - style: styles.breadcrumb, - __source: { - fileName: _jsxFileName, - lineNumber: 75 - } - }, mapWithSeparator(this.props.hierarchy, function (hierarchyItem, i) { - return React.createElement(TouchableHighlight, { - key: 'item-' + i, - style: [styles.breadItem, i === selection && styles.selected], - onPress: function onPress() { - return _this.props.setSelection(i); - }, - __source: { - fileName: _jsxFileName, - lineNumber: 79 - } - }, React.createElement(Text, { - style: styles.breadItemText, - __source: { - fileName: _jsxFileName, - lineNumber: 84 - } - }, hierarchyItem.name)); - }, function (i) { - return React.createElement(Text, { - key: 'sep-' + i, - style: styles.breadSep, - __source: { - fileName: _jsxFileName, - lineNumber: 88 - } - }, "\u25B8"); - })), React.createElement(View, { - style: styles.row, - __source: { - fileName: _jsxFileName, - lineNumber: 94 - } - }, React.createElement(View, { - style: styles.col, - __source: { - fileName: _jsxFileName, - lineNumber: 95 - } - }, React.createElement(StyleInspector, { - style: style, - __source: { - fileName: _jsxFileName, - lineNumber: 96 - } - }), openFileButton), React.createElement(BoxInspector, { - style: style, - frame: this.props.frame, - __source: { - fileName: _jsxFileName, - lineNumber: 101 - } - })))); - } - }]); - - _inherits(ElementProperties, _React$Component); - - return ElementProperties; - }(React.Component); - - ElementProperties.propTypes = { - hierarchy: PropTypes.array.isRequired, - style: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.number]), - source: PropTypes.shape({ - fileName: PropTypes.string, - lineNumber: PropTypes.number - }) - }; - ElementProperties = _wrapComponent("ElementProperties")(ElementProperties); - var styles = StyleSheet.create({ - breadSep: { - fontSize: 8, - color: 'white' - }, - breadcrumb: { - flexDirection: 'row', - flexWrap: 'wrap', - alignItems: 'flex-start', - marginBottom: 5 - }, - selected: { - borderColor: 'white', - borderRadius: 5 - }, - breadItem: { - borderWidth: 1, - borderColor: 'transparent', - marginHorizontal: 2 - }, - breadItemText: { - fontSize: 10, - color: 'white', - marginHorizontal: 5 - }, - row: { - flexDirection: 'row', - alignItems: 'center', - justifyContent: 'space-between' - }, - col: { - flex: 1 - }, - info: { - padding: 10 - }, - openButton: { - padding: 10, - backgroundColor: '#000', - marginVertical: 5, - marginRight: 5, - borderRadius: 2 - }, - openButtonTitle: { - color: 'white', - fontSize: 8 - } - }); - module.exports = ElementProperties; -},459,[122,161,462,143,121,463,83,39,44,47,48,134,464,465],"node_modules/react-native/Libraries/Inspector/ElementProperties.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/BoxInspector.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - BoxInspector: { - displayName: "BoxInspector" - }, - BoxContainer: { - displayName: "BoxContainer" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/BoxInspector.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); - - var Text = _$$_REQUIRE(_dependencyMap[4], 'Text'); - - var View = _$$_REQUIRE(_dependencyMap[5], 'View'); - - var resolveBoxStyle = _$$_REQUIRE(_dependencyMap[6], 'resolveBoxStyle'); - - var blank = { - top: 0, - left: 0, - right: 0, - bottom: 0 - }; - - var BoxInspector = function (_React$Component) { - function BoxInspector() { - _classCallCheck(this, BoxInspector); - - return _possibleConstructorReturn(this, _getPrototypeOf(BoxInspector).apply(this, arguments)); - } - - _createClass(BoxInspector, [{ - key: "render", - value: function render() { - var frame = this.props.frame; - var style = this.props.style; - var margin = style && resolveBoxStyle('margin', style) || blank; - var padding = style && resolveBoxStyle('padding', style) || blank; - return React.createElement(BoxContainer, { - title: "margin", - titleStyle: styles.marginLabel, - box: margin, - __source: { - fileName: _jsxFileName, - lineNumber: 33 - } - }, React.createElement(BoxContainer, { - title: "padding", - box: padding, - __source: { - fileName: _jsxFileName, - lineNumber: 34 - } - }, React.createElement(View, { - __source: { - fileName: _jsxFileName, - lineNumber: 35 - } - }, React.createElement(Text, { - style: styles.innerText, - __source: { - fileName: _jsxFileName, - lineNumber: 36 - } - }, "(", (frame.left || 0).toFixed(1), ", ", (frame.top || 0).toFixed(1), ")"), React.createElement(Text, { - style: styles.innerText, - __source: { - fileName: _jsxFileName, - lineNumber: 39 - } - }, (frame.width || 0).toFixed(1), " \xD7", ' ', (frame.height || 0).toFixed(1))))); - } - }]); - - _inherits(BoxInspector, _React$Component); - - return BoxInspector; - }(React.Component); - - BoxInspector = _wrapComponent("BoxInspector")(BoxInspector); - - var BoxContainer = function (_React$Component2) { - function BoxContainer() { - _classCallCheck(this, BoxContainer); - - return _possibleConstructorReturn(this, _getPrototypeOf(BoxContainer).apply(this, arguments)); - } - - _createClass(BoxContainer, [{ - key: "render", - value: function render() { - var box = this.props.box; - return React.createElement(View, { - style: styles.box, - __source: { - fileName: _jsxFileName, - lineNumber: 54 - } - }, React.createElement(View, { - style: styles.row, - __source: { - fileName: _jsxFileName, - lineNumber: 55 - } - }, React.createElement(Text, { - style: [this.props.titleStyle, styles.label], - __source: { - fileName: _jsxFileName, - lineNumber: 57 - } - }, this.props.title), React.createElement(Text, { - style: styles.boxText, - __source: { - fileName: _jsxFileName, - lineNumber: 60 - } - }, box.top)), React.createElement(View, { - style: styles.row, - __source: { - fileName: _jsxFileName, - lineNumber: 62 - } - }, React.createElement(Text, { - style: styles.boxText, - __source: { - fileName: _jsxFileName, - lineNumber: 63 - } - }, box.left), this.props.children, React.createElement(Text, { - style: styles.boxText, - __source: { - fileName: _jsxFileName, - lineNumber: 65 - } - }, box.right)), React.createElement(Text, { - style: styles.boxText, - __source: { - fileName: _jsxFileName, - lineNumber: 67 - } - }, box.bottom)); - } - }]); - - _inherits(BoxContainer, _React$Component2); - - return BoxContainer; - }(React.Component); - - BoxContainer = _wrapComponent("BoxContainer")(BoxContainer); - var styles = StyleSheet.create({ - row: { - flexDirection: 'row', - alignItems: 'center', - justifyContent: 'space-around' - }, - marginLabel: { - width: 60 - }, - label: { - fontSize: 10, - color: 'rgb(255,100,0)', - marginLeft: 5, - flex: 1, - textAlign: 'left', - top: -3 - }, - buffer: { - fontSize: 10, - color: 'yellow', - flex: 1, - textAlign: 'center' - }, - innerText: { - color: 'yellow', - fontSize: 12, - textAlign: 'center', - width: 70 - }, - box: { - borderWidth: 1, - borderColor: 'grey' - }, - boxText: { - color: 'white', - fontSize: 12, - marginHorizontal: 3, - marginVertical: 2, - textAlign: 'center' - } - }); - module.exports = BoxInspector; -},462,[122,161,121,83,39,48,458],"node_modules/react-native/Libraries/Inspector/BoxInspector.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/StyleInspector.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - StyleInspector: { - displayName: "StyleInspector" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/StyleInspector.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); - - var Text = _$$_REQUIRE(_dependencyMap[4], 'Text'); - - var View = _$$_REQUIRE(_dependencyMap[5], 'View'); - - var StyleInspector = function (_React$Component) { - function StyleInspector() { - _classCallCheck(this, StyleInspector); - - return _possibleConstructorReturn(this, _getPrototypeOf(StyleInspector).apply(this, arguments)); - } - - _createClass(StyleInspector, [{ - key: "render", - value: function render() { - var _this = this; - - if (!this.props.style) { - return React.createElement(Text, { - style: styles.noStyle, - __source: { - fileName: _jsxFileName, - lineNumber: 21 - } - }, "No style"); - } - - var names = Object.keys(this.props.style); - return React.createElement(View, { - style: styles.container, - __source: { - fileName: _jsxFileName, - lineNumber: 25 - } - }, React.createElement(View, { - __source: { - fileName: _jsxFileName, - lineNumber: 26 - } - }, names.map(function (name) { - return React.createElement(Text, { - key: name, - style: styles.attr, - __source: { - fileName: _jsxFileName, - lineNumber: 28 - } - }, name, ":"); - })), React.createElement(View, { - __source: { - fileName: _jsxFileName, - lineNumber: 34 - } - }, names.map(function (name) { - var value = typeof _this.props.style[name] === 'object' ? JSON.stringify(_this.props.style[name]) : _this.props.style[name]; - return React.createElement(Text, { - key: name, - style: styles.value, - __source: { - fileName: _jsxFileName, - lineNumber: 41 - } - }, value); - }))); - } - }]); - - _inherits(StyleInspector, _React$Component); - - return StyleInspector; - }(React.Component); - - StyleInspector = _wrapComponent("StyleInspector")(StyleInspector); - var styles = StyleSheet.create({ - container: { - flexDirection: 'row' - }, - row: { - flexDirection: 'row', - alignItems: 'center', - justifyContent: 'space-around' - }, - attr: { - fontSize: 10, - color: '#ccc' - }, - value: { - fontSize: 10, - color: 'white', - marginLeft: 10 - }, - noStyle: { - color: 'white', - fontSize: 10 - } - }); - module.exports = StyleInspector; -},463,[122,161,121,83,39,48],"node_modules/react-native/Libraries/Inspector/StyleInspector.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js"; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var ColorPropType = _$$_REQUIRE(_dependencyMap[0], 'ColorPropType'); - - var NativeMethodsMixin = _$$_REQUIRE(_dependencyMap[1], 'NativeMethodsMixin'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[2], 'prop-types'); - - var Platform = _$$_REQUIRE(_dependencyMap[3], 'Platform'); - - var React = _$$_REQUIRE(_dependencyMap[4], 'React'); - - var ReactNativeViewAttributes = _$$_REQUIRE(_dependencyMap[5], 'ReactNativeViewAttributes'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[6], 'StyleSheet'); - - var Touchable = _$$_REQUIRE(_dependencyMap[7], 'Touchable'); - - var TouchableWithoutFeedback = _$$_REQUIRE(_dependencyMap[8], 'TouchableWithoutFeedback'); - - var View = _$$_REQUIRE(_dependencyMap[9], 'View'); - - var ViewPropTypes = _$$_REQUIRE(_dependencyMap[10], 'ViewPropTypes'); - - var createReactClass = _$$_REQUIRE(_dependencyMap[11], 'create-react-class'); - - var ensurePositiveDelayProps = _$$_REQUIRE(_dependencyMap[12], 'ensurePositiveDelayProps'); - - var DEFAULT_PROPS = { - activeOpacity: 0.85, - delayPressOut: 100, - underlayColor: 'black' - }; - var PRESS_RETENTION_OFFSET = { - top: 20, - left: 20, - right: 20, - bottom: 30 - }; - var TouchableHighlight = createReactClass({ - displayName: 'TouchableHighlight', - propTypes: _objectSpread({}, TouchableWithoutFeedback.propTypes, { - activeOpacity: PropTypes.number, - underlayColor: ColorPropType, - style: ViewPropTypes.style, - onShowUnderlay: PropTypes.func, - onHideUnderlay: PropTypes.func, - hasTVPreferredFocus: PropTypes.bool, - tvParallaxProperties: PropTypes.object, - testOnly_pressed: PropTypes.bool - }), - mixins: [NativeMethodsMixin, Touchable.Mixin], - getDefaultProps: function getDefaultProps() { - return DEFAULT_PROPS; - }, - getInitialState: function getInitialState() { - this._isMounted = false; - - if (this.props.testOnly_pressed) { - return _objectSpread({}, this.touchableGetInitialState(), { - extraChildStyle: { - opacity: this.props.activeOpacity - }, - extraUnderlayStyle: { - backgroundColor: this.props.underlayColor - } - }); - } else { - return _objectSpread({}, this.touchableGetInitialState(), { - extraChildStyle: null, - extraUnderlayStyle: null - }); - } - }, - componentDidMount: function componentDidMount() { - this._isMounted = true; - ensurePositiveDelayProps(this.props); - }, - componentWillUnmount: function componentWillUnmount() { - this._isMounted = false; - clearTimeout(this._hideTimeout); - }, - UNSAFE_componentWillReceiveProps: function UNSAFE_componentWillReceiveProps(nextProps) { - ensurePositiveDelayProps(nextProps); - }, - viewConfig: { - uiViewClassName: 'RCTView', - validAttributes: ReactNativeViewAttributes.RCTView - }, - touchableHandleActivePressIn: function touchableHandleActivePressIn(e) { - clearTimeout(this._hideTimeout); - this._hideTimeout = null; - - this._showUnderlay(); - - this.props.onPressIn && this.props.onPressIn(e); - }, - touchableHandleActivePressOut: function touchableHandleActivePressOut(e) { - if (!this._hideTimeout) { - this._hideUnderlay(); - } - - this.props.onPressOut && this.props.onPressOut(e); - }, - touchableHandlePress: function touchableHandlePress(e) { - clearTimeout(this._hideTimeout); - - if (!Platform.isTV) { - this._showUnderlay(); - - this._hideTimeout = setTimeout(this._hideUnderlay, this.props.delayPressOut); - } - - this.props.onPress && this.props.onPress(e); - }, - touchableHandleLongPress: function touchableHandleLongPress(e) { - this.props.onLongPress && this.props.onLongPress(e); - }, - touchableGetPressRectOffset: function touchableGetPressRectOffset() { - return this.props.pressRetentionOffset || PRESS_RETENTION_OFFSET; - }, - touchableGetHitSlop: function touchableGetHitSlop() { - return this.props.hitSlop; - }, - touchableGetHighlightDelayMS: function touchableGetHighlightDelayMS() { - return this.props.delayPressIn; - }, - touchableGetLongPressDelayMS: function touchableGetLongPressDelayMS() { - return this.props.delayLongPress; - }, - touchableGetPressOutDelayMS: function touchableGetPressOutDelayMS() { - return this.props.delayPressOut; - }, - _showUnderlay: function _showUnderlay() { - if (!this._isMounted || !this._hasPressHandler()) { - return; - } - - this.setState({ - extraChildStyle: { - opacity: this.props.activeOpacity - }, - extraUnderlayStyle: { - backgroundColor: this.props.underlayColor - } - }); - this.props.onShowUnderlay && this.props.onShowUnderlay(); - }, - _hideUnderlay: function _hideUnderlay() { - clearTimeout(this._hideTimeout); - this._hideTimeout = null; - - if (this.props.testOnly_pressed) { - return; - } - - if (this._hasPressHandler()) { - this.setState({ - extraChildStyle: null, - extraUnderlayStyle: null - }); - this.props.onHideUnderlay && this.props.onHideUnderlay(); - } - }, - _hasPressHandler: function _hasPressHandler() { - return !!(this.props.onPress || this.props.onPressIn || this.props.onPressOut || this.props.onLongPress); - }, - render: function render() { - var child = React.Children.only(this.props.children); - return React.createElement(View, { - accessible: this.props.accessible !== false, - accessibilityLabel: this.props.accessibilityLabel, - accessibilityComponentType: this.props.accessibilityComponentType, - accessibilityTraits: this.props.accessibilityTraits, - style: StyleSheet.compose(this.props.style, this.state.extraUnderlayStyle), - onLayout: this.props.onLayout, - hitSlop: this.props.hitSlop, - isTVSelectable: true, - tvParallaxProperties: this.props.tvParallaxProperties, - hasTVPreferredFocus: this.props.hasTVPreferredFocus, - onStartShouldSetResponder: this.touchableHandleStartShouldSetResponder, - onResponderTerminationRequest: this.touchableHandleResponderTerminationRequest, - onResponderGrant: this.touchableHandleResponderGrant, - onResponderMove: this.touchableHandleResponderMove, - onResponderRelease: this.touchableHandleResponderRelease, - onResponderTerminate: this.touchableHandleResponderTerminate, - nativeID: this.props.nativeID, - testID: this.props.testID, - __source: { - fileName: _jsxFileName, - lineNumber: 348 - } - }, React.cloneElement(child, { - style: StyleSheet.compose(child.props.style, this.state.extraChildStyle) - }), Touchable.renderDebugView({ - color: 'green', - hitSlop: this.props.hitSlop - })); - } - }); - module.exports = TouchableHighlight; -},44,[98,406,143,94,121,326,83,43,47,48,101,402,403],"node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function mapWithSeparator(items, itemRenderer, spacerRenderer) { - var mapped = []; - - if (items.length > 0) { - mapped.push(itemRenderer(items[0], 0, items)); - - for (var ii = 1; ii < items.length; ii++) { - mapped.push(spacerRenderer(ii - 1), itemRenderer(items[ii], ii, items)); - } - } - - return mapped; - } - - module.exports = mapWithSeparator; -},464,[],"node_modules/react-native/Libraries/Utilities/mapWithSeparator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var getDevServer = _$$_REQUIRE(_dependencyMap[0], 'getDevServer'); - - function openFileInEditor(file, lineNumber) { - fetch(getDevServer().url + 'open-stack-frame', { - method: 'POST', - body: JSON.stringify({ - file: file, - lineNumber: lineNumber - }) - }); - } - - module.exports = openFileInEditor; -},465,[372],"node_modules/react-native/Libraries/Core/Devtools/openFileInEditor.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/NetworkOverlay.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - var _components = { - NetworkOverlay: { - displayName: "NetworkOverlay" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/NetworkOverlay.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var ListView = _$$_REQUIRE(_dependencyMap[2], 'ListView'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var ScrollView = _$$_REQUIRE(_dependencyMap[4], 'ScrollView'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[5], 'StyleSheet'); - - var Text = _$$_REQUIRE(_dependencyMap[6], 'Text'); - - var TouchableHighlight = _$$_REQUIRE(_dependencyMap[7], 'TouchableHighlight'); - - var View = _$$_REQUIRE(_dependencyMap[8], 'View'); - - var WebSocketInterceptor = _$$_REQUIRE(_dependencyMap[9], 'WebSocketInterceptor'); - - var XHRInterceptor = _$$_REQUIRE(_dependencyMap[10], 'XHRInterceptor'); - - var LISTVIEW_CELL_HEIGHT = 15; - var SEPARATOR_THICKNESS = 2; - var nextXHRId = 0; - - var NetworkOverlay = function (_React$Component) { - function NetworkOverlay(props) { - var _this; - - _classCallCheck(this, NetworkOverlay); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(NetworkOverlay).call(this, props)); - _this._requests = []; - _this._detailViewItems = []; - _this._listViewDataSource = new ListView.DataSource({ - rowHasChanged: function rowHasChanged(r1, r2) { - return r1 !== r2; - } - }); - _this.state = { - dataSource: _this._listViewDataSource.cloneWithRows([]), - newDetailInfo: false, - detailRowID: null - }; - _this._listViewHighlighted = false; - _this._listViewHeight = 0; - _this._captureRequestListView = _this._captureRequestListView.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this._captureDetailScrollView = _this._captureDetailScrollView.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this._listViewOnLayout = _this._listViewOnLayout.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this._renderRow = _this._renderRow.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this._closeButtonClicked = _this._closeButtonClicked.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this._socketIdMap = {}; - _this._xhrIdMap = {}; - return _this; - } - - _createClass(NetworkOverlay, [{ - key: "_enableXHRInterception", - value: function _enableXHRInterception() { - var _this2 = this; - - if (XHRInterceptor.isInterceptorEnabled()) { - return; - } - - XHRInterceptor.setOpenCallback(function (method, url, xhr) { - xhr._index = nextXHRId++; - var xhrIndex = _this2._requests.length; - _this2._xhrIdMap[xhr._index] = xhrIndex; - var _xhr = { - type: 'XMLHttpRequest', - method: method, - url: url - }; - - _this2._requests.push(_xhr); - - _this2._detailViewItems.push([]); - - _this2._genDetailViewItem(xhrIndex); - - _this2.setState({ - dataSource: _this2._listViewDataSource.cloneWithRows(_this2._requests) - }, _this2._scrollToBottom()); - }); - XHRInterceptor.setRequestHeaderCallback(function (header, value, xhr) { - var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); - - if (xhrIndex === -1) { - return; - } - - var networkInfo = _this2._requests[xhrIndex]; - - if (!networkInfo.requestHeaders) { - networkInfo.requestHeaders = {}; - } - - networkInfo.requestHeaders[header] = value; - - _this2._genDetailViewItem(xhrIndex); - }); - XHRInterceptor.setSendCallback(function (data, xhr) { - var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); - - if (xhrIndex === -1) { - return; - } - - _this2._requests[xhrIndex].dataSent = data; - - _this2._genDetailViewItem(xhrIndex); - }); - XHRInterceptor.setHeaderReceivedCallback(function (type, size, responseHeaders, xhr) { - var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); - - if (xhrIndex === -1) { - return; - } - - var networkInfo = _this2._requests[xhrIndex]; - networkInfo.responseContentType = type; - networkInfo.responseSize = size; - networkInfo.responseHeaders = responseHeaders; - - _this2._genDetailViewItem(xhrIndex); - }); - XHRInterceptor.setResponseCallback(function (status, timeout, response, responseURL, responseType, xhr) { - var xhrIndex = _this2._getRequestIndexByXHRID(xhr._index); - - if (xhrIndex === -1) { - return; - } - - var networkInfo = _this2._requests[xhrIndex]; - networkInfo.status = status; - networkInfo.timeout = timeout; - networkInfo.response = response; - networkInfo.responseURL = responseURL; - networkInfo.responseType = responseType; - - _this2._genDetailViewItem(xhrIndex); - }); - XHRInterceptor.enableInterception(); - } - }, { - key: "_enableWebSocketInterception", - value: function _enableWebSocketInterception() { - var _this3 = this; - - if (WebSocketInterceptor.isInterceptorEnabled()) { - return; - } - - WebSocketInterceptor.setConnectCallback(function (url, protocols, options, socketId) { - var socketIndex = _this3._requests.length; - _this3._socketIdMap[socketId] = socketIndex; - var _webSocket = { - type: 'WebSocket', - url: url, - protocols: protocols - }; - - _this3._requests.push(_webSocket); - - _this3._detailViewItems.push([]); - - _this3._genDetailViewItem(socketIndex); - - _this3.setState({ - dataSource: _this3._listViewDataSource.cloneWithRows(_this3._requests) - }, _this3._scrollToBottom()); - }); - WebSocketInterceptor.setCloseCallback(function (statusCode, closeReason, socketId) { - var socketIndex = _this3._socketIdMap[socketId]; - - if (socketIndex === undefined) { - return; - } - - if (statusCode !== null && closeReason !== null) { - _this3._requests[socketIndex].status = statusCode; - _this3._requests[socketIndex].closeReason = closeReason; - } - - _this3._genDetailViewItem(socketIndex); - }); - WebSocketInterceptor.setSendCallback(function (data, socketId) { - var socketIndex = _this3._socketIdMap[socketId]; - - if (socketIndex === undefined) { - return; - } - - if (!_this3._requests[socketIndex].messages) { - _this3._requests[socketIndex].messages = ''; - } - - _this3._requests[socketIndex].messages += 'Sent: ' + JSON.stringify(data) + '\n'; - - _this3._genDetailViewItem(socketIndex); - }); - WebSocketInterceptor.setOnMessageCallback(function (socketId, message) { - var socketIndex = _this3._socketIdMap[socketId]; - - if (socketIndex === undefined) { - return; - } - - if (!_this3._requests[socketIndex].messages) { - _this3._requests[socketIndex].messages = ''; - } - - _this3._requests[socketIndex].messages += 'Received: ' + JSON.stringify(message) + '\n'; - - _this3._genDetailViewItem(socketIndex); - }); - WebSocketInterceptor.setOnCloseCallback(function (socketId, message) { - var socketIndex = _this3._socketIdMap[socketId]; - - if (socketIndex === undefined) { - return; - } - - _this3._requests[socketIndex].serverClose = message; - - _this3._genDetailViewItem(socketIndex); - }); - WebSocketInterceptor.setOnErrorCallback(function (socketId, message) { - var socketIndex = _this3._socketIdMap[socketId]; - - if (socketIndex === undefined) { - return; - } - - _this3._requests[socketIndex].serverError = message; - - _this3._genDetailViewItem(socketIndex); - }); - WebSocketInterceptor.enableInterception(); - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - this._enableXHRInterception(); - - this._enableWebSocketInterception(); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - XHRInterceptor.disableInterception(); - WebSocketInterceptor.disableInterception(); - } - }, { - key: "_renderRow", - value: function _renderRow(rowData, sectionID, rowID, highlightRow) { - var _this4 = this; - - var urlCellViewStyle = styles.urlEvenCellView; - var methodCellViewStyle = styles.methodEvenCellView; - - if (rowID % 2 === 1) { - urlCellViewStyle = styles.urlOddCellView; - methodCellViewStyle = styles.methodOddCellView; - } - - return React.createElement(TouchableHighlight, { - onPress: function onPress() { - _this4._pressRow(rowID); - - highlightRow(sectionID, rowID); - }, - __source: { - fileName: _jsxFileName, - lineNumber: 297 - } - }, React.createElement(View, { - __source: { - fileName: _jsxFileName, - lineNumber: 302 - } - }, React.createElement(View, { - style: styles.tableRow, - __source: { - fileName: _jsxFileName, - lineNumber: 303 - } - }, React.createElement(View, { - style: urlCellViewStyle, - __source: { - fileName: _jsxFileName, - lineNumber: 304 - } - }, React.createElement(Text, { - style: styles.cellText, - numberOfLines: 1, - __source: { - fileName: _jsxFileName, - lineNumber: 305 - } - }, rowData.url)), React.createElement(View, { - style: methodCellViewStyle, - __source: { - fileName: _jsxFileName, - lineNumber: 309 - } - }, React.createElement(Text, { - style: styles.cellText, - numberOfLines: 1, - __source: { - fileName: _jsxFileName, - lineNumber: 310 - } - }, this._getTypeShortName(rowData.type)))))); - } - }, { - key: "_renderSeperator", - value: function _renderSeperator(sectionID, rowID, adjacentRowHighlighted) { - return React.createElement(View, { - key: sectionID + "-" + rowID, - style: { - height: adjacentRowHighlighted ? SEPARATOR_THICKNESS : 0, - backgroundColor: adjacentRowHighlighted ? '#3B5998' : '#CCCCCC' - }, - __source: { - fileName: _jsxFileName, - lineNumber: 326 - } - }); - } - }, { - key: "_scrollToBottom", - value: function _scrollToBottom() { - if (this._listView) { - var scrollResponder = this._listView.getScrollResponder(); - - if (scrollResponder) { - var scrollY = Math.max(this._requests.length * LISTVIEW_CELL_HEIGHT + (this._listViewHighlighted ? 2 * SEPARATOR_THICKNESS : 0) - this._listViewHeight, 0); - scrollResponder.scrollResponderScrollTo({ - x: 0, - y: scrollY, - animated: true - }); - } - } - } - }, { - key: "_captureRequestListView", - value: function _captureRequestListView(listRef) { - this._listView = listRef; - } - }, { - key: "_listViewOnLayout", - value: function _listViewOnLayout(event) { - var height = event.nativeEvent.layout.height; - this._listViewHeight = height; - } - }, { - key: "_pressRow", - value: function _pressRow(rowID) { - this._listViewHighlighted = true; - this.setState({ - detailRowID: rowID - }, this._scrollToTop()); - } - }, { - key: "_scrollToTop", - value: function _scrollToTop() { - if (this._scrollView) { - this._scrollView.scrollTo({ - y: 0, - animated: false - }); - } - } - }, { - key: "_captureDetailScrollView", - value: function _captureDetailScrollView(scrollRef) { - this._scrollView = scrollRef; - } - }, { - key: "_closeButtonClicked", - value: function _closeButtonClicked() { - this.setState({ - detailRowID: null - }); - } - }, { - key: "_getStringByValue", - value: function _getStringByValue(value) { - if (value === undefined) { - return 'undefined'; - } - - if (typeof value === 'object') { - return JSON.stringify(value); - } - - if (typeof value === 'string' && value.length > 500) { - return String(value).substr(0, 500).concat('\n***TRUNCATED TO 500 CHARACTERS***'); - } - - return value; - } - }, { - key: "_getRequestIndexByXHRID", - value: function _getRequestIndexByXHRID(index) { - if (index === undefined) { - return -1; - } - - var xhrIndex = this._xhrIdMap[index]; - - if (xhrIndex === undefined) { - return -1; - } else { - return xhrIndex; - } - } - }, { - key: "_getTypeShortName", - value: function _getTypeShortName(type) { - if (type === 'XMLHttpRequest') { - return 'XHR'; - } else if (type === 'WebSocket') { - return 'WS'; - } - - return ''; - } - }, { - key: "_genDetailViewItem", - value: function _genDetailViewItem(index) { - this._detailViewItems[index] = []; - var detailViewItem = this._detailViewItems[index]; - var requestItem = this._requests[index]; - - for (var _key in requestItem) { - detailViewItem.push(React.createElement(View, { - style: styles.detailViewRow, - key: _key, - __source: { - fileName: _jsxFileName, - lineNumber: 439 - } - }, React.createElement(Text, { - style: [styles.detailViewText, styles.detailKeyCellView], - __source: { - fileName: _jsxFileName, - lineNumber: 440 - } - }, _key), React.createElement(Text, { - style: [styles.detailViewText, styles.detailValueCellView], - __source: { - fileName: _jsxFileName, - lineNumber: 443 - } - }, this._getStringByValue(requestItem[_key])))); - } - - if (this.state.detailRowID != null && Number(this.state.detailRowID) === index) { - this.setState({ - newDetailInfo: true - }); - } - } - }, { - key: "render", - value: function render() { - return React.createElement(View, { - style: styles.container, - __source: { - fileName: _jsxFileName, - lineNumber: 460 - } - }, this.state.detailRowID != null && React.createElement(TouchableHighlight, { - style: styles.closeButton, - onPress: this._closeButtonClicked, - __source: { - fileName: _jsxFileName, - lineNumber: 462 - } - }, React.createElement(View, { - __source: { - fileName: _jsxFileName, - lineNumber: 465 - } - }, React.createElement(Text, { - style: styles.clostButtonText, - __source: { - fileName: _jsxFileName, - lineNumber: 466 - } - }, "v"))), this.state.detailRowID != null && React.createElement(ScrollView, { - style: styles.detailScrollView, - ref: this._captureDetailScrollView, - __source: { - fileName: _jsxFileName, - lineNumber: 471 - } - }, this._detailViewItems[this.state.detailRowID]), React.createElement(View, { - style: styles.listViewTitle, - __source: { - fileName: _jsxFileName, - lineNumber: 477 - } - }, this._requests.length > 0 && React.createElement(View, { - style: styles.tableRow, - __source: { - fileName: _jsxFileName, - lineNumber: 479 - } - }, React.createElement(View, { - style: styles.urlTitleCellView, - __source: { - fileName: _jsxFileName, - lineNumber: 480 - } - }, React.createElement(Text, { - style: styles.cellText, - numberOfLines: 1, - __source: { - fileName: _jsxFileName, - lineNumber: 481 - } - }, "URL")), React.createElement(View, { - style: styles.methodTitleCellView, - __source: { - fileName: _jsxFileName, - lineNumber: 485 - } - }, React.createElement(Text, { - style: styles.cellText, - numberOfLines: 1, - __source: { - fileName: _jsxFileName, - lineNumber: 486 - } - }, "Type")))), React.createElement(ListView, { - style: styles.listView, - ref: this._captureRequestListView, - dataSource: this.state.dataSource, - renderRow: this._renderRow, - enableEmptySections: true, - renderSeparator: this._renderSeperator, - onLayout: this._listViewOnLayout, - __source: { - fileName: _jsxFileName, - lineNumber: 493 - } - })); - } - }]); - - _inherits(NetworkOverlay, _React$Component); - - return NetworkOverlay; - }(React.Component); - - NetworkOverlay = _wrapComponent("NetworkOverlay")(NetworkOverlay); - var styles = StyleSheet.create({ - container: { - paddingTop: 10, - paddingBottom: 10, - paddingLeft: 5, - paddingRight: 5 - }, - listViewTitle: { - height: 20 - }, - listView: { - flex: 1, - height: 60 - }, - tableRow: { - flexDirection: 'row', - flex: 1 - }, - cellText: { - color: 'white', - fontSize: 12 - }, - methodTitleCellView: { - height: 18, - borderColor: '#DCD7CD', - borderTopWidth: 1, - borderBottomWidth: 1, - borderRightWidth: 1, - alignItems: 'center', - justifyContent: 'center', - backgroundColor: '#444', - flex: 1 - }, - urlTitleCellView: { - height: 18, - borderColor: '#DCD7CD', - borderTopWidth: 1, - borderBottomWidth: 1, - borderLeftWidth: 1, - borderRightWidth: 1, - justifyContent: 'center', - backgroundColor: '#444', - flex: 5, - paddingLeft: 3 - }, - methodOddCellView: { - height: 15, - borderColor: '#DCD7CD', - borderRightWidth: 1, - alignItems: 'center', - justifyContent: 'center', - backgroundColor: '#000', - flex: 1 - }, - urlOddCellView: { - height: 15, - borderColor: '#DCD7CD', - borderLeftWidth: 1, - borderRightWidth: 1, - justifyContent: 'center', - backgroundColor: '#000', - flex: 5, - paddingLeft: 3 - }, - methodEvenCellView: { - height: 15, - borderColor: '#DCD7CD', - borderRightWidth: 1, - alignItems: 'center', - justifyContent: 'center', - backgroundColor: '#888', - flex: 1 - }, - urlEvenCellView: { - height: 15, - borderColor: '#DCD7CD', - borderLeftWidth: 1, - borderRightWidth: 1, - justifyContent: 'center', - backgroundColor: '#888', - flex: 5, - paddingLeft: 3 - }, - detailScrollView: { - flex: 1, - height: 180, - marginTop: 5, - marginBottom: 5 - }, - detailKeyCellView: { - flex: 1.3 - }, - detailValueCellView: { - flex: 2 - }, - detailViewRow: { - flexDirection: 'row', - paddingHorizontal: 3 - }, - detailViewText: { - color: 'white', - fontSize: 11 - }, - clostButtonText: { - color: 'white', - fontSize: 10 - }, - closeButton: { - marginTop: 5, - backgroundColor: '#888', - justifyContent: 'center', - alignItems: 'center' - } - }); - module.exports = NetworkOverlay; -},460,[122,161,19,121,28,83,39,44,48,466,467],"node_modules/react-native/Libraries/Inspector/NetworkOverlay.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var RCTWebSocketModule = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').WebSocketModule; - - var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[1], 'NativeEventEmitter'); - - var base64 = _$$_REQUIRE(_dependencyMap[2], 'base64-js'); - - var originalRCTWebSocketConnect = RCTWebSocketModule.connect; - var originalRCTWebSocketSend = RCTWebSocketModule.send; - var originalRCTWebSocketSendBinary = RCTWebSocketModule.sendBinary; - var originalRCTWebSocketClose = RCTWebSocketModule.close; - var eventEmitter; - var subscriptions; - var closeCallback; - var sendCallback; - var connectCallback; - var onOpenCallback; - var onMessageCallback; - var onErrorCallback; - var onCloseCallback; - var _isInterceptorEnabled = false; - var WebSocketInterceptor = { - setCloseCallback: function setCloseCallback(callback) { - closeCallback = callback; - }, - setSendCallback: function setSendCallback(callback) { - sendCallback = callback; - }, - setConnectCallback: function setConnectCallback(callback) { - connectCallback = callback; - }, - setOnOpenCallback: function setOnOpenCallback(callback) { - onOpenCallback = callback; - }, - setOnMessageCallback: function setOnMessageCallback(callback) { - onMessageCallback = callback; - }, - setOnErrorCallback: function setOnErrorCallback(callback) { - onErrorCallback = callback; - }, - setOnCloseCallback: function setOnCloseCallback(callback) { - onCloseCallback = callback; - }, - isInterceptorEnabled: function isInterceptorEnabled() { - return _isInterceptorEnabled; - }, - _unregisterEvents: function _unregisterEvents() { - subscriptions.forEach(function (e) { - return e.remove(); - }); - subscriptions = []; - }, - _registerEvents: function _registerEvents() { - subscriptions = [eventEmitter.addListener('websocketMessage', function (ev) { - if (onMessageCallback) { - onMessageCallback(ev.id, ev.type === 'binary' ? WebSocketInterceptor._arrayBufferToString(ev.data) : ev.data); - } - }), eventEmitter.addListener('websocketOpen', function (ev) { - if (onOpenCallback) { - onOpenCallback(ev.id); - } - }), eventEmitter.addListener('websocketClosed', function (ev) { - if (onCloseCallback) { - onCloseCallback(ev.id, { - code: ev.code, - reason: ev.reason - }); - } - }), eventEmitter.addListener('websocketFailed', function (ev) { - if (onErrorCallback) { - onErrorCallback(ev.id, { - message: ev.message - }); - } - })]; - }, - enableInterception: function enableInterception() { - if (_isInterceptorEnabled) { - return; - } - - eventEmitter = new NativeEventEmitter(RCTWebSocketModule); - - WebSocketInterceptor._registerEvents(); - - RCTWebSocketModule.connect = function (url, protocols, options, socketId) { - if (connectCallback) { - connectCallback(url, protocols, options, socketId); - } - - originalRCTWebSocketConnect.apply(this, arguments); - }; - - RCTWebSocketModule.send = function (data, socketId) { - if (sendCallback) { - sendCallback(data, socketId); - } - - originalRCTWebSocketSend.apply(this, arguments); - }; - - RCTWebSocketModule.sendBinary = function (data, socketId) { - if (sendCallback) { - sendCallback(WebSocketInterceptor._arrayBufferToString(data), socketId); - } - - originalRCTWebSocketSendBinary.apply(this, arguments); - }; - - RCTWebSocketModule.close = function () { - if (closeCallback) { - if (arguments.length === 3) { - closeCallback(arguments[0], arguments[1], arguments[2]); - } else { - closeCallback(null, null, arguments[0]); - } - } - - originalRCTWebSocketClose.apply(this, arguments); - }; - - _isInterceptorEnabled = true; - }, - _arrayBufferToString: function _arrayBufferToString(data) { - var value = base64.toByteArray(data).buffer; - - if (value === undefined || value === null) { - return '(no value)'; - } - - if (typeof ArrayBuffer !== 'undefined' && typeof Uint8Array !== 'undefined' && value instanceof ArrayBuffer) { - return "ArrayBuffer {" + String(Array.from(new Uint8Array(value))) + "}"; - } - - return value; - }, - disableInterception: function disableInterception() { - if (!_isInterceptorEnabled) { - return; - } - - _isInterceptorEnabled = false; - RCTWebSocketModule.send = originalRCTWebSocketSend; - RCTWebSocketModule.sendBinary = originalRCTWebSocketSendBinary; - RCTWebSocketModule.close = originalRCTWebSocketClose; - RCTWebSocketModule.connect = originalRCTWebSocketConnect; - connectCallback = null; - closeCallback = null; - sendCallback = null; - onOpenCallback = null; - onMessageCallback = null; - onCloseCallback = null; - onErrorCallback = null; - - WebSocketInterceptor._unregisterEvents(); - } - }; - module.exports = WebSocketInterceptor; -},466,[93,74,384],"node_modules/react-native/Libraries/WebSocket/WebSocketInterceptor.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var XMLHttpRequest = _$$_REQUIRE(_dependencyMap[0], 'XMLHttpRequest'); - - var originalXHROpen = XMLHttpRequest.prototype.open; - var originalXHRSend = XMLHttpRequest.prototype.send; - var originalXHRSetRequestHeader = XMLHttpRequest.prototype.setRequestHeader; - var openCallback; - var sendCallback; - var requestHeaderCallback; - var headerReceivedCallback; - var responseCallback; - var _isInterceptorEnabled = false; - var XHRInterceptor = { - setOpenCallback: function setOpenCallback(callback) { - openCallback = callback; - }, - setSendCallback: function setSendCallback(callback) { - sendCallback = callback; - }, - setHeaderReceivedCallback: function setHeaderReceivedCallback(callback) { - headerReceivedCallback = callback; - }, - setResponseCallback: function setResponseCallback(callback) { - responseCallback = callback; - }, - setRequestHeaderCallback: function setRequestHeaderCallback(callback) { - requestHeaderCallback = callback; - }, - isInterceptorEnabled: function isInterceptorEnabled() { - return _isInterceptorEnabled; - }, - enableInterception: function enableInterception() { - if (_isInterceptorEnabled) { - return; - } - - XMLHttpRequest.prototype.open = function (method, url) { - if (openCallback) { - openCallback(method, url, this); - } - - originalXHROpen.apply(this, arguments); - }; - - XMLHttpRequest.prototype.setRequestHeader = function (header, value) { - if (requestHeaderCallback) { - requestHeaderCallback(header, value, this); - } - - originalXHRSetRequestHeader.apply(this, arguments); - }; - - XMLHttpRequest.prototype.send = function (data) { - var _this = this; - - if (sendCallback) { - sendCallback(data, this); - } - - if (this.addEventListener) { - this.addEventListener('readystatechange', function () { - if (!_isInterceptorEnabled) { - return; - } - - if (_this.readyState === _this.HEADERS_RECEIVED) { - var contentTypeString = _this.getResponseHeader('Content-Type'); - - var contentLengthString = _this.getResponseHeader('Content-Length'); - - var responseContentType, responseSize; - - if (contentTypeString) { - responseContentType = contentTypeString.split(';')[0]; - } - - if (contentLengthString) { - responseSize = parseInt(contentLengthString, 10); - } - - if (headerReceivedCallback) { - headerReceivedCallback(responseContentType, responseSize, _this.getAllResponseHeaders(), _this); - } - } - - if (_this.readyState === _this.DONE) { - if (responseCallback) { - responseCallback(_this.status, _this.timeout, _this.response, _this.responseURL, _this.responseType, _this); - } - } - }, false); - } - - originalXHRSend.apply(this, arguments); - }; - - _isInterceptorEnabled = true; - }, - disableInterception: function disableInterception() { - if (!_isInterceptorEnabled) { - return; - } - - _isInterceptorEnabled = false; - XMLHttpRequest.prototype.send = originalXHRSend; - XMLHttpRequest.prototype.open = originalXHROpen; - XMLHttpRequest.prototype.setRequestHeader = originalXHRSetRequestHeader; - responseCallback = null; - openCallback = null; - sendCallback = null; - headerReceivedCallback = null; - requestHeaderCallback = null; - } - }; - module.exports = XHRInterceptor; -},467,[350],"node_modules/react-native/Libraries/Network/XHRInterceptor.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/PerformanceOverlay.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - PerformanceOverlay: { - displayName: "PerformanceOverlay" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Inspector/PerformanceOverlay.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var PerformanceLogger = _$$_REQUIRE(_dependencyMap[2], 'PerformanceLogger'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[4], 'StyleSheet'); - - var Text = _$$_REQUIRE(_dependencyMap[5], 'Text'); - - var View = _$$_REQUIRE(_dependencyMap[6], 'View'); - - var PerformanceOverlay = function (_React$Component) { - function PerformanceOverlay() { - _classCallCheck(this, PerformanceOverlay); - - return _possibleConstructorReturn(this, _getPrototypeOf(PerformanceOverlay).apply(this, arguments)); - } - - _createClass(PerformanceOverlay, [{ - key: "render", - value: function render() { - var perfLogs = PerformanceLogger.getTimespans(); - var items = []; - - for (var key in perfLogs) { - if (perfLogs[key].totalTime) { - var unit = key === 'BundleSize' ? 'b' : 'ms'; - items.push(React.createElement(View, { - style: styles.row, - key: key, - __source: { - fileName: _jsxFileName, - lineNumber: 28 - } - }, React.createElement(Text, { - style: [styles.text, styles.label], - __source: { - fileName: _jsxFileName, - lineNumber: 29 - } - }, key), React.createElement(Text, { - style: [styles.text, styles.totalTime], - __source: { - fileName: _jsxFileName, - lineNumber: 30 - } - }, perfLogs[key].totalTime + unit))); - } - } - - return React.createElement(View, { - style: styles.container, - __source: { - fileName: _jsxFileName, - lineNumber: 38 - } - }, items); - } - }]); - - _inherits(PerformanceOverlay, _React$Component); - - return PerformanceOverlay; - }(React.Component); - - PerformanceOverlay = _wrapComponent("PerformanceOverlay")(PerformanceOverlay); - var styles = StyleSheet.create({ - container: { - height: 100, - paddingTop: 10 - }, - label: { - flex: 1 - }, - row: { - flexDirection: 'row', - paddingHorizontal: 10 - }, - text: { - color: 'white', - fontSize: 12 - }, - totalTime: { - paddingRight: 100 - } - }); - module.exports = PerformanceOverlay; -},461,[122,161,362,121,83,39,48],"node_modules/react-native/Libraries/Inspector/PerformanceOverlay.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/YellowBox/YellowBox.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - YellowBox: { - displayName: "YellowBox" - }, - _component: {} - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/YellowBox/YellowBox.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var YellowBox; - - if (__DEV__) { - var Platform = _$$_REQUIRE(_dependencyMap[3], 'Platform'); - - var RCTLog = _$$_REQUIRE(_dependencyMap[4], 'RCTLog'); - - var YellowBoxList = _$$_REQUIRE(_dependencyMap[5], 'YellowBoxList'); - - var YellowBoxRegistry = _$$_REQUIRE(_dependencyMap[6], 'YellowBoxRegistry'); - - var _console = console, - error = _console.error, - warn = _console.warn; - YellowBox = _wrapComponent("YellowBox")(function (_React$Component) { - function YellowBox() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, YellowBox); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YellowBox)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { - registry: null - }, _this._handleDismiss = function (category) { - YellowBoxRegistry.delete(category); - }, _temp)); - } - - _createClass(YellowBox, [{ - key: "render", - value: function render() { - return this.state.registry == null ? null : React.createElement(YellowBoxList, { - onDismiss: this._handleDismiss, - onDismissAll: this._handleDismissAll, - registry: this.state.registry, - __source: { - fileName: _jsxFileName, - lineNumber: 104 - } - }); - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - this._subscription = YellowBoxRegistry.observe(function (registry) { - _this2.setState({ - registry: registry - }); - }); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this._subscription != null) { - this._subscription.unsubscribe(); - } - } - }, { - key: "_handleDismissAll", - value: function _handleDismissAll() { - YellowBoxRegistry.clear(); - } - }], [{ - key: "ignoreWarnings", - value: function ignoreWarnings(patterns) { - YellowBoxRegistry.addIgnorePatterns(patterns); - } - }, { - key: "install", - value: function install() { - console.error = function () { - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - error.call.apply(error, [console].concat(args)); - - if (typeof args[0] === 'string' && args[0].startsWith('Warning: ')) { - registerWarning.apply(void 0, args); - } - }; - - console.warn = function () { - for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { - args[_key3] = arguments[_key3]; - } - - warn.call.apply(warn, [console].concat(args)); - registerWarning.apply(void 0, args); - }; - - if (console.disableYellowBox === true) { - YellowBoxRegistry.setDisabled(true); - } - - Object.defineProperty(console, 'disableYellowBox', { - configurable: true, - get: function get() { - return YellowBoxRegistry.isDisabled(); - }, - set: function set(value) { - return YellowBoxRegistry.setDisabled(value); - } - }); - - if (Platform.isTesting) { - console.disableYellowBox = true; - } - - RCTLog.setWarningHandler(function () { - registerWarning.apply(void 0, arguments); - }); - } - }, { - key: "uninstall", - value: function uninstall() { - console.error = error; - console.warn = error; - delete console.disableYellowBox; - } - }]); - - _inherits(YellowBox, _React$Component); - - return YellowBox; - }(React.Component)); - - var registerWarning = function registerWarning() { - for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) { - args[_key4] = arguments[_key4]; - } - - YellowBoxRegistry.add({ - args: args, - framesToPop: 2 - }); - }; - } else { - YellowBox = _wrapComponent("_component")(function (_React$Component2) { - function _class2() { - _classCallCheck(this, _class2); - - return _possibleConstructorReturn(this, _getPrototypeOf(_class2).apply(this, arguments)); - } - - _createClass(_class2, [{ - key: "render", - value: function render() { - return null; - } - }], [{ - key: "ignoreWarnings", - value: function ignoreWarnings(patterns) {} - }, { - key: "install", - value: function install() {} - }, { - key: "uninstall", - value: function uninstall() {} - }]); - - _inherits(_class2, _React$Component2); - - return _class2; - }(React.Component)); - } - - module.exports = YellowBox; -},90,[122,161,121,94,361,468,469],"node_modules/react-native/Libraries/YellowBox/YellowBox.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxList.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } - - function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } - - function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - - function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - YellowBoxList: { - displayName: "YellowBoxList" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxList.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var Dimensions = _$$_REQUIRE(_dependencyMap[2], 'Dimensions'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var FlatList = _$$_REQUIRE(_dependencyMap[4], 'FlatList'); - - var SafeAreaView = _$$_REQUIRE(_dependencyMap[5], 'SafeAreaView'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[6], 'StyleSheet'); - - var View = _$$_REQUIRE(_dependencyMap[7], 'View'); - - var YellowBoxButton = _$$_REQUIRE(_dependencyMap[8], 'YellowBoxButton'); - - var YellowBoxInspector = _$$_REQUIRE(_dependencyMap[9], 'YellowBoxInspector'); - - var YellowBoxListRow = _$$_REQUIRE(_dependencyMap[10], 'YellowBoxListRow'); - - var YellowBoxStyle = _$$_REQUIRE(_dependencyMap[11], 'YellowBoxStyle'); - - var VIEWPORT_RATIO = 0.5; - var MAX_ITEMS = Math.floor(Dimensions.get('window').height * VIEWPORT_RATIO / (YellowBoxListRow.GUTTER + YellowBoxListRow.HEIGHT)); - - var YellowBoxList = function (_React$Component) { - function YellowBoxList() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, YellowBoxList); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YellowBoxList)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { - selectedCategory: null - }, _this._handleInspectorDismiss = function () { - var category = _this.state.selectedCategory; - - if (category == null) { - return; - } - - _this.setState({ - selectedCategory: null - }, function () { - _this.props.onDismiss(category); - }); - }, _this._handleInspectorMinimize = function () { - _this.setState({ - selectedCategory: null - }); - }, _this._handleRowPress = function (category) { - _this.setState({ - selectedCategory: category - }); - }, _temp)); - } - - _createClass(YellowBoxList, [{ - key: "render", - value: function render() { - var _this2 = this; - - var selectedWarnings = this.state.selectedCategory == null ? null : this.props.registry.get(this.state.selectedCategory); - - if (selectedWarnings != null) { - return React.createElement(View, { - style: StyleSheet.absoluteFill, - __source: { - fileName: _jsxFileName, - lineNumber: 56 - } - }, React.createElement(YellowBoxInspector, { - onDismiss: this._handleInspectorDismiss, - onMinimize: this._handleInspectorMinimize, - warnings: selectedWarnings, - __source: { - fileName: _jsxFileName, - lineNumber: 57 - } - })); - } - - var items = []; - - for (var _iterator = this.props.registry, _isArray = Array.isArray(_iterator), _i2 = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref3; - - if (_isArray) { - if (_i2 >= _iterator.length) break; - _ref3 = _iterator[_i2++]; - } else { - _i2 = _iterator.next(); - if (_i2.done) break; - _ref3 = _i2.value; - } - - var _ref5 = _ref3; - - var _ref2 = _slicedToArray(_ref5, 2); - - var _category2 = _ref2[0]; - var _warnings = _ref2[1]; - items.unshift({ - category: _category2, - warnings: _warnings - }); - } - - var listStyle = { - height: Math.min(items.length, MAX_ITEMS + 0.5) * (YellowBoxListRow.GUTTER + YellowBoxListRow.HEIGHT) - }; - return items.length === 0 ? null : React.createElement(View, { - style: styles.list, - __source: { - fileName: _jsxFileName, - lineNumber: 79 - } - }, React.createElement(View, { - pointerEvents: "box-none", - style: styles.dismissAll, - __source: { - fileName: _jsxFileName, - lineNumber: 80 - } - }, React.createElement(YellowBoxButton, { - hitSlop: { - bottom: 4, - left: 4, - right: 4, - top: 4 - }, - label: "Dismiss All", - onPress: this.props.onDismissAll, - __source: { - fileName: _jsxFileName, - lineNumber: 81 - } - })), React.createElement(FlatList, { - data: items, - keyExtractor: function keyExtractor(item) { - return item.category; - }, - renderItem: function renderItem(_ref4) { - var item = _ref4.item; - return React.createElement(YellowBoxListRow, _extends({}, item, { - onPress: _this2._handleRowPress, - __source: { - fileName: _jsxFileName, - lineNumber: 91 - } - })); - }, - scrollEnabled: items.length > MAX_ITEMS, - scrollsToTop: false, - style: listStyle, - __source: { - fileName: _jsxFileName, - lineNumber: 87 - } - }), React.createElement(SafeAreaView, { - style: styles.safeArea, - __source: { - fileName: _jsxFileName, - lineNumber: 97 - } - })); - } - }]); - - _inherits(YellowBoxList, _React$Component); - - return YellowBoxList; - }(React.Component); - - YellowBoxList = _wrapComponent("YellowBoxList")(YellowBoxList); - var styles = StyleSheet.create({ - list: { - bottom: 0, - position: 'absolute', - width: '100%' - }, - dismissAll: { - bottom: '100%', - flexDirection: 'row', - justifyContent: 'flex-end', - paddingBottom: 4, - paddingEnd: 4, - position: 'absolute', - width: '100%' - }, - safeArea: { - backgroundColor: YellowBoxStyle.getBackgroundColor(0.95), - marginTop: StyleSheet.hairlineWidth - } - }); - module.exports = YellowBoxList; -},468,[122,161,65,121,12,27,83,48,470,471,472,473],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxList.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - module.exports = _$$_REQUIRE(_dependencyMap[0], 'View'); -},27,[48],"node_modules/react-native/Libraries/Components/SafeAreaView/SafeAreaView.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxButton.js"; - - var React = _$$_REQUIRE(_dependencyMap[0], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[1], 'StyleSheet'); - - var Text = _$$_REQUIRE(_dependencyMap[2], 'Text'); - - var YellowBoxPressable = _$$_REQUIRE(_dependencyMap[3], 'YellowBoxPressable'); - - var YellowBoxStyle = _$$_REQUIRE(_dependencyMap[4], 'YellowBoxStyle'); - - var YellowBoxButton = function YellowBoxButton(props) { - return React.createElement(YellowBoxPressable, { - hitSlop: props.hitSlop, - onPress: props.onPress, - style: styles.root, - __source: { - fileName: _jsxFileName, - lineNumber: 28 - } - }, React.createElement(Text, { - numberOfLines: 1, - style: styles.label, - __source: { - fileName: _jsxFileName, - lineNumber: 32 - } - }, props.label)); - }; - - var styles = StyleSheet.create({ - root: { - borderRadius: 14, - height: 28, - justifyContent: 'center', - paddingHorizontal: 12 - }, - label: { - color: YellowBoxStyle.getTextColor(1), - fontSize: 12, - includeFontPadding: false, - lineHeight: 16 - } - }); - module.exports = YellowBoxButton; -},470,[121,83,39,474,473],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxButton.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxPressable.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - YellowBoxPressable: { - displayName: "YellowBoxPressable" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxPressable.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); - - var TouchableWithoutFeedback = _$$_REQUIRE(_dependencyMap[4], 'TouchableWithoutFeedback'); - - var View = _$$_REQUIRE(_dependencyMap[5], 'View'); - - var YellowBoxStyle = _$$_REQUIRE(_dependencyMap[6], 'YellowBoxStyle'); - - var YellowBoxPressable = function (_React$Component) { - function YellowBoxPressable() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, YellowBoxPressable); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YellowBoxPressable)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { - pressed: false - }, _this._handlePressIn = function () { - _this.setState({ - pressed: true - }); - }, _this._handlePressOut = function () { - _this.setState({ - pressed: false - }); - }, _temp)); - } - - _createClass(YellowBoxPressable, [{ - key: "render", - value: function render() { - var content = React.createElement(View, { - style: StyleSheet.compose({ - backgroundColor: this.state.pressed ? this.props.backgroundColor.pressed : this.props.backgroundColor.default - }, this.props.style), - __source: { - fileName: _jsxFileName, - lineNumber: 52 - } - }, this.props.children); - return this.props.onPress == null ? content : React.createElement(TouchableWithoutFeedback, { - hitSlop: this.props.hitSlop, - onPress: this.props.onPress, - onPressIn: this._handlePressIn, - onPressOut: this._handlePressOut, - __source: { - fileName: _jsxFileName, - lineNumber: 67 - } - }, content); - } - }]); - - _inherits(YellowBoxPressable, _React$Component); - - return YellowBoxPressable; - }(React.Component); - - YellowBoxPressable.defaultProps = { - backgroundColor: { - default: YellowBoxStyle.getBackgroundColor(0.95), - pressed: YellowBoxStyle.getHighlightColor(1) - } - }; - YellowBoxPressable = _wrapComponent("YellowBoxPressable")(YellowBoxPressable); - module.exports = YellowBoxPressable; -},474,[122,161,121,83,47,48,473],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxPressable.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var YellowBoxStyle = { - getBackgroundColor: function getBackgroundColor(opacity) { - return "rgba(250, 186, 48, " + opacity + ")"; - }, - getDividerColor: function getDividerColor(opacity) { - return "rgba(255, 255, 255, " + opacity + ")"; - }, - getHighlightColor: function getHighlightColor(opacity) { - return "rgba(252, 176, 29, " + opacity + ")"; - }, - getTextColor: function getTextColor(opacity) { - return "rgba(255, 255, 255, " + opacity + ")"; - } - }; - module.exports = YellowBoxStyle; -},473,[],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxStyle.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspector.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - YellowBoxInspector: { - displayName: "YellowBoxInspector" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspector.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var Platform = _$$_REQUIRE(_dependencyMap[2], 'Platform'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var ScrollView = _$$_REQUIRE(_dependencyMap[4], 'ScrollView'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[5], 'StyleSheet'); - - var Text = _$$_REQUIRE(_dependencyMap[6], 'Text'); - - var View = _$$_REQUIRE(_dependencyMap[7], 'View'); - - var YellowBoxCategory = _$$_REQUIRE(_dependencyMap[8], 'YellowBoxCategory'); - - var YellowBoxInspectorFooter = _$$_REQUIRE(_dependencyMap[9], 'YellowBoxInspectorFooter'); - - var YellowBoxInspectorHeader = _$$_REQUIRE(_dependencyMap[10], 'YellowBoxInspectorHeader'); - - var YellowBoxInspectorSourceMapStatus = _$$_REQUIRE(_dependencyMap[11], 'YellowBoxInspectorSourceMapStatus'); - - var YellowBoxInspectorStackFrame = _$$_REQUIRE(_dependencyMap[12], 'YellowBoxInspectorStackFrame'); - - var YellowBoxStyle = _$$_REQUIRE(_dependencyMap[13], 'YellowBoxStyle'); - - var openFileInEditor = _$$_REQUIRE(_dependencyMap[14], 'openFileInEditor'); - - var YellowBoxInspector = function (_React$Component) { - function YellowBoxInspector() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, YellowBoxInspector); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YellowBoxInspector)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { - selectedIndex: 0 - }, _this._handleSelectIndex = function (selectedIndex) { - _this.setState({ - selectedIndex: selectedIndex - }); - }, _temp)); - } - - _createClass(YellowBoxInspector, [{ - key: "render", - value: function render() { - var warnings = this.props.warnings; - var selectedIndex = this.state.selectedIndex; - var warning = warnings[selectedIndex]; - return React.createElement(View, { - style: styles.root, - __source: { - fileName: _jsxFileName, - lineNumber: 55 - } - }, React.createElement(YellowBoxInspectorHeader, { - onSelectIndex: this._handleSelectIndex, - selectedIndex: selectedIndex, - warnings: warnings, - __source: { - fileName: _jsxFileName, - lineNumber: 56 - } - }), React.createElement(ScrollView, { - contentContainerStyle: styles.bodyContent, - key: selectedIndex, - style: styles.body, - __source: { - fileName: _jsxFileName, - lineNumber: 61 - } - }, React.createElement(View, { - __source: { - fileName: _jsxFileName, - lineNumber: 65 - } - }, React.createElement(View, { - style: styles.bodyHeading, - __source: { - fileName: _jsxFileName, - lineNumber: 66 - } - }, React.createElement(Text, { - style: styles.bodyHeadingText, - __source: { - fileName: _jsxFileName, - lineNumber: 67 - } - }, "Warning")), React.createElement(Text, { - style: styles.bodyText, - __source: { - fileName: _jsxFileName, - lineNumber: 69 - } - }, YellowBoxCategory.render(warning.message, styles.substitutionText))), React.createElement(View, { - style: styles.bodySection, - __source: { - fileName: _jsxFileName, - lineNumber: 76 - } - }, React.createElement(View, { - style: styles.bodyHeading, - __source: { - fileName: _jsxFileName, - lineNumber: 77 - } - }, React.createElement(Text, { - style: styles.bodyHeadingText, - __source: { - fileName: _jsxFileName, - lineNumber: 78 - } - }, "Stack"), React.createElement(YellowBoxInspectorSourceMapStatus, { - status: warning.symbolicated.status, - __source: { - fileName: _jsxFileName, - lineNumber: 79 - } - })), warning.getAvailableStack().map(function (frame, index) { - return React.createElement(YellowBoxInspectorStackFrame, { - key: index, - frame: frame, - onPress: warning.symbolicated.status === 'COMPLETE' ? function () { - openFileInEditor(frame.file, frame.lineNumber); - } : null, - __source: { - fileName: _jsxFileName, - lineNumber: 84 - } - }); - }))), React.createElement(YellowBoxInspectorFooter, { - onDismiss: this.props.onDismiss, - onMinimize: this.props.onMinimize, - __source: { - fileName: _jsxFileName, - lineNumber: 98 - } - })); - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - this._handleSymbolication(); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps, prevState) { - if (prevProps.warnings !== this.props.warnings || prevState.selectedIndex !== this.state.selectedIndex) { - this._cancelSymbolication(); - - this._handleSymbolication(); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this._cancelSymbolication(); - } - }, { - key: "_handleSymbolication", - value: function _handleSymbolication() { - var _this2 = this; - - var warning = this.props.warnings[this.state.selectedIndex]; - - if (warning.symbolicated.status !== 'COMPLETE') { - this._symbolication = warning.symbolicate(function () { - _this2.forceUpdate(); - }); - } - } - }, { - key: "_cancelSymbolication", - value: function _cancelSymbolication() { - if (this._symbolication != null) { - this._symbolication.abort(); - - this._symbolication = null; - } - } - }]); - - _inherits(YellowBoxInspector, _React$Component); - - return YellowBoxInspector; - }(React.Component); - - YellowBoxInspector = _wrapComponent("YellowBoxInspector")(YellowBoxInspector); - var styles = StyleSheet.create({ - root: { - elevation: Platform.OS === 'android' ? Number.MAX_SAFE_INTEGER : undefined, - height: '100%' - }, - body: { - backgroundColor: YellowBoxStyle.getBackgroundColor(0.95), - borderBottomColor: YellowBoxStyle.getDividerColor(0.95), - borderBottomWidth: StyleSheet.hairlineWidth, - borderTopColor: YellowBoxStyle.getDividerColor(0.95), - borderTopWidth: StyleSheet.hairlineWidth, - flex: 1 - }, - bodyContent: { - paddingVertical: 12 - }, - bodyHeading: { - alignItems: 'center', - flexDirection: 'row', - marginBottom: 6, - paddingHorizontal: 12 - }, - bodyHeadingText: { - color: YellowBoxStyle.getTextColor(1), - flex: 1, - fontSize: 20, - fontWeight: '600', - includeFontPadding: false, - lineHeight: 28 - }, - bodyText: { - color: YellowBoxStyle.getTextColor(1), - fontSize: 14, - includeFontPadding: false, - lineHeight: 18, - paddingHorizontal: 12 - }, - substitutionText: { - color: YellowBoxStyle.getTextColor(0.6) - }, - bodySection: { - marginTop: 20 - } - }); - module.exports = YellowBoxInspector; -},471,[122,161,94,121,28,83,39,48,475,476,477,478,479,473,465],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspector.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/YellowBox/Data/YellowBoxCategory.js"; - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - var React = _$$_REQUIRE(_dependencyMap[0], 'React'); - - var Text = _$$_REQUIRE(_dependencyMap[1], 'Text'); - - var UTFSequence = _$$_REQUIRE(_dependencyMap[2], 'UTFSequence'); - - var stringifySafe = _$$_REQUIRE(_dependencyMap[3], 'stringifySafe'); - - var SUBSTITUTION = UTFSequence.BOM + '%s'; - var YellowBoxCategory = { - parse: function parse(args) { - var categoryParts = []; - var contentParts = []; - var substitutionOffsets = []; - - var remaining = _toConsumableArray(args); - - if (typeof remaining[0] === 'string') { - var formatString = String(remaining.shift()); - var formatStringParts = formatString.split('%s'); - var substitutionCount = formatStringParts.length - 1; - - var _substitutions = remaining.splice(0, substitutionCount); - - var categoryString = ''; - var contentString = ''; - var substitutionIndex = 0; - - for (var _iterator = formatStringParts, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var _formatStringPart = _ref; - categoryString += _formatStringPart; - contentString += _formatStringPart; - - if (substitutionIndex < substitutionCount) { - if (substitutionIndex < _substitutions.length) { - var substitution = stringifySafe(_substitutions[substitutionIndex]); - substitutionOffsets.push({ - length: substitution.length, - offset: contentString.length - }); - categoryString += SUBSTITUTION; - contentString += substitution; - } else { - substitutionOffsets.push({ - length: 2, - offset: contentString.length - }); - categoryString += '%s'; - contentString += '%s'; - } - - substitutionIndex++; - } - } - - categoryParts.push(categoryString); - contentParts.push(contentString); - } - - var remainingArgs = remaining.map(stringifySafe); - categoryParts.push.apply(categoryParts, _toConsumableArray(remainingArgs)); - contentParts.push.apply(contentParts, _toConsumableArray(remainingArgs)); - return { - category: categoryParts.join(' '), - message: { - content: contentParts.join(' '), - substitutions: substitutionOffsets - } - }; - }, - render: function render(_ref2, substitutionStyle) { - var content = _ref2.content, - substitutions = _ref2.substitutions; - var elements = []; - var lastOffset = substitutions.reduce(function (prevOffset, substitution, index) { - var key = String(index); - - if (substitution.offset > prevOffset) { - var prevPart = content.substr(prevOffset, substitution.offset - prevOffset); - elements.push(React.createElement(Text, { - key: key, - __source: { - fileName: _jsxFileName, - lineNumber: 119 - } - }, prevPart)); - } - - var substititionPart = content.substr(substitution.offset, substitution.length); - elements.push(React.createElement(Text, { - key: key + '.5', - style: substitutionStyle, - __source: { - fileName: _jsxFileName, - lineNumber: 127 - } - }, substititionPart)); - return substitution.offset + substitution.length; - }, 0); - - if (lastOffset < content.length - 1) { - var lastPart = content.substr(lastOffset); - elements.push(React.createElement(Text, { - key: "-1", - __source: { - fileName: _jsxFileName, - lineNumber: 139 - } - }, lastPart)); - } - - return elements; - } - }; - module.exports = YellowBoxCategory; -},475,[121,39,480,107],"node_modules/react-native/Libraries/YellowBox/Data/YellowBoxCategory.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var deepFreezeAndThrowOnMutationInDev = _$$_REQUIRE(_dependencyMap[0], 'deepFreezeAndThrowOnMutationInDev'); - - var UTFSequence = deepFreezeAndThrowOnMutationInDev({ - BOM: "\uFEFF", - BULLET: "\u2022", - BULLET_SP: "\xA0\u2022\xA0", - MIDDOT: "\xB7", - MIDDOT_SP: "\xA0\xB7\xA0", - MIDDOT_KATAKANA: "\u30FB", - MDASH: "\u2014", - MDASH_SP: "\xA0\u2014\xA0", - NDASH: "\u2013", - NDASH_SP: "\xA0\u2013\xA0", - NBSP: "\xA0", - PIZZA: "\uD83C\uDF55", - TRIANGLE_LEFT: "\u25C0", - TRIANGLE_RIGHT: "\u25B6" - }); - module.exports = UTFSequence; -},480,[106],"node_modules/react-native/Libraries/UTFSequence.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorFooter.js"; - - var React = _$$_REQUIRE(_dependencyMap[0], 'React'); - - var SafeAreaView = _$$_REQUIRE(_dependencyMap[1], 'SafeAreaView'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[2], 'StyleSheet'); - - var Text = _$$_REQUIRE(_dependencyMap[3], 'Text'); - - var View = _$$_REQUIRE(_dependencyMap[4], 'View'); - - var YellowBoxPressable = _$$_REQUIRE(_dependencyMap[5], 'YellowBoxPressable'); - - var YellowBoxStyle = _$$_REQUIRE(_dependencyMap[6], 'YellowBoxStyle'); - - var YellowBoxInspectorFooter = function YellowBoxInspectorFooter(props) { - return React.createElement(View, { - style: styles.root, - __source: { - fileName: _jsxFileName, - lineNumber: 27 - } - }, React.createElement(YellowBoxPressable, { - backgroundColor: { - default: 'transparent', - pressed: YellowBoxStyle.getHighlightColor(1) - }, - onPress: props.onMinimize, - style: styles.button, - __source: { - fileName: _jsxFileName, - lineNumber: 28 - } - }, React.createElement(View, { - style: styles.content, - __source: { - fileName: _jsxFileName, - lineNumber: 35 - } - }, React.createElement(Text, { - style: styles.label, - __source: { - fileName: _jsxFileName, - lineNumber: 36 - } - }, "Minimize")), React.createElement(SafeAreaView, { - __source: { - fileName: _jsxFileName, - lineNumber: 38 - } - })), React.createElement(YellowBoxPressable, { - backgroundColor: { - default: 'transparent', - pressed: YellowBoxStyle.getHighlightColor(1) - }, - onPress: props.onDismiss, - style: styles.button, - __source: { - fileName: _jsxFileName, - lineNumber: 40 - } - }, React.createElement(View, { - style: styles.content, - __source: { - fileName: _jsxFileName, - lineNumber: 47 - } - }, React.createElement(Text, { - style: styles.label, - __source: { - fileName: _jsxFileName, - lineNumber: 48 - } - }, "Dismiss")), React.createElement(SafeAreaView, { - __source: { - fileName: _jsxFileName, - lineNumber: 50 - } - }))); - }; - - var styles = StyleSheet.create({ - root: { - backgroundColor: YellowBoxStyle.getBackgroundColor(0.95), - flexDirection: 'row' - }, - button: { - flex: 1 - }, - content: { - alignItems: 'center', - height: 48, - justifyContent: 'center' - }, - label: { - color: YellowBoxStyle.getTextColor(1), - fontSize: 14, - includeFontPadding: false, - lineHeight: 18 - } - }); - module.exports = YellowBoxInspectorFooter; -},476,[121,27,83,39,48,474,473],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorFooter.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorHeader.js"; - - var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); - - var React = _$$_REQUIRE(_dependencyMap[1], 'React'); - - var SafeAreaView = _$$_REQUIRE(_dependencyMap[2], 'SafeAreaView'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); - - var Text = _$$_REQUIRE(_dependencyMap[4], 'Text'); - - var UTFSequence = _$$_REQUIRE(_dependencyMap[5], 'UTFSequence'); - - var View = _$$_REQUIRE(_dependencyMap[6], 'View'); - - var YellowBoxPressable = _$$_REQUIRE(_dependencyMap[7], 'YellowBoxPressable'); - - var YellowBoxStyle = _$$_REQUIRE(_dependencyMap[8], 'YellowBoxStyle'); - - var YellowBoxInspectorHeader = function YellowBoxInspectorHeader(props) { - var prevIndex = props.selectedIndex - 1; - var nextIndex = props.selectedIndex + 1; - var titleText = props.warnings.length === 1 ? 'Single Occurrence' : "Occurrence " + (props.selectedIndex + 1) + " of " + props.warnings.length; - return React.createElement(SafeAreaView, { - style: styles.root, - __source: { - fileName: _jsxFileName, - lineNumber: 41 - } - }, React.createElement(View, { - style: styles.header, - __source: { - fileName: _jsxFileName, - lineNumber: 42 - } - }, React.createElement(YellowBoxInspectorHeaderButton, { - disabled: props.warnings[prevIndex] == null, - label: UTFSequence.TRIANGLE_LEFT, - onPress: function onPress() { - return props.onSelectIndex(prevIndex); - }, - __source: { - fileName: _jsxFileName, - lineNumber: 43 - } - }), React.createElement(View, { - style: styles.headerTitle, - __source: { - fileName: _jsxFileName, - lineNumber: 48 - } - }, React.createElement(Text, { - style: styles.headerTitleText, - __source: { - fileName: _jsxFileName, - lineNumber: 49 - } - }, titleText)), React.createElement(YellowBoxInspectorHeaderButton, { - disabled: props.warnings[nextIndex] == null, - label: UTFSequence.TRIANGLE_RIGHT, - onPress: function onPress() { - return props.onSelectIndex(nextIndex); - }, - __source: { - fileName: _jsxFileName, - lineNumber: 51 - } - }))); - }; - - var YellowBoxInspectorHeaderButton = function YellowBoxInspectorHeaderButton(props) { - return React.createElement(YellowBoxPressable, { - backgroundColor: { - default: 'transparent', - pressed: YellowBoxStyle.getHighlightColor(1) - }, - onPress: props.disabled ? null : props.onPress, - style: styles.headerButton, - __source: { - fileName: _jsxFileName, - lineNumber: 68 - } - }, props.disabled ? null : React.createElement(Text, { - style: styles.headerButtonText, - __source: { - fileName: _jsxFileName, - lineNumber: 76 - } - }, props.label)); - }; - - var styles = StyleSheet.create({ - root: { - backgroundColor: YellowBoxStyle.getBackgroundColor(0.95) - }, - header: { - flexDirection: 'row', - height: Platform.select({ - android: 48, - ios: 44 - }) - }, - headerButton: { - alignItems: 'center', - aspectRatio: 1, - justifyContent: 'center' - }, - headerButtonText: { - color: YellowBoxStyle.getTextColor(1), - fontSize: 16, - includeFontPadding: false, - lineHeight: 20 - }, - headerTitle: { - alignItems: 'center', - flex: 1, - justifyContent: 'center' - }, - headerTitleText: { - color: YellowBoxStyle.getTextColor(1), - fontSize: 16, - fontWeight: '600', - includeFontPadding: false, - lineHeight: 20 - } - }); - module.exports = YellowBoxInspectorHeader; -},477,[94,121,27,83,39,480,48,474,473],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorHeader.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorSourceMapStatus.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - YellowBoxInspectorSourceMapStatus: { - displayName: "YellowBoxInspectorSourceMapStatus" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorSourceMapStatus.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var Animated = _$$_REQUIRE(_dependencyMap[2], 'Animated'); - - var Easing = _$$_REQUIRE(_dependencyMap[3], 'Easing'); - - var React = _$$_REQUIRE(_dependencyMap[4], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[5], 'StyleSheet'); - - var Text = _$$_REQUIRE(_dependencyMap[6], 'Text'); - - var View = _$$_REQUIRE(_dependencyMap[7], 'View'); - - var YellowBoxImageSource = _$$_REQUIRE(_dependencyMap[8], 'YellowBoxImageSource'); - - var YellowBoxStyle = _$$_REQUIRE(_dependencyMap[9], 'YellowBoxStyle'); - - var YellowBoxInspectorSourceMapStatus = function (_React$Component) { - function YellowBoxInspectorSourceMapStatus() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, YellowBoxInspectorSourceMapStatus); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YellowBoxInspectorSourceMapStatus)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { - animation: null, - rotate: null - }, _temp)); - } - - _createClass(YellowBoxInspectorSourceMapStatus, [{ - key: "render", - value: function render() { - var image; - - switch (this.props.status) { - case 'COMPLETE': - image = YellowBoxImageSource.check; - break; - - case 'FAILED': - image = YellowBoxImageSource.alertTriangle; - break; - - case 'PENDING': - image = YellowBoxImageSource.loader; - break; - } - - return image == null ? null : React.createElement(View, { - style: StyleSheet.compose(styles.root, this.props.status === 'PENDING' ? styles.pending : null), - __source: { - fileName: _jsxFileName, - lineNumber: 55 - } - }, React.createElement(Animated.Image, { - source: { - height: 16, - uri: image, - width: 16 - }, - style: StyleSheet.compose(styles.image, this.state.rotate == null ? null : { - transform: [{ - rotate: this.state.rotate - }] - }), - __source: { - fileName: _jsxFileName, - lineNumber: 60 - } - }), React.createElement(Text, { - style: styles.text, - __source: { - fileName: _jsxFileName, - lineNumber: 69 - } - }, "Source Map")); - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - this._updateAnimation(); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - this._updateAnimation(); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this.state.animation != null) { - this.state.animation.stop(); - } - } - }, { - key: "_updateAnimation", - value: function _updateAnimation() { - if (this.props.status === 'PENDING') { - if (this.state.animation == null) { - var animated = new Animated.Value(0); - - var _animation = Animated.loop(Animated.timing(animated, { - duration: 2000, - easing: Easing.linear, - toValue: 1, - useNativeDriver: true - })); - - this.setState({ - animation: _animation, - rotate: animated.interpolate({ - inputRange: [0, 1], - outputRange: ['0deg', '360deg'] - }) - }, function () { - _animation.start(); - }); - } - } else { - if (this.state.animation != null) { - this.state.animation.stop(); - this.setState({ - animation: null, - rotate: null - }); - } - } - } - }]); - - _inherits(YellowBoxInspectorSourceMapStatus, _React$Component); - - return YellowBoxInspectorSourceMapStatus; - }(React.Component); - - YellowBoxInspectorSourceMapStatus = _wrapComponent("YellowBoxInspectorSourceMapStatus")(YellowBoxInspectorSourceMapStatus); - var styles = StyleSheet.create({ - root: { - alignItems: 'center', - backgroundColor: YellowBoxStyle.getTextColor(0.8), - borderRadius: 12, - flexDirection: 'row', - height: 24, - paddingHorizontal: 8 - }, - pending: { - backgroundColor: YellowBoxStyle.getTextColor(0.6) - }, - image: { - marginEnd: 4, - tintColor: YellowBoxStyle.getBackgroundColor(1) - }, - text: { - color: YellowBoxStyle.getBackgroundColor(1), - fontSize: 12, - includeFontPadding: false, - lineHeight: 16 - } - }); - module.exports = YellowBoxInspectorSourceMapStatus; -},478,[122,161,55,66,121,83,39,48,481,473],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorSourceMapStatus.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var PixelRatio = _$$_REQUIRE(_dependencyMap[0], 'PixelRatio'); - - var scale = PixelRatio.get(); - /** - * We use inline images for YellowBox in order to avoid display latency due to - * resource contention with symbolicating stack traces. - * - * The following steps were used to create these: - * - * 1. Download SVG files from: https://feathericons.com - * 2. Rasterize SVG files to PNG files at 16dp, 36dp, and 48dp. - * 3. Convert to Base64: https://www.google.com/search?q=base64+image+encoder - * - * @see https://github.com/feathericons/feather - * @copyright 2013-2017 Cole Bemis - * @license MIT - */ - - var YellowBoxImageSource = { - alertTriangle: scale > 2 ? 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAB60lEQVRoge2Z3W3DIBSFj9oFPAIjZARGyAiMkBHuJh4hI2QEj5AR3Me+tQ91JALHmD8bKvmTkCr5Auc6/kzUACcnRXzuvL4GoAB8Afjeea9qXADcAfw4475c65orgBl++NeYl5ouUQiHt5tQTRJuwB6b5zLY49QVGn7I0bo+kuv60IQbuHf5CWCIqOkCgX93maia1MkRAUMo+OI+AvUPp7a50EzcUCBF6psJrUkYiZgnZJ7eId8mMeIyhpW5hyLw72LKCXsl86VqwgAKceKapW5e/nZpJnSsuHaTM7muyDq7C63JprJS69YxhNTpSlkpKeLGNHCo0EJChcSNaQA4SGiFtBMXJFSI3YVOPXFB6kMoUl9NaE0Wl4h5KQ0AOwqde+KmNrCL0EKCxJ64qQ0AlYVWSBfXZusgW6Oa0Dni2hiEv0qsoci+yUJrsoikLlKAkP11ygK54taiSOgb/O5b/DMqS+gBZeLWJlnoEX7XwQkBDPIktlEkz7hWrEmxZG4M5L9GXYTk0qxwcopKxa3VABN6cosM/C5LxTUof4ReMKHf1nRlaSnuGsGM7kfU4w8RF5Bz4aNlokLe/HQ/ngl9/Qih4L9k3h4hA1+S3odxu3Q77Hl4r1Hg75n6D01M2Difbp02Mi3ZTk5OLH4BUyEtOlDYuK0AAAAASUVORK5CYII=' : scale > 1 ? 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABVklEQVRYheWX4U3DMBBGH4gBMoJHyAgeoSNkAxjBG5QNOkJHCGzQDcoGZQP4gY3Oqe1cEscS4pNOqs9Jvqvv6ZrCf9fDhnutD4A3H810Br4mcW5l7hLmIdze5mZi+OJD5syeBYzC6CjyR5Ef9zI/CJMb0Im9zufC/qG2eQdchcGQuGYQ+9dJgZvl0B2xbJGrZW6IIevFXp9YVwcyB540syJfFcgSeJb0cVcDcg68XAFQCUhH+ShLBcBGIA158LQFqIB8zBRwEp9fgctcxQld/L2pZxZVAk/KkucjaDGQmoknrz35KEE2sABIRxm8tVIBaZgHb61UQOYmXk7aFgQVJ6QWPCnLAriYAVILnpTxD7yh/9EZiIEE4m+y29uMkGy1nQ6i9wYFRB5PwKdYP/v1msmnUe89gn695bG0iqjdXeMiRu9599csvGKZ0jlu0Ac/7d2rxX9Q37HW6QfX/ZguAAAAAElFTkSuQmCC' : 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAvUlEQVQ4jbWT4Q3CIBCFP40DdANxg24gIzhKuwEjuIFxAkcwTtARGicoG+iPXlMCB8UfvoQc4e7ePV4A/ogWuMlqc0W7AsEo0QMNcPplugMmwMia5KwKWkNIuIkHq3wLXGQ/Sq4IC3wkLpOfmZyKeEpIEKsDYB8VN0Afkfpg30uNiycbdKcNqXEOxdBEWoEAoqta8uZ0iqqkxwGDUrSFAXAHZpOWd/+ubD5Kz335Cx1wZna4Bh54AddauVl8ARfCLO9Xq7xGAAAAAElFTkSuQmCC', - check: scale > 2 ? 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAqElEQVRoge3YTQ7CIBRF4bPUu/8JS6gTSaqilh95vuR+CaO2cGgYNAUzMzOzFgHlPhRaMkDAcRoltKaTeIxPtQHxGn+Q5AgJx8cQjo8hHB9DOP76Yiu/RcTmN18WLiQCjs3zBkYXVGOeLWd+xcIr5pgyEzDz7FIjISPP/FRPUM+9W4nvYVfuCSXeB3669ldEOzRFfCUSx1cicXwlEsdXIvEPKDMzM7PMbtugw3XTpNA2AAAAAElFTkSuQmCC' : scale > 1 ? 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAf0lEQVRYhe2UvQ2AIBQGL3EBR3AESkv3bxxFN8DmWUgwvkI+En1X0cBd+IMg+DuDyDMCs413kfMiX4EMbD3l8oCaPIU85B4mYLEF5XJscrYFPRGvb/sZ4IlocubJGdH0wj1FSG77XYT0qdUi5O+8jOjyyZQRUnkZ0UUeBMF3OQC/0VsyGlxligAAAABJRU5ErkJggg==' : 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAASElEQVQ4jWNgGJHAgIGBIYESze8ZGBjWU6L5PAMDgwBNNCdAFZJt83qoQmRDSHK2AFQhzBCy/IxsCNkBJsDAwLAfiknWPBIBAETPFeuA4fr6AAAAAElFTkSuQmCC', - loader: scale > 2 ? 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAABXElEQVRoge2a3W3DMAyEr+0CHkGjaISOcKN4k6zQETpCR+gGzgbpQ10kcamIpKQ6avQBBPxg3pHwL2UDg/8LASxrcNdKnCwATmssrUyeWgnju/DmXs8tRP+Sh2kgAJga1rFlWj2rcMD5YqQh77QJLbzIORjyRIJQCJW5ngYo5AVlrsgkCGqbsDbAhFfxqZsSZibP0oDXQ43HQPsg82i7sBoR+VcJq2YxKcPo0IoJLRZXmYGC6ezQmQUdVqhPBVH/CNBTSMkLVlzjA8Bbocb7GoPBoADi+umZilYzbrG/JrnljOvy734iu4To/BQaDB6Rl4LciPPF9Lmjhgvi+s7w6tCIGw3WKS0P8fvWNjt0ZkGHFeq7CQXTbkZKGg2JOxrqPUZ3s6ziNdju38IjS/dLi0EQpDLX2gDQYHEX6Hx5/YcA+6H0NgAYPnCMj3x7Mxq4wTGx3Q1E578aDDR8AX0mOGD6BEN/AAAAAElFTkSuQmCC' : scale > 1 ? 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABN0lEQVRYhe2WzU3EMBCFP34KyJEjJaQDXAIlJJ24BSow2wEdhHSwJSwd7JHbcmC0mOxMnDiWDIInWbHkN29exo4n8IvRAEFGU8OAA04yulyR60Jm7msbyIZloAMGwBfI4UWrWxM08LW/weC4iOMNTog4g0awKjBG827GxBwC3996NHizAifsSrTRmlsZm23CT9adktyXSq6ZUPdxgiXnZzW8CLcLuC3lvqA/gCt5NtjlPQL7TP0Wu1HtRRu4PO3T4TKTz2kG+AG9IN6CR/Su9iojBw69egfghWgL/pGCp+JFVPUqTjWjlsuqeAo1o6rt2C8QcNiV0UxoHPMieojmz0CfMKyhl1hN84xbI3gnz5Ftp7kH3iT5LsFdDUf6pzSJ6r2glIFDbuDNhqRH4I7Pvv4EvG/QqocP2Jh/xzzX/zUAAAAASUVORK5CYII=' : 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAsklEQVQ4jaWTYRHCMAyFP7gJmIQ6oChgEpBQKXMwC3MADpAAEiphDuBHC4QuDRu8u9ylyWtem7Rgw2X7GT1wsghb4beAVzhtsfYyJgs44AoEQzBkjrMId1HkKPwyZ6oMSnxYsnk1NqT7yMo34Fzhd9meGJvs7Hh3NhqCLXDI/rT0lKsR+KOJgc9RdaRRarkZvELogYsi8HqxjUhGYE+aQg1jzketwFTZXHbbEpjB8eU7PwAbLiJz46707gAAAABJRU5ErkJggg==' - }; - module.exports = YellowBoxImageSource; -},481,[78],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxImageSource.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorStackFrame.js"; - - var React = _$$_REQUIRE(_dependencyMap[0], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[1], 'StyleSheet'); - - var Text = _$$_REQUIRE(_dependencyMap[2], 'Text'); - - var YellowBoxPressable = _$$_REQUIRE(_dependencyMap[3], 'YellowBoxPressable'); - - var YellowBoxStyle = _$$_REQUIRE(_dependencyMap[4], 'YellowBoxStyle'); - - var YellowBoxInspectorStackFrame = function YellowBoxInspectorStackFrame(props) { - var frame = props.frame, - onPress = props.onPress; - return React.createElement(YellowBoxPressable, { - backgroundColor: { - default: YellowBoxStyle.getBackgroundColor(0), - pressed: YellowBoxStyle.getHighlightColor(1) - }, - onPress: onPress, - style: styles.frame, - __source: { - fileName: _jsxFileName, - lineNumber: 31 - } - }, React.createElement(Text, { - style: styles.frameName, - __source: { - fileName: _jsxFileName, - lineNumber: 38 - } - }, frame.methodName), React.createElement(Text, { - ellipsizeMode: "middle", - numberOfLines: 1, - style: styles.frameLocation, - __source: { - fileName: _jsxFileName, - lineNumber: 39 - } - }, getFrameLocation(frame.file) + ":" + frame.lineNumber + (frame.column == null ? '' : ':' + frame.column))); - }; - - var getFrameLocation = function getFrameLocation(uri) { - var queryIndex = uri.indexOf('?'); - var query = queryIndex < 0 ? '' : uri.substr(queryIndex); - var path = queryIndex < 0 ? uri : uri.substr(0, queryIndex); - var file = path.substr(path.lastIndexOf('/') + 1); - return file + query; - }; - - var styles = StyleSheet.create({ - frame: { - paddingHorizontal: 12, - paddingVertical: 4 - }, - frameName: { - color: YellowBoxStyle.getTextColor(1), - fontSize: 14, - includeFontPadding: false, - lineHeight: 18 - }, - frameLocation: { - color: YellowBoxStyle.getTextColor(0.7), - fontSize: 12, - fontWeight: '300', - includeFontPadding: false, - lineHeight: 16 - } - }); - module.exports = YellowBoxInspectorStackFrame; -},479,[121,83,39,474,473],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxInspectorStackFrame.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxListRow.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - YellowBoxListRow: { - displayName: "YellowBoxListRow" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/YellowBox/UI/YellowBoxListRow.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); - - var Text = _$$_REQUIRE(_dependencyMap[4], 'Text'); - - var YellowBoxPressable = _$$_REQUIRE(_dependencyMap[5], 'YellowBoxPressable'); - - var View = _$$_REQUIRE(_dependencyMap[6], 'View'); - - var YellowBoxCategory = _$$_REQUIRE(_dependencyMap[7], 'YellowBoxCategory'); - - var YellowBoxStyle = _$$_REQUIRE(_dependencyMap[8], 'YellowBoxStyle'); - - var YellowBoxWarning = _$$_REQUIRE(_dependencyMap[9], 'YellowBoxWarning'); - - var YellowBoxListRow = function (_React$Component) { - function YellowBoxListRow() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, YellowBoxListRow); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YellowBoxListRow)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._handlePress = function () { - _this.props.onPress(_this.props.category); - }, _temp)); - } - - _createClass(YellowBoxListRow, [{ - key: "shouldComponentUpdate", - value: function shouldComponentUpdate(nextProps) { - var prevProps = this.props; - return prevProps.category !== nextProps.category || prevProps.onPress !== nextProps.onPress || prevProps.warnings.length !== nextProps.warnings.length || prevProps.warnings.some(function (prevWarning, index) { - return prevWarning !== nextProps[index]; - }); - } - }, { - key: "render", - value: function render() { - var warnings = this.props.warnings; - return React.createElement(YellowBoxPressable, { - onPress: this._handlePress, - style: styles.root, - __source: { - fileName: _jsxFileName, - lineNumber: 50 - } - }, React.createElement(View, { - style: styles.content, - __source: { - fileName: _jsxFileName, - lineNumber: 51 - } - }, warnings.length < 2 ? null : React.createElement(Text, { - style: styles.metaText, - __source: { - fileName: _jsxFileName, - lineNumber: 53 - } - }, '(' + warnings.length + ') '), React.createElement(Text, { - numberOfLines: 2, - style: styles.bodyText, - __source: { - fileName: _jsxFileName, - lineNumber: 55 - } - }, YellowBoxCategory.render(warnings[warnings.length - 1].message, styles.substitutionText)))); - } - }]); - - _inherits(YellowBoxListRow, _React$Component); - - return YellowBoxListRow; - }(React.Component); - - YellowBoxListRow.GUTTER = StyleSheet.hairlineWidth; - YellowBoxListRow.HEIGHT = 48; - YellowBoxListRow = _wrapComponent("YellowBoxListRow")(YellowBoxListRow); - var styles = StyleSheet.create({ - root: { - height: YellowBoxListRow.HEIGHT, - justifyContent: 'center', - marginTop: YellowBoxListRow.GUTTER, - paddingHorizontal: 12 - }, - content: { - alignItems: 'flex-start', - flexDirection: 'row' - }, - bodyText: { - color: YellowBoxStyle.getTextColor(1), - flex: 1, - fontSize: 14, - includeFontPadding: false, - lineHeight: 18 - }, - metaText: { - color: YellowBoxStyle.getTextColor(0.5), - fontSize: 14, - includeFontPadding: false, - lineHeight: 18 - }, - substitutionText: { - color: YellowBoxStyle.getTextColor(0.6) - } - }); - module.exports = YellowBoxListRow; -},472,[122,161,121,83,39,474,48,475,473,482],"node_modules/react-native/Libraries/YellowBox/UI/YellowBoxListRow.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var YellowBoxCategory = _$$_REQUIRE(_dependencyMap[0], 'YellowBoxCategory'); - - var YellowBoxSymbolication = _$$_REQUIRE(_dependencyMap[1], 'YellowBoxSymbolication'); - - var parseErrorStack = _$$_REQUIRE(_dependencyMap[2], 'parseErrorStack'); - - var YellowBoxWarning = function () { - _createClass(YellowBoxWarning, null, [{ - key: "parse", - value: function parse(_ref) { - var args = _ref.args, - framesToPop = _ref.framesToPop; - return _objectSpread({}, YellowBoxCategory.parse(args), { - stack: createStack({ - framesToPop: framesToPop + 1 - }) - }); - } - }]); - - function YellowBoxWarning(message, stack) { - _classCallCheck(this, YellowBoxWarning); - - this.symbolicated = { - error: null, - stack: null, - status: 'NONE' - }; - this.message = message; - this.stack = stack; - } - - _createClass(YellowBoxWarning, [{ - key: "getAvailableStack", - value: function getAvailableStack() { - return this.symbolicated.status === 'COMPLETE' ? this.symbolicated.stack : this.stack; - } - }, { - key: "symbolicate", - value: function symbolicate(callback) { - var _this = this; - - var aborted = false; - - if (this.symbolicated.status !== 'COMPLETE') { - var updateStatus = function updateStatus(error, stack) { - if (error != null) { - _this.symbolicated = { - error: error, - stack: null, - status: 'FAILED' - }; - } else if (stack != null) { - _this.symbolicated = { - error: null, - stack: stack, - status: 'COMPLETE' - }; - } else { - _this.symbolicated = { - error: null, - stack: null, - status: 'PENDING' - }; - } - - if (!aborted) { - callback(); - } - }; - - updateStatus(null, null); - YellowBoxSymbolication.symbolicate(this.stack).then(function (stack) { - updateStatus(null, stack); - }, function (error) { - updateStatus(error, null); - }); - } - - return { - abort: function abort() { - aborted = true; - } - }; - } - }]); - - return YellowBoxWarning; - }(); - - function createStack(_ref2) { - var framesToPop = _ref2.framesToPop; - var error = new Error(); - error.framesToPop = framesToPop + 1; - return parseErrorStack(error); - } - - module.exports = YellowBoxWarning; -},482,[475,483,110],"node_modules/react-native/Libraries/YellowBox/Data/YellowBoxWarning.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var symbolicateStackTrace = _$$_REQUIRE(_dependencyMap[0], 'symbolicateStackTrace'); - - var cache = new Map(); - var YellowBoxSymbolication = { - symbolicate: function symbolicate(stack) { - var key = getCacheKey(stack); - var promise = cache.get(key); - - if (promise == null) { - promise = symbolicateStackTrace(stack).then(sanitize); - cache.set(key, promise); - } - - return promise; - } - }; - - var getCacheKey = function getCacheKey(stack) { - return JSON.stringify(stack); - }; - - var sanitize = function sanitize(maybeStack) { - if (!Array.isArray(maybeStack)) { - throw new Error('Expected stack to be an array.'); - } - - var stack = []; - - for (var _iterator = maybeStack, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var _maybeFrame = _ref; - - if (typeof _maybeFrame !== 'object' || _maybeFrame == null) { - throw new Error('Expected each stack frame to be an object.'); - } - - if (typeof _maybeFrame.column !== 'number' && _maybeFrame.column != null) { - throw new Error('Expected stack frame `column` to be a nullable number.'); - } - - if (typeof _maybeFrame.file !== 'string') { - throw new Error('Expected stack frame `file` to be a string.'); - } - - if (typeof _maybeFrame.lineNumber !== 'number') { - throw new Error('Expected stack frame `lineNumber` to be a number.'); - } - - if (typeof _maybeFrame.methodName !== 'string') { - throw new Error('Expected stack frame `methodName` to be a string.'); - } - - stack.push({ - column: _maybeFrame.column, - file: _maybeFrame.file, - lineNumber: _maybeFrame.lineNumber, - methodName: _maybeFrame.methodName - }); - } - - return stack; - }; - - module.exports = YellowBoxSymbolication; -},483,[371],"node_modules/react-native/Libraries/YellowBox/Data/YellowBoxSymbolication.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } - - function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } - - function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - - function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - var YellowBoxWarning = _$$_REQUIRE(_dependencyMap[0], 'YellowBoxWarning'); - - var observers = new Set(); - var ignorePatterns = new Set(); - var registry = new Map(); - var disabled = false; - var projection = new Map(); - var updateTimeout = null; - - function isWarningIgnored(warning) { - for (var _iterator = ignorePatterns, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var _pattern = _ref; - - if (warning.message.content.includes(_pattern)) { - return true; - } - } - - return false; - } - - function handleUpdate() { - projection = new Map(); - - if (!disabled) { - for (var _iterator2 = registry, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref4; - - if (_isArray2) { - if (_i2 >= _iterator2.length) break; - _ref4 = _iterator2[_i2++]; - } else { - _i2 = _iterator2.next(); - if (_i2.done) break; - _ref4 = _i2.value; - } - - var _ref5 = _ref4; - - var _ref3 = _slicedToArray(_ref5, 2); - - var _category = _ref3[0]; - var _warnings = _ref3[1]; - - var filtered = _warnings.filter(function (warning) { - return !isWarningIgnored(warning); - }); - - if (filtered.length > 0) { - projection.set(_category, filtered); - } - } - } - - if (updateTimeout == null) { - updateTimeout = setImmediate(function () { - updateTimeout = null; - - for (var _iterator3 = observers, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref7; - - if (_isArray3) { - if (_i3 >= _iterator3.length) break; - _ref7 = _iterator3[_i3++]; - } else { - _i3 = _iterator3.next(); - if (_i3.done) break; - _ref7 = _i3.value; - } - - var _ref8 = _ref7; - var _observer2 = _ref8.observer; - - _observer2(projection); - } - }); - } - } - - var YellowBoxRegistry = { - add: function add(_ref9) { - var args = _ref9.args, - framesToPop = _ref9.framesToPop; - - if (typeof args[0] === 'string' && args[0].startsWith('(ADVICE)')) { - return; - } - - var _YellowBoxWarning$par = YellowBoxWarning.parse({ - args: args, - framesToPop: framesToPop + 1 - }), - category = _YellowBoxWarning$par.category, - message = _YellowBoxWarning$par.message, - stack = _YellowBoxWarning$par.stack; - - var warnings = registry.get(category); - - if (warnings == null) { - warnings = []; - } - - warnings = _toConsumableArray(warnings).concat([new YellowBoxWarning(message, stack)]); - registry.delete(category); - registry.set(category, warnings); - handleUpdate(); - }, - delete: function _delete(category) { - if (registry.has(category)) { - registry.delete(category); - handleUpdate(); - } - }, - clear: function clear() { - if (registry.size > 0) { - registry.clear(); - handleUpdate(); - } - }, - addIgnorePatterns: function addIgnorePatterns(patterns) { - var newPatterns = patterns.filter(function (pattern) { - return !ignorePatterns.has(pattern); - }); - - if (newPatterns.length === 0) { - return; - } - - for (var _iterator4 = newPatterns, _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : _iterator4[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref10; - - if (_isArray4) { - if (_i4 >= _iterator4.length) break; - _ref10 = _iterator4[_i4++]; - } else { - _i4 = _iterator4.next(); - if (_i4.done) break; - _ref10 = _i4.value; - } - - var _pattern2 = _ref10; - ignorePatterns.add(_pattern2); - } - - handleUpdate(); - }, - setDisabled: function setDisabled(value) { - if (value === disabled) { - return; - } - - disabled = value; - handleUpdate(); - }, - isDisabled: function isDisabled() { - return disabled; - }, - observe: function observe(observer) { - var subscription = { - observer: observer - }; - observers.add(subscription); - observer(projection); - return { - unsubscribe: function unsubscribe() { - observers.delete(subscription); - } - }; - } - }; - module.exports = YellowBoxRegistry; -},469,[482],"node_modules/react-native/Libraries/YellowBox/Data/YellowBoxRegistry.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var I18nManager = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').I18nManager || { - isRTL: false, - doLeftAndRightSwapInRTL: true, - allowRTL: function allowRTL() {}, - forceRTL: function forceRTL() {}, - swapLeftAndRightInRTL: function swapLeftAndRightInRTL() {} - }; - module.exports = I18nManager; -},68,[93],"node_modules/react-native/Libraries/ReactNative/I18nManager.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - module.exports = _$$_REQUIRE(_dependencyMap[0], 'UnimplementedView'); -},22,[451],"node_modules/react-native/Libraries/Components/Navigation/NavigatorIOS.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/Picker/Picker.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var _components = { - PickerItem: { - displayName: "PickerItem" - }, - Picker: { - displayName: "Picker" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/Picker/Picker.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var ColorPropType = _$$_REQUIRE(_dependencyMap[2], 'ColorPropType'); - - var PickerIOS = _$$_REQUIRE(_dependencyMap[3], 'PickerIOS'); - - var PickerAndroid = _$$_REQUIRE(_dependencyMap[4], 'PickerAndroid'); - - var Platform = _$$_REQUIRE(_dependencyMap[5], 'Platform'); - - var React = _$$_REQUIRE(_dependencyMap[6], 'React'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[7], 'prop-types'); - - var StyleSheetPropType = _$$_REQUIRE(_dependencyMap[8], 'StyleSheetPropType'); - - var TextStylePropTypes = _$$_REQUIRE(_dependencyMap[9], 'TextStylePropTypes'); - - var UnimplementedView = _$$_REQUIRE(_dependencyMap[10], 'UnimplementedView'); - - var ViewPropTypes = _$$_REQUIRE(_dependencyMap[11], 'ViewPropTypes'); - - var ViewStylePropTypes = _$$_REQUIRE(_dependencyMap[12], 'ViewStylePropTypes'); - - var itemStylePropType = StyleSheetPropType(TextStylePropTypes); - var pickerStyleType = StyleSheetPropType(_objectSpread({}, ViewStylePropTypes, { - color: ColorPropType - })); - var MODE_DIALOG = 'dialog'; - var MODE_DROPDOWN = 'dropdown'; - - var PickerItem = function (_React$Component) { - function PickerItem() { - _classCallCheck(this, PickerItem); - - return _possibleConstructorReturn(this, _getPrototypeOf(PickerItem).apply(this, arguments)); - } - - _createClass(PickerItem, [{ - key: "render", - value: function render() { - throw null; - } - }]); - - _inherits(PickerItem, _React$Component); - - return PickerItem; - }(React.Component); - - PickerItem.propTypes = { - label: PropTypes.string.isRequired, - value: PropTypes.any, - color: ColorPropType, - testID: PropTypes.string - }; - PickerItem = _wrapComponent("PickerItem")(PickerItem); - - var Picker = function (_React$Component2) { - function Picker() { - _classCallCheck(this, Picker); - - return _possibleConstructorReturn(this, _getPrototypeOf(Picker).apply(this, arguments)); - } - - _createClass(Picker, [{ - key: "render", - value: function render() { - if (Platform.OS === 'ios') { - return React.createElement(PickerIOS, _extends({}, this.props, { - __source: { - fileName: _jsxFileName, - lineNumber: 155 - } - }), this.props.children); - } else if (Platform.OS === 'android') { - return React.createElement(PickerAndroid, _extends({}, this.props, { - __source: { - fileName: _jsxFileName, - lineNumber: 159 - } - }), this.props.children); - } else { - return React.createElement(UnimplementedView, { - __source: { - fileName: _jsxFileName, - lineNumber: 162 - } - }); - } - } - }]); - - _inherits(Picker, _React$Component2); - - return Picker; - }(React.Component); - - Picker.MODE_DIALOG = MODE_DIALOG; - Picker.MODE_DROPDOWN = MODE_DROPDOWN; - Picker.Item = PickerItem; - Picker.defaultProps = { - mode: MODE_DIALOG - }; - Picker.propTypes = _objectSpread({}, ViewPropTypes, { - style: pickerStyleType, - selectedValue: PropTypes.any, - onValueChange: PropTypes.func, - enabled: PropTypes.bool, - mode: PropTypes.oneOf(['dialog', 'dropdown']), - itemStyle: itemStylePropType, - prompt: PropTypes.string, - testID: PropTypes.string - }); - Picker = _wrapComponent("Picker")(Picker); - module.exports = Picker; -},23,[122,161,98,24,484,94,121,143,316,136,451,101,137],"node_modules/react-native/Libraries/Components/Picker/Picker.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - module.exports = _$$_REQUIRE(_dependencyMap[0], 'UnimplementedView'); -},24,[451],"node_modules/react-native/Libraries/Components/Picker/PickerIOS.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/Picker/PickerAndroid.android.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var _components = { - PickerAndroid: { - displayName: "PickerAndroid" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/Picker/PickerAndroid.android.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var ColorPropType = _$$_REQUIRE(_dependencyMap[2], 'ColorPropType'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var ReactPropTypes = _$$_REQUIRE(_dependencyMap[4], 'prop-types'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[5], 'StyleSheet'); - - var StyleSheetPropType = _$$_REQUIRE(_dependencyMap[6], 'StyleSheetPropType'); - - var ViewPropTypes = _$$_REQUIRE(_dependencyMap[7], 'ViewPropTypes'); - - var ViewStylePropTypes = _$$_REQUIRE(_dependencyMap[8], 'ViewStylePropTypes'); - - var processColor = _$$_REQUIRE(_dependencyMap[9], 'processColor'); - - var requireNativeComponent = _$$_REQUIRE(_dependencyMap[10], 'requireNativeComponent'); - - var DropdownPicker = requireNativeComponent('AndroidDropdownPicker'); - var DialogPicker = requireNativeComponent('AndroidDialogPicker'); - var REF_PICKER = 'picker'; - var MODE_DROPDOWN = 'dropdown'; - var pickerStyleType = StyleSheetPropType(_objectSpread({}, ViewStylePropTypes, { - color: ColorPropType - })); - - var PickerAndroid = function (_React$Component) { - function PickerAndroid(_props, context) { - var _this; - - _classCallCheck(this, PickerAndroid); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(PickerAndroid).call(this, _props, context)); - - _this._stateFromProps = function (props) { - var selectedIndex = 0; - var items = React.Children.map(props.children, function (child, index) { - if (child.props.value === props.selectedValue) { - selectedIndex = index; - } - - var childProps = { - value: child.props.value, - label: child.props.label - }; - - if (child.props.color) { - childProps.color = processColor(child.props.color); - } - - return childProps; - }); - return { - selectedIndex: selectedIndex, - items: items - }; - }; - - _this._onChange = function (event) { - if (_this.props.onValueChange) { - var position = event.nativeEvent.position; - - if (position >= 0) { - var children = React.Children.toArray(_this.props.children); - var value = children[position].props.value; - - _this.props.onValueChange(value, position); - } else { - _this.props.onValueChange(null, position); - } - } - - _this._lastNativePosition = event.nativeEvent.position; - - _this.forceUpdate(); - }; - - var state = _this._stateFromProps(_props); - - _this.state = _objectSpread({}, state, { - initialSelectedIndex: state.selectedIndex - }); - return _this; - } - - _createClass(PickerAndroid, [{ - key: "UNSAFE_componentWillReceiveProps", - value: function UNSAFE_componentWillReceiveProps(nextProps) { - this.setState(this._stateFromProps(nextProps)); - } - }, { - key: "render", - value: function render() { - var Picker = this.props.mode === MODE_DROPDOWN ? DropdownPicker : DialogPicker; - var nativeProps = { - enabled: this.props.enabled, - items: this.state.items, - mode: this.props.mode, - onSelect: this._onChange, - prompt: this.props.prompt, - selected: this.state.initialSelectedIndex, - testID: this.props.testID, - style: [styles.pickerAndroid, this.props.style], - accessibilityLabel: this.props.accessibilityLabel - }; - return React.createElement(Picker, _extends({ - ref: REF_PICKER - }, nativeProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 112 - } - })); - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - this._lastNativePosition = this.state.initialSelectedIndex; - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - if (this.refs[REF_PICKER] && this.state.selectedIndex !== this._lastNativePosition) { - this.refs[REF_PICKER].setNativeProps({ - selected: this.state.selectedIndex - }); - this._lastNativePosition = this.state.selectedIndex; - } - } - }]); - - _inherits(PickerAndroid, _React$Component); - - return PickerAndroid; - }(React.Component); - - PickerAndroid.propTypes = _objectSpread({}, ViewPropTypes, { - style: pickerStyleType, - selectedValue: ReactPropTypes.any, - enabled: ReactPropTypes.bool, - mode: ReactPropTypes.oneOf(['dialog', 'dropdown']), - onValueChange: ReactPropTypes.func, - prompt: ReactPropTypes.string, - testID: ReactPropTypes.string - }); - PickerAndroid = _wrapComponent("PickerAndroid")(PickerAndroid); - var styles = StyleSheet.create({ - pickerAndroid: { - height: 50 - } - }); - module.exports = PickerAndroid; -},484,[122,161,98,121,143,83,316,101,137,95,96],"node_modules/react-native/Libraries/Components/Picker/PickerAndroid.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - DummyProgressViewIOS: { - displayName: "DummyProgressViewIOS" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); - - var Text = _$$_REQUIRE(_dependencyMap[4], 'Text'); - - var View = _$$_REQUIRE(_dependencyMap[5], 'View'); - - var DummyProgressViewIOS = function (_React$Component) { - function DummyProgressViewIOS() { - _classCallCheck(this, DummyProgressViewIOS); - - return _possibleConstructorReturn(this, _getPrototypeOf(DummyProgressViewIOS).apply(this, arguments)); - } - - _createClass(DummyProgressViewIOS, [{ - key: "render", - value: function render() { - return React.createElement(View, { - style: [styles.dummy, this.props.style], - __source: { - fileName: _jsxFileName, - lineNumber: 20 - } - }, React.createElement(Text, { - style: styles.text, - __source: { - fileName: _jsxFileName, - lineNumber: 21 - } - }, "ProgressViewIOS is not supported on this platform!")); - } - }]); - - _inherits(DummyProgressViewIOS, _React$Component); - - return DummyProgressViewIOS; - }(React.Component); - - DummyProgressViewIOS = _wrapComponent("DummyProgressViewIOS")(DummyProgressViewIOS); - var styles = StyleSheet.create({ - dummy: { - width: 120, - height: 20, - backgroundColor: '#ffbcbc', - borderWidth: 1, - borderColor: 'red', - alignItems: 'center', - justifyContent: 'center' - }, - text: { - color: '#333333', - margin: 5, - fontSize: 10 - } - }); - module.exports = DummyProgressViewIOS; -},26,[122,161,121,83,39,48],"node_modules/react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Lists/SectionList.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var _components = { - SectionList: { - displayName: "SectionList" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Lists/SectionList.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var MetroListView = _$$_REQUIRE(_dependencyMap[2], 'MetroListView'); - - var Platform = _$$_REQUIRE(_dependencyMap[3], 'Platform'); - - var React = _$$_REQUIRE(_dependencyMap[4], 'React'); - - var ScrollView = _$$_REQUIRE(_dependencyMap[5], 'ScrollView'); - - var VirtualizedSectionList = _$$_REQUIRE(_dependencyMap[6], 'VirtualizedSectionList'); - - var defaultProps = _objectSpread({}, VirtualizedSectionList.defaultProps, { - stickySectionHeadersEnabled: Platform.OS === 'ios' - }); - - var SectionList = function (_React$PureComponent) { - function SectionList() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, SectionList); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SectionList)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._captureRef = function (ref) { - _this._wrapperListRef = ref; - }, _temp)); - } - - _createClass(SectionList, [{ - key: "scrollToLocation", - value: function scrollToLocation(params) { - this._wrapperListRef.scrollToLocation(params); - } - }, { - key: "recordInteraction", - value: function recordInteraction() { - var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); - - listRef && listRef.recordInteraction(); - } - }, { - key: "flashScrollIndicators", - value: function flashScrollIndicators() { - var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); - - listRef && listRef.flashScrollIndicators(); - } - }, { - key: "getScrollResponder", - value: function getScrollResponder() { - var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); - - if (listRef) { - return listRef.getScrollResponder(); - } - } - }, { - key: "getScrollableNode", - value: function getScrollableNode() { - var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); - - if (listRef) { - return listRef.getScrollableNode(); - } - } - }, { - key: "setNativeProps", - value: function setNativeProps(props) { - var listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); - - if (listRef) { - listRef.setNativeProps(props); - } - } - }, { - key: "render", - value: function render() { - var List = this.props.legacyImplementation ? MetroListView : VirtualizedSectionList; - return React.createElement(List, _extends({}, this.props, { - ref: this._captureRef, - __source: { - fileName: _jsxFileName, - lineNumber: 332 - } - })); - } - }]); - - _inherits(SectionList, _React$PureComponent); - - return SectionList; - }(React.PureComponent); - - SectionList.defaultProps = defaultProps; - SectionList = _wrapComponent("SectionList")(SectionList); - module.exports = SectionList; -},29,[122,161,440,94,121,28,485],"node_modules/react-native/Libraries/Lists/SectionList.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Lists/VirtualizedSectionList.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - var _components = { - VirtualizedSectionList: { - displayName: "VirtualizedSectionList" - }, - ItemWithSeparator: { - displayName: "ItemWithSeparator" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Lists/VirtualizedSectionList.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var View = _$$_REQUIRE(_dependencyMap[3], 'View'); - - var VirtualizedList = _$$_REQUIRE(_dependencyMap[4], 'VirtualizedList'); - - var invariant = _$$_REQUIRE(_dependencyMap[5], 'fbjs/lib/invariant'); - - var VirtualizedSectionList = function (_React$PureComponent) { - _createClass(VirtualizedSectionList, [{ - key: "scrollToLocation", - value: function scrollToLocation(params) { - var index = params.itemIndex + 1; - - for (var ii = 0; ii < params.sectionIndex; ii++) { - index += this.props.sections[ii].data.length + 2; - } - - var toIndexParams = _objectSpread({}, params, { - index: index - }); - - this._listRef.scrollToIndex(toIndexParams); - } - }, { - key: "getListRef", - value: function getListRef() { - return this._listRef; - } - }]); - - function VirtualizedSectionList(props, context) { - var _this; - - _classCallCheck(this, VirtualizedSectionList); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(VirtualizedSectionList).call(this, props, context)); - - _this._keyExtractor = function (item, index) { - var info = _this._subExtractor(index); - - return info && info.key || String(index); - }; - - _this._convertViewable = function (viewable) { - invariant(viewable.index != null, 'Received a broken ViewToken'); - - var info = _this._subExtractor(viewable.index); - - if (!info) { - return null; - } - - var keyExtractor = info.section.keyExtractor || _this.props.keyExtractor; - return _objectSpread({}, viewable, { - index: info.index, - key: keyExtractor(viewable.item, info.index), - section: info.section - }); - }; - - _this._onViewableItemsChanged = function (_ref) { - var viewableItems = _ref.viewableItems, - changed = _ref.changed; - - if (_this.props.onViewableItemsChanged) { - _this.props.onViewableItemsChanged({ - viewableItems: viewableItems.map(_this._convertViewable, _assertThisInitialized(_assertThisInitialized(_this))).filter(Boolean), - changed: changed.map(_this._convertViewable, _assertThisInitialized(_assertThisInitialized(_this))).filter(Boolean) - }); - } - }; - - _this._renderItem = function (_ref2) { - var item = _ref2.item, - index = _ref2.index; - - var info = _this._subExtractor(index); - - if (!info) { - return null; - } - - var infoIndex = info.index; - - if (infoIndex == null) { - var _section = info.section; - - if (info.header === true) { - var _renderSectionHeader = _this.props.renderSectionHeader; - return _renderSectionHeader ? _renderSectionHeader({ - section: _section - }) : null; - } else { - var _renderSectionFooter = _this.props.renderSectionFooter; - return _renderSectionFooter ? _renderSectionFooter({ - section: _section - }) : null; - } - } else { - var _renderItem = info.section.renderItem || _this.props.renderItem; - - var _SeparatorComponent = _this._getSeparatorComponent(index, info); - - invariant(_renderItem, 'no renderItem!'); - return React.createElement(ItemWithSeparator, { - SeparatorComponent: _SeparatorComponent, - LeadingSeparatorComponent: infoIndex === 0 ? _this.props.SectionSeparatorComponent : undefined, - cellKey: info.key, - index: infoIndex, - item: item, - leadingItem: info.leadingItem, - leadingSection: info.leadingSection, - onUpdateSeparator: _this._onUpdateSeparator, - prevCellKey: (_this._subExtractor(index - 1) || {}).key, - ref: function ref(_ref3) { - _this._cellRefs[info.key] = _ref3; - }, - renderItem: _renderItem, - section: info.section, - trailingItem: info.trailingItem, - trailingSection: info.trailingSection, - __source: { - fileName: _jsxFileName, - lineNumber: 316 - } - }); - } - }; - - _this._onUpdateSeparator = function (key, newProps) { - var ref = _this._cellRefs[key]; - ref && ref.updateSeparatorProps(newProps); - }; - - _this._cellRefs = {}; - - _this._captureRef = function (ref) { - _this._listRef = ref; - }; - - _this.state = _this._computeState(props); - return _this; - } - - _createClass(VirtualizedSectionList, [{ - key: "UNSAFE_componentWillReceiveProps", - value: function UNSAFE_componentWillReceiveProps(nextProps) { - this.setState(this._computeState(nextProps)); - } - }, { - key: "_computeState", - value: function _computeState(props) { - var offset = props.ListHeaderComponent ? 1 : 0; - var stickyHeaderIndices = []; - var itemCount = props.sections.reduce(function (v, section) { - stickyHeaderIndices.push(v + offset); - return v + section.data.length + 2; - }, 0); - return { - childProps: _objectSpread({}, props, { - renderItem: this._renderItem, - ItemSeparatorComponent: undefined, - data: props.sections, - getItemCount: function getItemCount() { - return itemCount; - }, - getItem: getItem, - keyExtractor: this._keyExtractor, - onViewableItemsChanged: props.onViewableItemsChanged ? this._onViewableItemsChanged : undefined, - stickyHeaderIndices: props.stickySectionHeadersEnabled ? stickyHeaderIndices : undefined - }) - }; - } - }, { - key: "render", - value: function render() { - return React.createElement(VirtualizedList, _extends({}, this.state.childProps, { - ref: this._captureRef, - __source: { - fileName: _jsxFileName, - lineNumber: 201 - } - })); - } - }, { - key: "_subExtractor", - value: function _subExtractor(index) { - var itemIndex = index; - var defaultKeyExtractor = this.props.keyExtractor; - - for (var ii = 0; ii < this.props.sections.length; ii++) { - var _section2 = this.props.sections[ii]; - - var _key = _section2.key || String(ii); - - itemIndex -= 1; - - if (itemIndex >= _section2.data.length + 1) { - itemIndex -= _section2.data.length + 1; - } else if (itemIndex === -1) { - return { - section: _section2, - key: _key + ':header', - index: null, - header: true, - trailingSection: this.props.sections[ii + 1] - }; - } else if (itemIndex === _section2.data.length) { - return { - section: _section2, - key: _key + ':footer', - index: null, - header: false, - trailingSection: this.props.sections[ii + 1] - }; - } else { - var _keyExtractor = _section2.keyExtractor || defaultKeyExtractor; - - return { - section: _section2, - key: _key + ':' + _keyExtractor(_section2.data[itemIndex], itemIndex), - index: itemIndex, - leadingItem: _section2.data[itemIndex - 1], - leadingSection: this.props.sections[ii - 1], - trailingItem: _section2.data[itemIndex + 1], - trailingSection: this.props.sections[ii + 1] - }; - } - } - } - }, { - key: "_getSeparatorComponent", - value: function _getSeparatorComponent(index, info) { - info = info || this._subExtractor(index); - - if (!info) { - return null; - } - - var ItemSeparatorComponent = info.section.ItemSeparatorComponent || this.props.ItemSeparatorComponent; - var SectionSeparatorComponent = this.props.SectionSeparatorComponent; - var isLastItemInList = index === this.state.childProps.getItemCount() - 1; - var isLastItemInSection = info.index === info.section.data.length - 1; - - if (SectionSeparatorComponent && isLastItemInSection) { - return SectionSeparatorComponent; - } - - if (ItemSeparatorComponent && !isLastItemInSection && !isLastItemInList) { - return ItemSeparatorComponent; - } - - return null; - } - }]); - - _inherits(VirtualizedSectionList, _React$PureComponent); - - return VirtualizedSectionList; - }(React.PureComponent); - - VirtualizedSectionList.defaultProps = _objectSpread({}, VirtualizedList.defaultProps, { - data: [] - }); - VirtualizedSectionList = _wrapComponent("VirtualizedSectionList")(VirtualizedSectionList); - - var ItemWithSeparator = function (_React$Component) { - function ItemWithSeparator() { - var _getPrototypeOf2; - - var _temp, _this2; - - _classCallCheck(this, ItemWithSeparator); - - for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) { - args[_key2] = arguments[_key2]; - } - - return _possibleConstructorReturn(_this2, (_temp = _this2 = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ItemWithSeparator)).call.apply(_getPrototypeOf2, [this].concat(args))), _this2.state = { - separatorProps: { - highlighted: false, - leadingItem: _this2.props.item, - leadingSection: _this2.props.leadingSection, - section: _this2.props.section, - trailingItem: _this2.props.trailingItem, - trailingSection: _this2.props.trailingSection - }, - leadingSeparatorProps: { - highlighted: false, - leadingItem: _this2.props.leadingItem, - leadingSection: _this2.props.leadingSection, - section: _this2.props.section, - trailingItem: _this2.props.item, - trailingSection: _this2.props.trailingSection - } - }, _this2._separators = { - highlight: function highlight() { - ['leading', 'trailing'].forEach(function (s) { - return _this2._separators.updateProps(s, { - highlighted: true - }); - }); - }, - unhighlight: function unhighlight() { - ['leading', 'trailing'].forEach(function (s) { - return _this2._separators.updateProps(s, { - highlighted: false - }); - }); - }, - updateProps: function updateProps(select, newProps) { - var _this2$props = _this2.props, - LeadingSeparatorComponent = _this2$props.LeadingSeparatorComponent, - cellKey = _this2$props.cellKey, - prevCellKey = _this2$props.prevCellKey; - - if (select === 'leading' && LeadingSeparatorComponent != null) { - _this2.setState(function (state) { - return { - leadingSeparatorProps: _objectSpread({}, state.leadingSeparatorProps, newProps) - }; - }); - } else { - _this2.props.onUpdateSeparator(select === 'leading' && prevCellKey || cellKey, newProps); - } - } - }, _temp)); - } - - _createClass(ItemWithSeparator, [{ - key: "updateSeparatorProps", - value: function updateSeparatorProps(newProps) { - this.setState(function (state) { - return { - separatorProps: _objectSpread({}, state.separatorProps, newProps) - }; - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - LeadingSeparatorComponent = _this$props.LeadingSeparatorComponent, - SeparatorComponent = _this$props.SeparatorComponent, - item = _this$props.item, - index = _this$props.index, - section = _this$props.section; - var element = this.props.renderItem({ - item: item, - index: index, - section: section, - separators: this._separators - }); - var leadingSeparator = LeadingSeparatorComponent && React.createElement(LeadingSeparatorComponent, _extends({}, this.state.leadingSeparatorProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 502 - } - })); - var separator = SeparatorComponent && React.createElement(SeparatorComponent, _extends({}, this.state.separatorProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 505 - } - })); - return leadingSeparator || separator ? React.createElement(View, { - __source: { - fileName: _jsxFileName, - lineNumber: 508 - } - }, leadingSeparator, element, separator) : element; - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(props, prevState) { - return { - separatorProps: _objectSpread({}, prevState.separatorProps, { - leadingItem: props.item, - leadingSection: props.leadingSection, - section: props.section, - trailingItem: props.trailingItem, - trailingSection: props.trailingSection - }), - leadingSeparatorProps: _objectSpread({}, prevState.leadingSeparatorProps, { - leadingItem: props.leadingItem, - leadingSection: props.leadingSection, - section: props.section, - trailingItem: props.item, - trailingSection: props.trailingSection - }) - }; - } - }]); - - _inherits(ItemWithSeparator, _React$Component); - - return ItemWithSeparator; - }(React.Component); - - ItemWithSeparator = _wrapComponent("ItemWithSeparator")(ItemWithSeparator); - - function getItem(sections, index) { - if (!sections) { - return null; - } - - var itemIdx = index - 1; - - for (var ii = 0; ii < sections.length; ii++) { - if (itemIdx === -1 || itemIdx === sections[ii].data.length) { - return sections[ii]; - } else if (itemIdx < sections[ii].data.length) { - return sections[ii].data[itemIdx]; - } else { - itemIdx -= sections[ii].data.length + 2; - } - } - - return null; - } - - module.exports = VirtualizedSectionList; -},485,[122,161,121,48,50,4],"node_modules/react-native/Libraries/Lists/VirtualizedSectionList.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.android.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - DummySegmentedControlIOS: { - displayName: "DummySegmentedControlIOS" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.android.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); - - var Text = _$$_REQUIRE(_dependencyMap[4], 'Text'); - - var View = _$$_REQUIRE(_dependencyMap[5], 'View'); - - var DummySegmentedControlIOS = function (_React$Component) { - function DummySegmentedControlIOS() { - _classCallCheck(this, DummySegmentedControlIOS); - - return _possibleConstructorReturn(this, _getPrototypeOf(DummySegmentedControlIOS).apply(this, arguments)); - } - - _createClass(DummySegmentedControlIOS, [{ - key: "render", - value: function render() { - return React.createElement(View, { - style: [styles.dummy, this.props.style], - __source: { - fileName: _jsxFileName, - lineNumber: 20 - } - }, React.createElement(Text, { - style: styles.text, - __source: { - fileName: _jsxFileName, - lineNumber: 21 - } - }, "SegmentedControlIOS is not supported on this platform!")); - } - }]); - - _inherits(DummySegmentedControlIOS, _React$Component); - - return DummySegmentedControlIOS; - }(React.Component); - - DummySegmentedControlIOS = _wrapComponent("DummySegmentedControlIOS")(DummySegmentedControlIOS); - var styles = StyleSheet.create({ - dummy: { - width: 120, - height: 50, - backgroundColor: '#ffbcbc', - borderWidth: 1, - borderColor: 'red', - alignItems: 'center', - justifyContent: 'center' - }, - text: { - color: '#333333', - margin: 5, - fontSize: 10 - } - }); - module.exports = DummySegmentedControlIOS; -},30,[122,161,121,83,39,48],"node_modules/react-native/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/Slider/Slider.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - var ReactNative = _$$_REQUIRE(_dependencyMap[0], 'ReactNative'); - - var Platform = _$$_REQUIRE(_dependencyMap[1], 'Platform'); - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); - - var requireNativeComponent = _$$_REQUIRE(_dependencyMap[4], 'requireNativeComponent'); - - var RCTSlider = requireNativeComponent('RCTSlider'); - - var Slider = function Slider(props, forwardedRef) { - var style = StyleSheet.compose(styles.slider, props.style); - - var onValueChange = props.onValueChange && function (event) { - var userEvent = true; - - if (Platform.OS === 'android') { - userEvent = event.nativeEvent.fromUser; - } - - props.onValueChange && userEvent && props.onValueChange(event.nativeEvent.value); - }; - - var onChange = onValueChange; - - var onSlidingComplete = props.onSlidingComplete && function (event) { - props.onSlidingComplete && props.onSlidingComplete(event.nativeEvent.value); - }; - - return React.createElement(RCTSlider, _extends({}, props, { - ref: forwardedRef, - style: style, - onChange: onChange, - onSlidingComplete: onSlidingComplete, - onValueChange: onValueChange, - enabled: !props.disabled, - onStartShouldSetResponder: function onStartShouldSetResponder() { - return true; - }, - onResponderTerminationRequest: function onResponderTerminationRequest() { - return false; - }, - __source: { - fileName: _jsxFileName, - lineNumber: 229 - } - })); - }; - - var SliderWithRef = React.forwardRef(Slider); - SliderWithRef.defaultProps = { - disabled: false, - value: 0, - minimumValue: 0, - maximumValue: 1, - step: 0 - }; - SliderWithRef.displayName = 'Slider'; - var styles; - - if (Platform.OS === 'ios') { - styles = StyleSheet.create({ - slider: { - height: 40 - } - }); - } else { - styles = StyleSheet.create({ - slider: {} - }); - } - - module.exports = SliderWithRef; -},31,[67,94,121,83,96],"node_modules/react-native/Libraries/Components/Slider/Slider.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - module.exports = _$$_REQUIRE(_dependencyMap[0], 'UnimplementedView'); -},32,[451],"node_modules/react-native/Libraries/RCTTest/SnapshotViewIOS.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/Switch/Switch.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Switch: { - displayName: "Switch" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/Switch/Switch.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var Platform = _$$_REQUIRE(_dependencyMap[2], 'Platform'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var ReactNative = _$$_REQUIRE(_dependencyMap[4], 'ReactNative'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[5], 'StyleSheet'); - - var nullthrows = _$$_REQUIRE(_dependencyMap[6], 'fbjs/lib/nullthrows'); - - var requireNativeComponent = _$$_REQUIRE(_dependencyMap[7], 'requireNativeComponent'); - - var RCTSwitch = Platform.OS === 'android' ? requireNativeComponent('AndroidSwitch') : requireNativeComponent('RCTSwitch'); - - var Switch = function (_React$Component) { - function Switch() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, Switch); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Switch)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._rctSwitch = null, _this._onChange = function (event) { - if (Platform.OS === 'android') { - nullthrows(_this._rctSwitch).setNativeProps({ - on: _this.props.value - }); - } else { - nullthrows(_this._rctSwitch).setNativeProps({ - value: _this.props.value - }); - } - - _this.props.onChange && _this.props.onChange(event); - _this.props.onValueChange && _this.props.onValueChange(event.nativeEvent.value); - }, _temp)); - } - - _createClass(Switch, [{ - key: "render", - value: function render() { - var _this2 = this; - - var props = _objectSpread({}, this.props, { - onStartShouldSetResponder: function onStartShouldSetResponder() { - return true; - }, - onResponderTerminationRequest: function onResponderTerminationRequest() { - return false; - } - }); - - var platformProps = Platform.OS === 'android' ? { - enabled: !this.props.disabled, - on: this.props.value, - style: this.props.style, - trackTintColor: this.props.value ? this.props.onTintColor : this.props.tintColor - } : { - style: StyleSheet.compose(styles.rctSwitchIOS, this.props.style) - }; - return React.createElement(RCTSwitch, _extends({}, props, platformProps, { - ref: function ref(_ref) { - _this2._rctSwitch = _ref; - }, - onChange: this._onChange, - __source: { - fileName: _jsxFileName, - lineNumber: 144 - } - })); - } - }]); - - _inherits(Switch, _React$Component); - - return Switch; - }(React.Component); - - Switch.defaultProps = { - value: false, - disabled: false - }; - Switch = _wrapComponent("Switch")(Switch); - var styles = StyleSheet.create({ - rctSwitchIOS: { - height: 31, - width: 51 - } - }); - module.exports = Switch; -},33,[122,161,94,121,67,83,330,96],"node_modules/react-native/Libraries/Components/Switch/Switch.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableFlatList.js"; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - SwipeableFlatList: { - displayName: "SwipeableFlatList" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableFlatList.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var PropTypes = _$$_REQUIRE(_dependencyMap[2], 'prop-types'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var SwipeableRow = _$$_REQUIRE(_dependencyMap[4], 'SwipeableRow'); - - var FlatList = _$$_REQUIRE(_dependencyMap[5], 'FlatList'); - - var SwipeableFlatList = function (_React$Component) { - function SwipeableFlatList(props, context) { - var _this; - - _classCallCheck(this, SwipeableFlatList); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(SwipeableFlatList).call(this, props, context)); - _this._flatListRef = null; - _this._shouldBounceFirstRowOnMount = false; - - _this._onScroll = function (e) { - if (_this.state.openRowKey) { - _this.setState({ - openRowKey: null - }); - } - - _this.props.onScroll && _this.props.onScroll(e); - }; - - _this._renderItem = function (info) { - var slideoutView = _this.props.renderQuickActions(info); - - var key = _this.props.keyExtractor(info.item, info.index); - - if (!slideoutView) { - return _this.props.renderItem(info); - } - - var shouldBounceOnMount = false; - - if (_this._shouldBounceFirstRowOnMount) { - _this._shouldBounceFirstRowOnMount = false; - shouldBounceOnMount = true; - } - - return React.createElement(SwipeableRow, { - slideoutView: slideoutView, - isOpen: key === _this.state.openRowKey, - maxSwipeDistance: _this._getMaxSwipeDistance(info), - onOpen: function onOpen() { - return _this._onOpen(key); - }, - onClose: function onClose() { - return _this._onClose(key); - }, - shouldBounceOnMount: shouldBounceOnMount, - onSwipeEnd: _this._setListViewScrollable, - onSwipeStart: _this._setListViewNotScrollable, - __source: { - fileName: _jsxFileName, - lineNumber: 134 - } - }, _this.props.renderItem(info)); - }; - - _this._setListViewScrollable = function () { - _this._setListViewScrollableTo(true); - }; - - _this._setListViewNotScrollable = function () { - _this._setListViewScrollableTo(false); - }; - - _this.state = { - openRowKey: null - }; - _this._shouldBounceFirstRowOnMount = _this.props.bounceFirstRowOnMount; - return _this; - } - - _createClass(SwipeableFlatList, [{ - key: "render", - value: function render() { - var _this2 = this; - - return React.createElement(FlatList, _extends({}, this.props, { - ref: function ref(_ref) { - _this2._flatListRef = _ref; - }, - onScroll: this._onScroll, - renderItem: this._renderItem, - __source: { - fileName: _jsxFileName, - lineNumber: 96 - } - })); - } - }, { - key: "_getMaxSwipeDistance", - value: function _getMaxSwipeDistance(info) { - if (typeof this.props.maxSwipeDistance === 'function') { - return this.props.maxSwipeDistance(info); - } - - return this.props.maxSwipeDistance; - } - }, { - key: "_setListViewScrollableTo", - value: function _setListViewScrollableTo(value) { - if (this._flatListRef) { - this._flatListRef.setNativeProps({ - scrollEnabled: value - }); - } - } - }, { - key: "_onOpen", - value: function _onOpen(key) { - this.setState({ - openRowKey: key - }); - } - }, { - key: "_onClose", - value: function _onClose(key) { - this.setState({ - openRowKey: null - }); - } - }]); - - _inherits(SwipeableFlatList, _React$Component); - - return SwipeableFlatList; - }(React.Component); - - SwipeableFlatList.propTypes = _objectSpread({}, FlatList.propTypes, { - bounceFirstRowOnMount: PropTypes.bool.isRequired, - maxSwipeDistance: PropTypes.oneOfType([PropTypes.number, PropTypes.func]).isRequired, - renderQuickActions: PropTypes.func.isRequired - }); - SwipeableFlatList.defaultProps = _objectSpread({}, FlatList.defaultProps, { - bounceFirstRowOnMount: true, - renderQuickActions: function renderQuickActions() { - return null; - } - }); - SwipeableFlatList = _wrapComponent("SwipeableFlatList")(SwipeableFlatList); - module.exports = SwipeableFlatList; -},36,[122,161,143,121,486,12],"node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableFlatList.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableRow.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - var Animated = _$$_REQUIRE(_dependencyMap[0], 'Animated'); - - var I18nManager = _$$_REQUIRE(_dependencyMap[1], 'I18nManager'); - - var PanResponder = _$$_REQUIRE(_dependencyMap[2], 'PanResponder'); - - var React = _$$_REQUIRE(_dependencyMap[3], 'React'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[4], 'prop-types'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[5], 'StyleSheet'); - - var TimerMixin = _$$_REQUIRE(_dependencyMap[6], 'react-timer-mixin'); - - var View = _$$_REQUIRE(_dependencyMap[7], 'View'); - - var createReactClass = _$$_REQUIRE(_dependencyMap[8], 'create-react-class'); - - var emptyFunction = _$$_REQUIRE(_dependencyMap[9], 'fbjs/lib/emptyFunction'); - - var IS_RTL = I18nManager.isRTL; - var CLOSED_LEFT_POSITION = 0; - var HORIZONTAL_SWIPE_DISTANCE_THRESHOLD = 10; - var HORIZONTAL_FULL_SWIPE_SPEED_THRESHOLD = 0.3; - var SLOW_SPEED_SWIPE_FACTOR = 4; - var SWIPE_DURATION = 300; - var ON_MOUNT_BOUNCE_DELAY = 700; - var ON_MOUNT_BOUNCE_DURATION = 400; - var RIGHT_SWIPE_BOUNCE_BACK_DISTANCE = 30; - var RIGHT_SWIPE_BOUNCE_BACK_DURATION = 300; - var RIGHT_SWIPE_THRESHOLD = 30 * SLOW_SPEED_SWIPE_FACTOR; - var SwipeableRow = createReactClass({ - displayName: 'SwipeableRow', - _panResponder: {}, - _previousLeft: CLOSED_LEFT_POSITION, - mixins: [TimerMixin], - propTypes: { - children: PropTypes.any, - isOpen: PropTypes.bool, - preventSwipeRight: PropTypes.bool, - maxSwipeDistance: PropTypes.number.isRequired, - onOpen: PropTypes.func.isRequired, - onClose: PropTypes.func.isRequired, - onSwipeEnd: PropTypes.func.isRequired, - onSwipeStart: PropTypes.func.isRequired, - shouldBounceOnMount: PropTypes.bool, - slideoutView: PropTypes.node.isRequired, - swipeThreshold: PropTypes.number.isRequired - }, - getInitialState: function getInitialState() { - return { - currentLeft: new Animated.Value(this._previousLeft), - isSwipeableViewRendered: false, - rowHeight: null - }; - }, - getDefaultProps: function getDefaultProps() { - return { - isOpen: false, - preventSwipeRight: false, - maxSwipeDistance: 0, - onOpen: emptyFunction, - onClose: emptyFunction, - onSwipeEnd: emptyFunction, - onSwipeStart: emptyFunction, - swipeThreshold: 30 - }; - }, - UNSAFE_componentWillMount: function UNSAFE_componentWillMount() { - this._panResponder = PanResponder.create({ - onMoveShouldSetPanResponderCapture: this._handleMoveShouldSetPanResponderCapture, - onPanResponderGrant: this._handlePanResponderGrant, - onPanResponderMove: this._handlePanResponderMove, - onPanResponderRelease: this._handlePanResponderEnd, - onPanResponderTerminationRequest: this._onPanResponderTerminationRequest, - onPanResponderTerminate: this._handlePanResponderEnd, - onShouldBlockNativeResponder: function onShouldBlockNativeResponder(event, gestureState) { - return false; - } - }); - }, - componentDidMount: function componentDidMount() { - var _this = this; - - if (this.props.shouldBounceOnMount) { - this.setTimeout(function () { - _this._animateBounceBack(ON_MOUNT_BOUNCE_DURATION); - }, ON_MOUNT_BOUNCE_DELAY); - } - }, - UNSAFE_componentWillReceiveProps: function UNSAFE_componentWillReceiveProps(nextProps) { - if (this.props.isOpen && !nextProps.isOpen) { - this._animateToClosedPosition(); - } - }, - render: function render() { - var slideOutView; - - if (this.state.isSwipeableViewRendered && this.state.rowHeight) { - slideOutView = React.createElement(View, { - style: [styles.slideOutContainer, { - height: this.state.rowHeight - }], - __source: { - fileName: _jsxFileName, - lineNumber: 178 - } - }, this.props.slideoutView); - } - - var swipeableView = React.createElement(Animated.View, { - onLayout: this._onSwipeableViewLayout, - style: { - transform: [{ - translateX: this.state.currentLeft - }] - }, - __source: { - fileName: _jsxFileName, - lineNumber: 187 - } - }, this.props.children); - return React.createElement(View, _extends({}, this._panResponder.panHandlers, { - __source: { - fileName: _jsxFileName, - lineNumber: 195 - } - }), slideOutView, swipeableView); - }, - close: function close() { - this.props.onClose(); - - this._animateToClosedPosition(); - }, - _onSwipeableViewLayout: function _onSwipeableViewLayout(event) { - this.setState({ - isSwipeableViewRendered: true, - rowHeight: event.nativeEvent.layout.height - }); - }, - _handleMoveShouldSetPanResponderCapture: function _handleMoveShouldSetPanResponderCapture(event, gestureState) { - return gestureState.dy < 10 && this._isValidSwipe(gestureState); - }, - _handlePanResponderGrant: function _handlePanResponderGrant(event, gestureState) {}, - _handlePanResponderMove: function _handlePanResponderMove(event, gestureState) { - if (this._isSwipingExcessivelyRightFromClosedPosition(gestureState)) { - return; - } - - this.props.onSwipeStart(); - - if (this._isSwipingRightFromClosed(gestureState)) { - this._swipeSlowSpeed(gestureState); - } else { - this._swipeFullSpeed(gestureState); - } - }, - _isSwipingRightFromClosed: function _isSwipingRightFromClosed(gestureState) { - var gestureStateDx = IS_RTL ? -gestureState.dx : gestureState.dx; - return this._previousLeft === CLOSED_LEFT_POSITION && gestureStateDx > 0; - }, - _swipeFullSpeed: function _swipeFullSpeed(gestureState) { - this.state.currentLeft.setValue(this._previousLeft + gestureState.dx); - }, - _swipeSlowSpeed: function _swipeSlowSpeed(gestureState) { - this.state.currentLeft.setValue(this._previousLeft + gestureState.dx / SLOW_SPEED_SWIPE_FACTOR); - }, - _isSwipingExcessivelyRightFromClosedPosition: function _isSwipingExcessivelyRightFromClosedPosition(gestureState) { - var gestureStateDx = IS_RTL ? -gestureState.dx : gestureState.dx; - return this._isSwipingRightFromClosed(gestureState) && gestureStateDx > RIGHT_SWIPE_THRESHOLD; - }, - _onPanResponderTerminationRequest: function _onPanResponderTerminationRequest(event, gestureState) { - return false; - }, - _animateTo: function _animateTo(toValue) { - var _this2 = this; - - var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : SWIPE_DURATION; - var callback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : emptyFunction; - Animated.timing(this.state.currentLeft, { - duration: duration, - toValue: toValue, - useNativeDriver: true - }).start(function () { - _this2._previousLeft = toValue; - callback(); - }); - }, - _animateToOpenPosition: function _animateToOpenPosition() { - var maxSwipeDistance = IS_RTL ? -this.props.maxSwipeDistance : this.props.maxSwipeDistance; - - this._animateTo(-maxSwipeDistance); - }, - _animateToOpenPositionWith: function _animateToOpenPositionWith(speed, distMoved) { - speed = speed > HORIZONTAL_FULL_SWIPE_SPEED_THRESHOLD ? speed : HORIZONTAL_FULL_SWIPE_SPEED_THRESHOLD; - var duration = Math.abs((this.props.maxSwipeDistance - Math.abs(distMoved)) / speed); - var maxSwipeDistance = IS_RTL ? -this.props.maxSwipeDistance : this.props.maxSwipeDistance; - - this._animateTo(-maxSwipeDistance, duration); - }, - _animateToClosedPosition: function _animateToClosedPosition() { - var duration = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : SWIPE_DURATION; - - this._animateTo(CLOSED_LEFT_POSITION, duration); - }, - _animateToClosedPositionDuringBounce: function _animateToClosedPositionDuringBounce() { - this._animateToClosedPosition(RIGHT_SWIPE_BOUNCE_BACK_DURATION); - }, - _animateBounceBack: function _animateBounceBack(duration) { - var swipeBounceBackDistance = IS_RTL ? -RIGHT_SWIPE_BOUNCE_BACK_DISTANCE : RIGHT_SWIPE_BOUNCE_BACK_DISTANCE; - - this._animateTo(-swipeBounceBackDistance, duration, this._animateToClosedPositionDuringBounce); - }, - _isValidSwipe: function _isValidSwipe(gestureState) { - if (this.props.preventSwipeRight && this._previousLeft === CLOSED_LEFT_POSITION && gestureState.dx > 0) { - return false; - } - - return Math.abs(gestureState.dx) > HORIZONTAL_SWIPE_DISTANCE_THRESHOLD; - }, - _shouldAnimateRemainder: function _shouldAnimateRemainder(gestureState) { - return Math.abs(gestureState.dx) > this.props.swipeThreshold || gestureState.vx > HORIZONTAL_FULL_SWIPE_SPEED_THRESHOLD; - }, - _handlePanResponderEnd: function _handlePanResponderEnd(event, gestureState) { - var horizontalDistance = IS_RTL ? -gestureState.dx : gestureState.dx; - - if (this._isSwipingRightFromClosed(gestureState)) { - this.props.onOpen(); - - this._animateBounceBack(RIGHT_SWIPE_BOUNCE_BACK_DURATION); - } else if (this._shouldAnimateRemainder(gestureState)) { - if (horizontalDistance < 0) { - this.props.onOpen(); - - this._animateToOpenPositionWith(gestureState.vx, horizontalDistance); - } else { - this.props.onClose(); - - this._animateToClosedPosition(); - } - } else { - if (this._previousLeft === CLOSED_LEFT_POSITION) { - this._animateToClosedPosition(); - } else { - this._animateToOpenPosition(); - } - } - - this.props.onSwipeEnd(); - } - }); - - var TypedSwipeableRow = function (_React$Component) { - function TypedSwipeableRow() { - _classCallCheck(this, TypedSwipeableRow); - - return _possibleConstructorReturn(this, _getPrototypeOf(TypedSwipeableRow).apply(this, arguments)); - } - - _createClass(TypedSwipeableRow, [{ - key: "close", - value: function close() {} - }]); - - _inherits(TypedSwipeableRow, _React$Component); - - return TypedSwipeableRow; - }(React.Component); - - var styles = StyleSheet.create({ - slideOutContainer: { - bottom: 0, - left: 0, - position: 'absolute', - right: 0, - top: 0 - } - }); - module.exports = SwipeableRow; -},486,[55,68,76,121,143,83,404,48,402,116],"node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableRow.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var InteractionManager = _$$_REQUIRE(_dependencyMap[0], './InteractionManager'); - - var TouchHistoryMath = _$$_REQUIRE(_dependencyMap[1], './TouchHistoryMath'); - - var currentCentroidXOfTouchesChangedAfter = TouchHistoryMath.currentCentroidXOfTouchesChangedAfter; - var currentCentroidYOfTouchesChangedAfter = TouchHistoryMath.currentCentroidYOfTouchesChangedAfter; - var previousCentroidXOfTouchesChangedAfter = TouchHistoryMath.previousCentroidXOfTouchesChangedAfter; - var previousCentroidYOfTouchesChangedAfter = TouchHistoryMath.previousCentroidYOfTouchesChangedAfter; - var currentCentroidX = TouchHistoryMath.currentCentroidX; - var currentCentroidY = TouchHistoryMath.currentCentroidY; - var PanResponder = { - _initializeGestureState: function _initializeGestureState(gestureState) { - gestureState.moveX = 0; - gestureState.moveY = 0; - gestureState.x0 = 0; - gestureState.y0 = 0; - gestureState.dx = 0; - gestureState.dy = 0; - gestureState.vx = 0; - gestureState.vy = 0; - gestureState.numberActiveTouches = 0; - gestureState._accountsForMovesUpTo = 0; - }, - _updateGestureStateOnMove: function _updateGestureStateOnMove(gestureState, touchHistory) { - gestureState.numberActiveTouches = touchHistory.numberActiveTouches; - gestureState.moveX = currentCentroidXOfTouchesChangedAfter(touchHistory, gestureState._accountsForMovesUpTo); - gestureState.moveY = currentCentroidYOfTouchesChangedAfter(touchHistory, gestureState._accountsForMovesUpTo); - var movedAfter = gestureState._accountsForMovesUpTo; - var prevX = previousCentroidXOfTouchesChangedAfter(touchHistory, movedAfter); - var x = currentCentroidXOfTouchesChangedAfter(touchHistory, movedAfter); - var prevY = previousCentroidYOfTouchesChangedAfter(touchHistory, movedAfter); - var y = currentCentroidYOfTouchesChangedAfter(touchHistory, movedAfter); - var nextDX = gestureState.dx + (x - prevX); - var nextDY = gestureState.dy + (y - prevY); - var dt = touchHistory.mostRecentTimeStamp - gestureState._accountsForMovesUpTo; - gestureState.vx = (nextDX - gestureState.dx) / dt; - gestureState.vy = (nextDY - gestureState.dy) / dt; - gestureState.dx = nextDX; - gestureState.dy = nextDY; - gestureState._accountsForMovesUpTo = touchHistory.mostRecentTimeStamp; - }, - create: function create(config) { - var interactionState = { - handle: null - }; - var gestureState = { - stateID: Math.random() - }; - - PanResponder._initializeGestureState(gestureState); - - var panHandlers = { - onStartShouldSetResponder: function onStartShouldSetResponder(e) { - return config.onStartShouldSetPanResponder === undefined ? false : config.onStartShouldSetPanResponder(e, gestureState); - }, - onMoveShouldSetResponder: function onMoveShouldSetResponder(e) { - return config.onMoveShouldSetPanResponder === undefined ? false : config.onMoveShouldSetPanResponder(e, gestureState); - }, - onStartShouldSetResponderCapture: function onStartShouldSetResponderCapture(e) { - if (e.nativeEvent.touches.length === 1) { - PanResponder._initializeGestureState(gestureState); - } - - gestureState.numberActiveTouches = e.touchHistory.numberActiveTouches; - return config.onStartShouldSetPanResponderCapture !== undefined ? config.onStartShouldSetPanResponderCapture(e, gestureState) : false; - }, - onMoveShouldSetResponderCapture: function onMoveShouldSetResponderCapture(e) { - var touchHistory = e.touchHistory; - - if (gestureState._accountsForMovesUpTo === touchHistory.mostRecentTimeStamp) { - return false; - } - - PanResponder._updateGestureStateOnMove(gestureState, touchHistory); - - return config.onMoveShouldSetPanResponderCapture ? config.onMoveShouldSetPanResponderCapture(e, gestureState) : false; - }, - onResponderGrant: function onResponderGrant(e) { - if (!interactionState.handle) { - interactionState.handle = InteractionManager.createInteractionHandle(); - } - - gestureState.x0 = currentCentroidX(e.touchHistory); - gestureState.y0 = currentCentroidY(e.touchHistory); - gestureState.dx = 0; - gestureState.dy = 0; - - if (config.onPanResponderGrant) { - config.onPanResponderGrant(e, gestureState); - } - - return config.onShouldBlockNativeResponder === undefined ? true : config.onShouldBlockNativeResponder(); - }, - onResponderReject: function onResponderReject(e) { - clearInteractionHandle(interactionState, config.onPanResponderReject, e, gestureState); - }, - onResponderRelease: function onResponderRelease(e) { - clearInteractionHandle(interactionState, config.onPanResponderRelease, e, gestureState); - - PanResponder._initializeGestureState(gestureState); - }, - onResponderStart: function onResponderStart(e) { - var touchHistory = e.touchHistory; - gestureState.numberActiveTouches = touchHistory.numberActiveTouches; - - if (config.onPanResponderStart) { - config.onPanResponderStart(e, gestureState); - } - }, - onResponderMove: function onResponderMove(e) { - var touchHistory = e.touchHistory; - - if (gestureState._accountsForMovesUpTo === touchHistory.mostRecentTimeStamp) { - return; - } - - PanResponder._updateGestureStateOnMove(gestureState, touchHistory); - - if (config.onPanResponderMove) { - config.onPanResponderMove(e, gestureState); - } - }, - onResponderEnd: function onResponderEnd(e) { - var touchHistory = e.touchHistory; - gestureState.numberActiveTouches = touchHistory.numberActiveTouches; - clearInteractionHandle(interactionState, config.onPanResponderEnd, e, gestureState); - }, - onResponderTerminate: function onResponderTerminate(e) { - clearInteractionHandle(interactionState, config.onPanResponderTerminate, e, gestureState); - - PanResponder._initializeGestureState(gestureState); - }, - onResponderTerminationRequest: function onResponderTerminationRequest(e) { - return config.onPanResponderTerminationRequest === undefined ? true : config.onPanResponderTerminationRequest(e, gestureState); - } - }; - return { - panHandlers: panHandlers, - getInteractionHandle: function getInteractionHandle() { - return interactionState.handle; - } - }; - } - }; - - function clearInteractionHandle(interactionState, callback, event, gestureState) { - if (interactionState.handle) { - InteractionManager.clearInteractionHandle(interactionState.handle); - interactionState.handle = null; - } - - if (callback) { - callback(event, gestureState); - } - } - - module.exports = PanResponder; -},76,[70,487],"node_modules/react-native/Libraries/Interaction/PanResponder.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var TouchHistoryMath = { - centroidDimension: function centroidDimension(touchHistory, touchesChangedAfter, isXAxis, ofCurrent) { - var touchBank = touchHistory.touchBank; - var total = 0; - var count = 0; - var oneTouchData = touchHistory.numberActiveTouches === 1 ? touchHistory.touchBank[touchHistory.indexOfSingleActiveTouch] : null; - - if (oneTouchData !== null) { - if (oneTouchData.touchActive && oneTouchData.currentTimeStamp > touchesChangedAfter) { - total += ofCurrent && isXAxis ? oneTouchData.currentPageX : ofCurrent && !isXAxis ? oneTouchData.currentPageY : !ofCurrent && isXAxis ? oneTouchData.previousPageX : oneTouchData.previousPageY; - count = 1; - } - } else { - for (var i = 0; i < touchBank.length; i++) { - var touchTrack = touchBank[i]; - - if (touchTrack !== null && touchTrack !== undefined && touchTrack.touchActive && touchTrack.currentTimeStamp >= touchesChangedAfter) { - var toAdd = void 0; - - if (ofCurrent && isXAxis) { - toAdd = touchTrack.currentPageX; - } else if (ofCurrent && !isXAxis) { - toAdd = touchTrack.currentPageY; - } else if (!ofCurrent && isXAxis) { - toAdd = touchTrack.previousPageX; - } else { - toAdd = touchTrack.previousPageY; - } - - total += toAdd; - count++; - } - } - } - - return count > 0 ? total / count : TouchHistoryMath.noCentroid; - }, - currentCentroidXOfTouchesChangedAfter: function currentCentroidXOfTouchesChangedAfter(touchHistory, touchesChangedAfter) { - return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, true, true); - }, - currentCentroidYOfTouchesChangedAfter: function currentCentroidYOfTouchesChangedAfter(touchHistory, touchesChangedAfter) { - return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, false, true); - }, - previousCentroidXOfTouchesChangedAfter: function previousCentroidXOfTouchesChangedAfter(touchHistory, touchesChangedAfter) { - return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, true, false); - }, - previousCentroidYOfTouchesChangedAfter: function previousCentroidYOfTouchesChangedAfter(touchHistory, touchesChangedAfter) { - return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, false, false); - }, - currentCentroidX: function currentCentroidX(touchHistory) { - return TouchHistoryMath.centroidDimension(touchHistory, 0, true, true); - }, - currentCentroidY: function currentCentroidY(touchHistory) { - return TouchHistoryMath.centroidDimension(touchHistory, 0, false, true); - }, - noCentroid: -1 - }; - module.exports = TouchHistoryMath; -},487,[],"node_modules/react-native/Libraries/Interaction/TouchHistoryMath.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableListView.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var _components = { - SwipeableListView: { - displayName: "SwipeableListView" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableListView.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var ListView = _$$_REQUIRE(_dependencyMap[2], 'ListView'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); - - var React = _$$_REQUIRE(_dependencyMap[4], 'React'); - - var SwipeableListViewDataSource = _$$_REQUIRE(_dependencyMap[5], 'SwipeableListViewDataSource'); - - var SwipeableRow = _$$_REQUIRE(_dependencyMap[6], 'SwipeableRow'); - - var SwipeableListView = function (_React$Component) { - _createClass(SwipeableListView, null, [{ - key: "getNewDataSource", - value: function getNewDataSource() { - return new SwipeableListViewDataSource({ - getRowData: function getRowData(data, sectionID, rowID) { - return data[sectionID][rowID]; - }, - getSectionHeaderData: function getSectionHeaderData(data, sectionID) { - return data[sectionID]; - }, - rowHasChanged: function rowHasChanged(row1, row2) { - return row1 !== row2; - }, - sectionHeaderHasChanged: function sectionHeaderHasChanged(s1, s2) { - return s1 !== s2; - } - }); - } - }]); - - function SwipeableListView(props, context) { - var _this; - - _classCallCheck(this, SwipeableListView); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(SwipeableListView).call(this, props, context)); - _this._listViewRef = null; - _this._shouldBounceFirstRowOnMount = false; - - _this._onScroll = function (e) { - if (_this.props.dataSource.getOpenRowID()) { - _this.setState({ - dataSource: _this.state.dataSource.setOpenRowID(null) - }); - } - - _this.props.onScroll && _this.props.onScroll(e); - }; - - _this._renderRow = function (rowData, sectionID, rowID) { - var slideoutView = _this.props.renderQuickActions(rowData, sectionID, rowID); - - if (!slideoutView) { - return _this.props.renderRow(rowData, sectionID, rowID); - } - - var shouldBounceOnMount = false; - - if (_this._shouldBounceFirstRowOnMount) { - _this._shouldBounceFirstRowOnMount = false; - shouldBounceOnMount = rowID === _this.props.dataSource.getFirstRowID(); - } - - return React.createElement(SwipeableRow, { - slideoutView: slideoutView, - isOpen: rowData.id === _this.props.dataSource.getOpenRowID(), - maxSwipeDistance: _this._getMaxSwipeDistance(rowData, sectionID, rowID), - key: rowID, - onOpen: function onOpen() { - return _this._onOpen(rowData.id); - }, - onClose: function onClose() { - return _this._onClose(rowData.id); - }, - onSwipeEnd: function onSwipeEnd() { - return _this._setListViewScrollable(true); - }, - onSwipeStart: function onSwipeStart() { - return _this._setListViewScrollable(false); - }, - shouldBounceOnMount: shouldBounceOnMount, - __source: { - fileName: _jsxFileName, - lineNumber: 213 - } - }, _this.props.renderRow(rowData, sectionID, rowID)); - }; - - _this._shouldBounceFirstRowOnMount = _this.props.bounceFirstRowOnMount; - _this.state = { - dataSource: _this.props.dataSource - }; - return _this; - } - - _createClass(SwipeableListView, [{ - key: "UNSAFE_componentWillReceiveProps", - value: function UNSAFE_componentWillReceiveProps(nextProps) { - if (this.state.dataSource.getDataSource() !== nextProps.dataSource.getDataSource()) { - this.setState({ - dataSource: nextProps.dataSource - }); - } - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - return React.createElement(ListView, _extends({}, this.props, { - ref: function ref(_ref) { - _this2._listViewRef = _ref; - }, - dataSource: this.state.dataSource.getDataSource(), - onScroll: this._onScroll, - renderRow: this._renderRow, - __source: { - fileName: _jsxFileName, - lineNumber: 121 - } - })); - } - }, { - key: "_setListViewScrollable", - value: function _setListViewScrollable(value) { - if (this._listViewRef && typeof this._listViewRef.setNativeProps === 'function') { - this._listViewRef.setNativeProps({ - scrollEnabled: value - }); - } - } - }, { - key: "getScrollResponder", - value: function getScrollResponder() { - if (this._listViewRef && typeof this._listViewRef.getScrollResponder === 'function') { - return this._listViewRef.getScrollResponder(); - } - } - }, { - key: "_getMaxSwipeDistance", - value: function _getMaxSwipeDistance(rowData, sectionID, rowID) { - if (typeof this.props.maxSwipeDistance === 'function') { - return this.props.maxSwipeDistance(rowData, sectionID, rowID); - } - - return this.props.maxSwipeDistance; - } - }, { - key: "_onOpen", - value: function _onOpen(rowID) { - this.setState({ - dataSource: this.state.dataSource.setOpenRowID(rowID) - }); - } - }, { - key: "_onClose", - value: function _onClose(rowID) { - this.setState({ - dataSource: this.state.dataSource.setOpenRowID(null) - }); - } - }]); - - _inherits(SwipeableListView, _React$Component); - - return SwipeableListView; - }(React.Component); - - SwipeableListView.propTypes = { - bounceFirstRowOnMount: PropTypes.bool.isRequired, - dataSource: PropTypes.instanceOf(SwipeableListViewDataSource).isRequired, - maxSwipeDistance: PropTypes.oneOfType([PropTypes.number, PropTypes.func]).isRequired, - renderRow: PropTypes.func.isRequired, - renderQuickActions: PropTypes.func.isRequired - }; - SwipeableListView.defaultProps = { - bounceFirstRowOnMount: false, - renderQuickActions: function renderQuickActions() { - return null; - } - }; - SwipeableListView = _wrapComponent("SwipeableListView")(SwipeableListView); - module.exports = SwipeableListView; -},37,[122,161,19,143,121,488,486],"node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableListView.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var ListViewDataSource = _$$_REQUIRE(_dependencyMap[0], 'ListViewDataSource'); - - var SwipeableListViewDataSource = function () { - function SwipeableListViewDataSource(params) { - var _this = this; - - _classCallCheck(this, SwipeableListViewDataSource); - - this._dataSource = new ListViewDataSource({ - getRowData: params.getRowData, - getSectionHeaderData: params.getSectionHeaderData, - rowHasChanged: function rowHasChanged(row1, row2) { - return row1.id !== _this._previousOpenRowID && row2.id === _this._openRowID || row1.id === _this._previousOpenRowID && row2.id !== _this._openRowID || params.rowHasChanged(row1, row2); - }, - sectionHeaderHasChanged: params.sectionHeaderHasChanged - }); - } - - _createClass(SwipeableListViewDataSource, [{ - key: "cloneWithRowsAndSections", - value: function cloneWithRowsAndSections(dataBlob, sectionIdentities, rowIdentities) { - this._dataSource = this._dataSource.cloneWithRowsAndSections(dataBlob, sectionIdentities, rowIdentities); - this._dataBlob = dataBlob; - this.rowIdentities = this._dataSource.rowIdentities; - this.sectionIdentities = this._dataSource.sectionIdentities; - return this; - } - }, { - key: "getDataSource", - value: function getDataSource() { - return this._dataSource; - } - }, { - key: "getOpenRowID", - value: function getOpenRowID() { - return this._openRowID; - } - }, { - key: "getFirstRowID", - value: function getFirstRowID() { - if (this.rowIdentities) { - return this.rowIdentities[0] && this.rowIdentities[0][0]; - } - - return Object.keys(this._dataBlob)[0]; - } - }, { - key: "getLastRowID", - value: function getLastRowID() { - if (this.rowIdentities && this.rowIdentities.length) { - var lastSection = this.rowIdentities[this.rowIdentities.length - 1]; - - if (lastSection && lastSection.length) { - return lastSection[lastSection.length - 1]; - } - } - - return Object.keys(this._dataBlob)[this._dataBlob.length - 1]; - } - }, { - key: "setOpenRowID", - value: function setOpenRowID(rowID) { - this._previousOpenRowID = this._openRowID; - this._openRowID = rowID; - this._dataSource = this._dataSource.cloneWithRowsAndSections(this._dataBlob, this.sectionIdentities, this.rowIdentities); - return this; - } - }]); - - return SwipeableListViewDataSource; - }(); - - module.exports = SwipeableListViewDataSource; -},488,[442],"node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableListViewDataSource.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/TabBarIOS/TabBarIOS.android.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - DummyTabBarIOS: { - displayName: "DummyTabBarIOS" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/TabBarIOS/TabBarIOS.android.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[3], 'StyleSheet'); - - var TabBarItemIOS = _$$_REQUIRE(_dependencyMap[4], 'TabBarItemIOS'); - - var View = _$$_REQUIRE(_dependencyMap[5], 'View'); - - var DummyTabBarIOS = function (_React$Component) { - function DummyTabBarIOS() { - _classCallCheck(this, DummyTabBarIOS); - - return _possibleConstructorReturn(this, _getPrototypeOf(DummyTabBarIOS).apply(this, arguments)); - } - - _createClass(DummyTabBarIOS, [{ - key: "render", - value: function render() { - return React.createElement(View, { - style: [this.props.style, styles.tabGroup], - __source: { - fileName: _jsxFileName, - lineNumber: 23 - } - }, this.props.children); - } - }]); - - _inherits(DummyTabBarIOS, _React$Component); - - return DummyTabBarIOS; - }(React.Component); - - DummyTabBarIOS.Item = TabBarItemIOS; - DummyTabBarIOS = _wrapComponent("DummyTabBarIOS")(DummyTabBarIOS); - var styles = StyleSheet.create({ - tabGroup: { - flex: 1 - } - }); - module.exports = DummyTabBarIOS; -},38,[122,161,121,83,489,48],"node_modules/react-native/Libraries/Components/TabBarIOS/TabBarIOS.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/TabBarIOS/TabBarItemIOS.android.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - DummyTab: { - displayName: "DummyTab" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/TabBarIOS/TabBarItemIOS.android.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var View = _$$_REQUIRE(_dependencyMap[3], 'View'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[4], 'StyleSheet'); - - var DummyTab = function (_React$Component) { - function DummyTab() { - _classCallCheck(this, DummyTab); - - return _possibleConstructorReturn(this, _getPrototypeOf(DummyTab).apply(this, arguments)); - } - - _createClass(DummyTab, [{ - key: "render", - value: function render() { - if (!this.props.selected) { - return React.createElement(View, { - __source: { - fileName: _jsxFileName, - lineNumber: 19 - } - }); - } - - return React.createElement(View, { - style: [this.props.style, styles.tab], - __source: { - fileName: _jsxFileName, - lineNumber: 22 - } - }, this.props.children); - } - }]); - - _inherits(DummyTab, _React$Component); - - return DummyTab; - }(React.Component); - - DummyTab = _wrapComponent("DummyTab")(DummyTab); - var styles = StyleSheet.create({ - tab: { - top: 0, - right: 0, - bottom: 0, - left: 0, - borderColor: 'red', - borderWidth: 1 - } - }); - module.exports = DummyTab; -},489,[122,161,121,48,83],"node_modules/react-native/Libraries/Components/TabBarIOS/TabBarItemIOS.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/TextInput/TextInput.js"; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var ColorPropType = _$$_REQUIRE(_dependencyMap[0], 'ColorPropType'); - - var DocumentSelectionState = _$$_REQUIRE(_dependencyMap[1], 'DocumentSelectionState'); - - var EventEmitter = _$$_REQUIRE(_dependencyMap[2], 'EventEmitter'); - - var NativeMethodsMixin = _$$_REQUIRE(_dependencyMap[3], 'NativeMethodsMixin'); - - var Platform = _$$_REQUIRE(_dependencyMap[4], 'Platform'); - - var React = _$$_REQUIRE(_dependencyMap[5], 'React'); - - var createReactClass = _$$_REQUIRE(_dependencyMap[6], 'create-react-class'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[7], 'prop-types'); - - var ReactNative = _$$_REQUIRE(_dependencyMap[8], 'ReactNative'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[9], 'StyleSheet'); - - var Text = _$$_REQUIRE(_dependencyMap[10], 'Text'); - - var TextAncestor = _$$_REQUIRE(_dependencyMap[11], 'TextAncestor'); - - var TextInputState = _$$_REQUIRE(_dependencyMap[12], 'TextInputState'); - - var TimerMixin = _$$_REQUIRE(_dependencyMap[13], 'react-timer-mixin'); - - var TouchableWithoutFeedback = _$$_REQUIRE(_dependencyMap[14], 'TouchableWithoutFeedback'); - - var UIManager = _$$_REQUIRE(_dependencyMap[15], 'UIManager'); - - var ViewPropTypes = _$$_REQUIRE(_dependencyMap[16], 'ViewPropTypes'); - - var emptyFunction = _$$_REQUIRE(_dependencyMap[17], 'fbjs/lib/emptyFunction'); - - var invariant = _$$_REQUIRE(_dependencyMap[18], 'fbjs/lib/invariant'); - - var requireNativeComponent = _$$_REQUIRE(_dependencyMap[19], 'requireNativeComponent'); - - var warning = _$$_REQUIRE(_dependencyMap[20], 'fbjs/lib/warning'); - - var AndroidTextInput; - var RCTMultilineTextInputView; - var RCTSinglelineTextInputView; - - if (Platform.OS === 'android') { - AndroidTextInput = requireNativeComponent('AndroidTextInput'); - } else if (Platform.OS === 'ios') { - RCTMultilineTextInputView = requireNativeComponent('RCTMultilineTextInputView'); - RCTSinglelineTextInputView = requireNativeComponent('RCTSinglelineTextInputView'); - } - - var onlyMultiline = { - onTextInput: true, - children: true - }; - var DataDetectorTypes = ['phoneNumber', 'link', 'address', 'calendarEvent', 'none', 'all']; - var TextInput = createReactClass({ - displayName: 'TextInput', - statics: { - State: { - currentlyFocusedField: TextInputState.currentlyFocusedField, - focusTextInput: function focusTextInput(textFieldID) { - console.warn('`focusTextInput` is deprecated, use the `focus` method of the `TextInput` ref instead.'); - TextInputState.focusTextInput(textFieldID); - }, - blurTextInput: function blurTextInput(textFieldID) { - console.warn('`blurTextInput` is deprecated, use `Keyboard.dismiss` or the `blur` method of the `TextInput` ref.'); - TextInputState.blurTextInput(textFieldID); - } - } - }, - propTypes: _objectSpread({}, ViewPropTypes, { - autoCapitalize: PropTypes.oneOf(['none', 'sentences', 'words', 'characters']), - autoCorrect: PropTypes.bool, - spellCheck: PropTypes.bool, - autoFocus: PropTypes.bool, - allowFontScaling: PropTypes.bool, - editable: PropTypes.bool, - keyboardType: PropTypes.oneOf(['default', 'email-address', 'numeric', 'phone-pad', 'number-pad', 'ascii-capable', 'numbers-and-punctuation', 'url', 'name-phone-pad', 'decimal-pad', 'twitter', 'web-search', 'visible-password']), - keyboardAppearance: PropTypes.oneOf(['default', 'light', 'dark']), - returnKeyType: PropTypes.oneOf(['done', 'go', 'next', 'search', 'send', 'none', 'previous', 'default', 'emergency-call', 'google', 'join', 'route', 'yahoo']), - returnKeyLabel: PropTypes.string, - maxLength: PropTypes.number, - numberOfLines: PropTypes.number, - disableFullscreenUI: PropTypes.bool, - enablesReturnKeyAutomatically: PropTypes.bool, - multiline: PropTypes.bool, - textBreakStrategy: PropTypes.oneOf(['simple', 'highQuality', 'balanced']), - onBlur: PropTypes.func, - onFocus: PropTypes.func, - onChange: PropTypes.func, - onChangeText: PropTypes.func, - onContentSizeChange: PropTypes.func, - onTextInput: PropTypes.func, - onEndEditing: PropTypes.func, - onSelectionChange: PropTypes.func, - onSubmitEditing: PropTypes.func, - onKeyPress: PropTypes.func, - onLayout: PropTypes.func, - onScroll: PropTypes.func, - placeholder: PropTypes.string, - placeholderTextColor: ColorPropType, - secureTextEntry: PropTypes.bool, - selectionColor: ColorPropType, - selectionState: PropTypes.instanceOf(DocumentSelectionState), - selection: PropTypes.shape({ - start: PropTypes.number.isRequired, - end: PropTypes.number - }), - value: PropTypes.string, - defaultValue: PropTypes.string, - clearButtonMode: PropTypes.oneOf(['never', 'while-editing', 'unless-editing', 'always']), - clearTextOnFocus: PropTypes.bool, - selectTextOnFocus: PropTypes.bool, - blurOnSubmit: PropTypes.bool, - style: Text.propTypes.style, - underlineColorAndroid: ColorPropType, - inlineImageLeft: PropTypes.string, - inlineImagePadding: PropTypes.number, - dataDetectorTypes: PropTypes.oneOfType([PropTypes.oneOf(DataDetectorTypes), PropTypes.arrayOf(PropTypes.oneOf(DataDetectorTypes))]), - caretHidden: PropTypes.bool, - contextMenuHidden: PropTypes.bool, - inputAccessoryViewID: PropTypes.string, - textContentType: PropTypes.oneOf(['none', 'URL', 'addressCity', 'addressCityAndState', 'addressState', 'countryName', 'creditCardNumber', 'emailAddress', 'familyName', 'fullStreetAddress', 'givenName', 'jobTitle', 'location', 'middleName', 'name', 'namePrefix', 'nameSuffix', 'nickname', 'organizationName', 'postalCode', 'streetAddressLine1', 'streetAddressLine2', 'sublocality', 'telephoneNumber', 'username', 'password']) - }), - getDefaultProps: function getDefaultProps() { - return { - allowFontScaling: true, - underlineColorAndroid: 'transparent' - }; - }, - mixins: [NativeMethodsMixin, TimerMixin], - isFocused: function isFocused() { - return TextInputState.currentlyFocusedField() === ReactNative.findNodeHandle(this._inputRef); - }, - _inputRef: undefined, - _focusSubscription: undefined, - _lastNativeText: undefined, - _lastNativeSelection: undefined, - componentDidMount: function componentDidMount() { - var _this = this; - - this._lastNativeText = this.props.value; - var tag = ReactNative.findNodeHandle(this._inputRef); - - if (tag != null) { - TextInputState.registerInput(tag); - } - - if (this.context.focusEmitter) { - this._focusSubscription = this.context.focusEmitter.addListener('focus', function (el) { - if (_this === el) { - _this.requestAnimationFrame(_this.focus); - } else if (_this.isFocused()) { - _this.blur(); - } - }); - - if (this.props.autoFocus) { - this.context.onFocusRequested(this); - } - } else { - if (this.props.autoFocus) { - this.requestAnimationFrame(this.focus); - } - } - }, - componentWillUnmount: function componentWillUnmount() { - this._focusSubscription && this._focusSubscription.remove(); - - if (this.isFocused()) { - this.blur(); - } - - var tag = ReactNative.findNodeHandle(this._inputRef); - - if (tag != null) { - TextInputState.unregisterInput(tag); - } - }, - contextTypes: { - onFocusRequested: PropTypes.func, - focusEmitter: PropTypes.instanceOf(EventEmitter) - }, - clear: function clear() { - this.setNativeProps({ - text: '' - }); - }, - render: function render() { - var textInput; - - if (Platform.OS === 'ios') { - textInput = UIManager.RCTVirtualText ? this._renderIOS() : this._renderIOSLegacy(); - } else if (Platform.OS === 'android') { - textInput = this._renderAndroid(); - } - - return React.createElement(TextAncestor.Provider, { - value: true, - __source: { - fileName: _jsxFileName, - lineNumber: 875 - } - }, textInput); - }, - _getText: function _getText() { - return typeof this.props.value === 'string' ? this.props.value : typeof this.props.defaultValue === 'string' ? this.props.defaultValue : ''; - }, - _setNativeRef: function _setNativeRef(ref) { - this._inputRef = ref; - }, - _renderIOSLegacy: function _renderIOSLegacy() { - var textContainer; - - var props = _extends({}, this.props); - - props.style = [this.props.style]; - - if (props.selection && props.selection.end == null) { - props.selection = { - start: props.selection.start, - end: props.selection.start - }; - } - - if (!props.multiline) { - if (__DEV__) { - for (var propKey in onlyMultiline) { - if (props[propKey]) { - var error = new Error('TextInput prop `' + propKey + '` is only supported with multiline.'); - warning(false, '%s', error.stack); - } - } - } - - textContainer = React.createElement(RCTSinglelineTextInputView, _extends({ - ref: this._setNativeRef - }, props, { - onFocus: this._onFocus, - onBlur: this._onBlur, - onChange: this._onChange, - onSelectionChange: this._onSelectionChange, - onSelectionChangeShouldSetResponder: emptyFunction.thatReturnsTrue, - text: this._getText(), - __source: { - fileName: _jsxFileName, - lineNumber: 918 - } - })); - } else { - var children = props.children; - var childCount = 0; - React.Children.forEach(children, function () { - return ++childCount; - }); - invariant(!(props.value && childCount), 'Cannot specify both value and children.'); - - if (childCount >= 1) { - children = React.createElement(Text, { - style: props.style, - allowFontScaling: props.allowFontScaling, - __source: { - fileName: _jsxFileName, - lineNumber: 939 - } - }, children); - } - - if (props.inputView) { - children = [children, props.inputView]; - } - - props.style.unshift(styles.multilineInput); - textContainer = React.createElement(RCTMultilineTextInputView, _extends({ - ref: this._setNativeRef - }, props, { - children: children, - onFocus: this._onFocus, - onBlur: this._onBlur, - onChange: this._onChange, - onContentSizeChange: this.props.onContentSizeChange, - onSelectionChange: this._onSelectionChange, - onTextInput: this._onTextInput, - onSelectionChangeShouldSetResponder: emptyFunction.thatReturnsTrue, - text: this._getText(), - dataDetectorTypes: this.props.dataDetectorTypes, - onScroll: this._onScroll, - __source: { - fileName: _jsxFileName, - lineNumber: 949 - } - })); - } - - return React.createElement(TouchableWithoutFeedback, { - onLayout: props.onLayout, - onPress: this._onPress, - rejectResponderTermination: true, - accessible: props.accessible, - accessibilityLabel: props.accessibilityLabel, - accessibilityTraits: props.accessibilityTraits, - nativeID: this.props.nativeID, - testID: props.testID, - __source: { - fileName: _jsxFileName, - lineNumber: 968 - } - }, textContainer); - }, - _renderIOS: function _renderIOS() { - var props = _extends({}, this.props); - - props.style = [this.props.style]; - - if (props.selection && props.selection.end == null) { - props.selection = { - start: props.selection.start, - end: props.selection.start - }; - } - - var RCTTextInputView = props.multiline ? RCTMultilineTextInputView : RCTSinglelineTextInputView; - - if (props.multiline) { - props.style.unshift(styles.multilineInput); - } - - var textContainer = React.createElement(RCTTextInputView, _extends({ - ref: this._setNativeRef - }, props, { - onFocus: this._onFocus, - onBlur: this._onBlur, - onChange: this._onChange, - onContentSizeChange: this.props.onContentSizeChange, - onSelectionChange: this._onSelectionChange, - onTextInput: this._onTextInput, - onSelectionChangeShouldSetResponder: emptyFunction.thatReturnsTrue, - text: this._getText(), - dataDetectorTypes: this.props.dataDetectorTypes, - onScroll: this._onScroll, - __source: { - fileName: _jsxFileName, - lineNumber: 1002 - } - })); - return React.createElement(TouchableWithoutFeedback, { - onLayout: props.onLayout, - onPress: this._onPress, - rejectResponderTermination: true, - accessible: props.accessible, - accessibilityLabel: props.accessibilityLabel, - accessibilityTraits: props.accessibilityTraits, - nativeID: this.props.nativeID, - testID: props.testID, - __source: { - fileName: _jsxFileName, - lineNumber: 1019 - } - }, textContainer); - }, - _renderAndroid: function _renderAndroid() { - var props = _extends({}, this.props); - - props.style = [this.props.style]; - props.autoCapitalize = UIManager.AndroidTextInput.Constants.AutoCapitalizationType[props.autoCapitalize || 'sentences']; - var children = this.props.children; - var childCount = 0; - React.Children.forEach(children, function () { - return ++childCount; - }); - invariant(!(this.props.value && childCount), 'Cannot specify both value and children.'); - - if (childCount > 1) { - children = React.createElement(Text, { - __source: { - fileName: _jsxFileName, - lineNumber: 1051 - } - }, children); - } - - if (props.selection && props.selection.end == null) { - props.selection = { - start: props.selection.start, - end: props.selection.start - }; - } - - var textContainer = React.createElement(AndroidTextInput, _extends({ - ref: this._setNativeRef - }, props, { - mostRecentEventCount: 0, - onFocus: this._onFocus, - onBlur: this._onBlur, - onChange: this._onChange, - onSelectionChange: this._onSelectionChange, - onTextInput: this._onTextInput, - text: this._getText(), - children: children, - disableFullscreenUI: this.props.disableFullscreenUI, - textBreakStrategy: this.props.textBreakStrategy, - onScroll: this._onScroll, - __source: { - fileName: _jsxFileName, - lineNumber: 1062 - } - })); - return React.createElement(TouchableWithoutFeedback, { - onLayout: props.onLayout, - onPress: this._onPress, - accessible: this.props.accessible, - accessibilityLabel: this.props.accessibilityLabel, - accessibilityComponentType: this.props.accessibilityComponentType, - nativeID: this.props.nativeID, - testID: this.props.testID, - __source: { - fileName: _jsxFileName, - lineNumber: 1080 - } - }, textContainer); - }, - _onFocus: function _onFocus(event) { - if (this.props.onFocus) { - this.props.onFocus(event); - } - - if (this.props.selectionState) { - this.props.selectionState.focus(); - } - }, - _onPress: function _onPress(event) { - if (this.props.editable || this.props.editable === undefined) { - this.focus(); - } - }, - _onChange: function _onChange(event) { - if (this._inputRef) { - this._inputRef.setNativeProps({ - mostRecentEventCount: event.nativeEvent.eventCount - }); - } - - var text = event.nativeEvent.text; - this.props.onChange && this.props.onChange(event); - this.props.onChangeText && this.props.onChangeText(text); - - if (!this._inputRef) { - return; - } - - this._lastNativeText = text; - this.forceUpdate(); - }, - _onSelectionChange: function _onSelectionChange(event) { - this.props.onSelectionChange && this.props.onSelectionChange(event); - - if (!this._inputRef) { - return; - } - - this._lastNativeSelection = event.nativeEvent.selection; - - if (this.props.selection || this.props.selectionState) { - this.forceUpdate(); - } - }, - componentDidUpdate: function componentDidUpdate() { - var nativeProps = {}; - - if (this._lastNativeText !== this.props.value && typeof this.props.value === 'string') { - nativeProps.text = this.props.value; - } - - var selection = this.props.selection; - - if (this._lastNativeSelection && selection && (this._lastNativeSelection.start !== selection.start || this._lastNativeSelection.end !== selection.end)) { - nativeProps.selection = this.props.selection; - } - - if (Object.keys(nativeProps).length > 0 && this._inputRef) { - this._inputRef.setNativeProps(nativeProps); - } - - if (this.props.selectionState && selection) { - this.props.selectionState.update(selection.start, selection.end); - } - }, - _onBlur: function _onBlur(event) { - this.blur(); - - if (this.props.onBlur) { - this.props.onBlur(event); - } - - if (this.props.selectionState) { - this.props.selectionState.blur(); - } - }, - _onTextInput: function _onTextInput(event) { - this.props.onTextInput && this.props.onTextInput(event); - }, - _onScroll: function _onScroll(event) { - this.props.onScroll && this.props.onScroll(event); - } - }); - - var InternalTextInputType = function (_ReactNative$NativeCo) { - function InternalTextInputType() { - _classCallCheck(this, InternalTextInputType); - - return _possibleConstructorReturn(this, _getPrototypeOf(InternalTextInputType).apply(this, arguments)); - } - - _createClass(InternalTextInputType, [{ - key: "clear", - value: function clear() {} - }, { - key: "isFocused", - value: function isFocused() {} - }]); - - _inherits(InternalTextInputType, _ReactNative$NativeCo); - - return InternalTextInputType; - }(ReactNative.NativeComponent); - - var TypedTextInput = TextInput; - var styles = StyleSheet.create({ - multilineInput: { - paddingTop: 5 - } - }); - module.exports = TypedTextInput; -},40,[98,490,117,406,94,121,402,143,67,83,39,151,341,404,47,87,101,116,4,96,111],"node_modules/react-native/Libraries/Components/TextInput/TextInput.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var mixInEventEmitter = _$$_REQUIRE(_dependencyMap[0], 'mixInEventEmitter'); - - var DocumentSelectionState = function () { - function DocumentSelectionState(anchor, focus) { - _classCallCheck(this, DocumentSelectionState); - - this._anchorOffset = anchor; - this._focusOffset = focus; - this._hasFocus = false; - } - - _createClass(DocumentSelectionState, [{ - key: "update", - value: function update(anchor, focus) { - if (this._anchorOffset !== anchor || this._focusOffset !== focus) { - this._anchorOffset = anchor; - this._focusOffset = focus; - this.emit('update'); - } - } - }, { - key: "constrainLength", - value: function constrainLength(maxLength) { - this.update(Math.min(this._anchorOffset, maxLength), Math.min(this._focusOffset, maxLength)); - } - }, { - key: "focus", - value: function focus() { - if (!this._hasFocus) { - this._hasFocus = true; - this.emit('focus'); - } - } - }, { - key: "blur", - value: function blur() { - if (this._hasFocus) { - this._hasFocus = false; - this.emit('blur'); - } - } - }, { - key: "hasFocus", - value: function hasFocus() { - return this._hasFocus; - } - }, { - key: "isCollapsed", - value: function isCollapsed() { - return this._anchorOffset === this._focusOffset; - } - }, { - key: "isBackward", - value: function isBackward() { - return this._anchorOffset > this._focusOffset; - } - }, { - key: "getAnchorOffset", - value: function getAnchorOffset() { - return this._hasFocus ? this._anchorOffset : null; - } - }, { - key: "getFocusOffset", - value: function getFocusOffset() { - return this._hasFocus ? this._focusOffset : null; - } - }, { - key: "getStartOffset", - value: function getStartOffset() { - return this._hasFocus ? Math.min(this._anchorOffset, this._focusOffset) : null; - } - }, { - key: "getEndOffset", - value: function getEndOffset() { - return this._hasFocus ? Math.max(this._anchorOffset, this._focusOffset) : null; - } - }, { - key: "overlaps", - value: function overlaps(start, end) { - return this.hasFocus() && this.getStartOffset() <= end && start <= this.getEndOffset(); - } - }]); - - return DocumentSelectionState; - }(); - - mixInEventEmitter(DocumentSelectionState, { - blur: true, - focus: true, - update: true - }); - module.exports = DocumentSelectionState; -},490,[491],"node_modules/react-native/Libraries/vendor/document/selection/DocumentSelectionState.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - var EventEmitter = _$$_REQUIRE(_dependencyMap[0], 'EventEmitter'); - - var EventEmitterWithHolding = _$$_REQUIRE(_dependencyMap[1], 'EventEmitterWithHolding'); - - var EventHolder = _$$_REQUIRE(_dependencyMap[2], 'EventHolder'); - - var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); - - var keyOf = _$$_REQUIRE(_dependencyMap[4], 'fbjs/lib/keyOf'); - - var TYPES_KEY = keyOf({ - __types: true - }); - - function mixInEventEmitter(cls, types) { - invariant(types, 'Must supply set of valid event types'); - var target = cls.prototype || cls; - invariant(!target.__eventEmitter, 'An active emitter is already mixed in'); - var ctor = cls.constructor; - - if (ctor) { - invariant(ctor === Object || ctor === Function, 'Mix EventEmitter into a class, not an instance'); - } - - if (target.hasOwnProperty(TYPES_KEY)) { - _extends(target.__types, types); - } else if (target.__types) { - target.__types = _extends({}, target.__types, types); - } else { - target.__types = types; - } - - _extends(target, EventEmitterMixin); - } - - var EventEmitterMixin = { - emit: function emit(eventType, a, b, c, d, e, _) { - return this.__getEventEmitter().emit(eventType, a, b, c, d, e, _); - }, - emitAndHold: function emitAndHold(eventType, a, b, c, d, e, _) { - return this.__getEventEmitter().emitAndHold(eventType, a, b, c, d, e, _); - }, - addListener: function addListener(eventType, listener, context) { - return this.__getEventEmitter().addListener(eventType, listener, context); - }, - once: function once(eventType, listener, context) { - return this.__getEventEmitter().once(eventType, listener, context); - }, - addRetroactiveListener: function addRetroactiveListener(eventType, listener, context) { - return this.__getEventEmitter().addRetroactiveListener(eventType, listener, context); - }, - addListenerMap: function addListenerMap(listenerMap, context) { - return this.__getEventEmitter().addListenerMap(listenerMap, context); - }, - addRetroactiveListenerMap: function addRetroactiveListenerMap(listenerMap, context) { - return this.__getEventEmitter().addListenerMap(listenerMap, context); - }, - removeAllListeners: function removeAllListeners() { - this.__getEventEmitter().removeAllListeners(); - }, - removeCurrentListener: function removeCurrentListener() { - this.__getEventEmitter().removeCurrentListener(); - }, - releaseHeldEventType: function releaseHeldEventType(eventType) { - this.__getEventEmitter().releaseHeldEventType(eventType); - }, - __getEventEmitter: function __getEventEmitter() { - if (!this.__eventEmitter) { - var emitter = new EventEmitter(); - - if (__DEV__) { - var EventValidator = _$$_REQUIRE(_dependencyMap[5], 'EventValidator'); - - emitter = EventValidator.addValidation(emitter, this.__types); - } - - var holder = new EventHolder(); - this.__eventEmitter = new EventEmitterWithHolding(emitter, holder); - } - - return this.__eventEmitter; - } - }; - module.exports = mixInEventEmitter; -},491,[117,492,493,4,494,495],"node_modules/react-native/Libraries/vendor/emitter/mixInEventEmitter.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var EventEmitterWithHolding = function () { - function EventEmitterWithHolding(emitter, holder) { - _classCallCheck(this, EventEmitterWithHolding); - - this._emitter = emitter; - this._eventHolder = holder; - this._currentEventToken = null; - this._emittingHeldEvents = false; - } - - _createClass(EventEmitterWithHolding, [{ - key: "addListener", - value: function addListener(eventType, listener, context) { - return this._emitter.addListener(eventType, listener, context); - } - }, { - key: "once", - value: function once(eventType, listener, context) { - return this._emitter.once(eventType, listener, context); - } - }, { - key: "addRetroactiveListener", - value: function addRetroactiveListener(eventType, listener, context) { - var subscription = this._emitter.addListener(eventType, listener, context); - - this._emittingHeldEvents = true; - - this._eventHolder.emitToListener(eventType, listener, context); - - this._emittingHeldEvents = false; - return subscription; - } - }, { - key: "removeAllListeners", - value: function removeAllListeners(eventType) { - this._emitter.removeAllListeners(eventType); - } - }, { - key: "removeCurrentListener", - value: function removeCurrentListener() { - this._emitter.removeCurrentListener(); - } - }, { - key: "listeners", - value: function listeners(eventType) { - return this._emitter.listeners(eventType); - } - }, { - key: "emit", - value: function emit(eventType) { - var _this$_emitter; - - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - (_this$_emitter = this._emitter).emit.apply(_this$_emitter, [eventType].concat(args)); - } - }, { - key: "emitAndHold", - value: function emitAndHold(eventType) { - var _this$_eventHolder, _this$_emitter2; - - for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } - - this._currentEventToken = (_this$_eventHolder = this._eventHolder).holdEvent.apply(_this$_eventHolder, [eventType].concat(args)); - - (_this$_emitter2 = this._emitter).emit.apply(_this$_emitter2, [eventType].concat(args)); - - this._currentEventToken = null; - } - }, { - key: "releaseCurrentEvent", - value: function releaseCurrentEvent() { - if (this._currentEventToken) { - this._eventHolder.releaseEvent(this._currentEventToken); - } else if (this._emittingHeldEvents) { - this._eventHolder.releaseCurrentEvent(); - } - } - }, { - key: "releaseHeldEventType", - value: function releaseHeldEventType(eventType) { - this._eventHolder.releaseEventType(eventType); - } - }]); - - return EventEmitterWithHolding; - }(); - - module.exports = EventEmitterWithHolding; -},492,[],"node_modules/react-native/Libraries/vendor/emitter/EventEmitterWithHolding.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var invariant = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/invariant'); - - var EventHolder = function () { - function EventHolder() { - _classCallCheck(this, EventHolder); - - this._heldEvents = {}; - this._currentEventKey = null; - } - - _createClass(EventHolder, [{ - key: "holdEvent", - value: function holdEvent(eventType) { - this._heldEvents[eventType] = this._heldEvents[eventType] || []; - var eventsOfType = this._heldEvents[eventType]; - var key = { - eventType: eventType, - index: eventsOfType.length - }; - - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - eventsOfType.push(args); - return key; - } - }, { - key: "emitToListener", - value: function emitToListener(eventType, listener, context) { - var _this = this; - - var eventsOfType = this._heldEvents[eventType]; - - if (!eventsOfType) { - return; - } - - var origEventKey = this._currentEventKey; - eventsOfType.forEach(function (eventHeld, index) { - if (!eventHeld) { - return; - } - - _this._currentEventKey = { - eventType: eventType, - index: index - }; - listener.apply(context, eventHeld); - }); - this._currentEventKey = origEventKey; - } - }, { - key: "releaseCurrentEvent", - value: function releaseCurrentEvent() { - invariant(this._currentEventKey !== null, 'Not in an emitting cycle; there is no current event'); - this._currentEventKey && this.releaseEvent(this._currentEventKey); - } - }, { - key: "releaseEvent", - value: function releaseEvent(token) { - delete this._heldEvents[token.eventType][token.index]; - } - }, { - key: "releaseEventType", - value: function releaseEventType(type) { - this._heldEvents[type] = []; - } - }]); - - return EventHolder; - }(); - - module.exports = EventHolder; -},493,[4],"node_modules/react-native/Libraries/vendor/emitter/EventHolder.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - "use strict"; - - var keyOf = function keyOf(oneKeyObj) { - var key; - - for (key in oneKeyObj) { - if (!oneKeyObj.hasOwnProperty(key)) { - continue; - } - - return key; - } - - return null; - }; - - module.exports = keyOf; -},494,[],"node_modules/react-native/node_modules/fbjs/lib/keyOf.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - var EventValidator = { - addValidation: function addValidation(emitter, types) { - var eventTypes = Object.keys(types); - var emitterWithValidation = Object.create(emitter); - - _extends(emitterWithValidation, { - emit: function emit(type, a, b, c, d, e, _) { - assertAllowsEventType(type, eventTypes); - return emitter.emit.call(this, type, a, b, c, d, e, _); - } - }); - - return emitterWithValidation; - } - }; - - function assertAllowsEventType(type, allowedTypes) { - if (allowedTypes.indexOf(type) === -1) { - throw new TypeError(errorMessageFor(type, allowedTypes)); - } - } - - function errorMessageFor(type, allowedTypes) { - var message = 'Unknown event type "' + type + '". '; - - if (__DEV__) { - message += recommendationFor(type, allowedTypes); - } - - message += 'Known event types: ' + allowedTypes.join(', ') + '.'; - return message; - } - - if (__DEV__) { - var recommendationFor = function recommendationFor(type, allowedTypes) { - var closestTypeRecommendation = closestTypeFor(type, allowedTypes); - - if (isCloseEnough(closestTypeRecommendation, type)) { - return 'Did you mean "' + closestTypeRecommendation.type + '"? '; - } else { - return ''; - } - }; - - var closestTypeFor = function closestTypeFor(type, allowedTypes) { - var typeRecommendations = allowedTypes.map(typeRecommendationFor.bind(this, type)); - return typeRecommendations.sort(recommendationSort)[0]; - }; - - var typeRecommendationFor = function typeRecommendationFor(type, recommendedType) { - return { - type: recommendedType, - distance: damerauLevenshteinDistance(type, recommendedType) - }; - }; - - var recommendationSort = function recommendationSort(recommendationA, recommendationB) { - if (recommendationA.distance < recommendationB.distance) { - return -1; - } else if (recommendationA.distance > recommendationB.distance) { - return 1; - } else { - return 0; - } - }; - - var isCloseEnough = function isCloseEnough(closestType, actualType) { - return closestType.distance / actualType.length < 0.334; - }; - - var damerauLevenshteinDistance = function damerauLevenshteinDistance(a, b) { - var i, j; - var d = []; - - for (i = 0; i <= a.length; i++) { - d[i] = [i]; - } - - for (j = 1; j <= b.length; j++) { - d[0][j] = j; - } - - for (i = 1; i <= a.length; i++) { - for (j = 1; j <= b.length; j++) { - var cost = a.charAt(i - 1) === b.charAt(j - 1) ? 0 : 1; - d[i][j] = Math.min(d[i - 1][j] + 1, d[i][j - 1] + 1, d[i - 1][j - 1] + cost); - - if (i > 1 && j > 1 && a.charAt(i - 1) === b.charAt(j - 2) && a.charAt(i - 2) === b.charAt(j - 1)) { - d[i][j] = Math.min(d[i][j], d[i - 2][j - 2] + cost); - } - } - } - - return d[a.length][b.length]; - }; - } - - module.exports = EventValidator; -},495,[],"node_modules/react-native/Libraries/vendor/emitter/EventValidator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/ToolbarAndroid/ToolbarAndroid.android.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var Image = _$$_REQUIRE(_dependencyMap[0], 'Image'); - - var NativeMethodsMixin = _$$_REQUIRE(_dependencyMap[1], 'NativeMethodsMixin'); - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); - - var UIManager = _$$_REQUIRE(_dependencyMap[4], 'UIManager'); - - var ViewPropTypes = _$$_REQUIRE(_dependencyMap[5], 'ViewPropTypes'); - - var ColorPropType = _$$_REQUIRE(_dependencyMap[6], 'ColorPropType'); - - var createReactClass = _$$_REQUIRE(_dependencyMap[7], 'create-react-class'); - - var requireNativeComponent = _$$_REQUIRE(_dependencyMap[8], 'requireNativeComponent'); - - var resolveAssetSource = _$$_REQUIRE(_dependencyMap[9], 'resolveAssetSource'); - - var optionalImageSource = PropTypes.oneOfType([Image.propTypes.source, PropTypes.oneOf([])]); - var ToolbarAndroid = createReactClass({ - displayName: 'ToolbarAndroid', - mixins: [NativeMethodsMixin], - propTypes: _objectSpread({}, ViewPropTypes, { - actions: PropTypes.arrayOf(PropTypes.shape({ - title: PropTypes.string.isRequired, - icon: optionalImageSource, - show: PropTypes.oneOf(['always', 'ifRoom', 'never']), - showWithText: PropTypes.bool - })), - logo: optionalImageSource, - navIcon: optionalImageSource, - onActionSelected: PropTypes.func, - onIconClicked: PropTypes.func, - overflowIcon: optionalImageSource, - subtitle: PropTypes.string, - subtitleColor: ColorPropType, - title: PropTypes.string, - titleColor: ColorPropType, - contentInsetStart: PropTypes.number, - contentInsetEnd: PropTypes.number, - rtl: PropTypes.bool, - testID: PropTypes.string - }), - render: function render() { - var nativeProps = _objectSpread({}, this.props); - - if (this.props.logo) { - nativeProps.logo = resolveAssetSource(this.props.logo); - } - - if (this.props.navIcon) { - nativeProps.navIcon = resolveAssetSource(this.props.navIcon); - } - - if (this.props.overflowIcon) { - nativeProps.overflowIcon = resolveAssetSource(this.props.overflowIcon); - } - - if (this.props.actions) { - var nativeActions = []; - - for (var i = 0; i < this.props.actions.length; i++) { - var action = _objectSpread({}, this.props.actions[i]); - - if (action.icon) { - action.icon = resolveAssetSource(action.icon); - } - - if (action.show) { - action.show = UIManager.ToolbarAndroid.Constants.ShowAsAction[action.show]; - } - - nativeActions.push(action); - } - - nativeProps.nativeActions = nativeActions; - } - - return React.createElement(NativeToolbar, _extends({ - onSelect: this._onSelect - }, nativeProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 196 - } - })); - }, - _onSelect: function _onSelect(event) { - var position = event.nativeEvent.position; - - if (position === -1) { - this.props.onIconClicked && this.props.onIconClicked(); - } else { - this.props.onActionSelected && this.props.onActionSelected(position); - } - } - }); - var NativeToolbar = requireNativeComponent('ToolbarAndroid'); - module.exports = ToolbarAndroid; -},42,[13,406,121,143,87,101,98,402,96,156],"node_modules/react-native/Libraries/Components/ToolbarAndroid/ToolbarAndroid.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/ViewPager/ViewPagerAndroid.android.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - var _components = { - ViewPagerAndroid: { - displayName: "ViewPagerAndroid" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/ViewPager/ViewPagerAndroid.android.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var React = _$$_REQUIRE(_dependencyMap[2], 'React'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[3], 'prop-types'); - - var ReactNative = _$$_REQUIRE(_dependencyMap[4], 'ReactNative'); - - var UIManager = _$$_REQUIRE(_dependencyMap[5], 'UIManager'); - - var ViewPropTypes = _$$_REQUIRE(_dependencyMap[6], 'ViewPropTypes'); - - var dismissKeyboard = _$$_REQUIRE(_dependencyMap[7], 'dismissKeyboard'); - - var requireNativeComponent = _$$_REQUIRE(_dependencyMap[8], 'requireNativeComponent'); - - var NativeAndroidViewPager = requireNativeComponent('AndroidViewPager'); - var VIEWPAGER_REF = 'viewPager'; - - var ViewPagerAndroid = function (_React$Component) { - function ViewPagerAndroid() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, ViewPagerAndroid); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ViewPagerAndroid)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.getInnerViewNode = function () { - return _this.refs[VIEWPAGER_REF].getInnerViewNode(); - }, _this._childrenWithOverridenStyle = function () { - return React.Children.map(_this.props.children, function (child) { - if (!child) { - return null; - } - - var newProps = _objectSpread({}, child.props, { - style: [child.props.style, { - position: 'absolute', - left: 0, - top: 0, - right: 0, - bottom: 0, - width: undefined, - height: undefined - }], - collapsable: false - }); - - if (child.type && child.type.displayName && child.type.displayName !== 'RCTView' && child.type.displayName !== 'View') { - console.warn('Each ViewPager child must be a . Was ' + child.type.displayName); - } - - return React.createElement(child.type, newProps); - }); - }, _this._onPageScroll = function (e) { - if (_this.props.onPageScroll) { - _this.props.onPageScroll(e); - } - - if (_this.props.keyboardDismissMode === 'on-drag') { - dismissKeyboard(); - } - }, _this._onPageScrollStateChanged = function (e) { - if (_this.props.onPageScrollStateChanged) { - _this.props.onPageScrollStateChanged(e.nativeEvent.pageScrollState); - } - }, _this._onPageSelected = function (e) { - if (_this.props.onPageSelected) { - _this.props.onPageSelected(e); - } - }, _this.setPage = function (selectedPage) { - UIManager.dispatchViewManagerCommand(ReactNative.findNodeHandle(_assertThisInitialized(_assertThisInitialized(_this))), UIManager.AndroidViewPager.Commands.setPage, [selectedPage]); - }, _this.setPageWithoutAnimation = function (selectedPage) { - UIManager.dispatchViewManagerCommand(ReactNative.findNodeHandle(_assertThisInitialized(_assertThisInitialized(_this))), UIManager.AndroidViewPager.Commands.setPageWithoutAnimation, [selectedPage]); - }, _temp)); - } - - _createClass(ViewPagerAndroid, [{ - key: "componentDidMount", - value: function componentDidMount() { - if (this.props.initialPage != null) { - this.setPageWithoutAnimation(this.props.initialPage); - } - } - }, { - key: "render", - value: function render() { - return React.createElement(NativeAndroidViewPager, _extends({}, this.props, { - ref: VIEWPAGER_REF, - style: this.props.style, - onPageScroll: this._onPageScroll, - onPageScrollStateChanged: this._onPageScrollStateChanged, - onPageSelected: this._onPageSelected, - children: this._childrenWithOverridenStyle(), - __source: { - fileName: _jsxFileName, - lineNumber: 247 - } - })); - } - }]); - - _inherits(ViewPagerAndroid, _React$Component); - - return ViewPagerAndroid; - }(React.Component); - - ViewPagerAndroid.propTypes = _objectSpread({}, ViewPropTypes, { - initialPage: PropTypes.number, - onPageScroll: PropTypes.func, - onPageScrollStateChanged: PropTypes.func, - onPageSelected: PropTypes.func, - pageMargin: PropTypes.number, - keyboardDismissMode: PropTypes.oneOf(['none', 'on-drag']), - scrollEnabled: PropTypes.bool, - peekEnabled: PropTypes.bool - }); - ViewPagerAndroid = _wrapComponent("ViewPagerAndroid")(ViewPagerAndroid); - module.exports = ViewPagerAndroid; -},49,[122,161,121,143,67,87,101,436,96],"node_modules/react-native/Libraries/Components/ViewPager/ViewPagerAndroid.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _default = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")).default; - - var _reactTransformHmrLibIndexJs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")).default; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/WebView/WebView.android.js"; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - WebView: { - displayName: "WebView" - } - }; - - var _reactTransformHmrLibIndexJs2 = _reactTransformHmrLibIndexJs({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/Components/WebView/WebView.android.js", - components: _components, - locals: [module], - imports: [_default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var EdgeInsetsPropType = _$$_REQUIRE(_dependencyMap[2], 'EdgeInsetsPropType'); - - var ActivityIndicator = _$$_REQUIRE(_dependencyMap[3], 'ActivityIndicator'); - - var React = _$$_REQUIRE(_dependencyMap[4], 'React'); - - var PropTypes = _$$_REQUIRE(_dependencyMap[5], 'prop-types'); - - var ReactNative = _$$_REQUIRE(_dependencyMap[6], 'ReactNative'); - - var StyleSheet = _$$_REQUIRE(_dependencyMap[7], 'StyleSheet'); - - var UIManager = _$$_REQUIRE(_dependencyMap[8], 'UIManager'); - - var View = _$$_REQUIRE(_dependencyMap[9], 'View'); - - var ViewPropTypes = _$$_REQUIRE(_dependencyMap[10], 'ViewPropTypes'); - - var WebViewShared = _$$_REQUIRE(_dependencyMap[11], 'WebViewShared'); - - var deprecatedPropType = _$$_REQUIRE(_dependencyMap[12], 'deprecatedPropType'); - - var keyMirror = _$$_REQUIRE(_dependencyMap[13], 'fbjs/lib/keyMirror'); - - var requireNativeComponent = _$$_REQUIRE(_dependencyMap[14], 'requireNativeComponent'); - - var resolveAssetSource = _$$_REQUIRE(_dependencyMap[15], 'resolveAssetSource'); - - var RCT_WEBVIEW_REF = 'webview'; - var WebViewState = keyMirror({ - IDLE: null, - LOADING: null, - ERROR: null - }); - - var defaultRenderLoading = function defaultRenderLoading() { - return React.createElement(View, { - style: styles.loadingView, - __source: { - fileName: _jsxFileName, - lineNumber: 37 - } - }, React.createElement(ActivityIndicator, { - style: styles.loadingProgressBar, - __source: { - fileName: _jsxFileName, - lineNumber: 38 - } - })); - }; - - var WebView = function (_React$Component) { - function WebView() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, WebView); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(WebView)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { - viewState: WebViewState.IDLE, - lastErrorEvent: null, - startInLoadingState: true - }, _this.goForward = function () { - UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.RCTWebView.Commands.goForward, null); - }, _this.goBack = function () { - UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.RCTWebView.Commands.goBack, null); - }, _this.reload = function () { - _this.setState({ - viewState: WebViewState.LOADING - }); - - UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.RCTWebView.Commands.reload, null); - }, _this.stopLoading = function () { - UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.RCTWebView.Commands.stopLoading, null); - }, _this.postMessage = function (data) { - UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.RCTWebView.Commands.postMessage, [String(data)]); - }, _this.injectJavaScript = function (data) { - UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), UIManager.RCTWebView.Commands.injectJavaScript, [data]); - }, _this.updateNavigationState = function (event) { - if (_this.props.onNavigationStateChange) { - _this.props.onNavigationStateChange(event.nativeEvent); - } - }, _this.getWebViewHandle = function () { - return ReactNative.findNodeHandle(_this.refs[RCT_WEBVIEW_REF]); - }, _this.onLoadingStart = function (event) { - var onLoadStart = _this.props.onLoadStart; - onLoadStart && onLoadStart(event); - - _this.updateNavigationState(event); - }, _this.onLoadingError = function (event) { - event.persist(); - var _this$props = _this.props, - onError = _this$props.onError, - onLoadEnd = _this$props.onLoadEnd; - onError && onError(event); - onLoadEnd && onLoadEnd(event); - console.warn('Encountered an error loading page', event.nativeEvent); - - _this.setState({ - lastErrorEvent: event.nativeEvent, - viewState: WebViewState.ERROR - }); - }, _this.onLoadingFinish = function (event) { - var _this$props2 = _this.props, - onLoad = _this$props2.onLoad, - onLoadEnd = _this$props2.onLoadEnd; - onLoad && onLoad(event); - onLoadEnd && onLoadEnd(event); - - _this.setState({ - viewState: WebViewState.IDLE - }); - - _this.updateNavigationState(event); - }, _this.onMessage = function (event) { - var onMessage = _this.props.onMessage; - onMessage && onMessage(event); - }, _temp)); - } - - _createClass(WebView, [{ - key: "UNSAFE_componentWillMount", - value: function UNSAFE_componentWillMount() { - if (this.props.startInLoadingState) { - this.setState({ - viewState: WebViewState.LOADING - }); - } - } - }, { - key: "render", - value: function render() { - var otherView = null; - - if (this.state.viewState === WebViewState.LOADING) { - otherView = (this.props.renderLoading || defaultRenderLoading)(); - } else if (this.state.viewState === WebViewState.ERROR) { - var errorEvent = this.state.lastErrorEvent; - otherView = this.props.renderError && this.props.renderError(errorEvent.domain, errorEvent.code, errorEvent.description); - } else if (this.state.viewState !== WebViewState.IDLE) { - console.error('RCTWebView invalid state encountered: ' + this.state.loading); - } - - var webViewStyles = [styles.container, this.props.style]; - - if (this.state.viewState === WebViewState.LOADING || this.state.viewState === WebViewState.ERROR) { - webViewStyles.push(styles.hidden); - } - - var source = this.props.source || {}; - - if (this.props.html) { - source.html = this.props.html; - } else if (this.props.url) { - source.uri = this.props.url; - } - - if (source.method === 'POST' && source.headers) { - console.warn('WebView: `source.headers` is not supported when using POST.'); - } else if (source.method === 'GET' && source.body) { - console.warn('WebView: `source.body` is not supported when using GET.'); - } - - var nativeConfig = this.props.nativeConfig || {}; - var originWhitelist = (this.props.originWhitelist || []).map(WebViewShared.originWhitelistToRegex); - var NativeWebView = nativeConfig.component || RCTWebView; - var webView = React.createElement(NativeWebView, _extends({ - ref: RCT_WEBVIEW_REF, - key: "webViewKey", - style: webViewStyles, - source: resolveAssetSource(source), - scalesPageToFit: this.props.scalesPageToFit, - injectedJavaScript: this.props.injectedJavaScript, - userAgent: this.props.userAgent, - javaScriptEnabled: this.props.javaScriptEnabled, - thirdPartyCookiesEnabled: this.props.thirdPartyCookiesEnabled, - domStorageEnabled: this.props.domStorageEnabled, - messagingEnabled: typeof this.props.onMessage === 'function', - onMessage: this.onMessage, - contentInset: this.props.contentInset, - automaticallyAdjustContentInsets: this.props.automaticallyAdjustContentInsets, - onContentSizeChange: this.props.onContentSizeChange, - onLoadingStart: this.onLoadingStart, - onLoadingFinish: this.onLoadingFinish, - onLoadingError: this.onLoadingError, - testID: this.props.testID, - geolocationEnabled: this.props.geolocationEnabled, - mediaPlaybackRequiresUserAction: this.props.mediaPlaybackRequiresUserAction, - allowUniversalAccessFromFileURLs: this.props.allowUniversalAccessFromFileURLs, - originWhitelist: originWhitelist, - mixedContentMode: this.props.mixedContentMode, - saveFormDataDisabled: this.props.saveFormDataDisabled, - urlPrefixesForDefaultIntent: this.props.urlPrefixesForDefaultIntent - }, nativeConfig.props, { - __source: { - fileName: _jsxFileName, - lineNumber: 308 - } - })); - return React.createElement(View, { - style: styles.container, - __source: { - fileName: _jsxFileName, - lineNumber: 346 - } - }, webView, otherView); - } - }]); - - _inherits(WebView, _React$Component); - - return WebView; - }(React.Component); - - WebView.propTypes = _objectSpread({}, ViewPropTypes, { - renderError: PropTypes.func, - renderLoading: PropTypes.func, - onLoad: PropTypes.func, - onLoadEnd: PropTypes.func, - onLoadStart: PropTypes.func, - onError: PropTypes.func, - automaticallyAdjustContentInsets: PropTypes.bool, - contentInset: EdgeInsetsPropType, - onNavigationStateChange: PropTypes.func, - onMessage: PropTypes.func, - onContentSizeChange: PropTypes.func, - startInLoadingState: PropTypes.bool, - style: ViewPropTypes.style, - html: deprecatedPropType(PropTypes.string, 'Use the `source` prop instead.'), - url: deprecatedPropType(PropTypes.string, 'Use the `source` prop instead.'), - source: PropTypes.oneOfType([PropTypes.shape({ - uri: PropTypes.string, - method: PropTypes.oneOf(['GET', 'POST']), - headers: PropTypes.object, - body: PropTypes.string - }), PropTypes.shape({ - html: PropTypes.string, - baseUrl: PropTypes.string - }), PropTypes.number]), - javaScriptEnabled: PropTypes.bool, - thirdPartyCookiesEnabled: PropTypes.bool, - domStorageEnabled: PropTypes.bool, - geolocationEnabled: PropTypes.bool, - injectedJavaScript: PropTypes.string, - scalesPageToFit: PropTypes.bool, - userAgent: PropTypes.string, - testID: PropTypes.string, - mediaPlaybackRequiresUserAction: PropTypes.bool, - allowUniversalAccessFromFileURLs: PropTypes.bool, - originWhitelist: PropTypes.arrayOf(PropTypes.string), - injectJavaScript: PropTypes.func, - mixedContentMode: PropTypes.oneOf(['never', 'always', 'compatibility']), - saveFormDataDisabled: PropTypes.bool, - nativeConfig: PropTypes.shape({ - component: PropTypes.any, - props: PropTypes.object, - viewManager: PropTypes.object - }), - urlPrefixesForDefaultIntent: PropTypes.arrayOf(PropTypes.string) - }); - WebView.defaultProps = { - javaScriptEnabled: true, - thirdPartyCookiesEnabled: true, - scalesPageToFit: true, - saveFormDataDisabled: false, - originWhitelist: WebViewShared.defaultOriginWhitelist - }; - WebView = _wrapComponent("WebView")(WebView); - var RCTWebView = requireNativeComponent('RCTWebView'); - var styles = StyleSheet.create({ - container: { - flex: 1 - }, - hidden: { - height: 0, - flex: 0 - }, - loadingView: { - flex: 1, - justifyContent: 'center', - alignItems: 'center' - }, - loadingProgressBar: { - height: 20 - } - }); - module.exports = WebView; -},51,[122,161,99,6,121,143,67,83,87,48,101,496,149,138,96,156],"node_modules/react-native/Libraries/Components/WebView/WebView.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var escapeStringRegexp = _$$_REQUIRE(_dependencyMap[0], 'escape-string-regexp'); - - var WebViewShared = { - defaultOriginWhitelist: ['http://*', 'https://*'], - extractOrigin: function extractOrigin(url) { - var result = /^[A-Za-z0-9]+:(\/\/)?[^/]*/.exec(url); - return result === null ? null : result[0]; - }, - originWhitelistToRegex: function originWhitelistToRegex(originWhitelist) { - return escapeStringRegexp(originWhitelist).replace(/\\\*/g, '.*'); - } - }; - module.exports = WebViewShared; -},496,[497],"node_modules/react-native/Libraries/Components/WebView/WebViewShared.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; - - module.exports = function (str) { - if (typeof str !== 'string') { - throw new TypeError('Expected a string'); - } - - return str.replace(matchOperatorsRe, '\\$&'); - }; -},497,[],"node_modules/escape-string-regexp/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var RCTActionSheetManager = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').ActionSheetManager; - - var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); - - var processColor = _$$_REQUIRE(_dependencyMap[2], 'processColor'); - - var ActionSheetIOS = { - showActionSheetWithOptions: function showActionSheetWithOptions(options, callback) { - invariant(typeof options === 'object' && options !== null, 'Options must be a valid object'); - invariant(typeof callback === 'function', 'Must provide a valid callback'); - RCTActionSheetManager.showActionSheetWithOptions(_objectSpread({}, options, { - tintColor: processColor(options.tintColor) - }), callback); - }, - showShareActionSheetWithOptions: function showShareActionSheetWithOptions(options, failureCallback, successCallback) { - invariant(typeof options === 'object' && options !== null, 'Options must be a valid object'); - invariant(typeof failureCallback === 'function', 'Must provide a valid failureCallback'); - invariant(typeof successCallback === 'function', 'Must provide a valid successCallback'); - RCTActionSheetManager.showShareActionSheetWithOptions(_objectSpread({}, options, { - tintColor: processColor(options.tintColor) - }), failureCallback, successCallback); - } - }; - module.exports = ActionSheetIOS; -},52,[93,4,95],"node_modules/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var BatchedBridge = _$$_REQUIRE(_dependencyMap[0], 'BatchedBridge'); - - var BugReporting = _$$_REQUIRE(_dependencyMap[1], 'BugReporting'); - - var NativeModules = _$$_REQUIRE(_dependencyMap[2], 'NativeModules'); - - var ReactNative = _$$_REQUIRE(_dependencyMap[3], 'ReactNative'); - - var SceneTracker = _$$_REQUIRE(_dependencyMap[4], 'SceneTracker'); - - var infoLog = _$$_REQUIRE(_dependencyMap[5], 'infoLog'); - - var invariant = _$$_REQUIRE(_dependencyMap[6], 'fbjs/lib/invariant'); - - var renderApplication = _$$_REQUIRE(_dependencyMap[7], 'renderApplication'); - - var runnables = {}; - var runCount = 1; - var sections = {}; - var tasks = new Map(); - - var componentProviderInstrumentationHook = function componentProviderInstrumentationHook(component) { - return component(); - }; - - var wrapperComponentProvider; - var AppRegistry = { - setWrapperComponentProvider: function setWrapperComponentProvider(provider) { - wrapperComponentProvider = provider; - }, - registerConfig: function registerConfig(config) { - config.forEach(function (appConfig) { - if (appConfig.run) { - AppRegistry.registerRunnable(appConfig.appKey, appConfig.run); - } else { - invariant(appConfig.component != null, 'AppRegistry.registerConfig(...): Every config is expected to set ' + 'either `run` or `component`, but `%s` has neither.', appConfig.appKey); - AppRegistry.registerComponent(appConfig.appKey, appConfig.component, appConfig.section); - } - }); - }, - registerComponent: function registerComponent(appKey, componentProvider, section) { - runnables[appKey] = { - componentProvider: componentProvider, - run: function run(appParameters) { - renderApplication(componentProviderInstrumentationHook(componentProvider), appParameters.initialProps, appParameters.rootTag, wrapperComponentProvider && wrapperComponentProvider(appParameters), appParameters.fabric); - } - }; - - if (section) { - sections[appKey] = runnables[appKey]; - } - - return appKey; - }, - registerRunnable: function registerRunnable(appKey, run) { - runnables[appKey] = { - run: run - }; - return appKey; - }, - registerSection: function registerSection(appKey, component) { - AppRegistry.registerComponent(appKey, component, true); - }, - getAppKeys: function getAppKeys() { - return Object.keys(runnables); - }, - getSectionKeys: function getSectionKeys() { - return Object.keys(sections); - }, - getSections: function getSections() { - return _objectSpread({}, sections); - }, - getRunnable: function getRunnable(appKey) { - return runnables[appKey]; - }, - getRegistry: function getRegistry() { - return { - sections: AppRegistry.getSectionKeys(), - runnables: _objectSpread({}, runnables) - }; - }, - setComponentProviderInstrumentationHook: function setComponentProviderInstrumentationHook(hook) { - componentProviderInstrumentationHook = hook; - }, - runApplication: function runApplication(appKey, appParameters) { - var msg = 'Running application "' + appKey + '" with appParams: ' + JSON.stringify(appParameters) + '. ' + '__DEV__ === ' + String(__DEV__) + ', development-level warning are ' + (__DEV__ ? 'ON' : 'OFF') + ', performance optimizations are ' + (__DEV__ ? 'OFF' : 'ON'); - infoLog(msg); - BugReporting.addSource('AppRegistry.runApplication' + runCount++, function () { - return msg; - }); - invariant(runnables[appKey] && runnables[appKey].run, 'Application ' + appKey + ' has not been registered.\n\n' + "Hint: This error often happens when you're running the packager " + '(local dev server) from a wrong folder. For example you have ' + 'multiple apps and the packager is still running for the app you ' + 'were working on before.\nIf this is the case, simply kill the old ' + 'packager instance (e.g. close the packager terminal window) ' + 'and start the packager in the correct app folder (e.g. cd into app ' + "folder and run 'npm start').\n\n" + 'This error can also happen due to a require() error during ' + 'initialization or failure to call AppRegistry.registerComponent.\n\n'); - SceneTracker.setActiveScene({ - name: appKey - }); - runnables[appKey].run(appParameters); - }, - unmountApplicationComponentAtRootTag: function unmountApplicationComponentAtRootTag(rootTag) { - ReactNative.unmountComponentAtNodeAndRemoveContainer(rootTag); - }, - registerHeadlessTask: function registerHeadlessTask(taskKey, task) { - if (tasks.has(taskKey)) { - console.warn("registerHeadlessTask called multiple times for same key '" + taskKey + "'"); - } - - tasks.set(taskKey, task); - }, - startHeadlessTask: function startHeadlessTask(taskId, taskKey, data) { - var taskProvider = tasks.get(taskKey); - - if (!taskProvider) { - throw new Error("No task registered for key " + taskKey); - } - - taskProvider()(data).then(function () { - return NativeModules.HeadlessJsTaskSupport.notifyTaskFinished(taskId); - }).catch(function (reason) { - console.error(reason); - NativeModules.HeadlessJsTaskSupport.notifyTaskFinished(taskId); - }); - } - }; - BatchedBridge.registerCallableModule('AppRegistry', AppRegistry); - module.exports = AppRegistry; -},56,[102,498,93,67,499,395,4,500],"node_modules/react-native/Libraries/ReactNative/AppRegistry.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } - - function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } - - function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - - function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[0], 'RCTDeviceEventEmitter'); - - var Map = _$$_REQUIRE(_dependencyMap[1], 'Map'); - - var infoLog = _$$_REQUIRE(_dependencyMap[2], 'infoLog'); - - function defaultExtras() { - BugReporting.addFileSource('react_hierarchy.txt', function () { - return _$$_REQUIRE(_dependencyMap[3], 'dumpReactTree')(); - }); - } - - var BugReporting = function () { - function BugReporting() { - _classCallCheck(this, BugReporting); - } - - _createClass(BugReporting, null, [{ - key: "_maybeInit", - value: function _maybeInit() { - if (!BugReporting._subscription) { - BugReporting._subscription = RCTDeviceEventEmitter.addListener('collectBugExtraData', BugReporting.collectExtraData, null); - defaultExtras(); - } - - if (!BugReporting._redboxSubscription) { - BugReporting._redboxSubscription = RCTDeviceEventEmitter.addListener('collectRedBoxExtraData', BugReporting.collectExtraData, null); - } - } - }, { - key: "addSource", - value: function addSource(key, callback) { - return this._addSource(key, callback, BugReporting._extraSources); - } - }, { - key: "addFileSource", - value: function addFileSource(key, callback) { - return this._addSource(key, callback, BugReporting._fileSources); - } - }, { - key: "_addSource", - value: function _addSource(key, callback, source) { - BugReporting._maybeInit(); - - if (source.has(key)) { - console.warn("BugReporting.add* called multiple times for same key '" + key + "'"); - } - - source.set(key, callback); - return { - remove: function remove() { - source.delete(key); - } - }; - } - }, { - key: "collectExtraData", - value: function collectExtraData() { - var extraData = {}; - - for (var _iterator = BugReporting._extraSources, _isArray = Array.isArray(_iterator), _i2 = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref3; - - if (_isArray) { - if (_i2 >= _iterator.length) break; - _ref3 = _iterator[_i2++]; - } else { - _i2 = _iterator.next(); - if (_i2.done) break; - _ref3 = _i2.value; - } - - var _ref7 = _ref3; - - var _ref2 = _slicedToArray(_ref7, 2); - - var _key3 = _ref2[0]; - var _callback2 = _ref2[1]; - extraData[_key3] = _callback2(); - } - - var fileData = {}; - - for (var _iterator2 = BugReporting._fileSources, _isArray2 = Array.isArray(_iterator2), _i3 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref6; - - if (_isArray2) { - if (_i3 >= _iterator2.length) break; - _ref6 = _iterator2[_i3++]; - } else { - _i3 = _iterator2.next(); - if (_i3.done) break; - _ref6 = _i3.value; - } - - var _ref8 = _ref6; - - var _ref5 = _slicedToArray(_ref8, 2); - - var _key4 = _ref5[0]; - var _callback3 = _ref5[1]; - fileData[_key4] = _callback3(); - } - - infoLog('BugReporting extraData:', extraData); - - var BugReportingNativeModule = _$$_REQUIRE(_dependencyMap[4], 'NativeModules').BugReporting; - - BugReportingNativeModule && BugReportingNativeModule.setExtraData && BugReportingNativeModule.setExtraData(extraData, fileData); - - var RedBoxNativeModule = _$$_REQUIRE(_dependencyMap[4], 'NativeModules').RedBox; - - RedBoxNativeModule && RedBoxNativeModule.setExtraData && RedBoxNativeModule.setExtraData(extraData, 'From BugReporting.js'); - return { - extras: extraData, - files: fileData - }; - } - }]); - - return BugReporting; - }(); - - BugReporting._extraSources = new Map(); - BugReporting._fileSources = new Map(); - BugReporting._subscription = null; - BugReporting._redboxSubscription = null; - module.exports = BugReporting; -},498,[91,345,395,501,93],"node_modules/react-native/Libraries/BugReporting/BugReporting.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function dumpReactTree() { - try { - return getReactTree(); - } catch (e) { - return 'Failed to dump react tree: ' + e; - } - } - - function getReactTree() { - return 'React tree dumps have been temporarily disabled while React is ' + 'upgraded to Fiber.'; - } - - module.exports = dumpReactTree; -},501,[],"node_modules/react-native/Libraries/BugReporting/dumpReactTree.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _listeners = []; - var _activeScene = { - name: 'default' - }; - var SceneTracker = { - setActiveScene: function setActiveScene(scene) { - _activeScene = scene; - - _listeners.forEach(function (listener) { - return listener(_activeScene); - }); - }, - getActiveScene: function getActiveScene() { - return _activeScene; - }, - addActiveSceneChangedListener: function addActiveSceneChangedListener(callback) { - _listeners.push(callback); - - return { - remove: function remove() { - _listeners = _listeners.filter(function (listener) { - return callback !== listener; - }); - } - }; - } - }; - module.exports = SceneTracker; -},499,[],"node_modules/react-native/Libraries/Utilities/SceneTracker.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native/Libraries/ReactNative/renderApplication.js"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - var AppContainer = _$$_REQUIRE(_dependencyMap[0], 'AppContainer'); - - var React = _$$_REQUIRE(_dependencyMap[1], 'React'); - - var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); - - _$$_REQUIRE(_dependencyMap[3], 'BackHandler'); - - function renderApplication(RootComponent, initialProps, rootTag, WrapperComponent, fabric) { - invariant(rootTag, 'Expect to have a valid rootTag, instead got ', rootTag); - var renderable = React.createElement(AppContainer, { - rootTag: rootTag, - WrapperComponent: WrapperComponent, - __source: { - fileName: _jsxFileName, - lineNumber: 31 - } - }, React.createElement(RootComponent, _extends({}, initialProps, { - rootTag: rootTag, - __source: { - fileName: _jsxFileName, - lineNumber: 32 - } - }))); - - if (RootComponent.prototype != null && RootComponent.prototype.unstable_isAsyncReactComponent === true) { - var AsyncMode = React.unstable_AsyncMode; - renderable = React.createElement(AsyncMode, { - __source: { - fileName: _jsxFileName, - lineNumber: 48 - } - }, renderable); - } - - if (fabric) { - _$$_REQUIRE(_dependencyMap[4], 'ReactFabric').render(renderable, rootTag); - } else { - _$$_REQUIRE(_dependencyMap[5], 'ReactNative').render(renderable, rootTag); - } - } - - module.exports = renderApplication; -},500,[452,121,4,60,502,67],"node_modules/react-native/Libraries/ReactNative/renderApplication.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var DeviceEventManager = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').DeviceEventManager; - - var RCTDeviceEventEmitter = _$$_REQUIRE(_dependencyMap[1], 'RCTDeviceEventEmitter'); - - var DEVICE_BACK_EVENT = 'hardwareBackPress'; - - var _backPressSubscriptions = new Set(); - - RCTDeviceEventEmitter.addListener(DEVICE_BACK_EVENT, function () { - var invokeDefault = true; - var subscriptions = Array.from(_backPressSubscriptions.values()).reverse(); - - for (var i = 0; i < subscriptions.length; ++i) { - if (subscriptions[i]()) { - invokeDefault = false; - break; - } - } - - if (invokeDefault) { - BackHandler.exitApp(); - } - }); - var BackHandler = { - exitApp: function exitApp() { - DeviceEventManager.invokeDefaultBackPressHandler(); - }, - addEventListener: function addEventListener(eventName, handler) { - _backPressSubscriptions.add(handler); - - return { - remove: function remove() { - return BackHandler.removeEventListener(eventName, handler); - } - }; - }, - removeEventListener: function removeEventListener(eventName, handler) { - _backPressSubscriptions.delete(handler); - } - }; - module.exports = BackHandler; -},60,[93,91],"node_modules/react-native/Libraries/Utilities/BackHandler.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var BatchedBridge = _$$_REQUIRE(_dependencyMap[0], 'BatchedBridge'); - - var ReactFabric; - - if (__DEV__) { - ReactFabric = _$$_REQUIRE(_dependencyMap[1], 'ReactFabric-dev'); - } else { - ReactFabric = _$$_REQUIRE(_dependencyMap[2], 'ReactFabric-prod'); - } - - BatchedBridge.registerCallableModule('ReactFabric', ReactFabric); - module.exports = ReactFabric; -},502,[102,503,504],"node_modules/react-native/Libraries/Renderer/shims/ReactFabric.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - if (__DEV__) { - (function () { - "use strict"; - - _$$_REQUIRE(_dependencyMap[0], "InitializeCore"); - - var invariant = _$$_REQUIRE(_dependencyMap[1], "fbjs/lib/invariant"); - - var warning = _$$_REQUIRE(_dependencyMap[2], "fbjs/lib/warning"); - - var ReactNativeViewConfigRegistry = _$$_REQUIRE(_dependencyMap[3], "ReactNativeViewConfigRegistry"); - - var UIManager = _$$_REQUIRE(_dependencyMap[4], "UIManager"); - - var React = _$$_REQUIRE(_dependencyMap[5], "react"); - - var emptyObject = _$$_REQUIRE(_dependencyMap[6], "fbjs/lib/emptyObject"); - - var deepDiffer = _$$_REQUIRE(_dependencyMap[7], "deepDiffer"); - - var flattenStyle = _$$_REQUIRE(_dependencyMap[8], "flattenStyle"); - - var deepFreezeAndThrowOnMutationInDev = _$$_REQUIRE(_dependencyMap[9], "deepFreezeAndThrowOnMutationInDev"); - - var TextInputState = _$$_REQUIRE(_dependencyMap[10], "TextInputState"); - - var FabricUIManager = _$$_REQUIRE(_dependencyMap[11], "FabricUIManager"); - - var checkPropTypes = _$$_REQUIRE(_dependencyMap[12], "prop-types/checkPropTypes"); - - var ExceptionsManager = _$$_REQUIRE(_dependencyMap[13], "ExceptionsManager"); - - var invokeGuardedCallback = function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { - this._hasCaughtError = false; - this._caughtError = null; - var funcArgs = Array.prototype.slice.call(arguments, 3); - - try { - func.apply(context, funcArgs); - } catch (error) { - this._caughtError = error; - this._hasCaughtError = true; - } - }; - - { - if (typeof window !== "undefined" && typeof window.dispatchEvent === "function" && typeof document !== "undefined" && typeof document.createEvent === "function") { - var fakeNode = document.createElement("react"); - - var invokeGuardedCallbackDev = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) { - invariant(typeof document !== "undefined", "The `document` global was defined when React was initialized, but is not " + "defined anymore. This can happen in a test environment if a component " + "schedules an update from an asynchronous callback, but the test has already " + "finished running. To solve this, you can either unmount the component at " + "the end of your test (and ensure that any asynchronous operations get " + "canceled in `componentWillUnmount`), or you can change the test itself " + "to be asynchronous."); - var evt = document.createEvent("Event"); - var didError = true; - var funcArgs = Array.prototype.slice.call(arguments, 3); - - function callCallback() { - fakeNode.removeEventListener(evtType, callCallback, false); - func.apply(context, funcArgs); - didError = false; - } - - var error = void 0; - var didSetError = false; - var isCrossOriginError = false; - - function onError(event) { - error = event.error; - didSetError = true; - - if (error === null && event.colno === 0 && event.lineno === 0) { - isCrossOriginError = true; - } - } - - var evtType = "react-" + (name ? name : "invokeguardedcallback"); - window.addEventListener("error", onError); - fakeNode.addEventListener(evtType, callCallback, false); - evt.initEvent(evtType, false, false); - fakeNode.dispatchEvent(evt); - - if (didError) { - if (!didSetError) { - error = new Error("An error was thrown inside one of your components, but React " + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + "your browser. Try triggering the error in production mode, " + "or switching to a modern browser. If you suspect that this is " + "actually an issue with React, please file an issue."); - } else if (isCrossOriginError) { - error = new Error("A cross-origin error was thrown. React doesn't have access to " + "the actual error object in development. " + "See https://fb.me/react-crossorigin-error for more information."); - } - - this._hasCaughtError = true; - this._caughtError = error; - } else { - this._hasCaughtError = false; - this._caughtError = null; - } - - window.removeEventListener("error", onError); - }; - - invokeGuardedCallback = invokeGuardedCallbackDev; - } - } - var invokeGuardedCallback$1 = invokeGuardedCallback; - var ReactErrorUtils = { - _caughtError: null, - _hasCaughtError: false, - _rethrowError: null, - _hasRethrowError: false, - invokeGuardedCallback: function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { - invokeGuardedCallback$1.apply(ReactErrorUtils, arguments); - }, - invokeGuardedCallbackAndCatchFirstError: function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { - ReactErrorUtils.invokeGuardedCallback.apply(this, arguments); - - if (ReactErrorUtils.hasCaughtError()) { - var error = ReactErrorUtils.clearCaughtError(); - - if (!ReactErrorUtils._hasRethrowError) { - ReactErrorUtils._hasRethrowError = true; - ReactErrorUtils._rethrowError = error; - } - } - }, - rethrowCaughtError: function rethrowCaughtError() { - return _rethrowCaughtError.apply(ReactErrorUtils, arguments); - }, - hasCaughtError: function hasCaughtError() { - return ReactErrorUtils._hasCaughtError; - }, - clearCaughtError: function clearCaughtError() { - if (ReactErrorUtils._hasCaughtError) { - var error = ReactErrorUtils._caughtError; - ReactErrorUtils._caughtError = null; - ReactErrorUtils._hasCaughtError = false; - return error; - } else { - invariant(false, "clearCaughtError was called but no error was captured. This error " + "is likely caused by a bug in React. Please file an issue."); - } - } - }; - - var _rethrowCaughtError = function _rethrowCaughtError() { - if (ReactErrorUtils._hasRethrowError) { - var error = ReactErrorUtils._rethrowError; - ReactErrorUtils._rethrowError = null; - ReactErrorUtils._hasRethrowError = false; - throw error; - } - }; - - var eventPluginOrder = null; - var namesToPlugins = {}; - - function recomputePluginOrdering() { - if (!eventPluginOrder) { - return; - } - - for (var pluginName in namesToPlugins) { - var pluginModule = namesToPlugins[pluginName]; - var pluginIndex = eventPluginOrder.indexOf(pluginName); - invariant(pluginIndex > -1, "EventPluginRegistry: Cannot inject event plugins that do not exist in " + "the plugin ordering, `%s`.", pluginName); - - if (plugins[pluginIndex]) { - continue; - } - - invariant(pluginModule.extractEvents, "EventPluginRegistry: Event plugins must implement an `extractEvents` " + "method, but `%s` does not.", pluginName); - plugins[pluginIndex] = pluginModule; - var publishedEvents = pluginModule.eventTypes; - - for (var eventName in publishedEvents) { - invariant(publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName), "EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.", eventName, pluginName); - } - } - } - - function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { - invariant(!eventNameDispatchConfigs.hasOwnProperty(eventName), "EventPluginHub: More than one plugin attempted to publish the same " + "event name, `%s`.", eventName); - eventNameDispatchConfigs[eventName] = dispatchConfig; - var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; - - if (phasedRegistrationNames) { - for (var phaseName in phasedRegistrationNames) { - if (phasedRegistrationNames.hasOwnProperty(phaseName)) { - var phasedRegistrationName = phasedRegistrationNames[phaseName]; - publishRegistrationName(phasedRegistrationName, pluginModule, eventName); - } - } - - return true; - } else if (dispatchConfig.registrationName) { - publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName); - return true; - } - - return false; - } - - function publishRegistrationName(registrationName, pluginModule, eventName) { - invariant(!registrationNameModules[registrationName], "EventPluginHub: More than one plugin attempted to publish the same " + "registration name, `%s`.", registrationName); - registrationNameModules[registrationName] = pluginModule; - registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies; - { - var lowerCasedName = registrationName.toLowerCase(); - } - } - - var plugins = []; - var eventNameDispatchConfigs = {}; - var registrationNameModules = {}; - var registrationNameDependencies = {}; - - function injectEventPluginOrder(injectedEventPluginOrder) { - invariant(!eventPluginOrder, "EventPluginRegistry: Cannot inject event plugin ordering more than " + "once. You are likely trying to load more than one copy of React."); - eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); - recomputePluginOrdering(); - } - - function injectEventPluginsByName(injectedNamesToPlugins) { - var isOrderingDirty = false; - - for (var pluginName in injectedNamesToPlugins) { - if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) { - continue; - } - - var pluginModule = injectedNamesToPlugins[pluginName]; - - if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) { - invariant(!namesToPlugins[pluginName], "EventPluginRegistry: Cannot inject two different event plugins " + "using the same name, `%s`.", pluginName); - namesToPlugins[pluginName] = pluginModule; - isOrderingDirty = true; - } - } - - if (isOrderingDirty) { - recomputePluginOrdering(); - } - } - - var getFiberCurrentPropsFromNode = null; - var getInstanceFromNode = null; - var getNodeFromInstance = null; - var injection$1 = { - injectComponentTree: function injectComponentTree(Injected) { - getFiberCurrentPropsFromNode = Injected.getFiberCurrentPropsFromNode; - getInstanceFromNode = Injected.getInstanceFromNode; - getNodeFromInstance = Injected.getNodeFromInstance; - { - !(getNodeFromInstance && getInstanceFromNode) ? warning(false, "EventPluginUtils.injection.injectComponentTree(...): Injected " + "module is missing getNodeFromInstance or getInstanceFromNode.") : void 0; - } - } - }; - var validateEventDispatches = void 0; - { - validateEventDispatches = function validateEventDispatches(event) { - var dispatchListeners = event._dispatchListeners; - var dispatchInstances = event._dispatchInstances; - var listenersIsArr = Array.isArray(dispatchListeners); - var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0; - var instancesIsArr = Array.isArray(dispatchInstances); - var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0; - !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warning(false, "EventPluginUtils: Invalid `event`.") : void 0; - }; - } - - function executeDispatch(event, simulated, listener, inst) { - var type = event.type || "unknown-event"; - event.currentTarget = getNodeFromInstance(inst); - ReactErrorUtils.invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event); - event.currentTarget = null; - } - - function executeDispatchesInOrder(event, simulated) { - var dispatchListeners = event._dispatchListeners; - var dispatchInstances = event._dispatchInstances; - { - validateEventDispatches(event); - } - - if (Array.isArray(dispatchListeners)) { - for (var i = 0; i < dispatchListeners.length; i++) { - if (event.isPropagationStopped()) { - break; - } - - executeDispatch(event, simulated, dispatchListeners[i], dispatchInstances[i]); - } - } else if (dispatchListeners) { - executeDispatch(event, simulated, dispatchListeners, dispatchInstances); - } - - event._dispatchListeners = null; - event._dispatchInstances = null; - } - - function executeDispatchesInOrderStopAtTrueImpl(event) { - var dispatchListeners = event._dispatchListeners; - var dispatchInstances = event._dispatchInstances; - { - validateEventDispatches(event); - } - - if (Array.isArray(dispatchListeners)) { - for (var i = 0; i < dispatchListeners.length; i++) { - if (event.isPropagationStopped()) { - break; - } - - if (dispatchListeners[i](event, dispatchInstances[i])) { - return dispatchInstances[i]; - } - } - } else if (dispatchListeners) { - if (dispatchListeners(event, dispatchInstances)) { - return dispatchInstances; - } - } - - return null; - } - - function executeDispatchesInOrderStopAtTrue(event) { - var ret = executeDispatchesInOrderStopAtTrueImpl(event); - event._dispatchInstances = null; - event._dispatchListeners = null; - return ret; - } - - function executeDirectDispatch(event) { - { - validateEventDispatches(event); - } - var dispatchListener = event._dispatchListeners; - var dispatchInstance = event._dispatchInstances; - invariant(!Array.isArray(dispatchListener), "executeDirectDispatch(...): Invalid `event`."); - event.currentTarget = dispatchListener ? getNodeFromInstance(dispatchInstance) : null; - var res = dispatchListener ? dispatchListener(event) : null; - event.currentTarget = null; - event._dispatchListeners = null; - event._dispatchInstances = null; - return res; - } - - function hasDispatches(event) { - return !!event._dispatchListeners; - } - - function accumulateInto(current, next) { - invariant(next != null, "accumulateInto(...): Accumulated items must not be null or undefined."); - - if (current == null) { - return next; - } - - if (Array.isArray(current)) { - if (Array.isArray(next)) { - current.push.apply(current, next); - return current; - } - - current.push(next); - return current; - } - - if (Array.isArray(next)) { - return [current].concat(next); - } - - return [current, next]; - } - - function forEachAccumulated(arr, cb, scope) { - if (Array.isArray(arr)) { - arr.forEach(cb, scope); - } else if (arr) { - cb.call(scope, arr); - } - } - - var eventQueue = null; - - var executeDispatchesAndRelease = function executeDispatchesAndRelease(event, simulated) { - if (event) { - executeDispatchesInOrder(event, simulated); - - if (!event.isPersistent()) { - event.constructor.release(event); - } - } - }; - - var executeDispatchesAndReleaseSimulated = function executeDispatchesAndReleaseSimulated(e) { - return executeDispatchesAndRelease(e, true); - }; - - var executeDispatchesAndReleaseTopLevel = function executeDispatchesAndReleaseTopLevel(e) { - return executeDispatchesAndRelease(e, false); - }; - - function isInteractive(tag) { - return tag === "button" || tag === "input" || tag === "select" || tag === "textarea"; - } - - function shouldPreventMouseEvent(name, type, props) { - switch (name) { - case "onClick": - case "onClickCapture": - case "onDoubleClick": - case "onDoubleClickCapture": - case "onMouseDown": - case "onMouseDownCapture": - case "onMouseMove": - case "onMouseMoveCapture": - case "onMouseUp": - case "onMouseUpCapture": - return !!(props.disabled && isInteractive(type)); - - default: - return false; - } - } - - var injection = { - injectEventPluginOrder: injectEventPluginOrder, - injectEventPluginsByName: injectEventPluginsByName - }; - - function getListener(inst, registrationName) { - var listener = void 0; - var stateNode = inst.stateNode; - - if (!stateNode) { - return null; - } - - var props = getFiberCurrentPropsFromNode(stateNode); - - if (!props) { - return null; - } - - listener = props[registrationName]; - - if (shouldPreventMouseEvent(registrationName, inst.type, props)) { - return null; - } - - invariant(!listener || typeof listener === "function", "Expected `%s` listener to be a function, instead got a value of `%s` type.", registrationName, typeof listener); - return listener; - } - - function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var events = null; - - for (var i = 0; i < plugins.length; i++) { - var possiblePlugin = plugins[i]; - - if (possiblePlugin) { - var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); - - if (extractedEvents) { - events = accumulateInto(events, extractedEvents); - } - } - } - - return events; - } - - function runEventsInBatch(events, simulated) { - if (events !== null) { - eventQueue = accumulateInto(eventQueue, events); - } - - var processingEventQueue = eventQueue; - eventQueue = null; - - if (!processingEventQueue) { - return; - } - - if (simulated) { - forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseSimulated); - } else { - forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel); - } - - invariant(!eventQueue, "processEventQueue(): Additional events were enqueued while processing " + "an event queue. Support for this has not yet been implemented."); - ReactErrorUtils.rethrowCaughtError(); - } - - function runExtractedEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var events = extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); - runEventsInBatch(events, false); - } - - var IndeterminateComponent = 0; - var FunctionalComponent = 1; - var ClassComponent = 2; - var HostRoot = 3; - var HostPortal = 4; - var HostComponent = 5; - var HostText = 6; - var Fragment = 10; - var Mode = 11; - var ContextConsumer = 12; - var ContextProvider = 13; - var ForwardRef = 14; - var Profiler = 15; - var TimeoutComponent = 16; - - function getParent(inst) { - do { - inst = inst.return; - } while (inst && inst.tag !== HostComponent); - - if (inst) { - return inst; - } - - return null; - } - - function getLowestCommonAncestor(instA, instB) { - var depthA = 0; - - for (var tempA = instA; tempA; tempA = getParent(tempA)) { - depthA++; - } - - var depthB = 0; - - for (var tempB = instB; tempB; tempB = getParent(tempB)) { - depthB++; - } - - while (depthA - depthB > 0) { - instA = getParent(instA); - depthA--; - } - - while (depthB - depthA > 0) { - instB = getParent(instB); - depthB--; - } - - var depth = depthA; - - while (depth--) { - if (instA === instB || instA === instB.alternate) { - return instA; - } - - instA = getParent(instA); - instB = getParent(instB); - } - - return null; - } - - function isAncestor(instA, instB) { - while (instB) { - if (instA === instB || instA === instB.alternate) { - return true; - } - - instB = getParent(instB); - } - - return false; - } - - function getParentInstance(inst) { - return getParent(inst); - } - - function traverseTwoPhase(inst, fn, arg) { - var path = []; - - while (inst) { - path.push(inst); - inst = getParent(inst); - } - - var i = void 0; - - for (i = path.length; i-- > 0;) { - fn(path[i], "captured", arg); - } - - for (i = 0; i < path.length; i++) { - fn(path[i], "bubbled", arg); - } - } - - function listenerAtPhase(inst, event, propagationPhase) { - var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; - return getListener(inst, registrationName); - } - - function accumulateDirectionalDispatches(inst, phase, event) { - { - !inst ? warning(false, "Dispatching inst must not be null") : void 0; - } - var listener = listenerAtPhase(inst, event, phase); - - if (listener) { - event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); - event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); - } - } - - function accumulateTwoPhaseDispatchesSingle(event) { - if (event && event.dispatchConfig.phasedRegistrationNames) { - traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); - } - } - - function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { - if (event && event.dispatchConfig.phasedRegistrationNames) { - var targetInst = event._targetInst; - var parentInst = targetInst ? getParentInstance(targetInst) : null; - traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event); - } - } - - function accumulateDispatches(inst, ignoredDirection, event) { - if (inst && event && event.dispatchConfig.registrationName) { - var registrationName = event.dispatchConfig.registrationName; - var listener = getListener(inst, registrationName); - - if (listener) { - event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); - event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); - } - } - } - - function accumulateDirectDispatchesSingle(event) { - if (event && event.dispatchConfig.registrationName) { - accumulateDispatches(event._targetInst, null, event); - } - } - - function accumulateTwoPhaseDispatches(events) { - forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle); - } - - function accumulateTwoPhaseDispatchesSkipTarget(events) { - forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget); - } - - function accumulateDirectDispatches(events) { - forEachAccumulated(events, accumulateDirectDispatchesSingle); - } - - var didWarnForAddedNewProperty = false; - var EVENT_POOL_SIZE = 10; - var shouldBeReleasedProperties = ["dispatchConfig", "_targetInst", "nativeEvent", "isDefaultPrevented", "isPropagationStopped", "_dispatchListeners", "_dispatchInstances"]; - var EventInterface = { - type: null, - target: null, - currentTarget: function currentTarget() { - return null; - }, - eventPhase: null, - bubbles: null, - cancelable: null, - timeStamp: function timeStamp(event) { - return event.timeStamp || Date.now(); - }, - defaultPrevented: null, - isTrusted: null - }; - - function functionThatReturnsTrue() { - return true; - } - - function functionThatReturnsFalse() { - return false; - } - - function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { - { - delete this.nativeEvent; - delete this.preventDefault; - delete this.stopPropagation; - } - this.dispatchConfig = dispatchConfig; - this._targetInst = targetInst; - this.nativeEvent = nativeEvent; - var Interface = this.constructor.Interface; - - for (var propName in Interface) { - if (!Interface.hasOwnProperty(propName)) { - continue; - } - - { - delete this[propName]; - } - var normalize = Interface[propName]; - - if (normalize) { - this[propName] = normalize(nativeEvent); - } else { - if (propName === "target") { - this.target = nativeEventTarget; - } else { - this[propName] = nativeEvent[propName]; - } - } - } - - var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false; - - if (defaultPrevented) { - this.isDefaultPrevented = functionThatReturnsTrue; - } else { - this.isDefaultPrevented = functionThatReturnsFalse; - } - - this.isPropagationStopped = functionThatReturnsFalse; - return this; - } - - _extends(SyntheticEvent.prototype, { - preventDefault: function preventDefault() { - this.defaultPrevented = true; - var event = this.nativeEvent; - - if (!event) { - return; - } - - if (event.preventDefault) { - event.preventDefault(); - } else if (typeof event.returnValue !== "unknown") { - event.returnValue = false; - } - - this.isDefaultPrevented = functionThatReturnsTrue; - }, - stopPropagation: function stopPropagation() { - var event = this.nativeEvent; - - if (!event) { - return; - } - - if (event.stopPropagation) { - event.stopPropagation(); - } else if (typeof event.cancelBubble !== "unknown") { - event.cancelBubble = true; - } - - this.isPropagationStopped = functionThatReturnsTrue; - }, - persist: function persist() { - this.isPersistent = functionThatReturnsTrue; - }, - isPersistent: functionThatReturnsFalse, - destructor: function destructor() { - var Interface = this.constructor.Interface; - - for (var propName in Interface) { - { - Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName])); - } - } - - for (var i = 0; i < shouldBeReleasedProperties.length; i++) { - this[shouldBeReleasedProperties[i]] = null; - } - - { - Object.defineProperty(this, "nativeEvent", getPooledWarningPropertyDefinition("nativeEvent", null)); - Object.defineProperty(this, "preventDefault", getPooledWarningPropertyDefinition("preventDefault", function () {})); - Object.defineProperty(this, "stopPropagation", getPooledWarningPropertyDefinition("stopPropagation", function () {})); - } - } - }); - - SyntheticEvent.Interface = EventInterface; - - SyntheticEvent.extend = function (Interface) { - var Super = this; - - var E = function E() {}; - - E.prototype = Super.prototype; - var prototype = new E(); - - function Class() { - return Super.apply(this, arguments); - } - - _extends(prototype, Class.prototype); - - Class.prototype = prototype; - Class.prototype.constructor = Class; - Class.Interface = _extends({}, Super.Interface, Interface); - Class.extend = Super.extend; - addEventPoolingTo(Class); - return Class; - }; - - { - var isProxySupported = typeof Proxy === "function" && !Object.isSealed(new Proxy({}, {})); - - if (isProxySupported) { - SyntheticEvent = new Proxy(SyntheticEvent, { - construct: function construct(target, args) { - return this.apply(target, Object.create(target.prototype), args); - }, - apply: function apply(constructor, that, args) { - return new Proxy(constructor.apply(that, args), { - set: function set(target, prop, value) { - if (prop !== "isPersistent" && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) { - !(didWarnForAddedNewProperty || target.isPersistent()) ? warning(false, "This synthetic event is reused for performance reasons. If you're " + "seeing this, you're adding a new property in the synthetic event object. " + "The property is never released. See " + "https://fb.me/react-event-pooling for more information.") : void 0; - didWarnForAddedNewProperty = true; - } - - target[prop] = value; - return true; - } - }); - } - }); - } - } - addEventPoolingTo(SyntheticEvent); - - function getPooledWarningPropertyDefinition(propName, getVal) { - var isFunction = typeof getVal === "function"; - return { - configurable: true, - set: set, - get: get$$1 - }; - - function set(val) { - var action = isFunction ? "setting the method" : "setting the property"; - warn(action, "This is effectively a no-op"); - return val; - } - - function get$$1() { - var action = isFunction ? "accessing the method" : "accessing the property"; - var result = isFunction ? "This is a no-op function" : "This is set to null"; - warn(action, result); - return getVal; - } - - function warn(action, result) { - var warningCondition = false; - !warningCondition ? warning(false, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + "If you must keep the original synthetic event around, use event.persist(). " + "See https://fb.me/react-event-pooling for more information.", action, propName, result) : void 0; - } - } - - function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { - var EventConstructor = this; - - if (EventConstructor.eventPool.length) { - var instance = EventConstructor.eventPool.pop(); - EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); - return instance; - } - - return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst); - } - - function releasePooledEvent(event) { - var EventConstructor = this; - invariant(event instanceof EventConstructor, "Trying to release an event instance into a pool of a different type."); - event.destructor(); - - if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) { - EventConstructor.eventPool.push(event); - } - } - - function addEventPoolingTo(EventConstructor) { - EventConstructor.eventPool = []; - EventConstructor.getPooled = getPooledEvent; - EventConstructor.release = releasePooledEvent; - } - - var SyntheticEvent$1 = SyntheticEvent; - var ResponderSyntheticEvent = SyntheticEvent$1.extend({ - touchHistory: function touchHistory(nativeEvent) { - return null; - } - }); - var TOP_TOUCH_START = "topTouchStart"; - var TOP_TOUCH_MOVE = "topTouchMove"; - var TOP_TOUCH_END = "topTouchEnd"; - var TOP_TOUCH_CANCEL = "topTouchCancel"; - var TOP_SCROLL = "topScroll"; - var TOP_SELECTION_CHANGE = "topSelectionChange"; - - function isStartish(topLevelType) { - return topLevelType === TOP_TOUCH_START; - } - - function isMoveish(topLevelType) { - return topLevelType === TOP_TOUCH_MOVE; - } - - function isEndish(topLevelType) { - return topLevelType === TOP_TOUCH_END || topLevelType === TOP_TOUCH_CANCEL; - } - - var startDependencies = [TOP_TOUCH_START]; - var moveDependencies = [TOP_TOUCH_MOVE]; - var endDependencies = [TOP_TOUCH_CANCEL, TOP_TOUCH_END]; - var MAX_TOUCH_BANK = 20; - var touchBank = []; - var touchHistory = { - touchBank: touchBank, - numberActiveTouches: 0, - indexOfSingleActiveTouch: -1, - mostRecentTimeStamp: 0 - }; - - function timestampForTouch(touch) { - return touch.timeStamp || touch.timestamp; - } - - function createTouchRecord(touch) { - return { - touchActive: true, - startPageX: touch.pageX, - startPageY: touch.pageY, - startTimeStamp: timestampForTouch(touch), - currentPageX: touch.pageX, - currentPageY: touch.pageY, - currentTimeStamp: timestampForTouch(touch), - previousPageX: touch.pageX, - previousPageY: touch.pageY, - previousTimeStamp: timestampForTouch(touch) - }; - } - - function resetTouchRecord(touchRecord, touch) { - touchRecord.touchActive = true; - touchRecord.startPageX = touch.pageX; - touchRecord.startPageY = touch.pageY; - touchRecord.startTimeStamp = timestampForTouch(touch); - touchRecord.currentPageX = touch.pageX; - touchRecord.currentPageY = touch.pageY; - touchRecord.currentTimeStamp = timestampForTouch(touch); - touchRecord.previousPageX = touch.pageX; - touchRecord.previousPageY = touch.pageY; - touchRecord.previousTimeStamp = timestampForTouch(touch); - } - - function getTouchIdentifier(_ref) { - var identifier = _ref.identifier; - invariant(identifier != null, "Touch object is missing identifier."); - { - !(identifier <= MAX_TOUCH_BANK) ? warning(false, "Touch identifier %s is greater than maximum supported %s which causes " + "performance issues backfilling array locations for all of the indices.", identifier, MAX_TOUCH_BANK) : void 0; - } - return identifier; - } - - function recordTouchStart(touch) { - var identifier = getTouchIdentifier(touch); - var touchRecord = touchBank[identifier]; - - if (touchRecord) { - resetTouchRecord(touchRecord, touch); - } else { - touchBank[identifier] = createTouchRecord(touch); - } - - touchHistory.mostRecentTimeStamp = timestampForTouch(touch); - } - - function recordTouchMove(touch) { - var touchRecord = touchBank[getTouchIdentifier(touch)]; - - if (touchRecord) { - touchRecord.touchActive = true; - touchRecord.previousPageX = touchRecord.currentPageX; - touchRecord.previousPageY = touchRecord.currentPageY; - touchRecord.previousTimeStamp = touchRecord.currentTimeStamp; - touchRecord.currentPageX = touch.pageX; - touchRecord.currentPageY = touch.pageY; - touchRecord.currentTimeStamp = timestampForTouch(touch); - touchHistory.mostRecentTimeStamp = timestampForTouch(touch); - } else { - console.error("Cannot record touch move without a touch start.\n" + "Touch Move: %s\n", "Touch Bank: %s", printTouch(touch), printTouchBank()); - } - } - - function recordTouchEnd(touch) { - var touchRecord = touchBank[getTouchIdentifier(touch)]; - - if (touchRecord) { - touchRecord.touchActive = false; - touchRecord.previousPageX = touchRecord.currentPageX; - touchRecord.previousPageY = touchRecord.currentPageY; - touchRecord.previousTimeStamp = touchRecord.currentTimeStamp; - touchRecord.currentPageX = touch.pageX; - touchRecord.currentPageY = touch.pageY; - touchRecord.currentTimeStamp = timestampForTouch(touch); - touchHistory.mostRecentTimeStamp = timestampForTouch(touch); - } else { - console.error("Cannot record touch end without a touch start.\n" + "Touch End: %s\n", "Touch Bank: %s", printTouch(touch), printTouchBank()); - } - } - - function printTouch(touch) { - return JSON.stringify({ - identifier: touch.identifier, - pageX: touch.pageX, - pageY: touch.pageY, - timestamp: timestampForTouch(touch) - }); - } - - function printTouchBank() { - var printed = JSON.stringify(touchBank.slice(0, MAX_TOUCH_BANK)); - - if (touchBank.length > MAX_TOUCH_BANK) { - printed += " (original size: " + touchBank.length + ")"; - } - - return printed; - } - - var ResponderTouchHistoryStore = { - recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) { - if (isMoveish(topLevelType)) { - nativeEvent.changedTouches.forEach(recordTouchMove); - } else if (isStartish(topLevelType)) { - nativeEvent.changedTouches.forEach(recordTouchStart); - touchHistory.numberActiveTouches = nativeEvent.touches.length; - - if (touchHistory.numberActiveTouches === 1) { - touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier; - } - } else if (isEndish(topLevelType)) { - nativeEvent.changedTouches.forEach(recordTouchEnd); - touchHistory.numberActiveTouches = nativeEvent.touches.length; - - if (touchHistory.numberActiveTouches === 1) { - for (var i = 0; i < touchBank.length; i++) { - var touchTrackToCheck = touchBank[i]; - - if (touchTrackToCheck != null && touchTrackToCheck.touchActive) { - touchHistory.indexOfSingleActiveTouch = i; - break; - } - } - - { - var activeRecord = touchBank[touchHistory.indexOfSingleActiveTouch]; - !(activeRecord != null && activeRecord.touchActive) ? warning(false, "Cannot find single active touch.") : void 0; - } - } - } - }, - touchHistory: touchHistory - }; - - function accumulate(current, next) { - invariant(next != null, "accumulate(...): Accumulated items must be not be null or undefined."); - - if (current == null) { - return next; - } - - if (Array.isArray(current)) { - return current.concat(next); - } - - if (Array.isArray(next)) { - return [current].concat(next); - } - - return [current, next]; - } - - var responderInst = null; - var trackedTouchCount = 0; - - var changeResponder = function changeResponder(nextResponderInst, blockHostResponder) { - var oldResponderInst = responderInst; - responderInst = nextResponderInst; - - if (ResponderEventPlugin.GlobalResponderHandler !== null) { - ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); - } - }; - - var eventTypes$1 = { - startShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onStartShouldSetResponder", - captured: "onStartShouldSetResponderCapture" - }, - dependencies: startDependencies - }, - scrollShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onScrollShouldSetResponder", - captured: "onScrollShouldSetResponderCapture" - }, - dependencies: [TOP_SCROLL] - }, - selectionChangeShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onSelectionChangeShouldSetResponder", - captured: "onSelectionChangeShouldSetResponderCapture" - }, - dependencies: [TOP_SELECTION_CHANGE] - }, - moveShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onMoveShouldSetResponder", - captured: "onMoveShouldSetResponderCapture" - }, - dependencies: moveDependencies - }, - responderStart: { - registrationName: "onResponderStart", - dependencies: startDependencies - }, - responderMove: { - registrationName: "onResponderMove", - dependencies: moveDependencies - }, - responderEnd: { - registrationName: "onResponderEnd", - dependencies: endDependencies - }, - responderRelease: { - registrationName: "onResponderRelease", - dependencies: endDependencies - }, - responderTerminationRequest: { - registrationName: "onResponderTerminationRequest", - dependencies: [] - }, - responderGrant: { - registrationName: "onResponderGrant", - dependencies: [] - }, - responderReject: { - registrationName: "onResponderReject", - dependencies: [] - }, - responderTerminate: { - registrationName: "onResponderTerminate", - dependencies: [] - } - }; - - function setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var shouldSetEventType = isStartish(topLevelType) ? eventTypes$1.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes$1.moveShouldSetResponder : topLevelType === TOP_SELECTION_CHANGE ? eventTypes$1.selectionChangeShouldSetResponder : eventTypes$1.scrollShouldSetResponder; - var bubbleShouldSetFrom = !responderInst ? targetInst : getLowestCommonAncestor(responderInst, targetInst); - var skipOverBubbleShouldSetFrom = bubbleShouldSetFrom === responderInst; - var shouldSetEvent = ResponderSyntheticEvent.getPooled(shouldSetEventType, bubbleShouldSetFrom, nativeEvent, nativeEventTarget); - shouldSetEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; - - if (skipOverBubbleShouldSetFrom) { - accumulateTwoPhaseDispatchesSkipTarget(shouldSetEvent); - } else { - accumulateTwoPhaseDispatches(shouldSetEvent); - } - - var wantsResponderInst = executeDispatchesInOrderStopAtTrue(shouldSetEvent); - - if (!shouldSetEvent.isPersistent()) { - shouldSetEvent.constructor.release(shouldSetEvent); - } - - if (!wantsResponderInst || wantsResponderInst === responderInst) { - return null; - } - - var extracted = void 0; - var grantEvent = ResponderSyntheticEvent.getPooled(eventTypes$1.responderGrant, wantsResponderInst, nativeEvent, nativeEventTarget); - grantEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; - accumulateDirectDispatches(grantEvent); - var blockHostResponder = executeDirectDispatch(grantEvent) === true; - - if (responderInst) { - var terminationRequestEvent = ResponderSyntheticEvent.getPooled(eventTypes$1.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget); - terminationRequestEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; - accumulateDirectDispatches(terminationRequestEvent); - var shouldSwitch = !hasDispatches(terminationRequestEvent) || executeDirectDispatch(terminationRequestEvent); - - if (!terminationRequestEvent.isPersistent()) { - terminationRequestEvent.constructor.release(terminationRequestEvent); - } - - if (shouldSwitch) { - var terminateEvent = ResponderSyntheticEvent.getPooled(eventTypes$1.responderTerminate, responderInst, nativeEvent, nativeEventTarget); - terminateEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; - accumulateDirectDispatches(terminateEvent); - extracted = accumulate(extracted, [grantEvent, terminateEvent]); - changeResponder(wantsResponderInst, blockHostResponder); - } else { - var rejectEvent = ResponderSyntheticEvent.getPooled(eventTypes$1.responderReject, wantsResponderInst, nativeEvent, nativeEventTarget); - rejectEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; - accumulateDirectDispatches(rejectEvent); - extracted = accumulate(extracted, rejectEvent); - } - } else { - extracted = accumulate(extracted, grantEvent); - changeResponder(wantsResponderInst, blockHostResponder); - } - - return extracted; - } - - function canTriggerTransfer(topLevelType, topLevelInst, nativeEvent) { - return topLevelInst && (topLevelType === TOP_SCROLL && !nativeEvent.responderIgnoreScroll || trackedTouchCount > 0 && topLevelType === TOP_SELECTION_CHANGE || isStartish(topLevelType) || isMoveish(topLevelType)); - } - - function noResponderTouches(nativeEvent) { - var touches = nativeEvent.touches; - - if (!touches || touches.length === 0) { - return true; - } - - for (var i = 0; i < touches.length; i++) { - var activeTouch = touches[i]; - var target = activeTouch.target; - - if (target !== null && target !== undefined && target !== 0) { - var targetInst = getInstanceFromNode(target); - - if (isAncestor(responderInst, targetInst)) { - return false; - } - } - } - - return true; - } - - var ResponderEventPlugin = { - _getResponder: function _getResponder() { - return responderInst; - }, - eventTypes: eventTypes$1, - extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - if (isStartish(topLevelType)) { - trackedTouchCount += 1; - } else if (isEndish(topLevelType)) { - if (trackedTouchCount >= 0) { - trackedTouchCount -= 1; - } else { - console.error("Ended a touch event which was not counted in `trackedTouchCount`."); - return null; - } - } - - ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); - var extracted = canTriggerTransfer(topLevelType, targetInst, nativeEvent) ? setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) : null; - var isResponderTouchStart = responderInst && isStartish(topLevelType); - var isResponderTouchMove = responderInst && isMoveish(topLevelType); - var isResponderTouchEnd = responderInst && isEndish(topLevelType); - var incrementalTouch = isResponderTouchStart ? eventTypes$1.responderStart : isResponderTouchMove ? eventTypes$1.responderMove : isResponderTouchEnd ? eventTypes$1.responderEnd : null; - - if (incrementalTouch) { - var gesture = ResponderSyntheticEvent.getPooled(incrementalTouch, responderInst, nativeEvent, nativeEventTarget); - gesture.touchHistory = ResponderTouchHistoryStore.touchHistory; - accumulateDirectDispatches(gesture); - extracted = accumulate(extracted, gesture); - } - - var isResponderTerminate = responderInst && topLevelType === TOP_TOUCH_CANCEL; - var isResponderRelease = responderInst && !isResponderTerminate && isEndish(topLevelType) && noResponderTouches(nativeEvent); - var finalTouch = isResponderTerminate ? eventTypes$1.responderTerminate : isResponderRelease ? eventTypes$1.responderRelease : null; - - if (finalTouch) { - var finalEvent = ResponderSyntheticEvent.getPooled(finalTouch, responderInst, nativeEvent, nativeEventTarget); - finalEvent.touchHistory = ResponderTouchHistoryStore.touchHistory; - accumulateDirectDispatches(finalEvent); - extracted = accumulate(extracted, finalEvent); - changeResponder(null); - } - - return extracted; - }, - GlobalResponderHandler: null, - injection: { - injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { - ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; - } - } - }; - var customBubblingEventTypes$1 = ReactNativeViewConfigRegistry.customBubblingEventTypes; - var customDirectEventTypes$1 = ReactNativeViewConfigRegistry.customDirectEventTypes; - var eventTypes$2 = ReactNativeViewConfigRegistry.eventTypes; - var ReactNativeBridgeEventPlugin = { - eventTypes: eventTypes$2, - extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - if (targetInst == null) { - return null; - } - - var bubbleDispatchConfig = customBubblingEventTypes$1[topLevelType]; - var directDispatchConfig = customDirectEventTypes$1[topLevelType]; - invariant(bubbleDispatchConfig || directDispatchConfig, 'Unsupported top level event type "%s" dispatched', topLevelType); - var event = SyntheticEvent$1.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); - - if (bubbleDispatchConfig) { - accumulateTwoPhaseDispatches(event); - } else if (directDispatchConfig) { - accumulateDirectDispatches(event); - } else { - return null; - } - - return event; - } - }; - var ReactNativeEventPluginOrder = ["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]; - injection.injectEventPluginOrder(ReactNativeEventPluginOrder); - injection.injectEventPluginsByName({ - ResponderEventPlugin: ResponderEventPlugin, - ReactNativeBridgeEventPlugin: ReactNativeBridgeEventPlugin - }); - - function getInstanceFromInstance(instanceHandle) { - return instanceHandle; - } - - function getTagFromInstance(inst) { - var tag = inst.stateNode.canonical._nativeTag; - invariant(tag, "All native instances should have a tag."); - return tag; - } - - function getFiberCurrentPropsFromNode$1(inst) { - return inst.canonical.currentProps; - } - - var ReactFabricComponentTree = Object.freeze({ - getClosestInstanceFromNode: getInstanceFromInstance, - getInstanceFromNode: getInstanceFromInstance, - getNodeFromInstance: getTagFromInstance, - getFiberCurrentPropsFromNode: getFiberCurrentPropsFromNode$1 - }); - var ReactFabricGlobalResponderHandler = { - onChange: function onChange(from, to, blockNativeResponder) { - if (to !== null) { - var tag = to.stateNode.canonical._nativeTag; - UIManager.setJSResponder(tag, blockNativeResponder); - } else { - UIManager.clearJSResponder(); - } - } - }; - injection$1.injectComponentTree(ReactFabricComponentTree); - ResponderEventPlugin.injection.injectGlobalResponderHandler(ReactFabricGlobalResponderHandler); - - function get$1(key) { - return key._reactInternalFiber; - } - - function set(key, value) { - key._reactInternalFiber = value; - } - - var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - var ReactCurrentOwner = ReactInternals.ReactCurrentOwner; - var ReactDebugCurrentFrame = ReactInternals.ReactDebugCurrentFrame; - var hasSymbol = typeof Symbol === "function" && (typeof Symbol === "function" ? Symbol.for : "@@for"); - var REACT_ELEMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.element") : 0xeac7; - var REACT_PORTAL_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.portal") : 0xeaca; - var REACT_FRAGMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.fragment") : 0xeacb; - var REACT_STRICT_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.strict_mode") : 0xeacc; - var REACT_PROFILER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.profiler") : 0xead2; - var REACT_PROVIDER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.provider") : 0xeacd; - var REACT_CONTEXT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.context") : 0xeace; - var REACT_ASYNC_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.async_mode") : 0xeacf; - var REACT_FORWARD_REF_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.forward_ref") : 0xead0; - var REACT_TIMEOUT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.timeout") : 0xead1; - var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && (typeof Symbol === "function" ? Symbol.iterator : "@@iterator"); - var FAUX_ITERATOR_SYMBOL = "@@iterator"; - - function getIteratorFn(maybeIterable) { - if (maybeIterable === null || typeof maybeIterable === "undefined") { - return null; - } - - var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; - - if (typeof maybeIterator === "function") { - return maybeIterator; - } - - return null; - } - - function getComponentName(fiber) { - var type = fiber.type; - - if (typeof type === "function") { - return type.displayName || type.name; - } - - if (typeof type === "string") { - return type; - } - - switch (type) { - case REACT_ASYNC_MODE_TYPE: - return "AsyncMode"; - - case REACT_CONTEXT_TYPE: - return "Context.Consumer"; - - case REACT_FRAGMENT_TYPE: - return "ReactFragment"; - - case REACT_PORTAL_TYPE: - return "ReactPortal"; - - case REACT_PROFILER_TYPE: - return "Profiler(" + fiber.pendingProps.id + ")"; - - case REACT_PROVIDER_TYPE: - return "Context.Provider"; - - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - - case REACT_TIMEOUT_TYPE: - return "Timeout"; - } - - if (typeof type === "object" && type !== null) { - switch (type.$$typeof) { - case REACT_FORWARD_REF_TYPE: - var functionName = type.render.displayName || type.render.name || ""; - return functionName !== "" ? "ForwardRef(" + functionName + ")" : "ForwardRef"; - } - } - - return null; - } - - var NoEffect = 0; - var PerformedWork = 1; - var Placement = 2; - var Update = 4; - var PlacementAndUpdate = 6; - var Deletion = 8; - var ContentReset = 16; - var Callback = 32; - var DidCapture = 64; - var Ref = 128; - var Snapshot = 256; - var HostEffectMask = 511; - var Incomplete = 512; - var ShouldCapture = 1024; - var MOUNTING = 1; - var MOUNTED = 2; - var UNMOUNTED = 3; - - function isFiberMountedImpl(fiber) { - var node = fiber; - - if (!fiber.alternate) { - if ((node.effectTag & Placement) !== NoEffect) { - return MOUNTING; - } - - while (node.return) { - node = node.return; - - if ((node.effectTag & Placement) !== NoEffect) { - return MOUNTING; - } - } - } else { - while (node.return) { - node = node.return; - } - } - - if (node.tag === HostRoot) { - return MOUNTED; - } - - return UNMOUNTED; - } - - function isFiberMounted(fiber) { - return isFiberMountedImpl(fiber) === MOUNTED; - } - - function isMounted(component) { - { - var owner = ReactCurrentOwner.current; - - if (owner !== null && owner.tag === ClassComponent) { - var ownerFiber = owner; - var instance = ownerFiber.stateNode; - !instance._warnedAboutRefsInRender ? warning(false, "%s is accessing isMounted inside its render() function. " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentName(ownerFiber) || "A component") : void 0; - instance._warnedAboutRefsInRender = true; - } - } - var fiber = get$1(component); - - if (!fiber) { - return false; - } - - return isFiberMountedImpl(fiber) === MOUNTED; - } - - function assertIsMounted(fiber) { - invariant(isFiberMountedImpl(fiber) === MOUNTED, "Unable to find node on an unmounted component."); - } - - function findCurrentFiberUsingSlowPath(fiber) { - var alternate = fiber.alternate; - - if (!alternate) { - var state = isFiberMountedImpl(fiber); - invariant(state !== UNMOUNTED, "Unable to find node on an unmounted component."); - - if (state === MOUNTING) { - return null; - } - - return fiber; - } - - var a = fiber; - var b = alternate; - - while (true) { - var parentA = a.return; - var parentB = parentA ? parentA.alternate : null; - - if (!parentA || !parentB) { - break; - } - - if (parentA.child === parentB.child) { - var child = parentA.child; - - while (child) { - if (child === a) { - assertIsMounted(parentA); - return fiber; - } - - if (child === b) { - assertIsMounted(parentA); - return alternate; - } - - child = child.sibling; - } - - invariant(false, "Unable to find node on an unmounted component."); - } - - if (a.return !== b.return) { - a = parentA; - b = parentB; - } else { - var didFindChild = false; - var _child = parentA.child; - - while (_child) { - if (_child === a) { - didFindChild = true; - a = parentA; - b = parentB; - break; - } - - if (_child === b) { - didFindChild = true; - b = parentA; - a = parentB; - break; - } - - _child = _child.sibling; - } - - if (!didFindChild) { - _child = parentB.child; - - while (_child) { - if (_child === a) { - didFindChild = true; - a = parentB; - b = parentA; - break; - } - - if (_child === b) { - didFindChild = true; - b = parentB; - a = parentA; - break; - } - - _child = _child.sibling; - } - - invariant(didFindChild, "Child was not found in either parent set. This indicates a bug " + "in React related to the return pointer. Please file an issue."); - } - } - - invariant(a.alternate === b, "Return fibers should always be each others' alternates. " + "This error is likely caused by a bug in React. Please file an issue."); - } - - invariant(a.tag === HostRoot, "Unable to find node on an unmounted component."); - - if (a.stateNode.current === a) { - return fiber; - } - - return alternate; - } - - function findCurrentHostFiber(parent) { - var currentParent = findCurrentFiberUsingSlowPath(parent); - - if (!currentParent) { - return null; - } - - var node = currentParent; - - while (true) { - if (node.tag === HostComponent || node.tag === HostText) { - return node; - } else if (node.child) { - node.child.return = node; - node = node.child; - continue; - } - - if (node === currentParent) { - return null; - } - - while (!node.sibling) { - if (!node.return || node.return === currentParent) { - return null; - } - - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - - return null; - } - - function findCurrentHostFiberWithNoPortals(parent) { - var currentParent = findCurrentFiberUsingSlowPath(parent); - - if (!currentParent) { - return null; - } - - var node = currentParent; - - while (true) { - if (node.tag === HostComponent || node.tag === HostText) { - return node; - } else if (node.child && node.tag !== HostPortal) { - node.child.return = node; - node = node.child; - continue; - } - - if (node === currentParent) { - return null; - } - - while (!node.sibling) { - if (!node.return || node.return === currentParent) { - return null; - } - - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - - return null; - } - - function mountSafeCallback(context, callback) { - return function () { - if (!callback) { - return undefined; - } - - if (typeof context.__isMounted === "boolean") { - if (!context.__isMounted) { - return undefined; - } - } else if (typeof context.isMounted === "function") { - if (!context.isMounted()) { - return undefined; - } - } - - return callback.apply(context, arguments); - }; - } - - function throwOnStylesProp(component, props) { - if (props.styles !== undefined) { - var owner = component._owner || null; - var name = component.constructor.displayName; - var msg = "`styles` is not a supported property of `" + name + "`, did " + "you mean `style` (singular)?"; - - if (owner && owner.constructor && owner.constructor.displayName) { - msg += "\n\nCheck the `" + owner.constructor.displayName + "` parent " + " component."; - } - - throw new Error(msg); - } - } - - function warnForStyleProps(props, validAttributes) { - for (var key in validAttributes.style) { - if (!(validAttributes[key] || props[key] === undefined)) { - console.error("You are setting the style `{ " + key + ": ... }` as a prop. You " + "should nest it in a style object. " + "E.g. `{ style: { " + key + ": ... } }`"); - } - } - } - - var emptyObject$1 = {}; - var removedKeys = null; - var removedKeyCount = 0; - - function defaultDiffer(prevProp, nextProp) { - if (typeof nextProp !== "object" || nextProp === null) { - return true; - } else { - return deepDiffer(prevProp, nextProp); - } - } - - function restoreDeletedValuesInNestedArray(updatePayload, node, validAttributes) { - if (Array.isArray(node)) { - var i = node.length; - - while (i-- && removedKeyCount > 0) { - restoreDeletedValuesInNestedArray(updatePayload, node[i], validAttributes); - } - } else if (node && removedKeyCount > 0) { - var obj = node; - - for (var propKey in removedKeys) { - if (!removedKeys[propKey]) { - continue; - } - - var _nextProp = obj[propKey]; - - if (_nextProp === undefined) { - continue; - } - - var attributeConfig = validAttributes[propKey]; - - if (!attributeConfig) { - continue; - } - - if (typeof _nextProp === "function") { - _nextProp = true; - } - - if (typeof _nextProp === "undefined") { - _nextProp = null; - } - - if (typeof attributeConfig !== "object") { - updatePayload[propKey] = _nextProp; - } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { - var nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(_nextProp) : _nextProp; - updatePayload[propKey] = nextValue; - } - - removedKeys[propKey] = false; - removedKeyCount--; - } - } - } - - function diffNestedArrayProperty(updatePayload, prevArray, nextArray, validAttributes) { - var minLength = prevArray.length < nextArray.length ? prevArray.length : nextArray.length; - var i = void 0; - - for (i = 0; i < minLength; i++) { - updatePayload = diffNestedProperty(updatePayload, prevArray[i], nextArray[i], validAttributes); - } - - for (; i < prevArray.length; i++) { - updatePayload = clearNestedProperty(updatePayload, prevArray[i], validAttributes); - } - - for (; i < nextArray.length; i++) { - updatePayload = addNestedProperty(updatePayload, nextArray[i], validAttributes); - } - - return updatePayload; - } - - function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { - if (!updatePayload && prevProp === nextProp) { - return updatePayload; - } - - if (!prevProp || !nextProp) { - if (nextProp) { - return addNestedProperty(updatePayload, nextProp, validAttributes); - } - - if (prevProp) { - return clearNestedProperty(updatePayload, prevProp, validAttributes); - } - - return updatePayload; - } - - if (!Array.isArray(prevProp) && !Array.isArray(nextProp)) { - return diffProperties(updatePayload, prevProp, nextProp, validAttributes); - } - - if (Array.isArray(prevProp) && Array.isArray(nextProp)) { - return diffNestedArrayProperty(updatePayload, prevProp, nextProp, validAttributes); - } - - if (Array.isArray(prevProp)) { - return diffProperties(updatePayload, flattenStyle(prevProp), nextProp, validAttributes); - } - - return diffProperties(updatePayload, prevProp, flattenStyle(nextProp), validAttributes); - } - - function addNestedProperty(updatePayload, nextProp, validAttributes) { - if (!nextProp) { - return updatePayload; - } - - if (!Array.isArray(nextProp)) { - return addProperties(updatePayload, nextProp, validAttributes); - } - - for (var i = 0; i < nextProp.length; i++) { - updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); - } - - return updatePayload; - } - - function clearNestedProperty(updatePayload, prevProp, validAttributes) { - if (!prevProp) { - return updatePayload; - } - - if (!Array.isArray(prevProp)) { - return clearProperties(updatePayload, prevProp, validAttributes); - } - - for (var i = 0; i < prevProp.length; i++) { - updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); - } - - return updatePayload; - } - - function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { - var attributeConfig = void 0; - var nextProp = void 0; - var prevProp = void 0; - - for (var propKey in nextProps) { - attributeConfig = validAttributes[propKey]; - - if (!attributeConfig) { - continue; - } - - prevProp = prevProps[propKey]; - nextProp = nextProps[propKey]; - - if (typeof nextProp === "function") { - nextProp = true; - - if (typeof prevProp === "function") { - prevProp = true; - } - } - - if (typeof nextProp === "undefined") { - nextProp = null; - - if (typeof prevProp === "undefined") { - prevProp = null; - } - } - - if (removedKeys) { - removedKeys[propKey] = false; - } - - if (updatePayload && updatePayload[propKey] !== undefined) { - if (typeof attributeConfig !== "object") { - updatePayload[propKey] = nextProp; - } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { - var nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; - updatePayload[propKey] = nextValue; - } - - continue; - } - - if (prevProp === nextProp) { - continue; - } - - if (typeof attributeConfig !== "object") { - if (defaultDiffer(prevProp, nextProp)) { - (updatePayload || (updatePayload = {}))[propKey] = nextProp; - } - } else if (typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { - var shouldUpdate = prevProp === undefined || (typeof attributeConfig.diff === "function" ? attributeConfig.diff(prevProp, nextProp) : defaultDiffer(prevProp, nextProp)); - - if (shouldUpdate) { - var _nextValue = typeof attributeConfig.process === "function" ? attributeConfig.process(nextProp) : nextProp; - - (updatePayload || (updatePayload = {}))[propKey] = _nextValue; - } - } else { - removedKeys = null; - removedKeyCount = 0; - updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig); - - if (removedKeyCount > 0 && updatePayload) { - restoreDeletedValuesInNestedArray(updatePayload, nextProp, attributeConfig); - removedKeys = null; - } - } - } - - for (var _propKey in prevProps) { - if (nextProps[_propKey] !== undefined) { - continue; - } - - attributeConfig = validAttributes[_propKey]; - - if (!attributeConfig) { - continue; - } - - if (updatePayload && updatePayload[_propKey] !== undefined) { - continue; - } - - prevProp = prevProps[_propKey]; - - if (prevProp === undefined) { - continue; - } - - if (typeof attributeConfig !== "object" || typeof attributeConfig.diff === "function" || typeof attributeConfig.process === "function") { - (updatePayload || (updatePayload = {}))[_propKey] = null; - - if (!removedKeys) { - removedKeys = {}; - } - - if (!removedKeys[_propKey]) { - removedKeys[_propKey] = true; - removedKeyCount++; - } - } else { - updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig); - } - } - - return updatePayload; - } - - function addProperties(updatePayload, props, validAttributes) { - return diffProperties(updatePayload, emptyObject$1, props, validAttributes); - } - - function clearProperties(updatePayload, prevProps, validAttributes) { - return diffProperties(updatePayload, prevProps, emptyObject$1, validAttributes); - } - - function create(props, validAttributes) { - return addProperties(null, props, validAttributes); - } - - function diff(prevProps, nextProps, validAttributes) { - return diffProperties(null, prevProps, nextProps, validAttributes); - } - - var hasNativePerformanceNow = typeof performance === "object" && typeof performance.now === "function"; - var now$1 = hasNativePerformanceNow ? function () { - return performance.now(); - } : function () { - return Date.now(); - }; - var scheduledCallback = null; - var frameDeadline = 0; - var frameDeadlineObject = { - timeRemaining: function timeRemaining() { - return frameDeadline - now$1(); - }, - didTimeout: false - }; - - function setTimeoutCallback() { - frameDeadline = now$1() + 5; - var callback = scheduledCallback; - scheduledCallback = null; - - if (callback !== null) { - callback(frameDeadlineObject); - } - } - - function scheduleDeferredCallback$1(callback, options) { - scheduledCallback = callback; - var timeoutId = setTimeout(setTimeoutCallback, 1); - return timeoutId; - } - - function cancelDeferredCallback$1(callbackID) { - scheduledCallback = null; - clearTimeout(callbackID); - } - - var fiberHostComponent = null; - var restoreTarget = null; - var restoreQueue = null; - - function restoreStateOfTarget(target) { - var internalInstance = getInstanceFromNode(target); - - if (!internalInstance) { - return; - } - - invariant(fiberHostComponent && typeof fiberHostComponent.restoreControlledState === "function", "Fiber needs to be injected to handle a fiber target for controlled " + "events. This error is likely caused by a bug in React. Please file an issue."); - var props = getFiberCurrentPropsFromNode(internalInstance.stateNode); - fiberHostComponent.restoreControlledState(internalInstance.stateNode, internalInstance.type, props); - } - - function needsStateRestore() { - return restoreTarget !== null || restoreQueue !== null; - } - - function restoreStateIfNeeded() { - if (!restoreTarget) { - return; - } - - var target = restoreTarget; - var queuedTargets = restoreQueue; - restoreTarget = null; - restoreQueue = null; - restoreStateOfTarget(target); - - if (queuedTargets) { - for (var i = 0; i < queuedTargets.length; i++) { - restoreStateOfTarget(queuedTargets[i]); - } - } - } - - var _batchedUpdates = function _batchedUpdates(fn, bookkeeping) { - return fn(bookkeeping); - }; - - var _interactiveUpdates = function _interactiveUpdates(fn, a, b) { - return fn(a, b); - }; - - var _flushInteractiveUpdates = function _flushInteractiveUpdates() {}; - - var isBatching = false; - - function batchedUpdates(fn, bookkeeping) { - if (isBatching) { - return fn(bookkeeping); - } - - isBatching = true; - - try { - return _batchedUpdates(fn, bookkeeping); - } finally { - isBatching = false; - var controlledComponentsHavePendingUpdates = needsStateRestore(); - - if (controlledComponentsHavePendingUpdates) { - _flushInteractiveUpdates(); - - restoreStateIfNeeded(); - } - } - } - - var injection$2 = { - injectRenderer: function injectRenderer(renderer) { - _batchedUpdates = renderer.batchedUpdates; - _interactiveUpdates = renderer.interactiveUpdates; - _flushInteractiveUpdates = renderer.flushInteractiveUpdates; - } - }; - - function dispatchEvent(target, topLevelType, nativeEvent) { - var targetFiber = target; - batchedUpdates(function () { - runExtractedEventsInBatch(topLevelType, targetFiber, nativeEvent, nativeEvent.target); - }); - } - - function shim() { - invariant(false, "The current renderer does not support mutation. " + "This error is likely caused by a bug in React. " + "Please file an issue."); - } - - var supportsMutation = false; - var appendChild$1 = shim; - var appendChildToContainer = shim; - var commitTextUpdate = shim; - var commitMount = shim; - var commitUpdate = shim; - var insertBefore = shim; - var insertInContainerBefore = shim; - var removeChild = shim; - var removeChildFromContainer = shim; - var resetTextContent = shim; - - function shim$1() { - invariant(false, "The current renderer does not support hyration. " + "This error is likely caused by a bug in React. " + "Please file an issue."); - } - - var supportsHydration = false; - var canHydrateInstance = shim$1; - var canHydrateTextInstance = shim$1; - var getNextHydratableSibling = shim$1; - var getFirstHydratableChild = shim$1; - var hydrateInstance = shim$1; - var hydrateTextInstance = shim$1; - var didNotMatchHydratedContainerTextInstance = shim$1; - var didNotMatchHydratedTextInstance = shim$1; - var didNotHydrateContainerInstance = shim$1; - var didNotHydrateInstance = shim$1; - var didNotFindHydratableContainerInstance = shim$1; - var didNotFindHydratableContainerTextInstance = shim$1; - var didNotFindHydratableInstance = shim$1; - var didNotFindHydratableTextInstance = shim$1; - - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - } - - var nextReactTag = 2; - - if (FabricUIManager.registerEventHandler) { - FabricUIManager.registerEventHandler(dispatchEvent); - } - - var ReactFabricHostComponent = function () { - function ReactFabricHostComponent(tag, viewConfig, props) { - _classCallCheck(this, ReactFabricHostComponent); - - this._nativeTag = tag; - this.viewConfig = viewConfig; - this.currentProps = props; - } - - ReactFabricHostComponent.prototype.blur = function blur() { - TextInputState.blurTextInput(this._nativeTag); - }; - - ReactFabricHostComponent.prototype.focus = function focus() { - TextInputState.focusTextInput(this._nativeTag); - }; - - ReactFabricHostComponent.prototype.measure = function measure(callback) { - UIManager.measure(this._nativeTag, mountSafeCallback(this, callback)); - }; - - ReactFabricHostComponent.prototype.measureInWindow = function measureInWindow(callback) { - UIManager.measureInWindow(this._nativeTag, mountSafeCallback(this, callback)); - }; - - ReactFabricHostComponent.prototype.measureLayout = function measureLayout(relativeToNativeNode, onSuccess, onFail) { - UIManager.measureLayout(this._nativeTag, relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); - }; - - ReactFabricHostComponent.prototype.setNativeProps = function setNativeProps(nativeProps) { - { - warnForStyleProps(nativeProps, this.viewConfig.validAttributes); - } - var updatePayload = create(nativeProps, this.viewConfig.validAttributes); - - if (updatePayload != null) { - UIManager.updateView(this._nativeTag, this.viewConfig.uiViewClassName, updatePayload); - } - }; - - return ReactFabricHostComponent; - }(); - - function appendInitialChild(parentInstance, child) { - FabricUIManager.appendChild(parentInstance.node, child.node); - } - - function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) { - var tag = nextReactTag; - nextReactTag += 2; - var viewConfig = ReactNativeViewConfigRegistry.get(type); - { - for (var key in viewConfig.validAttributes) { - if (props.hasOwnProperty(key)) { - deepFreezeAndThrowOnMutationInDev(props[key]); - } - } - } - invariant(type !== "RCTView" || !hostContext.isInAParentText, "Nesting of within is not currently supported."); - var updatePayload = create(props, viewConfig.validAttributes); - var node = FabricUIManager.createNode(tag, viewConfig.uiViewClassName, rootContainerInstance, updatePayload, internalInstanceHandle); - var component = new ReactFabricHostComponent(tag, viewConfig, props); - return { - node: node, - canonical: component - }; - } - - function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) { - invariant(hostContext.isInAParentText, "Text strings must be rendered within a component."); - var tag = nextReactTag; - nextReactTag += 2; - var node = FabricUIManager.createNode(tag, "RCTRawText", rootContainerInstance, { - text: text - }, internalInstanceHandle); - return { - node: node - }; - } - - function finalizeInitialChildren(parentInstance, type, props, rootContainerInstance, hostContext) { - return false; - } - - function getRootHostContext(rootContainerInstance) { - return { - isInAParentText: false - }; - } - - function getChildHostContext(parentHostContext, type, rootContainerInstance) { - var prevIsInAParentText = parentHostContext.isInAParentText; - var isInAParentText = type === "AndroidTextInput" || type === "RCTMultilineTextInputView" || type === "RCTSinglelineTextInputView" || type === "RCTText" || type === "RCTVirtualText"; - - if (prevIsInAParentText !== isInAParentText) { - return { - isInAParentText: isInAParentText - }; - } else { - return parentHostContext; - } - } - - function getPublicInstance(instance) { - return instance.canonical; - } - - function prepareForCommit(containerInfo) {} - - function prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, hostContext) { - var viewConfig = instance.canonical.viewConfig; - var updatePayload = diff(oldProps, newProps, viewConfig.validAttributes); - instance.canonical.currentProps = newProps; - return updatePayload; - } - - function resetAfterCommit(containerInfo) {} - - function shouldDeprioritizeSubtree(type, props) { - return false; - } - - function shouldSetTextContent(type, props) { - return false; - } - - var isPrimaryRenderer = false; - var now = now$1; - var scheduleDeferredCallback = scheduleDeferredCallback$1; - var cancelDeferredCallback = cancelDeferredCallback$1; - var supportsPersistence = true; - - function cloneInstance(instance, updatePayload, type, oldProps, newProps, internalInstanceHandle, keepChildren, recyclableInstance) { - var node = instance.node; - var clone = void 0; - - if (keepChildren) { - if (updatePayload !== null) { - clone = FabricUIManager.cloneNodeWithNewProps(node, updatePayload, internalInstanceHandle); - } else { - clone = FabricUIManager.cloneNode(node, internalInstanceHandle); - } - } else { - if (updatePayload !== null) { - clone = FabricUIManager.cloneNodeWithNewChildrenAndProps(node, updatePayload, internalInstanceHandle); - } else { - clone = FabricUIManager.cloneNodeWithNewChildren(node, internalInstanceHandle); - } - } - - return { - node: clone, - canonical: instance.canonical - }; - } - - function createContainerChildSet(container) { - return FabricUIManager.createChildSet(container); - } - - function appendChildToContainerChildSet(childSet, child) { - FabricUIManager.appendChildToSet(childSet, child.node); - } - - function finalizeContainerChildren(container, newChildren) { - FabricUIManager.completeRoot(container, newChildren); - } - - var describeComponentFrame = function describeComponentFrame(name, source, ownerName) { - return "\n in " + (name || "Unknown") + (source ? " (at " + source.fileName.replace(/^.*[\\\/]/, "") + ":" + source.lineNumber + ")" : ownerName ? " (created by " + ownerName + ")" : ""); - }; - - function describeFiber(fiber) { - switch (fiber.tag) { - case IndeterminateComponent: - case FunctionalComponent: - case ClassComponent: - case HostComponent: - var owner = fiber._debugOwner; - var source = fiber._debugSource; - var name = getComponentName(fiber); - var ownerName = null; - - if (owner) { - ownerName = getComponentName(owner); - } - - return describeComponentFrame(name, source, ownerName); - - default: - return ""; - } - } - - function getStackAddendumByWorkInProgressFiber(workInProgress) { - var info = ""; - var node = workInProgress; - - do { - info += describeFiber(node); - node = node.return; - } while (node); - - return info; - } - - function getCurrentFiberOwnerName() { - { - var fiber = ReactDebugCurrentFiber.current; - - if (fiber === null) { - return null; - } - - var owner = fiber._debugOwner; - - if (owner !== null && typeof owner !== "undefined") { - return getComponentName(owner); - } - } - return null; - } - - function getCurrentFiberStackAddendum() { - { - var fiber = ReactDebugCurrentFiber.current; - - if (fiber === null) { - return null; - } - - return getStackAddendumByWorkInProgressFiber(fiber); - } - return null; - } - - function resetCurrentFiber() { - ReactDebugCurrentFrame.getCurrentStack = null; - ReactDebugCurrentFiber.current = null; - ReactDebugCurrentFiber.phase = null; - } - - function setCurrentFiber(fiber) { - ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackAddendum; - ReactDebugCurrentFiber.current = fiber; - ReactDebugCurrentFiber.phase = null; - } - - function setCurrentPhase(phase) { - ReactDebugCurrentFiber.phase = phase; - } - - var ReactDebugCurrentFiber = { - current: null, - phase: null, - resetCurrentFiber: resetCurrentFiber, - setCurrentFiber: setCurrentFiber, - setCurrentPhase: setCurrentPhase, - getCurrentFiberOwnerName: getCurrentFiberOwnerName, - getCurrentFiberStackAddendum: getCurrentFiberStackAddendum - }; - var debugRenderPhaseSideEffects = false; - var debugRenderPhaseSideEffectsForStrictMode = false; - var enableUserTimingAPI = true; - var enableGetDerivedStateFromCatch = false; - var enableSuspense = false; - var warnAboutDeprecatedLifecycles = false; - var warnAboutLegacyContextAPI = false; - var replayFailedUnitOfWorkWithInvokeGuardedCallback = true; - var enableProfilerTimer = true; - var reactEmoji = "\u269B"; - var warningEmoji = "\u26D4"; - var supportsUserTiming = typeof performance !== "undefined" && typeof performance.mark === "function" && typeof performance.clearMarks === "function" && typeof performance.measure === "function" && typeof performance.clearMeasures === "function"; - var currentFiber = null; - var currentPhase = null; - var currentPhaseFiber = null; - var isCommitting = false; - var hasScheduledUpdateInCurrentCommit = false; - var hasScheduledUpdateInCurrentPhase = false; - var commitCountInCurrentWorkLoop = 0; - var effectCountInCurrentCommit = 0; - var isWaitingForCallback = false; - var labelsInCurrentCommit = new Set(); - - var formatMarkName = function formatMarkName(markName) { - return reactEmoji + " " + markName; - }; - - var formatLabel = function formatLabel(label, warning$$1) { - var prefix = warning$$1 ? warningEmoji + " " : reactEmoji + " "; - var suffix = warning$$1 ? " Warning: " + warning$$1 : ""; - return "" + prefix + label + suffix; - }; - - var beginMark = function beginMark(markName) { - performance.mark(formatMarkName(markName)); - }; - - var clearMark = function clearMark(markName) { - performance.clearMarks(formatMarkName(markName)); - }; - - var endMark = function endMark(label, markName, warning$$1) { - var formattedMarkName = formatMarkName(markName); - var formattedLabel = formatLabel(label, warning$$1); - - try { - performance.measure(formattedLabel, formattedMarkName); - } catch (err) {} - - performance.clearMarks(formattedMarkName); - performance.clearMeasures(formattedLabel); - }; - - var getFiberMarkName = function getFiberMarkName(label, debugID) { - return label + " (#" + debugID + ")"; - }; - - var getFiberLabel = function getFiberLabel(componentName, isMounted, phase) { - if (phase === null) { - return componentName + " [" + (isMounted ? "update" : "mount") + "]"; - } else { - return componentName + "." + phase; - } - }; - - var beginFiberMark = function beginFiberMark(fiber, phase) { - var componentName = getComponentName(fiber) || "Unknown"; - var debugID = fiber._debugID; - var isMounted = fiber.alternate !== null; - var label = getFiberLabel(componentName, isMounted, phase); - - if (isCommitting && labelsInCurrentCommit.has(label)) { - return false; - } - - labelsInCurrentCommit.add(label); - var markName = getFiberMarkName(label, debugID); - beginMark(markName); - return true; - }; - - var clearFiberMark = function clearFiberMark(fiber, phase) { - var componentName = getComponentName(fiber) || "Unknown"; - var debugID = fiber._debugID; - var isMounted = fiber.alternate !== null; - var label = getFiberLabel(componentName, isMounted, phase); - var markName = getFiberMarkName(label, debugID); - clearMark(markName); - }; - - var endFiberMark = function endFiberMark(fiber, phase, warning$$1) { - var componentName = getComponentName(fiber) || "Unknown"; - var debugID = fiber._debugID; - var isMounted = fiber.alternate !== null; - var label = getFiberLabel(componentName, isMounted, phase); - var markName = getFiberMarkName(label, debugID); - endMark(label, markName, warning$$1); - }; - - var shouldIgnoreFiber = function shouldIgnoreFiber(fiber) { - switch (fiber.tag) { - case HostRoot: - case HostComponent: - case HostText: - case HostPortal: - case Fragment: - case ContextProvider: - case ContextConsumer: - case Mode: - return true; - - default: - return false; - } - }; - - var clearPendingPhaseMeasurement = function clearPendingPhaseMeasurement() { - if (currentPhase !== null && currentPhaseFiber !== null) { - clearFiberMark(currentPhaseFiber, currentPhase); - } - - currentPhaseFiber = null; - currentPhase = null; - hasScheduledUpdateInCurrentPhase = false; - }; - - var pauseTimers = function pauseTimers() { - var fiber = currentFiber; - - while (fiber) { - if (fiber._debugIsCurrentlyTiming) { - endFiberMark(fiber, null, null); - } - - fiber = fiber.return; - } - }; - - var resumeTimersRecursively = function resumeTimersRecursively(fiber) { - if (fiber.return !== null) { - resumeTimersRecursively(fiber.return); - } - - if (fiber._debugIsCurrentlyTiming) { - beginFiberMark(fiber, null); - } - }; - - var resumeTimers = function resumeTimers() { - if (currentFiber !== null) { - resumeTimersRecursively(currentFiber); - } - }; - - function recordEffect() { - if (enableUserTimingAPI) { - effectCountInCurrentCommit++; - } - } - - function recordScheduleUpdate() { - if (enableUserTimingAPI) { - if (isCommitting) { - hasScheduledUpdateInCurrentCommit = true; - } - - if (currentPhase !== null && currentPhase !== "componentWillMount" && currentPhase !== "componentWillReceiveProps") { - hasScheduledUpdateInCurrentPhase = true; - } - } - } - - function startRequestCallbackTimer() { - if (enableUserTimingAPI) { - if (supportsUserTiming && !isWaitingForCallback) { - isWaitingForCallback = true; - beginMark("(Waiting for async callback...)"); - } - } - } - - function stopRequestCallbackTimer(didExpire, expirationTime) { - if (enableUserTimingAPI) { - if (supportsUserTiming) { - isWaitingForCallback = false; - var warning$$1 = didExpire ? "React was blocked by main thread" : null; - endMark("(Waiting for async callback... will force flush in " + expirationTime + " ms)", "(Waiting for async callback...)", warning$$1); - } - } - } - - function startWorkTimer(fiber) { - if (enableUserTimingAPI) { - if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { - return; - } - - currentFiber = fiber; - - if (!beginFiberMark(fiber, null)) { - return; - } - - fiber._debugIsCurrentlyTiming = true; - } - } - - function cancelWorkTimer(fiber) { - if (enableUserTimingAPI) { - if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { - return; - } - - fiber._debugIsCurrentlyTiming = false; - clearFiberMark(fiber, null); - } - } - - function stopWorkTimer(fiber) { - if (enableUserTimingAPI) { - if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { - return; - } - - currentFiber = fiber.return; - - if (!fiber._debugIsCurrentlyTiming) { - return; - } - - fiber._debugIsCurrentlyTiming = false; - endFiberMark(fiber, null, null); - } - } - - function stopFailedWorkTimer(fiber) { - if (enableUserTimingAPI) { - if (!supportsUserTiming || shouldIgnoreFiber(fiber)) { - return; - } - - currentFiber = fiber.return; - - if (!fiber._debugIsCurrentlyTiming) { - return; - } - - fiber._debugIsCurrentlyTiming = false; - var warning$$1 = "An error was thrown inside this error boundary"; - endFiberMark(fiber, null, warning$$1); - } - } - - function startPhaseTimer(fiber, phase) { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - clearPendingPhaseMeasurement(); - - if (!beginFiberMark(fiber, phase)) { - return; - } - - currentPhaseFiber = fiber; - currentPhase = phase; - } - } - - function stopPhaseTimer() { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - if (currentPhase !== null && currentPhaseFiber !== null) { - var warning$$1 = hasScheduledUpdateInCurrentPhase ? "Scheduled a cascading update" : null; - endFiberMark(currentPhaseFiber, currentPhase, warning$$1); - } - - currentPhase = null; - currentPhaseFiber = null; - } - } - - function startWorkLoopTimer(nextUnitOfWork) { - if (enableUserTimingAPI) { - currentFiber = nextUnitOfWork; - - if (!supportsUserTiming) { - return; - } - - commitCountInCurrentWorkLoop = 0; - beginMark("(React Tree Reconciliation)"); - resumeTimers(); - } - } - - function stopWorkLoopTimer(interruptedBy, didCompleteRoot) { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - var warning$$1 = null; - - if (interruptedBy !== null) { - if (interruptedBy.tag === HostRoot) { - warning$$1 = "A top-level update interrupted the previous render"; - } else { - var componentName = getComponentName(interruptedBy) || "Unknown"; - warning$$1 = "An update to " + componentName + " interrupted the previous render"; - } - } else if (commitCountInCurrentWorkLoop > 1) { - warning$$1 = "There were cascading updates"; - } - - commitCountInCurrentWorkLoop = 0; - var label = didCompleteRoot ? "(React Tree Reconciliation: Completed Root)" : "(React Tree Reconciliation: Yielded)"; - pauseTimers(); - endMark(label, "(React Tree Reconciliation)", warning$$1); - } - } - - function startCommitTimer() { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - isCommitting = true; - hasScheduledUpdateInCurrentCommit = false; - labelsInCurrentCommit.clear(); - beginMark("(Committing Changes)"); - } - } - - function stopCommitTimer() { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - var warning$$1 = null; - - if (hasScheduledUpdateInCurrentCommit) { - warning$$1 = "Lifecycle hook scheduled a cascading update"; - } else if (commitCountInCurrentWorkLoop > 0) { - warning$$1 = "Caused by a cascading update in earlier commit"; - } - - hasScheduledUpdateInCurrentCommit = false; - commitCountInCurrentWorkLoop++; - isCommitting = false; - labelsInCurrentCommit.clear(); - endMark("(Committing Changes)", "(Committing Changes)", warning$$1); - } - } - - function startCommitSnapshotEffectsTimer() { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - effectCountInCurrentCommit = 0; - beginMark("(Committing Snapshot Effects)"); - } - } - - function stopCommitSnapshotEffectsTimer() { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - var count = effectCountInCurrentCommit; - effectCountInCurrentCommit = 0; - endMark("(Committing Snapshot Effects: " + count + " Total)", "(Committing Snapshot Effects)", null); - } - } - - function startCommitHostEffectsTimer() { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - effectCountInCurrentCommit = 0; - beginMark("(Committing Host Effects)"); - } - } - - function stopCommitHostEffectsTimer() { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - var count = effectCountInCurrentCommit; - effectCountInCurrentCommit = 0; - endMark("(Committing Host Effects: " + count + " Total)", "(Committing Host Effects)", null); - } - } - - function startCommitLifeCyclesTimer() { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - effectCountInCurrentCommit = 0; - beginMark("(Calling Lifecycle Methods)"); - } - } - - function stopCommitLifeCyclesTimer() { - if (enableUserTimingAPI) { - if (!supportsUserTiming) { - return; - } - - var count = effectCountInCurrentCommit; - effectCountInCurrentCommit = 0; - endMark("(Calling Lifecycle Methods: " + count + " Total)", "(Calling Lifecycle Methods)", null); - } - } - - var valueStack = []; - var fiberStack = void 0; - { - fiberStack = []; - } - var index = -1; - - function createCursor(defaultValue) { - return { - current: defaultValue - }; - } - - function pop(cursor, fiber) { - if (index < 0) { - { - warning(false, "Unexpected pop."); - } - return; - } - - { - if (fiber !== fiberStack[index]) { - warning(false, "Unexpected Fiber popped."); - } - } - cursor.current = valueStack[index]; - valueStack[index] = null; - { - fiberStack[index] = null; - } - index--; - } - - function push(cursor, value, fiber) { - index++; - valueStack[index] = cursor.current; - { - fiberStack[index] = fiber; - } - cursor.current = value; - } - - function checkThatStackIsEmpty() { - { - if (index !== -1) { - warning(false, "Expected an empty stack. Something was not reset properly."); - } - } - } - - function resetStackAfterFatalErrorInDev() { - { - index = -1; - valueStack.length = 0; - fiberStack.length = 0; - } - } - - var warnedAboutMissingGetChildContext = void 0; - { - warnedAboutMissingGetChildContext = {}; - } - var contextStackCursor = createCursor(emptyObject); - var didPerformWorkStackCursor = createCursor(false); - var previousContext = emptyObject; - - function getUnmaskedContext(workInProgress) { - var hasOwnContext = isContextProvider(workInProgress); - - if (hasOwnContext) { - return previousContext; - } - - return contextStackCursor.current; - } - - function cacheContext(workInProgress, unmaskedContext, maskedContext) { - var instance = workInProgress.stateNode; - instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext; - instance.__reactInternalMemoizedMaskedChildContext = maskedContext; - } - - function getMaskedContext(workInProgress, unmaskedContext) { - var type = workInProgress.type; - var contextTypes = type.contextTypes; - - if (!contextTypes) { - return emptyObject; - } - - var instance = workInProgress.stateNode; - - if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) { - return instance.__reactInternalMemoizedMaskedChildContext; - } - - var context = {}; - - for (var key in contextTypes) { - context[key] = unmaskedContext[key]; - } - - { - var name = getComponentName(workInProgress) || "Unknown"; - checkPropTypes(contextTypes, context, "context", name, ReactDebugCurrentFiber.getCurrentFiberStackAddendum); - } - - if (instance) { - cacheContext(workInProgress, unmaskedContext, context); - } - - return context; - } - - function hasContextChanged() { - return didPerformWorkStackCursor.current; - } - - function isContextConsumer(fiber) { - return fiber.tag === ClassComponent && fiber.type.contextTypes != null; - } - - function isContextProvider(fiber) { - return fiber.tag === ClassComponent && fiber.type.childContextTypes != null; - } - - function popContextProvider(fiber) { - if (!isContextProvider(fiber)) { - return; - } - - pop(didPerformWorkStackCursor, fiber); - pop(contextStackCursor, fiber); - } - - function popTopLevelContextObject(fiber) { - pop(didPerformWorkStackCursor, fiber); - pop(contextStackCursor, fiber); - } - - function pushTopLevelContextObject(fiber, context, didChange) { - invariant(contextStackCursor.current === emptyObject, "Unexpected context found on stack. " + "This error is likely caused by a bug in React. Please file an issue."); - push(contextStackCursor, context, fiber); - push(didPerformWorkStackCursor, didChange, fiber); - } - - function processChildContext(fiber, parentContext) { - var instance = fiber.stateNode; - var childContextTypes = fiber.type.childContextTypes; - - if (typeof instance.getChildContext !== "function") { - { - var componentName = getComponentName(fiber) || "Unknown"; - - if (!warnedAboutMissingGetChildContext[componentName]) { - warnedAboutMissingGetChildContext[componentName] = true; - warning(false, "%s.childContextTypes is specified but there is no getChildContext() method " + "on the instance. You can either define getChildContext() on %s or remove " + "childContextTypes from it.", componentName, componentName); - } - } - return parentContext; - } - - var childContext = void 0; - { - ReactDebugCurrentFiber.setCurrentPhase("getChildContext"); - } - startPhaseTimer(fiber, "getChildContext"); - childContext = instance.getChildContext(); - stopPhaseTimer(); - { - ReactDebugCurrentFiber.setCurrentPhase(null); - } - - for (var contextKey in childContext) { - invariant(contextKey in childContextTypes, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(fiber) || "Unknown", contextKey); - } - - { - var name = getComponentName(fiber) || "Unknown"; - checkPropTypes(childContextTypes, childContext, "child context", name, ReactDebugCurrentFiber.getCurrentFiberStackAddendum); - } - return _extends({}, parentContext, childContext); - } - - function pushContextProvider(workInProgress) { - if (!isContextProvider(workInProgress)) { - return false; - } - - var instance = workInProgress.stateNode; - var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyObject; - previousContext = contextStackCursor.current; - push(contextStackCursor, memoizedMergedChildContext, workInProgress); - push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress); - return true; - } - - function invalidateContextProvider(workInProgress, didChange) { - var instance = workInProgress.stateNode; - invariant(instance, "Expected to have an instance by this point. " + "This error is likely caused by a bug in React. Please file an issue."); - - if (didChange) { - var mergedContext = processChildContext(workInProgress, previousContext); - instance.__reactInternalMemoizedMergedChildContext = mergedContext; - pop(didPerformWorkStackCursor, workInProgress); - pop(contextStackCursor, workInProgress); - push(contextStackCursor, mergedContext, workInProgress); - push(didPerformWorkStackCursor, didChange, workInProgress); - } else { - pop(didPerformWorkStackCursor, workInProgress); - push(didPerformWorkStackCursor, didChange, workInProgress); - } - } - - function findCurrentUnmaskedContext(fiber) { - invariant(isFiberMounted(fiber) && fiber.tag === ClassComponent, "Expected subtree parent to be a mounted class component. " + "This error is likely caused by a bug in React. Please file an issue."); - var node = fiber; - - while (node.tag !== HostRoot) { - if (isContextProvider(node)) { - return node.stateNode.__reactInternalMemoizedMergedChildContext; - } - - var parent = node.return; - invariant(parent, "Found unexpected detached subtree parent. " + "This error is likely caused by a bug in React. Please file an issue."); - node = parent; - } - - return node.stateNode.context; - } - - var MAX_SIGNED_31_BIT_INT = 1073741823; - var NoWork = 0; - var Sync = 1; - var Never = MAX_SIGNED_31_BIT_INT; - var UNIT_SIZE = 10; - var MAGIC_NUMBER_OFFSET = 2; - - function msToExpirationTime(ms) { - return (ms / UNIT_SIZE | 0) + MAGIC_NUMBER_OFFSET; - } - - function expirationTimeToMs(expirationTime) { - return (expirationTime - MAGIC_NUMBER_OFFSET) * UNIT_SIZE; - } - - function ceiling(num, precision) { - return ((num / precision | 0) + 1) * precision; - } - - function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) { - return MAGIC_NUMBER_OFFSET + ceiling(currentTime - MAGIC_NUMBER_OFFSET + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE); - } - - var NoContext = 0; - var AsyncMode = 1; - var StrictMode = 2; - var ProfileMode = 4; - var hasBadMapPolyfill = void 0; - { - hasBadMapPolyfill = false; - - try { - var nonExtensibleObject = Object.preventExtensions({}); - var testMap = new Map([[nonExtensibleObject, null]]); - var testSet = new Set([nonExtensibleObject]); - testMap.set(0, 0); - testSet.add(0); - } catch (e) { - hasBadMapPolyfill = true; - } - } - var debugCounter = void 0; - { - debugCounter = 1; - } - - function FiberNode(tag, pendingProps, key, mode) { - this.tag = tag; - this.key = key; - this.type = null; - this.stateNode = null; - this.return = null; - this.child = null; - this.sibling = null; - this.index = 0; - this.ref = null; - this.pendingProps = pendingProps; - this.memoizedProps = null; - this.updateQueue = null; - this.memoizedState = null; - this.mode = mode; - this.effectTag = NoEffect; - this.nextEffect = null; - this.firstEffect = null; - this.lastEffect = null; - this.expirationTime = NoWork; - this.alternate = null; - - if (enableProfilerTimer) { - this.actualDuration = 0; - this.actualStartTime = 0; - this.selfBaseTime = 0; - this.treeBaseTime = 0; - } - - { - this._debugID = debugCounter++; - this._debugSource = null; - this._debugOwner = null; - this._debugIsCurrentlyTiming = false; - - if (!hasBadMapPolyfill && typeof Object.preventExtensions === "function") { - Object.preventExtensions(this); - } - } - } - - var createFiber = function createFiber(tag, pendingProps, key, mode) { - return new FiberNode(tag, pendingProps, key, mode); - }; - - function shouldConstruct(Component) { - return !!(Component.prototype && Component.prototype.isReactComponent); - } - - function createWorkInProgress(current, pendingProps, expirationTime) { - var workInProgress = current.alternate; - - if (workInProgress === null) { - workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode); - workInProgress.type = current.type; - workInProgress.stateNode = current.stateNode; - { - workInProgress._debugID = current._debugID; - workInProgress._debugSource = current._debugSource; - workInProgress._debugOwner = current._debugOwner; - } - workInProgress.alternate = current; - current.alternate = workInProgress; - } else { - workInProgress.pendingProps = pendingProps; - workInProgress.effectTag = NoEffect; - workInProgress.nextEffect = null; - workInProgress.firstEffect = null; - workInProgress.lastEffect = null; - - if (enableProfilerTimer) { - workInProgress.actualDuration = 0; - workInProgress.actualStartTime = 0; - } - } - - workInProgress.expirationTime = expirationTime; - workInProgress.child = current.child; - workInProgress.memoizedProps = current.memoizedProps; - workInProgress.memoizedState = current.memoizedState; - workInProgress.updateQueue = current.updateQueue; - workInProgress.sibling = current.sibling; - workInProgress.index = current.index; - workInProgress.ref = current.ref; - - if (enableProfilerTimer) { - workInProgress.selfBaseTime = current.selfBaseTime; - workInProgress.treeBaseTime = current.treeBaseTime; - } - - return workInProgress; - } - - function createHostRootFiber(isAsync) { - var mode = isAsync ? AsyncMode | StrictMode : NoContext; - return createFiber(HostRoot, null, null, mode); - } - - function createFiberFromElement(element, mode, expirationTime) { - var owner = null; - { - owner = element._owner; - } - var fiber = void 0; - var type = element.type; - var key = element.key; - var pendingProps = element.props; - var fiberTag = void 0; - - if (typeof type === "function") { - fiberTag = shouldConstruct(type) ? ClassComponent : IndeterminateComponent; - } else if (typeof type === "string") { - fiberTag = HostComponent; - } else { - switch (type) { - case REACT_FRAGMENT_TYPE: - return createFiberFromFragment(pendingProps.children, mode, expirationTime, key); - - case REACT_ASYNC_MODE_TYPE: - fiberTag = Mode; - mode |= AsyncMode | StrictMode; - break; - - case REACT_STRICT_MODE_TYPE: - fiberTag = Mode; - mode |= StrictMode; - break; - - case REACT_PROFILER_TYPE: - return createFiberFromProfiler(pendingProps, mode, expirationTime, key); - - case REACT_TIMEOUT_TYPE: - fiberTag = TimeoutComponent; - mode |= StrictMode; - break; - - default: - fiberTag = getFiberTagFromObjectType(type, owner); - break; - } - } - - fiber = createFiber(fiberTag, pendingProps, key, mode); - fiber.type = type; - fiber.expirationTime = expirationTime; - { - fiber._debugSource = element._source; - fiber._debugOwner = element._owner; - } - return fiber; - } - - function getFiberTagFromObjectType(type, owner) { - var $$typeof = typeof type === "object" && type !== null ? type.$$typeof : null; - - switch ($$typeof) { - case REACT_PROVIDER_TYPE: - return ContextProvider; - - case REACT_CONTEXT_TYPE: - return ContextConsumer; - - case REACT_FORWARD_REF_TYPE: - return ForwardRef; - - default: - { - var info = ""; - { - if (type === undefined || typeof type === "object" && type !== null && Object.keys(type).length === 0) { - info += " You likely forgot to export your component from the file " + "it's defined in, or you might have mixed up default and " + "named imports."; - } - - var ownerName = owner ? getComponentName(owner) : null; - - if (ownerName) { - info += "\n\nCheck the render method of `" + ownerName + "`."; - } - } - invariant(false, "Element type is invalid: expected a string (for built-in " + "components) or a class/function (for composite components) " + "but got: %s.%s", type == null ? type : typeof type, info); - } - } - } - - function createFiberFromFragment(elements, mode, expirationTime, key) { - var fiber = createFiber(Fragment, elements, key, mode); - fiber.expirationTime = expirationTime; - return fiber; - } - - function createFiberFromProfiler(pendingProps, mode, expirationTime, key) { - { - if (typeof pendingProps.id !== "string" || typeof pendingProps.onRender !== "function") { - invariant(false, 'Profiler must specify an "id" string and "onRender" function as props'); - } - } - var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); - fiber.type = REACT_PROFILER_TYPE; - fiber.expirationTime = expirationTime; - return fiber; - } - - function createFiberFromText(content, mode, expirationTime) { - var fiber = createFiber(HostText, content, null, mode); - fiber.expirationTime = expirationTime; - return fiber; - } - - function createFiberFromHostInstanceForDeletion() { - var fiber = createFiber(HostComponent, null, null, NoContext); - fiber.type = "DELETED"; - return fiber; - } - - function createFiberFromPortal(portal, mode, expirationTime) { - var pendingProps = portal.children !== null ? portal.children : []; - var fiber = createFiber(HostPortal, pendingProps, portal.key, mode); - fiber.expirationTime = expirationTime; - fiber.stateNode = { - containerInfo: portal.containerInfo, - pendingChildren: null, - implementation: portal.implementation - }; - return fiber; - } - - function assignFiberPropertiesInDEV(target, source) { - if (target === null) { - target = createFiber(IndeterminateComponent, null, null, NoContext); - } - - target.tag = source.tag; - target.key = source.key; - target.type = source.type; - target.stateNode = source.stateNode; - target.return = source.return; - target.child = source.child; - target.sibling = source.sibling; - target.index = source.index; - target.ref = source.ref; - target.pendingProps = source.pendingProps; - target.memoizedProps = source.memoizedProps; - target.updateQueue = source.updateQueue; - target.memoizedState = source.memoizedState; - target.mode = source.mode; - target.effectTag = source.effectTag; - target.nextEffect = source.nextEffect; - target.firstEffect = source.firstEffect; - target.lastEffect = source.lastEffect; - target.expirationTime = source.expirationTime; - target.alternate = source.alternate; - - if (enableProfilerTimer) { - target.actualDuration = source.actualDuration; - target.actualStartTime = source.actualStartTime; - target.selfBaseTime = source.selfBaseTime; - target.treeBaseTime = source.treeBaseTime; - } - - target._debugID = source._debugID; - target._debugSource = source._debugSource; - target._debugOwner = source._debugOwner; - target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming; - return target; - } - - function createFiberRoot(containerInfo, isAsync, hydrate) { - var uninitializedFiber = createHostRootFiber(isAsync); - var root = { - current: uninitializedFiber, - containerInfo: containerInfo, - pendingChildren: null, - earliestPendingTime: NoWork, - latestPendingTime: NoWork, - earliestSuspendedTime: NoWork, - latestSuspendedTime: NoWork, - latestPingedTime: NoWork, - didError: false, - pendingCommitExpirationTime: NoWork, - finishedWork: null, - context: null, - pendingContext: null, - hydrate: hydrate, - nextExpirationTimeToWorkOn: NoWork, - expirationTime: NoWork, - firstBatch: null, - nextScheduledRoot: null - }; - uninitializedFiber.stateNode = root; - return root; - } - - var onCommitFiberRoot = null; - var onCommitFiberUnmount = null; - var hasLoggedError = false; - - function catchErrors(fn) { - return function (arg) { - try { - return fn(arg); - } catch (err) { - if (true && !hasLoggedError) { - hasLoggedError = true; - warning(false, "React DevTools encountered an error: %s", err); - } - } - }; - } - - function injectInternals(internals) { - if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined") { - return false; - } - - var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; - - if (hook.isDisabled) { - return true; - } - - if (!hook.supportsFiber) { - { - warning(false, "The installed version of React DevTools is too old and will not work " + "with the current version of React. Please update React DevTools. " + "https://fb.me/react-devtools"); - } - return true; - } - - try { - var rendererID = hook.inject(internals); - onCommitFiberRoot = catchErrors(function (root) { - return hook.onCommitFiberRoot(rendererID, root); - }); - onCommitFiberUnmount = catchErrors(function (fiber) { - return hook.onCommitFiberUnmount(rendererID, fiber); - }); - } catch (err) { - { - warning(false, "React DevTools encountered an error: %s.", err); - } - } - - return true; - } - - function onCommitRoot(root) { - if (typeof onCommitFiberRoot === "function") { - onCommitFiberRoot(root); - } - } - - function onCommitUnmount(fiber) { - if (typeof onCommitFiberUnmount === "function") { - onCommitFiberUnmount(fiber); - } - } - - var lowPriorityWarning = function lowPriorityWarning() {}; - - { - var printWarning = function printWarning(format) { - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - var argIndex = 0; - var message = "Warning: " + format.replace(/%s/g, function () { - return args[argIndex++]; - }); - - if (typeof console !== "undefined") { - console.warn(message); - } - - try { - throw new Error(message); - } catch (x) {} - }; - - lowPriorityWarning = function lowPriorityWarning(condition, format) { - if (format === undefined) { - throw new Error("`warning(condition, format, ...args)` requires a warning " + "message argument"); - } - - if (!condition) { - for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { - args[_key2 - 2] = arguments[_key2]; - } - - printWarning.apply(undefined, [format].concat(args)); - } - }; - } - var lowPriorityWarning$1 = lowPriorityWarning; - var ReactStrictModeWarnings = { - discardPendingWarnings: function discardPendingWarnings() {}, - flushPendingDeprecationWarnings: function flushPendingDeprecationWarnings() {}, - flushPendingUnsafeLifecycleWarnings: function flushPendingUnsafeLifecycleWarnings() {}, - recordDeprecationWarnings: function recordDeprecationWarnings(fiber, instance) {}, - recordUnsafeLifecycleWarnings: function recordUnsafeLifecycleWarnings(fiber, instance) {}, - recordLegacyContextWarning: function recordLegacyContextWarning(fiber, instance) {}, - flushLegacyContextWarning: function flushLegacyContextWarning() {} - }; - { - var LIFECYCLE_SUGGESTIONS = { - UNSAFE_componentWillMount: "componentDidMount", - UNSAFE_componentWillReceiveProps: "static getDerivedStateFromProps", - UNSAFE_componentWillUpdate: "componentDidUpdate" - }; - var pendingComponentWillMountWarnings = []; - var pendingComponentWillReceivePropsWarnings = []; - var pendingComponentWillUpdateWarnings = []; - var pendingUnsafeLifecycleWarnings = new Map(); - var pendingLegacyContextWarning = new Map(); - var didWarnAboutDeprecatedLifecycles = new Set(); - var didWarnAboutUnsafeLifecycles = new Set(); - var didWarnAboutLegacyContext = new Set(); - - var setToSortedString = function setToSortedString(set) { - var array = []; - set.forEach(function (value) { - array.push(value); - }); - return array.sort().join(", "); - }; - - ReactStrictModeWarnings.discardPendingWarnings = function () { - pendingComponentWillMountWarnings = []; - pendingComponentWillReceivePropsWarnings = []; - pendingComponentWillUpdateWarnings = []; - pendingUnsafeLifecycleWarnings = new Map(); - pendingLegacyContextWarning = new Map(); - }; - - ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () { - pendingUnsafeLifecycleWarnings.forEach(function (lifecycleWarningsMap, strictRoot) { - var lifecyclesWarningMesages = []; - Object.keys(lifecycleWarningsMap).forEach(function (lifecycle) { - var lifecycleWarnings = lifecycleWarningsMap[lifecycle]; - - if (lifecycleWarnings.length > 0) { - var componentNames = new Set(); - lifecycleWarnings.forEach(function (fiber) { - componentNames.add(getComponentName(fiber) || "Component"); - didWarnAboutUnsafeLifecycles.add(fiber.type); - }); - var formatted = lifecycle.replace("UNSAFE_", ""); - var suggestion = LIFECYCLE_SUGGESTIONS[lifecycle]; - var sortedComponentNames = setToSortedString(componentNames); - lifecyclesWarningMesages.push(formatted + ": Please update the following components to use " + (suggestion + " instead: " + sortedComponentNames)); - } - }); - - if (lifecyclesWarningMesages.length > 0) { - var strictRootComponentStack = getStackAddendumByWorkInProgressFiber(strictRoot); - warning(false, "Unsafe lifecycle methods were found within a strict-mode tree:%s" + "\n\n%s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-strict-mode-warnings", strictRootComponentStack, lifecyclesWarningMesages.join("\n\n")); - } - }); - pendingUnsafeLifecycleWarnings = new Map(); - }; - - var findStrictRoot = function findStrictRoot(fiber) { - var maybeStrictRoot = null; - var node = fiber; - - while (node !== null) { - if (node.mode & StrictMode) { - maybeStrictRoot = node; - } - - node = node.return; - } - - return maybeStrictRoot; - }; - - ReactStrictModeWarnings.flushPendingDeprecationWarnings = function () { - if (pendingComponentWillMountWarnings.length > 0) { - var uniqueNames = new Set(); - pendingComponentWillMountWarnings.forEach(function (fiber) { - uniqueNames.add(getComponentName(fiber) || "Component"); - didWarnAboutDeprecatedLifecycles.add(fiber.type); - }); - var sortedNames = setToSortedString(uniqueNames); - lowPriorityWarning$1(false, "componentWillMount is deprecated and will be removed in the next major version. " + "Use componentDidMount instead. As a temporary workaround, " + "you can rename to UNSAFE_componentWillMount." + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-async-component-lifecycle-hooks", sortedNames); - pendingComponentWillMountWarnings = []; - } - - if (pendingComponentWillReceivePropsWarnings.length > 0) { - var _uniqueNames = new Set(); - - pendingComponentWillReceivePropsWarnings.forEach(function (fiber) { - _uniqueNames.add(getComponentName(fiber) || "Component"); - - didWarnAboutDeprecatedLifecycles.add(fiber.type); - }); - - var _sortedNames = setToSortedString(_uniqueNames); - - lowPriorityWarning$1(false, "componentWillReceiveProps is deprecated and will be removed in the next major version. " + "Use static getDerivedStateFromProps instead." + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-async-component-lifecycle-hooks", _sortedNames); - pendingComponentWillReceivePropsWarnings = []; - } - - if (pendingComponentWillUpdateWarnings.length > 0) { - var _uniqueNames2 = new Set(); - - pendingComponentWillUpdateWarnings.forEach(function (fiber) { - _uniqueNames2.add(getComponentName(fiber) || "Component"); - - didWarnAboutDeprecatedLifecycles.add(fiber.type); - }); - - var _sortedNames2 = setToSortedString(_uniqueNames2); - - lowPriorityWarning$1(false, "componentWillUpdate is deprecated and will be removed in the next major version. " + "Use componentDidUpdate instead. As a temporary workaround, " + "you can rename to UNSAFE_componentWillUpdate." + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-async-component-lifecycle-hooks", _sortedNames2); - pendingComponentWillUpdateWarnings = []; - } - }; - - ReactStrictModeWarnings.recordDeprecationWarnings = function (fiber, instance) { - if (didWarnAboutDeprecatedLifecycles.has(fiber.type)) { - return; - } - - if (typeof instance.componentWillMount === "function" && instance.componentWillMount.__suppressDeprecationWarning !== true) { - pendingComponentWillMountWarnings.push(fiber); - } - - if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { - pendingComponentWillReceivePropsWarnings.push(fiber); - } - - if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { - pendingComponentWillUpdateWarnings.push(fiber); - } - }; - - ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) { - var strictRoot = findStrictRoot(fiber); - - if (strictRoot === null) { - warning(false, "Expected to find a StrictMode component in a strict mode tree. " + "This error is likely caused by a bug in React. Please file an issue."); - return; - } - - if (didWarnAboutUnsafeLifecycles.has(fiber.type)) { - return; - } - - var warningsForRoot = void 0; - - if (!pendingUnsafeLifecycleWarnings.has(strictRoot)) { - warningsForRoot = { - UNSAFE_componentWillMount: [], - UNSAFE_componentWillReceiveProps: [], - UNSAFE_componentWillUpdate: [] - }; - pendingUnsafeLifecycleWarnings.set(strictRoot, warningsForRoot); - } else { - warningsForRoot = pendingUnsafeLifecycleWarnings.get(strictRoot); - } - - var unsafeLifecycles = []; - - if (typeof instance.componentWillMount === "function" && instance.componentWillMount.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillMount === "function") { - unsafeLifecycles.push("UNSAFE_componentWillMount"); - } - - if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillReceiveProps === "function") { - unsafeLifecycles.push("UNSAFE_componentWillReceiveProps"); - } - - if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillUpdate === "function") { - unsafeLifecycles.push("UNSAFE_componentWillUpdate"); - } - - if (unsafeLifecycles.length > 0) { - unsafeLifecycles.forEach(function (lifecycle) { - warningsForRoot[lifecycle].push(fiber); - }); - } - }; - - ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) { - var strictRoot = findStrictRoot(fiber); - - if (strictRoot === null) { - warning(false, "Expected to find a StrictMode component in a strict mode tree. " + "This error is likely caused by a bug in React. Please file an issue."); - return; - } - - if (didWarnAboutLegacyContext.has(fiber.type)) { - return; - } - - var warningsForRoot = pendingLegacyContextWarning.get(strictRoot); - - if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === "function") { - if (warningsForRoot === undefined) { - warningsForRoot = []; - pendingLegacyContextWarning.set(strictRoot, warningsForRoot); - } - - warningsForRoot.push(fiber); - } - }; - - ReactStrictModeWarnings.flushLegacyContextWarning = function () { - pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) { - var uniqueNames = new Set(); - fiberArray.forEach(function (fiber) { - uniqueNames.add(getComponentName(fiber) || "Component"); - didWarnAboutLegacyContext.add(fiber.type); - }); - var sortedNames = setToSortedString(uniqueNames); - var strictRootComponentStack = getStackAddendumByWorkInProgressFiber(strictRoot); - warning(false, "Legacy context API has been detected within a strict-mode tree: %s" + "\n\nPlease update the following components: %s" + "\n\nLearn more about this warning here:" + "\nhttps://fb.me/react-strict-mode-warnings", strictRootComponentStack, sortedNames); - }); - }; - } - var ReactFiberInstrumentation = { - debugTool: null - }; - var ReactFiberInstrumentation_1 = ReactFiberInstrumentation; - - function markPendingPriorityLevel(root, expirationTime) { - root.didError = false; - var earliestPendingTime = root.earliestPendingTime; - - if (earliestPendingTime === NoWork) { - root.earliestPendingTime = root.latestPendingTime = expirationTime; - } else { - if (earliestPendingTime > expirationTime) { - root.earliestPendingTime = expirationTime; - } else { - var latestPendingTime = root.latestPendingTime; - - if (latestPendingTime < expirationTime) { - root.latestPendingTime = expirationTime; - } - } - } - - findNextPendingPriorityLevel(root); - } - - function markCommittedPriorityLevels(root, currentTime, earliestRemainingTime) { - root.didError = false; - - if (earliestRemainingTime === NoWork) { - root.earliestPendingTime = NoWork; - root.latestPendingTime = NoWork; - root.earliestSuspendedTime = NoWork; - root.latestSuspendedTime = NoWork; - root.latestPingedTime = NoWork; - findNextPendingPriorityLevel(root); - return; - } - - var latestPendingTime = root.latestPendingTime; - - if (latestPendingTime !== NoWork) { - if (latestPendingTime < earliestRemainingTime) { - root.earliestPendingTime = root.latestPendingTime = NoWork; - } else { - var earliestPendingTime = root.earliestPendingTime; - - if (earliestPendingTime < earliestRemainingTime) { - root.earliestPendingTime = root.latestPendingTime; - } - } - } - - var earliestSuspendedTime = root.earliestSuspendedTime; - - if (earliestSuspendedTime === NoWork) { - markPendingPriorityLevel(root, earliestRemainingTime); - findNextPendingPriorityLevel(root); - return; - } - - var latestSuspendedTime = root.latestSuspendedTime; - - if (earliestRemainingTime > latestSuspendedTime) { - root.earliestSuspendedTime = NoWork; - root.latestSuspendedTime = NoWork; - root.latestPingedTime = NoWork; - markPendingPriorityLevel(root, earliestRemainingTime); - findNextPendingPriorityLevel(root); - return; - } - - if (earliestRemainingTime < earliestSuspendedTime) { - markPendingPriorityLevel(root, earliestRemainingTime); - findNextPendingPriorityLevel(root); - return; - } - - findNextPendingPriorityLevel(root); - } - - function hasLowerPriorityWork(root, renderExpirationTime) { - return renderExpirationTime !== root.latestPendingTime && renderExpirationTime !== root.latestSuspendedTime; - } - - function markSuspendedPriorityLevel(root, suspendedTime, didError) { - if (didError && !hasLowerPriorityWork(root, suspendedTime)) { - root.didError = true; - findNextPendingPriorityLevel(root); - return; - } - - var earliestPendingTime = root.earliestPendingTime; - var latestPendingTime = root.latestPendingTime; - - if (earliestPendingTime === suspendedTime) { - if (latestPendingTime === suspendedTime) { - root.earliestPendingTime = root.latestPendingTime = NoWork; - } else { - root.earliestPendingTime = latestPendingTime; - } - } else if (latestPendingTime === suspendedTime) { - root.latestPendingTime = earliestPendingTime; - } - - var latestSuspendedTime = root.latestSuspendedTime; - - if (latestSuspendedTime === suspendedTime) { - root.latestPingedTime = NoWork; - } - - var earliestSuspendedTime = root.earliestSuspendedTime; - - if (earliestSuspendedTime === NoWork) { - root.earliestSuspendedTime = root.latestSuspendedTime = suspendedTime; - } else { - if (earliestSuspendedTime > suspendedTime) { - root.earliestSuspendedTime = suspendedTime; - } else if (latestSuspendedTime < suspendedTime) { - root.latestSuspendedTime = suspendedTime; - } - } - - findNextPendingPriorityLevel(root); - } - - function markPingedPriorityLevel(root, pingedTime) { - var latestSuspendedTime = root.latestSuspendedTime; - - if (latestSuspendedTime !== NoWork && latestSuspendedTime <= pingedTime) { - var latestPingedTime = root.latestPingedTime; - - if (latestPingedTime === NoWork || latestPingedTime < pingedTime) { - root.latestPingedTime = pingedTime; - } - } - - findNextPendingPriorityLevel(root); - } - - function findNextPendingPriorityLevel(root) { - var earliestSuspendedTime = root.earliestSuspendedTime; - var earliestPendingTime = root.earliestPendingTime; - var nextExpirationTimeToWorkOn = void 0; - var expirationTime = void 0; - - if (earliestSuspendedTime === NoWork) { - nextExpirationTimeToWorkOn = expirationTime = earliestPendingTime; - } else if (earliestPendingTime !== NoWork) { - nextExpirationTimeToWorkOn = earliestPendingTime; - expirationTime = earliestSuspendedTime < earliestPendingTime ? earliestSuspendedTime : earliestPendingTime; - } else { - nextExpirationTimeToWorkOn = expirationTime = root.latestPingedTime; - } - - if (root.didError) { - expirationTime = Sync; - } - - root.nextExpirationTimeToWorkOn = nextExpirationTimeToWorkOn; - root.expirationTime = expirationTime; - } - - var UpdateState = 0; - var ReplaceState = 1; - var ForceUpdate = 2; - var CaptureUpdate = 3; - var hasForceUpdate = false; - var didWarnUpdateInsideUpdate = void 0; - var currentlyProcessingQueue = void 0; - var resetCurrentlyProcessingQueue = void 0; - { - didWarnUpdateInsideUpdate = false; - currentlyProcessingQueue = null; - - resetCurrentlyProcessingQueue = function resetCurrentlyProcessingQueue() { - currentlyProcessingQueue = null; - }; - } - - function createUpdateQueue(baseState) { - var queue = { - expirationTime: NoWork, - baseState: baseState, - firstUpdate: null, - lastUpdate: null, - firstCapturedUpdate: null, - lastCapturedUpdate: null, - firstEffect: null, - lastEffect: null, - firstCapturedEffect: null, - lastCapturedEffect: null - }; - return queue; - } - - function cloneUpdateQueue(currentQueue) { - var queue = { - expirationTime: currentQueue.expirationTime, - baseState: currentQueue.baseState, - firstUpdate: currentQueue.firstUpdate, - lastUpdate: currentQueue.lastUpdate, - firstCapturedUpdate: null, - lastCapturedUpdate: null, - firstEffect: null, - lastEffect: null, - firstCapturedEffect: null, - lastCapturedEffect: null - }; - return queue; - } - - function createUpdate(expirationTime) { - return { - expirationTime: expirationTime, - tag: UpdateState, - payload: null, - callback: null, - next: null, - nextEffect: null - }; - } - - function appendUpdateToQueue(queue, update, expirationTime) { - if (queue.lastUpdate === null) { - queue.firstUpdate = queue.lastUpdate = update; - } else { - queue.lastUpdate.next = update; - queue.lastUpdate = update; - } - - if (queue.expirationTime === NoWork || queue.expirationTime > expirationTime) { - queue.expirationTime = expirationTime; - } - } - - function enqueueUpdate(fiber, update, expirationTime) { - var alternate = fiber.alternate; - var queue1 = void 0; - var queue2 = void 0; - - if (alternate === null) { - queue1 = fiber.updateQueue; - queue2 = null; - - if (queue1 === null) { - queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState); - } - } else { - queue1 = fiber.updateQueue; - queue2 = alternate.updateQueue; - - if (queue1 === null) { - if (queue2 === null) { - queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState); - queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState); - } else { - queue1 = fiber.updateQueue = cloneUpdateQueue(queue2); - } - } else { - if (queue2 === null) { - queue2 = alternate.updateQueue = cloneUpdateQueue(queue1); - } else {} - } - } - - if (queue2 === null || queue1 === queue2) { - appendUpdateToQueue(queue1, update, expirationTime); - } else { - if (queue1.lastUpdate === null || queue2.lastUpdate === null) { - appendUpdateToQueue(queue1, update, expirationTime); - appendUpdateToQueue(queue2, update, expirationTime); - } else { - appendUpdateToQueue(queue1, update, expirationTime); - queue2.lastUpdate = update; - } - } - - { - if (fiber.tag === ClassComponent && (currentlyProcessingQueue === queue1 || queue2 !== null && currentlyProcessingQueue === queue2) && !didWarnUpdateInsideUpdate) { - warning(false, "An update (setState, replaceState, or forceUpdate) was scheduled " + "from inside an update function. Update functions should be pure, " + "with zero side-effects. Consider using componentDidUpdate or a " + "callback."); - didWarnUpdateInsideUpdate = true; - } - } - } - - function enqueueCapturedUpdate(workInProgress, update, renderExpirationTime) { - var workInProgressQueue = workInProgress.updateQueue; - - if (workInProgressQueue === null) { - workInProgressQueue = workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState); - } else { - workInProgressQueue = ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue); - } - - if (workInProgressQueue.lastCapturedUpdate === null) { - workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update; - } else { - workInProgressQueue.lastCapturedUpdate.next = update; - workInProgressQueue.lastCapturedUpdate = update; - } - - if (workInProgressQueue.expirationTime === NoWork || workInProgressQueue.expirationTime > renderExpirationTime) { - workInProgressQueue.expirationTime = renderExpirationTime; - } - } - - function ensureWorkInProgressQueueIsAClone(workInProgress, queue) { - var current = workInProgress.alternate; - - if (current !== null) { - if (queue === current.updateQueue) { - queue = workInProgress.updateQueue = cloneUpdateQueue(queue); - } - } - - return queue; - } - - function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) { - switch (update.tag) { - case ReplaceState: - { - var _payload = update.payload; - - if (typeof _payload === "function") { - { - if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { - _payload.call(instance, prevState, nextProps); - } - } - return _payload.call(instance, prevState, nextProps); - } - - return _payload; - } - - case CaptureUpdate: - { - workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture; - } - - case UpdateState: - { - var _payload2 = update.payload; - var partialState = void 0; - - if (typeof _payload2 === "function") { - { - if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { - _payload2.call(instance, prevState, nextProps); - } - } - partialState = _payload2.call(instance, prevState, nextProps); - } else { - partialState = _payload2; - } - - if (partialState === null || partialState === undefined) { - return prevState; - } - - return _extends({}, prevState, partialState); - } - - case ForceUpdate: - { - hasForceUpdate = true; - return prevState; - } - } - - return prevState; - } - - function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) { - hasForceUpdate = false; - - if (queue.expirationTime === NoWork || queue.expirationTime > renderExpirationTime) { - return; - } - - queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue); - { - currentlyProcessingQueue = queue; - } - var newBaseState = queue.baseState; - var newFirstUpdate = null; - var newExpirationTime = NoWork; - var update = queue.firstUpdate; - var resultState = newBaseState; - - while (update !== null) { - var updateExpirationTime = update.expirationTime; - - if (updateExpirationTime > renderExpirationTime) { - if (newFirstUpdate === null) { - newFirstUpdate = update; - newBaseState = resultState; - } - - if (newExpirationTime === NoWork || newExpirationTime > updateExpirationTime) { - newExpirationTime = updateExpirationTime; - } - } else { - resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance); - var _callback = update.callback; - - if (_callback !== null) { - workInProgress.effectTag |= Callback; - update.nextEffect = null; - - if (queue.lastEffect === null) { - queue.firstEffect = queue.lastEffect = update; - } else { - queue.lastEffect.nextEffect = update; - queue.lastEffect = update; - } - } - } - - update = update.next; - } - - var newFirstCapturedUpdate = null; - update = queue.firstCapturedUpdate; - - while (update !== null) { - var _updateExpirationTime = update.expirationTime; - - if (_updateExpirationTime > renderExpirationTime) { - if (newFirstCapturedUpdate === null) { - newFirstCapturedUpdate = update; - - if (newFirstUpdate === null) { - newBaseState = resultState; - } - } - - if (newExpirationTime === NoWork || newExpirationTime > _updateExpirationTime) { - newExpirationTime = _updateExpirationTime; - } - } else { - resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance); - var _callback2 = update.callback; - - if (_callback2 !== null) { - workInProgress.effectTag |= Callback; - update.nextEffect = null; - - if (queue.lastCapturedEffect === null) { - queue.firstCapturedEffect = queue.lastCapturedEffect = update; - } else { - queue.lastCapturedEffect.nextEffect = update; - queue.lastCapturedEffect = update; - } - } - } - - update = update.next; - } - - if (newFirstUpdate === null) { - queue.lastUpdate = null; - } - - if (newFirstCapturedUpdate === null) { - queue.lastCapturedUpdate = null; - } else { - workInProgress.effectTag |= Callback; - } - - if (newFirstUpdate === null && newFirstCapturedUpdate === null) { - newBaseState = resultState; - } - - queue.baseState = newBaseState; - queue.firstUpdate = newFirstUpdate; - queue.firstCapturedUpdate = newFirstCapturedUpdate; - queue.expirationTime = newExpirationTime; - workInProgress.memoizedState = resultState; - { - currentlyProcessingQueue = null; - } - } - - function callCallback(callback, context) { - invariant(typeof callback === "function", "Invalid argument passed as callback. Expected a function. Instead " + "received: %s", callback); - callback.call(context); - } - - function resetHasForceUpdateBeforeProcessing() { - hasForceUpdate = false; - } - - function checkHasForceUpdateAfterProcessing() { - return hasForceUpdate; - } - - function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) { - if (finishedQueue.firstCapturedUpdate !== null) { - if (finishedQueue.lastUpdate !== null) { - finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate; - finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate; - } - - finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null; - } - - var effect = finishedQueue.firstEffect; - finishedQueue.firstEffect = finishedQueue.lastEffect = null; - - while (effect !== null) { - var _callback3 = effect.callback; - - if (_callback3 !== null) { - effect.callback = null; - callCallback(_callback3, instance); - } - - effect = effect.nextEffect; - } - - effect = finishedQueue.firstCapturedEffect; - finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null; - - while (effect !== null) { - var _callback4 = effect.callback; - - if (_callback4 !== null) { - effect.callback = null; - callCallback(_callback4, instance); - } - - effect = effect.nextEffect; - } - } - - function createCapturedValue(value, source) { - return { - value: value, - source: source, - stack: getStackAddendumByWorkInProgressFiber(source) - }; - } - - var providerCursor = createCursor(null); - var valueCursor = createCursor(null); - var changedBitsCursor = createCursor(0); - var rendererSigil = void 0; - { - rendererSigil = {}; - } - - function pushProvider(providerFiber) { - var context = providerFiber.type._context; - - if (isPrimaryRenderer) { - push(changedBitsCursor, context._changedBits, providerFiber); - push(valueCursor, context._currentValue, providerFiber); - push(providerCursor, providerFiber, providerFiber); - context._currentValue = providerFiber.pendingProps.value; - context._changedBits = providerFiber.stateNode; - { - !(context._currentRenderer === undefined || context._currentRenderer === null || context._currentRenderer === rendererSigil) ? warning(false, "Detected multiple renderers concurrently rendering the " + "same context provider. This is currently unsupported.") : void 0; - context._currentRenderer = rendererSigil; - } - } else { - push(changedBitsCursor, context._changedBits2, providerFiber); - push(valueCursor, context._currentValue2, providerFiber); - push(providerCursor, providerFiber, providerFiber); - context._currentValue2 = providerFiber.pendingProps.value; - context._changedBits2 = providerFiber.stateNode; - { - !(context._currentRenderer2 === undefined || context._currentRenderer2 === null || context._currentRenderer2 === rendererSigil) ? warning(false, "Detected multiple renderers concurrently rendering the " + "same context provider. This is currently unsupported.") : void 0; - context._currentRenderer2 = rendererSigil; - } - } - } - - function popProvider(providerFiber) { - var changedBits = changedBitsCursor.current; - var currentValue = valueCursor.current; - pop(providerCursor, providerFiber); - pop(valueCursor, providerFiber); - pop(changedBitsCursor, providerFiber); - var context = providerFiber.type._context; - - if (isPrimaryRenderer) { - context._currentValue = currentValue; - context._changedBits = changedBits; - } else { - context._currentValue2 = currentValue; - context._changedBits2 = changedBits; - } - } - - function getContextCurrentValue(context) { - return isPrimaryRenderer ? context._currentValue : context._currentValue2; - } - - function getContextChangedBits(context) { - return isPrimaryRenderer ? context._changedBits : context._changedBits2; - } - - var NO_CONTEXT = {}; - var contextStackCursor$1 = createCursor(NO_CONTEXT); - var contextFiberStackCursor = createCursor(NO_CONTEXT); - var rootInstanceStackCursor = createCursor(NO_CONTEXT); - - function requiredContext(c) { - invariant(c !== NO_CONTEXT, "Expected host context to exist. This error is likely caused by a bug " + "in React. Please file an issue."); - return c; - } - - function getRootHostContainer() { - var rootInstance = requiredContext(rootInstanceStackCursor.current); - return rootInstance; - } - - function pushHostContainer(fiber, nextRootInstance) { - push(rootInstanceStackCursor, nextRootInstance, fiber); - push(contextFiberStackCursor, fiber, fiber); - push(contextStackCursor$1, NO_CONTEXT, fiber); - var nextRootContext = getRootHostContext(nextRootInstance); - pop(contextStackCursor$1, fiber); - push(contextStackCursor$1, nextRootContext, fiber); - } - - function popHostContainer(fiber) { - pop(contextStackCursor$1, fiber); - pop(contextFiberStackCursor, fiber); - pop(rootInstanceStackCursor, fiber); - } - - function getHostContext() { - var context = requiredContext(contextStackCursor$1.current); - return context; - } - - function pushHostContext(fiber) { - var rootInstance = requiredContext(rootInstanceStackCursor.current); - var context = requiredContext(contextStackCursor$1.current); - var nextContext = getChildHostContext(context, fiber.type, rootInstance); - - if (context === nextContext) { - return; - } - - push(contextFiberStackCursor, fiber, fiber); - push(contextStackCursor$1, nextContext, fiber); - } - - function popHostContext(fiber) { - if (contextFiberStackCursor.current !== fiber) { - return; - } - - pop(contextStackCursor$1, fiber); - pop(contextFiberStackCursor, fiber); - } - - var commitTime = 0; - - function getCommitTime() { - return commitTime; - } - - function recordCommitTime() { - if (!enableProfilerTimer) { - return; - } - - commitTime = now(); - } - - var fiberStack$1 = void 0; - { - fiberStack$1 = []; - } - var timerPausedAt = 0; - var totalElapsedPauseTime = 0; - - function checkActualRenderTimeStackEmpty() { - if (!enableProfilerTimer) { - return; - } - - { - !(fiberStack$1.length === 0) ? warning(false, "Expected an empty stack. Something was not reset properly.") : void 0; - } - } - - function markActualRenderTimeStarted(fiber) { - if (!enableProfilerTimer) { - return; - } - - { - fiberStack$1.push(fiber); - } - fiber.actualDuration = now() - fiber.actualDuration - totalElapsedPauseTime; - fiber.actualStartTime = now(); - } - - function pauseActualRenderTimerIfRunning() { - if (!enableProfilerTimer) { - return; - } - - if (timerPausedAt === 0) { - timerPausedAt = now(); - } - } - - function recordElapsedActualRenderTime(fiber) { - if (!enableProfilerTimer) { - return; - } - - { - !(fiber === fiberStack$1.pop()) ? warning(false, "Unexpected Fiber (%s) popped.", getComponentName(fiber)) : void 0; - } - fiber.actualDuration = now() - totalElapsedPauseTime - fiber.actualDuration; - } - - function resetActualRenderTimer() { - if (!enableProfilerTimer) { - return; - } - - totalElapsedPauseTime = 0; - } - - function resumeActualRenderTimerIfPaused() { - if (!enableProfilerTimer) { - return; - } - - if (timerPausedAt > 0) { - totalElapsedPauseTime += now() - timerPausedAt; - timerPausedAt = 0; - } - } - - var baseStartTime = -1; - - function recordElapsedBaseRenderTimeIfRunning(fiber) { - if (!enableProfilerTimer) { - return; - } - - if (baseStartTime !== -1) { - fiber.selfBaseTime = now() - baseStartTime; - } - } - - function startBaseRenderTimer() { - if (!enableProfilerTimer) { - return; - } - - { - if (baseStartTime !== -1) { - warning(false, "Cannot start base timer that is already running. " + "This error is likely caused by a bug in React. " + "Please file an issue."); - } - } - baseStartTime = now(); - } - - function stopBaseRenderTimerIfRunning() { - if (!enableProfilerTimer) { - return; - } - - baseStartTime = -1; - } - - var hasOwnProperty = Object.prototype.hasOwnProperty; - - function is(x, y) { - if (x === y) { - return x !== 0 || y !== 0 || 1 / x === 1 / y; - } else { - return x !== x && y !== y; - } - } - - function shallowEqual(objA, objB) { - if (is(objA, objB)) { - return true; - } - - if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) { - return false; - } - - var keysA = Object.keys(objA); - var keysB = Object.keys(objB); - - if (keysA.length !== keysB.length) { - return false; - } - - for (var i = 0; i < keysA.length; i++) { - if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) { - return false; - } - } - - return true; - } - - var fakeInternalInstance = {}; - var isArray = Array.isArray; - var didWarnAboutStateAssignmentForComponent = void 0; - var didWarnAboutUninitializedState = void 0; - var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = void 0; - var didWarnAboutLegacyLifecyclesAndDerivedState = void 0; - var didWarnAboutUndefinedDerivedState = void 0; - var warnOnUndefinedDerivedState = void 0; - var warnOnInvalidCallback = void 0; - { - didWarnAboutStateAssignmentForComponent = new Set(); - didWarnAboutUninitializedState = new Set(); - didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set(); - didWarnAboutLegacyLifecyclesAndDerivedState = new Set(); - didWarnAboutUndefinedDerivedState = new Set(); - var didWarnOnInvalidCallback = new Set(); - - warnOnInvalidCallback = function warnOnInvalidCallback(callback, callerName) { - if (callback === null || typeof callback === "function") { - return; - } - - var key = callerName + "_" + callback; - - if (!didWarnOnInvalidCallback.has(key)) { - didWarnOnInvalidCallback.add(key); - warning(false, "%s(...): Expected the last optional `callback` argument to be a " + "function. Instead received: %s.", callerName, callback); - } - }; - - warnOnUndefinedDerivedState = function warnOnUndefinedDerivedState(workInProgress, partialState) { - if (partialState === undefined) { - var componentName = getComponentName(workInProgress) || "Component"; - - if (!didWarnAboutUndefinedDerivedState.has(componentName)) { - didWarnAboutUndefinedDerivedState.add(componentName); - warning(false, "%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. " + "You have returned undefined.", componentName); - } - } - }; - - Object.defineProperty(fakeInternalInstance, "_processChildContext", { - enumerable: false, - value: function value() { - invariant(false, "_processChildContext is not available in React 16+. This likely " + "means you have multiple copies of React and are attempting to nest " + "a React 15 tree inside a React 16 tree using " + "unstable_renderSubtreeIntoContainer, which isn't supported. Try " + "to make sure you have only one copy of React (and ideally, switch " + "to ReactDOM.createPortal)."); - } - }); - Object.freeze(fakeInternalInstance); - } - - function applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, nextProps) { - var prevState = workInProgress.memoizedState; - { - if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { - getDerivedStateFromProps(nextProps, prevState); - } - } - var partialState = getDerivedStateFromProps(nextProps, prevState); - { - warnOnUndefinedDerivedState(workInProgress, partialState); - } - var memoizedState = partialState === null || partialState === undefined ? prevState : _extends({}, prevState, partialState); - workInProgress.memoizedState = memoizedState; - var updateQueue = workInProgress.updateQueue; - - if (updateQueue !== null && updateQueue.expirationTime === NoWork) { - updateQueue.baseState = memoizedState; - } - } - - var classComponentUpdater = { - isMounted: isMounted, - enqueueSetState: function enqueueSetState(inst, payload, callback) { - var fiber = get$1(inst); - var currentTime = recalculateCurrentTime(); - var expirationTime = computeExpirationForFiber(currentTime, fiber); - var update = createUpdate(expirationTime); - update.payload = payload; - - if (callback !== undefined && callback !== null) { - { - warnOnInvalidCallback(callback, "setState"); - } - update.callback = callback; - } - - enqueueUpdate(fiber, update, expirationTime); - scheduleWork(fiber, expirationTime); - }, - enqueueReplaceState: function enqueueReplaceState(inst, payload, callback) { - var fiber = get$1(inst); - var currentTime = recalculateCurrentTime(); - var expirationTime = computeExpirationForFiber(currentTime, fiber); - var update = createUpdate(expirationTime); - update.tag = ReplaceState; - update.payload = payload; - - if (callback !== undefined && callback !== null) { - { - warnOnInvalidCallback(callback, "replaceState"); - } - update.callback = callback; - } - - enqueueUpdate(fiber, update, expirationTime); - scheduleWork(fiber, expirationTime); - }, - enqueueForceUpdate: function enqueueForceUpdate(inst, callback) { - var fiber = get$1(inst); - var currentTime = recalculateCurrentTime(); - var expirationTime = computeExpirationForFiber(currentTime, fiber); - var update = createUpdate(expirationTime); - update.tag = ForceUpdate; - - if (callback !== undefined && callback !== null) { - { - warnOnInvalidCallback(callback, "forceUpdate"); - } - update.callback = callback; - } - - enqueueUpdate(fiber, update, expirationTime); - scheduleWork(fiber, expirationTime); - } - }; - - function checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext) { - var instance = workInProgress.stateNode; - var ctor = workInProgress.type; - - if (typeof instance.shouldComponentUpdate === "function") { - startPhaseTimer(workInProgress, "shouldComponentUpdate"); - var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, newContext); - stopPhaseTimer(); - { - !(shouldUpdate !== undefined) ? warning(false, "%s.shouldComponentUpdate(): Returned undefined instead of a " + "boolean value. Make sure to return true or false.", getComponentName(workInProgress) || "Component") : void 0; - } - return shouldUpdate; - } - - if (ctor.prototype && ctor.prototype.isPureReactComponent) { - return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState); - } - - return true; - } - - function checkClassInstance(workInProgress) { - var instance = workInProgress.stateNode; - var type = workInProgress.type; - { - var name = getComponentName(workInProgress) || "Component"; - var renderPresent = instance.render; - - if (!renderPresent) { - if (type.prototype && typeof type.prototype.render === "function") { - warning(false, "%s(...): No `render` method found on the returned component " + "instance: did you accidentally return an object from the constructor?", name); - } else { - warning(false, "%s(...): No `render` method found on the returned component " + "instance: you may have forgotten to define `render`.", name); - } - } - - var noGetInitialStateOnES6 = !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state; - !noGetInitialStateOnES6 ? warning(false, "getInitialState was defined on %s, a plain JavaScript class. " + "This is only supported for classes created using React.createClass. " + "Did you mean to define a state property instead?", name) : void 0; - var noGetDefaultPropsOnES6 = !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved; - !noGetDefaultPropsOnES6 ? warning(false, "getDefaultProps was defined on %s, a plain JavaScript class. " + "This is only supported for classes created using React.createClass. " + "Use a static property to define defaultProps instead.", name) : void 0; - var noInstancePropTypes = !instance.propTypes; - !noInstancePropTypes ? warning(false, "propTypes was defined as an instance property on %s. Use a static " + "property to define propTypes instead.", name) : void 0; - var noInstanceContextTypes = !instance.contextTypes; - !noInstanceContextTypes ? warning(false, "contextTypes was defined as an instance property on %s. Use a static " + "property to define contextTypes instead.", name) : void 0; - var noComponentShouldUpdate = typeof instance.componentShouldUpdate !== "function"; - !noComponentShouldUpdate ? warning(false, "%s has a method called " + "componentShouldUpdate(). Did you mean shouldComponentUpdate()? " + "The name is phrased as a question because the function is " + "expected to return a value.", name) : void 0; - - if (type.prototype && type.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== "undefined") { - warning(false, "%s has a method called shouldComponentUpdate(). " + "shouldComponentUpdate should not be used when extending React.PureComponent. " + "Please extend React.Component if shouldComponentUpdate is used.", getComponentName(workInProgress) || "A pure component"); - } - - var noComponentDidUnmount = typeof instance.componentDidUnmount !== "function"; - !noComponentDidUnmount ? warning(false, "%s has a method called " + "componentDidUnmount(). But there is no such lifecycle method. " + "Did you mean componentWillUnmount()?", name) : void 0; - var noComponentDidReceiveProps = typeof instance.componentDidReceiveProps !== "function"; - !noComponentDidReceiveProps ? warning(false, "%s has a method called " + "componentDidReceiveProps(). But there is no such lifecycle method. " + "If you meant to update the state in response to changing props, " + "use componentWillReceiveProps(). If you meant to fetch data or " + "run side-effects or mutations after React has updated the UI, use componentDidUpdate().", name) : void 0; - var noComponentWillRecieveProps = typeof instance.componentWillRecieveProps !== "function"; - !noComponentWillRecieveProps ? warning(false, "%s has a method called " + "componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", name) : void 0; - var noUnsafeComponentWillRecieveProps = typeof instance.UNSAFE_componentWillRecieveProps !== "function"; - !noUnsafeComponentWillRecieveProps ? warning(false, "%s has a method called " + "UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", name) : void 0; - var hasMutatedProps = instance.props !== workInProgress.pendingProps; - !(instance.props === undefined || !hasMutatedProps) ? warning(false, "%s(...): When calling super() in `%s`, make sure to pass " + "up the same props that your component's constructor was passed.", name, name) : void 0; - var noInstanceDefaultProps = !instance.defaultProps; - !noInstanceDefaultProps ? warning(false, "Setting defaultProps as an instance property on %s is not supported and will be ignored." + " Instead, define defaultProps as a static property on %s.", name, name) : void 0; - - if (typeof instance.getSnapshotBeforeUpdate === "function" && typeof instance.componentDidUpdate !== "function" && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(type)) { - didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(type); - warning(false, "%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). " + "This component defines getSnapshotBeforeUpdate() only.", getComponentName(workInProgress)); - } - - var noInstanceGetDerivedStateFromProps = typeof instance.getDerivedStateFromProps !== "function"; - !noInstanceGetDerivedStateFromProps ? warning(false, "%s: getDerivedStateFromProps() is defined as an instance method " + "and will be ignored. Instead, declare it as a static method.", name) : void 0; - var noInstanceGetDerivedStateFromCatch = typeof instance.getDerivedStateFromCatch !== "function"; - !noInstanceGetDerivedStateFromCatch ? warning(false, "%s: getDerivedStateFromCatch() is defined as an instance method " + "and will be ignored. Instead, declare it as a static method.", name) : void 0; - var noStaticGetSnapshotBeforeUpdate = typeof type.getSnapshotBeforeUpdate !== "function"; - !noStaticGetSnapshotBeforeUpdate ? warning(false, "%s: getSnapshotBeforeUpdate() is defined as a static method " + "and will be ignored. Instead, declare it as an instance method.", name) : void 0; - var _state = instance.state; - - if (_state && (typeof _state !== "object" || isArray(_state))) { - warning(false, "%s.state: must be set to an object or null", name); - } - - if (typeof instance.getChildContext === "function") { - !(typeof type.childContextTypes === "object") ? warning(false, "%s.getChildContext(): childContextTypes must be defined in order to " + "use getChildContext().", name) : void 0; - } - } - } - - function adoptClassInstance(workInProgress, instance) { - instance.updater = classComponentUpdater; - workInProgress.stateNode = instance; - set(instance, workInProgress); - { - instance._reactInternalInstance = fakeInternalInstance; - } - } - - function constructClassInstance(workInProgress, props, renderExpirationTime) { - var ctor = workInProgress.type; - var unmaskedContext = getUnmaskedContext(workInProgress); - var needsContext = isContextConsumer(workInProgress); - var context = needsContext ? getMaskedContext(workInProgress, unmaskedContext) : emptyObject; - { - if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { - new ctor(props, context); - } - } - var instance = new ctor(props, context); - var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null; - adoptClassInstance(workInProgress, instance); - { - if (typeof ctor.getDerivedStateFromProps === "function" && state === null) { - var componentName = getComponentName(workInProgress) || "Component"; - - if (!didWarnAboutUninitializedState.has(componentName)) { - didWarnAboutUninitializedState.add(componentName); - warning(false, "%s: Did not properly initialize state during construction. " + "Expected state to be an object, but it was %s.", componentName, instance.state === null ? "null" : "undefined"); - } - } - - if (typeof ctor.getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function") { - var foundWillMountName = null; - var foundWillReceivePropsName = null; - var foundWillUpdateName = null; - - if (typeof instance.componentWillMount === "function" && instance.componentWillMount.__suppressDeprecationWarning !== true) { - foundWillMountName = "componentWillMount"; - } else if (typeof instance.UNSAFE_componentWillMount === "function") { - foundWillMountName = "UNSAFE_componentWillMount"; - } - - if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { - foundWillReceivePropsName = "componentWillReceiveProps"; - } else if (typeof instance.UNSAFE_componentWillReceiveProps === "function") { - foundWillReceivePropsName = "UNSAFE_componentWillReceiveProps"; - } - - if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { - foundWillUpdateName = "componentWillUpdate"; - } else if (typeof instance.UNSAFE_componentWillUpdate === "function") { - foundWillUpdateName = "UNSAFE_componentWillUpdate"; - } - - if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) { - var _componentName = getComponentName(workInProgress) || "Component"; - - var newApiName = typeof ctor.getDerivedStateFromProps === "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; - - if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) { - didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName); - warning(false, "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + "https://fb.me/react-async-component-lifecycle-hooks", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", foundWillReceivePropsName !== null ? "\n " + foundWillReceivePropsName : "", foundWillUpdateName !== null ? "\n " + foundWillUpdateName : ""); - } - } - } - } - - if (needsContext) { - cacheContext(workInProgress, unmaskedContext, context); - } - - return instance; - } - - function callComponentWillMount(workInProgress, instance) { - startPhaseTimer(workInProgress, "componentWillMount"); - var oldState = instance.state; - - if (typeof instance.componentWillMount === "function") { - instance.componentWillMount(); - } - - if (typeof instance.UNSAFE_componentWillMount === "function") { - instance.UNSAFE_componentWillMount(); - } - - stopPhaseTimer(); - - if (oldState !== instance.state) { - { - warning(false, "%s.componentWillMount(): Assigning directly to this.state is " + "deprecated (except inside a component's " + "constructor). Use setState instead.", getComponentName(workInProgress) || "Component"); - } - classComponentUpdater.enqueueReplaceState(instance, instance.state, null); - } - } - - function callComponentWillReceiveProps(workInProgress, instance, newProps, newContext) { - var oldState = instance.state; - startPhaseTimer(workInProgress, "componentWillReceiveProps"); - - if (typeof instance.componentWillReceiveProps === "function") { - instance.componentWillReceiveProps(newProps, newContext); - } - - if (typeof instance.UNSAFE_componentWillReceiveProps === "function") { - instance.UNSAFE_componentWillReceiveProps(newProps, newContext); - } - - stopPhaseTimer(); - - if (instance.state !== oldState) { - { - var componentName = getComponentName(workInProgress) || "Component"; - - if (!didWarnAboutStateAssignmentForComponent.has(componentName)) { - didWarnAboutStateAssignmentForComponent.add(componentName); - warning(false, "%s.componentWillReceiveProps(): Assigning directly to " + "this.state is deprecated (except inside a component's " + "constructor). Use setState instead.", componentName); - } - } - classComponentUpdater.enqueueReplaceState(instance, instance.state, null); - } - } - - function mountClassInstance(workInProgress, renderExpirationTime) { - var ctor = workInProgress.type; - { - checkClassInstance(workInProgress); - } - var instance = workInProgress.stateNode; - var props = workInProgress.pendingProps; - var unmaskedContext = getUnmaskedContext(workInProgress); - instance.props = props; - instance.state = workInProgress.memoizedState; - instance.refs = emptyObject; - instance.context = getMaskedContext(workInProgress, unmaskedContext); - { - if (workInProgress.mode & StrictMode) { - ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance); - ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance); - } - - if (warnAboutDeprecatedLifecycles) { - ReactStrictModeWarnings.recordDeprecationWarnings(workInProgress, instance); - } - } - var updateQueue = workInProgress.updateQueue; - - if (updateQueue !== null) { - processUpdateQueue(workInProgress, updateQueue, props, instance, renderExpirationTime); - instance.state = workInProgress.memoizedState; - } - - var getDerivedStateFromProps = workInProgress.type.getDerivedStateFromProps; - - if (typeof getDerivedStateFromProps === "function") { - applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, props); - instance.state = workInProgress.memoizedState; - } - - if (typeof ctor.getDerivedStateFromProps !== "function" && typeof instance.getSnapshotBeforeUpdate !== "function" && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { - callComponentWillMount(workInProgress, instance); - updateQueue = workInProgress.updateQueue; - - if (updateQueue !== null) { - processUpdateQueue(workInProgress, updateQueue, props, instance, renderExpirationTime); - instance.state = workInProgress.memoizedState; - } - } - - if (typeof instance.componentDidMount === "function") { - workInProgress.effectTag |= Update; - } - } - - function resumeMountClassInstance(workInProgress, renderExpirationTime) { - var ctor = workInProgress.type; - var instance = workInProgress.stateNode; - var oldProps = workInProgress.memoizedProps; - var newProps = workInProgress.pendingProps; - instance.props = oldProps; - var oldContext = instance.context; - var newUnmaskedContext = getUnmaskedContext(workInProgress); - var newContext = getMaskedContext(workInProgress, newUnmaskedContext); - var getDerivedStateFromProps = ctor.getDerivedStateFromProps; - var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; - - if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { - if (oldProps !== newProps || oldContext !== newContext) { - callComponentWillReceiveProps(workInProgress, instance, newProps, newContext); - } - } - - resetHasForceUpdateBeforeProcessing(); - var oldState = workInProgress.memoizedState; - var newState = instance.state = oldState; - var updateQueue = workInProgress.updateQueue; - - if (updateQueue !== null) { - processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime); - newState = workInProgress.memoizedState; - } - - if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) { - if (typeof instance.componentDidMount === "function") { - workInProgress.effectTag |= Update; - } - - return false; - } - - if (typeof getDerivedStateFromProps === "function") { - applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, newProps); - newState = workInProgress.memoizedState; - } - - var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext); - - if (shouldUpdate) { - if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { - startPhaseTimer(workInProgress, "componentWillMount"); - - if (typeof instance.componentWillMount === "function") { - instance.componentWillMount(); - } - - if (typeof instance.UNSAFE_componentWillMount === "function") { - instance.UNSAFE_componentWillMount(); - } - - stopPhaseTimer(); - } - - if (typeof instance.componentDidMount === "function") { - workInProgress.effectTag |= Update; - } - } else { - if (typeof instance.componentDidMount === "function") { - workInProgress.effectTag |= Update; - } - - workInProgress.memoizedProps = newProps; - workInProgress.memoizedState = newState; - } - - instance.props = newProps; - instance.state = newState; - instance.context = newContext; - return shouldUpdate; - } - - function updateClassInstance(current, workInProgress, renderExpirationTime) { - var ctor = workInProgress.type; - var instance = workInProgress.stateNode; - var oldProps = workInProgress.memoizedProps; - var newProps = workInProgress.pendingProps; - instance.props = oldProps; - var oldContext = instance.context; - var newUnmaskedContext = getUnmaskedContext(workInProgress); - var newContext = getMaskedContext(workInProgress, newUnmaskedContext); - var getDerivedStateFromProps = ctor.getDerivedStateFromProps; - var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; - - if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { - if (oldProps !== newProps || oldContext !== newContext) { - callComponentWillReceiveProps(workInProgress, instance, newProps, newContext); - } - } - - resetHasForceUpdateBeforeProcessing(); - var oldState = workInProgress.memoizedState; - var newState = instance.state = oldState; - var updateQueue = workInProgress.updateQueue; - - if (updateQueue !== null) { - processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime); - newState = workInProgress.memoizedState; - } - - if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) { - if (typeof instance.componentDidUpdate === "function") { - if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { - workInProgress.effectTag |= Update; - } - } - - if (typeof instance.getSnapshotBeforeUpdate === "function") { - if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { - workInProgress.effectTag |= Snapshot; - } - } - - return false; - } - - if (typeof getDerivedStateFromProps === "function") { - applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, newProps); - newState = workInProgress.memoizedState; - } - - var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext); - - if (shouldUpdate) { - if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === "function" || typeof instance.componentWillUpdate === "function")) { - startPhaseTimer(workInProgress, "componentWillUpdate"); - - if (typeof instance.componentWillUpdate === "function") { - instance.componentWillUpdate(newProps, newState, newContext); - } - - if (typeof instance.UNSAFE_componentWillUpdate === "function") { - instance.UNSAFE_componentWillUpdate(newProps, newState, newContext); - } - - stopPhaseTimer(); - } - - if (typeof instance.componentDidUpdate === "function") { - workInProgress.effectTag |= Update; - } - - if (typeof instance.getSnapshotBeforeUpdate === "function") { - workInProgress.effectTag |= Snapshot; - } - } else { - if (typeof instance.componentDidUpdate === "function") { - if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { - workInProgress.effectTag |= Update; - } - } - - if (typeof instance.getSnapshotBeforeUpdate === "function") { - if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) { - workInProgress.effectTag |= Snapshot; - } - } - - workInProgress.memoizedProps = newProps; - workInProgress.memoizedState = newState; - } - - instance.props = newProps; - instance.state = newState; - instance.context = newContext; - return shouldUpdate; - } - - var getCurrentFiberStackAddendum$2 = ReactDebugCurrentFiber.getCurrentFiberStackAddendum; - var didWarnAboutMaps = void 0; - var didWarnAboutStringRefInStrictMode = void 0; - var ownerHasKeyUseWarning = void 0; - var ownerHasFunctionTypeWarning = void 0; - - var warnForMissingKey = function warnForMissingKey(child) {}; - - { - didWarnAboutMaps = false; - didWarnAboutStringRefInStrictMode = {}; - ownerHasKeyUseWarning = {}; - ownerHasFunctionTypeWarning = {}; - - warnForMissingKey = function warnForMissingKey(child) { - if (child === null || typeof child !== "object") { - return; - } - - if (!child._store || child._store.validated || child.key != null) { - return; - } - - invariant(typeof child._store === "object", "React Component in warnForMissingKey should have a _store. " + "This error is likely caused by a bug in React. Please file an issue."); - child._store.validated = true; - var currentComponentErrorInfo = "Each child in an array or iterator should have a unique " + '"key" prop. See https://fb.me/react-warning-keys for ' + "more information." + (getCurrentFiberStackAddendum$2() || ""); - - if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { - return; - } - - ownerHasKeyUseWarning[currentComponentErrorInfo] = true; - warning(false, "Each child in an array or iterator should have a unique " + '"key" prop. See https://fb.me/react-warning-keys for ' + "more information.%s", getCurrentFiberStackAddendum$2()); - }; - } - var isArray$1 = Array.isArray; - - function coerceRef(returnFiber, current, element) { - var mixedRef = element.ref; - - if (mixedRef !== null && typeof mixedRef !== "function" && typeof mixedRef !== "object") { - { - if (returnFiber.mode & StrictMode) { - var componentName = getComponentName(returnFiber) || "Component"; - - if (!didWarnAboutStringRefInStrictMode[componentName]) { - warning(false, 'A string ref, "%s", has been found within a strict mode tree. ' + "String refs are a source of potential bugs and should be avoided. " + "We recommend using createRef() instead." + "\n%s" + "\n\nLearn more about using refs safely here:" + "\nhttps://fb.me/react-strict-mode-string-ref", mixedRef, getStackAddendumByWorkInProgressFiber(returnFiber)); - didWarnAboutStringRefInStrictMode[componentName] = true; - } - } - } - - if (element._owner) { - var owner = element._owner; - var inst = void 0; - - if (owner) { - var ownerFiber = owner; - invariant(ownerFiber.tag === ClassComponent, "Stateless function components cannot have refs."); - inst = ownerFiber.stateNode; - } - - invariant(inst, "Missing owner for string ref %s. This error is likely caused by a " + "bug in React. Please file an issue.", mixedRef); - var stringRef = "" + mixedRef; - - if (current !== null && current.ref !== null && typeof current.ref === "function" && current.ref._stringRef === stringRef) { - return current.ref; - } - - var ref = function ref(value) { - var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs; - - if (value === null) { - delete refs[stringRef]; - } else { - refs[stringRef] = value; - } - }; - - ref._stringRef = stringRef; - return ref; - } else { - invariant(typeof mixedRef === "string", "Expected ref to be a function or a string."); - invariant(element._owner, "Element ref was specified as a string (%s) but no owner was set. This could happen for one of" + " the following reasons:\n" + "1. You may be adding a ref to a functional component\n" + "2. You may be adding a ref to a component that was not created inside a component's render method\n" + "3. You have multiple copies of React loaded\n" + "See https://fb.me/react-refs-must-have-owner for more information.", mixedRef); - } - } - - return mixedRef; - } - - function throwOnInvalidObjectType(returnFiber, newChild) { - if (returnFiber.type !== "textarea") { - var addendum = ""; - { - addendum = " If you meant to render a collection of children, use an array " + "instead." + (getCurrentFiberStackAddendum$2() || ""); - } - invariant(false, "Objects are not valid as a React child (found: %s).%s", Object.prototype.toString.call(newChild) === "[object Object]" ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : newChild, addendum); - } - } - - function warnOnFunctionType() { - var currentComponentErrorInfo = "Functions are not valid as a React child. This may happen if " + "you return a Component instead of from render. " + "Or maybe you meant to call this function rather than return it." + (getCurrentFiberStackAddendum$2() || ""); - - if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) { - return; - } - - ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true; - warning(false, "Functions are not valid as a React child. This may happen if " + "you return a Component instead of from render. " + "Or maybe you meant to call this function rather than return it.%s", getCurrentFiberStackAddendum$2() || ""); - } - - function ChildReconciler(shouldTrackSideEffects) { - function deleteChild(returnFiber, childToDelete) { - if (!shouldTrackSideEffects) { - return; - } - - var last = returnFiber.lastEffect; - - if (last !== null) { - last.nextEffect = childToDelete; - returnFiber.lastEffect = childToDelete; - } else { - returnFiber.firstEffect = returnFiber.lastEffect = childToDelete; - } - - childToDelete.nextEffect = null; - childToDelete.effectTag = Deletion; - } - - function deleteRemainingChildren(returnFiber, currentFirstChild) { - if (!shouldTrackSideEffects) { - return null; - } - - var childToDelete = currentFirstChild; - - while (childToDelete !== null) { - deleteChild(returnFiber, childToDelete); - childToDelete = childToDelete.sibling; - } - - return null; - } - - function mapRemainingChildren(returnFiber, currentFirstChild) { - var existingChildren = new Map(); - var existingChild = currentFirstChild; - - while (existingChild !== null) { - if (existingChild.key !== null) { - existingChildren.set(existingChild.key, existingChild); - } else { - existingChildren.set(existingChild.index, existingChild); - } - - existingChild = existingChild.sibling; - } - - return existingChildren; - } - - function useFiber(fiber, pendingProps, expirationTime) { - var clone = createWorkInProgress(fiber, pendingProps, expirationTime); - clone.index = 0; - clone.sibling = null; - return clone; - } - - function placeChild(newFiber, lastPlacedIndex, newIndex) { - newFiber.index = newIndex; - - if (!shouldTrackSideEffects) { - return lastPlacedIndex; - } - - var current = newFiber.alternate; - - if (current !== null) { - var oldIndex = current.index; - - if (oldIndex < lastPlacedIndex) { - newFiber.effectTag = Placement; - return lastPlacedIndex; - } else { - return oldIndex; - } - } else { - newFiber.effectTag = Placement; - return lastPlacedIndex; - } - } - - function placeSingleChild(newFiber) { - if (shouldTrackSideEffects && newFiber.alternate === null) { - newFiber.effectTag = Placement; - } - - return newFiber; - } - - function updateTextNode(returnFiber, current, textContent, expirationTime) { - if (current === null || current.tag !== HostText) { - var created = createFiberFromText(textContent, returnFiber.mode, expirationTime); - created.return = returnFiber; - return created; - } else { - var existing = useFiber(current, textContent, expirationTime); - existing.return = returnFiber; - return existing; - } - } - - function updateElement(returnFiber, current, element, expirationTime) { - if (current !== null && current.type === element.type) { - var existing = useFiber(current, element.props, expirationTime); - existing.ref = coerceRef(returnFiber, current, element); - existing.return = returnFiber; - { - existing._debugSource = element._source; - existing._debugOwner = element._owner; - } - return existing; - } else { - var created = createFiberFromElement(element, returnFiber.mode, expirationTime); - created.ref = coerceRef(returnFiber, current, element); - created.return = returnFiber; - return created; - } - } - - function updatePortal(returnFiber, current, portal, expirationTime) { - if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) { - var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime); - created.return = returnFiber; - return created; - } else { - var existing = useFiber(current, portal.children || [], expirationTime); - existing.return = returnFiber; - return existing; - } - } - - function updateFragment(returnFiber, current, fragment, expirationTime, key) { - if (current === null || current.tag !== Fragment) { - var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key); - created.return = returnFiber; - return created; - } else { - var existing = useFiber(current, fragment, expirationTime); - existing.return = returnFiber; - return existing; - } - } - - function createChild(returnFiber, newChild, expirationTime) { - if (typeof newChild === "string" || typeof newChild === "number") { - var created = createFiberFromText("" + newChild, returnFiber.mode, expirationTime); - created.return = returnFiber; - return created; - } - - if (typeof newChild === "object" && newChild !== null) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - { - var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime); - - _created.ref = coerceRef(returnFiber, null, newChild); - _created.return = returnFiber; - return _created; - } - - case REACT_PORTAL_TYPE: - { - var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime); - - _created2.return = returnFiber; - return _created2; - } - } - - if (isArray$1(newChild) || getIteratorFn(newChild)) { - var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null); - - _created3.return = returnFiber; - return _created3; - } - - throwOnInvalidObjectType(returnFiber, newChild); - } - - { - if (typeof newChild === "function") { - warnOnFunctionType(); - } - } - return null; - } - - function updateSlot(returnFiber, oldFiber, newChild, expirationTime) { - var key = oldFiber !== null ? oldFiber.key : null; - - if (typeof newChild === "string" || typeof newChild === "number") { - if (key !== null) { - return null; - } - - return updateTextNode(returnFiber, oldFiber, "" + newChild, expirationTime); - } - - if (typeof newChild === "object" && newChild !== null) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - { - if (newChild.key === key) { - if (newChild.type === REACT_FRAGMENT_TYPE) { - return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key); - } - - return updateElement(returnFiber, oldFiber, newChild, expirationTime); - } else { - return null; - } - } - - case REACT_PORTAL_TYPE: - { - if (newChild.key === key) { - return updatePortal(returnFiber, oldFiber, newChild, expirationTime); - } else { - return null; - } - } - } - - if (isArray$1(newChild) || getIteratorFn(newChild)) { - if (key !== null) { - return null; - } - - return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null); - } - - throwOnInvalidObjectType(returnFiber, newChild); - } - - { - if (typeof newChild === "function") { - warnOnFunctionType(); - } - } - return null; - } - - function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) { - if (typeof newChild === "string" || typeof newChild === "number") { - var matchedFiber = existingChildren.get(newIdx) || null; - return updateTextNode(returnFiber, matchedFiber, "" + newChild, expirationTime); - } - - if (typeof newChild === "object" && newChild !== null) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - { - var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; - - if (newChild.type === REACT_FRAGMENT_TYPE) { - return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key); - } - - return updateElement(returnFiber, _matchedFiber, newChild, expirationTime); - } - - case REACT_PORTAL_TYPE: - { - var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; - - return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime); - } - } - - if (isArray$1(newChild) || getIteratorFn(newChild)) { - var _matchedFiber3 = existingChildren.get(newIdx) || null; - - return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null); - } - - throwOnInvalidObjectType(returnFiber, newChild); - } - - { - if (typeof newChild === "function") { - warnOnFunctionType(); - } - } - return null; - } - - function warnOnInvalidKey(child, knownKeys) { - { - if (typeof child !== "object" || child === null) { - return knownKeys; - } - - switch (child.$$typeof) { - case REACT_ELEMENT_TYPE: - case REACT_PORTAL_TYPE: - warnForMissingKey(child); - var key = child.key; - - if (typeof key !== "string") { - break; - } - - if (knownKeys === null) { - knownKeys = new Set(); - knownKeys.add(key); - break; - } - - if (!knownKeys.has(key)) { - knownKeys.add(key); - break; - } - - warning(false, "Encountered two children with the same key, `%s`. " + "Keys should be unique so that components maintain their identity " + "across updates. Non-unique keys may cause children to be " + "duplicated and/or omitted — the behavior is unsupported and " + "could change in a future version.%s", key, getCurrentFiberStackAddendum$2()); - break; - - default: - break; - } - } - return knownKeys; - } - - function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) { - { - var knownKeys = null; - - for (var i = 0; i < newChildren.length; i++) { - var child = newChildren[i]; - knownKeys = warnOnInvalidKey(child, knownKeys); - } - } - var resultingFirstChild = null; - var previousNewFiber = null; - var oldFiber = currentFirstChild; - var lastPlacedIndex = 0; - var newIdx = 0; - var nextOldFiber = null; - - for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) { - if (oldFiber.index > newIdx) { - nextOldFiber = oldFiber; - oldFiber = null; - } else { - nextOldFiber = oldFiber.sibling; - } - - var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime); - - if (newFiber === null) { - if (oldFiber === null) { - oldFiber = nextOldFiber; - } - - break; - } - - if (shouldTrackSideEffects) { - if (oldFiber && newFiber.alternate === null) { - deleteChild(returnFiber, oldFiber); - } - } - - lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); - - if (previousNewFiber === null) { - resultingFirstChild = newFiber; - } else { - previousNewFiber.sibling = newFiber; - } - - previousNewFiber = newFiber; - oldFiber = nextOldFiber; - } - - if (newIdx === newChildren.length) { - deleteRemainingChildren(returnFiber, oldFiber); - return resultingFirstChild; - } - - if (oldFiber === null) { - for (; newIdx < newChildren.length; newIdx++) { - var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime); - - if (!_newFiber) { - continue; - } - - lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx); - - if (previousNewFiber === null) { - resultingFirstChild = _newFiber; - } else { - previousNewFiber.sibling = _newFiber; - } - - previousNewFiber = _newFiber; - } - - return resultingFirstChild; - } - - var existingChildren = mapRemainingChildren(returnFiber, oldFiber); - - for (; newIdx < newChildren.length; newIdx++) { - var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime); - - if (_newFiber2) { - if (shouldTrackSideEffects) { - if (_newFiber2.alternate !== null) { - existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key); - } - } - - lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx); - - if (previousNewFiber === null) { - resultingFirstChild = _newFiber2; - } else { - previousNewFiber.sibling = _newFiber2; - } - - previousNewFiber = _newFiber2; - } - } - - if (shouldTrackSideEffects) { - existingChildren.forEach(function (child) { - return deleteChild(returnFiber, child); - }); - } - - return resultingFirstChild; - } - - function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) { - var iteratorFn = getIteratorFn(newChildrenIterable); - invariant(typeof iteratorFn === "function", "An object is not an iterable. This error is likely caused by a bug in " + "React. Please file an issue."); - { - if (newChildrenIterable.entries === iteratorFn) { - !didWarnAboutMaps ? warning(false, "Using Maps as children is unsupported and will likely yield " + "unexpected results. Convert it to a sequence/iterable of keyed " + "ReactElements instead.%s", getCurrentFiberStackAddendum$2()) : void 0; - didWarnAboutMaps = true; - } - - var _newChildren = iteratorFn.call(newChildrenIterable); - - if (_newChildren) { - var knownKeys = null; - - var _step = _newChildren.next(); - - for (; !_step.done; _step = _newChildren.next()) { - var child = _step.value; - knownKeys = warnOnInvalidKey(child, knownKeys); - } - } - } - var newChildren = iteratorFn.call(newChildrenIterable); - invariant(newChildren != null, "An iterable object provided no iterator."); - var resultingFirstChild = null; - var previousNewFiber = null; - var oldFiber = currentFirstChild; - var lastPlacedIndex = 0; - var newIdx = 0; - var nextOldFiber = null; - var step = newChildren.next(); - - for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) { - if (oldFiber.index > newIdx) { - nextOldFiber = oldFiber; - oldFiber = null; - } else { - nextOldFiber = oldFiber.sibling; - } - - var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime); - - if (newFiber === null) { - if (!oldFiber) { - oldFiber = nextOldFiber; - } - - break; - } - - if (shouldTrackSideEffects) { - if (oldFiber && newFiber.alternate === null) { - deleteChild(returnFiber, oldFiber); - } - } - - lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); - - if (previousNewFiber === null) { - resultingFirstChild = newFiber; - } else { - previousNewFiber.sibling = newFiber; - } - - previousNewFiber = newFiber; - oldFiber = nextOldFiber; - } - - if (step.done) { - deleteRemainingChildren(returnFiber, oldFiber); - return resultingFirstChild; - } - - if (oldFiber === null) { - for (; !step.done; newIdx++, step = newChildren.next()) { - var _newFiber3 = createChild(returnFiber, step.value, expirationTime); - - if (_newFiber3 === null) { - continue; - } - - lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx); - - if (previousNewFiber === null) { - resultingFirstChild = _newFiber3; - } else { - previousNewFiber.sibling = _newFiber3; - } - - previousNewFiber = _newFiber3; - } - - return resultingFirstChild; - } - - var existingChildren = mapRemainingChildren(returnFiber, oldFiber); - - for (; !step.done; newIdx++, step = newChildren.next()) { - var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime); - - if (_newFiber4 !== null) { - if (shouldTrackSideEffects) { - if (_newFiber4.alternate !== null) { - existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key); - } - } - - lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx); - - if (previousNewFiber === null) { - resultingFirstChild = _newFiber4; - } else { - previousNewFiber.sibling = _newFiber4; - } - - previousNewFiber = _newFiber4; - } - } - - if (shouldTrackSideEffects) { - existingChildren.forEach(function (child) { - return deleteChild(returnFiber, child); - }); - } - - return resultingFirstChild; - } - - function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) { - if (currentFirstChild !== null && currentFirstChild.tag === HostText) { - deleteRemainingChildren(returnFiber, currentFirstChild.sibling); - var existing = useFiber(currentFirstChild, textContent, expirationTime); - existing.return = returnFiber; - return existing; - } - - deleteRemainingChildren(returnFiber, currentFirstChild); - var created = createFiberFromText(textContent, returnFiber.mode, expirationTime); - created.return = returnFiber; - return created; - } - - function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) { - var key = element.key; - var child = currentFirstChild; - - while (child !== null) { - if (child.key === key) { - if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.type === element.type) { - deleteRemainingChildren(returnFiber, child.sibling); - var existing = useFiber(child, element.type === REACT_FRAGMENT_TYPE ? element.props.children : element.props, expirationTime); - existing.ref = coerceRef(returnFiber, child, element); - existing.return = returnFiber; - { - existing._debugSource = element._source; - existing._debugOwner = element._owner; - } - return existing; - } else { - deleteRemainingChildren(returnFiber, child); - break; - } - } else { - deleteChild(returnFiber, child); - } - - child = child.sibling; - } - - if (element.type === REACT_FRAGMENT_TYPE) { - var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key); - created.return = returnFiber; - return created; - } else { - var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime); - - _created4.ref = coerceRef(returnFiber, currentFirstChild, element); - _created4.return = returnFiber; - return _created4; - } - } - - function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) { - var key = portal.key; - var child = currentFirstChild; - - while (child !== null) { - if (child.key === key) { - if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) { - deleteRemainingChildren(returnFiber, child.sibling); - var existing = useFiber(child, portal.children || [], expirationTime); - existing.return = returnFiber; - return existing; - } else { - deleteRemainingChildren(returnFiber, child); - break; - } - } else { - deleteChild(returnFiber, child); - } - - child = child.sibling; - } - - var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime); - created.return = returnFiber; - return created; - } - - function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) { - var isUnkeyedTopLevelFragment = typeof newChild === "object" && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null; - - if (isUnkeyedTopLevelFragment) { - newChild = newChild.props.children; - } - - var isObject = typeof newChild === "object" && newChild !== null; - - if (isObject) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime)); - - case REACT_PORTAL_TYPE: - return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime)); - } - } - - if (typeof newChild === "string" || typeof newChild === "number") { - return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, "" + newChild, expirationTime)); - } - - if (isArray$1(newChild)) { - return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime); - } - - if (getIteratorFn(newChild)) { - return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime); - } - - if (isObject) { - throwOnInvalidObjectType(returnFiber, newChild); - } - - { - if (typeof newChild === "function") { - warnOnFunctionType(); - } - } - - if (typeof newChild === "undefined" && !isUnkeyedTopLevelFragment) { - switch (returnFiber.tag) { - case ClassComponent: - { - { - var instance = returnFiber.stateNode; - - if (instance.render._isMockFunction) { - break; - } - } - } - - case FunctionalComponent: - { - var Component = returnFiber.type; - invariant(false, "%s(...): Nothing was returned from render. This usually means a " + "return statement is missing. Or, to render nothing, " + "return null.", Component.displayName || Component.name || "Component"); - } - } - } - - return deleteRemainingChildren(returnFiber, currentFirstChild); - } - - return reconcileChildFibers; - } - - var reconcileChildFibers = ChildReconciler(true); - var mountChildFibers = ChildReconciler(false); - - function cloneChildFibers(current, workInProgress) { - invariant(current === null || workInProgress.child === current.child, "Resuming work not yet implemented."); - - if (workInProgress.child === null) { - return; - } - - var currentChild = workInProgress.child; - var newChild = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime); - workInProgress.child = newChild; - newChild.return = workInProgress; - - while (currentChild.sibling !== null) { - currentChild = currentChild.sibling; - newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime); - newChild.return = workInProgress; - } - - newChild.sibling = null; - } - - var hydrationParentFiber = null; - var nextHydratableInstance = null; - var isHydrating = false; - - function enterHydrationState(fiber) { - if (!supportsHydration) { - return false; - } - - var parentInstance = fiber.stateNode.containerInfo; - nextHydratableInstance = getFirstHydratableChild(parentInstance); - hydrationParentFiber = fiber; - isHydrating = true; - return true; - } - - function deleteHydratableInstance(returnFiber, instance) { - { - switch (returnFiber.tag) { - case HostRoot: - didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance); - break; - - case HostComponent: - didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance); - break; - } - } - var childToDelete = createFiberFromHostInstanceForDeletion(); - childToDelete.stateNode = instance; - childToDelete.return = returnFiber; - childToDelete.effectTag = Deletion; - - if (returnFiber.lastEffect !== null) { - returnFiber.lastEffect.nextEffect = childToDelete; - returnFiber.lastEffect = childToDelete; - } else { - returnFiber.firstEffect = returnFiber.lastEffect = childToDelete; - } - } - - function insertNonHydratedInstance(returnFiber, fiber) { - fiber.effectTag |= Placement; - { - switch (returnFiber.tag) { - case HostRoot: - { - var parentContainer = returnFiber.stateNode.containerInfo; - - switch (fiber.tag) { - case HostComponent: - var type = fiber.type; - var props = fiber.pendingProps; - didNotFindHydratableContainerInstance(parentContainer, type, props); - break; - - case HostText: - var text = fiber.pendingProps; - didNotFindHydratableContainerTextInstance(parentContainer, text); - break; - } - - break; - } - - case HostComponent: - { - var parentType = returnFiber.type; - var parentProps = returnFiber.memoizedProps; - var parentInstance = returnFiber.stateNode; - - switch (fiber.tag) { - case HostComponent: - var _type = fiber.type; - var _props = fiber.pendingProps; - didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props); - break; - - case HostText: - var _text = fiber.pendingProps; - didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text); - break; - } - - break; - } - - default: - return; - } - } - } - - function tryHydrate(fiber, nextInstance) { - switch (fiber.tag) { - case HostComponent: - { - var type = fiber.type; - var props = fiber.pendingProps; - var instance = canHydrateInstance(nextInstance, type, props); - - if (instance !== null) { - fiber.stateNode = instance; - return true; - } - - return false; - } - - case HostText: - { - var text = fiber.pendingProps; - var textInstance = canHydrateTextInstance(nextInstance, text); - - if (textInstance !== null) { - fiber.stateNode = textInstance; - return true; - } - - return false; - } - - default: - return false; - } - } - - function tryToClaimNextHydratableInstance(fiber) { - if (!isHydrating) { - return; - } - - var nextInstance = nextHydratableInstance; - - if (!nextInstance) { - insertNonHydratedInstance(hydrationParentFiber, fiber); - isHydrating = false; - hydrationParentFiber = fiber; - return; - } - - var firstAttemptedInstance = nextInstance; - - if (!tryHydrate(fiber, nextInstance)) { - nextInstance = getNextHydratableSibling(firstAttemptedInstance); - - if (!nextInstance || !tryHydrate(fiber, nextInstance)) { - insertNonHydratedInstance(hydrationParentFiber, fiber); - isHydrating = false; - hydrationParentFiber = fiber; - return; - } - - deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance); - } - - hydrationParentFiber = fiber; - nextHydratableInstance = getFirstHydratableChild(nextInstance); - } - - function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) { - if (!supportsHydration) { - invariant(false, "Expected prepareToHydrateHostInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); - } - - var instance = fiber.stateNode; - var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); - fiber.updateQueue = updatePayload; - - if (updatePayload !== null) { - return true; - } - - return false; - } - - function prepareToHydrateHostTextInstance(fiber) { - if (!supportsHydration) { - invariant(false, "Expected prepareToHydrateHostTextInstance() to never be called. " + "This error is likely caused by a bug in React. Please file an issue."); - } - - var textInstance = fiber.stateNode; - var textContent = fiber.memoizedProps; - var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber); - { - if (shouldUpdate) { - var returnFiber = hydrationParentFiber; - - if (returnFiber !== null) { - switch (returnFiber.tag) { - case HostRoot: - { - var parentContainer = returnFiber.stateNode.containerInfo; - didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent); - break; - } - - case HostComponent: - { - var parentType = returnFiber.type; - var parentProps = returnFiber.memoizedProps; - var parentInstance = returnFiber.stateNode; - didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent); - break; - } - } - } - } - } - return shouldUpdate; - } - - function popToNextHostParent(fiber) { - var parent = fiber.return; - - while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot) { - parent = parent.return; - } - - hydrationParentFiber = parent; - } - - function popHydrationState(fiber) { - if (!supportsHydration) { - return false; - } - - if (fiber !== hydrationParentFiber) { - return false; - } - - if (!isHydrating) { - popToNextHostParent(fiber); - isHydrating = true; - return false; - } - - var type = fiber.type; - - if (fiber.tag !== HostComponent || type !== "head" && type !== "body" && !shouldSetTextContent(type, fiber.memoizedProps)) { - var nextInstance = nextHydratableInstance; - - while (nextInstance) { - deleteHydratableInstance(fiber, nextInstance); - nextInstance = getNextHydratableSibling(nextInstance); - } - } - - popToNextHostParent(fiber); - nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null; - return true; - } - - function resetHydrationState() { - if (!supportsHydration) { - return; - } - - hydrationParentFiber = null; - nextHydratableInstance = null; - isHydrating = false; - } - - var getCurrentFiberStackAddendum$1 = ReactDebugCurrentFiber.getCurrentFiberStackAddendum; - var didWarnAboutBadClass = void 0; - var didWarnAboutGetDerivedStateOnFunctionalComponent = void 0; - var didWarnAboutStatelessRefs = void 0; - { - didWarnAboutBadClass = {}; - didWarnAboutGetDerivedStateOnFunctionalComponent = {}; - didWarnAboutStatelessRefs = {}; - } - - function reconcileChildren(current, workInProgress, nextChildren) { - reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, workInProgress.expirationTime); - } - - function reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime) { - if (current === null) { - workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime); - } else { - workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderExpirationTime); - } - } - - function updateForwardRef(current, workInProgress) { - var render = workInProgress.type.render; - var nextProps = workInProgress.pendingProps; - var ref = workInProgress.ref; - - if (hasContextChanged()) {} else if (workInProgress.memoizedProps === nextProps) { - var currentRef = current !== null ? current.ref : null; - - if (ref === currentRef) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - } - - var nextChildren = void 0; - { - ReactCurrentOwner.current = workInProgress; - ReactDebugCurrentFiber.setCurrentPhase("render"); - nextChildren = render(nextProps, ref); - ReactDebugCurrentFiber.setCurrentPhase(null); - } - reconcileChildren(current, workInProgress, nextChildren); - memoizeProps(workInProgress, nextProps); - return workInProgress.child; - } - - function updateFragment(current, workInProgress) { - var nextChildren = workInProgress.pendingProps; - - if (hasContextChanged()) {} else if (workInProgress.memoizedProps === nextChildren) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - reconcileChildren(current, workInProgress, nextChildren); - memoizeProps(workInProgress, nextChildren); - return workInProgress.child; - } - - function updateMode(current, workInProgress) { - var nextChildren = workInProgress.pendingProps.children; - - if (hasContextChanged()) {} else if (nextChildren === null || workInProgress.memoizedProps === nextChildren) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - reconcileChildren(current, workInProgress, nextChildren); - memoizeProps(workInProgress, nextChildren); - return workInProgress.child; - } - - function updateProfiler(current, workInProgress) { - var nextProps = workInProgress.pendingProps; - - if (enableProfilerTimer) { - workInProgress.effectTag |= Update; - } - - if (workInProgress.memoizedProps === nextProps) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - var nextChildren = nextProps.children; - reconcileChildren(current, workInProgress, nextChildren); - memoizeProps(workInProgress, nextProps); - return workInProgress.child; - } - - function markRef(current, workInProgress) { - var ref = workInProgress.ref; - - if (current === null && ref !== null || current !== null && current.ref !== ref) { - workInProgress.effectTag |= Ref; - } - } - - function updateFunctionalComponent(current, workInProgress) { - var fn = workInProgress.type; - var nextProps = workInProgress.pendingProps; - - if (hasContextChanged()) {} else { - if (workInProgress.memoizedProps === nextProps) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - } - - var unmaskedContext = getUnmaskedContext(workInProgress); - var context = getMaskedContext(workInProgress, unmaskedContext); - var nextChildren = void 0; - { - ReactCurrentOwner.current = workInProgress; - ReactDebugCurrentFiber.setCurrentPhase("render"); - nextChildren = fn(nextProps, context); - ReactDebugCurrentFiber.setCurrentPhase(null); - } - workInProgress.effectTag |= PerformedWork; - reconcileChildren(current, workInProgress, nextChildren); - memoizeProps(workInProgress, nextProps); - return workInProgress.child; - } - - function updateClassComponent(current, workInProgress, renderExpirationTime) { - var hasContext = pushContextProvider(workInProgress); - var shouldUpdate = void 0; - - if (current === null) { - if (workInProgress.stateNode === null) { - constructClassInstance(workInProgress, workInProgress.pendingProps, renderExpirationTime); - mountClassInstance(workInProgress, renderExpirationTime); - shouldUpdate = true; - } else { - shouldUpdate = resumeMountClassInstance(workInProgress, renderExpirationTime); - } - } else { - shouldUpdate = updateClassInstance(current, workInProgress, renderExpirationTime); - } - - return finishClassComponent(current, workInProgress, shouldUpdate, hasContext, renderExpirationTime); - } - - function finishClassComponent(current, workInProgress, shouldUpdate, hasContext, renderExpirationTime) { - markRef(current, workInProgress); - var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect; - - if (!shouldUpdate && !didCaptureError) { - if (hasContext) { - invalidateContextProvider(workInProgress, false); - } - - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - var ctor = workInProgress.type; - var instance = workInProgress.stateNode; - ReactCurrentOwner.current = workInProgress; - var nextChildren = void 0; - - if (didCaptureError && (!enableGetDerivedStateFromCatch || typeof ctor.getDerivedStateFromCatch !== "function")) { - nextChildren = null; - - if (enableProfilerTimer) { - stopBaseRenderTimerIfRunning(); - } - } else { - { - ReactDebugCurrentFiber.setCurrentPhase("render"); - nextChildren = instance.render(); - - if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) { - instance.render(); - } - - ReactDebugCurrentFiber.setCurrentPhase(null); - } - } - - workInProgress.effectTag |= PerformedWork; - - if (didCaptureError) { - reconcileChildrenAtExpirationTime(current, workInProgress, null, renderExpirationTime); - workInProgress.child = null; - } - - reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime); - memoizeState(workInProgress, instance.state); - memoizeProps(workInProgress, instance.props); - - if (hasContext) { - invalidateContextProvider(workInProgress, true); - } - - return workInProgress.child; - } - - function pushHostRootContext(workInProgress) { - var root = workInProgress.stateNode; - - if (root.pendingContext) { - pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context); - } else if (root.context) { - pushTopLevelContextObject(workInProgress, root.context, false); - } - - pushHostContainer(workInProgress, root.containerInfo); - } - - function updateHostRoot(current, workInProgress, renderExpirationTime) { - pushHostRootContext(workInProgress); - var updateQueue = workInProgress.updateQueue; - - if (updateQueue !== null) { - var nextProps = workInProgress.pendingProps; - var prevState = workInProgress.memoizedState; - var prevChildren = prevState !== null ? prevState.element : null; - processUpdateQueue(workInProgress, updateQueue, nextProps, null, renderExpirationTime); - var nextState = workInProgress.memoizedState; - var nextChildren = nextState.element; - - if (nextChildren === prevChildren) { - resetHydrationState(); - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - var root = workInProgress.stateNode; - - if ((current === null || current.child === null) && root.hydrate && enterHydrationState(workInProgress)) { - workInProgress.effectTag |= Placement; - workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime); - } else { - resetHydrationState(); - reconcileChildren(current, workInProgress, nextChildren); - } - - return workInProgress.child; - } - - resetHydrationState(); - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - function updateHostComponent(current, workInProgress, renderExpirationTime) { - pushHostContext(workInProgress); - - if (current === null) { - tryToClaimNextHydratableInstance(workInProgress); - } - - var type = workInProgress.type; - var memoizedProps = workInProgress.memoizedProps; - var nextProps = workInProgress.pendingProps; - var prevProps = current !== null ? current.memoizedProps : null; - - if (hasContextChanged()) {} else if (memoizedProps === nextProps) { - var isHidden = workInProgress.mode & AsyncMode && shouldDeprioritizeSubtree(type, nextProps); - - if (isHidden) { - workInProgress.expirationTime = Never; - } - - if (!isHidden || renderExpirationTime !== Never) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - } - - var nextChildren = nextProps.children; - var isDirectTextChild = shouldSetTextContent(type, nextProps); - - if (isDirectTextChild) { - nextChildren = null; - } else if (prevProps && shouldSetTextContent(type, prevProps)) { - workInProgress.effectTag |= ContentReset; - } - - markRef(current, workInProgress); - - if (renderExpirationTime !== Never && workInProgress.mode & AsyncMode && shouldDeprioritizeSubtree(type, nextProps)) { - workInProgress.expirationTime = Never; - workInProgress.memoizedProps = nextProps; - return null; - } - - reconcileChildren(current, workInProgress, nextChildren); - memoizeProps(workInProgress, nextProps); - return workInProgress.child; - } - - function updateHostText(current, workInProgress) { - if (current === null) { - tryToClaimNextHydratableInstance(workInProgress); - } - - var nextProps = workInProgress.pendingProps; - memoizeProps(workInProgress, nextProps); - return null; - } - - function mountIndeterminateComponent(current, workInProgress, renderExpirationTime) { - invariant(current === null, "An indeterminate component should never have mounted. This error is " + "likely caused by a bug in React. Please file an issue."); - var fn = workInProgress.type; - var props = workInProgress.pendingProps; - var unmaskedContext = getUnmaskedContext(workInProgress); - var context = getMaskedContext(workInProgress, unmaskedContext); - var value = void 0; - { - if (fn.prototype && typeof fn.prototype.render === "function") { - var componentName = getComponentName(workInProgress) || "Unknown"; - - if (!didWarnAboutBadClass[componentName]) { - warning(false, "The <%s /> component appears to have a render method, but doesn't extend React.Component. " + "This is likely to cause errors. Change %s to extend React.Component instead.", componentName, componentName); - didWarnAboutBadClass[componentName] = true; - } - } - - if (workInProgress.mode & StrictMode) { - ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null); - } - - ReactCurrentOwner.current = workInProgress; - value = fn(props, context); - } - workInProgress.effectTag |= PerformedWork; - - if (typeof value === "object" && value !== null && typeof value.render === "function" && value.$$typeof === undefined) { - var Component = workInProgress.type; - workInProgress.tag = ClassComponent; - workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null; - var getDerivedStateFromProps = Component.getDerivedStateFromProps; - - if (typeof getDerivedStateFromProps === "function") { - applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, props); - } - - var hasContext = pushContextProvider(workInProgress); - adoptClassInstance(workInProgress, value); - mountClassInstance(workInProgress, renderExpirationTime); - return finishClassComponent(current, workInProgress, true, hasContext, renderExpirationTime); - } else { - workInProgress.tag = FunctionalComponent; - { - var _Component = workInProgress.type; - - if (_Component) { - !!_Component.childContextTypes ? warning(false, "%s(...): childContextTypes cannot be defined on a functional component.", _Component.displayName || _Component.name || "Component") : void 0; - } - - if (workInProgress.ref !== null) { - var info = ""; - var ownerName = ReactDebugCurrentFiber.getCurrentFiberOwnerName(); - - if (ownerName) { - info += "\n\nCheck the render method of `" + ownerName + "`."; - } - - var warningKey = ownerName || workInProgress._debugID || ""; - var debugSource = workInProgress._debugSource; - - if (debugSource) { - warningKey = debugSource.fileName + ":" + debugSource.lineNumber; - } - - if (!didWarnAboutStatelessRefs[warningKey]) { - didWarnAboutStatelessRefs[warningKey] = true; - warning(false, "Stateless function components cannot be given refs. " + "Attempts to access this ref will fail.%s%s", info, ReactDebugCurrentFiber.getCurrentFiberStackAddendum()); - } - } - - if (typeof fn.getDerivedStateFromProps === "function") { - var _componentName = getComponentName(workInProgress) || "Unknown"; - - if (!didWarnAboutGetDerivedStateOnFunctionalComponent[_componentName]) { - warning(false, "%s: Stateless functional components do not support getDerivedStateFromProps.", _componentName); - didWarnAboutGetDerivedStateOnFunctionalComponent[_componentName] = true; - } - } - } - reconcileChildren(current, workInProgress, value); - memoizeProps(workInProgress, props); - return workInProgress.child; - } - } - - function updateTimeoutComponent(current, workInProgress, renderExpirationTime) { - if (enableSuspense) { - var nextProps = workInProgress.pendingProps; - var prevProps = workInProgress.memoizedProps; - var prevDidTimeout = workInProgress.memoizedState; - var alreadyCaptured = (workInProgress.effectTag & DidCapture) === NoEffect; - var nextDidTimeout = !alreadyCaptured; - - if (hasContextChanged()) {} else if (nextProps === prevProps && nextDidTimeout === prevDidTimeout) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - var render = nextProps.children; - var nextChildren = render(nextDidTimeout); - workInProgress.memoizedProps = nextProps; - workInProgress.memoizedState = nextDidTimeout; - reconcileChildren(current, workInProgress, nextChildren); - return workInProgress.child; - } else { - return null; - } - } - - function updatePortalComponent(current, workInProgress, renderExpirationTime) { - pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); - var nextChildren = workInProgress.pendingProps; - - if (hasContextChanged()) {} else if (workInProgress.memoizedProps === nextChildren) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - if (current === null) { - workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime); - memoizeProps(workInProgress, nextChildren); - } else { - reconcileChildren(current, workInProgress, nextChildren); - memoizeProps(workInProgress, nextChildren); - } - - return workInProgress.child; - } - - function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) { - var fiber = workInProgress.child; - - if (fiber !== null) { - fiber.return = workInProgress; - } - - while (fiber !== null) { - var nextFiber = void 0; - - switch (fiber.tag) { - case ContextConsumer: - var observedBits = fiber.stateNode | 0; - - if (fiber.type === context && (observedBits & changedBits) !== 0) { - var node = fiber; - - while (node !== null) { - var alternate = node.alternate; - - if (node.expirationTime === NoWork || node.expirationTime > renderExpirationTime) { - node.expirationTime = renderExpirationTime; - - if (alternate !== null && (alternate.expirationTime === NoWork || alternate.expirationTime > renderExpirationTime)) { - alternate.expirationTime = renderExpirationTime; - } - } else if (alternate !== null && (alternate.expirationTime === NoWork || alternate.expirationTime > renderExpirationTime)) { - alternate.expirationTime = renderExpirationTime; - } else { - break; - } - - node = node.return; - } - - nextFiber = null; - } else { - nextFiber = fiber.child; - } - - break; - - case ContextProvider: - nextFiber = fiber.type === workInProgress.type ? null : fiber.child; - break; - - default: - nextFiber = fiber.child; - break; - } - - if (nextFiber !== null) { - nextFiber.return = fiber; - } else { - nextFiber = fiber; - - while (nextFiber !== null) { - if (nextFiber === workInProgress) { - nextFiber = null; - break; - } - - var sibling = nextFiber.sibling; - - if (sibling !== null) { - sibling.return = nextFiber.return; - nextFiber = sibling; - break; - } - - nextFiber = nextFiber.return; - } - } - - fiber = nextFiber; - } - } - - function updateContextProvider(current, workInProgress, renderExpirationTime) { - var providerType = workInProgress.type; - var context = providerType._context; - var newProps = workInProgress.pendingProps; - var oldProps = workInProgress.memoizedProps; - var canBailOnProps = true; - - if (hasContextChanged()) { - canBailOnProps = false; - } else if (oldProps === newProps) { - workInProgress.stateNode = 0; - pushProvider(workInProgress); - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - var newValue = newProps.value; - workInProgress.memoizedProps = newProps; - { - var providerPropTypes = workInProgress.type.propTypes; - - if (providerPropTypes) { - checkPropTypes(providerPropTypes, newProps, "prop", "Context.Provider", getCurrentFiberStackAddendum$1); - } - } - var changedBits = void 0; - - if (oldProps === null) { - changedBits = MAX_SIGNED_31_BIT_INT; - } else { - if (oldProps.value === newProps.value) { - if (oldProps.children === newProps.children && canBailOnProps) { - workInProgress.stateNode = 0; - pushProvider(workInProgress); - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - changedBits = 0; - } else { - var oldValue = oldProps.value; - - if (oldValue === newValue && (oldValue !== 0 || 1 / oldValue === 1 / newValue) || oldValue !== oldValue && newValue !== newValue) { - if (oldProps.children === newProps.children && canBailOnProps) { - workInProgress.stateNode = 0; - pushProvider(workInProgress); - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - changedBits = 0; - } else { - changedBits = typeof context._calculateChangedBits === "function" ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT; - { - !((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits) ? warning(false, "calculateChangedBits: Expected the return value to be a " + "31-bit integer. Instead received: %s", changedBits) : void 0; - } - changedBits |= 0; - - if (changedBits === 0) { - if (oldProps.children === newProps.children && canBailOnProps) { - workInProgress.stateNode = 0; - pushProvider(workInProgress); - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - } else { - propagateContextChange(workInProgress, context, changedBits, renderExpirationTime); - } - } - } - } - - workInProgress.stateNode = changedBits; - pushProvider(workInProgress); - var newChildren = newProps.children; - reconcileChildren(current, workInProgress, newChildren); - return workInProgress.child; - } - - function updateContextConsumer(current, workInProgress, renderExpirationTime) { - var context = workInProgress.type; - var newProps = workInProgress.pendingProps; - var oldProps = workInProgress.memoizedProps; - var newValue = getContextCurrentValue(context); - var changedBits = getContextChangedBits(context); - - if (hasContextChanged()) {} else if (changedBits === 0 && oldProps === newProps) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - workInProgress.memoizedProps = newProps; - var observedBits = newProps.unstable_observedBits; - - if (observedBits === undefined || observedBits === null) { - observedBits = MAX_SIGNED_31_BIT_INT; - } - - workInProgress.stateNode = observedBits; - - if ((changedBits & observedBits) !== 0) { - propagateContextChange(workInProgress, context, changedBits, renderExpirationTime); - } else if (oldProps === newProps) { - return bailoutOnAlreadyFinishedWork(current, workInProgress); - } - - var render = newProps.children; - { - !(typeof render === "function") ? warning(false, "A context consumer was rendered with multiple children, or a child " + "that isn't a function. A context consumer expects a single child " + "that is a function. If you did pass a function, make sure there " + "is no trailing or leading whitespace around it.") : void 0; - } - var newChildren = void 0; - { - ReactCurrentOwner.current = workInProgress; - ReactDebugCurrentFiber.setCurrentPhase("render"); - newChildren = render(newValue); - ReactDebugCurrentFiber.setCurrentPhase(null); - } - workInProgress.effectTag |= PerformedWork; - reconcileChildren(current, workInProgress, newChildren); - return workInProgress.child; - } - - function bailoutOnAlreadyFinishedWork(current, workInProgress) { - cancelWorkTimer(workInProgress); - - if (enableProfilerTimer) { - stopBaseRenderTimerIfRunning(); - } - - cloneChildFibers(current, workInProgress); - return workInProgress.child; - } - - function bailoutOnLowPriority(current, workInProgress) { - cancelWorkTimer(workInProgress); - - if (enableProfilerTimer) { - stopBaseRenderTimerIfRunning(); - } - - switch (workInProgress.tag) { - case HostRoot: - pushHostRootContext(workInProgress); - break; - - case ClassComponent: - pushContextProvider(workInProgress); - break; - - case HostPortal: - pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); - break; - - case ContextProvider: - pushProvider(workInProgress); - break; - } - - return null; - } - - function memoizeProps(workInProgress, nextProps) { - workInProgress.memoizedProps = nextProps; - } - - function memoizeState(workInProgress, nextState) { - workInProgress.memoizedState = nextState; - } - - function beginWork(current, workInProgress, renderExpirationTime) { - if (enableProfilerTimer) { - if (workInProgress.mode & ProfileMode) { - markActualRenderTimeStarted(workInProgress); - } - } - - if (workInProgress.expirationTime === NoWork || workInProgress.expirationTime > renderExpirationTime) { - return bailoutOnLowPriority(current, workInProgress); - } - - switch (workInProgress.tag) { - case IndeterminateComponent: - return mountIndeterminateComponent(current, workInProgress, renderExpirationTime); - - case FunctionalComponent: - return updateFunctionalComponent(current, workInProgress); - - case ClassComponent: - return updateClassComponent(current, workInProgress, renderExpirationTime); - - case HostRoot: - return updateHostRoot(current, workInProgress, renderExpirationTime); - - case HostComponent: - return updateHostComponent(current, workInProgress, renderExpirationTime); - - case HostText: - return updateHostText(current, workInProgress); - - case TimeoutComponent: - return updateTimeoutComponent(current, workInProgress, renderExpirationTime); - - case HostPortal: - return updatePortalComponent(current, workInProgress, renderExpirationTime); - - case ForwardRef: - return updateForwardRef(current, workInProgress); - - case Fragment: - return updateFragment(current, workInProgress); - - case Mode: - return updateMode(current, workInProgress); - - case Profiler: - return updateProfiler(current, workInProgress); - - case ContextProvider: - return updateContextProvider(current, workInProgress, renderExpirationTime); - - case ContextConsumer: - return updateContextConsumer(current, workInProgress, renderExpirationTime); - - default: - invariant(false, "Unknown unit of work tag. This error is likely caused by a bug in " + "React. Please file an issue."); - } - } - - function markUpdate(workInProgress) { - workInProgress.effectTag |= Update; - } - - function markRef$1(workInProgress) { - workInProgress.effectTag |= Ref; - } - - function appendAllChildren(parent, workInProgress) { - var node = workInProgress.child; - - while (node !== null) { - if (node.tag === HostComponent || node.tag === HostText) { - appendInitialChild(parent, node.stateNode); - } else if (node.tag === HostPortal) {} else if (node.child !== null) { - node.child.return = node; - node = node.child; - continue; - } - - if (node === workInProgress) { - return; - } - - while (node.sibling === null) { - if (node.return === null || node.return === workInProgress) { - return; - } - - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - } - - var updateHostContainer = void 0; - var updateHostComponent$1 = void 0; - var updateHostText$1 = void 0; - - if (supportsMutation) { - updateHostContainer = function updateHostContainer(workInProgress) {}; - - updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext) { - workInProgress.updateQueue = updatePayload; - - if (updatePayload) { - markUpdate(workInProgress); - } - }; - - updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { - if (oldText !== newText) { - markUpdate(workInProgress); - } - }; - } else if (supportsPersistence) { - var appendAllChildrenToContainer = function appendAllChildrenToContainer(containerChildSet, workInProgress) { - var node = workInProgress.child; - - while (node !== null) { - if (node.tag === HostComponent || node.tag === HostText) { - appendChildToContainerChildSet(containerChildSet, node.stateNode); - } else if (node.tag === HostPortal) {} else if (node.child !== null) { - node.child.return = node; - node = node.child; - continue; - } - - if (node === workInProgress) { - return; - } - - while (node.sibling === null) { - if (node.return === null || node.return === workInProgress) { - return; - } - - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - }; - - updateHostContainer = function updateHostContainer(workInProgress) { - var portalOrRoot = workInProgress.stateNode; - var childrenUnchanged = workInProgress.firstEffect === null; - - if (childrenUnchanged) {} else { - var container = portalOrRoot.containerInfo; - var newChildSet = createContainerChildSet(container); - appendAllChildrenToContainer(newChildSet, workInProgress); - portalOrRoot.pendingChildren = newChildSet; - markUpdate(workInProgress); - finalizeContainerChildren(container, newChildSet); - } - }; - - updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext) { - var childrenUnchanged = workInProgress.firstEffect === null; - var currentInstance = current.stateNode; - - if (childrenUnchanged && updatePayload === null) { - workInProgress.stateNode = currentInstance; - } else { - var recyclableInstance = workInProgress.stateNode; - var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged, recyclableInstance); - - if (finalizeInitialChildren(newInstance, type, newProps, rootContainerInstance, currentHostContext)) { - markUpdate(workInProgress); - } - - workInProgress.stateNode = newInstance; - - if (childrenUnchanged) { - markUpdate(workInProgress); - } else { - appendAllChildren(newInstance, workInProgress); - } - } - }; - - updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { - if (oldText !== newText) { - var rootContainerInstance = getRootHostContainer(); - var currentHostContext = getHostContext(); - workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress); - markUpdate(workInProgress); - } - }; - } else { - updateHostContainer = function updateHostContainer(workInProgress) {}; - - updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext) {}; - - updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) {}; - } - - function completeWork(current, workInProgress, renderExpirationTime) { - var newProps = workInProgress.pendingProps; - - if (enableProfilerTimer) { - if (workInProgress.mode & ProfileMode) { - recordElapsedActualRenderTime(workInProgress); - } - } - - switch (workInProgress.tag) { - case FunctionalComponent: - return null; - - case ClassComponent: - { - popContextProvider(workInProgress); - return null; - } - - case HostRoot: - { - popHostContainer(workInProgress); - popTopLevelContextObject(workInProgress); - var fiberRoot = workInProgress.stateNode; - - if (fiberRoot.pendingContext) { - fiberRoot.context = fiberRoot.pendingContext; - fiberRoot.pendingContext = null; - } - - if (current === null || current.child === null) { - popHydrationState(workInProgress); - workInProgress.effectTag &= ~Placement; - } - - updateHostContainer(workInProgress); - return null; - } - - case HostComponent: - { - popHostContext(workInProgress); - var rootContainerInstance = getRootHostContainer(); - var type = workInProgress.type; - - if (current !== null && workInProgress.stateNode != null) { - var oldProps = current.memoizedProps; - var instance = workInProgress.stateNode; - var currentHostContext = getHostContext(); - var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); - updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext); - - if (current.ref !== workInProgress.ref) { - markRef$1(workInProgress); - } - } else { - if (!newProps) { - invariant(workInProgress.stateNode !== null, "We must have new props for new mounts. This error is likely " + "caused by a bug in React. Please file an issue."); - return null; - } - - var _currentHostContext = getHostContext(); - - var wasHydrated = popHydrationState(workInProgress); - - if (wasHydrated) { - if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, _currentHostContext)) { - markUpdate(workInProgress); - } - } else { - var _instance = createInstance(type, newProps, rootContainerInstance, _currentHostContext, workInProgress); - - appendAllChildren(_instance, workInProgress); - - if (finalizeInitialChildren(_instance, type, newProps, rootContainerInstance, _currentHostContext)) { - markUpdate(workInProgress); - } - - workInProgress.stateNode = _instance; - } - - if (workInProgress.ref !== null) { - markRef$1(workInProgress); - } - } - - return null; - } - - case HostText: - { - var newText = newProps; - - if (current && workInProgress.stateNode != null) { - var oldText = current.memoizedProps; - updateHostText$1(current, workInProgress, oldText, newText); - } else { - if (typeof newText !== "string") { - invariant(workInProgress.stateNode !== null, "We must have new props for new mounts. This error is likely " + "caused by a bug in React. Please file an issue."); - return null; - } - - var _rootContainerInstance = getRootHostContainer(); - - var _currentHostContext2 = getHostContext(); - - var _wasHydrated = popHydrationState(workInProgress); - - if (_wasHydrated) { - if (prepareToHydrateHostTextInstance(workInProgress)) { - markUpdate(workInProgress); - } - } else { - workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext2, workInProgress); - } - } - - return null; - } - - case ForwardRef: - return null; - - case TimeoutComponent: - return null; - - case Fragment: - return null; - - case Mode: - return null; - - case Profiler: - return null; - - case HostPortal: - popHostContainer(workInProgress); - updateHostContainer(workInProgress); - return null; - - case ContextProvider: - popProvider(workInProgress); - return null; - - case ContextConsumer: - return null; - - case IndeterminateComponent: - invariant(false, "An indeterminate component should have become determinate before " + "completing. This error is likely caused by a bug in React. Please " + "file an issue."); - - default: - invariant(false, "Unknown unit of work tag. This error is likely caused by a bug in " + "React. Please file an issue."); - } - } - - function showErrorDialog(capturedError) { - var componentStack = capturedError.componentStack, - error = capturedError.error; - var errorToHandle = void 0; - - if (error instanceof Error) { - var message = error.message, - name = error.name; - var summary = message ? name + ": " + message : name; - errorToHandle = error; - - try { - errorToHandle.message = summary + "\n\nThis error is located at:" + componentStack; - } catch (e) {} - } else if (typeof error === "string") { - errorToHandle = new Error(error + "\n\nThis error is located at:" + componentStack); - } else { - errorToHandle = new Error("Unspecified error at:" + componentStack); - } - - ExceptionsManager.handleException(errorToHandle, false); - return false; - } - - function logCapturedError(capturedError) { - var logError = showErrorDialog(capturedError); - - if (logError === false) { - return; - } - - var error = capturedError.error; - var suppressLogging = error && error.suppressReactErrorLogging; - - if (suppressLogging) { - return; - } - - { - var componentName = capturedError.componentName, - componentStack = capturedError.componentStack, - errorBoundaryName = capturedError.errorBoundaryName, - errorBoundaryFound = capturedError.errorBoundaryFound, - willRetry = capturedError.willRetry; - var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : "The above error occurred in one of your React components:"; - var errorBoundaryMessage = void 0; - - if (errorBoundaryFound && errorBoundaryName) { - if (willRetry) { - errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + "."); - } else { - errorBoundaryMessage = "This error was initially handled by the error boundary " + errorBoundaryName + ".\n" + "Recreating the tree from scratch failed so React will unmount the tree."; - } - } else { - errorBoundaryMessage = "Consider adding an error boundary to your tree to customize error handling behavior.\n" + "Visit https://fb.me/react-error-boundaries to learn more about error boundaries."; - } - - var combinedMessage = "" + componentNameMessage + componentStack + "\n\n" + ("" + errorBoundaryMessage); - console.error(combinedMessage); - } - } - - var invokeGuardedCallback$3 = ReactErrorUtils.invokeGuardedCallback; - var hasCaughtError$1 = ReactErrorUtils.hasCaughtError; - var clearCaughtError$1 = ReactErrorUtils.clearCaughtError; - var didWarnAboutUndefinedSnapshotBeforeUpdate = null; - { - didWarnAboutUndefinedSnapshotBeforeUpdate = new Set(); - } - - function logError(boundary, errorInfo) { - var source = errorInfo.source; - var stack = errorInfo.stack; - - if (stack === null && source !== null) { - stack = getStackAddendumByWorkInProgressFiber(source); - } - - var capturedError = { - componentName: source !== null ? getComponentName(source) : null, - componentStack: stack !== null ? stack : "", - error: errorInfo.value, - errorBoundary: null, - errorBoundaryName: null, - errorBoundaryFound: false, - willRetry: false - }; - - if (boundary !== null && boundary.tag === ClassComponent) { - capturedError.errorBoundary = boundary.stateNode; - capturedError.errorBoundaryName = getComponentName(boundary); - capturedError.errorBoundaryFound = true; - capturedError.willRetry = true; - } - - try { - logCapturedError(capturedError); - } catch (e) { - var suppressLogging = e && e.suppressReactErrorLogging; - - if (!suppressLogging) { - console.error(e); - } - } - } - - var callComponentWillUnmountWithTimer = function callComponentWillUnmountWithTimer(current, instance) { - startPhaseTimer(current, "componentWillUnmount"); - instance.props = current.memoizedProps; - instance.state = current.memoizedState; - instance.componentWillUnmount(); - stopPhaseTimer(); - }; - - function safelyCallComponentWillUnmount(current, instance) { - { - invokeGuardedCallback$3(null, callComponentWillUnmountWithTimer, null, current, instance); - - if (hasCaughtError$1()) { - var unmountError = clearCaughtError$1(); - captureCommitPhaseError(current, unmountError); - } - } - } - - function safelyDetachRef(current) { - var ref = current.ref; - - if (ref !== null) { - if (typeof ref === "function") { - { - invokeGuardedCallback$3(null, ref, null, null); - - if (hasCaughtError$1()) { - var refError = clearCaughtError$1(); - captureCommitPhaseError(current, refError); - } - } - } else { - ref.current = null; - } - } - } - - function commitBeforeMutationLifeCycles(current, finishedWork) { - switch (finishedWork.tag) { - case ClassComponent: - { - if (finishedWork.effectTag & Snapshot) { - if (current !== null) { - var prevProps = current.memoizedProps; - var prevState = current.memoizedState; - startPhaseTimer(finishedWork, "getSnapshotBeforeUpdate"); - var instance = finishedWork.stateNode; - instance.props = finishedWork.memoizedProps; - instance.state = finishedWork.memoizedState; - var snapshot = instance.getSnapshotBeforeUpdate(prevProps, prevState); - { - var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate; - - if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) { - didWarnSet.add(finishedWork.type); - warning(false, "%s.getSnapshotBeforeUpdate(): A snapshot value (or null) " + "must be returned. You have returned undefined.", getComponentName(finishedWork)); - } - } - instance.__reactInternalSnapshotBeforeUpdate = snapshot; - stopPhaseTimer(); - } - } - - return; - } - - case HostRoot: - case HostComponent: - case HostText: - case HostPortal: - return; - - default: - { - invariant(false, "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue."); - } - } - } - - function commitLifeCycles(finishedRoot, current, finishedWork, currentTime, committedExpirationTime) { - switch (finishedWork.tag) { - case ClassComponent: - { - var instance = finishedWork.stateNode; - - if (finishedWork.effectTag & Update) { - if (current === null) { - startPhaseTimer(finishedWork, "componentDidMount"); - instance.props = finishedWork.memoizedProps; - instance.state = finishedWork.memoizedState; - instance.componentDidMount(); - stopPhaseTimer(); - } else { - var prevProps = current.memoizedProps; - var prevState = current.memoizedState; - startPhaseTimer(finishedWork, "componentDidUpdate"); - instance.props = finishedWork.memoizedProps; - instance.state = finishedWork.memoizedState; - instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate); - stopPhaseTimer(); - } - } - - var updateQueue = finishedWork.updateQueue; - - if (updateQueue !== null) { - instance.props = finishedWork.memoizedProps; - instance.state = finishedWork.memoizedState; - commitUpdateQueue(finishedWork, updateQueue, instance, committedExpirationTime); - } - - return; - } - - case HostRoot: - { - var _updateQueue = finishedWork.updateQueue; - - if (_updateQueue !== null) { - var _instance = null; - - if (finishedWork.child !== null) { - switch (finishedWork.child.tag) { - case HostComponent: - _instance = getPublicInstance(finishedWork.child.stateNode); - break; - - case ClassComponent: - _instance = finishedWork.child.stateNode; - break; - } - } - - commitUpdateQueue(finishedWork, _updateQueue, _instance, committedExpirationTime); - } - - return; - } - - case HostComponent: - { - var _instance2 = finishedWork.stateNode; - - if (current === null && finishedWork.effectTag & Update) { - var type = finishedWork.type; - var props = finishedWork.memoizedProps; - commitMount(_instance2, type, props, finishedWork); - } - - return; - } - - case HostText: - { - return; - } - - case HostPortal: - { - return; - } - - case Profiler: - { - return; - } - - case TimeoutComponent: - { - return; - } - - default: - { - invariant(false, "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue."); - } - } - } - - function commitAttachRef(finishedWork) { - var ref = finishedWork.ref; - - if (ref !== null) { - var instance = finishedWork.stateNode; - var instanceToUse = void 0; - - switch (finishedWork.tag) { - case HostComponent: - instanceToUse = getPublicInstance(instance); - break; - - default: - instanceToUse = instance; - } - - if (typeof ref === "function") { - ref(instanceToUse); - } else { - { - if (!ref.hasOwnProperty("current")) { - warning(false, "Unexpected ref object provided for %s. " + "Use either a ref-setter function or React.createRef().%s", getComponentName(finishedWork), getStackAddendumByWorkInProgressFiber(finishedWork)); - } - } - ref.current = instanceToUse; - } - } - } - - function commitDetachRef(current) { - var currentRef = current.ref; - - if (currentRef !== null) { - if (typeof currentRef === "function") { - currentRef(null); - } else { - currentRef.current = null; - } - } - } - - function commitUnmount(current) { - if (typeof onCommitUnmount === "function") { - onCommitUnmount(current); - } - - switch (current.tag) { - case ClassComponent: - { - safelyDetachRef(current); - var instance = current.stateNode; - - if (typeof instance.componentWillUnmount === "function") { - safelyCallComponentWillUnmount(current, instance); - } - - return; - } - - case HostComponent: - { - safelyDetachRef(current); - return; - } - - case HostPortal: - { - if (supportsMutation) { - unmountHostComponents(current); - } else if (supportsPersistence) { - emptyPortalContainer(current); - } - - return; - } - } - } - - function commitNestedUnmounts(root) { - var node = root; - - while (true) { - commitUnmount(node); - - if (node.child !== null && (!supportsMutation || node.tag !== HostPortal)) { - node.child.return = node; - node = node.child; - continue; - } - - if (node === root) { - return; - } - - while (node.sibling === null) { - if (node.return === null || node.return === root) { - return; - } - - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - } - - function detachFiber(current) { - current.return = null; - current.child = null; - - if (current.alternate) { - current.alternate.child = null; - current.alternate.return = null; - } - } - - function emptyPortalContainer(current) { - if (!supportsPersistence) { - return; - } - - var portal = current.stateNode; - var containerInfo = portal.containerInfo; - var emptyChildSet = createContainerChildSet(containerInfo); - } - - function commitContainer(finishedWork) { - if (!supportsPersistence) { - return; - } - - switch (finishedWork.tag) { - case ClassComponent: - { - return; - } - - case HostComponent: - { - return; - } - - case HostText: - { - return; - } - - case HostRoot: - case HostPortal: - { - var portalOrRoot = finishedWork.stateNode; - var containerInfo = portalOrRoot.containerInfo, - _pendingChildren = portalOrRoot.pendingChildren; - return; - } - - default: - { - invariant(false, "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue."); - } - } - } - - function getHostParentFiber(fiber) { - var parent = fiber.return; - - while (parent !== null) { - if (isHostParent(parent)) { - return parent; - } - - parent = parent.return; - } - - invariant(false, "Expected to find a host parent. This error is likely caused by a bug " + "in React. Please file an issue."); - } - - function isHostParent(fiber) { - return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal; - } - - function getHostSibling(fiber) { - var node = fiber; - - siblings: while (true) { - while (node.sibling === null) { - if (node.return === null || isHostParent(node.return)) { - return null; - } - - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - - while (node.tag !== HostComponent && node.tag !== HostText) { - if (node.effectTag & Placement) { - continue siblings; - } - - if (node.child === null || node.tag === HostPortal) { - continue siblings; - } else { - node.child.return = node; - node = node.child; - } - } - - if (!(node.effectTag & Placement)) { - return node.stateNode; - } - } - } - - function commitPlacement(finishedWork) { - if (!supportsMutation) { - return; - } - - var parentFiber = getHostParentFiber(finishedWork); - var parent = void 0; - var isContainer = void 0; - - switch (parentFiber.tag) { - case HostComponent: - parent = parentFiber.stateNode; - isContainer = false; - break; - - case HostRoot: - parent = parentFiber.stateNode.containerInfo; - isContainer = true; - break; - - case HostPortal: - parent = parentFiber.stateNode.containerInfo; - isContainer = true; - break; - - default: - invariant(false, "Invalid host parent fiber. This error is likely caused by a bug " + "in React. Please file an issue."); - } - - if (parentFiber.effectTag & ContentReset) { - resetTextContent(parent); - parentFiber.effectTag &= ~ContentReset; - } - - var before = getHostSibling(finishedWork); - var node = finishedWork; - - while (true) { - if (node.tag === HostComponent || node.tag === HostText) { - if (before) { - if (isContainer) { - insertInContainerBefore(parent, node.stateNode, before); - } else { - insertBefore(parent, node.stateNode, before); - } - } else { - if (isContainer) { - appendChildToContainer(parent, node.stateNode); - } else { - appendChild$1(parent, node.stateNode); - } - } - } else if (node.tag === HostPortal) {} else if (node.child !== null) { - node.child.return = node; - node = node.child; - continue; - } - - if (node === finishedWork) { - return; - } - - while (node.sibling === null) { - if (node.return === null || node.return === finishedWork) { - return; - } - - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - } - - function unmountHostComponents(current) { - var node = current; - var currentParentIsValid = false; - var currentParent = void 0; - var currentParentIsContainer = void 0; - - while (true) { - if (!currentParentIsValid) { - var parent = node.return; - - findParent: while (true) { - invariant(parent !== null, "Expected to find a host parent. This error is likely caused by " + "a bug in React. Please file an issue."); - - switch (parent.tag) { - case HostComponent: - currentParent = parent.stateNode; - currentParentIsContainer = false; - break findParent; - - case HostRoot: - currentParent = parent.stateNode.containerInfo; - currentParentIsContainer = true; - break findParent; - - case HostPortal: - currentParent = parent.stateNode.containerInfo; - currentParentIsContainer = true; - break findParent; - } - - parent = parent.return; - } - - currentParentIsValid = true; - } - - if (node.tag === HostComponent || node.tag === HostText) { - commitNestedUnmounts(node); - - if (currentParentIsContainer) { - removeChildFromContainer(currentParent, node.stateNode); - } else { - removeChild(currentParent, node.stateNode); - } - } else if (node.tag === HostPortal) { - currentParent = node.stateNode.containerInfo; - - if (node.child !== null) { - node.child.return = node; - node = node.child; - continue; - } - } else { - commitUnmount(node); - - if (node.child !== null) { - node.child.return = node; - node = node.child; - continue; - } - } - - if (node === current) { - return; - } - - while (node.sibling === null) { - if (node.return === null || node.return === current) { - return; - } - - node = node.return; - - if (node.tag === HostPortal) { - currentParentIsValid = false; - } - } - - node.sibling.return = node.return; - node = node.sibling; - } - } - - function commitDeletion(current) { - if (supportsMutation) { - unmountHostComponents(current); - } else { - commitNestedUnmounts(current); - } - - detachFiber(current); - } - - function commitWork(current, finishedWork) { - if (!supportsMutation) { - commitContainer(finishedWork); - return; - } - - switch (finishedWork.tag) { - case ClassComponent: - { - return; - } - - case HostComponent: - { - var instance = finishedWork.stateNode; - - if (instance != null) { - var newProps = finishedWork.memoizedProps; - var oldProps = current !== null ? current.memoizedProps : newProps; - var type = finishedWork.type; - var updatePayload = finishedWork.updateQueue; - finishedWork.updateQueue = null; - - if (updatePayload !== null) { - commitUpdate(instance, updatePayload, type, oldProps, newProps, finishedWork); - } - } - - return; - } - - case HostText: - { - invariant(finishedWork.stateNode !== null, "This should have a text node initialized. This error is likely " + "caused by a bug in React. Please file an issue."); - var textInstance = finishedWork.stateNode; - var newText = finishedWork.memoizedProps; - var oldText = current !== null ? current.memoizedProps : newText; - commitTextUpdate(textInstance, oldText, newText); - return; - } - - case HostRoot: - { - return; - } - - case Profiler: - { - if (enableProfilerTimer) { - var onRender = finishedWork.memoizedProps.onRender; - onRender(finishedWork.memoizedProps.id, current === null ? "mount" : "update", finishedWork.actualDuration, finishedWork.treeBaseTime, finishedWork.actualStartTime, getCommitTime()); - } - - return; - } - - case TimeoutComponent: - { - return; - } - - default: - { - invariant(false, "This unit of work tag should not have side-effects. This error is " + "likely caused by a bug in React. Please file an issue."); - } - } - } - - function commitResetTextContent(current) { - if (!supportsMutation) { - return; - } - - resetTextContent(current.stateNode); - } - - function createRootErrorUpdate(fiber, errorInfo, expirationTime) { - var update = createUpdate(expirationTime); - update.tag = CaptureUpdate; - update.payload = { - element: null - }; - var error = errorInfo.value; - - update.callback = function () { - onUncaughtError(error); - logError(fiber, errorInfo); - }; - - return update; - } - - function createClassErrorUpdate(fiber, errorInfo, expirationTime) { - var update = createUpdate(expirationTime); - update.tag = CaptureUpdate; - var getDerivedStateFromCatch = fiber.type.getDerivedStateFromCatch; - - if (enableGetDerivedStateFromCatch && typeof getDerivedStateFromCatch === "function") { - var error = errorInfo.value; - - update.payload = function () { - return getDerivedStateFromCatch(error); - }; - } - - var inst = fiber.stateNode; - - if (inst !== null && typeof inst.componentDidCatch === "function") { - update.callback = function callback() { - if (!enableGetDerivedStateFromCatch || getDerivedStateFromCatch !== "function") { - markLegacyErrorBoundaryAsFailed(this); - } - - var error = errorInfo.value; - var stack = errorInfo.stack; - logError(fiber, errorInfo); - this.componentDidCatch(error, { - componentStack: stack !== null ? stack : "" - }); - }; - } - - return update; - } - - function schedulePing(finishedWork) { - var currentTime = recalculateCurrentTime(); - var expirationTime = computeExpirationForFiber(currentTime, finishedWork); - var recoveryUpdate = createUpdate(expirationTime); - enqueueUpdate(finishedWork, recoveryUpdate, expirationTime); - scheduleWork(finishedWork, expirationTime); - } - - function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime, currentTimeMs) { - sourceFiber.effectTag |= Incomplete; - sourceFiber.firstEffect = sourceFiber.lastEffect = null; - - if (enableSuspense && value !== null && typeof value === "object" && typeof value.then === "function") { - var thenable = value; - var expirationTimeMs = expirationTimeToMs(renderExpirationTime); - var startTimeMs = expirationTimeMs - 5000; - var elapsedMs = currentTimeMs - startTimeMs; - - if (elapsedMs < 0) { - elapsedMs = 0; - } - - var remainingTimeMs = expirationTimeMs - currentTimeMs; - var _workInProgress = returnFiber; - var earliestTimeoutMs = -1; - - searchForEarliestTimeout: do { - if (_workInProgress.tag === TimeoutComponent) { - var current = _workInProgress.alternate; - - if (current !== null && current.memoizedState === true) { - earliestTimeoutMs = 0; - break searchForEarliestTimeout; - } - - var timeoutPropMs = _workInProgress.pendingProps.ms; - - if (typeof timeoutPropMs === "number") { - if (timeoutPropMs <= 0) { - earliestTimeoutMs = 0; - break searchForEarliestTimeout; - } else if (earliestTimeoutMs === -1 || timeoutPropMs < earliestTimeoutMs) { - earliestTimeoutMs = timeoutPropMs; - } - } else if (earliestTimeoutMs === -1) { - earliestTimeoutMs = remainingTimeMs; - } - } - - _workInProgress = _workInProgress.return; - } while (_workInProgress !== null); - - var msUntilTimeout = earliestTimeoutMs - elapsedMs; - - if (renderExpirationTime === Never || msUntilTimeout > 0) { - markTimeout(root, thenable, msUntilTimeout, renderExpirationTime); - - var onResolveOrReject = function onResolveOrReject() { - retrySuspendedRoot(root, renderExpirationTime); - }; - - thenable.then(onResolveOrReject, onResolveOrReject); - return; - } else { - _workInProgress = returnFiber; - - do { - switch (_workInProgress.tag) { - case HostRoot: - { - var message = renderExpirationTime === Sync ? "A synchronous update was suspended, but no fallback UI " + "was provided." : "An update was suspended for longer than the timeout, " + "but no fallback UI was provided."; - value = new Error(message); - break; - } - - case TimeoutComponent: - { - if ((_workInProgress.effectTag & DidCapture) === NoEffect) { - _workInProgress.effectTag |= ShouldCapture; - - var _onResolveOrReject = schedulePing.bind(null, _workInProgress); - - thenable.then(_onResolveOrReject, _onResolveOrReject); - return; - } - - break; - } - } - - _workInProgress = _workInProgress.return; - } while (_workInProgress !== null); - } - } else { - markError(root); - - if (!root.didError && renderExpirationTime !== Sync || hasLowerPriorityWork(root, renderExpirationTime)) { - return; - } - } - - value = createCapturedValue(value, sourceFiber); - var workInProgress = returnFiber; - - do { - switch (workInProgress.tag) { - case HostRoot: - { - var _errorInfo = value; - workInProgress.effectTag |= ShouldCapture; - var update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime); - enqueueCapturedUpdate(workInProgress, update, renderExpirationTime); - return; - } - - case ClassComponent: - var errorInfo = value; - var ctor = workInProgress.type; - var instance = workInProgress.stateNode; - - if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromCatch === "function" && enableGetDerivedStateFromCatch || instance !== null && typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance))) { - workInProgress.effectTag |= ShouldCapture; - - var _update = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime); - - enqueueCapturedUpdate(workInProgress, _update, renderExpirationTime); - return; - } - - break; - - default: - break; - } - - workInProgress = workInProgress.return; - } while (workInProgress !== null); - } - - function unwindWork(workInProgress, renderExpirationTime) { - if (enableProfilerTimer) { - if (workInProgress.mode & ProfileMode) { - recordElapsedActualRenderTime(workInProgress); - } - } - - switch (workInProgress.tag) { - case ClassComponent: - { - popContextProvider(workInProgress); - var effectTag = workInProgress.effectTag; - - if (effectTag & ShouldCapture) { - workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture; - return workInProgress; - } - - return null; - } - - case HostRoot: - { - popHostContainer(workInProgress); - popTopLevelContextObject(workInProgress); - var _effectTag = workInProgress.effectTag; - - if (_effectTag & ShouldCapture) { - workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture; - return workInProgress; - } - - return null; - } - - case HostComponent: - { - popHostContext(workInProgress); - return null; - } - - case TimeoutComponent: - { - var _effectTag2 = workInProgress.effectTag; - - if (_effectTag2 & ShouldCapture) { - workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture; - return workInProgress; - } - - return null; - } - - case HostPortal: - popHostContainer(workInProgress); - return null; - - case ContextProvider: - popProvider(workInProgress); - return null; - - default: - return null; - } - } - - function unwindInterruptedWork(interruptedWork) { - if (enableProfilerTimer) { - if (interruptedWork.mode & ProfileMode) { - resumeActualRenderTimerIfPaused(); - recordElapsedActualRenderTime(interruptedWork); - } - } - - switch (interruptedWork.tag) { - case ClassComponent: - { - popContextProvider(interruptedWork); - break; - } - - case HostRoot: - { - popHostContainer(interruptedWork); - popTopLevelContextObject(interruptedWork); - break; - } - - case HostComponent: - { - popHostContext(interruptedWork); - break; - } - - case HostPortal: - popHostContainer(interruptedWork); - break; - - case ContextProvider: - popProvider(interruptedWork); - break; - - default: - break; - } - } - - var invokeGuardedCallback$2 = ReactErrorUtils.invokeGuardedCallback; - var hasCaughtError = ReactErrorUtils.hasCaughtError; - var clearCaughtError = ReactErrorUtils.clearCaughtError; - var didWarnAboutStateTransition = void 0; - var didWarnSetStateChildContext = void 0; - var warnAboutUpdateOnUnmounted = void 0; - var warnAboutInvalidUpdates = void 0; - { - didWarnAboutStateTransition = false; - didWarnSetStateChildContext = false; - var didWarnStateUpdateForUnmountedComponent = {}; - - warnAboutUpdateOnUnmounted = function warnAboutUpdateOnUnmounted(fiber) { - var componentName = getComponentName(fiber) || "ReactClass"; - - if (didWarnStateUpdateForUnmountedComponent[componentName]) { - return; - } - - warning(false, "Can't call setState (or forceUpdate) on an unmounted component. This " + "is a no-op, but it indicates a memory leak in your application. To " + "fix, cancel all subscriptions and asynchronous tasks in the " + "componentWillUnmount method.%s", getStackAddendumByWorkInProgressFiber(fiber)); - didWarnStateUpdateForUnmountedComponent[componentName] = true; - }; - - warnAboutInvalidUpdates = function warnAboutInvalidUpdates(instance) { - switch (ReactDebugCurrentFiber.phase) { - case "getChildContext": - if (didWarnSetStateChildContext) { - return; - } - - warning(false, "setState(...): Cannot call setState() inside getChildContext()"); - didWarnSetStateChildContext = true; - break; - - case "render": - if (didWarnAboutStateTransition) { - return; - } - - warning(false, "Cannot update during an existing state transition (such as within " + "`render` or another component's constructor). Render methods should " + "be a pure function of props and state; constructor side-effects are " + "an anti-pattern, but can be moved to `componentWillMount`."); - didWarnAboutStateTransition = true; - break; - } - }; - } - var originalStartTimeMs = now(); - var mostRecentCurrentTime = msToExpirationTime(0); - var mostRecentCurrentTimeMs = originalStartTimeMs; - var lastUniqueAsyncExpiration = 0; - var expirationContext = NoWork; - var isWorking = false; - var nextUnitOfWork = null; - var nextRoot = null; - var nextRenderExpirationTime = NoWork; - var nextLatestTimeoutMs = -1; - var nextRenderDidError = false; - var nextEffect = null; - var isCommitting$1 = false; - var legacyErrorBoundariesThatAlreadyFailed = null; - var interruptedBy = null; - var stashedWorkInProgressProperties = void 0; - var replayUnitOfWork = void 0; - var isReplayingFailedUnitOfWork = void 0; - var originalReplayError = void 0; - var rethrowOriginalError = void 0; - - if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) { - stashedWorkInProgressProperties = null; - isReplayingFailedUnitOfWork = false; - originalReplayError = null; - - replayUnitOfWork = function replayUnitOfWork(failedUnitOfWork, thrownValue, isYieldy) { - if (thrownValue !== null && typeof thrownValue === "object" && typeof thrownValue.then === "function") { - return; - } - - if (stashedWorkInProgressProperties === null) { - warning(false, "Could not replay rendering after an error. This is likely a bug in React. " + "Please file an issue."); - return; - } - - assignFiberPropertiesInDEV(failedUnitOfWork, stashedWorkInProgressProperties); - - switch (failedUnitOfWork.tag) { - case HostRoot: - popHostContainer(failedUnitOfWork); - popTopLevelContextObject(failedUnitOfWork); - break; - - case HostComponent: - popHostContext(failedUnitOfWork); - break; - - case ClassComponent: - popContextProvider(failedUnitOfWork); - break; - - case HostPortal: - popHostContainer(failedUnitOfWork); - break; - - case ContextProvider: - popProvider(failedUnitOfWork); - break; - } - - isReplayingFailedUnitOfWork = true; - originalReplayError = thrownValue; - invokeGuardedCallback$2(null, workLoop, null, isYieldy); - isReplayingFailedUnitOfWork = false; - originalReplayError = null; - - if (hasCaughtError()) { - clearCaughtError(); - - if (enableProfilerTimer) { - if (failedUnitOfWork.mode & ProfileMode) { - recordElapsedActualRenderTime(failedUnitOfWork); - } - - stopBaseRenderTimerIfRunning(); - } - } else { - nextUnitOfWork = failedUnitOfWork; - } - }; - - rethrowOriginalError = function rethrowOriginalError() { - throw originalReplayError; - }; - } - - function resetStack() { - if (nextUnitOfWork !== null) { - var interruptedWork = nextUnitOfWork.return; - - while (interruptedWork !== null) { - unwindInterruptedWork(interruptedWork); - interruptedWork = interruptedWork.return; - } - } - - { - ReactStrictModeWarnings.discardPendingWarnings(); - checkThatStackIsEmpty(); - } - nextRoot = null; - nextRenderExpirationTime = NoWork; - nextLatestTimeoutMs = -1; - nextRenderDidError = false; - nextUnitOfWork = null; - } - - function commitAllHostEffects() { - while (nextEffect !== null) { - { - ReactDebugCurrentFiber.setCurrentFiber(nextEffect); - } - recordEffect(); - var effectTag = nextEffect.effectTag; - - if (effectTag & ContentReset) { - commitResetTextContent(nextEffect); - } - - if (effectTag & Ref) { - var current = nextEffect.alternate; - - if (current !== null) { - commitDetachRef(current); - } - } - - var primaryEffectTag = effectTag & (Placement | Update | Deletion); - - switch (primaryEffectTag) { - case Placement: - { - commitPlacement(nextEffect); - nextEffect.effectTag &= ~Placement; - break; - } - - case PlacementAndUpdate: - { - commitPlacement(nextEffect); - nextEffect.effectTag &= ~Placement; - var _current = nextEffect.alternate; - commitWork(_current, nextEffect); - break; - } - - case Update: - { - var _current2 = nextEffect.alternate; - commitWork(_current2, nextEffect); - break; - } - - case Deletion: - { - commitDeletion(nextEffect); - break; - } - } - - nextEffect = nextEffect.nextEffect; - } - - { - ReactDebugCurrentFiber.resetCurrentFiber(); - } - } - - function commitBeforeMutationLifecycles() { - while (nextEffect !== null) { - var effectTag = nextEffect.effectTag; - - if (effectTag & Snapshot) { - recordEffect(); - var current = nextEffect.alternate; - commitBeforeMutationLifeCycles(current, nextEffect); - } - - nextEffect = nextEffect.nextEffect; - } - } - - function commitAllLifeCycles(finishedRoot, currentTime, committedExpirationTime) { - { - ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); - - if (warnAboutDeprecatedLifecycles) { - ReactStrictModeWarnings.flushPendingDeprecationWarnings(); - } - - if (warnAboutLegacyContextAPI) { - ReactStrictModeWarnings.flushLegacyContextWarning(); - } - } - - while (nextEffect !== null) { - var effectTag = nextEffect.effectTag; - - if (effectTag & (Update | Callback)) { - recordEffect(); - var current = nextEffect.alternate; - commitLifeCycles(finishedRoot, current, nextEffect, currentTime, committedExpirationTime); - } - - if (effectTag & Ref) { - recordEffect(); - commitAttachRef(nextEffect); - } - - var next = nextEffect.nextEffect; - nextEffect.nextEffect = null; - nextEffect = next; - } - } - - function isAlreadyFailedLegacyErrorBoundary(instance) { - return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance); - } - - function markLegacyErrorBoundaryAsFailed(instance) { - if (legacyErrorBoundariesThatAlreadyFailed === null) { - legacyErrorBoundariesThatAlreadyFailed = new Set([instance]); - } else { - legacyErrorBoundariesThatAlreadyFailed.add(instance); - } - } - - function commitRoot(root, finishedWork) { - isWorking = true; - isCommitting$1 = true; - startCommitTimer(); - invariant(root.current !== finishedWork, "Cannot commit the same tree as before. This is probably a bug " + "related to the return field. This error is likely caused by a bug " + "in React. Please file an issue."); - var committedExpirationTime = root.pendingCommitExpirationTime; - invariant(committedExpirationTime !== NoWork, "Cannot commit an incomplete root. This error is likely caused by a " + "bug in React. Please file an issue."); - root.pendingCommitExpirationTime = NoWork; - var earliestRemainingTime = finishedWork.expirationTime; - var currentTime = recalculateCurrentTime(); - markCommittedPriorityLevels(root, currentTime, earliestRemainingTime); - ReactCurrentOwner.current = null; - var firstEffect = void 0; - - if (finishedWork.effectTag > PerformedWork) { - if (finishedWork.lastEffect !== null) { - finishedWork.lastEffect.nextEffect = finishedWork; - firstEffect = finishedWork.firstEffect; - } else { - firstEffect = finishedWork; - } - } else { - firstEffect = finishedWork.firstEffect; - } - - prepareForCommit(root.containerInfo); - nextEffect = firstEffect; - startCommitSnapshotEffectsTimer(); - - while (nextEffect !== null) { - var didError = false; - var error = void 0; - { - invokeGuardedCallback$2(null, commitBeforeMutationLifecycles, null); - - if (hasCaughtError()) { - didError = true; - error = clearCaughtError(); - } - } - - if (didError) { - invariant(nextEffect !== null, "Should have next effect. This error is likely caused by a bug " + "in React. Please file an issue."); - captureCommitPhaseError(nextEffect, error); - - if (nextEffect !== null) { - nextEffect = nextEffect.nextEffect; - } - } - } - - stopCommitSnapshotEffectsTimer(); - - if (enableProfilerTimer) { - recordCommitTime(); - } - - nextEffect = firstEffect; - startCommitHostEffectsTimer(); - - while (nextEffect !== null) { - var _didError = false; - - var _error = void 0; - - { - invokeGuardedCallback$2(null, commitAllHostEffects, null); - - if (hasCaughtError()) { - _didError = true; - _error = clearCaughtError(); - } - } - - if (_didError) { - invariant(nextEffect !== null, "Should have next effect. This error is likely caused by a bug " + "in React. Please file an issue."); - captureCommitPhaseError(nextEffect, _error); - - if (nextEffect !== null) { - nextEffect = nextEffect.nextEffect; - } - } - } - - stopCommitHostEffectsTimer(); - resetAfterCommit(root.containerInfo); - root.current = finishedWork; - nextEffect = firstEffect; - startCommitLifeCyclesTimer(); - - while (nextEffect !== null) { - var _didError2 = false; - - var _error2 = void 0; - - { - invokeGuardedCallback$2(null, commitAllLifeCycles, null, root, currentTime, committedExpirationTime); - - if (hasCaughtError()) { - _didError2 = true; - _error2 = clearCaughtError(); - } - } - - if (_didError2) { - invariant(nextEffect !== null, "Should have next effect. This error is likely caused by a bug " + "in React. Please file an issue."); - captureCommitPhaseError(nextEffect, _error2); - - if (nextEffect !== null) { - nextEffect = nextEffect.nextEffect; - } - } - } - - if (enableProfilerTimer) { - { - checkActualRenderTimeStackEmpty(); - } - resetActualRenderTimer(); - } - - isCommitting$1 = false; - isWorking = false; - stopCommitLifeCyclesTimer(); - stopCommitTimer(); - - if (typeof onCommitRoot === "function") { - onCommitRoot(finishedWork.stateNode); - } - - if (true && ReactFiberInstrumentation_1.debugTool) { - ReactFiberInstrumentation_1.debugTool.onCommitWork(finishedWork); - } - - var expirationTime = root.expirationTime; - - if (expirationTime === NoWork) { - legacyErrorBoundariesThatAlreadyFailed = null; - } - - onCommit(root, expirationTime); - } - - function resetExpirationTime(workInProgress, renderTime) { - if (renderTime !== Never && workInProgress.expirationTime === Never) { - return; - } - - var newExpirationTime = NoWork; - - switch (workInProgress.tag) { - case HostRoot: - case ClassComponent: - { - var updateQueue = workInProgress.updateQueue; - - if (updateQueue !== null) { - newExpirationTime = updateQueue.expirationTime; - } - } - } - - if (enableProfilerTimer && workInProgress.mode & ProfileMode) { - var treeBaseTime = workInProgress.selfBaseTime; - var child = workInProgress.child; - - while (child !== null) { - treeBaseTime += child.treeBaseTime; - - if (child.expirationTime !== NoWork && (newExpirationTime === NoWork || newExpirationTime > child.expirationTime)) { - newExpirationTime = child.expirationTime; - } - - child = child.sibling; - } - - workInProgress.treeBaseTime = treeBaseTime; - } else { - var _child = workInProgress.child; - - while (_child !== null) { - if (_child.expirationTime !== NoWork && (newExpirationTime === NoWork || newExpirationTime > _child.expirationTime)) { - newExpirationTime = _child.expirationTime; - } - - _child = _child.sibling; - } - } - - workInProgress.expirationTime = newExpirationTime; - } - - function completeUnitOfWork(workInProgress) { - while (true) { - var current = workInProgress.alternate; - { - ReactDebugCurrentFiber.setCurrentFiber(workInProgress); - } - var returnFiber = workInProgress.return; - var siblingFiber = workInProgress.sibling; - - if ((workInProgress.effectTag & Incomplete) === NoEffect) { - var next = completeWork(current, workInProgress, nextRenderExpirationTime); - stopWorkTimer(workInProgress); - resetExpirationTime(workInProgress, nextRenderExpirationTime); - { - ReactDebugCurrentFiber.resetCurrentFiber(); - } - - if (next !== null) { - stopWorkTimer(workInProgress); - - if (true && ReactFiberInstrumentation_1.debugTool) { - ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress); - } - - return next; - } - - if (returnFiber !== null && (returnFiber.effectTag & Incomplete) === NoEffect) { - if (returnFiber.firstEffect === null) { - returnFiber.firstEffect = workInProgress.firstEffect; - } - - if (workInProgress.lastEffect !== null) { - if (returnFiber.lastEffect !== null) { - returnFiber.lastEffect.nextEffect = workInProgress.firstEffect; - } - - returnFiber.lastEffect = workInProgress.lastEffect; - } - - var effectTag = workInProgress.effectTag; - - if (effectTag > PerformedWork) { - if (returnFiber.lastEffect !== null) { - returnFiber.lastEffect.nextEffect = workInProgress; - } else { - returnFiber.firstEffect = workInProgress; - } - - returnFiber.lastEffect = workInProgress; - } - } - - if (true && ReactFiberInstrumentation_1.debugTool) { - ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress); - } - - if (siblingFiber !== null) { - return siblingFiber; - } else if (returnFiber !== null) { - workInProgress = returnFiber; - continue; - } else { - return null; - } - } else { - var _next = unwindWork(workInProgress, nextRenderExpirationTime); - - if (workInProgress.effectTag & DidCapture) { - stopFailedWorkTimer(workInProgress); - } else { - stopWorkTimer(workInProgress); - } - - { - ReactDebugCurrentFiber.resetCurrentFiber(); - } - - if (_next !== null) { - stopWorkTimer(workInProgress); - - if (true && ReactFiberInstrumentation_1.debugTool) { - ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress); - } - - _next.effectTag &= HostEffectMask; - return _next; - } - - if (returnFiber !== null) { - returnFiber.firstEffect = returnFiber.lastEffect = null; - returnFiber.effectTag |= Incomplete; - } - - if (true && ReactFiberInstrumentation_1.debugTool) { - ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress); - } - - if (siblingFiber !== null) { - return siblingFiber; - } else if (returnFiber !== null) { - workInProgress = returnFiber; - continue; - } else { - return null; - } - } - } - - return null; - } - - function performUnitOfWork(workInProgress) { - var current = workInProgress.alternate; - startWorkTimer(workInProgress); - { - ReactDebugCurrentFiber.setCurrentFiber(workInProgress); - } - - if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) { - stashedWorkInProgressProperties = assignFiberPropertiesInDEV(stashedWorkInProgressProperties, workInProgress); - } - - var next = void 0; - - if (enableProfilerTimer) { - if (workInProgress.mode & ProfileMode) { - startBaseRenderTimer(); - } - - next = beginWork(current, workInProgress, nextRenderExpirationTime); - - if (workInProgress.mode & ProfileMode) { - recordElapsedBaseRenderTimeIfRunning(workInProgress); - stopBaseRenderTimerIfRunning(); - } - } else { - next = beginWork(current, workInProgress, nextRenderExpirationTime); - } - - { - ReactDebugCurrentFiber.resetCurrentFiber(); - - if (isReplayingFailedUnitOfWork) { - rethrowOriginalError(); - } - } - - if (true && ReactFiberInstrumentation_1.debugTool) { - ReactFiberInstrumentation_1.debugTool.onBeginWork(workInProgress); - } - - if (next === null) { - next = completeUnitOfWork(workInProgress); - } - - ReactCurrentOwner.current = null; - return next; - } - - function workLoop(isYieldy) { - if (!isYieldy) { - while (nextUnitOfWork !== null) { - nextUnitOfWork = performUnitOfWork(nextUnitOfWork); - } - } else { - while (nextUnitOfWork !== null && !shouldYield()) { - nextUnitOfWork = performUnitOfWork(nextUnitOfWork); - } - - if (enableProfilerTimer) { - pauseActualRenderTimerIfRunning(); - } - } - } - - function renderRoot(root, isYieldy) { - invariant(!isWorking, "renderRoot was called recursively. This error is likely caused " + "by a bug in React. Please file an issue."); - isWorking = true; - var expirationTime = root.nextExpirationTimeToWorkOn; - - if (expirationTime !== nextRenderExpirationTime || root !== nextRoot || nextUnitOfWork === null) { - resetStack(); - nextRoot = root; - nextRenderExpirationTime = expirationTime; - nextLatestTimeoutMs = -1; - nextRenderDidError = false; - nextUnitOfWork = createWorkInProgress(nextRoot.current, null, nextRenderExpirationTime); - root.pendingCommitExpirationTime = NoWork; - } - - var didFatal = false; - startWorkLoopTimer(nextUnitOfWork); - - do { - try { - workLoop(isYieldy); - } catch (thrownValue) { - if (enableProfilerTimer) { - stopBaseRenderTimerIfRunning(); - } - - if (nextUnitOfWork === null) { - didFatal = true; - onUncaughtError(thrownValue); - } else { - { - resetCurrentlyProcessingQueue(); - } - var failedUnitOfWork = nextUnitOfWork; - - if (true && replayFailedUnitOfWorkWithInvokeGuardedCallback) { - replayUnitOfWork(failedUnitOfWork, thrownValue, isYieldy); - } - - invariant(nextUnitOfWork !== null, "Failed to replay rendering after an error. This " + "is likely caused by a bug in React. Please file an issue " + "with a reproducing case to help us find it."); - var sourceFiber = nextUnitOfWork; - var returnFiber = sourceFiber.return; - - if (returnFiber === null) { - didFatal = true; - onUncaughtError(thrownValue); - break; - } - - throwException(root, returnFiber, sourceFiber, thrownValue, nextRenderExpirationTime, mostRecentCurrentTimeMs); - nextUnitOfWork = completeUnitOfWork(sourceFiber); - } - } - - break; - } while (true); - - isWorking = false; - - if (didFatal) { - var didCompleteRoot = false; - stopWorkLoopTimer(interruptedBy, didCompleteRoot); - interruptedBy = null; - { - resetStackAfterFatalErrorInDev(); - } - onFatal(root); - } else if (nextUnitOfWork === null) { - var rootWorkInProgress = root.current.alternate; - invariant(rootWorkInProgress !== null, "Finished root should have a work-in-progress. This error is likely " + "caused by a bug in React. Please file an issue."); - - if ((rootWorkInProgress.effectTag & Incomplete) === NoEffect) { - var _didCompleteRoot = true; - stopWorkLoopTimer(interruptedBy, _didCompleteRoot); - interruptedBy = null; - onComplete(root, rootWorkInProgress, expirationTime); - } else { - var _didCompleteRoot2 = false; - stopWorkLoopTimer(interruptedBy, _didCompleteRoot2); - interruptedBy = null; - markSuspendedPriorityLevel(root, expirationTime, nextRenderDidError); - var suspendedExpirationTime = expirationTime; - var newExpirationTime = root.expirationTime; - onSuspend(root, suspendedExpirationTime, newExpirationTime, nextLatestTimeoutMs); - } - } else { - var _didCompleteRoot3 = false; - stopWorkLoopTimer(interruptedBy, _didCompleteRoot3); - interruptedBy = null; - onYield(root); - } - } - - function dispatch(sourceFiber, value, expirationTime) { - invariant(!isWorking || isCommitting$1, "dispatch: Cannot dispatch during the render phase."); - var fiber = sourceFiber.return; - - while (fiber !== null) { - switch (fiber.tag) { - case ClassComponent: - var ctor = fiber.type; - var instance = fiber.stateNode; - - if (typeof ctor.getDerivedStateFromCatch === "function" || typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance)) { - var errorInfo = createCapturedValue(value, sourceFiber); - var update = createClassErrorUpdate(fiber, errorInfo, expirationTime); - enqueueUpdate(fiber, update, expirationTime); - scheduleWork(fiber, expirationTime); - return; - } - - break; - - case HostRoot: - { - var _errorInfo = createCapturedValue(value, sourceFiber); - - var _update = createRootErrorUpdate(fiber, _errorInfo, expirationTime); - - enqueueUpdate(fiber, _update, expirationTime); - scheduleWork(fiber, expirationTime); - return; - } - } - - fiber = fiber.return; - } - - if (sourceFiber.tag === HostRoot) { - var rootFiber = sourceFiber; - - var _errorInfo2 = createCapturedValue(value, rootFiber); - - var _update2 = createRootErrorUpdate(rootFiber, _errorInfo2, expirationTime); - - enqueueUpdate(rootFiber, _update2, expirationTime); - scheduleWork(rootFiber, expirationTime); - } - } - - function captureCommitPhaseError(fiber, error) { - return dispatch(fiber, error, Sync); - } - - function computeAsyncExpiration(currentTime) { - var expirationMs = 5000; - var bucketSizeMs = 250; - return computeExpirationBucket(currentTime, expirationMs, bucketSizeMs); - } - - function computeInteractiveExpiration(currentTime) { - var expirationMs = void 0; - { - expirationMs = 500; - } - var bucketSizeMs = 100; - return computeExpirationBucket(currentTime, expirationMs, bucketSizeMs); - } - - function computeUniqueAsyncExpiration() { - var currentTime = recalculateCurrentTime(); - var result = computeAsyncExpiration(currentTime); - - if (result <= lastUniqueAsyncExpiration) { - result = lastUniqueAsyncExpiration + 1; - } - - lastUniqueAsyncExpiration = result; - return lastUniqueAsyncExpiration; - } - - function computeExpirationForFiber(currentTime, fiber) { - var expirationTime = void 0; - - if (expirationContext !== NoWork) { - expirationTime = expirationContext; - } else if (isWorking) { - if (isCommitting$1) { - expirationTime = Sync; - } else { - expirationTime = nextRenderExpirationTime; - } - } else { - if (fiber.mode & AsyncMode) { - if (isBatchingInteractiveUpdates) { - expirationTime = computeInteractiveExpiration(currentTime); - } else { - expirationTime = computeAsyncExpiration(currentTime); - } - } else { - expirationTime = Sync; - } - } - - if (isBatchingInteractiveUpdates) { - if (lowestPendingInteractiveExpirationTime === NoWork || expirationTime > lowestPendingInteractiveExpirationTime) { - lowestPendingInteractiveExpirationTime = expirationTime; - } - } - - return expirationTime; - } - - function markTimeout(root, thenable, timeoutMs, suspendedTime) { - if (timeoutMs >= 0 && nextLatestTimeoutMs < timeoutMs) { - nextLatestTimeoutMs = timeoutMs; - } - } - - function markError(root) { - nextRenderDidError = true; - } - - function retrySuspendedRoot(root, suspendedTime) { - markPingedPriorityLevel(root, suspendedTime); - var retryTime = root.expirationTime; - - if (retryTime !== NoWork) { - requestWork(root, retryTime); - } - } - - function scheduleWork(fiber, expirationTime) { - recordScheduleUpdate(); - { - if (fiber.tag === ClassComponent) { - var instance = fiber.stateNode; - warnAboutInvalidUpdates(instance); - } - } - var node = fiber; - - while (node !== null) { - if (node.expirationTime === NoWork || node.expirationTime > expirationTime) { - node.expirationTime = expirationTime; - } - - if (node.alternate !== null) { - if (node.alternate.expirationTime === NoWork || node.alternate.expirationTime > expirationTime) { - node.alternate.expirationTime = expirationTime; - } - } - - if (node.return === null) { - if (node.tag === HostRoot) { - var root = node.stateNode; - - if (!isWorking && nextRenderExpirationTime !== NoWork && expirationTime < nextRenderExpirationTime) { - interruptedBy = fiber; - resetStack(); - } - - markPendingPriorityLevel(root, expirationTime); - - if (!isWorking || isCommitting$1 || nextRoot !== root) { - var rootExpirationTime = root.expirationTime; - requestWork(root, rootExpirationTime); - } - - if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { - invariant(false, "Maximum update depth exceeded. This can happen when a " + "component repeatedly calls setState inside " + "componentWillUpdate or componentDidUpdate. React limits " + "the number of nested updates to prevent infinite loops."); - } - } else { - { - if (fiber.tag === ClassComponent) { - warnAboutUpdateOnUnmounted(fiber); - } - } - return; - } - } - - node = node.return; - } - } - - function recalculateCurrentTime() { - mostRecentCurrentTimeMs = now() - originalStartTimeMs; - mostRecentCurrentTime = msToExpirationTime(mostRecentCurrentTimeMs); - return mostRecentCurrentTime; - } - - function deferredUpdates(fn) { - var previousExpirationContext = expirationContext; - var currentTime = recalculateCurrentTime(); - expirationContext = computeAsyncExpiration(currentTime); - - try { - return fn(); - } finally { - expirationContext = previousExpirationContext; - } - } - - function syncUpdates(fn, a, b, c, d) { - var previousExpirationContext = expirationContext; - expirationContext = Sync; - - try { - return fn(a, b, c, d); - } finally { - expirationContext = previousExpirationContext; - } - } - - var firstScheduledRoot = null; - var lastScheduledRoot = null; - var callbackExpirationTime = NoWork; - var callbackID = void 0; - var isRendering = false; - var nextFlushedRoot = null; - var nextFlushedExpirationTime = NoWork; - var lowestPendingInteractiveExpirationTime = NoWork; - var deadlineDidExpire = false; - var hasUnhandledError = false; - var unhandledError = null; - var deadline = null; - var isBatchingUpdates = false; - var isUnbatchingUpdates = false; - var isBatchingInteractiveUpdates = false; - var completedBatches = null; - var NESTED_UPDATE_LIMIT = 1000; - var nestedUpdateCount = 0; - var timeHeuristicForUnitOfWork = 1; - - function scheduleCallbackWithExpirationTime(expirationTime) { - if (callbackExpirationTime !== NoWork) { - if (expirationTime > callbackExpirationTime) { - return; - } else { - if (callbackID !== null) { - cancelDeferredCallback(callbackID); - } - } - } else { - startRequestCallbackTimer(); - } - - callbackExpirationTime = expirationTime; - var currentMs = now() - originalStartTimeMs; - var expirationTimeMs = expirationTimeToMs(expirationTime); - var timeout = expirationTimeMs - currentMs; - callbackID = scheduleDeferredCallback(performAsyncWork, { - timeout: timeout - }); - } - - function onFatal(root) { - root.finishedWork = null; - } - - function onComplete(root, finishedWork, expirationTime) { - root.pendingCommitExpirationTime = expirationTime; - root.finishedWork = finishedWork; - } - - function onSuspend(root, suspendedExpirationTime, expirationTime, timeoutMs) { - if (timeoutMs >= 0) { - var suspendedRoot = root; - setTimeout(function () { - retrySuspendedRoot(suspendedRoot, suspendedExpirationTime); - }, timeoutMs); - } - - root.expirationTime = expirationTime; - } - - function onYield(root) { - root.finishedWork = null; - } - - function onCommit(root, expirationTime) { - root.expirationTime = expirationTime; - root.finishedWork = null; - } - - function requestWork(root, expirationTime) { - addRootToSchedule(root, expirationTime); - - if (isRendering) { - return; - } - - if (isBatchingUpdates) { - if (isUnbatchingUpdates) { - nextFlushedRoot = root; - nextFlushedExpirationTime = Sync; - performWorkOnRoot(root, Sync, false); - } - - return; - } - - if (expirationTime === Sync) { - performSyncWork(); - } else { - scheduleCallbackWithExpirationTime(expirationTime); - } - } - - function addRootToSchedule(root, expirationTime) { - if (root.nextScheduledRoot === null) { - root.expirationTime = expirationTime; - - if (lastScheduledRoot === null) { - firstScheduledRoot = lastScheduledRoot = root; - root.nextScheduledRoot = root; - } else { - lastScheduledRoot.nextScheduledRoot = root; - lastScheduledRoot = root; - lastScheduledRoot.nextScheduledRoot = firstScheduledRoot; - } - } else { - var remainingExpirationTime = root.expirationTime; - - if (remainingExpirationTime === NoWork || expirationTime < remainingExpirationTime) { - root.expirationTime = expirationTime; - } - } - } - - function findHighestPriorityRoot() { - var highestPriorityWork = NoWork; - var highestPriorityRoot = null; - - if (lastScheduledRoot !== null) { - var previousScheduledRoot = lastScheduledRoot; - var root = firstScheduledRoot; - - while (root !== null) { - var remainingExpirationTime = root.expirationTime; - - if (remainingExpirationTime === NoWork) { - invariant(previousScheduledRoot !== null && lastScheduledRoot !== null, "Should have a previous and last root. This error is likely " + "caused by a bug in React. Please file an issue."); - - if (root === root.nextScheduledRoot) { - root.nextScheduledRoot = null; - firstScheduledRoot = lastScheduledRoot = null; - break; - } else if (root === firstScheduledRoot) { - var next = root.nextScheduledRoot; - firstScheduledRoot = next; - lastScheduledRoot.nextScheduledRoot = next; - root.nextScheduledRoot = null; - } else if (root === lastScheduledRoot) { - lastScheduledRoot = previousScheduledRoot; - lastScheduledRoot.nextScheduledRoot = firstScheduledRoot; - root.nextScheduledRoot = null; - break; - } else { - previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot; - root.nextScheduledRoot = null; - } - - root = previousScheduledRoot.nextScheduledRoot; - } else { - if (highestPriorityWork === NoWork || remainingExpirationTime < highestPriorityWork) { - highestPriorityWork = remainingExpirationTime; - highestPriorityRoot = root; - } - - if (root === lastScheduledRoot) { - break; - } - - previousScheduledRoot = root; - root = root.nextScheduledRoot; - } - } - } - - var previousFlushedRoot = nextFlushedRoot; - - if (previousFlushedRoot !== null && previousFlushedRoot === highestPriorityRoot && highestPriorityWork === Sync) { - nestedUpdateCount++; - } else { - nestedUpdateCount = 0; - } - - nextFlushedRoot = highestPriorityRoot; - nextFlushedExpirationTime = highestPriorityWork; - } - - function performAsyncWork(dl) { - performWork(NoWork, dl); - } - - function performSyncWork() { - performWork(Sync, null); - } - - function performWork(minExpirationTime, dl) { - deadline = dl; - findHighestPriorityRoot(); - - if (enableProfilerTimer) { - resumeActualRenderTimerIfPaused(); - } - - if (enableUserTimingAPI && deadline !== null) { - var didExpire = nextFlushedExpirationTime < recalculateCurrentTime(); - var timeout = expirationTimeToMs(nextFlushedExpirationTime); - stopRequestCallbackTimer(didExpire, timeout); - } - - if (deadline !== null) { - while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && (minExpirationTime === NoWork || minExpirationTime >= nextFlushedExpirationTime) && (!deadlineDidExpire || recalculateCurrentTime() >= nextFlushedExpirationTime)) { - recalculateCurrentTime(); - performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, true); - findHighestPriorityRoot(); - } - } else { - while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && (minExpirationTime === NoWork || minExpirationTime >= nextFlushedExpirationTime)) { - performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, false); - findHighestPriorityRoot(); - } - } - - if (deadline !== null) { - callbackExpirationTime = NoWork; - callbackID = null; - } - - if (nextFlushedExpirationTime !== NoWork) { - scheduleCallbackWithExpirationTime(nextFlushedExpirationTime); - } - - deadline = null; - deadlineDidExpire = false; - finishRendering(); - } - - function flushRoot(root, expirationTime) { - invariant(!isRendering, "work.commit(): Cannot commit while already rendering. This likely " + "means you attempted to commit from inside a lifecycle method."); - nextFlushedRoot = root; - nextFlushedExpirationTime = expirationTime; - performWorkOnRoot(root, expirationTime, false); - performSyncWork(); - finishRendering(); - } - - function finishRendering() { - nestedUpdateCount = 0; - - if (completedBatches !== null) { - var batches = completedBatches; - completedBatches = null; - - for (var i = 0; i < batches.length; i++) { - var batch = batches[i]; - - try { - batch._onComplete(); - } catch (error) { - if (!hasUnhandledError) { - hasUnhandledError = true; - unhandledError = error; - } - } - } - } - - if (hasUnhandledError) { - var error = unhandledError; - unhandledError = null; - hasUnhandledError = false; - throw error; - } - } - - function performWorkOnRoot(root, expirationTime, isYieldy) { - invariant(!isRendering, "performWorkOnRoot was called recursively. This error is likely caused " + "by a bug in React. Please file an issue."); - isRendering = true; - - if (!isYieldy) { - var finishedWork = root.finishedWork; - - if (finishedWork !== null) { - completeRoot$1(root, finishedWork, expirationTime); - } else { - root.finishedWork = null; - renderRoot(root, false); - finishedWork = root.finishedWork; - - if (finishedWork !== null) { - completeRoot$1(root, finishedWork, expirationTime); - } - } - } else { - var _finishedWork = root.finishedWork; - - if (_finishedWork !== null) { - completeRoot$1(root, _finishedWork, expirationTime); - } else { - root.finishedWork = null; - renderRoot(root, true); - _finishedWork = root.finishedWork; - - if (_finishedWork !== null) { - if (!shouldYield()) { - completeRoot$1(root, _finishedWork, expirationTime); - } else { - root.finishedWork = _finishedWork; - - if (enableProfilerTimer) { - pauseActualRenderTimerIfRunning(); - } - } - } - } - } - - isRendering = false; - } - - function completeRoot$1(root, finishedWork, expirationTime) { - var firstBatch = root.firstBatch; - - if (firstBatch !== null && firstBatch._expirationTime <= expirationTime) { - if (completedBatches === null) { - completedBatches = [firstBatch]; - } else { - completedBatches.push(firstBatch); - } - - if (firstBatch._defer) { - root.finishedWork = finishedWork; - root.expirationTime = NoWork; - return; - } - } - - root.finishedWork = null; - commitRoot(root, finishedWork); - } - - function shouldYield() { - if (deadline === null || deadlineDidExpire) { - return false; - } - - if (deadline.timeRemaining() > timeHeuristicForUnitOfWork) { - return false; - } - - deadlineDidExpire = true; - return true; - } - - function onUncaughtError(error) { - invariant(nextFlushedRoot !== null, "Should be working on a root. This error is likely caused by a bug in " + "React. Please file an issue."); - nextFlushedRoot.expirationTime = NoWork; - - if (!hasUnhandledError) { - hasUnhandledError = true; - unhandledError = error; - } - } - - function batchedUpdates$1(fn, a) { - var previousIsBatchingUpdates = isBatchingUpdates; - isBatchingUpdates = true; - - try { - return fn(a); - } finally { - isBatchingUpdates = previousIsBatchingUpdates; - - if (!isBatchingUpdates && !isRendering) { - performSyncWork(); - } - } - } - - function unbatchedUpdates(fn, a) { - if (isBatchingUpdates && !isUnbatchingUpdates) { - isUnbatchingUpdates = true; - - try { - return fn(a); - } finally { - isUnbatchingUpdates = false; - } - } - - return fn(a); - } - - function flushSync(fn, a) { - invariant(!isRendering, "flushSync was called from inside a lifecycle method. It cannot be " + "called when React is already rendering."); - var previousIsBatchingUpdates = isBatchingUpdates; - isBatchingUpdates = true; - - try { - return syncUpdates(fn, a); - } finally { - isBatchingUpdates = previousIsBatchingUpdates; - performSyncWork(); - } - } - - function interactiveUpdates$1(fn, a, b) { - if (isBatchingInteractiveUpdates) { - return fn(a, b); - } - - if (!isBatchingUpdates && !isRendering && lowestPendingInteractiveExpirationTime !== NoWork) { - performWork(lowestPendingInteractiveExpirationTime, null); - lowestPendingInteractiveExpirationTime = NoWork; - } - - var previousIsBatchingInteractiveUpdates = isBatchingInteractiveUpdates; - var previousIsBatchingUpdates = isBatchingUpdates; - isBatchingInteractiveUpdates = true; - isBatchingUpdates = true; - - try { - return fn(a, b); - } finally { - isBatchingInteractiveUpdates = previousIsBatchingInteractiveUpdates; - isBatchingUpdates = previousIsBatchingUpdates; - - if (!isBatchingUpdates && !isRendering) { - performSyncWork(); - } - } - } - - function flushInteractiveUpdates$1() { - if (!isRendering && lowestPendingInteractiveExpirationTime !== NoWork) { - performWork(lowestPendingInteractiveExpirationTime, null); - lowestPendingInteractiveExpirationTime = NoWork; - } - } - - function flushControlled(fn) { - var previousIsBatchingUpdates = isBatchingUpdates; - isBatchingUpdates = true; - - try { - syncUpdates(fn); - } finally { - isBatchingUpdates = previousIsBatchingUpdates; - - if (!isBatchingUpdates && !isRendering) { - performWork(Sync, null); - } - } - } - - var didWarnAboutNestedUpdates = void 0; - { - didWarnAboutNestedUpdates = false; - } - - function getContextForSubtree(parentComponent) { - if (!parentComponent) { - return emptyObject; - } - - var fiber = get$1(parentComponent); - var parentContext = findCurrentUnmaskedContext(fiber); - return isContextProvider(fiber) ? processChildContext(fiber, parentContext) : parentContext; - } - - function scheduleRootUpdate(current, element, expirationTime, callback) { - { - if (ReactDebugCurrentFiber.phase === "render" && ReactDebugCurrentFiber.current !== null && !didWarnAboutNestedUpdates) { - didWarnAboutNestedUpdates = true; - warning(false, "Render methods should be a pure function of props and state; " + "triggering nested component updates from render is not allowed. " + "If necessary, trigger nested updates in componentDidUpdate.\n\n" + "Check the render method of %s.", getComponentName(ReactDebugCurrentFiber.current) || "Unknown"); - } - } - var update = createUpdate(expirationTime); - update.payload = { - element: element - }; - callback = callback === undefined ? null : callback; - - if (callback !== null) { - !(typeof callback === "function") ? warning(false, "render(...): Expected the last optional `callback` argument to be a " + "function. Instead received: %s.", callback) : void 0; - update.callback = callback; - } - - enqueueUpdate(current, update, expirationTime); - scheduleWork(current, expirationTime); - return expirationTime; - } - - function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback) { - var current = container.current; - { - if (ReactFiberInstrumentation_1.debugTool) { - if (current.alternate === null) { - ReactFiberInstrumentation_1.debugTool.onMountContainer(container); - } else if (element === null) { - ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container); - } else { - ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container); - } - } - } - var context = getContextForSubtree(parentComponent); - - if (container.context === null) { - container.context = context; - } else { - container.pendingContext = context; - } - - return scheduleRootUpdate(current, element, expirationTime, callback); - } - - function findHostInstance$1(component) { - var fiber = get$1(component); - - if (fiber === undefined) { - if (typeof component.render === "function") { - invariant(false, "Unable to find node on an unmounted component."); - } else { - invariant(false, "Argument appears to not be a ReactComponent. Keys: %s", Object.keys(component)); - } - } - - var hostFiber = findCurrentHostFiber(fiber); - - if (hostFiber === null) { - return null; - } - - return hostFiber.stateNode; - } - - function createContainer(containerInfo, isAsync, hydrate) { - return createFiberRoot(containerInfo, isAsync, hydrate); - } - - function updateContainer(element, container, parentComponent, callback) { - var current = container.current; - var currentTime = recalculateCurrentTime(); - var expirationTime = computeExpirationForFiber(currentTime, current); - return updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback); - } - - function getPublicRootInstance(container) { - var containerFiber = container.current; - - if (!containerFiber.child) { - return null; - } - - switch (containerFiber.child.tag) { - case HostComponent: - return getPublicInstance(containerFiber.child.stateNode); - - default: - return containerFiber.child.stateNode; - } - } - - function findHostInstanceWithNoPortals(fiber) { - var hostFiber = findCurrentHostFiberWithNoPortals(fiber); - - if (hostFiber === null) { - return null; - } - - return hostFiber.stateNode; - } - - function injectIntoDevTools(devToolsConfig) { - var _findFiberByHostInstance = devToolsConfig.findFiberByHostInstance; - return injectInternals(_extends({}, devToolsConfig, { - findHostInstanceByFiber: function findHostInstanceByFiber(fiber) { - var hostFiber = findCurrentHostFiber(fiber); - - if (hostFiber === null) { - return null; - } - - return hostFiber.stateNode; - }, - findFiberByHostInstance: function findFiberByHostInstance(instance) { - if (!_findFiberByHostInstance) { - return null; - } - - return _findFiberByHostInstance(instance); - } - })); - } - - var ReactFabricRenderer = Object.freeze({ - updateContainerAtExpirationTime: updateContainerAtExpirationTime, - createContainer: createContainer, - updateContainer: updateContainer, - flushRoot: flushRoot, - requestWork: requestWork, - computeUniqueAsyncExpiration: computeUniqueAsyncExpiration, - batchedUpdates: batchedUpdates$1, - unbatchedUpdates: unbatchedUpdates, - deferredUpdates: deferredUpdates, - syncUpdates: syncUpdates, - interactiveUpdates: interactiveUpdates$1, - flushInteractiveUpdates: flushInteractiveUpdates$1, - flushControlled: flushControlled, - flushSync: flushSync, - getPublicRootInstance: getPublicRootInstance, - findHostInstance: findHostInstance$1, - findHostInstanceWithNoPortals: findHostInstanceWithNoPortals, - injectIntoDevTools: injectIntoDevTools - }); - - function _createPortal(children, containerInfo, implementation) { - var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; - return { - $$typeof: REACT_PORTAL_TYPE, - key: key == null ? null : "" + key, - children: children, - containerInfo: containerInfo, - implementation: implementation - }; - } - - var ReactVersion = "16.4.1"; - - var NativeMethodsMixin = function NativeMethodsMixin(findNodeHandle, findHostInstance) { - var NativeMethodsMixin = { - measure: function measure(callback) { - UIManager.measure(findNodeHandle(this), mountSafeCallback(this, callback)); - }, - measureInWindow: function measureInWindow(callback) { - UIManager.measureInWindow(findNodeHandle(this), mountSafeCallback(this, callback)); - }, - measureLayout: function measureLayout(relativeToNativeNode, onSuccess, onFail) { - UIManager.measureLayout(findNodeHandle(this), relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); - }, - setNativeProps: function setNativeProps(nativeProps) { - var maybeInstance = void 0; - - try { - maybeInstance = findHostInstance(this); - } catch (error) {} - - if (maybeInstance == null) { - return; - } - - var viewConfig = maybeInstance.viewConfig; - { - warnForStyleProps(nativeProps, viewConfig.validAttributes); - } - var updatePayload = create(nativeProps, viewConfig.validAttributes); - - if (updatePayload != null) { - UIManager.updateView(maybeInstance._nativeTag, viewConfig.uiViewClassName, updatePayload); - } - }, - focus: function focus() { - TextInputState.focusTextInput(findNodeHandle(this)); - }, - blur: function blur() { - TextInputState.blurTextInput(findNodeHandle(this)); - } - }; - { - var NativeMethodsMixin_DEV = NativeMethodsMixin; - invariant(!NativeMethodsMixin_DEV.componentWillMount && !NativeMethodsMixin_DEV.componentWillReceiveProps && !NativeMethodsMixin_DEV.UNSAFE_componentWillMount && !NativeMethodsMixin_DEV.UNSAFE_componentWillReceiveProps, "Do not override existing functions."); - - NativeMethodsMixin_DEV.componentWillMount = function () { - throwOnStylesProp(this, this.props); - }; - - NativeMethodsMixin_DEV.componentWillReceiveProps = function (newProps) { - throwOnStylesProp(this, newProps); - }; - - NativeMethodsMixin_DEV.UNSAFE_componentWillMount = function () { - throwOnStylesProp(this, this.props); - }; - - NativeMethodsMixin_DEV.UNSAFE_componentWillReceiveProps = function (newProps) { - throwOnStylesProp(this, newProps); - }; - - NativeMethodsMixin_DEV.componentWillMount.__suppressDeprecationWarning = true; - NativeMethodsMixin_DEV.componentWillReceiveProps.__suppressDeprecationWarning = true; - } - return NativeMethodsMixin; - }; - - function _classCallCheck$1(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - } - - function _possibleConstructorReturn(self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return call && (typeof call === "object" || typeof call === "function") ? call : self; - } - - function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } - - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; - } - - var ReactNativeComponent = function ReactNativeComponent(findNodeHandle, findHostInstance) { - var ReactNativeComponent = function (_React$Component) { - _inherits(ReactNativeComponent, _React$Component); - - function ReactNativeComponent() { - _classCallCheck$1(this, ReactNativeComponent); - - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } - - ReactNativeComponent.prototype.blur = function blur() { - TextInputState.blurTextInput(findNodeHandle(this)); - }; - - ReactNativeComponent.prototype.focus = function focus() { - TextInputState.focusTextInput(findNodeHandle(this)); - }; - - ReactNativeComponent.prototype.measure = function measure(callback) { - UIManager.measure(findNodeHandle(this), mountSafeCallback(this, callback)); - }; - - ReactNativeComponent.prototype.measureInWindow = function measureInWindow(callback) { - UIManager.measureInWindow(findNodeHandle(this), mountSafeCallback(this, callback)); - }; - - ReactNativeComponent.prototype.measureLayout = function measureLayout(relativeToNativeNode, onSuccess, onFail) { - UIManager.measureLayout(findNodeHandle(this), relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); - }; - - ReactNativeComponent.prototype.setNativeProps = function setNativeProps(nativeProps) { - var maybeInstance = void 0; - - try { - maybeInstance = findHostInstance(this); - } catch (error) {} - - if (maybeInstance == null) { - return; - } - - var viewConfig = maybeInstance.viewConfig || maybeInstance.canonical.viewConfig; - var updatePayload = create(nativeProps, viewConfig.validAttributes); - - if (updatePayload != null) { - UIManager.updateView(maybeInstance._nativeTag, viewConfig.uiViewClassName, updatePayload); - } - }; - - return ReactNativeComponent; - }(React.Component); - - return ReactNativeComponent; - }; - - var instanceCache = {}; - - function getInstanceFromTag(tag) { - return instanceCache[tag] || null; - } - - var getInspectorDataForViewTag = void 0; - { - var traverseOwnerTreeUp = function traverseOwnerTreeUp(hierarchy, instance) { - if (instance) { - hierarchy.unshift(instance); - traverseOwnerTreeUp(hierarchy, instance._debugOwner); - } - }; - - var getOwnerHierarchy = function getOwnerHierarchy(instance) { - var hierarchy = []; - traverseOwnerTreeUp(hierarchy, instance); - return hierarchy; - }; - - var lastNonHostInstance = function lastNonHostInstance(hierarchy) { - for (var i = hierarchy.length - 1; i > 1; i--) { - var instance = hierarchy[i]; - - if (instance.tag !== HostComponent) { - return instance; - } - } - - return hierarchy[0]; - }; - - var getHostProps = function getHostProps(fiber) { - var host = findCurrentHostFiber(fiber); - - if (host) { - return host.memoizedProps || emptyObject; - } - - return emptyObject; - }; - - var getHostNode = function getHostNode(fiber, findNodeHandle) { - var hostNode = void 0; - - while (fiber) { - if (fiber.stateNode !== null && fiber.tag === HostComponent) { - hostNode = findNodeHandle(fiber.stateNode); - } - - if (hostNode) { - return hostNode; - } - - fiber = fiber.child; - } - - return null; - }; - - var createHierarchy = function createHierarchy(fiberHierarchy) { - return fiberHierarchy.map(function (fiber) { - return { - name: getComponentName(fiber), - getInspectorData: function getInspectorData(findNodeHandle) { - return { - measure: function measure(callback) { - return UIManager.measure(getHostNode(fiber, findNodeHandle), callback); - }, - props: getHostProps(fiber), - source: fiber._debugSource - }; - } - }; - }); - }; - - getInspectorDataForViewTag = function getInspectorDataForViewTag(viewTag) { - var closestInstance = getInstanceFromTag(viewTag); - - if (!closestInstance) { - return { - hierarchy: [], - props: emptyObject, - selection: null, - source: null - }; - } - - var fiber = findCurrentFiberUsingSlowPath(closestInstance); - var fiberHierarchy = getOwnerHierarchy(fiber); - var instance = lastNonHostInstance(fiberHierarchy); - var hierarchy = createHierarchy(fiberHierarchy); - var props = getHostProps(instance); - var source = instance._debugSource; - var selection = fiberHierarchy.indexOf(instance); - return { - hierarchy: hierarchy, - props: props, - selection: selection, - source: source - }; - }; - } - var findHostInstance = findHostInstance$1; - - function findNodeHandle(componentOrHandle) { - { - var owner = ReactCurrentOwner.current; - - if (owner !== null && owner.stateNode !== null) { - !owner.stateNode._warnedAboutRefsInRender ? warning(false, "%s is accessing findNodeHandle inside its render(). " + "render() should be a pure function of props and state. It should " + "never access something that requires stale data from the previous " + "render, such as refs. Move this logic to componentDidMount and " + "componentDidUpdate instead.", getComponentName(owner) || "A component") : void 0; - owner.stateNode._warnedAboutRefsInRender = true; - } - } - - if (componentOrHandle == null) { - return null; - } - - if (typeof componentOrHandle === "number") { - return componentOrHandle; - } - - if (componentOrHandle._nativeTag) { - return componentOrHandle._nativeTag; - } - - if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) { - return componentOrHandle.canonical._nativeTag; - } - - var hostInstance = findHostInstance(componentOrHandle); - - if (hostInstance == null) { - return hostInstance; - } - - if (hostInstance.canonical) { - return hostInstance.canonical._nativeTag; - } - - return hostInstance._nativeTag; - } - - injection$2.injectRenderer(ReactFabricRenderer); - var roots = new Map(); - var ReactFabric = { - NativeComponent: ReactNativeComponent(findNodeHandle, findHostInstance), - findNodeHandle: findNodeHandle, - render: function render(element, containerTag, callback) { - var root = roots.get(containerTag); - - if (!root) { - root = createContainer(containerTag, false, false); - roots.set(containerTag, root); - } - - updateContainer(element, root, null, callback); - return getPublicRootInstance(root); - }, - unmountComponentAtNode: function unmountComponentAtNode(containerTag) { - var root = roots.get(containerTag); - - if (root) { - updateContainer(null, root, null, function () { - roots.delete(containerTag); - }); - } - }, - createPortal: function createPortal(children, containerTag) { - var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - return _createPortal(children, containerTag, null, key); - }, - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { - NativeMethodsMixin: NativeMethodsMixin(findNodeHandle, findHostInstance) - } - }; - injectIntoDevTools({ - findFiberByHostInstance: getInstanceFromInstance, - getInspectorDataForViewTag: getInspectorDataForViewTag, - bundleType: 1, - version: ReactVersion, - rendererPackageName: "react-native-renderer" - }); - var ReactFabric$2 = Object.freeze({ - default: ReactFabric - }); - var ReactFabric$3 = ReactFabric$2 && ReactFabric || ReactFabric$2; - var fabric = ReactFabric$3.default ? ReactFabric$3.default : ReactFabric$3; - module.exports = fabric; - })(); - } -},503,[337,4,111,157,87,122,339,340,134,106,341,505,130,342],"node_modules/react-native/Libraries/Renderer/oss/ReactFabric-dev.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var FabricUIManager = global.nativeFabricUIManager; - module.exports = FabricUIManager; -},505,[],"node_modules/react-native/Libraries/ReactNative/FabricUIManager.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - "use strict"; - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - _$$_REQUIRE(_dependencyMap[0], "InitializeCore"); - - var invariant = _$$_REQUIRE(_dependencyMap[1], "fbjs/lib/invariant"), - ReactNativeViewConfigRegistry = _$$_REQUIRE(_dependencyMap[2], "ReactNativeViewConfigRegistry"), - UIManager = _$$_REQUIRE(_dependencyMap[3], "UIManager"), - React = _$$_REQUIRE(_dependencyMap[4], "react"), - emptyObject = _$$_REQUIRE(_dependencyMap[5], "fbjs/lib/emptyObject"), - deepDiffer = _$$_REQUIRE(_dependencyMap[6], "deepDiffer"), - flattenStyle = _$$_REQUIRE(_dependencyMap[7], "flattenStyle"), - TextInputState = _$$_REQUIRE(_dependencyMap[8], "TextInputState"), - FabricUIManager = _$$_REQUIRE(_dependencyMap[9], "FabricUIManager"), - ExceptionsManager = _$$_REQUIRE(_dependencyMap[10], "ExceptionsManager"); - - function _invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { - this._hasCaughtError = !1; - this._caughtError = null; - var funcArgs = Array.prototype.slice.call(arguments, 3); - - try { - func.apply(context, funcArgs); - } catch (error) { - this._caughtError = error, this._hasCaughtError = !0; - } - } - - var ReactErrorUtils = { - _caughtError: null, - _hasCaughtError: !1, - _rethrowError: null, - _hasRethrowError: !1, - invokeGuardedCallback: function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { - _invokeGuardedCallback.apply(ReactErrorUtils, arguments); - }, - invokeGuardedCallbackAndCatchFirstError: function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { - ReactErrorUtils.invokeGuardedCallback.apply(this, arguments); - - if (ReactErrorUtils.hasCaughtError()) { - var error = ReactErrorUtils.clearCaughtError(); - ReactErrorUtils._hasRethrowError || (ReactErrorUtils._hasRethrowError = !0, ReactErrorUtils._rethrowError = error); - } - }, - rethrowCaughtError: function rethrowCaughtError() { - return _rethrowCaughtError.apply(ReactErrorUtils, arguments); - }, - hasCaughtError: function hasCaughtError() { - return ReactErrorUtils._hasCaughtError; - }, - clearCaughtError: function clearCaughtError() { - if (ReactErrorUtils._hasCaughtError) { - var error = ReactErrorUtils._caughtError; - ReactErrorUtils._caughtError = null; - ReactErrorUtils._hasCaughtError = !1; - return error; - } - - invariant(!1, "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue."); - } - }; - - function _rethrowCaughtError() { - if (ReactErrorUtils._hasRethrowError) { - var error = ReactErrorUtils._rethrowError; - ReactErrorUtils._rethrowError = null; - ReactErrorUtils._hasRethrowError = !1; - throw error; - } - } - - var eventPluginOrder = null, - namesToPlugins = {}; - - function recomputePluginOrdering() { - if (eventPluginOrder) for (var pluginName in namesToPlugins) { - var pluginModule = namesToPlugins[pluginName], - pluginIndex = eventPluginOrder.indexOf(pluginName); - invariant(-1 < pluginIndex, "EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.", pluginName); - - if (!plugins[pluginIndex]) { - invariant(pluginModule.extractEvents, "EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.", pluginName); - plugins[pluginIndex] = pluginModule; - pluginIndex = pluginModule.eventTypes; - - for (var eventName in pluginIndex) { - var JSCompiler_inline_result = void 0; - var dispatchConfig = pluginIndex[eventName], - pluginModule$jscomp$0 = pluginModule, - eventName$jscomp$0 = eventName; - invariant(!eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0), "EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.", eventName$jscomp$0); - eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig; - var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; - - if (phasedRegistrationNames) { - for (JSCompiler_inline_result in phasedRegistrationNames) { - phasedRegistrationNames.hasOwnProperty(JSCompiler_inline_result) && publishRegistrationName(phasedRegistrationNames[JSCompiler_inline_result], pluginModule$jscomp$0, eventName$jscomp$0); - } - - JSCompiler_inline_result = !0; - } else dispatchConfig.registrationName ? (publishRegistrationName(dispatchConfig.registrationName, pluginModule$jscomp$0, eventName$jscomp$0), JSCompiler_inline_result = !0) : JSCompiler_inline_result = !1; - - invariant(JSCompiler_inline_result, "EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.", eventName, pluginName); - } - } - } - } - - function publishRegistrationName(registrationName, pluginModule) { - invariant(!registrationNameModules[registrationName], "EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.", registrationName); - registrationNameModules[registrationName] = pluginModule; - } - - var plugins = [], - eventNameDispatchConfigs = {}, - registrationNameModules = {}, - getFiberCurrentPropsFromNode = null, - getInstanceFromNode = null, - getNodeFromInstance = null; - - function executeDispatch(event, simulated, listener, inst) { - simulated = event.type || "unknown-event"; - event.currentTarget = getNodeFromInstance(inst); - ReactErrorUtils.invokeGuardedCallbackAndCatchFirstError(simulated, listener, void 0, event); - event.currentTarget = null; - } - - function executeDirectDispatch(event) { - var dispatchListener = event._dispatchListeners, - dispatchInstance = event._dispatchInstances; - invariant(!Array.isArray(dispatchListener), "executeDirectDispatch(...): Invalid `event`."); - event.currentTarget = dispatchListener ? getNodeFromInstance(dispatchInstance) : null; - dispatchListener = dispatchListener ? dispatchListener(event) : null; - event.currentTarget = null; - event._dispatchListeners = null; - event._dispatchInstances = null; - return dispatchListener; - } - - function accumulateInto(current, next) { - invariant(null != next, "accumulateInto(...): Accumulated items must not be null or undefined."); - if (null == current) return next; - - if (Array.isArray(current)) { - if (Array.isArray(next)) return current.push.apply(current, next), current; - current.push(next); - return current; - } - - return Array.isArray(next) ? [current].concat(next) : [current, next]; - } - - function forEachAccumulated(arr, cb, scope) { - Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr); - } - - var eventQueue = null; - - function executeDispatchesAndReleaseTopLevel(e) { - if (e) { - var dispatchListeners = e._dispatchListeners, - dispatchInstances = e._dispatchInstances; - if (Array.isArray(dispatchListeners)) for (var i = 0; i < dispatchListeners.length && !e.isPropagationStopped(); i++) { - executeDispatch(e, !1, dispatchListeners[i], dispatchInstances[i]); - } else dispatchListeners && executeDispatch(e, !1, dispatchListeners, dispatchInstances); - e._dispatchListeners = null; - e._dispatchInstances = null; - e.isPersistent() || e.constructor.release(e); - } - } - - var injection = { - injectEventPluginOrder: function injectEventPluginOrder(injectedEventPluginOrder) { - invariant(!eventPluginOrder, "EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."); - eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); - recomputePluginOrdering(); - }, - injectEventPluginsByName: function injectEventPluginsByName(injectedNamesToPlugins) { - var isOrderingDirty = !1, - pluginName; - - for (pluginName in injectedNamesToPlugins) { - if (injectedNamesToPlugins.hasOwnProperty(pluginName)) { - var pluginModule = injectedNamesToPlugins[pluginName]; - namesToPlugins.hasOwnProperty(pluginName) && namesToPlugins[pluginName] === pluginModule || (invariant(!namesToPlugins[pluginName], "EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.", pluginName), namesToPlugins[pluginName] = pluginModule, isOrderingDirty = !0); - } - } - - isOrderingDirty && recomputePluginOrdering(); - } - }; - - function getListener(inst, registrationName) { - var listener = inst.stateNode; - if (!listener) return null; - var props = getFiberCurrentPropsFromNode(listener); - if (!props) return null; - listener = props[registrationName]; - - a: switch (registrationName) { - case "onClick": - case "onClickCapture": - case "onDoubleClick": - case "onDoubleClickCapture": - case "onMouseDown": - case "onMouseDownCapture": - case "onMouseMove": - case "onMouseMoveCapture": - case "onMouseUp": - case "onMouseUpCapture": - (props = !props.disabled) || (inst = inst.type, props = !("button" === inst || "input" === inst || "select" === inst || "textarea" === inst)); - inst = !props; - break a; - - default: - inst = !1; - } - - if (inst) return null; - invariant(!listener || "function" === typeof listener, "Expected `%s` listener to be a function, instead got a value of `%s` type.", registrationName, typeof listener); - return listener; - } - - function getParent(inst) { - do { - inst = inst.return; - } while (inst && 5 !== inst.tag); - - return inst ? inst : null; - } - - function traverseTwoPhase(inst, fn, arg) { - for (var path = []; inst;) { - path.push(inst), inst = getParent(inst); - } - - for (inst = path.length; 0 < inst--;) { - fn(path[inst], "captured", arg); - } - - for (inst = 0; inst < path.length; inst++) { - fn(path[inst], "bubbled", arg); - } - } - - function accumulateDirectionalDispatches(inst, phase, event) { - if (phase = getListener(inst, event.dispatchConfig.phasedRegistrationNames[phase])) event._dispatchListeners = accumulateInto(event._dispatchListeners, phase), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); - } - - function accumulateTwoPhaseDispatchesSingle(event) { - event && event.dispatchConfig.phasedRegistrationNames && traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); - } - - function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { - if (event && event.dispatchConfig.phasedRegistrationNames) { - var targetInst = event._targetInst; - targetInst = targetInst ? getParent(targetInst) : null; - traverseTwoPhase(targetInst, accumulateDirectionalDispatches, event); - } - } - - function accumulateDirectDispatchesSingle(event) { - if (event && event.dispatchConfig.registrationName) { - var inst = event._targetInst; - - if (inst && event && event.dispatchConfig.registrationName) { - var listener = getListener(inst, event.dispatchConfig.registrationName); - listener && (event._dispatchListeners = accumulateInto(event._dispatchListeners, listener), event._dispatchInstances = accumulateInto(event._dispatchInstances, inst)); - } - } - } - - var shouldBeReleasedProperties = "dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "); - - function functionThatReturnsTrue() { - return !0; - } - - function functionThatReturnsFalse() { - return !1; - } - - function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { - this.dispatchConfig = dispatchConfig; - this._targetInst = targetInst; - this.nativeEvent = nativeEvent; - dispatchConfig = this.constructor.Interface; - - for (var propName in dispatchConfig) { - dispatchConfig.hasOwnProperty(propName) && ((targetInst = dispatchConfig[propName]) ? this[propName] = targetInst(nativeEvent) : "target" === propName ? this.target = nativeEventTarget : this[propName] = nativeEvent[propName]); - } - - this.isDefaultPrevented = (null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : !1 === nativeEvent.returnValue) ? functionThatReturnsTrue : functionThatReturnsFalse; - this.isPropagationStopped = functionThatReturnsFalse; - return this; - } - - _extends(SyntheticEvent.prototype, { - preventDefault: function preventDefault() { - this.defaultPrevented = !0; - var event = this.nativeEvent; - event && (event.preventDefault ? event.preventDefault() : "unknown" !== typeof event.returnValue && (event.returnValue = !1), this.isDefaultPrevented = functionThatReturnsTrue); - }, - stopPropagation: function stopPropagation() { - var event = this.nativeEvent; - event && (event.stopPropagation ? event.stopPropagation() : "unknown" !== typeof event.cancelBubble && (event.cancelBubble = !0), this.isPropagationStopped = functionThatReturnsTrue); - }, - persist: function persist() { - this.isPersistent = functionThatReturnsTrue; - }, - isPersistent: functionThatReturnsFalse, - destructor: function destructor() { - var Interface = this.constructor.Interface, - propName; - - for (propName in Interface) { - this[propName] = null; - } - - for (Interface = 0; Interface < shouldBeReleasedProperties.length; Interface++) { - this[shouldBeReleasedProperties[Interface]] = null; - } - } - }); - - SyntheticEvent.Interface = { - type: null, - target: null, - currentTarget: function currentTarget() { - return null; - }, - eventPhase: null, - bubbles: null, - cancelable: null, - timeStamp: function timeStamp(event) { - return event.timeStamp || Date.now(); - }, - defaultPrevented: null, - isTrusted: null - }; - - SyntheticEvent.extend = function (Interface) { - function E() {} - - function Class() { - return Super.apply(this, arguments); - } - - var Super = this; - E.prototype = Super.prototype; - var prototype = new E(); - - _extends(prototype, Class.prototype); - - Class.prototype = prototype; - Class.prototype.constructor = Class; - Class.Interface = _extends({}, Super.Interface, Interface); - Class.extend = Super.extend; - addEventPoolingTo(Class); - return Class; - }; - - addEventPoolingTo(SyntheticEvent); - - function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { - if (this.eventPool.length) { - var instance = this.eventPool.pop(); - this.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); - return instance; - } - - return new this(dispatchConfig, targetInst, nativeEvent, nativeInst); - } - - function releasePooledEvent(event) { - invariant(event instanceof this, "Trying to release an event instance into a pool of a different type."); - event.destructor(); - 10 > this.eventPool.length && this.eventPool.push(event); - } - - function addEventPoolingTo(EventConstructor) { - EventConstructor.eventPool = []; - EventConstructor.getPooled = getPooledEvent; - EventConstructor.release = releasePooledEvent; - } - - var ResponderSyntheticEvent = SyntheticEvent.extend({ - touchHistory: function touchHistory() { - return null; - } - }); - - function isStartish(topLevelType) { - return "topTouchStart" === topLevelType; - } - - function isMoveish(topLevelType) { - return "topTouchMove" === topLevelType; - } - - var startDependencies = ["topTouchStart"], - moveDependencies = ["topTouchMove"], - endDependencies = ["topTouchCancel", "topTouchEnd"], - touchBank = [], - touchHistory = { - touchBank: touchBank, - numberActiveTouches: 0, - indexOfSingleActiveTouch: -1, - mostRecentTimeStamp: 0 - }; - - function timestampForTouch(touch) { - return touch.timeStamp || touch.timestamp; - } - - function getTouchIdentifier(_ref) { - _ref = _ref.identifier; - invariant(null != _ref, "Touch object is missing identifier."); - return _ref; - } - - function recordTouchStart(touch) { - var identifier = getTouchIdentifier(touch), - touchRecord = touchBank[identifier]; - touchRecord ? (touchRecord.touchActive = !0, touchRecord.startPageX = touch.pageX, touchRecord.startPageY = touch.pageY, touchRecord.startTimeStamp = timestampForTouch(touch), touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchRecord.previousPageX = touch.pageX, touchRecord.previousPageY = touch.pageY, touchRecord.previousTimeStamp = timestampForTouch(touch)) : (touchRecord = { - touchActive: !0, - startPageX: touch.pageX, - startPageY: touch.pageY, - startTimeStamp: timestampForTouch(touch), - currentPageX: touch.pageX, - currentPageY: touch.pageY, - currentTimeStamp: timestampForTouch(touch), - previousPageX: touch.pageX, - previousPageY: touch.pageY, - previousTimeStamp: timestampForTouch(touch) - }, touchBank[identifier] = touchRecord); - touchHistory.mostRecentTimeStamp = timestampForTouch(touch); - } - - function recordTouchMove(touch) { - var touchRecord = touchBank[getTouchIdentifier(touch)]; - touchRecord ? (touchRecord.touchActive = !0, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)) : console.error("Cannot record touch move without a touch start.\nTouch Move: %s\n", "Touch Bank: %s", printTouch(touch), printTouchBank()); - } - - function recordTouchEnd(touch) { - var touchRecord = touchBank[getTouchIdentifier(touch)]; - touchRecord ? (touchRecord.touchActive = !1, touchRecord.previousPageX = touchRecord.currentPageX, touchRecord.previousPageY = touchRecord.currentPageY, touchRecord.previousTimeStamp = touchRecord.currentTimeStamp, touchRecord.currentPageX = touch.pageX, touchRecord.currentPageY = touch.pageY, touchRecord.currentTimeStamp = timestampForTouch(touch), touchHistory.mostRecentTimeStamp = timestampForTouch(touch)) : console.error("Cannot record touch end without a touch start.\nTouch End: %s\n", "Touch Bank: %s", printTouch(touch), printTouchBank()); - } - - function printTouch(touch) { - return JSON.stringify({ - identifier: touch.identifier, - pageX: touch.pageX, - pageY: touch.pageY, - timestamp: timestampForTouch(touch) - }); - } - - function printTouchBank() { - var printed = JSON.stringify(touchBank.slice(0, 20)); - 20 < touchBank.length && (printed += " (original size: " + touchBank.length + ")"); - return printed; - } - - var ResponderTouchHistoryStore = { - recordTouchTrack: function recordTouchTrack(topLevelType, nativeEvent) { - if (isMoveish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchMove);else if (isStartish(topLevelType)) nativeEvent.changedTouches.forEach(recordTouchStart), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches && (touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier);else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (nativeEvent.changedTouches.forEach(recordTouchEnd), touchHistory.numberActiveTouches = nativeEvent.touches.length, 1 === touchHistory.numberActiveTouches) for (topLevelType = 0; topLevelType < touchBank.length; topLevelType++) { - if (nativeEvent = touchBank[topLevelType], null != nativeEvent && nativeEvent.touchActive) { - touchHistory.indexOfSingleActiveTouch = topLevelType; - break; - } - } - }, - touchHistory: touchHistory - }; - - function accumulate(current, next) { - invariant(null != next, "accumulate(...): Accumulated items must be not be null or undefined."); - return null == current ? next : Array.isArray(current) ? current.concat(next) : Array.isArray(next) ? [current].concat(next) : [current, next]; - } - - var responderInst = null, - trackedTouchCount = 0; - - function changeResponder(nextResponderInst, blockHostResponder) { - var oldResponderInst = responderInst; - responderInst = nextResponderInst; - if (null !== ResponderEventPlugin.GlobalResponderHandler) ResponderEventPlugin.GlobalResponderHandler.onChange(oldResponderInst, nextResponderInst, blockHostResponder); - } - - var eventTypes$1 = { - startShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onStartShouldSetResponder", - captured: "onStartShouldSetResponderCapture" - }, - dependencies: startDependencies - }, - scrollShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onScrollShouldSetResponder", - captured: "onScrollShouldSetResponderCapture" - }, - dependencies: ["topScroll"] - }, - selectionChangeShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onSelectionChangeShouldSetResponder", - captured: "onSelectionChangeShouldSetResponderCapture" - }, - dependencies: ["topSelectionChange"] - }, - moveShouldSetResponder: { - phasedRegistrationNames: { - bubbled: "onMoveShouldSetResponder", - captured: "onMoveShouldSetResponderCapture" - }, - dependencies: moveDependencies - }, - responderStart: { - registrationName: "onResponderStart", - dependencies: startDependencies - }, - responderMove: { - registrationName: "onResponderMove", - dependencies: moveDependencies - }, - responderEnd: { - registrationName: "onResponderEnd", - dependencies: endDependencies - }, - responderRelease: { - registrationName: "onResponderRelease", - dependencies: endDependencies - }, - responderTerminationRequest: { - registrationName: "onResponderTerminationRequest", - dependencies: [] - }, - responderGrant: { - registrationName: "onResponderGrant", - dependencies: [] - }, - responderReject: { - registrationName: "onResponderReject", - dependencies: [] - }, - responderTerminate: { - registrationName: "onResponderTerminate", - dependencies: [] - } - }, - ResponderEventPlugin = { - _getResponder: function _getResponder() { - return responderInst; - }, - eventTypes: eventTypes$1, - extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - if (isStartish(topLevelType)) trackedTouchCount += 1;else if ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType) if (0 <= trackedTouchCount) --trackedTouchCount;else return console.error("Ended a touch event which was not counted in `trackedTouchCount`."), null; - ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent); - - if (targetInst && ("topScroll" === topLevelType && !nativeEvent.responderIgnoreScroll || 0 < trackedTouchCount && "topSelectionChange" === topLevelType || isStartish(topLevelType) || isMoveish(topLevelType))) { - var JSCompiler_temp = isStartish(topLevelType) ? eventTypes$1.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes$1.moveShouldSetResponder : "topSelectionChange" === topLevelType ? eventTypes$1.selectionChangeShouldSetResponder : eventTypes$1.scrollShouldSetResponder; - if (responderInst) b: { - var JSCompiler_temp$jscomp$0 = responderInst; - - for (var depthA = 0, tempA = JSCompiler_temp$jscomp$0; tempA; tempA = getParent(tempA)) { - depthA++; - } - - tempA = 0; - - for (var tempB = targetInst; tempB; tempB = getParent(tempB)) { - tempA++; - } - - for (; 0 < depthA - tempA;) { - JSCompiler_temp$jscomp$0 = getParent(JSCompiler_temp$jscomp$0), depthA--; - } - - for (; 0 < tempA - depthA;) { - targetInst = getParent(targetInst), tempA--; - } - - for (; depthA--;) { - if (JSCompiler_temp$jscomp$0 === targetInst || JSCompiler_temp$jscomp$0 === targetInst.alternate) break b; - JSCompiler_temp$jscomp$0 = getParent(JSCompiler_temp$jscomp$0); - targetInst = getParent(targetInst); - } - - JSCompiler_temp$jscomp$0 = null; - } else JSCompiler_temp$jscomp$0 = targetInst; - targetInst = JSCompiler_temp$jscomp$0 === responderInst; - JSCompiler_temp$jscomp$0 = ResponderSyntheticEvent.getPooled(JSCompiler_temp, JSCompiler_temp$jscomp$0, nativeEvent, nativeEventTarget); - JSCompiler_temp$jscomp$0.touchHistory = ResponderTouchHistoryStore.touchHistory; - targetInst ? forEachAccumulated(JSCompiler_temp$jscomp$0, accumulateTwoPhaseDispatchesSingleSkipTarget) : forEachAccumulated(JSCompiler_temp$jscomp$0, accumulateTwoPhaseDispatchesSingle); - - b: { - JSCompiler_temp = JSCompiler_temp$jscomp$0._dispatchListeners; - targetInst = JSCompiler_temp$jscomp$0._dispatchInstances; - if (Array.isArray(JSCompiler_temp)) for (depthA = 0; depthA < JSCompiler_temp.length && !JSCompiler_temp$jscomp$0.isPropagationStopped(); depthA++) { - if (JSCompiler_temp[depthA](JSCompiler_temp$jscomp$0, targetInst[depthA])) { - JSCompiler_temp = targetInst[depthA]; - break b; - } - } else if (JSCompiler_temp && JSCompiler_temp(JSCompiler_temp$jscomp$0, targetInst)) { - JSCompiler_temp = targetInst; - break b; - } - JSCompiler_temp = null; - } - - JSCompiler_temp$jscomp$0._dispatchInstances = null; - JSCompiler_temp$jscomp$0._dispatchListeners = null; - JSCompiler_temp$jscomp$0.isPersistent() || JSCompiler_temp$jscomp$0.constructor.release(JSCompiler_temp$jscomp$0); - JSCompiler_temp && JSCompiler_temp !== responderInst ? (JSCompiler_temp$jscomp$0 = void 0, targetInst = ResponderSyntheticEvent.getPooled(eventTypes$1.responderGrant, JSCompiler_temp, nativeEvent, nativeEventTarget), targetInst.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(targetInst, accumulateDirectDispatchesSingle), depthA = !0 === executeDirectDispatch(targetInst), responderInst ? (tempA = ResponderSyntheticEvent.getPooled(eventTypes$1.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget), tempA.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(tempA, accumulateDirectDispatchesSingle), tempB = !tempA._dispatchListeners || executeDirectDispatch(tempA), tempA.isPersistent() || tempA.constructor.release(tempA), tempB ? (tempA = ResponderSyntheticEvent.getPooled(eventTypes$1.responderTerminate, responderInst, nativeEvent, nativeEventTarget), tempA.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(tempA, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, [targetInst, tempA]), changeResponder(JSCompiler_temp, depthA)) : (JSCompiler_temp = ResponderSyntheticEvent.getPooled(eventTypes$1.responderReject, JSCompiler_temp, nativeEvent, nativeEventTarget), JSCompiler_temp.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(JSCompiler_temp, accumulateDirectDispatchesSingle), JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, JSCompiler_temp))) : (JSCompiler_temp$jscomp$0 = accumulate(JSCompiler_temp$jscomp$0, targetInst), changeResponder(JSCompiler_temp, depthA)), JSCompiler_temp = JSCompiler_temp$jscomp$0) : JSCompiler_temp = null; - } else JSCompiler_temp = null; - - JSCompiler_temp$jscomp$0 = responderInst && isStartish(topLevelType); - targetInst = responderInst && isMoveish(topLevelType); - depthA = responderInst && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType); - if (JSCompiler_temp$jscomp$0 = JSCompiler_temp$jscomp$0 ? eventTypes$1.responderStart : targetInst ? eventTypes$1.responderMove : depthA ? eventTypes$1.responderEnd : null) JSCompiler_temp$jscomp$0 = ResponderSyntheticEvent.getPooled(JSCompiler_temp$jscomp$0, responderInst, nativeEvent, nativeEventTarget), JSCompiler_temp$jscomp$0.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(JSCompiler_temp$jscomp$0, accumulateDirectDispatchesSingle), JSCompiler_temp = accumulate(JSCompiler_temp, JSCompiler_temp$jscomp$0); - JSCompiler_temp$jscomp$0 = responderInst && "topTouchCancel" === topLevelType; - if (topLevelType = responderInst && !JSCompiler_temp$jscomp$0 && ("topTouchEnd" === topLevelType || "topTouchCancel" === topLevelType)) a: { - if ((topLevelType = nativeEvent.touches) && 0 !== topLevelType.length) for (targetInst = 0; targetInst < topLevelType.length; targetInst++) { - if (depthA = topLevelType[targetInst].target, null !== depthA && void 0 !== depthA && 0 !== depthA) { - tempA = getInstanceFromNode(depthA); - - b: { - for (depthA = responderInst; tempA;) { - if (depthA === tempA || depthA === tempA.alternate) { - depthA = !0; - break b; - } - - tempA = getParent(tempA); - } - - depthA = !1; - } - - if (depthA) { - topLevelType = !1; - break a; - } - } - } - topLevelType = !0; - } - if (topLevelType = JSCompiler_temp$jscomp$0 ? eventTypes$1.responderTerminate : topLevelType ? eventTypes$1.responderRelease : null) nativeEvent = ResponderSyntheticEvent.getPooled(topLevelType, responderInst, nativeEvent, nativeEventTarget), nativeEvent.touchHistory = ResponderTouchHistoryStore.touchHistory, forEachAccumulated(nativeEvent, accumulateDirectDispatchesSingle), JSCompiler_temp = accumulate(JSCompiler_temp, nativeEvent), changeResponder(null); - return JSCompiler_temp; - }, - GlobalResponderHandler: null, - injection: { - injectGlobalResponderHandler: function injectGlobalResponderHandler(GlobalResponderHandler) { - ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler; - } - } - }, - customBubblingEventTypes$1 = ReactNativeViewConfigRegistry.customBubblingEventTypes, - customDirectEventTypes$1 = ReactNativeViewConfigRegistry.customDirectEventTypes, - ReactNativeBridgeEventPlugin = { - eventTypes: ReactNativeViewConfigRegistry.eventTypes, - extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - if (null == targetInst) return null; - var bubbleDispatchConfig = customBubblingEventTypes$1[topLevelType], - directDispatchConfig = customDirectEventTypes$1[topLevelType]; - invariant(bubbleDispatchConfig || directDispatchConfig, 'Unsupported top level event type "%s" dispatched', topLevelType); - topLevelType = SyntheticEvent.getPooled(bubbleDispatchConfig || directDispatchConfig, targetInst, nativeEvent, nativeEventTarget); - if (bubbleDispatchConfig) forEachAccumulated(topLevelType, accumulateTwoPhaseDispatchesSingle);else if (directDispatchConfig) forEachAccumulated(topLevelType, accumulateDirectDispatchesSingle);else return null; - return topLevelType; - } - }; - injection.injectEventPluginOrder(["ResponderEventPlugin", "ReactNativeBridgeEventPlugin"]); - injection.injectEventPluginsByName({ - ResponderEventPlugin: ResponderEventPlugin, - ReactNativeBridgeEventPlugin: ReactNativeBridgeEventPlugin - }); - - function getInstanceFromInstance(instanceHandle) { - return instanceHandle; - } - - var Injected$jscomp$inline_574 = { - getClosestInstanceFromNode: getInstanceFromInstance, - getInstanceFromNode: getInstanceFromInstance, - getNodeFromInstance: function getNodeFromInstance(inst) { - inst = inst.stateNode.canonical._nativeTag; - invariant(inst, "All native instances should have a tag."); - return inst; - }, - getFiberCurrentPropsFromNode: function getFiberCurrentPropsFromNode(inst) { - return inst.canonical.currentProps; - } - }; - getFiberCurrentPropsFromNode = Injected$jscomp$inline_574.getFiberCurrentPropsFromNode; - getInstanceFromNode = Injected$jscomp$inline_574.getInstanceFromNode; - getNodeFromInstance = Injected$jscomp$inline_574.getNodeFromInstance; - ResponderEventPlugin.injection.injectGlobalResponderHandler({ - onChange: function onChange(from, to, blockNativeResponder) { - null !== to ? UIManager.setJSResponder(to.stateNode.canonical._nativeTag, blockNativeResponder) : UIManager.clearJSResponder(); - } - }); - var ReactCurrentOwner = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, - hasSymbol = "function" === typeof Symbol && (typeof Symbol === "function" ? Symbol.for : "@@for"), - REACT_ELEMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.element") : 60103, - REACT_PORTAL_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.portal") : 60106, - REACT_FRAGMENT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.fragment") : 60107, - REACT_STRICT_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.strict_mode") : 60108, - REACT_PROFILER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.profiler") : 60114, - REACT_PROVIDER_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.provider") : 60109, - REACT_CONTEXT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.context") : 60110, - REACT_ASYNC_MODE_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.async_mode") : 60111, - REACT_FORWARD_REF_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.forward_ref") : 60112, - REACT_TIMEOUT_TYPE = hasSymbol ? (typeof Symbol === "function" ? Symbol.for : "@@for")("react.timeout") : 60113, - MAYBE_ITERATOR_SYMBOL = "function" === typeof Symbol && (typeof Symbol === "function" ? Symbol.iterator : "@@iterator"); - - function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "undefined" === typeof maybeIterable) return null; - maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; - } - - function getComponentName(fiber) { - var type = fiber.type; - if ("function" === typeof type) return type.displayName || type.name; - if ("string" === typeof type) return type; - - switch (type) { - case REACT_ASYNC_MODE_TYPE: - return "AsyncMode"; - - case REACT_CONTEXT_TYPE: - return "Context.Consumer"; - - case REACT_FRAGMENT_TYPE: - return "ReactFragment"; - - case REACT_PORTAL_TYPE: - return "ReactPortal"; - - case REACT_PROFILER_TYPE: - return "Profiler(" + fiber.pendingProps.id + ")"; - - case REACT_PROVIDER_TYPE: - return "Context.Provider"; - - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - - case REACT_TIMEOUT_TYPE: - return "Timeout"; - } - - if ("object" === typeof type && null !== type) switch (type.$$typeof) { - case REACT_FORWARD_REF_TYPE: - return fiber = type.render.displayName || type.render.name || "", "" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef"; - } - return null; - } - - function isFiberMountedImpl(fiber) { - var node = fiber; - if (fiber.alternate) for (; node.return;) { - node = node.return; - } else { - if (0 !== (node.effectTag & 2)) return 1; - - for (; node.return;) { - if (node = node.return, 0 !== (node.effectTag & 2)) return 1; - } - } - return 3 === node.tag ? 2 : 3; - } - - function assertIsMounted(fiber) { - invariant(2 === isFiberMountedImpl(fiber), "Unable to find node on an unmounted component."); - } - - function findCurrentFiberUsingSlowPath(fiber) { - var alternate = fiber.alternate; - if (!alternate) return alternate = isFiberMountedImpl(fiber), invariant(3 !== alternate, "Unable to find node on an unmounted component."), 1 === alternate ? null : fiber; - - for (var a = fiber, b = alternate;;) { - var parentA = a.return, - parentB = parentA ? parentA.alternate : null; - if (!parentA || !parentB) break; - - if (parentA.child === parentB.child) { - for (var child = parentA.child; child;) { - if (child === a) return assertIsMounted(parentA), fiber; - if (child === b) return assertIsMounted(parentA), alternate; - child = child.sibling; - } - - invariant(!1, "Unable to find node on an unmounted component."); - } - - if (a.return !== b.return) a = parentA, b = parentB;else { - child = !1; - - for (var _child = parentA.child; _child;) { - if (_child === a) { - child = !0; - a = parentA; - b = parentB; - break; - } - - if (_child === b) { - child = !0; - b = parentA; - a = parentB; - break; - } - - _child = _child.sibling; - } - - if (!child) { - for (_child = parentB.child; _child;) { - if (_child === a) { - child = !0; - a = parentB; - b = parentA; - break; - } - - if (_child === b) { - child = !0; - b = parentB; - a = parentA; - break; - } - - _child = _child.sibling; - } - - invariant(child, "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."); - } - } - invariant(a.alternate === b, "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."); - } - - invariant(3 === a.tag, "Unable to find node on an unmounted component."); - return a.stateNode.current === a ? fiber : alternate; - } - - function findCurrentHostFiber(parent) { - parent = findCurrentFiberUsingSlowPath(parent); - if (!parent) return null; - - for (var node = parent;;) { - if (5 === node.tag || 6 === node.tag) return node; - if (node.child) node.child.return = node, node = node.child;else { - if (node === parent) break; - - for (; !node.sibling;) { - if (!node.return || node.return === parent) return null; - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - } - - return null; - } - - function findCurrentHostFiberWithNoPortals(parent) { - parent = findCurrentFiberUsingSlowPath(parent); - if (!parent) return null; - - for (var node = parent;;) { - if (5 === node.tag || 6 === node.tag) return node; - if (node.child && 4 !== node.tag) node.child.return = node, node = node.child;else { - if (node === parent) break; - - for (; !node.sibling;) { - if (!node.return || node.return === parent) return null; - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - } - - return null; - } - - function mountSafeCallback(context, callback) { - return function () { - if (callback) { - if ("boolean" === typeof context.__isMounted) { - if (!context.__isMounted) return; - } else if ("function" === typeof context.isMounted && !context.isMounted()) return; - - return callback.apply(context, arguments); - } - }; - } - - var emptyObject$1 = {}, - removedKeys = null, - removedKeyCount = 0; - - function restoreDeletedValuesInNestedArray(updatePayload, node, validAttributes) { - if (Array.isArray(node)) for (var i = node.length; i-- && 0 < removedKeyCount;) { - restoreDeletedValuesInNestedArray(updatePayload, node[i], validAttributes); - } else if (node && 0 < removedKeyCount) for (i in removedKeys) { - if (removedKeys[i]) { - var _nextProp = node[i]; - - if (void 0 !== _nextProp) { - var attributeConfig = validAttributes[i]; - - if (attributeConfig) { - "function" === typeof _nextProp && (_nextProp = !0); - "undefined" === typeof _nextProp && (_nextProp = null); - if ("object" !== typeof attributeConfig) updatePayload[i] = _nextProp;else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) _nextProp = "function" === typeof attributeConfig.process ? attributeConfig.process(_nextProp) : _nextProp, updatePayload[i] = _nextProp; - removedKeys[i] = !1; - removedKeyCount--; - } - } - } - } - } - - function diffNestedProperty(updatePayload, prevProp, nextProp, validAttributes) { - if (!updatePayload && prevProp === nextProp) return updatePayload; - if (!prevProp || !nextProp) return nextProp ? addNestedProperty(updatePayload, nextProp, validAttributes) : prevProp ? clearNestedProperty(updatePayload, prevProp, validAttributes) : updatePayload; - if (!Array.isArray(prevProp) && !Array.isArray(nextProp)) return diffProperties(updatePayload, prevProp, nextProp, validAttributes); - - if (Array.isArray(prevProp) && Array.isArray(nextProp)) { - var minLength = prevProp.length < nextProp.length ? prevProp.length : nextProp.length, - i; - - for (i = 0; i < minLength; i++) { - updatePayload = diffNestedProperty(updatePayload, prevProp[i], nextProp[i], validAttributes); - } - - for (; i < prevProp.length; i++) { - updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); - } - - for (; i < nextProp.length; i++) { - updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); - } - - return updatePayload; - } - - return Array.isArray(prevProp) ? diffProperties(updatePayload, flattenStyle(prevProp), nextProp, validAttributes) : diffProperties(updatePayload, prevProp, flattenStyle(nextProp), validAttributes); - } - - function addNestedProperty(updatePayload, nextProp, validAttributes) { - if (!nextProp) return updatePayload; - if (!Array.isArray(nextProp)) return diffProperties(updatePayload, emptyObject$1, nextProp, validAttributes); - - for (var i = 0; i < nextProp.length; i++) { - updatePayload = addNestedProperty(updatePayload, nextProp[i], validAttributes); - } - - return updatePayload; - } - - function clearNestedProperty(updatePayload, prevProp, validAttributes) { - if (!prevProp) return updatePayload; - if (!Array.isArray(prevProp)) return diffProperties(updatePayload, prevProp, emptyObject$1, validAttributes); - - for (var i = 0; i < prevProp.length; i++) { - updatePayload = clearNestedProperty(updatePayload, prevProp[i], validAttributes); - } - - return updatePayload; - } - - function diffProperties(updatePayload, prevProps, nextProps, validAttributes) { - var attributeConfig, propKey; - - for (propKey in nextProps) { - if (attributeConfig = validAttributes[propKey]) { - var prevProp = prevProps[propKey]; - var nextProp = nextProps[propKey]; - "function" === typeof nextProp && (nextProp = !0, "function" === typeof prevProp && (prevProp = !0)); - "undefined" === typeof nextProp && (nextProp = null, "undefined" === typeof prevProp && (prevProp = null)); - removedKeys && (removedKeys[propKey] = !1); - if (updatePayload && void 0 !== updatePayload[propKey]) { - if ("object" !== typeof attributeConfig) updatePayload[propKey] = nextProp;else { - if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, updatePayload[propKey] = attributeConfig; - } - } else if (prevProp !== nextProp) if ("object" !== typeof attributeConfig) ("object" !== typeof nextProp || null === nextProp || deepDiffer(prevProp, nextProp)) && ((updatePayload || (updatePayload = {}))[propKey] = nextProp);else if ("function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process) { - if (void 0 === prevProp || ("function" === typeof attributeConfig.diff ? attributeConfig.diff(prevProp, nextProp) : "object" !== typeof nextProp || null === nextProp || deepDiffer(prevProp, nextProp))) attributeConfig = "function" === typeof attributeConfig.process ? attributeConfig.process(nextProp) : nextProp, (updatePayload || (updatePayload = {}))[propKey] = attributeConfig; - } else removedKeys = null, removedKeyCount = 0, updatePayload = diffNestedProperty(updatePayload, prevProp, nextProp, attributeConfig), 0 < removedKeyCount && updatePayload && (restoreDeletedValuesInNestedArray(updatePayload, nextProp, attributeConfig), removedKeys = null); - } - } - - for (var _propKey in prevProps) { - void 0 === nextProps[_propKey] && (!(attributeConfig = validAttributes[_propKey]) || updatePayload && void 0 !== updatePayload[_propKey] || (prevProp = prevProps[_propKey], void 0 !== prevProp && ("object" !== typeof attributeConfig || "function" === typeof attributeConfig.diff || "function" === typeof attributeConfig.process ? ((updatePayload || (updatePayload = {}))[_propKey] = null, removedKeys || (removedKeys = {}), removedKeys[_propKey] || (removedKeys[_propKey] = !0, removedKeyCount++)) : updatePayload = clearNestedProperty(updatePayload, prevProp, attributeConfig)))); - } - - return updatePayload; - } - - var now$1 = "object" === typeof performance && "function" === typeof performance.now ? function () { - return performance.now(); - } : function () { - return Date.now(); - }, - scheduledCallback = null, - frameDeadline = 0, - frameDeadlineObject = { - timeRemaining: function timeRemaining() { - return frameDeadline - now$1(); - }, - didTimeout: !1 - }; - - function setTimeoutCallback() { - frameDeadline = now$1() + 5; - var callback = scheduledCallback; - scheduledCallback = null; - null !== callback && callback(frameDeadlineObject); - } - - var restoreTarget = null, - restoreQueue = null; - - function restoreStateOfTarget(target) { - if (target = getInstanceFromNode(target)) { - invariant(null, "Fiber needs to be injected to handle a fiber target for controlled events. This error is likely caused by a bug in React. Please file an issue."); - var props = getFiberCurrentPropsFromNode(target.stateNode); - null.restoreControlledState(target.stateNode, target.type, props); - } - } - - function _batchedUpdates(fn, bookkeeping) { - return fn(bookkeeping); - } - - function _flushInteractiveUpdates() {} - - var isBatching = !1; - - function batchedUpdates(fn, bookkeeping) { - if (isBatching) return fn(bookkeeping); - isBatching = !0; - - try { - return _batchedUpdates(fn, bookkeeping); - } finally { - if (isBatching = !1, null !== restoreTarget || null !== restoreQueue) if (_flushInteractiveUpdates(), restoreTarget && (bookkeeping = restoreTarget, fn = restoreQueue, restoreQueue = restoreTarget = null, restoreStateOfTarget(bookkeeping), fn)) for (bookkeeping = 0; bookkeeping < fn.length; bookkeeping++) { - restoreStateOfTarget(fn[bookkeeping]); - } - } - } - - function dispatchEvent(target, topLevelType, nativeEvent) { - batchedUpdates(function () { - var events = nativeEvent.target; - - for (var events$jscomp$0 = null, i = 0; i < plugins.length; i++) { - var possiblePlugin = plugins[i]; - possiblePlugin && (possiblePlugin = possiblePlugin.extractEvents(topLevelType, target, nativeEvent, events)) && (events$jscomp$0 = accumulateInto(events$jscomp$0, possiblePlugin)); - } - - events = events$jscomp$0; - null !== events && (eventQueue = accumulateInto(eventQueue, events)); - events = eventQueue; - eventQueue = null; - events && (forEachAccumulated(events, executeDispatchesAndReleaseTopLevel), invariant(!eventQueue, "processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."), ReactErrorUtils.rethrowCaughtError()); - }); - } - - function shim$1() { - invariant(!1, "The current renderer does not support hyration. This error is likely caused by a bug in React. Please file an issue."); - } - - var nextReactTag = 2; - FabricUIManager.registerEventHandler && FabricUIManager.registerEventHandler(dispatchEvent); - - var ReactFabricHostComponent = function () { - function ReactFabricHostComponent(tag, viewConfig, props) { - if (!(this instanceof ReactFabricHostComponent)) throw new TypeError("Cannot call a class as a function"); - this._nativeTag = tag; - this.viewConfig = viewConfig; - this.currentProps = props; - } - - ReactFabricHostComponent.prototype.blur = function () { - TextInputState.blurTextInput(this._nativeTag); - }; - - ReactFabricHostComponent.prototype.focus = function () { - TextInputState.focusTextInput(this._nativeTag); - }; - - ReactFabricHostComponent.prototype.measure = function (callback) { - UIManager.measure(this._nativeTag, mountSafeCallback(this, callback)); - }; - - ReactFabricHostComponent.prototype.measureInWindow = function (callback) { - UIManager.measureInWindow(this._nativeTag, mountSafeCallback(this, callback)); - }; - - ReactFabricHostComponent.prototype.measureLayout = function (relativeToNativeNode, onSuccess, onFail) { - UIManager.measureLayout(this._nativeTag, relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); - }; - - ReactFabricHostComponent.prototype.setNativeProps = function (nativeProps) { - nativeProps = diffProperties(null, emptyObject$1, nativeProps, this.viewConfig.validAttributes); - null != nativeProps && UIManager.updateView(this._nativeTag, this.viewConfig.uiViewClassName, nativeProps); - }; - - return ReactFabricHostComponent; - }(); - - function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) { - invariant(hostContext.isInAParentText, "Text strings must be rendered within a component."); - hostContext = nextReactTag; - nextReactTag += 2; - return { - node: FabricUIManager.createNode(hostContext, "RCTRawText", rootContainerInstance, { - text: text - }, internalInstanceHandle) - }; - } - - function getStackAddendumByWorkInProgressFiber(workInProgress) { - var info = ""; - - do { - a: switch (workInProgress.tag) { - case 0: - case 1: - case 2: - case 5: - var owner = workInProgress._debugOwner, - source = workInProgress._debugSource; - var JSCompiler_inline_result = getComponentName(workInProgress); - var ownerName = null; - owner && (ownerName = getComponentName(owner)); - owner = source; - JSCompiler_inline_result = "\n in " + (JSCompiler_inline_result || "Unknown") + (owner ? " (at " + owner.fileName.replace(/^.*[\\\/]/, "") + ":" + owner.lineNumber + ")" : ownerName ? " (created by " + ownerName + ")" : ""); - break a; - - default: - JSCompiler_inline_result = ""; - } - - info += JSCompiler_inline_result; - workInProgress = workInProgress.return; - } while (workInProgress); - - return info; - } - - new Set(); - var valueStack = [], - index = -1; - - function createCursor(defaultValue) { - return { - current: defaultValue - }; - } - - function pop(cursor) { - 0 > index || (cursor.current = valueStack[index], valueStack[index] = null, index--); - } - - function push(cursor, value) { - index++; - valueStack[index] = cursor.current; - cursor.current = value; - } - - var contextStackCursor = createCursor(emptyObject), - didPerformWorkStackCursor = createCursor(!1), - previousContext = emptyObject; - - function getUnmaskedContext(workInProgress) { - return isContextProvider(workInProgress) ? previousContext : contextStackCursor.current; - } - - function getMaskedContext(workInProgress, unmaskedContext) { - var contextTypes = workInProgress.type.contextTypes; - if (!contextTypes) return emptyObject; - var instance = workInProgress.stateNode; - if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) return instance.__reactInternalMemoizedMaskedChildContext; - var context = {}, - key; - - for (key in contextTypes) { - context[key] = unmaskedContext[key]; - } - - instance && (workInProgress = workInProgress.stateNode, workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, workInProgress.__reactInternalMemoizedMaskedChildContext = context); - return context; - } - - function isContextProvider(fiber) { - return 2 === fiber.tag && null != fiber.type.childContextTypes; - } - - function popContextProvider(fiber) { - isContextProvider(fiber) && (pop(didPerformWorkStackCursor, fiber), pop(contextStackCursor, fiber)); - } - - function popTopLevelContextObject(fiber) { - pop(didPerformWorkStackCursor, fiber); - pop(contextStackCursor, fiber); - } - - function pushTopLevelContextObject(fiber, context, didChange) { - invariant(contextStackCursor.current === emptyObject, "Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue."); - push(contextStackCursor, context, fiber); - push(didPerformWorkStackCursor, didChange, fiber); - } - - function processChildContext(fiber, parentContext) { - var instance = fiber.stateNode, - childContextTypes = fiber.type.childContextTypes; - if ("function" !== typeof instance.getChildContext) return parentContext; - instance = instance.getChildContext(); - - for (var contextKey in instance) { - invariant(contextKey in childContextTypes, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(fiber) || "Unknown", contextKey); - } - - return _extends({}, parentContext, instance); - } - - function pushContextProvider(workInProgress) { - if (!isContextProvider(workInProgress)) return !1; - var instance = workInProgress.stateNode; - instance = instance && instance.__reactInternalMemoizedMergedChildContext || emptyObject; - previousContext = contextStackCursor.current; - push(contextStackCursor, instance, workInProgress); - push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress); - return !0; - } - - function invalidateContextProvider(workInProgress, didChange) { - var instance = workInProgress.stateNode; - invariant(instance, "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue."); - - if (didChange) { - var mergedContext = processChildContext(workInProgress, previousContext); - instance.__reactInternalMemoizedMergedChildContext = mergedContext; - pop(didPerformWorkStackCursor, workInProgress); - pop(contextStackCursor, workInProgress); - push(contextStackCursor, mergedContext, workInProgress); - } else pop(didPerformWorkStackCursor, workInProgress); - - push(didPerformWorkStackCursor, didChange, workInProgress); - } - - function FiberNode(tag, pendingProps, key, mode) { - this.tag = tag; - this.key = key; - this.sibling = this.child = this.return = this.stateNode = this.type = null; - this.index = 0; - this.ref = null; - this.pendingProps = pendingProps; - this.memoizedState = this.updateQueue = this.memoizedProps = null; - this.mode = mode; - this.effectTag = 0; - this.lastEffect = this.firstEffect = this.nextEffect = null; - this.expirationTime = 0; - this.alternate = null; - } - - function createWorkInProgress(current, pendingProps, expirationTime) { - var workInProgress = current.alternate; - null === workInProgress ? (workInProgress = new FiberNode(current.tag, pendingProps, current.key, current.mode), workInProgress.type = current.type, workInProgress.stateNode = current.stateNode, workInProgress.alternate = current, current.alternate = workInProgress) : (workInProgress.pendingProps = pendingProps, workInProgress.effectTag = 0, workInProgress.nextEffect = null, workInProgress.firstEffect = null, workInProgress.lastEffect = null); - workInProgress.expirationTime = expirationTime; - workInProgress.child = current.child; - workInProgress.memoizedProps = current.memoizedProps; - workInProgress.memoizedState = current.memoizedState; - workInProgress.updateQueue = current.updateQueue; - workInProgress.sibling = current.sibling; - workInProgress.index = current.index; - workInProgress.ref = current.ref; - return workInProgress; - } - - function createFiberFromElement(element, mode, expirationTime) { - var type = element.type, - key = element.key; - element = element.props; - if ("function" === typeof type) var fiberTag = type.prototype && type.prototype.isReactComponent ? 2 : 0;else if ("string" === typeof type) fiberTag = 5;else switch (type) { - case REACT_FRAGMENT_TYPE: - return createFiberFromFragment(element.children, mode, expirationTime, key); - - case REACT_ASYNC_MODE_TYPE: - fiberTag = 11; - mode |= 3; - break; - - case REACT_STRICT_MODE_TYPE: - fiberTag = 11; - mode |= 2; - break; - - case REACT_PROFILER_TYPE: - return type = new FiberNode(15, element, key, mode | 4), type.type = REACT_PROFILER_TYPE, type.expirationTime = expirationTime, type; - - case REACT_TIMEOUT_TYPE: - fiberTag = 16; - mode |= 2; - break; - - default: - a: { - switch ("object" === typeof type && null !== type ? type.$$typeof : null) { - case REACT_PROVIDER_TYPE: - fiberTag = 13; - break a; - - case REACT_CONTEXT_TYPE: - fiberTag = 12; - break a; - - case REACT_FORWARD_REF_TYPE: - fiberTag = 14; - break a; - - default: - invariant(!1, "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", null == type ? type : typeof type, ""); - } - - fiberTag = void 0; - } - - } - mode = new FiberNode(fiberTag, element, key, mode); - mode.type = type; - mode.expirationTime = expirationTime; - return mode; - } - - function createFiberFromFragment(elements, mode, expirationTime, key) { - elements = new FiberNode(10, elements, key, mode); - elements.expirationTime = expirationTime; - return elements; - } - - function createFiberFromText(content, mode, expirationTime) { - content = new FiberNode(6, content, null, mode); - content.expirationTime = expirationTime; - return content; - } - - function createFiberFromPortal(portal, mode, expirationTime) { - mode = new FiberNode(4, null !== portal.children ? portal.children : [], portal.key, mode); - mode.expirationTime = expirationTime; - mode.stateNode = { - containerInfo: portal.containerInfo, - pendingChildren: null, - implementation: portal.implementation - }; - return mode; - } - - function createFiberRoot(containerInfo, isAsync, hydrate) { - isAsync = new FiberNode(3, null, null, isAsync ? 3 : 0); - containerInfo = { - current: isAsync, - containerInfo: containerInfo, - pendingChildren: null, - earliestPendingTime: 0, - latestPendingTime: 0, - earliestSuspendedTime: 0, - latestSuspendedTime: 0, - latestPingedTime: 0, - didError: !1, - pendingCommitExpirationTime: 0, - finishedWork: null, - context: null, - pendingContext: null, - hydrate: hydrate, - nextExpirationTimeToWorkOn: 0, - expirationTime: 0, - firstBatch: null, - nextScheduledRoot: null - }; - return isAsync.stateNode = containerInfo; - } - - var onCommitFiberRoot = null, - onCommitFiberUnmount = null; - - function catchErrors(fn) { - return function (arg) { - try { - return fn(arg); - } catch (err) {} - }; - } - - function injectInternals(internals) { - if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; - var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if (hook.isDisabled || !hook.supportsFiber) return !0; - - try { - var rendererID = hook.inject(internals); - onCommitFiberRoot = catchErrors(function (root) { - return hook.onCommitFiberRoot(rendererID, root); - }); - onCommitFiberUnmount = catchErrors(function (fiber) { - return hook.onCommitFiberUnmount(rendererID, fiber); - }); - } catch (err) {} - - return !0; - } - - function onCommitRoot(root) { - "function" === typeof onCommitFiberRoot && onCommitFiberRoot(root); - } - - function onCommitUnmount(fiber) { - "function" === typeof onCommitFiberUnmount && onCommitFiberUnmount(fiber); - } - - function markPendingPriorityLevel(root, expirationTime) { - root.didError = !1; - var earliestPendingTime = root.earliestPendingTime; - 0 === earliestPendingTime ? root.earliestPendingTime = root.latestPendingTime = expirationTime : earliestPendingTime > expirationTime ? root.earliestPendingTime = expirationTime : root.latestPendingTime < expirationTime && (root.latestPendingTime = expirationTime); - findNextPendingPriorityLevel(root); - } - - function findNextPendingPriorityLevel(root) { - var earliestSuspendedTime = root.earliestSuspendedTime, - earliestPendingTime = root.earliestPendingTime; - if (0 === earliestSuspendedTime) var nextExpirationTimeToWorkOn = earliestSuspendedTime = earliestPendingTime;else 0 !== earliestPendingTime ? (nextExpirationTimeToWorkOn = earliestPendingTime, earliestSuspendedTime = earliestSuspendedTime < earliestPendingTime ? earliestSuspendedTime : earliestPendingTime) : nextExpirationTimeToWorkOn = earliestSuspendedTime = root.latestPingedTime; - root.didError && (earliestSuspendedTime = 1); - root.nextExpirationTimeToWorkOn = nextExpirationTimeToWorkOn; - root.expirationTime = earliestSuspendedTime; - } - - var hasForceUpdate = !1; - - function createUpdateQueue(baseState) { - return { - expirationTime: 0, - baseState: baseState, - firstUpdate: null, - lastUpdate: null, - firstCapturedUpdate: null, - lastCapturedUpdate: null, - firstEffect: null, - lastEffect: null, - firstCapturedEffect: null, - lastCapturedEffect: null - }; - } - - function cloneUpdateQueue(currentQueue) { - return { - expirationTime: currentQueue.expirationTime, - baseState: currentQueue.baseState, - firstUpdate: currentQueue.firstUpdate, - lastUpdate: currentQueue.lastUpdate, - firstCapturedUpdate: null, - lastCapturedUpdate: null, - firstEffect: null, - lastEffect: null, - firstCapturedEffect: null, - lastCapturedEffect: null - }; - } - - function createUpdate(expirationTime) { - return { - expirationTime: expirationTime, - tag: 0, - payload: null, - callback: null, - next: null, - nextEffect: null - }; - } - - function appendUpdateToQueue(queue, update, expirationTime) { - null === queue.lastUpdate ? queue.firstUpdate = queue.lastUpdate = update : (queue.lastUpdate.next = update, queue.lastUpdate = update); - if (0 === queue.expirationTime || queue.expirationTime > expirationTime) queue.expirationTime = expirationTime; - } - - function enqueueUpdate(fiber, update, expirationTime) { - var alternate = fiber.alternate; - - if (null === alternate) { - var queue1 = fiber.updateQueue; - var queue2 = null; - null === queue1 && (queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState)); - } else queue1 = fiber.updateQueue, queue2 = alternate.updateQueue, null === queue1 ? null === queue2 ? (queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState), queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState)) : queue1 = fiber.updateQueue = cloneUpdateQueue(queue2) : null === queue2 && (queue2 = alternate.updateQueue = cloneUpdateQueue(queue1)); - - null === queue2 || queue1 === queue2 ? appendUpdateToQueue(queue1, update, expirationTime) : null === queue1.lastUpdate || null === queue2.lastUpdate ? (appendUpdateToQueue(queue1, update, expirationTime), appendUpdateToQueue(queue2, update, expirationTime)) : (appendUpdateToQueue(queue1, update, expirationTime), queue2.lastUpdate = update); - } - - function enqueueCapturedUpdate(workInProgress, update, renderExpirationTime) { - var workInProgressQueue = workInProgress.updateQueue; - workInProgressQueue = null === workInProgressQueue ? workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState) : ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue); - null === workInProgressQueue.lastCapturedUpdate ? workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update : (workInProgressQueue.lastCapturedUpdate.next = update, workInProgressQueue.lastCapturedUpdate = update); - if (0 === workInProgressQueue.expirationTime || workInProgressQueue.expirationTime > renderExpirationTime) workInProgressQueue.expirationTime = renderExpirationTime; - } - - function ensureWorkInProgressQueueIsAClone(workInProgress, queue) { - var current = workInProgress.alternate; - null !== current && queue === current.updateQueue && (queue = workInProgress.updateQueue = cloneUpdateQueue(queue)); - return queue; - } - - function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) { - switch (update.tag) { - case 1: - return workInProgress = update.payload, "function" === typeof workInProgress ? workInProgress.call(instance, prevState, nextProps) : workInProgress; - - case 3: - workInProgress.effectTag = workInProgress.effectTag & -1025 | 64; - - case 0: - workInProgress = update.payload; - nextProps = "function" === typeof workInProgress ? workInProgress.call(instance, prevState, nextProps) : workInProgress; - if (null === nextProps || void 0 === nextProps) break; - return _extends({}, prevState, nextProps); - - case 2: - hasForceUpdate = !0; - } - - return prevState; - } - - function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) { - hasForceUpdate = !1; - - if (!(0 === queue.expirationTime || queue.expirationTime > renderExpirationTime)) { - queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue); - - for (var newBaseState = queue.baseState, newFirstUpdate = null, newExpirationTime = 0, update = queue.firstUpdate, resultState = newBaseState; null !== update;) { - var updateExpirationTime = update.expirationTime; - - if (updateExpirationTime > renderExpirationTime) { - if (null === newFirstUpdate && (newFirstUpdate = update, newBaseState = resultState), 0 === newExpirationTime || newExpirationTime > updateExpirationTime) newExpirationTime = updateExpirationTime; - } else resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance), null !== update.callback && (workInProgress.effectTag |= 32, update.nextEffect = null, null === queue.lastEffect ? queue.firstEffect = queue.lastEffect = update : (queue.lastEffect.nextEffect = update, queue.lastEffect = update)); - - update = update.next; - } - - updateExpirationTime = null; - - for (update = queue.firstCapturedUpdate; null !== update;) { - var _updateExpirationTime = update.expirationTime; - - if (_updateExpirationTime > renderExpirationTime) { - if (null === updateExpirationTime && (updateExpirationTime = update, null === newFirstUpdate && (newBaseState = resultState)), 0 === newExpirationTime || newExpirationTime > _updateExpirationTime) newExpirationTime = _updateExpirationTime; - } else resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance), null !== update.callback && (workInProgress.effectTag |= 32, update.nextEffect = null, null === queue.lastCapturedEffect ? queue.firstCapturedEffect = queue.lastCapturedEffect = update : (queue.lastCapturedEffect.nextEffect = update, queue.lastCapturedEffect = update)); - - update = update.next; - } - - null === newFirstUpdate && (queue.lastUpdate = null); - null === updateExpirationTime ? queue.lastCapturedUpdate = null : workInProgress.effectTag |= 32; - null === newFirstUpdate && null === updateExpirationTime && (newBaseState = resultState); - queue.baseState = newBaseState; - queue.firstUpdate = newFirstUpdate; - queue.firstCapturedUpdate = updateExpirationTime; - queue.expirationTime = newExpirationTime; - workInProgress.memoizedState = resultState; - } - } - - function callCallback(callback, context) { - invariant("function" === typeof callback, "Invalid argument passed as callback. Expected a function. Instead received: %s", callback); - callback.call(context); - } - - function commitUpdateQueue(finishedWork, finishedQueue, instance) { - null !== finishedQueue.firstCapturedUpdate && (null !== finishedQueue.lastUpdate && (finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate, finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate), finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null); - finishedWork = finishedQueue.firstEffect; - - for (finishedQueue.firstEffect = finishedQueue.lastEffect = null; null !== finishedWork;) { - var _callback3 = finishedWork.callback; - null !== _callback3 && (finishedWork.callback = null, callCallback(_callback3, instance)); - finishedWork = finishedWork.nextEffect; - } - - finishedWork = finishedQueue.firstCapturedEffect; - - for (finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null; null !== finishedWork;) { - finishedQueue = finishedWork.callback, null !== finishedQueue && (finishedWork.callback = null, callCallback(finishedQueue, instance)), finishedWork = finishedWork.nextEffect; - } - } - - function createCapturedValue(value, source) { - return { - value: value, - source: source, - stack: getStackAddendumByWorkInProgressFiber(source) - }; - } - - var providerCursor = createCursor(null), - valueCursor = createCursor(null), - changedBitsCursor = createCursor(0); - - function pushProvider(providerFiber) { - var context = providerFiber.type._context; - push(changedBitsCursor, context._changedBits2, providerFiber); - push(valueCursor, context._currentValue2, providerFiber); - push(providerCursor, providerFiber, providerFiber); - context._currentValue2 = providerFiber.pendingProps.value; - context._changedBits2 = providerFiber.stateNode; - } - - function popProvider(providerFiber) { - var changedBits = changedBitsCursor.current, - currentValue = valueCursor.current; - pop(providerCursor, providerFiber); - pop(valueCursor, providerFiber); - pop(changedBitsCursor, providerFiber); - providerFiber = providerFiber.type._context; - providerFiber._currentValue2 = currentValue; - providerFiber._changedBits2 = changedBits; - } - - var NO_CONTEXT = {}, - contextStackCursor$1 = createCursor(NO_CONTEXT), - contextFiberStackCursor = createCursor(NO_CONTEXT), - rootInstanceStackCursor = createCursor(NO_CONTEXT); - - function requiredContext(c) { - invariant(c !== NO_CONTEXT, "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."); - return c; - } - - function pushHostContainer(fiber, nextRootInstance) { - push(rootInstanceStackCursor, nextRootInstance, fiber); - push(contextFiberStackCursor, fiber, fiber); - push(contextStackCursor$1, NO_CONTEXT, fiber); - pop(contextStackCursor$1, fiber); - push(contextStackCursor$1, { - isInAParentText: !1 - }, fiber); - } - - function popHostContainer(fiber) { - pop(contextStackCursor$1, fiber); - pop(contextFiberStackCursor, fiber); - pop(rootInstanceStackCursor, fiber); - } - - function popHostContext(fiber) { - contextFiberStackCursor.current === fiber && (pop(contextStackCursor$1, fiber), pop(contextFiberStackCursor, fiber)); - } - - var hasOwnProperty = Object.prototype.hasOwnProperty; - - function is(x, y) { - return x === y ? 0 !== x || 0 !== y || 1 / x === 1 / y : x !== x && y !== y; - } - - function shallowEqual(objA, objB) { - if (is(objA, objB)) return !0; - if ("object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB) return !1; - var keysA = Object.keys(objA), - keysB = Object.keys(objB); - if (keysA.length !== keysB.length) return !1; - - for (keysB = 0; keysB < keysA.length; keysB++) { - if (!hasOwnProperty.call(objB, keysA[keysB]) || !is(objA[keysA[keysB]], objB[keysA[keysB]])) return !1; - } - - return !0; - } - - function applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, nextProps) { - var prevState = workInProgress.memoizedState; - getDerivedStateFromProps = getDerivedStateFromProps(nextProps, prevState); - prevState = null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps ? prevState : _extends({}, prevState, getDerivedStateFromProps); - workInProgress.memoizedState = prevState; - workInProgress = workInProgress.updateQueue; - null !== workInProgress && 0 === workInProgress.expirationTime && (workInProgress.baseState = prevState); - } - - var classComponentUpdater = { - isMounted: function isMounted(component) { - return (component = component._reactInternalFiber) ? 2 === isFiberMountedImpl(component) : !1; - }, - enqueueSetState: function enqueueSetState(inst, payload, callback) { - inst = inst._reactInternalFiber; - var currentTime = recalculateCurrentTime(); - currentTime = computeExpirationForFiber(currentTime, inst); - var update = createUpdate(currentTime); - update.payload = payload; - void 0 !== callback && null !== callback && (update.callback = callback); - enqueueUpdate(inst, update, currentTime); - scheduleWork(inst, currentTime); - }, - enqueueReplaceState: function enqueueReplaceState(inst, payload, callback) { - inst = inst._reactInternalFiber; - var currentTime = recalculateCurrentTime(); - currentTime = computeExpirationForFiber(currentTime, inst); - var update = createUpdate(currentTime); - update.tag = 1; - update.payload = payload; - void 0 !== callback && null !== callback && (update.callback = callback); - enqueueUpdate(inst, update, currentTime); - scheduleWork(inst, currentTime); - }, - enqueueForceUpdate: function enqueueForceUpdate(inst, callback) { - inst = inst._reactInternalFiber; - var currentTime = recalculateCurrentTime(); - currentTime = computeExpirationForFiber(currentTime, inst); - var update = createUpdate(currentTime); - update.tag = 2; - void 0 !== callback && null !== callback && (update.callback = callback); - enqueueUpdate(inst, update, currentTime); - scheduleWork(inst, currentTime); - } - }; - - function checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext) { - var instance = workInProgress.stateNode; - workInProgress = workInProgress.type; - return "function" === typeof instance.shouldComponentUpdate ? instance.shouldComponentUpdate(newProps, newState, newContext) : workInProgress.prototype && workInProgress.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0; - } - - function callComponentWillReceiveProps(workInProgress, instance, newProps, newContext) { - workInProgress = instance.state; - "function" === typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, newContext); - "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, newContext); - instance.state !== workInProgress && classComponentUpdater.enqueueReplaceState(instance, instance.state, null); - } - - function mountClassInstance(workInProgress, renderExpirationTime) { - var ctor = workInProgress.type, - instance = workInProgress.stateNode, - props = workInProgress.pendingProps, - unmaskedContext = getUnmaskedContext(workInProgress); - instance.props = props; - instance.state = workInProgress.memoizedState; - instance.refs = emptyObject; - instance.context = getMaskedContext(workInProgress, unmaskedContext); - unmaskedContext = workInProgress.updateQueue; - null !== unmaskedContext && (processUpdateQueue(workInProgress, unmaskedContext, props, instance, renderExpirationTime), instance.state = workInProgress.memoizedState); - unmaskedContext = workInProgress.type.getDerivedStateFromProps; - "function" === typeof unmaskedContext && (applyDerivedStateFromProps(workInProgress, unmaskedContext, props), instance.state = workInProgress.memoizedState); - "function" === typeof ctor.getDerivedStateFromProps || "function" === typeof instance.getSnapshotBeforeUpdate || "function" !== typeof instance.UNSAFE_componentWillMount && "function" !== typeof instance.componentWillMount || (ctor = instance.state, "function" === typeof instance.componentWillMount && instance.componentWillMount(), "function" === typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount(), ctor !== instance.state && classComponentUpdater.enqueueReplaceState(instance, instance.state, null), unmaskedContext = workInProgress.updateQueue, null !== unmaskedContext && (processUpdateQueue(workInProgress, unmaskedContext, props, instance, renderExpirationTime), instance.state = workInProgress.memoizedState)); - "function" === typeof instance.componentDidMount && (workInProgress.effectTag |= 4); - } - - var isArray$1 = Array.isArray; - - function coerceRef(returnFiber, current, element) { - returnFiber = element.ref; - - if (null !== returnFiber && "function" !== typeof returnFiber && "object" !== typeof returnFiber) { - if (element._owner) { - element = element._owner; - var inst = void 0; - element && (invariant(2 === element.tag, "Stateless function components cannot have refs."), inst = element.stateNode); - invariant(inst, "Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.", returnFiber); - var stringRef = "" + returnFiber; - if (null !== current && null !== current.ref && "function" === typeof current.ref && current.ref._stringRef === stringRef) return current.ref; - - current = function current(value) { - var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs; - null === value ? delete refs[stringRef] : refs[stringRef] = value; - }; - - current._stringRef = stringRef; - return current; - } - - invariant("string" === typeof returnFiber, "Expected ref to be a function or a string."); - invariant(element._owner, "Element ref was specified as a string (%s) but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a functional component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://fb.me/react-refs-must-have-owner for more information.", returnFiber); - } - - return returnFiber; - } - - function throwOnInvalidObjectType(returnFiber, newChild) { - "textarea" !== returnFiber.type && invariant(!1, "Objects are not valid as a React child (found: %s).%s", "[object Object]" === Object.prototype.toString.call(newChild) ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : newChild, ""); - } - - function ChildReconciler(shouldTrackSideEffects) { - function deleteChild(returnFiber, childToDelete) { - if (shouldTrackSideEffects) { - var last = returnFiber.lastEffect; - null !== last ? (last.nextEffect = childToDelete, returnFiber.lastEffect = childToDelete) : returnFiber.firstEffect = returnFiber.lastEffect = childToDelete; - childToDelete.nextEffect = null; - childToDelete.effectTag = 8; - } - } - - function deleteRemainingChildren(returnFiber, currentFirstChild) { - if (!shouldTrackSideEffects) return null; - - for (; null !== currentFirstChild;) { - deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling; - } - - return null; - } - - function mapRemainingChildren(returnFiber, currentFirstChild) { - for (returnFiber = new Map(); null !== currentFirstChild;) { - null !== currentFirstChild.key ? returnFiber.set(currentFirstChild.key, currentFirstChild) : returnFiber.set(currentFirstChild.index, currentFirstChild), currentFirstChild = currentFirstChild.sibling; - } - - return returnFiber; - } - - function useFiber(fiber, pendingProps, expirationTime) { - fiber = createWorkInProgress(fiber, pendingProps, expirationTime); - fiber.index = 0; - fiber.sibling = null; - return fiber; - } - - function placeChild(newFiber, lastPlacedIndex, newIndex) { - newFiber.index = newIndex; - if (!shouldTrackSideEffects) return lastPlacedIndex; - newIndex = newFiber.alternate; - if (null !== newIndex) return newIndex = newIndex.index, newIndex < lastPlacedIndex ? (newFiber.effectTag = 2, lastPlacedIndex) : newIndex; - newFiber.effectTag = 2; - return lastPlacedIndex; - } - - function placeSingleChild(newFiber) { - shouldTrackSideEffects && null === newFiber.alternate && (newFiber.effectTag = 2); - return newFiber; - } - - function updateTextNode(returnFiber, current, textContent, expirationTime) { - if (null === current || 6 !== current.tag) return current = createFiberFromText(textContent, returnFiber.mode, expirationTime), current.return = returnFiber, current; - current = useFiber(current, textContent, expirationTime); - current.return = returnFiber; - return current; - } - - function updateElement(returnFiber, current, element, expirationTime) { - if (null !== current && current.type === element.type) return expirationTime = useFiber(current, element.props, expirationTime), expirationTime.ref = coerceRef(returnFiber, current, element), expirationTime.return = returnFiber, expirationTime; - expirationTime = createFiberFromElement(element, returnFiber.mode, expirationTime); - expirationTime.ref = coerceRef(returnFiber, current, element); - expirationTime.return = returnFiber; - return expirationTime; - } - - function updatePortal(returnFiber, current, portal, expirationTime) { - if (null === current || 4 !== current.tag || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) return current = createFiberFromPortal(portal, returnFiber.mode, expirationTime), current.return = returnFiber, current; - current = useFiber(current, portal.children || [], expirationTime); - current.return = returnFiber; - return current; - } - - function updateFragment(returnFiber, current, fragment, expirationTime, key) { - if (null === current || 10 !== current.tag) return current = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key), current.return = returnFiber, current; - current = useFiber(current, fragment, expirationTime); - current.return = returnFiber; - return current; - } - - function createChild(returnFiber, newChild, expirationTime) { - if ("string" === typeof newChild || "number" === typeof newChild) return newChild = createFiberFromText("" + newChild, returnFiber.mode, expirationTime), newChild.return = returnFiber, newChild; - - if ("object" === typeof newChild && null !== newChild) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - return expirationTime = createFiberFromElement(newChild, returnFiber.mode, expirationTime), expirationTime.ref = coerceRef(returnFiber, null, newChild), expirationTime.return = returnFiber, expirationTime; - - case REACT_PORTAL_TYPE: - return newChild = createFiberFromPortal(newChild, returnFiber.mode, expirationTime), newChild.return = returnFiber, newChild; - } - - if (isArray$1(newChild) || getIteratorFn(newChild)) return newChild = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null), newChild.return = returnFiber, newChild; - throwOnInvalidObjectType(returnFiber, newChild); - } - - return null; - } - - function updateSlot(returnFiber, oldFiber, newChild, expirationTime) { - var key = null !== oldFiber ? oldFiber.key : null; - if ("string" === typeof newChild || "number" === typeof newChild) return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, expirationTime); - - if ("object" === typeof newChild && null !== newChild) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - return newChild.key === key ? newChild.type === REACT_FRAGMENT_TYPE ? updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key) : updateElement(returnFiber, oldFiber, newChild, expirationTime) : null; - - case REACT_PORTAL_TYPE: - return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, expirationTime) : null; - } - - if (isArray$1(newChild) || getIteratorFn(newChild)) return null !== key ? null : updateFragment(returnFiber, oldFiber, newChild, expirationTime, null); - throwOnInvalidObjectType(returnFiber, newChild); - } - - return null; - } - - function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) { - if ("string" === typeof newChild || "number" === typeof newChild) return existingChildren = existingChildren.get(newIdx) || null, updateTextNode(returnFiber, existingChildren, "" + newChild, expirationTime); - - if ("object" === typeof newChild && null !== newChild) { - switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, newChild.type === REACT_FRAGMENT_TYPE ? updateFragment(returnFiber, existingChildren, newChild.props.children, expirationTime, newChild.key) : updateElement(returnFiber, existingChildren, newChild, expirationTime); - - case REACT_PORTAL_TYPE: - return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updatePortal(returnFiber, existingChildren, newChild, expirationTime); - } - - if (isArray$1(newChild) || getIteratorFn(newChild)) return existingChildren = existingChildren.get(newIdx) || null, updateFragment(returnFiber, existingChildren, newChild, expirationTime, null); - throwOnInvalidObjectType(returnFiber, newChild); - } - - return null; - } - - function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) { - for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++) { - oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; - var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime); - - if (null === newFiber) { - null === oldFiber && (oldFiber = nextOldFiber); - break; - } - - shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); - currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); - null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber; - previousNewFiber = newFiber; - oldFiber = nextOldFiber; - } - - if (newIdx === newChildren.length) return deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild; - - if (null === oldFiber) { - for (; newIdx < newChildren.length; newIdx++) { - if (oldFiber = createChild(returnFiber, newChildren[newIdx], expirationTime)) currentFirstChild = placeChild(oldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber; - } - - return resultingFirstChild; - } - - for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); newIdx < newChildren.length; newIdx++) { - if (nextOldFiber = updateFromMap(oldFiber, returnFiber, newIdx, newChildren[newIdx], expirationTime)) shouldTrackSideEffects && null !== nextOldFiber.alternate && oldFiber.delete(null === nextOldFiber.key ? newIdx : nextOldFiber.key), currentFirstChild = placeChild(nextOldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber; - } - - shouldTrackSideEffects && oldFiber.forEach(function (child) { - return deleteChild(returnFiber, child); - }); - return resultingFirstChild; - } - - function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) { - var iteratorFn = getIteratorFn(newChildrenIterable); - invariant("function" === typeof iteratorFn, "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue."); - newChildrenIterable = iteratorFn.call(newChildrenIterable); - invariant(null != newChildrenIterable, "An iterable object provided no iterator."); - - for (var previousNewFiber = iteratorFn = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, step = newChildrenIterable.next(); null !== oldFiber && !step.done; newIdx++, step = newChildrenIterable.next()) { - oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; - var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime); - - if (null === newFiber) { - oldFiber || (oldFiber = nextOldFiber); - break; - } - - shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); - currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); - null === previousNewFiber ? iteratorFn = newFiber : previousNewFiber.sibling = newFiber; - previousNewFiber = newFiber; - oldFiber = nextOldFiber; - } - - if (step.done) return deleteRemainingChildren(returnFiber, oldFiber), iteratorFn; - - if (null === oldFiber) { - for (; !step.done; newIdx++, step = newChildrenIterable.next()) { - step = createChild(returnFiber, step.value, expirationTime), null !== step && (currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); - } - - return iteratorFn; - } - - for (oldFiber = mapRemainingChildren(returnFiber, oldFiber); !step.done; newIdx++, step = newChildrenIterable.next()) { - step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, expirationTime), null !== step && (shouldTrackSideEffects && null !== step.alternate && oldFiber.delete(null === step.key ? newIdx : step.key), currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? iteratorFn = step : previousNewFiber.sibling = step, previousNewFiber = step); - } - - shouldTrackSideEffects && oldFiber.forEach(function (child) { - return deleteChild(returnFiber, child); - }); - return iteratorFn; - } - - return function (returnFiber, currentFirstChild, newChild, expirationTime) { - var isUnkeyedTopLevelFragment = "object" === typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key; - isUnkeyedTopLevelFragment && (newChild = newChild.props.children); - var isObject = "object" === typeof newChild && null !== newChild; - if (isObject) switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: - a: { - isObject = newChild.key; - - for (isUnkeyedTopLevelFragment = currentFirstChild; null !== isUnkeyedTopLevelFragment;) { - if (isUnkeyedTopLevelFragment.key === isObject) { - if (10 === isUnkeyedTopLevelFragment.tag ? newChild.type === REACT_FRAGMENT_TYPE : isUnkeyedTopLevelFragment.type === newChild.type) { - deleteRemainingChildren(returnFiber, isUnkeyedTopLevelFragment.sibling); - currentFirstChild = useFiber(isUnkeyedTopLevelFragment, newChild.type === REACT_FRAGMENT_TYPE ? newChild.props.children : newChild.props, expirationTime); - currentFirstChild.ref = coerceRef(returnFiber, isUnkeyedTopLevelFragment, newChild); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; - break a; - } else { - deleteRemainingChildren(returnFiber, isUnkeyedTopLevelFragment); - break; - } - } else deleteChild(returnFiber, isUnkeyedTopLevelFragment); - isUnkeyedTopLevelFragment = isUnkeyedTopLevelFragment.sibling; - } - - newChild.type === REACT_FRAGMENT_TYPE ? (currentFirstChild = createFiberFromFragment(newChild.props.children, returnFiber.mode, expirationTime, newChild.key), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (expirationTime = createFiberFromElement(newChild, returnFiber.mode, expirationTime), expirationTime.ref = coerceRef(returnFiber, currentFirstChild, newChild), expirationTime.return = returnFiber, returnFiber = expirationTime); - } - - return placeSingleChild(returnFiber); - - case REACT_PORTAL_TYPE: - a: { - for (isUnkeyedTopLevelFragment = newChild.key; null !== currentFirstChild;) { - if (currentFirstChild.key === isUnkeyedTopLevelFragment) { - if (4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === newChild.containerInfo && currentFirstChild.stateNode.implementation === newChild.implementation) { - deleteRemainingChildren(returnFiber, currentFirstChild.sibling); - currentFirstChild = useFiber(currentFirstChild, newChild.children || [], expirationTime); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; - break a; - } else { - deleteRemainingChildren(returnFiber, currentFirstChild); - break; - } - } else deleteChild(returnFiber, currentFirstChild); - currentFirstChild = currentFirstChild.sibling; - } - - currentFirstChild = createFiberFromPortal(newChild, returnFiber.mode, expirationTime); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; - } - - return placeSingleChild(returnFiber); - } - if ("string" === typeof newChild || "number" === typeof newChild) return newChild = "" + newChild, null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), currentFirstChild = useFiber(currentFirstChild, newChild, expirationTime), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild) : (deleteRemainingChildren(returnFiber, currentFirstChild), currentFirstChild = createFiberFromText(newChild, returnFiber.mode, expirationTime), currentFirstChild.return = returnFiber, returnFiber = currentFirstChild), placeSingleChild(returnFiber); - if (isArray$1(newChild)) return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime); - if (getIteratorFn(newChild)) return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime); - isObject && throwOnInvalidObjectType(returnFiber, newChild); - if ("undefined" === typeof newChild && !isUnkeyedTopLevelFragment) switch (returnFiber.tag) { - case 2: - case 1: - expirationTime = returnFiber.type, invariant(!1, "%s(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.", expirationTime.displayName || expirationTime.name || "Component"); - } - return deleteRemainingChildren(returnFiber, currentFirstChild); - }; - } - - var reconcileChildFibers = ChildReconciler(!0), - mountChildFibers = ChildReconciler(!1), - hydrationParentFiber = null, - nextHydratableInstance = null, - isHydrating = !1; - - function tryHydrate(fiber, nextInstance) { - switch (fiber.tag) { - case 5: - return nextInstance = shim$1(nextInstance, fiber.type, fiber.pendingProps), null !== nextInstance ? (fiber.stateNode = nextInstance, !0) : !1; - - case 6: - return nextInstance = shim$1(nextInstance, fiber.pendingProps), null !== nextInstance ? (fiber.stateNode = nextInstance, !0) : !1; - - default: - return !1; - } - } - - function tryToClaimNextHydratableInstance(fiber$jscomp$0) { - if (isHydrating) { - var nextInstance = nextHydratableInstance; - - if (nextInstance) { - var firstAttemptedInstance = nextInstance; - - if (!tryHydrate(fiber$jscomp$0, nextInstance)) { - nextInstance = shim$1(firstAttemptedInstance); - - if (!nextInstance || !tryHydrate(fiber$jscomp$0, nextInstance)) { - fiber$jscomp$0.effectTag |= 2; - isHydrating = !1; - hydrationParentFiber = fiber$jscomp$0; - return; - } - - var returnFiber = hydrationParentFiber, - fiber = new FiberNode(5, null, null, 0); - fiber.type = "DELETED"; - fiber.stateNode = firstAttemptedInstance; - fiber.return = returnFiber; - fiber.effectTag = 8; - null !== returnFiber.lastEffect ? (returnFiber.lastEffect.nextEffect = fiber, returnFiber.lastEffect = fiber) : returnFiber.firstEffect = returnFiber.lastEffect = fiber; - } - - hydrationParentFiber = fiber$jscomp$0; - nextHydratableInstance = shim$1(nextInstance); - } else fiber$jscomp$0.effectTag |= 2, isHydrating = !1, hydrationParentFiber = fiber$jscomp$0; - } - } - - function reconcileChildren(current, workInProgress, nextChildren) { - reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, workInProgress.expirationTime); - } - - function reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime) { - workInProgress.child = null === current ? mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime) : reconcileChildFibers(workInProgress, current.child, nextChildren, renderExpirationTime); - } - - function markRef(current, workInProgress) { - var ref = workInProgress.ref; - if (null === current && null !== ref || null !== current && current.ref !== ref) workInProgress.effectTag |= 128; - } - - function finishClassComponent(current, workInProgress, shouldUpdate, hasContext, renderExpirationTime) { - markRef(current, workInProgress); - var didCaptureError = 0 !== (workInProgress.effectTag & 64); - if (!shouldUpdate && !didCaptureError) return hasContext && invalidateContextProvider(workInProgress, !1), bailoutOnAlreadyFinishedWork(current, workInProgress); - shouldUpdate = workInProgress.stateNode; - ReactCurrentOwner.current = workInProgress; - var nextChildren = didCaptureError ? null : shouldUpdate.render(); - workInProgress.effectTag |= 1; - didCaptureError && (reconcileChildrenAtExpirationTime(current, workInProgress, null, renderExpirationTime), workInProgress.child = null); - reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime); - workInProgress.memoizedState = shouldUpdate.state; - workInProgress.memoizedProps = shouldUpdate.props; - hasContext && invalidateContextProvider(workInProgress, !0); - return workInProgress.child; - } - - function pushHostRootContext(workInProgress) { - var root = workInProgress.stateNode; - root.pendingContext ? pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context) : root.context && pushTopLevelContextObject(workInProgress, root.context, !1); - pushHostContainer(workInProgress, root.containerInfo); - } - - function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) { - var fiber = workInProgress.child; - null !== fiber && (fiber.return = workInProgress); - - for (; null !== fiber;) { - switch (fiber.tag) { - case 12: - var nextFiber = fiber.stateNode | 0; - - if (fiber.type === context && 0 !== (nextFiber & changedBits)) { - for (nextFiber = fiber; null !== nextFiber;) { - var alternate = nextFiber.alternate; - if (0 === nextFiber.expirationTime || nextFiber.expirationTime > renderExpirationTime) nextFiber.expirationTime = renderExpirationTime, null !== alternate && (0 === alternate.expirationTime || alternate.expirationTime > renderExpirationTime) && (alternate.expirationTime = renderExpirationTime);else if (null !== alternate && (0 === alternate.expirationTime || alternate.expirationTime > renderExpirationTime)) alternate.expirationTime = renderExpirationTime;else break; - nextFiber = nextFiber.return; - } - - nextFiber = null; - } else nextFiber = fiber.child; - - break; - - case 13: - nextFiber = fiber.type === workInProgress.type ? null : fiber.child; - break; - - default: - nextFiber = fiber.child; - } - - if (null !== nextFiber) nextFiber.return = fiber;else for (nextFiber = fiber; null !== nextFiber;) { - if (nextFiber === workInProgress) { - nextFiber = null; - break; - } - - fiber = nextFiber.sibling; - - if (null !== fiber) { - fiber.return = nextFiber.return; - nextFiber = fiber; - break; - } - - nextFiber = nextFiber.return; - } - fiber = nextFiber; - } - } - - function updateContextProvider(current, workInProgress, renderExpirationTime) { - var context = workInProgress.type._context, - newProps = workInProgress.pendingProps, - oldProps = workInProgress.memoizedProps, - canBailOnProps = !0; - if (didPerformWorkStackCursor.current) canBailOnProps = !1;else if (oldProps === newProps) return workInProgress.stateNode = 0, pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); - var newValue = newProps.value; - workInProgress.memoizedProps = newProps; - if (null === oldProps) newValue = 1073741823;else if (oldProps.value === newProps.value) { - if (oldProps.children === newProps.children && canBailOnProps) return workInProgress.stateNode = 0, pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); - newValue = 0; - } else { - var oldValue = oldProps.value; - - if (oldValue === newValue && (0 !== oldValue || 1 / oldValue === 1 / newValue) || oldValue !== oldValue && newValue !== newValue) { - if (oldProps.children === newProps.children && canBailOnProps) return workInProgress.stateNode = 0, pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); - newValue = 0; - } else if (newValue = "function" === typeof context._calculateChangedBits ? context._calculateChangedBits(oldValue, newValue) : 1073741823, newValue |= 0, 0 === newValue) { - if (oldProps.children === newProps.children && canBailOnProps) return workInProgress.stateNode = 0, pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); - } else propagateContextChange(workInProgress, context, newValue, renderExpirationTime); - } - workInProgress.stateNode = newValue; - pushProvider(workInProgress); - reconcileChildren(current, workInProgress, newProps.children); - return workInProgress.child; - } - - function bailoutOnAlreadyFinishedWork(current, workInProgress) { - invariant(null === current || workInProgress.child === current.child, "Resuming work not yet implemented."); - - if (null !== workInProgress.child) { - current = workInProgress.child; - var newChild = createWorkInProgress(current, current.pendingProps, current.expirationTime); - workInProgress.child = newChild; - - for (newChild.return = workInProgress; null !== current.sibling;) { - current = current.sibling, newChild = newChild.sibling = createWorkInProgress(current, current.pendingProps, current.expirationTime), newChild.return = workInProgress; - } - - newChild.sibling = null; - } - - return workInProgress.child; - } - - function beginWork(current, workInProgress, renderExpirationTime) { - if (0 === workInProgress.expirationTime || workInProgress.expirationTime > renderExpirationTime) { - switch (workInProgress.tag) { - case 3: - pushHostRootContext(workInProgress); - break; - - case 2: - pushContextProvider(workInProgress); - break; - - case 4: - pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); - break; - - case 13: - pushProvider(workInProgress); - } - - return null; - } - - switch (workInProgress.tag) { - case 0: - invariant(null === current, "An indeterminate component should never have mounted. This error is likely caused by a bug in React. Please file an issue."); - var fn = workInProgress.type, - props = workInProgress.pendingProps, - unmaskedContext = getUnmaskedContext(workInProgress); - unmaskedContext = getMaskedContext(workInProgress, unmaskedContext); - fn = fn(props, unmaskedContext); - workInProgress.effectTag |= 1; - "object" === typeof fn && null !== fn && "function" === typeof fn.render && void 0 === fn.$$typeof ? (unmaskedContext = workInProgress.type, workInProgress.tag = 2, workInProgress.memoizedState = null !== fn.state && void 0 !== fn.state ? fn.state : null, unmaskedContext = unmaskedContext.getDerivedStateFromProps, "function" === typeof unmaskedContext && applyDerivedStateFromProps(workInProgress, unmaskedContext, props), props = pushContextProvider(workInProgress), fn.updater = classComponentUpdater, workInProgress.stateNode = fn, fn._reactInternalFiber = workInProgress, mountClassInstance(workInProgress, renderExpirationTime), current = finishClassComponent(current, workInProgress, !0, props, renderExpirationTime)) : (workInProgress.tag = 1, reconcileChildren(current, workInProgress, fn), workInProgress.memoizedProps = props, current = workInProgress.child); - return current; - - case 1: - return props = workInProgress.type, renderExpirationTime = workInProgress.pendingProps, didPerformWorkStackCursor.current || workInProgress.memoizedProps !== renderExpirationTime ? (fn = getUnmaskedContext(workInProgress), fn = getMaskedContext(workInProgress, fn), props = props(renderExpirationTime, fn), workInProgress.effectTag |= 1, reconcileChildren(current, workInProgress, props), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; - - case 2: - props = pushContextProvider(workInProgress); - if (null === current) { - if (null === workInProgress.stateNode) { - var props$jscomp$0 = workInProgress.pendingProps, - ctor = workInProgress.type; - fn = getUnmaskedContext(workInProgress); - var needsContext = 2 === workInProgress.tag && null != workInProgress.type.contextTypes; - unmaskedContext = needsContext ? getMaskedContext(workInProgress, fn) : emptyObject; - props$jscomp$0 = new ctor(props$jscomp$0, unmaskedContext); - workInProgress.memoizedState = null !== props$jscomp$0.state && void 0 !== props$jscomp$0.state ? props$jscomp$0.state : null; - props$jscomp$0.updater = classComponentUpdater; - workInProgress.stateNode = props$jscomp$0; - props$jscomp$0._reactInternalFiber = workInProgress; - needsContext && (needsContext = workInProgress.stateNode, needsContext.__reactInternalMemoizedUnmaskedChildContext = fn, needsContext.__reactInternalMemoizedMaskedChildContext = unmaskedContext); - mountClassInstance(workInProgress, renderExpirationTime); - fn = !0; - } else { - ctor = workInProgress.type; - fn = workInProgress.stateNode; - needsContext = workInProgress.memoizedProps; - unmaskedContext = workInProgress.pendingProps; - fn.props = needsContext; - var oldContext = fn.context; - props$jscomp$0 = getUnmaskedContext(workInProgress); - props$jscomp$0 = getMaskedContext(workInProgress, props$jscomp$0); - var getDerivedStateFromProps = ctor.getDerivedStateFromProps; - (ctor = "function" === typeof getDerivedStateFromProps || "function" === typeof fn.getSnapshotBeforeUpdate) || "function" !== typeof fn.UNSAFE_componentWillReceiveProps && "function" !== typeof fn.componentWillReceiveProps || (needsContext !== unmaskedContext || oldContext !== props$jscomp$0) && callComponentWillReceiveProps(workInProgress, fn, unmaskedContext, props$jscomp$0); - hasForceUpdate = !1; - var oldState = workInProgress.memoizedState; - oldContext = fn.state = oldState; - var updateQueue = workInProgress.updateQueue; - null !== updateQueue && (processUpdateQueue(workInProgress, updateQueue, unmaskedContext, fn, renderExpirationTime), oldContext = workInProgress.memoizedState); - needsContext !== unmaskedContext || oldState !== oldContext || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, unmaskedContext), oldContext = workInProgress.memoizedState), (needsContext = hasForceUpdate || checkShouldComponentUpdate(workInProgress, needsContext, unmaskedContext, oldState, oldContext, props$jscomp$0)) ? (ctor || "function" !== typeof fn.UNSAFE_componentWillMount && "function" !== typeof fn.componentWillMount || ("function" === typeof fn.componentWillMount && fn.componentWillMount(), "function" === typeof fn.UNSAFE_componentWillMount && fn.UNSAFE_componentWillMount()), "function" === typeof fn.componentDidMount && (workInProgress.effectTag |= 4)) : ("function" === typeof fn.componentDidMount && (workInProgress.effectTag |= 4), workInProgress.memoizedProps = unmaskedContext, workInProgress.memoizedState = oldContext), fn.props = unmaskedContext, fn.state = oldContext, fn.context = props$jscomp$0, fn = needsContext) : ("function" === typeof fn.componentDidMount && (workInProgress.effectTag |= 4), fn = !1); - } - } else ctor = workInProgress.type, fn = workInProgress.stateNode, unmaskedContext = workInProgress.memoizedProps, needsContext = workInProgress.pendingProps, fn.props = unmaskedContext, oldContext = fn.context, props$jscomp$0 = getUnmaskedContext(workInProgress), props$jscomp$0 = getMaskedContext(workInProgress, props$jscomp$0), getDerivedStateFromProps = ctor.getDerivedStateFromProps, (ctor = "function" === typeof getDerivedStateFromProps || "function" === typeof fn.getSnapshotBeforeUpdate) || "function" !== typeof fn.UNSAFE_componentWillReceiveProps && "function" !== typeof fn.componentWillReceiveProps || (unmaskedContext !== needsContext || oldContext !== props$jscomp$0) && callComponentWillReceiveProps(workInProgress, fn, needsContext, props$jscomp$0), hasForceUpdate = !1, oldContext = workInProgress.memoizedState, oldState = fn.state = oldContext, updateQueue = workInProgress.updateQueue, null !== updateQueue && (processUpdateQueue(workInProgress, updateQueue, needsContext, fn, renderExpirationTime), oldState = workInProgress.memoizedState), unmaskedContext !== needsContext || oldContext !== oldState || didPerformWorkStackCursor.current || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, needsContext), oldState = workInProgress.memoizedState), (getDerivedStateFromProps = hasForceUpdate || checkShouldComponentUpdate(workInProgress, unmaskedContext, needsContext, oldContext, oldState, props$jscomp$0)) ? (ctor || "function" !== typeof fn.UNSAFE_componentWillUpdate && "function" !== typeof fn.componentWillUpdate || ("function" === typeof fn.componentWillUpdate && fn.componentWillUpdate(needsContext, oldState, props$jscomp$0), "function" === typeof fn.UNSAFE_componentWillUpdate && fn.UNSAFE_componentWillUpdate(needsContext, oldState, props$jscomp$0)), "function" === typeof fn.componentDidUpdate && (workInProgress.effectTag |= 4), "function" === typeof fn.getSnapshotBeforeUpdate && (workInProgress.effectTag |= 256)) : ("function" !== typeof fn.componentDidUpdate || unmaskedContext === current.memoizedProps && oldContext === current.memoizedState || (workInProgress.effectTag |= 4), "function" !== typeof fn.getSnapshotBeforeUpdate || unmaskedContext === current.memoizedProps && oldContext === current.memoizedState || (workInProgress.effectTag |= 256), workInProgress.memoizedProps = needsContext, workInProgress.memoizedState = oldState), fn.props = needsContext, fn.state = oldState, fn.context = props$jscomp$0, fn = getDerivedStateFromProps) : ("function" !== typeof fn.componentDidUpdate || unmaskedContext === current.memoizedProps && oldContext === current.memoizedState || (workInProgress.effectTag |= 4), "function" !== typeof fn.getSnapshotBeforeUpdate || unmaskedContext === current.memoizedProps && oldContext === current.memoizedState || (workInProgress.effectTag |= 256), fn = !1); - return finishClassComponent(current, workInProgress, fn, props, renderExpirationTime); - - case 3: - return pushHostRootContext(workInProgress), props = workInProgress.updateQueue, null !== props ? (fn = workInProgress.memoizedState, fn = null !== fn ? fn.element : null, processUpdateQueue(workInProgress, props, workInProgress.pendingProps, null, renderExpirationTime), renderExpirationTime = workInProgress.memoizedState.element, renderExpirationTime === fn ? current = bailoutOnAlreadyFinishedWork(current, workInProgress) : (reconcileChildren(current, workInProgress, renderExpirationTime), current = workInProgress.child)) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; - - case 5: - return requiredContext(rootInstanceStackCursor.current), renderExpirationTime = requiredContext(contextStackCursor$1.current), props = workInProgress.type, props = "AndroidTextInput" === props || "RCTMultilineTextInputView" === props || "RCTSinglelineTextInputView" === props || "RCTText" === props || "RCTVirtualText" === props, props = renderExpirationTime.isInAParentText !== props ? { - isInAParentText: props - } : renderExpirationTime, renderExpirationTime !== props && (push(contextFiberStackCursor, workInProgress, workInProgress), push(contextStackCursor$1, props, workInProgress)), null === current && tryToClaimNextHydratableInstance(workInProgress), props = workInProgress.memoizedProps, renderExpirationTime = workInProgress.pendingProps, didPerformWorkStackCursor.current || props !== renderExpirationTime ? (props = renderExpirationTime.children, markRef(current, workInProgress), reconcileChildren(current, workInProgress, props), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; - - case 6: - return null === current && tryToClaimNextHydratableInstance(workInProgress), workInProgress.memoizedProps = workInProgress.pendingProps, null; - - case 16: - return null; - - case 4: - return pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo), props = workInProgress.pendingProps, didPerformWorkStackCursor.current || workInProgress.memoizedProps !== props ? (null === current ? workInProgress.child = reconcileChildFibers(workInProgress, null, props, renderExpirationTime) : reconcileChildren(current, workInProgress, props), workInProgress.memoizedProps = props, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; - - case 14: - return props = workInProgress.type.render, renderExpirationTime = workInProgress.pendingProps, fn = workInProgress.ref, didPerformWorkStackCursor.current || workInProgress.memoizedProps !== renderExpirationTime || fn !== (null !== current ? current.ref : null) ? (props = props(renderExpirationTime, fn), reconcileChildren(current, workInProgress, props), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; - - case 10: - return renderExpirationTime = workInProgress.pendingProps, didPerformWorkStackCursor.current || workInProgress.memoizedProps !== renderExpirationTime ? (reconcileChildren(current, workInProgress, renderExpirationTime), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; - - case 11: - return renderExpirationTime = workInProgress.pendingProps.children, didPerformWorkStackCursor.current || null !== renderExpirationTime && workInProgress.memoizedProps !== renderExpirationTime ? (reconcileChildren(current, workInProgress, renderExpirationTime), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress), current; - - case 15: - return renderExpirationTime = workInProgress.pendingProps, workInProgress.memoizedProps === renderExpirationTime ? current = bailoutOnAlreadyFinishedWork(current, workInProgress) : (reconcileChildren(current, workInProgress, renderExpirationTime.children), workInProgress.memoizedProps = renderExpirationTime, current = workInProgress.child), current; - - case 13: - return updateContextProvider(current, workInProgress, renderExpirationTime); - - case 12: - a: if (fn = workInProgress.type, unmaskedContext = workInProgress.pendingProps, needsContext = workInProgress.memoizedProps, props = fn._currentValue2, props$jscomp$0 = fn._changedBits2, didPerformWorkStackCursor.current || 0 !== props$jscomp$0 || needsContext !== unmaskedContext) { - workInProgress.memoizedProps = unmaskedContext; - ctor = unmaskedContext.unstable_observedBits; - if (void 0 === ctor || null === ctor) ctor = 1073741823; - workInProgress.stateNode = ctor; - if (0 !== (props$jscomp$0 & ctor)) propagateContextChange(workInProgress, fn, props$jscomp$0, renderExpirationTime);else if (needsContext === unmaskedContext) { - current = bailoutOnAlreadyFinishedWork(current, workInProgress); - break a; - } - renderExpirationTime = unmaskedContext.children; - renderExpirationTime = renderExpirationTime(props); - workInProgress.effectTag |= 1; - reconcileChildren(current, workInProgress, renderExpirationTime); - current = workInProgress.child; - } else current = bailoutOnAlreadyFinishedWork(current, workInProgress); - - return current; - - default: - invariant(!1, "Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue."); - } - } - - function appendAllChildren(parent, workInProgress) { - for (var node = workInProgress.child; null !== node;) { - if (5 === node.tag || 6 === node.tag) FabricUIManager.appendChild(parent.node, node.stateNode.node);else if (4 !== node.tag && null !== node.child) { - node.child.return = node; - node = node.child; - continue; - } - if (node === workInProgress) break; - - for (; null === node.sibling;) { - if (null === node.return || node.return === workInProgress) return; - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - } - - var updateHostContainer = void 0, - updateHostComponent$1 = void 0, - updateHostText$1 = void 0; - - updateHostContainer = function updateHostContainer(workInProgress) { - var portalOrRoot = workInProgress.stateNode; - - if (null !== workInProgress.firstEffect) { - var container = portalOrRoot.containerInfo, - newChildSet = FabricUIManager.createChildSet(container); - - a: for (var node = workInProgress.child; null !== node;) { - if (5 === node.tag || 6 === node.tag) FabricUIManager.appendChildToSet(newChildSet, node.stateNode.node);else if (4 !== node.tag && null !== node.child) { - node.child.return = node; - node = node.child; - continue; - } - if (node === workInProgress) break a; - - for (; null === node.sibling;) { - if (null === node.return || node.return === workInProgress) break a; - node = node.return; - } - - node.sibling.return = node.return; - node = node.sibling; - } - - portalOrRoot.pendingChildren = newChildSet; - workInProgress.effectTag |= 4; - FabricUIManager.completeRoot(container, newChildSet); - } - }; - - updateHostComponent$1 = function updateHostComponent$1(current, workInProgress, updatePayload) { - var childrenUnchanged = null === workInProgress.firstEffect; - current = current.stateNode; - if (childrenUnchanged && null === updatePayload) workInProgress.stateNode = current;else { - var node = current.node; - updatePayload = { - node: childrenUnchanged ? null !== updatePayload ? FabricUIManager.cloneNodeWithNewProps(node, updatePayload, workInProgress) : FabricUIManager.cloneNode(node, workInProgress) : null !== updatePayload ? FabricUIManager.cloneNodeWithNewChildrenAndProps(node, updatePayload, workInProgress) : FabricUIManager.cloneNodeWithNewChildren(node, workInProgress), - canonical: current.canonical - }; - workInProgress.stateNode = updatePayload; - childrenUnchanged ? workInProgress.effectTag |= 4 : appendAllChildren(updatePayload, workInProgress); - } - }; - - updateHostText$1 = function updateHostText$1(current, workInProgress, oldText, newText) { - oldText !== newText && (current = requiredContext(rootInstanceStackCursor.current), oldText = requiredContext(contextStackCursor$1.current), workInProgress.stateNode = createTextInstance(newText, current, oldText, workInProgress), workInProgress.effectTag |= 4); - }; - - function completeWork(current, workInProgress) { - var newProps = workInProgress.pendingProps; - - switch (workInProgress.tag) { - case 1: - return null; - - case 2: - return popContextProvider(workInProgress), null; - - case 3: - popHostContainer(workInProgress); - popTopLevelContextObject(workInProgress); - newProps = workInProgress.stateNode; - newProps.pendingContext && (newProps.context = newProps.pendingContext, newProps.pendingContext = null); - if (null === current || null === current.child) workInProgress.effectTag &= -3; - updateHostContainer(workInProgress); - return null; - - case 5: - popHostContext(workInProgress); - var rootContainerInstance = requiredContext(rootInstanceStackCursor.current), - type = workInProgress.type; - - if (null !== current && null != workInProgress.stateNode) { - var oldProps = current.memoizedProps, - instance = workInProgress.stateNode, - currentHostContext = requiredContext(contextStackCursor$1.current), - updatePayload = diffProperties(null, oldProps, newProps, instance.canonical.viewConfig.validAttributes); - instance.canonical.currentProps = newProps; - updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext); - current.ref !== workInProgress.ref && (workInProgress.effectTag |= 128); - } else { - if (!newProps) return invariant(null !== workInProgress.stateNode, "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."), null; - instance = requiredContext(contextStackCursor$1.current); - current = nextReactTag; - nextReactTag += 2; - oldProps = ReactNativeViewConfigRegistry.get(type); - invariant("RCTView" !== type || !instance.isInAParentText, "Nesting of within is not currently supported."); - type = diffProperties(null, emptyObject$1, newProps, oldProps.validAttributes); - rootContainerInstance = FabricUIManager.createNode(current, oldProps.uiViewClassName, rootContainerInstance, type, workInProgress); - newProps = new ReactFabricHostComponent(current, oldProps, newProps); - newProps = { - node: rootContainerInstance, - canonical: newProps - }; - appendAllChildren(newProps, workInProgress); - workInProgress.stateNode = newProps; - null !== workInProgress.ref && (workInProgress.effectTag |= 128); - } - - return null; - - case 6: - if (current && null != workInProgress.stateNode) updateHostText$1(current, workInProgress, current.memoizedProps, newProps);else { - if ("string" !== typeof newProps) return invariant(null !== workInProgress.stateNode, "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."), null; - rootContainerInstance = requiredContext(rootInstanceStackCursor.current); - type = requiredContext(contextStackCursor$1.current); - workInProgress.stateNode = createTextInstance(newProps, rootContainerInstance, type, workInProgress); - } - return null; - - case 14: - return null; - - case 16: - return null; - - case 10: - return null; - - case 11: - return null; - - case 15: - return null; - - case 4: - return popHostContainer(workInProgress), updateHostContainer(workInProgress), null; - - case 13: - return popProvider(workInProgress), null; - - case 12: - return null; - - case 0: - invariant(!1, "An indeterminate component should have become determinate before completing. This error is likely caused by a bug in React. Please file an issue."); - - default: - invariant(!1, "Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue."); - } - } - - function logError(boundary, errorInfo) { - var source = errorInfo.source, - stack = errorInfo.stack; - null === stack && null !== source && (stack = getStackAddendumByWorkInProgressFiber(source)); - null !== source && getComponentName(source); - source = null !== stack ? stack : ""; - errorInfo = errorInfo.value; - null !== boundary && 2 === boundary.tag && getComponentName(boundary); - - try { - if (errorInfo instanceof Error) { - var message = errorInfo.message, - name = errorInfo.name; - var errorToHandle = errorInfo; - - try { - errorToHandle.message = (message ? name + ": " + message : name) + "\n\nThis error is located at:" + source; - } catch (e) {} - } else errorToHandle = "string" === typeof errorInfo ? Error(errorInfo + "\n\nThis error is located at:" + source) : Error("Unspecified error at:" + source); - - ExceptionsManager.handleException(errorToHandle, !1); - } catch (e) { - e && e.suppressReactErrorLogging || console.error(e); - } - } - - function safelyDetachRef(current) { - var ref = current.ref; - if (null !== ref) if ("function" === typeof ref) try { - ref(null); - } catch (refError) { - captureCommitPhaseError(current, refError); - } else ref.current = null; - } - - function commitWork(current, finishedWork) { - switch (finishedWork.tag) { - case 2: - break; - - case 5: - break; - - case 6: - break; - - case 3: - case 4: - break; - - default: - invariant(!1, "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); - } - } - - function createRootErrorUpdate(fiber, errorInfo, expirationTime) { - expirationTime = createUpdate(expirationTime); - expirationTime.tag = 3; - expirationTime.payload = { - element: null - }; - var error = errorInfo.value; - - expirationTime.callback = function () { - onUncaughtError(error); - logError(fiber, errorInfo); - }; - - return expirationTime; - } - - function createClassErrorUpdate(fiber, errorInfo, expirationTime) { - expirationTime = createUpdate(expirationTime); - expirationTime.tag = 3; - var inst = fiber.stateNode; - null !== inst && "function" === typeof inst.componentDidCatch && (expirationTime.callback = function () { - null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this); - var error = errorInfo.value, - stack = errorInfo.stack; - logError(fiber, errorInfo); - this.componentDidCatch(error, { - componentStack: null !== stack ? stack : "" - }); - }); - return expirationTime; - } - - function unwindWork(workInProgress) { - switch (workInProgress.tag) { - case 2: - popContextProvider(workInProgress); - var effectTag = workInProgress.effectTag; - return effectTag & 1024 ? (workInProgress.effectTag = effectTag & -1025 | 64, workInProgress) : null; - - case 3: - return popHostContainer(workInProgress), popTopLevelContextObject(workInProgress), effectTag = workInProgress.effectTag, effectTag & 1024 ? (workInProgress.effectTag = effectTag & -1025 | 64, workInProgress) : null; - - case 5: - return popHostContext(workInProgress), null; - - case 16: - return effectTag = workInProgress.effectTag, effectTag & 1024 ? (workInProgress.effectTag = effectTag & -1025 | 64, workInProgress) : null; - - case 4: - return popHostContainer(workInProgress), null; - - case 13: - return popProvider(workInProgress), null; - - default: - return null; - } - } - - var originalStartTimeMs = now$1(), - mostRecentCurrentTime = 2, - mostRecentCurrentTimeMs = originalStartTimeMs, - lastUniqueAsyncExpiration = 0, - expirationContext = 0, - isWorking = !1, - nextUnitOfWork = null, - nextRoot = null, - nextRenderExpirationTime = 0, - nextLatestTimeoutMs = -1, - nextRenderDidError = !1, - nextEffect = null, - isCommitting$1 = !1, - legacyErrorBoundariesThatAlreadyFailed = null; - - function resetStack() { - if (null !== nextUnitOfWork) for (var interruptedWork = nextUnitOfWork.return; null !== interruptedWork;) { - var interruptedWork$jscomp$0 = interruptedWork; - - switch (interruptedWork$jscomp$0.tag) { - case 2: - popContextProvider(interruptedWork$jscomp$0); - break; - - case 3: - popHostContainer(interruptedWork$jscomp$0); - popTopLevelContextObject(interruptedWork$jscomp$0); - break; - - case 5: - popHostContext(interruptedWork$jscomp$0); - break; - - case 4: - popHostContainer(interruptedWork$jscomp$0); - break; - - case 13: - popProvider(interruptedWork$jscomp$0); - } - - interruptedWork = interruptedWork.return; - } - nextRoot = null; - nextRenderExpirationTime = 0; - nextLatestTimeoutMs = -1; - nextRenderDidError = !1; - nextUnitOfWork = null; - } - - function completeUnitOfWork(workInProgress$jscomp$0) { - for (;;) { - var current = workInProgress$jscomp$0.alternate, - returnFiber = workInProgress$jscomp$0.return, - siblingFiber = workInProgress$jscomp$0.sibling; - - if (0 === (workInProgress$jscomp$0.effectTag & 512)) { - current = completeWork(current, workInProgress$jscomp$0, nextRenderExpirationTime); - var workInProgress = workInProgress$jscomp$0; - - if (1073741823 === nextRenderExpirationTime || 1073741823 !== workInProgress.expirationTime) { - var newExpirationTime = 0; - - switch (workInProgress.tag) { - case 3: - case 2: - var updateQueue = workInProgress.updateQueue; - null !== updateQueue && (newExpirationTime = updateQueue.expirationTime); - } - - for (updateQueue = workInProgress.child; null !== updateQueue;) { - 0 !== updateQueue.expirationTime && (0 === newExpirationTime || newExpirationTime > updateQueue.expirationTime) && (newExpirationTime = updateQueue.expirationTime), updateQueue = updateQueue.sibling; - } - - workInProgress.expirationTime = newExpirationTime; - } - - if (null !== current) return current; - null !== returnFiber && 0 === (returnFiber.effectTag & 512) && (null === returnFiber.firstEffect && (returnFiber.firstEffect = workInProgress$jscomp$0.firstEffect), null !== workInProgress$jscomp$0.lastEffect && (null !== returnFiber.lastEffect && (returnFiber.lastEffect.nextEffect = workInProgress$jscomp$0.firstEffect), returnFiber.lastEffect = workInProgress$jscomp$0.lastEffect), 1 < workInProgress$jscomp$0.effectTag && (null !== returnFiber.lastEffect ? returnFiber.lastEffect.nextEffect = workInProgress$jscomp$0 : returnFiber.firstEffect = workInProgress$jscomp$0, returnFiber.lastEffect = workInProgress$jscomp$0)); - } else { - workInProgress$jscomp$0 = unwindWork(workInProgress$jscomp$0, nextRenderExpirationTime); - if (null !== workInProgress$jscomp$0) return workInProgress$jscomp$0.effectTag &= 511, workInProgress$jscomp$0; - null !== returnFiber && (returnFiber.firstEffect = returnFiber.lastEffect = null, returnFiber.effectTag |= 512); - } - - if (null !== siblingFiber) return siblingFiber; - if (null !== returnFiber) workInProgress$jscomp$0 = returnFiber;else break; - } - - return null; - } - - function performUnitOfWork(workInProgress) { - var next = beginWork(workInProgress.alternate, workInProgress, nextRenderExpirationTime); - null === next && (next = completeUnitOfWork(workInProgress)); - ReactCurrentOwner.current = null; - return next; - } - - function renderRoot(root$jscomp$0, isYieldy) { - invariant(!isWorking, "renderRoot was called recursively. This error is likely caused by a bug in React. Please file an issue."); - isWorking = !0; - var expirationTime = root$jscomp$0.nextExpirationTimeToWorkOn; - if (expirationTime !== nextRenderExpirationTime || root$jscomp$0 !== nextRoot || null === nextUnitOfWork) resetStack(), nextRoot = root$jscomp$0, nextRenderExpirationTime = expirationTime, nextLatestTimeoutMs = -1, nextRenderDidError = !1, nextUnitOfWork = createWorkInProgress(nextRoot.current, null, nextRenderExpirationTime), root$jscomp$0.pendingCommitExpirationTime = 0; - var didFatal = !1; - - do { - try { - if (isYieldy) for (; null !== nextUnitOfWork && !shouldYield();) { - nextUnitOfWork = performUnitOfWork(nextUnitOfWork); - } else for (; null !== nextUnitOfWork;) { - nextUnitOfWork = performUnitOfWork(nextUnitOfWork); - } - } catch (thrownValue) { - if (null === nextUnitOfWork) didFatal = !0, onUncaughtError(thrownValue);else { - invariant(null !== nextUnitOfWork, "Failed to replay rendering after an error. This is likely caused by a bug in React. Please file an issue with a reproducing case to help us find it."); - isYieldy = nextUnitOfWork; - var returnFiber = isYieldy.return; - - if (null === returnFiber) { - didFatal = !0; - onUncaughtError(thrownValue); - break; - } - - a: { - var root = root$jscomp$0, - returnFiber$jscomp$0 = returnFiber, - sourceFiber = isYieldy, - value = thrownValue; - returnFiber = nextRenderExpirationTime; - sourceFiber.effectTag |= 512; - sourceFiber.firstEffect = sourceFiber.lastEffect = null; - nextRenderDidError = !0; - - if ((root.didError || 1 === returnFiber) && (returnFiber === root.latestPendingTime || returnFiber === root.latestSuspendedTime)) { - value = createCapturedValue(value, sourceFiber); - root = returnFiber$jscomp$0; - - do { - switch (root.tag) { - case 3: - root.effectTag |= 1024; - value = createRootErrorUpdate(root, value, returnFiber); - enqueueCapturedUpdate(root, value, returnFiber); - break a; - - case 2: - if (returnFiber$jscomp$0 = value, sourceFiber = root.stateNode, 0 === (root.effectTag & 64) && null !== sourceFiber && "function" === typeof sourceFiber.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(sourceFiber))) { - root.effectTag |= 1024; - value = createClassErrorUpdate(root, returnFiber$jscomp$0, returnFiber); - enqueueCapturedUpdate(root, value, returnFiber); - break a; - } - - } - - root = root.return; - } while (null !== root); - } - } - - nextUnitOfWork = completeUnitOfWork(isYieldy); - } - } - - break; - } while (1); - - isWorking = !1; - didFatal ? root$jscomp$0.finishedWork = null : null === nextUnitOfWork ? (didFatal = root$jscomp$0.current.alternate, invariant(null !== didFatal, "Finished root should have a work-in-progress. This error is likely caused by a bug in React. Please file an issue."), 0 === (didFatal.effectTag & 512) ? (root$jscomp$0.pendingCommitExpirationTime = expirationTime, root$jscomp$0.finishedWork = didFatal) : (!nextRenderDidError || expirationTime !== root$jscomp$0.latestPendingTime && expirationTime !== root$jscomp$0.latestSuspendedTime ? (didFatal = root$jscomp$0.earliestPendingTime, isYieldy = root$jscomp$0.latestPendingTime, didFatal === expirationTime ? root$jscomp$0.earliestPendingTime = isYieldy === expirationTime ? root$jscomp$0.latestPendingTime = 0 : isYieldy : isYieldy === expirationTime && (root$jscomp$0.latestPendingTime = didFatal), didFatal = root$jscomp$0.latestSuspendedTime, didFatal === expirationTime && (root$jscomp$0.latestPingedTime = 0), isYieldy = root$jscomp$0.earliestSuspendedTime, 0 === isYieldy ? root$jscomp$0.earliestSuspendedTime = root$jscomp$0.latestSuspendedTime = expirationTime : isYieldy > expirationTime ? root$jscomp$0.earliestSuspendedTime = expirationTime : didFatal < expirationTime && (root$jscomp$0.latestSuspendedTime = expirationTime)) : root$jscomp$0.didError = !0, findNextPendingPriorityLevel(root$jscomp$0), onSuspend(root$jscomp$0, expirationTime, root$jscomp$0.expirationTime, nextLatestTimeoutMs))) : root$jscomp$0.finishedWork = null; - } - - function captureCommitPhaseError(fiber, error) { - var JSCompiler_inline_result; - - a: { - invariant(!isWorking || isCommitting$1, "dispatch: Cannot dispatch during the render phase."); - - for (JSCompiler_inline_result = fiber.return; null !== JSCompiler_inline_result;) { - switch (JSCompiler_inline_result.tag) { - case 2: - var instance = JSCompiler_inline_result.stateNode; - - if ("function" === typeof JSCompiler_inline_result.type.getDerivedStateFromCatch || "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) { - fiber = createCapturedValue(error, fiber); - fiber = createClassErrorUpdate(JSCompiler_inline_result, fiber, 1); - enqueueUpdate(JSCompiler_inline_result, fiber, 1); - scheduleWork(JSCompiler_inline_result, 1); - JSCompiler_inline_result = void 0; - break a; - } - - break; - - case 3: - fiber = createCapturedValue(error, fiber); - fiber = createRootErrorUpdate(JSCompiler_inline_result, fiber, 1); - enqueueUpdate(JSCompiler_inline_result, fiber, 1); - scheduleWork(JSCompiler_inline_result, 1); - JSCompiler_inline_result = void 0; - break a; - } - - JSCompiler_inline_result = JSCompiler_inline_result.return; - } - - 3 === fiber.tag && (JSCompiler_inline_result = createCapturedValue(error, fiber), JSCompiler_inline_result = createRootErrorUpdate(fiber, JSCompiler_inline_result, 1), enqueueUpdate(fiber, JSCompiler_inline_result, 1), scheduleWork(fiber, 1)); - JSCompiler_inline_result = void 0; - } - - return JSCompiler_inline_result; - } - - function computeExpirationForFiber(currentTime, fiber) { - currentTime = 0 !== expirationContext ? expirationContext : isWorking ? isCommitting$1 ? 1 : nextRenderExpirationTime : fiber.mode & 1 ? isBatchingInteractiveUpdates ? 2 + 10 * (((currentTime - 2 + 15) / 10 | 0) + 1) : 2 + 25 * (((currentTime - 2 + 500) / 25 | 0) + 1) : 1; - isBatchingInteractiveUpdates && (0 === lowestPendingInteractiveExpirationTime || currentTime > lowestPendingInteractiveExpirationTime) && (lowestPendingInteractiveExpirationTime = currentTime); - return currentTime; - } - - function scheduleWork(fiber, expirationTime) { - for (; null !== fiber;) { - if (0 === fiber.expirationTime || fiber.expirationTime > expirationTime) fiber.expirationTime = expirationTime; - null !== fiber.alternate && (0 === fiber.alternate.expirationTime || fiber.alternate.expirationTime > expirationTime) && (fiber.alternate.expirationTime = expirationTime); - if (null === fiber.return) if (3 === fiber.tag) { - var root = fiber.stateNode; - !isWorking && 0 !== nextRenderExpirationTime && expirationTime < nextRenderExpirationTime && resetStack(); - markPendingPriorityLevel(root, expirationTime); - isWorking && !isCommitting$1 && nextRoot === root || requestWork(root, root.expirationTime); - nestedUpdateCount > NESTED_UPDATE_LIMIT && invariant(!1, "Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."); - } else break; - fiber = fiber.return; - } - } - - function recalculateCurrentTime() { - mostRecentCurrentTimeMs = now$1() - originalStartTimeMs; - return mostRecentCurrentTime = (mostRecentCurrentTimeMs / 10 | 0) + 2; - } - - function syncUpdates(fn, a, b, c, d) { - var previousExpirationContext = expirationContext; - expirationContext = 1; - - try { - return fn(a, b, c, d); - } finally { - expirationContext = previousExpirationContext; - } - } - - var firstScheduledRoot = null, - lastScheduledRoot = null, - callbackExpirationTime = 0, - callbackID = void 0, - isRendering = !1, - nextFlushedRoot = null, - nextFlushedExpirationTime = 0, - lowestPendingInteractiveExpirationTime = 0, - deadlineDidExpire = !1, - hasUnhandledError = !1, - unhandledError = null, - deadline = null, - isBatchingUpdates = !1, - isUnbatchingUpdates = !1, - isBatchingInteractiveUpdates = !1, - completedBatches = null, - NESTED_UPDATE_LIMIT = 1e3, - nestedUpdateCount = 0, - timeHeuristicForUnitOfWork = 1; - - function scheduleCallbackWithExpirationTime(expirationTime) { - if (0 !== callbackExpirationTime) { - if (expirationTime > callbackExpirationTime) return; - - if (null !== callbackID) { - var callbackID$jscomp$0 = callbackID; - scheduledCallback = null; - clearTimeout(callbackID$jscomp$0); - } - } - - callbackExpirationTime = expirationTime; - now$1(); - scheduledCallback = performAsyncWork; - callbackID = setTimeout(setTimeoutCallback, 1); - } - - function onSuspend(root, suspendedExpirationTime, expirationTime, timeoutMs) { - 0 <= timeoutMs && setTimeout(function () { - var latestSuspendedTime = root.latestSuspendedTime; - 0 !== latestSuspendedTime && latestSuspendedTime <= suspendedExpirationTime && (latestSuspendedTime = root.latestPingedTime, 0 === latestSuspendedTime || latestSuspendedTime < suspendedExpirationTime) && (root.latestPingedTime = suspendedExpirationTime); - findNextPendingPriorityLevel(root); - latestSuspendedTime = root.expirationTime; - 0 !== latestSuspendedTime && requestWork(root, latestSuspendedTime); - }, timeoutMs); - root.expirationTime = expirationTime; - } - - function requestWork(root, expirationTime) { - if (null === root.nextScheduledRoot) root.expirationTime = expirationTime, null === lastScheduledRoot ? (firstScheduledRoot = lastScheduledRoot = root, root.nextScheduledRoot = root) : (lastScheduledRoot = lastScheduledRoot.nextScheduledRoot = root, lastScheduledRoot.nextScheduledRoot = firstScheduledRoot);else { - var remainingExpirationTime = root.expirationTime; - if (0 === remainingExpirationTime || expirationTime < remainingExpirationTime) root.expirationTime = expirationTime; - } - isRendering || (isBatchingUpdates ? isUnbatchingUpdates && (nextFlushedRoot = root, nextFlushedExpirationTime = 1, performWorkOnRoot(root, 1, !1)) : 1 === expirationTime ? performWork(1, null) : scheduleCallbackWithExpirationTime(expirationTime)); - } - - function findHighestPriorityRoot() { - var highestPriorityWork = 0, - highestPriorityRoot = null; - if (null !== lastScheduledRoot) for (var previousScheduledRoot = lastScheduledRoot, root = firstScheduledRoot; null !== root;) { - var remainingExpirationTime = root.expirationTime; - - if (0 === remainingExpirationTime) { - invariant(null !== previousScheduledRoot && null !== lastScheduledRoot, "Should have a previous and last root. This error is likely caused by a bug in React. Please file an issue."); - - if (root === root.nextScheduledRoot) { - firstScheduledRoot = lastScheduledRoot = root.nextScheduledRoot = null; - break; - } else if (root === firstScheduledRoot) firstScheduledRoot = remainingExpirationTime = root.nextScheduledRoot, lastScheduledRoot.nextScheduledRoot = remainingExpirationTime, root.nextScheduledRoot = null;else if (root === lastScheduledRoot) { - lastScheduledRoot = previousScheduledRoot; - lastScheduledRoot.nextScheduledRoot = firstScheduledRoot; - root.nextScheduledRoot = null; - break; - } else previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot, root.nextScheduledRoot = null; - - root = previousScheduledRoot.nextScheduledRoot; - } else { - if (0 === highestPriorityWork || remainingExpirationTime < highestPriorityWork) highestPriorityWork = remainingExpirationTime, highestPriorityRoot = root; - if (root === lastScheduledRoot) break; - previousScheduledRoot = root; - root = root.nextScheduledRoot; - } - } - previousScheduledRoot = nextFlushedRoot; - null !== previousScheduledRoot && previousScheduledRoot === highestPriorityRoot && 1 === highestPriorityWork ? nestedUpdateCount++ : nestedUpdateCount = 0; - nextFlushedRoot = highestPriorityRoot; - nextFlushedExpirationTime = highestPriorityWork; - } - - function performAsyncWork(dl) { - performWork(0, dl); - } - - function performWork(minExpirationTime, dl) { - deadline = dl; - findHighestPriorityRoot(); - if (null !== deadline) for (; null !== nextFlushedRoot && 0 !== nextFlushedExpirationTime && (0 === minExpirationTime || minExpirationTime >= nextFlushedExpirationTime) && (!deadlineDidExpire || recalculateCurrentTime() >= nextFlushedExpirationTime);) { - recalculateCurrentTime(), performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, !0), findHighestPriorityRoot(); - } else for (; null !== nextFlushedRoot && 0 !== nextFlushedExpirationTime && (0 === minExpirationTime || minExpirationTime >= nextFlushedExpirationTime);) { - performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, !1), findHighestPriorityRoot(); - } - null !== deadline && (callbackExpirationTime = 0, callbackID = null); - 0 !== nextFlushedExpirationTime && scheduleCallbackWithExpirationTime(nextFlushedExpirationTime); - deadline = null; - deadlineDidExpire = !1; - finishRendering(); - } - - function finishRendering() { - nestedUpdateCount = 0; - - if (null !== completedBatches) { - var batches = completedBatches; - completedBatches = null; - - for (var i = 0; i < batches.length; i++) { - var batch = batches[i]; - - try { - batch._onComplete(); - } catch (error) { - hasUnhandledError || (hasUnhandledError = !0, unhandledError = error); - } - } - } - - if (hasUnhandledError) throw batches = unhandledError, unhandledError = null, hasUnhandledError = !1, batches; - } - - function performWorkOnRoot(root, expirationTime, isYieldy) { - invariant(!isRendering, "performWorkOnRoot was called recursively. This error is likely caused by a bug in React. Please file an issue."); - isRendering = !0; - isYieldy ? (isYieldy = root.finishedWork, null !== isYieldy ? completeRoot$1(root, isYieldy, expirationTime) : (root.finishedWork = null, renderRoot(root, !0), isYieldy = root.finishedWork, null !== isYieldy && (shouldYield() ? root.finishedWork = isYieldy : completeRoot$1(root, isYieldy, expirationTime)))) : (isYieldy = root.finishedWork, null !== isYieldy ? completeRoot$1(root, isYieldy, expirationTime) : (root.finishedWork = null, renderRoot(root, !1), isYieldy = root.finishedWork, null !== isYieldy && completeRoot$1(root, isYieldy, expirationTime))); - isRendering = !1; - } - - function completeRoot$1(root, finishedWork$jscomp$0, expirationTime) { - var firstBatch = root.firstBatch; - - if (null !== firstBatch && firstBatch._expirationTime <= expirationTime && (null === completedBatches ? completedBatches = [firstBatch] : completedBatches.push(firstBatch), firstBatch._defer)) { - root.finishedWork = finishedWork$jscomp$0; - root.expirationTime = 0; - return; - } - - root.finishedWork = null; - isCommitting$1 = isWorking = !0; - invariant(root.current !== finishedWork$jscomp$0, "Cannot commit the same tree as before. This is probably a bug related to the return field. This error is likely caused by a bug in React. Please file an issue."); - expirationTime = root.pendingCommitExpirationTime; - invariant(0 !== expirationTime, "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."); - root.pendingCommitExpirationTime = 0; - firstBatch = finishedWork$jscomp$0.expirationTime; - recalculateCurrentTime(); - root.didError = !1; - if (0 === firstBatch) root.earliestPendingTime = 0, root.latestPendingTime = 0, root.earliestSuspendedTime = 0, root.latestSuspendedTime = 0, root.latestPingedTime = 0;else { - var latestPendingTime = root.latestPendingTime; - 0 !== latestPendingTime && (latestPendingTime < firstBatch ? root.earliestPendingTime = root.latestPendingTime = 0 : root.earliestPendingTime < firstBatch && (root.earliestPendingTime = root.latestPendingTime)); - latestPendingTime = root.earliestSuspendedTime; - 0 === latestPendingTime ? markPendingPriorityLevel(root, firstBatch) : firstBatch > root.latestSuspendedTime ? (root.earliestSuspendedTime = 0, root.latestSuspendedTime = 0, root.latestPingedTime = 0, markPendingPriorityLevel(root, firstBatch)) : firstBatch < latestPendingTime && markPendingPriorityLevel(root, firstBatch); - } - findNextPendingPriorityLevel(root); - ReactCurrentOwner.current = null; - 1 < finishedWork$jscomp$0.effectTag ? null !== finishedWork$jscomp$0.lastEffect ? (finishedWork$jscomp$0.lastEffect.nextEffect = finishedWork$jscomp$0, firstBatch = finishedWork$jscomp$0.firstEffect) : firstBatch = finishedWork$jscomp$0 : firstBatch = finishedWork$jscomp$0.firstEffect; - - for (nextEffect = firstBatch; null !== nextEffect;) { - latestPendingTime = !1; - var error = void 0; - - try { - for (; null !== nextEffect;) { - if (nextEffect.effectTag & 256) { - var current = nextEffect.alternate, - finishedWork = nextEffect; - - switch (finishedWork.tag) { - case 2: - if (finishedWork.effectTag & 256 && null !== current) { - var prevProps = current.memoizedProps, - prevState = current.memoizedState, - instance = finishedWork.stateNode; - instance.props = finishedWork.memoizedProps; - instance.state = finishedWork.memoizedState; - var snapshot = instance.getSnapshotBeforeUpdate(prevProps, prevState); - instance.__reactInternalSnapshotBeforeUpdate = snapshot; - } - - break; - - case 3: - case 5: - case 6: - case 4: - break; - - default: - invariant(!1, "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); - } - } - - nextEffect = nextEffect.nextEffect; - } - } catch (e) { - latestPendingTime = !0, error = e; - } - - latestPendingTime && (invariant(null !== nextEffect, "Should have next effect. This error is likely caused by a bug in React. Please file an issue."), captureCommitPhaseError(nextEffect, error), null !== nextEffect && (nextEffect = nextEffect.nextEffect)); - } - - for (nextEffect = firstBatch; null !== nextEffect;) { - current = !1; - prevProps = void 0; - - try { - for (; null !== nextEffect;) { - var effectTag = nextEffect.effectTag; - - if (effectTag & 128) { - var current$jscomp$0 = nextEffect.alternate; - - if (null !== current$jscomp$0) { - var currentRef = current$jscomp$0.ref; - null !== currentRef && ("function" === typeof currentRef ? currentRef(null) : currentRef.current = null); - } - } - - switch (effectTag & 14) { - case 2: - nextEffect.effectTag &= -3; - break; - - case 6: - nextEffect.effectTag &= -3; - commitWork(nextEffect.alternate, nextEffect); - break; - - case 4: - commitWork(nextEffect.alternate, nextEffect); - break; - - case 8: - prevState = nextEffect; - - a: for (snapshot = instance = prevState;;) { - latestPendingTime = snapshot; - "function" === typeof onCommitUnmount && onCommitUnmount(latestPendingTime); - - switch (latestPendingTime.tag) { - case 2: - safelyDetachRef(latestPendingTime); - var instance$jscomp$0 = latestPendingTime.stateNode; - if ("function" === typeof instance$jscomp$0.componentWillUnmount) try { - instance$jscomp$0.props = latestPendingTime.memoizedProps, instance$jscomp$0.state = latestPendingTime.memoizedState, instance$jscomp$0.componentWillUnmount(); - } catch (unmountError) { - captureCommitPhaseError(latestPendingTime, unmountError); - } - break; - - case 5: - safelyDetachRef(latestPendingTime); - break; - - case 4: - FabricUIManager.createChildSet(latestPendingTime.stateNode.containerInfo); - } - - if (null !== snapshot.child) snapshot.child.return = snapshot, snapshot = snapshot.child;else { - if (snapshot === instance) break; - - for (; null === snapshot.sibling;) { - if (null === snapshot.return || snapshot.return === instance) break a; - snapshot = snapshot.return; - } - - snapshot.sibling.return = snapshot.return; - snapshot = snapshot.sibling; - } - } - - prevState.return = null; - prevState.child = null; - prevState.alternate && (prevState.alternate.child = null, prevState.alternate.return = null); - } - - nextEffect = nextEffect.nextEffect; - } - } catch (e) { - current = !0, prevProps = e; - } - - current && (invariant(null !== nextEffect, "Should have next effect. This error is likely caused by a bug in React. Please file an issue."), captureCommitPhaseError(nextEffect, prevProps), null !== nextEffect && (nextEffect = nextEffect.nextEffect)); - } - - root.current = finishedWork$jscomp$0; - - for (nextEffect = firstBatch; null !== nextEffect;) { - effectTag = !1; - current$jscomp$0 = void 0; - - try { - for (currentRef = expirationTime; null !== nextEffect;) { - var effectTag$jscomp$0 = nextEffect.effectTag; - - if (effectTag$jscomp$0 & 36) { - var current$jscomp$1 = nextEffect.alternate; - instance$jscomp$0 = nextEffect; - firstBatch = currentRef; - - switch (instance$jscomp$0.tag) { - case 2: - var instance$jscomp$1 = instance$jscomp$0.stateNode; - if (instance$jscomp$0.effectTag & 4) if (null === current$jscomp$1) instance$jscomp$1.props = instance$jscomp$0.memoizedProps, instance$jscomp$1.state = instance$jscomp$0.memoizedState, instance$jscomp$1.componentDidMount();else { - var prevProps$jscomp$0 = current$jscomp$1.memoizedProps, - prevState$jscomp$0 = current$jscomp$1.memoizedState; - instance$jscomp$1.props = instance$jscomp$0.memoizedProps; - instance$jscomp$1.state = instance$jscomp$0.memoizedState; - instance$jscomp$1.componentDidUpdate(prevProps$jscomp$0, prevState$jscomp$0, instance$jscomp$1.__reactInternalSnapshotBeforeUpdate); - } - var updateQueue = instance$jscomp$0.updateQueue; - null !== updateQueue && (instance$jscomp$1.props = instance$jscomp$0.memoizedProps, instance$jscomp$1.state = instance$jscomp$0.memoizedState, commitUpdateQueue(instance$jscomp$0, updateQueue, instance$jscomp$1, firstBatch)); - break; - - case 3: - var _updateQueue = instance$jscomp$0.updateQueue; - - if (null !== _updateQueue) { - current = null; - if (null !== instance$jscomp$0.child) switch (instance$jscomp$0.child.tag) { - case 5: - current = instance$jscomp$0.child.stateNode.canonical; - break; - - case 2: - current = instance$jscomp$0.child.stateNode; - } - commitUpdateQueue(instance$jscomp$0, _updateQueue, current, firstBatch); - } - - break; - - case 5: - null === current$jscomp$1 && instance$jscomp$0.effectTag & 4 && invariant(!1, "The current renderer does not support mutation. This error is likely caused by a bug in React. Please file an issue."); - break; - - case 6: - break; - - case 4: - break; - - case 15: - break; - - case 16: - break; - - default: - invariant(!1, "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); - } - } - - if (effectTag$jscomp$0 & 128) { - instance$jscomp$0 = void 0; - var ref = nextEffect.ref; - - if (null !== ref) { - var instance$jscomp$2 = nextEffect.stateNode; - - switch (nextEffect.tag) { - case 5: - instance$jscomp$0 = instance$jscomp$2.canonical; - break; - - default: - instance$jscomp$0 = instance$jscomp$2; - } - - "function" === typeof ref ? ref(instance$jscomp$0) : ref.current = instance$jscomp$0; - } - } - - var next = nextEffect.nextEffect; - nextEffect.nextEffect = null; - nextEffect = next; - } - } catch (e) { - effectTag = !0, current$jscomp$0 = e; - } - - effectTag && (invariant(null !== nextEffect, "Should have next effect. This error is likely caused by a bug in React. Please file an issue."), captureCommitPhaseError(nextEffect, current$jscomp$0), null !== nextEffect && (nextEffect = nextEffect.nextEffect)); - } - - isWorking = isCommitting$1 = !1; - "function" === typeof onCommitRoot && onCommitRoot(finishedWork$jscomp$0.stateNode); - finishedWork$jscomp$0 = root.expirationTime; - 0 === finishedWork$jscomp$0 && (legacyErrorBoundariesThatAlreadyFailed = null); - root.expirationTime = finishedWork$jscomp$0; - root.finishedWork = null; - } - - function shouldYield() { - return null === deadline || deadlineDidExpire || deadline.timeRemaining() > timeHeuristicForUnitOfWork ? !1 : deadlineDidExpire = !0; - } - - function onUncaughtError(error) { - invariant(null !== nextFlushedRoot, "Should be working on a root. This error is likely caused by a bug in React. Please file an issue."); - nextFlushedRoot.expirationTime = 0; - hasUnhandledError || (hasUnhandledError = !0, unhandledError = error); - } - - function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback) { - var current = container.current; - - if (parentComponent) { - parentComponent = parentComponent._reactInternalFiber; - var parentContext; - - b: { - invariant(2 === isFiberMountedImpl(parentComponent) && 2 === parentComponent.tag, "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."); - - for (parentContext = parentComponent; 3 !== parentContext.tag;) { - if (isContextProvider(parentContext)) { - parentContext = parentContext.stateNode.__reactInternalMemoizedMergedChildContext; - break b; - } - - parentContext = parentContext.return; - invariant(parentContext, "Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue."); - } - - parentContext = parentContext.stateNode.context; - } - - parentComponent = isContextProvider(parentComponent) ? processChildContext(parentComponent, parentContext) : parentContext; - } else parentComponent = emptyObject; - - null === container.context ? container.context = parentComponent : container.pendingContext = parentComponent; - container = callback; - callback = createUpdate(expirationTime); - callback.payload = { - element: element - }; - container = void 0 === container ? null : container; - null !== container && (callback.callback = container); - enqueueUpdate(current, callback, expirationTime); - scheduleWork(current, expirationTime); - return expirationTime; - } - - function findHostInstance$1(component) { - var fiber = component._reactInternalFiber; - void 0 === fiber && ("function" === typeof component.render ? invariant(!1, "Unable to find node on an unmounted component.") : invariant(!1, "Argument appears to not be a ReactComponent. Keys: %s", Object.keys(component))); - component = findCurrentHostFiber(fiber); - return null === component ? null : component.stateNode; - } - - function updateContainer(element, container, parentComponent, callback) { - var current = container.current, - currentTime = recalculateCurrentTime(); - current = computeExpirationForFiber(currentTime, current); - return updateContainerAtExpirationTime(element, container, parentComponent, current, callback); - } - - function getPublicRootInstance(container) { - container = container.current; - if (!container.child) return null; - - switch (container.child.tag) { - case 5: - return container.child.stateNode.canonical; - - default: - return container.child.stateNode; - } - } - - function injectIntoDevTools(devToolsConfig) { - var _findFiberByHostInstance = devToolsConfig.findFiberByHostInstance; - return injectInternals(_extends({}, devToolsConfig, { - findHostInstanceByFiber: function findHostInstanceByFiber(fiber) { - fiber = findCurrentHostFiber(fiber); - return null === fiber ? null : fiber.stateNode; - }, - findFiberByHostInstance: function findFiberByHostInstance(instance) { - return _findFiberByHostInstance ? _findFiberByHostInstance(instance) : null; - } - })); - } - - var ReactFabricRenderer = { - updateContainerAtExpirationTime: updateContainerAtExpirationTime, - createContainer: function createContainer(containerInfo, isAsync, hydrate) { - return createFiberRoot(containerInfo, isAsync, hydrate); - }, - updateContainer: updateContainer, - flushRoot: function flushRoot(root, expirationTime) { - invariant(!isRendering, "work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method."); - nextFlushedRoot = root; - nextFlushedExpirationTime = expirationTime; - performWorkOnRoot(root, expirationTime, !1); - performWork(1, null); - finishRendering(); - }, - requestWork: requestWork, - computeUniqueAsyncExpiration: function computeUniqueAsyncExpiration() { - var result = 2 + 25 * (((recalculateCurrentTime() - 2 + 500) / 25 | 0) + 1); - result <= lastUniqueAsyncExpiration && (result = lastUniqueAsyncExpiration + 1); - return lastUniqueAsyncExpiration = result; - }, - batchedUpdates: function batchedUpdates(fn, a) { - var previousIsBatchingUpdates = isBatchingUpdates; - isBatchingUpdates = !0; - - try { - return fn(a); - } finally { - (isBatchingUpdates = previousIsBatchingUpdates) || isRendering || performWork(1, null); - } - }, - unbatchedUpdates: function unbatchedUpdates(fn, a) { - if (isBatchingUpdates && !isUnbatchingUpdates) { - isUnbatchingUpdates = !0; - - try { - return fn(a); - } finally { - isUnbatchingUpdates = !1; - } - } - - return fn(a); - }, - deferredUpdates: function deferredUpdates(fn) { - var previousExpirationContext = expirationContext; - expirationContext = 2 + 25 * (((recalculateCurrentTime() - 2 + 500) / 25 | 0) + 1); - - try { - return fn(); - } finally { - expirationContext = previousExpirationContext; - } - }, - syncUpdates: syncUpdates, - interactiveUpdates: function interactiveUpdates(fn, a, b) { - if (isBatchingInteractiveUpdates) return fn(a, b); - isBatchingUpdates || isRendering || 0 === lowestPendingInteractiveExpirationTime || (performWork(lowestPendingInteractiveExpirationTime, null), lowestPendingInteractiveExpirationTime = 0); - var previousIsBatchingInteractiveUpdates = isBatchingInteractiveUpdates, - previousIsBatchingUpdates = isBatchingUpdates; - isBatchingUpdates = isBatchingInteractiveUpdates = !0; - - try { - return fn(a, b); - } finally { - isBatchingInteractiveUpdates = previousIsBatchingInteractiveUpdates, (isBatchingUpdates = previousIsBatchingUpdates) || isRendering || performWork(1, null); - } - }, - flushInteractiveUpdates: function flushInteractiveUpdates() { - isRendering || 0 === lowestPendingInteractiveExpirationTime || (performWork(lowestPendingInteractiveExpirationTime, null), lowestPendingInteractiveExpirationTime = 0); - }, - flushControlled: function flushControlled(fn) { - var previousIsBatchingUpdates = isBatchingUpdates; - isBatchingUpdates = !0; - - try { - syncUpdates(fn); - } finally { - (isBatchingUpdates = previousIsBatchingUpdates) || isRendering || performWork(1, null); - } - }, - flushSync: function flushSync(fn, a) { - invariant(!isRendering, "flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering."); - var previousIsBatchingUpdates = isBatchingUpdates; - isBatchingUpdates = !0; - - try { - return syncUpdates(fn, a); - } finally { - isBatchingUpdates = previousIsBatchingUpdates, performWork(1, null); - } - }, - getPublicRootInstance: getPublicRootInstance, - findHostInstance: findHostInstance$1, - findHostInstanceWithNoPortals: function findHostInstanceWithNoPortals(fiber) { - fiber = findCurrentHostFiberWithNoPortals(fiber); - return null === fiber ? null : fiber.stateNode; - }, - injectIntoDevTools: injectIntoDevTools - }; - - function _createPortal(children, containerInfo, implementation) { - var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; - return { - $$typeof: REACT_PORTAL_TYPE, - key: null == key ? null : "" + key, - children: children, - containerInfo: containerInfo, - implementation: implementation - }; - } - - function _inherits(subClass, superClass) { - if ("function" !== typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: !1, - writable: !0, - configurable: !0 - } - }); - superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); - } - - var getInspectorDataForViewTag = void 0; - - getInspectorDataForViewTag = function getInspectorDataForViewTag() { - invariant(!1, "getInspectorDataForViewTag() is not available in production"); - }; - - function findNodeHandle(componentOrHandle) { - if (null == componentOrHandle) return null; - if ("number" === typeof componentOrHandle) return componentOrHandle; - if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag; - if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag) return componentOrHandle.canonical._nativeTag; - componentOrHandle = findHostInstance$1(componentOrHandle); - return null == componentOrHandle ? componentOrHandle : componentOrHandle.canonical ? componentOrHandle.canonical._nativeTag : componentOrHandle._nativeTag; - } - - _batchedUpdates = ReactFabricRenderer.batchedUpdates; - _flushInteractiveUpdates = ReactFabricRenderer.flushInteractiveUpdates; - var roots = new Map(), - ReactFabric = { - NativeComponent: function (findNodeHandle, findHostInstance) { - return function (_React$Component) { - function ReactNativeComponent() { - if (!(this instanceof ReactNativeComponent)) throw new TypeError("Cannot call a class as a function"); - - var call = _React$Component.apply(this, arguments); - - if (!this) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !call || "object" !== typeof call && "function" !== typeof call ? this : call; - } - - _inherits(ReactNativeComponent, _React$Component); - - ReactNativeComponent.prototype.blur = function () { - TextInputState.blurTextInput(findNodeHandle(this)); - }; - - ReactNativeComponent.prototype.focus = function () { - TextInputState.focusTextInput(findNodeHandle(this)); - }; - - ReactNativeComponent.prototype.measure = function (callback) { - UIManager.measure(findNodeHandle(this), mountSafeCallback(this, callback)); - }; - - ReactNativeComponent.prototype.measureInWindow = function (callback) { - UIManager.measureInWindow(findNodeHandle(this), mountSafeCallback(this, callback)); - }; - - ReactNativeComponent.prototype.measureLayout = function (relativeToNativeNode, onSuccess, onFail) { - UIManager.measureLayout(findNodeHandle(this), relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); - }; - - ReactNativeComponent.prototype.setNativeProps = function (nativeProps) { - var maybeInstance = void 0; - - try { - maybeInstance = findHostInstance(this); - } catch (error) {} - - if (null != maybeInstance) { - var viewConfig = maybeInstance.viewConfig || maybeInstance.canonical.viewConfig; - nativeProps = diffProperties(null, emptyObject$1, nativeProps, viewConfig.validAttributes); - null != nativeProps && UIManager.updateView(maybeInstance._nativeTag, viewConfig.uiViewClassName, nativeProps); - } - }; - - return ReactNativeComponent; - }(React.Component); - }(findNodeHandle, findHostInstance$1), - findNodeHandle: findNodeHandle, - render: function render(element, containerTag, callback) { - var root = roots.get(containerTag); - root || (root = createFiberRoot(containerTag, !1, !1), roots.set(containerTag, root)); - updateContainer(element, root, null, callback); - return getPublicRootInstance(root); - }, - unmountComponentAtNode: function unmountComponentAtNode(containerTag) { - var root = roots.get(containerTag); - root && updateContainer(null, root, null, function () { - roots.delete(containerTag); - }); - }, - createPortal: function createPortal(children, containerTag) { - return _createPortal(children, containerTag, null, 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null); - }, - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { - NativeMethodsMixin: function (findNodeHandle, findHostInstance) { - return { - measure: function measure(callback) { - UIManager.measure(findNodeHandle(this), mountSafeCallback(this, callback)); - }, - measureInWindow: function measureInWindow(callback) { - UIManager.measureInWindow(findNodeHandle(this), mountSafeCallback(this, callback)); - }, - measureLayout: function measureLayout(relativeToNativeNode, onSuccess, onFail) { - UIManager.measureLayout(findNodeHandle(this), relativeToNativeNode, mountSafeCallback(this, onFail), mountSafeCallback(this, onSuccess)); - }, - setNativeProps: function setNativeProps(nativeProps) { - var maybeInstance = void 0; - - try { - maybeInstance = findHostInstance(this); - } catch (error) {} - - if (null != maybeInstance) { - var viewConfig = maybeInstance.viewConfig; - nativeProps = diffProperties(null, emptyObject$1, nativeProps, viewConfig.validAttributes); - null != nativeProps && UIManager.updateView(maybeInstance._nativeTag, viewConfig.uiViewClassName, nativeProps); - } - }, - focus: function focus() { - TextInputState.focusTextInput(findNodeHandle(this)); - }, - blur: function blur() { - TextInputState.blurTextInput(findNodeHandle(this)); - } - }; - }(findNodeHandle, findHostInstance$1) - } - }; - injectIntoDevTools({ - findFiberByHostInstance: getInstanceFromInstance, - getInspectorDataForViewTag: getInspectorDataForViewTag, - bundleType: 0, - version: "16.4.1", - rendererPackageName: "react-native-renderer" - }); - var ReactFabric$2 = { - default: ReactFabric - }, - ReactFabric$3 = ReactFabric$2 && ReactFabric || ReactFabric$2; - module.exports = ReactFabric$3.default ? ReactFabric$3.default : ReactFabric$3; -},504,[337,4,157,87,122,339,340,134,341,505,342],"node_modules/react-native/Libraries/Renderer/oss/ReactFabric-prod.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } - - function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } - - function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - - function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - var NativeModules = _$$_REQUIRE(_dependencyMap[0], 'NativeModules'); - - var RCTAsyncStorage = NativeModules.AsyncRocksDBStorage || NativeModules.AsyncSQLiteDBStorage || NativeModules.AsyncLocalStorage; - var AsyncStorage = { - _getRequests: [], - _getKeys: [], - _immediate: null, - getItem: function getItem(key, callback) { - return new Promise(function (resolve, reject) { - RCTAsyncStorage.multiGet([key], function (errors, result) { - var value = result && result[0] && result[0][1] ? result[0][1] : null; - var errs = convertErrors(errors); - callback && callback(errs && errs[0], value); - - if (errs) { - reject(errs[0]); - } else { - resolve(value); - } - }); - }); - }, - setItem: function setItem(key, value, callback) { - return new Promise(function (resolve, reject) { - RCTAsyncStorage.multiSet([[key, value]], function (errors) { - var errs = convertErrors(errors); - callback && callback(errs && errs[0]); - - if (errs) { - reject(errs[0]); - } else { - resolve(null); - } - }); - }); - }, - removeItem: function removeItem(key, callback) { - return new Promise(function (resolve, reject) { - RCTAsyncStorage.multiRemove([key], function (errors) { - var errs = convertErrors(errors); - callback && callback(errs && errs[0]); - - if (errs) { - reject(errs[0]); - } else { - resolve(null); - } - }); - }); - }, - mergeItem: function mergeItem(key, value, callback) { - return new Promise(function (resolve, reject) { - RCTAsyncStorage.multiMerge([[key, value]], function (errors) { - var errs = convertErrors(errors); - callback && callback(errs && errs[0]); - - if (errs) { - reject(errs[0]); - } else { - resolve(null); - } - }); - }); - }, - clear: function clear(callback) { - return new Promise(function (resolve, reject) { - RCTAsyncStorage.clear(function (error) { - callback && callback(convertError(error)); - - if (error && convertError(error)) { - reject(convertError(error)); - } else { - resolve(null); - } - }); - }); - }, - getAllKeys: function getAllKeys(callback) { - return new Promise(function (resolve, reject) { - RCTAsyncStorage.getAllKeys(function (error, keys) { - callback && callback(convertError(error), keys); - - if (error) { - reject(convertError(error)); - } else { - resolve(keys); - } - }); - }); - }, - flushGetRequests: function flushGetRequests() { - var getRequests = this._getRequests; - var getKeys = this._getKeys; - this._getRequests = []; - this._getKeys = []; - RCTAsyncStorage.multiGet(getKeys, function (errors, result) { - var map = {}; - result && result.forEach(function (_ref) { - var _ref2 = _slicedToArray(_ref, 2), - key = _ref2[0], - value = _ref2[1]; - - map[key] = value; - return value; - }); - var reqLength = getRequests.length; - - for (var i = 0; i < reqLength; i++) { - var request = getRequests[i]; - var requestKeys = request.keys; - var requestResult = requestKeys.map(function (key) { - return [key, map[key]]; - }); - request.callback && request.callback(null, requestResult); - request.resolve && request.resolve(requestResult); - } - }); - }, - multiGet: function multiGet(keys, callback) { - var _this = this; - - if (!this._immediate) { - this._immediate = setImmediate(function () { - _this._immediate = null; - - _this.flushGetRequests(); - }); - } - - var getRequest = { - keys: keys, - callback: callback, - keyIndex: this._getKeys.length, - resolve: null, - reject: null - }; - var promiseResult = new Promise(function (resolve, reject) { - getRequest.resolve = resolve; - getRequest.reject = reject; - }); - - this._getRequests.push(getRequest); - - keys.forEach(function (key) { - if (_this._getKeys.indexOf(key) === -1) { - _this._getKeys.push(key); - } - }); - return promiseResult; - }, - multiSet: function multiSet(keyValuePairs, callback) { - return new Promise(function (resolve, reject) { - RCTAsyncStorage.multiSet(keyValuePairs, function (errors) { - var error = convertErrors(errors); - callback && callback(error); - - if (error) { - reject(error); - } else { - resolve(null); - } - }); - }); - }, - multiRemove: function multiRemove(keys, callback) { - return new Promise(function (resolve, reject) { - RCTAsyncStorage.multiRemove(keys, function (errors) { - var error = convertErrors(errors); - callback && callback(error); - - if (error) { - reject(error); - } else { - resolve(null); - } - }); - }); - }, - multiMerge: function multiMerge(keyValuePairs, callback) { - return new Promise(function (resolve, reject) { - RCTAsyncStorage.multiMerge(keyValuePairs, function (errors) { - var error = convertErrors(errors); - callback && callback(error); - - if (error) { - reject(error); - } else { - resolve(null); - } - }); - }); - } - }; - - if (!RCTAsyncStorage.multiMerge) { - delete AsyncStorage.mergeItem; - delete AsyncStorage.multiMerge; - } - - function convertErrors(errs) { - if (!errs) { - return null; - } - - return (Array.isArray(errs) ? errs : [errs]).map(function (e) { - return convertError(e); - }); - } - - function convertError(error) { - if (!error) { - return null; - } - - var out = new Error(error.message); - out.key = error.key; - return out; - } - - module.exports = AsyncStorage; -},58,[93],"node_modules/react-native/Libraries/Storage/AsyncStorage.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var BackHandler = _$$_REQUIRE(_dependencyMap[0], 'BackHandler'); - - var warning = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/warning'); - - var BackAndroid = { - exitApp: function exitApp() { - warning(false, 'BackAndroid is deprecated. Please use BackHandler instead.'); - BackHandler.exitApp(); - }, - addEventListener: function addEventListener(eventName, handler) { - warning(false, 'BackAndroid is deprecated. Please use BackHandler instead.'); - return BackHandler.addEventListener(eventName, handler); - }, - removeEventListener: function removeEventListener(eventName, handler) { - warning(false, 'BackAndroid is deprecated. Please use BackHandler instead.'); - BackHandler.removeEventListener(eventName, handler); - } - }; - module.exports = BackAndroid; -},59,[60,111],"node_modules/react-native/Libraries/Utilities/BackAndroid.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var PropTypes = _$$_REQUIRE(_dependencyMap[0], 'prop-types'); - - var checkPropTypes = PropTypes.checkPropTypes; - - var RCTCameraRollManager = _$$_REQUIRE(_dependencyMap[1], 'NativeModules').CameraRollManager; - - var createStrictShapeTypeChecker = _$$_REQUIRE(_dependencyMap[2], 'createStrictShapeTypeChecker'); - - var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); - - var GROUP_TYPES_OPTIONS = { - Album: 'Album', - All: 'All', - Event: 'Event', - Faces: 'Faces', - Library: 'Library', - PhotoStream: 'PhotoStream', - SavedPhotos: 'SavedPhotos' - }; - var ASSET_TYPE_OPTIONS = { - All: 'All', - Videos: 'Videos', - Photos: 'Photos' - }; - var getPhotosParamChecker = createStrictShapeTypeChecker({ - first: PropTypes.number.isRequired, - after: PropTypes.string, - groupTypes: PropTypes.oneOf(Object.keys(GROUP_TYPES_OPTIONS)), - groupName: PropTypes.string, - assetType: PropTypes.oneOf(Object.keys(ASSET_TYPE_OPTIONS)), - mimeTypes: PropTypes.arrayOf(PropTypes.string) - }); - var getPhotosReturnChecker = createStrictShapeTypeChecker({ - edges: PropTypes.arrayOf(createStrictShapeTypeChecker({ - node: createStrictShapeTypeChecker({ - type: PropTypes.string.isRequired, - group_name: PropTypes.string.isRequired, - image: createStrictShapeTypeChecker({ - uri: PropTypes.string.isRequired, - height: PropTypes.number.isRequired, - width: PropTypes.number.isRequired, - isStored: PropTypes.bool, - playableDuration: PropTypes.number.isRequired - }).isRequired, - timestamp: PropTypes.number.isRequired, - location: createStrictShapeTypeChecker({ - latitude: PropTypes.number, - longitude: PropTypes.number, - altitude: PropTypes.number, - heading: PropTypes.number, - speed: PropTypes.number - }) - }).isRequired - })).isRequired, - page_info: createStrictShapeTypeChecker({ - has_next_page: PropTypes.bool.isRequired, - start_cursor: PropTypes.string, - end_cursor: PropTypes.string - }).isRequired - }); - - var CameraRoll = function () { - function CameraRoll() { - _classCallCheck(this, CameraRoll); - } - - _createClass(CameraRoll, null, [{ - key: "saveImageWithTag", - value: function saveImageWithTag(tag) { - console.warn('`CameraRoll.saveImageWithTag()` is deprecated. Use `CameraRoll.saveToCameraRoll()` instead.'); - return this.saveToCameraRoll(tag, 'photo'); - } - }, { - key: "deletePhotos", - value: function deletePhotos(photos) { - return RCTCameraRollManager.deletePhotos(photos); - } - }, { - key: "saveToCameraRoll", - value: function saveToCameraRoll(tag, type) { - invariant(typeof tag === 'string', 'CameraRoll.saveToCameraRoll must be a valid string.'); - invariant(type === 'photo' || type === 'video' || type === undefined, "The second argument to saveToCameraRoll must be 'photo' or 'video'. You passed " + (type || 'unknown')); - var mediaType = 'photo'; - - if (type) { - mediaType = type; - } else if (['mov', 'mp4'].indexOf(tag.split('.').slice(-1)[0]) >= 0) { - mediaType = 'video'; - } - - return RCTCameraRollManager.saveToCameraRoll(tag, mediaType); - } - }, { - key: "getPhotos", - value: function getPhotos(params) { - if (__DEV__) { - checkPropTypes({ - params: getPhotosParamChecker - }, { - params: params - }, 'params', 'CameraRoll.getPhotos'); - } - - if (arguments.length > 1) { - console.warn('CameraRoll.getPhotos(tag, success, error) is deprecated. Use the returned Promise instead'); - var successCallback = arguments[1]; - - if (__DEV__) { - var callback = arguments[1]; - - successCallback = function successCallback(response) { - checkPropTypes({ - response: getPhotosReturnChecker - }, { - response: response - }, 'response', 'CameraRoll.getPhotos callback'); - callback(response); - }; - } - - var errorCallback = arguments[2] || function () {}; - - RCTCameraRollManager.getPhotos(params).then(successCallback, errorCallback); - } - - return RCTCameraRollManager.getPhotos(params); - } - }]); - - return CameraRoll; - }(); - - CameraRoll.GroupTypesOptions = GROUP_TYPES_OPTIONS; - CameraRoll.AssetTypeOptions = ASSET_TYPE_OPTIONS; - module.exports = CameraRoll; -},61,[143,93,319,4],"node_modules/react-native/Libraries/CameraRoll/CameraRoll.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var Clipboard = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').Clipboard; - - module.exports = { - getString: function getString() { - return Clipboard.getString(); - }, - setString: function setString(content) { - Clipboard.setString(content); - } - }; -},62,[93],"node_modules/react-native/Libraries/Components/Clipboard/Clipboard.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var DatePickerModule = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').DatePickerAndroid; - - function _toMillis(options, key) { - var dateVal = options[key]; - - if (typeof dateVal === 'object' && typeof dateVal.getMonth === 'function') { - options[key] = dateVal.getTime(); - } - } - - var DatePickerAndroid = function () { - function DatePickerAndroid() { - _classCallCheck(this, DatePickerAndroid); - } - - _createClass(DatePickerAndroid, null, [{ - key: "open", - value: function open(options) { - var optionsMs; - return regeneratorRuntime.async(function open$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - optionsMs = options; - - if (optionsMs) { - _toMillis(options, 'date'); - - _toMillis(options, 'minDate'); - - _toMillis(options, 'maxDate'); - } - - return _context.abrupt("return", DatePickerModule.open(options)); - - case 3: - case "end": - return _context.stop(); - } - } - }, null, this); - } - }, { - key: "dateSetAction", - get: function get() { - return 'dateSetAction'; - } - }, { - key: "dismissedAction", - get: function get() { - return 'dismissedAction'; - } - }]); - - return DatePickerAndroid; - }(); - - module.exports = DatePickerAndroid; -},63,[93],"node_modules/react-native/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var RCTImagePicker = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').ImagePickerIOS; - - var ImagePickerIOS = { - canRecordVideos: function canRecordVideos(callback) { - return RCTImagePicker.canRecordVideos(callback); - }, - canUseCamera: function canUseCamera(callback) { - return RCTImagePicker.canUseCamera(callback); - }, - openCameraDialog: function openCameraDialog(config, successCallback, cancelCallback) { - config = _objectSpread({ - videoMode: false - }, config); - return RCTImagePicker.openCameraDialog(config, successCallback, cancelCallback); - }, - openSelectDialog: function openSelectDialog(config, successCallback, cancelCallback) { - config = _objectSpread({ - showImages: true, - showVideos: false - }, config); - return RCTImagePicker.openSelectDialog(config, successCallback, cancelCallback); - } - }; - module.exports = ImagePickerIOS; -},69,[93],"node_modules/react-native/Libraries/CameraRoll/ImagePickerIOS.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], 'NativeEventEmitter'); - - var NativeModules = _$$_REQUIRE(_dependencyMap[1], 'NativeModules'); - - var Platform = _$$_REQUIRE(_dependencyMap[2], 'Platform'); - - var invariant = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/invariant'); - - var LinkingManager = Platform.OS === 'android' ? NativeModules.IntentAndroid : NativeModules.LinkingManager; - - var Linking = function (_NativeEventEmitter) { - function Linking() { - _classCallCheck(this, Linking); - - return _possibleConstructorReturn(this, _getPrototypeOf(Linking).call(this, LinkingManager)); - } - - _createClass(Linking, [{ - key: "addEventListener", - value: function addEventListener(type, handler) { - this.addListener(type, handler); - } - }, { - key: "removeEventListener", - value: function removeEventListener(type, handler) { - this.removeListener(type, handler); - } - }, { - key: "openURL", - value: function openURL(url) { - this._validateURL(url); - - return LinkingManager.openURL(url); - } - }, { - key: "canOpenURL", - value: function canOpenURL(url) { - this._validateURL(url); - - return LinkingManager.canOpenURL(url); - } - }, { - key: "getInitialURL", - value: function getInitialURL() { - return LinkingManager.getInitialURL(); - } - }, { - key: "_validateURL", - value: function _validateURL(url) { - invariant(typeof url === 'string', 'Invalid URL: should be a string. Was: ' + url); - invariant(url, 'Invalid URL: cannot be empty'); - } - }]); - - _inherits(Linking, _NativeEventEmitter); - - return Linking; - }(NativeEventEmitter); - - module.exports = new Linking(); -},73,[74,93,94,4],"node_modules/react-native/Libraries/Linking/Linking.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var Map = _$$_REQUIRE(_dependencyMap[0], 'Map'); - - var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[1], 'NativeEventEmitter'); - - var NativeModules = _$$_REQUIRE(_dependencyMap[2], 'NativeModules'); - - var Platform = _$$_REQUIRE(_dependencyMap[3], 'Platform'); - - var RCTNetInfo = NativeModules.NetInfo; - var NetInfoEventEmitter = new NativeEventEmitter(RCTNetInfo); - var DEVICE_CONNECTIVITY_EVENT = 'networkStatusDidChange'; - - var _subscriptions = new Map(); - - var _isConnectedDeprecated; - - if (Platform.OS === 'ios') { - _isConnectedDeprecated = function _isConnectedDeprecated(reachability) { - return reachability !== 'none' && reachability !== 'unknown'; - }; - } else if (Platform.OS === 'android') { - _isConnectedDeprecated = function _isConnectedDeprecated(connectionType) { - return connectionType !== 'NONE' && connectionType !== 'UNKNOWN'; - }; - } - - function _isConnected(connection) { - return connection.type !== 'none' && connection.type !== 'unknown'; - } - - var _isConnectedSubscriptions = new Map(); - - var NetInfo = { - addEventListener: function addEventListener(eventName, handler) { - var listener; - - if (eventName === 'connectionChange') { - listener = NetInfoEventEmitter.addListener(DEVICE_CONNECTIVITY_EVENT, function (appStateData) { - handler({ - type: appStateData.connectionType, - effectiveType: appStateData.effectiveConnectionType - }); - }); - } else if (eventName === 'change') { - console.warn('NetInfo\'s "change" event is deprecated. Listen to the "connectionChange" event instead.'); - listener = NetInfoEventEmitter.addListener(DEVICE_CONNECTIVITY_EVENT, function (appStateData) { - handler(appStateData.network_info); - }); - } else { - console.warn('Trying to subscribe to unknown event: "' + eventName + '"'); - return { - remove: function remove() {} - }; - } - - _subscriptions.set(handler, listener); - - return { - remove: function remove() { - return NetInfo.removeEventListener(eventName, handler); - } - }; - }, - removeEventListener: function removeEventListener(eventName, handler) { - var listener = _subscriptions.get(handler); - - if (!listener) { - return; - } - - listener.remove(); - - _subscriptions.delete(handler); - }, - fetch: function fetch() { - console.warn('NetInfo.fetch() is deprecated. Use NetInfo.getConnectionInfo() instead.'); - return RCTNetInfo.getCurrentConnectivity().then(function (resp) { - return resp.network_info; - }); - }, - getConnectionInfo: function getConnectionInfo() { - return RCTNetInfo.getCurrentConnectivity().then(function (resp) { - return { - type: resp.connectionType, - effectiveType: resp.effectiveConnectionType - }; - }); - }, - isConnected: { - addEventListener: function addEventListener(eventName, handler) { - var listener = function listener(connection) { - if (eventName === 'change') { - handler(_isConnectedDeprecated(connection)); - } else if (eventName === 'connectionChange') { - handler(_isConnected(connection)); - } - }; - - _isConnectedSubscriptions.set(handler, listener); - - NetInfo.addEventListener(eventName, listener); - return { - remove: function remove() { - return NetInfo.isConnected.removeEventListener(eventName, handler); - } - }; - }, - removeEventListener: function removeEventListener(eventName, handler) { - var listener = _isConnectedSubscriptions.get(handler); - - NetInfo.removeEventListener(eventName, listener); - - _isConnectedSubscriptions.delete(handler); - }, - fetch: function fetch() { - return NetInfo.getConnectionInfo().then(_isConnected); - } - }, - isConnectionExpensive: function isConnectionExpensive() { - return Platform.OS === 'android' ? RCTNetInfo.isConnectionMetered() : Promise.reject(new Error('Currently not supported on iOS')); - } - }; - module.exports = NetInfo; -},75,[345,74,93,94],"node_modules/react-native/Libraries/Network/NetInfo.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], 'NativeEventEmitter'); - - var RCTPushNotificationManager = _$$_REQUIRE(_dependencyMap[1], 'NativeModules').PushNotificationManager; - - var invariant = _$$_REQUIRE(_dependencyMap[2], 'fbjs/lib/invariant'); - - var PushNotificationEmitter = new NativeEventEmitter(RCTPushNotificationManager); - - var _notifHandlers = new Map(); - - var DEVICE_NOTIF_EVENT = 'remoteNotificationReceived'; - var NOTIF_REGISTER_EVENT = 'remoteNotificationsRegistered'; - var NOTIF_REGISTRATION_ERROR_EVENT = 'remoteNotificationRegistrationError'; - var DEVICE_LOCAL_NOTIF_EVENT = 'localNotificationReceived'; - - var PushNotificationIOS = function () { - _createClass(PushNotificationIOS, null, [{ - key: "presentLocalNotification", - value: function presentLocalNotification(details) { - RCTPushNotificationManager.presentLocalNotification(details); - } - }, { - key: "scheduleLocalNotification", - value: function scheduleLocalNotification(details) { - RCTPushNotificationManager.scheduleLocalNotification(details); - } - }, { - key: "cancelAllLocalNotifications", - value: function cancelAllLocalNotifications() { - RCTPushNotificationManager.cancelAllLocalNotifications(); - } - }, { - key: "removeAllDeliveredNotifications", - value: function removeAllDeliveredNotifications() { - RCTPushNotificationManager.removeAllDeliveredNotifications(); - } - }, { - key: "getDeliveredNotifications", - value: function getDeliveredNotifications(callback) { - RCTPushNotificationManager.getDeliveredNotifications(callback); - } - }, { - key: "removeDeliveredNotifications", - value: function removeDeliveredNotifications(identifiers) { - RCTPushNotificationManager.removeDeliveredNotifications(identifiers); - } - }, { - key: "setApplicationIconBadgeNumber", - value: function setApplicationIconBadgeNumber(number) { - RCTPushNotificationManager.setApplicationIconBadgeNumber(number); - } - }, { - key: "getApplicationIconBadgeNumber", - value: function getApplicationIconBadgeNumber(callback) { - RCTPushNotificationManager.getApplicationIconBadgeNumber(callback); - } - }, { - key: "cancelLocalNotifications", - value: function cancelLocalNotifications(userInfo) { - RCTPushNotificationManager.cancelLocalNotifications(userInfo); - } - }, { - key: "getScheduledLocalNotifications", - value: function getScheduledLocalNotifications(callback) { - RCTPushNotificationManager.getScheduledLocalNotifications(callback); - } - }, { - key: "addEventListener", - value: function addEventListener(type, handler) { - invariant(type === 'notification' || type === 'register' || type === 'registrationError' || type === 'localNotification', 'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'); - var listener; - - if (type === 'notification') { - listener = PushNotificationEmitter.addListener(DEVICE_NOTIF_EVENT, function (notifData) { - handler(new PushNotificationIOS(notifData)); - }); - } else if (type === 'localNotification') { - listener = PushNotificationEmitter.addListener(DEVICE_LOCAL_NOTIF_EVENT, function (notifData) { - handler(new PushNotificationIOS(notifData)); - }); - } else if (type === 'register') { - listener = PushNotificationEmitter.addListener(NOTIF_REGISTER_EVENT, function (registrationInfo) { - handler(registrationInfo.deviceToken); - }); - } else if (type === 'registrationError') { - listener = PushNotificationEmitter.addListener(NOTIF_REGISTRATION_ERROR_EVENT, function (errorInfo) { - handler(errorInfo); - }); - } - - _notifHandlers.set(type, listener); - } - }, { - key: "removeEventListener", - value: function removeEventListener(type, handler) { - invariant(type === 'notification' || type === 'register' || type === 'registrationError' || type === 'localNotification', 'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'); - - var listener = _notifHandlers.get(type); - - if (!listener) { - return; - } - - listener.remove(); - - _notifHandlers.delete(type); - } - }, { - key: "requestPermissions", - value: function requestPermissions(permissions) { - var requestedPermissions = {}; - - if (permissions) { - requestedPermissions = { - alert: !!permissions.alert, - badge: !!permissions.badge, - sound: !!permissions.sound - }; - } else { - requestedPermissions = { - alert: true, - badge: true, - sound: true - }; - } - - return RCTPushNotificationManager.requestPermissions(requestedPermissions); - } - }, { - key: "abandonPermissions", - value: function abandonPermissions() { - RCTPushNotificationManager.abandonPermissions(); - } - }, { - key: "checkPermissions", - value: function checkPermissions(callback) { - invariant(typeof callback === 'function', 'Must provide a valid callback'); - RCTPushNotificationManager.checkPermissions(callback); - } - }, { - key: "getInitialNotification", - value: function getInitialNotification() { - return RCTPushNotificationManager.getInitialNotification().then(function (notification) { - return notification && new PushNotificationIOS(notification); - }); - } - }]); - - function PushNotificationIOS(nativeNotif) { - var _this = this; - - _classCallCheck(this, PushNotificationIOS); - - this._data = {}; - this._remoteNotificationCompleteCallbackCalled = false; - this._isRemote = nativeNotif.remote; - - if (this._isRemote) { - this._notificationId = nativeNotif.notificationId; - } - - if (nativeNotif.remote) { - Object.keys(nativeNotif).forEach(function (notifKey) { - var notifVal = nativeNotif[notifKey]; - - if (notifKey === 'aps') { - _this._alert = notifVal.alert; - _this._sound = notifVal.sound; - _this._badgeCount = notifVal.badge; - _this._category = notifVal.category; - _this._contentAvailable = notifVal['content-available']; - _this._threadID = notifVal['thread-id']; - } else { - _this._data[notifKey] = notifVal; - } - }); - } else { - this._badgeCount = nativeNotif.applicationIconBadgeNumber; - this._sound = nativeNotif.soundName; - this._alert = nativeNotif.alertBody; - this._data = nativeNotif.userInfo; - this._category = nativeNotif.category; - } - } - - _createClass(PushNotificationIOS, [{ - key: "finish", - value: function finish(fetchResult) { - if (!this._isRemote || !this._notificationId || this._remoteNotificationCompleteCallbackCalled) { - return; - } - - this._remoteNotificationCompleteCallbackCalled = true; - RCTPushNotificationManager.onFinishRemoteNotification(this._notificationId, fetchResult); - } - }, { - key: "getMessage", - value: function getMessage() { - return this._alert; - } - }, { - key: "getSound", - value: function getSound() { - return this._sound; - } - }, { - key: "getCategory", - value: function getCategory() { - return this._category; - } - }, { - key: "getAlert", - value: function getAlert() { - return this._alert; - } - }, { - key: "getContentAvailable", - value: function getContentAvailable() { - return this._contentAvailable; - } - }, { - key: "getBadgeCount", - value: function getBadgeCount() { - return this._badgeCount; - } - }, { - key: "getData", - value: function getData() { - return this._data; - } - }, { - key: "getThreadID", - value: function getThreadID() { - return this._threadID; - } - }]); - - return PushNotificationIOS; - }(); - - PushNotificationIOS.FetchResult = { - NewData: 'UIBackgroundFetchResultNewData', - NoData: 'UIBackgroundFetchResultNoData', - ResultFailed: 'UIBackgroundFetchResultFailed' - }; - module.exports = PushNotificationIOS; -},79,[74,93,4],"node_modules/react-native/Libraries/PushNotificationIOS/PushNotificationIOS.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var Settings = { - get: function get(key) { - console.warn('Settings is not yet supported on Android'); - return null; - }, - set: function set(settings) { - console.warn('Settings is not yet supported on Android'); - }, - watchKeys: function watchKeys(keys, callback) { - console.warn('Settings is not yet supported on Android'); - return -1; - }, - clearWatch: function clearWatch(watchId) { - console.warn('Settings is not yet supported on Android'); - } - }; - module.exports = Settings; -},80,[],"node_modules/react-native/Libraries/Settings/Settings.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var Platform = _$$_REQUIRE(_dependencyMap[0], 'Platform'); - - var invariant = _$$_REQUIRE(_dependencyMap[1], 'fbjs/lib/invariant'); - - var processColor = _$$_REQUIRE(_dependencyMap[2], 'processColor'); - - var _require = _$$_REQUIRE(_dependencyMap[3], 'NativeModules'), - ActionSheetManager = _require.ActionSheetManager, - ShareModule = _require.ShareModule; - - var Share = function () { - function Share() { - _classCallCheck(this, Share); - } - - _createClass(Share, null, [{ - key: "share", - value: function share(content) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - invariant(typeof content === 'object' && content !== null, 'Content to share must be a valid object'); - invariant(typeof content.url === 'string' || typeof content.message === 'string', 'At least one of URL and message is required'); - invariant(typeof options === 'object' && options !== null, 'Options must be a valid object'); - - if (Platform.OS === 'android') { - invariant(!content.title || typeof content.title === 'string', 'Invalid title: title should be a string.'); - return ShareModule.share(content, options.dialogTitle); - } else if (Platform.OS === 'ios') { - return new Promise(function (resolve, reject) { - ActionSheetManager.showShareActionSheetWithOptions(_objectSpread({}, content, options, { - tintColor: processColor(options.tintColor) - }), function (error) { - return reject(error); - }, function (success, activityType) { - if (success) { - resolve({ - action: 'sharedAction', - activityType: activityType - }); - } else { - resolve({ - action: 'dismissedAction' - }); - } - }); - }); - } else { - return Promise.reject(new Error('Unsupported platform')); - } - } - }, { - key: "sharedAction", - get: function get() { - return 'sharedAction'; - } - }, { - key: "dismissedAction", - get: function get() { - return 'dismissedAction'; - } - }]); - - return Share; - }(); - - module.exports = Share; -},81,[94,4,95,93],"node_modules/react-native/Libraries/Share/Share.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var NativeEventEmitter = _$$_REQUIRE(_dependencyMap[0], 'NativeEventEmitter'); - - module.exports = new NativeEventEmitter('StatusBarManager'); -},82,[74],"node_modules/react-native/Libraries/Components/StatusBar/StatusBarIOS.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var TimePickerModule = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').TimePickerAndroid; - - var TimePickerAndroid = function () { - function TimePickerAndroid() { - _classCallCheck(this, TimePickerAndroid); - } - - _createClass(TimePickerAndroid, null, [{ - key: "open", - value: function open(options) { - return regeneratorRuntime.async(function open$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - return _context.abrupt("return", TimePickerModule.open(options)); - - case 1: - case "end": - return _context.stop(); - } - } - }, null, this); - } - }, { - key: "timeSetAction", - get: function get() { - return 'timeSetAction'; - } - }, { - key: "dismissedAction", - get: function get() { - return 'dismissedAction'; - } - }]); - - return TimePickerAndroid; - }(); - - module.exports = TimePickerAndroid; -},85,[93],"node_modules/react-native/Libraries/Components/TimePickerAndroid/TimePickerAndroid.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var RCTVibration = _$$_REQUIRE(_dependencyMap[0], 'NativeModules').Vibration; - - var Platform = _$$_REQUIRE(_dependencyMap[1], 'Platform'); - - var _vibrating = false; - var _id = 0; - - function vibrateByPattern(pattern) { - var repeat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - - if (_vibrating) { - return; - } - - _vibrating = true; - - if (pattern[0] === 0) { - RCTVibration.vibrate(); - pattern = pattern.slice(1); - } - - if (pattern.length === 0) { - _vibrating = false; - return; - } - - setTimeout(function () { - return vibrateScheduler(++_id, pattern, repeat, 1); - }, pattern[0]); - } - - function vibrateScheduler(id, pattern, repeat, nextIndex) { - if (!_vibrating || id !== _id) { - return; - } - - RCTVibration.vibrate(); - - if (nextIndex >= pattern.length) { - if (repeat) { - nextIndex = 0; - } else { - _vibrating = false; - return; - } - } - - setTimeout(function () { - return vibrateScheduler(id, pattern, repeat, nextIndex + 1); - }, pattern[nextIndex]); - } - - var Vibration = { - vibrate: function vibrate() { - var pattern = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 400; - var repeat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - - if (Platform.OS === 'android') { - if (typeof pattern === 'number') { - RCTVibration.vibrate(pattern); - } else if (Array.isArray(pattern)) { - RCTVibration.vibrateByPattern(pattern, repeat ? 0 : -1); - } else { - throw new Error('Vibration pattern should be a number or array'); - } - } else { - if (_vibrating) { - return; - } - - if (typeof pattern === 'number') { - RCTVibration.vibrate(); - } else if (Array.isArray(pattern)) { - vibrateByPattern(pattern, repeat); - } else { - throw new Error('Vibration pattern should be a number or array'); - } - } - }, - cancel: function cancel() { - if (Platform.OS === 'ios') { - _vibrating = false; - } else { - RCTVibration.cancel(); - } - } - }; - module.exports = Vibration; -},88,[93,94],"node_modules/react-native/Libraries/Vibration/Vibration.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var warning = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/warning'); - - var VibrationIOS = { - vibrate: function vibrate() { - warning('VibrationIOS is not supported on this platform!'); - } - }; - module.exports = VibrationIOS; -},89,[111],"node_modules/react-native/Libraries/Vibration/VibrationIOS.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var ReactNative = _$$_REQUIRE(_dependencyMap[0], 'ReactNative'); - - var UIManager = _$$_REQUIRE(_dependencyMap[1], 'UIManager'); - - module.exports = function takeSnapshot(view, options) { - if (typeof view !== 'number' && view !== 'window') { - view = ReactNative.findNodeHandle(view) || 'window'; - } - - return UIManager.__takeSnapshot(view, options); - }; -},97,[67,87],"node_modules/react-native/Libraries/ReactNative/takeSnapshot.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../node_modules/react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _StatusBar = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "./components/StatusBar")); - - var _Router = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./Router")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/js/App.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - App: { - displayName: "App" - } - }; - - var _node_modulesReactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/js/App.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _node_modulesReactTransformHmrLibIndexJs2(Component, id); - }; - } - - var App = function (_Component) { - function App() { - _classCallCheck(this, App); - - return _possibleConstructorReturn(this, _getPrototypeOf(App).apply(this, arguments)); - } - - _createClass(App, [{ - key: "render", - value: function render() { - return _react.default.createElement(_reactNative.View, { - style: styles.container, - __source: { - fileName: _jsxFileName, - lineNumber: 9 - } - }, _react.default.createElement(_StatusBar.default, { - barStyle: "light-content", - __source: { - fileName: _jsxFileName, - lineNumber: 10 - } - }), _react.default.createElement(_Router.default, { - __source: { - fileName: _jsxFileName, - lineNumber: 11 - } - })); - } - }]); - - _inherits(App, _Component); - - return App; - }(_react.Component); - - App = _wrapComponent("App")(App); - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1 - } - }); - - var _default2 = App; - exports.default = _default2; -},2,[122,161,1,506,507],"js/App.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.STATUS_BAR_HEIGHT = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../node_modules/react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "prop-types")); - - var _Constants = _$$_REQUIRE(_dependencyMap[4], "../config/Constants"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/js/components/StatusBar.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - WdioStatusBar: { - displayName: "WdioStatusBar" - } - }; - - var _node_modulesReactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/js/components/StatusBar.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _node_modulesReactTransformHmrLibIndexJs2(Component, id); - }; - } - - var STATUS_BAR_HEIGHT = _Constants.IS_IOS ? _Constants.IS_IPHONEX ? 44 : 20 : _reactNative.StatusBar.currentHeight || 0; - exports.STATUS_BAR_HEIGHT = STATUS_BAR_HEIGHT; - - var WdioStatusBar = function (_Component) { - function WdioStatusBar() { - _classCallCheck(this, WdioStatusBar); - - return _possibleConstructorReturn(this, _getPrototypeOf(WdioStatusBar).apply(this, arguments)); - } - - _createClass(WdioStatusBar, [{ - key: "render", - value: function render() { - return _react.default.createElement(_reactNative.View, { - style: [styles.statusBar, { - backgroundColor: this.props.backgroundColor - }], - __source: { - fileName: _jsxFileName, - lineNumber: 20 - } - }, _react.default.createElement(_reactNative.StatusBar, _extends({ - translucent: true, - backgroundColor: this.props.backgroundColor - }, this.props, { - __source: { - fileName: _jsxFileName, - lineNumber: 21 - } - }))); - } - }]); - - _inherits(WdioStatusBar, _Component); - - return WdioStatusBar; - }(_react.Component); - - WdioStatusBar.propTypes = { - backgroundColor: _propTypes.default.string - }; - WdioStatusBar.defaultProps = { - backgroundColor: '#000' - }; - WdioStatusBar = _wrapComponent("WdioStatusBar")(WdioStatusBar); - - var styles = _reactNative.StyleSheet.create({ - statusBar: { - position: 'absolute', - top: 0, - left: 0, - zIndex: 100, - width: '100%', - height: STATUS_BAR_HEIGHT - } - }); - - var _default2 = WdioStatusBar; - exports.default = _default2; -},506,[122,161,1,143,508],"js/components/StatusBar.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.PIXEL_RATIO = exports.IS_IPHONEX = exports.WINDOW_HEIGHT = exports.WINDOW_WIDTH = exports.IS_IOS = void 0; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); - - var IS_IOS = _reactNative.Platform.OS === 'ios'; - exports.IS_IOS = IS_IOS; - - var _Dimensions$get = _reactNative.Dimensions.get('window'), - WINDOW_WIDTH = _Dimensions$get.width, - WINDOW_HEIGHT = _Dimensions$get.height; - - exports.WINDOW_HEIGHT = WINDOW_HEIGHT; - exports.WINDOW_WIDTH = WINDOW_WIDTH; - var IS_IPHONEX = IS_IOS && !_reactNative.Platform.isPad && !_reactNative.Platform.isTVOS && (WINDOW_WIDTH === 812 || WINDOW_HEIGHT === 812); - exports.IS_IPHONEX = IS_IPHONEX; - - var PIXEL_RATIO = _reactNative.PixelRatio.get(); - - exports.PIXEL_RATIO = PIXEL_RATIO; -},508,[1],"js/config/Constants.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../node_modules/react-transform-hmr/lib/index.js")); - - var _reactNavigation = _$$_REQUIRE(_dependencyMap[2], "react-navigation"); - - var _MaterialCommunityIcons = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "react-native-vector-icons/MaterialCommunityIcons")); - - var _Home = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./screens/Home")); - - var _WebView = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./screens/WebView")); - - var _Forms = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "./screens/Forms")); - - var _Login = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[7], "./screens/Login")); - - var _Swipe = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[8], "./screens/Swipe")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/js/Router.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - NavigationContainer: { - displayName: "NavigationContainer" - } - }; - - var _node_modulesReactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/js/Router.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _node_modulesReactTransformHmrLibIndexJs2(Component, id); - }; - } - - var Router = (0, _reactNavigation.createBottomTabNavigator)({ - Home: { - screen: _Home.default, - navigationOptions: { - tabBarLabel: 'Home', - tabBarIcon: function tabBarIcon(_ref) { - var tintColor = _ref.tintColor; - return _react.default.createElement(_MaterialCommunityIcons.default, { - name: 'home-outline', - size: 26, - style: { - color: tintColor - }, - __source: { - fileName: _jsxFileName, - lineNumber: 15 - } - }); - } - } - }, - WebView: { - screen: _WebView.default, - navigationOptions: { - tabBarLabel: 'WebView', - tabBarIcon: function tabBarIcon(_ref2) { - var tintColor = _ref2.tintColor; - return _react.default.createElement(_MaterialCommunityIcons.default, { - name: 'web', - size: 26, - style: { - color: tintColor - }, - __source: { - fileName: _jsxFileName, - lineNumber: 28 - } - }); - } - } - }, - Login: { - screen: _Login.default, - navigationOptions: { - tabBarLabel: 'Login', - tabBarIcon: function tabBarIcon(_ref3) { - var tintColor = _ref3.tintColor; - return _react.default.createElement(_MaterialCommunityIcons.default, { - name: 'login', - size: 26, - style: { - color: tintColor - }, - __source: { - fileName: _jsxFileName, - lineNumber: 41 - } - }); - } - } - }, - Forms: { - screen: _Forms.default, - navigationOptions: { - tabBarLabel: 'Forms', - tabBarIcon: function tabBarIcon(_ref4) { - var tintColor = _ref4.tintColor; - return _react.default.createElement(_MaterialCommunityIcons.default, { - name: 'pencil', - size: 26, - style: { - color: tintColor - }, - __source: { - fileName: _jsxFileName, - lineNumber: 54 - } - }); - } - } - }, - Swipe: { - screen: _Swipe.default, - navigationOptions: { - tabBarLabel: 'Swipe', - tabBarIcon: function tabBarIcon(_ref5) { - var tintColor = _ref5.tintColor; - return _react.default.createElement(_MaterialCommunityIcons.default, { - name: 'arrow-split-vertical', - size: 26, - style: { - color: tintColor - }, - __source: { - fileName: _jsxFileName, - lineNumber: 67 - } - }); - } - } - } - }, { - swipeEnabled: true, - tabBarOptions: { - activeTintColor: '#ea5906', - inactiveTintColor: 'rgba(255, 255, 255, 0.8)', - labelStyle: { - fontSize: 14, - fontWeight: '100' - }, - style: { - backgroundColor: '#000', - borderTopWidth: 5, - borderTopColor: '#ea5906', - paddingTop: 5, - height: 60 - }, - tabStyle: { - width: 100 - } - } - }); - - var NavigationContainer = function (_Component) { - function NavigationContainer() { - _classCallCheck(this, NavigationContainer); - - return _possibleConstructorReturn(this, _getPrototypeOf(NavigationContainer).apply(this, arguments)); - } - - _createClass(NavigationContainer, [{ - key: "render", - value: function render() { - return _react.default.createElement(Router, { - __source: { - fileName: _jsxFileName, - lineNumber: 101 - } - }); - } - }]); - - _inherits(NavigationContainer, _Component); - - return NavigationContainer; - }(_react.Component); - - NavigationContainer = _wrapComponent("NavigationContainer")(NavigationContainer); - var _default2 = NavigationContainer; - exports.default = _default2; -},507,[122,161,509,510,511,512,513,514,515],"js/Router.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = { - get createNavigationContainer() { - return _$$_REQUIRE(_dependencyMap[0], './createNavigationContainer').default; - }, - - get StateUtils() { - return _$$_REQUIRE(_dependencyMap[1], './StateUtils').default; - }, - - get getNavigation() { - return _$$_REQUIRE(_dependencyMap[2], './getNavigation').default; - }, - - get createNavigator() { - return _$$_REQUIRE(_dependencyMap[3], './navigators/createNavigator').default; - }, - - get createKeyboardAwareNavigator() { - return _$$_REQUIRE(_dependencyMap[4], './navigators/createKeyboardAwareNavigator').default; - }, - - get NavigationProvider() { - return _$$_REQUIRE(_dependencyMap[5], './views/NavigationContext').default.NavigationProvider; - }, - - get NavigationConsumer() { - return _$$_REQUIRE(_dependencyMap[5], './views/NavigationContext').default.NavigationConsumer; - }, - - get createStackNavigator() { - return _$$_REQUIRE(_dependencyMap[6], 'react-navigation-stack').createStackNavigator; - }, - - get StackNavigator() { - console.warn('The StackNavigator function name is deprecated, please use createStackNavigator instead'); - return _$$_REQUIRE(_dependencyMap[6], 'react-navigation-stack').createStackNavigator; - }, - - get createSwitchNavigator() { - return _$$_REQUIRE(_dependencyMap[7], './navigators/createContainedSwitchNavigator').default; - }, - - get SwitchNavigator() { - console.warn('The SwitchNavigator function name is deprecated, please use createSwitchNavigator instead'); - return _$$_REQUIRE(_dependencyMap[7], './navigators/createContainedSwitchNavigator').default; - }, - - get createDrawerNavigator() { - return _$$_REQUIRE(_dependencyMap[8], 'react-navigation-drawer').createDrawerNavigator; - }, - - get DrawerNavigator() { - console.warn('The DrawerNavigator function name is deprecated, please use createDrawerNavigator instead'); - return _$$_REQUIRE(_dependencyMap[8], 'react-navigation-drawer').createDrawerNavigator; - }, - - get createTabNavigator() { - console.warn('createTabNavigator is deprecated. Please use the createBottomTabNavigator or createMaterialTopTabNavigator instead.'); - return _$$_REQUIRE(_dependencyMap[9], 'react-navigation-deprecated-tab-navigator').createTabNavigator; - }, - - get TabNavigator() { - console.warn('TabNavigator is deprecated. Please use the createBottomTabNavigator or createMaterialTopTabNavigator instead.'); - return _$$_REQUIRE(_dependencyMap[9], 'react-navigation-deprecated-tab-navigator').createTabNavigator; - }, - - get createBottomTabNavigator() { - return _$$_REQUIRE(_dependencyMap[10], 'react-navigation-tabs').createBottomTabNavigator; - }, - - get createMaterialTopTabNavigator() { - return _$$_REQUIRE(_dependencyMap[10], 'react-navigation-tabs').createMaterialTopTabNavigator; - }, - - get NavigationActions() { - return _$$_REQUIRE(_dependencyMap[11], './NavigationActions').default; - }, - - get StackActions() { - return _$$_REQUIRE(_dependencyMap[12], './routers/StackActions').default; - }, - - get DrawerActions() { - return _$$_REQUIRE(_dependencyMap[8], 'react-navigation-drawer').DrawerActions; - }, - - get StackRouter() { - return _$$_REQUIRE(_dependencyMap[13], './routers/StackRouter').default; - }, - - get TabRouter() { - return _$$_REQUIRE(_dependencyMap[14], './routers/TabRouter').default; - }, - - get DrawerRouter() { - return _$$_REQUIRE(_dependencyMap[8], 'react-navigation-drawer').DrawerRouter; - }, - - get SwitchRouter() { - return _$$_REQUIRE(_dependencyMap[15], './routers/SwitchRouter').default; - }, - - get createConfigGetter() { - return _$$_REQUIRE(_dependencyMap[16], './routers/createConfigGetter').default; - }, - - get getScreenForRouteName() { - return _$$_REQUIRE(_dependencyMap[17], './routers/getScreenForRouteName').default; - }, - - get validateRouteConfigMap() { - return _$$_REQUIRE(_dependencyMap[18], './routers/validateRouteConfigMap').default; - }, - - get pathUtils() { - return _$$_REQUIRE(_dependencyMap[19], './routers/pathUtils').default; - }, - - get Transitioner() { - return _$$_REQUIRE(_dependencyMap[6], 'react-navigation-stack').Transitioner; - }, - - get StackView() { - return _$$_REQUIRE(_dependencyMap[6], 'react-navigation-stack').StackView; - }, - - get StackViewCard() { - return _$$_REQUIRE(_dependencyMap[6], 'react-navigation-stack').StackViewCard; - }, - - get StackViewTransitionConfigs() { - return _$$_REQUIRE(_dependencyMap[6], 'react-navigation-stack').StackViewTransitionConfigs; - }, - - get SafeAreaView() { - return _$$_REQUIRE(_dependencyMap[20], 'react-native-safe-area-view').default; - }, - - get SceneView() { - return _$$_REQUIRE(_dependencyMap[21], './views/SceneView').default; - }, - - get ResourceSavingSceneView() { - return _$$_REQUIRE(_dependencyMap[22], './views/ResourceSavingSceneView').default; - }, - - get Header() { - return _$$_REQUIRE(_dependencyMap[6], 'react-navigation-stack').Header; - }, - - get HeaderTitle() { - return _$$_REQUIRE(_dependencyMap[6], 'react-navigation-stack').HeaderTitle; - }, - - get HeaderBackButton() { - return _$$_REQUIRE(_dependencyMap[6], 'react-navigation-stack').HeaderBackButton; - }, - - get HeaderStyleInterpolator() { - return _$$_REQUIRE(_dependencyMap[6], 'react-navigation-stack').HeaderStyleInterpolator; - }, - - get DrawerView() { - return _$$_REQUIRE(_dependencyMap[8], 'react-navigation-drawer').DrawerView; - }, - - get DrawerItems() { - return _$$_REQUIRE(_dependencyMap[8], 'react-navigation-drawer').DrawerNavigatorItems; - }, - - get DrawerSidebar() { - return _$$_REQUIRE(_dependencyMap[8], 'react-navigation-drawer').DrawerSidebar; - }, - - get TabView() { - console.warn('TabView is deprecated. Please use the react-navigation-tabs package instead: https://github.com/react-navigation/react-navigation-tabs'); - return _$$_REQUIRE(_dependencyMap[9], 'react-navigation-deprecated-tab-navigator').TabView; - }, - - get TabBarTop() { - console.warn('TabBarTop is deprecated. Please use the react-navigation-tabs package instead: https://github.com/react-navigation/react-navigation-tabs'); - return _$$_REQUIRE(_dependencyMap[9], 'react-navigation-deprecated-tab-navigator').TabBarTop; - }, - - get TabBarBottom() { - console.warn('TabBarBottom is deprecated. Please use the react-navigation-tabs package instead: https://github.com/react-navigation/react-navigation-tabs'); - return _$$_REQUIRE(_dependencyMap[9], 'react-navigation-deprecated-tab-navigator').TabBarBottom; - }, - - get SwitchView() { - return _$$_REQUIRE(_dependencyMap[23], './views/SwitchView/SwitchView').default; - }, - - get NavigationEvents() { - return _$$_REQUIRE(_dependencyMap[24], './views/NavigationEvents').default; - }, - - get withNavigation() { - return _$$_REQUIRE(_dependencyMap[25], './views/withNavigation').default; - }, - - get withNavigationFocus() { - return _$$_REQUIRE(_dependencyMap[26], './views/withNavigationFocus').default; - }, - - get withOrientation() { - return _$$_REQUIRE(_dependencyMap[27], './views/withOrientation').default; - } - - }; -},509,[516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543],"node_modules/react-navigation/src/react-navigation.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports._TESTING_ONLY_reset_container_count = _TESTING_ONLY_reset_container_count; - exports.default = createNavigationContainer; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _reactLifecyclesCompat = _$$_REQUIRE(_dependencyMap[3], "react-lifecycles-compat"); - - var _NavigationActions = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./NavigationActions")); - - var _getNavigation = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./getNavigation")); - - var _invariant = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "./utils/invariant")); - - var _docsUrl = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[7], "./utils/docsUrl")); - - var _pathUtils = _$$_REQUIRE(_dependencyMap[8], "./routers/pathUtils"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/createNavigationContainer.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - var _components = { - NavigationContainer: { - displayName: "NavigationContainer", - isInFunction: true - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/createNavigationContainer.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function isStateful(props) { - return !props.navigation; - } - - function validateProps(props) { - if (isStateful(props)) { - return; - } - - var navigation = props.navigation, - screenProps = props.screenProps, - containerProps = _objectWithoutProperties(props, ["navigation", "screenProps"]); - - var keys = Object.keys(containerProps); - - if (keys.length !== 0) { - throw new Error('This navigator has both navigation and container props, so it is ' + ("unclear if it should own its own state. Remove props: \"" + keys.join(', ') + "\" ") + 'if the navigator should get its state from the navigation prop. If the ' + 'navigator should maintain its own state, do not pass a navigation prop.'); - } - } - - var _statefulContainerCount = 0; - - function _TESTING_ONLY_reset_container_count() { - _statefulContainerCount = 0; - } - - var _reactNavigationIsHydratingState = false; - - function createNavigationContainer(Component) { - var NavigationContainer = function (_React$Component) { - _createClass(NavigationContainer, null, [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(nextProps, prevState) { - validateProps(nextProps); - return null; - } - }]); - - function NavigationContainer(props) { - var _this; - - _classCallCheck(this, NavigationContainer); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(NavigationContainer).call(this, props)); - _this.subs = null; - _this._actionEventSubscribers = new Set(); - - _this._handleOpenURL = function (_ref) { - var url = _ref.url; - var _this$props = _this.props, - enableURLHandling = _this$props.enableURLHandling, - uriPrefix = _this$props.uriPrefix; - - if (enableURLHandling === false) { - return; - } - - var parsedUrl = (0, _pathUtils.urlToPathAndParams)(url, uriPrefix); - - if (parsedUrl) { - var path = parsedUrl.path, - params = parsedUrl.params; - var action = Component.router.getActionForPathAndParams(path, params); - - if (action) { - _this.dispatch(action); - } - } - }; - - _this._persistNavigationState = function _callee(nav) { - var persistenceKey; - return regeneratorRuntime.async(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - persistenceKey = _this.props.persistenceKey; - - if (persistenceKey) { - _context.next = 3; - break; - } - - return _context.abrupt("return"); - - case 3: - _context.next = 5; - return regeneratorRuntime.awrap(_reactNative.AsyncStorage.setItem(persistenceKey, JSON.stringify(nav))); - - case 5: - case "end": - return _context.stop(); - } - } - }, null, this); - }; - - _this.dispatch = function (action) { - if (_this.props.navigation) { - return _this.props.navigation.dispatch(action); - } - - _this._navState = _this._navState || _this.state.nav; - var lastNavState = _this._navState; - (0, _invariant.default)(lastNavState, 'should be set in constructor if stateful'); - var reducedState = Component.router.getStateForAction(action, lastNavState); - var navState = reducedState === null ? lastNavState : reducedState; - - var dispatchActionEvents = function dispatchActionEvents() { - _this._actionEventSubscribers.forEach(function (subscriber) { - return subscriber({ - type: 'action', - action: action, - state: navState, - lastState: lastNavState - }); - }); - }; - - if (reducedState === null) { - dispatchActionEvents(); - return true; - } - - if (navState !== lastNavState) { - _this._navState = navState; - - _this.setState({ - nav: navState - }, function () { - _this._onNavigationStateChange(lastNavState, navState, action); - - dispatchActionEvents(); - - _this._persistNavigationState(navState); - }); - - return true; - } - - dispatchActionEvents(); - return false; - }; - - _this._getScreenProps = function () { - return _this.props.screenProps; - }; - - validateProps(props); - _this._initialAction = _NavigationActions.default.init(); - - if (_this._isStateful()) { - _this.subs = _reactNative.BackHandler.addEventListener('hardwareBackPress', function () { - if (!_this._isMounted) { - _this.subs && _this.subs.remove(); - } else { - return _this.dispatch(_NavigationActions.default.back()); - } - }); - } - - _this.state = { - nav: _this._isStateful() && !props.persistenceKey ? Component.router.getStateForAction(_this._initialAction) : null - }; - return _this; - } - - _createClass(NavigationContainer, [{ - key: "_renderLoading", - value: function _renderLoading() { - return this.props.renderLoadingExperimental ? this.props.renderLoadingExperimental() : null; - } - }, { - key: "_isStateful", - value: function _isStateful() { - return isStateful(this.props); - } - }, { - key: "_validateProps", - value: function _validateProps(props) { - if (this._isStateful()) { - return; - } - - var navigation = props.navigation, - screenProps = props.screenProps, - containerProps = _objectWithoutProperties(props, ["navigation", "screenProps"]); - - var keys = Object.keys(containerProps); - - if (keys.length !== 0) { - throw new Error('This navigator has both navigation and container props, so it is ' + ("unclear if it should own its own state. Remove props: \"" + keys.join(', ') + "\" ") + 'if the navigator should get its state from the navigation prop. If the ' + 'navigator should maintain its own state, do not pass a navigation prop.'); - } - } - }, { - key: "_onNavigationStateChange", - value: function _onNavigationStateChange(prevNav, nav, action) { - if (typeof this.props.onNavigationStateChange === 'undefined' && this._isStateful() && !!process.env.REACT_NAV_LOGGING) { - if (console.group) { - console.group('Navigation Dispatch: '); - console.log('Action: ', action); - console.log('New State: ', nav); - console.log('Last State: ', prevNav); - console.groupEnd(); - } else { - console.log('Navigation Dispatch: ', { - action: action, - newState: nav, - lastState: prevNav - }); - } - - return; - } - - if (typeof this.props.onNavigationStateChange === 'function') { - this.props.onNavigationStateChange(prevNav, nav, action); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - if (this._navState === this.state.nav) { - this._navState = null; - } - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - var _this$props2, persistenceKey, uriPrefix, enableURLHandling, parsedUrl, startupStateJSON, _url, action, startupState, _parsedUrl, path, params, urlAction, dispatchActions; - - return regeneratorRuntime.async(function componentDidMount$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - this._isMounted = true; - - if (this._isStateful()) { - _context2.next = 3; - break; - } - - return _context2.abrupt("return"); - - case 3: - if (__DEV__ && !this.props.detached) { - if (_statefulContainerCount > 0) { - if (_reactNative.Platform.OS === 'ios') { - console.warn("You should only render one navigator explicitly in your app, and other navigators should by rendered by including them in that navigator. Full details at: " + (0, _docsUrl.default)('common-mistakes.html#explicitly-rendering-more-than-one-navigator')); - } - } - } - - _statefulContainerCount++; - - _reactNative.Linking.addEventListener('url', this._handleOpenURL); - - _this$props2 = this.props, persistenceKey = _this$props2.persistenceKey, uriPrefix = _this$props2.uriPrefix, enableURLHandling = _this$props2.enableURLHandling; - parsedUrl = null; - startupStateJSON = null; - - if (!(enableURLHandling !== false)) { - _context2.next = 20; - break; - } - - _context2.t0 = persistenceKey; - - if (!_context2.t0) { - _context2.next = 15; - break; - } - - _context2.next = 14; - return regeneratorRuntime.awrap(_reactNative.AsyncStorage.getItem(persistenceKey)); - - case 14: - _context2.t0 = _context2.sent; - - case 15: - startupStateJSON = _context2.t0; - _context2.next = 18; - return regeneratorRuntime.awrap(_reactNative.Linking.getInitialURL()); - - case 18: - _url = _context2.sent; - parsedUrl = _url && (0, _pathUtils.urlToPathAndParams)(_url, uriPrefix); - - case 20: - action = this._initialAction; - startupState = this.state.nav; - - if (!startupState) { - !!process.env.REACT_NAV_LOGGING && console.log('Init new Navigation State'); - startupState = Component.router.getStateForAction(action); - } - - if (startupStateJSON) { - try { - startupState = JSON.parse(startupStateJSON); - _reactNavigationIsHydratingState = true; - } catch (e) {} - } - - if (parsedUrl) { - _parsedUrl = parsedUrl, path = _parsedUrl.path, params = _parsedUrl.params; - urlAction = Component.router.getActionForPathAndParams(path, params); - - if (urlAction) { - !!process.env.REACT_NAV_LOGGING && console.log('Applying Navigation Action for Initial URL:', url); - action = urlAction; - startupState = Component.router.getStateForAction(urlAction, startupState); - } - } - - dispatchActions = function dispatchActions() { - return _this2._actionEventSubscribers.forEach(function (subscriber) { - return subscriber({ - type: 'action', - action: action, - state: _this2.state.nav, - lastState: null - }); - }); - }; - - if (!(startupState === this.state.nav)) { - _context2.next = 29; - break; - } - - dispatchActions(); - return _context2.abrupt("return"); - - case 29: - this.setState({ - nav: startupState - }, function () { - _reactNavigationIsHydratingState = false; - dispatchActions(); - }); - - case 30: - case "end": - return _context2.stop(); - } - } - }, null, this); - } - }, { - key: "componentDidCatch", - value: function componentDidCatch(e, errorInfo) { - if (_reactNavigationIsHydratingState) { - _reactNavigationIsHydratingState = false; - console.warn('Uncaught exception while starting app from persisted navigation state! Trying to render again with a fresh navigation state..'); - this.dispatch(_NavigationActions.default.init()); - } else { - throw e; - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this._isMounted = false; - - _reactNative.Linking.removeEventListener('url', this._handleOpenURL); - - this.subs && this.subs.remove(); - - if (this._isStateful()) { - _statefulContainerCount--; - } - } - }, { - key: "render", - value: function render() { - var _this3 = this; - - var navigation = this.props.navigation; - - if (this._isStateful()) { - var navState = this.state.nav; - - if (!navState) { - return this._renderLoading(); - } - - if (!this._navigation || this._navigation.state !== navState) { - this._navigation = (0, _getNavigation.default)(Component.router, navState, this.dispatch, this._actionEventSubscribers, this._getScreenProps, function () { - return _this3._navigation; - }); - } - - navigation = this._navigation; - } - - (0, _invariant.default)(navigation, 'failed to get navigation'); - return _react.default.createElement(Component, _extends({}, this.props, { - navigation: navigation, - __source: { - fileName: _jsxFileName, - lineNumber: 376 - } - })); - } - }]); - - _inherits(NavigationContainer, _React$Component); - - return NavigationContainer; - }(_react.default.Component); - - NavigationContainer.router = Component.router; - NavigationContainer.navigationOptions = null; - NavigationContainer = _wrapComponent("NavigationContainer")(NavigationContainer); - return (0, _reactLifecyclesCompat.polyfill)(NavigationContainer); - } -},516,[122,161,1,544,527,518,545,546,535],"node_modules/react-navigation/src/createNavigationContainer.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - Object.defineProperty(exports, '__esModule', { - value: true - }); - - function componentWillMount() { - var state = this.constructor.getDerivedStateFromProps(this.props, this.state); - - if (state !== null && state !== undefined) { - this.setState(state); - } - } - - function componentWillReceiveProps(nextProps) { - function updater(prevState) { - var state = this.constructor.getDerivedStateFromProps(nextProps, prevState); - return state !== null && state !== undefined ? state : null; - } - - this.setState(updater.bind(this)); - } - - function componentWillUpdate(nextProps, nextState) { - try { - var prevProps = this.props; - var prevState = this.state; - this.props = nextProps; - this.state = nextState; - this.__reactInternalSnapshotFlag = true; - this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(prevProps, prevState); - } finally { - this.props = prevProps; - this.state = prevState; - } - } - - componentWillMount.__suppressDeprecationWarning = true; - componentWillReceiveProps.__suppressDeprecationWarning = true; - componentWillUpdate.__suppressDeprecationWarning = true; - - function polyfill(Component) { - var prototype = Component.prototype; - - if (!prototype || !prototype.isReactComponent) { - throw new Error('Can only polyfill class components'); - } - - if (typeof Component.getDerivedStateFromProps !== 'function' && typeof prototype.getSnapshotBeforeUpdate !== 'function') { - return Component; - } - - var foundWillMountName = null; - var foundWillReceivePropsName = null; - var foundWillUpdateName = null; - - if (typeof prototype.componentWillMount === 'function') { - foundWillMountName = 'componentWillMount'; - } else if (typeof prototype.UNSAFE_componentWillMount === 'function') { - foundWillMountName = 'UNSAFE_componentWillMount'; - } - - if (typeof prototype.componentWillReceiveProps === 'function') { - foundWillReceivePropsName = 'componentWillReceiveProps'; - } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') { - foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps'; - } - - if (typeof prototype.componentWillUpdate === 'function') { - foundWillUpdateName = 'componentWillUpdate'; - } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') { - foundWillUpdateName = 'UNSAFE_componentWillUpdate'; - } - - if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) { - var componentName = Component.displayName || Component.name; - var newApiName = typeof Component.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()'; - throw Error('Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + componentName + ' uses ' + newApiName + ' but also contains the following legacy lifecycles:' + (foundWillMountName !== null ? '\n ' + foundWillMountName : '') + (foundWillReceivePropsName !== null ? '\n ' + foundWillReceivePropsName : '') + (foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '') + '\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' + 'https://fb.me/react-async-component-lifecycle-hooks'); - } - - if (typeof Component.getDerivedStateFromProps === 'function') { - prototype.componentWillMount = componentWillMount; - prototype.componentWillReceiveProps = componentWillReceiveProps; - } - - if (typeof prototype.getSnapshotBeforeUpdate === 'function') { - if (typeof prototype.componentDidUpdate !== 'function') { - throw new Error('Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'); - } - - prototype.componentWillUpdate = componentWillUpdate; - var componentDidUpdate = prototype.componentDidUpdate; - - prototype.componentDidUpdate = function componentDidUpdatePolyfill(prevProps, prevState, maybeSnapshot) { - var snapshot = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : maybeSnapshot; - componentDidUpdate.call(this, prevProps, prevState, snapshot); - }; - } - - return Component; - } - - exports.polyfill = polyfill; -},544,[],"node_modules/react-lifecycles-compat/react-lifecycles-compat.cjs.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var BACK = 'Navigation/BACK'; - var INIT = 'Navigation/INIT'; - var NAVIGATE = 'Navigation/NAVIGATE'; - var SET_PARAMS = 'Navigation/SET_PARAMS'; - - var back = function back() { - var payload = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return { - type: BACK, - key: payload.key, - immediate: payload.immediate - }; - }; - - var init = function init() { - var payload = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var action = { - type: INIT - }; - - if (payload.params) { - action.params = payload.params; - } - - return action; - }; - - var navigate = function navigate(payload) { - var action = { - type: NAVIGATE, - routeName: payload.routeName - }; - - if (payload.params) { - action.params = payload.params; - } - - if (payload.action) { - action.action = payload.action; - } - - if (payload.key) { - action.key = payload.key; - } - - return action; - }; - - var setParams = function setParams(payload) { - return { - type: SET_PARAMS, - key: payload.key, - params: payload.params - }; - }; - - var _default = { - BACK: BACK, - INIT: INIT, - NAVIGATE: NAVIGATE, - SET_PARAMS: SET_PARAMS, - back: back, - init: init, - navigate: navigate, - setParams: setParams - }; - exports.default = _default; -},527,[],"node_modules/react-navigation/src/NavigationActions.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = getNavigation; - - var _getNavigationActionCreators = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./routers/getNavigationActionCreators")); - - var _getChildNavigation2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./getChildNavigation")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function getNavigation(router, state, dispatch, actionSubscribers, getScreenProps, getCurrentNavigation) { - var actions = router.getActionCreators(state, null); - var navigation = { - actions: actions, - router: router, - state: state, - dispatch: dispatch, - getScreenProps: getScreenProps, - getChildNavigation: function getChildNavigation(childKey) { - return (0, _getChildNavigation2.default)(navigation, childKey, getCurrentNavigation); - }, - isFocused: function isFocused(childKey) { - var _getCurrentNavigation = getCurrentNavigation().state, - routes = _getCurrentNavigation.routes, - index = _getCurrentNavigation.index; - - if (childKey == null || routes[index].key === childKey) { - return true; - } - - return false; - }, - addListener: function addListener(eventName, handler) { - if (eventName !== 'action') { - return { - remove: function remove() {} - }; - } - - actionSubscribers.add(handler); - return { - remove: function remove() { - actionSubscribers.delete(handler); - } - }; - }, - dangerouslyGetParent: function dangerouslyGetParent() { - return null; - } - }; - - var actionCreators = _objectSpread({}, (0, _getNavigationActionCreators.default)(navigation.state), actions); - - Object.keys(actionCreators).forEach(function (actionName) { - navigation[actionName] = function () { - return navigation.dispatch(actionCreators[actionName].apply(actionCreators, arguments)); - }; - }); - return navigation; - } -},518,[547,548],"node_modules/react-navigation/src/getNavigation.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _NavigationActions = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "../NavigationActions")); - - var _invariant = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "../utils/invariant")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var getNavigationActionCreators = function getNavigationActionCreators(route) { - return { - goBack: function goBack(key) { - var actualizedKey = key; - - if (key === undefined && route.key) { - (0, _invariant.default)(typeof route.key === 'string', 'key should be a string'); - actualizedKey = route.key; - } - - return _NavigationActions.default.back({ - key: actualizedKey - }); - }, - navigate: function navigate(navigateTo, params, action) { - if (typeof navigateTo === 'string') { - return _NavigationActions.default.navigate({ - routeName: navigateTo, - params: params, - action: action - }); - } - - (0, _invariant.default)(typeof navigateTo === 'object', 'Must navigateTo an object or a string'); - (0, _invariant.default)(params == null, 'Params must not be provided to .navigate() when specifying an object'); - (0, _invariant.default)(action == null, 'Child action must not be provided to .navigate() when specifying an object'); - return _NavigationActions.default.navigate(navigateTo); - }, - setParams: function setParams(params) { - (0, _invariant.default)(route.key && typeof route.key === 'string', 'setParams cannot be called by root navigator'); - return _NavigationActions.default.setParams({ - params: params, - key: route.key - }); - } - }; - }; - - var _default = getNavigationActionCreators; - exports.default = _default; -},547,[527,545],"node_modules/react-navigation/src/routers/getNavigationActionCreators.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var validateFormat = function validateFormat(format) {}; - - if (__DEV__) { - validateFormat = function validateFormat(format) { - if (format === undefined) { - throw new Error('invariant requires an error message argument'); - } - }; - } - - function invariant(condition, format, a, b, c, d, e, f) { - validateFormat(format); - - if (!condition) { - var error; - - if (format === undefined) { - error = new Error('Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.'); - } else { - var args = [a, b, c, d, e, f]; - var argIndex = 0; - error = new Error(format.replace(/%s/g, function () { - return args[argIndex++]; - })); - error.name = 'Invariant Violation'; - } - - error.framesToPop = 1; - throw error; - } - } - - module.exports = invariant; -},545,[],"node_modules/react-navigation/src/utils/invariant.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _getChildEventSubscriber = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./getChildEventSubscriber")); - - var _getChildRouter = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./getChildRouter")); - - var _getNavigationActionCreators = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "./routers/getNavigationActionCreators")); - - var _invariant = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "./utils/invariant")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var createParamGetter = function createParamGetter(route) { - return function (paramName, defaultValue) { - var params = route.params; - - if (params && paramName in params) { - return params[paramName]; - } - - return defaultValue; - }; - }; - - function _getChildNavigation(navigation, childKey, getCurrentParentNavigation) { - var children = navigation._childrenNavigation || (navigation._childrenNavigation = {}); - var childRoute = navigation.state.routes.find(function (r) { - return r.key === childKey; - }); - - if (!childRoute) { - return null; - } - - if (children[childKey] && children[childKey].state === childRoute) { - return children[childKey]; - } - - var childRouter = (0, _getChildRouter.default)(navigation.router, childRoute.routeName); - var focusedGrandChildRoute = childRoute.routes && typeof childRoute.index === 'number' ? childRoute.routes[childRoute.index] : null; - - var actionCreators = _objectSpread({}, navigation.actions, navigation.router.getActionCreators(childRoute, navigation.state.key), childRouter ? childRouter.getActionCreators(focusedGrandChildRoute, childRoute.key) : {}, (0, _getNavigationActionCreators.default)(childRoute)); - - var actionHelpers = {}; - Object.keys(actionCreators).forEach(function (actionName) { - actionHelpers[actionName] = function () { - var actionCreator = actionCreators[actionName]; - var action = actionCreator.apply(void 0, arguments); - return navigation.dispatch(action); - }; - }); - - if (children[childKey]) { - children[childKey] = _objectSpread({}, children[childKey], actionHelpers, { - state: childRoute, - router: childRouter, - actions: actionCreators, - getParam: createParamGetter(childRoute) - }); - return children[childKey]; - } - - var childSubscriber = (0, _getChildEventSubscriber.default)(navigation.addListener, childKey); - children[childKey] = _objectSpread({}, actionHelpers, { - state: childRoute, - router: childRouter, - actions: actionCreators, - getParam: createParamGetter(childRoute), - getChildNavigation: function getChildNavigation(grandChildKey) { - return _getChildNavigation(children[childKey], grandChildKey, function () { - var nav = getCurrentParentNavigation(); - return nav && nav.getChildNavigation(childKey); - }); - }, - isFocused: function isFocused() { - var currentNavigation = getCurrentParentNavigation(); - - if (!currentNavigation) { - return false; - } - - var _currentNavigation$st = currentNavigation.state, - routes = _currentNavigation$st.routes, - index = _currentNavigation$st.index; - - if (!currentNavigation.isFocused()) { - return false; - } - - if (routes[index].key === childKey) { - return true; - } - - return false; - }, - dispatch: navigation.dispatch, - getScreenProps: navigation.getScreenProps, - dangerouslyGetParent: getCurrentParentNavigation, - addListener: childSubscriber.addListener - }); - return children[childKey]; - } - - var _default = _getChildNavigation; - exports.default = _default; -},548,[549,550,547,545],"node_modules/react-navigation/src/getChildNavigation.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = getChildEventSubscriber; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function getChildEventSubscriber(addListener, key) { - var actionSubscribers = new Set(); - var willFocusSubscribers = new Set(); - var didFocusSubscribers = new Set(); - var willBlurSubscribers = new Set(); - var didBlurSubscribers = new Set(); - - var removeAll = function removeAll() { - [actionSubscribers, willFocusSubscribers, didFocusSubscribers, willBlurSubscribers, didBlurSubscribers].forEach(function (set) { - return set.clear(); - }); - upstreamSubscribers.forEach(function (subs) { - return subs && subs.remove(); - }); - }; - - var getChildSubscribers = function getChildSubscribers(evtName) { - switch (evtName) { - case 'action': - return actionSubscribers; - - case 'willFocus': - return willFocusSubscribers; - - case 'didFocus': - return didFocusSubscribers; - - case 'willBlur': - return willBlurSubscribers; - - case 'didBlur': - return didBlurSubscribers; - - default: - return null; - } - }; - - var emit = function emit(type, payload) { - var payloadWithType = _objectSpread({}, payload, { - type: type - }); - - var subscribers = getChildSubscribers(type); - subscribers && subscribers.forEach(function (subs) { - subs(payloadWithType); - }); - }; - - var lastEmittedEvent = 'didBlur'; - var upstreamEvents = ['willFocus', 'didFocus', 'willBlur', 'didBlur', 'action']; - var upstreamSubscribers = upstreamEvents.map(function (eventName) { - return addListener(eventName, function (payload) { - var state = payload.state, - lastState = payload.lastState, - action = payload.action; - var lastRoutes = lastState && lastState.routes; - var routes = state && state.routes; - var lastFocusKey = lastState && lastState.routes && lastState.routes[lastState.index].key; - var focusKey = routes && routes[state.index].key; - var isChildFocused = focusKey === key; - var lastRoute = lastRoutes && lastRoutes.find(function (route) { - return route.key === key; - }); - var newRoute = routes && routes.find(function (route) { - return route.key === key; - }); - var childPayload = { - context: key + ":" + action.type + "_" + (payload.context || 'Root'), - state: newRoute, - lastState: lastRoute, - action: action, - type: eventName - }; - var isTransitioning = !!state && state.isTransitioning; - var previouslyLastEmittedEvent = lastEmittedEvent; - - if (lastEmittedEvent === 'didBlur') { - if (eventName === 'willFocus' && isChildFocused) { - emit(lastEmittedEvent = 'willFocus', childPayload); - } else if (eventName === 'action' && isChildFocused) { - emit(lastEmittedEvent = 'willFocus', childPayload); - } - } - - if (lastEmittedEvent === 'willFocus') { - if (eventName === 'didFocus' && isChildFocused && !isTransitioning) { - emit(lastEmittedEvent = 'didFocus', childPayload); - } else if (eventName === 'action' && isChildFocused && !isTransitioning) { - emit(lastEmittedEvent = 'didFocus', childPayload); - } - } - - if (lastEmittedEvent === 'didFocus') { - if (!isChildFocused) { - emit(lastEmittedEvent = 'willBlur', childPayload); - } else if (eventName === 'willBlur') { - emit(lastEmittedEvent = 'willBlur', childPayload); - } else if (eventName === 'action' && previouslyLastEmittedEvent === 'didFocus') { - emit('action', childPayload); - } - } - - if (lastEmittedEvent === 'willBlur') { - if (eventName === 'action' && !isChildFocused && !isTransitioning) { - emit(lastEmittedEvent = 'didBlur', childPayload); - } else if (eventName === 'didBlur') { - emit(lastEmittedEvent = 'didBlur', childPayload); - } - } - - if (lastEmittedEvent === 'didBlur' && !newRoute) { - removeAll(); - } - }); - }); - return { - addListener: function addListener(eventName, eventHandler) { - var subscribers = getChildSubscribers(eventName); - - if (!subscribers) { - throw new Error("Invalid event name \"" + eventName + "\""); - } - - subscribers.add(eventHandler); - - var remove = function remove() { - subscribers.delete(eventHandler); - }; - - return { - remove: remove - }; - } - }; - } -},549,[],"node_modules/react-navigation/src/getChildEventSubscriber.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = getChildRouter; - - function getChildRouter(router, routeName) { - if (router.childRouters && router.childRouters[routeName]) { - return router.childRouters[routeName]; - } - - var Component = router.getComponentForRouteName(routeName); - return Component.router; - } -},550,[],"node_modules/react-navigation/src/getChildRouter.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = docsUrl; - - function docsUrl(path) { - return "https://reactnavigation.org/docs/" + path; - } -},546,[],"node_modules/react-navigation/src/utils/docsUrl.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.createPathParser = exports.urlToPathAndParams = void 0; - - var _pathToRegexp = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "path-to-regexp")); - - var _NavigationActions = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "../NavigationActions")); - - var _invariant = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "../utils/invariant")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } - - function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } - - function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - - function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var queryString = _$$_REQUIRE(_dependencyMap[3], 'query-string'); - - function isEmpty(obj) { - if (!obj) return true; - - for (var key in obj) { - return false; - } - - return true; - } - - var getParamsFromPath = function getParamsFromPath(inputParams, pathMatch, pathMatchKeys) { - var params = pathMatch.slice(1).reduce(function (paramsOut, matchResult, i) { - var key = pathMatchKeys[i]; - - if (!key || key.asterisk) { - return paramsOut; - } - - var paramName = key.name; - var decodedMatchResult; - - try { - decodedMatchResult = decodeURIComponent(matchResult); - } catch (e) {} - - paramsOut[paramName] = decodedMatchResult || matchResult; - return paramsOut; - }, _objectSpread({}, inputParams)); - return params; - }; - - var getRestOfPath = function getRestOfPath(pathMatch, pathMatchKeys) { - var rest = pathMatch[pathMatchKeys.findIndex(function (k) { - return k.asterisk; - }) + 1]; - return rest; - }; - - var urlToPathAndParams = function urlToPathAndParams(url, uriPrefix) { - var searchMatch = url.match(/^(.*)\?(.*)$/); - var params = searchMatch ? queryString.parse(searchMatch[2]) : {}; - var urlWithoutSearch = searchMatch ? searchMatch[1] : url; - var delimiter = uriPrefix || '://'; - var path = urlWithoutSearch.split(delimiter)[1]; - - if (path === undefined) { - path = urlWithoutSearch; - } - - if (path === '/') { - path = ''; - } - - if (path[path.length - 1] === '/') { - path = path.slice(0, -1); - } - - return { - path: path, - params: params - }; - }; - - exports.urlToPathAndParams = urlToPathAndParams; - - var createPathParser = function createPathParser(childRouters, routeConfigs) { - var pathConfigs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var pathsByRouteNames = {}; - var paths = []; - Object.keys(childRouters).forEach(function (routeName) { - var pathPattern; - - if (pathConfigs[routeName] !== undefined) { - pathPattern = pathConfigs[routeName]; - } else { - pathPattern = routeConfigs[routeName].path; - } - - if (pathPattern === undefined) { - pathPattern = routeName; - } - - (0, _invariant.default)(pathPattern === null || typeof pathPattern === 'string', "Route path for " + routeName + " must be specified as a string, or null."); - var isPathMatchable = pathPattern !== null; - var exactReKeys = []; - var exactRe = isPathMatchable ? (0, _pathToRegexp.default)(pathPattern, exactReKeys) : null; - var extendedPathReKeys = []; - var isWildcard = pathPattern === '' || !isPathMatchable; - var extendedPathRe = (0, _pathToRegexp.default)(isWildcard ? '*' : pathPattern + "/*", extendedPathReKeys); - pathsByRouteNames[routeName] = { - exactRe: exactRe, - exactReKeys: exactReKeys, - extendedPathRe: extendedPathRe, - extendedPathReKeys: extendedPathReKeys, - isWildcard: isWildcard, - toPath: pathPattern === null ? function () { - return ''; - } : (0, _pathToRegexp.compile)(pathPattern) - }; - }); - paths = Object.entries(pathsByRouteNames); - - var getActionForPathAndParams = function getActionForPathAndParams() { - var pathToResolve = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; - var inputParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var matchedAction = null; - - for (var _iterator = paths, _isArray = Array.isArray(_iterator), _i2 = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref3; - - if (_isArray) { - if (_i2 >= _iterator.length) break; - _ref3 = _iterator[_i2++]; - } else { - _i2 = _iterator.next(); - if (_i2.done) break; - _ref3 = _i2.value; - } - - var _ref7 = _ref3; - - var _ref2 = _slicedToArray(_ref7, 2); - - var _routeName2 = _ref2[0]; - var _path2 = _ref2[1]; - var exactRe = _path2.exactRe, - exactReKeys = _path2.exactReKeys, - extendedPathRe = _path2.extendedPathRe, - extendedPathReKeys = _path2.extendedPathReKeys; - var childRouter = childRouters[_routeName2]; - var exactMatch = exactRe && exactRe.exec(pathToResolve); - - if (exactMatch && exactMatch.length) { - var extendedMatch = extendedPathRe && extendedPathRe.exec(pathToResolve); - var childAction = null; - - if (extendedMatch && childRouter) { - var restOfPath = getRestOfPath(extendedMatch, extendedPathReKeys); - childAction = childRouter.getActionForPathAndParams(restOfPath, inputParams); - } - - return _NavigationActions.default.navigate({ - routeName: _routeName2, - params: getParamsFromPath(inputParams, exactMatch, exactReKeys), - action: childAction - }); - } - } - - for (var _iterator2 = paths, _isArray2 = Array.isArray(_iterator2), _i3 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref6; - - if (_isArray2) { - if (_i3 >= _iterator2.length) break; - _ref6 = _iterator2[_i3++]; - } else { - _i3 = _iterator2.next(); - if (_i3.done) break; - _ref6 = _i3.value; - } - - var _ref8 = _ref6; - - var _ref5 = _slicedToArray(_ref8, 2); - - var _routeName3 = _ref5[0]; - var _path3 = _ref5[1]; - var _extendedPathRe = _path3.extendedPathRe, - _extendedPathReKeys = _path3.extendedPathReKeys; - var _childRouter = childRouters[_routeName3]; - - var _extendedMatch = _extendedPathRe && _extendedPathRe.exec(pathToResolve); - - if (_extendedMatch && _extendedMatch.length) { - var _restOfPath = getRestOfPath(_extendedMatch, _extendedPathReKeys); - - var _childAction = null; - - if (_childRouter) { - _childAction = _childRouter.getActionForPathAndParams(_restOfPath, inputParams); - } - - if (!_childAction) { - continue; - } - - return _NavigationActions.default.navigate({ - routeName: _routeName3, - params: getParamsFromPath(inputParams, _extendedMatch, _extendedPathReKeys), - action: _childAction - }); - } - } - - return null; - }; - - var getPathAndParamsForRoute = function getPathAndParamsForRoute(route) { - var routeName = route.routeName, - params = route.params; - var childRouter = childRouters[routeName]; - var _pathsByRouteNames$ro = pathsByRouteNames[routeName], - toPath = _pathsByRouteNames$ro.toPath, - exactReKeys = _pathsByRouteNames$ro.exactReKeys; - var subPath = toPath(params); - var nonPathParams = {}; - - if (params) { - Object.keys(params).filter(function (paramName) { - return !exactReKeys.find(function (k) { - return k.name === paramName; - }); - }).forEach(function (paramName) { - nonPathParams[paramName] = params[paramName]; - }); - } - - if (childRouter) { - var child = childRouter.getPathAndParamsForState(route); - return { - path: subPath ? subPath + "/" + child.path : child.path, - params: child.params ? _objectSpread({}, nonPathParams, child.params) : nonPathParams - }; - } - - return { - path: subPath, - params: nonPathParams - }; - }; - - return { - getActionForPathAndParams: getActionForPathAndParams, - getPathAndParamsForRoute: getPathAndParamsForRoute - }; - }; - - exports.createPathParser = createPathParser; - var _default = { - getParamsFromPath: getParamsFromPath, - createPathParser: createPathParser - }; - exports.default = _default; -},535,[551,527,545,552],"node_modules/react-navigation/src/routers/pathUtils.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var isarray = _$$_REQUIRE(_dependencyMap[0], 'isarray'); - - module.exports = pathToRegexp; - module.exports.parse = parse; - module.exports.compile = compile; - module.exports.tokensToFunction = tokensToFunction; - module.exports.tokensToRegExp = tokensToRegExp; - var PATH_REGEXP = new RegExp(['(\\\\.)', '([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'].join('|'), 'g'); - - function parse(str, options) { - var tokens = []; - var key = 0; - var index = 0; - var path = ''; - var defaultDelimiter = options && options.delimiter || '/'; - var res; - - while ((res = PATH_REGEXP.exec(str)) != null) { - var m = res[0]; - var escaped = res[1]; - var offset = res.index; - path += str.slice(index, offset); - index = offset + m.length; - - if (escaped) { - path += escaped[1]; - continue; - } - - var next = str[index]; - var prefix = res[2]; - var name = res[3]; - var capture = res[4]; - var group = res[5]; - var modifier = res[6]; - var asterisk = res[7]; - - if (path) { - tokens.push(path); - path = ''; - } - - var partial = prefix != null && next != null && next !== prefix; - var repeat = modifier === '+' || modifier === '*'; - var optional = modifier === '?' || modifier === '*'; - var delimiter = res[2] || defaultDelimiter; - var pattern = capture || group; - tokens.push({ - name: name || key++, - prefix: prefix || '', - delimiter: delimiter, - optional: optional, - repeat: repeat, - partial: partial, - asterisk: !!asterisk, - pattern: pattern ? escapeGroup(pattern) : asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?' - }); - } - - if (index < str.length) { - path += str.substr(index); - } - - if (path) { - tokens.push(path); - } - - return tokens; - } - - function compile(str, options) { - return tokensToFunction(parse(str, options)); - } - - function encodeURIComponentPretty(str) { - return encodeURI(str).replace(/[\/?#]/g, function (c) { - return '%' + c.charCodeAt(0).toString(16).toUpperCase(); - }); - } - - function encodeAsterisk(str) { - return encodeURI(str).replace(/[?#]/g, function (c) { - return '%' + c.charCodeAt(0).toString(16).toUpperCase(); - }); - } - - function tokensToFunction(tokens) { - var matches = new Array(tokens.length); - - for (var i = 0; i < tokens.length; i++) { - if (typeof tokens[i] === 'object') { - matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$'); - } - } - - return function (obj, opts) { - var path = ''; - var data = obj || {}; - var options = opts || {}; - var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent; - - for (var i = 0; i < tokens.length; i++) { - var token = tokens[i]; - - if (typeof token === 'string') { - path += token; - continue; - } - - var value = data[token.name]; - var segment; - - if (value == null) { - if (token.optional) { - if (token.partial) { - path += token.prefix; - } - - continue; - } else { - throw new TypeError('Expected "' + token.name + '" to be defined'); - } - } - - if (isarray(value)) { - if (!token.repeat) { - throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`'); - } - - if (value.length === 0) { - if (token.optional) { - continue; - } else { - throw new TypeError('Expected "' + token.name + '" to not be empty'); - } - } - - for (var j = 0; j < value.length; j++) { - segment = encode(value[j]); - - if (!matches[i].test(segment)) { - throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`'); - } - - path += (j === 0 ? token.prefix : token.delimiter) + segment; - } - - continue; - } - - segment = token.asterisk ? encodeAsterisk(value) : encode(value); - - if (!matches[i].test(segment)) { - throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"'); - } - - path += token.prefix + segment; - } - - return path; - }; - } - - function escapeString(str) { - return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1'); - } - - function escapeGroup(group) { - return group.replace(/([=!:$\/()])/g, '\\$1'); - } - - function attachKeys(re, keys) { - re.keys = keys; - return re; - } - - function flags(options) { - return options.sensitive ? '' : 'i'; - } - - function regexpToRegexp(path, keys) { - var groups = path.source.match(/\((?!\?)/g); - - if (groups) { - for (var i = 0; i < groups.length; i++) { - keys.push({ - name: i, - prefix: null, - delimiter: null, - optional: false, - repeat: false, - partial: false, - asterisk: false, - pattern: null - }); - } - } - - return attachKeys(path, keys); - } - - function arrayToRegexp(path, keys, options) { - var parts = []; - - for (var i = 0; i < path.length; i++) { - parts.push(pathToRegexp(path[i], keys, options).source); - } - - var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options)); - return attachKeys(regexp, keys); - } - - function stringToRegexp(path, keys, options) { - return tokensToRegExp(parse(path, options), keys, options); - } - - function tokensToRegExp(tokens, keys, options) { - if (!isarray(keys)) { - options = keys || options; - keys = []; - } - - options = options || {}; - var strict = options.strict; - var end = options.end !== false; - var route = ''; - - for (var i = 0; i < tokens.length; i++) { - var token = tokens[i]; - - if (typeof token === 'string') { - route += escapeString(token); - } else { - var prefix = escapeString(token.prefix); - var capture = '(?:' + token.pattern + ')'; - keys.push(token); - - if (token.repeat) { - capture += '(?:' + prefix + capture + ')*'; - } - - if (token.optional) { - if (!token.partial) { - capture = '(?:' + prefix + '(' + capture + '))?'; - } else { - capture = prefix + '(' + capture + ')?'; - } - } else { - capture = prefix + '(' + capture + ')'; - } - - route += capture; - } - } - - var delimiter = escapeString(options.delimiter || '/'); - var endsWithDelimiter = route.slice(-delimiter.length) === delimiter; - - if (!strict) { - route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?'; - } - - if (end) { - route += '$'; - } else { - route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)'; - } - - return attachKeys(new RegExp('^' + route, flags(options)), keys); - } - - function pathToRegexp(path, keys, options) { - if (!isarray(keys)) { - options = keys || options; - keys = []; - } - - options = options || {}; - - if (path instanceof RegExp) { - return regexpToRegexp(path, keys); - } - - if (isarray(path)) { - return arrayToRegexp(path, keys, options); - } - - return stringToRegexp(path, keys, options); - } -},551,[553],"node_modules/path-to-regexp/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = Array.isArray || function (arr) { - return Object.prototype.toString.call(arr) == '[object Array]'; - }; -},553,[],"node_modules/path-to-regexp/node_modules/isarray/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } - - function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } - - function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - - function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - var strictUriEncode = _$$_REQUIRE(_dependencyMap[0], 'strict-uri-encode'); - - var decodeComponent = _$$_REQUIRE(_dependencyMap[1], 'decode-uri-component'); - - function encoderForArrayFormat(options) { - switch (options.arrayFormat) { - case 'index': - return function (key, value, index) { - return value === null ? [encode(key, options), '[', index, ']'].join('') : [encode(key, options), '[', encode(index, options), ']=', encode(value, options)].join(''); - }; - - case 'bracket': - return function (key, value) { - return value === null ? [encode(key, options), '[]'].join('') : [encode(key, options), '[]=', encode(value, options)].join(''); - }; - - default: - return function (key, value) { - return value === null ? encode(key, options) : [encode(key, options), '=', encode(value, options)].join(''); - }; - } - } - - function parserForArrayFormat(options) { - var result; - - switch (options.arrayFormat) { - case 'index': - return function (key, value, accumulator) { - result = /\[(\d*)\]$/.exec(key); - key = key.replace(/\[\d*\]$/, ''); - - if (!result) { - accumulator[key] = value; - return; - } - - if (accumulator[key] === undefined) { - accumulator[key] = {}; - } - - accumulator[key][result[1]] = value; - }; - - case 'bracket': - return function (key, value, accumulator) { - result = /(\[\])$/.exec(key); - key = key.replace(/\[\]$/, ''); - - if (!result) { - accumulator[key] = value; - return; - } - - if (accumulator[key] === undefined) { - accumulator[key] = [value]; - return; - } - - accumulator[key] = [].concat(accumulator[key], value); - }; - - default: - return function (key, value, accumulator) { - if (accumulator[key] === undefined) { - accumulator[key] = value; - return; - } - - accumulator[key] = [].concat(accumulator[key], value); - }; - } - } - - function encode(value, options) { - if (options.encode) { - return options.strict ? strictUriEncode(value) : encodeURIComponent(value); - } - - return value; - } - - function decode(value, options) { - if (options.decode) { - return decodeComponent(value); - } - - return value; - } - - function keysSorter(input) { - if (Array.isArray(input)) { - return input.sort(); - } - - if (typeof input === 'object') { - return keysSorter(Object.keys(input)).sort(function (a, b) { - return Number(a) - Number(b); - }).map(function (key) { - return input[key]; - }); - } - - return input; - } - - function extract(input) { - var queryStart = input.indexOf('?'); - - if (queryStart === -1) { - return ''; - } - - return input.slice(queryStart + 1); - } - - function parse(input, options) { - options = _extends({ - decode: true, - arrayFormat: 'none' - }, options); - var formatter = parserForArrayFormat(options); - var ret = Object.create(null); - - if (typeof input !== 'string') { - return ret; - } - - input = input.trim().replace(/^[?#&]/, ''); - - if (!input) { - return ret; - } - - for (var _iterator = input.split('&'), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var _param = _ref; - - var _param$replace$split = _param.replace(/\+/g, ' ').split('='), - _param$replace$split2 = _slicedToArray(_param$replace$split, 2), - key = _param$replace$split2[0], - value = _param$replace$split2[1]; - - value = value === undefined ? null : decode(value, options); - formatter(decode(key, options), value, ret); - } - - return Object.keys(ret).sort().reduce(function (result, key) { - var value = ret[key]; - - if (Boolean(value) && typeof value === 'object' && !Array.isArray(value)) { - result[key] = keysSorter(value); - } else { - result[key] = value; - } - - return result; - }, Object.create(null)); - } - - exports.extract = extract; - exports.parse = parse; - - exports.stringify = function (obj, options) { - var defaults = { - encode: true, - strict: true, - arrayFormat: 'none' - }; - options = _extends(defaults, options); - - if (options.sort === false) { - options.sort = function () {}; - } - - var formatter = encoderForArrayFormat(options); - return obj ? Object.keys(obj).sort(options.sort).map(function (key) { - var value = obj[key]; - - if (value === undefined) { - return ''; - } - - if (value === null) { - return encode(key, options); - } - - if (Array.isArray(value)) { - var result = []; - - for (var _iterator2 = value.slice(), _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref2; - - if (_isArray2) { - if (_i2 >= _iterator2.length) break; - _ref2 = _iterator2[_i2++]; - } else { - _i2 = _iterator2.next(); - if (_i2.done) break; - _ref2 = _i2.value; - } - - var _value = _ref2; - - if (_value === undefined) { - continue; - } - - result.push(formatter(key, _value, result.length)); - } - - return result.join('&'); - } - - return encode(key, options) + '=' + encode(value, options); - }).filter(function (x) { - return x.length > 0; - }).join('&') : ''; - }; - - exports.parseUrl = function (input, options) { - return { - url: input.split('?')[0] || '', - query: parse(extract(input), options) - }; - }; -},552,[554,555],"node_modules/query-string/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - module.exports = function (str) { - return encodeURIComponent(str).replace(/[!'()*]/g, function (x) { - return "%" + x.charCodeAt(0).toString(16).toUpperCase(); - }); - }; -},554,[],"node_modules/strict-uri-encode/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var token = '%[a-f0-9]{2}'; - var singleMatcher = new RegExp(token, 'gi'); - var multiMatcher = new RegExp('(' + token + ')+', 'gi'); - - function decodeComponents(components, split) { - try { - return decodeURIComponent(components.join('')); - } catch (err) {} - - if (components.length === 1) { - return components; - } - - split = split || 1; - var left = components.slice(0, split); - var right = components.slice(split); - return Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right)); - } - - function decode(input) { - try { - return decodeURIComponent(input); - } catch (err) { - var tokens = input.match(singleMatcher); - - for (var i = 1; i < tokens.length; i++) { - input = decodeComponents(tokens, i).join(''); - tokens = input.match(singleMatcher); - } - - return input; - } - } - - function customDecodeURIComponent(input) { - var replaceMap = { - '%FE%FF': "\uFFFD\uFFFD", - '%FF%FE': "\uFFFD\uFFFD" - }; - var match = multiMatcher.exec(input); - - while (match) { - try { - replaceMap[match[0]] = decodeURIComponent(match[0]); - } catch (err) { - var result = decode(match[0]); - - if (result !== match[0]) { - replaceMap[match[0]] = result; - } - } - - match = multiMatcher.exec(input); - } - - replaceMap['%C2'] = "\uFFFD"; - var entries = Object.keys(replaceMap); - - for (var i = 0; i < entries.length; i++) { - var key = entries[i]; - input = input.replace(new RegExp(key, 'g'), replaceMap[key]); - } - - return input; - } - - module.exports = function (encodedURI) { - if (typeof encodedURI !== 'string') { - throw new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof encodedURI + '`'); - } - - try { - encodedURI = encodedURI.replace(/\+/g, ' '); - return decodeURIComponent(encodedURI); - } catch (err) { - return customDecodeURIComponent(encodedURI); - } - }; -},555,[],"node_modules/decode-uri-component/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _invariant = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./utils/invariant")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var StateUtils = { - get: function get(state, key) { - return state.routes.find(function (route) { - return route.key === key; - }) || null; - }, - indexOf: function indexOf(state, key) { - return state.routes.findIndex(function (route) { - return route.key === key; - }); - }, - has: function has(state, key) { - return !!state.routes.some(function (route) { - return route.key === key; - }); - }, - push: function push(state, route) { - (0, _invariant.default)(StateUtils.indexOf(state, route.key) === -1, 'should not push route with duplicated key %s', route.key); - var routes = state.routes.slice(); - routes.push(route); - return _objectSpread({}, state, { - index: routes.length - 1, - routes: routes - }); - }, - pop: function pop(state) { - if (state.index <= 0) { - return state; - } - - var routes = state.routes.slice(0, -1); - return _objectSpread({}, state, { - index: routes.length - 1, - routes: routes - }); - }, - jumpToIndex: function jumpToIndex(state, index) { - if (index === state.index) { - return state; - } - - (0, _invariant.default)(!!state.routes[index], 'invalid index %s to jump to', index); - return _objectSpread({}, state, { - index: index - }); - }, - jumpTo: function jumpTo(state, key) { - var index = StateUtils.indexOf(state, key); - return StateUtils.jumpToIndex(state, index); - }, - back: function back(state) { - var index = state.index - 1; - var route = state.routes[index]; - return route ? StateUtils.jumpToIndex(state, index) : state; - }, - forward: function forward(state) { - var index = state.index + 1; - var route = state.routes[index]; - return route ? StateUtils.jumpToIndex(state, index) : state; - }, - replaceAndPrune: function replaceAndPrune(state, key, route) { - var index = StateUtils.indexOf(state, key); - var replaced = StateUtils.replaceAtIndex(state, index, route); - return _objectSpread({}, replaced, { - routes: replaced.routes.slice(0, index + 1) - }); - }, - replaceAt: function replaceAt(state, key, route) { - var preserveIndex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; - var index = StateUtils.indexOf(state, key); - var nextIndex = preserveIndex ? state.index : index; - var nextState = StateUtils.replaceAtIndex(state, index, route); - nextState.index = nextIndex; - return nextState; - }, - replaceAtIndex: function replaceAtIndex(state, index, route) { - (0, _invariant.default)(!!state.routes[index], 'invalid index %s for replacing route %s', index, route.key); - - if (state.routes[index] === route && index === state.index) { - return state; - } - - var routes = state.routes.slice(); - routes[index] = route; - return _objectSpread({}, state, { - index: index, - routes: routes - }); - }, - reset: function reset(state, routes, index) { - (0, _invariant.default)(routes.length && Array.isArray(routes), 'invalid routes to replace'); - var nextIndex = index === undefined ? routes.length - 1 : index; - - if (state.routes.length === routes.length && state.index === nextIndex) { - var compare = function compare(route, ii) { - return routes[ii] === route; - }; - - if (state.routes.every(compare)) { - return state; - } - } - - (0, _invariant.default)(!!routes[nextIndex], 'invalid index %s to reset', nextIndex); - return _objectSpread({}, state, { - index: nextIndex, - routes: routes - }); - } - }; - var _default = StateUtils; - exports.default = _default; -},517,[545],"node_modules/react-navigation/src/StateUtils.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactLifecyclesCompat = _$$_REQUIRE(_dependencyMap[2], "react-lifecycles-compat"); - - var _getChildEventSubscriber = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../getChildEventSubscriber")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/navigators/createNavigator.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Navigator: { - displayName: "Navigator", - isInFunction: true - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/navigators/createNavigator.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function createNavigator(NavigatorView, router, navigationConfig) { - var Navigator = function (_React$Component) { - function Navigator() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, Navigator); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Navigator)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { - descriptors: {}, - screenProps: _this.props.screenProps - }, _temp)); - } - - _createClass(Navigator, [{ - key: "render", - value: function render() { - return _react.default.createElement(NavigatorView, _extends({}, this.props, { - screenProps: this.state.screenProps, - navigation: this.props.navigation, - navigationConfig: navigationConfig, - descriptors: this.state.descriptors, - __source: { - fileName: _jsxFileName, - lineNumber: 59 - } - })); - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(nextProps, prevState) { - var prevDescriptors = prevState.descriptors; - var navigation = nextProps.navigation, - screenProps = nextProps.screenProps; - var dispatch = navigation.dispatch, - state = navigation.state, - addListener = navigation.addListener; - var routes = state.routes; - - if (typeof routes === 'undefined') { - throw new TypeError('No "routes" found in navigation state. Did you try to pass the navigation prop of a React component to a Navigator child? See https://reactnavigation.org/docs/en/custom-navigators.html#navigator-navigation-prop'); - } - - var descriptors = {}; - routes.forEach(function (route) { - if (prevDescriptors && prevDescriptors[route.key] && route === prevDescriptors[route.key].state && screenProps === prevState.screenProps) { - descriptors[route.key] = prevDescriptors[route.key]; - return; - } - - var getComponent = router.getComponentForRouteName.bind(null, route.routeName); - var childNavigation = navigation.getChildNavigation(route.key); - var options = router.getScreenOptions(childNavigation, screenProps); - descriptors[route.key] = { - key: route.key, - getComponent: getComponent, - options: options, - state: route, - navigation: childNavigation - }; - }); - return { - descriptors: descriptors, - screenProps: screenProps - }; - } - }]); - - _inherits(Navigator, _React$Component); - - return Navigator; - }(_react.default.Component); - - Navigator.router = router; - Navigator.navigationOptions = null; - Navigator = _wrapComponent("Navigator")(Navigator); - return (0, _reactLifecyclesCompat.polyfill)(Navigator); - } - - var _default2 = createNavigator; - exports.default = _default2; -},519,[122,161,544,549],"node_modules/react-navigation/src/navigators/createNavigator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/navigators/createKeyboardAwareNavigator.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - KeyboardAwareNavigator: { - displayName: "KeyboardAwareNavigator", - isInFunction: true - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/navigators/createKeyboardAwareNavigator.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var _default2 = function _default2(Navigator, navigatorConfig) { - var _class, _temp2; - - return _wrapComponent("KeyboardAwareNavigator")((_temp2 = _class = function (_React$Component) { - function KeyboardAwareNavigator() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, KeyboardAwareNavigator); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(KeyboardAwareNavigator)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._previouslyFocusedTextInput = null, _this._handleGestureBegin = function () { - _this._previouslyFocusedTextInput = _reactNative.TextInput.State.currentlyFocusedField(); - - if (_this._previouslyFocusedTextInput) { - _reactNative.TextInput.State.blurTextInput(_this._previouslyFocusedTextInput); - } - - _this.props.onGestureBegin && _this.props.onGestureBegin(); - }, _this._handleGestureCanceled = function () { - if (_this._previouslyFocusedTextInput) { - _reactNative.TextInput.State.focusTextInput(_this._previouslyFocusedTextInput); - } - - _this.props.onGestureCanceled && _this.props.onGestureCanceled(); - }, _this._handleGestureFinish = function () { - _this._previouslyFocusedTextInput = null; - _this.props.onGestureFinish && _this.props.onGestureFinish(); - }, _this._handleTransitionStart = function (transitionProps, prevTransitionProps) { - if (transitionProps.index !== prevTransitionProps.index) { - var currentField = _reactNative.TextInput.State.currentlyFocusedField(); - - if (currentField) { - _reactNative.TextInput.State.blurTextInput(currentField); - } - } - - var onTransitionStart = _this.props.onTransitionStart || navigatorConfig.onTransitionStart; - onTransitionStart && onTransitionStart(transitionProps, prevTransitionProps); - }, _temp)); - } - - _createClass(KeyboardAwareNavigator, [{ - key: "render", - value: function render() { - return _react.default.createElement(Navigator, _extends({}, this.props, { - onGestureBegin: this._handleGestureBegin, - onGestureCanceled: this._handleGestureCanceled, - onGestureFinish: this._handleGestureFinish, - onTransitionStart: this._handleTransitionStart, - __source: { - fileName: _jsxFileName, - lineNumber: 11 - } - })); - } - }]); - - _inherits(KeyboardAwareNavigator, _React$Component); - - return KeyboardAwareNavigator; - }(_react.default.Component), _class.router = Navigator.router, _temp2)); - }; - - exports.default = _default2; -},520,[122,161,1],"node_modules/react-navigation/src/navigators/createKeyboardAwareNavigator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.NavigationConsumer = exports.NavigationProvider = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _createReactContext = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "create-react-context")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var NavigationContext = (0, _createReactContext.default)(); - var NavigationProvider = NavigationContext.Provider; - exports.NavigationProvider = NavigationProvider; - var NavigationConsumer = NavigationContext.Consumer; - exports.NavigationConsumer = NavigationConsumer; - var _default = { - NavigationProvider: NavigationProvider, - NavigationConsumer: NavigationConsumer - }; - exports.default = _default; -},521,[122,556],"node_modules/react-navigation/src/views/NavigationContext.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - exports.__esModule = true; - - var _react = _$$_REQUIRE(_dependencyMap[0], 'react'); - - var _react2 = _interopRequireDefault(_react); - - var _implementation = _$$_REQUIRE(_dependencyMap[1], './implementation'); - - var _implementation2 = _interopRequireDefault(_implementation); - - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; - } - - exports.default = _react2.default.createContext || _implementation2.default; - module.exports = exports['default']; -},556,[122,557],"node_modules/create-react-context/lib/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - exports.__esModule = true; - - var _react = _$$_REQUIRE(_dependencyMap[0], 'react'); - - var _react2 = _interopRequireDefault(_react); - - var _propTypes = _$$_REQUIRE(_dependencyMap[1], 'prop-types'); - - var _propTypes2 = _interopRequireDefault(_propTypes); - - var _gud = _$$_REQUIRE(_dependencyMap[2], 'gud'); - - var _gud2 = _interopRequireDefault(_gud); - - var _warning = _$$_REQUIRE(_dependencyMap[3], 'fbjs/lib/warning'); - - var _warning2 = _interopRequireDefault(_warning); - - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; - } - - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - } - - function _possibleConstructorReturn(self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return call && (typeof call === "object" || typeof call === "function") ? call : self; - } - - function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } - - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; - } - - var MAX_SIGNED_31_BIT_INT = 1073741823; - - function objectIs(x, y) { - if (x === y) { - return x !== 0 || 1 / x === 1 / y; - } else { - return x !== x && y !== y; - } - } - - function createEventEmitter(value) { - var handlers = []; - return { - on: function on(handler) { - handlers.push(handler); - }, - off: function off(handler) { - handlers = handlers.filter(function (h) { - return h !== handler; - }); - }, - get: function get() { - return value; - }, - set: function set(newValue, changedBits) { - value = newValue; - handlers.forEach(function (handler) { - return handler(value, changedBits); - }); - } - }; - } - - function onlyChild(children) { - return Array.isArray(children) ? children[0] : children; - } - - function createReactContext(defaultValue, calculateChangedBits) { - var _Provider$childContex, _Consumer$contextType; - - var contextProp = '__create-react-context-' + (0, _gud2.default)() + '__'; - - var Provider = function (_Component) { - _inherits(Provider, _Component); - - function Provider() { - var _temp, _this, _ret; - - _classCallCheck(this, Provider); - - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.emitter = createEventEmitter(_this.props.value), _temp), _possibleConstructorReturn(_this, _ret); - } - - Provider.prototype.getChildContext = function getChildContext() { - var _ref; - - return _ref = {}, _ref[contextProp] = this.emitter, _ref; - }; - - Provider.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (this.props.value !== nextProps.value) { - var oldValue = this.props.value; - var newValue = nextProps.value; - var changedBits = void 0; - - if (objectIs(oldValue, newValue)) { - changedBits = 0; - } else { - changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT; - - if (process.env.NODE_ENV !== 'production') { - (0, _warning2.default)((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits); - } - - changedBits |= 0; - - if (changedBits !== 0) { - this.emitter.set(nextProps.value, changedBits); - } - } - } - }; - - Provider.prototype.render = function render() { - return this.props.children; - }; - - return Provider; - }(_react.Component); - - Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = _propTypes2.default.object.isRequired, _Provider$childContex); - - var Consumer = function (_Component2) { - _inherits(Consumer, _Component2); - - function Consumer() { - var _temp2, _this2, _ret2; - - _classCallCheck(this, Consumer); - - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, _Component2.call.apply(_Component2, [this].concat(args))), _this2), _this2.state = { - value: _this2.getValue() - }, _this2.onUpdate = function (newValue, changedBits) { - var observedBits = _this2.observedBits | 0; - - if ((observedBits & changedBits) !== 0) { - _this2.setState({ - value: _this2.getValue() - }); - } - }, _temp2), _possibleConstructorReturn(_this2, _ret2); - } - - Consumer.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - var observedBits = nextProps.observedBits; - this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits; - }; - - Consumer.prototype.componentDidMount = function componentDidMount() { - if (this.context[contextProp]) { - this.context[contextProp].on(this.onUpdate); - } - - var observedBits = this.props.observedBits; - this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits; - }; - - Consumer.prototype.componentWillUnmount = function componentWillUnmount() { - if (this.context[contextProp]) { - this.context[contextProp].off(this.onUpdate); - } - }; - - Consumer.prototype.getValue = function getValue() { - if (this.context[contextProp]) { - return this.context[contextProp].get(); - } else { - return defaultValue; - } - }; - - Consumer.prototype.render = function render() { - return onlyChild(this.props.children)(this.state.value); - }; - - return Consumer; - }(_react.Component); - - Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = _propTypes2.default.object, _Consumer$contextType); - return { - Provider: Provider, - Consumer: Consumer - }; - } - - exports.default = createReactContext; - module.exports = exports['default']; -},557,[122,143,558,129],"node_modules/create-react-context/lib/implementation.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var key = '__global_unique_id__'; - - module.exports = function () { - return global[key] = (global[key] || 0) + 1; - }; -},558,[],"node_modules/gud/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = { - get createStackNavigator() { - return _$$_REQUIRE(_dependencyMap[0], './navigators/createContainedStackNavigator').default; - }, - - get createUncontainedStackNavigator() { - return _$$_REQUIRE(_dependencyMap[1], './navigators/createStackNavigator').default; - }, - - get Header() { - return _$$_REQUIRE(_dependencyMap[2], './views/Header/Header').default; - }, - - get HeaderBackButton() { - return _$$_REQUIRE(_dependencyMap[3], './views/Header/HeaderBackButton').default; - }, - - get HeaderTitle() { - return _$$_REQUIRE(_dependencyMap[4], './views/Header/HeaderTitle').default; - }, - - get HeaderStyleInterpolator() { - return _$$_REQUIRE(_dependencyMap[5], './views/Header/HeaderStyleInterpolator').default; - }, - - get StackView() { - return _$$_REQUIRE(_dependencyMap[6], './views/StackView/StackView').default; - }, - - get StackViewCard() { - return _$$_REQUIRE(_dependencyMap[7], './views/StackView/StackViewCard').default; - }, - - get StackViewLayout() { - return _$$_REQUIRE(_dependencyMap[8], './views/StackView/StackViewLayout').default; - }, - - get StackViewStyleInterpolator() { - return _$$_REQUIRE(_dependencyMap[9], './views/StackView/StackViewStyleInterpolator').default; - }, - - get StackViewTransitionConfigs() { - return _$$_REQUIRE(_dependencyMap[10], './views/StackView/StackViewTransitionConfigs').default; - }, - - get createPointerEventsContainer() { - return _$$_REQUIRE(_dependencyMap[11], './views/StackView/createPointerEventsContainer').default; - }, - - get Transitioner() { - return _$$_REQUIRE(_dependencyMap[12], './views/Transitioner').default; - }, - - get ScenesReducer() { - return _$$_REQUIRE(_dependencyMap[13], './views/ScenesReducer').default; - } - - }; -},522,[559,560,561,562,563,564,565,566,567,568,569,570,571,572],"node_modules/react-navigation-stack/dist/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _reactNavigation = _$$_REQUIRE(_dependencyMap[0], "react-navigation"); - - var _createStackNavigator = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./createStackNavigator")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var createContainedStackNavigator = function createContainedStackNavigator(routeConfigs) { - var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var navigator = (0, _createStackNavigator.default)(routeConfigs, config); - return (0, _reactNavigation.createNavigationContainer)(navigator); - }; - - var _default = createContainedStackNavigator; - exports.default = _default; -},559,[509,560],"node_modules/react-navigation-stack/dist/navigators/createContainedStackNavigator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _reactNavigation = _$$_REQUIRE(_dependencyMap[0], "react-navigation"); - - var _StackView = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "../views/StackView/StackView")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function createStackNavigator(routeConfigMap) { - var stackConfig = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var initialRouteKey = stackConfig.initialRouteKey, - initialRouteName = stackConfig.initialRouteName, - initialRouteParams = stackConfig.initialRouteParams, - paths = stackConfig.paths, - navigationOptions = stackConfig.navigationOptions, - disableKeyboardHandling = stackConfig.disableKeyboardHandling, - getCustomActionCreators = stackConfig.getCustomActionCreators; - var stackRouterConfig = { - initialRouteKey: initialRouteKey, - initialRouteName: initialRouteName, - initialRouteParams: initialRouteParams, - paths: paths, - navigationOptions: navigationOptions, - getCustomActionCreators: getCustomActionCreators - }; - var router = (0, _reactNavigation.StackRouter)(routeConfigMap, stackRouterConfig); - var Navigator = (0, _reactNavigation.createNavigator)(_StackView.default, router, stackConfig); - - if (!disableKeyboardHandling) { - Navigator = (0, _reactNavigation.createKeyboardAwareNavigator)(Navigator, stackConfig); - } - - return Navigator; - } - - var _default = createStackNavigator; - exports.default = _default; -},560,[509,565],"node_modules/react-navigation-stack/dist/navigators/createStackNavigator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _reactNavigation = _$$_REQUIRE(_dependencyMap[3], "react-navigation"); - - var _StackViewLayout = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./StackViewLayout")); - - var _Transitioner = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "../Transitioner")); - - var _StackViewTransitionConfigs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "./StackViewTransitionConfigs")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/StackView/StackView.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - StackView: { - displayName: "StackView" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/StackView/StackView.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var NativeAnimatedModule = _reactNative.NativeModules && _reactNative.NativeModules.NativeAnimatedModule; - - var StackView = function (_React$Component) { - function StackView() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, StackView); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(StackView)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._configureTransition = function (transitionProps, prevTransitionProps) { - return _objectSpread({}, _StackViewTransitionConfigs.default.getTransitionConfig(_this.props.navigationConfig.transitionConfig, transitionProps, prevTransitionProps, _this.props.navigationConfig.mode === 'modal').transitionSpec, { - useNativeDriver: !!NativeAnimatedModule - }); - }, _this._render = function (transitionProps, lastTransitionProps) { - var _this$props = _this.props, - screenProps = _this$props.screenProps, - navigationConfig = _this$props.navigationConfig; - return _react.default.createElement(_StackViewLayout.default, _extends({}, navigationConfig, { - onGestureBegin: _this.props.onGestureBegin, - onGestureCanceled: _this.props.onGestureCanceled, - onGestureEnd: _this.props.onGestureEnd, - screenProps: screenProps, - descriptors: _this.props.descriptors, - transitionProps: transitionProps, - lastTransitionProps: lastTransitionProps, - __source: { - fileName: _jsxFileName, - lineNumber: 40 - } - })); - }, _temp)); - } - - _createClass(StackView, [{ - key: "render", - value: function render() { - var _this2 = this; - - return _react.default.createElement(_Transitioner.default, { - render: this._render, - configureTransition: this._configureTransition, - screenProps: this.props.screenProps, - navigation: this.props.navigation, - descriptors: this.props.descriptors, - onTransitionStart: this.props.onTransitionStart || this.props.navigationConfig.onTransitionStart, - onTransitionEnd: function onTransitionEnd(transition, lastTransition) { - var _this2$props = _this2.props, - navigationConfig = _this2$props.navigationConfig, - navigation = _this2$props.navigation; - var onTransitionEnd = _this2.props.onTransitionEnd || navigationConfig.onTransitionEnd; - - if (transition.navigation.state.isTransitioning) { - navigation.dispatch(_reactNavigation.StackActions.completeTransition({ - key: navigation.state.key - })); - } - - onTransitionEnd && onTransitionEnd(transition, lastTransition); - }, - __source: { - fileName: _jsxFileName, - lineNumber: 19 - } - }); - } - }]); - - _inherits(StackView, _React$Component); - - return StackView; - }(_react.default.Component); - - StackView.defaultProps = { - navigationConfig: { - mode: 'card' - } - }; - StackView = _wrapComponent("StackView")(StackView); - var _default2 = StackView; - exports.default = _default2; -},565,[122,161,1,509,567,571,569],"node_modules/react-navigation-stack/dist/views/StackView/StackView.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")); - - var _clamp = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "clamp")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _reactNavigation = _$$_REQUIRE(_dependencyMap[4], "react-navigation"); - - var _StackViewCard = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./StackViewCard")); - - var _Header = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "../Header/Header")); - - var _screens = _$$_REQUIRE(_dependencyMap[7], "./screens"); - - var _StackViewTransitionConfigs = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[8], "./StackViewTransitionConfigs")); - - var _ReactNativeFeatures = _$$_REQUIRE(_dependencyMap[9], "../../utils/ReactNativeFeatures"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/StackView/StackViewLayout.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - StackViewLayout: { - displayName: "StackViewLayout" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/StackView/StackViewLayout.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var emptyFunction = function emptyFunction() {}; - - var _Dimensions$get = _reactNative.Dimensions.get('window'), - WINDOW_WIDTH = _Dimensions$get.width, - WINDOW_HEIGHT = _Dimensions$get.height; - - var IS_IPHONE_X = _reactNative.Platform.OS === 'ios' && !_reactNative.Platform.isPad && !_reactNative.Platform.isTVOS && (WINDOW_HEIGHT === 812 || WINDOW_WIDTH === 812); - - var EaseInOut = _reactNative.Easing.inOut(_reactNative.Easing.ease); - - var HEADER_LAYOUT_PRESET_VALUES = ['center', 'left']; - var HEADER_TRANSITION_PRESET_VALUES = ['uikit', 'fade-in-place']; - var ANIMATION_DURATION = 500; - var POSITION_THRESHOLD = 1 / 2; - var RESPOND_THRESHOLD = 20; - var GESTURE_RESPONSE_DISTANCE_HORIZONTAL = 25; - var GESTURE_RESPONSE_DISTANCE_VERTICAL = 135; - - var animatedSubscribeValue = function animatedSubscribeValue(animatedValue) { - if (!animatedValue.__isNative) { - return; - } - - if (Object.keys(animatedValue._listeners).length === 0) { - animatedValue.addListener(emptyFunction); - } - }; - - var getDefaultHeaderHeight = function getDefaultHeaderHeight(isLandscape) { - if (_reactNative.Platform.OS === 'ios') { - if (isLandscape && !_reactNative.Platform.isPad) { - return 32; - } else if (IS_IPHONE_X) { - return 88; - } else { - return 64; - } - } else { - return 56; - } - }; - - var StackViewLayout = function (_React$Component) { - function StackViewLayout(props) { - var _this; - - _classCallCheck(this, StackViewLayout); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(StackViewLayout).call(this, props)); - _this._gestureStartValue = 0; - _this._isResponding = false; - _this._immediateIndex = null; - _this._panResponder = _reactNative.PanResponder.create({ - onPanResponderTerminate: function onPanResponderTerminate() { - var navigation = _this.props.transitionProps.navigation; - var index = navigation.state.index; - _this._isResponding = false; - - _this._reset(index, 0); - - _this.props.onGestureCanceled && _this.props.onGestureCanceled(); - }, - onPanResponderGrant: function onPanResponderGrant() { - var _this$props$transitio = _this.props.transitionProps, - navigation = _this$props$transitio.navigation, - position = _this$props$transitio.position, - scene = _this$props$transitio.scene; - var index = navigation.state.index; - - if (index !== scene.index) { - return false; - } - - position.stopAnimation(function (value) { - _this._isResponding = true; - _this._gestureStartValue = value; - }); - _this.props.onGestureBegin && _this.props.onGestureBegin(); - }, - onMoveShouldSetPanResponder: function onMoveShouldSetPanResponder(event, gesture) { - var _this$props = _this.props, - _this$props$transitio2 = _this$props.transitionProps, - navigation = _this$props$transitio2.navigation, - layout = _this$props$transitio2.layout, - scene = _this$props$transitio2.scene, - mode = _this$props.mode; - var index = navigation.state.index; - var isVertical = mode === 'modal'; - var options = scene.descriptor.options; - var gestureDirection = options.gestureDirection; - var gestureDirectionInverted = typeof gestureDirection === 'string' ? gestureDirection === 'inverted' : _reactNative.I18nManager.isRTL; - - if (index !== scene.index) { - return false; - } - - var immediateIndex = _this._immediateIndex == null ? index : _this._immediateIndex; - var currentDragDistance = gesture[isVertical ? 'dy' : 'dx']; - var currentDragPosition = event.nativeEvent[isVertical ? 'pageY' : 'pageX']; - var axisLength = isVertical ? layout.height.__getValue() : layout.width.__getValue(); - var axisHasBeenMeasured = !!axisLength; - var screenEdgeDistance = gestureDirectionInverted ? axisLength - (currentDragPosition - currentDragDistance) : currentDragPosition - currentDragDistance; - var _options$gestureRespo = options.gestureResponseDistance, - userGestureResponseDistance = _options$gestureRespo === void 0 ? {} : _options$gestureRespo; - var gestureResponseDistance = isVertical ? userGestureResponseDistance.vertical || GESTURE_RESPONSE_DISTANCE_VERTICAL : userGestureResponseDistance.horizontal || GESTURE_RESPONSE_DISTANCE_HORIZONTAL; - - if (screenEdgeDistance > gestureResponseDistance) { - return false; - } - - var hasDraggedEnough = Math.abs(currentDragDistance) > RESPOND_THRESHOLD; - var isOnFirstCard = immediateIndex === 0; - var shouldSetResponder = hasDraggedEnough && axisHasBeenMeasured && !isOnFirstCard; - return shouldSetResponder; - }, - onPanResponderMove: function onPanResponderMove(event, gesture) { - var _this$props2 = _this.props, - _this$props2$transiti = _this$props2.transitionProps, - navigation = _this$props2$transiti.navigation, - position = _this$props2$transiti.position, - layout = _this$props2$transiti.layout, - scene = _this$props2$transiti.scene, - mode = _this$props2.mode; - var index = navigation.state.index; - var isVertical = mode === 'modal'; - var options = scene.descriptor.options; - var gestureDirection = options.gestureDirection; - var gestureDirectionInverted = typeof gestureDirection === 'string' ? gestureDirection === 'inverted' : _reactNative.I18nManager.isRTL; - var startValue = _this._gestureStartValue; - var axis = isVertical ? 'dy' : 'dx'; - var axisDistance = isVertical ? layout.height.__getValue() : layout.width.__getValue(); - var currentValue = axis === 'dx' && gestureDirectionInverted ? startValue + gesture[axis] / axisDistance : startValue - gesture[axis] / axisDistance; - var value = (0, _clamp.default)(index - 1, currentValue, index); - position.setValue(value); - }, - onPanResponderTerminationRequest: function onPanResponderTerminationRequest() { - return false; - }, - onPanResponderRelease: function onPanResponderRelease(event, gesture) { - var _this$props3 = _this.props, - _this$props3$transiti = _this$props3.transitionProps, - navigation = _this$props3$transiti.navigation, - position = _this$props3$transiti.position, - layout = _this$props3$transiti.layout, - scene = _this$props3$transiti.scene, - mode = _this$props3.mode; - var index = navigation.state.index; - var isVertical = mode === 'modal'; - var options = scene.descriptor.options; - var gestureDirection = options.gestureDirection; - var gestureDirectionInverted = typeof gestureDirection === 'string' ? gestureDirection === 'inverted' : _reactNative.I18nManager.isRTL; - - if (!_this._isResponding) { - return; - } - - _this._isResponding = false; - var immediateIndex = _this._immediateIndex == null ? index : _this._immediateIndex; - var axisDistance = isVertical ? layout.height.__getValue() : layout.width.__getValue(); - var movementDirection = gestureDirectionInverted ? -1 : 1; - var movedDistance = movementDirection * gesture[isVertical ? 'dy' : 'dx']; - var gestureVelocity = movementDirection * gesture[isVertical ? 'vy' : 'vx']; - var defaultVelocity = axisDistance / ANIMATION_DURATION; - var velocity = Math.max(Math.abs(gestureVelocity), defaultVelocity); - var resetDuration = gestureDirectionInverted ? (axisDistance - movedDistance) / velocity : movedDistance / velocity; - var goBackDuration = gestureDirectionInverted ? movedDistance / velocity : (axisDistance - movedDistance) / velocity; - position.stopAnimation(function (value) { - if (gestureVelocity < -0.5) { - _this.props.onGestureCanceled && _this.props.onGestureCanceled(); - - _this._reset(immediateIndex, resetDuration); - - return; - } - - if (gestureVelocity > 0.5) { - _this.props.onGestureFinish && _this.props.onGestureFinish(); - - _this._goBack(immediateIndex, goBackDuration); - - return; - } - - if (value <= index - POSITION_THRESHOLD) { - _this.props.onGestureFinish && _this.props.onGestureFinish(); - - _this._goBack(immediateIndex, goBackDuration); - } else { - _this.props.onGestureCanceled && _this.props.onGestureCanceled(); - - _this._reset(immediateIndex, resetDuration); - } - }); - } - }); - - _this._onFloatingHeaderLayout = function (e) { - _this.setState({ - floatingHeaderHeight: e.nativeEvent.layout.height - }); - }; - - _this._getTransitionConfig = function () { - var isModal = _this.props.mode === 'modal'; - return _StackViewTransitionConfigs.default.getTransitionConfig(_this.props.transitionConfig, _this.props.transitionProps, _this.props.lastTransitionProps, isModal); - }; - - _this._renderCard = function (scene) { - var _this$_getTransitionC = _this._getTransitionConfig(), - screenInterpolator = _this$_getTransitionC.screenInterpolator; - - var style = screenInterpolator && screenInterpolator(_objectSpread({}, _this.props.transitionProps, { - scene: scene - })); - var options = scene.descriptor.options; - var hasHeader = options.header !== null; - - var headerMode = _this._getHeaderMode(); - - var marginTop = 0; - - if (!hasHeader && headerMode === 'float') { - marginTop = -_this.state.floatingHeaderHeight; - } - - return _react.default.createElement(_StackViewCard.default, _extends({}, _this.props.transitionProps, { - key: "card_" + scene.key, - style: [style, { - marginTop: marginTop - }, _this.props.cardStyle], - scene: scene, - __source: { - fileName: _jsxFileName, - lineNumber: 506 - } - }), _this._renderInnerScene(scene)); - }; - - _this.state = { - floatingHeaderHeight: getDefaultHeaderHeight(props.isLandscape) - }; - return _this; - } - - _createClass(StackViewLayout, [{ - key: "_renderHeader", - value: function _renderHeader(scene, headerMode) { - var options = scene.descriptor.options; - var header = options.header; - - if (__DEV__ && typeof header === 'string') { - throw new Error("Invalid header value: \"" + header + "\". The header option must be a valid React component or null, not a string."); - } - - if (header === null && headerMode === 'screen') { - return null; - } - - if (_react.default.isValidElement(header)) { - return header; - } - - var renderHeader = header || function (props) { - return _react.default.createElement(_Header.default, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 127 - } - })); - }; - - var _this$_getTransitionC2 = this._getTransitionConfig(), - headerLeftInterpolator = _this$_getTransitionC2.headerLeftInterpolator, - headerTitleInterpolator = _this$_getTransitionC2.headerTitleInterpolator, - headerRightInterpolator = _this$_getTransitionC2.headerRightInterpolator, - headerBackgroundInterpolator = _this$_getTransitionC2.headerBackgroundInterpolator; - - var _this$props4 = this.props, - transitionProps = _this$props4.transitionProps, - passProps = _objectWithoutProperties(_this$props4, ["transitionProps"]); - - return _react.default.createElement(_reactNavigation.NavigationProvider, { - value: scene.descriptor.navigation, - __source: { - fileName: _jsxFileName, - lineNumber: 138 - } - }, renderHeader(_objectSpread({}, passProps, transitionProps, { - scene: scene, - mode: headerMode, - transitionPreset: this._getHeaderTransitionPreset(), - layoutPreset: this._getHeaderLayoutPreset(), - backTitleVisible: this._getheaderBackTitleVisible(), - leftInterpolator: headerLeftInterpolator, - titleInterpolator: headerTitleInterpolator, - rightInterpolator: headerRightInterpolator, - backgroundInterpolator: headerBackgroundInterpolator - }))); - } - }, { - key: "_animatedSubscribe", - value: function _animatedSubscribe(props) { - animatedSubscribeValue(props.transitionProps.layout.width); - animatedSubscribeValue(props.transitionProps.layout.height); - animatedSubscribeValue(props.transitionProps.position); - } - }, { - key: "_reset", - value: function _reset(resetToIndex, duration) { - if (_reactNative.Platform.OS === 'ios' && (0, _ReactNativeFeatures.supportsImprovedSpringAnimation)()) { - _reactNative.Animated.spring(this.props.transitionProps.position, { - toValue: resetToIndex, - stiffness: 5000, - damping: 600, - mass: 3, - useNativeDriver: this.props.transitionProps.position.__isNative - }).start(); - } else { - _reactNative.Animated.timing(this.props.transitionProps.position, { - toValue: resetToIndex, - duration: duration, - easing: EaseInOut, - useNativeDriver: this.props.transitionProps.position.__isNative - }).start(); - } - } - }, { - key: "_goBack", - value: function _goBack(backFromIndex, duration) { - var _this2 = this; - - var _this$props$transitio3 = this.props.transitionProps, - navigation = _this$props$transitio3.navigation, - position = _this$props$transitio3.position, - scenes = _this$props$transitio3.scenes; - var toValue = Math.max(backFromIndex - 1, 0); - this._immediateIndex = toValue; - - var onCompleteAnimation = function onCompleteAnimation() { - _this2._immediateIndex = null; - var backFromScene = scenes.find(function (s) { - return s.index === toValue + 1; - }); - - if (!_this2._isResponding && backFromScene) { - navigation.dispatch(_reactNavigation.NavigationActions.back({ - key: backFromScene.route.key, - immediate: true - })); - navigation.dispatch(_reactNavigation.StackActions.completeTransition()); - } - }; - - if (_reactNative.Platform.OS === 'ios' && (0, _ReactNativeFeatures.supportsImprovedSpringAnimation)()) { - _reactNative.Animated.spring(position, { - toValue: toValue, - stiffness: 5000, - damping: 600, - mass: 3, - useNativeDriver: position.__isNative - }).start(onCompleteAnimation); - } else { - _reactNative.Animated.timing(position, { - toValue: toValue, - duration: duration, - easing: EaseInOut, - useNativeDriver: position.__isNative - }).start(onCompleteAnimation); - } - } - }, { - key: "render", - value: function render() { - var _this3 = this; - - var floatingHeader = null; - - var headerMode = this._getHeaderMode(); - - if (headerMode === 'float') { - var _scene = this.props.transitionProps.scene; - floatingHeader = _react.default.createElement(_reactNative.View, { - pointerEvents: "box-none", - onLayout: this._onFloatingHeaderLayout, - __source: { - fileName: _jsxFileName, - lineNumber: 382 - } - }, this._renderHeader(_scene, headerMode)); - } - - var _this$props$transitio4 = this.props.transitionProps, - scene = _this$props$transitio4.scene, - scenes = _this$props$transitio4.scenes; - var options = scene.descriptor.options; - var gesturesEnabled = typeof options.gesturesEnabled === 'boolean' ? options.gesturesEnabled : _reactNative.Platform.OS === 'ios'; - var responder = !gesturesEnabled ? null : this._panResponder; - var handlers = gesturesEnabled ? responder.panHandlers : {}; - var containerStyle = [styles.container, this._getTransitionConfig().containerStyle]; - return _react.default.createElement(_reactNative.View, _extends({}, handlers, { - style: containerStyle, - __source: { - fileName: _jsxFileName, - lineNumber: 398 - } - }), _react.default.createElement(_screens.ScreenContainer, { - style: styles.scenes, - __source: { - fileName: _jsxFileName, - lineNumber: 399 - } - }, scenes.map(function (s) { - return _this3._renderCard(s); - })), floatingHeader); - } - }, { - key: "_getHeaderMode", - value: function _getHeaderMode() { - if (this.props.headerMode) { - return this.props.headerMode; - } - - if (_reactNative.Platform.OS === 'android' || this.props.mode === 'modal') { - return 'screen'; - } - - return 'float'; - } - }, { - key: "_getHeaderLayoutPreset", - value: function _getHeaderLayoutPreset() { - var headerLayoutPreset = this.props.headerLayoutPreset; - - if (headerLayoutPreset) { - if (__DEV__) { - if (this._getHeaderTransitionPreset() === 'uikit' && headerLayoutPreset === 'left' && _reactNative.Platform.OS === 'ios') { - console.warn("headerTransitionPreset with the value 'ui-kit' is incompatible with headerLayoutPreset 'left'"); - } - } - - if (HEADER_LAYOUT_PRESET_VALUES.includes(headerLayoutPreset)) { - return headerLayoutPreset; - } - - if (__DEV__) { - console.error("Invalid configuration applied for headerLayoutPreset - expected one of " + HEADER_LAYOUT_PRESET_VALUES.join(', ') + " but received " + JSON.stringify(headerLayoutPreset)); - } - } - - if (_reactNative.Platform.OS === 'android') { - return 'left'; - } else { - return 'center'; - } - } - }, { - key: "_getHeaderTransitionPreset", - value: function _getHeaderTransitionPreset() { - if (_reactNative.Platform.OS === 'android' || this._getHeaderMode() === 'screen') { - return 'fade-in-place'; - } - - var headerTransitionPreset = this.props.headerTransitionPreset; - - if (headerTransitionPreset) { - if (HEADER_TRANSITION_PRESET_VALUES.includes(headerTransitionPreset)) { - return headerTransitionPreset; - } - - if (__DEV__) { - console.error("Invalid configuration applied for headerTransitionPreset - expected one of " + HEADER_TRANSITION_PRESET_VALUES.join(', ') + " but received " + JSON.stringify(headerTransitionPreset)); - } - } - - return 'fade-in-place'; - } - }, { - key: "_getheaderBackTitleVisible", - value: function _getheaderBackTitleVisible() { - var headerBackTitleVisible = this.props.headerBackTitleVisible; - return headerBackTitleVisible; - } - }, { - key: "_renderInnerScene", - value: function _renderInnerScene(scene) { - var _scene$descriptor = scene.descriptor, - navigation = _scene$descriptor.navigation, - getComponent = _scene$descriptor.getComponent; - var SceneComponent = getComponent(); - var screenProps = this.props.screenProps; - - var headerMode = this._getHeaderMode(); - - if (headerMode === 'screen') { - return _react.default.createElement(_reactNative.View, { - style: styles.container, - __source: { - fileName: _jsxFileName, - lineNumber: 474 - } - }, _react.default.createElement(_reactNative.View, { - style: styles.scenes, - __source: { - fileName: _jsxFileName, - lineNumber: 475 - } - }, _react.default.createElement(_reactNavigation.SceneView, { - screenProps: screenProps, - navigation: navigation, - component: SceneComponent, - __source: { - fileName: _jsxFileName, - lineNumber: 476 - } - })), this._renderHeader(scene, headerMode)); - } - - return _react.default.createElement(_reactNavigation.SceneView, { - screenProps: screenProps, - navigation: navigation, - component: SceneComponent, - __source: { - fileName: _jsxFileName, - lineNumber: 481 - } - }); - } - }]); - - _inherits(StackViewLayout, _React$Component); - - return StackViewLayout; - }(_react.default.Component); - - StackViewLayout = _wrapComponent("StackViewLayout")(StackViewLayout); - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1, - flexDirection: 'column-reverse' - }, - scenes: { - flex: 1 - } - }); - - var _default2 = (0, _reactNavigation.withOrientation)(StackViewLayout); - - exports.default = _default2; -},567,[122,161,573,1,509,566,561,574,569,575],"node_modules/react-navigation-stack/dist/views/StackView/StackViewLayout.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = clamp; - - function clamp(value, min, max) { - return min < max ? value < min ? min : value > max ? max : value : value < max ? max : value > min ? min : value; - } -},573,[],"node_modules/clamp/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _screens = _$$_REQUIRE(_dependencyMap[3], "./screens"); - - var _createPointerEventsContainer = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./createPointerEventsContainer")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/StackView/StackViewCard.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Card: { - displayName: "Card" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/StackView/StackViewCard.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var EPS = 1e-5; - - function getAccessibilityProps(isActive) { - if (_reactNative.Platform.OS === 'ios') { - return { - accessibilityElementsHidden: !isActive - }; - } else if (_reactNative.Platform.OS === 'android') { - return { - importantForAccessibility: isActive ? 'yes' : 'no-hide-descendants' - }; - } else { - return null; - } - } - - var Card = function (_React$Component) { - function Card() { - _classCallCheck(this, Card); - - return _possibleConstructorReturn(this, _getPrototypeOf(Card).apply(this, arguments)); - } - - _createClass(Card, [{ - key: "render", - value: function render() { - var _this$props = this.props, - children = _this$props.children, - pointerEvents = _this$props.pointerEvents, - style = _this$props.style, - position = _this$props.position, - _this$props$scene = _this$props.scene, - index = _this$props$scene.index, - isActive = _this$props$scene.isActive; - var active = position.interpolate({ - inputRange: [index, index + 1 - EPS, index + 1], - outputRange: [1, 1, 0], - extrapolate: 'clamp' - }); - return _react.default.createElement(_screens.Screen, _extends({ - pointerEvents: pointerEvents, - onComponentRef: this.props.onComponentRef, - style: [styles.main, style], - active: active - }, getAccessibilityProps(isActive), { - __source: { - fileName: _jsxFileName, - lineNumber: 41 - } - }), children); - } - }]); - - _inherits(Card, _React$Component); - - return Card; - }(_react.default.Component); - - Card = _wrapComponent("Card")(Card); - - var styles = _reactNative.StyleSheet.create({ - main: _objectSpread({}, _reactNative.StyleSheet.absoluteFillObject, { - backgroundColor: '#E9E9EF', - shadowColor: 'black', - shadowOffset: { - width: 0, - height: 0 - }, - shadowOpacity: 0.2, - shadowRadius: 5 - }) - }); - - var _default2 = (0, _createPointerEventsContainer.default)(Card); - - exports.default = _default2; -},566,[122,161,1,574,570],"node_modules/react-navigation-stack/dist/views/StackView/StackViewCard.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Screen = exports.ScreenContainer = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/StackView/screens.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Screen: { - displayName: "Screen" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/StackView/screens.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var ScreenContainer = _reactNative.View; - exports.ScreenContainer = ScreenContainer; - - var Screen = function (_React$Component) { - function Screen() { - _classCallCheck(this, Screen); - - return _possibleConstructorReturn(this, _getPrototypeOf(Screen).apply(this, arguments)); - } - - _createClass(Screen, [{ - key: "render", - value: function render() { - var _this$props = this.props, - active = _this$props.active, - onComponentRef = _this$props.onComponentRef, - props = _objectWithoutProperties(_this$props, ["active", "onComponentRef"]); - - return _react.default.createElement(_reactNative.Animated.View, _extends({}, props, { - ref: onComponentRef, - __source: { - fileName: _jsxFileName, - lineNumber: 15 - } - })); - } - }]); - - _inherits(Screen, _React$Component); - - return Screen; - }(_react.default.Component); - - exports.Screen = Screen; - exports.Screen = Screen = _wrapComponent("Screen")(Screen); -},574,[122,161,1],"node_modules/react-navigation-stack/dist/views/StackView/screens.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = createPointerEventsContainer; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")); - - var _invariant = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "../../utils/invariant")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/StackView/createPointerEventsContainer.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Container: { - displayName: "Container", - isInFunction: true - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/StackView/createPointerEventsContainer.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var MIN_POSITION_OFFSET = 0.01; - - function createPointerEventsContainer(Component) { - var Container = function (_React$Component) { - function Container(props, context) { - var _this; - - _classCallCheck(this, Container); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(Container).call(this, props, context)); - - _this._onComponentRef = function (component) { - _this._component = component; - - if (component) { - (0, _invariant.default)(typeof component.setNativeProps === 'function', 'component must implement method `setNativeProps`'); - } - }; - - _this._onPositionChange = function () { - if (_this._component) { - var pointerEvents = _this._computePointerEvents(); - - if (_this._pointerEvents !== pointerEvents) { - _this._pointerEvents = pointerEvents; - - _this._component.setNativeProps({ - pointerEvents: pointerEvents - }); - } - } - }; - - _this._pointerEvents = _this._computePointerEvents(); - return _this; - } - - _createClass(Container, [{ - key: "componentWillUnmount", - value: function componentWillUnmount() { - this._positionListener && this._positionListener.remove(); - } - }, { - key: "render", - value: function render() { - this._bindPosition(); - - this._pointerEvents = this._computePointerEvents(); - return _react.default.createElement(Component, _extends({}, this.props, { - pointerEvents: this._pointerEvents, - onComponentRef: this._onComponentRef, - __source: { - fileName: _jsxFileName, - lineNumber: 26 - } - })); - } - }, { - key: "_bindPosition", - value: function _bindPosition() { - this._positionListener && this._positionListener.remove(); - this._positionListener = new AnimatedValueSubscription(this.props.position, this._onPositionChange); - } - }, { - key: "_computePointerEvents", - value: function _computePointerEvents() { - var _this$props = this.props, - navigation = _this$props.navigation, - position = _this$props.position, - scene = _this$props.scene; - - if (scene.isStale || navigation.state.index !== scene.index) { - return scene.index > navigation.state.index ? 'box-only' : 'none'; - } - - var offset = position.__getAnimatedValue() - navigation.state.index; - - if (Math.abs(offset) > MIN_POSITION_OFFSET) { - return 'box-only'; - } - - return 'auto'; - } - }]); - - _inherits(Container, _React$Component); - - return Container; - }(_react.default.Component); - - Container = _wrapComponent("Container")(Container); - return Container; - } - - var AnimatedValueSubscription = function () { - function AnimatedValueSubscription(value, callback) { - _classCallCheck(this, AnimatedValueSubscription); - - this._value = value; - this._token = value.addListener(callback); - } - - _createClass(AnimatedValueSubscription, [{ - key: "remove", - value: function remove() { - this._value.removeListener(this._token); - } - }]); - - return AnimatedValueSubscription; - }(); -},570,[122,161,576],"node_modules/react-navigation-stack/dist/views/StackView/createPointerEventsContainer.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = invariant; - - function invariant(condition, format, a, b, c, d, e, f) { - if (format === undefined) { - throw new Error('invariant requires an error message argument'); - } - - if (!condition) { - var error; - - if (format === undefined) { - error = new Error('Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.'); - } else { - var args = [a, b, c, d, e, f]; - var argIndex = 0; - error = new Error(format.replace(/%s/g, function () { - return args[argIndex++]; - })); - error.name = 'Invariant Violation'; - } - - error.framesToPop = 1; - throw error; - } - } -},576,[],"node_modules/react-navigation-stack/dist/utils/invariant.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _reactNavigation = _$$_REQUIRE(_dependencyMap[3], "react-navigation"); - - var _HeaderTitle = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./HeaderTitle")); - - var _HeaderBackButton = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./HeaderBackButton")); - - var _ModularHeaderBackButton = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "./ModularHeaderBackButton")); - - var _HeaderStyleInterpolator = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[7], "./HeaderStyleInterpolator")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/Header/Header.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Header: { - displayName: "Header" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/Header/Header.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var APPBAR_HEIGHT = _reactNative.Platform.OS === 'ios' ? 44 : 56; - var STATUSBAR_HEIGHT = _reactNative.Platform.OS === 'ios' ? 20 : 0; - var TITLE_OFFSET_CENTER_ALIGN = _reactNative.Platform.OS === 'ios' ? 70 : 56; - var TITLE_OFFSET_LEFT_ALIGN = _reactNative.Platform.OS === 'ios' ? 20 : 56; - - var getTitleOffsets = function getTitleOffsets(layoutPreset, forceBackTitle, hasLeftComponent, hasRightComponent) { - if (layoutPreset === 'left') { - var style = { - left: TITLE_OFFSET_LEFT_ALIGN, - right: TITLE_OFFSET_LEFT_ALIGN - }; - - if (!hasLeftComponent) { - style.left = 0; - } - - if (!hasRightComponent) { - style.right = 0; - } - - return style; - } else if (layoutPreset === 'center') { - var _style = { - left: TITLE_OFFSET_CENTER_ALIGN, - right: TITLE_OFFSET_CENTER_ALIGN - }; - - if (!hasLeftComponent && !hasRightComponent) { - _style.left = 0; - _style.right = 0; - } - - return _style; - } - }; - - var getAppBarHeight = function getAppBarHeight(isLandscape) { - return _reactNative.Platform.OS === 'ios' ? isLandscape && !_reactNative.Platform.isPad ? 32 : 44 : 56; - }; - - var Header = function (_React$PureComponent) { - function Header() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, Header); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Header)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { - widths: {} - }, _this._renderTitleComponent = function (props) { - var layoutPreset = _this.props.layoutPreset; - var options = props.scene.descriptor.options; - var headerTitle = options.headerTitle; - - if (_react.default.isValidElement(headerTitle)) { - return headerTitle; - } - - var titleString = _this._getHeaderTitleString(props.scene); - - var titleStyle = options.headerTitleStyle; - var color = options.headerTintColor; - var allowFontScaling = options.headerTitleAllowFontScaling; - var onLayout = layoutPreset === 'center' ? function (e) { - _this.setState({ - widths: _objectSpread({}, _this.state.widths, _defineProperty({}, props.scene.key, e.nativeEvent.layout.width)) - }); - } : undefined; - var HeaderTitleComponent = headerTitle && typeof headerTitle !== 'string' ? headerTitle : _HeaderTitle.default; - return _react.default.createElement(HeaderTitleComponent, { - onLayout: onLayout, - allowFontScaling: allowFontScaling == null ? true : allowFontScaling, - style: [color ? { - color: color - } : null, layoutPreset === 'center' ? { - textAlign: 'center' - } : { - textAlign: 'left' - }, titleStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 137 - } - }, titleString); - }, _this._renderLeftComponent = function (props) { - var options = props.scene.descriptor.options; - - if (_react.default.isValidElement(options.headerLeft) || options.headerLeft === null) { - return options.headerLeft; - } - - if (!options.headerLeft && props.scene.index === 0) { - return; - } - - var backButtonTitle = _this._getBackButtonTitleString(props.scene); - - var truncatedBackButtonTitle = _this._getTruncatedBackButtonTitle(props.scene); - - var width = _this.state.widths[props.scene.key] ? (_this.props.layout.initWidth - _this.state.widths[props.scene.key]) / 2 : undefined; - var RenderedLeftComponent = options.headerLeft || _HeaderBackButton.default; - - var goBack = function goBack() { - requestAnimationFrame(function () { - props.scene.descriptor.navigation.goBack(props.scene.descriptor.key); - }); - }; - - return _react.default.createElement(RenderedLeftComponent, { - onPress: goBack, - pressColorAndroid: options.headerPressColorAndroid, - tintColor: options.headerTintColor, - backImage: options.headerBackImage, - title: backButtonTitle, - truncatedTitle: truncatedBackButtonTitle, - backTitleVisible: _this.props.backTitleVisible, - titleStyle: options.headerBackTitleStyle, - layoutPreset: _this.props.layoutPreset, - width: width, - __source: { - fileName: _jsxFileName, - lineNumber: 162 - } - }); - }, _this._renderModularLeftComponent = function (props, ButtonContainerComponent, LabelContainerComponent) { - var _props$scene$descript = props.scene.descriptor, - options = _props$scene$descript.options, - navigation = _props$scene$descript.navigation; - - var backButtonTitle = _this._getBackButtonTitleString(props.scene); - - var truncatedBackButtonTitle = _this._getTruncatedBackButtonTitle(props.scene); - - var width = _this.state.widths[props.scene.key] ? (_this.props.layout.initWidth - _this.state.widths[props.scene.key]) / 2 : undefined; - - var goBack = function goBack() { - requestAnimationFrame(function () { - navigation.goBack(props.scene.descriptor.key); - }); - }; - - return _react.default.createElement(_ModularHeaderBackButton.default, { - onPress: goBack, - ButtonContainerComponent: ButtonContainerComponent, - LabelContainerComponent: LabelContainerComponent, - pressColorAndroid: options.headerPressColorAndroid, - tintColor: options.headerTintColor, - backImage: options.headerBackImage, - title: backButtonTitle, - truncatedTitle: truncatedBackButtonTitle, - titleStyle: options.headerBackTitleStyle, - width: width, - __source: { - fileName: _jsxFileName, - lineNumber: 178 - } - }); - }, _this._renderRightComponent = function (props) { - var headerRight = props.scene.descriptor.options.headerRight; - return headerRight || null; - }, _temp)); - } - - _createClass(Header, [{ - key: "_getHeaderTitleString", - value: function _getHeaderTitleString(scene) { - var options = scene.descriptor.options; - - if (typeof options.headerTitle === 'string') { - return options.headerTitle; - } - - if (options.title && typeof options.title !== 'string' && __DEV__) { - throw new Error("Invalid title for route \"" + scene.route.routeName + "\" - title must be string or null, instead it was of type " + typeof options.title); - } - - return options.title; - } - }, { - key: "_getLastScene", - value: function _getLastScene(scene) { - return this.props.scenes.find(function (s) { - return s.index === scene.index - 1; - }); - } - }, { - key: "_getBackButtonTitleString", - value: function _getBackButtonTitleString(scene) { - var lastScene = this._getLastScene(scene); - - if (!lastScene) { - return null; - } - - var headerBackTitle = lastScene.descriptor.options.headerBackTitle; - - if (headerBackTitle || headerBackTitle === null) { - return headerBackTitle; - } - - return this._getHeaderTitleString(lastScene); - } - }, { - key: "_getTruncatedBackButtonTitle", - value: function _getTruncatedBackButtonTitle(scene) { - var lastScene = this._getLastScene(scene); - - if (!lastScene) { - return null; - } - - return lastScene.descriptor.options.headerTruncatedBackTitle; - } - }, { - key: "_renderLeft", - value: function _renderLeft(props) { - var options = props.scene.descriptor.options; - var transitionPreset = this.props.transitionPreset; - var style = props.style; - - if (options.headerLeftContainerStyle) { - style = [style, options.headerLeftContainerStyle]; - } - - if (transitionPreset !== 'uikit' || options.headerBackImage || options.headerLeft || options.headerLeft === null) { - return this._renderSubView(_objectSpread({}, props, { - style: style - }), 'left', this._renderLeftComponent, this.props.leftInterpolator); - } else { - return this._renderModularSubView(_objectSpread({}, props, { - style: style - }), 'left', this._renderModularLeftComponent, this.props.leftLabelInterpolator, this.props.leftButtonInterpolator); - } - } - }, { - key: "_renderTitle", - value: function _renderTitle(props, options) { - var _this$props = this.props, - layoutPreset = _this$props.layoutPreset, - transitionPreset = _this$props.transitionPreset; - var style = [{ - justifyContent: layoutPreset === 'center' ? 'center' : 'flex-start' - }, getTitleOffsets(layoutPreset, false, options.hasLeftComponent, options.hasRightComponent), options.headerTitleContainerStyle]; - return this._renderSubView(_objectSpread({}, props, { - style: style - }), 'title', this._renderTitleComponent, transitionPreset === 'uikit' ? this.props.titleFromLeftInterpolator : this.props.titleInterpolator); - } - }, { - key: "_renderRight", - value: function _renderRight(props) { - var options = props.scene.descriptor.options; - var style = props.style; - - if (options.headerRightContainerStyle) { - style = [style, options.headerRightContainerStyle]; - } - - return this._renderSubView(_objectSpread({}, props, { - style: style - }), 'right', this._renderRightComponent, this.props.rightInterpolator); - } - }, { - key: "_renderBackground", - value: function _renderBackground(props) { - var _props$scene = props.scene, - index = _props$scene.index, - options = _props$scene.descriptor.options; - var offset = this.props.navigation.state.index - index; - - if (Math.abs(offset) > 2) { - return null; - } - - return this._renderSubView(_objectSpread({}, props, { - style: _reactNative.StyleSheet.absoluteFill - }), 'background', function () { - return options.headerBackground; - }, this.props.backgroundInterpolator); - } - }, { - key: "_renderModularSubView", - value: function _renderModularSubView(props, name, renderer, labelStyleInterpolator, buttonStyleInterpolator) { - var _this2 = this; - - var scene = props.scene; - var index = scene.index, - isStale = scene.isStale, - key = scene.key; - - if (index === 0) { - return; - } - - var offset = this.props.navigation.state.index - index; - - if (Math.abs(offset) > 2) { - return null; - } - - var ButtonContainer = function ButtonContainer(_ref) { - var children = _ref.children; - return _react.default.createElement(_reactNative.Animated.View, { - style: [buttonStyleInterpolator(_objectSpread({}, _this2.props, props))], - __source: { - fileName: _jsxFileName, - lineNumber: 257 - } - }, children); - }; - - var LabelContainer = function LabelContainer(_ref2) { - var children = _ref2.children; - return _react.default.createElement(_reactNative.Animated.View, { - style: [labelStyleInterpolator(_objectSpread({}, _this2.props, props))], - __source: { - fileName: _jsxFileName, - lineNumber: 261 - } - }, children); - }; - - var subView = renderer(props, ButtonContainer, LabelContainer); - - if (subView === null) { - return subView; - } - - var pointerEvents = offset !== 0 || isStale ? 'none' : 'box-none'; - return _react.default.createElement(_reactNative.View, { - key: name + "_" + key, - pointerEvents: pointerEvents, - style: [styles.item, styles[name], props.style], - __source: { - fileName: _jsxFileName, - lineNumber: 273 - } - }, subView); - } - }, { - key: "_renderSubView", - value: function _renderSubView(props, name, renderer, styleInterpolator) { - var scene = props.scene; - var index = scene.index, - isStale = scene.isStale, - key = scene.key; - var offset = this.props.navigation.state.index - index; - - if (Math.abs(offset) > 2) { - return null; - } - - var subView = renderer(props); - - if (subView == null) { - return null; - } - - var pointerEvents = offset !== 0 || isStale ? 'none' : 'box-none'; - return _react.default.createElement(_reactNative.Animated.View, { - pointerEvents: pointerEvents, - key: name + "_" + key, - style: [styles.item, styles[name], props.style, styleInterpolator(_objectSpread({}, this.props, props))], - __source: { - fileName: _jsxFileName, - lineNumber: 298 - } - }, subView); - } - }, { - key: "_renderHeader", - value: function _renderHeader(props) { - var options = props.scene.descriptor.options; - - if (options.header === null) { - return null; - } - - var left = this._renderLeft(props); - - var right = this._renderRight(props); - - var title = this._renderTitle(props, { - hasLeftComponent: !!left, - hasRightComponent: !!right, - headerTitleContainerStyle: options.headerTitleContainerStyle - }); - - var transitionPreset = this.props.transitionPreset; - var wrapperProps = { - style: styles.header, - key: "scene_" + props.scene.key - }; - - if (options.headerLeft || options.headerBackImage || _reactNative.Platform.OS !== 'ios' || transitionPreset !== 'uikit') { - return _react.default.createElement(_reactNative.View, _extends({}, wrapperProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 327 - } - }), title, left, right); - } else { - return _react.default.createElement(_reactNative.MaskedViewIOS, _extends({}, wrapperProps, { - maskElement: _react.default.createElement(_reactNative.View, { - style: styles.iconMaskContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 333 - } - }, _react.default.createElement(_reactNative.Image, { - source: _$$_REQUIRE(_dependencyMap[8], '../assets/back-icon-mask.png'), - style: styles.iconMask, - __source: { - fileName: _jsxFileName, - lineNumber: 334 - } - }), _react.default.createElement(_reactNative.View, { - style: styles.iconMaskFillerRect, - __source: { - fileName: _jsxFileName, - lineNumber: 335 - } - })), - __source: { - fileName: _jsxFileName, - lineNumber: 333 - } - }), title, left, right); - } - } - }, { - key: "render", - value: function render() { - var _this3 = this; - - var appBar; - var background; - var _this$props2 = this.props, - mode = _this$props2.mode, - scene = _this$props2.scene, - isLandscape = _this$props2.isLandscape; - - if (mode === 'float') { - var scenesByIndex = {}; - this.props.scenes.forEach(function (scene) { - scenesByIndex[scene.index] = scene; - }); - var scenesProps = Object.values(scenesByIndex).map(function (scene) { - return { - position: _this3.props.position, - progress: _this3.props.progress, - scene: scene - }; - }); - appBar = scenesProps.map(this._renderHeader, this); - background = scenesProps.map(this._renderBackground, this); - } else { - var headerProps = { - position: new _reactNative.Animated.Value(this.props.scene.index), - progress: new _reactNative.Animated.Value(0), - scene: this.props.scene - }; - appBar = this._renderHeader(headerProps); - background = this._renderBackground(headerProps); - } - - var options = scene.descriptor.options; - var _options$headerStyle = options.headerStyle, - headerStyle = _options$headerStyle === void 0 ? {} : _options$headerStyle; - - var headerStyleObj = _reactNative.StyleSheet.flatten(headerStyle); - - var appBarHeight = getAppBarHeight(isLandscape); - - var alignItems = headerStyleObj.alignItems, - justifyContent = headerStyleObj.justifyContent, - flex = headerStyleObj.flex, - flexDirection = headerStyleObj.flexDirection, - flexGrow = headerStyleObj.flexGrow, - flexShrink = headerStyleObj.flexShrink, - flexBasis = headerStyleObj.flexBasis, - flexWrap = headerStyleObj.flexWrap, - position = headerStyleObj.position, - padding = headerStyleObj.padding, - paddingHorizontal = headerStyleObj.paddingHorizontal, - paddingRight = headerStyleObj.paddingRight, - paddingLeft = headerStyleObj.paddingLeft, - top = headerStyleObj.top, - right = headerStyleObj.right, - bottom = headerStyleObj.bottom, - left = headerStyleObj.left, - safeHeaderStyle = _objectWithoutProperties(headerStyleObj, ["alignItems", "justifyContent", "flex", "flexDirection", "flexGrow", "flexShrink", "flexBasis", "flexWrap", "position", "padding", "paddingHorizontal", "paddingRight", "paddingLeft", "top", "right", "bottom", "left"]); - - if (__DEV__) { - warnIfHeaderStyleDefined(alignItems, 'alignItems'); - warnIfHeaderStyleDefined(justifyContent, 'justifyContent'); - warnIfHeaderStyleDefined(flex, 'flex'); - warnIfHeaderStyleDefined(flexDirection, 'flexDirection'); - warnIfHeaderStyleDefined(flexGrow, 'flexGrow'); - warnIfHeaderStyleDefined(flexShrink, 'flexShrink'); - warnIfHeaderStyleDefined(flexBasis, 'flexBasis'); - warnIfHeaderStyleDefined(flexWrap, 'flexWrap'); - warnIfHeaderStyleDefined(padding, 'padding'); - warnIfHeaderStyleDefined(position, 'position'); - warnIfHeaderStyleDefined(paddingHorizontal, 'paddingHorizontal'); - warnIfHeaderStyleDefined(paddingRight, 'paddingRight'); - warnIfHeaderStyleDefined(paddingLeft, 'paddingLeft'); - warnIfHeaderStyleDefined(top, 'top'); - warnIfHeaderStyleDefined(right, 'right'); - warnIfHeaderStyleDefined(bottom, 'bottom'); - warnIfHeaderStyleDefined(left, 'left'); - } - - var containerStyles = [options.headerTransparent ? styles.transparentContainer : styles.container, { - height: appBarHeight - }, safeHeaderStyle]; - var headerForceInset = options.headerForceInset; - var forceInset = headerForceInset || { - top: 'always', - bottom: 'never' - }; - return _react.default.createElement(_reactNative.Animated.View, { - style: [this.props.layoutInterpolator(this.props), _reactNative.Platform.OS === 'ios' && !options.headerTransparent ? { - backgroundColor: safeHeaderStyle.backgroundColor || DEFAULT_BACKGROUND_COLOR - } : null], - __source: { - fileName: _jsxFileName, - lineNumber: 430 - } - }, _react.default.createElement(_reactNavigation.SafeAreaView, { - forceInset: forceInset, - style: containerStyles, - __source: { - fileName: _jsxFileName, - lineNumber: 433 - } - }, background, _react.default.createElement(_reactNative.View, { - style: styles.flexOne, - __source: { - fileName: _jsxFileName, - lineNumber: 435 - } - }, appBar))); - } - }], [{ - key: "HEIGHT", - get: function get() { - return APPBAR_HEIGHT + STATUSBAR_HEIGHT; - } - }]); - - _inherits(Header, _React$PureComponent); - - return Header; - }(_react.default.PureComponent); - - Header.defaultProps = { - layoutInterpolator: _HeaderStyleInterpolator.default.forLayout, - leftInterpolator: _HeaderStyleInterpolator.default.forLeft, - leftButtonInterpolator: _HeaderStyleInterpolator.default.forLeftButton, - leftLabelInterpolator: _HeaderStyleInterpolator.default.forLeftLabel, - titleFromLeftInterpolator: _HeaderStyleInterpolator.default.forCenterFromLeft, - titleInterpolator: _HeaderStyleInterpolator.default.forCenter, - rightInterpolator: _HeaderStyleInterpolator.default.forRight, - backgroundInterpolator: _HeaderStyleInterpolator.default.forBackground - }; - Header = _wrapComponent("Header")(Header); - - function warnIfHeaderStyleDefined(value, styleProp) { - if (styleProp === 'position' && value === 'absolute') { - console.warn("position: 'absolute' is not supported on headerStyle. If you would like to render content under the header, use the headerTransparent navigationOption."); - } else if (value !== undefined) { - console.warn(styleProp + " was given a value of " + value + ", this has no effect on headerStyle."); - } - } - - var platformContainerStyles; - - if (_reactNative.Platform.OS === 'ios') { - platformContainerStyles = { - borderBottomWidth: _reactNative.StyleSheet.hairlineWidth, - borderBottomColor: '#A7A7AA' - }; - } else { - platformContainerStyles = { - shadowColor: 'black', - shadowOpacity: 0.1, - shadowRadius: _reactNative.StyleSheet.hairlineWidth, - shadowOffset: { - height: _reactNative.StyleSheet.hairlineWidth - }, - elevation: 4 - }; - } - - var DEFAULT_BACKGROUND_COLOR = '#FFF'; - - var styles = _reactNative.StyleSheet.create({ - container: _objectSpread({ - backgroundColor: DEFAULT_BACKGROUND_COLOR - }, platformContainerStyles), - transparentContainer: _objectSpread({ - position: 'absolute', - top: 0, - left: 0, - right: 0 - }, platformContainerStyles, { - borderBottomWidth: 0, - borderBottomColor: 'transparent', - elevation: 0 - }), - header: _objectSpread({}, _reactNative.StyleSheet.absoluteFillObject, { - flexDirection: 'row' - }), - item: { - backgroundColor: 'transparent' - }, - iconMaskContainer: { - flex: 1, - flexDirection: 'row', - justifyContent: 'center' - }, - iconMaskFillerRect: { - flex: 1, - backgroundColor: '#d8d8d8', - marginLeft: -3 - }, - iconMask: { - height: 21, - width: 12, - marginLeft: 9, - marginTop: -0.5, - alignSelf: 'center', - resizeMode: 'contain', - transform: [{ - scaleX: _reactNative.I18nManager.isRTL ? -1 : 1 - }] - }, - title: { - bottom: 0, - top: 0, - position: 'absolute', - alignItems: 'center', - flexDirection: 'row' - }, - left: { - left: 0, - bottom: 0, - top: 0, - position: 'absolute', - alignItems: 'center', - flexDirection: 'row' - }, - right: { - right: 0, - bottom: 0, - top: 0, - position: 'absolute', - flexDirection: 'row', - alignItems: 'center' - }, - flexOne: { - flex: 1 - } - }); - - var _default2 = (0, _reactNavigation.withOrientation)(Header); - - exports.default = _default2; -},561,[122,161,1,509,563,562,577,564,578],"node_modules/react-navigation-stack/dist/views/Header/Header.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/Header/HeaderTitle.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - var AnimatedText = _reactNative.Animated.Text; - - var HeaderTitle = function HeaderTitle(_ref) { - var style = _ref.style, - rest = _objectWithoutProperties(_ref, ["style"]); - - return _react.default.createElement(AnimatedText, _extends({ - numberOfLines: 1 - }, rest, { - style: [styles.title, style], - accessibilityTraits: "header", - accessible: false, - __source: { - fileName: _jsxFileName, - lineNumber: 6 - } - })); - }; - - var styles = _reactNative.StyleSheet.create({ - title: { - fontSize: _reactNative.Platform.OS === 'ios' ? 17 : 20, - fontWeight: _reactNative.Platform.OS === 'ios' ? '600' : '500', - color: 'rgba(0, 0, 0, .9)', - marginHorizontal: 16 - } - }); - - var _default = HeaderTitle; - exports.default = _default; -},563,[122,1],"node_modules/react-navigation-stack/dist/views/Header/HeaderTitle.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _TouchableItem = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../TouchableItem")); - - var _backIcon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../assets/back-icon.png")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/Header/HeaderBackButton.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - HeaderBackButton: { - displayName: "HeaderBackButton" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/Header/HeaderBackButton.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var HeaderBackButton = function (_React$PureComponent) { - function HeaderBackButton() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, HeaderBackButton); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(HeaderBackButton)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = {}, _this._onTextLayout = function (e) { - if (_this.state.initialTextWidth) { - return; - } - - _this.setState({ - initialTextWidth: e.nativeEvent.layout.x + e.nativeEvent.layout.width - }); - }, _temp)); - } - - _createClass(HeaderBackButton, [{ - key: "_renderBackImage", - value: function _renderBackImage() { - var _this$props = this.props, - backImage = _this$props.backImage, - title = _this$props.title, - tintColor = _this$props.tintColor; - var BackImage; - var props; - - if (_react.default.isValidElement(backImage)) { - return backImage; - } else if (backImage) { - BackImage = backImage; - props = { - tintColor: tintColor, - title: title - }; - } else { - BackImage = _reactNative.Image; - props = { - style: [styles.icon, !!title && styles.iconWithTitle, !!tintColor && { - tintColor: tintColor - }], - source: _backIcon.default - }; - } - - return _react.default.createElement(BackImage, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 50 - } - })); - } - }, { - key: "_maybeRenderTitle", - value: function _maybeRenderTitle() { - var _this$props2 = this.props, - layoutPreset = _this$props2.layoutPreset, - backTitleVisible = _this$props2.backTitleVisible, - width = _this$props2.width, - title = _this$props2.title, - titleStyle = _this$props2.titleStyle, - tintColor = _this$props2.tintColor, - truncatedTitle = _this$props2.truncatedTitle; - var renderTruncated = this.state.initialTextWidth && width ? this.state.initialTextWidth > width : false; - var backButtonTitle = renderTruncated ? truncatedTitle : title; - var titleDefaultsToDisabled = layoutPreset === 'left' || _reactNative.Platform.OS === 'android' || typeof backButtonTitle !== 'string'; - - if (titleDefaultsToDisabled && !backTitleVisible) { - return null; - } - - return _react.default.createElement(_reactNative.Text, { - accessible: false, - onLayout: this._onTextLayout, - style: [styles.title, !!tintColor && { - color: tintColor - }, titleStyle], - numberOfLines: 1, - __source: { - fileName: _jsxFileName, - lineNumber: 77 - } - }, backButtonTitle); - } - }, { - key: "render", - value: function render() { - var _this$props3 = this.props, - onPress = _this$props3.onPress, - pressColorAndroid = _this$props3.pressColorAndroid, - title = _this$props3.title; - - var button = _react.default.createElement(_TouchableItem.default, { - accessible: false, - accessibilityComponentType: "button", - accessibilityLabel: title, - accessibilityTraits: "button", - testID: "header-back", - delayPressIn: 0, - onPress: onPress, - pressColor: pressColorAndroid, - style: styles.container, - borderless: true, - __source: { - fileName: _jsxFileName, - lineNumber: 85 - } - }, _react.default.createElement(_reactNative.View, { - style: styles.container, - __source: { - fileName: _jsxFileName, - lineNumber: 86 - } - }, this._renderBackImage(), this._maybeRenderTitle())); - - if (_reactNative.Platform.OS === 'android') { - return _react.default.createElement(_reactNative.View, { - style: styles.androidButtonWrapper, - __source: { - fileName: _jsxFileName, - lineNumber: 93 - } - }, button); - } else { - return button; - } - } - }]); - - _inherits(HeaderBackButton, _React$PureComponent); - - return HeaderBackButton; - }(_react.default.PureComponent); - - HeaderBackButton.defaultProps = { - pressColorAndroid: 'rgba(0, 0, 0, .32)', - tintColor: _reactNative.Platform.select({ - ios: '#037aff' - }), - truncatedTitle: 'Back' - }; - HeaderBackButton = _wrapComponent("HeaderBackButton")(HeaderBackButton); - - var styles = _reactNative.StyleSheet.create({ - androidButtonWrapper: { - margin: 13, - backgroundColor: 'transparent' - }, - container: { - alignItems: 'center', - flexDirection: 'row', - backgroundColor: 'transparent' - }, - title: { - fontSize: 17, - paddingRight: 10 - }, - icon: _reactNative.Platform.OS === 'ios' ? { - height: 21, - width: 13, - marginLeft: 9, - marginRight: 22, - marginVertical: 12, - resizeMode: 'contain', - transform: [{ - scaleX: _reactNative.I18nManager.isRTL ? -1 : 1 - }] - } : { - height: 24, - width: 24, - margin: 3, - resizeMode: 'contain', - transform: [{ - scaleX: _reactNative.I18nManager.isRTL ? -1 : 1 - }] - }, - iconWithTitle: _reactNative.Platform.OS === 'ios' ? { - marginRight: 6 - } : {} - }); - - var _default2 = HeaderBackButton; - exports.default = _default2; -},562,[122,161,1,579,580],"node_modules/react-navigation-stack/dist/views/Header/HeaderBackButton.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _class, - _temp, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/TouchableItem.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TouchableItem: { - displayName: "TouchableItem" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/TouchableItem.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var ANDROID_VERSION_LOLLIPOP = 21; - - var TouchableItem = _wrapComponent("TouchableItem")((_temp = _class = function (_React$Component) { - function TouchableItem() { - _classCallCheck(this, TouchableItem); - - return _possibleConstructorReturn(this, _getPrototypeOf(TouchableItem).apply(this, arguments)); - } - - _createClass(TouchableItem, [{ - key: "render", - value: function render() { - if (_reactNative.Platform.OS === 'android' && _reactNative.Platform.Version >= ANDROID_VERSION_LOLLIPOP) { - var _this$props = this.props, - style = _this$props.style, - rest = _objectWithoutProperties(_this$props, ["style"]); - - return _react.default.createElement(_reactNative.TouchableNativeFeedback, _extends({}, rest, { - style: null, - background: _reactNative.TouchableNativeFeedback.Ripple(this.props.pressColor, this.props.borderless), - __source: { - fileName: _jsxFileName, - lineNumber: 32 - } - }), _react.default.createElement(_reactNative.View, { - style: style, - __source: { - fileName: _jsxFileName, - lineNumber: 33 - } - }, _react.default.Children.only(this.props.children))); - } - - return _react.default.createElement(_reactNative.TouchableOpacity, _extends({}, this.props, { - __source: { - fileName: _jsxFileName, - lineNumber: 37 - } - }), this.props.children); - } - }]); - - _inherits(TouchableItem, _React$Component); - - return TouchableItem; - }(_react.default.Component), _class.defaultProps = { - borderless: false, - pressColor: 'rgba(0, 0, 0, .32)' - }, _temp)); - - var _default2 = TouchableItem; - exports.default = _default2; -},579,[122,161,1],"node_modules/react-navigation-stack/dist/views/TouchableItem.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/node_modules/react-navigation-stack/dist/views/assets", - "width": 24, - "height": 24, - "scales": [1, 1.5, 2, 3, 4], - "hash": "a364dc7a784101f7c8f6791c7b4514ce", - "name": "back-icon", - "type": "png" - }); -},580,[158],"node_modules/react-navigation-stack/dist/views/assets/back-icon.png"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _TouchableItem = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../TouchableItem")); - - var _backIcon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../assets/back-icon.png")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/Header/ModularHeaderBackButton.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - ModularHeaderBackButton: { - displayName: "ModularHeaderBackButton" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/Header/ModularHeaderBackButton.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var ModularHeaderBackButton = function (_React$PureComponent) { - function ModularHeaderBackButton() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, ModularHeaderBackButton); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ModularHeaderBackButton)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = {}, _this._onTextLayout = function (e) { - if (_this.state.initialTextWidth) { - return; - } - - _this.setState({ - initialTextWidth: e.nativeEvent.layout.x + e.nativeEvent.layout.width - }); - }, _temp)); - } - - _createClass(ModularHeaderBackButton, [{ - key: "_renderBackImage", - value: function _renderBackImage() { - var _this$props = this.props, - backImage = _this$props.backImage, - title = _this$props.title, - tintColor = _this$props.tintColor; - var BackImage; - var props; - - if (_react.default.isValidElement(backImage)) { - return backImage; - } else if (backImage) { - BackImage = backImage; - props = { - tintColor: tintColor, - title: title - }; - } else { - BackImage = _reactNative.Image; - props = { - style: [styles.icon, !!title && styles.iconWithTitle, !!tintColor && { - tintColor: tintColor - }], - source: _backIcon.default - }; - } - - return _react.default.createElement(BackImage, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 47 - } - })); - } - }, { - key: "render", - value: function render() { - var _this$props2 = this.props, - onPress = _this$props2.onPress, - width = _this$props2.width, - title = _this$props2.title, - titleStyle = _this$props2.titleStyle, - tintColor = _this$props2.tintColor, - truncatedTitle = _this$props2.truncatedTitle; - var renderTruncated = this.state.initialTextWidth && width ? this.state.initialTextWidth > width : false; - var backButtonTitle = renderTruncated ? truncatedTitle : title; - - if (backButtonTitle && backButtonTitle.length > 8) { - backButtonTitle = truncatedTitle; - } - - var _this$props3 = this.props, - ButtonContainerComponent = _this$props3.ButtonContainerComponent, - LabelContainerComponent = _this$props3.LabelContainerComponent; - return _react.default.createElement(_TouchableItem.default, { - accessibilityComponentType: "button", - accessibilityLabel: backButtonTitle, - accessibilityTraits: "button", - testID: "header-back", - delayPressIn: 0, - onPress: onPress, - style: styles.container, - borderless: true, - __source: { - fileName: _jsxFileName, - lineNumber: 72 - } - }, _react.default.createElement(_reactNative.View, { - style: styles.container, - __source: { - fileName: _jsxFileName, - lineNumber: 73 - } - }, _react.default.createElement(ButtonContainerComponent, { - __source: { - fileName: _jsxFileName, - lineNumber: 74 - } - }, this._renderBackImage()), typeof backButtonTitle === 'string' && _react.default.createElement(LabelContainerComponent, { - __source: { - fileName: _jsxFileName, - lineNumber: 77 - } - }, _react.default.createElement(_reactNative.Text, { - onLayout: this._onTextLayout, - style: [styles.title, !!tintColor && { - color: tintColor - }, titleStyle], - numberOfLines: 1, - __source: { - fileName: _jsxFileName, - lineNumber: 78 - } - }, backButtonTitle)))); - } - }]); - - _inherits(ModularHeaderBackButton, _React$PureComponent); - - return ModularHeaderBackButton; - }(_react.default.PureComponent); - - ModularHeaderBackButton.defaultProps = { - tintColor: '#037aff', - truncatedTitle: 'Back' - }; - ModularHeaderBackButton = _wrapComponent("ModularHeaderBackButton")(ModularHeaderBackButton); - - var styles = _reactNative.StyleSheet.create({ - container: { - alignItems: 'center', - flexDirection: 'row', - backgroundColor: 'transparent' - }, - title: { - fontSize: 17, - paddingRight: 10 - }, - icon: { - height: 21, - width: 12, - marginLeft: 9, - marginRight: 22, - marginVertical: 12, - resizeMode: 'contain', - transform: [{ - scaleX: _reactNative.I18nManager.isRTL ? -1 : 1 - }] - }, - iconWithTitle: { - marginRight: 3 - } - }); - - var _default2 = ModularHeaderBackButton; - exports.default = _default2; -},577,[122,161,1,579,580],"node_modules/react-navigation-stack/dist/views/Header/ModularHeaderBackButton.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); - - var _getSceneIndicesForInterpolationInputRange = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "../../utils/getSceneIndicesForInterpolationInputRange")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function hasHeader(scene) { - if (!scene) { - return true; - } - - var descriptor = scene.descriptor; - return descriptor.options.header !== null; - } - - var crossFadeInterpolation = function crossFadeInterpolation(scenes, first, index, last) { - return { - inputRange: [first, first + 0.001, index - 0.9, index - 0.2, index, last - 0.001, last], - outputRange: [0, hasHeader(scenes[first]) ? 0 : 1, hasHeader(scenes[first]) ? 0 : 1, hasHeader(scenes[first]) ? 0.3 : 1, hasHeader(scenes[index]) ? 1 : 0, hasHeader(scenes[last]) ? 0 : 1, 0] - }; - }; - - function isGoingBack(scenes) { - var lastSceneIndexInScenes = scenes.length - 1; - return !scenes[lastSceneIndexInScenes].isActive; - } - - function forLayout(props) { - var layout = props.layout, - position = props.position, - scene = props.scene, - scenes = props.scenes, - mode = props.mode; - - if (mode !== 'float') { - return {}; - } - - var isBack = isGoingBack(scenes); - var interpolate = (0, _getSceneIndicesForInterpolationInputRange.default)(props); - if (!interpolate) return {}; - var first = interpolate.first, - last = interpolate.last; - var index = scene.index; - - var width = layout.initWidth || _reactNative.Dimensions.get('window').width; - - if (isBack && !hasHeader(scenes[index]) && !hasHeader(scenes[last]) || !isBack && !hasHeader(scenes[first]) && !hasHeader(scenes[index])) { - return { - transform: [{ - translateX: width - }] - }; - } - - var rtlMult = _reactNative.I18nManager.isRTL ? -1 : 1; - var translateX = position.interpolate({ - inputRange: [first, index, last], - outputRange: [rtlMult * (hasHeader(scenes[first]) ? 0 : width), rtlMult * (hasHeader(scenes[index]) ? 0 : isBack ? width : -width), rtlMult * (hasHeader(scenes[last]) ? 0 : -width)] - }); - return { - transform: [{ - translateX: translateX - }] - }; - } - - function forLeft(props) { - var position = props.position, - scene = props.scene, - scenes = props.scenes; - var interpolate = (0, _getSceneIndicesForInterpolationInputRange.default)(props); - if (!interpolate) return { - opacity: 0 - }; - var first = interpolate.first, - last = interpolate.last; - var index = scene.index; - return { - opacity: position.interpolate(crossFadeInterpolation(scenes, first, index, last)) - }; - } - - function forCenter(props) { - var position = props.position, - scene = props.scene, - scenes = props.scenes; - var interpolate = (0, _getSceneIndicesForInterpolationInputRange.default)(props); - if (!interpolate) return { - opacity: 0 - }; - var first = interpolate.first, - last = interpolate.last; - var index = scene.index; - return { - opacity: position.interpolate(crossFadeInterpolation(scenes, first, index, last)) - }; - } - - function forRight(props) { - var position = props.position, - scene = props.scene, - scenes = props.scenes; - var interpolate = (0, _getSceneIndicesForInterpolationInputRange.default)(props); - if (!interpolate) return { - opacity: 0 - }; - var first = interpolate.first, - last = interpolate.last; - var index = scene.index; - return { - opacity: position.interpolate(crossFadeInterpolation(scenes, first, index, last)) - }; - } - - function forLeftButton(props) { - var position = props.position, - scene = props.scene, - scenes = props.scenes; - var interpolate = (0, _getSceneIndicesForInterpolationInputRange.default)(props); - if (!interpolate) return { - opacity: 0 - }; - var first = interpolate.first, - last = interpolate.last; - var index = scene.index; - var inputRange = [first, first + 0.001, first + Math.abs(index - first) / 2, index, last - Math.abs(last - index) / 2, last - 0.001, last]; - var outputRange = [0, hasHeader(scenes[first]) ? 0 : 1, hasHeader(scenes[first]) ? 0.1 : 1, hasHeader(scenes[index]) ? 1 : 0, hasHeader(scenes[last]) ? 0.1 : 1, hasHeader(scenes[last]) ? 0 : 1, 0]; - return { - opacity: position.interpolate({ - inputRange: inputRange, - outputRange: outputRange - }) - }; - } - - var LEFT_LABEL_OFFSET = _reactNative.Dimensions.get('window').width / 2 - 70 - 25; - - function forLeftLabel(props) { - var position = props.position, - scene = props.scene, - scenes = props.scenes; - var interpolate = (0, _getSceneIndicesForInterpolationInputRange.default)(props); - if (!interpolate) return { - opacity: 0 - }; - var first = interpolate.first, - last = interpolate.last; - var index = scene.index; - var offset = LEFT_LABEL_OFFSET; - return { - opacity: position.interpolate({ - inputRange: [first, first + 0.001, index - 0.35, index, index + 0.5, last - 0.001, last], - outputRange: [0, hasHeader(scenes[first]) ? 0 : 1, hasHeader(scenes[first]) ? 0 : 1, hasHeader(scenes[index]) ? 1 : 0, hasHeader(scenes[last]) ? 0.5 : 1, hasHeader(scenes[last]) ? 0 : 1, 0] - }), - transform: [{ - translateX: position.interpolate({ - inputRange: [first, first + 0.001, index, last - 0.001, last], - outputRange: _reactNative.I18nManager.isRTL ? [-offset * 1.5, hasHeader(scenes[first]) ? -offset * 1.5 : 0, 0, hasHeader(scenes[last]) ? offset : 0, offset] : [offset, hasHeader(scenes[first]) ? offset : 0, 0, hasHeader(scenes[last]) ? -offset * 1.5 : 0, -offset * 1.5] - }) - }] - }; - } - - var TITLE_OFFSET_IOS = _reactNative.Dimensions.get('window').width / 2 - 70 + 25; - - function forCenterFromLeft(props) { - var position = props.position, - scene = props.scene, - scenes = props.scenes; - var interpolate = (0, _getSceneIndicesForInterpolationInputRange.default)(props); - if (!interpolate) return { - opacity: 0 - }; - var first = interpolate.first, - last = interpolate.last; - var index = scene.index; - var offset = TITLE_OFFSET_IOS; - return { - opacity: position.interpolate({ - inputRange: [first, first + 0.001, index - 0.5, index, index + 0.7, last - 0.001, last], - outputRange: [0, hasHeader(scenes[first]) ? 0 : 1, hasHeader(scenes[first]) ? 0 : 1, hasHeader(scenes[index]) ? 1 : 0, hasHeader(scenes[last]) ? 0 : 1, hasHeader(scenes[last]) ? 0 : 1, 0] - }), - transform: [{ - translateX: position.interpolate({ - inputRange: [first, first + 0.001, index, last - 0.001, last], - outputRange: _reactNative.I18nManager.isRTL ? [-offset, hasHeader(scenes[first]) ? -offset : 0, 0, hasHeader(scenes[last]) ? offset : 0, offset] : [offset, hasHeader(scenes[first]) ? offset : 0, 0, hasHeader(scenes[last]) ? -offset : 0, -offset] - }) - }] - }; - } - - function forBackground() { - return null; - } - - var BACKGROUND_OFFSET = _reactNative.Dimensions.get('window').width; - - function forBackgroundWithTranslation(props) { - var position = props.position, - scene = props.scene; - var interpolate = (0, _getSceneIndicesForInterpolationInputRange.default)(props); - if (!interpolate) return { - opacity: 0 - }; - var first = interpolate.first, - last = interpolate.last; - var index = scene.index; - var offset = BACKGROUND_OFFSET; - var outputRange = [offset, 0, -offset]; - return { - transform: [{ - translateX: position.interpolate({ - inputRange: [first, index, last], - outputRange: _reactNative.I18nManager.isRTL ? outputRange.reverse() : outputRange - }) - }] - }; - } - - var _default = { - forLayout: forLayout, - forLeft: forLeft, - forLeftButton: forLeftButton, - forLeftLabel: forLeftLabel, - forCenterFromLeft: forCenterFromLeft, - forCenter: forCenter, - forRight: forRight, - forBackground: forBackground, - forBackgroundWithTranslation: forBackgroundWithTranslation - }; - exports.default = _default; -},564,[1,581],"node_modules/react-navigation-stack/dist/views/Header/HeaderStyleInterpolator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - function getSceneIndicesForInterpolationInputRange(props) { - var scene = props.scene, - scenes = props.scenes; - var index = scene.index; - var lastSceneIndexInScenes = scenes.length - 1; - var isBack = !scenes[lastSceneIndexInScenes].isActive; - - if (isBack) { - var currentSceneIndexInScenes = scenes.findIndex(function (item) { - return item === scene; - }); - var targetSceneIndexInScenes = scenes.findIndex(function (item) { - return item.isActive; - }); - var targetSceneIndex = scenes[targetSceneIndexInScenes].index; - var lastSceneIndex = scenes[lastSceneIndexInScenes].index; - - if (index !== targetSceneIndex && currentSceneIndexInScenes === lastSceneIndexInScenes) { - return { - first: Math.min(targetSceneIndex, index - 1), - last: index + 1 - }; - } else if (index === targetSceneIndex && currentSceneIndexInScenes === targetSceneIndexInScenes) { - return { - first: index - 1, - last: Math.max(lastSceneIndex, index + 1) - }; - } else if (index === targetSceneIndex || currentSceneIndexInScenes > targetSceneIndexInScenes) { - return null; - } else { - return { - first: index - 1, - last: index + 1 - }; - } - } else { - return { - first: index - 1, - last: index + 1 - }; - } - } - - var _default = getSceneIndicesForInterpolationInputRange; - exports.default = _default; -},581,[],"node_modules/react-navigation-stack/dist/utils/getSceneIndicesForInterpolationInputRange.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/node_modules/react-navigation-stack/dist/views/assets", - "width": 48, - "height": 82, - "scales": [1], - "hash": "755fce460f64aed4d3f3ac1a6249ceea", - "name": "back-icon-mask", - "type": "png" - }); -},578,[158],"node_modules/react-navigation-stack/dist/views/assets/back-icon-mask.png"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); - - var _StackViewStyleInterpolator = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./StackViewStyleInterpolator")); - - var _ReactNativeFeatures = _$$_REQUIRE(_dependencyMap[2], "../../utils/ReactNativeFeatures"); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var IOSTransitionSpec; - - if ((0, _ReactNativeFeatures.supportsImprovedSpringAnimation)()) { - IOSTransitionSpec = { - timing: _reactNative.Animated.spring, - stiffness: 1000, - damping: 500, - mass: 3 - }; - } else { - IOSTransitionSpec = { - duration: 500, - easing: _reactNative.Easing.bezier(0.2833, 0.99, 0.31833, 0.99), - timing: _reactNative.Animated.timing - }; - } - - var SlideFromRightIOS = { - transitionSpec: IOSTransitionSpec, - screenInterpolator: _StackViewStyleInterpolator.default.forHorizontal, - containerStyle: { - backgroundColor: '#000' - } - }; - var ModalSlideFromBottomIOS = { - transitionSpec: IOSTransitionSpec, - screenInterpolator: _StackViewStyleInterpolator.default.forVertical, - containerStyle: { - backgroundColor: '#000' - } - }; - var FadeInFromBottomAndroid = { - transitionSpec: { - duration: 350, - easing: _reactNative.Easing.out(_reactNative.Easing.poly(5)), - timing: _reactNative.Animated.timing - }, - screenInterpolator: _StackViewStyleInterpolator.default.forFadeFromBottomAndroid - }; - var FadeOutToBottomAndroid = { - transitionSpec: { - duration: 230, - easing: _reactNative.Easing.in(_reactNative.Easing.poly(4)), - timing: _reactNative.Animated.timing - }, - screenInterpolator: _StackViewStyleInterpolator.default.forFadeFromBottomAndroid - }; - - function defaultTransitionConfig(transitionProps, prevTransitionProps, isModal) { - if (_reactNative.Platform.OS === 'android') { - if (prevTransitionProps && transitionProps.index < prevTransitionProps.index) { - return FadeOutToBottomAndroid; - } - - return FadeInFromBottomAndroid; - } - - if (isModal) { - return ModalSlideFromBottomIOS; - } - - return SlideFromRightIOS; - } - - function getTransitionConfig(transitionConfigurer, transitionProps, prevTransitionProps, isModal) { - var defaultConfig = defaultTransitionConfig(transitionProps, prevTransitionProps, isModal); - - if (transitionConfigurer) { - return _objectSpread({}, defaultConfig, transitionConfigurer(transitionProps, prevTransitionProps, isModal)); - } - - return defaultConfig; - } - - var _default = { - defaultTransitionConfig: defaultTransitionConfig, - getTransitionConfig: getTransitionConfig, - SlideFromRightIOS: SlideFromRightIOS, - ModalSlideFromBottomIOS: ModalSlideFromBottomIOS, - FadeInFromBottomAndroid: FadeInFromBottomAndroid, - FadeOutToBottomAndroid: FadeOutToBottomAndroid - }; - exports.default = _default; -},569,[1,568,575],"node_modules/react-navigation-stack/dist/views/StackView/StackViewTransitionConfigs.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); - - var _getSceneIndicesForInterpolationInputRange = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "../../utils/getSceneIndicesForInterpolationInputRange")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function forInitial(props) { - var navigation = props.navigation, - scene = props.scene; - var focused = navigation.state.index === scene.index; - var opacity = focused ? 1 : 0; - var translate = focused ? 0 : 1000000; - return { - opacity: opacity, - transform: [{ - translateX: translate - }, { - translateY: translate - }] - }; - } - - function forHorizontal(props) { - var layout = props.layout, - position = props.position, - scene = props.scene; - - if (!layout.isMeasured) { - return forInitial(props); - } - - var interpolate = (0, _getSceneIndicesForInterpolationInputRange.default)(props); - if (!interpolate) return { - opacity: 0 - }; - var first = interpolate.first, - last = interpolate.last; - var index = scene.index; - var opacity = position.interpolate({ - inputRange: [first, first + 0.01, index, last - 0.01, last], - outputRange: [0, 1, 1, 0.85, 0] - }); - var width = layout.initWidth; - var translateX = position.interpolate({ - inputRange: [first, index, last], - outputRange: _reactNative.I18nManager.isRTL ? [-width, 0, width * 0.3] : [width, 0, width * -0.3] - }); - var translateY = 0; - return { - opacity: opacity, - transform: [{ - translateX: translateX - }, { - translateY: translateY - }] - }; - } - - function forVertical(props) { - var layout = props.layout, - position = props.position, - scene = props.scene; - - if (!layout.isMeasured) { - return forInitial(props); - } - - var interpolate = (0, _getSceneIndicesForInterpolationInputRange.default)(props); - if (!interpolate) return { - opacity: 0 - }; - var first = interpolate.first, - last = interpolate.last; - var index = scene.index; - var opacity = position.interpolate({ - inputRange: [first, first + 0.01, index, last - 0.01, last], - outputRange: [0, 1, 1, 0.85, 0] - }); - var height = layout.initHeight; - var translateY = position.interpolate({ - inputRange: [first, index, last], - outputRange: [height, 0, 0] - }); - var translateX = 0; - return { - opacity: opacity, - transform: [{ - translateX: translateX - }, { - translateY: translateY - }] - }; - } - - function forFadeFromBottomAndroid(props) { - var layout = props.layout, - position = props.position, - scene = props.scene; - - if (!layout.isMeasured) { - return forInitial(props); - } - - var interpolate = (0, _getSceneIndicesForInterpolationInputRange.default)(props); - if (!interpolate) return { - opacity: 0 - }; - var first = interpolate.first, - last = interpolate.last; - var index = scene.index; - var inputRange = [first, index, last - 0.01, last]; - var opacity = position.interpolate({ - inputRange: inputRange, - outputRange: [0, 1, 1, 0] - }); - var translateY = position.interpolate({ - inputRange: inputRange, - outputRange: [50, 0, 0, 0] - }); - var translateX = 0; - return { - opacity: opacity, - transform: [{ - translateX: translateX - }, { - translateY: translateY - }] - }; - } - - function forFade(props) { - var layout = props.layout, - position = props.position, - scene = props.scene; - - if (!layout.isMeasured) { - return forInitial(props); - } - - var interpolate = (0, _getSceneIndicesForInterpolationInputRange.default)(props); - if (!interpolate) return { - opacity: 0 - }; - var first = interpolate.first, - last = interpolate.last; - var index = scene.index; - var opacity = position.interpolate({ - inputRange: [first, index, last], - outputRange: [0, 1, 1] - }); - return { - opacity: opacity - }; - } - - var _default = { - forHorizontal: forHorizontal, - forVertical: forVertical, - forFadeFromBottomAndroid: forFadeFromBottomAndroid, - forFade: forFade - }; - exports.default = _default; -},568,[1,581],"node_modules/react-navigation-stack/dist/views/StackView/StackViewStyleInterpolator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.supportsImprovedSpringAnimation = void 0; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); - - var PlatformConstants = _reactNative.NativeModules.PlatformConstants; - - var supportsImprovedSpringAnimation = function supportsImprovedSpringAnimation() { - if (PlatformConstants && PlatformConstants.reactNativeVersion) { - var _PlatformConstants$re = PlatformConstants.reactNativeVersion, - major = _PlatformConstants$re.major, - minor = _PlatformConstants$re.minor; - return minor >= 50 || major === 0 && minor === 0; - } - - return false; - }; - - exports.supportsImprovedSpringAnimation = supportsImprovedSpringAnimation; -},575,[1],"node_modules/react-navigation-stack/dist/utils/ReactNativeFeatures.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _invariant = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../utils/invariant")); - - var _ScenesReducer = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./ScenesReducer")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/Transitioner.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Transitioner: { - displayName: "Transitioner" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-stack/dist/views/Transitioner.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var DefaultTransitionSpec = { - duration: 250, - easing: _reactNative.Easing.inOut(_reactNative.Easing.ease), - timing: _reactNative.Animated.timing - }; - - var Transitioner = function (_React$Component) { - function Transitioner(props, context) { - var _this; - - _classCallCheck(this, Transitioner); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(Transitioner).call(this, props, context)); - - _this._onLayout = function (event) { - var _event$nativeEvent$la = event.nativeEvent.layout, - height = _event$nativeEvent$la.height, - width = _event$nativeEvent$la.width; - - if (_this.state.layout.initWidth === width && _this.state.layout.initHeight === height) { - return; - } - - var layout = _objectSpread({}, _this.state.layout, { - initHeight: height, - initWidth: width, - isMeasured: true - }); - - layout.height.setValue(height); - layout.width.setValue(width); - - var nextState = _objectSpread({}, _this.state, { - layout: layout - }); - - _this._transitionProps = buildTransitionProps(_this.props, nextState); - - _this.setState(nextState); - }; - - _this._onTransitionEnd = function () { - if (!_this._isMounted) { - return; - } - - var prevTransitionProps = _this._prevTransitionProps; - _this._prevTransitionProps = null; - var scenes = filterStale(_this.state.scenes); - - var nextState = _objectSpread({}, _this.state, { - scenes: scenes - }); - - _this._transitionProps = buildTransitionProps(_this.props, nextState); - - _this.setState(nextState, function _callee() { - var result; - return regeneratorRuntime.async(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - if (!_this.props.onTransitionEnd) { - _context.next = 5; - break; - } - - result = _this.props.onTransitionEnd(_this._transitionProps, prevTransitionProps); - - if (!(result instanceof Promise)) { - _context.next = 5; - break; - } - - _context.next = 5; - return regeneratorRuntime.awrap(result); - - case 5: - if (_this._queuedTransition) { - _this._startTransition(_this._queuedTransition.nextProps, _this._queuedTransition.nextScenes, _this._queuedTransition.indexHasChanged); - - _this._queuedTransition = null; - } else { - _this._isTransitionRunning = false; - } - - case 6: - case "end": - return _context.stop(); - } - } - }, null, this); - }); - }; - - var _layout = { - height: new _reactNative.Animated.Value(0), - initHeight: 0, - initWidth: 0, - isMeasured: false, - width: new _reactNative.Animated.Value(0) - }; - _this.state = { - layout: _layout, - position: new _reactNative.Animated.Value(_this.props.navigation.state.index), - progress: new _reactNative.Animated.Value(1), - scenes: (0, _ScenesReducer.default)([], _this.props.navigation.state, null, _this.props.descriptors) - }; - _this._prevTransitionProps = null; - _this._transitionProps = buildTransitionProps(props, _this.state); - _this._isMounted = false; - _this._isTransitionRunning = false; - _this._queuedTransition = null; - return _this; - } - - _createClass(Transitioner, [{ - key: "componentDidMount", - value: function componentDidMount() { - this._isMounted = true; - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this._isMounted = false; - } - }, { - key: "componentWillReceiveProps", - value: function componentWillReceiveProps(nextProps) { - var nextScenes = (0, _ScenesReducer.default)(this.state.scenes, nextProps.navigation.state, this.props.navigation.state, nextProps.descriptors); - - if (!nextProps.navigation.state.isTransitioning) { - nextScenes = filterStale(nextScenes); - } - - if (nextProps.screenProps !== this.props.screenProps) { - this.setState({ - nextScenes: nextScenes - }); - } - - if (nextScenes === this.state.scenes) { - return; - } - - var indexHasChanged = nextProps.navigation.state.index !== this.props.navigation.state.index; - - if (this._isTransitionRunning) { - this._queuedTransition = { - nextProps: nextProps, - nextScenes: nextScenes, - indexHasChanged: indexHasChanged - }; - return; - } - - this._startTransition(nextProps, nextScenes, indexHasChanged); - } - }, { - key: "_startTransition", - value: function _startTransition(nextProps, nextScenes, indexHasChanged) { - var _this2 = this; - - var nextState = _objectSpread({}, this.state, { - scenes: nextScenes - }); - - var position = nextState.position, - progress = nextState.progress; - progress.setValue(0); - this._prevTransitionProps = this._transitionProps; - this._transitionProps = buildTransitionProps(nextProps, nextState); - var toValue = nextProps.navigation.state.index; - - if (!this._transitionProps.navigation.state.isTransitioning) { - this.setState(nextState, function _callee2() { - var result; - return regeneratorRuntime.async(function _callee2$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - result = nextProps.onTransitionStart(_this2._transitionProps, _this2._prevTransitionProps); - - if (!(result instanceof Promise)) { - _context2.next = 4; - break; - } - - _context2.next = 4; - return regeneratorRuntime.awrap(result); - - case 4: - progress.setValue(1); - position.setValue(toValue); - - _this2._onTransitionEnd(); - - case 7: - case "end": - return _context2.stop(); - } - } - }, null, this); - }); - return; - } - - var transitionUserSpec = nextProps.configureTransition ? nextProps.configureTransition(this._transitionProps, this._prevTransitionProps) : null; - - var transitionSpec = _objectSpread({}, DefaultTransitionSpec, transitionUserSpec); - - var timing = transitionSpec.timing; - delete transitionSpec.timing; - var positionHasChanged = position.__getValue() !== toValue; - var animations = indexHasChanged && positionHasChanged ? [timing(progress, _objectSpread({}, transitionSpec, { - toValue: 1 - })), timing(position, _objectSpread({}, transitionSpec, { - toValue: nextProps.navigation.state.index - }))] : []; - this._isTransitionRunning = true; - this.setState(nextState, function _callee3() { - var result; - return regeneratorRuntime.async(function _callee3$(_context3) { - while (1) { - switch (_context3.prev = _context3.next) { - case 0: - if (!nextProps.onTransitionStart) { - _context3.next = 5; - break; - } - - result = nextProps.onTransitionStart(_this2._transitionProps, _this2._prevTransitionProps); - - if (!(result instanceof Promise)) { - _context3.next = 5; - break; - } - - _context3.next = 5; - return regeneratorRuntime.awrap(result); - - case 5: - _reactNative.Animated.parallel(animations).start(_this2._onTransitionEnd); - - case 6: - case "end": - return _context3.stop(); - } - } - }, null, this); - }); - } - }, { - key: "render", - value: function render() { - return _react.default.createElement(_reactNative.View, { - onLayout: this._onLayout, - style: styles.main, - __source: { - fileName: _jsxFileName, - lineNumber: 141 - } - }, this.props.render(this._transitionProps, this._prevTransitionProps)); - } - }]); - - _inherits(Transitioner, _React$Component); - - return Transitioner; - }(_react.default.Component); - - Transitioner = _wrapComponent("Transitioner")(Transitioner); - - function buildTransitionProps(props, state) { - var navigation = props.navigation; - var layout = state.layout, - position = state.position, - progress = state.progress, - scenes = state.scenes; - var scene = scenes.find(isSceneActive); - (0, _invariant.default)(scene, 'Could not find active scene'); - return { - layout: layout, - navigation: navigation, - position: position, - progress: progress, - scenes: scenes, - scene: scene, - index: scene.index - }; - } - - function isSceneNotStale(scene) { - return !scene.isStale; - } - - function filterStale(scenes) { - var filtered = scenes.filter(isSceneNotStale); - - if (filtered.length === scenes.length) { - return scenes; - } - - return filtered; - } - - function isSceneActive(scene) { - return scene.isActive; - } - - var styles = _reactNative.StyleSheet.create({ - main: { - flex: 1 - } - }); - - var _default2 = Transitioner; - exports.default = _default2; -},571,[122,161,1,576,572],"node_modules/react-navigation-stack/dist/views/Transitioner.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = ScenesReducer; - - var _invariant = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "../utils/invariant")); - - var _shallowEqual = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "../utils/shallowEqual")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var SCENE_KEY_PREFIX = 'scene_'; - - function compareKey(one, two) { - var delta = one.length - two.length; - - if (delta > 0) { - return 1; - } - - if (delta < 0) { - return -1; - } - - return one > two ? 1 : -1; - } - - function compareScenes(one, two) { - if (one.index > two.index) { - return 1; - } - - if (one.index < two.index) { - return -1; - } - - return compareKey(one.key, two.key); - } - - function areScenesShallowEqual(one, two) { - return one.key === two.key && one.index === two.index && one.isStale === two.isStale && one.isActive === two.isActive && areRoutesShallowEqual(one.route, two.route); - } - - function areRoutesShallowEqual(one, two) { - if (!one || !two) { - return one === two; - } - - if (one.key !== two.key) { - return false; - } - - return (0, _shallowEqual.default)(one, two); - } - - function ScenesReducer(scenes, nextState, prevState, descriptors) { - scenes.forEach(function (scene) { - var route = scene.route; - - if (descriptors && descriptors[route.key]) { - scene.descriptor = descriptors[route.key]; - } - }); - - if (prevState === nextState) { - return scenes; - } - - var prevScenes = new Map(); - var freshScenes = new Map(); - var staleScenes = new Map(); - scenes.forEach(function (scene) { - var key = scene.key; - - if (scene.isStale) { - staleScenes.set(key, scene); - } - - prevScenes.set(key, scene); - }); - var nextKeys = new Set(); - nextState.routes.forEach(function (route, index) { - var key = SCENE_KEY_PREFIX + route.key; - var descriptor = descriptors && descriptors[route.key]; - var scene = { - index: index, - isActive: false, - isStale: false, - key: key, - route: route, - descriptor: descriptor - }; - (0, _invariant.default)(!nextKeys.has(key), "navigation.state.routes[" + index + "].key \"" + key + "\" conflicts with " + 'another route!'); - nextKeys.add(key); - - if (staleScenes.has(key)) { - staleScenes.delete(key); - } - - freshScenes.set(key, scene); - }); - - if (prevState) { - prevState.routes.forEach(function (route, index) { - var key = SCENE_KEY_PREFIX + route.key; - - if (freshScenes.has(key)) { - return; - } - - var lastScene = scenes.find(function (scene) { - return scene.route.key === route.key; - }); - var descriptor = lastScene ? lastScene.descriptor : descriptors[route.key]; - - if (descriptor) { - staleScenes.set(key, { - index: index, - isActive: false, - isStale: true, - key: key, - route: route, - descriptor: descriptor - }); - } - }); - } - - var nextScenes = []; - - var mergeScene = function mergeScene(nextScene) { - var key = nextScene.key; - var prevScene = prevScenes.has(key) ? prevScenes.get(key) : null; - - if (prevScene && areScenesShallowEqual(prevScene, nextScene)) { - nextScenes.push(prevScene); - } else { - nextScenes.push(nextScene); - } - }; - - staleScenes.forEach(mergeScene); - freshScenes.forEach(mergeScene); - nextScenes.sort(compareScenes); - var activeScenesCount = 0; - nextScenes.forEach(function (scene, ii) { - var isActive = !scene.isStale && scene.index === nextState.index; - - if (isActive !== scene.isActive) { - nextScenes[ii] = _objectSpread({}, scene, { - isActive: isActive - }); - } - - if (isActive) { - activeScenesCount++; - } - }); - (0, _invariant.default)(activeScenesCount === 1, 'there should always be only one scene active, not %s.', activeScenesCount); - - if (nextScenes.length !== scenes.length) { - return nextScenes; - } - - if (nextScenes.some(function (scene, index) { - return !areScenesShallowEqual(scenes[index], scene); - })) { - return nextScenes; - } - - return scenes; - } -},572,[576,582],"node_modules/react-navigation-stack/dist/views/ScenesReducer.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var hasOwnProperty = Object.prototype.hasOwnProperty; - - function is(x, y) { - if (x === y) { - return x !== 0 || y !== 0 || 1 / x === 1 / y; - } else { - return x !== x && y !== y; - } - } - - function shallowEqual(objA, objB) { - if (is(objA, objB)) { - return true; - } - - if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) { - return false; - } - - var keysA = Object.keys(objA); - var keysB = Object.keys(objB); - - if (keysA.length !== keysB.length) { - return false; - } - - for (var i = 0; i < keysA.length; i++) { - if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) { - return false; - } - } - - return true; - } - - var _default = shallowEqual; - exports.default = _default; -},582,[],"node_modules/react-navigation-stack/dist/utils/shallowEqual.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _createNavigationContainer = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "../createNavigationContainer")); - - var _createSwitchNavigator = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./createSwitchNavigator")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var SwitchNavigator = function SwitchNavigator(routeConfigs) { - var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var navigator = (0, _createSwitchNavigator.default)(routeConfigs, config); - return (0, _createNavigationContainer.default)(navigator); - }; - - var _default = SwitchNavigator; - exports.default = _default; -},523,[516,583],"node_modules/react-navigation/src/navigators/createContainedSwitchNavigator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _createNavigator = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "../navigators/createNavigator")); - - var _SwitchRouter = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "../routers/SwitchRouter")); - - var _SwitchView = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../views/SwitchView/SwitchView")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function createSwitchNavigator(routeConfigMap) { - var switchConfig = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var router = (0, _SwitchRouter.default)(routeConfigMap, switchConfig); - var Navigator = (0, _createNavigator.default)(_SwitchView.default, router, switchConfig); - return Navigator; - } - - var _default = createSwitchNavigator; - exports.default = _default; -},583,[122,519,531,539],"node_modules/react-navigation/src/navigators/createSwitchNavigator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _invariant = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "../utils/invariant")); - - var _getScreenForRouteName = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./getScreenForRouteName")); - - var _createConfigGetter = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "./createConfigGetter")); - - var _NavigationActions = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../NavigationActions")); - - var _StackActions = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./StackActions")); - - var _validateRouteConfigMap = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./validateRouteConfigMap")); - - var _pathUtils = _$$_REQUIRE(_dependencyMap[6], "./pathUtils"); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var defaultActionCreators = function defaultActionCreators(route, navStateKey) { - return {}; - }; - - function childrenUpdateWithoutSwitchingIndex(actionType) { - return [_NavigationActions.default.SET_PARAMS, _StackActions.default.COMPLETE_TRANSITION].includes(actionType); - } - - var _default = function _default(routeConfigs) { - var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - (0, _validateRouteConfigMap.default)(routeConfigs); - var order = config.order || Object.keys(routeConfigs); - var getCustomActionCreators = config.getCustomActionCreators || defaultActionCreators; - var initialRouteParams = config.initialRouteParams; - var initialRouteName = config.initialRouteName || order[0]; - var backBehavior = config.backBehavior || 'none'; - var shouldBackNavigateToInitialRoute = backBehavior === 'initialRoute'; - var resetOnBlur = config.hasOwnProperty('resetOnBlur') ? config.resetOnBlur : true; - var initialRouteIndex = order.indexOf(initialRouteName); - var childRouters = {}; - order.forEach(function (routeName) { - var routeConfig = routeConfigs[routeName]; - childRouters[routeName] = null; - var screen = (0, _getScreenForRouteName.default)(routeConfigs, routeName); - - if (screen.router) { - childRouters[routeName] = screen.router; - } - }); - - var _createPathParser = (0, _pathUtils.createPathParser)(childRouters, routeConfigs, config.paths), - getPathAndParamsForRoute = _createPathParser.getPathAndParamsForRoute, - _getActionForPathAndParams = _createPathParser.getActionForPathAndParams; - - if (initialRouteIndex === -1) { - throw new Error("Invalid initialRouteName '" + initialRouteName + "'." + ("Should be one of " + order.map(function (n) { - return "\"" + n + "\""; - }).join(', '))); - } - - function resetChildRoute(routeName) { - var params = routeName === initialRouteName ? initialRouteParams : undefined; - var childRouter = childRouters[routeName]; - - if (childRouter) { - var childAction = _NavigationActions.default.init(); - - return _objectSpread({}, childRouter.getStateForAction(childAction), { - key: routeName, - routeName: routeName, - params: params - }); - } - - return { - key: routeName, - routeName: routeName, - params: params - }; - } - - function getNextState(prevState, possibleNextState) { - if (!prevState) { - return possibleNextState; - } - - var nextState; - - if (prevState.index !== possibleNextState.index && resetOnBlur) { - var prevRouteName = prevState.routes[prevState.index].routeName; - - var nextRoutes = _toConsumableArray(possibleNextState.routes); - - nextRoutes[prevState.index] = resetChildRoute(prevRouteName); - return _objectSpread({}, possibleNextState, { - routes: nextRoutes - }); - } else { - nextState = possibleNextState; - } - - return nextState; - } - - function getInitialState() { - var routes = order.map(resetChildRoute); - return { - routes: routes, - index: initialRouteIndex, - isTransitioning: false - }; - } - - return { - childRouters: childRouters, - getActionCreators: function getActionCreators(route, stateKey) { - return getCustomActionCreators(route, stateKey); - }, - getStateForAction: function getStateForAction(action, inputState) { - var prevState = inputState ? _objectSpread({}, inputState) : inputState; - var state = inputState || getInitialState(); - var activeChildIndex = state.index; - - if (action.type === _NavigationActions.default.INIT) { - var params = action.params; - - if (params) { - state.routes = state.routes.map(function (route) { - return _objectSpread({}, route, { - params: _objectSpread({}, route.params, params, route.routeName === initialRouteName ? initialRouteParams : null) - }); - }); - } - } - - var activeChildLastState = state.routes[state.index]; - var activeChildRouter = childRouters[order[state.index]]; - - if (activeChildRouter) { - var activeChildState = activeChildRouter.getStateForAction(action, activeChildLastState); - - if (!activeChildState && inputState) { - return null; - } - - if (activeChildState && activeChildState !== activeChildLastState) { - var _routes = _toConsumableArray(state.routes); - - _routes[state.index] = activeChildState; - return getNextState(prevState, _objectSpread({}, state, { - routes: _routes - })); - } - } - - var isBackEligible = action.key == null || action.key === activeChildLastState.key; - - if (action.type === _NavigationActions.default.BACK) { - if (isBackEligible && shouldBackNavigateToInitialRoute) { - activeChildIndex = initialRouteIndex; - } else { - return state; - } - } - - var didNavigate = false; - - if (action.type === _NavigationActions.default.NAVIGATE) { - didNavigate = !!order.find(function (childId, i) { - if (childId === action.routeName) { - activeChildIndex = i; - return true; - } - - return false; - }); - - if (didNavigate) { - var childState = state.routes[activeChildIndex]; - var childRouter = childRouters[action.routeName]; - var newChildState; - - if (action.action) { - newChildState = childRouter ? childRouter.getStateForAction(action.action, childState) : null; - } else if (!action.action && action.params) { - newChildState = _objectSpread({}, childState, { - params: _objectSpread({}, childState.params || {}, action.params) - }); - } - - if (newChildState && newChildState !== childState) { - var _routes2 = _toConsumableArray(state.routes); - - _routes2[activeChildIndex] = newChildState; - return getNextState(prevState, _objectSpread({}, state, { - routes: _routes2, - index: activeChildIndex - })); - } else if (!newChildState && state.index === activeChildIndex && prevState) { - return null; - } - } - } - - if (action.type === _NavigationActions.default.SET_PARAMS) { - var key = action.key; - var lastRoute = state.routes.find(function (route) { - return route.key === key; - }); - - if (lastRoute) { - var _params = _objectSpread({}, lastRoute.params, action.params); - - var _routes3 = _toConsumableArray(state.routes); - - _routes3[state.routes.indexOf(lastRoute)] = _objectSpread({}, lastRoute, { - params: _params - }); - return getNextState(prevState, _objectSpread({}, state, { - routes: _routes3 - })); - } - } - - if (activeChildIndex !== state.index) { - return getNextState(prevState, _objectSpread({}, state, { - index: activeChildIndex - })); - } else if (didNavigate && !inputState) { - return state; - } else if (didNavigate) { - return _objectSpread({}, state); - } - - var index = state.index; - var routes = state.routes; - order.find(function (childId, i) { - var childRouter = childRouters[childId]; - - if (i === index) { - return false; - } - - var childState = routes[i]; - - if (childRouter) { - childState = childRouter.getStateForAction(action, childState); - } - - if (!childState) { - index = i; - return true; - } - - if (childState !== routes[i]) { - routes = _toConsumableArray(routes); - routes[i] = childState; - index = i; - return true; - } - - return false; - }); - - if (childrenUpdateWithoutSwitchingIndex(action.type)) { - index = state.index; - } - - if (index !== state.index || routes !== state.routes) { - return getNextState(prevState, _objectSpread({}, state, { - index: index, - routes: routes - })); - } - - return state; - }, - getComponentForState: function getComponentForState(state) { - var routeName = state.routes[state.index].routeName; - (0, _invariant.default)(routeName, "There is no route defined for index " + state.index + ". Check that\n that you passed in a navigation state with a valid tab/screen index."); - var childRouter = childRouters[routeName]; - - if (childRouter) { - return childRouter.getComponentForState(state.routes[state.index]); - } - - return (0, _getScreenForRouteName.default)(routeConfigs, routeName); - }, - getComponentForRouteName: function getComponentForRouteName(routeName) { - return (0, _getScreenForRouteName.default)(routeConfigs, routeName); - }, - getPathAndParamsForState: function getPathAndParamsForState(state) { - var route = state.routes[state.index]; - return getPathAndParamsForRoute(route); - }, - getActionForPathAndParams: function getActionForPathAndParams(path, params) { - return _getActionForPathAndParams(path, params); - }, - getScreenOptions: (0, _createConfigGetter.default)(routeConfigs, config.navigationOptions) - }; - }; - - exports.default = _default; -},531,[545,533,532,527,528,534,535],"node_modules/react-navigation/src/routers/SwitchRouter.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = getScreenForRouteName; - - var _invariant = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "../utils/invariant")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function getScreenForRouteName(routeConfigs, routeName) { - var routeConfig = routeConfigs[routeName]; - - if (!routeConfig) { - throw new Error("There is no route defined for key " + routeName + ".\n" + ("Must be one of: " + Object.keys(routeConfigs).map(function (a) { - return "'" + a + "'"; - }).join(','))); - } - - if (routeConfig.screen) { - return routeConfig.screen; - } - - if (typeof routeConfig.getScreen === 'function') { - var screen = routeConfig.getScreen(); - (0, _invariant.default)(typeof screen === 'function', "The getScreen defined for route '" + routeName + " didn't return a valid " + 'screen or navigator.\n\n' + 'Please pass it like this:\n' + (routeName + ": {\n getScreen: () => require('./MyScreen').default\n}")); - return screen; - } - - return routeConfig; - } -},533,[545],"node_modules/react-navigation/src/routers/getScreenForRouteName.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _invariant = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "../utils/invariant")); - - var _getScreenForRouteName = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./getScreenForRouteName")); - - var _validateScreenOptions = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "./validateScreenOptions")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function applyConfig(configurer, navigationOptions, configProps) { - if (typeof configurer === 'function') { - return _objectSpread({}, navigationOptions, configurer(_objectSpread({}, configProps, { - navigationOptions: navigationOptions - }))); - } - - if (typeof configurer === 'object') { - return _objectSpread({}, navigationOptions, configurer); - } - - return navigationOptions; - } - - var _default = function _default(routeConfigs, navigatorScreenConfig) { - return function (navigation, screenProps) { - var state = navigation.state, - dispatch = navigation.dispatch; - var route = state; - (0, _invariant.default)(route.routeName && typeof route.routeName === 'string', 'Cannot get config because the route does not have a routeName.'); - var Component = (0, _getScreenForRouteName.default)(routeConfigs, route.routeName); - var routeConfig = routeConfigs[route.routeName]; - var routeScreenConfig = routeConfig === Component ? null : routeConfig.navigationOptions; - var componentScreenConfig = Component.navigationOptions; - var configOptions = { - navigation: navigation, - screenProps: screenProps || {} - }; - var outputConfig = applyConfig(navigatorScreenConfig, {}, configOptions); - outputConfig = applyConfig(componentScreenConfig, outputConfig, configOptions); - outputConfig = applyConfig(routeScreenConfig, outputConfig, configOptions); - (0, _validateScreenOptions.default)(outputConfig, route); - return outputConfig; - }; - }; - - exports.default = _default; -},532,[545,533,584],"node_modules/react-navigation/src/routers/createConfigGetter.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - var deprecatedKeys = ['tabBar']; - - var _default = function _default(screenOptions, route) { - var keys = Object.keys(screenOptions); - var deprecatedKey = keys.find(function (key) { - return deprecatedKeys.includes(key); - }); - - if (typeof screenOptions.title === 'function') { - throw new Error(["`title` cannot be defined as a function in navigation options for `" + route.routeName + "` screen. \n", 'Try replacing the following:', '{', ' title: ({ state }) => state...', '}', '', 'with:', '({ navigation }) => ({', ' title: navigation.state...', '})'].join('\n')); - } - - if (deprecatedKey && typeof screenOptions[deprecatedKey] === 'function') { - throw new Error(["`" + deprecatedKey + "` cannot be defined as a function in navigation options for `" + route.routeName + "` screen. \n", 'Try replacing the following:', '{', " " + deprecatedKey + ": ({ state }) => ({", ' key: state...', ' })', '}', '', 'with:', '({ navigation }) => ({', " " + deprecatedKey + "Key: navigation.state...", '})'].join('\n')); - } - - if (deprecatedKey && typeof screenOptions[deprecatedKey] === 'object') { - throw new Error(["Invalid key `" + deprecatedKey + "` defined in navigation options for `" + route.routeName + "` screen.", '\n', 'Try replacing the following navigation options:', '{', " " + deprecatedKey + ": {"].concat(_toConsumableArray(Object.keys(screenOptions[deprecatedKey]).map(function (key) { - return " " + key + ": ...,"; - })), [' },', '}', '\n', 'with:', '{'], _toConsumableArray(Object.keys(screenOptions[deprecatedKey]).map(function (key) { - return " " + (deprecatedKey + key[0].toUpperCase() + key.slice(1)) + ": ...,"; - })), ['}']).join('\n')); - } - }; - - exports.default = _default; -},584,[],"node_modules/react-navigation/src/routers/validateScreenOptions.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var POP = 'Navigation/POP'; - var POP_TO_TOP = 'Navigation/POP_TO_TOP'; - var PUSH = 'Navigation/PUSH'; - var RESET = 'Navigation/RESET'; - var REPLACE = 'Navigation/REPLACE'; - var COMPLETE_TRANSITION = 'Navigation/COMPLETE_TRANSITION'; - - var pop = function pop(payload) { - return _objectSpread({ - type: POP - }, payload); - }; - - var popToTop = function popToTop(payload) { - return _objectSpread({ - type: POP_TO_TOP - }, payload); - }; - - var push = function push(payload) { - return _objectSpread({ - type: PUSH - }, payload); - }; - - var reset = function reset(payload) { - return _objectSpread({ - type: RESET - }, payload); - }; - - var replace = function replace(payload) { - return _objectSpread({ - type: REPLACE - }, payload); - }; - - var completeTransition = function completeTransition(payload) { - return _objectSpread({ - type: COMPLETE_TRANSITION - }, payload); - }; - - var _default = { - POP: POP, - POP_TO_TOP: POP_TO_TOP, - PUSH: PUSH, - RESET: RESET, - REPLACE: REPLACE, - COMPLETE_TRANSITION: COMPLETE_TRANSITION, - pop: pop, - popToTop: popToTop, - push: push, - reset: reset, - replace: replace, - completeTransition: completeTransition - }; - exports.default = _default; -},528,[],"node_modules/react-navigation/src/routers/StackActions.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _invariant = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "../utils/invariant")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function validateRouteConfigMap(routeConfigs) { - var routeNames = Object.keys(routeConfigs); - (0, _invariant.default)(routeNames.length > 0, 'Please specify at least one route when configuring a navigator.'); - routeNames.forEach(function (routeName) { - var routeConfig = routeConfigs[routeName]; - var screenComponent = getScreenComponent(routeConfig); - - if (!screenComponent || typeof screenComponent !== 'function' && typeof screenComponent !== 'string' && !routeConfig.getScreen) { - throw new Error("The component for route '" + routeName + "' must be a React component. For example:\n\nimport MyScreen from './MyScreen';\n...\n" + routeName + ": MyScreen,\n}\n\nYou can also use a navigator:\n\nimport MyNavigator from './MyNavigator';\n...\n" + routeName + ": MyNavigator,\n}"); - } - - if (routeConfig.screen && routeConfig.getScreen) { - throw new Error("Route '" + routeName + "' should declare a screen or a getScreen, not both."); - } - }); - } - - function getScreenComponent(routeConfig) { - if (!routeConfig) { - return null; - } - - return routeConfig.screen ? routeConfig.screen : routeConfig; - } - - var _default = validateRouteConfigMap; - exports.default = _default; -},534,[545],"node_modules/react-navigation/src/routers/validateRouteConfigMap.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")); - - var _SceneView = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "../SceneView")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/views/SwitchView/SwitchView.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - SwitchView: { - displayName: "SwitchView" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/views/SwitchView/SwitchView.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var SwitchView = _wrapComponent("SwitchView")(function (_React$Component) { - function SwitchView() { - _classCallCheck(this, SwitchView); - - return _possibleConstructorReturn(this, _getPrototypeOf(SwitchView).apply(this, arguments)); - } - - _createClass(SwitchView, [{ - key: "render", - value: function render() { - var state = this.props.navigation.state; - var activeKey = state.routes[state.index].key; - var descriptor = this.props.descriptors[activeKey]; - var ChildComponent = descriptor.getComponent(); - return _react.default.createElement(_SceneView.default, { - component: ChildComponent, - navigation: descriptor.navigation, - screenProps: this.props.screenProps, - __source: { - fileName: _jsxFileName, - lineNumber: 12 - } - }); - } - }]); - - _inherits(SwitchView, _React$Component); - - return SwitchView; - }(_react.default.Component)); - - var _default2 = SwitchView; - exports.default = _default2; -},539,[122,161,537],"node_modules/react-navigation/src/views/SwitchView/SwitchView.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _NavigationContext = _$$_REQUIRE(_dependencyMap[2], "./NavigationContext"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/views/SceneView.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - SceneView: { - displayName: "SceneView" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/views/SceneView.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var SceneView = _wrapComponent("SceneView")(function (_React$PureComponent) { - function SceneView() { - _classCallCheck(this, SceneView); - - return _possibleConstructorReturn(this, _getPrototypeOf(SceneView).apply(this, arguments)); - } - - _createClass(SceneView, [{ - key: "render", - value: function render() { - var _this$props = this.props, - screenProps = _this$props.screenProps, - Component = _this$props.component, - navigation = _this$props.navigation; - return _react.default.createElement(_NavigationContext.NavigationProvider, { - value: navigation, - __source: { - fileName: _jsxFileName, - lineNumber: 8 - } - }, _react.default.createElement(Component, { - screenProps: screenProps, - navigation: navigation, - __source: { - fileName: _jsxFileName, - lineNumber: 9 - } - })); - } - }]); - - _inherits(SceneView, _React$PureComponent); - - return SceneView; - }(_react.default.PureComponent)); - - var _default2 = SceneView; - exports.default = _default2; -},537,[122,161,521],"node_modules/react-navigation/src/views/SceneView.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = { - get createDrawerNavigator() { - return _$$_REQUIRE(_dependencyMap[0], './navigators/createDrawerNavigator').default; - }, - - get DrawerRouter() { - return _$$_REQUIRE(_dependencyMap[1], './routers/DrawerRouter').default; - }, - - get DrawerActions() { - return _$$_REQUIRE(_dependencyMap[2], './routers/DrawerActions').default; - }, - - get DrawerNavigatorItems() { - return _$$_REQUIRE(_dependencyMap[3], './views/DrawerNavigatorItems').default; - }, - - get DrawerSidebar() { - return _$$_REQUIRE(_dependencyMap[4], './views/DrawerSidebar').default; - }, - - get DrawerView() { - return _$$_REQUIRE(_dependencyMap[5], './views/DrawerView').default; - } - - }; -},524,[585,586,587,588,589,590],"node_modules/react-navigation-drawer/dist/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); - - var _reactNavigation = _$$_REQUIRE(_dependencyMap[2], "react-navigation"); - - var _DrawerRouter = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../routers/DrawerRouter")); - - var _DrawerView = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../views/DrawerView")); - - var _DrawerNavigatorItems = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "../views/DrawerNavigatorItems")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-drawer/dist/navigators/createDrawerNavigator.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - var defaultContentComponent = function defaultContentComponent(props) { - return _react.default.createElement(_reactNative.ScrollView, { - alwaysBounceVertical: false, - __source: { - fileName: _jsxFileName, - lineNumber: 12 - } - }, _react.default.createElement(_reactNavigation.SafeAreaView, { - forceInset: { - top: 'always', - horizontal: 'never' - }, - __source: { - fileName: _jsxFileName, - lineNumber: 13 - } - }, _react.default.createElement(_DrawerNavigatorItems.default, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 14 - } - })))); - }; - - var DefaultDrawerConfig = { - drawerWidth: function drawerWidth() { - var _Dimensions$get = _reactNative.Dimensions.get('window'), - height = _Dimensions$get.height, - width = _Dimensions$get.width; - - var smallerAxisSize = Math.min(height, width); - var isLandscape = width > height; - var isTablet = smallerAxisSize >= 600; - var appBarHeight = _reactNative.Platform.OS === 'ios' ? isLandscape ? 32 : 44 : 56; - var maxWidth = isTablet ? 320 : 280; - return Math.min(smallerAxisSize - appBarHeight, maxWidth); - }, - contentComponent: defaultContentComponent, - drawerPosition: 'left', - drawerBackgroundColor: 'white', - useNativeAnimations: true - }; - - var DrawerNavigator = function DrawerNavigator(routeConfigs) { - var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var mergedConfig = _objectSpread({}, DefaultDrawerConfig, config); - - var order = mergedConfig.order, - paths = mergedConfig.paths, - initialRouteName = mergedConfig.initialRouteName, - initialRouteParams = mergedConfig.initialRouteParams, - backBehavior = mergedConfig.backBehavior, - getCustomActionCreators = mergedConfig.getCustomActionCreators, - drawerConfig = _objectWithoutProperties(mergedConfig, ["order", "paths", "initialRouteName", "initialRouteParams", "backBehavior", "getCustomActionCreators"]); - - var routerConfig = { - order: order, - paths: paths, - initialRouteName: initialRouteName, - initialRouteParams: initialRouteParams, - backBehavior: backBehavior, - getCustomActionCreators: getCustomActionCreators - }; - var drawerRouter = (0, _DrawerRouter.default)(routeConfigs, routerConfig); - var navigator = (0, _reactNavigation.createNavigator)(_DrawerView.default, drawerRouter, drawerConfig); - return (0, _reactNavigation.createNavigationContainer)(navigator); - }; - - var _default = DrawerNavigator; - exports.default = _default; -},585,[122,1,509,586,590,588],"node_modules/react-navigation-drawer/dist/navigators/createDrawerNavigator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _reactNavigation = _$$_REQUIRE(_dependencyMap[0], "react-navigation"); - - var _DrawerActions = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./DrawerActions")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function withDefaultValue(obj, key, defaultValue) { - if (obj.hasOwnProperty(key) && typeof obj[key] !== 'undefined') { - return obj; - } - - obj[key] = defaultValue; - return obj; - } - - var getActiveRouteKey = function getActiveRouteKey(route) { - if (route.routes && route.routes[route.index]) { - return getActiveRouteKey(route.routes[route.index]); - } - - return route.key; - }; - - var _default = function _default(routeConfigs) { - var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - config = _objectSpread({}, config); - config = withDefaultValue(config, 'resetOnBlur', false); - config = withDefaultValue(config, 'backBehavior', 'initialRoute'); - var switchRouter = (0, _reactNavigation.SwitchRouter)(routeConfigs, config); - return _objectSpread({}, switchRouter, { - getActionCreators: function getActionCreators(route, navStateKey) { - return _objectSpread({ - openDrawer: function openDrawer() { - return _DrawerActions.default.openDrawer({ - key: navStateKey - }); - }, - closeDrawer: function closeDrawer() { - return _DrawerActions.default.closeDrawer({ - key: navStateKey - }); - }, - toggleDrawer: function toggleDrawer() { - return _DrawerActions.default.toggleDrawer({ - key: navStateKey - }); - } - }, switchRouter.getActionCreators(route, navStateKey)); - }, - getStateForAction: function getStateForAction(action, state) { - if (!state) { - return _objectSpread({}, switchRouter.getStateForAction(action, undefined), { - isDrawerOpen: false, - openId: 0, - closeId: 0, - toggleId: 0 - }); - } - - var isRouterTargeted = action.key == null || action.key === state.key; - - if (isRouterTargeted) { - if (action.type === _DrawerActions.default.DRAWER_CLOSED) { - return _objectSpread({}, state, { - isDrawerOpen: false - }); - } - - if (action.type === _DrawerActions.default.DRAWER_OPENED) { - return _objectSpread({}, state, { - isDrawerOpen: true - }); - } - - if (action.type === _DrawerActions.default.CLOSE_DRAWER) { - return _objectSpread({}, state, { - closeId: state.closeId + 1 - }); - } - - if (action.type === _reactNavigation.NavigationActions.BACK && state.isDrawerOpen) { - return _objectSpread({}, state, { - closeId: state.closeId + 1 - }); - } - - if (action.type === _DrawerActions.default.OPEN_DRAWER) { - return _objectSpread({}, state, { - openId: state.openId + 1 - }); - } - - if (action.type === _DrawerActions.default.TOGGLE_DRAWER) { - return _objectSpread({}, state, { - toggleId: state.toggleId + 1 - }); - } - } - - var switchedState = switchRouter.getStateForAction(action, state); - - if (switchedState === null) { - return null; - } - - if (switchedState !== state) { - if (getActiveRouteKey(switchedState) !== getActiveRouteKey(state)) { - return _objectSpread({}, switchedState, { - closeId: state.closeId + 1 - }); - } - - return switchedState; - } - - return state; - } - }); - }; - - exports.default = _default; -},586,[509,587],"node_modules/react-navigation-drawer/dist/routers/DrawerRouter.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var OPEN_DRAWER = 'Navigation/OPEN_DRAWER'; - var CLOSE_DRAWER = 'Navigation/CLOSE_DRAWER'; - var TOGGLE_DRAWER = 'Navigation/TOGGLE_DRAWER'; - var DRAWER_OPENED = 'Navigation/DRAWER_OPENED'; - var DRAWER_CLOSED = 'Navigation/DRAWER_CLOSED'; - - var openDrawer = function openDrawer(payload) { - return _objectSpread({ - type: OPEN_DRAWER - }, payload); - }; - - var closeDrawer = function closeDrawer(payload) { - return _objectSpread({ - type: CLOSE_DRAWER - }, payload); - }; - - var toggleDrawer = function toggleDrawer(payload) { - return _objectSpread({ - type: TOGGLE_DRAWER - }, payload); - }; - - var _default = { - OPEN_DRAWER: OPEN_DRAWER, - CLOSE_DRAWER: CLOSE_DRAWER, - TOGGLE_DRAWER: TOGGLE_DRAWER, - DRAWER_OPENED: DRAWER_OPENED, - DRAWER_CLOSED: DRAWER_CLOSED, - openDrawer: openDrawer, - closeDrawer: closeDrawer, - toggleDrawer: toggleDrawer - }; - exports.default = _default; -},587,[],"node_modules/react-navigation-drawer/dist/routers/DrawerActions.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _reactNativeDrawerLayoutPolyfill = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "react-native-drawer-layout-polyfill")); - - var _reactNavigation = _$$_REQUIRE(_dependencyMap[4], "react-navigation"); - - var _DrawerSidebar = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./DrawerSidebar")); - - var _DrawerActions = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "../routers/DrawerActions")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-drawer/dist/views/DrawerView.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - DrawerView: { - displayName: "DrawerView" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-drawer/dist/views/DrawerView.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var DrawerView = _wrapComponent("DrawerView")(function (_React$PureComponent) { - function DrawerView() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, DrawerView); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DrawerView)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { - drawerWidth: typeof _this.props.navigationConfig.drawerWidth === 'function' ? _this.props.navigationConfig.drawerWidth() : _this.props.navigationConfig.drawerWidth - }, _this._handleDrawerOpen = function () { - _this.props.navigation.dispatch({ - type: _DrawerActions.default.DRAWER_OPENED, - key: _this.props.navigation.state.key - }); - }, _this._handleDrawerClose = function () { - _this.props.navigation.dispatch({ - type: _DrawerActions.default.DRAWER_CLOSED, - key: _this.props.navigation.state.key - }); - }, _this._updateWidth = function () { - var drawerWidth = typeof _this.props.navigationConfig.drawerWidth === 'function' ? _this.props.navigationConfig.drawerWidth() : _this.props.navigationConfig.drawerWidth; - - if (_this.state.drawerWidth !== drawerWidth) { - _this.setState({ - drawerWidth: drawerWidth - }); - } - }, _this._renderNavigationView = function () { - return _react.default.createElement(_DrawerSidebar.default, _extends({ - screenProps: _this.props.screenProps, - navigation: _this.props.navigation, - descriptors: _this.props.descriptors, - contentComponent: _this.props.navigationConfig.contentComponent, - contentOptions: _this.props.navigationConfig.contentOptions, - drawerPosition: _this.props.navigationConfig.drawerPosition, - style: _this.props.navigationConfig.style - }, _this.props.navigationConfig, { - __source: { - fileName: _jsxFileName, - lineNumber: 74 - } - })); - }, _temp)); - } - - _createClass(DrawerView, [{ - key: "componentDidMount", - value: function componentDidMount() { - _reactNative.Dimensions.addEventListener('change', this._updateWidth); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props$navigatio = this.props.navigation.state, - openId = _this$props$navigatio.openId, - closeId = _this$props$navigatio.closeId, - toggleId = _this$props$navigatio.toggleId, - isDrawerOpen = _this$props$navigatio.isDrawerOpen; - var _prevProps$navigation = prevProps.navigation.state, - prevOpenId = _prevProps$navigation.openId, - prevCloseId = _prevProps$navigation.closeId, - prevToggleId = _prevProps$navigation.toggleId; - - if (openId !== prevOpenId) { - this._drawer.openDrawer(); - } else if (closeId !== prevCloseId) { - this._drawer.closeDrawer(); - } else if (toggleId !== prevToggleId) { - if (isDrawerOpen) { - this._drawer.closeDrawer(); - } else { - this._drawer.openDrawer(); - } - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - _reactNative.Dimensions.removeEventListener('change', this._updateWidth); - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var state = this.props.navigation.state; - var activeKey = state.routes[state.index].key; - var descriptor = this.props.descriptors[activeKey]; - var drawerLockMode = descriptor.options.drawerLockMode; - return _react.default.createElement(_reactNativeDrawerLayoutPolyfill.default, { - ref: function ref(c) { - _this2._drawer = c; - }, - drawerLockMode: drawerLockMode || this.props.screenProps && this.props.screenProps.drawerLockMode || this.props.navigationConfig.drawerLockMode, - drawerBackgroundColor: this.props.navigationConfig.drawerBackgroundColor, - drawerWidth: this.state.drawerWidth, - onDrawerOpen: this._handleDrawerOpen, - onDrawerClose: this._handleDrawerClose, - useNativeAnimations: this.props.navigationConfig.useNativeAnimations, - renderNavigationView: this._renderNavigationView, - drawerPosition: this.props.navigationConfig.drawerPosition === 'right' ? _reactNativeDrawerLayoutPolyfill.default.positions.Right : _reactNativeDrawerLayoutPolyfill.default.positions.Left, - __source: { - fileName: _jsxFileName, - lineNumber: 84 - } - }, _react.default.createElement(_reactNavigation.SceneView, { - navigation: descriptor.navigation, - screenProps: this.props.screenProps, - component: descriptor.getComponent(), - __source: { - fileName: _jsxFileName, - lineNumber: 87 - } - })); - } - }]); - - _inherits(DrawerView, _React$PureComponent); - - return DrawerView; - }(_react.default.PureComponent)); - - var _default2 = DrawerView; - exports.default = _default2; -},590,[122,161,1,591,509,589,587],"node_modules/react-navigation-drawer/dist/views/DrawerView.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _reactNative = _$$_REQUIRE(_dependencyMap[0], 'react-native'); - - exports.default = _reactNative.DrawerLayoutAndroid; -},591,[1],"node_modules/react-native-drawer-layout-polyfill/dist/index.android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _reactNavigation = _$$_REQUIRE(_dependencyMap[3], "react-navigation"); - - var _invariant = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../utils/invariant")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-drawer/dist/views/DrawerSidebar.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - DrawerSidebar: { - displayName: "DrawerSidebar" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-drawer/dist/views/DrawerSidebar.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var DrawerSidebar = function (_React$PureComponent) { - function DrawerSidebar() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, DrawerSidebar); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DrawerSidebar)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._getScreenOptions = function (routeKey) { - var descriptor = _this.props.descriptors[routeKey]; - (0, _invariant.default)(descriptor.options, 'Cannot access screen descriptor options from drawer sidebar'); - return descriptor.options; - }, _this._getLabel = function (_ref) { - var focused = _ref.focused, - tintColor = _ref.tintColor, - route = _ref.route; - - var _this$_getScreenOptio = _this._getScreenOptions(route.key), - drawerLabel = _this$_getScreenOptio.drawerLabel, - title = _this$_getScreenOptio.title; - - if (drawerLabel) { - return typeof drawerLabel === 'function' ? drawerLabel({ - tintColor: tintColor, - focused: focused - }) : drawerLabel; - } - - if (typeof title === 'string') { - return title; - } - - return route.routeName; - }, _this._renderIcon = function (_ref2) { - var focused = _ref2.focused, - tintColor = _ref2.tintColor, - route = _ref2.route; - - var _this$_getScreenOptio2 = _this._getScreenOptions(route.key), - drawerIcon = _this$_getScreenOptio2.drawerIcon; - - if (drawerIcon) { - return typeof drawerIcon === 'function' ? drawerIcon({ - tintColor: tintColor, - focused: focused - }) : drawerIcon; - } - - return null; - }, _this._onItemPress = function (_ref3) { - var route = _ref3.route, - focused = _ref3.focused; - - if (!focused) { - var subAction; - - if (route.index != null && route.index !== 0) { - subAction = _reactNavigation.StackActions.reset({ - index: 0, - actions: [_reactNavigation.NavigationActions.navigate({ - routeName: route.routes[0].routeName - })] - }); - } - - _this.props.navigation.dispatch(_reactNavigation.NavigationActions.navigate({ - routeName: route.routeName, - action: subAction - })); - } - }, _temp)); - } - - _createClass(DrawerSidebar, [{ - key: "render", - value: function render() { - var ContentComponent = this.props.contentComponent; - - if (!ContentComponent) { - return null; - } - - var state = this.props.navigation.state; - (0, _invariant.default)(typeof state.index === 'number', 'should be set'); - return _react.default.createElement(_reactNative.View, { - style: [styles.container, this.props.style], - __source: { - fileName: _jsxFileName, - lineNumber: 66 - } - }, _react.default.createElement(ContentComponent, _extends({}, this.props.contentOptions, { - navigation: this.props.navigation, - descriptors: this.props.descriptors, - items: state.routes, - activeItemKey: state.routes[state.index] ? state.routes[state.index].key : null, - screenProps: this.props.screenProps, - getLabel: this._getLabel, - renderIcon: this._renderIcon, - onItemPress: this._onItemPress, - drawerPosition: this.props.drawerPosition, - __source: { - fileName: _jsxFileName, - lineNumber: 67 - } - }))); - } - }]); - - _inherits(DrawerSidebar, _React$PureComponent); - - return DrawerSidebar; - }(_react.default.PureComponent); - - DrawerSidebar = _wrapComponent("DrawerSidebar")(DrawerSidebar); - var _default2 = DrawerSidebar; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1 - } - }); -},589,[122,161,1,509,592],"node_modules/react-navigation-drawer/dist/views/DrawerSidebar.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = invariant; - - function invariant(condition, format, a, b, c, d, e, f) { - if (format === undefined) { - throw new Error('invariant requires an error message argument'); - } - - if (!condition) { - var error; - - if (format === undefined) { - error = new Error('Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.'); - } else { - var args = [a, b, c, d, e, f]; - var argIndex = 0; - error = new Error(format.replace(/%s/g, function () { - return args[argIndex++]; - })); - error.name = 'Invariant Violation'; - } - - error.framesToPop = 1; - throw error; - } - } -},592,[],"node_modules/react-navigation-drawer/dist/utils/invariant.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); - - var _reactNavigation = _$$_REQUIRE(_dependencyMap[2], "react-navigation"); - - var _TouchableItem = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "./TouchableItem")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-drawer/dist/views/DrawerNavigatorItems.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var DrawerNavigatorItems = function DrawerNavigatorItems(_ref) { - var items = _ref.items, - activeItemKey = _ref.activeItemKey, - activeTintColor = _ref.activeTintColor, - activeBackgroundColor = _ref.activeBackgroundColor, - inactiveTintColor = _ref.inactiveTintColor, - inactiveBackgroundColor = _ref.inactiveBackgroundColor, - getLabel = _ref.getLabel, - renderIcon = _ref.renderIcon, - onItemPress = _ref.onItemPress, - itemsContainerStyle = _ref.itemsContainerStyle, - itemStyle = _ref.itemStyle, - labelStyle = _ref.labelStyle, - activeLabelStyle = _ref.activeLabelStyle, - inactiveLabelStyle = _ref.inactiveLabelStyle, - iconContainerStyle = _ref.iconContainerStyle, - drawerPosition = _ref.drawerPosition; - return _react.default.createElement(_reactNative.View, { - style: [styles.container, itemsContainerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 26 - } - }, items.map(function (route, index) { - var _ref2; - - var focused = activeItemKey === route.key; - var color = focused ? activeTintColor : inactiveTintColor; - var backgroundColor = focused ? activeBackgroundColor : inactiveBackgroundColor; - var scene = { - route: route, - index: index, - focused: focused, - tintColor: color - }; - var icon = renderIcon(scene); - var label = getLabel(scene); - var extraLabelStyle = focused ? activeLabelStyle : inactiveLabelStyle; - return _react.default.createElement(_TouchableItem.default, { - key: route.key, - onPress: function onPress() { - onItemPress({ - route: route, - focused: focused - }); - }, - delayPressIn: 0, - __source: { - fileName: _jsxFileName, - lineNumber: 35 - } - }, _react.default.createElement(_reactNavigation.SafeAreaView, { - style: { - backgroundColor: backgroundColor - }, - forceInset: (_ref2 = {}, _defineProperty(_ref2, drawerPosition, 'always'), _defineProperty(_ref2, drawerPosition === 'left' ? 'right' : 'left', 'never'), _defineProperty(_ref2, "vertical", 'never'), _ref2), - __source: { - fileName: _jsxFileName, - lineNumber: 38 - } - }, _react.default.createElement(_reactNative.View, { - style: [styles.item, itemStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 43 - } - }, icon ? _react.default.createElement(_reactNative.View, { - style: [styles.icon, focused ? null : styles.inactiveIcon, iconContainerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 44 - } - }, icon) : null, typeof label === 'string' ? _react.default.createElement(_reactNative.Text, { - style: [styles.label, { - color: color - }, labelStyle, extraLabelStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 47 - } - }, label) : label))); - })); - }; - - DrawerNavigatorItems.defaultProps = { - activeTintColor: '#2196f3', - activeBackgroundColor: 'rgba(0, 0, 0, .04)', - inactiveTintColor: 'rgba(0, 0, 0, .87)', - inactiveBackgroundColor: 'transparent' - }; - - var styles = _reactNative.StyleSheet.create({ - container: { - paddingVertical: 4 - }, - item: { - flexDirection: 'row', - alignItems: 'center' - }, - icon: { - marginHorizontal: 16, - width: 24, - alignItems: 'center' - }, - inactiveIcon: { - opacity: 0.62 - }, - label: { - margin: 16, - fontWeight: 'bold' - } - }); - - var _default = DrawerNavigatorItems; - exports.default = _default; -},588,[122,1,509,593],"node_modules/react-navigation-drawer/dist/views/DrawerNavigatorItems.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _class, - _temp, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-drawer/dist/views/TouchableItem.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TouchableItem: { - displayName: "TouchableItem" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-drawer/dist/views/TouchableItem.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var ANDROID_VERSION_LOLLIPOP = 21; - - var TouchableItem = _wrapComponent("TouchableItem")((_temp = _class = function (_React$Component) { - function TouchableItem() { - _classCallCheck(this, TouchableItem); - - return _possibleConstructorReturn(this, _getPrototypeOf(TouchableItem).apply(this, arguments)); - } - - _createClass(TouchableItem, [{ - key: "render", - value: function render() { - if (_reactNative.Platform.OS === 'android' && _reactNative.Platform.Version >= ANDROID_VERSION_LOLLIPOP) { - var _this$props = this.props, - style = _this$props.style, - rest = _objectWithoutProperties(_this$props, ["style"]); - - return _react.default.createElement(_reactNative.TouchableNativeFeedback, _extends({}, rest, { - style: null, - background: _reactNative.TouchableNativeFeedback.Ripple(this.props.pressColor, this.props.borderless), - __source: { - fileName: _jsxFileName, - lineNumber: 32 - } - }), _react.default.createElement(_reactNative.View, { - style: style, - __source: { - fileName: _jsxFileName, - lineNumber: 33 - } - }, _react.default.Children.only(this.props.children))); - } - - return _react.default.createElement(_reactNative.TouchableOpacity, _extends({}, this.props, { - __source: { - fileName: _jsxFileName, - lineNumber: 37 - } - }), this.props.children); - } - }]); - - _inherits(TouchableItem, _React$Component); - - return TouchableItem; - }(_react.default.Component), _class.defaultProps = { - borderless: false, - pressColor: 'rgba(0, 0, 0, .32)' - }, _temp)); - - var _default2 = TouchableItem; - exports.default = _default2; -},593,[122,161,1],"node_modules/react-navigation-drawer/dist/views/TouchableItem.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var _createTabNavigator = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./createTabNavigator")); - - var _TabView = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./views/TabView")); - - var _TabBarBottom = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "./views/TabBarBottom")); - - var _TabBarTop = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "./views/TabBarTop")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - module.exports = { - createTabNavigator: _createTabNavigator.default, - TabView: _TabView.default, - TabBarBottom: _TabBarBottom.default, - TabBarTop: _TabBarTop.default - }; -},525,[594,595,596,597],"node_modules/react-navigation-deprecated-tab-navigator/src/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); - - var _reactNavigation = _$$_REQUIRE(_dependencyMap[2], "react-navigation"); - - var _TabView = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "./views/TabView")); - - var _TabBarTop = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./views/TabBarTop")); - - var _TabBarBottom = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./views/TabBarBottom")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var createTabNavigator = function createTabNavigator(routeConfigs) { - var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var tabsConfig = _objectSpread({}, createTabNavigator.Presets.Default, config); - - var router = (0, _reactNavigation.TabRouter)(routeConfigs, tabsConfig); - var navigator = (0, _reactNavigation.createNavigator)(_TabView.default, router, tabsConfig); - return (0, _reactNavigation.createNavigationContainer)(navigator); - }; - - var Presets = { - iOSBottomTabs: { - tabBarComponent: _TabBarBottom.default, - tabBarPosition: 'bottom', - swipeEnabled: false, - animationEnabled: false, - initialLayout: undefined - }, - AndroidTopTabs: { - tabBarComponent: _TabBarTop.default, - tabBarPosition: 'top', - swipeEnabled: true, - animationEnabled: true, - initialLayout: undefined - } - }; - createTabNavigator.Presets = { - iOSBottomTabs: Presets.iOSBottomTabs, - AndroidTopTabs: Presets.AndroidTopTabs, - Default: _reactNative.Platform.OS === 'ios' ? Presets.iOSBottomTabs : Presets.AndroidTopTabs - }; - var _default = createTabNavigator; - exports.default = _default; -},594,[122,1,509,595,597,596],"node_modules/react-navigation-deprecated-tab-navigator/src/createTabNavigator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _reactNativeTabView = _$$_REQUIRE(_dependencyMap[3], "react-native-tab-view"); - - var _reactNavigation = _$$_REQUIRE(_dependencyMap[4], "react-navigation"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-deprecated-tab-navigator/src/views/TabView.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TabView: { - displayName: "TabView" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-deprecated-tab-navigator/src/views/TabView.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var TabView = function (_React$PureComponent) { - function TabView() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, TabView); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(TabView)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._handlePageChanged = function (index) { - var routeName = _this.props.navigation.state.routes[index].routeName; - - _this.props.navigation.dispatch(_reactNavigation.NavigationActions.navigate({ - routeName: routeName - })); - }, _this._renderScene = function (_ref) { - var route = _ref.route; - var _this$props = _this.props, - screenProps = _this$props.screenProps, - navigation = _this$props.navigation, - descriptors = _this$props.descriptors; - var _this$props$navigatio = _this.props.navigationConfig, - lazy = _this$props$navigatio.lazy, - removeClippedSubviews = _this$props$navigatio.removeClippedSubviews, - animationEnabled = _this$props$navigatio.animationEnabled, - swipeEnabled = _this$props$navigatio.swipeEnabled; - var descriptor = descriptors[route.key]; - var focusedIndex = navigation.state.index; - var focusedKey = navigation.state.routes[focusedIndex].key; - var key = route.key; - var TabComponent = descriptor.getComponent(); - return _react.default.createElement(_reactNavigation.ResourceSavingSceneView, { - lazy: lazy, - isFocused: focusedKey === key, - removeClippedSubViews: removeClippedSubviews, - animationEnabled: animationEnabled, - swipeEnabled: swipeEnabled, - screenProps: screenProps, - component: TabComponent, - navigation: navigation, - childNavigation: descriptor.navigation, - __source: { - fileName: _jsxFileName, - lineNumber: 35 - } - }); - }, _this._getLabel = function (_ref2) { - var route = _ref2.route, - tintColor = _ref2.tintColor, - focused = _ref2.focused; - var _this$props2 = _this.props, - screenProps = _this$props2.screenProps, - descriptors = _this$props2.descriptors; - var descriptor = descriptors[route.key]; - var options = descriptor.options; - - if (options.tabBarLabel) { - return typeof options.tabBarLabel === 'function' ? options.tabBarLabel({ - tintColor: tintColor, - focused: focused - }) : options.tabBarLabel; - } - - if (typeof options.title === 'string') { - return options.title; - } - - return route.routeName; - }, _this._getOnPress = function (previousScene, _ref3) { - var route = _ref3.route; - var descriptors = _this.props.descriptors; - var descriptor = descriptors[route.key]; - var options = descriptor.options; - return options.tabBarOnPress; - }, _this._getTestIDProps = function (_ref4) { - var route = _ref4.route; - var descriptors = _this.props.descriptors; - var descriptor = descriptors[route.key]; - var options = descriptor.options; - return typeof options.tabBarTestIDProps === 'function' ? options.tabBarTestIDProps({ - focused: focused - }) : options.tabBarTestIDProps; - }, _this._renderIcon = function (_ref5) { - var focused = _ref5.focused, - route = _ref5.route, - tintColor = _ref5.tintColor; - var descriptors = _this.props.descriptors; - var descriptor = descriptors[route.key]; - var options = descriptor.options; - - if (options.tabBarIcon) { - return typeof options.tabBarIcon === 'function' ? options.tabBarIcon({ - tintColor: tintColor, - focused: focused - }) : options.tabBarIcon; - } - - return null; - }, _this._renderTabBar = function (props) { - var _this$props$navigatio2 = _this.props.navigationConfig, - tabBarOptions = _this$props$navigatio2.tabBarOptions, - TabBarComponent = _this$props$navigatio2.tabBarComponent, - animationEnabled = _this$props$navigatio2.animationEnabled, - tabBarPosition = _this$props$navigatio2.tabBarPosition; - - if (typeof TabBarComponent === 'undefined') { - return null; - } - - return _react.default.createElement(TabBarComponent, _extends({}, props, tabBarOptions, { - tabBarPosition: tabBarPosition, - screenProps: _this.props.screenProps, - navigation: _this.props.navigation, - getLabel: _this._getLabel, - getTestIDProps: _this._getTestIDProps, - getOnPress: _this._getOnPress, - renderIcon: _this._renderIcon, - animationEnabled: animationEnabled, - __source: { - fileName: _jsxFileName, - lineNumber: 110 - } - })); - }, _this._renderPager = function (props) { - return _react.default.createElement(_reactNativeTabView.TabViewPagerPan, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 125 - } - })); - }, _temp)); - } - - _createClass(TabView, [{ - key: "render", - value: function render() { - var _this$props$navigatio3 = this.props.navigationConfig, - tabBarComponent = _this$props$navigatio3.tabBarComponent, - tabBarPosition = _this$props$navigatio3.tabBarPosition, - animationEnabled = _this$props$navigatio3.animationEnabled, - configureTransition = _this$props$navigatio3.configureTransition, - initialLayout = _this$props$navigatio3.initialLayout; - var renderHeader; - var renderFooter; - var renderPager; - var state = this.props.navigation.state; - var route = state.routes[state.index]; - var descriptors = this.props.descriptors; - var descriptor = descriptors[route.key]; - var options = descriptor.options; - var tabBarVisible = options.tabBarVisible == null ? true : options.tabBarVisible; - var swipeEnabled = options.swipeEnabled == null ? this.props.navigationConfig.swipeEnabled : options.swipeEnabled; - - if (typeof swipeEnabled === 'function') { - swipeEnabled = swipeEnabled(state); - } - - if (tabBarComponent !== undefined && tabBarVisible) { - if (tabBarPosition === 'bottom') { - renderFooter = this._renderTabBar; - } else { - renderHeader = this._renderTabBar; - } - } - - if (animationEnabled === false && swipeEnabled === false || typeof configureTransition === 'function') { - renderPager = this._renderPager; - } - - var props = { - initialLayout: initialLayout, - animationEnabled: animationEnabled, - configureTransition: configureTransition, - swipeEnabled: swipeEnabled, - renderPager: renderPager, - renderHeader: renderHeader, - renderFooter: renderFooter, - renderScene: this._renderScene, - onIndexChange: this._handlePageChanged, - navigationState: this.props.navigation.state, - style: styles.container - }; - return _react.default.createElement(_reactNativeTabView.TabViewAnimated, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 187 - } - })); - } - }]); - - _inherits(TabView, _React$PureComponent); - - return TabView; - }(_react.default.PureComponent); - - TabView.defaultProps = { - lazy: true, - removedClippedSubviews: true, - initialLayout: _reactNative.Platform.select({ - android: { - width: 1, - height: 0 - } - }) - }; - TabView = _wrapComponent("TabView")(TabView); - var _default2 = TabView; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1 - } - }); -},595,[122,161,1,598,509],"node_modules/react-navigation-deprecated-tab-navigator/src/views/TabView.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = { - get TabViewAnimated() { - return _$$_REQUIRE(_dependencyMap[0], './TabViewAnimated').default; - }, - - get TabViewPagerPan() { - return _$$_REQUIRE(_dependencyMap[1], './TabViewPagerPan').default; - }, - - get TabViewPagerScroll() { - return _$$_REQUIRE(_dependencyMap[2], './TabViewPagerScroll').default; - }, - - get TabViewPagerAndroid() { - return _$$_REQUIRE(_dependencyMap[3], './TabViewPagerAndroid').default; - }, - - get TabViewPagerExperimental() { - return _$$_REQUIRE(_dependencyMap[4], './TabViewPagerExperimental').default; - }, - - get TabBar() { - return _$$_REQUIRE(_dependencyMap[5], './TabBar').default; - }, - - get SceneMap() { - return _$$_REQUIRE(_dependencyMap[6], './SceneMap').default; - } - - }; -},598,[599,600,601,602,603,604,605],"node_modules/react-native-tab-view/src/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _TabViewPropTypes = _$$_REQUIRE(_dependencyMap[4], "./TabViewPropTypes"); - - var _class, - _temp, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-tab-view/src/TabViewAnimated.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TabViewAnimated: { - displayName: "TabViewAnimated" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-tab-view/src/TabViewAnimated.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var TabViewPager; - - switch (_reactNative.Platform.OS) { - case 'android': - TabViewPager = _$$_REQUIRE(_dependencyMap[5], './TabViewPagerAndroid').default; - break; - - case 'ios': - TabViewPager = _$$_REQUIRE(_dependencyMap[6], './TabViewPagerScroll').default; - break; - - default: - TabViewPager = _$$_REQUIRE(_dependencyMap[7], './TabViewPagerPan').default; - break; - } - - var TabViewAnimated = _wrapComponent("TabViewAnimated")((_temp = _class = function (_React$Component) { - function TabViewAnimated(_props) { - var _this; - - _classCallCheck(this, TabViewAnimated); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(TabViewAnimated).call(this, _props)); - _this._mounted = false; - - _this._renderScene = function (props) { - return _this.props.renderScene(props); - }; - - _this._handleLayout = function (e) { - var _e$nativeEvent$layout = e.nativeEvent.layout, - height = _e$nativeEvent$layout.height, - width = _e$nativeEvent$layout.width; - - if (_this.state.layout.width === width && _this.state.layout.height === height) { - return; - } - - _this.state.offsetX.setValue(-_this.props.navigationState.index * width); - - _this.state.layoutXY.setValue({ - x: width || 0.001, - y: height || 0.001 - }); - - _this.setState({ - layout: { - measured: true, - height: height, - width: width - } - }); - }; - - _this._buildSceneRendererProps = function () { - return { - panX: _this.state.panX, - offsetX: _this.state.offsetX, - position: _this.state.position, - layout: _this.state.layout, - navigationState: _this.props.navigationState, - jumpTo: _this._jumpTo, - jumpToIndex: _this._jumpToIndex, - useNativeDriver: _this.props.useNativeDriver === true - }; - }; - - _this._jumpToIndex = function (index) { - var key = _this.props.navigationState.routes[index].key; - console.warn('Method `jumpToIndex` is deprecated. Please upgrade your code to use `jumpTo` instead.', "Change your code from `jumpToIndex(" + index + ")` to `jumpTo('" + key + "').`"); - - _this._jumpTo(key); - }; - - _this._jumpTo = function (key) { - if (!_this._mounted) { - return; - } - - var _this$props = _this.props, - canJumpToTab = _this$props.canJumpToTab, - navigationState = _this$props.navigationState; - var index = navigationState.routes.findIndex(function (route) { - return route.key === key; - }); - - if (!canJumpToTab(navigationState.routes[index])) { - return; - } - - if (index !== navigationState.index) { - _this.props.onIndexChange(index); - } - }; - - var _navigationState = _this.props.navigationState; - - var layout = _objectSpread({}, _this.props.initialLayout, { - measured: false - }); - - var panX = new _reactNative.Animated.Value(0); - var offsetX = new _reactNative.Animated.Value(-_navigationState.index * layout.width); - var layoutXY = new _reactNative.Animated.ValueXY({ - x: layout.width || 0.001, - y: layout.height || 0.001 - }); - - var position = _reactNative.Animated.multiply(_reactNative.Animated.divide(_reactNative.Animated.add(panX, offsetX), layoutXY.x), -1); - - _this.state = { - layout: layout, - layoutXY: layoutXY, - panX: panX, - offsetX: offsetX, - position: position - }; - return _this; - } - - _createClass(TabViewAnimated, [{ - key: "componentDidMount", - value: function componentDidMount() { - this._mounted = true; - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this._mounted = false; - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props2 = this.props, - navigationState = _this$props2.navigationState, - onIndexChange = _this$props2.onIndexChange, - initialLayout = _this$props2.initialLayout, - renderScene = _this$props2.renderScene, - renderPager = _this$props2.renderPager, - renderHeader = _this$props2.renderHeader, - renderFooter = _this$props2.renderFooter, - rest = _objectWithoutProperties(_this$props2, ["navigationState", "onIndexChange", "initialLayout", "renderScene", "renderPager", "renderHeader", "renderFooter"]); - - var props = this._buildSceneRendererProps(); - - return React.createElement(_reactNative.View, { - collapsable: false, - style: [styles.container, this.props.style], - __source: { - fileName: _jsxFileName, - lineNumber: 209 - } - }, renderHeader && renderHeader(props), React.createElement(_reactNative.View, { - onLayout: this._handleLayout, - style: styles.pager, - __source: { - fileName: _jsxFileName, - lineNumber: 211 - } - }, renderPager(_objectSpread({}, props, rest, { - panX: this.state.panX, - offsetX: this.state.offsetX, - children: navigationState.routes.map(function (route, index) { - var scene = _this2._renderScene(_objectSpread({}, props, { - route: route, - index: index, - focused: index === navigationState.index - })); - - if (scene) { - return React.cloneElement(scene, { - key: route.key - }); - } - - return scene; - }) - }))), renderFooter && renderFooter(props)); - } - }]); - - _inherits(TabViewAnimated, _React$Component); - - return TabViewAnimated; - }(React.Component), _class.propTypes = { - navigationState: _TabViewPropTypes.NavigationStatePropType.isRequired, - onIndexChange: _propTypes.default.func.isRequired, - initialLayout: _propTypes.default.shape({ - height: _propTypes.default.number.isRequired, - width: _propTypes.default.number.isRequired - }), - canJumpToTab: _propTypes.default.func.isRequired, - renderPager: _propTypes.default.func.isRequired, - renderScene: _propTypes.default.func.isRequired, - renderHeader: _propTypes.default.func, - renderFooter: _propTypes.default.func - }, _class.defaultProps = { - canJumpToTab: function canJumpToTab() { - return true; - }, - renderPager: function renderPager(props) { - return React.createElement(TabViewPager, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 74 - } - })); - }, - initialLayout: { - height: 0, - width: 0 - }, - useNativeDriver: false - }, _temp)); - - var _default2 = TabViewAnimated; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1, - overflow: 'hidden' - }, - pager: { - flex: 1 - } - }); -},599,[122,161,143,1,606,602,601,600],"node_modules/react-native-tab-view/src/TabViewAnimated.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.PagerRendererPropType = exports.SceneRendererPropType = exports.NavigationStatePropType = exports.NavigationRoutePropType = void 0; - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var NavigationRoutePropType = _propTypes.default.shape({ - title: _propTypes.default.string, - key: _propTypes.default.string.isRequired - }); - - exports.NavigationRoutePropType = NavigationRoutePropType; - - var NavigationStatePropType = _propTypes.default.shape({ - routes: _propTypes.default.arrayOf(NavigationRoutePropType).isRequired, - index: _propTypes.default.number.isRequired - }); - - exports.NavigationStatePropType = NavigationStatePropType; - var SceneRendererPropType = { - panX: _propTypes.default.object.isRequired, - offsetX: _propTypes.default.object.isRequired, - layout: _propTypes.default.shape({ - measured: _propTypes.default.bool.isRequired, - height: _propTypes.default.number.isRequired, - width: _propTypes.default.number.isRequired - }).isRequired, - navigationState: NavigationStatePropType.isRequired, - position: _propTypes.default.object.isRequired, - jumpTo: _propTypes.default.func.isRequired, - jumpToIndex: _propTypes.default.func.isRequired, - useNativeDriver: _propTypes.default.bool - }; - exports.SceneRendererPropType = SceneRendererPropType; - var PagerRendererPropType = { - layout: _propTypes.default.shape({ - measured: _propTypes.default.bool.isRequired, - height: _propTypes.default.number.isRequired, - width: _propTypes.default.number.isRequired - }).isRequired, - navigationState: NavigationStatePropType.isRequired, - panX: _propTypes.default.instanceOf(_reactNative.Animated.Value).isRequired, - offsetX: _propTypes.default.instanceOf(_reactNative.Animated.Value).isRequired, - canJumpToTab: _propTypes.default.func.isRequired, - jumpTo: _propTypes.default.func.isRequired, - animationEnabled: _propTypes.default.bool, - swipeEnabled: _propTypes.default.bool, - useNativeDriver: _propTypes.default.bool, - onSwipeStart: _propTypes.default.func, - onSwipeEnd: _propTypes.default.func, - onAnimationEnd: _propTypes.default.func, - children: _propTypes.default.node.isRequired - }; - exports.PagerRendererPropType = PagerRendererPropType; -},606,[143,1],"node_modules/react-native-tab-view/src/TabViewPropTypes.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _TabViewPropTypes = _$$_REQUIRE(_dependencyMap[3], "./TabViewPropTypes"); - - var _class, - _temp, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-tab-view/src/TabViewPagerAndroid.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TabViewPagerAndroid: { - displayName: "TabViewPagerAndroid" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-tab-view/src/TabViewPagerAndroid.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var TabViewPagerAndroid = _wrapComponent("TabViewPagerAndroid")((_temp = _class = function (_React$Component) { - function TabViewPagerAndroid(props) { - var _this; - - _classCallCheck(this, TabViewPagerAndroid); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(TabViewPagerAndroid).call(this, props)); - _this._isIdle = true; - _this._currentIndex = 0; - - _this._getPageIndex = function (index) { - return _reactNative.I18nManager.isRTL ? _this.props.navigationState.routes.length - (index + 1) : index; - }; - - _this._setPage = function (index) { - var animated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - var pager = _this._viewPager; - - if (pager) { - var page = _this._getPageIndex(index); - - if (_this.props.animationEnabled === false || animated === false) { - pager.setPageWithoutAnimation(page); - } else { - pager.setPage(page); - } - } - }; - - _this._handlePageChange = function (index, animated) { - if (_this._isIdle && _this._currentIndex !== index) { - _this._setPage(index, animated); - - _this._currentIndex = index; - } - }; - - _this._handlePageScroll = function (e) { - _this.props.offsetX.setValue(e.nativeEvent.position * _this.props.layout.width * (_reactNative.I18nManager.isRTL ? 1 : -1)); - - _this.props.panX.setValue(e.nativeEvent.offset * _this.props.layout.width * (_reactNative.I18nManager.isRTL ? 1 : -1)); - }; - - _this._handlePageScrollStateChanged = function (e) { - _this._isIdle = e === 'idle'; - var nextIndex = _this._currentIndex; - var nextRoute = _this.props.navigationState.routes[nextIndex]; - - if (_this.props.canJumpToTab(nextRoute)) { - _this.props.jumpTo(nextRoute.key); - } else { - _this._setPage(_this.props.navigationState.index); - - _this._currentIndex = _this.props.navigationState.index; - } - - switch (e) { - case 'dragging': - _this.props.onSwipeStart && _this.props.onSwipeStart(); - break; - - case 'settling': - _this.props.onSwipeEnd && _this.props.onSwipeEnd(); - break; - - case 'idle': - _this.props.onAnimationEnd && _this.props.onAnimationEnd(); - break; - } - }; - - _this._handlePageSelected = function (e) { - var index = _this._getPageIndex(e.nativeEvent.position); - - _this._currentIndex = index; - }; - - _this._setRef = function (el) { - return _this._viewPager = el; - }; - - _this._currentIndex = _this.props.navigationState.index; - return _this; - } - - _createClass(TabViewPagerAndroid, [{ - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (prevProps.navigationState.routes !== this.props.navigationState.routes || prevProps.layout.width !== this.props.layout.width) { - this._handlePageChange(this.props.navigationState.index, false); - } else if (prevProps.navigationState.index !== this.props.navigationState.index) { - this._handlePageChange(this.props.navigationState.index); - } - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - children = _this$props.children, - navigationState = _this$props.navigationState, - swipeEnabled = _this$props.swipeEnabled, - keyboardDismissMode = _this$props.keyboardDismissMode; - var content = React.Children.map(children, function (child, i) { - return React.createElement(_reactNative.View, { - key: navigationState.routes[i].key, - testID: navigationState.routes[i].testID, - style: styles.page, - __source: { - fileName: _jsxFileName, - lineNumber: 135 - } - }, child); - }); - - if (_reactNative.I18nManager.isRTL) { - content.reverse(); - } - - var initialPage = this._getPageIndex(navigationState.index); - - return React.createElement(_reactNative.ViewPagerAndroid, { - key: navigationState.routes.length, - keyboardDismissMode: keyboardDismissMode, - initialPage: initialPage, - scrollEnabled: swipeEnabled !== false, - onPageScroll: this._handlePageScroll, - onPageScrollStateChanged: this._handlePageScrollStateChanged, - onPageSelected: this._handlePageSelected, - style: styles.container, - ref: this._setRef, - __source: { - fileName: _jsxFileName, - lineNumber: 151 - } - }, content); - } - }]); - - _inherits(TabViewPagerAndroid, _React$Component); - - return TabViewPagerAndroid; - }(React.Component), _class.propTypes = _TabViewPropTypes.PagerRendererPropType, _class.defaultProps = { - canJumpToTab: function canJumpToTab() { - return true; - }, - keyboardDismissMode: 'on-drag' - }, _temp)); - - var _default2 = TabViewPagerAndroid; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - container: { - flexGrow: 1 - }, - page: { - overflow: 'hidden' - } - }); -},602,[122,161,1,606],"node_modules/react-native-tab-view/src/TabViewPagerAndroid.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _TabViewPropTypes = _$$_REQUIRE(_dependencyMap[3], "./TabViewPropTypes"); - - var _class, - _temp, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-tab-view/src/TabViewPagerScroll.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TabViewPagerScroll: { - displayName: "TabViewPagerScroll" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-tab-view/src/TabViewPagerScroll.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var TabViewPagerScroll = _wrapComponent("TabViewPagerScroll")((_temp = _class = function (_React$Component) { - function TabViewPagerScroll(props) { - var _this; - - _classCallCheck(this, TabViewPagerScroll); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(TabViewPagerScroll).call(this, props)); - _this._isIdle = true; - _this._isInitial = true; - - _this._setInitialPage = function () { - if (_this.props.layout.width) { - _this._isInitial = true; - - _this._scrollTo(_this.props.navigationState.index * _this.props.layout.width, false); - } - - setTimeout(function () { - _this._isInitial = false; - }, 50); - }; - - _this._scrollTo = function (x) { - var animated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - - if (_this._isIdle && _this._scrollView) { - _this._scrollView.scrollTo({ - x: x, - animated: animated && _this.props.animationEnabled !== false - }); - } - }; - - _this._handleMomentumScrollEnd = function (e) { - var nextIndex = Math.round(e.nativeEvent.contentOffset.x / _this.props.layout.width); - var nextRoute = _this.props.navigationState.routes[nextIndex]; - - if (_this.props.canJumpToTab(nextRoute)) { - _this.props.jumpTo(nextRoute.key); - - _this.props.onAnimationEnd && _this.props.onAnimationEnd(); - } else { - global.requestAnimationFrame(function () { - _this._scrollTo(_this.props.navigationState.index * _this.props.layout.width); - }); - } - }; - - _this._handleScroll = function (e) { - if (_this._isInitial || e.nativeEvent.contentSize.width === 0) { - return; - } - - var _this$props = _this.props, - navigationState = _this$props.navigationState, - layout = _this$props.layout; - var offset = navigationState.index * layout.width; - - _this.props.offsetX.setValue(-offset); - - _this.props.panX.setValue(offset - e.nativeEvent.contentOffset.x); - - global.cancelAnimationFrame(_this._idleCallback); - _this._isIdle = false; - _this._idleCallback = global.requestAnimationFrame(function () { - _this._isIdle = true; - }); - }; - - var _this$props2 = _this.props, - _navigationState = _this$props2.navigationState, - _layout = _this$props2.layout; - _this.state = { - initialOffset: { - x: _navigationState.index * _layout.width, - y: 0 - } - }; - return _this; - } - - _createClass(TabViewPagerScroll, [{ - key: "componentDidMount", - value: function componentDidMount() { - this._setInitialPage(); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var amount = this.props.navigationState.index * this.props.layout.width; - - if (prevProps.navigationState.routes !== this.props.navigationState.routes || prevProps.layout.width !== this.props.layout.width) { - this._scrollTo(amount, false); - } else if (prevProps.navigationState.index !== this.props.navigationState.index) { - this._scrollTo(amount); - } - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props3 = this.props, - children = _this$props3.children, - layout = _this$props3.layout, - navigationState = _this$props3.navigationState, - onSwipeStart = _this$props3.onSwipeStart, - onSwipeEnd = _this$props3.onSwipeEnd; - return React.createElement(_reactNative.ScrollView, { - horizontal: true, - pagingEnabled: true, - directionalLockEnabled: true, - keyboardDismissMode: "on-drag", - keyboardShouldPersistTaps: "always", - overScrollMode: "never", - scrollEnabled: this.props.swipeEnabled, - automaticallyAdjustContentInsets: false, - bounces: false, - alwaysBounceHorizontal: false, - scrollsToTop: false, - showsHorizontalScrollIndicator: false, - scrollEventThrottle: 1, - onScroll: this._handleScroll, - onScrollBeginDrag: onSwipeStart, - onScrollEndDrag: onSwipeEnd, - onMomentumScrollEnd: this._handleMomentumScrollEnd, - contentOffset: this.state.initialOffset, - style: styles.container, - contentContainerStyle: layout.width ? null : styles.container, - ref: function ref(el) { - return _this2._scrollView = el; - }, - __source: { - fileName: _jsxFileName, - lineNumber: 145 - } - }, React.Children.map(children, function (child, i) { - return React.createElement(_reactNative.View, { - key: navigationState.routes[i].key, - testID: navigationState.routes[i].testID, - style: layout.width ? { - width: layout.width, - overflow: 'hidden' - } : i === navigationState.index ? styles.page : null, - __source: { - fileName: _jsxFileName, - lineNumber: 169 - } - }, i === navigationState.index || layout.width ? child : null); - })); - } - }]); - - _inherits(TabViewPagerScroll, _React$Component); - - return TabViewPagerScroll; - }(React.Component), _class.propTypes = _TabViewPropTypes.PagerRendererPropType, _class.defaultProps = { - canJumpToTab: function canJumpToTab() { - return true; - } - }, _temp)); - - var _default2 = TabViewPagerScroll; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1 - }, - page: { - flex: 1, - overflow: 'hidden' - } - }); -},601,[122,161,1,606],"node_modules/react-native-tab-view/src/TabViewPagerScroll.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _TabViewPropTypes = _$$_REQUIRE(_dependencyMap[4], "./TabViewPropTypes"); - - var _class, - _temp, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-tab-view/src/TabViewPagerPan.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TabViewPagerPan: { - displayName: "TabViewPagerPan" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-tab-view/src/TabViewPagerPan.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var DEAD_ZONE = 12; - var DefaultTransitionSpec = { - timing: _reactNative.Animated.spring, - tension: 300, - friction: 35 - }; - - var TabViewPagerPan = _wrapComponent("TabViewPagerPan")((_temp = _class = function (_React$Component) { - function TabViewPagerPan(props) { - var _this; - - _classCallCheck(this, TabViewPagerPan); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(TabViewPagerPan).call(this, props)); - - _this._isMovingHorizontally = function (evt, gestureState) { - return Math.abs(gestureState.dx) > Math.abs(gestureState.dy * 2) && Math.abs(gestureState.vx) > Math.abs(gestureState.vy * 2); - }; - - _this._canMoveScreen = function (evt, gestureState) { - if (_this.props.swipeEnabled === false) { - return false; - } - - var routes = _this.props.navigationState.routes; - return _this._isMovingHorizontally(evt, gestureState) && (gestureState.dx >= DEAD_ZONE && _this._currentIndex > 0 || gestureState.dx <= -DEAD_ZONE && _this._currentIndex < routes.length - 1); - }; - - _this._startGesture = function () { - _this.props.onSwipeStart && _this.props.onSwipeStart(); - - _this.props.panX.stopAnimation(); - }; - - _this._respondToGesture = function (evt, gestureState) { - var _this$props$navigatio = _this.props.navigationState, - routes = _this$props$navigatio.routes, - index = _this$props$navigatio.index; - - if (gestureState.dx > 0 && index <= 0 || gestureState.dx < 0 && index >= routes.length - 1) { - return; - } - - _this.props.panX.setValue(gestureState.dx); - }; - - _this._finishGesture = function (evt, gestureState) { - var _this$props = _this.props, - navigationState = _this$props.navigationState, - layout = _this$props.layout, - _this$props$swipeDist = _this$props.swipeDistanceThreshold, - swipeDistanceThreshold = _this$props$swipeDist === void 0 ? layout.width / 1.75 : _this$props$swipeDist; - var _this$props$swipeVelo = _this.props.swipeVelocityThreshold, - swipeVelocityThreshold = _this$props$swipeVelo === void 0 ? 0.15 : _this$props$swipeVelo; - _this.props.onSwipeEnd && _this.props.onSwipeEnd(); - - if (_reactNative.Platform.OS === 'android') { - swipeVelocityThreshold /= 1000000; - } - - var currentIndex = typeof _this._pendingIndex === 'number' ? _this._pendingIndex : _this._currentIndex; - var nextIndex = currentIndex; - - if (Math.abs(gestureState.dx) > Math.abs(gestureState.dy) && Math.abs(gestureState.vx) > Math.abs(gestureState.vy) && (Math.abs(gestureState.dx) > swipeDistanceThreshold || Math.abs(gestureState.vx) > swipeVelocityThreshold)) { - nextIndex = Math.round(Math.min(Math.max(0, currentIndex - gestureState.dx / Math.abs(gestureState.dx)), navigationState.routes.length - 1)); - _this._currentIndex = nextIndex; - } - - if (!isFinite(nextIndex) || !_this.props.canJumpToTab(_this.props.navigationState.routes[nextIndex])) { - nextIndex = currentIndex; - } - - _this._transitionTo(nextIndex); - }; - - _this._transitionTo = function (index) { - var animated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - var offset = -index * _this.props.layout.width; - - if (_this.props.animationEnabled === false || animated === false) { - _this.props.panX.setValue(0); - - _this.props.offsetX.setValue(offset); - - return; - } - - var timing = DefaultTransitionSpec.timing, - transitionConfig = _objectWithoutProperties(DefaultTransitionSpec, ["timing"]); - - _reactNative.Animated.parallel([timing(_this.props.panX, _objectSpread({}, transitionConfig, { - toValue: 0 - })), timing(_this.props.offsetX, _objectSpread({}, transitionConfig, { - toValue: offset - }))]).start(function (_ref) { - var finished = _ref.finished; - - if (finished) { - var route = _this.props.navigationState.routes[index]; - - _this.props.jumpTo(route.key); - - _this.props.onAnimationEnd && _this.props.onAnimationEnd(); - _this._pendingIndex = null; - } - }); - - _this._pendingIndex = index; - }; - - _this._currentIndex = _this.props.navigationState.index; - return _this; - } - - _createClass(TabViewPagerPan, [{ - key: "componentWillMount", - value: function componentWillMount() { - this._panResponder = _reactNative.PanResponder.create({ - onMoveShouldSetPanResponder: this._canMoveScreen, - onMoveShouldSetPanResponderCapture: this._canMoveScreen, - onPanResponderGrant: this._startGesture, - onPanResponderMove: this._respondToGesture, - onPanResponderTerminate: this._finishGesture, - onPanResponderRelease: this._finishGesture, - onPanResponderTerminationRequest: function onPanResponderTerminationRequest() { - return true; - } - }); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - this._currentIndex = this.props.navigationState.index; - - if (prevProps.navigationState.routes !== this.props.navigationState.routes || prevProps.layout.width !== this.props.layout.width) { - this._transitionTo(this.props.navigationState.index, false); - } else if (prevProps.navigationState.index !== this.props.navigationState.index) { - this._transitionTo(this.props.navigationState.index); - } - } - }, { - key: "render", - value: function render() { - var _this$props2 = this.props, - panX = _this$props2.panX, - offsetX = _this$props2.offsetX, - navigationState = _this$props2.navigationState, - layout = _this$props2.layout, - children = _this$props2.children; - var width = layout.width; - var routes = navigationState.routes; - var maxTranslate = width * (routes.length - 1); - - var translateX = _reactNative.Animated.add(panX, offsetX).interpolate({ - inputRange: [-maxTranslate, 0], - outputRange: [-maxTranslate, 0], - extrapolate: 'clamp' - }); - - return React.createElement(_reactNative.Animated.View, _extends({ - style: [styles.sheet, width ? { - width: routes.length * width, - transform: [{ - translateX: translateX - }] - } : null] - }, this._panResponder.panHandlers, { - __source: { - fileName: _jsxFileName, - lineNumber: 249 - } - }), React.Children.map(children, function (child, i) { - return React.createElement(_reactNative.View, { - key: navigationState.routes[i].key, - testID: navigationState.routes[i].testID, - style: width ? { - width: width - } : i === navigationState.index ? _reactNative.StyleSheet.absoluteFill : null, - __source: { - fileName: _jsxFileName, - lineNumber: 262 - } - }, i === navigationState.index || width ? child : null); - })); - } - }]); - - _inherits(TabViewPagerPan, _React$Component); - - return TabViewPagerPan; - }(React.Component), _class.propTypes = _objectSpread({}, _TabViewPropTypes.PagerRendererPropType, { - swipeDistanceThreshold: _propTypes.default.number, - swipeVelocityThreshold: _propTypes.default.number - }), _class.defaultProps = { - canJumpToTab: function canJumpToTab() { - return true; - }, - initialLayout: { - height: 0, - width: 0 - } - }, _temp)); - - var _default2 = TabViewPagerPan; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - sheet: { - flex: 1, - flexDirection: 'row', - alignItems: 'stretch' - } - }); -},600,[122,161,143,1,606],"node_modules/react-native-tab-view/src/TabViewPagerPan.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _TabViewPropTypes = _$$_REQUIRE(_dependencyMap[4], "./TabViewPropTypes"); - - var _class, - _temp2, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-tab-view/src/TabViewPagerExperimental.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TabViewPagerExperimental: { - displayName: "TabViewPagerExperimental" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-tab-view/src/TabViewPagerExperimental.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var DefaultTransitionSpec = { - timing: _reactNative.Animated.spring, - tension: 75, - friction: 25 - }; - - var TabViewPagerExperimental = _wrapComponent("TabViewPagerExperimental")((_temp2 = _class = function (_React$Component) { - function TabViewPagerExperimental() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, TabViewPagerExperimental); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(TabViewPagerExperimental)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._handleHandlerStateChange = function (event) { - var GestureHandler = _this.props.GestureHandler; - - if (event.nativeEvent.state === GestureHandler.State.BEGIN) { - _this.props.onSwipeStart && _this.props.onSwipeStart(); - } else if (event.nativeEvent.state === GestureHandler.State.END) { - _this.props.onSwipeEnd && _this.props.onSwipeEnd(); - - var _this$props = _this.props, - navigationState = _this$props.navigationState, - layout = _this$props.layout, - _this$props$swipeDist = _this$props.swipeDistanceThreshold, - _swipeDistanceThreshold = _this$props$swipeDist === void 0 ? layout.width / 1.75 : _this$props$swipeDist, - _this$props$swipeVelo = _this$props.swipeVelocityThreshold, - _swipeVelocityThreshold = _this$props$swipeVelo === void 0 ? 150 : _this$props$swipeVelo; - - var _event$nativeEvent = event.nativeEvent, - translationX = _event$nativeEvent.translationX, - translationY = _event$nativeEvent.translationY, - velocityX = _event$nativeEvent.velocityX, - velocityY = _event$nativeEvent.velocityY; - var currentIndex = typeof _this._pendingIndex === 'number' ? _this._pendingIndex : navigationState.index; - var nextIndex = currentIndex; - - if (Math.abs(translationX) > Math.abs(translationY) && Math.abs(velocityX) > Math.abs(velocityY) && (Math.abs(translationX) > _swipeDistanceThreshold || Math.abs(velocityX) > _swipeVelocityThreshold)) { - nextIndex = Math.round(Math.min(Math.max(0, currentIndex - translationX / Math.abs(translationX)), navigationState.routes.length - 1)); - } - - if (!isFinite(nextIndex) || !_this.props.canJumpToTab(_this.props.navigationState.routes[nextIndex])) { - nextIndex = currentIndex; - } - - _this._transitionTo(nextIndex, velocityX); - } - }, _this._transitionTo = function (index, velocity) { - var animated = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - var offset = -index * _this.props.layout.width; - - if (_this.props.animationEnabled === false || animated === false) { - _this.props.panX.setValue(0); - - _this.props.offsetX.setValue(offset); - - return; - } - - var timing = DefaultTransitionSpec.timing, - transitionConfig = _objectWithoutProperties(DefaultTransitionSpec, ["timing"]); - - var useNativeDriver = _this.props.useNativeDriver; - - _reactNative.Animated.parallel([timing(_this.props.panX, _objectSpread({}, transitionConfig, { - toValue: 0, - velocity: velocity, - useNativeDriver: useNativeDriver - })), timing(_this.props.offsetX, _objectSpread({}, transitionConfig, { - toValue: offset, - velocity: velocity, - useNativeDriver: useNativeDriver - }))]).start(function (_ref) { - var finished = _ref.finished; - - if (finished) { - var route = _this.props.navigationState.routes[index]; - - _this.props.jumpTo(route.key); - - _this.props.onAnimationEnd && _this.props.onAnimationEnd(); - _this._pendingIndex = null; - } - }); - - _this._pendingIndex = index; - }, _temp)); - } - - _createClass(TabViewPagerExperimental, [{ - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (prevProps.navigationState.routes !== this.props.navigationState.routes || prevProps.layout.width !== this.props.layout.width) { - this._transitionTo(this.props.navigationState.index, undefined, false); - } else if (prevProps.navigationState.index !== this.props.navigationState.index) { - this._transitionTo(this.props.navigationState.index); - } - } - }, { - key: "render", - value: function render() { - var _this$props2 = this.props, - GestureHandler = _this$props2.GestureHandler, - panX = _this$props2.panX, - offsetX = _this$props2.offsetX, - layout = _this$props2.layout, - navigationState = _this$props2.navigationState, - swipeEnabled = _this$props2.swipeEnabled, - children = _this$props2.children; - var width = layout.width; - var routes = navigationState.routes; - var maxTranslate = width * (routes.length - 1); - - var translateX = _reactNative.Animated.add(panX, offsetX).interpolate({ - inputRange: [-maxTranslate, 0], - outputRange: [-maxTranslate, 0], - extrapolate: 'clamp' - }); - - return React.createElement(GestureHandler.PanGestureHandler, { - enabled: layout.width !== 0 && swipeEnabled !== false, - minDeltaX: 10, - onGestureEvent: _reactNative.Animated.event([{ - nativeEvent: { - translationX: this.props.panX - } - }], { - useNativeDriver: this.props.useNativeDriver - }), - onHandlerStateChange: this._handleHandlerStateChange, - __source: { - fileName: _jsxFileName, - lineNumber: 167 - } - }, React.createElement(_reactNative.Animated.View, { - style: [styles.sheet, width ? { - width: routes.length * width, - transform: [{ - translateX: translateX - }] - } : null], - __source: { - fileName: _jsxFileName, - lineNumber: 176 - } - }, React.Children.map(children, function (child, i) { - return React.createElement(_reactNative.View, { - key: navigationState.routes[i].key, - testID: navigationState.routes[i].testID, - style: width ? { - width: width - } : i === navigationState.index ? _reactNative.StyleSheet.absoluteFill : null, - __source: { - fileName: _jsxFileName, - lineNumber: 185 - } - }, i === navigationState.index || width ? child : null); - }))); - } - }]); - - _inherits(TabViewPagerExperimental, _React$Component); - - return TabViewPagerExperimental; - }(React.Component), _class.propTypes = _objectSpread({}, _TabViewPropTypes.PagerRendererPropType, { - swipeDistanceThreshold: _propTypes.default.number, - swipeVelocityThreshold: _propTypes.default.number, - GestureHandler: _propTypes.default.object - }), _class.defaultProps = { - GestureHandler: global.__expo && global.__expo.DangerZone ? global.__expo.DangerZone.GestureHandler : undefined, - canJumpToTab: function canJumpToTab() { - return true; - } - }, _temp2)); - - var _default2 = TabViewPagerExperimental; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - sheet: { - flex: 1, - flexDirection: 'row', - alignItems: 'stretch' - } - }); -},603,[122,161,143,1,606],"node_modules/react-native-tab-view/src/TabViewPagerExperimental.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _TouchableItem = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./TouchableItem")); - - var _TabViewPropTypes = _$$_REQUIRE(_dependencyMap[5], "./TabViewPropTypes"); - - var _class, - _temp, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-tab-view/src/TabBar.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TabBar: { - displayName: "TabBar" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-tab-view/src/TabBar.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var useNativeDriver = Boolean(_reactNative.NativeModules.NativeAnimatedModule); - - var TabBar = _wrapComponent("TabBar")((_temp = _class = function (_React$Component) { - function TabBar(_props) { - var _this; - - _classCallCheck(this, TabBar); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(TabBar).call(this, _props)); - _this._isIntial = true; - _this._isManualScroll = false; - _this._isMomentumScroll = false; - - _this._startTrackingPosition = function () { - _this._offsetXListener = _this.props.offsetX.addListener(function (_ref) { - var value = _ref.value; - _this._lastOffsetX = value; - - _this._handlePosition(); - }); - _this._panXListener = _this.props.panX.addListener(function (_ref2) { - var value = _ref2.value; - _this._lastPanX = value; - - _this._handlePosition(); - }); - }; - - _this._stopTrackingPosition = function () { - _this.props.offsetX.removeListener(_this._offsetXListener); - - _this.props.panX.removeListener(_this._panXListener); - }; - - _this._handlePosition = function () { - var _this$props = _this.props, - navigationState = _this$props.navigationState, - layout = _this$props.layout; - - if (layout.width === 0) { - return; - } - - var panX = typeof _this._lastPanX === 'number' ? _this._lastPanX : 0; - var offsetX = typeof _this._lastOffsetX === 'number' ? _this._lastOffsetX : -navigationState.index * layout.width; - var value = (panX + offsetX) / -(layout.width || 0.001); - - _this._adjustScroll(value); - }; - - _this._renderLabel = function (scene) { - if (typeof _this.props.renderLabel !== 'undefined') { - return _this.props.renderLabel(scene); - } - - var label = _this.props.getLabelText(scene); - - if (typeof label !== 'string') { - return null; - } - - return React.createElement(_reactNative.Animated.Text, { - style: [styles.tabLabel, _this.props.labelStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 187 - } - }, label); - }; - - _this._renderIndicator = function (props) { - if (typeof _this.props.renderIndicator !== 'undefined') { - return _this.props.renderIndicator(props); - } - - var width = props.width, - position = props.position, - navigationState = props.navigationState; - - var translateX = _reactNative.Animated.multiply(_reactNative.Animated.multiply(position.interpolate({ - inputRange: [0, navigationState.routes.length - 1], - outputRange: [0, navigationState.routes.length - 1], - extrapolate: 'clamp' - }), width), _reactNative.I18nManager.isRTL ? -1 : 1); - - return React.createElement(_reactNative.Animated.View, { - style: [styles.indicator, { - width: width, - transform: [{ - translateX: translateX - }] - }, _this.props.indicatorStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 210 - } - }); - }; - - _this._getTabWidth = function (props) { - var layout = props.layout, - navigationState = props.navigationState, - tabStyle = props.tabStyle; - - var flattened = _reactNative.StyleSheet.flatten(tabStyle); - - if (flattened) { - switch (typeof flattened.width) { - case 'number': - return flattened.width; - - case 'string': - if (flattened.width.endsWith('%')) { - var _width = parseFloat(flattened.width); - - if (Number.isFinite(_width)) { - return layout.width * (_width / 100); - } - } - - } - } - - if (props.scrollEnabled) { - return layout.width / 5 * 2; - } - - return layout.width / navigationState.routes.length; - }; - - _this._handleTabPress = function (scene) { - _this._pendingIndex = scene.index; - - _this.props.jumpTo(scene.route.key); - - if (_this.props.onTabPress) { - _this.props.onTabPress(scene); - } - }; - - _this._normalizeScrollValue = function (props, value) { - var layout = props.layout, - navigationState = props.navigationState; - - var tabWidth = _this._getTabWidth(props); - - var tabBarWidth = Math.max(tabWidth * navigationState.routes.length, layout.width); - var maxDistance = tabBarWidth - layout.width; - return Math.max(Math.min(value, maxDistance), 0); - }; - - _this._getScrollAmount = function (props, i) { - var layout = props.layout; - - var tabWidth = _this._getTabWidth(props); - - var centerDistance = tabWidth * (i + 1 / 2); - var scrollAmount = centerDistance - layout.width / 2; - return _this._normalizeScrollValue(props, scrollAmount); - }; - - _this._adjustScroll = function (value) { - if (_this.props.scrollEnabled) { - global.cancelAnimationFrame(_this._scrollResetCallback); - _this._scrollView && _this._scrollView.scrollTo({ - x: _this._normalizeScrollValue(_this.props, _this._getScrollAmount(_this.props, value)), - animated: !_this._isIntial - }); - _this._isIntial = false; - } - }; - - _this._resetScroll = function (value) { - var animated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - - if (_this.props.scrollEnabled) { - global.cancelAnimationFrame(_this._scrollResetCallback); - _this._scrollResetCallback = global.requestAnimationFrame(function () { - _this._scrollView && _this._scrollView.scrollTo({ - x: _this._getScrollAmount(_this.props, value), - animated: animated - }); - }); - } - }; - - _this._handleBeginDrag = function () { - _this._isManualScroll = true; - _this._isMomentumScroll = false; - }; - - _this._handleEndDrag = function () { - global.requestAnimationFrame(function () { - if (_this._isMomentumScroll) { - return; - } - - _this._isManualScroll = false; - }); - }; - - _this._handleMomentumScrollBegin = function () { - _this._isMomentumScroll = true; - }; - - _this._handleMomentumScrollEnd = function () { - _this._isMomentumScroll = false; - _this._isManualScroll = false; - }; - - _this._setRef = function (el) { - return _this._scrollView = el && el._component; - }; - - var initialVisibility = 1; - - if (_this.props.scrollEnabled) { - var tabWidth = _this._getTabWidth(_this.props); - - if (!tabWidth) { - initialVisibility = 0; - } - } - - var initialOffset = _this.props.scrollEnabled && _this.props.layout.width ? { - x: _this._getScrollAmount(_this.props, _this.props.navigationState.index), - y: 0 - } : undefined; - _this.state = { - visibility: new _reactNative.Animated.Value(initialVisibility), - scrollAmount: new _reactNative.Animated.Value(0), - initialOffset: initialOffset - }; - return _this; - } - - _createClass(TabBar, [{ - key: "componentDidMount", - value: function componentDidMount() { - this.props.scrollEnabled && this._startTrackingPosition(); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var prevTabWidth = this._getTabWidth(prevProps); - - var currentTabWidth = this._getTabWidth(this.props); - - if (prevTabWidth !== currentTabWidth && currentTabWidth) { - this.state.visibility.setValue(1); - } - - if ((prevProps.navigationState !== this.props.navigationState || prevProps.layout !== this.props.layout || prevTabWidth !== currentTabWidth) && this.props.navigationState.index !== this._pendingIndex) { - this._resetScroll(this.props.navigationState.index, Boolean(prevProps.layout.width)); - - this._pendingIndex = null; - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this._stopTrackingPosition(); - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props2 = this.props, - position = _this$props2.position, - navigationState = _this$props2.navigationState, - scrollEnabled = _this$props2.scrollEnabled, - bounces = _this$props2.bounces; - var routes = navigationState.routes, - index = navigationState.index; - - var tabWidth = this._getTabWidth(this.props); - - var tabBarWidth = tabWidth * routes.length; - var inputRange = [-1].concat(_toConsumableArray(routes.map(function (x, i) { - return i; - }))); - - var translateX = _reactNative.Animated.multiply(this.state.scrollAmount, -1); - - return React.createElement(_reactNative.Animated.View, { - style: [styles.tabBar, this.props.style], - __source: { - fileName: _jsxFileName, - lineNumber: 346 - } - }, React.createElement(_reactNative.Animated.View, { - pointerEvents: "none", - style: [styles.indicatorContainer, scrollEnabled ? { - width: tabBarWidth, - transform: [{ - translateX: translateX - }] - } : null], - __source: { - fileName: _jsxFileName, - lineNumber: 347 - } - }, this._renderIndicator(_objectSpread({}, this.props, { - width: tabWidth - }))), React.createElement(_reactNative.View, { - style: styles.scroll, - __source: { - fileName: _jsxFileName, - lineNumber: 361 - } - }, React.createElement(_reactNative.Animated.ScrollView, { - horizontal: true, - keyboardShouldPersistTaps: "handled", - scrollEnabled: scrollEnabled, - bounces: bounces, - alwaysBounceHorizontal: false, - scrollsToTop: false, - showsHorizontalScrollIndicator: false, - automaticallyAdjustContentInsets: false, - overScrollMode: "never", - contentContainerStyle: [styles.tabContent, scrollEnabled ? null : styles.container], - scrollEventThrottle: 1, - onScroll: _reactNative.Animated.event([{ - nativeEvent: { - contentOffset: { - x: this.state.scrollAmount - } - } - }], { - useNativeDriver: useNativeDriver - }), - onScrollBeginDrag: this._handleBeginDrag, - onScrollEndDrag: this._handleEndDrag, - onMomentumScrollBegin: this._handleMomentumScrollBegin, - onMomentumScrollEnd: this._handleMomentumScrollEnd, - contentOffset: this.state.initialOffset, - ref: this._setRef, - __source: { - fileName: _jsxFileName, - lineNumber: 362 - } - }, routes.map(function (route, i) { - var focused = index === i; - var outputRange = inputRange.map(function (inputIndex) { - return inputIndex === i ? 1 : 0.7; - }); - - var opacity = _reactNative.Animated.multiply(_this2.state.visibility, position.interpolate({ - inputRange: inputRange, - outputRange: outputRange - })); - - var scene = { - route: route, - focused: focused, - index: i - }; - - var label = _this2._renderLabel(scene); - - var icon = _this2.props.renderIcon ? _this2.props.renderIcon(scene) : null; - var badge = _this2.props.renderBadge ? _this2.props.renderBadge(scene) : null; - var tabStyle = {}; - tabStyle.opacity = opacity; - - if (icon) { - if (label) { - tabStyle.paddingTop = 8; - } else { - tabStyle.padding = 12; - } - } - - var passedTabStyle = _reactNative.StyleSheet.flatten(_this2.props.tabStyle); - - var isWidthSet = passedTabStyle && typeof passedTabStyle.width !== 'undefined' || scrollEnabled === true; - var tabContainerStyle = {}; - - if (isWidthSet) { - tabStyle.width = tabWidth; - } - - if (passedTabStyle && typeof passedTabStyle.flex === 'number') { - tabContainerStyle.flex = passedTabStyle.flex; - } else if (!isWidthSet) { - tabContainerStyle.flex = 1; - } - - var accessibilityLabel = route.accessibilityLabel || route.title; - return React.createElement(_TouchableItem.default, { - borderless: true, - key: route.key, - testID: route.testID, - accessible: route.accessible, - accessibilityLabel: accessibilityLabel, - accessibilityTraits: "button", - pressColor: _this2.props.pressColor, - pressOpacity: _this2.props.pressOpacity, - delayPressIn: 0, - onPress: function onPress() { - return _this2._handleTabPress(scene); - }, - style: tabContainerStyle, - __source: { - fileName: _jsxFileName, - lineNumber: 452 - } - }, React.createElement(_reactNative.View, { - pointerEvents: "none", - style: styles.container, - __source: { - fileName: _jsxFileName, - lineNumber: 465 - } - }, React.createElement(_reactNative.Animated.View, { - style: [styles.tabItem, tabStyle, passedTabStyle, styles.container], - __source: { - fileName: _jsxFileName, - lineNumber: 466 - } - }, icon, label), badge ? React.createElement(_reactNative.Animated.View, { - style: [styles.badge, { - opacity: _this2.state.visibility - }], - __source: { - fileName: _jsxFileName, - lineNumber: 478 - } - }, badge) : null)); - })))); - } - }]); - - _inherits(TabBar, _React$Component); - - return TabBar; - }(React.Component), _class.propTypes = _objectSpread({}, _TabViewPropTypes.SceneRendererPropType, { - scrollEnabled: _propTypes.default.bool, - bounces: _propTypes.default.bool, - pressColor: _TouchableItem.default.propTypes.pressColor, - pressOpacity: _TouchableItem.default.propTypes.pressOpacity, - getLabelText: _propTypes.default.func, - renderIcon: _propTypes.default.func, - renderLabel: _propTypes.default.func, - renderIndicator: _propTypes.default.func, - onTabPress: _propTypes.default.func, - labelStyle: _propTypes.default.any, - style: _propTypes.default.any - }), _class.defaultProps = { - getLabelText: function getLabelText(_ref3) { - var route = _ref3.route; - return typeof route.title === 'string' ? route.title.toUpperCase() : route.title; - } - }, _temp)); - - var _default2 = TabBar; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1 - }, - scroll: { - overflow: _reactNative.Platform.OS === 'web' ? 'auto' : 'scroll' - }, - tabBar: { - backgroundColor: '#2196f3', - elevation: 4, - shadowColor: 'black', - shadowOpacity: 0.1, - shadowRadius: _reactNative.StyleSheet.hairlineWidth, - shadowOffset: { - height: _reactNative.StyleSheet.hairlineWidth - }, - zIndex: _reactNative.Platform.OS === 'android' ? 0 : 1 - }, - tabContent: { - flexDirection: 'row', - flexWrap: 'nowrap' - }, - tabLabel: { - backgroundColor: 'transparent', - color: 'white', - margin: 8 - }, - tabItem: { - flex: 1, - padding: 8, - alignItems: 'center', - justifyContent: 'center' - }, - badge: { - position: 'absolute', - top: 0, - right: 0 - }, - indicatorContainer: { - position: 'absolute', - top: 0, - left: 0, - right: 0, - bottom: 0 - }, - indicator: { - backgroundColor: '#ffeb3b', - position: 'absolute', - left: 0, - bottom: 0, - right: 0, - height: 2 - } - }); -},604,[122,161,143,1,607,606],"node_modules/react-native-tab-view/src/TabBar.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _class, - _temp2, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-tab-view/src/TouchableItem.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TouchableItem: { - displayName: "TouchableItem" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-tab-view/src/TouchableItem.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var LOLLIPOP = 21; - - var TouchableItem = _wrapComponent("TouchableItem")((_temp2 = _class = function (_React$Component) { - function TouchableItem() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, TouchableItem); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(TouchableItem)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._handlePress = function () { - global.requestAnimationFrame(_this.props.onPress); - }, _temp)); - } - - _createClass(TouchableItem, [{ - key: "render", - value: function render() { - var _this$props = this.props, - style = _this$props.style, - pressOpacity = _this$props.pressOpacity, - pressColor = _this$props.pressColor, - borderless = _this$props.borderless, - rest = _objectWithoutProperties(_this$props, ["style", "pressOpacity", "pressColor", "borderless"]); - - if (_reactNative.Platform.OS === 'android' && _reactNative.Platform.Version >= LOLLIPOP) { - return React.createElement(_reactNative.TouchableNativeFeedback, _extends({}, rest, { - onPress: this._handlePress, - background: _reactNative.TouchableNativeFeedback.Ripple(pressColor, borderless), - __source: { - fileName: _jsxFileName, - lineNumber: 48 - } - }), React.createElement(_reactNative.View, { - style: style, - __source: { - fileName: _jsxFileName, - lineNumber: 53 - } - }, React.Children.only(this.props.children))); - } else { - return React.createElement(_reactNative.TouchableOpacity, _extends({}, rest, { - onPress: this._handlePress, - style: style, - activeOpacity: pressOpacity, - __source: { - fileName: _jsxFileName, - lineNumber: 58 - } - }), this.props.children); - } - } - }]); - - _inherits(TouchableItem, _React$Component); - - return TouchableItem; - }(React.Component), _class.propTypes = { - onPress: _propTypes.default.func.isRequired, - delayPressIn: _propTypes.default.number, - borderless: _propTypes.default.bool, - pressColor: _propTypes.default.string, - pressOpacity: _propTypes.default.number, - children: _propTypes.default.node.isRequired - }, _class.defaultProps = { - pressColor: 'rgba(255, 255, 255, .4)' - }, _temp2)); - - var _default2 = TouchableItem; - exports.default = _default2; -},607,[122,161,143,1],"node_modules/react-native-tab-view/src/TouchableItem.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = SceneMap; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../react-transform-hmr/lib/index.js")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-tab-view/src/SceneMap.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - SceneComponent: { - displayName: "SceneComponent", - isInFunction: true - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-tab-view/src/SceneMap.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function SceneMap(scenes) { - var SceneComponent = function (_React$PureComponent) { - function SceneComponent() { - _classCallCheck(this, SceneComponent); - - return _possibleConstructorReturn(this, _getPrototypeOf(SceneComponent).apply(this, arguments)); - } - - _createClass(SceneComponent, [{ - key: "render", - value: function render() { - return React.createElement(scenes[this.props.route.key], this.props); - } - }]); - - _inherits(SceneComponent, _React$PureComponent); - - return SceneComponent; - }(React.PureComponent); - - SceneComponent = _wrapComponent("SceneComponent")(SceneComponent); - return function (_ref) { - var route = _ref.route, - jumpTo = _ref.jumpTo, - jumpToIndex = _ref.jumpToIndex; - return React.createElement(SceneComponent, { - key: route.key, - route: route, - jumpTo: jumpTo, - jumpToIndex: jumpToIndex, - __source: { - fileName: _jsxFileName, - lineNumber: 13 - } - }); - }; - } -},605,[122,161],"node_modules/react-native-tab-view/src/SceneMap.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _reactNativeTabView = _$$_REQUIRE(_dependencyMap[3], "react-native-tab-view"); - - var _TabBarIcon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./TabBarIcon")); - - var _class, - _temp2, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-deprecated-tab-navigator/src/views/TabBarTop.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TabBarTop: { - displayName: "TabBarTop" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-deprecated-tab-navigator/src/views/TabBarTop.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var TabBarTop = _wrapComponent("TabBarTop")((_temp2 = _class = function (_React$PureComponent) { - function TabBarTop() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, TabBarTop); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(TabBarTop)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._renderLabel = function (scene) { - var _this$props = _this.props, - position = _this$props.position, - tabBarPosition = _this$props.tabBarPosition, - navigation = _this$props.navigation, - activeTintColor = _this$props.activeTintColor, - inactiveTintColor = _this$props.inactiveTintColor, - showLabel = _this$props.showLabel, - upperCaseLabel = _this$props.upperCaseLabel, - labelStyle = _this$props.labelStyle, - allowFontScaling = _this$props.allowFontScaling; - - if (showLabel === false) { - return null; - } - - var index = scene.index; - var routes = navigation.state.routes; - var inputRange = [-1].concat(_toConsumableArray(routes.map(function (x, i) { - return i; - }))); - var outputRange = inputRange.map(function (inputIndex) { - return inputIndex === index ? activeTintColor : inactiveTintColor; - }); - var color = position.interpolate({ - inputRange: inputRange, - outputRange: outputRange - }); - var tintColor = scene.focused ? activeTintColor : inactiveTintColor; - - var label = _this.props.getLabel(_objectSpread({}, scene, { - tintColor: tintColor - })); - - if (typeof label === 'string') { - return _react.default.createElement(_reactNative.Animated.Text, { - style: [styles.label, { - color: color - }, labelStyle], - allowFontScaling: allowFontScaling, - __source: { - fileName: _jsxFileName, - lineNumber: 47 - } - }, upperCaseLabel ? label.toUpperCase() : label); - } - - if (typeof label === 'function') { - return label(_objectSpread({}, scene, { - tintColor: tintColor - })); - } - - return label; - }, _this._renderIcon = function (scene) { - var _this$props2 = _this.props, - position = _this$props2.position, - navigation = _this$props2.navigation, - activeTintColor = _this$props2.activeTintColor, - inactiveTintColor = _this$props2.inactiveTintColor, - renderIcon = _this$props2.renderIcon, - showIcon = _this$props2.showIcon, - iconStyle = _this$props2.iconStyle; - - if (showIcon === false) { - return null; - } - - return _react.default.createElement(_TabBarIcon.default, { - position: position, - navigation: navigation, - activeTintColor: activeTintColor, - inactiveTintColor: inactiveTintColor, - renderIcon: renderIcon, - scene: scene, - style: [styles.icon, iconStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 75 - } - }); - }, _this._handleOnPress = function (scene) { - var _this$props3 = _this.props, - getOnPress = _this$props3.getOnPress, - jumpToIndex = _this$props3.jumpToIndex, - navigation = _this$props3.navigation; - var previousScene = navigation.state.routes[navigation.state.index]; - var onPress = getOnPress(previousScene, scene); - - if (onPress) { - onPress({ - previousScene: previousScene, - scene: scene, - jumpToIndex: jumpToIndex, - defaultHandler: jumpToIndex - }); - } else { - jumpToIndex(scene.index); - } - }, _temp)); - } - - _createClass(TabBarTop, [{ - key: "render", - value: function render() { - var props = this.props; - return _react.default.createElement(_reactNativeTabView.TabBar, _extends({}, props, { - onTabPress: this._handleOnPress, - jumpToIndex: function jumpToIndex() {}, - renderIcon: this._renderIcon, - renderLabel: this._renderLabel, - __source: { - fileName: _jsxFileName, - lineNumber: 112 - } - })); - } - }]); - - _inherits(TabBarTop, _React$PureComponent); - - return TabBarTop; - }(_react.default.PureComponent), _class.defaultProps = { - activeTintColor: '#fff', - inactiveTintColor: '#fff', - showIcon: false, - showLabel: true, - upperCaseLabel: true, - allowFontScaling: true - }, _temp2)); - - var _default2 = TabBarTop; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - icon: { - height: 24, - width: 24 - }, - label: { - textAlign: 'center', - fontSize: 13, - margin: 8, - backgroundColor: 'transparent' - } - }); -},597,[122,161,1,598,608],"node_modules/react-navigation-deprecated-tab-navigator/src/views/TabBarTop.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-deprecated-tab-navigator/src/views/TabBarIcon.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TabBarIcon: { - displayName: "TabBarIcon" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-deprecated-tab-navigator/src/views/TabBarIcon.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var TabBarIcon = _wrapComponent("TabBarIcon")(function (_React$PureComponent) { - function TabBarIcon() { - _classCallCheck(this, TabBarIcon); - - return _possibleConstructorReturn(this, _getPrototypeOf(TabBarIcon).apply(this, arguments)); - } - - _createClass(TabBarIcon, [{ - key: "render", - value: function render() { - var _this$props = this.props, - position = _this$props.position, - scene = _this$props.scene, - navigation = _this$props.navigation, - activeTintColor = _this$props.activeTintColor, - inactiveTintColor = _this$props.inactiveTintColor, - style = _this$props.style; - var route = scene.route, - index = scene.index; - var routes = navigation.state.routes; - var inputRange = [-1].concat(_toConsumableArray(routes.map(function (x, i) { - return i; - }))); - var activeOpacity = position.interpolate({ - inputRange: inputRange, - outputRange: inputRange.map(function (i) { - return i === index ? 1 : 0; - }) - }); - var inactiveOpacity = position.interpolate({ - inputRange: inputRange, - outputRange: inputRange.map(function (i) { - return i === index ? 0 : 1; - }) - }); - return _react.default.createElement(_reactNative.View, { - style: style, - __source: { - fileName: _jsxFileName, - lineNumber: 30 - } - }, _react.default.createElement(_reactNative.Animated.View, { - style: [styles.icon, { - opacity: activeOpacity - }], - __source: { - fileName: _jsxFileName, - lineNumber: 31 - } - }, this.props.renderIcon({ - route: route, - index: index, - focused: true, - tintColor: activeTintColor - })), _react.default.createElement(_reactNative.Animated.View, { - style: [styles.icon, { - opacity: inactiveOpacity - }], - __source: { - fileName: _jsxFileName, - lineNumber: 39 - } - }, this.props.renderIcon({ - route: route, - index: index, - focused: false, - tintColor: inactiveTintColor - }))); - } - }]); - - _inherits(TabBarIcon, _React$PureComponent); - - return TabBarIcon; - }(_react.default.PureComponent)); - - var _default2 = TabBarIcon; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - icon: { - position: 'absolute', - alignSelf: 'center', - alignItems: 'center', - justifyContent: 'center', - height: '100%', - width: '100%', - minWidth: 30 - } - }); -},608,[122,161,1],"node_modules/react-navigation-deprecated-tab-navigator/src/views/TabBarIcon.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _reactNavigation = _$$_REQUIRE(_dependencyMap[3], "react-navigation"); - - var _TabBarIcon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./TabBarIcon")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-deprecated-tab-navigator/src/views/TabBarBottom.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TabBarBottom: { - displayName: "TabBarBottom" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-deprecated-tab-navigator/src/views/TabBarBottom.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var majorVersion = parseInt(_reactNative.Platform.Version, 10); - var isIos = _reactNative.Platform.OS === 'ios'; - var isIOS11 = majorVersion >= 11 && isIos; - var defaultMaxTabBarItemWidth = 125; - - var TabBarBottom = function (_React$PureComponent) { - function TabBarBottom() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, TabBarBottom); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(TabBarBottom)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._renderLabel = function (scene) { - var _this$props = _this.props, - position = _this$props.position, - navigation = _this$props.navigation, - activeTintColor = _this$props.activeTintColor, - inactiveTintColor = _this$props.inactiveTintColor, - labelStyle = _this$props.labelStyle, - showLabel = _this$props.showLabel, - showIcon = _this$props.showIcon, - isLandscape = _this$props.isLandscape, - allowFontScaling = _this$props.allowFontScaling; - - if (showLabel === false) { - return null; - } - - var index = scene.index; - var routes = navigation.state.routes; - var inputRange = [-1].concat(_toConsumableArray(routes.map(function (x, i) { - return i; - }))); - var outputRange = inputRange.map(function (inputIndex) { - return inputIndex === index ? activeTintColor : inactiveTintColor; - }); - var color = position.interpolate({ - inputRange: inputRange, - outputRange: outputRange - }); - var tintColor = scene.focused ? activeTintColor : inactiveTintColor; - - var label = _this.props.getLabel(_objectSpread({}, scene, { - tintColor: tintColor - })); - - if (typeof label === 'string') { - return _react.default.createElement(_reactNative.Animated.Text, { - numberOfLines: 1, - style: [styles.label, { - color: color - }, showIcon && _this._shouldUseHorizontalTabs() ? styles.labelBeside : styles.labelBeneath, labelStyle], - allowFontScaling: allowFontScaling, - __source: { - fileName: _jsxFileName, - lineNumber: 69 - } - }, label); - } - - if (typeof label === 'function') { - return label(_objectSpread({}, scene, { - tintColor: tintColor - })); - } - - return label; - }, _this._renderIcon = function (scene) { - var _this$props2 = _this.props, - position = _this$props2.position, - navigation = _this$props2.navigation, - activeTintColor = _this$props2.activeTintColor, - inactiveTintColor = _this$props2.inactiveTintColor, - renderIcon = _this$props2.renderIcon, - showIcon = _this$props2.showIcon, - showLabel = _this$props2.showLabel; - - if (showIcon === false) { - return null; - } - - var horizontal = _this._shouldUseHorizontalTabs(); - - return _react.default.createElement(_TabBarIcon.default, { - position: position, - navigation: navigation, - activeTintColor: activeTintColor, - inactiveTintColor: inactiveTintColor, - renderIcon: renderIcon, - scene: scene, - style: [styles.iconWithExplicitHeight, showLabel === false && !horizontal && styles.iconWithoutLabel, showLabel !== false && !horizontal && styles.iconWithLabel], - __source: { - fileName: _jsxFileName, - lineNumber: 110 - } - }); - }, _this._renderTestIDProps = function (scene) { - var testIDProps = _this.props.getTestIDProps && _this.props.getTestIDProps(scene); - - return testIDProps; - }, _this._handleTabPress = function (index) { - var _this$props3 = _this.props, - jumpToIndex = _this$props3.jumpToIndex, - navigation = _this$props3.navigation; - var currentIndex = navigation.state.index; - - if (currentIndex === index) { - var childRoute = navigation.state.routes[index]; - - if (childRoute.hasOwnProperty('index') && childRoute.index > 0) { - navigation.dispatch(_reactNavigation.StackActions.popToTop({ - key: childRoute.key - })); - } else {} - } else { - jumpToIndex(index); - } - }, _temp)); - } - - _createClass(TabBarBottom, [{ - key: "_tabItemMaxWidth", - value: function _tabItemMaxWidth() { - var _this$props4 = this.props, - tabStyle = _this$props4.tabStyle, - layout = _this$props4.layout; - var maxTabBarItemWidth; - - var flattenedTabStyle = _reactNative.StyleSheet.flatten(tabStyle); - - if (flattenedTabStyle) { - if (typeof flattenedTabStyle.width === 'number') { - maxTabBarItemWidth = flattenedTabStyle.width; - } else if (typeof flattenedTabStyle.width === 'string' && flattenedTabStyle.width.endsWith('%')) { - var width = parseFloat(flattenedTabStyle.width); - - if (Number.isFinite(width)) { - maxTabBarItemWidth = layout.width * (width / 100); - } - } else if (typeof flattenedTabStyle.maxWidth === 'number') { - maxTabBarItemWidth = flattenedTabStyle.maxWidth; - } else if (typeof flattenedTabStyle.maxWidth === 'string' && flattenedTabStyle.width.endsWith('%')) { - var _width = parseFloat(flattenedTabStyle.maxWidth); - - if (Number.isFinite(_width)) { - maxTabBarItemWidth = layout.width * (_width / 100); - } - } - } - - if (!maxTabBarItemWidth) { - maxTabBarItemWidth = defaultMaxTabBarItemWidth; - } - - return maxTabBarItemWidth; - } - }, { - key: "_shouldUseHorizontalTabs", - value: function _shouldUseHorizontalTabs() { - var routes = this.props.navigation.state.routes; - var _this$props5 = this.props, - isLandscape = _this$props5.isLandscape, - layout = _this$props5.layout, - adaptive = _this$props5.adaptive, - tabStyle = _this$props5.tabStyle; - - if (!adaptive) { - return false; - } - - var tabBarWidth = layout.width; - - if (tabBarWidth === 0) { - return _reactNative.Platform.isPad; - } - - if (!_reactNative.Platform.isPad) { - return isLandscape; - } else { - var maxTabBarItemWidth = this._tabItemMaxWidth(); - - return routes.length * maxTabBarItemWidth <= tabBarWidth; - } - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props6 = this.props, - position = _this$props6.position, - navigation = _this$props6.navigation, - jumpToIndex = _this$props6.jumpToIndex, - getOnPress = _this$props6.getOnPress, - getTestIDProps = _this$props6.getTestIDProps, - activeBackgroundColor = _this$props6.activeBackgroundColor, - inactiveBackgroundColor = _this$props6.inactiveBackgroundColor, - style = _this$props6.style, - animateStyle = _this$props6.animateStyle, - tabStyle = _this$props6.tabStyle, - isLandscape = _this$props6.isLandscape; - var routes = navigation.state.routes; - var previousScene = routes[navigation.state.index]; - var inputRange = [-1].concat(_toConsumableArray(routes.map(function (x, i) { - return i; - }))); - var tabBarStyle = [styles.tabBar, this._shouldUseHorizontalTabs() && !_reactNative.Platform.isPad ? styles.tabBarCompact : styles.tabBarRegular, style]; - return _react.default.createElement(_reactNative.Animated.View, { - style: animateStyle, - __source: { - fileName: _jsxFileName, - lineNumber: 236 - } - }, _react.default.createElement(_reactNavigation.SafeAreaView, { - style: tabBarStyle, - forceInset: { - bottom: 'always', - top: 'never' - }, - __source: { - fileName: _jsxFileName, - lineNumber: 237 - } - }, routes.map(function (route, index) { - var focused = index === navigation.state.index; - var scene = { - route: route, - index: index, - focused: focused - }; - - var _onPress = getOnPress(previousScene, scene); - - var outputRange = inputRange.map(function (inputIndex) { - return inputIndex === index ? activeBackgroundColor : inactiveBackgroundColor; - }); - var backgroundColor = position.interpolate({ - inputRange: inputRange, - outputRange: outputRange - }); - var justifyContent = _this2.props.showIcon ? 'flex-end' : 'center'; - var extraProps = _this2._renderTestIDProps(scene) || {}; - var testID = extraProps.testID, - accessibilityLabel = extraProps.accessibilityLabel; - return _react.default.createElement(_reactNative.TouchableWithoutFeedback, { - key: route.key, - testID: testID, - accessibilityLabel: accessibilityLabel, - onPress: function onPress() { - return _onPress ? _onPress({ - previousScene: previousScene, - scene: scene, - jumpToIndex: jumpToIndex, - defaultHandler: _this2._handleTabPress - }) : _this2._handleTabPress(index); - }, - __source: { - fileName: _jsxFileName, - lineNumber: 261 - } - }, _react.default.createElement(_reactNative.Animated.View, { - style: [styles.tab, { - backgroundColor: backgroundColor - }], - __source: { - fileName: _jsxFileName, - lineNumber: 276 - } - }, _react.default.createElement(_reactNative.View, { - style: [styles.tab, _this2._shouldUseHorizontalTabs() ? styles.tabLandscape : styles.tabPortrait, tabStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 277 - } - }, _this2._renderIcon(scene), _this2._renderLabel(scene)))); - }))); - } - }]); - - _inherits(TabBarBottom, _React$PureComponent); - - return TabBarBottom; - }(_react.default.PureComponent); - - TabBarBottom.defaultProps = { - activeTintColor: '#3478f6', - activeBackgroundColor: 'transparent', - inactiveTintColor: '#929292', - inactiveBackgroundColor: 'transparent', - showLabel: true, - showIcon: true, - allowFontScaling: true, - adaptive: isIOS11 - }; - TabBarBottom = _wrapComponent("TabBarBottom")(TabBarBottom); - var DEFAULT_HEIGHT = 49; - var COMPACT_HEIGHT = 29; - - var styles = _reactNative.StyleSheet.create({ - tabBar: { - backgroundColor: '#F7F7F7', - borderTopWidth: _reactNative.StyleSheet.hairlineWidth, - borderTopColor: 'rgba(0, 0, 0, .3)', - flexDirection: 'row' - }, - tabBarCompact: { - height: COMPACT_HEIGHT - }, - tabBarRegular: { - height: DEFAULT_HEIGHT - }, - tab: { - flex: 1, - alignItems: isIos ? 'center' : 'stretch' - }, - tabPortrait: { - justifyContent: 'flex-end', - flexDirection: 'column' - }, - tabLandscape: { - justifyContent: 'center', - flexDirection: 'row' - }, - iconWithoutLabel: { - flex: 1 - }, - iconWithLabel: { - flex: 1 - }, - iconWithExplicitHeight: { - height: _reactNative.Platform.isPad ? DEFAULT_HEIGHT : COMPACT_HEIGHT - }, - label: { - textAlign: 'center', - backgroundColor: 'transparent' - }, - labelBeneath: { - fontSize: 10, - marginBottom: 1.5 - }, - labelBeside: { - fontSize: 13, - marginLeft: 20 - } - }); - - var _default2 = (0, _reactNavigation.withOrientation)(TabBarBottom); - - exports.default = _default2; -},596,[122,161,1,509,608],"node_modules/react-navigation-deprecated-tab-navigator/src/views/TabBarBottom.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = { - get createBottomTabNavigator() { - return _$$_REQUIRE(_dependencyMap[0], './navigators/createBottomTabNavigator').default; - }, - - get createMaterialTopTabNavigator() { - return _$$_REQUIRE(_dependencyMap[1], './navigators/createMaterialTopTabNavigator').default; - }, - - get BottomTabBar() { - return _$$_REQUIRE(_dependencyMap[2], './views/BottomTabBar').default; - }, - - get MaterialTopTabBar() { - return _$$_REQUIRE(_dependencyMap[3], './views/MaterialTopTabBar').default; - }, - - get createTabNavigator() { - return _$$_REQUIRE(_dependencyMap[4], './utils/createTabNavigator').default; - } - - }; -},526,[609,610,611,612,613],"node_modules/react-navigation-tabs/dist/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _reactLifecyclesCompat = _$$_REQUIRE(_dependencyMap[3], "react-lifecycles-compat"); - - var _createTabNavigator = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../utils/createTabNavigator")); - - var _BottomTabBar = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "../views/BottomTabBar")); - - var _ResourceSavingScene = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "../views/ResourceSavingScene")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/dist/navigators/createBottomTabNavigator.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TabNavigationView: { - displayName: "TabNavigationView" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/dist/navigators/createBottomTabNavigator.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var TabNavigationView = function (_React$PureComponent) { - function TabNavigationView() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, TabNavigationView); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(TabNavigationView)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { - loaded: [_this.props.navigation.state.index] - }, _this._renderTabBar = function () { - var _this$props = _this.props, - _this$props$tabBarCom = _this$props.tabBarComponent, - TabBarComponent = _this$props$tabBarCom === void 0 ? _BottomTabBar.default : _this$props$tabBarCom, - tabBarOptions = _this$props.tabBarOptions, - navigation = _this$props.navigation, - screenProps = _this$props.screenProps, - getLabelText = _this$props.getLabelText, - getAccessibilityLabel = _this$props.getAccessibilityLabel, - getButtonComponent = _this$props.getButtonComponent, - getTestID = _this$props.getTestID, - renderIcon = _this$props.renderIcon, - onTabPress = _this$props.onTabPress; - var descriptors = _this.props.descriptors; - var state = _this.props.navigation.state; - var route = state.routes[state.index]; - var descriptor = descriptors[route.key]; - var options = descriptor.options; - - if (options.tabBarVisible === false) { - return null; - } - - return React.createElement(TabBarComponent, _extends({}, tabBarOptions, { - jumpTo: _this._jumpTo, - navigation: navigation, - screenProps: screenProps, - onTabPress: onTabPress, - getLabelText: getLabelText, - getButtonComponent: getButtonComponent, - getAccessibilityLabel: getAccessibilityLabel, - getTestID: getTestID, - renderIcon: renderIcon, - __source: { - fileName: _jsxFileName, - lineNumber: 50 - } - })); - }, _this._jumpTo = function (key) { - var _this$props2 = _this.props, - navigation = _this$props2.navigation, - onIndexChange = _this$props2.onIndexChange; - var index = navigation.state.routes.findIndex(function (route) { - return route.key === key; - }); - onIndexChange(index); - }, _temp)); - } - - _createClass(TabNavigationView, [{ - key: "render", - value: function render() { - var _this$props3 = this.props, - navigation = _this$props3.navigation, - renderScene = _this$props3.renderScene, - lazy = _this$props3.lazy; - var routes = navigation.state.routes; - var loaded = this.state.loaded; - return React.createElement(_reactNative.View, { - style: styles.container, - __source: { - fileName: _jsxFileName, - lineNumber: 66 - } - }, React.createElement(_reactNative.View, { - style: styles.pages, - __source: { - fileName: _jsxFileName, - lineNumber: 67 - } - }, routes.map(function (route, index) { - if (lazy && !loaded.includes(index)) { - return null; - } - - var isFocused = navigation.state.index === index; - return React.createElement(_ResourceSavingScene.default, { - key: route.key, - style: [_reactNative.StyleSheet.absoluteFill, { - opacity: isFocused ? 1 : 0 - }], - isVisible: isFocused, - __source: { - fileName: _jsxFileName, - lineNumber: 76 - } - }, renderScene({ - route: route - })); - })), this._renderTabBar()); - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(nextProps, prevState) { - var index = nextProps.navigation.state.index; - return { - loaded: prevState.loaded.includes(index) ? prevState.loaded : _toConsumableArray(prevState.loaded).concat([index]) - }; - } - }]); - - _inherits(TabNavigationView, _React$PureComponent); - - return TabNavigationView; - }(React.PureComponent); - - TabNavigationView.defaultProps = { - lazy: true - }; - TabNavigationView = _wrapComponent("TabNavigationView")(TabNavigationView); - (0, _reactLifecyclesCompat.polyfill)(TabNavigationView); - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1, - overflow: 'hidden' - }, - pages: { - flex: 1 - } - }); - - var _default2 = (0, _createTabNavigator.default)(TabNavigationView); - - exports.default = _default2; -},609,[122,161,1,544,613,611,614],"node_modules/react-navigation-tabs/dist/navigators/createBottomTabNavigator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = createTabNavigator; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNavigation = _$$_REQUIRE(_dependencyMap[2], "react-navigation"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/dist/utils/createTabNavigator.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - NavigationView: { - displayName: "NavigationView", - isInFunction: true - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/dist/utils/createTabNavigator.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function createTabNavigator(TabView) { - var NavigationView = function (_React$Component) { - function NavigationView() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, NavigationView); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(NavigationView)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._renderScene = function (_ref) { - var route = _ref.route; - var _this$props = _this.props, - screenProps = _this$props.screenProps, - descriptors = _this$props.descriptors; - var descriptor = descriptors[route.key]; - var TabComponent = descriptor.getComponent(); - return React.createElement(_reactNavigation.SceneView, { - screenProps: screenProps, - navigation: descriptor.navigation, - component: TabComponent, - __source: { - fileName: _jsxFileName, - lineNumber: 10 - } - }); - }, _this._renderIcon = function (_ref2) { - var route = _ref2.route, - _ref2$focused = _ref2.focused, - focused = _ref2$focused === void 0 ? true : _ref2$focused, - tintColor = _ref2.tintColor, - _ref2$horizontal = _ref2.horizontal, - horizontal = _ref2$horizontal === void 0 ? false : _ref2$horizontal; - var descriptors = _this.props.descriptors; - var descriptor = descriptors[route.key]; - var options = descriptor.options; - - if (options.tabBarIcon) { - return typeof options.tabBarIcon === 'function' ? options.tabBarIcon({ - focused: focused, - tintColor: tintColor, - horizontal: horizontal - }) : options.tabBarIcon; - } - - return null; - }, _this._getButtonComponent = function (_ref3) { - var route = _ref3.route; - var descriptors = _this.props.descriptors; - var descriptor = descriptors[route.key]; - var options = descriptor.options; - - if (options.tabBarButtonComponent) { - return options.tabBarButtonComponent; - } - - return null; - }, _this._getLabelText = function (_ref4) { - var route = _ref4.route; - var descriptors = _this.props.descriptors; - var descriptor = descriptors[route.key]; - var options = descriptor.options; - - if (options.tabBarLabel) { - return options.tabBarLabel; - } - - if (typeof options.title === 'string') { - return options.title; - } - - return route.routeName; - }, _this._getAccessibilityLabel = function (_ref5) { - var route = _ref5.route; - var descriptors = _this.props.descriptors; - var descriptor = descriptors[route.key]; - var options = descriptor.options; - - if (typeof options.tabBarAccessibilityLabel !== 'undefined') { - return options.tabBarAccessibilityLabel; - } - - var label = _this._getLabelText({ - route: route - }); - - if (typeof label === 'string') { - return label; - } - }, _this._getTestID = function (_ref6) { - var route = _ref6.route; - var descriptors = _this.props.descriptors; - var descriptor = descriptors[route.key]; - var options = descriptor.options; - return options.tabBarTestID; - }, _this._handleTabPress = function (_ref7) { - var route = _ref7.route; - _this._isTabPress = true; - var descriptors = _this.props.descriptors; - var descriptor = descriptors[route.key]; - var navigation = descriptor.navigation, - options = descriptor.options; - - var defaultHandler = function defaultHandler() { - if (navigation.isFocused()) { - if (route.hasOwnProperty('index') && route.index > 0) { - navigation.dispatch(_reactNavigation.StackActions.popToTop({ - key: route.key - })); - } else {} - } else { - _this._jumpTo(route.routeName); - } - }; - - if (options.tabBarOnPress) { - options.tabBarOnPress({ - navigation: navigation, - defaultHandler: defaultHandler - }); - } else { - defaultHandler(); - } - }, _this._handleIndexChange = function (index) { - if (_this._isTabPress) { - _this._isTabPress = false; - return; - } - - _this._jumpTo(_this.props.navigation.state.routes[index].routeName); - }, _this._handleSwipeStart = function () { - _this.setState({ - isSwiping: true - }); - }, _this._handleSwipeEnd = function () { - _this.setState({ - isSwiping: false - }); - }, _this._jumpTo = function (routeName) { - return _this.props.navigation.dispatch(_reactNavigation.NavigationActions.navigate({ - routeName: routeName - })); - }, _this._isTabPress = false, _temp)); - } - - _createClass(NavigationView, [{ - key: "render", - value: function render() { - var _this$props2 = this.props, - descriptors = _this$props2.descriptors, - navigation = _this$props2.navigation, - screenProps = _this$props2.screenProps; - var state = navigation.state; - var route = state.routes[state.index]; - var descriptor = descriptors[route.key]; - - var options = _objectSpread({}, this.props.navigationConfig, descriptor.options); - - return React.createElement(TabView, _extends({}, options, { - getLabelText: this._getLabelText, - getButtonComponent: this._getButtonComponent, - getAccessibilityLabel: this._getAccessibilityLabel, - getTestID: this._getTestID, - renderIcon: this._renderIcon, - renderScene: this._renderScene, - onIndexChange: this._handleIndexChange, - onTabPress: this._handleTabPress, - navigation: navigation, - descriptors: descriptors, - screenProps: screenProps, - __source: { - fileName: _jsxFileName, - lineNumber: 140 - } - })); - } - }]); - - _inherits(NavigationView, _React$Component); - - return NavigationView; - }(React.Component); - - NavigationView = _wrapComponent("NavigationView")(NavigationView); - return function (routes) { - var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var router = (0, _reactNavigation.TabRouter)(routes, config); - var navigator = (0, _reactNavigation.createNavigator)(NavigationView, router, config); - return (0, _reactNavigation.createNavigationContainer)(navigator); - }; - } -},613,[122,161,509],"node_modules/react-navigation-tabs/dist/utils/createTabNavigator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _reactNavigation = _$$_REQUIRE(_dependencyMap[3], "react-navigation"); - - var _CrossFadeIcon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./CrossFadeIcon")); - - var _withDimensions = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "../utils/withDimensions")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/dist/views/BottomTabBar.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TouchableWithoutFeedbackWrapper: { - displayName: "TouchableWithoutFeedbackWrapper" - }, - TabBarBottom: { - displayName: "TabBarBottom" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/dist/views/BottomTabBar.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var majorVersion = parseInt(_reactNative.Platform.Version, 10); - var isIos = _reactNative.Platform.OS === 'ios'; - var isIOS11 = majorVersion >= 11 && isIos; - var DEFAULT_MAX_TAB_ITEM_WIDTH = 125; - - var TouchableWithoutFeedbackWrapper = function (_React$Component) { - function TouchableWithoutFeedbackWrapper() { - _classCallCheck(this, TouchableWithoutFeedbackWrapper); - - return _possibleConstructorReturn(this, _getPrototypeOf(TouchableWithoutFeedbackWrapper).apply(this, arguments)); - } - - _createClass(TouchableWithoutFeedbackWrapper, [{ - key: "render", - value: function render() { - var _this$props = this.props, - onPress = _this$props.onPress, - testID = _this$props.testID, - accessibilityLabel = _this$props.accessibilityLabel, - props = _objectWithoutProperties(_this$props, ["onPress", "testID", "accessibilityLabel"]); - - return _react.default.createElement(_reactNative.TouchableWithoutFeedback, { - onPress: onPress, - testID: testID, - accessibilityLabel: accessibilityLabel, - __source: { - fileName: _jsxFileName, - lineNumber: 18 - } - }, _react.default.createElement(_reactNative.View, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 19 - } - }))); - } - }]); - - _inherits(TouchableWithoutFeedbackWrapper, _React$Component); - - return TouchableWithoutFeedbackWrapper; - }(_react.default.Component); - - TouchableWithoutFeedbackWrapper = _wrapComponent("TouchableWithoutFeedbackWrapper")(TouchableWithoutFeedbackWrapper); - - var TabBarBottom = function (_React$Component2) { - function TabBarBottom() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, TabBarBottom); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(TabBarBottom)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._renderLabel = function (_ref) { - var route = _ref.route, - focused = _ref.focused; - var _this$props2 = _this.props, - activeTintColor = _this$props2.activeTintColor, - inactiveTintColor = _this$props2.inactiveTintColor, - labelStyle = _this$props2.labelStyle, - showLabel = _this$props2.showLabel, - showIcon = _this$props2.showIcon, - allowFontScaling = _this$props2.allowFontScaling; - - if (showLabel === false) { - return null; - } - - var label = _this.props.getLabelText({ - route: route - }); - - var tintColor = focused ? activeTintColor : inactiveTintColor; - - if (typeof label === 'string') { - return _react.default.createElement(_reactNative.Animated.Text, { - numberOfLines: 1, - style: [styles.label, { - color: tintColor - }, showIcon && _this._shouldUseHorizontalLabels() ? styles.labelBeside : styles.labelBeneath, labelStyle], - allowFontScaling: allowFontScaling, - __source: { - fileName: _jsxFileName, - lineNumber: 55 - } - }, label); - } - - if (typeof label === 'function') { - return label({ - route: route, - focused: focused, - tintColor: tintColor - }); - } - - return label; - }, _this._renderIcon = function (_ref2) { - var route = _ref2.route, - focused = _ref2.focused; - var _this$props3 = _this.props, - navigation = _this$props3.navigation, - activeTintColor = _this$props3.activeTintColor, - inactiveTintColor = _this$props3.inactiveTintColor, - renderIcon = _this$props3.renderIcon, - showIcon = _this$props3.showIcon, - showLabel = _this$props3.showLabel; - - if (showIcon === false) { - return null; - } - - var horizontal = _this._shouldUseHorizontalLabels(); - - var activeOpacity = focused ? 1 : 0; - var inactiveOpacity = focused ? 0 : 1; - return _react.default.createElement(_CrossFadeIcon.default, { - route: route, - horizontal: horizontal, - navigation: navigation, - activeOpacity: activeOpacity, - inactiveOpacity: inactiveOpacity, - activeTintColor: activeTintColor, - inactiveTintColor: inactiveTintColor, - renderIcon: renderIcon, - style: [styles.iconWithExplicitHeight, showLabel === false && !horizontal && styles.iconWithoutLabel, showLabel !== false && !horizontal && styles.iconWithLabel], - __source: { - fileName: _jsxFileName, - lineNumber: 85 - } - }); - }, _this._shouldUseHorizontalLabels = function () { - var routes = _this.props.navigation.state.routes; - var _this$props4 = _this.props, - isLandscape = _this$props4.isLandscape, - dimensions = _this$props4.dimensions, - adaptive = _this$props4.adaptive, - tabStyle = _this$props4.tabStyle; - - if (!adaptive) { - return false; - } - - if (_reactNative.Platform.isPad) { - var maxTabItemWidth = DEFAULT_MAX_TAB_ITEM_WIDTH; - - var flattenedStyle = _reactNative.StyleSheet.flatten(tabStyle); - - if (flattenedStyle) { - if (typeof flattenedStyle.width === 'number') { - maxTabItemWidth = flattenedStyle.width; - } else if (typeof flattenedStyle.maxWidth === 'number') { - maxTabItemWidth = flattenedStyle.maxWidth; - } - } - - return routes.length * maxTabItemWidth <= dimensions.width; - } else { - return isLandscape; - } - }, _temp)); - } - - _createClass(TabBarBottom, [{ - key: "render", - value: function render() { - var _this2 = this; - - var _this$props5 = this.props, - navigation = _this$props5.navigation, - activeBackgroundColor = _this$props5.activeBackgroundColor, - inactiveBackgroundColor = _this$props5.inactiveBackgroundColor, - onTabPress = _this$props5.onTabPress, - safeAreaInset = _this$props5.safeAreaInset, - style = _this$props5.style, - tabStyle = _this$props5.tabStyle; - var routes = navigation.state.routes; - var tabBarStyle = [styles.tabBar, this._shouldUseHorizontalLabels() && !_reactNative.Platform.isPad ? styles.tabBarCompact : styles.tabBarRegular, style]; - return _react.default.createElement(_reactNavigation.SafeAreaView, { - style: tabBarStyle, - forceInset: safeAreaInset, - __source: { - fileName: _jsxFileName, - lineNumber: 130 - } - }, routes.map(function (route, index) { - var focused = index === navigation.state.index; - var scene = { - route: route, - focused: focused - }; - - var accessibilityLabel = _this2.props.getAccessibilityLabel({ - route: route - }); - - var testID = _this2.props.getTestID({ - route: route - }); - - var backgroundColor = focused ? activeBackgroundColor : inactiveBackgroundColor; - var ButtonComponent = _this2.props.getButtonComponent({ - route: route - }) || TouchableWithoutFeedbackWrapper; - return _react.default.createElement(ButtonComponent, { - key: route.key, - onPress: function onPress() { - return onTabPress({ - route: route - }); - }, - testID: testID, - accessibilityLabel: accessibilityLabel, - style: [styles.tab, { - backgroundColor: backgroundColor - }, _this2._shouldUseHorizontalLabels() ? styles.tabLandscape : styles.tabPortrait, tabStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 143 - } - }, _this2._renderIcon(scene), _this2._renderLabel(scene)); - })); - } - }]); - - _inherits(TabBarBottom, _React$Component2); - - return TabBarBottom; - }(_react.default.Component); - - TabBarBottom.defaultProps = { - activeTintColor: '#3478f6', - activeBackgroundColor: 'transparent', - inactiveTintColor: '#929292', - inactiveBackgroundColor: 'transparent', - showLabel: true, - showIcon: true, - allowFontScaling: true, - adaptive: isIOS11, - safeAreaInset: { - bottom: 'always', - top: 'never' - } - }; - TabBarBottom = _wrapComponent("TabBarBottom")(TabBarBottom); - var DEFAULT_HEIGHT = 49; - var COMPACT_HEIGHT = 29; - - var styles = _reactNative.StyleSheet.create({ - tabBar: { - backgroundColor: '#fff', - borderTopWidth: _reactNative.StyleSheet.hairlineWidth, - borderTopColor: 'rgba(0, 0, 0, .3)', - flexDirection: 'row' - }, - tabBarCompact: { - height: COMPACT_HEIGHT - }, - tabBarRegular: { - height: DEFAULT_HEIGHT - }, - tab: { - flex: 1, - alignItems: isIos ? 'center' : 'stretch' - }, - tabPortrait: { - justifyContent: 'flex-end', - flexDirection: 'column' - }, - tabLandscape: { - justifyContent: 'center', - flexDirection: 'row' - }, - iconWithoutLabel: { - flex: 1 - }, - iconWithLabel: { - flex: 1 - }, - iconWithExplicitHeight: { - height: _reactNative.Platform.isPad ? DEFAULT_HEIGHT : COMPACT_HEIGHT - }, - label: { - textAlign: 'center', - backgroundColor: 'transparent' - }, - labelBeneath: { - fontSize: 11, - marginBottom: 1.5 - }, - labelBeside: { - fontSize: 12, - marginLeft: 15 - } - }); - - var _default2 = (0, _withDimensions.default)(TabBarBottom); - - exports.default = _default2; -},611,[122,161,1,509,615,616],"node_modules/react-navigation-tabs/dist/views/BottomTabBar.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/dist/views/CrossFadeIcon.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TabBarIcon: { - displayName: "TabBarIcon" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/dist/views/CrossFadeIcon.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var TabBarIcon = _wrapComponent("TabBarIcon")(function (_React$Component) { - function TabBarIcon() { - _classCallCheck(this, TabBarIcon); - - return _possibleConstructorReturn(this, _getPrototypeOf(TabBarIcon).apply(this, arguments)); - } - - _createClass(TabBarIcon, [{ - key: "render", - value: function render() { - var _this$props = this.props, - route = _this$props.route, - activeOpacity = _this$props.activeOpacity, - inactiveOpacity = _this$props.inactiveOpacity, - activeTintColor = _this$props.activeTintColor, - inactiveTintColor = _this$props.inactiveTintColor, - renderIcon = _this$props.renderIcon, - horizontal = _this$props.horizontal, - style = _this$props.style; - return _react.default.createElement(_reactNative.View, { - style: style, - __source: { - fileName: _jsxFileName, - lineNumber: 19 - } - }, _react.default.createElement(_reactNative.Animated.View, { - style: [styles.icon, { - opacity: activeOpacity - }], - __source: { - fileName: _jsxFileName, - lineNumber: 20 - } - }, renderIcon({ - route: route, - focused: true, - horizontal: horizontal, - tintColor: activeTintColor - })), _react.default.createElement(_reactNative.Animated.View, { - style: [styles.icon, { - opacity: inactiveOpacity - }], - __source: { - fileName: _jsxFileName, - lineNumber: 28 - } - }, renderIcon({ - route: route, - focused: false, - horizontal: horizontal, - tintColor: inactiveTintColor - }))); - } - }]); - - _inherits(TabBarIcon, _React$Component); - - return TabBarIcon; - }(_react.default.Component)); - - var _default2 = TabBarIcon; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - icon: { - position: 'absolute', - alignSelf: 'center', - alignItems: 'center', - justifyContent: 'center', - height: '100%', - width: '100%', - minWidth: 25 - } - }); -},615,[122,161,1],"node_modules/react-navigation-tabs/dist/views/CrossFadeIcon.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = withDimensions; - exports.isOrientationLandscape = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _hoistNonReactStatics = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "hoist-non-react-statics")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/dist/utils/withDimensions.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - EnhancedComponent: { - displayName: "EnhancedComponent", - isInFunction: true - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/dist/utils/withDimensions.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var isOrientationLandscape = function isOrientationLandscape(_ref) { - var width = _ref.width, - height = _ref.height; - return width > height; - }; - - exports.isOrientationLandscape = isOrientationLandscape; - - function withDimensions(WrappedComponent) { - var _Dimensions$get = _reactNative.Dimensions.get('window'), - width = _Dimensions$get.width, - height = _Dimensions$get.height; - - var EnhancedComponent = function (_React$Component) { - function EnhancedComponent() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, EnhancedComponent); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(EnhancedComponent)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { - dimensions: { - width: width, - height: height - }, - isLandscape: isOrientationLandscape({ - width: width, - height: height - }) - }, _this.handleOrientationChange = function (_ref2) { - var window = _ref2.window; - var isLandscape = isOrientationLandscape(window); - - _this.setState({ - isLandscape: isLandscape - }); - }, _temp)); - } - - _createClass(EnhancedComponent, [{ - key: "componentDidMount", - value: function componentDidMount() { - _reactNative.Dimensions.addEventListener('change', this.handleOrientationChange); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - _reactNative.Dimensions.removeEventListener('change', this.handleOrientationChange); - } - }, { - key: "render", - value: function render() { - return React.createElement(WrappedComponent, _extends({}, this.props, this.state, { - __source: { - fileName: _jsxFileName, - lineNumber: 32 - } - })); - } - }]); - - _inherits(EnhancedComponent, _React$Component); - - return EnhancedComponent; - }(React.Component); - - EnhancedComponent.displayName = "withDimensions(" + WrappedComponent.displayName + ")"; - EnhancedComponent = _wrapComponent("EnhancedComponent")(EnhancedComponent); - return (0, _hoistNonReactStatics.default)(EnhancedComponent, WrappedComponent); - } -},616,[122,161,1,617],"node_modules/react-navigation-tabs/dist/utils/withDimensions.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var REACT_STATICS = { - childContextTypes: true, - contextTypes: true, - defaultProps: true, - displayName: true, - getDefaultProps: true, - getDerivedStateFromProps: true, - mixins: true, - propTypes: true, - type: true - }; - var KNOWN_STATICS = { - name: true, - length: true, - prototype: true, - caller: true, - callee: true, - arguments: true, - arity: true - }; - var defineProperty = Object.defineProperty; - var getOwnPropertyNames = Object.getOwnPropertyNames; - var getOwnPropertySymbols = Object.getOwnPropertySymbols; - var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - var getPrototypeOf = Object.getPrototypeOf; - var objectPrototype = getPrototypeOf && getPrototypeOf(Object); - - function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { - if (typeof sourceComponent !== 'string') { - if (objectPrototype) { - var inheritedComponent = getPrototypeOf(sourceComponent); - - if (inheritedComponent && inheritedComponent !== objectPrototype) { - hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); - } - } - - var keys = getOwnPropertyNames(sourceComponent); - - if (getOwnPropertySymbols) { - keys = keys.concat(getOwnPropertySymbols(sourceComponent)); - } - - for (var i = 0; i < keys.length; ++i) { - var key = keys[i]; - - if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) { - var descriptor = getOwnPropertyDescriptor(sourceComponent, key); - - try { - defineProperty(targetComponent, key, descriptor); - } catch (e) {} - } - } - - return targetComponent; - } - - return targetComponent; - } - - module.exports = hoistNonReactStatics; -},617,[],"node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/dist/views/ResourceSavingScene.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - ResourceSavingScene: { - displayName: "ResourceSavingScene" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/dist/views/ResourceSavingScene.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var FAR_FAR_AWAY = 3000; - - var ResourceSavingScene = _wrapComponent("ResourceSavingScene")(function (_React$Component) { - function ResourceSavingScene() { - _classCallCheck(this, ResourceSavingScene); - - return _possibleConstructorReturn(this, _getPrototypeOf(ResourceSavingScene).apply(this, arguments)); - } - - _createClass(ResourceSavingScene, [{ - key: "render", - value: function render() { - var _this$props = this.props, - isVisible = _this$props.isVisible, - children = _this$props.children, - style = _this$props.style, - rest = _objectWithoutProperties(_this$props, ["isVisible", "children", "style"]); - - return React.createElement(_reactNative.View, _extends({ - style: [styles.container, style], - collapsable: false, - removeClippedSubviews: _reactNative.Platform.OS === 'ios' ? !isVisible : true, - pointerEvents: isVisible ? 'auto' : 'none' - }, rest, { - __source: { - fileName: _jsxFileName, - lineNumber: 10 - } - }), React.createElement(_reactNative.View, { - style: isVisible ? styles.attached : styles.detached, - __source: { - fileName: _jsxFileName, - lineNumber: 14 - } - }, children)); - } - }]); - - _inherits(ResourceSavingScene, _React$Component); - - return ResourceSavingScene; - }(React.Component)); - - var _default2 = ResourceSavingScene; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1, - overflow: 'hidden' - }, - attached: { - flex: 1 - }, - detached: { - flex: 1, - top: FAR_FAR_AWAY - } - }); -},614,[122,161,1],"node_modules/react-navigation-tabs/dist/views/ResourceSavingScene.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _reactLifecyclesCompat = _$$_REQUIRE(_dependencyMap[3], "react-lifecycles-compat"); - - var _reactNativeTabView = _$$_REQUIRE(_dependencyMap[4], "react-native-tab-view"); - - var _createTabNavigator = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "../utils/createTabNavigator")); - - var _MaterialTopTabBar = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "../views/MaterialTopTabBar")); - - var _ResourceSavingScene = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[7], "../views/ResourceSavingScene")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/dist/navigators/createMaterialTopTabNavigator.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - MaterialTabView: { - displayName: "MaterialTabView" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/dist/navigators/createMaterialTopTabNavigator.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var MaterialTabView = function (_React$PureComponent) { - function MaterialTabView() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, MaterialTabView); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(MaterialTabView)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { - index: 0, - isSwiping: false, - loaded: [_this.props.navigation.state.index], - transitioningFromIndex: null - }, _this._renderIcon = function (_ref) { - var focused = _ref.focused, - route = _ref.route, - tintColor = _ref.tintColor; - var descriptors = _this.props.descriptors; - var descriptor = descriptors[route.key]; - var options = descriptor.options; - - if (options.tabBarIcon) { - return typeof options.tabBarIcon === 'function' ? options.tabBarIcon({ - tintColor: tintColor, - focused: focused - }) : options.tabBarIcon; - } - - return null; - }, _this._renderTabBar = function (props) { - var state = _this.props.navigation.state; - var route = state.routes[state.index]; - var descriptors = _this.props.descriptors; - var descriptor = descriptors[route.key]; - var options = descriptor.options; - var tabBarVisible = options.tabBarVisible == null ? true : options.tabBarVisible; - var _this$props = _this.props, - _this$props$tabBarCom = _this$props.tabBarComponent, - TabBarComponent = _this$props$tabBarCom === void 0 ? _MaterialTopTabBar.default : _this$props$tabBarCom, - tabBarPosition = _this$props.tabBarPosition, - tabBarOptions = _this$props.tabBarOptions; - - if (TabBarComponent === null || !tabBarVisible) { - return null; - } - - return React.createElement(TabBarComponent, _extends({}, tabBarOptions, props, { - tabBarPosition: tabBarPosition, - screenProps: _this.props.screenProps, - navigation: _this.props.navigation, - getLabelText: _this.props.getLabelText, - getAccessibilityLabel: _this.props.getAccessibilityLabel, - getTestID: _this.props.getTestID, - renderIcon: _this._renderIcon, - onTabPress: _this.props.onTabPress, - __source: { - fileName: _jsxFileName, - lineNumber: 73 - } - })); - }, _this._renderPanPager = function (props) { - return React.createElement(_reactNativeTabView.PagerPan, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 77 - } - })); - }, _this._handleAnimationEnd = function () { - var lazy = _this.props.lazy; - - if (lazy) { - _this.setState({ - transitioningFromIndex: null, - isSwiping: false - }); - } - }, _this._handleSwipeStart = function () { - var _this$props2 = _this.props, - navigation = _this$props2.navigation, - lazy = _this$props2.lazy; - - if (lazy) { - _this.setState({ - isSwiping: true, - loaded: _toConsumableArray(new Set(_toConsumableArray(_this.state.loaded).concat([Math.max(navigation.state.index - 1, 0), Math.min(navigation.state.index + 1, navigation.state.routes.length - 1)]))) - }); - } - }, _this._handleIndexChange = function (index) { - var _this$props3 = _this.props, - animationEnabled = _this$props3.animationEnabled, - navigation = _this$props3.navigation, - onIndexChange = _this$props3.onIndexChange, - lazy = _this$props3.lazy; - - if (lazy && animationEnabled) { - _this.setState({ - transitioningFromIndex: navigation.state.index || 0 - }); - } - - onIndexChange(index); - }, _this._mustBeVisible = function (_ref2) { - var index = _ref2.index, - focused = _ref2.focused; - var _this$props4 = _this.props, - animationEnabled = _this$props4.animationEnabled, - navigation = _this$props4.navigation; - var _this$state = _this.state, - isSwiping = _this$state.isSwiping, - transitioningFromIndex = _this$state.transitioningFromIndex; - - if (isSwiping) { - var isSibling = navigation.state.index === index - 1 || navigation.state.index === index + 1; - - if (isSibling) { - return true; - } - } - - if (animationEnabled && transitioningFromIndex === index) { - return true; - } - - return focused; - }, _this._renderScene = function (_ref3) { - var route = _ref3.route; - var _this$props5 = _this.props, - renderScene = _this$props5.renderScene, - descriptors = _this$props5.descriptors, - lazy = _this$props5.lazy, - optimizationsEnabled = _this$props5.optimizationsEnabled; - - if (lazy) { - var loaded = _this.state.loaded; - var routes = _this.props.navigation.state.routes; - var index = routes.findIndex(function (_ref4) { - var key = _ref4.key; - return key === route.key; - }); - var navigation = descriptors[route.key].navigation; - - var mustBeVisible = _this._mustBeVisible({ - index: index, - focused: navigation.isFocused() - }); - - if (!loaded.includes(index) && !mustBeVisible) { - return React.createElement(_reactNative.View, { - __source: { - fileName: _jsxFileName, - lineNumber: 148 - } - }); - } - - if (optimizationsEnabled) { - return React.createElement(_ResourceSavingScene.default, { - isVisible: mustBeVisible, - __source: { - fileName: _jsxFileName, - lineNumber: 152 - } - }, renderScene({ - route: route - })); - } - } - - return renderScene({ - route: route - }); - }, _temp)); - } - - _createClass(MaterialTabView, [{ - key: "render", - value: function render() { - var _this$props6 = this.props, - navigation = _this$props6.navigation, - animationEnabled = _this$props6.animationEnabled, - renderScene = _this$props6.renderScene, - onIndexChange = _this$props6.onIndexChange, - rest = _objectWithoutProperties(_this$props6, ["navigation", "animationEnabled", "renderScene", "onIndexChange"]); - - var renderPager; - var state = this.props.navigation.state; - var route = state.routes[state.index]; - var descriptors = this.props.descriptors; - var descriptor = descriptors[route.key]; - var options = descriptor.options; - var swipeEnabled = options.swipeEnabled == null ? this.props.swipeEnabled : options.swipeEnabled; - - if (typeof swipeEnabled === 'function') { - swipeEnabled = swipeEnabled(state); - } - - if (animationEnabled === false && swipeEnabled === false) { - renderPager = this._renderPanPager; - } - - return React.createElement(_reactNativeTabView.TabView, _extends({}, rest, { - navigationState: navigation.state, - animationEnabled: animationEnabled, - swipeEnabled: swipeEnabled, - onAnimationEnd: this._handleAnimationEnd, - onIndexChange: this._handleIndexChange, - onSwipeStart: this._handleSwipeStart, - renderPager: renderPager, - renderTabBar: this._renderTabBar, - renderScene: this._renderScene, - __source: { - fileName: _jsxFileName, - lineNumber: 190 - } - })); - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(nextProps, prevState) { - var index = nextProps.navigation.state.index; - - if (prevState.index === index) { - return null; - } - - return { - loaded: prevState.loaded.includes(index) ? prevState.loaded : _toConsumableArray(prevState.loaded).concat([index]), - index: index - }; - } - }]); - - _inherits(MaterialTabView, _React$PureComponent); - - return MaterialTabView; - }(React.PureComponent); - - MaterialTabView.defaultProps = { - initialLayout: _reactNative.Platform.select({ - android: { - width: 1, - height: 0 - } - }), - animationEnabled: true, - lazy: false, - optimizationsEnabled: false - }; - MaterialTabView = _wrapComponent("MaterialTabView")(MaterialTabView); - (0, _reactLifecyclesCompat.polyfill)(MaterialTabView); - - var _default2 = (0, _createTabNavigator.default)(MaterialTabView); - - exports.default = _default2; -},610,[122,161,1,544,618,613,612,614],"node_modules/react-navigation-tabs/dist/navigators/createMaterialTopTabNavigator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.defineProperty(exports, "TabView", { - enumerable: true, - get: function get() { - return _TabView.default; - } - }); - Object.defineProperty(exports, "TabBar", { - enumerable: true, - get: function get() { - return _TabBar.default; - } - }); - Object.defineProperty(exports, "PagerDefault", { - enumerable: true, - get: function get() { - return _PagerDefault.default; - } - }); - Object.defineProperty(exports, "PagerPan", { - enumerable: true, - get: function get() { - return _PagerPan.default; - } - }); - Object.defineProperty(exports, "PagerScroll", { - enumerable: true, - get: function get() { - return _PagerScroll.default; - } - }); - Object.defineProperty(exports, "PagerAndroid", { - enumerable: true, - get: function get() { - return _PagerAndroid.default; - } - }); - Object.defineProperty(exports, "PagerExperimental", { - enumerable: true, - get: function get() { - return _PagerExperimental.default; - } - }); - Object.defineProperty(exports, "SceneMap", { - enumerable: true, - get: function get() { - return _SceneMap.default; - } - }); - - var _TabView = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./TabView")); - - var _TabBar = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./TabBar")); - - var _PagerDefault = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "./PagerDefault")); - - var _PagerPan = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "./PagerPan")); - - var _PagerScroll = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./PagerScroll")); - - var _PagerAndroid = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./PagerAndroid")); - - var _PagerExperimental = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "./PagerExperimental")); - - var _SceneMap = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[7], "./SceneMap")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -},618,[619,620,621,622,623,624,625,626],"node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _TabBar = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./TabBar")); - - var _PagerDefault = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./PagerDefault")); - - var _PropTypes = _$$_REQUIRE(_dependencyMap[6], "./PropTypes"); - - var _class, - _temp, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/TabView.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TabView: { - displayName: "TabView" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/TabView.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var TabView = _wrapComponent("TabView")((_temp = _class = function (_React$Component) { - function TabView(_props) { - var _this; - - _classCallCheck(this, TabView); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(TabView).call(this, _props)); - _this._mounted = false; - - _this._renderScene = function (props) { - return _this.props.renderScene(props); - }; - - _this._handleLayout = function (e) { - var _e$nativeEvent$layout = e.nativeEvent.layout, - height = _e$nativeEvent$layout.height, - width = _e$nativeEvent$layout.width; - - if (_this.state.layout.width === width && _this.state.layout.height === height) { - return; - } - - _this.state.offsetX.setValue(-_this.props.navigationState.index * width); - - _this.state.layoutXY.setValue({ - x: width || 0.001, - y: height || 0.001 - }); - - _this.setState({ - layout: { - measured: true, - height: height, - width: width - } - }); - }; - - _this._buildSceneRendererProps = function () { - return { - panX: _this.state.panX, - offsetX: _this.state.offsetX, - position: _this.state.position, - layout: _this.state.layout, - navigationState: _this.props.navigationState, - jumpTo: _this._jumpTo, - useNativeDriver: _this.props.useNativeDriver === true - }; - }; - - _this._jumpTo = function (key) { - if (!_this._mounted) { - return; - } - - var _this$props = _this.props, - canJumpToTab = _this$props.canJumpToTab, - navigationState = _this$props.navigationState; - var index = navigationState.routes.findIndex(function (route) { - return route.key === key; - }); - - if (!canJumpToTab(navigationState.routes[index])) { - return; - } - - if (index !== navigationState.index) { - _this.props.onIndexChange(index); - } - }; - - var _navigationState = _this.props.navigationState; - - var layout = _objectSpread({}, _this.props.initialLayout, { - measured: false - }); - - var panX = new _reactNative.Animated.Value(0); - var offsetX = new _reactNative.Animated.Value(-_navigationState.index * layout.width); - var layoutXY = new _reactNative.Animated.ValueXY({ - x: layout.width || 0.001, - y: layout.height || 0.001 - }); - - var position = _reactNative.Animated.multiply(_reactNative.Animated.divide(_reactNative.Animated.add(panX, offsetX), layoutXY.x), -1); - - _this.state = { - layout: layout, - layoutXY: layoutXY, - panX: panX, - offsetX: offsetX, - position: position - }; - return _this; - } - - _createClass(TabView, [{ - key: "componentDidMount", - value: function componentDidMount() { - this._mounted = true; - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this._mounted = false; - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props2 = this.props, - navigationState = _this$props2.navigationState, - onIndexChange = _this$props2.onIndexChange, - initialLayout = _this$props2.initialLayout, - renderScene = _this$props2.renderScene, - renderPager = _this$props2.renderPager, - renderTabBar = _this$props2.renderTabBar, - tabBarPosition = _this$props2.tabBarPosition, - rest = _objectWithoutProperties(_this$props2, ["navigationState", "onIndexChange", "initialLayout", "renderScene", "renderPager", "renderTabBar", "tabBarPosition"]); - - var props = this._buildSceneRendererProps(); - - return React.createElement(_reactNative.View, { - collapsable: false, - style: [styles.container, this.props.style], - __source: { - fileName: _jsxFileName, - lineNumber: 184 - } - }, tabBarPosition === 'top' && renderTabBar(props), React.createElement(_reactNative.View, { - onLayout: this._handleLayout, - style: styles.pager, - __source: { - fileName: _jsxFileName, - lineNumber: 186 - } - }, renderPager(_objectSpread({}, props, rest, { - panX: this.state.panX, - offsetX: this.state.offsetX, - children: navigationState.routes.map(function (route) { - var scene = _this2._renderScene(_objectSpread({}, props, { - route: route - })); - - if (React.isValidElement(scene)) { - return React.cloneElement(scene, { - key: route.key - }); - } - - return scene; - }) - }))), tabBarPosition === 'bottom' && renderTabBar(props)); - } - }]); - - _inherits(TabView, _React$Component); - - return TabView; - }(React.Component), _class.propTypes = { - navigationState: _PropTypes.NavigationStatePropType.isRequired, - onIndexChange: _propTypes.default.func.isRequired, - initialLayout: _propTypes.default.shape({ - height: _propTypes.default.number.isRequired, - width: _propTypes.default.number.isRequired - }), - canJumpToTab: _propTypes.default.func.isRequired, - renderPager: _propTypes.default.func.isRequired, - renderScene: _propTypes.default.func.isRequired, - renderTabBar: _propTypes.default.func, - tabBarPosition: _propTypes.default.oneOf(['top', 'bottom']) - }, _class.defaultProps = { - canJumpToTab: function canJumpToTab() { - return true; - }, - tabBarPosition: 'top', - renderTabBar: function renderTabBar(props) { - return React.createElement(_TabBar.default, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 58 - } - })); - }, - renderPager: function renderPager(props) { - return React.createElement(_PagerDefault.default, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 59 - } - })); - }, - getTestID: function getTestID(_ref) { - var route = _ref.route; - return typeof route.testID === 'string' ? route.testID : undefined; - }, - initialLayout: { - height: 0, - width: 0 - }, - useNativeDriver: false - }, _temp)); - - var _default2 = TabView; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1, - overflow: 'hidden' - }, - pager: { - flex: 1 - } - }); -},619,[122,161,143,1,620,621,627],"node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/TabView.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _TouchableItem = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./TouchableItem")); - - var _PropTypes = _$$_REQUIRE(_dependencyMap[5], "./PropTypes"); - - var _class, - _temp, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/TabBar.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TabBar: { - displayName: "TabBar" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/TabBar.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var useNativeDriver = Boolean(_reactNative.NativeModules.NativeAnimatedModule); - - var TabBar = _wrapComponent("TabBar")((_temp = _class = function (_React$Component) { - function TabBar(_props) { - var _this; - - _classCallCheck(this, TabBar); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(TabBar).call(this, _props)); - _this._isIntial = true; - _this._isManualScroll = false; - _this._isMomentumScroll = false; - - _this._startTrackingPosition = function () { - _this._offsetXListener = _this.props.offsetX.addListener(function (_ref) { - var value = _ref.value; - _this._lastOffsetX = value; - - _this._handlePosition(); - }); - _this._panXListener = _this.props.panX.addListener(function (_ref2) { - var value = _ref2.value; - _this._lastPanX = value; - - _this._handlePosition(); - }); - }; - - _this._stopTrackingPosition = function () { - _this.props.offsetX.removeListener(_this._offsetXListener); - - _this.props.panX.removeListener(_this._panXListener); - }; - - _this._handlePosition = function () { - var _this$props = _this.props, - navigationState = _this$props.navigationState, - layout = _this$props.layout; - - if (layout.width === 0) { - return; - } - - var panX = typeof _this._lastPanX === 'number' ? _this._lastPanX : 0; - var offsetX = typeof _this._lastOffsetX === 'number' ? _this._lastOffsetX : -navigationState.index * layout.width; - var value = (panX + offsetX) / -(layout.width || 0.001); - - _this._adjustScroll(value); - }; - - _this._renderLabel = function (scene) { - if (typeof _this.props.renderLabel !== 'undefined') { - return _this.props.renderLabel(scene); - } - - var label = _this.props.getLabelText(scene); - - if (typeof label !== 'string') { - return null; - } - - return React.createElement(_reactNative.Animated.Text, { - style: [styles.tabLabel, _this.props.labelStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 199 - } - }, label); - }; - - _this._renderIndicator = function (props) { - if (typeof _this.props.renderIndicator !== 'undefined') { - return _this.props.renderIndicator(props); - } - - var width = props.width, - position = props.position, - navigationState = props.navigationState; - - var translateX = _reactNative.Animated.multiply(_reactNative.Animated.multiply(position.interpolate({ - inputRange: [0, navigationState.routes.length - 1], - outputRange: [0, navigationState.routes.length - 1], - extrapolate: 'clamp' - }), width), _reactNative.I18nManager.isRTL ? -1 : 1); - - return React.createElement(_reactNative.Animated.View, { - style: [styles.indicator, { - width: width, - transform: [{ - translateX: translateX - }] - }, _this.props.indicatorStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 222 - } - }); - }; - - _this._getTabWidth = function (props) { - var layout = props.layout, - navigationState = props.navigationState, - tabStyle = props.tabStyle; - - var flattened = _reactNative.StyleSheet.flatten(tabStyle); - - if (flattened) { - switch (typeof flattened.width) { - case 'number': - return flattened.width; - - case 'string': - if (flattened.width.endsWith('%')) { - var _width = parseFloat(flattened.width); - - if (Number.isFinite(_width)) { - return layout.width * (_width / 100); - } - } - - } - } - - if (props.scrollEnabled) { - return layout.width / 5 * 2; - } - - return layout.width / navigationState.routes.length; - }; - - _this._handleTabPress = function (_ref3) { - var route = _ref3.route; - _this._pendingIndex = _this.props.navigationState.routes.indexOf(route); - - if (_this.props.onTabPress) { - _this.props.onTabPress({ - route: route - }); - } - - _this.props.jumpTo(route.key); - }; - - _this._normalizeScrollValue = function (props, value) { - var layout = props.layout, - navigationState = props.navigationState; - - var tabWidth = _this._getTabWidth(props); - - var tabBarWidth = Math.max(tabWidth * navigationState.routes.length, layout.width); - var maxDistance = tabBarWidth - layout.width; - return Math.max(Math.min(value, maxDistance), 0); - }; - - _this._getScrollAmount = function (props, i) { - var layout = props.layout; - - var tabWidth = _this._getTabWidth(props); - - var centerDistance = tabWidth * (i + 1 / 2); - var scrollAmount = centerDistance - layout.width / 2; - return _this._normalizeScrollValue(props, scrollAmount); - }; - - _this._adjustScroll = function (value) { - if (_this.props.scrollEnabled) { - global.cancelAnimationFrame(_this._scrollResetCallback); - _this._scrollView && _this._scrollView.scrollTo({ - x: _this._normalizeScrollValue(_this.props, _this._getScrollAmount(_this.props, value)), - animated: !_this._isIntial - }); - _this._isIntial = false; - } - }; - - _this._resetScroll = function (value) { - var animated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - - if (_this.props.scrollEnabled) { - global.cancelAnimationFrame(_this._scrollResetCallback); - _this._scrollResetCallback = global.requestAnimationFrame(function () { - _this._scrollView && _this._scrollView.scrollTo({ - x: _this._getScrollAmount(_this.props, value), - animated: animated - }); - }); - } - }; - - _this._handleBeginDrag = function () { - _this._isManualScroll = true; - _this._isMomentumScroll = false; - }; - - _this._handleEndDrag = function () { - global.requestAnimationFrame(function () { - if (_this._isMomentumScroll) { - return; - } - - _this._isManualScroll = false; - }); - }; - - _this._handleMomentumScrollBegin = function () { - _this._isMomentumScroll = true; - }; - - _this._handleMomentumScrollEnd = function () { - _this._isMomentumScroll = false; - _this._isManualScroll = false; - }; - - var initialVisibility = 1; - - if (_this.props.scrollEnabled) { - var tabWidth = _this._getTabWidth(_this.props); - - if (!tabWidth) { - initialVisibility = 0; - } - } - - var initialOffset = _this.props.scrollEnabled && _this.props.layout.width ? { - x: _this._getScrollAmount(_this.props, _this.props.navigationState.index), - y: 0 - } : undefined; - _this.state = { - visibility: new _reactNative.Animated.Value(initialVisibility), - scrollAmount: new _reactNative.Animated.Value(0), - initialOffset: initialOffset - }; - return _this; - } - - _createClass(TabBar, [{ - key: "componentDidMount", - value: function componentDidMount() { - this.props.scrollEnabled && this._startTrackingPosition(); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var prevTabWidth = this._getTabWidth(prevProps); - - var currentTabWidth = this._getTabWidth(this.props); - - var pendingIndex = typeof this._pendingIndex === 'number' ? this._pendingIndex : this.props.navigationState.index; - this._pendingIndex = null; - - if (prevTabWidth !== currentTabWidth && currentTabWidth) { - this.state.visibility.setValue(1); - } - - if (prevProps.navigationState.routes !== this.props.navigationState.routes || prevProps.layout.width !== this.props.layout.width) { - this._resetScroll(this.props.navigationState.index, false); - } else if (prevProps.navigationState.index !== pendingIndex) { - this._resetScroll(this.props.navigationState.index); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this._stopTrackingPosition(); - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props2 = this.props, - position = _this$props2.position, - navigationState = _this$props2.navigationState, - scrollEnabled = _this$props2.scrollEnabled, - bounces = _this$props2.bounces; - var routes = navigationState.routes; - - var tabWidth = this._getTabWidth(this.props); - - var tabBarWidth = tabWidth * routes.length; - var inputRange = [-1].concat(_toConsumableArray(routes.map(function (x, i) { - return i; - }))); - - var translateX = _reactNative.Animated.multiply(this.state.scrollAmount, -1); - - return React.createElement(_reactNative.Animated.View, { - style: [styles.tabBar, this.props.style], - __source: { - fileName: _jsxFileName, - lineNumber: 357 - } - }, React.createElement(_reactNative.Animated.View, { - pointerEvents: "none", - style: [styles.indicatorContainer, scrollEnabled ? { - width: tabBarWidth, - transform: [{ - translateX: translateX - }] - } : null], - __source: { - fileName: _jsxFileName, - lineNumber: 358 - } - }, this._renderIndicator(_objectSpread({}, this.props, { - width: tabWidth - }))), React.createElement(_reactNative.View, { - style: styles.scroll, - __source: { - fileName: _jsxFileName, - lineNumber: 372 - } - }, React.createElement(_reactNative.Animated.ScrollView, { - horizontal: true, - keyboardShouldPersistTaps: "handled", - scrollEnabled: scrollEnabled, - bounces: bounces, - alwaysBounceHorizontal: false, - scrollsToTop: false, - showsHorizontalScrollIndicator: false, - automaticallyAdjustContentInsets: false, - overScrollMode: "never", - contentContainerStyle: [styles.tabContent, scrollEnabled ? null : styles.container], - scrollEventThrottle: 1, - onScroll: _reactNative.Animated.event([{ - nativeEvent: { - contentOffset: { - x: this.state.scrollAmount - } - } - }], { - useNativeDriver: useNativeDriver - }), - onScrollBeginDrag: this._handleBeginDrag, - onScrollEndDrag: this._handleEndDrag, - onMomentumScrollBegin: this._handleMomentumScrollBegin, - onMomentumScrollEnd: this._handleMomentumScrollEnd, - contentOffset: this.state.initialOffset, - ref: function ref(el) { - return _this2._scrollView = el && el._component; - }, - __source: { - fileName: _jsxFileName, - lineNumber: 373 - } - }, routes.map(function (route, i) { - var outputRange = inputRange.map(function (inputIndex) { - return inputIndex === i ? 1 : 0.7; - }); - - var opacity = _reactNative.Animated.multiply(_this2.state.visibility, position.interpolate({ - inputRange: inputRange, - outputRange: outputRange - })); - - var label = _this2._renderLabel({ - route: route - }); - - var icon = _this2.props.renderIcon ? _this2.props.renderIcon({ - route: route - }) : null; - var badge = _this2.props.renderBadge ? _this2.props.renderBadge({ - route: route - }) : null; - var tabStyle = {}; - tabStyle.opacity = opacity; - - if (icon) { - if (label) { - tabStyle.paddingTop = 8; - } else { - tabStyle.padding = 12; - } - } - - var passedTabStyle = _reactNative.StyleSheet.flatten(_this2.props.tabStyle); - - var isWidthSet = passedTabStyle && typeof passedTabStyle.width !== 'undefined' || scrollEnabled === true; - var tabContainerStyle = {}; - - if (isWidthSet) { - tabStyle.width = tabWidth; - } - - if (passedTabStyle && typeof passedTabStyle.flex === 'number') { - tabContainerStyle.flex = passedTabStyle.flex; - } else if (!isWidthSet) { - tabContainerStyle.flex = 1; - } - - var accessibilityLabel = _this2.props.getAccessibilityLabel({ - route: route - }); - - accessibilityLabel = typeof accessibilityLabel !== 'undefined' ? accessibilityLabel : _this2.props.getLabelText({ - route: route - }); - var isFocused = i === navigationState.index; - return React.createElement(_TouchableItem.default, { - borderless: true, - key: route.key, - testID: _this2.props.getTestID({ - route: route - }), - accessible: _this2.props.getAccessible({ - route: route - }), - accessibilityLabel: accessibilityLabel, - accessibilityTraits: isFocused ? ['button', 'selected'] : 'button', - accessibilityComponentType: "button", - pressColor: _this2.props.pressColor, - pressOpacity: _this2.props.pressOpacity, - delayPressIn: 0, - onPress: function onPress() { - return _this2._handleTabPress({ - route: route - }); - }, - style: tabContainerStyle, - __source: { - fileName: _jsxFileName, - lineNumber: 465 - } - }, React.createElement(_reactNative.View, { - pointerEvents: "none", - style: styles.container, - __source: { - fileName: _jsxFileName, - lineNumber: 481 - } - }, React.createElement(_reactNative.Animated.View, { - style: [styles.tabItem, tabStyle, passedTabStyle, styles.container], - __source: { - fileName: _jsxFileName, - lineNumber: 482 - } - }, icon, label), badge ? React.createElement(_reactNative.Animated.View, { - style: [styles.badge, { - opacity: _this2.state.visibility - }], - __source: { - fileName: _jsxFileName, - lineNumber: 494 - } - }, badge) : null)); - })))); - } - }]); - - _inherits(TabBar, _React$Component); - - return TabBar; - }(React.Component), _class.propTypes = _objectSpread({}, _PropTypes.SceneRendererPropType, { - scrollEnabled: _propTypes.default.bool, - bounces: _propTypes.default.bool, - pressColor: _TouchableItem.default.propTypes.pressColor, - pressOpacity: _TouchableItem.default.propTypes.pressOpacity, - getLabelText: _propTypes.default.func, - getAccessible: _propTypes.default.func, - getAccessibilityLabel: _propTypes.default.func, - getTestID: _propTypes.default.func, - renderIcon: _propTypes.default.func, - renderLabel: _propTypes.default.func, - renderIndicator: _propTypes.default.func, - onTabPress: _propTypes.default.func, - labelStyle: _propTypes.default.any, - style: _propTypes.default.any - }), _class.defaultProps = { - getLabelText: function getLabelText(_ref4) { - var route = _ref4.route; - return typeof route.title === 'string' ? route.title.toUpperCase() : route.title; - }, - getAccessible: function getAccessible(_ref5) { - var route = _ref5.route; - return typeof route.accessible !== 'undefined' ? route.accessible : true; - }, - getAccessibilityLabel: function getAccessibilityLabel(_ref6) { - var route = _ref6.route; - return route.accessibilityLabel; - }, - getTestID: function getTestID(_ref7) { - var route = _ref7.route; - return route.testID; - } - }, _temp)); - - var _default2 = TabBar; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1 - }, - scroll: { - overflow: _reactNative.Platform.OS === 'web' ? 'auto' : 'scroll' - }, - tabBar: { - backgroundColor: '#2196f3', - elevation: 4, - shadowColor: 'black', - shadowOpacity: 0.1, - shadowRadius: _reactNative.StyleSheet.hairlineWidth, - shadowOffset: { - height: _reactNative.StyleSheet.hairlineWidth - }, - zIndex: _reactNative.Platform.OS === 'android' ? 0 : 1 - }, - tabContent: { - flexDirection: 'row', - flexWrap: 'nowrap' - }, - tabLabel: { - backgroundColor: 'transparent', - color: 'white', - margin: 8 - }, - tabItem: { - flex: 1, - padding: 8, - alignItems: 'center', - justifyContent: 'center' - }, - badge: { - position: 'absolute', - top: 0, - right: 0 - }, - indicatorContainer: { - position: 'absolute', - top: 0, - left: 0, - right: 0, - bottom: 0 - }, - indicator: { - backgroundColor: '#ffeb3b', - position: 'absolute', - left: 0, - bottom: 0, - right: 0, - height: 2 - } - }); -},620,[122,161,143,1,628,627],"node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/TabBar.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _class, - _temp, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/TouchableItem.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TouchableItem: { - displayName: "TouchableItem" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/TouchableItem.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var LOLLIPOP = 21; - - var TouchableItem = _wrapComponent("TouchableItem")((_temp = _class = function (_React$Component) { - function TouchableItem() { - _classCallCheck(this, TouchableItem); - - return _possibleConstructorReturn(this, _getPrototypeOf(TouchableItem).apply(this, arguments)); - } - - _createClass(TouchableItem, [{ - key: "render", - value: function render() { - var _this$props = this.props, - style = _this$props.style, - pressOpacity = _this$props.pressOpacity, - pressColor = _this$props.pressColor, - borderless = _this$props.borderless, - rest = _objectWithoutProperties(_this$props, ["style", "pressOpacity", "pressColor", "borderless"]); - - if (_reactNative.Platform.OS === 'android' && _reactNative.Platform.Version >= LOLLIPOP) { - return React.createElement(_reactNative.TouchableNativeFeedback, _extends({}, rest, { - background: _reactNative.TouchableNativeFeedback.Ripple(pressColor, borderless), - __source: { - fileName: _jsxFileName, - lineNumber: 44 - } - }), React.createElement(_reactNative.View, { - style: style, - __source: { - fileName: _jsxFileName, - lineNumber: 48 - } - }, React.Children.only(this.props.children))); - } else { - return React.createElement(_reactNative.TouchableOpacity, _extends({}, rest, { - style: style, - activeOpacity: pressOpacity, - __source: { - fileName: _jsxFileName, - lineNumber: 53 - } - }), this.props.children); - } - } - }]); - - _inherits(TouchableItem, _React$Component); - - return TouchableItem; - }(React.Component), _class.propTypes = { - onPress: _propTypes.default.func.isRequired, - delayPressIn: _propTypes.default.number, - borderless: _propTypes.default.bool, - pressColor: _propTypes.default.string, - pressOpacity: _propTypes.default.number, - children: _propTypes.default.node.isRequired - }, _class.defaultProps = { - pressColor: 'rgba(255, 255, 255, .4)' - }, _temp)); - - var _default2 = TouchableItem; - exports.default = _default2; -},628,[122,161,143,1],"node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/TouchableItem.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.PagerRendererPropType = exports.SceneRendererPropType = exports.NavigationStatePropType = exports.NavigationRoutePropType = void 0; - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var NavigationRoutePropType = _propTypes.default.shape({ - title: _propTypes.default.string, - key: _propTypes.default.string.isRequired - }); - - exports.NavigationRoutePropType = NavigationRoutePropType; - - var NavigationStatePropType = _propTypes.default.shape({ - routes: _propTypes.default.arrayOf(NavigationRoutePropType).isRequired, - index: _propTypes.default.number.isRequired - }); - - exports.NavigationStatePropType = NavigationStatePropType; - var SceneRendererPropType = { - panX: _propTypes.default.object.isRequired, - offsetX: _propTypes.default.object.isRequired, - layout: _propTypes.default.shape({ - measured: _propTypes.default.bool.isRequired, - height: _propTypes.default.number.isRequired, - width: _propTypes.default.number.isRequired - }).isRequired, - navigationState: NavigationStatePropType.isRequired, - position: _propTypes.default.object.isRequired, - jumpTo: _propTypes.default.func.isRequired, - useNativeDriver: _propTypes.default.bool - }; - exports.SceneRendererPropType = SceneRendererPropType; - var PagerRendererPropType = { - layout: _propTypes.default.shape({ - measured: _propTypes.default.bool.isRequired, - height: _propTypes.default.number.isRequired, - width: _propTypes.default.number.isRequired - }).isRequired, - navigationState: NavigationStatePropType.isRequired, - panX: _propTypes.default.instanceOf(_reactNative.Animated.Value).isRequired, - offsetX: _propTypes.default.instanceOf(_reactNative.Animated.Value).isRequired, - canJumpToTab: _propTypes.default.func.isRequired, - jumpTo: _propTypes.default.func.isRequired, - animationEnabled: _propTypes.default.bool, - swipeEnabled: _propTypes.default.bool, - useNativeDriver: _propTypes.default.bool, - onSwipeStart: _propTypes.default.func, - onSwipeEnd: _propTypes.default.func, - onAnimationEnd: _propTypes.default.func, - children: _propTypes.default.node.isRequired - }; - exports.PagerRendererPropType = PagerRendererPropType; -},627,[143,1],"node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/PropTypes.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); - - var Pager; - - switch (_reactNative.Platform.OS) { - case 'android': - Pager = _$$_REQUIRE(_dependencyMap[1], './PagerAndroid').default; - break; - - case 'ios': - Pager = _$$_REQUIRE(_dependencyMap[2], './PagerScroll').default; - break; - - default: - Pager = _$$_REQUIRE(_dependencyMap[3], './PagerPan').default; - break; - } - - var _default = Pager; - exports.default = _default; -},621,[1,624,623,622],"node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/PagerDefault.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _PropTypes = _$$_REQUIRE(_dependencyMap[3], "./PropTypes"); - - var _class, - _temp, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/PagerAndroid.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - PagerAndroid: { - displayName: "PagerAndroid" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/PagerAndroid.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var PagerAndroid = _wrapComponent("PagerAndroid")((_temp = _class = function (_React$Component) { - function PagerAndroid(props) { - var _this; - - _classCallCheck(this, PagerAndroid); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(PagerAndroid).call(this, props)); - _this._isIdle = true; - _this._currentIndex = 0; - - _this._getPageIndex = function (index) { - return _reactNative.I18nManager.isRTL ? _this.props.navigationState.routes.length - (index + 1) : index; - }; - - _this._setPage = function (index) { - var animated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - var pager = _this._viewPager; - - if (pager) { - var page = _this._getPageIndex(index); - - if (_this.props.animationEnabled === false || animated === false) { - pager.setPageWithoutAnimation(page); - } else { - pager.setPage(page); - } - } - }; - - _this._handlePageChange = function (index, animated) { - if (_this._isIdle && _this._currentIndex !== index) { - _this._setPage(index, animated); - - _this._currentIndex = index; - } - }; - - _this._handlePageScroll = function (e) { - _this.props.offsetX.setValue(e.nativeEvent.position * _this.props.layout.width * (_reactNative.I18nManager.isRTL ? 1 : -1)); - - _this.props.panX.setValue(e.nativeEvent.offset * _this.props.layout.width * (_reactNative.I18nManager.isRTL ? 1 : -1)); - }; - - _this._handlePageScrollStateChanged = function (e) { - _this._isIdle = e === 'idle'; - var nextIndex = _this._currentIndex; - var nextRoute = _this.props.navigationState.routes[nextIndex]; - - if (_this.props.canJumpToTab({ - route: nextRoute - })) { - _this.props.jumpTo(nextRoute.key); - } else { - _this._setPage(_this.props.navigationState.index); - - _this._currentIndex = _this.props.navigationState.index; - } - - switch (e) { - case 'dragging': - _this.props.onSwipeStart && _this.props.onSwipeStart(); - break; - - case 'settling': - _this.props.onSwipeEnd && _this.props.onSwipeEnd(); - break; - - case 'idle': - _this.props.onAnimationEnd && _this.props.onAnimationEnd(); - break; - } - }; - - _this._handlePageSelected = function (e) { - var index = _this._getPageIndex(e.nativeEvent.position); - - _this._currentIndex = index; - }; - - _this._currentIndex = _this.props.navigationState.index; - return _this; - } - - _createClass(PagerAndroid, [{ - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (prevProps.navigationState.routes !== this.props.navigationState.routes || prevProps.layout.width !== this.props.layout.width) { - this._handlePageChange(this.props.navigationState.index, false); - } else if (prevProps.navigationState.index !== this.props.navigationState.index) { - this._handlePageChange(this.props.navigationState.index); - } - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props = this.props, - children = _this$props.children, - navigationState = _this$props.navigationState, - swipeEnabled = _this$props.swipeEnabled, - keyboardDismissMode = _this$props.keyboardDismissMode; - var content = React.Children.map(children, function (child, i) { - var route = navigationState.routes[i]; - var focused = i === navigationState.index; - return React.createElement(_reactNative.View, { - key: route.key, - testID: _this2.props.getTestID({ - route: route - }), - accessibilityElementsHidden: !focused, - importantForAccessibility: focused ? 'auto' : 'no-hide-descendants', - style: styles.page, - __source: { - fileName: _jsxFileName, - lineNumber: 135 - } - }, child); - }); - - if (_reactNative.I18nManager.isRTL) { - content.reverse(); - } - - var initialPage = this._getPageIndex(navigationState.index); - - return React.createElement(_reactNative.ViewPagerAndroid, { - key: navigationState.routes.length, - keyboardDismissMode: keyboardDismissMode, - initialPage: initialPage, - scrollEnabled: swipeEnabled !== false, - onPageScroll: this._handlePageScroll, - onPageScrollStateChanged: this._handlePageScrollStateChanged, - onPageSelected: this._handlePageSelected, - style: styles.container, - ref: function ref(el) { - return _this2._viewPager = el; - }, - __source: { - fileName: _jsxFileName, - lineNumber: 154 - } - }, content); - } - }]); - - _inherits(PagerAndroid, _React$Component); - - return PagerAndroid; - }(React.Component), _class.propTypes = _PropTypes.PagerRendererPropType, _class.defaultProps = { - canJumpToTab: function canJumpToTab() { - return true; - }, - keyboardDismissMode: 'on-drag' - }, _temp)); - - var _default2 = PagerAndroid; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - container: { - flexGrow: 1 - }, - page: { - overflow: 'hidden' - } - }); -},624,[122,161,1,627],"node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/PagerAndroid.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _PropTypes = _$$_REQUIRE(_dependencyMap[3], "./PropTypes"); - - var _class, - _temp, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/PagerScroll.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - PagerScroll: { - displayName: "PagerScroll" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/PagerScroll.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var PagerScroll = _wrapComponent("PagerScroll")((_temp = _class = function (_React$Component) { - function PagerScroll(props) { - var _this; - - _classCallCheck(this, PagerScroll); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(PagerScroll).call(this, props)); - _this._isIdle = true; - _this._isInitial = true; - - _this._setInitialPage = function () { - if (_this.props.layout.width) { - _this._isInitial = true; - - _this._scrollTo(_this.props.navigationState.index * _this.props.layout.width, false); - } - - setTimeout(function () { - _this._isInitial = false; - }, 50); - }; - - _this._scrollTo = function (x) { - var animated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - - if (_this._isIdle && _this._scrollView) { - _this._scrollView.scrollTo({ - x: x, - animated: animated && _this.props.animationEnabled !== false - }); - } - }; - - _this._handleMomentumScrollEnd = function (e) { - var nextIndex = Math.round(e.nativeEvent.contentOffset.x / _this.props.layout.width); - var nextRoute = _this.props.navigationState.routes[nextIndex]; - - if (_this.props.canJumpToTab({ - route: nextRoute - })) { - _this.props.jumpTo(nextRoute.key); - - _this.props.onAnimationEnd && _this.props.onAnimationEnd(); - } else { - global.requestAnimationFrame(function () { - _this._scrollTo(_this.props.navigationState.index * _this.props.layout.width); - }); - } - }; - - _this._handleScroll = function (e) { - if (_this._isInitial || e.nativeEvent.contentSize.width === 0) { - return; - } - - var _this$props = _this.props, - navigationState = _this$props.navigationState, - layout = _this$props.layout; - var offset = navigationState.index * layout.width; - - _this.props.offsetX.setValue(-offset); - - _this.props.panX.setValue(offset - e.nativeEvent.contentOffset.x); - - global.cancelAnimationFrame(_this._idleCallback); - _this._isIdle = false; - _this._idleCallback = global.requestAnimationFrame(function () { - _this._isIdle = true; - }); - }; - - var _this$props2 = _this.props, - _navigationState = _this$props2.navigationState, - _layout = _this$props2.layout; - _this.state = { - initialOffset: { - x: _navigationState.index * _layout.width, - y: 0 - } - }; - return _this; - } - - _createClass(PagerScroll, [{ - key: "componentDidMount", - value: function componentDidMount() { - this._setInitialPage(); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var amount = this.props.navigationState.index * this.props.layout.width; - - if (prevProps.navigationState.routes !== this.props.navigationState.routes || prevProps.layout.width !== this.props.layout.width) { - this._scrollTo(amount, false); - } else if (prevProps.navigationState.index !== this.props.navigationState.index) { - this._scrollTo(amount); - } - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props3 = this.props, - children = _this$props3.children, - layout = _this$props3.layout, - navigationState = _this$props3.navigationState, - onSwipeStart = _this$props3.onSwipeStart, - onSwipeEnd = _this$props3.onSwipeEnd; - return React.createElement(_reactNative.ScrollView, { - horizontal: true, - pagingEnabled: true, - directionalLockEnabled: true, - keyboardDismissMode: "on-drag", - keyboardShouldPersistTaps: "always", - overScrollMode: "never", - scrollEnabled: this.props.swipeEnabled, - automaticallyAdjustContentInsets: false, - bounces: false, - alwaysBounceHorizontal: false, - scrollsToTop: false, - showsHorizontalScrollIndicator: false, - scrollEventThrottle: 1, - onScroll: this._handleScroll, - onScrollBeginDrag: onSwipeStart, - onScrollEndDrag: onSwipeEnd, - onMomentumScrollEnd: this._handleMomentumScrollEnd, - contentOffset: this.state.initialOffset, - style: styles.container, - contentContainerStyle: layout.width ? null : styles.container, - ref: function ref(el) { - return _this2._scrollView = el; - }, - __source: { - fileName: _jsxFileName, - lineNumber: 145 - } - }, React.Children.map(children, function (child, i) { - var route = navigationState.routes[i]; - var focused = i === navigationState.index; - return React.createElement(_reactNative.View, { - key: route.key, - testID: _this2.props.getTestID({ - route: route - }), - accessibilityElementsHidden: !focused, - importantForAccessibility: focused ? 'auto' : 'no-hide-descendants', - style: layout.width ? { - width: layout.width, - overflow: 'hidden' - } : focused ? styles.page : null, - __source: { - fileName: _jsxFileName, - lineNumber: 173 - } - }, focused || layout.width ? child : null); - })); - } - }]); - - _inherits(PagerScroll, _React$Component); - - return PagerScroll; - }(React.Component), _class.propTypes = _PropTypes.PagerRendererPropType, _class.defaultProps = { - canJumpToTab: function canJumpToTab() { - return true; - } - }, _temp)); - - var _default2 = PagerScroll; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1 - }, - page: { - flex: 1, - overflow: 'hidden' - } - }); -},623,[122,161,1,627],"node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/PagerScroll.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _PropTypes = _$$_REQUIRE(_dependencyMap[4], "./PropTypes"); - - var _class, - _temp2, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/PagerPan.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - PagerPan: { - displayName: "PagerPan" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/PagerPan.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var DEAD_ZONE = 12; - var DefaultTransitionSpec = { - timing: _reactNative.Animated.spring, - tension: 300, - friction: 35 - }; - - var PagerPan = _wrapComponent("PagerPan")((_temp2 = _class = function (_React$Component) { - function PagerPan() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, PagerPan); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(PagerPan)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._currentIndex = _this.props.navigationState.index, _this._isMovingHorizontally = function (evt, gestureState) { - return Math.abs(gestureState.dx) > Math.abs(gestureState.dy * 2) && Math.abs(gestureState.vx) > Math.abs(gestureState.vy * 2); - }, _this._canMoveScreen = function (evt, gestureState) { - if (_this.props.swipeEnabled === false) { - return false; - } - - var routes = _this.props.navigationState.routes; - return _this._isMovingHorizontally(evt, gestureState) && (gestureState.dx >= DEAD_ZONE && _this._currentIndex > 0 || gestureState.dx <= -DEAD_ZONE && _this._currentIndex < routes.length - 1); - }, _this._startGesture = function () { - _this.props.onSwipeStart && _this.props.onSwipeStart(); - - _this.props.panX.stopAnimation(); - }, _this._respondToGesture = function (evt, gestureState) { - var _this$props$navigatio = _this.props.navigationState, - routes = _this$props$navigatio.routes, - index = _this$props$navigatio.index; - - if (gestureState.dx > 0 && index <= 0 || gestureState.dx < 0 && index >= routes.length - 1) { - return; - } - - _this.props.panX.setValue(gestureState.dx); - }, _this._finishGesture = function (evt, gestureState) { - var _this$props = _this.props, - navigationState = _this$props.navigationState, - layout = _this$props.layout, - _this$props$swipeDist = _this$props.swipeDistanceThreshold, - swipeDistanceThreshold = _this$props$swipeDist === void 0 ? layout.width / 1.75 : _this$props$swipeDist; - var _this$props$swipeVelo = _this.props.swipeVelocityThreshold, - swipeVelocityThreshold = _this$props$swipeVelo === void 0 ? 0.15 : _this$props$swipeVelo; - _this.props.onSwipeEnd && _this.props.onSwipeEnd(); - - if (_reactNative.Platform.OS === 'android') { - swipeVelocityThreshold /= 1000000; - } - - var currentIndex = typeof _this._pendingIndex === 'number' ? _this._pendingIndex : _this._currentIndex; - var nextIndex = currentIndex; - - if (Math.abs(gestureState.dx) > Math.abs(gestureState.dy) && Math.abs(gestureState.vx) > Math.abs(gestureState.vy) && (Math.abs(gestureState.dx) > swipeDistanceThreshold || Math.abs(gestureState.vx) > swipeVelocityThreshold)) { - nextIndex = Math.round(Math.min(Math.max(0, currentIndex - gestureState.dx / Math.abs(gestureState.dx)), navigationState.routes.length - 1)); - _this._currentIndex = nextIndex; - } - - if (!isFinite(nextIndex) || !_this.props.canJumpToTab({ - route: _this.props.navigationState.routes[nextIndex] - })) { - nextIndex = currentIndex; - } - - _this._transitionTo(nextIndex); - }, _this._transitionTo = function (index) { - var animated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - var offset = -index * _this.props.layout.width; - - if (_this.props.animationEnabled === false || animated === false) { - _this.props.panX.setValue(0); - - _this.props.offsetX.setValue(offset); - - return; - } - - var timing = DefaultTransitionSpec.timing, - transitionConfig = _objectWithoutProperties(DefaultTransitionSpec, ["timing"]); - - _reactNative.Animated.parallel([timing(_this.props.panX, _objectSpread({}, transitionConfig, { - toValue: 0 - })), timing(_this.props.offsetX, _objectSpread({}, transitionConfig, { - toValue: offset - }))]).start(function (_ref) { - var finished = _ref.finished; - - if (finished) { - var route = _this.props.navigationState.routes[index]; - - _this.props.jumpTo(route.key); - - _this.props.onAnimationEnd && _this.props.onAnimationEnd(); - _this._pendingIndex = null; - } - }); - - _this._pendingIndex = index; - }, _this._panResponder = _reactNative.PanResponder.create({ - onMoveShouldSetPanResponder: _this._canMoveScreen, - onMoveShouldSetPanResponderCapture: _this._canMoveScreen, - onPanResponderGrant: _this._startGesture, - onPanResponderMove: _this._respondToGesture, - onPanResponderTerminate: _this._finishGesture, - onPanResponderRelease: _this._finishGesture, - onPanResponderTerminationRequest: function onPanResponderTerminationRequest() { - return true; - } - }), _temp)); - } - - _createClass(PagerPan, [{ - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - this._currentIndex = this.props.navigationState.index; - - if (prevProps.navigationState.routes !== this.props.navigationState.routes || prevProps.layout.width !== this.props.layout.width) { - this._transitionTo(this.props.navigationState.index, false); - } else if (prevProps.navigationState.index !== this.props.navigationState.index) { - this._transitionTo(this.props.navigationState.index); - } - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props2 = this.props, - panX = _this$props2.panX, - offsetX = _this$props2.offsetX, - navigationState = _this$props2.navigationState, - layout = _this$props2.layout, - children = _this$props2.children; - var width = layout.width; - var routes = navigationState.routes; - var maxTranslate = width * (routes.length - 1); - - var translateX = _reactNative.Animated.multiply(_reactNative.Animated.add(panX, offsetX).interpolate({ - inputRange: [-maxTranslate, 0], - outputRange: [-maxTranslate, 0], - extrapolate: 'clamp' - }), _reactNative.I18nManager.isRTL ? -1 : 1); - - return React.createElement(_reactNative.Animated.View, _extends({ - style: [styles.sheet, width ? { - width: routes.length * width, - transform: [{ - translateX: translateX - }] - } : null] - }, this._panResponder.panHandlers, { - __source: { - fileName: _jsxFileName, - lineNumber: 247 - } - }), React.Children.map(children, function (child, i) { - var route = navigationState.routes[i]; - var focused = i === navigationState.index; - return React.createElement(_reactNative.View, { - key: route.key, - testID: _this2.props.getTestID({ - route: route - }), - style: width ? { - width: width - } : focused ? _reactNative.StyleSheet.absoluteFill : null, - __source: { - fileName: _jsxFileName, - lineNumber: 264 - } - }, focused || width ? child : null); - })); - } - }]); - - _inherits(PagerPan, _React$Component); - - return PagerPan; - }(React.Component), _class.propTypes = _objectSpread({}, _PropTypes.PagerRendererPropType, { - swipeDistanceThreshold: _propTypes.default.number, - swipeVelocityThreshold: _propTypes.default.number - }), _class.defaultProps = { - canJumpToTab: function canJumpToTab() { - return true; - }, - initialLayout: { - height: 0, - width: 0 - } - }, _temp2)); - - var _default2 = PagerPan; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - sheet: { - flex: 1, - flexDirection: 'row', - alignItems: 'stretch' - } - }); -},622,[122,161,143,1,627],"node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/PagerPan.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _PropTypes = _$$_REQUIRE(_dependencyMap[4], "./PropTypes"); - - var _class, - _temp2, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/PagerExperimental.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - PagerExperimental: { - displayName: "PagerExperimental" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/PagerExperimental.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var DefaultTransitionSpec = { - timing: _reactNative.Animated.spring, - tension: 68, - friction: 12 - }; - - var PagerExperimental = _wrapComponent("PagerExperimental")((_temp2 = _class = function (_React$Component) { - function PagerExperimental() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, PagerExperimental); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(PagerExperimental)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._handleHandlerStateChange = function (event) { - var GestureHandler = _this.props.GestureHandler; - - if (event.nativeEvent.state === GestureHandler.State.BEGIN) { - _this.props.onSwipeStart && _this.props.onSwipeStart(); - } else if (event.nativeEvent.state === GestureHandler.State.END) { - _this.props.onSwipeEnd && _this.props.onSwipeEnd(); - - var _this$props = _this.props, - navigationState = _this$props.navigationState, - layout = _this$props.layout, - _this$props$swipeDist = _this$props.swipeDistanceThreshold, - _swipeDistanceThreshold = _this$props$swipeDist === void 0 ? layout.width / 1.75 : _this$props$swipeDist, - _this$props$swipeVelo = _this$props.swipeVelocityThreshold, - _swipeVelocityThreshold = _this$props$swipeVelo === void 0 ? 150 : _this$props$swipeVelo; - - var _event$nativeEvent = event.nativeEvent, - translationX = _event$nativeEvent.translationX, - translationY = _event$nativeEvent.translationY, - velocityX = _event$nativeEvent.velocityX, - velocityY = _event$nativeEvent.velocityY; - var currentIndex = typeof _this._pendingIndex === 'number' ? _this._pendingIndex : navigationState.index; - var nextIndex = currentIndex; - - if (Math.abs(translationX) > Math.abs(translationY) && Math.abs(velocityX) > Math.abs(velocityY) && (Math.abs(translationX) > _swipeDistanceThreshold || Math.abs(velocityX) > _swipeVelocityThreshold)) { - nextIndex = Math.round(Math.min(Math.max(0, currentIndex - translationX / Math.abs(translationX)), navigationState.routes.length - 1)); - } - - if (!isFinite(nextIndex) || !_this.props.canJumpToTab(_this.props.navigationState.routes[nextIndex])) { - nextIndex = currentIndex; - } - - _this._transitionTo(nextIndex, velocityX); - } - }, _this._transitionTo = function (index, velocity) { - var animated = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - var offset = -index * _this.props.layout.width; - - if (_this.props.animationEnabled === false || animated === false) { - _this.props.panX.setValue(0); - - _this.props.offsetX.setValue(offset); - - return; - } - - var timing = DefaultTransitionSpec.timing, - transitionConfig = _objectWithoutProperties(DefaultTransitionSpec, ["timing"]); - - var useNativeDriver = _this.props.useNativeDriver; - - _reactNative.Animated.parallel([timing(_this.props.panX, _objectSpread({}, transitionConfig, { - toValue: 0, - velocity: velocity, - useNativeDriver: useNativeDriver - })), timing(_this.props.offsetX, _objectSpread({}, transitionConfig, { - toValue: offset, - velocity: velocity, - useNativeDriver: useNativeDriver - }))]).start(function (_ref) { - var finished = _ref.finished; - - if (finished) { - var route = _this.props.navigationState.routes[index]; - - _this.props.jumpTo(route.key); - - _this.props.onAnimationEnd && _this.props.onAnimationEnd(); - _this._pendingIndex = null; - } - }); - - _this._pendingIndex = index; - }, _temp)); - } - - _createClass(PagerExperimental, [{ - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (prevProps.navigationState.routes !== this.props.navigationState.routes || prevProps.layout.width !== this.props.layout.width) { - this._transitionTo(this.props.navigationState.index, undefined, false); - } else if (prevProps.navigationState.index !== this.props.navigationState.index && this.props.navigationState.index !== this._pendingIndex) { - this._transitionTo(this.props.navigationState.index); - } - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props2 = this.props, - GestureHandler = _this$props2.GestureHandler, - panX = _this$props2.panX, - offsetX = _this$props2.offsetX, - layout = _this$props2.layout, - navigationState = _this$props2.navigationState, - swipeEnabled = _this$props2.swipeEnabled, - children = _this$props2.children; - var width = layout.width; - var routes = navigationState.routes; - var maxTranslate = width * (routes.length - 1); - - var translateX = _reactNative.Animated.add(panX, offsetX).interpolate({ - inputRange: [-maxTranslate, 0], - outputRange: [-maxTranslate, 0], - extrapolate: 'clamp' - }); - - return React.createElement(GestureHandler.PanGestureHandler, { - enabled: layout.width !== 0 && swipeEnabled !== false, - minDeltaX: 10, - onGestureEvent: _reactNative.Animated.event([{ - nativeEvent: { - translationX: this.props.panX - } - }], { - useNativeDriver: this.props.useNativeDriver - }), - onHandlerStateChange: this._handleHandlerStateChange, - __source: { - fileName: _jsxFileName, - lineNumber: 162 - } - }, React.createElement(_reactNative.Animated.View, { - style: [styles.sheet, width ? { - width: routes.length * width, - transform: [{ - translateX: translateX - }] - } : null], - __source: { - fileName: _jsxFileName, - lineNumber: 171 - } - }, React.Children.map(children, function (child, i) { - var route = navigationState.routes[i]; - var focused = i === navigationState.index; - return React.createElement(_reactNative.View, { - key: route.key, - testID: _this2.props.getTestID({ - route: route - }), - accessibilityElementsHidden: !focused, - importantForAccessibility: focused ? 'auto' : 'no-hide-descendants', - style: width ? { - width: width - } : focused ? _reactNative.StyleSheet.absoluteFill : null, - __source: { - fileName: _jsxFileName, - lineNumber: 184 - } - }, focused || width ? child : null); - }))); - } - }]); - - _inherits(PagerExperimental, _React$Component); - - return PagerExperimental; - }(React.Component), _class.propTypes = _objectSpread({}, _PropTypes.PagerRendererPropType, { - swipeDistanceThreshold: _propTypes.default.number, - swipeVelocityThreshold: _propTypes.default.number, - GestureHandler: _propTypes.default.object - }), _class.defaultProps = { - canJumpToTab: function canJumpToTab() { - return true; - } - }, _temp2)); - - var _default2 = PagerExperimental; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - sheet: { - flex: 1, - flexDirection: 'row', - alignItems: 'stretch' - } - }); -},625,[122,161,143,1,627],"node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/PagerExperimental.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = SceneMap; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../../react-transform-hmr/lib/index.js")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/SceneMap.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - SceneComponent: { - displayName: "SceneComponent" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/SceneMap.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var SceneComponent = function (_React$PureComponent) { - function SceneComponent() { - _classCallCheck(this, SceneComponent); - - return _possibleConstructorReturn(this, _getPrototypeOf(SceneComponent).apply(this, arguments)); - } - - _createClass(SceneComponent, [{ - key: "render", - value: function render() { - var _this$props = this.props, - component = _this$props.component, - rest = _objectWithoutProperties(_this$props, ["component"]); - - return React.createElement(component, rest); - } - }]); - - _inherits(SceneComponent, _React$PureComponent); - - return SceneComponent; - }(React.PureComponent); - - SceneComponent = _wrapComponent("SceneComponent")(SceneComponent); - - function SceneMap(scenes) { - return function (_ref) { - var route = _ref.route, - jumpTo = _ref.jumpTo; - return React.createElement(SceneComponent, { - key: route.key, - component: scenes[route.key], - route: route, - jumpTo: jumpTo, - __source: { - fileName: _jsxFileName, - lineNumber: 16 - } - }); - }; - } -},626,[122,161],"node_modules/react-navigation-tabs/node_modules/react-native-tab-view/src/SceneMap.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _reactNativeTabView = _$$_REQUIRE(_dependencyMap[3], "react-native-tab-view"); - - var _CrossFadeIcon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./CrossFadeIcon")); - - var _class, - _temp2, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/dist/views/MaterialTopTabBar.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TabBarTop: { - displayName: "TabBarTop" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation-tabs/dist/views/MaterialTopTabBar.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var TabBarTop = _wrapComponent("TabBarTop")((_temp2 = _class = function (_React$PureComponent) { - function TabBarTop() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, TabBarTop); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(TabBarTop)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._renderLabel = function (_ref) { - var route = _ref.route; - var _this$props = _this.props, - position = _this$props.position, - navigation = _this$props.navigation, - activeTintColor = _this$props.activeTintColor, - inactiveTintColor = _this$props.inactiveTintColor, - showLabel = _this$props.showLabel, - upperCaseLabel = _this$props.upperCaseLabel, - labelStyle = _this$props.labelStyle, - allowFontScaling = _this$props.allowFontScaling; - - if (showLabel === false) { - return null; - } - - var routes = navigation.state.routes; - var index = routes.indexOf(route); - var focused = index === navigation.state.index; - var inputRange = [-1].concat(_toConsumableArray(routes.map(function (x, i) { - return i; - }))); - var outputRange = inputRange.map(function (inputIndex) { - return inputIndex === index ? activeTintColor : inactiveTintColor; - }); - var color = position.interpolate({ - inputRange: inputRange, - outputRange: outputRange - }); - var tintColor = focused ? activeTintColor : inactiveTintColor; - - var label = _this.props.getLabelText({ - route: route - }); - - if (typeof label === 'string') { - return React.createElement(_reactNative.Animated.Text, { - style: [styles.label, { - color: color - }, labelStyle], - allowFontScaling: allowFontScaling, - __source: { - fileName: _jsxFileName, - lineNumber: 48 - } - }, upperCaseLabel ? label.toUpperCase() : label); - } - - if (typeof label === 'function') { - return label({ - focused: focused, - tintColor: tintColor - }); - } - - return label; - }, _this._renderIcon = function (_ref2) { - var route = _ref2.route; - var _this$props2 = _this.props, - position = _this$props2.position, - navigation = _this$props2.navigation, - activeTintColor = _this$props2.activeTintColor, - inactiveTintColor = _this$props2.inactiveTintColor, - renderIcon = _this$props2.renderIcon, - showIcon = _this$props2.showIcon, - iconStyle = _this$props2.iconStyle; - - if (showIcon === false) { - return null; - } - - var index = navigation.state.routes.indexOf(route); - var inputRange = [-1].concat(_toConsumableArray(navigation.state.routes.map(function (x, i) { - return i; - }))); - var activeOpacity = position.interpolate({ - inputRange: inputRange, - outputRange: inputRange.map(function (i) { - return i === index ? 1 : 0; - }) - }); - var inactiveOpacity = position.interpolate({ - inputRange: inputRange, - outputRange: inputRange.map(function (i) { - return i === index ? 0 : 1; - }) - }); - return React.createElement(_CrossFadeIcon.default, { - route: route, - navigation: navigation, - activeOpacity: activeOpacity, - inactiveOpacity: inactiveOpacity, - activeTintColor: activeTintColor, - inactiveTintColor: inactiveTintColor, - renderIcon: renderIcon, - style: [styles.icon, iconStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 87 - } - }); - }, _temp)); - } - - _createClass(TabBarTop, [{ - key: "render", - value: function render() { - var _this$props3 = this.props, - navigation = _this$props3.navigation, - renderIcon = _this$props3.renderIcon, - getLabelText = _this$props3.getLabelText, - rest = _objectWithoutProperties(_this$props3, ["navigation", "renderIcon", "getLabelText"]); - - return React.createElement(_reactNativeTabView.TabBar, _extends({}, rest, { - navigationState: navigation.state, - renderIcon: this._renderIcon, - renderLabel: this._renderLabel, - __source: { - fileName: _jsxFileName, - lineNumber: 96 - } - })); - } - }]); - - _inherits(TabBarTop, _React$PureComponent); - - return TabBarTop; - }(React.PureComponent), _class.defaultProps = { - activeTintColor: '#fff', - inactiveTintColor: '#fff', - showIcon: false, - showLabel: true, - upperCaseLabel: true, - allowFontScaling: true - }, _temp2)); - - var _default2 = TabBarTop; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - icon: { - height: 24, - width: 24 - }, - label: { - textAlign: 'center', - fontSize: 13, - margin: 8, - backgroundColor: 'transparent' - } - }); -},612,[122,161,1,618,615],"node_modules/react-navigation-tabs/dist/views/MaterialTopTabBar.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _NavigationActions = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "../NavigationActions")); - - var _StackActions = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./StackActions")); - - var _createConfigGetter = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "./createConfigGetter")); - - var _getScreenForRouteName = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "./getScreenForRouteName")); - - var _StateUtils = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../StateUtils")); - - var _validateRouteConfigMap = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./validateRouteConfigMap")); - - var _invariant = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "../utils/invariant")); - - var _KeyGenerator = _$$_REQUIRE(_dependencyMap[7], "./KeyGenerator"); - - var _pathUtils = _$$_REQUIRE(_dependencyMap[8], "./pathUtils"); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function behavesLikePushAction(action) { - return action.type === _NavigationActions.default.NAVIGATE || action.type === _StackActions.default.PUSH; - } - - var defaultActionCreators = function defaultActionCreators(route, navStateKey) { - return {}; - }; - - function isResetToRootStack(action) { - return action.type === _StackActions.default.RESET && action.key === null; - } - - var _default = function _default(routeConfigs) { - var stackConfig = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - (0, _validateRouteConfigMap.default)(routeConfigs); - var childRouters = {}; - var routeNames = Object.keys(routeConfigs); - routeNames.forEach(function (routeName) { - var screen = (0, _getScreenForRouteName.default)(routeConfigs, routeName); - - if (screen && screen.router) { - childRouters[routeName] = screen.router; - } else { - childRouters[routeName] = null; - } - }); - var initialRouteParams = stackConfig.initialRouteParams; - var getCustomActionCreators = stackConfig.getCustomActionCreators || defaultActionCreators; - var initialRouteName = stackConfig.initialRouteName || routeNames[0]; - var initialChildRouter = childRouters[initialRouteName]; - - function getInitialState(action) { - var route = {}; - var childRouter = childRouters[action.routeName]; - - if (behavesLikePushAction(action) && childRouter !== undefined) { - var childState = {}; - - if (childRouter !== null) { - var childAction = action.action || _NavigationActions.default.init({ - params: action.params - }); - - childState = childRouter.getStateForAction(childAction); - } - - return { - key: 'StackRouterRoot', - isTransitioning: false, - index: 0, - routes: [_objectSpread({ - params: action.params - }, childState, { - key: action.key || (0, _KeyGenerator.generateKey)(), - routeName: action.routeName - })] - }; - } - - if (initialChildRouter) { - route = initialChildRouter.getStateForAction(_NavigationActions.default.navigate({ - routeName: initialRouteName, - params: initialRouteParams - })); - } - - var params = (route.params || action.params || initialRouteParams) && _objectSpread({}, route.params || {}, action.params || {}, initialRouteParams || {}); - - var initialRouteKey = stackConfig.initialRouteKey; - route = _objectSpread({}, route, params ? { - params: params - } : {}, { - routeName: initialRouteName, - key: action.key || initialRouteKey || (0, _KeyGenerator.generateKey)() - }); - return { - key: 'StackRouterRoot', - isTransitioning: false, - index: 0, - routes: [route] - }; - } - - var _createPathParser = (0, _pathUtils.createPathParser)(childRouters, routeConfigs, stackConfig.paths), - getPathAndParamsForRoute = _createPathParser.getPathAndParamsForRoute, - _getActionForPathAndParams = _createPathParser.getActionForPathAndParams; - - return { - childRouters: childRouters, - getComponentForState: function getComponentForState(state) { - var activeChildRoute = state.routes[state.index]; - var routeName = activeChildRoute.routeName; - - if (childRouters[routeName]) { - return childRouters[routeName].getComponentForState(activeChildRoute); - } - - return (0, _getScreenForRouteName.default)(routeConfigs, routeName); - }, - getComponentForRouteName: function getComponentForRouteName(routeName) { - return (0, _getScreenForRouteName.default)(routeConfigs, routeName); - }, - getActionCreators: function getActionCreators(route, navStateKey) { - return _objectSpread({}, getCustomActionCreators(route, navStateKey), { - pop: function pop(n, params) { - return _StackActions.default.pop(_objectSpread({ - n: n - }, params)); - }, - popToTop: function popToTop(params) { - return _StackActions.default.popToTop(params); - }, - push: function push(routeName, params, action) { - return _StackActions.default.push({ - routeName: routeName, - params: params, - action: action - }); - }, - replace: function replace(replaceWith, params, action, newKey) { - if (typeof replaceWith === 'string') { - return _StackActions.default.replace({ - routeName: replaceWith, - params: params, - action: action, - key: route.key, - newKey: newKey - }); - } - - (0, _invariant.default)(typeof replaceWith === 'object', 'Must replaceWith an object or a string'); - (0, _invariant.default)(params == null, 'Params must not be provided to .replace() when specifying an object'); - (0, _invariant.default)(action == null, 'Child action must not be provided to .replace() when specifying an object'); - (0, _invariant.default)(newKey == null, 'Child action must not be provided to .replace() when specifying an object'); - return _StackActions.default.replace(replaceWith); - }, - reset: function reset(actions, index) { - return _StackActions.default.reset({ - actions: actions, - index: index == null ? actions.length - 1 : index, - key: navStateKey - }); - }, - dismiss: function dismiss() { - return _NavigationActions.default.back({ - key: navStateKey - }); - } - }); - }, - getStateForAction: function getStateForAction(action, state) { - if (!state) { - return getInitialState(action); - } - - var activeChildRoute = state.routes[state.index]; - - if (!isResetToRootStack(action) && action.type !== _NavigationActions.default.NAVIGATE) { - var activeChildRouter = childRouters[activeChildRoute.routeName]; - - if (activeChildRouter) { - var route = activeChildRouter.getStateForAction(action, activeChildRoute); - - if (route !== null && route !== activeChildRoute) { - return _StateUtils.default.replaceAt(state, activeChildRoute.key, route, action.type === _NavigationActions.default.SET_PARAMS); - } - } - } else if (action.type === _NavigationActions.default.NAVIGATE) { - for (var _iterator = state.routes.slice().reverse(), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var _childRoute = _ref; - var childRouter = childRouters[_childRoute.routeName]; - var childAction = action.routeName === _childRoute.routeName && action.action ? action.action : action; - - if (childRouter) { - var nextRouteState = childRouter.getStateForAction(childAction, _childRoute); - - if (nextRouteState === null || nextRouteState !== _childRoute) { - var newState = _StateUtils.default.replaceAndPrune(state, nextRouteState ? nextRouteState.key : _childRoute.key, nextRouteState ? nextRouteState : _childRoute); - - return _objectSpread({}, newState, { - isTransitioning: state.index !== newState.index ? action.immediate !== true : state.isTransitioning - }); - } - } - } - } - - if (behavesLikePushAction(action) && childRouters[action.routeName] !== undefined) { - var _childRouter = childRouters[action.routeName]; - - var _route; - - (0, _invariant.default)(action.type !== _StackActions.default.PUSH || action.key == null, 'StackRouter does not support key on the push action'); - var lastRouteIndex = state.routes.findIndex(function (r) { - if (action.key) { - return r.key === action.key; - } else { - return r.routeName === action.routeName; - } - }); - - if (action.type !== _StackActions.default.PUSH && lastRouteIndex !== -1) { - if (state.index === lastRouteIndex && !action.params) { - return null; - } - - var routes = state.routes.slice(0, lastRouteIndex + 1); - - if (action.params) { - var _route2 = state.routes[lastRouteIndex]; - routes[lastRouteIndex] = _objectSpread({}, _route2, { - params: _objectSpread({}, _route2.params, action.params) - }); - } - - return _objectSpread({}, state, { - isTransitioning: state.index !== lastRouteIndex ? action.immediate !== true : state.isTransitioning, - index: lastRouteIndex, - routes: routes - }); - } - - if (_childRouter) { - var _childAction = action.action || _NavigationActions.default.init({ - params: action.params - }); - - _route = _objectSpread({ - params: action.params - }, _childRouter.getStateForAction(_childAction), { - routeName: action.routeName, - key: action.key || (0, _KeyGenerator.generateKey)() - }); - } else { - _route = { - params: action.params, - routeName: action.routeName, - key: action.key || (0, _KeyGenerator.generateKey)() - }; - } - - return _objectSpread({}, _StateUtils.default.push(state, _route), { - isTransitioning: action.immediate !== true - }); - } else if (action.type === _StackActions.default.PUSH && childRouters[action.routeName] === undefined) { - return state; - } - - if (behavesLikePushAction(action)) { - var childRouterNames = Object.keys(childRouters); - - for (var i = 0; i < childRouterNames.length; i++) { - var childRouterName = childRouterNames[i]; - var _childRouter2 = childRouters[childRouterName]; - - if (_childRouter2) { - var initChildRoute = _childRouter2.getStateForAction(_NavigationActions.default.init()); - - var navigatedChildRoute = _childRouter2.getStateForAction(action, initChildRoute); - - var routeToPush = null; - - if (navigatedChildRoute === null) { - routeToPush = initChildRoute; - } else if (navigatedChildRoute !== initChildRoute) { - routeToPush = navigatedChildRoute; - } - - if (routeToPush) { - var _route3 = _objectSpread({}, routeToPush, { - routeName: childRouterName, - key: action.key || (0, _KeyGenerator.generateKey)() - }); - - return _objectSpread({}, _StateUtils.default.push(state, _route3), { - isTransitioning: action.immediate !== true - }); - } - } - } - } - - if (action.type === _StackActions.default.POP_TO_TOP) { - if (action.key && state.key !== action.key) { - return state; - } - - if (state.index > 0) { - return _objectSpread({}, state, { - isTransitioning: action.immediate !== true, - index: 0, - routes: [state.routes[0]] - }); - } - - return state; - } - - if (action.type === _StackActions.default.REPLACE) { - var routeIndex; - - if (action.key === undefined && state.routes.length) { - routeIndex = state.routes.length - 1; - } else { - routeIndex = state.routes.findIndex(function (r) { - return r.key === action.key; - }); - } - - if (routeIndex !== -1) { - var _childRouter3 = childRouters[action.routeName]; - var childState = {}; - - if (_childRouter3) { - var _childAction2 = action.action || _NavigationActions.default.init({ - params: action.params - }); - - childState = _childRouter3.getStateForAction(_childAction2); - } - - var _routes = _toConsumableArray(state.routes); - - _routes[routeIndex] = _objectSpread({ - params: action.params - }, childState, { - routeName: action.routeName, - key: action.newKey || (0, _KeyGenerator.generateKey)() - }); - return _objectSpread({}, state, { - routes: _routes - }); - } - } - - if (action.type === _StackActions.default.COMPLETE_TRANSITION && (action.key == null || action.key === state.key) && state.isTransitioning) { - return _objectSpread({}, state, { - isTransitioning: false - }); - } - - if (action.type === _NavigationActions.default.SET_PARAMS) { - var key = action.key; - var lastRoute = state.routes.find(function (route) { - return route.key === key; - }); - - if (lastRoute) { - var params = _objectSpread({}, lastRoute.params, action.params); - - var _routes2 = _toConsumableArray(state.routes); - - _routes2[state.routes.indexOf(lastRoute)] = _objectSpread({}, lastRoute, { - params: params - }); - return _objectSpread({}, state, { - routes: _routes2 - }); - } - } - - if (action.type === _StackActions.default.RESET) { - if (action.key != null && action.key != state.key) { - return state; - } - - var newStackActions = action.actions; - return _objectSpread({}, state, { - routes: newStackActions.map(function (newStackAction) { - var router = childRouters[newStackAction.routeName]; - var childState = {}; - - if (router) { - var _childAction3 = newStackAction.action || _NavigationActions.default.init({ - params: newStackAction.params - }); - - childState = router.getStateForAction(_childAction3); - } - - return _objectSpread({ - params: newStackAction.params - }, childState, { - routeName: newStackAction.routeName, - key: newStackAction.key || (0, _KeyGenerator.generateKey)() - }); - }), - index: action.index - }); - } - - if (action.type === _NavigationActions.default.BACK || action.type === _StackActions.default.POP) { - var _key = action.key, - n = action.n, - immediate = action.immediate; - var backRouteIndex = state.index; - - if (action.type === _StackActions.default.POP && n != null) { - backRouteIndex = Math.max(1, state.index - n + 1); - } else if (_key) { - var backRoute = state.routes.find(function (route) { - return route.key === _key; - }); - backRouteIndex = state.routes.indexOf(backRoute); - } - - if (backRouteIndex > 0) { - return _objectSpread({}, state, { - routes: state.routes.slice(0, backRouteIndex), - index: backRouteIndex - 1, - isTransitioning: immediate !== true - }); - } - } - - var keyIndex = action.key ? _StateUtils.default.indexOf(state, action.key) : -1; - - for (var _iterator2 = state.routes.slice().reverse(), _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]();;) { - var _ref2; - - if (_isArray2) { - if (_i2 >= _iterator2.length) break; - _ref2 = _iterator2[_i2++]; - } else { - _i2 = _iterator2.next(); - if (_i2.done) break; - _ref2 = _i2.value; - } - - var _childRoute3 = _ref2; - - if (_childRoute3.key === activeChildRoute.key) { - continue; - } - - if (keyIndex >= 0 && _childRoute3.key !== action.key) { - continue; - } - - var _childRouter5 = childRouters[_childRoute3.routeName]; - - if (_childRouter5) { - var _route4 = _childRouter5.getStateForAction(action, _childRoute3); - - if (_route4 === null) { - return state; - } else if (_route4 && _route4 !== _childRoute3) { - return _StateUtils.default.replaceAt(state, _childRoute3.key, _route4, action.type === _NavigationActions.default.SET_PARAMS); - } - } - } - - return state; - }, - getPathAndParamsForState: function getPathAndParamsForState(state) { - var route = state.routes[state.index]; - return getPathAndParamsForRoute(route); - }, - getActionForPathAndParams: function getActionForPathAndParams(path, params) { - return _getActionForPathAndParams(path, params); - }, - getScreenOptions: (0, _createConfigGetter.default)(routeConfigs, stackConfig.navigationOptions) - }; - }; - - exports.default = _default; -},529,[527,528,532,533,517,534,545,629,535],"node_modules/react-navigation/src/routers/StackRouter.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports._TESTING_ONLY_normalize_keys = _TESTING_ONLY_normalize_keys; - exports.generateKey = generateKey; - var uniqueBaseId = "id-" + Date.now(); - var uuidCount = 0; - - function _TESTING_ONLY_normalize_keys() { - uniqueBaseId = 'id'; - uuidCount = 0; - } - - function generateKey() { - return uniqueBaseId + "-" + uuidCount++; - } -},629,[],"node_modules/react-navigation/src/routers/KeyGenerator.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _SwitchRouter = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./SwitchRouter")); - - var _withDefaultValue = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "../utils/withDefaultValue")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var _default = function _default(routeConfigs) { - var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - config = _objectSpread({}, config); - config = (0, _withDefaultValue.default)(config, 'resetOnBlur', false); - config = (0, _withDefaultValue.default)(config, 'backBehavior', 'initialRoute'); - var switchRouter = (0, _SwitchRouter.default)(routeConfigs, config); - return switchRouter; - }; - - exports.default = _default; -},530,[531,630],"node_modules/react-navigation/src/routers/TabRouter.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _default = function _default(obj, key, defaultValue) { - if (obj.hasOwnProperty(key) && typeof obj[key] !== 'undefined') { - return obj; - } - - obj[key] = defaultValue; - return obj; - }; - - exports.default = _default; -},630,[],"node_modules/react-navigation/src/utils/withDefaultValue.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.defineProperty(exports, "withSafeArea", { - enumerable: true, - get: function get() { - return _withSafeArea.default; - } - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _withOrientation = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "./withOrientation")); - - var _withSafeArea = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./withSafeArea")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-safe-area-view/index.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - SafeView: { - displayName: "SafeView" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-safe-area-view/index.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var X_WIDTH = 375; - var X_HEIGHT = 812; - var PAD_WIDTH = 768; - var PAD_HEIGHT = 1024; - - var _Dimensions$get = _reactNative.Dimensions.get('window'), - D_HEIGHT = _Dimensions$get.height, - D_WIDTH = _Dimensions$get.width; - - var _NativeModules$Platfo = _reactNative.NativeModules.PlatformConstants, - PlatformConstants = _NativeModules$Platfo === void 0 ? {} : _NativeModules$Platfo; - - var _ref = PlatformConstants.reactNativeVersion || {}, - _ref$minor = _ref.minor, - minor = _ref$minor === void 0 ? 0 : _ref$minor; - - var isIPhoneX = function () { - if (_reactNative.Platform.OS === 'web') return false; - - if (minor >= 50) { - return _reactNative.DeviceInfo.isIPhoneX_deprecated; - } - - return _reactNative.Platform.OS === 'ios' && (D_HEIGHT === X_HEIGHT && D_WIDTH === X_WIDTH || D_HEIGHT === X_WIDTH && D_WIDTH === X_HEIGHT); - }(); - - var isIPad = function () { - if (_reactNative.Platform.OS !== 'ios' || isIPhoneX) return false; - - if (D_HEIGHT > D_WIDTH && D_WIDTH < PAD_WIDTH) { - return false; - } - - if (D_WIDTH > D_HEIGHT && D_HEIGHT < PAD_WIDTH) { - return false; - } - - return true; - }(); - - var _customStatusBarHeight = null; - - var statusBarHeight = function statusBarHeight(isLandscape) { - if (_customStatusBarHeight !== null) { - return _customStatusBarHeight; - } - - if (_reactNative.Platform.OS === 'android') { - if (global.Expo) { - return global.Expo.Constants.statusBarHeight; - } else { - return 0; - } - } - - if (isIPhoneX) { - return isLandscape ? 0 : 44; - } - - if (isIPad) { - return 20; - } - - return isLandscape ? 0 : 20; - }; - - var doubleFromPercentString = function doubleFromPercentString(percent) { - if (!percent.includes('%')) { - return 0; - } - - var dbl = parseFloat(percent) / 100; - if (isNaN(dbl)) return 0; - return dbl; - }; - - var SafeView = function (_Component) { - function SafeView() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, SafeView); - - for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) { - _args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SafeView)).call.apply(_getPrototypeOf2, [this].concat(_args))), _this.state = { - touchesTop: true, - touchesBottom: true, - touchesLeft: true, - touchesRight: true, - orientation: null, - viewWidth: 0, - viewHeight: 0 - }, _this._onLayout = function () { - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - if (!_this.view) return; - var isLandscape = _this.props.isLandscape; - var orientation = _this.state.orientation; - var newOrientation = isLandscape ? 'landscape' : 'portrait'; - - if (orientation && orientation === newOrientation) { - return; - } - - var WIDTH = isLandscape ? X_HEIGHT : X_WIDTH; - var HEIGHT = isLandscape ? X_WIDTH : X_HEIGHT; - - _this.view._component.measureInWindow(function (winX, winY, winWidth, winHeight) { - var _this$props; - - if (!_this.view) { - return; - } - - var realY = winY; - var realX = winX; - - if (realY >= HEIGHT) { - realY = realY % HEIGHT; - } else if (realY < 0) { - realY = realY % HEIGHT + HEIGHT; - } - - if (realX >= WIDTH) { - realX = realX % WIDTH; - } else if (realX < 0) { - realX = realX % WIDTH + WIDTH; - } - - var touchesTop = realY === 0; - var touchesBottom = realY + winHeight >= HEIGHT; - var touchesLeft = realX === 0; - var touchesRight = realX + winWidth >= WIDTH; - - _this.setState({ - touchesTop: touchesTop, - touchesBottom: touchesBottom, - touchesLeft: touchesLeft, - touchesRight: touchesRight, - orientation: newOrientation, - viewWidth: winWidth, - viewHeight: winHeight - }); - - if (_this.props.onLayout) (_this$props = _this.props).onLayout.apply(_this$props, args); - }); - }, _this._getSafeAreaStyle = function () { - var _this$state = _this.state, - touchesTop = _this$state.touchesTop, - touchesBottom = _this$state.touchesBottom, - touchesLeft = _this$state.touchesLeft, - touchesRight = _this$state.touchesRight; - var _this$props2 = _this.props, - forceInset = _this$props2.forceInset, - isLandscape = _this$props2.isLandscape; - - var _this$_getViewStyles = _this._getViewStyles(), - paddingTop = _this$_getViewStyles.paddingTop, - paddingBottom = _this$_getViewStyles.paddingBottom, - paddingLeft = _this$_getViewStyles.paddingLeft, - paddingRight = _this$_getViewStyles.paddingRight, - viewStyle = _this$_getViewStyles.viewStyle; - - var style = _objectSpread({}, viewStyle, { - paddingTop: touchesTop ? _this._getInset('top') : 0, - paddingBottom: touchesBottom ? _this._getInset('bottom') : 0, - paddingLeft: touchesLeft ? _this._getInset('left') : 0, - paddingRight: touchesRight ? _this._getInset('right') : 0 - }); - - if (forceInset) { - Object.keys(forceInset).forEach(function (key) { - var inset = forceInset[key]; - - if (inset === 'always') { - inset = _this._getInset(key); - } - - if (inset === 'never') { - inset = 0; - } - - switch (key) { - case 'horizontal': - { - style.paddingLeft = inset; - style.paddingRight = inset; - break; - } - - case 'vertical': - { - style.paddingTop = inset; - style.paddingBottom = inset; - break; - } - - case 'left': - case 'right': - case 'top': - case 'bottom': - { - var padding = "padding" + key[0].toUpperCase() + key.slice(1); - style[padding] = inset; - break; - } - } - }); - } - - if (style.height && typeof style.height === 'number') { - style.height += style.paddingTop + style.paddingBottom; - } - - if (style.width && typeof style.width === 'number') { - style.width += style.paddingLeft + style.paddingRight; - } - - style.paddingTop = Math.max(style.paddingTop, paddingTop); - style.paddingBottom = Math.max(style.paddingBottom, paddingBottom); - style.paddingLeft = Math.max(style.paddingLeft, paddingLeft); - style.paddingRight = Math.max(style.paddingRight, paddingRight); - return style; - }, _this._getViewStyles = function () { - var viewWidth = _this.state.viewWidth; - - var _StyleSheet$flatten = _reactNative.StyleSheet.flatten(_this.props.style || {}), - _StyleSheet$flatten$p = _StyleSheet$flatten.padding, - padding = _StyleSheet$flatten$p === void 0 ? 0 : _StyleSheet$flatten$p, - _StyleSheet$flatten$p2 = _StyleSheet$flatten.paddingVertical, - paddingVertical = _StyleSheet$flatten$p2 === void 0 ? padding : _StyleSheet$flatten$p2, - _StyleSheet$flatten$p3 = _StyleSheet$flatten.paddingHorizontal, - paddingHorizontal = _StyleSheet$flatten$p3 === void 0 ? padding : _StyleSheet$flatten$p3, - _StyleSheet$flatten$p4 = _StyleSheet$flatten.paddingTop, - paddingTop = _StyleSheet$flatten$p4 === void 0 ? paddingVertical : _StyleSheet$flatten$p4, - _StyleSheet$flatten$p5 = _StyleSheet$flatten.paddingBottom, - paddingBottom = _StyleSheet$flatten$p5 === void 0 ? paddingVertical : _StyleSheet$flatten$p5, - _StyleSheet$flatten$p6 = _StyleSheet$flatten.paddingLeft, - paddingLeft = _StyleSheet$flatten$p6 === void 0 ? paddingHorizontal : _StyleSheet$flatten$p6, - _StyleSheet$flatten$p7 = _StyleSheet$flatten.paddingRight, - paddingRight = _StyleSheet$flatten$p7 === void 0 ? paddingHorizontal : _StyleSheet$flatten$p7, - viewStyle = _objectWithoutProperties(_StyleSheet$flatten, ["padding", "paddingVertical", "paddingHorizontal", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight"]); - - if (typeof paddingTop !== 'number') { - paddingTop = doubleFromPercentString(paddingTop) * viewWidth; - } - - if (typeof paddingBottom !== 'number') { - paddingBottom = doubleFromPercentString(paddingBottom) * viewWidth; - } - - if (typeof paddingLeft !== 'number') { - paddingLeft = doubleFromPercentString(paddingLeft) * viewWidth; - } - - if (typeof paddingRight !== 'number') { - paddingRight = doubleFromPercentString(paddingRight) * viewWidth; - } - - return { - paddingTop: paddingTop, - paddingBottom: paddingBottom, - paddingLeft: paddingLeft, - paddingRight: paddingRight, - viewStyle: viewStyle - }; - }, _this._getInset = function (key) { - var isLandscape = _this.props.isLandscape; - - switch (key) { - case 'horizontal': - case 'right': - case 'left': - { - return isLandscape ? isIPhoneX ? 44 : 0 : 0; - } - - case 'vertical': - case 'top': - { - return statusBarHeight(isLandscape); - } - - case 'bottom': - { - return isIPhoneX ? isLandscape ? 24 : 34 : 0; - } - } - }, _temp)); - } - - _createClass(SafeView, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - _reactNative.InteractionManager.runAfterInteractions(function () { - _this2._onLayout(); - }); - } - }, { - key: "componentWillReceiveProps", - value: function componentWillReceiveProps() { - this._onLayout(); - } - }, { - key: "render", - value: function render() { - var _this3 = this; - - var _this$props3 = this.props, - _this$props3$forceIns = _this$props3.forceInset, - forceInset = _this$props3$forceIns === void 0 ? false : _this$props3$forceIns, - isLandscape = _this$props3.isLandscape, - style = _this$props3.style, - props = _objectWithoutProperties(_this$props3, ["forceInset", "isLandscape", "style"]); - - var safeAreaStyle = this._getSafeAreaStyle(); - - return _react.default.createElement(_reactNative.Animated.View, _extends({ - ref: function ref(c) { - return _this3.view = c; - }, - pointerEvents: "box-none" - }, props, { - onLayout: this._onLayout, - style: safeAreaStyle, - __source: { - fileName: _jsxFileName, - lineNumber: 130 - } - })); - } - }]); - - _inherits(SafeView, _Component); - - return SafeView; - }(_react.Component); - - SafeView.setStatusBarHeight = function (height) { - _customStatusBarHeight = height; - }; - - SafeView = _wrapComponent("SafeView")(SafeView); - - var _default2 = (0, _withOrientation.default)(SafeView); - - exports.default = _default2; -},536,[122,161,1,631,632],"node_modules/react-native-safe-area-view/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = _default2; - exports.isOrientationLandscape = void 0; - - var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _hoistNonReactStatics = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "hoist-non-react-statics")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-safe-area-view/withOrientation.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - withOrientation: { - displayName: "withOrientation", - isInFunction: true - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-safe-area-view/withOrientation.js", - components: _components, - locals: [module], - imports: [React.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var isOrientationLandscape = function isOrientationLandscape(_ref) { - var width = _ref.width, - height = _ref.height; - return width > height; - }; - - exports.isOrientationLandscape = isOrientationLandscape; - - function _default2(WrappedComponent) { - var withOrientation = function (_React$Component) { - function withOrientation() { - var _this; - - _classCallCheck(this, withOrientation); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(withOrientation).call(this)); - - _this.handleOrientationChange = function (_ref2) { - var window = _ref2.window; - var isLandscape = isOrientationLandscape(window); - - _this.setState({ - isLandscape: isLandscape - }); - }; - - var _isLandscape = isOrientationLandscape(_reactNative.Dimensions.get('window')); - - _this.state = { - isLandscape: _isLandscape - }; - return _this; - } - - _createClass(withOrientation, [{ - key: "componentDidMount", - value: function componentDidMount() { - if (typeof _reactNative.Dimensions.addEventListener === 'function') { - _reactNative.Dimensions.addEventListener('change', this.handleOrientationChange); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (typeof _reactNative.Dimensions.removeEventListener === 'function') { - _reactNative.Dimensions.removeEventListener('change', this.handleOrientationChange); - } - } - }, { - key: "render", - value: function render() { - return React.createElement(WrappedComponent, _extends({}, this.props, this.state, { - __source: { - fileName: _jsxFileName, - lineNumber: 54 - } - })); - } - }]); - - _inherits(withOrientation, _React$Component); - - return withOrientation; - }(React.Component); - - withOrientation = _wrapComponent("withOrientation")(withOrientation); - return (0, _hoistNonReactStatics.default)(withOrientation, WrappedComponent); - } -},631,[122,161,1,617],"node_modules/react-native-safe-area-view/withOrientation.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = _default2; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../react-transform-hmr/lib/index.js")); - - var _hoistNonReactStatics = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "hoist-non-react-statics")); - - var _ = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "./")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-safe-area-view/withSafeArea.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - withSafeArea: { - displayName: "withSafeArea", - isInFunction: true - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-safe-area-view/withSafeArea.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function _default2() { - var forceInset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return function (WrappedComponent) { - var withSafeArea = function (_Component) { - function withSafeArea() { - _classCallCheck(this, withSafeArea); - - return _possibleConstructorReturn(this, _getPrototypeOf(withSafeArea).apply(this, arguments)); - } - - _createClass(withSafeArea, [{ - key: "render", - value: function render() { - return _react.default.createElement(_.default, { - style: { - flex: 1 - }, - forceInset: forceInset, - __source: { - fileName: _jsxFileName, - lineNumber: 11 - } - }, _react.default.createElement(WrappedComponent, _extends({}, this.props, { - __source: { - fileName: _jsxFileName, - lineNumber: 12 - } - })), ";"); - } - }]); - - _inherits(withSafeArea, _Component); - - return withSafeArea; - }(_react.Component); - - withSafeArea = _wrapComponent("withSafeArea")(withSafeArea); - return (0, _hoistNonReactStatics.default)(withSafeArea, WrappedComponent); - }; - } -},632,[122,161,617,536],"node_modules/react-native-safe-area-view/withSafeArea.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "prop-types")); - - var _reactLifecyclesCompat = _$$_REQUIRE(_dependencyMap[4], "react-lifecycles-compat"); - - var _SceneView = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./SceneView")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/views/ResourceSavingSceneView.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - var _components = { - ResourceSavingSceneView: { - displayName: "ResourceSavingSceneView" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/views/ResourceSavingSceneView.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var FAR_FAR_AWAY = 3000; - - var ResourceSavingSceneView = function (_React$PureComponent) { - _createClass(ResourceSavingSceneView, null, [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(nextProps, prevState) { - if (nextProps.isFocused && !prevState.awake) { - return { - awake: true - }; - } else { - return null; - } - } - }]); - - function ResourceSavingSceneView(props) { - var _this; - - _classCallCheck(this, ResourceSavingSceneView); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(ResourceSavingSceneView).call(this)); - - _this._mustAlwaysBeVisible = function () { - return _this.props.animationEnabled || _this.props.swipeEnabled; - }; - - _this.state = { - awake: props.lazy ? props.isFocused : true - }; - return _this; - } - - _createClass(ResourceSavingSceneView, [{ - key: "render", - value: function render() { - var awake = this.state.awake; - - var _this$props = this.props, - isFocused = _this$props.isFocused, - childNavigation = _this$props.childNavigation, - navigation = _this$props.navigation, - removeClippedSubviews = _this$props.removeClippedSubviews, - lazy = _this$props.lazy, - rest = _objectWithoutProperties(_this$props, ["isFocused", "childNavigation", "navigation", "removeClippedSubviews", "lazy"]); - - return _react.default.createElement(_reactNative.View, { - style: styles.container, - collapsable: false, - removeClippedSubviews: _reactNative.Platform.OS === 'android' ? removeClippedSubviews : !isFocused && removeClippedSubviews, - __source: { - fileName: _jsxFileName, - lineNumber: 39 - } - }, _react.default.createElement(_reactNative.View, { - style: this._mustAlwaysBeVisible() || isFocused ? styles.innerAttached : styles.innerDetached, - __source: { - fileName: _jsxFileName, - lineNumber: 48 - } - }, awake ? _react.default.createElement(_SceneView.default, _extends({}, rest, { - navigation: childNavigation, - __source: { - fileName: _jsxFileName, - lineNumber: 55 - } - })) : null)); - } - }]); - - _inherits(ResourceSavingSceneView, _React$PureComponent); - - return ResourceSavingSceneView; - }(_react.default.PureComponent); - - ResourceSavingSceneView = _wrapComponent("ResourceSavingSceneView")(ResourceSavingSceneView); - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1, - overflow: 'hidden' - }, - innerAttached: { - flex: 1 - }, - innerDetached: { - flex: 1, - top: FAR_FAR_AWAY - } - }); - - var _default2 = (0, _reactLifecyclesCompat.polyfill)(ResourceSavingSceneView); - - exports.default = _default2; -},538,[122,161,1,143,544,537],"node_modules/react-navigation/src/views/ResourceSavingSceneView.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _withNavigation = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "./withNavigation")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - NavigationEvents: { - displayName: "NavigationEvents" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/views/NavigationEvents.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var EventNameToPropName = { - willFocus: 'onWillFocus', - didFocus: 'onDidFocus', - willBlur: 'onWillBlur', - didBlur: 'onDidBlur' - }; - var EventNames = Object.keys(EventNameToPropName); - - var NavigationEvents = function (_React$Component) { - function NavigationEvents() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, NavigationEvents); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(NavigationEvents)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.addListener = function (eventName) { - var listener = _this.props[EventNameToPropName[eventName]]; - - if (listener) { - _this.subscriptions[eventName] = _this.props.navigation.addListener(eventName, listener); - } - }, _this.removeListener = function (eventName) { - if (_this.subscriptions[eventName]) { - _this.subscriptions[eventName].remove(); - - _this.subscriptions[eventName] = undefined; - } - }, _temp)); - } - - _createClass(NavigationEvents, [{ - key: "componentDidMount", - value: function componentDidMount() { - this.subscriptions = {}; - EventNames.forEach(this.addListener); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this2 = this; - - EventNames.forEach(function (eventName) { - var listenerHasChanged = _this2.props[EventNameToPropName[eventName]] !== prevProps[EventNameToPropName[eventName]]; - - if (listenerHasChanged) { - _this2.removeListener(eventName); - - _this2.addListener(eventName); - } - }); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - EventNames.forEach(this.removeListener); - } - }, { - key: "render", - value: function render() { - return null; - } - }]); - - _inherits(NavigationEvents, _React$Component); - - return NavigationEvents; - }(_react.default.Component); - - NavigationEvents = _wrapComponent("NavigationEvents")(NavigationEvents); - - var _default2 = (0, _withNavigation.default)(NavigationEvents); - - exports.default = _default2; -},540,[122,161,541],"node_modules/react-navigation/src/views/NavigationEvents.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = withNavigation; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _hoistNonReactStatics = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "hoist-non-react-statics")); - - var _invariant = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../utils/invariant")); - - var _NavigationContext = _$$_REQUIRE(_dependencyMap[5], "./NavigationContext"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/views/withNavigation.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - ComponentWithNavigation: { - displayName: "ComponentWithNavigation", - isInFunction: true - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/views/withNavigation.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function withNavigation(Component) { - var ComponentWithNavigation = function (_React$Component) { - function ComponentWithNavigation() { - _classCallCheck(this, ComponentWithNavigation); - - return _possibleConstructorReturn(this, _getPrototypeOf(ComponentWithNavigation).apply(this, arguments)); - } - - _createClass(ComponentWithNavigation, [{ - key: "render", - value: function render() { - var _this = this; - - var navigationProp = this.props.navigation; - return _react.default.createElement(_NavigationContext.NavigationConsumer, { - __source: { - fileName: _jsxFileName, - lineNumber: 15 - } - }, function (navigationContext) { - var navigation = navigationProp || navigationContext; - (0, _invariant.default)(!!navigation, 'withNavigation can only be used on a view hierarchy of a navigator. The wrapped component is unable to get access to navigation from props or context.'); - return _react.default.createElement(Component, _extends({}, _this.props, { - navigation: navigation, - ref: _this.props.onRef, - __source: { - fileName: _jsxFileName, - lineNumber: 23 - } - })); - }); - } - }]); - - _inherits(ComponentWithNavigation, _React$Component); - - return ComponentWithNavigation; - }(_react.default.Component); - - ComponentWithNavigation.displayName = "withNavigation(" + (Component.displayName || Component.name) + ")"; - ComponentWithNavigation = _wrapComponent("ComponentWithNavigation")(ComponentWithNavigation); - return (0, _hoistNonReactStatics.default)(ComponentWithNavigation, Component); - } -},541,[122,161,143,617,545,521],"node_modules/react-navigation/src/views/withNavigation.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = withNavigationFocus; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _hoistNonReactStatics = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "hoist-non-react-statics")); - - var _invariant = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../utils/invariant")); - - var _withNavigation = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./withNavigation")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/views/withNavigationFocus.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - ComponentWithNavigationFocus: { - displayName: "ComponentWithNavigationFocus", - isInFunction: true - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/views/withNavigationFocus.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function withNavigationFocus(Component) { - var ComponentWithNavigationFocus = function (_React$Component) { - function ComponentWithNavigationFocus(props) { - var _this; - - _classCallCheck(this, ComponentWithNavigationFocus); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(ComponentWithNavigationFocus).call(this, props)); - _this.state = { - isFocused: props.navigation ? props.navigation.isFocused() : false - }; - return _this; - } - - _createClass(ComponentWithNavigationFocus, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - var navigation = this.props.navigation; - (0, _invariant.default)(!!navigation, 'withNavigationFocus can only be used on a view hierarchy of a navigator. The wrapped component is unable to get access to navigation from props or context.'); - this.subscriptions = [navigation.addListener('didFocus', function () { - return _this2.setState({ - isFocused: true - }); - }), navigation.addListener('willBlur', function () { - return _this2.setState({ - isFocused: false - }); - })]; - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.subscriptions.forEach(function (sub) { - return sub.remove(); - }); - } - }, { - key: "render", - value: function render() { - return _react.default.createElement(Component, _extends({}, this.props, { - isFocused: this.state.isFocused, - ref: this.props.onRef, - __source: { - fileName: _jsxFileName, - lineNumber: 43 - } - })); - } - }]); - - _inherits(ComponentWithNavigationFocus, _React$Component); - - return ComponentWithNavigationFocus; - }(_react.default.Component); - - ComponentWithNavigationFocus.displayName = "withNavigationFocus(" + (Component.displayName || Component.name) + ")"; - ComponentWithNavigationFocus = _wrapComponent("ComponentWithNavigationFocus")(ComponentWithNavigationFocus); - return (0, _hoistNonReactStatics.default)((0, _withNavigation.default)(ComponentWithNavigationFocus), Component); - } -},542,[122,161,143,617,545,541],"node_modules/react-navigation/src/views/withNavigationFocus.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = _default2; - exports.isOrientationLandscape = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _hoistNonReactStatics = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "hoist-non-react-statics")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/views/withOrientation.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - withOrientation: { - displayName: "withOrientation", - isInFunction: true - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-navigation/src/views/withOrientation.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var isOrientationLandscape = function isOrientationLandscape(_ref) { - var width = _ref.width, - height = _ref.height; - return width > height; - }; - - exports.isOrientationLandscape = isOrientationLandscape; - - function _default2(WrappedComponent) { - var withOrientation = function (_React$Component) { - function withOrientation() { - var _this; - - _classCallCheck(this, withOrientation); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(withOrientation).call(this)); - - _this.handleOrientationChange = function (_ref2) { - var window = _ref2.window; - var isLandscape = isOrientationLandscape(window); - - _this.setState({ - isLandscape: isLandscape - }); - }; - - var _isLandscape = isOrientationLandscape(_reactNative.Dimensions.get('window')); - - _this.state = { - isLandscape: _isLandscape - }; - return _this; - } - - _createClass(withOrientation, [{ - key: "componentDidMount", - value: function componentDidMount() { - _reactNative.Dimensions.addEventListener('change', this.handleOrientationChange); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - _reactNative.Dimensions.removeEventListener('change', this.handleOrientationChange); - } - }, { - key: "render", - value: function render() { - return _react.default.createElement(WrappedComponent, _extends({}, this.props, this.state, { - __source: { - fileName: _jsxFileName, - lineNumber: 30 - } - })); - } - }]); - - _inherits(withOrientation, _React$Component); - - return withOrientation; - }(_react.default.Component); - - withOrientation = _wrapComponent("withOrientation")(withOrientation); - return (0, _hoistNonReactStatics.default)(withOrientation, WrappedComponent); - } -},543,[122,161,1,617],"node_modules/react-navigation/src/views/withOrientation.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getImageSource = exports.ToolbarAndroid = exports.TabBarItemIOS = exports.TabBarItem = exports.Button = exports.default = void 0; - - var _createIconSet = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./lib/create-icon-set")); - - var _MaterialCommunityIcons = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./glyphmaps/MaterialCommunityIcons.json")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var iconSet = (0, _createIconSet.default)(_MaterialCommunityIcons.default, 'Material Design Icons', 'MaterialCommunityIcons.ttf'); - var _default = iconSet; - exports.default = _default; - var Button = iconSet.Button; - exports.Button = Button; - var TabBarItem = iconSet.TabBarItem; - exports.TabBarItem = TabBarItem; - var TabBarItemIOS = iconSet.TabBarItemIOS; - exports.TabBarItemIOS = TabBarItemIOS; - var ToolbarAndroid = iconSet.ToolbarAndroid; - exports.ToolbarAndroid = ToolbarAndroid; - var getImageSource = iconSet.getImageSource; - exports.getImageSource = getImageSource; -},510,[633,634],"node_modules/react-native-vector-icons/MaterialCommunityIcons.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = createIconSet; - exports.DEFAULT_ICON_COLOR = exports.DEFAULT_ICON_SIZE = exports.NativeIconAPI = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "./react-native"); - - var _ensureNativeModuleAvailable = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./ensure-native-module-available")); - - var _iconButton = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./icon-button")); - - var _tabBarItemIos = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "./tab-bar-item-ios")); - - var _toolbarAndroid = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[7], "./toolbar-android")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-vector-icons/lib/create-icon-set.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Icon: { - displayName: "Icon", - isInFunction: true - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-vector-icons/lib/create-icon-set.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var NativeIconAPI = _reactNative.NativeModules.RNVectorIconsManager || _reactNative.NativeModules.RNVectorIconsModule; - exports.NativeIconAPI = NativeIconAPI; - var DEFAULT_ICON_SIZE = 12; - exports.DEFAULT_ICON_SIZE = DEFAULT_ICON_SIZE; - var DEFAULT_ICON_COLOR = 'black'; - exports.DEFAULT_ICON_COLOR = DEFAULT_ICON_COLOR; - - function createIconSet(glyphMap, fontFamily, fontFile, fontStyle) { - var fontBasename = fontFile ? fontFile.replace(/\.(otf|ttf)$/, '') : fontFamily; - - var fontReference = _reactNative.Platform.select({ - windows: "Assets/" + fontFile + "#" + fontFamily, - android: fontBasename, - web: fontBasename, - default: fontFamily - }); - - var IconNamePropType = _propTypes.default.oneOf(Object.keys(glyphMap)); - - var Icon = function (_PureComponent) { - function Icon() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, Icon); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Icon)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.root = null, _this.handleRef = function (ref) { - _this.root = ref; - }, _temp)); - } - - _createClass(Icon, [{ - key: "setNativeProps", - value: function setNativeProps(nativeProps) { - if (this.root) { - this.root.setNativeProps(nativeProps); - } - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - name = _this$props.name, - size = _this$props.size, - color = _this$props.color, - style = _this$props.style, - props = _objectWithoutProperties(_this$props, ["name", "size", "color", "style"]); - - var glyph = name ? glyphMap[name] || '?' : ''; - - if (typeof glyph === 'number') { - glyph = String.fromCharCode(glyph); - } - - var styleDefaults = { - fontSize: size, - color: color - }; - var styleOverrides = { - fontFamily: fontReference, - fontWeight: 'normal', - fontStyle: 'normal' - }; - props.style = [styleDefaults, style, styleOverrides, fontStyle || {}]; - props.ref = this.handleRef; - return _react.default.createElement(_reactNative.Text, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 90 - } - }), glyph, this.props.children); - } - }]); - - _inherits(Icon, _PureComponent); - - return Icon; - }(_react.PureComponent); - - Icon.propTypes = { - name: IconNamePropType, - size: _propTypes.default.number, - color: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]), - children: _propTypes.default.node, - style: _propTypes.default.any - }; - Icon.defaultProps = { - size: DEFAULT_ICON_SIZE, - allowFontScaling: false - }; - Icon = _wrapComponent("Icon")(Icon); - var imageSourceCache = {}; - - function getImageSource(name) { - var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_ICON_SIZE; - var color = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_ICON_COLOR; - (0, _ensureNativeModuleAvailable.default)(); - var glyph = glyphMap[name] || '?'; - - if (typeof glyph === 'number') { - glyph = String.fromCharCode(glyph); - } - - var processedColor = (0, _reactNative.processColor)(color); - var cacheKey = glyph + ":" + size + ":" + processedColor; - - var scale = _reactNative.PixelRatio.get(); - - return new Promise(function (resolve, reject) { - var cached = imageSourceCache[cacheKey]; - - if (typeof cached !== 'undefined') { - if (!cached || cached instanceof Error) { - reject(cached); - } else { - resolve({ - uri: cached, - scale: scale - }); - } - } else { - NativeIconAPI.getImageForFont(fontReference, glyph, size, processedColor, function (err, image) { - var error = typeof err === 'string' ? new Error(err) : err; - imageSourceCache[cacheKey] = image || error || false; - - if (!error && image) { - resolve({ - uri: image, - scale: scale - }); - } else { - reject(error); - } - }); - } - }); - } - - function loadFont() { - var file = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : fontFile; - - if (_reactNative.Platform.OS === 'ios') { - (0, _ensureNativeModuleAvailable.default)(); - - if (!file) { - return Promise.reject(new Error('Unable to load font, because no file was specified. ')); - } - - return NativeIconAPI.loadFontWithFileName.apply(NativeIconAPI, _toConsumableArray(file.split('.'))); - } - - return Promise.resolve(); - } - - function hasIcon(name) { - return Object.prototype.hasOwnProperty.call(glyphMap, name); - } - - function getRawGlyphMap() { - return glyphMap; - } - - function getFontFamily() { - return fontReference; - } - - Icon.Button = (0, _iconButton.default)(Icon); - Icon.TabBarItem = (0, _tabBarItemIos.default)(IconNamePropType, getImageSource); - Icon.TabBarItemIOS = Icon.TabBarItem; - Icon.ToolbarAndroid = (0, _toolbarAndroid.default)(IconNamePropType, getImageSource); - Icon.getImageSource = getImageSource; - Icon.loadFont = loadFont; - Icon.hasIcon = hasIcon; - Icon.getRawGlyphMap = getRawGlyphMap; - Icon.getFontFamily = getFontFamily; - return Icon; - } -},633,[122,161,143,635,636,637,638,639],"node_modules/react-native-vector-icons/lib/create-icon-set.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); - - Object.keys(_reactNative).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _reactNative[key]; - } - }); - }); -},635,[1],"node_modules/react-native-vector-icons/lib/react-native.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = ensureNativeModuleAvailable; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0], "./react-native"); - - var _createIconSet = _$$_REQUIRE(_dependencyMap[1], "./create-icon-set"); - - function ensureNativeModuleAvailable() { - if (!_createIconSet.NativeIconAPI) { - if (_reactNative.Platform.OS === 'android') { - throw new Error('RNVectorIconsModule not available, did you properly integrate the module? Try running `react-native link react-native-vector-icons` and recompiling.'); - } - - throw new Error('RNVectorIconsManager not available, did you add the library to your project and link with libRNVectorIcons.a? Try running `react-native link react-native-vector-icons` and recompiling.'); - } - } -},636,[635,633],"node_modules/react-native-vector-icons/lib/ensure-native-module-available.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = createIconButtonComponent; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../react-transform-hmr/lib/index.js")); - - var _isString = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "lodash/isString")); - - var _omit = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "lodash/omit")); - - var _pick = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "lodash/pick")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[6], "./react-native"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-vector-icons/lib/icon-button.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - IconButton: { - displayName: "IconButton", - isInFunction: true - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-vector-icons/lib/icon-button.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var styles = _reactNative.StyleSheet.create({ - container: { - flexDirection: 'row', - justifyContent: 'flex-start', - alignItems: 'center', - padding: 8 - }, - touchable: { - overflow: 'hidden' - }, - icon: { - marginRight: 10 - }, - text: { - fontWeight: '600', - backgroundColor: 'transparent' - } - }); - - var IOS7_BLUE = '#007AFF'; - - function createIconButtonComponent(Icon) { - var _class, _temp; - - return _wrapComponent("IconButton")((_temp = _class = function (_PureComponent) { - function IconButton() { - _classCallCheck(this, IconButton); - - return _possibleConstructorReturn(this, _getPrototypeOf(IconButton).apply(this, arguments)); - } - - _createClass(IconButton, [{ - key: "render", - value: function render() { - var _this$props = this.props, - style = _this$props.style, - iconStyle = _this$props.iconStyle, - children = _this$props.children, - restProps = _objectWithoutProperties(_this$props, ["style", "iconStyle", "children"]); - - var iconProps = (0, _pick.default)(restProps, Object.keys(_reactNative.Text.propTypes), 'style', 'name', 'size', 'color'); - var touchableProps = (0, _pick.default)(restProps, Object.keys(_reactNative.TouchableHighlight.propTypes)); - var props = (0, _omit.default)(restProps, Object.keys(iconProps), Object.keys(touchableProps), 'iconStyle', 'borderRadius', 'backgroundColor'); - iconProps.style = iconStyle ? [styles.icon, iconStyle] : styles.icon; - var colorStyle = (0, _pick.default)(this.props, 'color'); - var blockStyle = (0, _pick.default)(this.props, 'backgroundColor', 'borderRadius'); - return _react.default.createElement(_reactNative.TouchableHighlight, _extends({ - style: [styles.touchable, blockStyle] - }, touchableProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 80 - } - }), _react.default.createElement(_reactNative.View, _extends({ - style: [styles.container, blockStyle, style] - }, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 84 - } - }), _react.default.createElement(Icon, _extends({}, iconProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 85 - } - })), (0, _isString.default)(children) ? _react.default.createElement(_reactNative.Text, { - style: [styles.text, colorStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 87 - } - }, children) : children)); - } - }]); - - _inherits(IconButton, _PureComponent); - - return IconButton; - }(_react.PureComponent), _class.propTypes = { - backgroundColor: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]), - borderRadius: _propTypes.default.number, - color: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]), - size: _propTypes.default.number, - iconStyle: _propTypes.default.any, - style: _propTypes.default.any, - children: _propTypes.default.node - }, _class.defaultProps = { - backgroundColor: IOS7_BLUE, - borderRadius: 5, - color: 'white', - size: 20 - }, _temp)); - } -},637,[122,161,640,641,642,143,635],"node_modules/react-native-vector-icons/lib/icon-button.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseGetTag = _$$_REQUIRE(_dependencyMap[0], './_baseGetTag'), - isArray = _$$_REQUIRE(_dependencyMap[1], './isArray'), - isObjectLike = _$$_REQUIRE(_dependencyMap[2], './isObjectLike'); - - var stringTag = '[object String]'; - - function isString(value) { - return typeof value == 'string' || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag; - } - - module.exports = isString; -},640,[209,179,230],"node_modules/lodash/isString.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var arrayMap = _$$_REQUIRE(_dependencyMap[0], './_arrayMap'), - baseClone = _$$_REQUIRE(_dependencyMap[1], './_baseClone'), - baseUnset = _$$_REQUIRE(_dependencyMap[2], './_baseUnset'), - castPath = _$$_REQUIRE(_dependencyMap[3], './_castPath'), - copyObject = _$$_REQUIRE(_dependencyMap[4], './_copyObject'), - customOmitClone = _$$_REQUIRE(_dependencyMap[5], './_customOmitClone'), - flatRest = _$$_REQUIRE(_dependencyMap[6], './_flatRest'), - getAllKeysIn = _$$_REQUIRE(_dependencyMap[7], './_getAllKeysIn'); - - var CLONE_DEEP_FLAG = 1, - CLONE_FLAT_FLAG = 2, - CLONE_SYMBOLS_FLAG = 4; - var omit = flatRest(function (object, paths) { - var result = {}; - - if (object == null) { - return result; - } - - var isDeep = false; - paths = arrayMap(paths, function (path) { - path = castPath(path, object); - isDeep || (isDeep = path.length > 1); - return path; - }); - copyObject(object, getAllKeysIn(object), result); - - if (isDeep) { - result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone); - } - - var length = paths.length; - - while (length--) { - baseUnset(result, paths[length]); - } - - return result; - }); - module.exports = omit; -},641,[282,643,644,275,294,645,646,647],"node_modules/lodash/omit.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var Stack = _$$_REQUIRE(_dependencyMap[0], './_Stack'), - arrayEach = _$$_REQUIRE(_dependencyMap[1], './_arrayEach'), - assignValue = _$$_REQUIRE(_dependencyMap[2], './_assignValue'), - baseAssign = _$$_REQUIRE(_dependencyMap[3], './_baseAssign'), - baseAssignIn = _$$_REQUIRE(_dependencyMap[4], './_baseAssignIn'), - cloneBuffer = _$$_REQUIRE(_dependencyMap[5], './_cloneBuffer'), - copyArray = _$$_REQUIRE(_dependencyMap[6], './_copyArray'), - copySymbols = _$$_REQUIRE(_dependencyMap[7], './_copySymbols'), - copySymbolsIn = _$$_REQUIRE(_dependencyMap[8], './_copySymbolsIn'), - getAllKeys = _$$_REQUIRE(_dependencyMap[9], './_getAllKeys'), - getAllKeysIn = _$$_REQUIRE(_dependencyMap[10], './_getAllKeysIn'), - getTag = _$$_REQUIRE(_dependencyMap[11], './_getTag'), - initCloneArray = _$$_REQUIRE(_dependencyMap[12], './_initCloneArray'), - initCloneByTag = _$$_REQUIRE(_dependencyMap[13], './_initCloneByTag'), - initCloneObject = _$$_REQUIRE(_dependencyMap[14], './_initCloneObject'), - isArray = _$$_REQUIRE(_dependencyMap[15], './isArray'), - isBuffer = _$$_REQUIRE(_dependencyMap[16], './isBuffer'), - isMap = _$$_REQUIRE(_dependencyMap[17], './isMap'), - isObject = _$$_REQUIRE(_dependencyMap[18], './isObject'), - isSet = _$$_REQUIRE(_dependencyMap[19], './isSet'), - keys = _$$_REQUIRE(_dependencyMap[20], './keys'); - - var CLONE_DEEP_FLAG = 1, - CLONE_FLAT_FLAG = 2, - CLONE_SYMBOLS_FLAG = 4; - var argsTag = '[object Arguments]', - arrayTag = '[object Array]', - boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - mapTag = '[object Map]', - numberTag = '[object Number]', - objectTag = '[object Object]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - symbolTag = '[object Symbol]', - weakMapTag = '[object WeakMap]'; - var arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]', - float32Tag = '[object Float32Array]', - float64Tag = '[object Float64Array]', - int8Tag = '[object Int8Array]', - int16Tag = '[object Int16Array]', - int32Tag = '[object Int32Array]', - uint8Tag = '[object Uint8Array]', - uint8ClampedTag = '[object Uint8ClampedArray]', - uint16Tag = '[object Uint16Array]', - uint32Tag = '[object Uint32Array]'; - var cloneableTags = {}; - cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; - cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; - - function baseClone(value, bitmask, customizer, key, object, stack) { - var result, - isDeep = bitmask & CLONE_DEEP_FLAG, - isFlat = bitmask & CLONE_FLAT_FLAG, - isFull = bitmask & CLONE_SYMBOLS_FLAG; - - if (customizer) { - result = object ? customizer(value, key, object, stack) : customizer(value); - } - - if (result !== undefined) { - return result; - } - - if (!isObject(value)) { - return value; - } - - var isArr = isArray(value); - - if (isArr) { - result = initCloneArray(value); - - if (!isDeep) { - return copyArray(value, result); - } - } else { - var tag = getTag(value), - isFunc = tag == funcTag || tag == genTag; - - if (isBuffer(value)) { - return cloneBuffer(value, isDeep); - } - - if (tag == objectTag || tag == argsTag || isFunc && !object) { - result = isFlat || isFunc ? {} : initCloneObject(value); - - if (!isDeep) { - return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value)); - } - } else { - if (!cloneableTags[tag]) { - return object ? value : {}; - } - - result = initCloneByTag(value, tag, isDeep); - } - } - - stack || (stack = new Stack()); - var stacked = stack.get(value); - - if (stacked) { - return stacked; - } - - stack.set(value, result); - - if (isSet(value)) { - value.forEach(function (subValue) { - result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); - }); - return result; - } - - if (isMap(value)) { - value.forEach(function (subValue, key) { - result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack)); - }); - return result; - } - - var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys; - var props = isArr ? undefined : keysFunc(value); - arrayEach(props || value, function (subValue, key) { - if (props) { - key = subValue; - subValue = value[key]; - } - - assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); - }); - return result; - } - - module.exports = baseClone; -},643,[184,648,293,649,650,651,652,653,654,245,647,234,655,656,657,179,235,658,207,659,175],"node_modules/lodash/_baseClone.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function arrayEach(array, iteratee) { - var index = -1, - length = array == null ? 0 : array.length; - - while (++index < length) { - if (iteratee(array[index], index, array) === false) { - break; - } - } - - return array; - } - - module.exports = arrayEach; -},648,[],"node_modules/lodash/_arrayEach.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var copyObject = _$$_REQUIRE(_dependencyMap[0], './_copyObject'), - keys = _$$_REQUIRE(_dependencyMap[1], './keys'); - - function baseAssign(object, source) { - return object && copyObject(source, keys(source), object); - } - - module.exports = baseAssign; -},649,[294,175],"node_modules/lodash/_baseAssign.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var copyObject = _$$_REQUIRE(_dependencyMap[0], './_copyObject'), - keysIn = _$$_REQUIRE(_dependencyMap[1], './keysIn'); - - function baseAssignIn(object, source) { - return object && copyObject(source, keysIn(source), object); - } - - module.exports = baseAssignIn; -},650,[294,660],"node_modules/lodash/_baseAssignIn.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var arrayLikeKeys = _$$_REQUIRE(_dependencyMap[0], './_arrayLikeKeys'), - baseKeysIn = _$$_REQUIRE(_dependencyMap[1], './_baseKeysIn'), - isArrayLike = _$$_REQUIRE(_dependencyMap[2], './isArrayLike'); - - function keysIn(object) { - return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); - } - - module.exports = keysIn; -},660,[251,661,174],"node_modules/lodash/keysIn.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var isObject = _$$_REQUIRE(_dependencyMap[0], './isObject'), - isPrototype = _$$_REQUIRE(_dependencyMap[1], './_isPrototype'), - nativeKeysIn = _$$_REQUIRE(_dependencyMap[2], './_nativeKeysIn'); - - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - - function baseKeysIn(object) { - if (!isObject(object)) { - return nativeKeysIn(object); - } - - var isProto = isPrototype(object), - result = []; - - for (var key in object) { - if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { - result.push(key); - } - } - - return result; - } - - module.exports = baseKeysIn; -},661,[207,262,662],"node_modules/lodash/_baseKeysIn.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function nativeKeysIn(object) { - var result = []; - - if (object != null) { - for (var key in Object(object)) { - result.push(key); - } - } - - return result; - } - - module.exports = nativeKeysIn; -},662,[],"node_modules/lodash/_nativeKeysIn.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var root = _$$_REQUIRE(_dependencyMap[0], './_root'); - - var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; - var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; - var moduleExports = freeModule && freeModule.exports === freeExports; - var Buffer = moduleExports ? root.Buffer : undefined, - allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined; - - function cloneBuffer(buffer, isDeep) { - if (isDeep) { - return buffer.slice(); - } - - var length = buffer.length, - result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); - buffer.copy(result); - return result; - } - - module.exports = cloneBuffer; -},651,[202],"node_modules/lodash/_cloneBuffer.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function copyArray(source, array) { - var index = -1, - length = source.length; - array || (array = Array(length)); - - while (++index < length) { - array[index] = source[index]; - } - - return array; - } - - module.exports = copyArray; -},652,[],"node_modules/lodash/_copyArray.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var copyObject = _$$_REQUIRE(_dependencyMap[0], './_copyObject'), - getSymbols = _$$_REQUIRE(_dependencyMap[1], './_getSymbols'); - - function copySymbols(source, object) { - return copyObject(source, getSymbols(source), object); - } - - module.exports = copySymbols; -},653,[294,247],"node_modules/lodash/_copySymbols.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var copyObject = _$$_REQUIRE(_dependencyMap[0], './_copyObject'), - getSymbolsIn = _$$_REQUIRE(_dependencyMap[1], './_getSymbolsIn'); - - function copySymbolsIn(source, object) { - return copyObject(source, getSymbolsIn(source), object); - } - - module.exports = copySymbolsIn; -},654,[294,663],"node_modules/lodash/_copySymbolsIn.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var arrayPush = _$$_REQUIRE(_dependencyMap[0], './_arrayPush'), - getPrototype = _$$_REQUIRE(_dependencyMap[1], './_getPrototype'), - getSymbols = _$$_REQUIRE(_dependencyMap[2], './_getSymbols'), - stubArray = _$$_REQUIRE(_dependencyMap[3], './stubArray'); - - var nativeGetSymbols = Object.getOwnPropertySymbols; - var getSymbolsIn = !nativeGetSymbols ? stubArray : function (object) { - var result = []; - - while (object) { - arrayPush(result, getSymbols(object)); - object = getPrototype(object); - } - - return result; - }; - module.exports = getSymbolsIn; -},663,[248,664,247,250],"node_modules/lodash/_getSymbolsIn.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var overArg = _$$_REQUIRE(_dependencyMap[0], './_overArg'); - - var getPrototype = overArg(Object.getPrototypeOf, Object); - module.exports = getPrototype; -},664,[264],"node_modules/lodash/_getPrototype.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseGetAllKeys = _$$_REQUIRE(_dependencyMap[0], './_baseGetAllKeys'), - getSymbolsIn = _$$_REQUIRE(_dependencyMap[1], './_getSymbolsIn'), - keysIn = _$$_REQUIRE(_dependencyMap[2], './keysIn'); - - function getAllKeysIn(object) { - return baseGetAllKeys(object, keysIn, getSymbolsIn); - } - - module.exports = getAllKeysIn; -},647,[246,663,660],"node_modules/lodash/_getAllKeysIn.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - - function initCloneArray(array) { - var length = array.length, - result = new array.constructor(length); - - if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { - result.index = array.index; - result.input = array.input; - } - - return result; - } - - module.exports = initCloneArray; -},655,[],"node_modules/lodash/_initCloneArray.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var cloneArrayBuffer = _$$_REQUIRE(_dependencyMap[0], './_cloneArrayBuffer'), - cloneDataView = _$$_REQUIRE(_dependencyMap[1], './_cloneDataView'), - cloneRegExp = _$$_REQUIRE(_dependencyMap[2], './_cloneRegExp'), - cloneSymbol = _$$_REQUIRE(_dependencyMap[3], './_cloneSymbol'), - cloneTypedArray = _$$_REQUIRE(_dependencyMap[4], './_cloneTypedArray'); - - var boolTag = '[object Boolean]', - dateTag = '[object Date]', - mapTag = '[object Map]', - numberTag = '[object Number]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - symbolTag = '[object Symbol]'; - var arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]', - float32Tag = '[object Float32Array]', - float64Tag = '[object Float64Array]', - int8Tag = '[object Int8Array]', - int16Tag = '[object Int16Array]', - int32Tag = '[object Int32Array]', - uint8Tag = '[object Uint8Array]', - uint8ClampedTag = '[object Uint8ClampedArray]', - uint16Tag = '[object Uint16Array]', - uint32Tag = '[object Uint32Array]'; - - function initCloneByTag(object, tag, isDeep) { - var Ctor = object.constructor; - - switch (tag) { - case arrayBufferTag: - return cloneArrayBuffer(object); - - case boolTag: - case dateTag: - return new Ctor(+object); - - case dataViewTag: - return cloneDataView(object, isDeep); - - case float32Tag: - case float64Tag: - case int8Tag: - case int16Tag: - case int32Tag: - case uint8Tag: - case uint8ClampedTag: - case uint16Tag: - case uint32Tag: - return cloneTypedArray(object, isDeep); - - case mapTag: - return new Ctor(); - - case numberTag: - case stringTag: - return new Ctor(object); - - case regexpTag: - return cloneRegExp(object); - - case setTag: - return new Ctor(); - - case symbolTag: - return cloneSymbol(object); - } - } - - module.exports = initCloneByTag; -},656,[665,666,667,668,669],"node_modules/lodash/_initCloneByTag.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var Uint8Array = _$$_REQUIRE(_dependencyMap[0], './_Uint8Array'); - - function cloneArrayBuffer(arrayBuffer) { - var result = new arrayBuffer.constructor(arrayBuffer.byteLength); - new Uint8Array(result).set(new Uint8Array(arrayBuffer)); - return result; - } - - module.exports = cloneArrayBuffer; -},665,[242],"node_modules/lodash/_cloneArrayBuffer.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var cloneArrayBuffer = _$$_REQUIRE(_dependencyMap[0], './_cloneArrayBuffer'); - - function cloneDataView(dataView, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; - return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); - } - - module.exports = cloneDataView; -},666,[665],"node_modules/lodash/_cloneDataView.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var reFlags = /\w*$/; - - function cloneRegExp(regexp) { - var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); - result.lastIndex = regexp.lastIndex; - return result; - } - - module.exports = cloneRegExp; -},667,[],"node_modules/lodash/_cloneRegExp.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var Symbol = _$$_REQUIRE(_dependencyMap[0], './_Symbol'); - - var symbolProto = Symbol ? typeof Symbol === "function" ? Symbol.prototype : "@@prototype" : undefined, - symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; - - function cloneSymbol(symbol) { - return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; - } - - module.exports = cloneSymbol; -},668,[210],"node_modules/lodash/_cloneSymbol.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var cloneArrayBuffer = _$$_REQUIRE(_dependencyMap[0], './_cloneArrayBuffer'); - - function cloneTypedArray(typedArray, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; - return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); - } - - module.exports = cloneTypedArray; -},669,[665],"node_modules/lodash/_cloneTypedArray.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseCreate = _$$_REQUIRE(_dependencyMap[0], './_baseCreate'), - getPrototype = _$$_REQUIRE(_dependencyMap[1], './_getPrototype'), - isPrototype = _$$_REQUIRE(_dependencyMap[2], './_isPrototype'); - - function initCloneObject(object) { - return typeof object.constructor == 'function' && !isPrototype(object) ? baseCreate(getPrototype(object)) : {}; - } - - module.exports = initCloneObject; -},657,[670,664,262],"node_modules/lodash/_initCloneObject.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var isObject = _$$_REQUIRE(_dependencyMap[0], './isObject'); - - var objectCreate = Object.create; - - var baseCreate = function () { - function object() {} - - return function (proto) { - if (!isObject(proto)) { - return {}; - } - - if (objectCreate) { - return objectCreate(proto); - } - - object.prototype = proto; - var result = new object(); - object.prototype = undefined; - return result; - }; - }(); - - module.exports = baseCreate; -},670,[207],"node_modules/lodash/_baseCreate.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseIsMap = _$$_REQUIRE(_dependencyMap[0], './_baseIsMap'), - baseUnary = _$$_REQUIRE(_dependencyMap[1], './_baseUnary'), - nodeUtil = _$$_REQUIRE(_dependencyMap[2], './_nodeUtil'); - - var nodeIsMap = nodeUtil && nodeUtil.isMap; - var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; - module.exports = isMap; -},658,[671,259,260],"node_modules/lodash/isMap.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var getTag = _$$_REQUIRE(_dependencyMap[0], './_getTag'), - isObjectLike = _$$_REQUIRE(_dependencyMap[1], './isObjectLike'); - - var mapTag = '[object Map]'; - - function baseIsMap(value) { - return isObjectLike(value) && getTag(value) == mapTag; - } - - module.exports = baseIsMap; -},671,[234,230],"node_modules/lodash/_baseIsMap.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseIsSet = _$$_REQUIRE(_dependencyMap[0], './_baseIsSet'), - baseUnary = _$$_REQUIRE(_dependencyMap[1], './_baseUnary'), - nodeUtil = _$$_REQUIRE(_dependencyMap[2], './_nodeUtil'); - - var nodeIsSet = nodeUtil && nodeUtil.isSet; - var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; - module.exports = isSet; -},659,[672,259,260],"node_modules/lodash/isSet.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var getTag = _$$_REQUIRE(_dependencyMap[0], './_getTag'), - isObjectLike = _$$_REQUIRE(_dependencyMap[1], './isObjectLike'); - - var setTag = '[object Set]'; - - function baseIsSet(value) { - return isObjectLike(value) && getTag(value) == setTag; - } - - module.exports = baseIsSet; -},672,[234,230],"node_modules/lodash/_baseIsSet.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var castPath = _$$_REQUIRE(_dependencyMap[0], './_castPath'), - last = _$$_REQUIRE(_dependencyMap[1], './last'), - parent = _$$_REQUIRE(_dependencyMap[2], './_parent'), - toKey = _$$_REQUIRE(_dependencyMap[3], './_toKey'); - - function baseUnset(object, path) { - path = castPath(path, object); - object = parent(object, path); - return object == null || delete object[toKey(last(path))]; - } - - module.exports = baseUnset; -},644,[275,673,674,273],"node_modules/lodash/_baseUnset.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function last(array) { - var length = array == null ? 0 : array.length; - return length ? array[length - 1] : undefined; - } - - module.exports = last; -},673,[],"node_modules/lodash/last.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseGet = _$$_REQUIRE(_dependencyMap[0], './_baseGet'), - baseSlice = _$$_REQUIRE(_dependencyMap[1], './_baseSlice'); - - function parent(object, path) { - return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1)); - } - - module.exports = parent; -},674,[274,675],"node_modules/lodash/_parent.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - function baseSlice(array, start, end) { - var index = -1, - length = array.length; - - if (start < 0) { - start = -start > length ? 0 : length + start; - } - - end = end > length ? length : end; - - if (end < 0) { - end += length; - } - - length = start > end ? 0 : end - start >>> 0; - start >>>= 0; - var result = Array(length); - - while (++index < length) { - result[index] = array[index + start]; - } - - return result; - } - - module.exports = baseSlice; -},675,[],"node_modules/lodash/_baseSlice.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var isPlainObject = _$$_REQUIRE(_dependencyMap[0], './isPlainObject'); - - function customOmitClone(value) { - return isPlainObject(value) ? undefined : value; - } - - module.exports = customOmitClone; -},645,[676],"node_modules/lodash/_customOmitClone.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseGetTag = _$$_REQUIRE(_dependencyMap[0], './_baseGetTag'), - getPrototype = _$$_REQUIRE(_dependencyMap[1], './_getPrototype'), - isObjectLike = _$$_REQUIRE(_dependencyMap[2], './isObjectLike'); - - var objectTag = '[object Object]'; - var funcProto = Function.prototype, - objectProto = Object.prototype; - var funcToString = funcProto.toString; - var hasOwnProperty = objectProto.hasOwnProperty; - var objectCtorString = funcToString.call(Object); - - function isPlainObject(value) { - if (!isObjectLike(value) || baseGetTag(value) != objectTag) { - return false; - } - - var proto = getPrototype(value); - - if (proto === null) { - return true; - } - - var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; - return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; - } - - module.exports = isPlainObject; -},676,[209,664,230],"node_modules/lodash/isPlainObject.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var flatten = _$$_REQUIRE(_dependencyMap[0], './flatten'), - overRest = _$$_REQUIRE(_dependencyMap[1], './_overRest'), - setToString = _$$_REQUIRE(_dependencyMap[2], './_setToString'); - - function flatRest(func) { - return setToString(overRest(func, undefined, flatten), func + ''); - } - - module.exports = flatRest; -},646,[677,300,301],"node_modules/lodash/_flatRest.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseFlatten = _$$_REQUIRE(_dependencyMap[0], './_baseFlatten'); - - function flatten(array) { - var length = array == null ? 0 : array.length; - return length ? baseFlatten(array, 1) : []; - } - - module.exports = flatten; -},677,[307],"node_modules/lodash/flatten.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var basePick = _$$_REQUIRE(_dependencyMap[0], './_basePick'), - flatRest = _$$_REQUIRE(_dependencyMap[1], './_flatRest'); - - var pick = flatRest(function (object, paths) { - return object == null ? {} : basePick(object, paths); - }); - module.exports = pick; -},642,[678,646],"node_modules/lodash/pick.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var basePickBy = _$$_REQUIRE(_dependencyMap[0], './_basePickBy'), - hasIn = _$$_REQUIRE(_dependencyMap[1], './hasIn'); - - function basePick(object, paths) { - return basePickBy(object, paths, function (value, path) { - return hasIn(object, path); - }); - } - - module.exports = basePick; -},678,[679,271],"node_modules/lodash/_basePick.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseGet = _$$_REQUIRE(_dependencyMap[0], './_baseGet'), - baseSet = _$$_REQUIRE(_dependencyMap[1], './_baseSet'), - castPath = _$$_REQUIRE(_dependencyMap[2], './_castPath'); - - function basePickBy(object, paths, predicate) { - var index = -1, - length = paths.length, - result = {}; - - while (++index < length) { - var path = paths[index], - value = baseGet(object, path); - - if (predicate(value, path)) { - baseSet(result, castPath(path, object), value); - } - } - - return result; - } - - module.exports = basePickBy; -},679,[274,680,275],"node_modules/lodash/_basePickBy.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var assignValue = _$$_REQUIRE(_dependencyMap[0], './_assignValue'), - castPath = _$$_REQUIRE(_dependencyMap[1], './_castPath'), - isIndex = _$$_REQUIRE(_dependencyMap[2], './_isIndex'), - isObject = _$$_REQUIRE(_dependencyMap[3], './isObject'), - toKey = _$$_REQUIRE(_dependencyMap[4], './_toKey'); - - function baseSet(object, path, value, customizer) { - if (!isObject(object)) { - return object; - } - - path = castPath(path, object); - var index = -1, - length = path.length, - lastIndex = length - 1, - nested = object; - - while (nested != null && ++index < length) { - var key = toKey(path[index]), - newValue = value; - - if (index != lastIndex) { - var objValue = nested[key]; - newValue = customizer ? customizer(objValue, key, nested) : undefined; - - if (newValue === undefined) { - newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {}; - } - } - - assignValue(nested, key, newValue); - nested = nested[key]; - } - - return object; - } - - module.exports = baseSet; -},680,[293,275,255,207,273],"node_modules/lodash/_baseSet.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = createTabBarItemIOSComponent; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../react-transform-hmr/lib/index.js")); - - var _isEqual = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "lodash/isEqual")); - - var _pick = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "lodash/pick")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[5], "./react-native"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-vector-icons/lib/tab-bar-item-ios.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TabBarItemIOS: { - displayName: "TabBarItemIOS", - isInFunction: true - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-vector-icons/lib/tab-bar-item-ios.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function createTabBarItemIOSComponent(IconNamePropType, getImageSource) { - var _class, _temp; - - return _wrapComponent("TabBarItemIOS")((_temp = _class = function (_PureComponent) { - function TabBarItemIOS() { - _classCallCheck(this, TabBarItemIOS); - - return _possibleConstructorReturn(this, _getPrototypeOf(TabBarItemIOS).apply(this, arguments)); - } - - _createClass(TabBarItemIOS, [{ - key: "componentWillMount", - value: function componentWillMount() { - this.updateIconSources(this.props); - } - }, { - key: "componentWillReceiveProps", - value: function componentWillReceiveProps(nextProps) { - var keys = Object.keys(TabBarItemIOS.propTypes); - - if (!(0, _isEqual.default)((0, _pick.default)(nextProps, keys), (0, _pick.default)(this.props, keys))) { - this.updateIconSources(nextProps); - } - } - }, { - key: "updateIconSources", - value: function updateIconSources(props) { - var _this = this; - - if (props.iconName) { - getImageSource(props.iconName, props.iconSize, props.iconColor).then(function (icon) { - return _this.setState({ - icon: icon - }); - }); - } - - if (props.selectedIconName || props.selectedIconColor) { - var selectedIconName = props.selectedIconName || props.iconName; - var selectedIconColor = props.selectedIconColor || props.iconColor; - getImageSource(selectedIconName, props.iconSize, selectedIconColor).then(function (selectedIcon) { - return _this.setState({ - selectedIcon: selectedIcon - }); - }); - } - } - }, { - key: "render", - value: function render() { - return _react.default.createElement(_reactNative.TabBarIOS.Item, _extends({}, this.props, this.state, { - __source: { - fileName: _jsxFileName, - lineNumber: 57 - } - })); - } - }]); - - _inherits(TabBarItemIOS, _PureComponent); - - return TabBarItemIOS; - }(_react.PureComponent), _class.propTypes = { - iconName: IconNamePropType.isRequired, - selectedIconName: IconNamePropType, - iconSize: _propTypes.default.number, - iconColor: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]), - selectedIconColor: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]) - }, _class.defaultProps = { - iconSize: 30 - }, _temp)); - } -},638,[122,161,681,642,143,635],"node_modules/react-native-vector-icons/lib/tab-bar-item-ios.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var baseIsEqual = _$$_REQUIRE(_dependencyMap[0], './_baseIsEqual'); - - function isEqual(value, other) { - return baseIsEqual(value, other); - } - - module.exports = isEqual; -},681,[185],"node_modules/lodash/isEqual.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = createToolbarAndroidComponent; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../react-transform-hmr/lib/index.js")); - - var _isEqual = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "lodash/isEqual")); - - var _pick = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "lodash/pick")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[5], "./react-native"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-vector-icons/lib/toolbar-android.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - IconToolbarAndroid: { - displayName: "IconToolbarAndroid", - isInFunction: true - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-vector-icons/lib/toolbar-android.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - function createToolbarAndroidComponent(IconNamePropType, getImageSource) { - var _class, _temp; - - return _wrapComponent("IconToolbarAndroid")((_temp = _class = function (_PureComponent) { - function IconToolbarAndroid() { - _classCallCheck(this, IconToolbarAndroid); - - return _possibleConstructorReturn(this, _getPrototypeOf(IconToolbarAndroid).apply(this, arguments)); - } - - _createClass(IconToolbarAndroid, [{ - key: "componentWillMount", - value: function componentWillMount() { - this.updateIconSources(this.props); - } - }, { - key: "componentWillReceiveProps", - value: function componentWillReceiveProps(nextProps) { - var _this = this; - - var keys = Object.keys(IconToolbarAndroid.propTypes); - - if (!(0, _isEqual.default)((0, _pick.default)(nextProps, keys), (0, _pick.default)(this.props, keys))) { - var stateToEvict = {}; - - if (!nextProps.logoName) { - stateToEvict.logo = undefined; - } - - if (!nextProps.navIconName) { - stateToEvict.navIcon = undefined; - } - - if (!nextProps.overflowIconName) { - stateToEvict.overflowIcon = undefined; - } - - if (this.state && Object.keys(stateToEvict).length) { - this.setState(stateToEvict, function () { - return _this.updateIconSources(nextProps); - }); - } else { - this.updateIconSources(nextProps); - } - } - } - }, { - key: "updateIconSources", - value: function updateIconSources(props) { - var _this2 = this; - - var size = props.iconSize; - var color = props.iconColor || props.titleColor; - - if (props.logoName) { - getImageSource(props.logoName, size, color).then(function (logo) { - return _this2.setState({ - logo: logo - }); - }); - } - - if (props.navIconName) { - getImageSource(props.navIconName, size, color).then(function (navIcon) { - return _this2.setState({ - navIcon: navIcon - }); - }); - } - - if (props.overflowIconName) { - getImageSource(props.overflowIconName, size, color).then(function (overflowIcon) { - return _this2.setState({ - overflowIcon: overflowIcon - }); - }); - } - - Promise.all((props.actions || []).map(function (action) { - if (action.iconName) { - return getImageSource(action.iconName, action.iconSize || size, action.iconColor || color).then(function (icon) { - return _objectSpread({}, action, { - icon: icon - }); - }); - } - - return Promise.resolve(action); - })).then(function (actions) { - return _this2.setState({ - actions: actions - }); - }); - } - }, { - key: "render", - value: function render() { - return _react.default.createElement(_reactNative.ToolbarAndroid, _extends({}, this.props, this.state, { - __source: { - fileName: _jsxFileName, - lineNumber: 94 - } - })); - } - }]); - - _inherits(IconToolbarAndroid, _PureComponent); - - return IconToolbarAndroid; - }(_react.PureComponent), _class.propTypes = { - logoName: IconNamePropType, - navIconName: IconNamePropType, - overflowIconName: IconNamePropType, - actions: _propTypes.default.arrayOf(_propTypes.default.shape({ - title: _propTypes.default.string.isRequired, - iconName: IconNamePropType, - iconSize: _propTypes.default.number, - iconColor: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]), - show: _propTypes.default.oneOf(['always', 'ifRoom', 'never']), - showWithText: _propTypes.default.bool - })), - iconSize: _propTypes.default.number, - iconColor: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]) - }, _class.defaultProps = { - iconSize: 24 - }, _temp)); - } -},639,[122,161,681,642,143,635],"node_modules/react-native-vector-icons/lib/toolbar-android.js"); -__d(function(global, require, module, exports) { - module.exports = { - "access-point": 61442, - "access-point-network": 61443, - "account": 61444, - "account-alert": 61445, - "account-box": 61446, - "account-box-multiple": 63795, - "account-box-outline": 61447, - "account-card-details": 62930, - "account-check": 61448, - "account-circle": 61449, - "account-convert": 61450, - "account-edit": 63163, - "account-group": 63560, - "account-heart": 63640, - "account-key": 61451, - "account-location": 61452, - "account-minus": 61453, - "account-multiple": 61454, - "account-multiple-check": 63684, - "account-multiple-minus": 62931, - "account-multiple-outline": 61455, - "account-multiple-plus": 61456, - "account-multiple-plus-outline": 63487, - "account-network": 61457, - "account-off": 61458, - "account-outline": 61459, - "account-plus": 61460, - "account-plus-outline": 63488, - "account-remove": 61461, - "account-search": 61462, - "account-search-outline": 63796, - "account-settings": 63024, - "account-settings-variant": 63025, - "account-star": 61463, - "account-switch": 61465, - "accusoft": 63561, - "adjust": 61466, - "adobe": 63797, - "air-conditioner": 61467, - "airballoon": 61468, - "airplane": 61469, - "airplane-landing": 62932, - "airplane-off": 61470, - "airplane-takeoff": 62933, - "airplay": 61471, - "airport": 63562, - "alarm": 61472, - "alarm-bell": 63373, - "alarm-check": 61473, - "alarm-light": 63374, - "alarm-multiple": 61474, - "alarm-off": 61475, - "alarm-plus": 61476, - "alarm-snooze": 63117, - "album": 61477, - "alert": 61478, - "alert-box": 61479, - "alert-circle": 61480, - "alert-circle-outline": 62934, - "alert-decagram": 63164, - "alert-octagon": 61481, - "alert-octagram": 63334, - "alert-outline": 61482, - "alien": 63641, - "all-inclusive": 63165, - "alpha": 61483, - "alphabetical": 61484, - "altimeter": 62935, - "amazon": 61485, - "amazon-alexa": 63685, - "amazon-drive": 61486, - "ambulance": 61487, - "amplifier": 61488, - "anchor": 61489, - "android": 61490, - "android-debug-bridge": 61491, - "android-head": 63375, - "android-studio": 61492, - "angle-acute": 63798, - "angle-obtuse": 63799, - "angle-right": 63800, - "angular": 63153, - "angularjs": 63166, - "animation": 62936, - "animation-play": 63801, - "anvil": 63642, - "apple": 61493, - "apple-finder": 61494, - "apple-icloud": 61496, - "apple-ios": 61495, - "apple-keyboard-caps": 63026, - "apple-keyboard-command": 63027, - "apple-keyboard-control": 63028, - "apple-keyboard-option": 63029, - "apple-keyboard-shift": 63030, - "apple-safari": 61497, - "application": 62996, - "approval": 63376, - "apps": 61499, - "arch": 63686, - "archive": 61500, - "arrange-bring-forward": 61501, - "arrange-bring-to-front": 61502, - "arrange-send-backward": 61503, - "arrange-send-to-back": 61504, - "arrow-all": 61505, - "arrow-bottom-left": 61506, - "arrow-bottom-left-bold-outline": 63926, - "arrow-bottom-left-thick": 63927, - "arrow-bottom-right": 61507, - "arrow-bottom-right-bold-outline": 63928, - "arrow-bottom-right-thick": 63929, - "arrow-collapse": 62997, - "arrow-collapse-all": 61508, - "arrow-collapse-down": 63377, - "arrow-collapse-horizontal": 63563, - "arrow-collapse-left": 63378, - "arrow-collapse-right": 63379, - "arrow-collapse-up": 63380, - "arrow-collapse-vertical": 63564, - "arrow-decision": 63930, - "arrow-decision-auto": 63931, - "arrow-decision-auto-outline": 63932, - "arrow-decision-outline": 63933, - "arrow-down": 61509, - "arrow-down-bold": 63277, - "arrow-down-bold-box": 63278, - "arrow-down-bold-box-outline": 63279, - "arrow-down-bold-circle": 61511, - "arrow-down-bold-circle-outline": 61512, - "arrow-down-bold-hexagon-outline": 61513, - "arrow-down-bold-outline": 63934, - "arrow-down-box": 63167, - "arrow-down-drop-circle": 61514, - "arrow-down-drop-circle-outline": 61515, - "arrow-down-thick": 61510, - "arrow-expand": 62998, - "arrow-expand-all": 61516, - "arrow-expand-down": 63381, - "arrow-expand-horizontal": 63565, - "arrow-expand-left": 63382, - "arrow-expand-right": 63383, - "arrow-expand-up": 63384, - "arrow-expand-vertical": 63566, - "arrow-left": 61517, - "arrow-left-bold": 63280, - "arrow-left-bold-box": 63281, - "arrow-left-bold-box-outline": 63282, - "arrow-left-bold-circle": 61519, - "arrow-left-bold-circle-outline": 61520, - "arrow-left-bold-hexagon-outline": 61521, - "arrow-left-bold-outline": 63935, - "arrow-left-box": 63168, - "arrow-left-drop-circle": 61522, - "arrow-left-drop-circle-outline": 61523, - "arrow-left-right-bold-outline": 63936, - "arrow-left-thick": 61518, - "arrow-right": 61524, - "arrow-right-bold": 63283, - "arrow-right-bold-box": 63284, - "arrow-right-bold-box-outline": 63285, - "arrow-right-bold-circle": 61526, - "arrow-right-bold-circle-outline": 61527, - "arrow-right-bold-hexagon-outline": 61528, - "arrow-right-bold-outline": 63937, - "arrow-right-box": 63169, - "arrow-right-drop-circle": 61529, - "arrow-right-drop-circle-outline": 61530, - "arrow-right-thick": 61525, - "arrow-split-horizontal": 63802, - "arrow-split-vertical": 63803, - "arrow-top-left": 61531, - "arrow-top-left-bold-outline": 63938, - "arrow-top-left-thick": 63939, - "arrow-top-right": 61532, - "arrow-top-right-bold-outline": 63940, - "arrow-top-right-thick": 63941, - "arrow-up": 61533, - "arrow-up-bold": 63286, - "arrow-up-bold-box": 63287, - "arrow-up-bold-box-outline": 63288, - "arrow-up-bold-circle": 61535, - "arrow-up-bold-circle-outline": 61536, - "arrow-up-bold-hexagon-outline": 61537, - "arrow-up-bold-outline": 63942, - "arrow-up-box": 63170, - "arrow-up-down-bold-outline": 63943, - "arrow-up-drop-circle": 61538, - "arrow-up-drop-circle-outline": 61539, - "arrow-up-thick": 61534, - "artist": 63490, - "assistant": 61540, - "asterisk": 63171, - "at": 61541, - "atlassian": 63491, - "atom": 63335, - "attachment": 61542, - "audio-video": 63804, - "audiobook": 61543, - "augmented-reality": 63567, - "auto-fix": 61544, - "auto-upload": 61545, - "autorenew": 61546, - "av-timer": 61547, - "axe": 63687, - "azure": 63492, - "baby": 61548, - "baby-buggy": 63118, - "backburger": 61549, - "backspace": 61550, - "backup-restore": 61551, - "badminton": 63568, - "ballot": 63944, - "ballot-outline": 63945, - "bandcamp": 63092, - "bank": 61552, - "barcode": 61553, - "barcode-scan": 61554, - "barley": 61555, - "barrel": 61556, - "baseball": 63569, - "baseball-bat": 63570, - "basecamp": 61557, - "basket": 61558, - "basket-fill": 61559, - "basket-unfill": 61560, - "basketball": 63493, - "battery": 61561, - "battery-10": 61562, - "battery-10-bluetooth": 63805, - "battery-20": 61563, - "battery-20-bluetooth": 63806, - "battery-30": 61564, - "battery-30-bluetooth": 63807, - "battery-40": 61565, - "battery-40-bluetooth": 63808, - "battery-50": 61566, - "battery-50-bluetooth": 63809, - "battery-60": 61567, - "battery-60-bluetooth": 63810, - "battery-70": 61568, - "battery-70-bluetooth": 63811, - "battery-80": 61569, - "battery-80-bluetooth": 63812, - "battery-90": 61570, - "battery-90-bluetooth": 63813, - "battery-alert": 61571, - "battery-alert-bluetooth": 63814, - "battery-bluetooth": 63815, - "battery-bluetooth-variant": 63816, - "battery-charging": 61572, - "battery-charging-10": 63643, - "battery-charging-100": 61573, - "battery-charging-20": 61574, - "battery-charging-30": 61575, - "battery-charging-40": 61576, - "battery-charging-50": 63644, - "battery-charging-60": 61577, - "battery-charging-70": 63645, - "battery-charging-80": 61578, - "battery-charging-90": 61579, - "battery-charging-outline": 63646, - "battery-charging-wireless": 63494, - "battery-charging-wireless-10": 63495, - "battery-charging-wireless-20": 63496, - "battery-charging-wireless-30": 63497, - "battery-charging-wireless-40": 63498, - "battery-charging-wireless-50": 63499, - "battery-charging-wireless-60": 63500, - "battery-charging-wireless-70": 63501, - "battery-charging-wireless-80": 63502, - "battery-charging-wireless-90": 63503, - "battery-charging-wireless-alert": 63504, - "battery-charging-wireless-outline": 63505, - "battery-minus": 61580, - "battery-negative": 61581, - "battery-outline": 61582, - "battery-plus": 61583, - "battery-positive": 61584, - "battery-unknown": 61585, - "battery-unknown-bluetooth": 63817, - "beach": 61586, - "beaker": 63119, - "beats": 61591, - "bed-empty": 63647, - "beer": 61592, - "behance": 61593, - "bell": 61594, - "bell-off": 61595, - "bell-outline": 61596, - "bell-plus": 61597, - "bell-ring": 61598, - "bell-ring-outline": 61599, - "bell-sleep": 61600, - "beta": 61601, - "betamax": 63946, - "bible": 61602, - "bike": 61603, - "bing": 61604, - "binoculars": 61605, - "bio": 61606, - "biohazard": 61607, - "bitbucket": 61608, - "bitcoin": 63506, - "black-mesa": 61609, - "blackberry": 61610, - "blender": 61611, - "blinds": 61612, - "block-helper": 61613, - "blogger": 61614, - "bluetooth": 61615, - "bluetooth-audio": 61616, - "bluetooth-connect": 61617, - "bluetooth-off": 61618, - "bluetooth-settings": 61619, - "bluetooth-transfer": 61620, - "blur": 61621, - "blur-linear": 61622, - "blur-off": 61623, - "blur-radial": 61624, - "bomb": 63120, - "bomb-off": 63172, - "bone": 61625, - "book": 61626, - "book-minus": 62937, - "book-multiple": 61627, - "book-multiple-variant": 61628, - "book-open": 61629, - "book-open-page-variant": 62938, - "book-open-variant": 61630, - "book-plus": 62939, - "book-secure": 63385, - "book-unsecure": 63386, - "book-variant": 61631, - "bookmark": 61632, - "bookmark-check": 61633, - "bookmark-minus": 63947, - "bookmark-minus-outline": 63948, - "bookmark-music": 61634, - "bookmark-off": 63949, - "bookmark-off-outline": 63950, - "bookmark-outline": 61635, - "bookmark-plus": 61637, - "bookmark-plus-outline": 61636, - "bookmark-remove": 61638, - "boombox": 62940, - "bootstrap": 63173, - "border-all": 61639, - "border-all-variant": 63648, - "border-bottom": 61640, - "border-bottom-variant": 63649, - "border-color": 61641, - "border-horizontal": 61642, - "border-inside": 61643, - "border-left": 61644, - "border-left-variant": 63650, - "border-none": 61645, - "border-none-variant": 63651, - "border-outside": 61646, - "border-right": 61647, - "border-right-variant": 63652, - "border-style": 61648, - "border-top": 61649, - "border-top-variant": 63653, - "border-vertical": 61650, - "bottle-wine": 63571, - "bow-tie": 63095, - "bowl": 62999, - "bowling": 61651, - "box": 61652, - "box-cutter": 61653, - "box-shadow": 63031, - "braille": 63951, - "brain": 63952, - "bridge": 63000, - "briefcase": 61654, - "briefcase-check": 61655, - "briefcase-download": 61656, - "briefcase-outline": 63507, - "briefcase-upload": 61657, - "brightness-1": 61658, - "brightness-2": 61659, - "brightness-3": 61660, - "brightness-4": 61661, - "brightness-5": 61662, - "brightness-6": 61663, - "brightness-7": 61664, - "brightness-auto": 61665, - "broom": 61666, - "brush": 61667, - "buddhism": 63818, - "buffer": 63001, - "bug": 61668, - "bulletin-board": 61669, - "bullhorn": 61670, - "bullseye": 62941, - "bullseye-arrow": 63688, - "bus": 61671, - "bus-articulated-end": 63387, - "bus-articulated-front": 63388, - "bus-clock": 63689, - "bus-double-decker": 63389, - "bus-school": 63390, - "bus-side": 63391, - "cached": 61672, - "cake": 61673, - "cake-layered": 61674, - "cake-variant": 61675, - "calculator": 61676, - "calendar": 61677, - "calendar-blank": 61678, - "calendar-check": 61679, - "calendar-clock": 61680, - "calendar-edit": 63654, - "calendar-heart": 63953, - "calendar-multiple": 61681, - "calendar-multiple-check": 61682, - "calendar-plus": 61683, - "calendar-question": 63121, - "calendar-range": 63096, - "calendar-remove": 61684, - "calendar-search": 63819, - "calendar-star": 63954, - "calendar-text": 61685, - "calendar-today": 61686, - "call-made": 61687, - "call-merge": 61688, - "call-missed": 61689, - "call-received": 61690, - "call-split": 61691, - "camcorder": 61692, - "camcorder-box": 61693, - "camcorder-box-off": 61694, - "camcorder-off": 61695, - "camera": 61696, - "camera-account": 63690, - "camera-burst": 63122, - "camera-enhance": 61697, - "camera-front": 61698, - "camera-front-variant": 61699, - "camera-gopro": 63392, - "camera-image": 63691, - "camera-iris": 61700, - "camera-metering-center": 63393, - "camera-metering-matrix": 63394, - "camera-metering-partial": 63395, - "camera-metering-spot": 63396, - "camera-off": 62943, - "camera-party-mode": 61701, - "camera-rear": 61702, - "camera-rear-variant": 61703, - "camera-switch": 61704, - "camera-timer": 61705, - "cancel": 63289, - "candle": 62946, - "candycane": 61706, - "cannabis": 63397, - "car": 61707, - "car-battery": 61708, - "car-connected": 61709, - "car-convertible": 63398, - "car-estate": 63399, - "car-hatchback": 63400, - "car-limousine": 63692, - "car-pickup": 63401, - "car-side": 63402, - "car-sports": 63403, - "car-wash": 61710, - "caravan": 63404, - "cards": 63032, - "cards-club": 63693, - "cards-diamond": 63694, - "cards-heart": 63695, - "cards-outline": 63033, - "cards-playing-outline": 63034, - "cards-spade": 63696, - "cards-variant": 63174, - "carrot": 61711, - "cart": 61712, - "cart-off": 63083, - "cart-outline": 61713, - "cart-plus": 61714, - "case-sensitive-alt": 61715, - "cash": 61716, - "cash-100": 61717, - "cash-multiple": 61718, - "cash-usd": 61719, - "cassette": 63955, - "cast": 61720, - "cast-connected": 61721, - "cast-off": 63369, - "castle": 61722, - "cat": 61723, - "cctv": 63405, - "ceiling-light": 63336, - "cellphone": 61724, - "cellphone-android": 61725, - "cellphone-arrow-down": 63956, - "cellphone-basic": 61726, - "cellphone-dock": 61727, - "cellphone-erase": 63820, - "cellphone-iphone": 61728, - "cellphone-key": 63821, - "cellphone-link": 61729, - "cellphone-link-off": 61730, - "cellphone-lock": 63822, - "cellphone-message": 63698, - "cellphone-off": 63823, - "cellphone-settings": 61731, - "cellphone-settings-variant": 63824, - "cellphone-sound": 63825, - "cellphone-text": 63697, - "cellphone-wireless": 63508, - "certificate": 61732, - "chair-school": 61733, - "chart-arc": 61734, - "chart-areaspline": 61735, - "chart-bar": 61736, - "chart-bar-stacked": 63337, - "chart-bubble": 62947, - "chart-donut": 63406, - "chart-donut-variant": 63407, - "chart-gantt": 63084, - "chart-histogram": 61737, - "chart-line": 61738, - "chart-line-stacked": 63338, - "chart-line-variant": 63408, - "chart-multiline": 63699, - "chart-pie": 61739, - "chart-scatterplot-hexbin": 63085, - "chart-timeline": 63086, - "check": 61740, - "check-all": 61741, - "check-circle": 62944, - "check-circle-outline": 62945, - "check-outline": 63572, - "checkbox-blank": 61742, - "checkbox-blank-circle": 61743, - "checkbox-blank-circle-outline": 61744, - "checkbox-blank-outline": 61745, - "checkbox-intermediate": 63573, - "checkbox-marked": 61746, - "checkbox-marked-circle": 61747, - "checkbox-marked-circle-outline": 61748, - "checkbox-marked-outline": 61749, - "checkbox-multiple-blank": 61750, - "checkbox-multiple-blank-circle": 63035, - "checkbox-multiple-blank-circle-outline": 63036, - "checkbox-multiple-blank-outline": 61751, - "checkbox-multiple-marked": 61752, - "checkbox-multiple-marked-circle": 63037, - "checkbox-multiple-marked-circle-outline": 63038, - "checkbox-multiple-marked-outline": 61753, - "checkerboard": 61754, - "chemical-weapon": 61755, - "chess-bishop": 63579, - "chess-king": 63574, - "chess-knight": 63575, - "chess-pawn": 63576, - "chess-queen": 63577, - "chess-rook": 63578, - "chevron-double-down": 61756, - "chevron-double-left": 61757, - "chevron-double-right": 61758, - "chevron-double-up": 61759, - "chevron-down": 61760, - "chevron-down-box": 63957, - "chevron-down-box-outline": 63958, - "chevron-left": 61761, - "chevron-left-box": 63959, - "chevron-left-box-outline": 63960, - "chevron-right": 61762, - "chevron-right-box": 63961, - "chevron-right-box-outline": 63962, - "chevron-up": 61763, - "chevron-up-box": 63963, - "chevron-up-box-outline": 63964, - "chili-hot": 63409, - "chili-medium": 63410, - "chili-mild": 63411, - "chip": 63002, - "christianity": 63826, - "church": 61764, - "circle": 63332, - "circle-edit-outline": 63700, - "circle-medium": 63965, - "circle-outline": 63333, - "circle-small": 63966, - "cisco-webex": 61765, - "city": 61766, - "clipboard": 61767, - "clipboard-account": 61768, - "clipboard-alert": 61769, - "clipboard-arrow-down": 61770, - "clipboard-arrow-left": 61771, - "clipboard-check": 61772, - "clipboard-check-outline": 63655, - "clipboard-flow": 63175, - "clipboard-outline": 61773, - "clipboard-plus": 63312, - "clipboard-pulse": 63580, - "clipboard-pulse-outline": 63581, - "clipboard-text": 61774, - "clippy": 61775, - "clock": 63827, - "clock-alert": 63828, - "clock-alert-outline": 62926, - "clock-end": 61777, - "clock-fast": 61778, - "clock-in": 61779, - "clock-out": 61780, - "clock-outline": 61776, - "clock-start": 61781, - "close": 61782, - "close-box": 61783, - "close-box-outline": 61784, - "close-circle": 61785, - "close-circle-outline": 61786, - "close-network": 61787, - "close-octagon": 61788, - "close-octagon-outline": 61789, - "close-outline": 63176, - "closed-caption": 61790, - "cloud": 61791, - "cloud-alert": 63967, - "cloud-braces": 63412, - "cloud-check": 61792, - "cloud-circle": 61793, - "cloud-download": 61794, - "cloud-off-outline": 61796, - "cloud-outline": 61795, - "cloud-print": 61797, - "cloud-print-outline": 61798, - "cloud-search": 63829, - "cloud-search-outline": 63830, - "cloud-sync": 63039, - "cloud-tags": 63413, - "cloud-upload": 61799, - "clover": 63509, - "code-array": 61800, - "code-braces": 61801, - "code-brackets": 61802, - "code-equal": 61803, - "code-greater-than": 61804, - "code-greater-than-or-equal": 61805, - "code-less-than": 61806, - "code-less-than-or-equal": 61807, - "code-not-equal": 61808, - "code-not-equal-variant": 61809, - "code-parentheses": 61810, - "code-string": 61811, - "code-tags": 61812, - "code-tags-check": 63123, - "codepen": 61813, - "coffee": 61814, - "coffee-outline": 63177, - "coffee-to-go": 61815, - "cogs": 63701, - "coin": 61816, - "coins": 63124, - "collage": 63040, - "color-helper": 61817, - "comment": 61818, - "comment-account": 61819, - "comment-account-outline": 61820, - "comment-alert": 61821, - "comment-alert-outline": 61822, - "comment-arrow-left": 63968, - "comment-arrow-left-outline": 63969, - "comment-arrow-right": 63970, - "comment-arrow-right-outline": 63971, - "comment-check": 61823, - "comment-check-outline": 61824, - "comment-multiple": 63582, - "comment-multiple-outline": 61825, - "comment-outline": 61826, - "comment-plus": 63972, - "comment-plus-outline": 61827, - "comment-processing": 61828, - "comment-processing-outline": 61829, - "comment-question": 63510, - "comment-question-outline": 61830, - "comment-remove": 62942, - "comment-remove-outline": 61831, - "comment-text": 61832, - "comment-text-multiple": 63583, - "comment-text-multiple-outline": 63584, - "comment-text-outline": 61833, - "compare": 61834, - "compass": 61835, - "compass-outline": 61836, - "console": 61837, - "console-line": 63414, - "console-network": 63656, - "contact-mail": 61838, - "contacts": 63178, - "content-copy": 61839, - "content-cut": 61840, - "content-duplicate": 61841, - "content-paste": 61842, - "content-save": 61843, - "content-save-all": 61844, - "content-save-outline": 63511, - "content-save-settings": 63003, - "contrast": 61845, - "contrast-box": 61846, - "contrast-circle": 61847, - "cookie": 61848, - "copyright": 62950, - "cordova": 63831, - "corn": 63415, - "counter": 61849, - "cow": 61850, - "crane": 63585, - "creation": 61897, - "credit-card": 61851, - "credit-card-multiple": 61852, - "credit-card-off": 62948, - "credit-card-plus": 63093, - "credit-card-scan": 61853, - "credit-card-settings": 63702, - "crop": 61854, - "crop-free": 61855, - "crop-landscape": 61856, - "crop-portrait": 61857, - "crop-rotate": 63125, - "crop-square": 61858, - "crosshairs": 61859, - "crosshairs-gps": 61860, - "crown": 61861, - "cryengine": 63832, - "cube": 61862, - "cube-outline": 61863, - "cube-send": 61864, - "cube-unfolded": 61865, - "cup": 61866, - "cup-off": 62949, - "cup-water": 61867, - "cupcake": 63833, - "curling": 63586, - "currency-bdt": 63587, - "currency-btc": 61868, - "currency-chf": 63416, - "currency-cny": 63417, - "currency-eth": 63418, - "currency-eur": 61869, - "currency-gbp": 61870, - "currency-inr": 61871, - "currency-jpy": 63419, - "currency-krw": 63420, - "currency-kzt": 63588, - "currency-ngn": 61872, - "currency-php": 63973, - "currency-rub": 61873, - "currency-sign": 63421, - "currency-try": 61874, - "currency-twd": 63422, - "currency-usd": 61875, - "currency-usd-off": 63097, - "current-ac": 63834, - "current-dc": 63835, - "cursor-default": 61876, - "cursor-default-outline": 61877, - "cursor-move": 61878, - "cursor-pointer": 61879, - "cursor-text": 62951, - "database": 61880, - "database-export": 63837, - "database-import": 63836, - "database-minus": 61881, - "database-plus": 61882, - "database-search": 63589, - "death-star": 63703, - "death-star-variant": 63704, - "debian": 63705, - "debug-step-into": 61883, - "debug-step-out": 61884, - "debug-step-over": 61885, - "decagram": 63339, - "decagram-outline": 63340, - "decimal-decrease": 61886, - "decimal-increase": 61887, - "delete": 61888, - "delete-circle": 63106, - "delete-empty": 63179, - "delete-forever": 62952, - "delete-outline": 63974, - "delete-restore": 63512, - "delete-sweep": 62953, - "delete-variant": 61889, - "delta": 61890, - "desk-lamp": 63838, - "deskphone": 61891, - "desktop-classic": 63423, - "desktop-mac": 61892, - "desktop-mac-dashboard": 63975, - "desktop-tower": 61893, - "details": 61894, - "developer-board": 63126, - "deviantart": 61895, - "dialpad": 63004, - "diamond": 61896, - "dice-1": 61898, - "dice-2": 61899, - "dice-3": 61900, - "dice-4": 61901, - "dice-5": 61902, - "dice-6": 61903, - "dice-d10": 63342, - "dice-d12": 63590, - "dice-d20": 62954, - "dice-d4": 62955, - "dice-d6": 62956, - "dice-d8": 62957, - "dice-multiple": 63341, - "dictionary": 63005, - "dip-switch": 63424, - "directions": 61904, - "directions-fork": 63041, - "disc": 62958, - "disc-alert": 61905, - "disc-player": 63839, - "discord": 63087, - "disqus": 61906, - "disqus-outline": 61907, - "division": 61908, - "division-box": 61909, - "dna": 63107, - "dns": 61910, - "do-not-disturb": 63127, - "do-not-disturb-off": 63128, - "docker": 63591, - "dolby": 63154, - "domain": 61911, - "donkey": 63425, - "door": 63513, - "door-closed": 63514, - "door-open": 63515, - "doorbell-video": 63592, - "dots-horizontal": 61912, - "dots-horizontal-circle": 63426, - "dots-vertical": 61913, - "dots-vertical-circle": 63427, - "douban": 63129, - "download": 61914, - "download-multiple": 63976, - "download-network": 63219, - "drag": 61915, - "drag-horizontal": 61916, - "drag-vertical": 61917, - "drawing": 61918, - "drawing-box": 61919, - "dribbble": 61920, - "dribbble-box": 61921, - "drone": 61922, - "dropbox": 61923, - "drupal": 61924, - "duck": 61925, - "dumbbell": 61926, - "ear-hearing": 63428, - "earth": 61927, - "earth-box": 63180, - "earth-box-off": 63181, - "earth-off": 61928, - "edge": 61929, - "eight-track": 63977, - "eject": 61930, - "elephant": 63429, - "elevation-decline": 61931, - "elevation-rise": 61932, - "elevator": 61933, - "email": 61934, - "email-alert": 63182, - "email-open": 61935, - "email-open-outline": 62959, - "email-outline": 61936, - "email-plus": 63978, - "email-plus-outline": 63979, - "email-search": 63840, - "email-search-outline": 63841, - "email-secure": 61937, - "email-variant": 62960, - "emby": 63155, - "emoticon": 61938, - "emoticon-cool": 61939, - "emoticon-dead": 63130, - "emoticon-devil": 61940, - "emoticon-excited": 63131, - "emoticon-happy": 61941, - "emoticon-neutral": 61942, - "emoticon-poop": 61943, - "emoticon-sad": 61944, - "emoticon-tongue": 61945, - "engine": 61946, - "engine-outline": 61947, - "equal": 61948, - "equal-box": 61949, - "eraser": 61950, - "eraser-variant": 63042, - "escalator": 61951, - "ethereum": 63593, - "ethernet": 61952, - "ethernet-cable": 61953, - "ethernet-cable-off": 61954, - "etsy": 61955, - "ev-station": 62961, - "eventbrite": 63430, - "evernote": 61956, - "exclamation": 61957, - "exit-to-app": 61958, - "exponent": 63842, - "exponent-box": 63843, - "export": 61959, - "eye": 61960, - "eye-off": 61961, - "eye-off-outline": 63184, - "eye-outline": 63183, - "eye-plus": 63594, - "eye-plus-outline": 63595, - "eye-settings": 63596, - "eye-settings-outline": 63597, - "eyedropper": 61962, - "eyedropper-variant": 61963, - "face": 63043, - "face-profile": 63044, - "facebook": 61964, - "facebook-box": 61965, - "facebook-messenger": 61966, - "factory": 61967, - "fan": 61968, - "fan-off": 63516, - "fast-forward": 61969, - "fast-forward-outline": 63185, - "fax": 61970, - "feather": 63186, - "fedora": 63706, - "ferry": 61971, - "file": 61972, - "file-account": 63290, - "file-chart": 61973, - "file-check": 61974, - "file-cloud": 61975, - "file-compare": 63657, - "file-delimited": 61976, - "file-document": 61977, - "file-document-box": 61978, - "file-document-box-outline": 63980, - "file-document-outline": 63981, - "file-download": 63844, - "file-download-outline": 63845, - "file-excel": 61979, - "file-excel-box": 61980, - "file-export": 61981, - "file-find": 61982, - "file-hidden": 62995, - "file-image": 61983, - "file-import": 61984, - "file-lock": 61985, - "file-multiple": 61986, - "file-music": 61987, - "file-outline": 61988, - "file-pdf": 61989, - "file-pdf-box": 61990, - "file-percent": 63517, - "file-plus": 63313, - "file-powerpoint": 61991, - "file-powerpoint-box": 61992, - "file-presentation-box": 61993, - "file-question": 63598, - "file-restore": 63088, - "file-send": 61994, - "file-tree": 63045, - "file-undo": 63707, - "file-video": 61995, - "file-word": 61996, - "file-word-box": 61997, - "file-xml": 61998, - "film": 61999, - "filmstrip": 62000, - "filmstrip-off": 62001, - "filter": 62002, - "filter-outline": 62003, - "filter-remove": 62004, - "filter-remove-outline": 62005, - "filter-variant": 62006, - "finance": 63518, - "find-replace": 63187, - "fingerprint": 62007, - "fire": 62008, - "fire-truck": 63658, - "firebase": 63846, - "firefox": 62009, - "fish": 62010, - "flag": 62011, - "flag-checkered": 62012, - "flag-outline": 62013, - "flag-triangle": 62015, - "flag-variant": 62016, - "flag-variant-outline": 62014, - "flash": 62017, - "flash-auto": 62018, - "flash-circle": 63519, - "flash-off": 62019, - "flash-outline": 63188, - "flash-red-eye": 63098, - "flashlight": 62020, - "flashlight-off": 62021, - "flask": 61587, - "flask-empty": 61588, - "flask-empty-outline": 61589, - "flask-outline": 61590, - "flattr": 62022, - "flip-to-back": 62023, - "flip-to-front": 62024, - "floor-lamp": 63708, - "floor-plan": 63520, - "floppy": 62025, - "floppy-variant": 63982, - "flower": 62026, - "flower-outline": 63983, - "flower-tulip": 63984, - "flower-tulip-outline": 63985, - "folder": 62027, - "folder-account": 62028, - "folder-download": 62029, - "folder-edit": 63709, - "folder-google-drive": 62030, - "folder-image": 62031, - "folder-key": 63659, - "folder-key-network": 63660, - "folder-lock": 62032, - "folder-lock-open": 62033, - "folder-move": 62034, - "folder-multiple": 62035, - "folder-multiple-image": 62036, - "folder-multiple-outline": 62037, - "folder-network": 63599, - "folder-open": 63343, - "folder-outline": 62038, - "folder-plus": 62039, - "folder-remove": 62040, - "folder-search": 63847, - "folder-search-outline": 63848, - "folder-star": 63132, - "folder-upload": 62041, - "font-awesome": 61498, - "food": 62042, - "food-apple": 62043, - "food-croissant": 63431, - "food-fork-drink": 62962, - "food-off": 62963, - "food-variant": 62044, - "football": 62045, - "football-australian": 62046, - "football-helmet": 62047, - "forklift": 63432, - "format-align-bottom": 63314, - "format-align-center": 62048, - "format-align-justify": 62049, - "format-align-left": 62050, - "format-align-middle": 63315, - "format-align-right": 62051, - "format-align-top": 63316, - "format-annotation-plus": 63046, - "format-bold": 62052, - "format-clear": 62053, - "format-color-fill": 62054, - "format-color-text": 63133, - "format-columns": 63710, - "format-float-center": 62055, - "format-float-left": 62056, - "format-float-none": 62057, - "format-float-right": 62058, - "format-font": 63189, - "format-font-size-decrease": 63986, - "format-font-size-increase": 63987, - "format-header-1": 62059, - "format-header-2": 62060, - "format-header-3": 62061, - "format-header-4": 62062, - "format-header-5": 62063, - "format-header-6": 62064, - "format-header-decrease": 62065, - "format-header-equal": 62066, - "format-header-increase": 62067, - "format-header-pound": 62068, - "format-horizontal-align-center": 63006, - "format-horizontal-align-left": 63007, - "format-horizontal-align-right": 63008, - "format-indent-decrease": 62069, - "format-indent-increase": 62070, - "format-italic": 62071, - "format-line-spacing": 62072, - "format-line-style": 62920, - "format-line-weight": 62921, - "format-list-bulleted": 62073, - "format-list-bulleted-type": 62074, - "format-list-checkbox": 63849, - "format-list-checks": 63317, - "format-list-numbers": 62075, - "format-page-break": 63190, - "format-paint": 62076, - "format-paragraph": 62077, - "format-pilcrow": 63191, - "format-quote-close": 62078, - "format-quote-open": 63318, - "format-rotate-90": 63145, - "format-section": 63134, - "format-size": 62079, - "format-strikethrough": 62080, - "format-strikethrough-variant": 62081, - "format-subscript": 62082, - "format-superscript": 62083, - "format-text": 62084, - "format-textdirection-l-to-r": 62085, - "format-textdirection-r-to-l": 62086, - "format-title": 62964, - "format-underline": 62087, - "format-vertical-align-bottom": 63009, - "format-vertical-align-center": 63010, - "format-vertical-align-top": 63011, - "format-wrap-inline": 62088, - "format-wrap-square": 62089, - "format-wrap-tight": 62090, - "format-wrap-top-bottom": 62091, - "forum": 62092, - "forum-outline": 63521, - "forward": 62093, - "fountain": 63850, - "foursquare": 62094, - "freebsd": 63711, - "fridge": 62095, - "fridge-filled": 62096, - "fridge-filled-bottom": 62097, - "fridge-filled-top": 62098, - "fuel": 63433, - "fullscreen": 62099, - "fullscreen-exit": 62100, - "function": 62101, - "function-variant": 63600, - "gamepad": 62102, - "gamepad-variant": 62103, - "garage": 63192, - "garage-alert": 63601, - "garage-open": 63193, - "gas-cylinder": 63047, - "gas-station": 62104, - "gate": 62105, - "gate-and": 63712, - "gate-nand": 63713, - "gate-nor": 63714, - "gate-not": 63715, - "gate-or": 63716, - "gate-xnor": 63717, - "gate-xor": 63718, - "gauge": 62106, - "gauge-empty": 63602, - "gauge-full": 63603, - "gauge-low": 63604, - "gavel": 62107, - "gender-female": 62108, - "gender-male": 62109, - "gender-male-female": 62110, - "gender-transgender": 62111, - "gentoo": 63719, - "gesture": 63434, - "gesture-double-tap": 63291, - "gesture-swipe-down": 63292, - "gesture-swipe-left": 63293, - "gesture-swipe-right": 63294, - "gesture-swipe-up": 63295, - "gesture-tap": 63296, - "gesture-two-double-tap": 63297, - "gesture-two-tap": 63298, - "ghost": 62112, - "ghost-off": 63988, - "gift": 62113, - "git": 62114, - "github-box": 62115, - "github-circle": 62116, - "github-face": 63194, - "glass-cocktail": 62294, - "glass-flute": 62117, - "glass-mug": 62118, - "glass-stange": 62119, - "glass-tulip": 62120, - "glass-wine": 63605, - "glassdoor": 62121, - "glasses": 62122, - "globe-model": 63720, - "gmail": 62123, - "gnome": 62124, - "golf": 63522, - "gondola": 63109, - "google": 62125, - "google-allo": 63489, - "google-analytics": 63435, - "google-assistant": 63436, - "google-cardboard": 62126, - "google-chrome": 62127, - "google-circles": 62128, - "google-circles-communities": 62129, - "google-circles-extended": 62130, - "google-circles-group": 62131, - "google-controller": 62132, - "google-controller-off": 62133, - "google-drive": 62134, - "google-earth": 62135, - "google-fit": 63851, - "google-glass": 62136, - "google-hangouts": 62153, - "google-home": 63523, - "google-keep": 63195, - "google-lens": 63989, - "google-maps": 62965, - "google-nearby": 62137, - "google-pages": 62138, - "google-photos": 63196, - "google-physical-web": 62139, - "google-play": 62140, - "google-plus": 62141, - "google-plus-box": 62142, - "google-spreadsheet": 63990, - "google-translate": 62143, - "google-wallet": 62144, - "gpu": 63661, - "gradient": 63135, - "graphql": 63606, - "grease-pencil": 63048, - "greater-than": 63852, - "greater-than-or-equal": 63853, - "grid": 62145, - "grid-large": 63319, - "grid-off": 62146, - "group": 62147, - "guitar-acoustic": 63344, - "guitar-electric": 62148, - "guitar-pick": 62149, - "guitar-pick-outline": 62150, - "guy-fawkes-mask": 63524, - "hackernews": 63012, - "hamburger": 63108, - "hammer": 63721, - "hand-pointing-right": 62151, - "hanger": 62152, - "hard-hat": 63854, - "harddisk": 62154, - "headphones": 62155, - "headphones-bluetooth": 63855, - "headphones-box": 62156, - "headphones-off": 63437, - "headphones-settings": 62157, - "headset": 62158, - "headset-dock": 62159, - "headset-off": 62160, - "heart": 62161, - "heart-box": 62162, - "heart-box-outline": 62163, - "heart-broken": 62164, - "heart-circle": 63856, - "heart-circle-outline": 63857, - "heart-half": 63198, - "heart-half-full": 63197, - "heart-half-outline": 63199, - "heart-off": 63320, - "heart-outline": 62165, - "heart-pulse": 62966, - "help": 62166, - "help-box": 63370, - "help-circle": 62167, - "help-circle-outline": 63013, - "help-network": 63220, - "hexagon": 62168, - "hexagon-multiple": 63200, - "hexagon-outline": 62169, - "high-definition": 63438, - "high-definition-box": 63607, - "highway": 62967, - "hinduism": 63858, - "history": 62170, - "hockey-puck": 63608, - "hockey-sticks": 63609, - "hololens": 62171, - "home": 62172, - "home-account": 63525, - "home-alert": 63610, - "home-assistant": 63439, - "home-automation": 63440, - "home-circle": 63441, - "home-currency-usd": 63662, - "home-heart": 63526, - "home-lock": 63722, - "home-lock-open": 63723, - "home-map-marker": 62968, - "home-minus": 63859, - "home-modern": 62173, - "home-outline": 63136, - "home-plus": 63860, - "home-variant": 62174, - "hook": 63201, - "hook-off": 63202, - "hops": 62175, - "hospital": 62176, - "hospital-building": 62177, - "hospital-marker": 62178, - "hot-tub": 63527, - "hotel": 62179, - "houzz": 62180, - "houzz-box": 62181, - "hulu": 63528, - "human": 62182, - "human-child": 62183, - "human-female": 63049, - "human-greeting": 63050, - "human-handsdown": 63051, - "human-handsup": 63052, - "human-male": 63053, - "human-male-female": 62184, - "human-pregnant": 62927, - "humble-bundle": 63299, - "ice-cream": 63529, - "image": 62185, - "image-album": 62186, - "image-area": 62187, - "image-area-close": 62188, - "image-broken": 62189, - "image-broken-variant": 62190, - "image-filter": 62191, - "image-filter-black-white": 62192, - "image-filter-center-focus": 62193, - "image-filter-center-focus-weak": 62194, - "image-filter-drama": 62195, - "image-filter-frames": 62196, - "image-filter-hdr": 62197, - "image-filter-none": 62198, - "image-filter-tilt-shift": 62199, - "image-filter-vintage": 62200, - "image-move": 63991, - "image-multiple": 62201, - "image-off": 63530, - "image-outline": 63861, - "image-plus": 63611, - "image-search": 63862, - "image-search-outline": 63863, - "import": 62202, - "inbox": 63110, - "inbox-arrow-down": 62203, - "inbox-arrow-up": 62417, - "inbox-multiple": 63663, - "incognito": 62969, - "infinity": 63203, - "information": 62204, - "information-outline": 62205, - "information-variant": 63054, - "instagram": 62206, - "instapaper": 62207, - "internet-explorer": 62208, - "invert-colors": 62209, - "islam": 63864, - "itunes": 63094, - "jeepney": 62210, - "jira": 62211, - "jquery": 63612, - "jsfiddle": 62212, - "json": 63014, - "judaism": 63865, - "karate": 63531, - "keg": 62213, - "kettle": 62970, - "key": 62214, - "key-change": 62215, - "key-minus": 62216, - "key-plus": 62217, - "key-remove": 62218, - "key-variant": 62219, - "keyboard": 62220, - "keyboard-backspace": 62221, - "keyboard-caps": 62222, - "keyboard-close": 62223, - "keyboard-off": 62224, - "keyboard-outline": 63866, - "keyboard-return": 62225, - "keyboard-settings": 63992, - "keyboard-settings-outline": 63993, - "keyboard-tab": 62226, - "keyboard-variant": 62227, - "kickstarter": 63300, - "knife": 63994, - "knife-military": 63995, - "kodi": 62228, - "label": 62229, - "label-outline": 62230, - "ladybug": 63532, - "lambda": 63015, - "lamp": 63156, - "lan": 62231, - "lan-connect": 62232, - "lan-disconnect": 62233, - "lan-pending": 62234, - "language-c": 63089, - "language-cpp": 63090, - "language-csharp": 62235, - "language-css3": 62236, - "language-go": 63442, - "language-html5": 62237, - "language-javascript": 62238, - "language-lua": 63664, - "language-php": 62239, - "language-python": 62240, - "language-python-text": 62241, - "language-r": 63443, - "language-swift": 63204, - "language-typescript": 63205, - "laptop": 62242, - "laptop-chromebook": 62243, - "laptop-mac": 62244, - "laptop-off": 63206, - "laptop-windows": 62245, - "lastfm": 62246, - "lastpass": 62534, - "launch": 62247, - "lava-lamp": 63444, - "layers": 62248, - "layers-off": 62249, - "layers-off-outline": 63996, - "layers-outline": 63997, - "lead-pencil": 63055, - "leaf": 62250, - "led-off": 62251, - "led-on": 62252, - "led-outline": 62253, - "led-strip": 63445, - "led-variant-off": 62254, - "led-variant-on": 62255, - "led-variant-outline": 62256, - "less-than": 63867, - "less-than-or-equal": 63868, - "library": 62257, - "library-books": 62258, - "library-music": 62259, - "library-plus": 62260, - "lifebuoy": 63613, - "light-switch": 63869, - "lightbulb": 62261, - "lightbulb-on": 63207, - "lightbulb-on-outline": 63208, - "lightbulb-outline": 62262, - "lighthouse": 63998, - "lighthouse-on": 63999, - "link": 62263, - "link-off": 62264, - "link-variant": 62265, - "link-variant-off": 62266, - "linkedin": 62267, - "linkedin-box": 62268, - "linux": 62269, - "linux-mint": 63724, - "loading": 63345, - "lock": 62270, - "lock-alert": 63725, - "lock-clock": 63870, - "lock-open": 62271, - "lock-open-outline": 62272, - "lock-outline": 62273, - "lock-pattern": 63209, - "lock-plus": 62971, - "lock-question": 63726, - "lock-reset": 63346, - "lock-smart": 63665, - "locker": 63446, - "locker-multiple": 63447, - "login": 62274, - "login-variant": 62972, - "logout": 62275, - "logout-variant": 62973, - "looks": 62276, - "loop": 63210, - "loupe": 62277, - "lumx": 62278, - "magnet": 62279, - "magnet-on": 62280, - "magnify": 62281, - "magnify-close": 63871, - "magnify-minus": 62282, - "magnify-minus-outline": 63211, - "magnify-plus": 62283, - "magnify-plus-outline": 63212, - "mail-ru": 62284, - "mailbox": 63213, - "map": 62285, - "map-legend": 64000, - "map-marker": 62286, - "map-marker-circle": 62287, - "map-marker-distance": 63727, - "map-marker-minus": 63056, - "map-marker-multiple": 62288, - "map-marker-off": 62289, - "map-marker-outline": 63448, - "map-marker-plus": 63057, - "map-marker-radius": 62290, - "map-minus": 63872, - "map-outline": 63873, - "map-plus": 63874, - "map-search": 63875, - "map-search-outline": 63876, - "margin": 62291, - "markdown": 62292, - "marker": 63058, - "marker-check": 62293, - "material-design": 63877, - "material-ui": 62295, - "math-compass": 62296, - "matrix": 63016, - "maxcdn": 62297, - "medal": 63878, - "medical-bag": 63214, - "medium": 62298, - "memory": 62299, - "menu": 62300, - "menu-down": 62301, - "menu-down-outline": 63157, - "menu-left": 62302, - "menu-left-outline": 64001, - "menu-right": 62303, - "menu-right-outline": 64002, - "menu-up": 62304, - "menu-up-outline": 63158, - "message": 62305, - "message-alert": 62306, - "message-alert-outline": 64003, - "message-bulleted": 63137, - "message-bulleted-off": 63138, - "message-draw": 62307, - "message-image": 62308, - "message-outline": 62309, - "message-plus": 63059, - "message-processing": 62310, - "message-reply": 62311, - "message-reply-text": 62312, - "message-settings": 63215, - "message-settings-variant": 63216, - "message-text": 62313, - "message-text-outline": 62314, - "message-video": 62315, - "meteor": 63017, - "metronome": 63449, - "metronome-tick": 63450, - "micro-sd": 63451, - "microphone": 62316, - "microphone-minus": 63666, - "microphone-off": 62317, - "microphone-outline": 62318, - "microphone-plus": 63667, - "microphone-settings": 62319, - "microphone-variant": 62320, - "microphone-variant-off": 62321, - "microscope": 63060, - "microsoft": 62322, - "microsoft-dynamics": 63879, - "midi": 63728, - "midi-port": 63729, - "minecraft": 62323, - "mini-sd": 64004, - "minidisc": 64005, - "minus": 62324, - "minus-box": 62325, - "minus-box-outline": 63217, - "minus-circle": 62326, - "minus-circle-outline": 62327, - "minus-network": 62328, - "mixcloud": 63018, - "mixed-reality": 63614, - "mixer": 63452, - "monitor": 62329, - "monitor-cellphone": 63880, - "monitor-cellphone-star": 63881, - "monitor-dashboard": 64006, - "monitor-multiple": 62330, - "more": 62331, - "motorbike": 62332, - "mouse": 62333, - "mouse-bluetooth": 63882, - "mouse-off": 62334, - "mouse-variant": 62335, - "mouse-variant-off": 62336, - "move-resize": 63061, - "move-resize-variant": 63062, - "movie": 62337, - "movie-roll": 63453, - "muffin": 63883, - "multiplication": 62338, - "multiplication-box": 62339, - "mushroom": 63454, - "mushroom-outline": 63455, - "music": 63321, - "music-box": 62340, - "music-box-outline": 62341, - "music-circle": 62342, - "music-note": 62343, - "music-note-bluetooth": 62974, - "music-note-bluetooth-off": 62975, - "music-note-eighth": 62344, - "music-note-half": 62345, - "music-note-off": 62346, - "music-note-quarter": 62347, - "music-note-sixteenth": 62348, - "music-note-whole": 62349, - "music-off": 63322, - "nas": 63730, - "nativescript": 63615, - "nature": 62350, - "nature-people": 62351, - "navigation": 62352, - "near-me": 62925, - "needle": 62353, - "netflix": 63301, - "network": 63218, - "network-strength-1": 63731, - "network-strength-1-alert": 63732, - "network-strength-2": 63733, - "network-strength-2-alert": 63734, - "network-strength-3": 63735, - "network-strength-3-alert": 63736, - "network-strength-4": 63737, - "network-strength-4-alert": 63738, - "network-strength-off": 63739, - "network-strength-off-outline": 63740, - "network-strength-outline": 63741, - "new-box": 62356, - "newspaper": 62357, - "nfc": 62358, - "nfc-tap": 62359, - "nfc-variant": 62360, - "ninja": 63347, - "nintendo-switch": 63456, - "nodejs": 62361, - "not-equal": 63884, - "not-equal-variant": 63885, - "note": 62362, - "note-multiple": 63159, - "note-multiple-outline": 63160, - "note-outline": 62363, - "note-plus": 62364, - "note-plus-outline": 62365, - "note-text": 62366, - "notebook": 63533, - "notification-clear-all": 62367, - "npm": 63222, - "npm-variant": 63886, - "npm-variant-outline": 63887, - "nuke": 63139, - "null": 63457, - "numeric": 62368, - "numeric-0-box": 62369, - "numeric-0-box-multiple-outline": 62370, - "numeric-0-box-outline": 62371, - "numeric-1-box": 62372, - "numeric-1-box-multiple-outline": 62373, - "numeric-1-box-outline": 62374, - "numeric-2-box": 62375, - "numeric-2-box-multiple-outline": 62376, - "numeric-2-box-outline": 62377, - "numeric-3-box": 62378, - "numeric-3-box-multiple-outline": 62379, - "numeric-3-box-outline": 62380, - "numeric-4-box": 62381, - "numeric-4-box-multiple-outline": 62382, - "numeric-4-box-outline": 62383, - "numeric-5-box": 62384, - "numeric-5-box-multiple-outline": 62385, - "numeric-5-box-outline": 62386, - "numeric-6-box": 62387, - "numeric-6-box-multiple-outline": 62388, - "numeric-6-box-outline": 62389, - "numeric-7-box": 62390, - "numeric-7-box-multiple-outline": 62391, - "numeric-7-box-outline": 62392, - "numeric-8-box": 62393, - "numeric-8-box-multiple-outline": 62394, - "numeric-8-box-outline": 62395, - "numeric-9-box": 62396, - "numeric-9-box-multiple-outline": 62397, - "numeric-9-box-outline": 62398, - "numeric-9-plus-box": 62399, - "numeric-9-plus-box-multiple-outline": 62400, - "numeric-9-plus-box-outline": 62401, - "nut": 63223, - "nutrition": 62402, - "oar": 63099, - "octagon": 62403, - "octagon-outline": 62404, - "octagram": 63224, - "octagram-outline": 63348, - "odnoklassniki": 62405, - "office": 62406, - "office-building": 63888, - "oil": 62407, - "oil-temperature": 62408, - "omega": 62409, - "onedrive": 62410, - "onenote": 63302, - "onepassword": 63616, - "opacity": 62924, - "open-in-app": 62411, - "open-in-new": 62412, - "openid": 62413, - "opera": 62414, - "orbit": 61464, - "ornament": 62415, - "ornament-variant": 62416, - "owl": 62418, - "package": 62419, - "package-down": 62420, - "package-up": 62421, - "package-variant": 62422, - "package-variant-closed": 62423, - "page-first": 62976, - "page-last": 62977, - "page-layout-body": 63225, - "page-layout-footer": 63226, - "page-layout-header": 63227, - "page-layout-sidebar-left": 63228, - "page-layout-sidebar-right": 63229, - "palette": 62424, - "palette-advanced": 62425, - "palette-swatch": 63668, - "panda": 62426, - "pandora": 62427, - "panorama": 62428, - "panorama-fisheye": 62429, - "panorama-horizontal": 62430, - "panorama-vertical": 62431, - "panorama-wide-angle": 62432, - "paper-cut-vertical": 62433, - "paperclip": 62434, - "parking": 62435, - "passport": 63458, - "patreon": 63617, - "pause": 62436, - "pause-circle": 62437, - "pause-circle-outline": 62438, - "pause-octagon": 62439, - "pause-octagon-outline": 62440, - "paw": 62441, - "paw-off": 63063, - "paypal": 63618, - "peace": 63619, - "pen": 62442, - "pencil": 62443, - "pencil-box": 62444, - "pencil-box-outline": 62445, - "pencil-circle": 63230, - "pencil-circle-outline": 63349, - "pencil-lock": 62446, - "pencil-off": 62447, - "pentagon": 63231, - "pentagon-outline": 63232, - "percent": 62448, - "periodic-table": 63669, - "periodic-table-co2": 63459, - "periscope": 63303, - "pharmacy": 62449, - "phone": 62450, - "phone-bluetooth": 62451, - "phone-classic": 62978, - "phone-forward": 62452, - "phone-hangup": 62453, - "phone-in-talk": 62454, - "phone-incoming": 62455, - "phone-locked": 62456, - "phone-log": 62457, - "phone-minus": 63064, - "phone-missed": 62458, - "phone-outgoing": 62459, - "phone-paused": 62460, - "phone-plus": 63065, - "phone-return": 63534, - "phone-rotate-landscape": 63620, - "phone-rotate-portrait": 63621, - "phone-settings": 62461, - "phone-voip": 62462, - "pi": 62463, - "pi-box": 62464, - "piano": 63100, - "pickaxe": 63670, - "pier": 63622, - "pier-crane": 63623, - "pig": 62465, - "pill": 62466, - "pillar": 63233, - "pin": 62467, - "pin-off": 62468, - "pin-off-outline": 63791, - "pin-outline": 63792, - "pine-tree": 62469, - "pine-tree-box": 62470, - "pinterest": 62471, - "pinterest-box": 62472, - "pipe": 63460, - "pipe-disconnected": 63461, - "pipe-leak": 63624, - "pirate": 64007, - "pistol": 63234, - "piston": 63625, - "pizza": 62473, - "plane-shield": 63162, - "play": 62474, - "play-box-outline": 62475, - "play-circle": 62476, - "play-circle-outline": 62477, - "play-network": 63626, - "play-pause": 62478, - "play-protected-content": 62479, - "play-speed": 63742, - "playlist-check": 62919, - "playlist-edit": 63743, - "playlist-minus": 62480, - "playlist-play": 62481, - "playlist-plus": 62482, - "playlist-remove": 62483, - "playstation": 62484, - "plex": 63161, - "plus": 62485, - "plus-box": 62486, - "plus-box-outline": 63235, - "plus-circle": 62487, - "plus-circle-multiple-outline": 62488, - "plus-circle-outline": 62489, - "plus-minus": 63889, - "plus-minus-box": 63890, - "plus-network": 62490, - "plus-one": 62491, - "plus-outline": 63236, - "pocket": 62492, - "podcast": 63891, - "pokeball": 62493, - "pokemon-go": 64008, - "poker-chip": 63535, - "polaroid": 62494, - "poll": 62495, - "poll-box": 62496, - "polymer": 62497, - "pool": 62982, - "popcorn": 62498, - "pot": 63066, - "pot-mix": 63067, - "pound": 62499, - "pound-box": 62500, - "power": 62501, - "power-cycle": 63744, - "power-off": 63745, - "power-on": 63746, - "power-plug": 63140, - "power-plug-off": 63141, - "power-settings": 62502, - "power-sleep": 63747, - "power-socket": 62503, - "power-socket-au": 63748, - "power-socket-eu": 63462, - "power-socket-uk": 63463, - "power-socket-us": 63464, - "power-standby": 63749, - "powershell": 64009, - "prescription": 63237, - "presentation": 62504, - "presentation-play": 62505, - "printer": 62506, - "printer-3d": 62507, - "printer-alert": 62508, - "printer-settings": 63238, - "printer-wireless": 64010, - "priority-high": 62979, - "priority-low": 62980, - "professional-hexagon": 62509, - "progress-check": 63892, - "progress-clock": 63893, - "progress-download": 63894, - "progress-upload": 63895, - "projector": 62510, - "projector-screen": 62511, - "publish": 63142, - "pulse": 62512, - "puzzle": 62513, - "qi": 63896, - "qqchat": 62981, - "qrcode": 62514, - "qrcode-edit": 63671, - "qrcode-scan": 62515, - "quadcopter": 62516, - "quality-high": 62517, - "quality-low": 64011, - "quality-medium": 64012, - "quicktime": 62518, - "rabbit": 63750, - "radar": 62519, - "radiator": 62520, - "radio": 62521, - "radio-handheld": 62522, - "radio-tower": 62523, - "radioactive": 62524, - "radiobox-blank": 62525, - "radiobox-marked": 62526, - "raspberrypi": 62527, - "ray-end": 62528, - "ray-end-arrow": 62529, - "ray-start": 62530, - "ray-start-arrow": 62531, - "ray-start-end": 62532, - "ray-vertex": 62533, - "react": 63239, - "read": 62535, - "receipt": 62537, - "record": 62538, - "record-player": 63897, - "record-rec": 62539, - "recycle": 62540, - "reddit": 62541, - "redo": 62542, - "redo-variant": 62543, - "reflect-horizontal": 64013, - "reflect-vertical": 64014, - "refresh": 62544, - "regex": 62545, - "relative-scale": 62546, - "reload": 62547, - "reminder": 63627, - "remote": 62548, - "remote-desktop": 63672, - "rename-box": 62549, - "reorder-horizontal": 63111, - "reorder-vertical": 63112, - "repeat": 62550, - "repeat-off": 62551, - "repeat-once": 62552, - "replay": 62553, - "reply": 62554, - "reply-all": 62555, - "reproduction": 62556, - "resize-bottom-right": 62557, - "responsive": 62558, - "restart": 63240, - "restore": 63898, - "restore-clock": 63143, - "rewind": 62559, - "rewind-outline": 63241, - "rhombus": 63242, - "rhombus-medium": 64015, - "rhombus-outline": 63243, - "rhombus-split": 64016, - "ribbon": 62560, - "rice": 63465, - "ring": 63466, - "road": 62561, - "road-variant": 62562, - "robot": 63144, - "robot-vacuum": 63244, - "robot-vacuum-variant": 63751, - "rocket": 62563, - "room-service": 63628, - "rotate-3d": 62564, - "rotate-left": 62565, - "rotate-left-variant": 62566, - "rotate-right": 62567, - "rotate-right-variant": 62568, - "rounded-corner": 62983, - "router-wireless": 62569, - "routes": 62570, - "rowing": 62984, - "rss": 62571, - "rss-box": 62572, - "ruler": 62573, - "run": 63245, - "run-fast": 62574, - "sale": 62575, - "salesforce": 63629, - "sass": 63467, - "satellite": 62576, - "satellite-uplink": 63752, - "satellite-variant": 62577, - "sausage": 63673, - "saxophone": 62985, - "scale": 62578, - "scale-balance": 62929, - "scale-bathroom": 62579, - "scanner": 63146, - "scanner-off": 63753, - "school": 62580, - "screen-rotation": 62581, - "screen-rotation-lock": 62582, - "screwdriver": 62583, - "script": 62584, - "sd": 62585, - "seal": 62586, - "search-web": 63246, - "seat-flat": 62587, - "seat-flat-angled": 62588, - "seat-individual-suite": 62589, - "seat-legroom-extra": 62590, - "seat-legroom-normal": 62591, - "seat-legroom-reduced": 62592, - "seat-recline-extra": 62593, - "seat-recline-normal": 62594, - "security": 62595, - "security-account": 63630, - "security-account-outline": 64017, - "security-close": 63899, - "security-home": 63113, - "security-lock": 63900, - "security-network": 62596, - "security-off": 63901, - "select": 62597, - "select-all": 62598, - "select-inverse": 62599, - "select-off": 62600, - "selection": 62601, - "selection-off": 63350, - "send": 62602, - "send-secure": 63468, - "serial-port": 63068, - "server": 62603, - "server-minus": 62604, - "server-network": 62605, - "server-network-off": 62606, - "server-off": 62607, - "server-plus": 62608, - "server-remove": 62609, - "server-security": 62610, - "set-all": 63351, - "set-center": 63352, - "set-center-right": 63353, - "set-left": 63354, - "set-left-center": 63355, - "set-left-right": 63356, - "set-none": 63357, - "set-right": 63358, - "set-top-box": 63902, - "settings": 62611, - "settings-box": 62612, - "settings-outline": 63674, - "shape": 63536, - "shape-circle-plus": 63069, - "shape-outline": 63537, - "shape-plus": 62613, - "shape-polygon-plus": 63070, - "shape-rectangle-plus": 63071, - "shape-square-plus": 63072, - "share": 62614, - "share-outline": 63793, - "share-variant": 62615, - "shield": 62616, - "shield-half-full": 63359, - "shield-outline": 62617, - "ship-wheel": 63538, - "shopping": 62618, - "shopping-music": 62619, - "shovel": 63247, - "shovel-off": 63248, - "shower": 63903, - "shower-head": 63904, - "shredder": 62620, - "shuffle": 62621, - "shuffle-disabled": 62622, - "shuffle-variant": 62623, - "sigma": 62624, - "sigma-lower": 63019, - "sign-caution": 62625, - "sign-direction": 63360, - "sign-text": 63361, - "signal": 62626, - "signal-2g": 63249, - "signal-3g": 63250, - "signal-4g": 63251, - "signal-cellular-1": 63675, - "signal-cellular-2": 63676, - "signal-cellular-3": 63677, - "signal-cellular-outline": 63678, - "signal-hspa": 63252, - "signal-hspa-plus": 63253, - "signal-off": 63362, - "signal-variant": 62986, - "silverware": 62627, - "silverware-fork": 62628, - "silverware-spoon": 62629, - "silverware-variant": 62630, - "sim": 62631, - "sim-alert": 62632, - "sim-off": 62633, - "sitemap": 62634, - "skip-backward": 62635, - "skip-forward": 62636, - "skip-next": 62637, - "skip-next-circle": 63073, - "skip-next-circle-outline": 63074, - "skip-previous": 62638, - "skip-previous-circle": 63075, - "skip-previous-circle-outline": 63076, - "skull": 63115, - "skype": 62639, - "skype-business": 62640, - "slack": 62641, - "slackware": 63754, - "sleep": 62642, - "sleep-off": 62643, - "smoke-detector": 62354, - "smoking": 62644, - "smoking-off": 62645, - "snapchat": 62646, - "snowflake": 63254, - "snowman": 62647, - "soccer": 62648, - "soccer-field": 63539, - "sofa": 62649, - "solid": 63116, - "sort": 62650, - "sort-alphabetical": 62651, - "sort-ascending": 62652, - "sort-descending": 62653, - "sort-numeric": 62654, - "sort-variant": 62655, - "soundcloud": 62656, - "source-branch": 63020, - "source-commit": 63255, - "source-commit-end": 63256, - "source-commit-end-local": 63257, - "source-commit-local": 63258, - "source-commit-next-local": 63259, - "source-commit-start": 63260, - "source-commit-start-next-local": 63261, - "source-fork": 62657, - "source-merge": 63021, - "source-pull": 62658, - "soy-sauce": 63469, - "speaker": 62659, - "speaker-bluetooth": 63905, - "speaker-off": 62660, - "speaker-wireless": 63262, - "speedometer": 62661, - "spellcheck": 62662, - "spotify": 62663, - "spotlight": 62664, - "spotlight-beam": 62665, - "spray": 63077, - "square": 63331, - "square-edit-outline": 63755, - "square-inc": 62666, - "square-inc-cash": 62667, - "square-medium": 64018, - "square-medium-outline": 64019, - "square-outline": 63330, - "square-root": 63363, - "square-root-box": 63906, - "square-small": 64020, - "ssh": 63679, - "stack-exchange": 62987, - "stack-overflow": 62668, - "stadium": 63263, - "stairs": 62669, - "standard-definition": 63470, - "star": 62670, - "star-circle": 62671, - "star-circle-outline": 63907, - "star-face": 63908, - "star-half": 62672, - "star-off": 62673, - "star-outline": 62674, - "steam": 62675, - "steam-box": 63756, - "steering": 62676, - "steering-off": 63757, - "step-backward": 62677, - "step-backward-2": 62678, - "step-forward": 62679, - "step-forward-2": 62680, - "stethoscope": 62681, - "sticker": 62928, - "sticker-emoji": 63364, - "stocking": 62682, - "stop": 62683, - "stop-circle": 63078, - "stop-circle-outline": 63079, - "store": 62684, - "store-24-hour": 62685, - "stove": 62686, - "subdirectory-arrow-left": 62988, - "subdirectory-arrow-right": 62989, - "subtitles": 64021, - "subtitles-outline": 64022, - "subway": 63147, - "subway-variant": 62687, - "summit": 63365, - "sunglasses": 62688, - "surround-sound": 62917, - "surround-sound-2-0": 63471, - "surround-sound-3-1": 63472, - "surround-sound-5-1": 63473, - "surround-sound-7-1": 63474, - "svg": 63264, - "swap-horizontal": 62689, - "swap-horizontal-variant": 63680, - "swap-vertical": 62690, - "swap-vertical-variant": 63681, - "swim": 62691, - "switch": 62692, - "sword": 62693, - "sword-cross": 63366, - "sync": 62694, - "sync-alert": 62695, - "sync-off": 62696, - "tab": 62697, - "tab-plus": 63323, - "tab-unselected": 62698, - "table": 62699, - "table-border": 64023, - "table-column": 63540, - "table-column-plus-after": 62700, - "table-column-plus-before": 62701, - "table-column-remove": 62702, - "table-column-width": 62703, - "table-edit": 62704, - "table-large": 62705, - "table-merge-cells": 63909, - "table-of-contents": 63541, - "table-row": 63542, - "table-row-height": 62706, - "table-row-plus-after": 62707, - "table-row-plus-before": 62708, - "table-row-remove": 62709, - "table-search": 63758, - "table-settings": 63543, - "tablet": 62710, - "tablet-android": 62711, - "tablet-cellphone": 63910, - "tablet-ipad": 62712, - "taco": 63329, - "tag": 62713, - "tag-faces": 62714, - "tag-heart": 63114, - "tag-minus": 63759, - "tag-multiple": 62715, - "tag-outline": 62716, - "tag-plus": 63265, - "tag-remove": 63266, - "tag-text-outline": 62717, - "target": 62718, - "taxi": 62719, - "teach": 63631, - "teamviewer": 62720, - "telegram": 62721, - "television": 62722, - "television-box": 63544, - "television-classic": 63475, - "television-classic-off": 63545, - "television-guide": 62723, - "television-off": 63546, - "temperature-celsius": 62724, - "temperature-fahrenheit": 62725, - "temperature-kelvin": 62726, - "tennis": 62727, - "tent": 62728, - "terrain": 62729, - "test-tube": 63080, - "test-tube-empty": 63760, - "test-tube-off": 63761, - "text": 63911, - "text-shadow": 63081, - "text-short": 63912, - "text-subject": 63913, - "text-to-speech": 62730, - "text-to-speech-off": 62731, - "textbox": 62990, - "textbox-password": 63476, - "texture": 62732, - "theater": 62733, - "theme-light-dark": 62734, - "thermometer": 62735, - "thermometer-lines": 62736, - "thermostat": 62355, - "thermostat-box": 63632, - "thought-bubble": 63477, - "thought-bubble-outline": 63478, - "thumb-down": 62737, - "thumb-down-outline": 62738, - "thumb-up": 62739, - "thumb-up-outline": 62740, - "thumbs-up-down": 62741, - "ticket": 62742, - "ticket-account": 62743, - "ticket-confirmation": 62744, - "ticket-outline": 63762, - "ticket-percent": 63267, - "tie": 62745, - "tilde": 63268, - "timelapse": 62746, - "timer": 62747, - "timer-10": 62748, - "timer-3": 62749, - "timer-off": 62750, - "timer-sand": 62751, - "timer-sand-empty": 63148, - "timer-sand-full": 63371, - "timetable": 62752, - "toggle-switch": 62753, - "toggle-switch-off": 62754, - "toggle-switch-off-outline": 64024, - "toggle-switch-outline": 64025, - "toilet": 63914, - "toolbox": 63915, - "toolbox-outline": 63916, - "tooltip": 62755, - "tooltip-edit": 62756, - "tooltip-image": 62757, - "tooltip-outline": 62758, - "tooltip-outline-plus": 62759, - "tooltip-text": 62760, - "tooth": 63682, - "tooth-outline": 62761, - "tor": 62762, - "tournament": 63917, - "tower-beach": 63104, - "tower-fire": 63105, - "towing": 63547, - "track-light": 63763, - "trackpad": 63479, - "trackpad-lock": 63794, - "tractor": 63633, - "traffic-light": 62763, - "train": 62764, - "train-variant": 63683, - "tram": 62765, - "transcribe": 62766, - "transcribe-close": 62767, - "transfer": 62768, - "transit-transfer": 63149, - "transition": 63764, - "transition-masked": 63765, - "translate": 62922, - "treasure-chest": 63269, - "tree": 62769, - "trello": 62770, - "trending-down": 62771, - "trending-neutral": 62772, - "trending-up": 62773, - "triangle": 62774, - "triangle-outline": 62775, - "trophy": 62776, - "trophy-award": 62777, - "trophy-outline": 62778, - "trophy-variant": 62779, - "trophy-variant-outline": 62780, - "truck": 62781, - "truck-delivery": 62782, - "truck-fast": 63367, - "truck-trailer": 63270, - "tshirt-crew": 62783, - "tshirt-v": 62784, - "tumble-dryer": 63766, - "tumblr": 62785, - "tumblr-box": 63767, - "tumblr-reblog": 62786, - "tune": 63022, - "tune-vertical": 63082, - "twitch": 62787, - "twitter": 62788, - "twitter-box": 62789, - "twitter-circle": 62790, - "twitter-retweet": 62791, - "two-factor-authentication": 63918, - "uber": 63304, - "ubuntu": 62792, - "ultra-high-definition": 63480, - "umbraco": 62793, - "umbrella": 62794, - "umbrella-closed": 63919, - "umbrella-outline": 62795, - "undo": 62796, - "undo-variant": 62797, - "unfold-less-horizontal": 62798, - "unfold-less-vertical": 63327, - "unfold-more-horizontal": 62799, - "unfold-more-vertical": 63328, - "ungroup": 62800, - "unity": 63150, - "unreal": 63920, - "untappd": 62801, - "update": 63151, - "upload": 62802, - "upload-multiple": 63548, - "upload-network": 63221, - "usb": 62803, - "van-passenger": 63481, - "van-utility": 63482, - "vanish": 63483, - "vector-arrange-above": 62804, - "vector-arrange-below": 62805, - "vector-circle": 62806, - "vector-circle-variant": 62807, - "vector-combine": 62808, - "vector-curve": 62809, - "vector-difference": 62810, - "vector-difference-ab": 62811, - "vector-difference-ba": 62812, - "vector-ellipse": 63634, - "vector-intersection": 62813, - "vector-line": 62814, - "vector-point": 62815, - "vector-polygon": 62816, - "vector-polyline": 62817, - "vector-radius": 63305, - "vector-rectangle": 62918, - "vector-selection": 62818, - "vector-square": 61441, - "vector-triangle": 62819, - "vector-union": 62820, - "venmo": 62840, - "verified": 62821, - "vhs": 64026, - "vibrate": 62822, - "video": 62823, - "video-3d": 63484, - "video-4k-box": 63549, - "video-account": 63768, - "video-image": 63769, - "video-input-antenna": 63550, - "video-input-component": 63551, - "video-input-hdmi": 63552, - "video-input-svideo": 63553, - "video-minus": 63921, - "video-off": 62824, - "video-plus": 63922, - "video-stabilization": 63770, - "video-switch": 62825, - "video-vintage": 64027, - "view-agenda": 62826, - "view-array": 62827, - "view-carousel": 62828, - "view-column": 62829, - "view-dashboard": 62830, - "view-dashboard-outline": 64028, - "view-dashboard-variant": 63554, - "view-day": 62831, - "view-grid": 62832, - "view-headline": 62833, - "view-list": 62834, - "view-module": 62835, - "view-parallel": 63271, - "view-quilt": 62836, - "view-sequential": 63272, - "view-stream": 62837, - "view-week": 62838, - "vimeo": 62839, - "violin": 62991, - "virtual-reality": 63635, - "visual-studio": 62992, - "visual-studio-code": 64029, - "vk": 62841, - "vk-box": 62842, - "vk-circle": 62843, - "vlc": 62844, - "voice": 62923, - "voicemail": 62845, - "volleyball": 63923, - "volume-high": 62846, - "volume-low": 62847, - "volume-medium": 62848, - "volume-minus": 63325, - "volume-mute": 63326, - "volume-off": 62849, - "volume-plus": 63324, - "vote": 64030, - "vote-outline": 64031, - "vpn": 62850, - "vuejs": 63555, - "walk": 62851, - "wall": 63485, - "wall-sconce": 63771, - "wall-sconce-flat": 63772, - "wall-sconce-variant": 63773, - "wallet": 62852, - "wallet-giftcard": 62853, - "wallet-membership": 62854, - "wallet-travel": 62855, - "wan": 62856, - "washing-machine": 63273, - "watch": 62857, - "watch-export": 62858, - "watch-export-variant": 63636, - "watch-import": 62859, - "watch-import-variant": 63637, - "watch-variant": 63638, - "watch-vibrate": 63152, - "water": 62860, - "water-off": 62861, - "water-percent": 62862, - "water-pump": 62863, - "watermark": 62994, - "waves": 63372, - "weather-cloudy": 62864, - "weather-fog": 62865, - "weather-hail": 62866, - "weather-hurricane": 63639, - "weather-lightning": 62867, - "weather-lightning-rainy": 63101, - "weather-night": 62868, - "weather-partlycloudy": 62869, - "weather-pouring": 62870, - "weather-rainy": 62871, - "weather-snowy": 62872, - "weather-snowy-rainy": 63102, - "weather-sunny": 62873, - "weather-sunset": 62874, - "weather-sunset-down": 62875, - "weather-sunset-up": 62876, - "weather-windy": 62877, - "weather-windy-variant": 62878, - "web": 62879, - "webcam": 62880, - "webhook": 63023, - "webpack": 63274, - "wechat": 62993, - "weight": 62881, - "weight-kilogram": 62882, - "weight-pound": 63924, - "whatsapp": 62883, - "wheelchair-accessibility": 62884, - "whistle": 63925, - "white-balance-auto": 62885, - "white-balance-incandescent": 62886, - "white-balance-iridescent": 62887, - "white-balance-sunny": 62888, - "widgets": 63275, - "wifi": 62889, - "wifi-off": 62890, - "wifi-strength-1": 63774, - "wifi-strength-1-alert": 63775, - "wifi-strength-1-lock": 63776, - "wifi-strength-2": 63777, - "wifi-strength-2-alert": 63778, - "wifi-strength-2-lock": 63779, - "wifi-strength-3": 63780, - "wifi-strength-3-alert": 63781, - "wifi-strength-3-lock": 63782, - "wifi-strength-4": 63783, - "wifi-strength-4-alert": 63784, - "wifi-strength-4-lock": 63785, - "wifi-strength-alert-outline": 63786, - "wifi-strength-lock-outline": 63787, - "wifi-strength-off": 63788, - "wifi-strength-off-outline": 63789, - "wifi-strength-outline": 63790, - "wii": 62891, - "wiiu": 63276, - "wikipedia": 62892, - "window-close": 62893, - "window-closed": 62894, - "window-maximize": 62895, - "window-minimize": 62896, - "window-open": 62897, - "window-restore": 62898, - "windows": 62899, - "windows-classic": 64032, - "wordpress": 62900, - "worker": 62901, - "wrap": 62902, - "wrench": 62903, - "wunderlist": 62904, - "xamarin": 63556, - "xamarin-outline": 63557, - "xaml": 63091, - "xbox": 62905, - "xbox-controller": 62906, - "xbox-controller-battery-alert": 63306, - "xbox-controller-battery-charging": 64033, - "xbox-controller-battery-empty": 63307, - "xbox-controller-battery-full": 63308, - "xbox-controller-battery-low": 63309, - "xbox-controller-battery-medium": 63310, - "xbox-controller-battery-unknown": 63311, - "xbox-controller-off": 62907, - "xda": 62908, - "xing": 62909, - "xing-box": 62910, - "xing-circle": 62911, - "xml": 62912, - "xmpp": 63486, - "yammer": 63368, - "yeast": 62913, - "yelp": 62914, - "yin-yang": 63103, - "youtube": 62915, - "youtube-creator-studio": 63558, - "youtube-gaming": 63559, - "youtube-tv": 62536, - "zip-box": 62916, - "zip-disk": 64034, - "blank": 63116 -}; -},634,[],"node_modules/react-native-vector-icons/glyphmaps/MaterialCommunityIcons.json"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../node_modules/react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _MaterialCommunityIcons = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "react-native-vector-icons/MaterialCommunityIcons")); - - var _StatusBar = _$$_REQUIRE(_dependencyMap[4], "../components/StatusBar"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/js/screens/Home.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - HomeScreen: { - displayName: "HomeScreen" - } - }; - - var _node_modulesReactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/js/screens/Home.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _node_modulesReactTransformHmrLibIndexJs2(Component, id); - }; - } - - var HomeScreen = function (_Component) { - function HomeScreen() { - _classCallCheck(this, HomeScreen); - - return _possibleConstructorReturn(this, _getPrototypeOf(HomeScreen).apply(this, arguments)); - } - - _createClass(HomeScreen, [{ - key: "render", - value: function render() { - return _react.default.createElement(_reactNative.ScrollView, { - style: styles.container, - __source: { - fileName: _jsxFileName, - lineNumber: 9 - } - }, _react.default.createElement(_reactNative.View, { - style: styles.contentContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 10 - } - }, _react.default.createElement(_reactNative.Image, { - style: styles.logo, - source: _$$_REQUIRE(_dependencyMap[5], '../assets/webdriverio.png'), - __source: { - fileName: _jsxFileName, - lineNumber: 11 - } - }), _react.default.createElement(_reactNative.View, { - style: styles.logoTextContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 15 - } - }, _react.default.createElement(_reactNative.Text, { - style: styles.logoText, - __source: { - fileName: _jsxFileName, - lineNumber: 16 - } - }, "WEBDRIVER"), _react.default.createElement(_reactNative.View, { - style: styles.logoSubTextContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 17 - } - }, _react.default.createElement(_reactNative.Text, { - style: styles.logoSubText, - __source: { - fileName: _jsxFileName, - lineNumber: 18 - } - }, "I/O"))), _react.default.createElement(_reactNative.Text, { - style: { - fontWeight: '100' - }, - __source: { - fileName: _jsxFileName, - lineNumber: 21 - } - }, "Demo app for the appium-boilerplate")), _react.default.createElement(_reactNative.View, { - style: styles.contentContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 27 - } - }, _react.default.createElement(_reactNative.View, { - style: { - flex: 1 - }, - __source: { - fileName: _jsxFileName, - lineNumber: 28 - } - }, _react.default.createElement(_reactNative.View, { - style: styles.platformIconContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 31 - } - }, _react.default.createElement(_MaterialCommunityIcons.default, { - name: 'apple', - size: 90, - style: styles.orangeColor, - __source: { - fileName: _jsxFileName, - lineNumber: 32 - } - }), _react.default.createElement(_MaterialCommunityIcons.default, { - name: 'android', - size: 90, - style: styles.orangeColor, - __source: { - fileName: _jsxFileName, - lineNumber: 37 - } - })), _react.default.createElement(_reactNative.Text, { - style: { - fontSize: 18, - fontWeight: '100', - textAlign: 'center' - }, - __source: { - fileName: _jsxFileName, - lineNumber: 43 - } - }, "Support")))); - } - }]); - - _inherits(HomeScreen, _Component); - - return HomeScreen; - }(_react.Component); - - HomeScreen = _wrapComponent("HomeScreen")(HomeScreen); - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1, - backgroundColor: '#f7f7f7', - marginTop: _StatusBar.STATUS_BAR_HEIGHT, - paddingBottom: 40 - }, - contentContainer: { - flex: 1, - backgroundColor: '#f7f7f7', - alignItems: 'center', - justifyContent: 'center', - width: '100%', - height: '100%' - }, - logo: { - marginTop: 100 - }, - logoTextContainer: { - flexDirection: 'row', - paddingTop: 20, - paddingBottom: 30 - }, - logoText: { - color: '#000', - textTransform: 'uppercase', - backgroundColor: 'transparent', - textAlign: 'center', - fontSize: 40, - fontWeight: '100' - }, - logoSubTextContainer: { - justifyContent: 'center' - }, - logoSubText: { - color: '#fff', - fontSize: 28, - fontWeight: '100', - backgroundColor: '#ea5906', - borderColor: '#ea5906', - borderWidth: 1, - borderRadius: 10, - color: '#fff', - left: 10, - paddingLeft: 5, - paddingRight: 5, - justifyContent: 'center', - overflow: 'hidden' - }, - platformIconContainer: { - flexDirection: 'row', - paddingTop: 20, - paddingBottom: 20 - }, - orangeColor: { - color: '#ea5906' - } - }); - - var _default2 = HomeScreen; - exports.default = _default2; -},511,[122,161,1,510,506,682],"js/screens/Home.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/js/assets", - "width": 167, - "height": 196, - "scales": [1], - "hash": "717c283dbbbca590c4406baaa2aed677", - "name": "webdriverio", - "type": "png" - }); -},682,[158],"js/assets/webdriverio.png"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../node_modules/react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _BorderText = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../components/BorderText")); - - var _StatusBar = _$$_REQUIRE(_dependencyMap[4], "../components/StatusBar"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/js/screens/WebView.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - WebviewScreen: { - displayName: "WebviewScreen" - } - }; - - var _node_modulesReactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/js/screens/WebView.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _node_modulesReactTransformHmrLibIndexJs2(Component, id); - }; - } - - var WebviewScreen = function (_Component) { - function WebviewScreen() { - _classCallCheck(this, WebviewScreen); - - return _possibleConstructorReturn(this, _getPrototypeOf(WebviewScreen).apply(this, arguments)); - } - - _createClass(WebviewScreen, [{ - key: "renderLoading", - value: function renderLoading() { - return _react.default.createElement(_reactNative.View, { - style: styles.loaderContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 9 - } - }, _react.default.createElement(_BorderText.default, { - text: "Loading...", - __source: { - fileName: _jsxFileName, - lineNumber: 10 - } - })); - } - }, { - key: "render", - value: function render() { - console.log('render'); - return _react.default.createElement(_reactNative.WebView, { - renderLoading: this.renderLoading, - source: { - uri: 'http://webdriver.io/' - }, - startInLoadingState: true, - originWhitelist: ['*'], - style: { - marginTop: _StatusBar.STATUS_BAR_HEIGHT - }, - __source: { - fileName: _jsxFileName, - lineNumber: 18 - } - }); - } - }]); - - _inherits(WebviewScreen, _Component); - - return WebviewScreen; - }(_react.Component); - - WebviewScreen = _wrapComponent("WebviewScreen")(WebviewScreen); - - var styles = _reactNative.StyleSheet.create({ - loaderContainer: { - backgroundColor: '#f7f7f7', - flex: 1, - flexDirection: 'column', - justifyContent: 'center', - alignItems: 'center' - } - }); - - var _default2 = WebviewScreen; - exports.default = _default2; -},512,[122,161,1,683,506],"js/screens/WebView.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../node_modules/react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "prop-types")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/js/components/BorderText.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - BorderText: { - displayName: "BorderText" - } - }; - - var _node_modulesReactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/js/components/BorderText.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _node_modulesReactTransformHmrLibIndexJs2(Component, id); - }; - } - - var BorderText = function (_PureComponent) { - function BorderText() { - _classCallCheck(this, BorderText); - - return _possibleConstructorReturn(this, _getPrototypeOf(BorderText).apply(this, arguments)); - } - - _createClass(BorderText, [{ - key: "render", - value: function render() { - var text = this.props.text; - return _react.default.createElement(_reactNative.Text, { - style: [styles.headerBorder, styles.header], - __source: { - fileName: _jsxFileName, - lineNumber: 14 - } - }, text.toUpperCase()); - } - }]); - - _inherits(BorderText, _PureComponent); - - return BorderText; - }(_react.PureComponent); - - BorderText.propTypes = { - text: _propTypes.default.string.isRequired - }; - BorderText = _wrapComponent("BorderText")(BorderText); - - var styles = _reactNative.StyleSheet.create({ - headerBorder: _objectSpread({ - backgroundColor: '#000', - borderColor: '#ea5906', - borderWidth: 5 - }, _reactNative.Platform.select({ - ios: { - paddingBottom: 9 - }, - android: { - paddingBottom: 4 - } - }), { - paddingLeft: 13, - paddingRight: 13, - paddingTop: 9, - textAlign: 'center' - }), - header: { - color: '#ea5906', - fontSize: 40 - } - }); - - var _default2 = BorderText; - exports.default = _default2; -},683,[122,161,1,143],"js/components/BorderText.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../node_modules/react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _FormComponents = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../components/FormComponents")); - - var _StatusBar = _$$_REQUIRE(_dependencyMap[4], "../components/StatusBar"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/js/screens/Forms.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - FormsScreen: { - displayName: "FormsScreen" - } - }; - - var _node_modulesReactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/js/screens/Forms.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _node_modulesReactTransformHmrLibIndexJs2(Component, id); - }; - } - - var FormsScreen = function (_Component) { - function FormsScreen() { - _classCallCheck(this, FormsScreen); - - return _possibleConstructorReturn(this, _getPrototypeOf(FormsScreen).apply(this, arguments)); - } - - _createClass(FormsScreen, [{ - key: "render", - value: function render() { - return _react.default.createElement(_reactNative.ScrollView, { - style: styles.container, - __source: { - fileName: _jsxFileName, - lineNumber: 13 - } - }, _react.default.createElement(_FormComponents.default, { - __source: { - fileName: _jsxFileName, - lineNumber: 14 - } - })); - } - }]); - - _inherits(FormsScreen, _Component); - - return FormsScreen; - }(_react.Component); - - FormsScreen = _wrapComponent("FormsScreen")(FormsScreen); - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1, - backgroundColor: '#f7f7f7', - marginTop: _StatusBar.STATUS_BAR_HEIGHT, - paddingBottom: 40 - } - }); - - var _default2 = FormsScreen; - exports.default = _default2; -},513,[122,161,1,684,506],"js/screens/Forms.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../node_modules/react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _SelectInput = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "@tele2/react-native-select-input/src/SelectInput")); - - var _reactNativeElements = _$$_REQUIRE(_dependencyMap[4], "react-native-elements"); - - var _Constants = _$$_REQUIRE(_dependencyMap[5], "../config/Constants"); - - var _TitleDivider = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "./TitleDivider")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/js/components/FormComponents.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - FormComponents: { - displayName: "FormComponents" - } - }; - - var _node_modulesReactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/js/components/FormComponents.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _node_modulesReactTransformHmrLibIndexJs2(Component, id); - }; - } - - var options = [{ - value: '1', - label: 'webdriver.io is awesome' - }, { - value: '2', - label: 'Appium is awesome' - }, { - value: '3', - label: 'This app is awesome' - }]; - - var FormComponents = function (_Component) { - function FormComponents() { - var _this; - - _classCallCheck(this, FormComponents); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(FormComponents).call(this)); - _this.state = { - isCheckBoxActive: true, - inputText: '' - }; - return _this; - } - - _createClass(FormComponents, [{ - key: "showAlert", - value: function showAlert() { - _reactNative.Alert.alert('This button is', 'This button is active', [{ - text: 'Ask me later' - }, { - text: 'Cancel' - }, { - text: 'OK' - }], { - cancelable: false - }); - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var isCheckBoxActive = this.state.isCheckBoxActive; - return _react.default.createElement(_reactNative.View, { - style: styles.container, - __source: { - fileName: _jsxFileName, - lineNumber: 48 - } - }, _react.default.createElement(_TitleDivider.default, { - text: "Form components", - __source: { - fileName: _jsxFileName, - lineNumber: 49 - } - }), _react.default.createElement(_reactNative.View, { - style: styles.formComponentsContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 50 - } - }, _react.default.createElement(_reactNative.View, { - __source: { - fileName: _jsxFileName, - lineNumber: 51 - } - }, _react.default.createElement(_reactNativeElements.Input, { - keyboardAppearance: "light", - autoFocus: false, - autoCapitalize: "none", - autoCorrect: false, - placeholder: 'Type something', - onChangeText: function onChangeText(inputText) { - return _this2.setState({ - inputText: inputText - }); - }, - label: "Input field", - labelStyle: styles.inputLabelStyle, - containerStyle: styles.inputContainerStyle, - inputContainerStyle: styles.inputInnerContainerStyle, - inputStyle: styles.inputStyle, - maxLength: 30, - multiline: false, - __source: { - fileName: _jsxFileName, - lineNumber: 52 - } - }), _react.default.createElement(_reactNative.Text, { - style: styles.inputTextLabel, - __source: { - fileName: _jsxFileName, - lineNumber: 67 - } - }, "You have typed:"), _react.default.createElement(_reactNative.Text, { - style: styles.inputText, - __source: { - fileName: _jsxFileName, - lineNumber: 68 - } - }, this.state.inputText)), _react.default.createElement(_reactNative.Text, { - style: styles.labelText, - __source: { - fileName: _jsxFileName, - lineNumber: 70 - } - }, "Checkbox"), _react.default.createElement(_reactNativeElements.CheckBox, { - title: "Click here to " + (isCheckBoxActive ? 'un' : '') + "check me", - checked: this.state.isCheckBoxActive, - onPress: function onPress() { - return _this2.setState({ - isCheckBoxActive: !isCheckBoxActive - }); - }, - containerStyle: styles.checkBoxContainer, - textStyle: styles.checkBoxText, - checkedColor: "#ea5906", - __source: { - fileName: _jsxFileName, - lineNumber: 71 - } - }), _react.default.createElement(_SelectInput.default, { - label: "Dropdown", - placeholder: "Select a value here", - options: options, - containerStyle: styles.selectInput, - labelStyle: styles.selectInputLabel, - innerContainerStyle: styles.selectInputInnerContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 79 - } - }), _react.default.createElement(_reactNative.View, { - __source: { - fileName: _jsxFileName, - lineNumber: 87 - } - }, _react.default.createElement(_reactNative.Text, { - style: styles.labelText, - __source: { - fileName: _jsxFileName, - lineNumber: 88 - } - }, "Buttons"), _react.default.createElement(_reactNative.View, { - style: styles.buttonContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 89 - } - }, _react.default.createElement(_reactNativeElements.Button, { - buttonStyle: styles.button, - title: "Active", - onPress: this.showAlert, - titleStyle: styles.buttonText, - disabled: false, - __source: { - fileName: _jsxFileName, - lineNumber: 90 - } - }), _react.default.createElement(_reactNativeElements.Button, { - buttonStyle: [styles.button, { - marginLeft: 10 - }], - title: "Inactive", - titleStyle: styles.buttonText, - disabled: true, - __source: { - fileName: _jsxFileName, - lineNumber: 97 - } - }))))); - } - }]); - - _inherits(FormComponents, _Component); - - return FormComponents; - }(_react.Component); - - FormComponents = _wrapComponent("FormComponents")(FormComponents); - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1, - backgroundColor: '#f7f7f7', - alignItems: 'center' - }, - formComponentsContainer: { - backgroundColor: '#f7f7f7', - width: _Constants.WINDOW_WIDTH - 30, - paddingTop: 30, - paddingBottom: 30, - borderColor: '#ea5906', - borderWidth: 5 - }, - labelText: { - fontSize: 16, - marginLeft: 20 - }, - checkBoxContainer: { - borderColor: 'transparent', - backgroundColor: 'transparent', - borderBottomColor: '#ea5906', - borderBottomWidth: 1, - borderRadius: 0 - }, - checkBoxText: { - fontWeight: '100', - fontSize: 16 - }, - input: { - paddingLeft: 10, - paddingRight: 10 - }, - inputLabelStyle: { - color: '#000', - fontWeight: 'normal', - paddingLeft: 10 - }, - inputContainerStyle: { - padding: 10, - width: _Constants.WINDOW_WIDTH - 40 - }, - inputInnerContainerStyle: { - borderColor: '#ea5906' - }, - inputStyle: { - fontSize: 14, - color: '#545454' - }, - inputTextLabel: { - paddingLeft: 20 - }, - inputText: { - color: '#545454', - fontSize: 12, - fontWeight: '100', - padding: 10, - height: 35, - borderWidth: 1, - borderColor: '#e3e3e3', - margin: 20 - }, - selectInput: { - paddingLeft: 10, - paddingRight: 10 - }, - selectInputLabel: { - fontSize: 16, - color: '#000' - }, - selectInputInnerContainer: { - borderBottomColor: '#ea5906', - borderBottomWidth: 1, - paddingLeft: 10 - }, - buttonContainer: { - flexDirection: 'row', - justifyContent: 'center', - marginLeft: 10, - marginRight: 10 - }, - button: { - height: 50, - width: 125, - backgroundColor: '#000', - borderColor: '#ea5906', - borderWidth: 5, - marginTop: 20 - }, - buttonText: { - fontSize: 16, - color: '#ea5906' - } - }); - - var _default2 = FormComponents; - exports.default = _default2; -},684,[122,161,1,685,686,508,687],"js/components/FormComponents.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _Icon = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4], "./Icon")); - - var _Picker = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./Picker")); - - var _Loading = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "./Loading")); - - var _TestProperties = _$$_REQUIRE(_dependencyMap[7], "./TestProperties"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/@tele2/react-native-select-input/src/SelectInput.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - SelectInput: { - displayName: "SelectInput" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/@tele2/react-native-select-input/src/SelectInput.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var SelectInput = function (_Component) { - function SelectInput(props) { - var _this; - - _classCallCheck(this, SelectInput); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(SelectInput).call(this, props)); - - _this.getValue = function () { - var _this$props = _this.props, - options = _this$props.options, - placeholder = _this$props.placeholder; - var selectedOption = options.find(function (_ref) { - var value = _ref.value; - return value === _this.state.value; - }); - - if (selectedOption) { - return selectedOption.label; - } - - return placeholder; - }; - - _this.handleChangeValue = function (value) { - _this.setState({ - value: value - }, function () { - return _this.props.onChange(value); - }); - }; - - _this.handleToggleShowOptions = function () { - if (_this.props.disabled || _this.props.loading) { - return; - } - - _reactNative.Keyboard.dismiss(); - - _this.setState(function (prevState) { - return { - optionsVisible: !prevState.optionsVisible - }; - }); - }; - - _this.renderValue = function () { - var _this$props2 = _this.props, - loading = _this$props2.loading, - disabled = _this$props2.disabled, - loadingContainerStyle = _this$props2.loadingContainerStyle, - valueStyle = _this$props2.valueStyle, - valueProps = _this$props2.valueProps; - - if (loading) { - return _react.default.createElement(_reactNative.View, { - style: [_this.styles.loadingContainer, loadingContainerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 196 - } - }, _react.default.createElement(_Loading.default, { - __source: { - fileName: _jsxFileName, - lineNumber: 197 - } - })); - } - - return _react.default.createElement(_reactNative.Text, _extends({}, valueProps, { - style: [_this.styles.value, disabled && _this.styles.valueDisabled, valueStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 203 - } - }), _this.getValue()); - }; - - _this.renderLabel = function () { - var _this$props3 = _this.props, - label = _this$props3.label, - renderLabel = _this$props3.renderLabel, - disabled = _this$props3.disabled, - loading = _this$props3.loading, - labelProps = _this$props3.labelProps, - labelStyle = _this$props3.labelStyle; - - if (renderLabel) { - return renderLabel(); - } - - if (!label) { - return; - } - - return _react.default.createElement(_reactNative.Text, _extends({}, labelProps, { - style: [_this.styles.label, (disabled || loading) && _this.styles.labelDisabled, labelStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 235 - } - }), label); - }; - - _this.state = { - value: props.value, - optionsVisible: false - }; - _this.styles = styles(props); - return _this; - } - - _createClass(SelectInput, [{ - key: "componentWillReceiveProps", - value: function componentWillReceiveProps(nextProps) { - if (nextProps.value !== this.state.value) { - this.setState({ - value: nextProps.value - }); - } - } - }, { - key: "render", - value: function render() { - var _this$state = this.state, - value = _this$state.value, - optionsVisible = _this$state.optionsVisible; - - var _this$props4 = this.props, - label = _this$props4.label, - disabled = _this$props4.disabled, - loading = _this$props4.loading, - colors = _this$props4.colors, - valueContainerStyle = _this$props4.valueContainerStyle, - containerStyle = _this$props4.containerStyle, - innerContainerStyle = _this$props4.innerContainerStyle, - renderArrowIcon = _this$props4.renderArrowIcon, - testProperty = _this$props4.testProperty, - props = _objectWithoutProperties(_this$props4, ["label", "disabled", "loading", "colors", "valueContainerStyle", "containerStyle", "innerContainerStyle", "renderArrowIcon", "testProperty"]); - - return _react.default.createElement(_reactNative.View, { - style: [this.styles.container, containerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 264 - } - }, _react.default.createElement(_reactNative.TouchableWithoutFeedback, _extends({ - onPress: this.handleToggleShowOptions - }, (0, _TestProperties.testProperties)('select', testProperty), { - __source: { - fileName: _jsxFileName, - lineNumber: 265 - } - }), _react.default.createElement(_reactNative.View, { - style: [this.styles.innerContainer, this.state.optionsVisible && this.styles.activeInnerContainer, innerContainerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 269 - } - }, this.renderLabel(), _react.default.createElement(_reactNative.View, { - style: [this.styles.valueContainer, valueContainerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 278 - } - }, this.renderValue(), _react.default.createElement(_Icon.default, { - disabled: disabled, - loading: loading, - type: optionsVisible ? _Icon.ARROW_ICON_TYPES.UP : _Icon.ARROW_ICON_TYPES.DOWN, - tintColor: disabled || loading ? colors.normal : colors.dark, - renderArrowIcon: renderArrowIcon, - __source: { - fileName: _jsxFileName, - lineNumber: 281 - } - })))), !disabled && !loading && _react.default.createElement(_Picker.default, _extends({}, props, { - colors: colors, - value: value, - onChange: this.handleChangeValue, - visible: optionsVisible, - toggleShowOptions: this.handleToggleShowOptions, - testProperty: testProperty, - __source: { - fileName: _jsxFileName, - lineNumber: 293 - } - }))); - } - }]); - - _inherits(SelectInput, _Component); - - return SelectInput; - }(_react.Component); - - SelectInput.propTypes = { - label: _propTypes.default.string, - placeholder: _propTypes.default.string, - done: _propTypes.default.string, - value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]), - options: _propTypes.default.arrayOf(_propTypes.default.shape({ - value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]), - label: _propTypes.default.string - })).isRequired, - disabled: _propTypes.default.bool, - loading: _propTypes.default.bool, - colors: _propTypes.default.shape({ - normal: _propTypes.default.string, - light: _propTypes.default.string, - dark: _propTypes.default.string - }).isRequired, - onChange: _propTypes.default.func, - renderLabel: _propTypes.default.func, - labelProps: _propTypes.default.object, - valueProps: _propTypes.default.object, - renderArrowIcon: _propTypes.default.func, - labelStyle: _reactNative.Text.propTypes.style, - loadingContainerStyle: _reactNative.ViewPropTypes.style, - valueContainerStyle: _reactNative.ViewPropTypes.style, - valueStyle: _reactNative.Text.propTypes.style, - containerStyle: _reactNative.ViewPropTypes.style, - innerContainerStyle: _reactNative.ViewPropTypes.style, - testProperty: _propTypes.default.string - }; - SelectInput.defaultProps = { - label: null, - placeholder: 'Select a value', - done: 'Done', - value: null, - arrowIcon: null, - disabled: false, - loading: false, - colors: { - normal: '#9C9C9C', - light: '#D9D9D9', - dark: '#545454' - }, - onChange: function onChange() {}, - renderLabel: null, - labelProps: {}, - valueProps: {}, - renderArrowIcon: null, - labelStyle: null, - loadingContainerStyle: null, - valueContainerStyle: null, - valueStyle: null, - containerStyle: null, - innerContainerStyle: null, - testProperty: null - }; - SelectInput = _wrapComponent("SelectInput")(SelectInput); - - var styles = function styles(_ref2) { - var colors = _ref2.colors; - return _reactNative.StyleSheet.create({ - container: { - zIndex: 1, - flex: 1 - }, - innerContainer: { - flex: 1, - marginBottom: 28, - borderBottomWidth: 1, - borderBottomColor: colors.light, - paddingVertical: 10 - }, - activeInnerContainer: { - borderBottomWidth: 2, - borderBottomColor: colors.dark - }, - label: { - color: colors.normal, - fontSize: 14 - }, - labelDisabled: { - color: colors.normal - }, - valueContainer: { - flexDirection: 'row', - alignItems: 'center', - justifyContent: 'space-between' - }, - loadingContainer: { - paddingTop: _reactNative.Platform.OS === 'ios' ? 9 : 15 - }, - value: { - fontSize: 14, - color: colors.dark, - paddingTop: _reactNative.Platform.OS === 'ios' ? 9 : 15, - marginRight: 15 - }, - valueDisabled: { - color: colors.normal - } - }); - }; - - var _default2 = SelectInput; - exports.default = _default2; -},685,[122,161,143,1,688,689,690,691],"node_modules/@tele2/react-native-select-input/src/SelectInput.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.ARROW_ICON_TYPES = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/@tele2/react-native-select-input/src/Icon.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Icon: { - displayName: "Icon" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/@tele2/react-native-select-input/src/Icon.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var ARROW_ICON_TYPES = { - UP: 'UP', - DOWN: 'DOWN' - }; - exports.ARROW_ICON_TYPES = ARROW_ICON_TYPES; - - var Icon = function (_PureComponent) { - function Icon() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, Icon); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Icon)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.getIconPath = function () { - return _this.props.type === ARROW_ICON_TYPES.UP ? _$$_REQUIRE(_dependencyMap[4], './icons/arrowUp.png') : _$$_REQUIRE(_dependencyMap[5], './icons/arrowDown.png'); - }, _temp)); - } - - _createClass(Icon, [{ - key: "render", - value: function render() { - var _this$props = this.props, - renderArrowIcon = _this$props.renderArrowIcon, - type = _this$props.type, - disabled = _this$props.disabled, - loading = _this$props.loading, - style = _this$props.style, - props = _objectWithoutProperties(_this$props, ["renderArrowIcon", "type", "disabled", "loading", "style"]); - - return renderArrowIcon ? renderArrowIcon({ - type: type, - disabled: disabled, - loading: loading - }) : _react.default.createElement(_reactNative.Image, _extends({}, props, { - source: this.getIconPath(), - style: [styles.image, style], - __source: { - fileName: _jsxFileName, - lineNumber: 43 - } - })); - } - }]); - - _inherits(Icon, _PureComponent); - - return Icon; - }(_react.PureComponent); - - Icon.propTypes = _objectSpread({}, _reactNative.Image.propTypes, { - type: _propTypes.default.oneOf(Object.values(ARROW_ICON_TYPES)).isRequired, - disabled: _propTypes.default.bool.isRequired, - loading: _propTypes.default.bool.isRequired, - renderArrowIcon: _propTypes.default.func - }); - Icon.defaultProps = { - style: null, - renderArrowIcon: null - }; - Icon = _wrapComponent("Icon")(Icon); - - var styles = _reactNative.StyleSheet.create({ - image: { - width: 8, - height: 5, - marginTop: _reactNative.Platform.OS === 'ios' ? 9 : 15 - } - }); - - var _default2 = Icon; - exports.default = _default2; -},688,[122,161,143,1,692,693],"node_modules/@tele2/react-native-select-input/src/Icon.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/node_modules/@tele2/react-native-select-input/src/icons", - "width": 8, - "height": 5, - "scales": [1], - "hash": "c08c0162b9fe43b1f9564e994d3fdfb2", - "name": "arrowUp", - "type": "png" - }); -},692,[158],"node_modules/@tele2/react-native-select-input/src/icons/arrowUp.png"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/node_modules/@tele2/react-native-select-input/src/icons", - "width": 8, - "height": 5, - "scales": [1], - "hash": "6a8bcad79241911501c2e5f2d57d1ff0", - "name": "arrowDown", - "type": "png" - }); -},693,[158],"node_modules/@tele2/react-native-select-input/src/icons/arrowDown.png"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _SlideUpAnimation = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./SlideUpAnimation")); - - var _PickerHeader = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./PickerHeader")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/@tele2/react-native-select-input/src/Picker.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Picker: { - displayName: "Picker" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/@tele2/react-native-select-input/src/Picker.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var Picker = function (_Component) { - function Picker(props) { - var _this; - - _classCallCheck(this, Picker); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(Picker).call(this, props)); - - _this.handleTogglePicker = function (_ref) { - var visible = _ref.visible; - - if (visible) { - return setTimeout(function () { - return _this.setState({ - showPicker: true - }); - }, 150); - } - - return _this.setState({ - showPicker: false - }); - }; - - _this.renderPicker = function () { - return _react.default.createElement(_reactNative.Picker, { - selectedValue: _this.props.value, - onValueChange: _this.props.onChange, - style: _this.styles.pickerContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 70 - } - }, _this.props.options.map(function (option) { - return _react.default.createElement(_reactNative.Picker.Item, { - key: option.value, - value: option.value, - label: option.label, - __source: { - fileName: _jsxFileName, - lineNumber: 76 - } - }); - })); - }; - - _this.state = { - showPicker: false - }; - _this.styles = styles(props); - return _this; - } - - _createClass(Picker, [{ - key: "componentWillReceiveProps", - value: function componentWillReceiveProps(nextProps) { - if (nextProps.visible !== this.props.visible) { - this.handleTogglePicker(nextProps); - } - } - }, { - key: "render", - value: function render() { - var showPicker = this.state.showPicker; - var _this$props = this.props, - visible = _this$props.visible, - done = _this$props.done, - toggleShowOptions = _this$props.toggleShowOptions, - doneStyle = _this$props.doneStyle, - testProperty = _this$props.testProperty; - - if (_reactNative.Platform.OS === 'android') { - return this.renderPicker(); - } - - return _react.default.createElement(_reactNative.Modal, { - animationType: "fade", - visible: visible, - transparent: true, - onRequestClose: toggleShowOptions, - __source: { - fileName: _jsxFileName, - lineNumber: 100 - } - }, _react.default.createElement(_reactNative.TouchableWithoutFeedback, { - onPress: toggleShowOptions, - accessible: false, - __source: { - fileName: _jsxFileName, - lineNumber: 106 - } - }, _react.default.createElement(_reactNative.View, { - style: this.styles.pickerCloseAreaContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 107 - } - }, _react.default.createElement(_SlideUpAnimation.default, { - visible: showPicker, - __source: { - fileName: _jsxFileName, - lineNumber: 108 - } - }, _react.default.createElement(_PickerHeader.default, { - done: done, - toggleShowOptions: toggleShowOptions, - doneStyle: doneStyle, - testProperty: testProperty, - __source: { - fileName: _jsxFileName, - lineNumber: 109 - } - }), this.renderPicker())))); - } - }]); - - _inherits(Picker, _Component); - - return Picker; - }(_react.Component); - - Picker.propTypes = { - done: _propTypes.default.string.isRequired, - visible: _propTypes.default.bool, - value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]), - options: _propTypes.default.arrayOf(_propTypes.default.shape({ - value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]), - label: _propTypes.default.string - })).isRequired, - onChange: _propTypes.default.func, - toggleShowOptions: _propTypes.default.func.isRequired, - doneStyle: _PickerHeader.default.propTypes.doneStyle, - testProperty: _propTypes.default.string - }; - Picker.defaultProps = { - visible: false, - value: null, - onChange: function onChange() {}, - doneStyle: _PickerHeader.default.defaultProps.doneStyle, - testProperty: null - }; - Picker = _wrapComponent("Picker")(Picker); - - var styles = function styles(_ref2) { - var colors = _ref2.colors; - return _reactNative.StyleSheet.create({ - pickerCloseAreaContainer: { - flex: 1, - justifyContent: 'flex-end', - borderColor: 'red', - backgroundColor: 'rgba(0,0,0,0.1)' - }, - pickerContainer: _objectSpread({}, _reactNative.Platform.select({ - ios: { - backgroundColor: colors.light, - width: '100%' - }, - android: { - position: 'absolute', - width: 1000, - height: 1000, - zIndex: 0 - } - })) - }); - }; - - var _default2 = Picker; - exports.default = _default2; -},689,[122,161,143,1,694,695],"node_modules/@tele2/react-native-select-input/src/Picker.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "prop-types")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/@tele2/react-native-select-input/src/SlideUpAnimation.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - SlideUpAnimation: { - displayName: "SlideUpAnimation" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/@tele2/react-native-select-input/src/SlideUpAnimation.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var _Dimensions$get = _reactNative.Dimensions.get('window'), - height = _Dimensions$get.height; - - var SlideUpAnimation = function (_PureComponent) { - function SlideUpAnimation() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, SlideUpAnimation); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SlideUpAnimation)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.state = { - animation: new _reactNative.Animated.Value(-height) - }, _this.startSlideInAnimation = function () { - return _reactNative.Animated.spring(_this.state.animation, { - toValue: 0, - bounciness: 0, - easing: _reactNative.Easing.linear - }).start(); - }, _temp)); - } - - _createClass(SlideUpAnimation, [{ - key: "componentWillReceiveProps", - value: function componentWillReceiveProps(nextProps) { - var isAboutToShow = nextProps.visible && !this.props.visible; - - if (isAboutToShow) { - this.startSlideInAnimation(); - } - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - visible = _this$props.visible, - style = _this$props.style, - props = _objectWithoutProperties(_this$props, ["visible", "style"]); - - if (!visible) { - return null; - } - - return _react.default.createElement(_reactNative.Animated.View, _extends({}, props, { - style: [styles.container, { - bottom: this.state.animation - }], - __source: { - fileName: _jsxFileName, - lineNumber: 52 - } - }), this.props.children); - } - }]); - - _inherits(SlideUpAnimation, _PureComponent); - - return SlideUpAnimation; - }(_react.PureComponent); - - SlideUpAnimation.propTypes = _objectSpread({}, _reactNative.Animated.View.propTypes, { - visible: _propTypes.default.bool.isRequired, - onAnimationEnd: _propTypes.default.func - }); - SlideUpAnimation.defaultProps = { - style: null, - visible: false, - onAnimationEnd: function onAnimationEnd() {} - }; - SlideUpAnimation = _wrapComponent("SlideUpAnimation")(SlideUpAnimation); - - var styles = _reactNative.StyleSheet.create({ - container: { - position: 'absolute', - left: 0, - right: 0 - } - }); - - var _default2 = SlideUpAnimation; - exports.default = _default2; -},694,[122,161,1,143],"node_modules/@tele2/react-native-select-input/src/SlideUpAnimation.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _TestProperties = _$$_REQUIRE(_dependencyMap[3], "./TestProperties"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/@tele2/react-native-select-input/src/PickerHeader.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - var PickerHeader = function PickerHeader(_ref) { - var done = _ref.done, - doneStyle = _ref.doneStyle, - testProperty = _ref.testProperty, - toggleShowOptions = _ref.toggleShowOptions; - return _react.default.createElement(_reactNative.View, { - style: styles.pickerModalHeader, - __source: { - fileName: _jsxFileName, - lineNumber: 12 - } - }, _react.default.createElement(_reactNative.TouchableWithoutFeedback, _extends({ - onPress: toggleShowOptions - }, (0, _TestProperties.testProperties)('header', testProperty), { - __source: { - fileName: _jsxFileName, - lineNumber: 13 - } - }), _react.default.createElement(_reactNative.View, { - __source: { - fileName: _jsxFileName, - lineNumber: 17 - } - }, _react.default.createElement(_reactNative.Text, { - style: [styles.doneText, doneStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 18 - } - }, done)))); - }; - - PickerHeader.propTypes = { - done: _propTypes.default.string.isRequired, - toggleShowOptions: _propTypes.default.func.isRequired, - doneStyle: _reactNative.Text.propTypes.style, - testProperty: _propTypes.default.string - }; - PickerHeader.defaultProps = { - doneStyle: null, - testProperty: null - }; - - var styles = _reactNative.StyleSheet.create({ - pickerModalHeader: { - alignItems: 'flex-end', - backgroundColor: '#F8F8F8', - paddingVertical: 10, - paddingHorizontal: 25 - }, - doneText: { - fontSize: 14, - color: '#000' - } - }); - - var _default = PickerHeader; - exports.default = _default; -},695,[122,143,1,691],"node_modules/@tele2/react-native-select-input/src/PickerHeader.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.testProperties = testProperties; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); - - function testProperties(prefix, testProperty) { - if (testProperty) { - var testLabel = prefix + "-" + testProperty; - return _reactNative.Platform.OS === 'android' ? { - accessibilityLabel: testLabel - } : { - testID: testLabel - }; - } - - return null; - } -},691,[1],"node_modules/@tele2/react-native-select-input/src/TestProperties.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/@tele2/react-native-select-input/src/Loading.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - var Loading = function Loading(_ref) { - var props = _extends({}, _ref); - - return _react.default.createElement(_reactNative.ActivityIndicator, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 5 - } - })); - }; - - Loading.propTypes = _reactNative.ActivityIndicator.propTypes; - Loading.defaultProps = { - size: 'small', - color: '#000' - }; - var _default = Loading; - exports.default = _default; -},690,[122,1],"node_modules/@tele2/react-native-select-input/src/Loading.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.defineProperty(exports, "Button", { - enumerable: true, - get: function get() { - return _Button.default; - } - }); - Object.defineProperty(exports, "Input", { - enumerable: true, - get: function get() { - return _Input.default; - } - }); - Object.defineProperty(exports, "Icon", { - enumerable: true, - get: function get() { - return _Icon.default; - } - }); - Object.defineProperty(exports, "ListItem", { - enumerable: true, - get: function get() { - return _ListItem.default; - } - }); - Object.defineProperty(exports, "SocialIcon", { - enumerable: true, - get: function get() { - return _SocialIcon.default; - } - }); - Object.defineProperty(exports, "Overlay", { - enumerable: true, - get: function get() { - return _Overlay.default; - } - }); - Object.defineProperty(exports, "SearchBar", { - enumerable: true, - get: function get() { - return _SearchBar.default; - } - }); - Object.defineProperty(exports, "Badge", { - enumerable: true, - get: function get() { - return _badge.default; - } - }); - Object.defineProperty(exports, "CheckBox", { - enumerable: true, - get: function get() { - return _CheckBox.default; - } - }); - Object.defineProperty(exports, "Divider", { - enumerable: true, - get: function get() { - return _Divider.default; - } - }); - Object.defineProperty(exports, "Slider", { - enumerable: true, - get: function get() { - return _Slider.default; - } - }); - Object.defineProperty(exports, "ButtonGroup", { - enumerable: true, - get: function get() { - return _ButtonGroup.default; - } - }); - Object.defineProperty(exports, "Card", { - enumerable: true, - get: function get() { - return _Card.default; - } - }); - Object.defineProperty(exports, "Tile", { - enumerable: true, - get: function get() { - return _Tile.default; - } - }); - Object.defineProperty(exports, "Avatar", { - enumerable: true, - get: function get() { - return _Avatar.default; - } - }); - Object.defineProperty(exports, "Rating", { - enumerable: true, - get: function get() { - return _Rating.default; - } - }); - Object.defineProperty(exports, "Header", { - enumerable: true, - get: function get() { - return _Header.default; - } - }); - Object.defineProperty(exports, "PricingCard", { - enumerable: true, - get: function get() { - return _PricingCard.default; - } - }); - Object.defineProperty(exports, "Text", { - enumerable: true, - get: function get() { - return _Text.default; - } - }); - Object.defineProperty(exports, "colors", { - enumerable: true, - get: function get() { - return _colors.default; - } - }); - Object.defineProperty(exports, "getIconType", { - enumerable: true, - get: function get() { - return _getIconType.default; - } - }); - Object.defineProperty(exports, "registerCustomIconType", { - enumerable: true, - get: function get() { - return _getIconType.registerCustomIconType; - } - }); - Object.defineProperty(exports, "normalize", { - enumerable: true, - get: function get() { - return _normalizeText.default; - } - }); - - var _Button = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./buttons/Button")); - - var _Input = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./input/Input")); - - var _Icon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "./icons/Icon")); - - var _ListItem = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "./list/ListItem")); - - var _SocialIcon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./social/SocialIcon")); - - var _Overlay = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./overlay/Overlay")); - - var _SearchBar = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "./searchbar/SearchBar")); - - var _badge = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[7], "./badge/badge")); - - var _CheckBox = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[8], "./checkbox/CheckBox")); - - var _Divider = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[9], "./divider/Divider")); - - var _Slider = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[10], "./slider/Slider")); - - var _ButtonGroup = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[11], "./buttons/ButtonGroup")); - - var _Card = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[12], "./card/Card")); - - var _Tile = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[13], "./tile/Tile")); - - var _Avatar = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[14], "./avatar/Avatar")); - - var _Rating = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[15], "./rating/Rating")); - - var _Header = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[16], "./header/Header")); - - var _PricingCard = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[17], "./pricing/PricingCard")); - - var _Text = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[18], "./text/Text")); - - var _colors = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[19], "./config/colors")); - - var _getIconType = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[20], "./helpers/getIconType")); - - var _normalizeText = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[21], "./helpers/normalizeText")); - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -},686,[696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717],"node_modules/react-native-elements/src/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _colors = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../config/colors")); - - var _renderNode = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "../helpers/renderNode")); - - var _Icon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "../icons/Icon")); - - var _nodeType = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[7], "../helpers/nodeType")); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[8], "../config/ViewPropTypes")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/buttons/Button.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Button: { - displayName: "Button" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/buttons/Button.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var log = function log() { - console.log('Please attach a method to this component'); - }; - - var Button = function (_Component) { - function Button() { - _classCallCheck(this, Button); - - return _possibleConstructorReturn(this, _getPrototypeOf(Button).apply(this, arguments)); - } - - _createClass(Button, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this$props = this.props, - linearGradientProps = _this$props.linearGradientProps, - ViewComponent = _this$props.ViewComponent; - - if (linearGradientProps && !global.Expo && !ViewComponent) { - console.error("You need to pass a ViewComponent to use linearGradientProps !\nExample: ViewComponent={require('react-native-linear-gradient')}"); - } - } - }, { - key: "render", - value: function render() { - var _this$props2 = this.props, - TouchableComponent = _this$props2.TouchableComponent, - containerStyle = _this$props2.containerStyle, - onPress = _this$props2.onPress, - buttonStyle = _this$props2.buttonStyle, - clear = _this$props2.clear, - loading = _this$props2.loading, - loadingStyle = _this$props2.loadingStyle, - loadingProps = _this$props2.loadingProps, - title = _this$props2.title, - titleProps = _this$props2.titleProps, - titleStyle = _this$props2.titleStyle, - icon = _this$props2.icon, - iconContainerStyle = _this$props2.iconContainerStyle, - iconRight = _this$props2.iconRight, - disabled = _this$props2.disabled, - disabledStyle = _this$props2.disabledStyle, - disabledTitleStyle = _this$props2.disabledTitleStyle, - raised = _this$props2.raised, - linearGradientProps = _this$props2.linearGradientProps, - _this$props2$ViewComp = _this$props2.ViewComponent, - ViewComponent = _this$props2$ViewComp === void 0 ? linearGradientProps && global.Expo ? global.Expo.LinearGradient : _reactNative.View : _this$props2$ViewComp, - attributes = _objectWithoutProperties(_this$props2, ["TouchableComponent", "containerStyle", "onPress", "buttonStyle", "clear", "loading", "loadingStyle", "loadingProps", "title", "titleProps", "titleStyle", "icon", "iconContainerStyle", "iconRight", "disabled", "disabledStyle", "disabledTitleStyle", "raised", "linearGradientProps", "ViewComponent"]); - - if (_reactNative.Platform.OS === 'android' && buttonStyle.borderRadius && !attributes.background) { - if (_reactNative.Platform.VERSION >= 21) { - attributes.background = _reactNative.TouchableNativeFeedback.Ripple('ThemeAttrAndroid', true); - } else { - attributes.background = _reactNative.TouchableNativeFeedback.SelectableBackground(); - } - } - - return _react.default.createElement(_reactNative.View, { - style: [containerStyle, raised && styles.raised], - __source: { - fileName: _jsxFileName, - lineNumber: 76 - } - }, _react.default.createElement(TouchableComponent, _extends({}, attributes, { - onPress: onPress, - underlayColor: clear ? 'transparent' : undefined, - activeOpacity: clear ? 0 : undefined, - disabled: disabled, - __source: { - fileName: _jsxFileName, - lineNumber: 77 - } - }), _react.default.createElement(ViewComponent, _extends({}, linearGradientProps, { - style: [styles.button, buttonStyle, disabled && styles.disabled, disabled && disabledStyle, clear && { - backgroundColor: 'transparent', - elevation: 0 - }, linearGradientProps && { - backgroundColor: 'transparent' - }], - __source: { - fileName: _jsxFileName, - lineNumber: 84 - } - }), loading && _react.default.createElement(_reactNative.ActivityIndicator, _extends({ - animating: true, - style: [styles.loading, loadingStyle], - color: loadingProps.color, - size: loadingProps.size - }, loadingProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 96 - } - })), !loading && icon && !iconRight && (0, _renderNode.default)(_Icon.default, icon, { - containerStyle: [styles.iconContainer, iconContainerStyle] - }), !loading && !!title && _react.default.createElement(_reactNative.Text, _extends({ - style: [styles.title, titleStyle, disabled && styles.disabledTitle, disabled && disabledTitleStyle] - }, titleProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 112 - } - }), title), !loading && icon && iconRight && (0, _renderNode.default)(_Icon.default, icon, { - containerStyle: [styles.iconContainer, iconContainerStyle] - })))); - } - }]); - - _inherits(Button, _Component); - - return Button; - }(_react.Component); - - Button = _wrapComponent("Button")(Button); - Button.propTypes = { - title: _propTypes.default.string, - titleStyle: _reactNative.Text.propTypes.style, - titleProps: _propTypes.default.object, - buttonStyle: _ViewPropTypes.default.style, - clear: _propTypes.default.bool, - loading: _propTypes.default.bool, - loadingStyle: _ViewPropTypes.default.style, - loadingProps: _propTypes.default.object, - onPress: _propTypes.default.any, - containerStyle: _ViewPropTypes.default.style, - icon: _nodeType.default, - iconContainerStyle: _ViewPropTypes.default.style, - iconRight: _propTypes.default.bool, - linearGradientProps: _propTypes.default.object, - TouchableComponent: _propTypes.default.any, - ViewComponent: _propTypes.default.any, - disabled: _propTypes.default.bool, - disabledStyle: _ViewPropTypes.default.style, - disabledTitleStyle: _reactNative.Text.propTypes.style, - raised: _propTypes.default.bool - }; - Button.defaultProps = { - title: 'Welcome to\nReact Native Elements', - iconRight: false, - TouchableComponent: _reactNative.Platform.OS === 'ios' ? _reactNative.TouchableOpacity : _reactNative.TouchableNativeFeedback, - onPress: log, - clear: false, - loadingProps: { - color: 'white', - size: 'small' - }, - buttonStyle: { - borderRadius: 3 - }, - disabled: false, - raised: false - }; - - var styles = _reactNative.StyleSheet.create({ - button: _objectSpread({ - flexDirection: 'row', - justifyContent: 'center', - alignItems: 'center', - borderRadius: 3, - backgroundColor: _colors.default.primary - }, _reactNative.Platform.select({ - android: { - elevation: 4, - borderRadius: 2 - } - })), - disabled: _objectSpread({ - backgroundColor: '#D1D5D8' - }, _reactNative.Platform.select({ - android: { - borderRadius: 2 - } - })), - title: _objectSpread({ - backgroundColor: 'transparent', - color: 'white', - fontSize: 16, - textAlign: 'center', - padding: 8 - }, _reactNative.Platform.select({ - ios: { - fontSize: 18 - }, - android: { - fontWeight: '500' - } - })), - disabledTitle: { - color: '#F3F4F5' - }, - iconContainer: { - marginHorizontal: 5 - }, - raised: _objectSpread({}, _reactNative.Platform.select({ - ios: { - shadowColor: 'rgba(0,0,0, .4)', - shadowOffset: { - height: 1, - width: 1 - }, - shadowOpacity: 1, - shadowRadius: 1 - }, - android: { - backgroundColor: '#fff', - elevation: 2 - } - })) - }); - - var _default2 = Button; - exports.default = _default2; -},696,[122,161,143,1,715,718,698,719,720],"node_modules/react-native-elements/src/buttons/Button.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _default = { - primary: '#2089dc', - secondary: '#8F0CE8', - grey0: '#393e42', - grey1: '#43484d', - grey2: '#5e6977', - grey3: '#86939e', - grey4: '#bdc6cf', - grey5: '#e1e8ee', - greyOutline: '#bbb', - searchBg: '#303337', - error: '#ff190c' - }; - exports.default = _default; -},715,[],"node_modules/react-native-elements/src/config/colors.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/helpers/renderNode.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - var _default = function _default(Component, content, defaultIconProps) { - if (content === null || content === false) { - return null; - } - - if (_react.default.isValidElement(content)) { - return content; - } - - if (content === true) { - return _react.default.createElement(Component, _extends({}, defaultIconProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 12 - } - })); - } - - return _react.default.createElement(Component, _extends({}, defaultIconProps, content, { - __source: { - fileName: _jsxFileName, - lineNumber: 15 - } - })); - }; - - exports.default = _default; -},718,[122],"node_modules/react-native-elements/src/helpers/renderNode.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "prop-types")); - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "react")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _getIconType = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../helpers/getIconType")); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../config/ViewPropTypes")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/icons/Icon.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - var Icon = function Icon(props) { - var type = props.type, - name = props.name, - size = props.size, - color = props.color, - iconStyle = props.iconStyle, - underlayColor = props.underlayColor, - reverse = props.reverse, - raised = props.raised, - containerStyle = props.containerStyle, - reverseColor = props.reverseColor, - onPress = props.onPress, - _props$component = props.component, - Component = _props$component === void 0 ? onPress ? _reactNative.TouchableHighlight : _reactNative.View : _props$component, - attributes = _objectWithoutProperties(props, ["type", "name", "size", "color", "iconStyle", "underlayColor", "reverse", "raised", "containerStyle", "reverseColor", "onPress", "component"]); - - var Icon = (0, _getIconType.default)(type || 'material'); - return _react.default.createElement(_reactNative.View, { - style: containerStyle && containerStyle, - __source: { - fileName: _jsxFileName, - lineNumber: 32 - } - }, _react.default.createElement(Component, _extends({}, attributes, { - underlayColor: reverse ? color : underlayColor || color, - style: [(reverse || raised) && styles.button, (reverse || raised) && { - borderRadius: size + 4, - height: size * 2 + 4, - width: size * 2 + 4 - }, raised && styles.raised, { - backgroundColor: reverse ? color : raised ? 'white' : 'transparent', - alignItems: 'center', - justifyContent: 'center' - }], - onPress: onPress, - __source: { - fileName: _jsxFileName, - lineNumber: 33 - } - }), _react.default.createElement(Icon, { - style: [{ - backgroundColor: 'transparent' - }, iconStyle && iconStyle], - size: size, - name: name, - color: reverse ? reverseColor : color, - __source: { - fileName: _jsxFileName, - lineNumber: 52 - } - }))); - }; - - Icon.propTypes = { - type: _propTypes.default.string, - name: _propTypes.default.string, - size: _propTypes.default.number, - color: _propTypes.default.string, - component: _propTypes.default.func, - underlayColor: _propTypes.default.string, - reverse: _propTypes.default.bool, - raised: _propTypes.default.bool, - containerStyle: _ViewPropTypes.default.style, - iconStyle: _reactNative.Text.propTypes.style, - onPress: _propTypes.default.func, - reverseColor: _propTypes.default.string - }; - Icon.defaultProps = { - underlayColor: 'white', - reverse: false, - raised: false, - size: 24, - color: 'black', - reverseColor: 'white' - }; - - var styles = _reactNative.StyleSheet.create({ - button: { - margin: 7 - }, - raised: _objectSpread({}, _reactNative.Platform.select({ - ios: { - shadowColor: 'rgba(0,0,0, .4)', - shadowOffset: { - height: 1, - width: 1 - }, - shadowOpacity: 1, - shadowRadius: 1 - }, - android: { - elevation: 2 - } - })) - }); - - var _default = Icon; - exports.default = _default; -},698,[143,122,1,716,720],"node_modules/react-native-elements/src/icons/Icon.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.registerCustomIconType = void 0; - - var _Zocial = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react-native-vector-icons/Zocial")); - - var _Octicons = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "react-native-vector-icons/Octicons")); - - var _MaterialIcons = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "react-native-vector-icons/MaterialIcons")); - - var _MaterialCommunityIcons = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "react-native-vector-icons/MaterialCommunityIcons")); - - var _Ionicons = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "react-native-vector-icons/Ionicons")); - - var _Foundation = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "react-native-vector-icons/Foundation")); - - var _EvilIcons = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "react-native-vector-icons/EvilIcons")); - - var _Entypo = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[7], "react-native-vector-icons/Entypo")); - - var _FontAwesome = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[8], "react-native-vector-icons/FontAwesome")); - - var _SimpleLineIcons = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[9], "react-native-vector-icons/SimpleLineIcons")); - - var _Feather = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[10], "react-native-vector-icons/Feather")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var customIcons = {}; - - var registerCustomIconType = function registerCustomIconType(id, customIcon) { - customIcons[id] = customIcon; - }; - - exports.registerCustomIconType = registerCustomIconType; - - var _default = function _default(type) { - switch (type) { - case 'zocial': - return _Zocial.default; - - case 'octicon': - return _Octicons.default; - - case 'material': - return _MaterialIcons.default; - - case 'material-community': - return _MaterialCommunityIcons.default; - - case 'ionicon': - return _Ionicons.default; - - case 'foundation': - return _Foundation.default; - - case 'evilicon': - return _EvilIcons.default; - - case 'entypo': - return _Entypo.default; - - case 'font-awesome': - return _FontAwesome.default; - - case 'simple-line-icon': - return _SimpleLineIcons.default; - - case 'feather': - return _Feather.default; - - default: - if (customIcons.hasOwnProperty(type)) { - return customIcons[type]; - } - - return _MaterialIcons.default; - } - }; - - exports.default = _default; -},716,[721,722,723,510,724,725,726,727,728,729,730],"node_modules/react-native-elements/src/helpers/getIconType.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getImageSource = exports.ToolbarAndroid = exports.TabBarItemIOS = exports.TabBarItem = exports.Button = exports.default = void 0; - - var _createIconSet = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./lib/create-icon-set")); - - var _Zocial = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./glyphmaps/Zocial.json")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var iconSet = (0, _createIconSet.default)(_Zocial.default, 'zocial', 'Zocial.ttf'); - var _default = iconSet; - exports.default = _default; - var Button = iconSet.Button; - exports.Button = Button; - var TabBarItem = iconSet.TabBarItem; - exports.TabBarItem = TabBarItem; - var TabBarItemIOS = iconSet.TabBarItemIOS; - exports.TabBarItemIOS = TabBarItemIOS; - var ToolbarAndroid = iconSet.ToolbarAndroid; - exports.ToolbarAndroid = ToolbarAndroid; - var getImageSource = iconSet.getImageSource; - exports.getImageSource = getImageSource; -},721,[633,731],"node_modules/react-native-vector-icons/Zocial.js"); -__d(function(global, require, module, exports) { - module.exports = { - "acrobat": 61696, - "amazon": 61697, - "android": 61698, - "angellist": 61699, - "aol": 61700, - "appnet": 61701, - "appstore": 61702, - "bitbucket": 61703, - "bitcoin": 61704, - "blogger": 61705, - "buffer": 61706, - "cal": 61707, - "call": 61708, - "cart": 61709, - "chrome": 61710, - "cloudapp": 61711, - "creativecommons": 61712, - "delicious": 61713, - "digg": 61714, - "disqus": 61715, - "dribbble": 61716, - "dropbox": 61717, - "drupal": 61718, - "dwolla": 61720, - "email": 61721, - "eventasaurus": 61722, - "eventbrite": 61723, - "eventful": 61724, - "evernote": 61725, - "facebook": 61726, - "fivehundredpx": 61727, - "flattr": 61728, - "flickr": 61729, - "forrst": 61730, - "foursquare": 61731, - "github": 61732, - "gmail": 61733, - "google": 61734, - "googleplay": 61735, - "googleplus": 61736, - "gowalla": 61737, - "grooveshark": 61738, - "guest": 61739, - "html5": 61740, - "ie": 61741, - "instagram": 61742, - "instapaper": 61743, - "intensedebate": 61744, - "itunes": 61745, - "klout": 61746, - "lanyrd": 61747, - "lastfm": 61748, - "lego": 61749, - "linkedin": 61750, - "lkdto": 61751, - "logmein": 61752, - "macstore": 61753, - "meetup": 61754, - "myspace": 61755, - "ninetyninedesigns": 61756, - "openid": 61757, - "opentable": 61758, - "paypal": 61759, - "persona": 61796, - "pinboard": 61760, - "pinterest": 61761, - "plancast": 61762, - "plurk": 61763, - "pocket": 61764, - "podcast": 61765, - "posterous": 61766, - "print": 61767, - "quora": 61768, - "reddit": 61769, - "rss": 61770, - "scribd": 61771, - "skype": 61772, - "smashing": 61773, - "songkick": 61774, - "soundcloud": 61775, - "spotify": 61776, - "stackoverflow": 61777, - "statusnet": 61778, - "steam": 61779, - "stripe": 61780, - "stumbleupon": 61781, - "tumblr": 61782, - "twitter": 61783, - "viadeo": 61784, - "vimeo": 61785, - "vk": 61786, - "weibo": 61787, - "wikipedia": 61788, - "windows": 61789, - "wordpress": 61790, - "xing": 61791, - "yahoo": 61792, - "ycombinator": 61793, - "yelp": 61794, - "youtube": 61795 -}; -},731,[],"node_modules/react-native-vector-icons/glyphmaps/Zocial.json"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getImageSource = exports.ToolbarAndroid = exports.TabBarItemIOS = exports.TabBarItem = exports.Button = exports.default = void 0; - - var _createIconSet = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./lib/create-icon-set")); - - var _Octicons = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./glyphmaps/Octicons.json")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var iconSet = (0, _createIconSet.default)(_Octicons.default, 'Octicons', 'Octicons.ttf'); - var _default = iconSet; - exports.default = _default; - var Button = iconSet.Button; - exports.Button = Button; - var TabBarItem = iconSet.TabBarItem; - exports.TabBarItem = TabBarItem; - var TabBarItemIOS = iconSet.TabBarItemIOS; - exports.TabBarItemIOS = TabBarItemIOS; - var ToolbarAndroid = iconSet.ToolbarAndroid; - exports.ToolbarAndroid = ToolbarAndroid; - var getImageSource = iconSet.getImageSource; - exports.getImageSource = getImageSource; -},722,[633,732],"node_modules/react-native-vector-icons/Octicons.js"); -__d(function(global, require, module, exports) { - module.exports = { - "alert": 61696, - "archive": 61697, - "arrow-down": 61698, - "arrow-left": 61699, - "arrow-right": 61700, - "arrow-small-down": 61701, - "arrow-small-left": 61702, - "arrow-small-right": 61703, - "arrow-small-up": 61704, - "arrow-up": 61705, - "beaker": 61706, - "bell": 61707, - "bold": 61708, - "book": 61709, - "bookmark": 61710, - "briefcase": 61711, - "broadcast": 61712, - "browser": 61713, - "bug": 61714, - "calendar": 61715, - "check": 61716, - "checklist": 61717, - "chevron-down": 61718, - "chevron-left": 61719, - "chevron-right": 61720, - "chevron-up": 61721, - "circle-slash": 61722, - "circuit-board": 61723, - "clippy": 61724, - "clock": 61725, - "cloud-download": 61726, - "cloud-upload": 61727, - "code": 61728, - "comment": 61729, - "comment-discussion": 61730, - "credit-card": 61731, - "dash": 61732, - "dashboard": 61733, - "database": 61734, - "desktop-download": 61735, - "device-camera": 61736, - "device-camera-video": 61737, - "device-desktop": 61738, - "device-mobile": 61739, - "diff": 61740, - "diff-added": 61741, - "diff-ignored": 61742, - "diff-modified": 61743, - "diff-removed": 61744, - "diff-renamed": 61745, - "ellipsis": 61746, - "eye": 61747, - "file": 61748, - "file-binary": 61749, - "file-code": 61750, - "file-directory": 61751, - "file-media": 61752, - "file-pdf": 61753, - "file-submodule": 61754, - "file-symlink-directory": 61755, - "file-symlink-file": 61756, - "file-zip": 61757, - "flame": 61758, - "fold": 61759, - "gear": 61760, - "gift": 61761, - "gist": 61762, - "gist-secret": 61763, - "git-branch": 61764, - "git-commit": 61765, - "git-compare": 61766, - "git-merge": 61767, - "git-pull-request": 61768, - "globe": 61769, - "grabber": 61770, - "graph": 61771, - "heart": 61772, - "history": 61773, - "home": 61774, - "horizontal-rule": 61775, - "hubot": 61776, - "inbox": 61777, - "info": 61778, - "issue-closed": 61779, - "issue-opened": 61780, - "issue-reopened": 61781, - "italic": 61782, - "jersey": 61783, - "kebab-horizontal": 61784, - "kebab-vertical": 61785, - "key": 61786, - "keyboard": 61787, - "law": 61788, - "light-bulb": 61789, - "link": 61790, - "link-external": 61791, - "list-ordered": 61792, - "list-unordered": 61793, - "location": 61794, - "lock": 61795, - "logo-gist": 61796, - "logo-github": 61797, - "mail": 61798, - "mail-read": 61799, - "mark-github": 61800, - "markdown": 61801, - "megaphone": 61802, - "mention": 61803, - "milestone": 61804, - "mirror": 61805, - "mortar-board": 61806, - "mute": 61807, - "no-newline": 61808, - "note": 61809, - "octoface": 61810, - "organization": 61811, - "package": 61812, - "paintcan": 61813, - "pencil": 61814, - "person": 61815, - "pin": 61816, - "plug": 61817, - "plus": 61818, - "plus-small": 61819, - "primitive-dot": 61820, - "primitive-square": 61821, - "project": 61822, - "pulse": 61823, - "question": 61824, - "quote": 61825, - "radio-tower": 61826, - "reply": 61827, - "repo": 61828, - "repo-clone": 61829, - "repo-force-push": 61830, - "repo-forked": 61831, - "repo-pull": 61832, - "repo-push": 61833, - "report": 61834, - "rocket": 61835, - "rss": 61836, - "ruby": 61837, - "screen-full": 61838, - "screen-normal": 61839, - "search": 61840, - "server": 61841, - "settings": 61842, - "shield": 61843, - "sign-in": 61844, - "sign-out": 61845, - "smiley": 61846, - "squirrel": 61847, - "star": 61848, - "stop": 61849, - "sync": 61850, - "tag": 61851, - "tasklist": 61852, - "telescope": 61853, - "terminal": 61854, - "text-size": 61855, - "three-bars": 61856, - "thumbsdown": 61857, - "thumbsup": 61858, - "tools": 61859, - "trashcan": 61860, - "triangle-down": 61861, - "triangle-left": 61862, - "triangle-right": 61863, - "triangle-up": 61864, - "unfold": 61865, - "unmute": 61866, - "unverified": 61867, - "verified": 61868, - "versions": 61869, - "watch": 61870, - "x": 61871, - "zap": 61872 -}; -},732,[],"node_modules/react-native-vector-icons/glyphmaps/Octicons.json"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getImageSource = exports.ToolbarAndroid = exports.TabBarItemIOS = exports.TabBarItem = exports.Button = exports.default = void 0; - - var _createIconSet = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./lib/create-icon-set")); - - var _MaterialIcons = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./glyphmaps/MaterialIcons.json")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var iconSet = (0, _createIconSet.default)(_MaterialIcons.default, 'Material Icons', 'MaterialIcons.ttf'); - var _default = iconSet; - exports.default = _default; - var Button = iconSet.Button; - exports.Button = Button; - var TabBarItem = iconSet.TabBarItem; - exports.TabBarItem = TabBarItem; - var TabBarItemIOS = iconSet.TabBarItemIOS; - exports.TabBarItemIOS = TabBarItemIOS; - var ToolbarAndroid = iconSet.ToolbarAndroid; - exports.ToolbarAndroid = ToolbarAndroid; - var getImageSource = iconSet.getImageSource; - exports.getImageSource = getImageSource; -},723,[633,733],"node_modules/react-native-vector-icons/MaterialIcons.js"); -__d(function(global, require, module, exports) { - module.exports = { - "3d-rotation": 59469, - "ac-unit": 60219, - "access-alarm": 57744, - "access-alarms": 57745, - "access-time": 57746, - "accessibility": 59470, - "accessible": 59668, - "account-balance": 59471, - "account-balance-wallet": 59472, - "account-box": 59473, - "account-circle": 59475, - "adb": 58894, - "add": 57669, - "add-a-photo": 58425, - "add-alarm": 57747, - "add-alert": 57347, - "add-box": 57670, - "add-circle": 57671, - "add-circle-outline": 57672, - "add-location": 58727, - "add-shopping-cart": 59476, - "add-to-photos": 58269, - "add-to-queue": 57436, - "adjust": 58270, - "airline-seat-flat": 58928, - "airline-seat-flat-angled": 58929, - "airline-seat-individual-suite": 58930, - "airline-seat-legroom-extra": 58931, - "airline-seat-legroom-normal": 58932, - "airline-seat-legroom-reduced": 58933, - "airline-seat-recline-extra": 58934, - "airline-seat-recline-normal": 58935, - "airplanemode-active": 57749, - "airplanemode-inactive": 57748, - "airplay": 57429, - "airport-shuttle": 60220, - "alarm": 59477, - "alarm-add": 59478, - "alarm-off": 59479, - "alarm-on": 59480, - "album": 57369, - "all-inclusive": 60221, - "all-out": 59659, - "android": 59481, - "announcement": 59482, - "apps": 58819, - "archive": 57673, - "arrow-back": 58820, - "arrow-downward": 58843, - "arrow-drop-down": 58821, - "arrow-drop-down-circle": 58822, - "arrow-drop-up": 58823, - "arrow-forward": 58824, - "arrow-upward": 58840, - "art-track": 57440, - "aspect-ratio": 59483, - "assessment": 59484, - "assignment": 59485, - "assignment-ind": 59486, - "assignment-late": 59487, - "assignment-return": 59488, - "assignment-returned": 59489, - "assignment-turned-in": 59490, - "assistant": 58271, - "assistant-photo": 58272, - "attach-file": 57894, - "attach-money": 57895, - "attachment": 58044, - "audiotrack": 58273, - "autorenew": 59491, - "av-timer": 57371, - "backspace": 57674, - "backup": 59492, - "battery-alert": 57756, - "battery-charging-full": 57763, - "battery-full": 57764, - "battery-std": 57765, - "battery-unknown": 57766, - "beach-access": 60222, - "beenhere": 58669, - "block": 57675, - "bluetooth": 57767, - "bluetooth-audio": 58895, - "bluetooth-connected": 57768, - "bluetooth-disabled": 57769, - "bluetooth-searching": 57770, - "blur-circular": 58274, - "blur-linear": 58275, - "blur-off": 58276, - "blur-on": 58277, - "book": 59493, - "bookmark": 59494, - "bookmark-border": 59495, - "border-all": 57896, - "border-bottom": 57897, - "border-clear": 57898, - "border-color": 57899, - "border-horizontal": 57900, - "border-inner": 57901, - "border-left": 57902, - "border-outer": 57903, - "border-right": 57904, - "border-style": 57905, - "border-top": 57906, - "border-vertical": 57907, - "branding-watermark": 57451, - "brightness-1": 58278, - "brightness-2": 58279, - "brightness-3": 58280, - "brightness-4": 58281, - "brightness-5": 58282, - "brightness-6": 58283, - "brightness-7": 58284, - "brightness-auto": 57771, - "brightness-high": 57772, - "brightness-low": 57773, - "brightness-medium": 57774, - "broken-image": 58285, - "brush": 58286, - "bubble-chart": 59101, - "bug-report": 59496, - "build": 59497, - "burst-mode": 58428, - "business": 57519, - "business-center": 60223, - "cached": 59498, - "cake": 59369, - "call": 57520, - "call-end": 57521, - "call-made": 57522, - "call-merge": 57523, - "call-missed": 57524, - "call-missed-outgoing": 57572, - "call-received": 57525, - "call-split": 57526, - "call-to-action": 57452, - "camera": 58287, - "camera-alt": 58288, - "camera-enhance": 59644, - "camera-front": 58289, - "camera-rear": 58290, - "camera-roll": 58291, - "cancel": 58825, - "card-giftcard": 59638, - "card-membership": 59639, - "card-travel": 59640, - "casino": 60224, - "cast": 58119, - "cast-connected": 58120, - "center-focus-strong": 58292, - "center-focus-weak": 58293, - "change-history": 59499, - "chat": 57527, - "chat-bubble": 57546, - "chat-bubble-outline": 57547, - "check": 58826, - "check-box": 59444, - "check-box-outline-blank": 59445, - "check-circle": 59500, - "chevron-left": 58827, - "chevron-right": 58828, - "child-care": 60225, - "child-friendly": 60226, - "chrome-reader-mode": 59501, - "class": 59502, - "clear": 57676, - "clear-all": 57528, - "close": 58829, - "closed-caption": 57372, - "cloud": 58045, - "cloud-circle": 58046, - "cloud-done": 58047, - "cloud-download": 58048, - "cloud-off": 58049, - "cloud-queue": 58050, - "cloud-upload": 58051, - "code": 59503, - "collections": 58294, - "collections-bookmark": 58417, - "color-lens": 58295, - "colorize": 58296, - "comment": 57529, - "compare": 58297, - "compare-arrows": 59669, - "computer": 58122, - "confirmation-number": 58936, - "contact-mail": 57552, - "contact-phone": 57551, - "contacts": 57530, - "content-copy": 57677, - "content-cut": 57678, - "content-paste": 57679, - "control-point": 58298, - "control-point-duplicate": 58299, - "copyright": 59660, - "create": 57680, - "create-new-folder": 58060, - "credit-card": 59504, - "crop": 58302, - "crop-16-9": 58300, - "crop-3-2": 58301, - "crop-5-4": 58303, - "crop-7-5": 58304, - "crop-din": 58305, - "crop-free": 58306, - "crop-landscape": 58307, - "crop-original": 58308, - "crop-portrait": 58309, - "crop-rotate": 58423, - "crop-square": 58310, - "dashboard": 59505, - "data-usage": 57775, - "date-range": 59670, - "dehaze": 58311, - "delete": 59506, - "delete-forever": 59691, - "delete-sweep": 57708, - "description": 59507, - "desktop-mac": 58123, - "desktop-windows": 58124, - "details": 58312, - "developer-board": 58125, - "developer-mode": 57776, - "device-hub": 58165, - "devices": 57777, - "devices-other": 58167, - "dialer-sip": 57531, - "dialpad": 57532, - "directions": 58670, - "directions-bike": 58671, - "directions-boat": 58674, - "directions-bus": 58672, - "directions-car": 58673, - "directions-railway": 58676, - "directions-run": 58726, - "directions-subway": 58675, - "directions-transit": 58677, - "directions-walk": 58678, - "disc-full": 58896, - "dns": 59509, - "do-not-disturb": 58898, - "do-not-disturb-alt": 58897, - "do-not-disturb-off": 58947, - "do-not-disturb-on": 58948, - "dock": 58126, - "domain": 59374, - "done": 59510, - "done-all": 59511, - "donut-large": 59671, - "donut-small": 59672, - "drafts": 57681, - "drag-handle": 57949, - "drive-eta": 58899, - "dvr": 57778, - "edit": 58313, - "edit-location": 58728, - "eject": 59643, - "email": 57534, - "enhanced-encryption": 58943, - "equalizer": 57373, - "error": 57344, - "error-outline": 57345, - "euro-symbol": 59686, - "ev-station": 58733, - "event": 59512, - "event-available": 58900, - "event-busy": 58901, - "event-note": 58902, - "event-seat": 59651, - "exit-to-app": 59513, - "expand-less": 58830, - "expand-more": 58831, - "explicit": 57374, - "explore": 59514, - "exposure": 58314, - "exposure-neg-1": 58315, - "exposure-neg-2": 58316, - "exposure-plus-1": 58317, - "exposure-plus-2": 58318, - "exposure-zero": 58319, - "extension": 59515, - "face": 59516, - "fast-forward": 57375, - "fast-rewind": 57376, - "favorite": 59517, - "favorite-border": 59518, - "featured-play-list": 57453, - "featured-video": 57454, - "feedback": 59519, - "fiber-dvr": 57437, - "fiber-manual-record": 57441, - "fiber-new": 57438, - "fiber-pin": 57450, - "fiber-smart-record": 57442, - "file-download": 58052, - "file-upload": 58054, - "filter": 58323, - "filter-1": 58320, - "filter-2": 58321, - "filter-3": 58322, - "filter-4": 58324, - "filter-5": 58325, - "filter-6": 58326, - "filter-7": 58327, - "filter-8": 58328, - "filter-9": 58329, - "filter-9-plus": 58330, - "filter-b-and-w": 58331, - "filter-center-focus": 58332, - "filter-drama": 58333, - "filter-frames": 58334, - "filter-hdr": 58335, - "filter-list": 57682, - "filter-none": 58336, - "filter-tilt-shift": 58338, - "filter-vintage": 58339, - "find-in-page": 59520, - "find-replace": 59521, - "fingerprint": 59661, - "first-page": 58844, - "fitness-center": 60227, - "flag": 57683, - "flare": 58340, - "flash-auto": 58341, - "flash-off": 58342, - "flash-on": 58343, - "flight": 58681, - "flight-land": 59652, - "flight-takeoff": 59653, - "flip": 58344, - "flip-to-back": 59522, - "flip-to-front": 59523, - "folder": 58055, - "folder-open": 58056, - "folder-shared": 58057, - "folder-special": 58903, - "font-download": 57703, - "format-align-center": 57908, - "format-align-justify": 57909, - "format-align-left": 57910, - "format-align-right": 57911, - "format-bold": 57912, - "format-clear": 57913, - "format-color-fill": 57914, - "format-color-reset": 57915, - "format-color-text": 57916, - "format-indent-decrease": 57917, - "format-indent-increase": 57918, - "format-italic": 57919, - "format-line-spacing": 57920, - "format-list-bulleted": 57921, - "format-list-numbered": 57922, - "format-paint": 57923, - "format-quote": 57924, - "format-shapes": 57950, - "format-size": 57925, - "format-strikethrough": 57926, - "format-textdirection-l-to-r": 57927, - "format-textdirection-r-to-l": 57928, - "format-underlined": 57929, - "forum": 57535, - "forward": 57684, - "forward-10": 57430, - "forward-30": 57431, - "forward-5": 57432, - "free-breakfast": 60228, - "fullscreen": 58832, - "fullscreen-exit": 58833, - "functions": 57930, - "g-translate": 59687, - "gamepad": 58127, - "games": 57377, - "gavel": 59662, - "gesture": 57685, - "get-app": 59524, - "gif": 59656, - "golf-course": 60229, - "gps-fixed": 57779, - "gps-not-fixed": 57780, - "gps-off": 57781, - "grade": 59525, - "gradient": 58345, - "grain": 58346, - "graphic-eq": 57784, - "grid-off": 58347, - "grid-on": 58348, - "group": 59375, - "group-add": 59376, - "group-work": 59526, - "hd": 57426, - "hdr-off": 58349, - "hdr-on": 58350, - "hdr-strong": 58353, - "hdr-weak": 58354, - "headset": 58128, - "headset-mic": 58129, - "healing": 58355, - "hearing": 57379, - "help": 59527, - "help-outline": 59645, - "high-quality": 57380, - "highlight": 57951, - "highlight-off": 59528, - "history": 59529, - "home": 59530, - "hot-tub": 60230, - "hotel": 58682, - "hourglass-empty": 59531, - "hourglass-full": 59532, - "http": 59650, - "https": 59533, - "image": 58356, - "image-aspect-ratio": 58357, - "import-contacts": 57568, - "import-export": 57539, - "important-devices": 59666, - "inbox": 57686, - "indeterminate-check-box": 59657, - "info": 59534, - "info-outline": 59535, - "input": 59536, - "insert-chart": 57931, - "insert-comment": 57932, - "insert-drive-file": 57933, - "insert-emoticon": 57934, - "insert-invitation": 57935, - "insert-link": 57936, - "insert-photo": 57937, - "invert-colors": 59537, - "invert-colors-off": 57540, - "iso": 58358, - "keyboard": 58130, - "keyboard-arrow-down": 58131, - "keyboard-arrow-left": 58132, - "keyboard-arrow-right": 58133, - "keyboard-arrow-up": 58134, - "keyboard-backspace": 58135, - "keyboard-capslock": 58136, - "keyboard-hide": 58138, - "keyboard-return": 58139, - "keyboard-tab": 58140, - "keyboard-voice": 58141, - "kitchen": 60231, - "label": 59538, - "label-outline": 59539, - "landscape": 58359, - "language": 59540, - "laptop": 58142, - "laptop-chromebook": 58143, - "laptop-mac": 58144, - "laptop-windows": 58145, - "last-page": 58845, - "launch": 59541, - "layers": 58683, - "layers-clear": 58684, - "leak-add": 58360, - "leak-remove": 58361, - "lens": 58362, - "library-add": 57390, - "library-books": 57391, - "library-music": 57392, - "lightbulb-outline": 59663, - "line-style": 59673, - "line-weight": 59674, - "linear-scale": 57952, - "link": 57687, - "linked-camera": 58424, - "list": 59542, - "live-help": 57542, - "live-tv": 58937, - "local-activity": 58687, - "local-airport": 58685, - "local-atm": 58686, - "local-bar": 58688, - "local-cafe": 58689, - "local-car-wash": 58690, - "local-convenience-store": 58691, - "local-dining": 58710, - "local-drink": 58692, - "local-florist": 58693, - "local-gas-station": 58694, - "local-grocery-store": 58695, - "local-hospital": 58696, - "local-hotel": 58697, - "local-laundry-service": 58698, - "local-library": 58699, - "local-mall": 58700, - "local-movies": 58701, - "local-offer": 58702, - "local-parking": 58703, - "local-pharmacy": 58704, - "local-phone": 58705, - "local-pizza": 58706, - "local-play": 58707, - "local-post-office": 58708, - "local-printshop": 58709, - "local-see": 58711, - "local-shipping": 58712, - "local-taxi": 58713, - "location-city": 59377, - "location-disabled": 57782, - "location-off": 57543, - "location-on": 57544, - "location-searching": 57783, - "lock": 59543, - "lock-open": 59544, - "lock-outline": 59545, - "looks": 58364, - "looks-3": 58363, - "looks-4": 58365, - "looks-5": 58366, - "looks-6": 58367, - "looks-one": 58368, - "looks-two": 58369, - "loop": 57384, - "loupe": 58370, - "low-priority": 57709, - "loyalty": 59546, - "mail": 57688, - "mail-outline": 57569, - "map": 58715, - "markunread": 57689, - "markunread-mailbox": 59547, - "memory": 58146, - "menu": 58834, - "merge-type": 57938, - "message": 57545, - "mic": 57385, - "mic-none": 57386, - "mic-off": 57387, - "mms": 58904, - "mode-comment": 57939, - "mode-edit": 57940, - "monetization-on": 57955, - "money-off": 57948, - "monochrome-photos": 58371, - "mood": 59378, - "mood-bad": 59379, - "more": 58905, - "more-horiz": 58835, - "more-vert": 58836, - "motorcycle": 59675, - "mouse": 58147, - "move-to-inbox": 57704, - "movie": 57388, - "movie-creation": 58372, - "movie-filter": 58426, - "multiline-chart": 59103, - "music-note": 58373, - "music-video": 57443, - "my-location": 58716, - "nature": 58374, - "nature-people": 58375, - "navigate-before": 58376, - "navigate-next": 58377, - "navigation": 58717, - "near-me": 58729, - "network-cell": 57785, - "network-check": 58944, - "network-locked": 58906, - "network-wifi": 57786, - "new-releases": 57393, - "next-week": 57706, - "nfc": 57787, - "no-encryption": 58945, - "no-sim": 57548, - "not-interested": 57395, - "note": 57455, - "note-add": 59548, - "notifications": 59380, - "notifications-active": 59383, - "notifications-none": 59381, - "notifications-off": 59382, - "notifications-paused": 59384, - "offline-pin": 59658, - "ondemand-video": 58938, - "opacity": 59676, - "open-in-browser": 59549, - "open-in-new": 59550, - "open-with": 59551, - "pages": 59385, - "pageview": 59552, - "palette": 58378, - "pan-tool": 59685, - "panorama": 58379, - "panorama-fish-eye": 58380, - "panorama-horizontal": 58381, - "panorama-vertical": 58382, - "panorama-wide-angle": 58383, - "party-mode": 59386, - "pause": 57396, - "pause-circle-filled": 57397, - "pause-circle-outline": 57398, - "payment": 59553, - "people": 59387, - "people-outline": 59388, - "perm-camera-mic": 59554, - "perm-contact-calendar": 59555, - "perm-data-setting": 59556, - "perm-device-information": 59557, - "perm-identity": 59558, - "perm-media": 59559, - "perm-phone-msg": 59560, - "perm-scan-wifi": 59561, - "person": 59389, - "person-add": 59390, - "person-outline": 59391, - "person-pin": 58714, - "person-pin-circle": 58730, - "personal-video": 58939, - "pets": 59677, - "phone": 57549, - "phone-android": 58148, - "phone-bluetooth-speaker": 58907, - "phone-forwarded": 58908, - "phone-in-talk": 58909, - "phone-iphone": 58149, - "phone-locked": 58910, - "phone-missed": 58911, - "phone-paused": 58912, - "phonelink": 58150, - "phonelink-erase": 57563, - "phonelink-lock": 57564, - "phonelink-off": 58151, - "phonelink-ring": 57565, - "phonelink-setup": 57566, - "photo": 58384, - "photo-album": 58385, - "photo-camera": 58386, - "photo-filter": 58427, - "photo-library": 58387, - "photo-size-select-actual": 58418, - "photo-size-select-large": 58419, - "photo-size-select-small": 58420, - "picture-as-pdf": 58389, - "picture-in-picture": 59562, - "picture-in-picture-alt": 59665, - "pie-chart": 59076, - "pie-chart-outlined": 59077, - "pin-drop": 58718, - "place": 58719, - "play-arrow": 57399, - "play-circle-filled": 57400, - "play-circle-outline": 57401, - "play-for-work": 59654, - "playlist-add": 57403, - "playlist-add-check": 57445, - "playlist-play": 57439, - "plus-one": 59392, - "poll": 59393, - "polymer": 59563, - "pool": 60232, - "portable-wifi-off": 57550, - "portrait": 58390, - "power": 58940, - "power-input": 58166, - "power-settings-new": 59564, - "pregnant-woman": 59678, - "present-to-all": 57567, - "print": 59565, - "priority-high": 58949, - "public": 59403, - "publish": 57941, - "query-builder": 59566, - "question-answer": 59567, - "queue": 57404, - "queue-music": 57405, - "queue-play-next": 57446, - "radio": 57406, - "radio-button-checked": 59447, - "radio-button-unchecked": 59446, - "rate-review": 58720, - "receipt": 59568, - "recent-actors": 57407, - "record-voice-over": 59679, - "redeem": 59569, - "redo": 57690, - "refresh": 58837, - "remove": 57691, - "remove-circle": 57692, - "remove-circle-outline": 57693, - "remove-from-queue": 57447, - "remove-red-eye": 58391, - "remove-shopping-cart": 59688, - "reorder": 59646, - "repeat": 57408, - "repeat-one": 57409, - "replay": 57410, - "replay-10": 57433, - "replay-30": 57434, - "replay-5": 57435, - "reply": 57694, - "reply-all": 57695, - "report": 57696, - "report-problem": 59570, - "restaurant": 58732, - "restaurant-menu": 58721, - "restore": 59571, - "restore-page": 59689, - "ring-volume": 57553, - "room": 59572, - "room-service": 60233, - "rotate-90-degrees-ccw": 58392, - "rotate-left": 58393, - "rotate-right": 58394, - "rounded-corner": 59680, - "router": 58152, - "rowing": 59681, - "rss-feed": 57573, - "rv-hookup": 58946, - "satellite": 58722, - "save": 57697, - "scanner": 58153, - "schedule": 59573, - "school": 59404, - "screen-lock-landscape": 57790, - "screen-lock-portrait": 57791, - "screen-lock-rotation": 57792, - "screen-rotation": 57793, - "screen-share": 57570, - "sd-card": 58915, - "sd-storage": 57794, - "search": 59574, - "security": 58154, - "select-all": 57698, - "send": 57699, - "sentiment-dissatisfied": 59409, - "sentiment-neutral": 59410, - "sentiment-satisfied": 59411, - "sentiment-very-dissatisfied": 59412, - "sentiment-very-satisfied": 59413, - "settings": 59576, - "settings-applications": 59577, - "settings-backup-restore": 59578, - "settings-bluetooth": 59579, - "settings-brightness": 59581, - "settings-cell": 59580, - "settings-ethernet": 59582, - "settings-input-antenna": 59583, - "settings-input-component": 59584, - "settings-input-composite": 59585, - "settings-input-hdmi": 59586, - "settings-input-svideo": 59587, - "settings-overscan": 59588, - "settings-phone": 59589, - "settings-power": 59590, - "settings-remote": 59591, - "settings-system-daydream": 57795, - "settings-voice": 59592, - "share": 59405, - "shop": 59593, - "shop-two": 59594, - "shopping-basket": 59595, - "shopping-cart": 59596, - "short-text": 57953, - "show-chart": 59105, - "shuffle": 57411, - "signal-cellular-4-bar": 57800, - "signal-cellular-connected-no-internet-4-bar": 57805, - "signal-cellular-no-sim": 57806, - "signal-cellular-null": 57807, - "signal-cellular-off": 57808, - "signal-wifi-4-bar": 57816, - "signal-wifi-4-bar-lock": 57817, - "signal-wifi-off": 57818, - "sim-card": 58155, - "sim-card-alert": 58916, - "skip-next": 57412, - "skip-previous": 57413, - "slideshow": 58395, - "slow-motion-video": 57448, - "smartphone": 58156, - "smoke-free": 60234, - "smoking-rooms": 60235, - "sms": 58917, - "sms-failed": 58918, - "snooze": 57414, - "sort": 57700, - "sort-by-alpha": 57427, - "spa": 60236, - "space-bar": 57942, - "speaker": 58157, - "speaker-group": 58158, - "speaker-notes": 59597, - "speaker-notes-off": 59690, - "speaker-phone": 57554, - "spellcheck": 59598, - "star": 59448, - "star-border": 59450, - "star-half": 59449, - "stars": 59600, - "stay-current-landscape": 57555, - "stay-current-portrait": 57556, - "stay-primary-landscape": 57557, - "stay-primary-portrait": 57558, - "stop": 57415, - "stop-screen-share": 57571, - "storage": 57819, - "store": 59601, - "store-mall-directory": 58723, - "straighten": 58396, - "streetview": 58734, - "strikethrough-s": 57943, - "style": 58397, - "subdirectory-arrow-left": 58841, - "subdirectory-arrow-right": 58842, - "subject": 59602, - "subscriptions": 57444, - "subtitles": 57416, - "subway": 58735, - "supervisor-account": 59603, - "surround-sound": 57417, - "swap-calls": 57559, - "swap-horiz": 59604, - "swap-vert": 59605, - "swap-vertical-circle": 59606, - "switch-camera": 58398, - "switch-video": 58399, - "sync": 58919, - "sync-disabled": 58920, - "sync-problem": 58921, - "system-update": 58922, - "system-update-alt": 59607, - "tab": 59608, - "tab-unselected": 59609, - "tablet": 58159, - "tablet-android": 58160, - "tablet-mac": 58161, - "tag-faces": 58400, - "tap-and-play": 58923, - "terrain": 58724, - "text-fields": 57954, - "text-format": 57701, - "textsms": 57560, - "texture": 58401, - "theaters": 59610, - "thumb-down": 59611, - "thumb-up": 59612, - "thumbs-up-down": 59613, - "time-to-leave": 58924, - "timelapse": 58402, - "timeline": 59682, - "timer": 58405, - "timer-10": 58403, - "timer-3": 58404, - "timer-off": 58406, - "title": 57956, - "toc": 59614, - "today": 59615, - "toll": 59616, - "tonality": 58407, - "touch-app": 59667, - "toys": 58162, - "track-changes": 59617, - "traffic": 58725, - "train": 58736, - "tram": 58737, - "transfer-within-a-station": 58738, - "transform": 58408, - "translate": 59618, - "trending-down": 59619, - "trending-flat": 59620, - "trending-up": 59621, - "tune": 58409, - "turned-in": 59622, - "turned-in-not": 59623, - "tv": 58163, - "unarchive": 57705, - "undo": 57702, - "unfold-less": 58838, - "unfold-more": 58839, - "update": 59683, - "usb": 57824, - "verified-user": 59624, - "vertical-align-bottom": 57944, - "vertical-align-center": 57945, - "vertical-align-top": 57946, - "vibration": 58925, - "video-call": 57456, - "video-label": 57457, - "video-library": 57418, - "videocam": 57419, - "videocam-off": 57420, - "videogame-asset": 58168, - "view-agenda": 59625, - "view-array": 59626, - "view-carousel": 59627, - "view-column": 59628, - "view-comfy": 58410, - "view-compact": 58411, - "view-day": 59629, - "view-headline": 59630, - "view-list": 59631, - "view-module": 59632, - "view-quilt": 59633, - "view-stream": 59634, - "view-week": 59635, - "vignette": 58421, - "visibility": 59636, - "visibility-off": 59637, - "voice-chat": 58926, - "voicemail": 57561, - "volume-down": 57421, - "volume-mute": 57422, - "volume-off": 57423, - "volume-up": 57424, - "vpn-key": 57562, - "vpn-lock": 58927, - "wallpaper": 57788, - "warning": 57346, - "watch": 58164, - "watch-later": 59684, - "wb-auto": 58412, - "wb-cloudy": 58413, - "wb-incandescent": 58414, - "wb-iridescent": 58422, - "wb-sunny": 58416, - "wc": 58941, - "web": 57425, - "web-asset": 57449, - "weekend": 57707, - "whatshot": 59406, - "widgets": 57789, - "wifi": 58942, - "wifi-lock": 57825, - "wifi-tethering": 57826, - "work": 59641, - "wrap-text": 57947, - "youtube-searched-for": 59642, - "zoom-in": 59647, - "zoom-out": 59648, - "zoom-out-map": 58731 -}; -},733,[],"node_modules/react-native-vector-icons/glyphmaps/MaterialIcons.json"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getImageSource = exports.ToolbarAndroid = exports.TabBarItemIOS = exports.TabBarItem = exports.Button = exports.default = void 0; - - var _createIconSet = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./lib/create-icon-set")); - - var _Ionicons = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./glyphmaps/Ionicons.json")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var iconSet = (0, _createIconSet.default)(_Ionicons.default, 'Ionicons', 'Ionicons.ttf'); - var _default = iconSet; - exports.default = _default; - var Button = iconSet.Button; - exports.Button = Button; - var TabBarItem = iconSet.TabBarItem; - exports.TabBarItem = TabBarItem; - var TabBarItemIOS = iconSet.TabBarItemIOS; - exports.TabBarItemIOS = TabBarItemIOS; - var ToolbarAndroid = iconSet.ToolbarAndroid; - exports.ToolbarAndroid = ToolbarAndroid; - var getImageSource = iconSet.getImageSource; - exports.getImageSource = getImageSource; -},724,[633,734],"node_modules/react-native-vector-icons/Ionicons.js"); -__d(function(global, require, module, exports) { - module.exports = { - "ios-add": 61698, - "ios-add-circle": 61697, - "ios-add-circle-outline": 61696, - "ios-airplane": 61751, - "ios-alarm": 62408, - "ios-albums": 62410, - "ios-alert": 61700, - "ios-american-football": 61702, - "ios-analytics": 62414, - "ios-aperture": 61704, - "ios-apps": 61706, - "ios-appstore": 61708, - "ios-archive": 61710, - "ios-arrow-back": 62415, - "ios-arrow-down": 62416, - "ios-arrow-dropdown": 61712, - "ios-arrow-dropdown-circle": 61733, - "ios-arrow-dropleft": 61714, - "ios-arrow-dropleft-circle": 61737, - "ios-arrow-dropright": 61716, - "ios-arrow-dropright-circle": 61739, - "ios-arrow-dropup": 61718, - "ios-arrow-dropup-circle": 61741, - "ios-arrow-forward": 62417, - "ios-arrow-round-back": 61719, - "ios-arrow-round-down": 61720, - "ios-arrow-round-forward": 61721, - "ios-arrow-round-up": 61722, - "ios-arrow-up": 62424, - "ios-at": 62426, - "ios-attach": 61723, - "ios-backspace": 61725, - "ios-barcode": 62428, - "ios-baseball": 62430, - "ios-basket": 61727, - "ios-basketball": 62432, - "ios-battery-charging": 61728, - "ios-battery-dead": 61729, - "ios-battery-full": 61730, - "ios-beaker": 61732, - "ios-bed": 61753, - "ios-beer": 61734, - "ios-bicycle": 61735, - "ios-bluetooth": 61736, - "ios-boat": 61738, - "ios-body": 62436, - "ios-bonfire": 61740, - "ios-book": 62440, - "ios-bookmark": 61742, - "ios-bookmarks": 62442, - "ios-bowtie": 61744, - "ios-briefcase": 62446, - "ios-browsers": 62448, - "ios-brush": 61746, - "ios-bug": 61748, - "ios-build": 61750, - "ios-bulb": 61752, - "ios-bus": 61754, - "ios-business": 61859, - "ios-cafe": 61756, - "ios-calculator": 62450, - "ios-calendar": 62452, - "ios-call": 61758, - "ios-camera": 62454, - "ios-car": 61760, - "ios-card": 61762, - "ios-cart": 62456, - "ios-cash": 61764, - "ios-cellular": 61757, - "ios-chatboxes": 62458, - "ios-chatbubbles": 61766, - "ios-checkbox": 61768, - "ios-checkbox-outline": 61767, - "ios-checkmark": 62463, - "ios-checkmark-circle": 61770, - "ios-checkmark-circle-outline": 61769, - "ios-clipboard": 61772, - "ios-clock": 62467, - "ios-close": 62470, - "ios-close-circle": 61774, - "ios-close-circle-outline": 61773, - "ios-cloud": 62476, - "ios-cloud-circle": 61778, - "ios-cloud-done": 61780, - "ios-cloud-download": 62472, - "ios-cloud-outline": 62473, - "ios-cloud-upload": 62475, - "ios-cloudy": 62480, - "ios-cloudy-night": 62478, - "ios-code": 61783, - "ios-code-download": 61781, - "ios-code-working": 61782, - "ios-cog": 62482, - "ios-color-fill": 61785, - "ios-color-filter": 62484, - "ios-color-palette": 61787, - "ios-color-wand": 62486, - "ios-compass": 61789, - "ios-construct": 61791, - "ios-contact": 62490, - "ios-contacts": 61793, - "ios-contract": 61794, - "ios-contrast": 61795, - "ios-copy": 62492, - "ios-create": 61797, - "ios-crop": 62494, - "ios-cube": 61800, - "ios-cut": 61802, - "ios-desktop": 61804, - "ios-disc": 61806, - "ios-document": 61808, - "ios-done-all": 61809, - "ios-download": 62496, - "ios-easel": 61811, - "ios-egg": 61813, - "ios-exit": 61815, - "ios-expand": 61816, - "ios-eye": 62501, - "ios-eye-off": 61818, - "ios-fastforward": 62503, - "ios-female": 61819, - "ios-filing": 62505, - "ios-film": 62507, - "ios-finger-print": 61820, - "ios-fitness": 61867, - "ios-flag": 62509, - "ios-flame": 62511, - "ios-flash": 61822, - "ios-flash-off": 61743, - "ios-flashlight": 61761, - "ios-flask": 62513, - "ios-flower": 62515, - "ios-folder": 62517, - "ios-folder-open": 61824, - "ios-football": 62519, - "ios-funnel": 61826, - "ios-gift": 61841, - "ios-git-branch": 61827, - "ios-git-commit": 61828, - "ios-git-compare": 61829, - "ios-git-merge": 61830, - "ios-git-network": 61831, - "ios-git-pull-request": 61832, - "ios-glasses": 62527, - "ios-globe": 61834, - "ios-grid": 61836, - "ios-hammer": 61838, - "ios-hand": 61840, - "ios-happy": 61842, - "ios-headset": 61844, - "ios-heart": 62531, - "ios-heart-dislike": 61759, - "ios-heart-empty": 61851, - "ios-heart-half": 61853, - "ios-help": 62534, - "ios-help-buoy": 61846, - "ios-help-circle": 61848, - "ios-help-circle-outline": 61847, - "ios-home": 62536, - "ios-hourglass": 61699, - "ios-ice-cream": 61850, - "ios-image": 61852, - "ios-images": 61854, - "ios-infinite": 62538, - "ios-information": 62541, - "ios-information-circle": 61856, - "ios-information-circle-outline": 61855, - "ios-jet": 61861, - "ios-journal": 61833, - "ios-key": 61863, - "ios-keypad": 62544, - "ios-laptop": 61864, - "ios-leaf": 61866, - "ios-link": 61994, - "ios-list": 62548, - "ios-list-box": 61763, - "ios-locate": 61870, - "ios-lock": 61872, - "ios-log-in": 61873, - "ios-log-out": 61874, - "ios-magnet": 61876, - "ios-mail": 61880, - "ios-mail-open": 61878, - "ios-mail-unread": 61765, - "ios-male": 61881, - "ios-man": 61883, - "ios-map": 61885, - "ios-medal": 61887, - "ios-medical": 62556, - "ios-medkit": 62558, - "ios-megaphone": 61889, - "ios-menu": 61891, - "ios-mic": 62561, - "ios-mic-off": 62559, - "ios-microphone": 61894, - "ios-moon": 62568, - "ios-more": 61896, - "ios-move": 61899, - "ios-musical-note": 62571, - "ios-musical-notes": 62572, - "ios-navigate": 62574, - "ios-notifications": 61907, - "ios-notifications-off": 61905, - "ios-notifications-outline": 61747, - "ios-nuclear": 61909, - "ios-nutrition": 62576, - "ios-open": 61911, - "ios-options": 61913, - "ios-outlet": 61915, - "ios-paper": 62578, - "ios-paper-plane": 61917, - "ios-partly-sunny": 61919, - "ios-pause": 62584, - "ios-paw": 62586, - "ios-people": 62588, - "ios-person": 62590, - "ios-person-add": 61921, - "ios-phone-landscape": 61922, - "ios-phone-portrait": 61923, - "ios-photos": 62594, - "ios-pie": 62596, - "ios-pin": 61925, - "ios-pint": 62598, - "ios-pizza": 61927, - "ios-planet": 61931, - "ios-play": 62600, - "ios-play-circle": 61715, - "ios-podium": 61933, - "ios-power": 61935, - "ios-pricetag": 62605, - "ios-pricetags": 62607, - "ios-print": 61937, - "ios-pulse": 62611, - "ios-qr-scanner": 61939, - "ios-quote": 61941, - "ios-radio": 61945, - "ios-radio-button-off": 61942, - "ios-radio-button-on": 61943, - "ios-rainy": 62613, - "ios-recording": 62615, - "ios-redo": 62617, - "ios-refresh": 62620, - "ios-refresh-circle": 61749, - "ios-remove": 61948, - "ios-remove-circle": 61947, - "ios-remove-circle-outline": 61946, - "ios-reorder": 61949, - "ios-repeat": 61950, - "ios-resize": 61951, - "ios-restaurant": 61953, - "ios-return-left": 61954, - "ios-return-right": 61955, - "ios-reverse-camera": 62623, - "ios-rewind": 62625, - "ios-ribbon": 61957, - "ios-rocket": 61771, - "ios-rose": 62627, - "ios-sad": 61959, - "ios-save": 61862, - "ios-school": 61961, - "ios-search": 62629, - "ios-send": 61964, - "ios-settings": 62631, - "ios-share": 61969, - "ios-share-alt": 61967, - "ios-shirt": 61971, - "ios-shuffle": 62633, - "ios-skip-backward": 61973, - "ios-skip-forward": 61975, - "ios-snow": 61976, - "ios-speedometer": 62640, - "ios-square": 61978, - "ios-square-outline": 61788, - "ios-star": 62643, - "ios-star-half": 62641, - "ios-star-outline": 62642, - "ios-stats": 61980, - "ios-stopwatch": 62645, - "ios-subway": 61982, - "ios-sunny": 62647, - "ios-swap": 61983, - "ios-switch": 61985, - "ios-sync": 61986, - "ios-tablet-landscape": 61987, - "ios-tablet-portrait": 62030, - "ios-tennisball": 62651, - "ios-text": 62032, - "ios-thermometer": 62034, - "ios-thumbs-down": 62036, - "ios-thumbs-up": 62038, - "ios-thunderstorm": 62653, - "ios-time": 62655, - "ios-timer": 62657, - "ios-today": 61775, - "ios-train": 62040, - "ios-transgender": 62041, - "ios-trash": 62661, - "ios-trending-down": 62042, - "ios-trending-up": 62043, - "ios-trophy": 62045, - "ios-tv": 61717, - "ios-umbrella": 62047, - "ios-undo": 62663, - "ios-unlock": 62049, - "ios-videocam": 62669, - "ios-volume-high": 61724, - "ios-volume-low": 61726, - "ios-volume-mute": 62051, - "ios-volume-off": 62052, - "ios-walk": 62054, - "ios-wallet": 61835, - "ios-warning": 62056, - "ios-watch": 62057, - "ios-water": 62059, - "ios-wifi": 62061, - "ios-wine": 62063, - "ios-woman": 62065, - "logo-android": 61989, - "logo-angular": 61991, - "logo-apple": 61993, - "logo-bitbucket": 61843, - "logo-bitcoin": 61995, - "logo-buffer": 61997, - "logo-chrome": 61999, - "logo-closed-captioning": 61701, - "logo-codepen": 62000, - "logo-css3": 62001, - "logo-designernews": 62002, - "logo-dribbble": 62003, - "logo-dropbox": 62004, - "logo-euro": 62005, - "logo-facebook": 62006, - "logo-flickr": 61703, - "logo-foursquare": 62007, - "logo-freebsd-devil": 62008, - "logo-game-controller-a": 61755, - "logo-game-controller-b": 61825, - "logo-github": 62009, - "logo-google": 62010, - "logo-googleplus": 62011, - "logo-hackernews": 62012, - "logo-html5": 62013, - "logo-instagram": 62014, - "logo-ionic": 61776, - "logo-ionitron": 61777, - "logo-javascript": 62015, - "logo-linkedin": 62016, - "logo-markdown": 62017, - "logo-model-s": 61779, - "logo-no-smoking": 61705, - "logo-nodejs": 62018, - "logo-npm": 61845, - "logo-octocat": 62019, - "logo-pinterest": 62020, - "logo-playstation": 62021, - "logo-polymer": 61790, - "logo-python": 62022, - "logo-reddit": 62023, - "logo-rss": 62024, - "logo-sass": 62025, - "logo-skype": 62026, - "logo-slack": 61707, - "logo-snapchat": 62027, - "logo-steam": 62028, - "logo-tumblr": 62029, - "logo-tux": 62126, - "logo-twitch": 62127, - "logo-twitter": 62128, - "logo-usd": 62129, - "logo-vimeo": 62148, - "logo-vk": 61709, - "logo-whatsapp": 62149, - "logo-windows": 62255, - "logo-wordpress": 62256, - "logo-xbox": 62284, - "logo-xing": 61711, - "logo-yahoo": 62285, - "logo-yen": 62286, - "logo-youtube": 62287, - "md-add": 62067, - "md-add-circle": 62066, - "md-add-circle-outline": 61784, - "md-airplane": 61786, - "md-alarm": 62068, - "md-albums": 62069, - "md-alert": 62070, - "md-american-football": 62071, - "md-analytics": 62072, - "md-aperture": 62073, - "md-apps": 62074, - "md-appstore": 62075, - "md-archive": 62076, - "md-arrow-back": 62077, - "md-arrow-down": 62078, - "md-arrow-dropdown": 62080, - "md-arrow-dropdown-circle": 62079, - "md-arrow-dropleft": 62082, - "md-arrow-dropleft-circle": 62081, - "md-arrow-dropright": 62084, - "md-arrow-dropright-circle": 62083, - "md-arrow-dropup": 62086, - "md-arrow-dropup-circle": 62085, - "md-arrow-forward": 62087, - "md-arrow-round-back": 62088, - "md-arrow-round-down": 62089, - "md-arrow-round-forward": 62090, - "md-arrow-round-up": 62091, - "md-arrow-up": 62092, - "md-at": 62093, - "md-attach": 62094, - "md-backspace": 62095, - "md-barcode": 62096, - "md-baseball": 62097, - "md-basket": 62098, - "md-basketball": 62099, - "md-battery-charging": 62100, - "md-battery-dead": 62101, - "md-battery-full": 62102, - "md-beaker": 62103, - "md-bed": 61792, - "md-beer": 62104, - "md-bicycle": 62105, - "md-bluetooth": 62106, - "md-boat": 62107, - "md-body": 62108, - "md-bonfire": 62109, - "md-book": 62110, - "md-bookmark": 62111, - "md-bookmarks": 62112, - "md-bowtie": 62113, - "md-briefcase": 62114, - "md-browsers": 62115, - "md-brush": 62116, - "md-bug": 62117, - "md-build": 62118, - "md-bulb": 62119, - "md-bus": 62120, - "md-business": 61860, - "md-cafe": 62121, - "md-calculator": 62122, - "md-calendar": 62123, - "md-call": 62124, - "md-camera": 62125, - "md-car": 62130, - "md-card": 62131, - "md-cart": 62132, - "md-cash": 62133, - "md-cellular": 61796, - "md-chatboxes": 62134, - "md-chatbubbles": 62135, - "md-checkbox": 62137, - "md-checkbox-outline": 62136, - "md-checkmark": 62140, - "md-checkmark-circle": 62139, - "md-checkmark-circle-outline": 62138, - "md-clipboard": 62141, - "md-clock": 62142, - "md-close": 62144, - "md-close-circle": 62143, - "md-close-circle-outline": 61798, - "md-cloud": 62153, - "md-cloud-circle": 62146, - "md-cloud-done": 62147, - "md-cloud-download": 62150, - "md-cloud-outline": 62151, - "md-cloud-upload": 62152, - "md-cloudy": 62155, - "md-cloudy-night": 62154, - "md-code": 62158, - "md-code-download": 62156, - "md-code-working": 62157, - "md-cog": 62159, - "md-color-fill": 62160, - "md-color-filter": 62161, - "md-color-palette": 62162, - "md-color-wand": 62163, - "md-compass": 62164, - "md-construct": 62165, - "md-contact": 62166, - "md-contacts": 62167, - "md-contract": 62168, - "md-contrast": 62169, - "md-copy": 62170, - "md-create": 62171, - "md-crop": 62172, - "md-cube": 62173, - "md-cut": 62174, - "md-desktop": 62175, - "md-disc": 62176, - "md-document": 62177, - "md-done-all": 62178, - "md-download": 62179, - "md-easel": 62180, - "md-egg": 62181, - "md-exit": 62182, - "md-expand": 62183, - "md-eye": 62185, - "md-eye-off": 62184, - "md-fastforward": 62186, - "md-female": 62187, - "md-filing": 62188, - "md-film": 62189, - "md-finger-print": 62190, - "md-fitness": 61868, - "md-flag": 62191, - "md-flame": 62192, - "md-flash": 62193, - "md-flash-off": 61801, - "md-flashlight": 61803, - "md-flask": 62194, - "md-flower": 62195, - "md-folder": 62197, - "md-folder-open": 62196, - "md-football": 62198, - "md-funnel": 62199, - "md-gift": 61849, - "md-git-branch": 62202, - "md-git-commit": 62203, - "md-git-compare": 62204, - "md-git-merge": 62205, - "md-git-network": 62206, - "md-git-pull-request": 62207, - "md-glasses": 62208, - "md-globe": 62209, - "md-grid": 62210, - "md-hammer": 62211, - "md-hand": 62212, - "md-happy": 62213, - "md-headset": 62214, - "md-heart": 62216, - "md-heart-dislike": 61799, - "md-heart-empty": 61857, - "md-heart-half": 61858, - "md-help": 62219, - "md-help-buoy": 62217, - "md-help-circle": 62218, - "md-help-circle-outline": 61805, - "md-home": 62220, - "md-hourglass": 61713, - "md-ice-cream": 62221, - "md-image": 62222, - "md-images": 62223, - "md-infinite": 62224, - "md-information": 62226, - "md-information-circle": 62225, - "md-information-circle-outline": 61807, - "md-jet": 62229, - "md-journal": 61837, - "md-key": 62230, - "md-keypad": 62231, - "md-laptop": 62232, - "md-leaf": 62233, - "md-link": 61998, - "md-list": 62235, - "md-list-box": 62234, - "md-locate": 62236, - "md-lock": 62237, - "md-log-in": 62238, - "md-log-out": 62239, - "md-magnet": 62240, - "md-mail": 62242, - "md-mail-open": 62241, - "md-mail-unread": 61810, - "md-male": 62243, - "md-man": 62244, - "md-map": 62245, - "md-medal": 62246, - "md-medical": 62247, - "md-medkit": 62248, - "md-megaphone": 62249, - "md-menu": 62250, - "md-mic": 62252, - "md-mic-off": 62251, - "md-microphone": 62253, - "md-moon": 62254, - "md-more": 61897, - "md-move": 62257, - "md-musical-note": 62258, - "md-musical-notes": 62259, - "md-navigate": 62260, - "md-notifications": 62264, - "md-notifications-off": 62262, - "md-notifications-outline": 62263, - "md-nuclear": 62265, - "md-nutrition": 62266, - "md-open": 62267, - "md-options": 62268, - "md-outlet": 62269, - "md-paper": 62271, - "md-paper-plane": 62270, - "md-partly-sunny": 62272, - "md-pause": 62273, - "md-paw": 62274, - "md-people": 62275, - "md-person": 62277, - "md-person-add": 62276, - "md-phone-landscape": 62278, - "md-phone-portrait": 62279, - "md-photos": 62280, - "md-pie": 62281, - "md-pin": 62282, - "md-pint": 62283, - "md-pizza": 62292, - "md-planet": 62294, - "md-play": 62295, - "md-play-circle": 61812, - "md-podium": 62296, - "md-power": 62297, - "md-pricetag": 62298, - "md-pricetags": 62299, - "md-print": 62300, - "md-pulse": 62301, - "md-qr-scanner": 62302, - "md-quote": 62303, - "md-radio": 62306, - "md-radio-button-off": 62304, - "md-radio-button-on": 62305, - "md-rainy": 62307, - "md-recording": 62308, - "md-redo": 62309, - "md-refresh": 62310, - "md-refresh-circle": 61992, - "md-remove": 62312, - "md-remove-circle": 62311, - "md-remove-circle-outline": 61814, - "md-reorder": 62313, - "md-repeat": 62314, - "md-resize": 62315, - "md-restaurant": 62316, - "md-return-left": 62317, - "md-return-right": 62318, - "md-reverse-camera": 62319, - "md-rewind": 62320, - "md-ribbon": 62321, - "md-rocket": 61817, - "md-rose": 62322, - "md-sad": 62323, - "md-save": 61865, - "md-school": 62324, - "md-search": 62325, - "md-send": 62326, - "md-settings": 62327, - "md-share": 62329, - "md-share-alt": 62328, - "md-shirt": 62330, - "md-shuffle": 62331, - "md-skip-backward": 62332, - "md-skip-forward": 62333, - "md-snow": 62334, - "md-speedometer": 62335, - "md-square": 62337, - "md-square-outline": 62336, - "md-star": 62340, - "md-star-half": 62338, - "md-star-outline": 62339, - "md-stats": 62341, - "md-stopwatch": 62342, - "md-subway": 62343, - "md-sunny": 62344, - "md-swap": 62345, - "md-switch": 62346, - "md-sync": 62347, - "md-tablet-landscape": 62348, - "md-tablet-portrait": 62349, - "md-tennisball": 62350, - "md-text": 62351, - "md-thermometer": 62352, - "md-thumbs-down": 62353, - "md-thumbs-up": 62354, - "md-thunderstorm": 62355, - "md-time": 62356, - "md-timer": 62357, - "md-today": 61821, - "md-train": 62358, - "md-transgender": 62359, - "md-trash": 62360, - "md-trending-down": 62361, - "md-trending-up": 62362, - "md-trophy": 62363, - "md-tv": 61823, - "md-umbrella": 62364, - "md-undo": 62365, - "md-unlock": 62366, - "md-videocam": 62367, - "md-volume-high": 61731, - "md-volume-low": 61745, - "md-volume-mute": 62369, - "md-volume-off": 62370, - "md-walk": 62372, - "md-wallet": 61839, - "md-warning": 62373, - "md-watch": 62374, - "md-water": 62375, - "md-wifi": 62376, - "md-wine": 62377, - "md-woman": 62378 -}; -},734,[],"node_modules/react-native-vector-icons/glyphmaps/Ionicons.json"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getImageSource = exports.ToolbarAndroid = exports.TabBarItemIOS = exports.TabBarItem = exports.Button = exports.default = void 0; - - var _createIconSet = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./lib/create-icon-set")); - - var _Foundation = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./glyphmaps/Foundation.json")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var iconSet = (0, _createIconSet.default)(_Foundation.default, 'fontcustom', 'Foundation.ttf'); - var _default = iconSet; - exports.default = _default; - var Button = iconSet.Button; - exports.Button = Button; - var TabBarItem = iconSet.TabBarItem; - exports.TabBarItem = TabBarItem; - var TabBarItemIOS = iconSet.TabBarItemIOS; - exports.TabBarItemIOS = TabBarItemIOS; - var ToolbarAndroid = iconSet.ToolbarAndroid; - exports.ToolbarAndroid = ToolbarAndroid; - var getImageSource = iconSet.getImageSource; - exports.getImageSource = getImageSource; -},725,[633,735],"node_modules/react-native-vector-icons/Foundation.js"); -__d(function(global, require, module, exports) { - module.exports = { - "address-book": 61696, - "alert": 61697, - "align-center": 61698, - "align-justify": 61699, - "align-left": 61700, - "align-right": 61701, - "anchor": 61702, - "annotate": 61703, - "archive": 61704, - "arrow-down": 61705, - "arrow-left": 61706, - "arrow-right": 61707, - "arrow-up": 61708, - "arrows-compress": 61709, - "arrows-expand": 61710, - "arrows-in": 61711, - "arrows-out": 61712, - "asl": 61713, - "asterisk": 61714, - "at-sign": 61715, - "background-color": 61716, - "battery-empty": 61717, - "battery-full": 61718, - "battery-half": 61719, - "bitcoin-circle": 61720, - "bitcoin": 61721, - "blind": 61722, - "bluetooth": 61723, - "bold": 61724, - "book-bookmark": 61725, - "book": 61726, - "bookmark": 61727, - "braille": 61728, - "burst-new": 61729, - "burst-sale": 61730, - "burst": 61731, - "calendar": 61732, - "camera": 61733, - "check": 61734, - "checkbox": 61735, - "clipboard-notes": 61736, - "clipboard-pencil": 61737, - "clipboard": 61738, - "clock": 61739, - "closed-caption": 61740, - "cloud": 61741, - "comment-minus": 61742, - "comment-quotes": 61743, - "comment-video": 61744, - "comment": 61745, - "comments": 61746, - "compass": 61747, - "contrast": 61748, - "credit-card": 61749, - "crop": 61750, - "crown": 61751, - "css3": 61752, - "database": 61753, - "die-five": 61754, - "die-four": 61755, - "die-one": 61756, - "die-six": 61757, - "die-three": 61758, - "die-two": 61759, - "dislike": 61760, - "dollar-bill": 61761, - "dollar": 61762, - "download": 61763, - "eject": 61764, - "elevator": 61765, - "euro": 61766, - "eye": 61767, - "fast-forward": 61768, - "female-symbol": 61769, - "female": 61770, - "filter": 61771, - "first-aid": 61772, - "flag": 61773, - "folder-add": 61774, - "folder-lock": 61775, - "folder": 61776, - "foot": 61777, - "foundation": 61778, - "graph-bar": 61779, - "graph-horizontal": 61780, - "graph-pie": 61781, - "graph-trend": 61782, - "guide-dog": 61783, - "hearing-aid": 61784, - "heart": 61785, - "home": 61786, - "html5": 61787, - "indent-less": 61788, - "indent-more": 61789, - "info": 61790, - "italic": 61791, - "key": 61792, - "laptop": 61793, - "layout": 61794, - "lightbulb": 61795, - "like": 61796, - "link": 61797, - "list-bullet": 61798, - "list-number": 61799, - "list-thumbnails": 61800, - "list": 61801, - "lock": 61802, - "loop": 61803, - "magnifying-glass": 61804, - "mail": 61805, - "male-female": 61806, - "male-symbol": 61807, - "male": 61808, - "map": 61809, - "marker": 61810, - "megaphone": 61811, - "microphone": 61812, - "minus-circle": 61813, - "minus": 61814, - "mobile-signal": 61815, - "mobile": 61816, - "monitor": 61817, - "mountains": 61818, - "music": 61819, - "next": 61820, - "no-dogs": 61821, - "no-smoking": 61822, - "page-add": 61823, - "page-copy": 61824, - "page-csv": 61825, - "page-delete": 61826, - "page-doc": 61827, - "page-edit": 61828, - "page-export-csv": 61829, - "page-export-doc": 61830, - "page-export-pdf": 61831, - "page-export": 61832, - "page-filled": 61833, - "page-multiple": 61834, - "page-pdf": 61835, - "page-remove": 61836, - "page-search": 61837, - "page": 61838, - "paint-bucket": 61839, - "paperclip": 61840, - "pause": 61841, - "paw": 61842, - "paypal": 61843, - "pencil": 61844, - "photo": 61845, - "play-circle": 61846, - "play-video": 61847, - "play": 61848, - "plus": 61849, - "pound": 61850, - "power": 61851, - "previous": 61852, - "price-tag": 61853, - "pricetag-multiple": 61854, - "print": 61855, - "prohibited": 61856, - "projection-screen": 61857, - "puzzle": 61858, - "quote": 61859, - "record": 61860, - "refresh": 61861, - "results-demographics": 61862, - "results": 61863, - "rewind-ten": 61864, - "rewind": 61865, - "rss": 61866, - "safety-cone": 61867, - "save": 61868, - "share": 61869, - "sheriff-badge": 61870, - "shield": 61871, - "shopping-bag": 61872, - "shopping-cart": 61873, - "shuffle": 61874, - "skull": 61875, - "social-500px": 61876, - "social-adobe": 61877, - "social-amazon": 61878, - "social-android": 61879, - "social-apple": 61880, - "social-behance": 61881, - "social-bing": 61882, - "social-blogger": 61883, - "social-delicious": 61884, - "social-designer-news": 61885, - "social-deviant-art": 61886, - "social-digg": 61887, - "social-dribbble": 61888, - "social-drive": 61889, - "social-dropbox": 61890, - "social-evernote": 61891, - "social-facebook": 61892, - "social-flickr": 61893, - "social-forrst": 61894, - "social-foursquare": 61895, - "social-game-center": 61896, - "social-github": 61897, - "social-google-plus": 61898, - "social-hacker-news": 61899, - "social-hi5": 61900, - "social-instagram": 61901, - "social-joomla": 61902, - "social-lastfm": 61903, - "social-linkedin": 61904, - "social-medium": 61905, - "social-myspace": 61906, - "social-orkut": 61907, - "social-path": 61908, - "social-picasa": 61909, - "social-pinterest": 61910, - "social-rdio": 61911, - "social-reddit": 61912, - "social-skillshare": 61913, - "social-skype": 61914, - "social-smashing-mag": 61915, - "social-snapchat": 61916, - "social-spotify": 61917, - "social-squidoo": 61918, - "social-stack-overflow": 61919, - "social-steam": 61920, - "social-stumbleupon": 61921, - "social-treehouse": 61922, - "social-tumblr": 61923, - "social-twitter": 61924, - "social-vimeo": 61925, - "social-windows": 61926, - "social-xbox": 61927, - "social-yahoo": 61928, - "social-yelp": 61929, - "social-youtube": 61930, - "social-zerply": 61931, - "social-zurb": 61932, - "sound": 61933, - "star": 61934, - "stop": 61935, - "strikethrough": 61936, - "subscript": 61937, - "superscript": 61938, - "tablet-landscape": 61939, - "tablet-portrait": 61940, - "target-two": 61941, - "target": 61942, - "telephone-accessible": 61943, - "telephone": 61944, - "text-color": 61945, - "thumbnails": 61946, - "ticket": 61947, - "torso-business": 61948, - "torso-female": 61949, - "torso": 61950, - "torsos-all-female": 61951, - "torsos-all": 61952, - "torsos-female-male": 61953, - "torsos-male-female": 61954, - "torsos": 61955, - "trash": 61956, - "trees": 61957, - "trophy": 61958, - "underline": 61959, - "universal-access": 61960, - "unlink": 61961, - "unlock": 61962, - "upload-cloud": 61963, - "upload": 61964, - "usb": 61965, - "video": 61966, - "volume-none": 61967, - "volume-strike": 61968, - "volume": 61969, - "web": 61970, - "wheelchair": 61971, - "widget": 61972, - "wrench": 61973, - "x-circle": 61974, - "x": 61975, - "yen": 61976, - "zoom-in": 61977, - "zoom-out": 61978 -}; -},735,[],"node_modules/react-native-vector-icons/glyphmaps/Foundation.json"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getImageSource = exports.ToolbarAndroid = exports.TabBarItemIOS = exports.TabBarItem = exports.Button = exports.default = void 0; - - var _createIconSet = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./lib/create-icon-set")); - - var _EvilIcons = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./glyphmaps/EvilIcons.json")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var iconSet = (0, _createIconSet.default)(_EvilIcons.default, 'EvilIcons', 'EvilIcons.ttf'); - var _default = iconSet; - exports.default = _default; - var Button = iconSet.Button; - exports.Button = Button; - var TabBarItem = iconSet.TabBarItem; - exports.TabBarItem = TabBarItem; - var TabBarItemIOS = iconSet.TabBarItemIOS; - exports.TabBarItemIOS = TabBarItemIOS; - var ToolbarAndroid = iconSet.ToolbarAndroid; - exports.ToolbarAndroid = ToolbarAndroid; - var getImageSource = iconSet.getImageSource; - exports.getImageSource = getImageSource; -},726,[633,736],"node_modules/react-native-vector-icons/EvilIcons.js"); -__d(function(global, require, module, exports) { - module.exports = { - "archive": 61696, - "arrow-down": 61697, - "arrow-left": 61698, - "arrow-right": 61699, - "arrow-up": 61700, - "bell": 61701, - "calendar": 61702, - "camera": 61703, - "cart": 61704, - "chart": 61705, - "check": 61706, - "chevron-down": 61707, - "chevron-left": 61708, - "chevron-right": 61709, - "chevron-up": 61710, - "clock": 61711, - "close": 61712, - "close-o": 61713, - "comment": 61714, - "credit-card": 61715, - "envelope": 61716, - "exclamation": 61717, - "external-link": 61718, - "eye": 61719, - "gear": 61720, - "heart": 61721, - "image": 61722, - "like": 61723, - "link": 61724, - "location": 61725, - "lock": 61726, - "minus": 61727, - "navicon": 61728, - "paperclip": 61729, - "pencil": 61730, - "play": 61731, - "plus": 61732, - "pointer": 61733, - "question": 61734, - "redo": 61735, - "refresh": 61736, - "retweet": 61737, - "sc-facebook": 61738, - "sc-github": 61739, - "sc-google-plus": 61740, - "sc-instagram": 61741, - "sc-linkedin": 61742, - "sc-odnoklassniki": 61743, - "sc-pinterest": 61744, - "sc-skype": 61745, - "sc-soundcloud": 61746, - "sc-telegram": 61747, - "sc-tumblr": 61748, - "sc-twitter": 61749, - "sc-vimeo": 61750, - "sc-vk": 61751, - "sc-youtube": 61752, - "search": 61753, - "share-apple": 61754, - "share-google": 61755, - "spinner": 61756, - "spinner-2": 61757, - "spinner-3": 61758, - "star": 61759, - "tag": 61760, - "trash": 61761, - "trophy": 61762, - "undo": 61763, - "unlock": 61764, - "user": 61765 -}; -},736,[],"node_modules/react-native-vector-icons/glyphmaps/EvilIcons.json"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getImageSource = exports.ToolbarAndroid = exports.TabBarItemIOS = exports.TabBarItem = exports.Button = exports.default = void 0; - - var _createIconSet = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./lib/create-icon-set")); - - var _Entypo = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./glyphmaps/Entypo.json")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var iconSet = (0, _createIconSet.default)(_Entypo.default, 'Entypo', 'Entypo.ttf'); - var _default = iconSet; - exports.default = _default; - var Button = iconSet.Button; - exports.Button = Button; - var TabBarItem = iconSet.TabBarItem; - exports.TabBarItem = TabBarItem; - var TabBarItemIOS = iconSet.TabBarItemIOS; - exports.TabBarItemIOS = TabBarItemIOS; - var ToolbarAndroid = iconSet.ToolbarAndroid; - exports.ToolbarAndroid = ToolbarAndroid; - var getImageSource = iconSet.getImageSource; - exports.getImageSource = getImageSource; -},727,[633,737],"node_modules/react-native-vector-icons/Entypo.js"); -__d(function(global, require, module, exports) { - module.exports = { - "500px": 61696, - "500px-with-circle": 61697, - "add-to-list": 61698, - "add-user": 61699, - "address": 61700, - "adjust": 61701, - "air": 61702, - "aircraft": 61703, - "aircraft-landing": 61704, - "aircraft-take-off": 61705, - "align-bottom": 61706, - "align-horizontal-middle": 61707, - "align-left": 61708, - "align-right": 61709, - "align-top": 61710, - "align-vertical-middle": 61711, - "app-store": 61712, - "archive": 61713, - "area-graph": 61714, - "arrow-bold-down": 61715, - "arrow-bold-left": 61716, - "arrow-bold-right": 61717, - "arrow-bold-up": 61718, - "arrow-down": 61719, - "arrow-left": 61720, - "arrow-long-down": 61721, - "arrow-long-left": 61722, - "arrow-long-right": 61723, - "arrow-long-up": 61724, - "arrow-right": 61725, - "arrow-up": 61726, - "arrow-with-circle-down": 61727, - "arrow-with-circle-left": 61728, - "arrow-with-circle-right": 61729, - "arrow-with-circle-up": 61730, - "attachment": 61731, - "awareness-ribbon": 61732, - "back": 61733, - "back-in-time": 61734, - "baidu": 61735, - "bar-graph": 61736, - "basecamp": 61737, - "battery": 61738, - "beamed-note": 61739, - "behance": 61740, - "bell": 61741, - "blackboard": 61742, - "block": 61743, - "book": 61744, - "bookmark": 61745, - "bookmarks": 61746, - "bowl": 61747, - "box": 61748, - "briefcase": 61749, - "browser": 61750, - "brush": 61751, - "bucket": 61752, - "bug": 61753, - "cake": 61754, - "calculator": 61755, - "calendar": 61756, - "camera": 61757, - "ccw": 61758, - "chat": 61759, - "check": 61760, - "chevron-down": 61761, - "chevron-left": 61762, - "chevron-right": 61763, - "chevron-small-down": 61764, - "chevron-small-left": 61765, - "chevron-small-right": 61766, - "chevron-small-up": 61767, - "chevron-thin-down": 61768, - "chevron-thin-left": 61769, - "chevron-thin-right": 61770, - "chevron-thin-up": 61771, - "chevron-up": 61772, - "chevron-with-circle-down": 61773, - "chevron-with-circle-left": 61774, - "chevron-with-circle-right": 61775, - "chevron-with-circle-up": 61776, - "circle": 61777, - "circle-with-cross": 61778, - "circle-with-minus": 61779, - "circle-with-plus": 61780, - "circular-graph": 61781, - "clapperboard": 61782, - "classic-computer": 61783, - "clipboard": 61784, - "clock": 61785, - "cloud": 61786, - "code": 61787, - "cog": 61788, - "colours": 61789, - "compass": 61790, - "controller-fast-backward": 61791, - "controller-fast-forward": 61792, - "controller-jump-to-start": 61793, - "controller-next": 61794, - "controller-paus": 61795, - "controller-play": 61796, - "controller-record": 61797, - "controller-stop": 61798, - "controller-volume": 61799, - "copy": 61800, - "creative-cloud": 61801, - "creative-commons": 61802, - "creative-commons-attribution": 61803, - "creative-commons-noderivs": 61804, - "creative-commons-noncommercial-eu": 61805, - "creative-commons-noncommercial-us": 61806, - "creative-commons-public-domain": 61807, - "creative-commons-remix": 61808, - "creative-commons-share": 61809, - "creative-commons-sharealike": 61810, - "credit": 61811, - "credit-card": 61812, - "crop": 61813, - "cross": 61814, - "cup": 61815, - "cw": 61816, - "cycle": 61817, - "database": 61818, - "dial-pad": 61819, - "direction": 61820, - "document": 61821, - "document-landscape": 61822, - "documents": 61823, - "dot-single": 61824, - "dots-three-horizontal": 61825, - "dots-three-vertical": 61826, - "dots-two-horizontal": 61827, - "dots-two-vertical": 61828, - "download": 61829, - "dribbble": 61830, - "dribbble-with-circle": 61831, - "drink": 61832, - "drive": 61833, - "drop": 61834, - "dropbox": 61835, - "edit": 61836, - "email": 61837, - "emoji-flirt": 61838, - "emoji-happy": 61839, - "emoji-neutral": 61840, - "emoji-sad": 61841, - "erase": 61842, - "eraser": 61843, - "evernote": 61844, - "export": 61845, - "eye": 61846, - "eye-with-line": 61847, - "facebook": 61848, - "facebook-with-circle": 61849, - "feather": 61850, - "fingerprint": 61851, - "flag": 61852, - "flash": 61853, - "flashlight": 61854, - "flat-brush": 61855, - "flattr": 61856, - "flickr": 61857, - "flickr-with-circle": 61858, - "flow-branch": 61859, - "flow-cascade": 61860, - "flow-line": 61861, - "flow-parallel": 61862, - "flow-tree": 61863, - "flower": 61864, - "folder": 61865, - "folder-images": 61866, - "folder-music": 61867, - "folder-video": 61868, - "forward": 61869, - "foursquare": 61870, - "funnel": 61871, - "game-controller": 61872, - "gauge": 61873, - "github": 61874, - "github-with-circle": 61875, - "globe": 61876, - "google-": 61877, - "google--with-circle": 61878, - "google-drive": 61879, - "google-hangouts": 61880, - "google-play": 61881, - "graduation-cap": 61882, - "grid": 61883, - "grooveshark": 61884, - "hair-cross": 61885, - "hand": 61886, - "heart": 61887, - "heart-outlined": 61888, - "help": 61889, - "help-with-circle": 61890, - "home": 61891, - "hour-glass": 61892, - "houzz": 61893, - "icloud": 61894, - "image": 61895, - "image-inverted": 61896, - "images": 61897, - "inbox": 61898, - "infinity": 61899, - "info": 61900, - "info-with-circle": 61901, - "instagram": 61902, - "instagram-with-circle": 61903, - "install": 61904, - "key": 61905, - "keyboard": 61906, - "lab-flask": 61907, - "landline": 61908, - "language": 61909, - "laptop": 61910, - "lastfm": 61911, - "lastfm-with-circle": 61912, - "layers": 61913, - "leaf": 61914, - "level-down": 61915, - "level-up": 61916, - "lifebuoy": 61917, - "light-bulb": 61918, - "light-down": 61919, - "light-up": 61920, - "line-graph": 61921, - "link": 61922, - "linkedin": 61923, - "linkedin-with-circle": 61924, - "list": 61925, - "location": 61926, - "location-pin": 61927, - "lock": 61928, - "lock-open": 61929, - "log-out": 61930, - "login": 61931, - "loop": 61932, - "magnet": 61933, - "magnifying-glass": 61934, - "mail": 61935, - "mail-with-circle": 61936, - "man": 61937, - "map": 61938, - "mask": 61939, - "medal": 61940, - "medium": 61941, - "medium-with-circle": 61942, - "megaphone": 61943, - "menu": 61944, - "merge": 61945, - "message": 61946, - "mic": 61947, - "minus": 61948, - "mixi": 61949, - "mobile": 61950, - "modern-mic": 61951, - "moon": 61952, - "mouse": 61953, - "mouse-pointer": 61954, - "music": 61955, - "network": 61956, - "new": 61957, - "new-message": 61958, - "news": 61959, - "newsletter": 61960, - "note": 61961, - "notification": 61962, - "notifications-off": 61963, - "old-mobile": 61964, - "old-phone": 61965, - "onedrive": 61966, - "open-book": 61967, - "palette": 61968, - "paper-plane": 61969, - "paypal": 61970, - "pencil": 61971, - "phone": 61972, - "picasa": 61973, - "pie-chart": 61974, - "pin": 61975, - "pinterest": 61976, - "pinterest-with-circle": 61977, - "plus": 61978, - "popup": 61979, - "power-plug": 61980, - "price-ribbon": 61981, - "price-tag": 61982, - "print": 61983, - "progress-empty": 61984, - "progress-full": 61985, - "progress-one": 61986, - "progress-two": 61987, - "publish": 61988, - "qq": 61989, - "qq-with-circle": 61990, - "quote": 61991, - "radio": 61992, - "raft": 61993, - "raft-with-circle": 61994, - "rainbow": 61995, - "rdio": 61996, - "rdio-with-circle": 61997, - "remove-user": 61998, - "renren": 61999, - "reply": 62000, - "reply-all": 62001, - "resize-100-": 62002, - "resize-full-screen": 62003, - "retweet": 62004, - "rocket": 62005, - "round-brush": 62006, - "rss": 62007, - "ruler": 62008, - "save": 62009, - "scissors": 62010, - "scribd": 62011, - "select-arrows": 62012, - "share": 62013, - "share-alternative": 62014, - "shareable": 62015, - "shield": 62016, - "shop": 62017, - "shopping-bag": 62018, - "shopping-basket": 62019, - "shopping-cart": 62020, - "shuffle": 62021, - "signal": 62022, - "sina-weibo": 62023, - "skype": 62024, - "skype-with-circle": 62025, - "slideshare": 62026, - "smashing": 62027, - "sound": 62028, - "sound-mix": 62029, - "sound-mute": 62030, - "soundcloud": 62031, - "sports-club": 62032, - "spotify": 62033, - "spotify-with-circle": 62034, - "spreadsheet": 62035, - "squared-cross": 62036, - "squared-minus": 62037, - "squared-plus": 62038, - "star": 62039, - "star-outlined": 62040, - "stopwatch": 62041, - "stumbleupon": 62042, - "stumbleupon-with-circle": 62043, - "suitcase": 62044, - "swap": 62045, - "swarm": 62046, - "sweden": 62047, - "switch": 62048, - "tablet": 62049, - "tablet-mobile-combo": 62050, - "tag": 62051, - "text": 62052, - "text-document": 62053, - "text-document-inverted": 62054, - "thermometer": 62055, - "thumbs-down": 62056, - "thumbs-up": 62057, - "thunder-cloud": 62058, - "ticket": 62059, - "time-slot": 62060, - "tools": 62061, - "traffic-cone": 62062, - "trash": 62063, - "tree": 62064, - "triangle-down": 62065, - "triangle-left": 62066, - "triangle-right": 62067, - "triangle-up": 62068, - "tripadvisor": 62069, - "trophy": 62070, - "tumblr": 62071, - "tumblr-with-circle": 62072, - "tv": 62073, - "twitter": 62074, - "twitter-with-circle": 62075, - "typing": 62076, - "uninstall": 62077, - "unread": 62078, - "untag": 62079, - "upload": 62080, - "upload-to-cloud": 62081, - "user": 62082, - "users": 62083, - "v-card": 62084, - "video": 62085, - "video-camera": 62086, - "vimeo": 62087, - "vimeo-with-circle": 62088, - "vine": 62089, - "vine-with-circle": 62090, - "vinyl": 62091, - "vk": 62092, - "vk-alternitive": 62093, - "vk-with-circle": 62094, - "voicemail": 62095, - "wallet": 62096, - "warning": 62097, - "water": 62098, - "windows-store": 62099, - "xing": 62100, - "xing-with-circle": 62101, - "yelp": 62102, - "youko": 62103, - "youko-with-circle": 62104, - "youtube": 62105, - "youtube-with-circle": 62106 -}; -},737,[],"node_modules/react-native-vector-icons/glyphmaps/Entypo.json"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getImageSource = exports.ToolbarAndroid = exports.TabBarItemIOS = exports.TabBarItem = exports.Button = exports.default = void 0; - - var _createIconSet = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./lib/create-icon-set")); - - var _FontAwesome = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./glyphmaps/FontAwesome.json")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var iconSet = (0, _createIconSet.default)(_FontAwesome.default, 'FontAwesome', 'FontAwesome.ttf'); - var _default = iconSet; - exports.default = _default; - var Button = iconSet.Button; - exports.Button = Button; - var TabBarItem = iconSet.TabBarItem; - exports.TabBarItem = TabBarItem; - var TabBarItemIOS = iconSet.TabBarItemIOS; - exports.TabBarItemIOS = TabBarItemIOS; - var ToolbarAndroid = iconSet.ToolbarAndroid; - exports.ToolbarAndroid = ToolbarAndroid; - var getImageSource = iconSet.getImageSource; - exports.getImageSource = getImageSource; -},728,[633,738],"node_modules/react-native-vector-icons/FontAwesome.js"); -__d(function(global, require, module, exports) { - module.exports = { - "glass": 61440, - "music": 61441, - "search": 61442, - "envelope-o": 61443, - "heart": 61444, - "star": 61445, - "star-o": 61446, - "user": 61447, - "film": 61448, - "th-large": 61449, - "th": 61450, - "th-list": 61451, - "check": 61452, - "remove": 61453, - "close": 61453, - "times": 61453, - "search-plus": 61454, - "search-minus": 61456, - "power-off": 61457, - "signal": 61458, - "gear": 61459, - "cog": 61459, - "trash-o": 61460, - "home": 61461, - "file-o": 61462, - "clock-o": 61463, - "road": 61464, - "download": 61465, - "arrow-circle-o-down": 61466, - "arrow-circle-o-up": 61467, - "inbox": 61468, - "play-circle-o": 61469, - "rotate-right": 61470, - "repeat": 61470, - "refresh": 61473, - "list-alt": 61474, - "lock": 61475, - "flag": 61476, - "headphones": 61477, - "volume-off": 61478, - "volume-down": 61479, - "volume-up": 61480, - "qrcode": 61481, - "barcode": 61482, - "tag": 61483, - "tags": 61484, - "book": 61485, - "bookmark": 61486, - "print": 61487, - "camera": 61488, - "font": 61489, - "bold": 61490, - "italic": 61491, - "text-height": 61492, - "text-width": 61493, - "align-left": 61494, - "align-center": 61495, - "align-right": 61496, - "align-justify": 61497, - "list": 61498, - "dedent": 61499, - "outdent": 61499, - "indent": 61500, - "video-camera": 61501, - "photo": 61502, - "image": 61502, - "picture-o": 61502, - "pencil": 61504, - "map-marker": 61505, - "adjust": 61506, - "tint": 61507, - "edit": 61508, - "pencil-square-o": 61508, - "share-square-o": 61509, - "check-square-o": 61510, - "arrows": 61511, - "step-backward": 61512, - "fast-backward": 61513, - "backward": 61514, - "play": 61515, - "pause": 61516, - "stop": 61517, - "forward": 61518, - "fast-forward": 61520, - "step-forward": 61521, - "eject": 61522, - "chevron-left": 61523, - "chevron-right": 61524, - "plus-circle": 61525, - "minus-circle": 61526, - "times-circle": 61527, - "check-circle": 61528, - "question-circle": 61529, - "info-circle": 61530, - "crosshairs": 61531, - "times-circle-o": 61532, - "check-circle-o": 61533, - "ban": 61534, - "arrow-left": 61536, - "arrow-right": 61537, - "arrow-up": 61538, - "arrow-down": 61539, - "mail-forward": 61540, - "share": 61540, - "expand": 61541, - "compress": 61542, - "plus": 61543, - "minus": 61544, - "asterisk": 61545, - "exclamation-circle": 61546, - "gift": 61547, - "leaf": 61548, - "fire": 61549, - "eye": 61550, - "eye-slash": 61552, - "warning": 61553, - "exclamation-triangle": 61553, - "plane": 61554, - "calendar": 61555, - "random": 61556, - "comment": 61557, - "magnet": 61558, - "chevron-up": 61559, - "chevron-down": 61560, - "retweet": 61561, - "shopping-cart": 61562, - "folder": 61563, - "folder-open": 61564, - "arrows-v": 61565, - "arrows-h": 61566, - "bar-chart-o": 61568, - "bar-chart": 61568, - "twitter-square": 61569, - "facebook-square": 61570, - "camera-retro": 61571, - "key": 61572, - "gears": 61573, - "cogs": 61573, - "comments": 61574, - "thumbs-o-up": 61575, - "thumbs-o-down": 61576, - "star-half": 61577, - "heart-o": 61578, - "sign-out": 61579, - "linkedin-square": 61580, - "thumb-tack": 61581, - "external-link": 61582, - "sign-in": 61584, - "trophy": 61585, - "github-square": 61586, - "upload": 61587, - "lemon-o": 61588, - "phone": 61589, - "square-o": 61590, - "bookmark-o": 61591, - "phone-square": 61592, - "twitter": 61593, - "facebook-f": 61594, - "facebook": 61594, - "github": 61595, - "unlock": 61596, - "credit-card": 61597, - "feed": 61598, - "rss": 61598, - "hdd-o": 61600, - "bullhorn": 61601, - "bell": 61683, - "certificate": 61603, - "hand-o-right": 61604, - "hand-o-left": 61605, - "hand-o-up": 61606, - "hand-o-down": 61607, - "arrow-circle-left": 61608, - "arrow-circle-right": 61609, - "arrow-circle-up": 61610, - "arrow-circle-down": 61611, - "globe": 61612, - "wrench": 61613, - "tasks": 61614, - "filter": 61616, - "briefcase": 61617, - "arrows-alt": 61618, - "group": 61632, - "users": 61632, - "chain": 61633, - "link": 61633, - "cloud": 61634, - "flask": 61635, - "cut": 61636, - "scissors": 61636, - "copy": 61637, - "files-o": 61637, - "paperclip": 61638, - "save": 61639, - "floppy-o": 61639, - "square": 61640, - "navicon": 61641, - "reorder": 61641, - "bars": 61641, - "list-ul": 61642, - "list-ol": 61643, - "strikethrough": 61644, - "underline": 61645, - "table": 61646, - "magic": 61648, - "truck": 61649, - "pinterest": 61650, - "pinterest-square": 61651, - "google-plus-square": 61652, - "google-plus": 61653, - "money": 61654, - "caret-down": 61655, - "caret-up": 61656, - "caret-left": 61657, - "caret-right": 61658, - "columns": 61659, - "unsorted": 61660, - "sort": 61660, - "sort-down": 61661, - "sort-desc": 61661, - "sort-up": 61662, - "sort-asc": 61662, - "envelope": 61664, - "linkedin": 61665, - "rotate-left": 61666, - "undo": 61666, - "legal": 61667, - "gavel": 61667, - "dashboard": 61668, - "tachometer": 61668, - "comment-o": 61669, - "comments-o": 61670, - "flash": 61671, - "bolt": 61671, - "sitemap": 61672, - "umbrella": 61673, - "paste": 61674, - "clipboard": 61674, - "lightbulb-o": 61675, - "exchange": 61676, - "cloud-download": 61677, - "cloud-upload": 61678, - "user-md": 61680, - "stethoscope": 61681, - "suitcase": 61682, - "bell-o": 61602, - "coffee": 61684, - "cutlery": 61685, - "file-text-o": 61686, - "building-o": 61687, - "hospital-o": 61688, - "ambulance": 61689, - "medkit": 61690, - "fighter-jet": 61691, - "beer": 61692, - "h-square": 61693, - "plus-square": 61694, - "angle-double-left": 61696, - "angle-double-right": 61697, - "angle-double-up": 61698, - "angle-double-down": 61699, - "angle-left": 61700, - "angle-right": 61701, - "angle-up": 61702, - "angle-down": 61703, - "desktop": 61704, - "laptop": 61705, - "tablet": 61706, - "mobile-phone": 61707, - "mobile": 61707, - "circle-o": 61708, - "quote-left": 61709, - "quote-right": 61710, - "spinner": 61712, - "circle": 61713, - "mail-reply": 61714, - "reply": 61714, - "github-alt": 61715, - "folder-o": 61716, - "folder-open-o": 61717, - "smile-o": 61720, - "frown-o": 61721, - "meh-o": 61722, - "gamepad": 61723, - "keyboard-o": 61724, - "flag-o": 61725, - "flag-checkered": 61726, - "terminal": 61728, - "code": 61729, - "mail-reply-all": 61730, - "reply-all": 61730, - "star-half-empty": 61731, - "star-half-full": 61731, - "star-half-o": 61731, - "location-arrow": 61732, - "crop": 61733, - "code-fork": 61734, - "unlink": 61735, - "chain-broken": 61735, - "question": 61736, - "info": 61737, - "exclamation": 61738, - "superscript": 61739, - "subscript": 61740, - "eraser": 61741, - "puzzle-piece": 61742, - "microphone": 61744, - "microphone-slash": 61745, - "shield": 61746, - "calendar-o": 61747, - "fire-extinguisher": 61748, - "rocket": 61749, - "maxcdn": 61750, - "chevron-circle-left": 61751, - "chevron-circle-right": 61752, - "chevron-circle-up": 61753, - "chevron-circle-down": 61754, - "html5": 61755, - "css3": 61756, - "anchor": 61757, - "unlock-alt": 61758, - "bullseye": 61760, - "ellipsis-h": 61761, - "ellipsis-v": 61762, - "rss-square": 61763, - "play-circle": 61764, - "ticket": 61765, - "minus-square": 61766, - "minus-square-o": 61767, - "level-up": 61768, - "level-down": 61769, - "check-square": 61770, - "pencil-square": 61771, - "external-link-square": 61772, - "share-square": 61773, - "compass": 61774, - "toggle-down": 61776, - "caret-square-o-down": 61776, - "toggle-up": 61777, - "caret-square-o-up": 61777, - "toggle-right": 61778, - "caret-square-o-right": 61778, - "euro": 61779, - "eur": 61779, - "gbp": 61780, - "dollar": 61781, - "usd": 61781, - "rupee": 61782, - "inr": 61782, - "cny": 61783, - "rmb": 61783, - "yen": 61783, - "jpy": 61783, - "ruble": 61784, - "rouble": 61784, - "rub": 61784, - "won": 61785, - "krw": 61785, - "bitcoin": 61786, - "btc": 61786, - "file": 61787, - "file-text": 61788, - "sort-alpha-asc": 61789, - "sort-alpha-desc": 61790, - "sort-amount-asc": 61792, - "sort-amount-desc": 61793, - "sort-numeric-asc": 61794, - "sort-numeric-desc": 61795, - "thumbs-up": 61796, - "thumbs-down": 61797, - "youtube-square": 61798, - "youtube": 61799, - "xing": 61800, - "xing-square": 61801, - "youtube-play": 61802, - "dropbox": 61803, - "stack-overflow": 61804, - "instagram": 61805, - "flickr": 61806, - "adn": 61808, - "bitbucket": 61809, - "bitbucket-square": 61810, - "tumblr": 61811, - "tumblr-square": 61812, - "long-arrow-down": 61813, - "long-arrow-up": 61814, - "long-arrow-left": 61815, - "long-arrow-right": 61816, - "apple": 61817, - "windows": 61818, - "android": 61819, - "linux": 61820, - "dribbble": 61821, - "skype": 61822, - "foursquare": 61824, - "trello": 61825, - "female": 61826, - "male": 61827, - "gittip": 61828, - "gratipay": 61828, - "sun-o": 61829, - "moon-o": 61830, - "archive": 61831, - "bug": 61832, - "vk": 61833, - "weibo": 61834, - "renren": 61835, - "pagelines": 61836, - "stack-exchange": 61837, - "arrow-circle-o-right": 61838, - "arrow-circle-o-left": 61840, - "toggle-left": 61841, - "caret-square-o-left": 61841, - "dot-circle-o": 61842, - "wheelchair": 61843, - "vimeo-square": 61844, - "turkish-lira": 61845, - "try": 61845, - "plus-square-o": 61846, - "space-shuttle": 61847, - "slack": 61848, - "envelope-square": 61849, - "wordpress": 61850, - "openid": 61851, - "institution": 61852, - "bank": 61852, - "university": 61852, - "mortar-board": 61853, - "graduation-cap": 61853, - "yahoo": 61854, - "google": 61856, - "reddit": 61857, - "reddit-square": 61858, - "stumbleupon-circle": 61859, - "stumbleupon": 61860, - "delicious": 61861, - "digg": 61862, - "pied-piper-pp": 61863, - "pied-piper-alt": 61864, - "drupal": 61865, - "joomla": 61866, - "language": 61867, - "fax": 61868, - "building": 61869, - "child": 61870, - "paw": 61872, - "spoon": 61873, - "cube": 61874, - "cubes": 61875, - "behance": 61876, - "behance-square": 61877, - "steam": 61878, - "steam-square": 61879, - "recycle": 61880, - "automobile": 61881, - "car": 61881, - "cab": 61882, - "taxi": 61882, - "tree": 61883, - "spotify": 61884, - "deviantart": 61885, - "soundcloud": 61886, - "database": 61888, - "file-pdf-o": 61889, - "file-word-o": 61890, - "file-excel-o": 61891, - "file-powerpoint-o": 61892, - "file-photo-o": 61893, - "file-picture-o": 61893, - "file-image-o": 61893, - "file-zip-o": 61894, - "file-archive-o": 61894, - "file-sound-o": 61895, - "file-audio-o": 61895, - "file-movie-o": 61896, - "file-video-o": 61896, - "file-code-o": 61897, - "vine": 61898, - "codepen": 61899, - "jsfiddle": 61900, - "life-bouy": 61901, - "life-buoy": 61901, - "life-saver": 61901, - "support": 61901, - "life-ring": 61901, - "circle-o-notch": 61902, - "ra": 61904, - "resistance": 61904, - "rebel": 61904, - "ge": 61905, - "empire": 61905, - "git-square": 61906, - "git": 61907, - "y-combinator-square": 61908, - "yc-square": 61908, - "hacker-news": 61908, - "tencent-weibo": 61909, - "qq": 61910, - "wechat": 61911, - "weixin": 61911, - "send": 61912, - "paper-plane": 61912, - "send-o": 61913, - "paper-plane-o": 61913, - "history": 61914, - "circle-thin": 61915, - "header": 61916, - "paragraph": 61917, - "sliders": 61918, - "share-alt": 61920, - "share-alt-square": 61921, - "bomb": 61922, - "soccer-ball-o": 61923, - "futbol-o": 61923, - "tty": 61924, - "binoculars": 61925, - "plug": 61926, - "slideshare": 61927, - "twitch": 61928, - "yelp": 61929, - "newspaper-o": 61930, - "wifi": 61931, - "calculator": 61932, - "paypal": 61933, - "google-wallet": 61934, - "cc-visa": 61936, - "cc-mastercard": 61937, - "cc-discover": 61938, - "cc-amex": 61939, - "cc-paypal": 61940, - "cc-stripe": 61941, - "bell-slash": 61942, - "bell-slash-o": 61943, - "trash": 61944, - "copyright": 61945, - "at": 61946, - "eyedropper": 61947, - "paint-brush": 61948, - "birthday-cake": 61949, - "area-chart": 61950, - "pie-chart": 61952, - "line-chart": 61953, - "lastfm": 61954, - "lastfm-square": 61955, - "toggle-off": 61956, - "toggle-on": 61957, - "bicycle": 61958, - "bus": 61959, - "ioxhost": 61960, - "angellist": 61961, - "cc": 61962, - "shekel": 61963, - "sheqel": 61963, - "ils": 61963, - "meanpath": 61964, - "buysellads": 61965, - "connectdevelop": 61966, - "dashcube": 61968, - "forumbee": 61969, - "leanpub": 61970, - "sellsy": 61971, - "shirtsinbulk": 61972, - "simplybuilt": 61973, - "skyatlas": 61974, - "cart-plus": 61975, - "cart-arrow-down": 61976, - "diamond": 61977, - "ship": 61978, - "user-secret": 61979, - "motorcycle": 61980, - "street-view": 61981, - "heartbeat": 61982, - "venus": 61985, - "mars": 61986, - "mercury": 61987, - "intersex": 61988, - "transgender": 61988, - "transgender-alt": 61989, - "venus-double": 61990, - "mars-double": 61991, - "venus-mars": 61992, - "mars-stroke": 61993, - "mars-stroke-v": 61994, - "mars-stroke-h": 61995, - "neuter": 61996, - "genderless": 61997, - "facebook-official": 62000, - "pinterest-p": 62001, - "whatsapp": 62002, - "server": 62003, - "user-plus": 62004, - "user-times": 62005, - "hotel": 62006, - "bed": 62006, - "viacoin": 62007, - "train": 62008, - "subway": 62009, - "medium": 62010, - "yc": 62011, - "y-combinator": 62011, - "optin-monster": 62012, - "opencart": 62013, - "expeditedssl": 62014, - "battery-4": 62016, - "battery": 62016, - "battery-full": 62016, - "battery-3": 62017, - "battery-three-quarters": 62017, - "battery-2": 62018, - "battery-half": 62018, - "battery-1": 62019, - "battery-quarter": 62019, - "battery-0": 62020, - "battery-empty": 62020, - "mouse-pointer": 62021, - "i-cursor": 62022, - "object-group": 62023, - "object-ungroup": 62024, - "sticky-note": 62025, - "sticky-note-o": 62026, - "cc-jcb": 62027, - "cc-diners-club": 62028, - "clone": 62029, - "balance-scale": 62030, - "hourglass-o": 62032, - "hourglass-1": 62033, - "hourglass-start": 62033, - "hourglass-2": 62034, - "hourglass-half": 62034, - "hourglass-3": 62035, - "hourglass-end": 62035, - "hourglass": 62036, - "hand-grab-o": 62037, - "hand-rock-o": 62037, - "hand-stop-o": 62038, - "hand-paper-o": 62038, - "hand-scissors-o": 62039, - "hand-lizard-o": 62040, - "hand-spock-o": 62041, - "hand-pointer-o": 62042, - "hand-peace-o": 62043, - "trademark": 62044, - "registered": 62045, - "creative-commons": 62046, - "gg": 62048, - "gg-circle": 62049, - "tripadvisor": 62050, - "odnoklassniki": 62051, - "odnoklassniki-square": 62052, - "get-pocket": 62053, - "wikipedia-w": 62054, - "safari": 62055, - "chrome": 62056, - "firefox": 62057, - "opera": 62058, - "internet-explorer": 62059, - "tv": 62060, - "television": 62060, - "contao": 62061, - "500px": 62062, - "amazon": 62064, - "calendar-plus-o": 62065, - "calendar-minus-o": 62066, - "calendar-times-o": 62067, - "calendar-check-o": 62068, - "industry": 62069, - "map-pin": 62070, - "map-signs": 62071, - "map-o": 62072, - "map": 62073, - "commenting": 62074, - "commenting-o": 62075, - "houzz": 62076, - "vimeo": 62077, - "black-tie": 62078, - "fonticons": 62080, - "reddit-alien": 62081, - "edge": 62082, - "credit-card-alt": 62083, - "codiepie": 62084, - "modx": 62085, - "fort-awesome": 62086, - "usb": 62087, - "product-hunt": 62088, - "mixcloud": 62089, - "scribd": 62090, - "pause-circle": 62091, - "pause-circle-o": 62092, - "stop-circle": 62093, - "stop-circle-o": 62094, - "shopping-bag": 62096, - "shopping-basket": 62097, - "hashtag": 62098, - "bluetooth": 62099, - "bluetooth-b": 62100, - "percent": 62101, - "gitlab": 62102, - "wpbeginner": 62103, - "wpforms": 62104, - "envira": 62105, - "universal-access": 62106, - "wheelchair-alt": 62107, - "question-circle-o": 62108, - "blind": 62109, - "audio-description": 62110, - "volume-control-phone": 62112, - "braille": 62113, - "assistive-listening-systems": 62114, - "asl-interpreting": 62115, - "american-sign-language-interpreting": 62115, - "deafness": 62116, - "hard-of-hearing": 62116, - "deaf": 62116, - "glide": 62117, - "glide-g": 62118, - "signing": 62119, - "sign-language": 62119, - "low-vision": 62120, - "viadeo": 62121, - "viadeo-square": 62122, - "snapchat": 62123, - "snapchat-ghost": 62124, - "snapchat-square": 62125, - "pied-piper": 62126, - "first-order": 62128, - "yoast": 62129, - "themeisle": 62130, - "google-plus-circle": 62131, - "google-plus-official": 62131, - "fa": 62132, - "font-awesome": 62132, - "handshake-o": 62133, - "envelope-open": 62134, - "envelope-open-o": 62135, - "linode": 62136, - "address-book": 62137, - "address-book-o": 62138, - "vcard": 62139, - "address-card": 62139, - "vcard-o": 62140, - "address-card-o": 62140, - "user-circle": 62141, - "user-circle-o": 62142, - "user-o": 62144, - "id-badge": 62145, - "drivers-license": 62146, - "id-card": 62146, - "drivers-license-o": 62147, - "id-card-o": 62147, - "quora": 62148, - "free-code-camp": 62149, - "telegram": 62150, - "thermometer-4": 62151, - "thermometer": 62151, - "thermometer-full": 62151, - "thermometer-3": 62152, - "thermometer-three-quarters": 62152, - "thermometer-2": 62153, - "thermometer-half": 62153, - "thermometer-1": 62154, - "thermometer-quarter": 62154, - "thermometer-0": 62155, - "thermometer-empty": 62155, - "shower": 62156, - "bathtub": 62157, - "s15": 62157, - "bath": 62157, - "podcast": 62158, - "window-maximize": 62160, - "window-minimize": 62161, - "window-restore": 62162, - "times-rectangle": 62163, - "window-close": 62163, - "times-rectangle-o": 62164, - "window-close-o": 62164, - "bandcamp": 62165, - "grav": 62166, - "etsy": 62167, - "imdb": 62168, - "ravelry": 62169, - "eercast": 62170, - "microchip": 62171, - "snowflake-o": 62172, - "superpowers": 62173, - "wpexplorer": 62174, - "meetup": 62176 -}; -},738,[],"node_modules/react-native-vector-icons/glyphmaps/FontAwesome.json"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getImageSource = exports.ToolbarAndroid = exports.TabBarItemIOS = exports.TabBarItem = exports.Button = exports.default = void 0; - - var _createIconSet = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./lib/create-icon-set")); - - var _SimpleLineIcons = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./glyphmaps/SimpleLineIcons.json")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var iconSet = (0, _createIconSet.default)(_SimpleLineIcons.default, 'simple-line-icons', 'SimpleLineIcons.ttf'); - var _default = iconSet; - exports.default = _default; - var Button = iconSet.Button; - exports.Button = Button; - var TabBarItem = iconSet.TabBarItem; - exports.TabBarItem = TabBarItem; - var TabBarItemIOS = iconSet.TabBarItemIOS; - exports.TabBarItemIOS = TabBarItemIOS; - var ToolbarAndroid = iconSet.ToolbarAndroid; - exports.ToolbarAndroid = ToolbarAndroid; - var getImageSource = iconSet.getImageSource; - exports.getImageSource = getImageSource; -},729,[633,739],"node_modules/react-native-vector-icons/SimpleLineIcons.js"); -__d(function(global, require, module, exports) { - module.exports = { - "user": 57349, - "people": 57345, - "user-female": 57344, - "user-follow": 57346, - "user-following": 57347, - "user-unfollow": 57348, - "login": 57446, - "logout": 57445, - "emotsmile": 57377, - "phone": 58880, - "call-end": 57416, - "call-in": 57415, - "call-out": 57414, - "map": 57395, - "location-pin": 57494, - "direction": 57410, - "directions": 57409, - "compass": 57413, - "layers": 57396, - "menu": 58881, - "list": 57447, - "options-vertical": 58882, - "options": 58883, - "arrow-down": 58884, - "arrow-left": 58885, - "arrow-right": 58886, - "arrow-up": 58887, - "arrow-up-circle": 57464, - "arrow-left-circle": 57466, - "arrow-right-circle": 57465, - "arrow-down-circle": 57467, - "check": 57472, - "clock": 57473, - "plus": 57493, - "minus": 58901, - "close": 57474, - "event": 58905, - "exclamation": 58903, - "organization": 58902, - "trophy": 57350, - "screen-smartphone": 57360, - "screen-desktop": 57361, - "plane": 57362, - "notebook": 57363, - "mustache": 57364, - "mouse": 57365, - "magnet": 57366, - "energy": 57376, - "disc": 57378, - "cursor": 57454, - "cursor-move": 57379, - "crop": 57380, - "chemistry": 57382, - "speedometer": 57351, - "shield": 57358, - "screen-tablet": 57359, - "magic-wand": 57367, - "hourglass": 57368, - "graduation": 57369, - "ghost": 57370, - "game-controller": 57371, - "fire": 57372, - "eyeglass": 57373, - "envelope-open": 57374, - "envelope-letter": 57375, - "bell": 57383, - "badge": 57384, - "anchor": 57385, - "wallet": 57386, - "vector": 57387, - "speech": 57388, - "puzzle": 57389, - "printer": 57390, - "present": 57391, - "playlist": 57392, - "pin": 57393, - "picture": 57394, - "handbag": 57397, - "globe-alt": 57398, - "globe": 57399, - "folder-alt": 57401, - "folder": 57481, - "film": 57402, - "feed": 57403, - "drop": 57406, - "drawer": 57407, - "docs": 57408, - "doc": 57477, - "diamond": 57411, - "cup": 57412, - "calculator": 57417, - "bubbles": 57418, - "briefcase": 57419, - "book-open": 57420, - "basket-loaded": 57421, - "basket": 57422, - "bag": 57423, - "action-undo": 57424, - "action-redo": 57425, - "wrench": 57426, - "umbrella": 57427, - "trash": 57428, - "tag": 57429, - "support": 57430, - "frame": 57400, - "size-fullscreen": 57431, - "size-actual": 57432, - "shuffle": 57433, - "share-alt": 57434, - "share": 57435, - "rocket": 57436, - "question": 57437, - "pie-chart": 57438, - "pencil": 57439, - "note": 57440, - "loop": 57444, - "home": 57449, - "grid": 57450, - "graph": 57451, - "microphone": 57443, - "music-tone-alt": 57441, - "music-tone": 57442, - "earphones-alt": 57404, - "earphones": 57405, - "equalizer": 57452, - "like": 57448, - "dislike": 57453, - "control-start": 57455, - "control-rewind": 57456, - "control-play": 57457, - "control-pause": 57458, - "control-forward": 57459, - "control-end": 57460, - "volume-1": 57503, - "volume-2": 57504, - "volume-off": 57505, - "calendar": 57461, - "bulb": 57462, - "chart": 57463, - "ban": 57468, - "bubble": 57469, - "camrecorder": 57470, - "camera": 57471, - "cloud-download": 57475, - "cloud-upload": 57476, - "envelope": 57478, - "eye": 57479, - "flag": 57480, - "heart": 57482, - "info": 57483, - "key": 57484, - "link": 57485, - "lock": 57486, - "lock-open": 57487, - "magnifier": 57488, - "magnifier-add": 57489, - "magnifier-remove": 57490, - "paper-clip": 57491, - "paper-plane": 57492, - "power": 57495, - "refresh": 57496, - "reload": 57497, - "settings": 57498, - "star": 57499, - "symbol-female": 57500, - "symbol-male": 57501, - "target": 57502, - "credit-card": 57381, - "paypal": 58888, - "social-tumblr": 57354, - "social-twitter": 57353, - "social-facebook": 57355, - "social-instagram": 58889, - "social-linkedin": 58890, - "social-pinterest": 58891, - "social-github": 58892, - "social-google": 58893, - "social-reddit": 58894, - "social-skype": 58895, - "social-dribbble": 57357, - "social-behance": 58896, - "social-foursqare": 58897, - "social-soundcloud": 58898, - "social-spotify": 58899, - "social-stumbleupon": 58900, - "social-youtube": 57352, - "social-dropbox": 57356, - "social-vkontakte": 58904, - "social-steam": 58912 -}; -},739,[],"node_modules/react-native-vector-icons/glyphmaps/SimpleLineIcons.json"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getImageSource = exports.ToolbarAndroid = exports.TabBarItemIOS = exports.TabBarItem = exports.Button = exports.default = void 0; - - var _createIconSet = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./lib/create-icon-set")); - - var _Feather = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./glyphmaps/Feather.json")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var iconSet = (0, _createIconSet.default)(_Feather.default, 'Feather', 'Feather.ttf'); - var _default = iconSet; - exports.default = _default; - var Button = iconSet.Button; - exports.Button = Button; - var TabBarItem = iconSet.TabBarItem; - exports.TabBarItem = TabBarItem; - var TabBarItemIOS = iconSet.TabBarItemIOS; - exports.TabBarItemIOS = TabBarItemIOS; - var ToolbarAndroid = iconSet.ToolbarAndroid; - exports.ToolbarAndroid = ToolbarAndroid; - var getImageSource = iconSet.getImageSource; - exports.getImageSource = getImageSource; -},730,[633,740],"node_modules/react-native-vector-icons/Feather.js"); -__d(function(global, require, module, exports) { - module.exports = { - "activity": 59648, - "airplay": 59649, - "alert-circle": 59650, - "alert-octagon": 59651, - "alert-triangle": 59652, - "align-center": 59653, - "align-justify": 59654, - "align-left": 59655, - "align-right": 59656, - "anchor": 59657, - "aperture": 59658, - "archive": 59659, - "arrow-down": 59660, - "arrow-down-circle": 59661, - "arrow-down-left": 59662, - "arrow-down-right": 59663, - "arrow-left": 59664, - "arrow-left-circle": 59665, - "arrow-right": 59666, - "arrow-right-circle": 59667, - "arrow-up": 59668, - "arrow-up-circle": 59669, - "arrow-up-left": 59670, - "arrow-up-right": 59671, - "at-sign": 59672, - "award": 59673, - "bar-chart": 59674, - "bar-chart-2": 59675, - "battery": 59676, - "battery-charging": 59677, - "bell": 59678, - "bell-off": 59679, - "bluetooth": 59680, - "bold": 59681, - "book": 59682, - "book-open": 59683, - "bookmark": 59684, - "box": 59685, - "briefcase": 59686, - "calendar": 59687, - "camera": 59688, - "camera-off": 59689, - "cast": 59690, - "check": 59691, - "check-circle": 59692, - "check-square": 59693, - "chevron-down": 59694, - "chevron-left": 59695, - "chevron-right": 59696, - "chevron-up": 59697, - "chevrons-down": 59698, - "chevrons-left": 59699, - "chevrons-right": 59700, - "chevrons-up": 59701, - "chrome": 59702, - "circle": 59703, - "clipboard": 59704, - "clock": 59705, - "cloud": 59706, - "cloud-drizzle": 59707, - "cloud-lightning": 59708, - "cloud-off": 59709, - "cloud-rain": 59710, - "cloud-snow": 59711, - "code": 59712, - "codepen": 59713, - "command": 59714, - "compass": 59715, - "copy": 59716, - "corner-down-left": 59717, - "corner-down-right": 59718, - "corner-left-down": 59719, - "corner-left-up": 59720, - "corner-right-down": 59721, - "corner-right-up": 59722, - "corner-up-left": 59723, - "corner-up-right": 59724, - "cpu": 59725, - "credit-card": 59726, - "crop": 59727, - "crosshair": 59728, - "database": 59729, - "delete": 59730, - "disc": 59731, - "dollar-sign": 59732, - "download": 59733, - "download-cloud": 59734, - "droplet": 59735, - "edit": 59736, - "edit-2": 59737, - "edit-3": 59738, - "external-link": 59739, - "eye": 59740, - "eye-off": 59741, - "facebook": 59742, - "fast-forward": 59743, - "feather": 59744, - "file": 59745, - "file-minus": 59746, - "file-plus": 59747, - "file-text": 59748, - "film": 59749, - "filter": 59750, - "flag": 59751, - "folder": 59752, - "folder-minus": 59753, - "folder-plus": 59754, - "gift": 59755, - "git-branch": 59756, - "git-commit": 59757, - "git-merge": 59758, - "git-pull-request": 59759, - "github": 59760, - "gitlab": 59761, - "globe": 59762, - "grid": 59763, - "hard-drive": 59764, - "hash": 59765, - "headphones": 59766, - "heart": 59767, - "help-circle": 59768, - "home": 59769, - "image": 59770, - "inbox": 59771, - "info": 59772, - "instagram": 59773, - "italic": 59774, - "layers": 59775, - "layout": 59776, - "life-buoy": 59777, - "link": 59778, - "link-2": 59779, - "linkedin": 59780, - "list": 59781, - "loader": 59782, - "lock": 59783, - "log-in": 59784, - "log-out": 59785, - "mail": 59786, - "map": 59787, - "map-pin": 59788, - "maximize": 59789, - "maximize-2": 59790, - "menu": 59791, - "message-circle": 59792, - "message-square": 59793, - "mic": 59794, - "mic-off": 59795, - "minimize": 59796, - "minimize-2": 59797, - "minus": 59798, - "minus-circle": 59799, - "minus-square": 59800, - "monitor": 59801, - "moon": 59802, - "more-horizontal": 59803, - "more-vertical": 59804, - "move": 59805, - "music": 59806, - "navigation": 59807, - "navigation-2": 59808, - "octagon": 59809, - "package": 59810, - "paperclip": 59811, - "pause": 59812, - "pause-circle": 59813, - "percent": 59814, - "phone": 59815, - "phone-call": 59816, - "phone-forwarded": 59817, - "phone-incoming": 59818, - "phone-missed": 59819, - "phone-off": 59820, - "phone-outgoing": 59821, - "pie-chart": 59822, - "play": 59823, - "play-circle": 59824, - "plus": 59825, - "plus-circle": 59826, - "plus-square": 59827, - "pocket": 59828, - "power": 59829, - "printer": 59830, - "radio": 59831, - "refresh-ccw": 59832, - "refresh-cw": 59833, - "repeat": 59834, - "rewind": 59835, - "rotate-ccw": 59836, - "rotate-cw": 59837, - "rss": 59838, - "save": 59839, - "scissors": 59840, - "search": 59841, - "send": 59842, - "server": 59843, - "settings": 59844, - "share": 59845, - "share-2": 59846, - "shield": 59847, - "shield-off": 59848, - "shopping-bag": 59849, - "shopping-cart": 59850, - "shuffle": 59851, - "sidebar": 59852, - "skip-back": 59853, - "skip-forward": 59854, - "slack": 59855, - "slash": 59856, - "sliders": 59857, - "smartphone": 59858, - "speaker": 59859, - "square": 59860, - "star": 59861, - "stop-circle": 59862, - "sun": 59863, - "sunrise": 59864, - "sunset": 59865, - "tablet": 59866, - "tag": 59867, - "target": 59868, - "terminal": 59869, - "thermometer": 59870, - "thumbs-down": 59871, - "thumbs-up": 59872, - "toggle-left": 59873, - "toggle-right": 59874, - "trash": 59875, - "trash-2": 59876, - "trending-down": 59877, - "trending-up": 59878, - "triangle": 59879, - "truck": 59880, - "tv": 59881, - "twitter": 59882, - "type": 59883, - "umbrella": 59884, - "underline": 59885, - "unlock": 59886, - "upload": 59887, - "upload-cloud": 59888, - "user": 59889, - "user-check": 59890, - "user-minus": 59891, - "user-plus": 59892, - "user-x": 59893, - "users": 59894, - "video": 59895, - "video-off": 59896, - "voicemail": 59897, - "volume": 59898, - "volume-1": 59899, - "volume-2": 59900, - "volume-x": 59901, - "watch": 59902, - "wifi": 59903, - "wifi-off": 59904, - "wind": 59905, - "x": 59906, - "x-circle": 59907, - "x-square": 59908, - "youtube": 59909, - "zap": 59910, - "zap-off": 59911, - "zoom-in": 59912, - "zoom-out": 59913 -}; -},740,[],"node_modules/react-native-vector-icons/glyphmaps/Feather.json"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); - - var ViewPropTypes = _reactNative.ViewPropTypes || _reactNative.View.propTypes; - var _default = ViewPropTypes; - exports.default = _default; -},720,[1],"node_modules/react-native-elements/src/config/ViewPropTypes.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "prop-types")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var _default = _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.object, _propTypes.default.bool]); - - exports.default = _default; -},719,[143],"node_modules/react-native-elements/src/helpers/nodeType.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../config/ViewPropTypes")); - - var _nodeType = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "../helpers/nodeType")); - - var _fonts = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "../config/fonts")); - - var _colors = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[7], "../config/colors")); - - var _renderNode = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[8], "../helpers/renderNode")); - - var _Icon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[9], "../icons/Icon")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/input/Input.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Input: { - displayName: "Input" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/input/Input.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var Input = function (_Component) { - function Input() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, Input); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Input)).call.apply(_getPrototypeOf2, [this].concat(args))), _this._inputRef = function (input) { - return _this.input = input; - }, _temp)); - } - - _createClass(Input, [{ - key: "componentWillMount", - value: function componentWillMount() { - this.shake = this.shake.bind(this); - this.shakeAnimationValue = new _reactNative.Animated.Value(0); - this.props.shake && this.shake(); - } - }, { - key: "focus", - value: function focus() { - this.input.focus(); - } - }, { - key: "blur", - value: function blur() { - this.input.blur(); - } - }, { - key: "clear", - value: function clear() { - this.input.clear(); - } - }, { - key: "shake", - value: function shake() { - var shakeAnimationValue = this.shakeAnimationValue; - shakeAnimationValue.setValue(0); - - _reactNative.Animated.timing(shakeAnimationValue, { - duration: 375, - toValue: 3, - ease: _reactNative.Easing.bounce - }).start(); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - containerStyle = _this$props.containerStyle, - inputContainerStyle = _this$props.inputContainerStyle, - leftIcon = _this$props.leftIcon, - leftIconContainerStyle = _this$props.leftIconContainerStyle, - rightIcon = _this$props.rightIcon, - rightIconContainerStyle = _this$props.rightIconContainerStyle, - inputStyle = _this$props.inputStyle, - errorStyle = _this$props.errorStyle, - errorMessage = _this$props.errorMessage, - labelStyle = _this$props.labelStyle, - label = _this$props.label, - attributes = _objectWithoutProperties(_this$props, ["containerStyle", "inputContainerStyle", "leftIcon", "leftIconContainerStyle", "rightIcon", "rightIconContainerStyle", "inputStyle", "errorStyle", "errorMessage", "labelStyle", "label"]); - - var translateX = this.shakeAnimationValue.interpolate({ - inputRange: [0, 0.5, 1, 1.5, 2, 2.5, 3], - outputRange: [0, -15, 0, 15, 0, -15, 0] - }); - return _react.default.createElement(_reactNative.View, { - style: [{ - width: '90%' - }, containerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 77 - } - }, label && _react.default.createElement(_reactNative.Text, { - style: [styles.label, labelStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 78 - } - }, label), _react.default.createElement(_reactNative.Animated.View, { - style: [styles.inputContainer, inputContainerStyle, { - transform: [{ - translateX: translateX - }] - }], - __source: { - fileName: _jsxFileName, - lineNumber: 79 - } - }, leftIcon && _react.default.createElement(_reactNative.View, { - style: [styles.iconContainer, { - marginLeft: 15 - }, leftIconContainerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 87 - } - }, (0, _renderNode.default)(_Icon.default, leftIcon)), _react.default.createElement(_reactNative.TextInput, _extends({}, attributes, { - ref: this._inputRef, - underlineColorAndroid: "transparent", - style: [styles.input, inputStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 97 - } - })), rightIcon && _react.default.createElement(_reactNative.View, { - style: [styles.iconContainer, rightIconContainerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 104 - } - }, (0, _renderNode.default)(_Icon.default, rightIcon))), errorMessage && _react.default.createElement(_reactNative.Text, { - style: [styles.error, errorStyle && errorStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 110 - } - }, errorMessage)); - } - }]); - - _inherits(Input, _Component); - - return Input; - }(_react.Component); - - Input = _wrapComponent("Input")(Input); - Input.propTypes = { - containerStyle: _ViewPropTypes.default.style, - inputContainerStyle: _ViewPropTypes.default.style, - leftIcon: _nodeType.default, - leftIconContainerStyle: _ViewPropTypes.default.style, - rightIcon: _nodeType.default, - rightIconContainerStyle: _ViewPropTypes.default.style, - inputStyle: _reactNative.Text.propTypes.style, - shake: _propTypes.default.any, - errorStyle: _reactNative.Text.propTypes.style, - errorMessage: _propTypes.default.string, - label: _propTypes.default.string, - labelStyle: _reactNative.Text.propTypes.style - }; - - var styles = _reactNative.StyleSheet.create({ - inputContainer: { - flexDirection: 'row', - borderBottomWidth: 1, - borderColor: _colors.default.grey3, - alignItems: 'center' - }, - iconContainer: { - height: 40, - justifyContent: 'center', - alignItems: 'center' - }, - input: { - alignSelf: 'center', - color: 'black', - fontSize: 18, - marginLeft: 10, - flex: 1, - height: 40 - }, - error: { - color: '#FF2D00', - margin: 5, - fontSize: 12 - }, - label: _objectSpread({ - color: _colors.default.grey3, - fontSize: 16 - }, _reactNative.Platform.select({ - ios: { - fontWeight: 'bold' - }, - android: _objectSpread({}, _fonts.default.android.bold) - })) - }); - - var _default2 = Input; - exports.default = _default2; -},697,[122,161,143,1,720,719,741,715,718,698],"node_modules/react-native-elements/src/input/Input.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - var _default = { - ios: {}, - android: { - regular: { - fontFamily: 'sans-serif' - }, - light: { - fontFamily: 'sans-serif-light' - }, - condensed: { - fontFamily: 'sans-serif-condensed' - }, - condensed_light: { - fontFamily: 'sans-serif-condensed', - fontWeight: 'light' - }, - black: { - fontFamily: 'sans-serif', - fontWeight: 'bold' - }, - thin: { - fontFamily: 'sans-serif-thin' - }, - medium: { - fontFamily: 'sans-serif-medium' - }, - bold: { - fontFamily: 'sans-serif', - fontWeight: 'bold' - } - } - }; - exports.default = _default; -},741,[],"node_modules/react-native-elements/src/config/fonts.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "prop-types")); - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "react")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _reactNativeTouchableScale = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "react-native-touchable-scale")); - - var _Avatar = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../avatar/Avatar")); - - var _badge = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "../badge/badge")); - - var _CheckBox = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "../checkbox/CheckBox")); - - var _Icon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[7], "../icons/Icon")); - - var _Text = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[8], "../text/Text")); - - var _ButtonGroup = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[9], "../buttons/ButtonGroup")); - - var _Input = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[10], "../input/Input")); - - var _Divider = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[11], "../divider/Divider")); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[12], "../config/ViewPropTypes")); - - var _colors = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[13], "../config/colors")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/list/ListItem.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - var ANDROID_SECONDARY = 'rgba(0, 0, 0, 0.54)'; - - var ListItem = function ListItem(props) { - var title = props.title, - titleStyle = props.titleStyle, - titleProps = props.titleProps, - subtitle = props.subtitle, - subtitleStyle = props.subtitleStyle, - subtitleProps = props.subtitleProps, - containerStyle = props.containerStyle, - component = props.component, - leftIcon = props.leftIcon, - leftAvatar = props.leftAvatar, - leftElement = props.leftElement, - rightIcon = props.rightIcon, - rightAvatar = props.rightAvatar, - rightElement = props.rightElement, - rightTitle = props.rightTitle, - rightTitleStyle = props.rightTitleStyle, - rightTitleProps = props.rightTitleProps, - rightSubtitle = props.rightSubtitle, - rightSubtitleStyle = props.rightSubtitleStyle, - rightSubtitleProps = props.rightSubtitleProps, - input = props.input, - buttonGroup = props.buttonGroup, - switchProps = props.switch, - checkBox = props.checkBox, - badge = props.badge, - chevron = props.chevron, - chevronColor = props.chevronColor, - contentContainerStyle = props.contentContainerStyle, - rightContentContainerStyle = props.rightContentContainerStyle, - checkmark = props.checkmark, - checkmarkColor = props.checkmarkColor, - disabled = props.disabled, - disabledStyle = props.disabledStyle, - bottomDivider = props.bottomDivider, - topDivider = props.topDivider, - scaleProps = props.scaleProps, - linearGradientProps = props.linearGradientProps, - _props$ViewComponent = props.ViewComponent, - ViewComponent = _props$ViewComponent === void 0 ? linearGradientProps && global.Expo ? global.Expo.LinearGradient : _reactNative.View : _props$ViewComponent, - attributes = _objectWithoutProperties(props, ["title", "titleStyle", "titleProps", "subtitle", "subtitleStyle", "subtitleProps", "containerStyle", "component", "leftIcon", "leftAvatar", "leftElement", "rightIcon", "rightAvatar", "rightElement", "rightTitle", "rightTitleStyle", "rightTitleProps", "rightSubtitle", "rightSubtitleStyle", "rightSubtitleProps", "input", "buttonGroup", "switch", "checkBox", "badge", "chevron", "chevronColor", "contentContainerStyle", "rightContentContainerStyle", "checkmark", "checkmarkColor", "disabled", "disabledStyle", "bottomDivider", "topDivider", "scaleProps", "linearGradientProps", "ViewComponent"]); - - var onPress = props.onPress, - onLongPress = props.onLongPress; - var Component = component || (scaleProps ? _reactNativeTouchableScale.default : onPress || onLongPress ? _reactNative.TouchableOpacity : _reactNative.View); - return _react.default.createElement(Component, _extends({}, attributes, scaleProps, { - disabled: disabled, - __source: { - fileName: _jsxFileName, - lineNumber: 78 - } - }), topDivider && _react.default.createElement(_Divider.default, { - __source: { - fileName: _jsxFileName, - lineNumber: 79 - } - }), _react.default.createElement(PadView, _extends({ - Component: ViewComponent - }, linearGradientProps, { - style: [styles.container, (buttonGroup || switchProps) && { - paddingVertical: 8 - }, containerStyle, disabled && disabledStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 80 - } - }), renderNode(leftElement), renderIcon(leftIcon), renderAvatar(leftAvatar), (title || subtitle) && _react.default.createElement(_reactNative.View, { - style: [styles.contentContainer, contentContainerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 94 - } - }, renderNode(title, titleProps, [styles.title, titleStyle]), renderNode(subtitle, subtitleProps, [styles.subtitle, subtitleStyle])), (rightTitle || rightSubtitle) && _react.default.createElement(_reactNative.View, { - style: [styles.rightContentContainer, rightContentContainerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 103 - } - }, renderNode(rightTitle, rightTitleProps, [styles.title, styles.rightTitle, rightTitleStyle]), renderNode(rightSubtitle, rightSubtitleProps, [styles.subtitle, styles.rightSubtitle, rightSubtitleStyle])), input && _react.default.createElement(_Input.default, _extends({}, input, { - inputStyle: [styles.input, input && input.inputStyle], - inputContainerStyle: [styles.inputContentContainer, input && input.inputContainerStyle], - containerStyle: [styles.inputContainer, input && input.containerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 119 - } - })), switchProps && _react.default.createElement(_reactNative.Switch, _extends({}, switchProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 132 - } - })), checkBox && _react.default.createElement(_CheckBox.default, _extends({}, checkBox, { - containerStyle: [styles.checkboxContainer, checkBox && checkBox.containerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 134 - } - })), badge && _react.default.createElement(_badge.default, _extends({}, badge, { - __source: { - fileName: _jsxFileName, - lineNumber: 142 - } - })), buttonGroup && _react.default.createElement(_ButtonGroup.default, _extends({}, buttonGroup, { - containerStyle: [styles.buttonGroupContainer, buttonGroup && buttonGroup.containerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 144 - } - })), renderAvatar(rightAvatar), renderIcon(rightIcon), renderNode(rightElement), checkmark && _react.default.createElement(Checkmark, { - color: checkmarkColor, - __source: { - fileName: _jsxFileName, - lineNumber: 155 - } - }), chevron && _react.default.createElement(Chevron, { - color: chevronColor, - __source: { - fileName: _jsxFileName, - lineNumber: 156 - } - })), bottomDivider && _react.default.createElement(_Divider.default, { - __source: { - fileName: _jsxFileName, - lineNumber: 158 - } - })); - }; - - var Chevron = function Chevron(_ref) { - var color = _ref.color; - return _react.default.createElement(_Icon.default, { - type: _reactNative.Platform.OS === 'ios' ? 'ionicon' : 'material', - name: _reactNative.Platform.OS === 'ios' ? 'ios-arrow-forward' : 'keyboard-arrow-right', - size: 16, - color: color, - __source: { - fileName: _jsxFileName, - lineNumber: 164 - } - }); - }; - - var Checkmark = function Checkmark(_ref2) { - var color = _ref2.color; - return _react.default.createElement(_Icon.default, { - type: "material", - name: "check", - size: 20, - color: color, - __source: { - fileName: _jsxFileName, - lineNumber: 173 - } - }); - }; - - var styles = _reactNative.StyleSheet.create({ - container: _objectSpread({}, _reactNative.Platform.select({ - ios: { - padding: 14 - }, - android: { - padding: 16 - } - }), { - flexDirection: 'row', - alignItems: 'center', - backgroundColor: 'white' - }), - title: _objectSpread({ - backgroundColor: 'transparent' - }, _reactNative.Platform.select({ - ios: { - fontSize: 17 - }, - android: { - fontSize: 16 - } - })), - subtitle: _objectSpread({ - backgroundColor: 'transparent' - }, _reactNative.Platform.select({ - ios: { - fontSize: 15 - }, - android: { - color: ANDROID_SECONDARY, - fontSize: 14 - } - })), - contentContainer: { - flex: 1, - justifyContent: 'center' - }, - rightContentContainer: { - flex: 0.5, - justifyContent: 'center', - alignItems: 'flex-end' - }, - inputContainer: { - flex: 1 - }, - inputContentContainer: { - flex: 1, - borderBottomWidth: 0, - width: null, - height: null - }, - input: { - flex: 1, - textAlign: 'right', - width: null, - height: null, - marginLeft: 0 - }, - checkboxContainer: { - margin: 0, - marginRight: 0, - marginLeft: 0, - padding: 0 - }, - buttonGroupContainer: { - flex: 1, - marginLeft: 0, - marginRight: 0, - marginTop: 0, - marginBottom: 0 - }, - rightTitle: { - color: ANDROID_SECONDARY - }, - rightSubtitle: { - color: ANDROID_SECONDARY - } - }); - - var elementOrObject = _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.object]); - - ListItem.propTypes = { - containerStyle: _ViewPropTypes.default.style, - contentContainerStyle: _ViewPropTypes.default.style, - rightContentContainerStyle: _ViewPropTypes.default.style, - component: _propTypes.default.element, - onPress: _propTypes.default.func, - onLongPress: _propTypes.default.func, - title: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element]), - titleStyle: _Text.default.propTypes.style, - titleProps: _propTypes.default.object, - subtitle: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element]), - subtitleStyle: _Text.default.propTypes.style, - subtitleProps: _propTypes.default.object, - leftIcon: elementOrObject, - leftAvatar: elementOrObject, - leftElement: _propTypes.default.element, - rightIcon: elementOrObject, - rightAvatar: elementOrObject, - rightElement: _propTypes.default.element, - rightTitle: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element]), - rightTitleStyle: _Text.default.propTypes.style, - rightTitleProps: _propTypes.default.object, - rightSubtitle: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element]), - rightSubtitleStyle: _Text.default.propTypes.style, - rightSubtitleProps: _propTypes.default.object, - input: _propTypes.default.object, - buttonGroup: _propTypes.default.object, - switch: _propTypes.default.object, - checkBox: _propTypes.default.object, - badge: _propTypes.default.object, - chevron: _propTypes.default.bool, - chevronColor: _propTypes.default.string, - checkmark: _propTypes.default.bool, - checkmarkColor: _propTypes.default.string, - disabled: _propTypes.default.bool, - disabledStyle: _ViewPropTypes.default.style, - topDivider: _propTypes.default.bool, - bottomDivider: _propTypes.default.bool - }; - ListItem.defaultProps = { - chevronColor: '#D1D1D6', - checkmarkColor: _colors.default.primary - }; - - var PadView = function PadView(_ref3) { - var children = _ref3.children, - _ref3$pad = _ref3.pad, - pad = _ref3$pad === void 0 ? 16 : _ref3$pad, - Component = _ref3.Component, - props = _objectWithoutProperties(_ref3, ["children", "pad", "Component"]); - - var childrens = _react.default.Children.toArray(children); - - var length = childrens.length; - var Container = Component || _reactNative.View; - return _react.default.createElement(Container, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 314 - } - }), _react.default.Children.map(childrens, function (child, index) { - return child && [child, index !== length - 1 && _react.default.createElement(_reactNative.View, { - width: pad, - __source: { - fileName: _jsxFileName, - lineNumber: 318 - } - })]; - })); - }; - - var renderAvatar = function renderAvatar(content) { - return content == null ? null : _react.default.isValidElement(content) ? content : _react.default.createElement(_Avatar.default, _extends({ - width: 40, - height: 40, - rounded: true - }, content, { - __source: { - fileName: _jsxFileName, - lineNumber: 328 - } - })); - }; - - var renderIcon = function renderIcon(content) { - return content == null ? null : _react.default.isValidElement(content) ? content : _react.default.createElement(_Icon.default, _extends({ - color: _reactNative.Platform.OS === 'ios' ? null : ANDROID_SECONDARY, - size: 24 - }, content, { - containerStyle: content && content.containerStyle, - __source: { - fileName: _jsxFileName, - lineNumber: 335 - } - })); - }; - - var renderNode = function renderNode(content, props, style) { - return content == null ? null : _react.default.isValidElement(content) ? content : _react.default.createElement(_Text.default, _extends({}, props, { - style: [style, props && props.style], - __source: { - fileName: _jsxFileName, - lineNumber: 347 - } - }), content); - }; - - var _default = ListItem; - exports.default = _default; -},699,[143,122,1,742,710,703,704,698,714,707,697,705,720,715],"node_modules/react-native-elements/src/list/ListItem.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _TouchableScale = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./src/TouchableScale")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var _default = _TouchableScale.default; - exports.default = _default; -},742,[743],"node_modules/react-native-touchable-scale/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-touchable-scale/src/TouchableScale.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - var _components = { - TouchableScale: { - displayName: "TouchableScale" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-touchable-scale/src/TouchableScale.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var TouchableScale = _wrapComponent("TouchableScale")(function (_React$Component) { - function TouchableScale() { - var _getPrototypeOf2; - - var _this; - - _classCallCheck(this, TouchableScale); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(TouchableScale)).call.apply(_getPrototypeOf2, [this].concat(args))); - var props = _this.props; - _this.onPressIn = _this.onPressIn.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.onPressOut = _this.onPressOut.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.scaleAnimation = new _reactNative.Animated.Value(props.defaultScale); - return _this; - } - - _createClass(TouchableScale, [{ - key: "render", - value: function render() { - var props = this.props; - return _react.default.createElement(_reactNative.TouchableWithoutFeedback, _extends({}, props, { - onPressIn: this.onPressIn, - onPressOut: this.onPressOut, - __source: { - fileName: _jsxFileName, - lineNumber: 54 - } - }), _react.default.createElement(_reactNative.Animated.View, { - style: [props.style, { - transform: [{ - scale: this.scaleAnimation - }] - }], - __source: { - fileName: _jsxFileName, - lineNumber: 60 - } - }, props.children)); - } - }, { - key: "onPressIn", - value: function onPressIn() { - var props = this.props; - var tension = typeof props.pressInTension !== 'undefined' ? props.pressInTension : props.tension; - var friction = typeof props.pressInFriction !== 'undefined' ? props.pressInFriction : props.friction; - - _reactNative.Animated.spring(this.scaleAnimation, { - toValue: props.activeScale, - tension: tension, - friction: friction, - useNativeDriver: props.useNativeDriver - }).start(); - - if (props.onPressIn) { - props.onPressIn.apply(props, arguments); - } - } - }, { - key: "onPressOut", - value: function onPressOut() { - var props = this.props; - var tension = typeof props.pressOutTension !== 'undefined' ? props.pressOutTension : props.tension; - var friction = typeof props.pressOutFriction !== 'undefined' ? props.pressOutFriction : props.friction; - - _reactNative.Animated.spring(this.scaleAnimation, { - toValue: props.defaultScale, - tension: tension, - friction: friction, - useNativeDriver: props.useNativeDriver - }).start(); - - if (props.onPressOut) { - props.onPressOut.apply(props, arguments); - } - } - }]); - - _inherits(TouchableScale, _React$Component); - - return TouchableScale; - }(_react.default.Component)); - - var _default2 = TouchableScale; - exports.default = _default2; - TouchableScale.propTypes = _objectSpread({}, _reactNative.TouchableWithoutFeedback.propTypes, { - style: _reactNative.Animated.View.propTypes.style, - defaultScale: _propTypes.default.number.isRequired, - activeScale: _propTypes.default.number.isRequired, - tension: _propTypes.default.number.isRequired, - friction: _propTypes.default.number.isRequired, - pressInTension: _propTypes.default.number, - pressInFriction: _propTypes.default.number, - pressOutTension: _propTypes.default.number, - pressOutFriction: _propTypes.default.number, - useNativeDriver: _propTypes.default.bool - }); - TouchableScale.defaultProps = { - defaultScale: 1, - activeScale: 0.9, - tension: 150, - friction: 3, - useNativeDriver: true - }; -},743,[122,161,143,1],"node_modules/react-native-touchable-scale/src/TouchableScale.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "prop-types")); - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "react")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _Icon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../icons/Icon")); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../config/ViewPropTypes")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/avatar/Avatar.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - var DEFAULT_COLORS = ['#000', '#333', '#555', '#888', '#aaa', '#ddd']; - var DEFAULT_SIZES = { - small: 34, - medium: 50, - large: 75, - xlarge: 150 - }; - - var Avatar = function Avatar(props) { - var component = props.component, - onPress = props.onPress, - onLongPress = props.onLongPress, - containerStyle = props.containerStyle, - icon = props.icon, - iconStyle = props.iconStyle, - source = props.source, - avatarStyle = props.avatarStyle, - rounded = props.rounded, - title = props.title, - titleStyle = props.titleStyle, - overlayContainerStyle = props.overlayContainerStyle, - activeOpacity = props.activeOpacity, - showEditButton = props.showEditButton, - editButton = props.editButton, - onEditPress = props.onEditPress, - imageProps = props.imageProps, - attributes = _objectWithoutProperties(props, ["component", "onPress", "onLongPress", "containerStyle", "icon", "iconStyle", "source", "avatarStyle", "rounded", "title", "titleStyle", "overlayContainerStyle", "activeOpacity", "showEditButton", "editButton", "onEditPress", "imageProps"]); - - var size = props.size; - var iconDimension = typeof size === 'number' ? size : DEFAULT_SIZES[size] || DEFAULT_SIZES.small; - var height; - var width = height = iconDimension; - var titleSize = width / 2; - var iconSize = width / 2; - var Component = onPress || onLongPress ? _reactNative.TouchableOpacity : _reactNative.View; - - if (component) { - Component = component; - } - - var renderUtils = function renderUtils() { - if (showEditButton) { - var editButtonProps = _objectSpread({}, editButton); - - var defaultEditButtonSize = (width + height) / 2 / 3; - var editButtonSize = editButton.size || defaultEditButtonSize; - var editButtonSizeStyle = { - width: editButtonSize, - height: editButtonSize, - borderRadius: editButtonSize / 2 - }; - var editButtonIconSize = editButtonSize * 0.8; - return _react.default.createElement(_reactNative.TouchableHighlight, { - style: [styles.editButton, editButtonSizeStyle, editButtonProps.style], - underlayColor: editButtonProps.underlayColor, - onPress: onEditPress, - __source: { - fileName: _jsxFileName, - lineNumber: 79 - } - }, _react.default.createElement(_reactNative.View, { - __source: { - fileName: _jsxFileName, - lineNumber: 88 - } - }, _react.default.createElement(_Icon.default, { - size: editButtonIconSize, - name: editButtonProps.iconName, - type: editButtonProps.iconType, - color: editButtonProps.iconColor, - __source: { - fileName: _jsxFileName, - lineNumber: 89 - } - }))); - } - }; - - var renderContent = function renderContent() { - if (source) { - return _react.default.createElement(_reactNative.Image, _extends({ - style: [styles.avatar, rounded && { - borderRadius: width / 2 - }, avatarStyle && avatarStyle], - source: source - }, imageProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 104 - } - })); - } else if (title) { - return _react.default.createElement(_reactNative.Text, { - style: [styles.title, titleStyle && titleStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 116 - } - }, title); - } else if (icon) { - return _react.default.createElement(_Icon.default, { - style: iconStyle && iconStyle, - color: icon.color || 'white', - name: icon.name || 'user', - size: icon.size || iconSize, - type: icon.type && icon.type, - __source: { - fileName: _jsxFileName, - lineNumber: 120 - } - }); - } - }; - - var styles = _reactNative.StyleSheet.create({ - container: { - backgroundColor: 'transparent', - width: width, - height: height - }, - avatar: { - width: width, - height: height - }, - overlayContainer: { - flex: 1, - alignItems: 'center', - backgroundColor: 'rgba(0,0,0,0.2)', - alignSelf: 'stretch', - justifyContent: 'center', - position: 'absolute', - top: 0, - left: 0, - right: 0, - bottom: 0 - }, - title: { - color: '#ffffff', - fontSize: titleSize, - backgroundColor: 'rgba(0,0,0,0)', - textAlign: 'center' - }, - editButton: _objectSpread({ - position: 'absolute', - bottom: 0, - right: 0, - alignItems: 'center', - justifyContent: 'center', - backgroundColor: DEFAULT_COLORS[4] - }, _reactNative.Platform.select({ - ios: { - shadowColor: DEFAULT_COLORS[0], - shadowOffset: { - width: 1, - height: 1 - }, - shadowRadius: 2, - shadowOpacity: 0.5 - }, - android: { - elevation: 1 - } - })) - }); - - return _react.default.createElement(Component, _extends({ - onPress: onPress, - onLongPress: onLongPress, - activeOpacity: activeOpacity, - style: [styles.container, rounded && { - borderRadius: width / 2 - }, containerStyle && containerStyle] - }, attributes, { - __source: { - fileName: _jsxFileName, - lineNumber: 181 - } - }), _react.default.createElement(_reactNative.View, { - style: [styles.overlayContainer, rounded && { - borderRadius: width / 2 - }, overlayContainerStyle && overlayContainerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 192 - } - }, renderContent()), renderUtils()); - }; - - Avatar.propTypes = { - component: _propTypes.default.oneOf([_reactNative.View, _reactNative.TouchableOpacity, _reactNative.TouchableHighlight, _reactNative.TouchableNativeFeedback, _reactNative.TouchableWithoutFeedback]), - onPress: _propTypes.default.func, - onLongPress: _propTypes.default.func, - containerStyle: _propTypes.default.any, - source: _reactNative.Image.propTypes.source, - avatarStyle: _propTypes.default.any, - rounded: _propTypes.default.bool, - title: _propTypes.default.string, - titleStyle: _reactNative.Text.propTypes.style, - overlayContainerStyle: _propTypes.default.any, - activeOpacity: _propTypes.default.number, - icon: _propTypes.default.object, - iconStyle: _reactNative.Text.propTypes.style, - size: _propTypes.default.oneOfType([_propTypes.default.oneOf(['small', 'medium', 'large', 'xlarge']), _propTypes.default.number]), - showEditButton: _propTypes.default.bool, - onEditPress: _propTypes.default.func, - editButton: _propTypes.default.shape({ - size: _propTypes.default.number, - iconName: _propTypes.default.string, - iconType: _propTypes.default.string, - iconColor: _propTypes.default.string, - underlayColor: _propTypes.default.string, - style: _ViewPropTypes.default.style - }), - imageProps: _propTypes.default.object - }; - Avatar.defaultProps = { - showEditButton: false, - onEditPress: null, - size: 'small', - editButton: { - size: null, - iconName: 'mode-edit', - iconType: 'material', - iconColor: '#fff', - underlayColor: DEFAULT_COLORS[0], - style: null - } - }; - var _default = Avatar; - exports.default = _default; -},710,[143,122,1,698,720],"node_modules/react-native-elements/src/avatar/Avatar.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "prop-types")); - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "react")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _colors = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../config/colors")); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../config/ViewPropTypes")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/badge/badge.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - var Badge = function Badge(props) { - var containerStyle = props.containerStyle, - textStyle = props.textStyle, - wrapperStyle = props.wrapperStyle, - onPress = props.onPress, - component = props.component, - value = props.value, - children = props.children, - element = props.element, - attributes = _objectWithoutProperties(props, ["containerStyle", "textStyle", "wrapperStyle", "onPress", "component", "value", "children", "element"]); - - if (element) return element; - - var childElement = _react.default.createElement(_reactNative.Text, { - style: [styles.text, textStyle && textStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 24 - } - }, value); - - if (children) { - childElement = children; - } - - if (children && value) { - console.error('Badge can only contain either child element or value'); - } - - var Component = _reactNative.View; - - if (component) { - Component = component; - } else if (onPress) { - Component = _reactNative.TouchableOpacity; - } - - return _react.default.createElement(_reactNative.View, { - style: [styles.container && wrapperStyle && wrapperStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 44 - } - }, _react.default.createElement(Component, _extends({}, attributes, { - style: [styles.badge, containerStyle && containerStyle], - onPress: onPress, - __source: { - fileName: _jsxFileName, - lineNumber: 45 - } - }), childElement)); - }; - - Badge.propTypes = { - containerStyle: _ViewPropTypes.default.style, - wrapperStyle: _ViewPropTypes.default.style, - textStyle: _reactNative.Text.propTypes.style, - children: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.arrayOf(_propTypes.default.element)]), - value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]), - onPress: _propTypes.default.func, - component: _propTypes.default.func, - element: _propTypes.default.element - }; - - var styles = _reactNative.StyleSheet.create({ - container: { - flexDirection: 'row' - }, - badge: { - padding: 12, - paddingTop: 3, - paddingBottom: 3, - backgroundColor: _colors.default.primary, - borderRadius: 20, - alignItems: 'center', - justifyContent: 'center' - }, - text: { - fontSize: 14, - color: 'white' - } - }); - - var _default = Badge; - exports.default = _default; -},703,[143,122,1,715,720],"node_modules/react-native-elements/src/badge/badge.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _Text = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../text/Text")); - - var _CheckBoxIcon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./CheckBoxIcon")); - - var _config = _$$_REQUIRE(_dependencyMap[5], "../config"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/checkbox/CheckBox.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - var CheckBox = function CheckBox(props) { - var component = props.component, - checked = props.checked, - iconRight = props.iconRight, - title = props.title, - center = props.center, - right = props.right, - containerStyle = props.containerStyle, - textStyle = props.textStyle, - onPress = props.onPress, - onLongPress = props.onLongPress, - checkedTitle = props.checkedTitle, - fontFamily = props.fontFamily, - attributes = _objectWithoutProperties(props, ["component", "checked", "iconRight", "title", "center", "right", "containerStyle", "textStyle", "onPress", "onLongPress", "checkedTitle", "fontFamily"]); - - var Component = component; - return _react.default.createElement(Component, _extends({}, attributes, { - onLongPress: onLongPress, - onPress: onPress, - style: [styles.container, title && styles.containerHasTitle, containerStyle && containerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 35 - } - }), _react.default.createElement(_reactNative.View, { - style: [styles.wrapper, right && { - justifyContent: 'flex-end' - }, center && { - justifyContent: 'center' - }], - __source: { - fileName: _jsxFileName, - lineNumber: 45 - } - }, !iconRight && _react.default.createElement(_CheckBoxIcon.default, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 52 - } - })), _react.default.isValidElement(title) ? title : title && _react.default.createElement(_Text.default, { - style: [styles.text, textStyle && textStyle, fontFamily && { - fontFamily: fontFamily - }], - __source: { - fileName: _jsxFileName, - lineNumber: 57 - } - }, checked ? checkedTitle || title : title), iconRight && _react.default.createElement(_CheckBoxIcon.default, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 68 - } - })))); - }; - - CheckBox.defaultProps = { - checked: false, - iconRight: false, - right: false, - center: false, - checkedColor: _config.colors.primary, - uncheckedColor: '#bfbfbf', - checkedIcon: 'check-square-o', - uncheckedIcon: 'square-o', - size: 24, - component: _reactNative.TouchableOpacity - }; - CheckBox.propTypes = _objectSpread({}, _CheckBoxIcon.default.propTypes, { - component: _propTypes.default.any, - iconRight: _propTypes.default.bool, - title: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element]), - center: _propTypes.default.bool, - right: _propTypes.default.bool, - containerStyle: _config.ViewPropTypes.style, - textStyle: _reactNative.Text.propTypes.style, - onPress: _propTypes.default.func, - onLongPress: _propTypes.default.func, - checkedTitle: _propTypes.default.string, - fontFamily: _propTypes.default.string - }); - - var styles = _reactNative.StyleSheet.create({ - wrapper: { - flexDirection: 'row', - alignItems: 'center' - }, - container: { - margin: 5, - marginLeft: 10, - marginRight: 10, - padding: 10 - }, - containerHasTitle: { - borderWidth: 1, - borderRadius: 3, - backgroundColor: '#fafafa', - borderColor: '#ededed' - }, - text: _objectSpread({ - marginLeft: 10, - marginRight: 10, - color: _config.colors.grey1 - }, _reactNative.Platform.select({ - ios: { - fontWeight: 'bold' - }, - android: _objectSpread({}, _config.fonts.android.bold) - })) - }); - - var _default = CheckBox; - exports.default = _default; -},704,[122,143,1,714,744,745],"node_modules/react-native-elements/src/checkbox/CheckBox.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "prop-types")); - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "react")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _fonts = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../config/fonts")); - - var _normalizeText = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../helpers/normalizeText")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/text/Text.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var styles = _reactNative.StyleSheet.create({ - text: _objectSpread({}, _reactNative.Platform.select({ - android: _objectSpread({}, _fonts.default.android.regular) - })), - bold: _objectSpread({}, _reactNative.Platform.select({ - android: _objectSpread({}, _fonts.default.android.bold) - })) - }); - - var TextElement = function TextElement(props) { - var style = props.style, - children = props.children, - h1 = props.h1, - h2 = props.h2, - h3 = props.h3, - h4 = props.h4, - fontFamily = props.fontFamily, - rest = _objectWithoutProperties(props, ["style", "children", "h1", "h2", "h3", "h4", "fontFamily"]); - - return _react.default.createElement(_reactNative.Text, _extends({ - style: [styles.text, h1 && { - fontSize: (0, _normalizeText.default)(40) - }, h2 && { - fontSize: (0, _normalizeText.default)(34) - }, h3 && { - fontSize: (0, _normalizeText.default)(28) - }, h4 && { - fontSize: (0, _normalizeText.default)(22) - }, h1 && styles.bold, h2 && styles.bold, h3 && styles.bold, h4 && styles.bold, fontFamily && { - fontFamily: fontFamily - }, style && style] - }, rest, { - __source: { - fileName: _jsxFileName, - lineNumber: 28 - } - }), children); - }; - - TextElement.propTypes = { - style: _propTypes.default.any, - h1: _propTypes.default.bool, - h2: _propTypes.default.bool, - h3: _propTypes.default.bool, - h4: _propTypes.default.bool, - fontFamily: _propTypes.default.string, - children: _propTypes.default.any - }; - var _default = TextElement; - exports.default = _default; -},714,[143,122,1,741,717],"node_modules/react-native-elements/src/text/Text.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var React = _$$_REQUIRE(_dependencyMap[0], 'react-native'); - - var PixelRatio = React.PixelRatio, - Dimensions = React.Dimensions; - var pixelRatio = PixelRatio.get(); - var deviceHeight = Dimensions.get('window').height; - var deviceWidth = Dimensions.get('window').width; - - var normalize = function normalize(size) { - if (pixelRatio >= 2 && pixelRatio < 3) { - if (deviceWidth < 360) { - return size * 0.95; - } - - if (deviceHeight < 667) { - return size; - } else if (deviceHeight >= 667 && deviceHeight <= 735) { - return size * 1.15; - } - - return size * 1.25; - } else if (pixelRatio >= 3 && pixelRatio < 3.5) { - if (deviceWidth <= 360) { - return size; - } - - if (deviceHeight < 667) { - return size * 1.15; - } - - if (deviceHeight >= 667 && deviceHeight <= 735) { - return size * 1.2; - } - - return size * 1.27; - } else if (pixelRatio >= 3.5) { - if (deviceWidth <= 360) { - return size; - } - - if (deviceHeight < 667) { - return size * 1.2; - } - - if (deviceHeight >= 667 && deviceHeight <= 735) { - return size * 1.25; - } - - return size * 1.4; - } else return size; - }; - - module.exports = normalize; -},717,[1],"node_modules/react-native-elements/src/helpers/normalizeText.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "prop-types")); - - var _FontAwesome = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "react-native-vector-icons/FontAwesome")); - - var _getIconType = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../helpers/getIconType")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/checkbox/CheckBoxIcon.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var CheckBoxIcon = function CheckBoxIcon(_ref) { - var checked = _ref.checked, - onIconPress = _ref.onIconPress, - onLongIconPress = _ref.onLongIconPress, - size = _ref.size, - checkedIcon = _ref.checkedIcon, - uncheckedIcon = _ref.uncheckedIcon, - iconType = _ref.iconType, - checkedColor = _ref.checkedColor, - uncheckedColor = _ref.uncheckedColor; - - if (checked && _react.default.isValidElement(checkedIcon)) { - return checkedIcon; - } - - if (!checked && _react.default.isValidElement(uncheckedIcon)) { - return uncheckedIcon; - } - - var VectorIcon = iconType ? (0, _getIconType.default)(iconType) : _FontAwesome.default; - return _react.default.createElement(VectorIcon, { - color: checked ? checkedColor : uncheckedColor, - name: checked ? checkedIcon : uncheckedIcon, - size: size || 24, - style: { - minWidth: size || 24 - }, - onLongPress: onLongIconPress, - onPress: onIconPress, - __source: { - fileName: _jsxFileName, - lineNumber: 29 - } - }); - }; - - CheckBoxIcon.propTypes = { - checked: _propTypes.default.bool, - onIconPress: _propTypes.default.func, - onLongIconPress: _propTypes.default.func, - size: _propTypes.default.number, - checkedIcon: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element]), - uncheckedIcon: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element]), - iconType: _propTypes.default.string, - checkedColor: _propTypes.default.string, - uncheckedColor: _propTypes.default.string - }; - var _default = CheckBoxIcon; - exports.default = _default; -},744,[122,143,728,716],"node_modules/react-native-elements/src/checkbox/CheckBoxIcon.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.defineProperty(exports, "BackgroudImage", { - enumerable: true, - get: function get() { - return _BackgroundImage.default; - } - }); - Object.defineProperty(exports, "colors", { - enumerable: true, - get: function get() { - return _colors.default; - } - }); - Object.defineProperty(exports, "getStatusBarHeight", { - enumerable: true, - get: function get() { - return _statusBar.getStatusBarHeight; - } - }); - Object.defineProperty(exports, "ViewPropTypes", { - enumerable: true, - get: function get() { - return _ViewPropTypes.default; - } - }); - Object.defineProperty(exports, "fonts", { - enumerable: true, - get: function get() { - return _fonts.default; - } - }); - - var _BackgroundImage = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./BackgroundImage")); - - var _colors = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./colors")); - - var _statusBar = _$$_REQUIRE(_dependencyMap[2], "./statusBar"); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "./ViewPropTypes")); - - var _fonts = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./fonts")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -},745,[746,715,747,720,741],"node_modules/react-native-elements/src/config/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); - - var BackgroundImage = _reactNative.ImageBackground || _reactNative.Image; - var _default = BackgroundImage; - exports.default = _default; -},746,[1],"node_modules/react-native-elements/src/config/BackgroundImage.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getStatusBarHeight = getStatusBarHeight; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); - - function isIphoneX() { - var dimen = _reactNative.Dimensions.get('window'); - - return _reactNative.Platform.OS === 'ios' && !_reactNative.Platform.isPad && !_reactNative.Platform.isTVOS && (dimen.height === 812 || dimen.width === 812); - } - - function ifIphoneX(iphoneXStyle, regularStyle) { - if (isIphoneX()) { - return iphoneXStyle; - } - - return regularStyle; - } - - function getStatusBarHeight() { - var skipAndroid = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - - if (_reactNative.Platform.OS === 'ios') { - return ifIphoneX(44, 20); - } - - if (skipAndroid) { - return 0; - } - - return _reactNative.StatusBar.currentHeight; - } -},747,[1],"node_modules/react-native-elements/src/config/statusBar.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "prop-types")); - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "react")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _colors = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../config/colors")); - - var _Text = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../text/Text")); - - var _normalizeText = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "../helpers/normalizeText")); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "../config/ViewPropTypes")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/buttons/ButtonGroup.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - var ButtonGroup = function ButtonGroup(props) { - var Component = props.component, - buttons = props.buttons, - _onPress = props.onPress, - selectedIndex = props.selectedIndex, - selectedIndexes = props.selectedIndexes, - selectMultiple = props.selectMultiple, - containerStyle = props.containerStyle, - innerBorderStyle = props.innerBorderStyle, - lastBorderStyle = props.lastBorderStyle, - buttonStyle = props.buttonStyle, - textStyle = props.textStyle, - selectedTextStyle = props.selectedTextStyle, - selectedButtonStyle = props.selectedButtonStyle, - underlayColor = props.underlayColor, - activeOpacity = props.activeOpacity, - onHideUnderlay = props.onHideUnderlay, - onShowUnderlay = props.onShowUnderlay, - setOpacityTo = props.setOpacityTo, - containerBorderRadius = props.containerBorderRadius, - disableSelected = props.disableSelected, - attributes = _objectWithoutProperties(props, ["component", "buttons", "onPress", "selectedIndex", "selectedIndexes", "selectMultiple", "containerStyle", "innerBorderStyle", "lastBorderStyle", "buttonStyle", "textStyle", "selectedTextStyle", "selectedButtonStyle", "underlayColor", "activeOpacity", "onHideUnderlay", "onShowUnderlay", "setOpacityTo", "containerBorderRadius", "disableSelected"]); - - return _react.default.createElement(_reactNative.View, _extends({}, attributes, { - style: [styles.container, containerStyle && containerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 43 - } - }), buttons.map(function (button, i) { - var isSelected = selectedIndex === i || selectedIndexes.includes(i); - return _react.default.createElement(Component, { - activeOpacity: activeOpacity, - setOpacityTo: setOpacityTo, - onHideUnderlay: onHideUnderlay, - onShowUnderlay: onShowUnderlay, - underlayColor: underlayColor || _colors.default.primary, - disabled: disableSelected && isSelected ? true : false, - onPress: function onPress() { - if (selectMultiple) { - if (selectedIndexes.includes(i)) { - _onPress(selectedIndexes.filter(function (index) { - return index !== i; - })); - } else { - _onPress(_toConsumableArray(selectedIndexes).concat([i])); - } - } else { - _onPress(i); - } - }, - key: i, - style: [styles.button, i < buttons.length - 1 && { - borderRightWidth: i === 0 ? 0 : innerBorderStyle && innerBorderStyle.width || 1, - borderRightColor: innerBorderStyle && innerBorderStyle.color || _colors.default.grey4 - }, i === 1 && { - borderLeftWidth: innerBorderStyle && innerBorderStyle.width || 1, - borderLeftColor: innerBorderStyle && innerBorderStyle.color || _colors.default.grey4 - }, i === buttons.length - 1 && _objectSpread({}, lastBorderStyle, { - borderTopRightRadius: containerBorderRadius, - borderBottomRightRadius: containerBorderRadius - }), i === 0 && { - borderTopLeftRadius: containerBorderRadius, - borderBottomLeftRadius: containerBorderRadius - }], - __source: { - fileName: _jsxFileName, - lineNumber: 51 - } - }, _react.default.createElement(_reactNative.View, { - style: [styles.textContainer, buttonStyle && buttonStyle, isSelected && { - backgroundColor: _colors.default.primary - }, isSelected && selectedButtonStyle && selectedButtonStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 99 - } - }, button.element ? _react.default.createElement(button.element, { - __source: { - fileName: _jsxFileName, - lineNumber: 110 - } - }) : _react.default.createElement(_Text.default, { - style: [styles.buttonText, textStyle && textStyle, isSelected && { - color: '#fff' - }, isSelected && selectedTextStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 112 - } - }, button))); - })); - }; - - var styles = _reactNative.StyleSheet.create({ - button: { - flex: 1 - }, - textContainer: { - flex: 1, - justifyContent: 'center', - alignItems: 'center' - }, - container: { - marginLeft: 10, - marginRight: 10, - marginBottom: 5, - marginTop: 5, - borderColor: '#e3e3e3', - borderWidth: 1, - flexDirection: 'row', - borderRadius: 3, - overflow: 'hidden', - backgroundColor: '#fff', - height: 40 - }, - buttonText: _objectSpread({ - fontSize: (0, _normalizeText.default)(13), - color: _colors.default.grey2 - }, _reactNative.Platform.select({ - ios: { - fontWeight: '500' - } - })) - }); - - ButtonGroup.propTypes = { - button: _propTypes.default.object, - component: _propTypes.default.any, - onPress: _propTypes.default.func, - buttons: _propTypes.default.array, - containerStyle: _ViewPropTypes.default.style, - textStyle: _reactNative.Text.propTypes.style, - selectedTextStyle: _reactNative.Text.propTypes.style, - selectedButtonStyle: _ViewPropTypes.default.style, - underlayColor: _propTypes.default.string, - selectedIndex: _propTypes.default.number, - selectedIndexes: _propTypes.default.arrayOf(_propTypes.default.number), - activeOpacity: _propTypes.default.number, - onHideUnderlay: _propTypes.default.func, - onShowUnderlay: _propTypes.default.func, - setOpacityTo: _propTypes.default.any, - innerBorderStyle: _propTypes.default.shape({ - color: _propTypes.default.string, - width: _propTypes.default.number - }), - lastBorderStyle: _propTypes.default.oneOfType([_ViewPropTypes.default.style, _reactNative.Text.propTypes.style]), - buttonStyle: _ViewPropTypes.default.style, - containerBorderRadius: _propTypes.default.number, - disableSelected: _propTypes.default.bool, - selectMultiple: _propTypes.default.bool - }; - ButtonGroup.defaultProps = { - selectedIndexes: [], - selectMultiple: false, - containerBorderRadius: 3, - onPress: function onPress() {}, - component: _reactNative.Platform.OS === 'ios' ? _reactNative.TouchableOpacity : _reactNative.TouchableNativeFeedback - }; - var _default = ButtonGroup; - exports.default = _default; -},707,[143,122,1,715,714,717,720],"node_modules/react-native-elements/src/buttons/ButtonGroup.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "../config/ViewPropTypes")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/divider/Divider.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var Divider = function Divider(_ref) { - var style = _ref.style; - return _react.default.createElement(_reactNative.View, { - style: [styles.container, style], - __source: { - fileName: _jsxFileName, - lineNumber: 5 - } - }); - }; - - var hairlineWidth = _reactNative.StyleSheet.hairlineWidth; - Divider.propTypes = { - style: _ViewPropTypes.default.style - }; - - var styles = _reactNative.StyleSheet.create({ - container: { - backgroundColor: hairlineWidth < 1 ? '#BCBBC1' : 'rgba(0, 0, 0, 0.12)', - height: hairlineWidth - } - }); - - var _default = Divider; - exports.default = _default; -},705,[122,1,720],"node_modules/react-native-elements/src/divider/Divider.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "prop-types")); - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "react")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _FontAwesome = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "react-native-vector-icons/FontAwesome")); - - var _Text = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../text/Text")); - - var _fonts = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "../config/fonts")); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "../config/ViewPropTypes")); - - var _colors, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/social/SocialIcon.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var log = function log() { - console.log('please attach method to this component'); - }; - - var colors = (_colors = {}, _defineProperty(_colors, 'github-alt', '#000000'), _defineProperty(_colors, 'google-plus-official', '#dd4b39'), _defineProperty(_colors, 'reddit-alien', '#fc461e'), _defineProperty(_colors, 'stack-overflow', '#f27f33'), _defineProperty(_colors, "angellist", '#1c4082'), _defineProperty(_colors, "codepen", '#000000'), _defineProperty(_colors, "envelope", '#000000'), _defineProperty(_colors, "etsy", '#f2581e'), _defineProperty(_colors, "facebook", '#3b5998'), _defineProperty(_colors, "foursquare", '#0072b1'), _defineProperty(_colors, "github", '#000000'), _defineProperty(_colors, "gitlab", '#e14329'), _defineProperty(_colors, "instagram", '#517fa4'), _defineProperty(_colors, "linkedin", '#007bb6'), _defineProperty(_colors, "medium", '#02b875'), _defineProperty(_colors, "pinterest", '#cb2027'), _defineProperty(_colors, "quora", '#a82400'), _defineProperty(_colors, "soundcloud", '#f50'), _defineProperty(_colors, "steam", '#c6c3c1'), _defineProperty(_colors, "stumbleupon", '#EB4823'), _defineProperty(_colors, "tumblr", '#32506d'), _defineProperty(_colors, "twitch", '#6441A5'), _defineProperty(_colors, "twitter", '#00aced'), _defineProperty(_colors, "vimeo", '#aad450'), _defineProperty(_colors, "wechat", '#7bb32e'), _defineProperty(_colors, "wordpress", '#21759b'), _defineProperty(_colors, "youtube", '#bb0000'), _colors); - - var SocialIcon = function SocialIcon(props) { - var activityIndicatorStyle = props.activityIndicatorStyle, - button = props.button, - component = props.component, - disabled = props.disabled, - fontFamily = props.fontFamily, - fontStyle = props.fontStyle, - fontWeight = props.fontWeight, - iconColor = props.iconColor, - iconSize = props.iconSize, - iconStyle = props.iconStyle, - light = props.light, - loading = props.loading, - onLongPress = props.onLongPress, - onPress = props.onPress, - raised = props.raised, - small = props.small, - style = props.style, - title = props.title, - type = props.type, - underlayColor = props.underlayColor, - attributes = _objectWithoutProperties(props, ["activityIndicatorStyle", "button", "component", "disabled", "fontFamily", "fontStyle", "fontWeight", "iconColor", "iconSize", "iconStyle", "light", "loading", "onLongPress", "onPress", "raised", "small", "style", "title", "type", "underlayColor"]); - - var Component = onPress || onLongPress ? component || _reactNative.TouchableHighlight : _reactNative.View; - var loadingElement; - - if (loading) { - loadingElement = _react.default.createElement(_reactNative.ActivityIndicator, { - animating: true, - style: [styles.activityIndicatorStyle, activityIndicatorStyle], - color: iconColor || 'white', - size: small && 'small' || 'large', - __source: { - fileName: _jsxFileName, - lineNumber: 80 - } - }); - } - - return _react.default.createElement(Component, _extends({}, attributes, { - underlayColor: light ? 'white' : underlayColor || colors[type], - onLongPress: disabled ? null : onLongPress || log, - onPress: (!disabled || log) && (onPress || log), - disabled: disabled || false, - style: [raised && styles.raised, styles.container, button && styles.button, !button && raised && styles.icon, !button && !light && !raised && { - width: iconSize * 2 + 4, - height: iconSize * 2 + 4, - borderRadius: iconSize * 2 - }, { - backgroundColor: colors[type] - }, light && { - backgroundColor: 'white' - }, style && style], - __source: { - fileName: _jsxFileName, - lineNumber: 89 - } - }), _react.default.createElement(_reactNative.View, { - style: styles.wrapper, - __source: { - fileName: _jsxFileName, - lineNumber: 112 - } - }, _react.default.createElement(_FontAwesome.default, { - style: [iconStyle && iconStyle], - color: light ? colors[type] : iconColor, - name: type, - size: iconSize, - __source: { - fileName: _jsxFileName, - lineNumber: 113 - } - }), button && title && _react.default.createElement(_Text.default, { - style: [styles.title, light && { - color: colors[type] - }, fontFamily && { - fontFamily: fontFamily - }, fontWeight && { - fontWeight: fontWeight - }, fontStyle && fontStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 121 - } - }, title), loading && loadingElement)); - }; - - SocialIcon.propTypes = { - component: _propTypes.default.func, - type: _propTypes.default.string, - button: _propTypes.default.bool, - onPress: _propTypes.default.func, - onLongPress: _propTypes.default.func, - iconStyle: _ViewPropTypes.default.style, - style: _ViewPropTypes.default.style, - iconColor: _propTypes.default.string, - underlayColor: _propTypes.default.string, - title: _propTypes.default.string, - raised: _propTypes.default.bool, - disabled: _propTypes.default.bool, - loading: _propTypes.default.bool, - activityIndicatorStyle: _ViewPropTypes.default.style, - small: _propTypes.default.string, - iconSize: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]), - light: _propTypes.default.bool, - fontWeight: _propTypes.default.string, - fontStyle: _reactNative.Text.propTypes.style, - fontFamily: _propTypes.default.string - }; - SocialIcon.defaultProps = { - raised: true, - iconColor: 'white', - iconSize: 24, - button: false - }; - - var styles = _reactNative.StyleSheet.create({ - container: { - margin: 7, - borderRadius: 30, - flexDirection: 'row', - justifyContent: 'center', - alignItems: 'center' - }, - button: { - paddingTop: 14, - paddingBottom: 14 - }, - raised: _objectSpread({}, _reactNative.Platform.select({ - ios: { - shadowColor: 'rgba(0,0,0, .4)', - shadowOffset: { - height: 1, - width: 1 - }, - shadowOpacity: 1, - shadowRadius: 1 - }, - android: { - elevation: 2 - } - })), - wrapper: { - flexDirection: 'row', - justifyContent: 'center', - alignItems: 'center' - }, - title: _objectSpread({ - color: 'white', - marginLeft: 15 - }, _reactNative.Platform.select({ - ios: { - fontWeight: 'bold' - }, - android: _objectSpread({}, _fonts.default.android.black) - })), - icon: { - height: 52, - width: 52 - }, - activityIndicatorStyle: { - marginHorizontal: 10, - height: 0 - } - }); - - var _default = SocialIcon; - exports.default = _default; -},700,[143,122,1,728,714,741,720],"node_modules/react-native-elements/src/social/SocialIcon.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _config = _$$_REQUIRE(_dependencyMap[3], "../config"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/overlay/Overlay.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - var dimensions = _reactNative.Dimensions.get('window'); - - var windowWidth = dimensions.width; - var windowHeight = dimensions.height; - - var Overlay = function Overlay(props) { - var children = props.children, - isVisible = props.isVisible, - containerStyle = props.containerStyle, - overlayStyle = props.overlayStyle, - windowBackgroundColor = props.windowBackgroundColor, - overlayBackgroundColor = props.overlayBackgroundColor, - onBackdropPress = props.onBackdropPress, - borderRadius = props.borderRadius, - width = props.width, - height = props.height, - fullScreen = props.fullScreen, - rest = _objectWithoutProperties(props, ["children", "isVisible", "containerStyle", "overlayStyle", "windowBackgroundColor", "overlayBackgroundColor", "onBackdropPress", "borderRadius", "width", "height", "fullScreen"]); - - if (!isVisible) return null; - return _react.default.createElement(_reactNative.TouchableWithoutFeedback, { - onPress: onBackdropPress, - __source: { - fileName: _jsxFileName, - lineNumber: 34 - } - }, _react.default.createElement(_reactNative.View, _extends({ - style: [styles.container, { - backgroundColor: windowBackgroundColor - }, containerStyle] - }, rest, { - __source: { - fileName: _jsxFileName, - lineNumber: 35 - } - }), _react.default.createElement(_reactNative.TouchableWithoutFeedback, { - __source: { - fileName: _jsxFileName, - lineNumber: 43 - } - }, _react.default.createElement(_reactNative.View, { - style: [styles.overlay, { - borderRadius: borderRadius, - backgroundColor: overlayBackgroundColor, - width: width, - height: height - }, fullScreen && { - width: windowWidth, - height: windowHeight - }, overlayStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 44 - } - }, children)))); - }; - - Overlay.propTypes = { - children: _propTypes.default.any, - isVisible: _propTypes.default.bool, - containerStyle: _config.ViewPropTypes.style, - overlayStyle: _config.ViewPropTypes.style, - windowBackgroundColor: _propTypes.default.string, - overlayBackgroundColor: _propTypes.default.string, - onBackdropPress: _propTypes.default.func, - borderRadius: _propTypes.default.number, - width: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]), - height: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]), - fullScreen: _propTypes.default.bool - }; - Overlay.defaultProps = { - borderRadius: 3, - fullScreen: false, - windowBackgroundColor: 'rgba(0, 0, 0, .4)', - overlayBackgroundColor: 'white', - width: windowWidth - 80, - height: windowHeight - 180, - onBackdropPress: function onBackdropPress() { - return null; - } - }; - - var styles = _reactNative.StyleSheet.create({ - container: { - position: 'absolute', - top: 0, - left: 0, - width: windowWidth, - height: windowHeight, - justifyContent: 'center', - alignItems: 'center', - elevation: 5 - }, - overlay: _objectSpread({ - borderRadius: 5, - padding: 10 - }, _reactNative.Platform.select({ - ios: { - shadowColor: 'rgba(0, 0, 0, .3)', - shadowOffset: { - width: 0, - height: 1 - }, - shadowRadius: 4 - }, - android: { - elevation: 2 - } - })) - }); - - var _default = Overlay; - exports.default = _default; -},701,[122,143,1,745],"node_modules/react-native-elements/src/overlay/Overlay.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _SearchBarIos = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "./SearchBar-ios")); - - var _SearchBarAndroid = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./SearchBar-android")); - - var _SearchBarDefault = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./SearchBar-default")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/searchbar/SearchBar.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - SearchBar: { - displayName: "SearchBar" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/searchbar/SearchBar.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var SEARCHBAR_COMPONENTS = { - ios: _SearchBarIos.default, - android: _SearchBarAndroid.default, - default: _SearchBarDefault.default - }; - - var SearchBar = function (_Component) { - function SearchBar() { - var _getPrototypeOf2; - - var _temp, _this; - - _classCallCheck(this, SearchBar); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SearchBar)).call.apply(_getPrototypeOf2, [this].concat(args))), _this.focus = function () { - _this.searchbar.focus(); - }, _this.blur = function () { - _this.searchbar.blur(); - }, _this.clear = function () { - _this.searchbar.clear(); - }, _this.cancel = function () { - _this.searchbar.cancel && _this.searchbar.cancel(); - }, _temp)); - } - - _createClass(SearchBar, [{ - key: "render", - value: function render() { - var _this2 = this; - - var SearchBar = SEARCHBAR_COMPONENTS[this.props.platform] || _SearchBarDefault.default; - return _react.default.createElement(SearchBar, _extends({ - ref: function ref(searchbar) { - return _this2.searchbar = searchbar; - } - }, this.props, { - __source: { - fileName: _jsxFileName, - lineNumber: 34 - } - })); - } - }]); - - _inherits(SearchBar, _Component); - - return SearchBar; - }(_react.Component); - - SearchBar = _wrapComponent("SearchBar")(SearchBar); - SearchBar.propTypes = { - platform: _propTypes.default.oneOf(['default', 'ios', 'android']) - }; - SearchBar.defaultProps = { - platform: 'default' - }; - var _default2 = SearchBar; - exports.default = _default2; -},702,[122,161,143,748,749,750],"node_modules/react-native-elements/src/searchbar/SearchBar.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../config/ViewPropTypes")); - - var _Input = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "../input/Input")); - - var _Icon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "../icons/Icon")); - - var _helpers = _$$_REQUIRE(_dependencyMap[7], "../helpers"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/searchbar/SearchBar-ios.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - SearchBar: { - displayName: "SearchBar" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/searchbar/SearchBar-ios.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var SCREEN_WIDTH = _reactNative.Dimensions.get('window').width; - - var IOS_GRAY = '#7d7d7d'; - var defaultSearchIcon = { - type: 'ionicon', - size: 20, - name: 'ios-search', - color: IOS_GRAY - }; - - var SearchBar = function (_Component) { - function SearchBar(props) { - var _this; - - _classCallCheck(this, SearchBar); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(SearchBar).call(this, props)); - - _this.focus = function () { - _this.input.focus(); - }; - - _this.blur = function () { - _this.input.blur(); - }; - - _this.clear = function () { - _this.input.clear(); - - _this.onChangeText(''); - - _this.props.onClear(); - }; - - _this.cancel = function () { - _this.blur(); - - _this.props.onCancel(); - }; - - _this.onFocus = function () { - _this.props.onFocus(); - - _reactNative.UIManager.configureNextLayoutAnimation && _reactNative.LayoutAnimation.easeInEaseOut(); - - _this.setState({ - hasFocus: true - }); - }; - - _this.onBlur = function () { - _this.props.onBlur(); - - _reactNative.UIManager.configureNextLayoutAnimation && _reactNative.LayoutAnimation.easeInEaseOut(); - - _this.setState({ - hasFocus: false - }); - }; - - _this.onChangeText = function (text) { - _this.props.onChangeText(text); - - _this.setState({ - isEmpty: text === '' - }); - }; - - _this.state = { - hasFocus: false, - isEmpty: true - }; - return _this; - } - - _createClass(SearchBar, [{ - key: "render", - value: function render() { - var _this2 = this; - - var _this$props = this.props, - cancelButtonProps = _this$props.cancelButtonProps, - cancelButtonTitle = _this$props.cancelButtonTitle, - clearIcon = _this$props.clearIcon, - containerStyle = _this$props.containerStyle, - leftIconContainerStyle = _this$props.leftIconContainerStyle, - rightIconContainerStyle = _this$props.rightIconContainerStyle, - inputContainerStyle = _this$props.inputContainerStyle, - inputStyle = _this$props.inputStyle, - placeholderTextColor = _this$props.placeholderTextColor, - showLoading = _this$props.showLoading, - loadingProps = _this$props.loadingProps, - searchIcon = _this$props.searchIcon, - attributes = _objectWithoutProperties(_this$props, ["cancelButtonProps", "cancelButtonTitle", "clearIcon", "containerStyle", "leftIconContainerStyle", "rightIconContainerStyle", "inputContainerStyle", "inputStyle", "placeholderTextColor", "showLoading", "loadingProps", "searchIcon"]); - - var _this$state = this.state, - hasFocus = _this$state.hasFocus, - isEmpty = _this$state.isEmpty; - - var loadingStyle = loadingProps.style, - otherLoadingProps = _objectWithoutProperties(loadingProps, ["style"]); - - var defaultClearIcon = { - type: 'ionicon', - name: 'ios-close-circle', - size: 20, - color: IOS_GRAY, - onPress: this.clear - }; - return _react.default.createElement(_reactNative.View, { - style: [styles.container, containerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 99 - } - }, _react.default.createElement(_Input.default, _extends({}, attributes, { - onFocus: this.onFocus, - onBlur: this.onBlur, - onChangeText: this.onChangeText, - ref: function ref(input) { - return _this2.input = input; - }, - inputStyle: [styles.input, inputStyle], - containerStyle: { - flex: !hasFocus ? 0 : 1, - width: null - }, - inputContainerStyle: [styles.inputContainer, !hasFocus && { - width: SCREEN_WIDTH - 32, - marginRight: 15 - }, inputContainerStyle], - leftIcon: (0, _helpers.renderNode)(_Icon.default, searchIcon, defaultSearchIcon), - leftIconContainerStyle: [styles.leftIconContainerStyle, leftIconContainerStyle], - placeholderTextColor: placeholderTextColor, - rightIcon: _react.default.createElement(_reactNative.View, { - style: { - flexDirection: 'row' - }, - __source: { - fileName: _jsxFileName, - lineNumber: 123 - } - }, showLoading && _react.default.createElement(_reactNative.ActivityIndicator, _extends({ - style: [{ - marginRight: 5 - }, loadingStyle] - }, otherLoadingProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 125 - } - })), !isEmpty && (0, _helpers.renderNode)(_Icon.default, clearIcon, defaultClearIcon)), - rightIconContainerStyle: [styles.rightIconContainerStyle, rightIconContainerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 100 - } - })), _react.default.createElement(_reactNative.Button, _extends({ - title: cancelButtonTitle, - onPress: this.cancel - }, cancelButtonProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 138 - } - }))); - } - }]); - - _inherits(SearchBar, _Component); - - return SearchBar; - }(_react.Component); - - SearchBar = _wrapComponent("SearchBar")(SearchBar); - SearchBar.propTypes = { - cancelButtonProps: _propTypes.default.object, - cancelButtonTitle: _propTypes.default.string, - clearIcon: _helpers.nodeType, - searchIcon: _helpers.nodeType, - loadingProps: _propTypes.default.object, - showLoading: _propTypes.default.bool, - onClear: _propTypes.default.func, - onCancel: _propTypes.default.func, - onFocus: _propTypes.default.func, - onBlur: _propTypes.default.func, - onChangeText: _propTypes.default.func, - containerStyle: _ViewPropTypes.default.style, - leftIconContainerStyle: _ViewPropTypes.default.style, - rightIconContainerStyle: _ViewPropTypes.default.style, - inputContainerStyle: _ViewPropTypes.default.style, - inputStyle: _reactNative.Text.propTypes.style, - placeholderTextColor: _propTypes.default.string - }; - SearchBar.defaultProps = { - cancelButtonTitle: 'Cancel', - loadingProps: {}, - showLoading: false, - onClear: function onClear() { - return null; - }, - onCancel: function onCancel() { - return null; - }, - onFocus: function onFocus() { - return null; - }, - onBlur: function onBlur() { - return null; - }, - onChangeText: function onChangeText() { - return null; - }, - placeholderTextColor: IOS_GRAY - }; - - var styles = _reactNative.StyleSheet.create({ - container: { - width: SCREEN_WIDTH, - backgroundColor: '#f5f5f5', - paddingBottom: 13, - paddingTop: 13, - flexDirection: 'row' - }, - input: { - marginLeft: 6 - }, - inputContainer: { - borderBottomWidth: 0, - backgroundColor: '#dcdce1', - borderRadius: 9, - height: 36, - marginLeft: 15 - }, - rightIconContainerStyle: { - marginRight: 8 - }, - leftIconContainerStyle: { - marginLeft: 8 - } - }); - - var _default2 = SearchBar; - exports.default = _default2; -},748,[122,161,143,1,720,697,698,751],"node_modules/react-native-elements/src/searchbar/SearchBar-ios.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.defineProperty(exports, "renderNode", { - enumerable: true, - get: function get() { - return _renderNode.default; - } - }); - Object.defineProperty(exports, "getIconType", { - enumerable: true, - get: function get() { - return _getIconType.default; - } - }); - Object.defineProperty(exports, "normalizeText", { - enumerable: true, - get: function get() { - return _normalizeText.default; - } - }); - Object.defineProperty(exports, "nodeType", { - enumerable: true, - get: function get() { - return _nodeType.default; - } - }); - - var _renderNode = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./renderNode")); - - var _getIconType = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./getIconType")); - - var _normalizeText = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "./normalizeText")); - - var _nodeType = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "./nodeType")); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -},751,[718,716,717,719],"node_modules/react-native-elements/src/helpers/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../config/ViewPropTypes")); - - var _nodeType = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "../helpers/nodeType")); - - var _Input = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "../input/Input")); - - var _Icon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[7], "../icons/Icon")); - - var _renderNode = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[8], "../helpers/renderNode")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/searchbar/SearchBar-android.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - SearchBar: { - displayName: "SearchBar" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/searchbar/SearchBar-android.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var SCREEN_WIDTH = _reactNative.Dimensions.get('window').width; - - var ANDROID_GRAY = 'rgba(0, 0, 0, 0.54)'; - var defaultSearchIcon = { - type: 'material-community', - size: 25, - color: ANDROID_GRAY, - name: 'magnify' - }; - - var SearchBar = function (_Component) { - function SearchBar(props) { - var _this; - - _classCallCheck(this, SearchBar); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(SearchBar).call(this, props)); - - _this.focus = function () { - _this.input.focus(); - }; - - _this.blur = function () { - _this.input.blur(); - }; - - _this.clear = function () { - _this.input.clear(); - - _this.onChangeText(''); - - _this.props.onClear(); - }; - - _this.cancel = function () { - _this.blur(); - - _this.props.onCancel(); - }; - - _this.onFocus = function () { - _this.props.onFocus(); - - _this.setState({ - hasFocus: true - }); - }; - - _this.onBlur = function () { - _this.props.onBlur(); - - _this.setState({ - hasFocus: false - }); - }; - - _this.onChangeText = function (text) { - _this.props.onChangeText(text); - - _this.setState({ - isEmpty: text === '' - }); - }; - - _this.state = { - hasFocus: false, - isEmpty: true - }; - return _this; - } - - _createClass(SearchBar, [{ - key: "render", - value: function render() { - var _this2 = this; - - var _this$props = this.props, - clearIcon = _this$props.clearIcon, - containerStyle = _this$props.containerStyle, - leftIconContainerStyle = _this$props.leftIconContainerStyle, - rightIconContainerStyle = _this$props.rightIconContainerStyle, - inputContainerStyle = _this$props.inputContainerStyle, - inputStyle = _this$props.inputStyle, - searchIcon = _this$props.searchIcon, - cancelIcon = _this$props.cancelIcon, - showLoading = _this$props.showLoading, - loadingProps = _this$props.loadingProps, - attributes = _objectWithoutProperties(_this$props, ["clearIcon", "containerStyle", "leftIconContainerStyle", "rightIconContainerStyle", "inputContainerStyle", "inputStyle", "searchIcon", "cancelIcon", "showLoading", "loadingProps"]); - - var _this$state = this.state, - hasFocus = _this$state.hasFocus, - isEmpty = _this$state.isEmpty; - - var loadingStyle = loadingProps.style, - otherLoadingProps = _objectWithoutProperties(loadingProps, ["style"]); - - var defaultCancelIcon = { - type: 'material-community', - size: 25, - color: ANDROID_GRAY, - name: 'arrow-left', - onPress: this.cancel - }; - var defaultClearIcon = { - type: 'material-community', - name: 'close', - size: 25, - color: ANDROID_GRAY, - onPress: this.clear - }; - return _react.default.createElement(_reactNative.View, { - style: [styles.container, containerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 101 - } - }, _react.default.createElement(_Input.default, _extends({}, attributes, { - onFocus: this.onFocus, - onBlur: this.onBlur, - onChangeText: this.onChangeText, - ref: function ref(input) { - return _this2.input = input; - }, - inputStyle: [styles.input, inputStyle], - inputContainerStyle: [styles.inputContainer, inputContainerStyle], - leftIcon: hasFocus ? (0, _renderNode.default)(_Icon.default, cancelIcon, defaultCancelIcon) : (0, _renderNode.default)(_Icon.default, searchIcon, defaultSearchIcon), - leftIconContainerStyle: [styles.leftIconContainerStyle, leftIconContainerStyle], - rightIcon: _react.default.createElement(_reactNative.View, { - style: { - flexDirection: 'row' - }, - __source: { - fileName: _jsxFileName, - lineNumber: 120 - } - }, showLoading && _react.default.createElement(_reactNative.ActivityIndicator, _extends({ - style: [{ - marginRight: 5 - }, loadingStyle] - }, otherLoadingProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 122 - } - })), !isEmpty && (0, _renderNode.default)(_Icon.default, clearIcon, defaultClearIcon)), - rightIconContainerStyle: [styles.rightIconContainerStyle, rightIconContainerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 102 - } - }))); - } - }]); - - _inherits(SearchBar, _Component); - - return SearchBar; - }(_react.Component); - - SearchBar = _wrapComponent("SearchBar")(SearchBar); - SearchBar.propTypes = { - clearIcon: _nodeType.default, - searchIcon: _nodeType.default, - cancelIcon: _nodeType.default, - loadingProps: _propTypes.default.object, - showLoading: _propTypes.default.bool, - containerStyle: _ViewPropTypes.default.style, - leftIconContainerStyle: _ViewPropTypes.default.style, - rightIconContainerStyle: _ViewPropTypes.default.style, - inputContainerStyle: _ViewPropTypes.default.style, - inputStyle: _reactNative.Text.propTypes.style, - onClear: _propTypes.default.func, - onCancel: _propTypes.default.func, - onFocus: _propTypes.default.func, - onBlur: _propTypes.default.func, - onChangeText: _propTypes.default.func - }; - SearchBar.defaultProps = { - loadingProps: {}, - showLoading: false, - onClear: function onClear() { - return null; - }, - onCancel: function onCancel() { - return null; - }, - onFocus: function onFocus() { - return null; - }, - onBlur: function onBlur() { - return null; - }, - onChangeText: function onChangeText() { - return null; - } - }; - - var styles = _reactNative.StyleSheet.create({ - container: { - backgroundColor: 'white', - width: SCREEN_WIDTH, - paddingTop: 8, - paddingBottom: 8 - }, - input: { - marginLeft: 24, - marginRight: 8 - }, - inputContainer: { - borderBottomWidth: 0, - width: SCREEN_WIDTH - }, - rightIconContainerStyle: { - marginRight: 8 - }, - leftIconContainerStyle: { - marginLeft: 8 - } - }); - - var _default2 = SearchBar; - exports.default = _default2; -},749,[122,161,143,1,720,719,697,698,718],"node_modules/react-native-elements/src/searchbar/SearchBar-android.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _colors = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../config/colors")); - - var _renderNode = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "../helpers/renderNode")); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "../config/ViewPropTypes")); - - var _nodeType = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[7], "../helpers/nodeType")); - - var _Input = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[8], "../input/Input")); - - var _Icon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[9], "../icons/Icon")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/searchbar/SearchBar-default.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - SearchBar: { - displayName: "SearchBar" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/searchbar/SearchBar-default.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var defaultSearchIcon = { - type: 'material-community', - size: 18, - name: 'magnify', - color: _colors.default.grey3 - }; - var defaultClearIcon = { - type: 'material-community', - size: 18, - name: 'close', - color: _colors.default.grey3 - }; - - var SearchBar = function (_Component) { - function SearchBar(props) { - var _this; - - _classCallCheck(this, SearchBar); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(SearchBar).call(this, props)); - - _this.focus = function () { - _this.input.focus(); - }; - - _this.blur = function () { - _this.input.blur(); - }; - - _this.clear = function () { - _this.input.clear(); - - _this.onChangeText(''); - - _this.props.onClear(); - }; - - _this.onFocus = function () { - _this.props.onFocus(); - }; - - _this.onBlur = function () { - _this.props.onBlur(); - }; - - _this.onChangeText = function (text) { - _this.props.onChangeText(text); - - _this.setState({ - isEmpty: text === '' - }); - }; - - _this.state = { - isEmpty: true - }; - return _this; - } - - _createClass(SearchBar, [{ - key: "render", - value: function render() { - var _this2 = this; - - var _this$props = this.props, - lightTheme = _this$props.lightTheme, - round = _this$props.round, - clearIcon = _this$props.clearIcon, - containerStyle = _this$props.containerStyle, - searchIcon = _this$props.searchIcon, - leftIconContainerStyle = _this$props.leftIconContainerStyle, - rightIconContainerStyle = _this$props.rightIconContainerStyle, - inputContainerStyle = _this$props.inputContainerStyle, - inputStyle = _this$props.inputStyle, - showLoading = _this$props.showLoading, - loadingProps = _this$props.loadingProps, - placeholderTextColor = _this$props.placeholderTextColor, - attributes = _objectWithoutProperties(_this$props, ["lightTheme", "round", "clearIcon", "containerStyle", "searchIcon", "leftIconContainerStyle", "rightIconContainerStyle", "inputContainerStyle", "inputStyle", "showLoading", "loadingProps", "placeholderTextColor"]); - - var isEmpty = this.state.isEmpty; - - var loadingStyle = loadingProps.style, - otherLoadingProps = _objectWithoutProperties(loadingProps, ["style"]); - - return _react.default.createElement(_reactNative.View, { - style: [styles.container, containerStyle, lightTheme && styles.containerLight], - __source: { - fileName: _jsxFileName, - lineNumber: 79 - } - }, _react.default.createElement(_Input.default, _extends({}, attributes, { - onFocus: this.onFocus, - onBlur: this.onBlur, - onChangeText: this.onChangeText, - ref: function ref(input) { - return _this2.input = input; - }, - placeholderTextColor: placeholderTextColor, - inputStyle: [styles.input, inputStyle], - inputContainerStyle: [styles.inputContentContainer, inputContainerStyle, lightTheme && styles.inputLight, round && styles.round], - containerStyle: styles.inputContainer, - leftIcon: (0, _renderNode.default)(_Icon.default, searchIcon, defaultSearchIcon), - leftIconContainerStyle: [styles.leftIconContainerStyle, leftIconContainerStyle], - rightIcon: _react.default.createElement(_reactNative.View, { - style: { - flexDirection: 'row' - }, - __source: { - fileName: _jsxFileName, - lineNumber: 107 - } - }, showLoading && _react.default.createElement(_reactNative.ActivityIndicator, _extends({ - style: [{ - marginRight: 5 - }, loadingStyle] - }, otherLoadingProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 109 - } - })), !isEmpty && (0, _renderNode.default)(_Icon.default, clearIcon, defaultClearIcon)), - rightIconContainerStyle: [styles.rightIconContainerStyle, rightIconContainerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 86 - } - }))); - } - }]); - - _inherits(SearchBar, _Component); - - return SearchBar; - }(_react.Component); - - SearchBar = _wrapComponent("SearchBar")(SearchBar); - SearchBar.propTypes = { - clearIcon: _nodeType.default, - searchIcon: _nodeType.default, - loadingProps: _propTypes.default.object, - showLoading: _propTypes.default.bool, - containerStyle: _ViewPropTypes.default.style, - leftIconContainerStyle: _ViewPropTypes.default.style, - rightIconContainerStyle: _ViewPropTypes.default.style, - inputContainerStyle: _ViewPropTypes.default.style, - inputStyle: _reactNative.Text.propTypes.style, - onClear: _propTypes.default.func, - onFocus: _propTypes.default.func, - onBlur: _propTypes.default.func, - onChangeText: _propTypes.default.func, - placeholderTextColor: _propTypes.default.string, - lightTheme: _propTypes.default.bool, - round: _propTypes.default.bool - }; - SearchBar.defaultProps = { - loadingProps: {}, - showLoading: false, - lightTheme: false, - round: false, - placeholderTextColor: _colors.default.grey3, - onClear: function onClear() { - return null; - }, - onFocus: function onFocus() { - return null; - }, - onBlur: function onBlur() { - return null; - }, - onChangeText: function onChangeText() { - return null; - } - }; - - var styles = _reactNative.StyleSheet.create({ - container: { - borderTopWidth: 1, - borderBottomWidth: 1, - borderBottomColor: '#000', - borderTopColor: '#000', - backgroundColor: _colors.default.grey0, - padding: 8 - }, - rightIconContainerStyle: { - marginRight: 8 - }, - leftIconContainerStyle: { - marginLeft: 8 - }, - containerLight: { - backgroundColor: _colors.default.grey5, - borderTopColor: '#e1e1e1', - borderBottomColor: '#e1e1e1' - }, - inputContainer: { - width: '100%' - }, - input: { - color: _colors.default.grey3 - }, - inputContentContainer: { - borderBottomWidth: 0, - borderRadius: 3, - overflow: 'hidden', - backgroundColor: _colors.default.searchBg, - height: 30 - }, - inputLight: { - backgroundColor: _colors.default.grey4 - }, - round: { - borderRadius: 15 - } - }); - - var _default2 = SearchBar; - exports.default = _default2; -},750,[122,161,143,1,715,718,720,719,697,698],"node_modules/react-native-elements/src/searchbar/SearchBar-default.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3], "react-native"); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../config/ViewPropTypes")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/slider/Slider.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Slider: { - displayName: "Slider" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/slider/Slider.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var TRACK_SIZE = 4; - var THUMB_SIZE = 20; - var DEFAULT_ANIMATION_CONFIGS = { - spring: { - friction: 7, - tension: 100 - }, - timing: { - duration: 150, - easing: _reactNative.Easing.inOut(_reactNative.Easing.ease), - delay: 0 - } - }; - - function Rect(x, y, width, height) { - this.x = x; - this.y = y; - this.width = width; - this.height = height; - } - - Rect.prototype.containsPoint = function (x, y) { - return x >= this.x && y >= this.y && x <= this.x + this.width && y <= this.y + this.height; - }; - - var Slider = _wrapComponent("Slider")(function (_Component) { - function Slider(props) { - var _this; - - _classCallCheck(this, Slider); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(Slider).call(this, props)); - _this.state = { - containerSize: { - width: 0, - height: 0 - }, - trackSize: { - width: 0, - height: 0 - }, - thumbSize: { - width: 0, - height: 0 - }, - allMeasured: false, - value: new _reactNative.Animated.Value(props.value) - }; - return _this; - } - - _createClass(Slider, [{ - key: "componentWillMount", - value: function componentWillMount() { - this.panResponder = _reactNative.PanResponder.create({ - onStartShouldSetPanResponder: this.handleStartShouldSetPanResponder.bind(this), - onMoveShouldSetPanResponder: this.handleMoveShouldSetPanResponder.bind(this), - onPanResponderGrant: this.handlePanResponderGrant.bind(this), - onPanResponderMove: this.handlePanResponderMove.bind(this), - onPanResponderRelease: this.handlePanResponderEnd.bind(this), - onPanResponderTerminationRequest: this.handlePanResponderRequestEnd.bind(this), - onPanResponderTerminate: this.handlePanResponderEnd.bind(this) - }); - } - }, { - key: "componentWillReceiveProps", - value: function componentWillReceiveProps(nextProps) { - var newValue = nextProps.value; - - if (this.props.value !== newValue) { - if (this.props.animateTransitions) { - this.setCurrentValueAnimated(newValue); - } else { - this.setCurrentValue(newValue); - } - } - } - }, { - key: "setCurrentValue", - value: function setCurrentValue(value) { - this.state.value.setValue(value); - } - }, { - key: "setCurrentValueAnimated", - value: function setCurrentValueAnimated(value) { - var animationType = this.props.animationType; - - var animationConfig = _extends({}, DEFAULT_ANIMATION_CONFIGS[animationType], this.props.animationConfig, { - toValue: value - }); - - _reactNative.Animated[animationType](this.state.value, animationConfig).start(); - } - }, { - key: "handleMoveShouldSetPanResponder", - value: function handleMoveShouldSetPanResponder() { - return false; - } - }, { - key: "handlePanResponderGrant", - value: function handlePanResponderGrant() { - this._previousLeft = this.getThumbLeft(this.getCurrentValue()); - this.fireChangeEvent('onSlidingStart'); - } - }, { - key: "handlePanResponderMove", - value: function handlePanResponderMove(e, gestureState) { - if (this.props.disabled) { - return; - } - - this.setCurrentValue(this.getValue(gestureState)); - this.fireChangeEvent('onValueChange'); - } - }, { - key: "handlePanResponderRequestEnd", - value: function handlePanResponderRequestEnd() { - return false; - } - }, { - key: "handlePanResponderEnd", - value: function handlePanResponderEnd(e, gestureState) { - if (this.props.disabled) { - return; - } - - this.setCurrentValue(this.getValue(gestureState)); - this.fireChangeEvent('onSlidingComplete'); - } - }, { - key: "thumbHitTest", - value: function thumbHitTest(e) { - var nativeEvent = e.nativeEvent; - var thumbTouchRect = this.getThumbTouchRect(); - return thumbTouchRect.containsPoint(nativeEvent.locationX, nativeEvent.locationY); - } - }, { - key: "handleStartShouldSetPanResponder", - value: function handleStartShouldSetPanResponder(e) { - return this.thumbHitTest(e); - } - }, { - key: "fireChangeEvent", - value: function fireChangeEvent(event) { - if (this.props[event]) { - this.props[event](this.getCurrentValue()); - } - } - }, { - key: "getTouchOverflowSize", - value: function getTouchOverflowSize() { - var state = this.state; - var props = this.props; - var size = {}; - - if (state.allMeasured === true) { - size.width = Math.max(0, props.thumbTouchSize.width - state.thumbSize.width); - size.height = Math.max(0, props.thumbTouchSize.height - state.containerSize.height); - } - - return size; - } - }, { - key: "getTouchOverflowStyle", - value: function getTouchOverflowStyle() { - var _this$getTouchOverflo = this.getTouchOverflowSize(), - width = _this$getTouchOverflo.width, - height = _this$getTouchOverflo.height; - - var touchOverflowStyle = {}; - - if (width !== undefined && height !== undefined) { - var verticalMargin = -height / 2; - touchOverflowStyle.marginTop = verticalMargin; - touchOverflowStyle.marginBottom = verticalMargin; - var horizontalMargin = -width / 2; - touchOverflowStyle.marginLeft = horizontalMargin; - touchOverflowStyle.marginRight = horizontalMargin; - } - - if (this.props.debugTouchArea === true) { - touchOverflowStyle.backgroundColor = 'orange'; - touchOverflowStyle.opacity = 0.5; - } - - return touchOverflowStyle; - } - }, { - key: "handleMeasure", - value: function handleMeasure(name, x) { - var _x$nativeEvent$layout = x.nativeEvent.layout, - width = _x$nativeEvent$layout.width, - height = _x$nativeEvent$layout.height; - var size = { - width: width, - height: height - }; - var storeName = "_" + name; - var currentSize = this[storeName]; - - if (currentSize && width === currentSize.width && height === currentSize.height) { - return; - } - - this[storeName] = size; - - if (this._containerSize && this._trackSize && this._thumbSize) { - this.setState({ - containerSize: this._containerSize, - trackSize: this._trackSize, - thumbSize: this._thumbSize, - allMeasured: true - }); - } - } - }, { - key: "measureContainer", - value: function measureContainer(x) { - this.handleMeasure('containerSize', x); - } - }, { - key: "measureTrack", - value: function measureTrack(x) { - this.handleMeasure('trackSize', x); - } - }, { - key: "measureThumb", - value: function measureThumb(x) { - this.handleMeasure('thumbSize', x); - } - }, { - key: "getValue", - value: function getValue(gestureState) { - var length = this.state.containerSize.width - this.state.thumbSize.width; - var thumbLeft = this._previousLeft + (this.props.orientation === 'vertical' ? gestureState.dy : gestureState.dx); - var ratio = thumbLeft / length; - - if (this.props.step) { - return Math.max(this.props.minimumValue, Math.min(this.props.maximumValue, this.props.minimumValue + Math.round(ratio * (this.props.maximumValue - this.props.minimumValue) / this.props.step) * this.props.step)); - } else { - return Math.max(this.props.minimumValue, Math.min(this.props.maximumValue, ratio * (this.props.maximumValue - this.props.minimumValue) + this.props.minimumValue)); - } - } - }, { - key: "getCurrentValue", - value: function getCurrentValue() { - return this.state.value.__getValue(); - } - }, { - key: "getRatio", - value: function getRatio(value) { - return (value - this.props.minimumValue) / (this.props.maximumValue - this.props.minimumValue); - } - }, { - key: "getThumbLeft", - value: function getThumbLeft(value) { - var ratio = this.getRatio(value); - return ratio * (this.state.containerSize.width - this.state.thumbSize.width); - } - }, { - key: "getThumbTouchRect", - value: function getThumbTouchRect() { - var state = this.state; - var props = this.props; - var touchOverflowSize = this.getTouchOverflowSize(); - return new Rect(touchOverflowSize.width / 2 + this.getThumbLeft(this.getCurrentValue()) + (state.thumbSize.width - props.thumbTouchSize.width) / 2, touchOverflowSize.height / 2 + (state.containerSize.height - props.thumbTouchSize.height) / 2, props.thumbTouchSize.width, props.thumbTouchSize.height); - } - }, { - key: "renderDebugThumbTouchRect", - value: function renderDebugThumbTouchRect(thumbLeft) { - var thumbTouchRect = this.getThumbTouchRect(); - var positionStyle = { - left: thumbLeft, - top: thumbTouchRect.y, - width: thumbTouchRect.width, - height: thumbTouchRect.height - }; - return _react.default.createElement(_reactNative.Animated.View, { - style: positionStyle, - pointerEvents: "none", - __source: { - fileName: _jsxFileName, - lineNumber: 339 - } - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - minimumValue = _this$props.minimumValue, - maximumValue = _this$props.maximumValue, - minimumTrackTintColor = _this$props.minimumTrackTintColor, - maximumTrackTintColor = _this$props.maximumTrackTintColor, - thumbTintColor = _this$props.thumbTintColor, - containerStyle = _this$props.containerStyle, - style = _this$props.style, - trackStyle = _this$props.trackStyle, - thumbStyle = _this$props.thumbStyle, - debugTouchArea = _this$props.debugTouchArea, - orientation = _this$props.orientation, - other = _objectWithoutProperties(_this$props, ["minimumValue", "maximumValue", "minimumTrackTintColor", "maximumTrackTintColor", "thumbTintColor", "containerStyle", "style", "trackStyle", "thumbStyle", "debugTouchArea", "orientation"]); - - var _this$state = this.state, - value = _this$state.value, - containerSize = _this$state.containerSize, - trackSize = _this$state.trackSize, - thumbSize = _this$state.thumbSize, - allMeasured = _this$state.allMeasured; - var mainStyles = containerStyle || styles; - var thumbLeft = value.interpolate({ - inputRange: [minimumValue, maximumValue], - outputRange: [0, containerSize.width - thumbSize.width] - }); - var valueVisibleStyle = {}; - - if (!allMeasured) { - valueVisibleStyle.opacity = 0; - } - - var minimumTrackStyle = _objectSpread({ - position: 'absolute', - width: _reactNative.Animated.add(thumbLeft, thumbSize.width / 2), - marginTop: -trackSize.height, - backgroundColor: minimumTrackTintColor - }, valueVisibleStyle); - - var thumbStyleTransform = thumbStyle && thumbStyle.transform || []; - var touchOverflowStyle = this.getTouchOverflowStyle(); - return _react.default.createElement(_reactNative.View, _extends({}, other, { - style: [mainStyles.container, orientation === 'vertical' && { - transform: [{ - rotate: '90deg' - }] - }, style], - onLayout: this.measureContainer.bind(this), - __source: { - fileName: _jsxFileName, - lineNumber: 389 - } - }), _react.default.createElement(_reactNative.View, { - style: [{ - backgroundColor: maximumTrackTintColor - }, mainStyles.track, trackStyle], - onLayout: this.measureTrack.bind(this), - __source: { - fileName: _jsxFileName, - lineNumber: 398 - } - }), _react.default.createElement(_reactNative.Animated.View, { - style: [mainStyles.track, trackStyle, minimumTrackStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 406 - } - }), _react.default.createElement(_reactNative.Animated.View, { - onLayout: this.measureThumb.bind(this), - style: [{ - backgroundColor: thumbTintColor - }, mainStyles.thumb, thumbStyle, _objectSpread({ - transform: [{ - translateX: thumbLeft - }, { - translateY: -(trackSize.height + thumbSize.height) / 2 - }].concat(_toConsumableArray(thumbStyleTransform)) - }, valueVisibleStyle)], - __source: { - fileName: _jsxFileName, - lineNumber: 409 - } - }), _react.default.createElement(_reactNative.View, _extends({ - style: [styles.touchArea, touchOverflowStyle] - }, this.panResponder.panHandlers, { - __source: { - fileName: _jsxFileName, - lineNumber: 425 - } - }), debugTouchArea === true && this.renderDebugThumbTouchRect(thumbLeft))); - } - }]); - - _inherits(Slider, _Component); - - return Slider; - }(_react.Component)); - - var _default2 = Slider; - exports.default = _default2; - Slider.propTypes = { - value: _propTypes.default.number, - disabled: _propTypes.default.bool, - minimumValue: _propTypes.default.number, - maximumValue: _propTypes.default.number, - step: _propTypes.default.number, - minimumTrackTintColor: _propTypes.default.string, - maximumTrackTintColor: _propTypes.default.string, - thumbTintColor: _propTypes.default.string, - thumbTouchSize: _propTypes.default.shape({ - width: _propTypes.default.number, - height: _propTypes.default.number - }), - onValueChange: _propTypes.default.func, - onSlidingStart: _propTypes.default.func, - onSlidingComplete: _propTypes.default.func, - style: _ViewPropTypes.default.style, - trackStyle: _ViewPropTypes.default.style, - thumbStyle: _ViewPropTypes.default.style, - debugTouchArea: _propTypes.default.bool, - animateTransitions: _propTypes.default.bool, - animationType: _propTypes.default.oneOf(['spring', 'timing']), - orientation: _propTypes.default.oneOf(['horizontal', 'vertical']), - animationConfig: _propTypes.default.object, - containerStyle: _ViewPropTypes.default.style - }; - Slider.defaultProps = { - value: 0, - minimumValue: 0, - maximumValue: 1, - step: 0, - minimumTrackTintColor: '#3f3f3f', - maximumTrackTintColor: '#b3b3b3', - thumbTintColor: 'red', - thumbTouchSize: { - width: 40, - height: 40 - }, - debugTouchArea: false, - animationType: 'timing', - orientation: 'horizontal' - }; - - var styles = _reactNative.StyleSheet.create({ - container: { - height: 40, - justifyContent: 'center' - }, - track: { - height: TRACK_SIZE, - borderRadius: TRACK_SIZE / 2 - }, - thumb: { - position: 'absolute', - width: THUMB_SIZE, - height: THUMB_SIZE, - borderRadius: THUMB_SIZE / 2, - top: 22 - }, - touchArea: { - position: 'absolute', - backgroundColor: 'transparent', - top: 0, - left: 0, - right: 0, - bottom: 0 - }, - debugThumbTouchArea: { - position: 'absolute', - backgroundColor: 'green', - opacity: 0.5 - } - }); -},706,[122,161,143,1,720],"node_modules/react-native-elements/src/slider/Slider.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "prop-types")); - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "react")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _fonts = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../config/fonts")); - - var _colors = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../config/colors")); - - var _Text = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "../text/Text")); - - var _Divider = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "../divider/Divider")); - - var _normalizeText = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[7], "../helpers/normalizeText")); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[8], "../config/ViewPropTypes")); - - var _BackgroundImage = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[9], "../config/BackgroundImage")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/card/Card.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - var Card = function Card(props) { - var children = props.children, - flexDirection = props.flexDirection, - containerStyle = props.containerStyle, - wrapperStyle = props.wrapperStyle, - imageWrapperStyle = props.imageWrapperStyle, - title = props.title, - titleStyle = props.titleStyle, - titleNumberOfLines = props.titleNumberOfLines, - featuredTitle = props.featuredTitle, - featuredTitleStyle = props.featuredTitleStyle, - featuredSubtitle = props.featuredSubtitle, - featuredSubtitleStyle = props.featuredSubtitleStyle, - dividerStyle = props.dividerStyle, - image = props.image, - imageStyle = props.imageStyle, - fontFamily = props.fontFamily, - imageProps = props.imageProps, - attributes = _objectWithoutProperties(props, ["children", "flexDirection", "containerStyle", "wrapperStyle", "imageWrapperStyle", "title", "titleStyle", "titleNumberOfLines", "featuredTitle", "featuredTitleStyle", "featuredSubtitle", "featuredSubtitleStyle", "dividerStyle", "image", "imageStyle", "fontFamily", "imageProps"]); - - return _react.default.createElement(_reactNative.View, _extends({}, attributes, { - style: [styles.container, image && { - padding: 0 - }, containerStyle && containerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 41 - } - }), _react.default.createElement(_reactNative.View, { - style: [styles.wrapper, wrapperStyle && wrapperStyle, flexDirection && { - flexDirection: flexDirection - }], - __source: { - fileName: _jsxFileName, - lineNumber: 49 - } - }, title === '' || _react.default.isValidElement(title) ? title : title && title.length && _react.default.createElement(_reactNative.View, { - __source: { - fileName: _jsxFileName, - lineNumber: 60 - } - }, _react.default.createElement(_Text.default, { - style: [styles.cardTitle, image && styles.imageCardTitle, titleStyle && titleStyle, fontFamily && { - fontFamily: fontFamily - }], - numberOfLines: titleNumberOfLines, - __source: { - fileName: _jsxFileName, - lineNumber: 61 - } - }, title), !image && _react.default.createElement(_Divider.default, { - style: [styles.divider, dividerStyle && dividerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 73 - } - })), image && _react.default.createElement(_reactNative.View, { - style: imageWrapperStyle && imageWrapperStyle, - __source: { - fileName: _jsxFileName, - lineNumber: 80 - } - }, _react.default.createElement(_BackgroundImage.default, _extends({ - style: [{ - width: null, - height: 150 - }, imageStyle && imageStyle], - source: image - }, imageProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 81 - } - }), (featuredTitle || featuredSubtitle) && _react.default.createElement(_reactNative.View, { - style: styles.overlayContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 87 - } - }, featuredTitle && _react.default.createElement(_Text.default, { - style: [styles.featuredTitle, featuredTitleStyle && featuredTitleStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 89 - } - }, featuredTitle), featuredSubtitle && _react.default.createElement(_Text.default, { - style: [styles.featuredSubtitle, featuredSubtitleStyle && featuredSubtitleStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 99 - } - }, featuredSubtitle))), _react.default.createElement(_reactNative.View, { - style: [{ - padding: 10 - }, wrapperStyle && wrapperStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 111 - } - }, children)), !image && children)); - }; - - Card.propTypes = { - children: _propTypes.default.any, - flexDirection: _propTypes.default.string, - containerStyle: _ViewPropTypes.default.style, - wrapperStyle: _ViewPropTypes.default.style, - overlayStyle: _ViewPropTypes.default.style, - title: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element]), - titleStyle: _reactNative.Text.propTypes.style, - featuredTitle: _propTypes.default.string, - featuredTitleStyle: _Text.default.propTypes.style, - featuredSubtitle: _propTypes.default.string, - featuredSubtitleStyle: _Text.default.propTypes.style, - dividerStyle: _ViewPropTypes.default.style, - image: _reactNative.Image.propTypes.source, - imageStyle: _ViewPropTypes.default.style, - imageWrapperStyle: _ViewPropTypes.default.style, - fontFamily: _propTypes.default.string, - imageProps: _propTypes.default.object, - titleNumberOfLines: _propTypes.default.number - }; - - var styles = _reactNative.StyleSheet.create({ - container: _objectSpread({ - backgroundColor: 'white', - borderColor: _colors.default.grey5, - borderWidth: 1, - padding: 15, - margin: 15, - marginBottom: 0 - }, _reactNative.Platform.select({ - ios: { - shadowColor: 'rgba(0,0,0, .2)', - shadowOffset: { - height: 0, - width: 0 - }, - shadowOpacity: 1, - shadowRadius: 1 - }, - android: { - elevation: 1 - } - })), - featuredTitle: _objectSpread({ - fontSize: (0, _normalizeText.default)(18), - marginBottom: 8, - color: 'white' - }, _reactNative.Platform.select({ - ios: { - fontWeight: '800' - }, - android: _objectSpread({}, _fonts.default.android.black) - })), - featuredSubtitle: _objectSpread({ - fontSize: (0, _normalizeText.default)(13), - marginBottom: 8, - color: 'white' - }, _reactNative.Platform.select({ - ios: { - fontWeight: '400' - }, - android: _objectSpread({}, _fonts.default.android.black) - })), - wrapper: { - backgroundColor: 'transparent' - }, - divider: { - marginBottom: 15 - }, - cardTitle: _objectSpread({ - fontSize: (0, _normalizeText.default)(14) - }, _reactNative.Platform.select({ - ios: { - fontWeight: 'bold' - }, - android: _objectSpread({}, _fonts.default.android.black) - }), { - textAlign: 'center', - marginBottom: 15, - color: _colors.default.grey1 - }), - imageCardTitle: { - marginTop: 15 - }, - overlayContainer: { - flex: 1, - alignItems: 'center', - backgroundColor: 'rgba(0, 0, 0, 0.2)', - alignSelf: 'stretch', - justifyContent: 'center', - position: 'absolute', - top: 0, - left: 0, - right: 0, - bottom: 0 - } - }); - - var _default = Card; - exports.default = _default; -},708,[143,122,1,741,715,714,705,717,720,746],"node_modules/react-native-elements/src/card/Card.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "prop-types")); - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "react")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _Text = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../text/Text")); - - var _Icon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../icons/Icon")); - - var _FeaturedTile = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./FeaturedTile")); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "../config/ViewPropTypes")); - - var _BackgroundImage = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[7], "../config/BackgroundImage")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/tile/Tile.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - var Tile = function Tile(props) { - var featured = props.featured, - imageSrc = props.imageSrc, - icon = props.icon, - title = props.title, - children = props.children, - caption = props.caption, - titleStyle = props.titleStyle, - onPress = props.onPress, - activeOpacity = props.activeOpacity, - overlayContainerStyle = props.overlayContainerStyle, - captionStyle = props.captionStyle, - iconContainerStyle = props.iconContainerStyle, - imageContainerStyle = props.imageContainerStyle, - containerStyle = props.containerStyle, - contentContainerStyle = props.contentContainerStyle, - titleNumberOfLines = props.titleNumberOfLines, - attributes = _objectWithoutProperties(props, ["featured", "imageSrc", "icon", "title", "children", "caption", "titleStyle", "onPress", "activeOpacity", "overlayContainerStyle", "captionStyle", "iconContainerStyle", "imageContainerStyle", "containerStyle", "contentContainerStyle", "titleNumberOfLines"]); - - var width = props.width, - height = props.height; - - if (!width) { - width = _reactNative.Dimensions.get('window').width; - } - - if (!height) { - height = width * 0.8; - } - - var styles = _reactNative.StyleSheet.create({ - container: { - width: width, - height: height - }, - imageContainer: { - alignItems: 'center', - justifyContent: 'center', - backgroundColor: '#ffffff', - flex: 2 - }, - text: { - backgroundColor: 'rgba(0,0,0,0)', - marginBottom: 5 - }, - contentContainer: { - paddingTop: 15, - paddingBottom: 5, - paddingLeft: 15, - paddingRight: 15 - }, - iconContainer: { - justifyContent: 'center', - alignItems: 'center', - alignSelf: 'center' - } - }); - - if (featured) { - var featuredProps = { - title: title, - icon: icon, - caption: caption, - imageSrc: imageSrc, - onPress: onPress, - activeOpacity: activeOpacity, - containerStyle: containerStyle, - imageContainerStyle: imageContainerStyle, - overlayContainerStyle: overlayContainerStyle, - titleStyle: titleStyle, - captionStyle: captionStyle, - width: width, - height: height - }; - return _react.default.createElement(_FeaturedTile.default, _extends({}, featuredProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 92 - } - })); - } - - return _react.default.createElement(_reactNative.TouchableOpacity, _extends({}, attributes, { - onPress: onPress, - activeOpacity: activeOpacity, - style: [styles.container, containerStyle && containerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 96 - } - }), _react.default.createElement(_BackgroundImage.default, { - source: imageSrc, - style: [styles.imageContainer, imageContainerStyle && imageContainerStyle], - resizeMode: "cover", - __source: { - fileName: _jsxFileName, - lineNumber: 102 - } - }, _react.default.createElement(_reactNative.View, { - style: [styles.iconContainer, iconContainerStyle && iconContainerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 110 - } - }, icon && _react.default.createElement(_Icon.default, _extends({}, icon, { - __source: { - fileName: _jsxFileName, - lineNumber: 116 - } - })))), _react.default.createElement(_reactNative.View, { - style: [styles.contentContainer, contentContainerStyle && contentContainerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 119 - } - }, _react.default.createElement(_Text.default, { - h4: true, - style: [styles.text, titleStyle && titleStyle], - numberOfLines: titleNumberOfLines, - __source: { - fileName: _jsxFileName, - lineNumber: 125 - } - }, title), children)); - }; - - Tile.propTypes = { - title: _propTypes.default.string, - icon: _propTypes.default.object, - caption: _propTypes.default.string, - imageSrc: _reactNative.Image.propTypes.source, - onPress: _propTypes.default.func, - activeOpacity: _propTypes.default.number, - containerStyle: _ViewPropTypes.default.style, - imageContainerStyle: _ViewPropTypes.default.style, - iconContainerStyle: _ViewPropTypes.default.style, - overlayContainerStyle: _ViewPropTypes.default.style, - titleStyle: _reactNative.Text.propTypes.style, - captionStyle: _reactNative.Text.propTypes.style, - width: _propTypes.default.number, - height: _propTypes.default.number, - featured: _propTypes.default.bool, - children: _propTypes.default.any, - contentContainerStyle: _ViewPropTypes.default.style, - titleNumberOfLines: _propTypes.default.number - }; - var _default = Tile; - exports.default = _default; -},709,[143,122,1,714,698,752,720,746],"node_modules/react-native-elements/src/tile/Tile.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "prop-types")); - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "react")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _Text = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../text/Text")); - - var _Icon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../icons/Icon")); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "../config/ViewPropTypes")); - - var _BackgroundImage = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "../config/BackgroundImage")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/tile/FeaturedTile.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - var FeaturedTile = function FeaturedTile(props) { - var title = props.title, - icon = props.icon, - caption = props.caption, - imageSrc = props.imageSrc, - containerStyle = props.containerStyle, - imageContainerStyle = props.imageContainerStyle, - overlayContainerStyle = props.overlayContainerStyle, - iconContainerStyle = props.iconContainerStyle, - titleStyle = props.titleStyle, - captionStyle = props.captionStyle, - attributes = _objectWithoutProperties(props, ["title", "icon", "caption", "imageSrc", "containerStyle", "imageContainerStyle", "overlayContainerStyle", "iconContainerStyle", "titleStyle", "captionStyle"]); - - var width = props.width, - height = props.height; - - if (!width) { - width = _reactNative.Dimensions.get('window').width; - } - - if (!height) { - height = width * 0.8; - } - - var styles = _reactNative.StyleSheet.create({ - container: { - width: width, - height: height - }, - imageContainer: { - alignItems: 'center', - justifyContent: 'center', - backgroundColor: '#ffffff', - width: width, - height: height - }, - overlayContainer: { - flex: 1, - alignItems: 'center', - backgroundColor: 'rgba(0,0,0,0.2)', - alignSelf: 'stretch', - justifyContent: 'center', - paddingLeft: 25, - paddingRight: 25, - paddingTop: 45, - paddingBottom: 40, - position: 'absolute', - top: 0, - left: 0, - right: 0, - bottom: 0 - }, - text: { - color: '#ffffff', - backgroundColor: 'rgba(0,0,0,0)', - marginBottom: 15, - textAlign: 'center' - }, - iconContainer: { - justifyContent: 'center', - alignItems: 'center', - alignSelf: 'center' - } - }); - - return _react.default.createElement(_reactNative.TouchableOpacity, _extends({}, attributes, { - style: [styles.container, containerStyle && containerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 82 - } - }), _react.default.createElement(_BackgroundImage.default, { - source: imageSrc, - style: [styles.imageContainer, imageContainerStyle && imageContainerStyle], - resizeMode: "cover", - __source: { - fileName: _jsxFileName, - lineNumber: 86 - } - }, _react.default.createElement(_reactNative.View, { - style: [styles.overlayContainer, overlayContainerStyle && overlayContainerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 94 - } - }, _react.default.createElement(_reactNative.View, { - style: [styles.iconContainer, iconContainerStyle && iconContainerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 100 - } - }, icon && _react.default.createElement(_Icon.default, _extends({}, icon, { - __source: { - fileName: _jsxFileName, - lineNumber: 106 - } - }))), _react.default.createElement(_Text.default, { - h4: true, - style: [styles.text, titleStyle && titleStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 108 - } - }, title), _react.default.createElement(_Text.default, { - style: [styles.text, captionStyle && captionStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 111 - } - }, caption)))); - }; - - FeaturedTile.propTypes = { - title: _propTypes.default.string, - icon: _propTypes.default.object, - caption: _propTypes.default.string, - imageSrc: _reactNative.Image.propTypes.source, - onPress: _propTypes.default.func, - containerStyle: _ViewPropTypes.default.style, - iconContainerStyle: _ViewPropTypes.default.style, - imageContainerStyle: _ViewPropTypes.default.style, - overlayContainerStyle: _ViewPropTypes.default.style, - titleStyle: _reactNative.Text.propTypes.style, - captionStyle: _reactNative.Text.propTypes.style, - width: _propTypes.default.number, - height: _propTypes.default.number - }; - var _default = FeaturedTile; - exports.default = _default; -},752,[143,122,1,714,698,720,746],"node_modules/react-native-elements/src/tile/FeaturedTile.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _lodash = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "lodash.times")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[4], "react-native"); - - var _Text = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "../text/Text")); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "../config/ViewPropTypes")); - - var _class, - _temp, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/rating/Rating.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Rating: { - displayName: "Rating" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/rating/Rating.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var STAR_IMAGE = _$$_REQUIRE(_dependencyMap[7], './images/star.png'); - - var HEART_IMAGE = _$$_REQUIRE(_dependencyMap[8], './images/heart.png'); - - var ROCKET_IMAGE = _$$_REQUIRE(_dependencyMap[9], './images/rocket.png'); - - var BELL_IMAGE = _$$_REQUIRE(_dependencyMap[10], './images/bell.png'); - - var STAR_WIDTH = 60; - var TYPES = { - star: { - source: STAR_IMAGE, - color: '#f1c40f', - backgroundColor: 'white' - }, - heart: { - source: HEART_IMAGE, - color: '#e74c3c', - backgroundColor: 'white' - }, - rocket: { - source: ROCKET_IMAGE, - color: '#2ecc71', - backgroundColor: 'white' - }, - bell: { - source: BELL_IMAGE, - color: '#f39c12', - backgroundColor: 'white' - } - }; - - var Rating = _wrapComponent("Rating")((_temp = _class = function (_Component) { - function Rating(props) { - var _this; - - _classCallCheck(this, Rating); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(Rating).call(this, props)); - var _this$props = _this.props, - onFinishRating = _this$props.onFinishRating, - fractions = _this$props.fractions; - var position = new _reactNative.Animated.ValueXY(); - - var panResponder = _reactNative.PanResponder.create({ - onStartShouldSetPanResponder: function onStartShouldSetPanResponder() { - return true; - }, - onPanResponderMove: function onPanResponderMove(event, gesture) { - var newPosition = new _reactNative.Animated.ValueXY(); - newPosition.setValue({ - x: gesture.dx, - y: 0 - }); - - _this.setState({ - position: newPosition, - value: gesture.dx - }); - }, - onPanResponderRelease: function onPanResponderRelease() { - var rating = _this.getCurrentRating(); - - if (!fractions) { - _this.setCurrentRating(rating); - } - - onFinishRating(rating); - } - }); - - _this.state = { - panResponder: panResponder, - position: position - }; - return _this; - } - - _createClass(Rating, [{ - key: "componentDidMount", - value: function componentDidMount() { - this.setCurrentRating(this.props.startingValue); - } - }, { - key: "getPrimaryViewStyle", - value: function getPrimaryViewStyle() { - var position = this.state.position; - var _this$props2 = this.props, - imageSize = _this$props2.imageSize, - ratingCount = _this$props2.ratingCount, - type = _this$props2.type; - var color = TYPES[type].color; - var width = position.x.interpolate({ - inputRange: [-ratingCount * (imageSize / 2), 0, ratingCount * (imageSize / 2)], - outputRange: [0, ratingCount * imageSize / 2, ratingCount * imageSize], - extrapolate: 'clamp' - }, { - useNativeDriver: true - }); - return { - backgroundColor: color, - width: width, - height: width ? imageSize : 0 - }; - } - }, { - key: "getSecondaryViewStyle", - value: function getSecondaryViewStyle() { - var position = this.state.position; - var _this$props3 = this.props, - imageSize = _this$props3.imageSize, - ratingCount = _this$props3.ratingCount, - type = _this$props3.type; - var backgroundColor = TYPES[type].backgroundColor; - var width = position.x.interpolate({ - inputRange: [-ratingCount * (imageSize / 2), 0, ratingCount * (imageSize / 2)], - outputRange: [ratingCount * imageSize, ratingCount * imageSize / 2, 0], - extrapolate: 'clamp' - }, { - useNativeDriver: true - }); - return { - backgroundColor: backgroundColor, - width: width, - height: width ? imageSize : 0 - }; - } - }, { - key: "renderRatings", - value: function renderRatings() { - var _this$props4 = this.props, - imageSize = _this$props4.imageSize, - ratingCount = _this$props4.ratingCount, - type = _this$props4.type; - var source = TYPES[type].source; - return (0, _lodash.default)(ratingCount, function (index) { - return _react.default.createElement(_reactNative.View, { - key: index, - style: styles.starContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 149 - } - }, _react.default.createElement(_reactNative.Image, { - source: source, - style: { - width: imageSize, - height: imageSize - }, - __source: { - fileName: _jsxFileName, - lineNumber: 150 - } - })); - }); - } - }, { - key: "getCurrentRating", - value: function getCurrentRating() { - var value = this.state.value; - var _this$props5 = this.props, - fractions = _this$props5.fractions, - imageSize = _this$props5.imageSize, - ratingCount = _this$props5.ratingCount; - var startingValue = ratingCount / 2; - var currentRating = 0; - - if (value > ratingCount * imageSize / 2) { - currentRating = ratingCount; - } else if (value < -ratingCount * imageSize / 2) { - currentRating = 0; - } else if (value < imageSize || value > imageSize) { - currentRating = startingValue + value / imageSize; - currentRating = !fractions ? Math.ceil(currentRating) : +currentRating.toFixed(fractions); - } else { - currentRating = !fractions ? Math.ceil(startingValue) : +startingValue.toFixed(fractions); - } - - return currentRating; - } - }, { - key: "setCurrentRating", - value: function setCurrentRating(rating) { - var _this$props6 = this.props, - imageSize = _this$props6.imageSize, - ratingCount = _this$props6.ratingCount; - var initialRating = ratingCount / 2; - var value = null; - - if (rating > ratingCount) { - value = ratingCount * imageSize / 2; - } else if (rating < 0) { - value = -ratingCount * imageSize / 2; - } else if (rating < ratingCount / 2 || rating > ratingCount / 2) { - value = (rating - initialRating) * imageSize; - } else { - value = 0; - } - - var newPosition = new _reactNative.Animated.ValueXY(); - newPosition.setValue({ - x: value, - y: 0 - }); - this.setState({ - position: newPosition, - value: value - }); - } - }, { - key: "displayCurrentRating", - value: function displayCurrentRating() { - var _this$props7 = this.props, - ratingCount = _this$props7.ratingCount, - type = _this$props7.type, - ratingTextColor = _this$props7.ratingTextColor, - readonly = _this$props7.readonly, - showReadOnlyText = _this$props7.showReadOnlyText; - var color = ratingTextColor || TYPES[type].color; - var showReadOnlyText_ = showReadOnlyText && readonly; - return _react.default.createElement(_reactNative.View, { - style: styles.showRatingView, - __source: { - fileName: _jsxFileName, - lineNumber: 218 - } - }, _react.default.createElement(_reactNative.View, { - style: styles.ratingView, - __source: { - fileName: _jsxFileName, - lineNumber: 219 - } - }, _react.default.createElement(_Text.default, { - style: [styles.ratingText, { - color: color - }], - __source: { - fileName: _jsxFileName, - lineNumber: 220 - } - }, "Rating: "), _react.default.createElement(_Text.default, { - style: [styles.currentRatingText, { - color: color - }], - __source: { - fileName: _jsxFileName, - lineNumber: 221 - } - }, this.getCurrentRating()), _react.default.createElement(_Text.default, { - style: [styles.maxRatingText, { - color: color - }], - __source: { - fileName: _jsxFileName, - lineNumber: 224 - } - }, "/", ratingCount)), _react.default.createElement(_reactNative.View, { - __source: { - fileName: _jsxFileName, - lineNumber: 226 - } - }, showReadOnlyText_ && _react.default.createElement(_Text.default, { - style: [styles.readonlyLabel, { - color: color - }], - __source: { - fileName: _jsxFileName, - lineNumber: 228 - } - }, "(readonly)"))); - } - }, { - key: "render", - value: function render() { - var _this$props8 = this.props, - readonly = _this$props8.readonly, - type = _this$props8.type, - ratingImage = _this$props8.ratingImage, - ratingColor = _this$props8.ratingColor, - ratingBackgroundColor = _this$props8.ratingBackgroundColor, - style = _this$props8.style, - showRating = _this$props8.showRating; - - if (type === 'custom') { - var custom = { - source: ratingImage, - color: ratingColor, - backgroundColor: ratingBackgroundColor - }; - TYPES.custom = custom; - } - - return _react.default.createElement(_reactNative.View, { - pointerEvents: readonly ? 'none' : 'auto', - style: style, - __source: { - fileName: _jsxFileName, - lineNumber: 256 - } - }, showRating && this.displayCurrentRating(), _react.default.createElement(_reactNative.View, _extends({ - style: styles.starsWrapper - }, this.state.panResponder.panHandlers, { - __source: { - fileName: _jsxFileName, - lineNumber: 258 - } - }), _react.default.createElement(_reactNative.View, { - style: styles.starsInsideWrapper, - __source: { - fileName: _jsxFileName, - lineNumber: 262 - } - }, _react.default.createElement(_reactNative.Animated.View, { - style: this.getPrimaryViewStyle(), - __source: { - fileName: _jsxFileName, - lineNumber: 263 - } - }), _react.default.createElement(_reactNative.Animated.View, { - style: this.getSecondaryViewStyle(), - __source: { - fileName: _jsxFileName, - lineNumber: 264 - } - })), this.renderRatings())); - } - }]); - - _inherits(Rating, _Component); - - return Rating; - }(_react.Component), _class.defaultProps = { - type: 'star', - ratingImage: _$$_REQUIRE(_dependencyMap[7], './images/star.png'), - ratingColor: '#f1c40f', - ratingBackgroundColor: 'white', - ratingCount: 5, - showReadOnlyText: true, - imageSize: STAR_WIDTH, - onFinishRating: function onFinishRating() { - return console.log('Attach a function here.'); - } - }, _temp)); - - var _default2 = Rating; - exports.default = _default2; - - var styles = _reactNative.StyleSheet.create({ - starsWrapper: { - flexDirection: 'row', - justifyContent: 'center', - alignItems: 'center' - }, - starsInsideWrapper: { - position: 'absolute', - top: 0, - left: 0, - right: 0, - bottom: 0, - flexDirection: 'row', - justifyContent: 'center', - alignItems: 'center' - }, - showRatingView: { - flexDirection: 'column', - justifyContent: 'center', - alignItems: 'center', - paddingBottom: 5 - }, - ratingView: { - flexDirection: 'row', - justifyContent: 'center', - alignItems: 'center', - paddingBottom: 5 - }, - ratingText: { - fontSize: 15, - textAlign: 'center', - fontFamily: _reactNative.Platform.OS === 'ios' ? 'Trebuchet MS' : null, - color: '#34495e' - }, - readonlyLabel: { - justifyContent: 'center', - alignItems: 'center', - fontSize: 12, - textAlign: 'center', - fontFamily: _reactNative.Platform.OS === 'ios' ? 'Trebuchet MS' : null, - color: '#34495a' - }, - currentRatingText: { - fontSize: 30, - textAlign: 'center', - fontFamily: _reactNative.Platform.OS === 'ios' ? 'Trebuchet MS' : null - }, - maxRatingText: { - fontSize: 18, - textAlign: 'center', - fontFamily: _reactNative.Platform.OS === 'ios' ? 'Trebuchet MS' : null, - color: '#34495e' - } - }); - - var fractionsType = function fractionsType(props, propName, componentName) { - if (props[propName]) { - var value = props[propName]; - - if (typeof value === 'number') { - return value >= 0 && value <= 20 ? null : new Error("`" + propName + "` in `" + componentName + "` must be between 0 and 20"); - } - - return new Error("`" + propName + "` in `" + componentName + "` must be a number"); - } - }; - - Rating.propTypes = { - type: _propTypes.default.string, - ratingImage: _reactNative.Image.propTypes.source, - ratingColor: _propTypes.default.string, - ratingBackgroundColor: _propTypes.default.string, - ratingCount: _propTypes.default.number, - imageSize: _propTypes.default.number, - onFinishRating: _propTypes.default.func, - showRating: _propTypes.default.bool, - style: _ViewPropTypes.default.style, - ratingTextColor: _propTypes.default.string, - readonly: _propTypes.default.bool, - showReadOnlyText: _propTypes.default.bool, - startingValue: _propTypes.default.number, - fractions: fractionsType - }; -},711,[122,161,753,143,1,714,720,754,755,756,757],"node_modules/react-native-elements/src/rating/Rating.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var INFINITY = 1 / 0, - MAX_SAFE_INTEGER = 9007199254740991, - MAX_INTEGER = 1.7976931348623157e+308, - NAN = 0 / 0; - var MAX_ARRAY_LENGTH = 4294967295; - var symbolTag = '[object Symbol]'; - var reTrim = /^\s+|\s+$/g; - var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; - var reIsBinary = /^0b[01]+$/i; - var reIsOctal = /^0o[0-7]+$/i; - var freeParseInt = parseInt; - - function baseTimes(n, iteratee) { - var index = -1, - result = Array(n); - - while (++index < n) { - result[index] = iteratee(index); - } - - return result; - } - - var objectProto = Object.prototype; - var objectToString = objectProto.toString; - var nativeMin = Math.min; - - function isObject(value) { - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); - } - - function isObjectLike(value) { - return !!value && typeof value == 'object'; - } - - function isSymbol(value) { - return typeof value == 'symbol' || isObjectLike(value) && objectToString.call(value) == symbolTag; - } - - function toFinite(value) { - if (!value) { - return value === 0 ? value : 0; - } - - value = toNumber(value); - - if (value === INFINITY || value === -INFINITY) { - var sign = value < 0 ? -1 : 1; - return sign * MAX_INTEGER; - } - - return value === value ? value : 0; - } - - function toInteger(value) { - var result = toFinite(value), - remainder = result % 1; - return result === result ? remainder ? result - remainder : result : 0; - } - - function toNumber(value) { - if (typeof value == 'number') { - return value; - } - - if (isSymbol(value)) { - return NAN; - } - - if (isObject(value)) { - var other = typeof value.valueOf == 'function' ? value.valueOf() : value; - value = isObject(other) ? other + '' : other; - } - - if (typeof value != 'string') { - return value === 0 ? value : +value; - } - - value = value.replace(reTrim, ''); - var isBinary = reIsBinary.test(value); - return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; - } - - function identity(value) { - return value; - } - - function times(n, iteratee) { - n = toInteger(n); - - if (n < 1 || n > MAX_SAFE_INTEGER) { - return []; - } - - var index = MAX_ARRAY_LENGTH, - length = nativeMin(n, MAX_ARRAY_LENGTH); - iteratee = typeof iteratee == 'function' ? iteratee : identity; - n -= MAX_ARRAY_LENGTH; - var result = baseTimes(length, iteratee); - - while (++index < n) { - iteratee(index); - } - - return result; - } - - module.exports = times; -},753,[],"node_modules/lodash.times/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/node_modules/react-native-elements/src/rating/images", - "width": 50, - "height": 50, - "scales": [1], - "hash": "004c2bbb035d8d06bb830efc4673c886", - "name": "star", - "type": "png" - }); -},754,[158],"node_modules/react-native-elements/src/rating/images/star.png"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/node_modules/react-native-elements/src/rating/images", - "width": 50, - "height": 50, - "scales": [1], - "hash": "2327736b3ea09c41abfb69be1221f430", - "name": "heart", - "type": "png" - }); -},755,[158],"node_modules/react-native-elements/src/rating/images/heart.png"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/node_modules/react-native-elements/src/rating/images", - "width": 50, - "height": 50, - "scales": [1], - "hash": "51671417ef20e0bbc32f0a2bc6edfa95", - "name": "rocket", - "type": "png" - }); -},756,[158],"node_modules/react-native-elements/src/rating/images/rocket.png"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0], "react-native/Libraries/Image/AssetRegistry").registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/node_modules/react-native-elements/src/rating/images", - "width": 50, - "height": 50, - "scales": [1], - "hash": "a7b9dc9de5f8f1fb1afbef917619a5ac", - "name": "bell", - "type": "png" - }); -},757,[158],"node_modules/react-native-elements/src/rating/images/bell.png"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "prop-types")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _lodash = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "lodash.isempty")); - - var _DummyNavButton = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./DummyNavButton")); - - var _NavButton = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./NavButton")); - - var _Title = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "./Title")); - - var _config = _$$_REQUIRE(_dependencyMap[7], "../config"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/header/Header.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function alignStyle(placement) { - switch (placement) { - case 'left': - return 'flex-start'; - - case 'right': - return 'flex-end'; - - default: - return 'center'; - } - } - - function generateChild(value, type, placement, centerComponentStyle) { - if (_react.default.isValidElement(value)) { - return _react.default.createElement(_reactNative.View, { - key: type, - __source: { - fileName: _jsxFileName, - lineNumber: 23 - } - }, value); - } else if (typeof value === 'object' && !(0, _lodash.default)(value)) { - return type === 'center' ? _react.default.createElement(_reactNative.View, { - key: type, - style: [styles.centerComponent, centerComponentStyle, { - alignItems: alignStyle(placement) - }], - __source: { - fileName: _jsxFileName, - lineNumber: 26 - } - }, _react.default.createElement(_Title.default, _extends({}, value, { - __source: { - fileName: _jsxFileName, - lineNumber: 36 - } - }))) : _react.default.createElement(_NavButton.default, _extends({}, value, { - key: type, - __source: { - fileName: _jsxFileName, - lineNumber: 39 - } - })); - } - - return type === 'center' ? null : _react.default.createElement(_DummyNavButton.default, { - key: type, - __source: { - fileName: _jsxFileName, - lineNumber: 42 - } - }); - } - - function populateChildren(propChildren, placement, centerComponentStyle) { - var childrenArray = []; - var leftComponent = generateChild(propChildren.leftComponent, 'left'); - var centerComponent = generateChild(propChildren.centerComponent, 'center', placement, centerComponentStyle); - var rightComponent = generateChild(propChildren.rightComponent, 'right'); - childrenArray.push(leftComponent, centerComponent, rightComponent); - return childrenArray; - } - - var Header = function Header(props) { - var children = props.children, - statusBarProps = props.statusBarProps, - leftComponent = props.leftComponent, - centerComponent = props.centerComponent, - centerComponentStyle = props.centerComponentStyle, - rightComponent = props.rightComponent, - backgroundColor = props.backgroundColor, - outerContainerStyles = props.outerContainerStyles, - innerContainerStyles = props.innerContainerStyles, - placement = props.placement, - attributes = _objectWithoutProperties(props, ["children", "statusBarProps", "leftComponent", "centerComponent", "centerComponentStyle", "rightComponent", "backgroundColor", "outerContainerStyles", "innerContainerStyles", "placement"]); - - var propChildren = []; - - if (leftComponent || centerComponent || rightComponent) { - propChildren = populateChildren({ - leftComponent: leftComponent, - centerComponent: centerComponent, - rightComponent: rightComponent - }, placement, centerComponentStyle); - } - - return _react.default.createElement(_reactNative.View, _extends({}, attributes, { - style: [styles.outerContainer, backgroundColor && { - backgroundColor: backgroundColor - }, outerContainerStyles], - __source: { - fileName: _jsxFileName, - lineNumber: 92 - } - }), _react.default.createElement(_reactNative.StatusBar, _extends({ - barStyle: "light-content" - }, statusBarProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 100 - } - })), _react.default.createElement(_reactNative.View, { - style: [styles.innerContainer, innerContainerStyles], - __source: { - fileName: _jsxFileName, - lineNumber: 101 - } - }, propChildren.length > 0 ? propChildren : children)); - }; - - Header.propTypes = { - placement: _propTypes.default.oneOf(['left', 'center', 'right']), - leftComponent: _propTypes.default.object, - centerComponent: _propTypes.default.object, - rightComponent: _propTypes.default.object, - backgroundColor: _propTypes.default.string, - outerContainerStyles: _config.ViewPropTypes.style, - innerContainerStyles: _config.ViewPropTypes.style, - centerComponentStyle: _config.ViewPropTypes.style, - children: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.arrayOf(_propTypes.default.element)]), - statusBarProps: _propTypes.default.object - }; - Header.defaultProps = { - placement: 'center' - }; - - var styles = _reactNative.StyleSheet.create({ - innerContainer: { - flex: 1, - flexDirection: 'row', - justifyContent: 'space-between', - alignItems: 'center' - }, - outerContainer: _objectSpread({ - backgroundColor: _config.colors.primary, - borderBottomColor: '#f2f2f2', - borderBottomWidth: 1, - paddingHorizontal: 10, - height: _reactNative.Platform.OS === 'ios' ? 70 : 70 - (0, _config.getStatusBarHeight)() - }, _reactNative.Platform.select({ - ios: { - paddingTop: (0, _config.getStatusBarHeight)() - } - })), - centerComponent: { - flex: 1, - marginHorizontal: _reactNative.Platform.OS === 'ios' ? 15 : 16 - } - }); - - var _default = Header; - exports.default = _default; -},712,[122,143,1,758,759,760,761,745],"node_modules/react-native-elements/src/header/Header.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - var MAX_SAFE_INTEGER = 9007199254740991; - var argsTag = '[object Arguments]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - mapTag = '[object Map]', - objectTag = '[object Object]', - promiseTag = '[object Promise]', - setTag = '[object Set]', - weakMapTag = '[object WeakMap]'; - var dataViewTag = '[object DataView]'; - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - var reIsHostCtor = /^\[object .+?Constructor\]$/; - var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - var root = freeGlobal || freeSelf || Function('return this')(); - var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; - var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; - var moduleExports = freeModule && freeModule.exports === freeExports; - - function getValue(object, key) { - return object == null ? undefined : object[key]; - } - - function isHostObject(value) { - var result = false; - - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - - return result; - } - - function overArg(func, transform) { - return function (arg) { - return func(transform(arg)); - }; - } - - var funcProto = Function.prototype, - objectProto = Object.prototype; - var coreJsData = root['__core-js_shared__']; - - var maskSrcKey = function () { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? 'Symbol(src)_1.' + uid : ''; - }(); - - var funcToString = funcProto.toString; - var hasOwnProperty = objectProto.hasOwnProperty; - var objectToString = objectProto.toString; - var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'); - var Buffer = moduleExports ? root.Buffer : undefined, - propertyIsEnumerable = objectProto.propertyIsEnumerable; - var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined, - nativeKeys = overArg(Object.keys, Object); - var DataView = getNative(root, 'DataView'), - Map = getNative(root, 'Map'), - Promise = getNative(root, 'Promise'), - Set = getNative(root, 'Set'), - WeakMap = getNative(root, 'WeakMap'); - var nonEnumShadows = !propertyIsEnumerable.call({ - 'valueOf': 1 - }, 'valueOf'); - var dataViewCtorString = toSource(DataView), - mapCtorString = toSource(Map), - promiseCtorString = toSource(Promise), - setCtorString = toSource(Set), - weakMapCtorString = toSource(WeakMap); - - function baseGetTag(value) { - return objectToString.call(value); - } - - function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - - var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); - } - - function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; - } - - var getTag = baseGetTag; - - if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise && getTag(Promise.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) { - getTag = function getTag(value) { - var result = objectToString.call(value), - Ctor = result == objectTag ? value.constructor : undefined, - ctorString = Ctor ? toSource(Ctor) : undefined; - - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: - return dataViewTag; - - case mapCtorString: - return mapTag; - - case promiseCtorString: - return promiseTag; - - case setCtorString: - return setTag; - - case weakMapCtorString: - return weakMapTag; - } - } - - return result; - }; - } - - function isMasked(func) { - return !!maskSrcKey && maskSrcKey in func; - } - - function isPrototype(value) { - var Ctor = value && value.constructor, - proto = typeof Ctor == 'function' && Ctor.prototype || objectProto; - return value === proto; - } - - function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - - try { - return func + ''; - } catch (e) {} - } - - return ''; - } - - function isArguments(value) { - return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag); - } - - var isArray = Array.isArray; - - function isArrayLike(value) { - return value != null && isLength(value.length) && !isFunction(value); - } - - function isArrayLikeObject(value) { - return isObjectLike(value) && isArrayLike(value); - } - - var isBuffer = nativeIsBuffer || stubFalse; - - function isEmpty(value) { - if (isArrayLike(value) && (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || isBuffer(value) || isArguments(value))) { - return !value.length; - } - - var tag = getTag(value); - - if (tag == mapTag || tag == setTag) { - return !value.size; - } - - if (nonEnumShadows || isPrototype(value)) { - return !nativeKeys(value).length; - } - - for (var key in value) { - if (hasOwnProperty.call(value, key)) { - return false; - } - } - - return true; - } - - function isFunction(value) { - var tag = isObject(value) ? objectToString.call(value) : ''; - return tag == funcTag || tag == genTag; - } - - function isLength(value) { - return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; - } - - function isObject(value) { - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); - } - - function isObjectLike(value) { - return !!value && typeof value == 'object'; - } - - function stubFalse() { - return false; - } - - module.exports = isEmpty; -},758,[],"node_modules/lodash.isempty/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[1], "react-native"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/header/DummyNavButton.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var DummyNavButton = function DummyNavButton() { - return _react.default.createElement(_reactNative.View, { - style: styles.dummyNavBtn, - __source: { - fileName: _jsxFileName, - lineNumber: 4 - } - }); - }; - - var styles = _reactNative.StyleSheet.create({ - dummyNavBtn: { - height: 24, - width: 24 - } - }); - - var _default = DummyNavButton; - exports.default = _default; -},759,[122,1],"node_modules/react-native-elements/src/header/DummyNavButton.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "prop-types")); - - var _Icon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "../icons/Icon")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/header/NavButton.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - var NavButton = function NavButton(props) { - var icon = props.icon, - attributes = _objectWithoutProperties(props, ["icon"]); - - return _react.default.createElement(_Icon.default, _extends({}, attributes, { - name: icon, - __source: { - fileName: _jsxFileName, - lineNumber: 8 - } - })); - }; - - NavButton.propTypes = { - icon: _propTypes.default.string - }; - var _default = NavButton; - exports.default = _default; -},760,[122,143,698],"node_modules/react-native-elements/src/header/NavButton.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "prop-types")); - - var _Text = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "../text/Text")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/header/Title.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - var Title = function Title(props) { - var text = props.text, - attributes = _objectWithoutProperties(props, ["text"]); - - return _react.default.createElement(_Text.default, _extends({ - numberOfLines: 1 - }, attributes, { - __source: { - fileName: _jsxFileName, - lineNumber: 10 - } - }), text); - }; - - Title.propTypes = { - text: _propTypes.default.string - }; - var _default = Title; - exports.default = _default; -},761,[122,143,714],"node_modules/react-native-elements/src/header/Title.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "prop-types")); - - var _react = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "react")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _Text = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../text/Text")); - - var _fonts = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../config/fonts")); - - var _colors = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "../config/colors")); - - var _Button = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "../buttons/Button")); - - var _Icon = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[7], "../icons/Icon")); - - var _normalizeText = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[8], "../helpers/normalizeText")); - - var _ViewPropTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[9], "../config/ViewPropTypes")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-elements/src/pricing/PricingCard.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - var PricingCard = function PricingCard(props) { - var containerStyle = props.containerStyle, - wrapperStyle = props.wrapperStyle, - title = props.title, - price = props.price, - info = props.info, - button = props.button, - color = props.color, - titleFont = props.titleFont, - pricingFont = props.pricingFont, - infoFont = props.infoFont, - onButtonPress = props.onButtonPress, - attributes = _objectWithoutProperties(props, ["containerStyle", "wrapperStyle", "title", "price", "info", "button", "color", "titleFont", "pricingFont", "infoFont", "onButtonPress"]); - - return _react.default.createElement(_reactNative.View, _extends({}, attributes, { - style: [styles.container, containerStyle && containerStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 28 - } - }), _react.default.createElement(_reactNative.View, { - style: [styles.wrapper, wrapperStyle && wrapperStyle], - __source: { - fileName: _jsxFileName, - lineNumber: 32 - } - }, _react.default.createElement(_Text.default, { - style: [styles.pricingTitle, { - color: color - }, titleFont && { - fontFamily: titleFont - }], - __source: { - fileName: _jsxFileName, - lineNumber: 33 - } - }, title), _react.default.createElement(_Text.default, { - style: [styles.pricingPrice, pricingFont && { - fontFamily: pricingFont - }], - __source: { - fileName: _jsxFileName, - lineNumber: 42 - } - }, price), info.map(function (item, i) { - return _react.default.createElement(_Text.default, { - key: i, - style: [styles.pricingInfo, infoFont && { - fontFamily: infoFont - }], - __source: { - fileName: _jsxFileName, - lineNumber: 52 - } - }, item); - }), _react.default.createElement(_Button.default, { - title: button.title, - buttonStyle: [styles.button, button.buttonStyle, { - backgroundColor: color - }], - onPress: onButtonPress, - icon: _react.default.createElement(_Icon.default, { - name: button.icon, - size: 15, - color: "white", - __source: { - fileName: _jsxFileName, - lineNumber: 68 - } - }), - __source: { - fileName: _jsxFileName, - lineNumber: 60 - } - }))); - }; - - PricingCard.propTypes = { - containerStyle: _ViewPropTypes.default.style, - wrapperStyle: _ViewPropTypes.default.style, - title: _propTypes.default.string, - price: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]), - info: _propTypes.default.array, - button: _propTypes.default.object, - color: _propTypes.default.string, - onButtonPress: _propTypes.default.any, - titleFont: _propTypes.default.string, - pricingFont: _propTypes.default.string, - infoFont: _propTypes.default.string, - buttonFont: _propTypes.default.string - }; - PricingCard.defaultProps = { - color: _colors.default.primary - }; - - var styles = _reactNative.StyleSheet.create({ - container: _objectSpread({ - margin: 15, - marginBottom: 15, - backgroundColor: 'white', - borderColor: _colors.default.grey5, - borderWidth: 1, - padding: 15 - }, _reactNative.Platform.select({ - ios: { - shadowColor: 'rgba(0,0,0, .2)', - shadowOffset: { - height: 1, - width: 0 - }, - shadowOpacity: 0.5, - shadowRadius: 0.5 - }, - android: { - elevation: 1 - } - })), - wrapper: { - backgroundColor: 'transparent' - }, - pricingTitle: _objectSpread({ - textAlign: 'center', - color: _colors.default.primary, - fontSize: (0, _normalizeText.default)(30) - }, _reactNative.Platform.select({ - ios: { - fontWeight: '800' - }, - android: _objectSpread({}, _fonts.default.android.black) - })), - pricingPrice: _objectSpread({ - textAlign: 'center', - marginTop: 10, - marginBottom: 10, - fontSize: (0, _normalizeText.default)(40) - }, _reactNative.Platform.select({ - ios: { - fontWeight: '700' - }, - android: _objectSpread({}, _fonts.default.android.bold) - })), - pricingInfo: _objectSpread({ - textAlign: 'center', - marginTop: 5, - marginBottom: 5, - color: _colors.default.grey3 - }, _reactNative.Platform.select({ - ios: { - fontWeight: '600' - }, - android: _objectSpread({}, _fonts.default.android.bold) - })), - button: { - marginTop: 15, - marginBottom: 10 - } - }); - - var _default = PricingCard; - exports.default = _default; -},713,[143,122,1,714,741,715,696,698,717,720],"node_modules/react-native-elements/src/pricing/PricingCard.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../node_modules/react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "prop-types")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/js/components/TitleDivider.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - TitleDivider: { - displayName: "TitleDivider" - } - }; - - var _node_modulesReactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/js/components/TitleDivider.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _node_modulesReactTransformHmrLibIndexJs2(Component, id); - }; - } - - var TitleDivider = function (_Component) { - function TitleDivider() { - _classCallCheck(this, TitleDivider); - - return _possibleConstructorReturn(this, _getPrototypeOf(TitleDivider).apply(this, arguments)); - } - - _createClass(TitleDivider, [{ - key: "render", - value: function render() { - var text = this.props.text; - return _react.default.createElement(_reactNative.View, { - style: styles.titleContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 13 - } - }, _react.default.createElement(_reactNative.Text, { - style: styles.titleText, - __source: { - fileName: _jsxFileName, - lineNumber: 14 - } - }, text)); - } - }]); - - _inherits(TitleDivider, _Component); - - return TitleDivider; - }(_react.Component); - - TitleDivider.propTypes = { - text: _propTypes.default.string.isRequired - }; - TitleDivider = _wrapComponent("TitleDivider")(TitleDivider); - - var styles = _reactNative.StyleSheet.create({ - titleContainer: { - flex: 1, - height: 150, - backgroundColor: 'transparent', - justifyContent: 'center', - alignItems: 'center' - }, - titleText: { - color: '#000', - fontSize: 30, - fontWeight: '100' - } - }); - - var _default2 = TitleDivider; - exports.default = _default2; -},687,[122,161,1,143],"js/components/TitleDivider.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../node_modules/react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _LoginForm = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "../components/LoginForm")); - - var _StatusBar = _$$_REQUIRE(_dependencyMap[4], "../components/StatusBar"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/js/screens/Login.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - LoginScreen: { - displayName: "LoginScreen" - } - }; - - var _node_modulesReactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/js/screens/Login.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _node_modulesReactTransformHmrLibIndexJs2(Component, id); - }; - } - - var LoginScreen = function (_Component) { - function LoginScreen() { - _classCallCheck(this, LoginScreen); - - return _possibleConstructorReturn(this, _getPrototypeOf(LoginScreen).apply(this, arguments)); - } - - _createClass(LoginScreen, [{ - key: "render", - value: function render() { - return _react.default.createElement(_reactNative.ScrollView, { - style: styles.container, - __source: { - fileName: _jsxFileName, - lineNumber: 10 - } - }, _react.default.createElement(_LoginForm.default, { - __source: { - fileName: _jsxFileName, - lineNumber: 11 - } - })); - } - }]); - - _inherits(LoginScreen, _Component); - - return LoginScreen; - }(_react.Component); - - LoginScreen = _wrapComponent("LoginScreen")(LoginScreen); - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1, - backgroundColor: '#f7f7f7', - marginTop: _StatusBar.STATUS_BAR_HEIGHT, - paddingBottom: 40 - } - }); - - var _default2 = LoginScreen; - exports.default = _default2; -},514,[122,161,1,762,506],"js/screens/Login.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../node_modules/react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _reactNativeElements = _$$_REQUIRE(_dependencyMap[3], "react-native-elements"); - - var _MaterialCommunityIcons = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "react-native-vector-icons/MaterialCommunityIcons")); - - var _Constants = _$$_REQUIRE(_dependencyMap[5], "../config/Constants"); - - var _TitleDivider = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[6], "./TitleDivider")); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/js/components/LoginForm.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - var _components = { - LoginForm: { - displayName: "LoginForm" - } - }; - - var _node_modulesReactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/js/components/LoginForm.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _node_modulesReactTransformHmrLibIndexJs2(Component, id); - }; - } - - _reactNative.UIManager.setLayoutAnimationEnabledExperimental && _reactNative.UIManager.setLayoutAnimationEnabledExperimental(true); - - var TabSelector = function TabSelector(_ref) { - var selected = _ref.selected; - return _react.default.createElement(_reactNative.View, { - style: styles.selectorContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 26 - } - }, _react.default.createElement(_reactNative.View, { - style: selected && styles.selected, - __source: { - fileName: _jsxFileName, - lineNumber: 27 - } - })); - }; - - var LoginForm = function (_Component) { - function LoginForm(props) { - var _this; - - _classCallCheck(this, LoginForm); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(LoginForm).call(this, props)); - _this.state = { - email: '', - password: '', - selectedCategory: 0, - isLoading: false, - isEmailValid: true, - isPasswordValid: true, - isConfirmationValid: true - }; - _this.selectCategory = _this.selectCategory.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this.signUp = _this.signUp.bind(_assertThisInitialized(_assertThisInitialized(_this))); - return _this; - } - - _createClass(LoginForm, [{ - key: "selectCategory", - value: function selectCategory(selectedCategory) { - _reactNative.LayoutAnimation.easeInEaseOut(); - - this.setState({ - selectedCategory: selectedCategory, - isLoading: false - }); - } - }, { - key: "validateEmail", - value: function validateEmail(email) { - var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; - return re.test(email); - } - }, { - key: "login", - value: function login() { - var _this2 = this; - - var _this$state = this.state, - email = _this$state.email, - password = _this$state.password; - this.setState({ - isLoading: true - }); - setTimeout(function () { - _reactNative.LayoutAnimation.easeInEaseOut(); - - _this2.setState({ - isLoading: false, - isEmailValid: _this2.validateEmail(email) || _this2.emailInput.shake(), - isPasswordValid: password.length >= 8 || _this2.passwordInput.shake() - }); - - if (_this2.state.isEmailValid && _this2.state.isPasswordValid) { - _reactNative.Alert.alert('Success', 'You are logged in!', [{ - text: 'OK' - }], { - cancelable: false - }); - } - }, 1500); - } - }, { - key: "signUp", - value: function signUp() { - var _this3 = this; - - var _this$state2 = this.state, - email = _this$state2.email, - password = _this$state2.password, - passwordConfirmation = _this$state2.passwordConfirmation; - this.setState({ - isLoading: true - }); - setTimeout(function () { - _reactNative.LayoutAnimation.easeInEaseOut(); - - _this3.setState({ - isLoading: false, - isEmailValid: _this3.validateEmail(email) || _this3.emailInput.shake(), - isPasswordValid: password.length >= 8 || _this3.passwordInput.shake(), - isConfirmationValid: password == passwordConfirmation || _this3.confirmationInput.shake() - }); - - if (!_this3.state.isEmailValid || !_this3.state.isPasswordValid || !_this3.state.isConfirmationValid) { - _reactNative.Alert.alert('Failure', 'Some fields are not valid!', [{ - text: 'Try again' - }], { - cancelable: false - }); - } else { - _reactNative.Alert.alert('Signed Up!', 'You successfully signed up!', [{ - text: 'OK' - }], { - cancelable: false - }); - } - }, 1500); - } - }, { - key: "render", - value: function render() { - var _this4 = this; - - var _this$state3 = this.state, - selectedCategory = _this$state3.selectedCategory, - isLoading = _this$state3.isLoading, - isEmailValid = _this$state3.isEmailValid, - isPasswordValid = _this$state3.isPasswordValid, - isConfirmationValid = _this$state3.isConfirmationValid, - email = _this$state3.email, - password = _this$state3.password, - passwordConfirmation = _this$state3.passwordConfirmation; - var isLoginPage = selectedCategory === 0; - var isSignUpPage = selectedCategory === 1; - return _react.default.createElement(_reactNative.View, { - style: styles.contentContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 132 - } - }, _react.default.createElement(_reactNative.KeyboardAvoidingView, { - contentContainerStyle: styles.loginContainer, - behavior: "position", - __source: { - fileName: _jsxFileName, - lineNumber: 133 - } - }, _react.default.createElement(_TitleDivider.default, { - text: "Login / Sign up Form", - __source: { - fileName: _jsxFileName, - lineNumber: 134 - } - }), _react.default.createElement(_reactNative.View, { - style: styles.categoryContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 135 - } - }, _react.default.createElement(_reactNativeElements.Button, { - clear: true, - onPress: function onPress() { - return _this4.selectCategory(0); - }, - containerStyle: { - flex: 1 - }, - titleStyle: [styles.categoryText, isLoginPage && styles.selectedCategoryText], - title: 'Login', - __source: { - fileName: _jsxFileName, - lineNumber: 136 - } - }), _react.default.createElement(_reactNativeElements.Button, { - clear: true, - onPress: function onPress() { - return _this4.selectCategory(1); - }, - containerStyle: { - flex: 1 - }, - titleStyle: [styles.categoryText, isSignUpPage && styles.selectedCategoryText], - title: 'Sign up', - __source: { - fileName: _jsxFileName, - lineNumber: 143 - } - })), _react.default.createElement(_reactNative.View, { - style: styles.rowSelector, - __source: { - fileName: _jsxFileName, - lineNumber: 151 - } - }, _react.default.createElement(TabSelector, { - selected: isLoginPage, - __source: { - fileName: _jsxFileName, - lineNumber: 152 - } - }), _react.default.createElement(TabSelector, { - selected: isSignUpPage, - __source: { - fileName: _jsxFileName, - lineNumber: 153 - } - })), _react.default.createElement(_reactNative.View, { - style: styles.formContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 155 - } - }, _react.default.createElement(_reactNativeElements.Input, { - leftIcon: _react.default.createElement(_MaterialCommunityIcons.default, { - name: "email-outline", - color: "#ea5906", - size: 25, - style: { - backgroundColor: 'transparent' - }, - __source: { - fileName: _jsxFileName, - lineNumber: 158 - } - }), - value: email, - keyboardAppearance: "light", - autoFocus: false, - autoCapitalize: "none", - autoCorrect: false, - keyboardType: "email-address", - returnKeyType: "next", - inputStyle: { - marginLeft: 10 - }, - placeholder: 'Email', - inputContainerStyle: { - borderBottomColor: '#ea5906' - }, - ref: function ref(input) { - return _this4.emailInput = input; - }, - onSubmitEditing: function onSubmitEditing() { - return _this4.passwordInput.focus(); - }, - onChangeText: function onChangeText(email) { - return _this4.setState({ - email: email - }); - }, - errorMessage: isEmailValid ? null : 'Please enter a valid email address', - __source: { - fileName: _jsxFileName, - lineNumber: 156 - } - }), _react.default.createElement(_reactNativeElements.Input, { - leftIcon: _react.default.createElement(_MaterialCommunityIcons.default, { - name: "lock-outline", - color: "#ea5906", - size: 25, - style: { - backgroundColor: 'transparent' - }, - __source: { - fileName: _jsxFileName, - lineNumber: 182 - } - }), - value: password, - keyboardAppearance: "light", - autoCapitalize: "none", - autoCorrect: false, - secureTextEntry: true, - returnKeyType: isSignUpPage ? 'next' : 'done', - blurOnSubmit: true, - containerStyle: { - marginTop: 16 - }, - inputContainerStyle: { - borderBottomColor: '#ea5906' - }, - inputStyle: { - marginLeft: 10 - }, - placeholder: 'Password', - ref: function ref(input) { - return _this4.passwordInput = input; - }, - onSubmitEditing: function onSubmitEditing() { - return isSignUpPage ? _this4.confirmationInput.focus() : _this4.login(); - }, - onChangeText: function onChangeText(password) { - return _this4.setState({ - password: password - }); - }, - errorMessage: isPasswordValid ? null : 'Please enter at least 8 characters', - __source: { - fileName: _jsxFileName, - lineNumber: 180 - } - }), isSignUpPage && _react.default.createElement(_reactNativeElements.Input, { - leftIcon: _react.default.createElement(_MaterialCommunityIcons.default, { - name: "lock-outline", - color: "#ea5906", - size: 25, - style: { - backgroundColor: 'transparent' - }, - __source: { - fileName: _jsxFileName, - lineNumber: 208 - } - }), - value: passwordConfirmation, - secureTextEntry: true, - keyboardAppearance: "light", - autoCapitalize: "none", - autoCorrect: false, - keyboardType: "default", - returnKeyType: 'done', - blurOnSubmit: true, - containerStyle: { - marginTop: 16 - }, - inputContainerStyle: { - borderBottomColor: '#ea5906' - }, - inputStyle: { - marginLeft: 10 - }, - placeholder: 'Confirm password', - ref: function ref(input) { - return _this4.confirmationInput = input; - }, - onSubmitEditing: this.signUp, - onChangeText: function onChangeText(passwordConfirmation) { - return _this4.setState({ - passwordConfirmation: passwordConfirmation - }); - }, - errorMessage: isConfirmationValid ? null : 'Please enter the same password', - __source: { - fileName: _jsxFileName, - lineNumber: 206 - } - }), _react.default.createElement(_reactNativeElements.Button, { - buttonStyle: styles.button, - containerStyle: { - marginTop: 32, - flex: 0 - }, - title: isLoginPage ? 'LOGIN' : 'SIGN UP', - onPress: isLoginPage ? this.login : this.signUp, - titleStyle: styles.buttonText, - loading: isLoading, - disabled: isLoading, - __source: { - fileName: _jsxFileName, - lineNumber: 232 - } - })))); - } - }]); - - _inherits(LoginForm, _Component); - - return LoginForm; - }(_react.Component); - - LoginForm = _wrapComponent("LoginForm")(LoginForm); - - var styles = _reactNative.StyleSheet.create({ - contentContainer: { - alignItems: 'center', - justifyContent: 'center' - }, - titleContainer: { - height: 150, - backgroundColor: 'transparent', - justifyContent: 'center' - }, - titleText: { - color: '#000', - fontSize: 30, - fontWeight: '100' - }, - categoryContainer: { - flexDirection: 'row' - }, - categoryText: { - textAlign: 'center', - color: '#000', - fontSize: 24, - backgroundColor: 'transparent', - opacity: 0.54 - }, - selectedCategoryText: { - opacity: 1 - }, - rowSelector: { - height: 20, - flexDirection: 'row', - alignItems: 'center' - }, - selectorContainer: { - flex: 1, - alignItems: 'center' - }, - selected: { - position: 'absolute', - borderRadius: 50, - height: 0, - width: 0, - top: -5, - borderRightWidth: 70, - borderBottomWidth: 70, - borderColor: '#ea5906', - backgroundColor: '#ea5906' - }, - loginContainer: { - alignItems: 'center', - justifyContent: 'center' - }, - formContainer: { - backgroundColor: '#f7f7f7', - width: _Constants.WINDOW_WIDTH - 30, - paddingTop: 32, - paddingBottom: 32, - alignItems: 'center', - borderColor: '#ea5906', - borderWidth: 5 - }, - loginText: { - fontSize: 16, - fontWeight: 'bold', - color: '#000' - }, - buttonText: { - fontSize: 16, - color: '#ea5906' - }, - button: { - height: 50, - width: 200, - backgroundColor: '#000', - borderColor: '#ea5906', - borderWidth: 5 - } - }); - - var _default2 = LoginForm; - exports.default = _default2; -},762,[122,161,1,686,510,508,687],"js/components/LoginForm.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../node_modules/react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _StatusBar = _$$_REQUIRE(_dependencyMap[3], "../components/StatusBar"); - - var _TitleDivider = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "../components/TitleDivider")); - - var _reactNativeSnapCarousel = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5], "react-native-snap-carousel")); - - var _SliderEntry = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6], "../components/SliderEntry")); - - var _Constants = _$$_REQUIRE(_dependencyMap[7], "../config/Constants"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/js/screens/Swipe.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - SwipeScreen: { - displayName: "SwipeScreen" - } - }; - - var _node_modulesReactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/js/screens/Swipe.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _node_modulesReactTransformHmrLibIndexJs2(Component, id); - }; - } - - var ENTRIES1 = [{ - title: 'Fully Open Source', - subtitle: 'WebdriverIO is fully open source and can be found on GitHub', - icon: 'github-circle', - link: 'https://github.com/webdriverio/webdriverio/' - }, { - title: 'Creat community', - subtitle: 'WebdriverIO has a great community that supports all members.', - icon: 'wechat', - link: 'https://gitter.im/webdriverio/webdriverio' - }, { - title: 'JS.Foundation', - subtitle: 'The JS Foundation is host to projects that span the entire JavaScript ecosystem.', - icon: 'language-javascript', - link: 'https://js.foundation/community/projects' - }, { - title: 'Support Videos', - subtitle: 'The community around WebdriverIO is actively speaking on various user groups or conferences about specific topics around automated testing with WebdriverIO.', - icon: 'youtube', - link: 'https://www.youtube.com/user/medigerati/videos' - }, { - title: 'Extendable', - subtitle: 'Adding helper functions, or more complicated sets and combinations of existing commands is simple and really useful', - icon: 'engine-outline', - link: 'http://webdriver.io/guide/services/sauce.html' - }, { - title: 'Compatible', - subtitle: 'WebdriverIO works in combination with most of the TDD and BDD test frameworks in the JavaScript world', - icon: 'arrow-decision-outline', - link: 'http://webdriver.io/guide/testrunner/frameworks.html' - }]; - - var SwipeScreen = function (_Component) { - function SwipeScreen(props) { - var _this; - - _classCallCheck(this, SwipeScreen); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(SwipeScreen).call(this, props)); - _this.state = { - slider1ActiveSlide: 0 - }; - return _this; - } - - _createClass(SwipeScreen, [{ - key: "renderItem", - value: function renderItem(_ref) { - var item = _ref.item; - return _react.default.createElement(_SliderEntry.default, { - data: item, - __source: { - fileName: _jsxFileName, - lineNumber: 64 - } - }); - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var slider1ActiveSlide = this.state.slider1ActiveSlide; - return _react.default.createElement(_reactNative.View, { - style: styles.container, - __source: { - fileName: _jsxFileName, - lineNumber: 74 - } - }, _react.default.createElement(_TitleDivider.default, { - text: "Swipe horizontal", - __source: { - fileName: _jsxFileName, - lineNumber: 75 - } - }), _react.default.createElement(_reactNative.View, { - __source: { - fileName: _jsxFileName, - lineNumber: 76 - } - }, _react.default.createElement(_reactNativeSnapCarousel.default, { - ref: function ref(c) { - return _this2._slider1Ref = c; - }, - data: ENTRIES1, - renderItem: this.renderItem, - sliderWidth: _Constants.WINDOW_WIDTH, - itemWidth: _SliderEntry.SLIDE_WIDTH, - inactiveSlideScale: 0.9, - inactiveSlideOpacity: 0.7, - containerCustomStyle: styles.sliderContainer, - contentContainerCustomStyle: styles.sliderContentContainer, - onSnapToItem: function onSnapToItem(index) { - return _this2.setState({ - slider1ActiveSlide: index - }); - }, - __source: { - fileName: _jsxFileName, - lineNumber: 77 - } - }), _react.default.createElement(_reactNativeSnapCarousel.Pagination, { - dotsLength: ENTRIES1.length, - activeDotIndex: slider1ActiveSlide, - containerStyle: styles.paginationContainer, - dotColor: '#ea5906', - dotStyle: styles.paginationDot, - inactiveDotColor: '#ea5906', - inactiveDotOpacity: 0.4, - inactiveDotScale: 0.6, - carouselRef: this._slider1Ref, - tappableDots: !!this._slider1Ref, - __source: { - fileName: _jsxFileName, - lineNumber: 89 - } - }))); - } - }]); - - _inherits(SwipeScreen, _Component); - - return SwipeScreen; - }(_react.Component); - - SwipeScreen = _wrapComponent("SwipeScreen")(SwipeScreen); - - var styles = _reactNative.StyleSheet.create({ - container: { - flex: 1, - backgroundColor: '#f7f7f7', - marginTop: _StatusBar.STATUS_BAR_HEIGHT, - paddingBottom: 40 - }, - sliderContainer: { - overflow: 'visible' - }, - sliderContentContainer: { - paddingVertical: 10 - }, - paginationContainer: { - paddingVertical: 8 - }, - paginationDot: { - width: 10, - height: 10, - borderRadius: 4, - marginHorizontal: 8 - } - }); - - var _default2 = SwipeScreen; - exports.default = _default2; -},515,[122,161,1,506,687,763,764,508],"js/screens/Swipe.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.defineProperty(exports, "default", { - enumerable: true, - get: function get() { - return _Carousel.default; - } - }); - Object.defineProperty(exports, "Pagination", { - enumerable: true, - get: function get() { - return _Pagination.default; - } - }); - Object.defineProperty(exports, "ParallaxImage", { - enumerable: true, - get: function get() { - return _ParallaxImage.default; - } - }); - Object.defineProperty(exports, "getInputRangeFromIndexes", { - enumerable: true, - get: function get() { - return _animations.getInputRangeFromIndexes; - } - }); - - var _Carousel = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[0], "./carousel/Carousel")); - - var _Pagination = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./pagination/Pagination")); - - var _ParallaxImage = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "./parallaximage/ParallaxImage")); - - var _animations = _$$_REQUIRE(_dependencyMap[3], "./utils/animations"); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -},763,[765,766,767,768],"node_modules/react-native-snap-carousel/src/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "prop-types")); - - var _reactAddonsShallowCompare = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "react-addons-shallow-compare")); - - var _animations = _$$_REQUIRE(_dependencyMap[5], "../utils/animations"); - - var _class, - _temp, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-snap-carousel/src/carousel/Carousel.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - - function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - - function _iterableToArray(iter) { if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - - function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - var _components = { - Carousel: { - displayName: "Carousel" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index2.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-snap-carousel/src/carousel/Carousel.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var IS_IOS = _reactNative.Platform.OS === 'ios'; - var AnimatedFlatList = _reactNative.FlatList ? _reactNative.Animated.createAnimatedComponent(_reactNative.FlatList) : null; - - var AnimatedScrollView = _reactNative.Animated.createAnimatedComponent(_reactNative.ScrollView); - - var IS_RTL = _reactNative.I18nManager.isRTL; - - var Carousel = _wrapComponent("Carousel")((_temp = _class = function (_Component) { - function Carousel(props) { - var _this; - - _classCallCheck(this, Carousel); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(Carousel).call(this, props)); - _this.state = { - hideCarousel: true, - interpolators: [] - }; - - var initialActiveItem = _this._getFirstItem(props.firstItem); - - _this._activeItem = initialActiveItem; - _this._previousActiveItem = initialActiveItem; - _this._previousFirstItem = initialActiveItem; - _this._previousItemsLength = initialActiveItem; - _this._mounted = false; - _this._positions = []; - _this._currentContentOffset = 0; - _this._canFireBeforeCallback = false; - _this._canFireCallback = false; - _this._scrollOffsetRef = null; - _this._onScrollTriggered = true; - _this._lastScrollDate = 0; - _this._scrollEnabled = props.scrollEnabled === false ? false : true; - _this._initPositionsAndInterpolators = _this._initPositionsAndInterpolators.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this._renderItem = _this._renderItem.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this._onSnap = _this._onSnap.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this._onLayout = _this._onLayout.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this._onScroll = _this._onScroll.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this._onScrollBeginDrag = props.enableSnap ? _this._onScrollBeginDrag.bind(_assertThisInitialized(_assertThisInitialized(_this))) : undefined; - _this._onScrollEnd = props.enableSnap || props.autoplay ? _this._onScrollEnd.bind(_assertThisInitialized(_assertThisInitialized(_this))) : undefined; - _this._onScrollEndDrag = !props.enableMomentum ? _this._onScrollEndDrag.bind(_assertThisInitialized(_assertThisInitialized(_this))) : undefined; - _this._onMomentumScrollEnd = props.enableMomentum ? _this._onMomentumScrollEnd.bind(_assertThisInitialized(_assertThisInitialized(_this))) : undefined; - _this._onTouchStart = _this._onTouchStart.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this._onTouchRelease = _this._onTouchRelease.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this._getKeyExtractor = _this._getKeyExtractor.bind(_assertThisInitialized(_assertThisInitialized(_this))); - var scrollEventConfig = { - listener: _this._onScroll, - useNativeDriver: true - }; - _this._scrollPos = new _reactNative.Animated.Value(0); - _this._onScrollHandler = props.vertical ? _reactNative.Animated.event([{ - nativeEvent: { - contentOffset: { - y: _this._scrollPos - } - } - }], scrollEventConfig) : _reactNative.Animated.event([{ - nativeEvent: { - contentOffset: { - x: _this._scrollPos - } - } - }], scrollEventConfig); - _this._ignoreNextMomentum = false; - - if (!_reactNative.ViewPropTypes) { - console.warn('react-native-snap-carousel: It is recommended to use at least version 0.44 of React Native with the plugin'); - } - - if (!props.vertical && (!props.sliderWidth || !props.itemWidth)) { - console.warn('react-native-snap-carousel: You need to specify both `sliderWidth` and `itemWidth` for horizontal carousels'); - } - - if (props.vertical && (!props.sliderHeight || !props.itemHeight)) { - console.warn('react-native-snap-carousel: You need to specify both `sliderHeight` and `itemHeight` for vertical carousels'); - } - - if (props.apparitionDelay && !IS_IOS && !props.useScrollView) { - console.warn('react-native-snap-carousel: Using `apparitionDelay` on Android is not recommended since it can lead to rendering issues'); - } - - if (props.customAnimationType || props.customAnimationOptions) { - console.warn('react-native-snap-carousel: Props `customAnimationType` and `customAnimationOptions` have been renamed to `activeAnimationType` and `activeAnimationOptions`'); - } - - if (props.onScrollViewScroll) { - console.warn('react-native-snap-carousel: Prop `onScrollViewScroll` has been removed. Use `onScroll` instead'); - } - - return _this; - } - - _createClass(Carousel, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - var _this$props = this.props, - apparitionDelay = _this$props.apparitionDelay, - autoplay = _this$props.autoplay, - firstItem = _this$props.firstItem; - - var _firstItem = this._getFirstItem(firstItem); - - var apparitionCallback = function apparitionCallback() { - _this2.setState({ - hideCarousel: false - }); - - if (autoplay) { - _this2.startAutoplay(); - } - }; - - this._mounted = true; - - this._initPositionsAndInterpolators(); - - requestAnimationFrame(function () { - if (!_this2._mounted) { - return; - } - - _this2._snapToItem(_firstItem, false, false, true, false); - - _this2._hackActiveSlideAnimation(_firstItem, 'start', true); - - if (apparitionDelay) { - _this2._apparitionTimeout = setTimeout(function () { - apparitionCallback(); - }, apparitionDelay); - } else { - apparitionCallback(); - } - }); - } - }, { - key: "shouldComponentUpdate", - value: function shouldComponentUpdate(nextProps, nextState) { - if (this.props.shouldOptimizeUpdates === false) { - return true; - } else { - return (0, _reactAddonsShallowCompare.default)(this, nextProps, nextState); - } - } - }, { - key: "componentWillReceiveProps", - value: function componentWillReceiveProps(nextProps) { - var interpolators = this.state.interpolators; - var firstItem = nextProps.firstItem, - itemHeight = nextProps.itemHeight, - itemWidth = nextProps.itemWidth, - scrollEnabled = nextProps.scrollEnabled, - sliderHeight = nextProps.sliderHeight, - sliderWidth = nextProps.sliderWidth; - - var itemsLength = this._getCustomDataLength(nextProps); - - if (!itemsLength) { - return; - } - - var nextFirstItem = this._getFirstItem(firstItem, nextProps); - - var nextActiveItem = this._activeItem || this._activeItem === 0 ? this._activeItem : nextFirstItem; - var hasNewSliderWidth = sliderWidth && sliderWidth !== this.props.sliderWidth; - var hasNewSliderHeight = sliderHeight && sliderHeight !== this.props.sliderHeight; - var hasNewItemWidth = itemWidth && itemWidth !== this.props.itemWidth; - var hasNewItemHeight = itemHeight && itemHeight !== this.props.itemHeight; - var hasNewScrollEnabled = scrollEnabled !== this.props.scrollEnabled; - - if (nextActiveItem > itemsLength - 1) { - nextActiveItem = itemsLength - 1; - } - - if (hasNewScrollEnabled) { - this._setScrollEnabled(scrollEnabled); - } - - if (interpolators.length !== itemsLength || hasNewSliderWidth || hasNewSliderHeight || hasNewItemWidth || hasNewItemHeight) { - this._activeItem = nextActiveItem; - this._previousItemsLength = itemsLength; - - this._initPositionsAndInterpolators(nextProps); - - if (this._previousItemsLength > itemsLength) { - this._hackActiveSlideAnimation(nextActiveItem, null, true); - } - - if (hasNewSliderWidth || hasNewSliderHeight || hasNewItemWidth || hasNewItemHeight) { - this._snapToItem(nextActiveItem, false, false, false, false); - } - } else if (nextFirstItem !== this._previousFirstItem && nextFirstItem !== this._activeItem) { - this._activeItem = nextFirstItem; - this._previousFirstItem = nextFirstItem; - - this._snapToItem(nextFirstItem, true, true, false, false); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this._mounted = false; - this.stopAutoplay(); - clearTimeout(this._apparitionTimeout); - clearTimeout(this._hackSlideAnimationTimeout); - clearTimeout(this._enableAutoplayTimeout); - clearTimeout(this._autoplayTimeout); - clearTimeout(this._snapNoMomentumTimeout); - clearTimeout(this._edgeItemTimeout); - clearTimeout(this._lockScrollTimeout); - } - }, { - key: "_needsScrollView", - value: function _needsScrollView() { - var useScrollView = this.props.useScrollView; - return useScrollView || !AnimatedFlatList || this._shouldUseStackLayout() || this._shouldUseTinderLayout(); - } - }, { - key: "_needsRTLAdaptations", - value: function _needsRTLAdaptations() { - var vertical = this.props.vertical; - return IS_RTL && !IS_IOS && !vertical; - } - }, { - key: "_canLockScroll", - value: function _canLockScroll() { - var _this$props2 = this.props, - enableMomentum = _this$props2.enableMomentum, - lockScrollWhileSnapping = _this$props2.lockScrollWhileSnapping; - return !enableMomentum && lockScrollWhileSnapping; - } - }, { - key: "_enableLoop", - value: function _enableLoop() { - var _this$props3 = this.props, - data = _this$props3.data, - enableSnap = _this$props3.enableSnap, - loop = _this$props3.loop; - return enableSnap && loop && data.length && data.length > 1; - } - }, { - key: "_shouldAnimateSlides", - value: function _shouldAnimateSlides() { - var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props; - var inactiveSlideOpacity = props.inactiveSlideOpacity, - inactiveSlideScale = props.inactiveSlideScale, - scrollInterpolator = props.scrollInterpolator, - slideInterpolatedStyle = props.slideInterpolatedStyle; - return inactiveSlideOpacity < 1 || inactiveSlideScale < 1 || !!scrollInterpolator || !!slideInterpolatedStyle || this._shouldUseShiftLayout() || this._shouldUseStackLayout() || this._shouldUseTinderLayout(); - } - }, { - key: "_shouldUseCustomAnimation", - value: function _shouldUseCustomAnimation() { - var activeAnimationOptions = this.props.activeAnimationOptions; - return !!activeAnimationOptions && !this._shouldUseStackLayout() && !this._shouldUseTinderLayout(); - } - }, { - key: "_shouldUseShiftLayout", - value: function _shouldUseShiftLayout() { - var _this$props4 = this.props, - inactiveSlideShift = _this$props4.inactiveSlideShift, - layout = _this$props4.layout; - return layout === 'default' && inactiveSlideShift !== 0; - } - }, { - key: "_shouldUseStackLayout", - value: function _shouldUseStackLayout() { - return this.props.layout === 'stack'; - } - }, { - key: "_shouldUseTinderLayout", - value: function _shouldUseTinderLayout() { - return this.props.layout === 'tinder'; - } - }, { - key: "_getCustomData", - value: function _getCustomData() { - var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props; - var data = props.data, - loopClonesPerSide = props.loopClonesPerSide; - var dataLength = data.length; - - if (!data || !dataLength) { - return []; - } - - if (!this._enableLoop()) { - return data; - } - - var previousItems = []; - var nextItems = []; - - if (loopClonesPerSide > dataLength) { - var _previousItems2, _nextItems2; - - var dataMultiplier = Math.floor(loopClonesPerSide / dataLength); - var remainder = loopClonesPerSide % dataLength; - - for (var i = 0; i < dataMultiplier; i++) { - var _previousItems, _nextItems; - - (_previousItems = previousItems).push.apply(_previousItems, _toConsumableArray(data)); - - (_nextItems = nextItems).push.apply(_nextItems, _toConsumableArray(data)); - } - - (_previousItems2 = previousItems).unshift.apply(_previousItems2, _toConsumableArray(data.slice(-remainder))); - - (_nextItems2 = nextItems).push.apply(_nextItems2, _toConsumableArray(data.slice(0, remainder))); - } else { - previousItems = data.slice(-loopClonesPerSide); - nextItems = data.slice(0, loopClonesPerSide); - } - - return previousItems.concat(data, nextItems); - } - }, { - key: "_getCustomDataLength", - value: function _getCustomDataLength() { - var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props; - var data = props.data, - loopClonesPerSide = props.loopClonesPerSide; - var dataLength = data && data.length; - - if (!dataLength) { - return 0; - } - - return this._enableLoop() ? dataLength + 2 * loopClonesPerSide : dataLength; - } - }, { - key: "_getCustomIndex", - value: function _getCustomIndex(index) { - var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.props; - - var itemsLength = this._getCustomDataLength(props); - - if (!itemsLength || !index && index !== 0) { - return 0; - } - - return this._needsRTLAdaptations() ? itemsLength - index - 1 : index; - } - }, { - key: "_getDataIndex", - value: function _getDataIndex(index) { - var _this$props5 = this.props, - data = _this$props5.data, - loopClonesPerSide = _this$props5.loopClonesPerSide; - var dataLength = data && data.length; - - if (!this._enableLoop() || !dataLength) { - return index; - } - - if (index >= dataLength + loopClonesPerSide) { - return loopClonesPerSide > dataLength ? (index - loopClonesPerSide) % dataLength : index - dataLength - loopClonesPerSide; - } else if (index < loopClonesPerSide) { - if (loopClonesPerSide > dataLength) { - var baseDataIndexes = []; - var dataIndexes = []; - var dataMultiplier = Math.floor(loopClonesPerSide / dataLength); - var remainder = loopClonesPerSide % dataLength; - - for (var i = 0; i < dataLength; i++) { - baseDataIndexes.push(i); - } - - for (var j = 0; j < dataMultiplier; j++) { - dataIndexes.push.apply(dataIndexes, baseDataIndexes); - } - - dataIndexes.unshift.apply(dataIndexes, _toConsumableArray(baseDataIndexes.slice(-remainder))); - return dataIndexes[index]; - } else { - return index + dataLength - loopClonesPerSide; - } - } else { - return index - loopClonesPerSide; - } - } - }, { - key: "_getPositionIndex", - value: function _getPositionIndex(index) { - var _this$props6 = this.props, - loop = _this$props6.loop, - loopClonesPerSide = _this$props6.loopClonesPerSide; - return loop ? index + loopClonesPerSide : index; - } - }, { - key: "_getFirstItem", - value: function _getFirstItem(index) { - var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.props; - var loopClonesPerSide = props.loopClonesPerSide; - - var itemsLength = this._getCustomDataLength(props); - - if (!itemsLength || index > itemsLength - 1 || index < 0) { - return 0; - } - - return this._enableLoop() ? index + loopClonesPerSide : index; - } - }, { - key: "_getWrappedRef", - value: function _getWrappedRef() { - return this._carouselRef && this._carouselRef.getNode && this._carouselRef.getNode(); - } - }, { - key: "_getScrollEnabled", - value: function _getScrollEnabled() { - return this._scrollEnabled; - } - }, { - key: "_setScrollEnabled", - value: function _setScrollEnabled() { - var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - var scrollEnabled = this.props.scrollEnabled; - - var wrappedRef = this._getWrappedRef(); - - if (!wrappedRef || !wrappedRef.setNativeProps) { - return; - } - - wrappedRef.setNativeProps({ - scrollEnabled: value - }); - this._scrollEnabled = value; - } - }, { - key: "_getKeyExtractor", - value: function _getKeyExtractor(item, index) { - return this._needsScrollView() ? "scrollview-item-" + index : "flatlist-item-" + index; - } - }, { - key: "_getScrollOffset", - value: function _getScrollOffset(event) { - var vertical = this.props.vertical; - return event && event.nativeEvent && event.nativeEvent.contentOffset && event.nativeEvent.contentOffset[vertical ? 'y' : 'x'] || 0; - } - }, { - key: "_getContainerInnerMargin", - value: function _getContainerInnerMargin() { - var opposite = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - var _this$props7 = this.props, - sliderWidth = _this$props7.sliderWidth, - sliderHeight = _this$props7.sliderHeight, - itemWidth = _this$props7.itemWidth, - itemHeight = _this$props7.itemHeight, - vertical = _this$props7.vertical, - activeSlideAlignment = _this$props7.activeSlideAlignment; - - if (activeSlideAlignment === 'start' && !opposite || activeSlideAlignment === 'end' && opposite) { - return 0; - } else if (activeSlideAlignment === 'end' && !opposite || activeSlideAlignment === 'start' && opposite) { - return vertical ? sliderHeight - itemHeight : sliderWidth - itemWidth; - } else { - return vertical ? (sliderHeight - itemHeight) / 2 : (sliderWidth - itemWidth) / 2; - } - } - }, { - key: "_getViewportOffet", - value: function _getViewportOffet() { - var _this$props8 = this.props, - sliderWidth = _this$props8.sliderWidth, - sliderHeight = _this$props8.sliderHeight, - itemWidth = _this$props8.itemWidth, - itemHeight = _this$props8.itemHeight, - vertical = _this$props8.vertical, - activeSlideAlignment = _this$props8.activeSlideAlignment; - - if (activeSlideAlignment === 'start') { - return vertical ? itemHeight / 2 : itemWidth / 2; - } else if (activeSlideAlignment === 'end') { - return vertical ? sliderHeight - itemHeight / 2 : sliderWidth - itemWidth / 2; - } else { - return vertical ? sliderHeight / 2 : sliderWidth / 2; - } - } - }, { - key: "_getCenter", - value: function _getCenter(offset) { - return offset + this._getViewportOffet() - this._getContainerInnerMargin(); - } - }, { - key: "_getActiveItem", - value: function _getActiveItem(offset) { - var _this$props9 = this.props, - activeSlideOffset = _this$props9.activeSlideOffset, - swipeThreshold = _this$props9.swipeThreshold; - - var center = this._getCenter(offset); - - var centerOffset = activeSlideOffset || swipeThreshold; - - for (var i = 0; i < this._positions.length; i++) { - var _this$_positions$i = this._positions[i], - start = _this$_positions$i.start, - end = _this$_positions$i.end; - - if (center + centerOffset >= start && center - centerOffset <= end) { - return i; - } - } - - var lastIndex = this._positions.length - 1; - - if (this._positions[lastIndex] && center - centerOffset > this._positions[lastIndex].end) { - return lastIndex; - } - - return 0; - } - }, { - key: "_initPositionsAndInterpolators", - value: function _initPositionsAndInterpolators() { - var _this3 = this; - - var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props; - var data = props.data, - itemWidth = props.itemWidth, - itemHeight = props.itemHeight, - scrollInterpolator = props.scrollInterpolator, - vertical = props.vertical; - var sizeRef = vertical ? itemHeight : itemWidth; - - if (!data.length) { - return; - } - - var interpolators = []; - this._positions = []; - - this._getCustomData(props).forEach(function (itemData, index) { - var _index = _this3._getCustomIndex(index, props); - - var animatedValue; - _this3._positions[index] = { - start: index * sizeRef, - end: index * sizeRef + sizeRef - }; - - if (!_this3._shouldAnimateSlides(props)) { - animatedValue = 1; - } else if (_this3._shouldUseCustomAnimation()) { - animatedValue = new _reactNative.Animated.Value(_index === _this3._activeItem ? 1 : 0); - } else { - var interpolator; - - if (scrollInterpolator) { - interpolator = scrollInterpolator(_index, props); - } else if (_this3._shouldUseStackLayout()) { - interpolator = (0, _animations.stackScrollInterpolator)(_index, props); - } else if (_this3._shouldUseTinderLayout()) { - interpolator = (0, _animations.tinderScrollInterpolator)(_index, props); - } - - if (!interpolator || !interpolator.inputRange || !interpolator.outputRange) { - interpolator = (0, _animations.defaultScrollInterpolator)(_index, props); - } - - animatedValue = _this3._scrollPos.interpolate(_objectSpread({}, interpolator, { - extrapolate: 'clamp' - })); - } - - interpolators.push(animatedValue); - }); - - this.setState({ - interpolators: interpolators - }); - } - }, { - key: "_getSlideAnimation", - value: function _getSlideAnimation(index, toValue) { - var interpolators = this.state.interpolators; - var _this$props10 = this.props, - activeAnimationType = _this$props10.activeAnimationType, - activeAnimationOptions = _this$props10.activeAnimationOptions; - var animatedValue = interpolators && interpolators[index]; - - if (!animatedValue && animatedValue !== 0) { - return false; - } - - var animationCommonOptions = _objectSpread({ - isInteraction: false, - useNativeDriver: true - }, activeAnimationOptions, { - toValue: toValue - }); - - return _reactNative.Animated.parallel([_reactNative.Animated['timing'](animatedValue, _objectSpread({}, animationCommonOptions, { - easing: _reactNative.Easing.linear - })), _reactNative.Animated[activeAnimationType](animatedValue, _objectSpread({}, animationCommonOptions))]); - } - }, { - key: "_playCustomSlideAnimation", - value: function _playCustomSlideAnimation(current, next) { - var interpolators = this.state.interpolators; - - var itemsLength = this._getCustomDataLength(); - - var _currentIndex = this._getCustomIndex(current); - - var _currentDataIndex = this._getDataIndex(_currentIndex); - - var _nextIndex = this._getCustomIndex(next); - - var _nextDataIndex = this._getDataIndex(_nextIndex); - - var animations = []; - - if (this._enableLoop()) { - for (var i = 0; i < itemsLength; i++) { - if (this._getDataIndex(i) === _currentDataIndex && interpolators[i]) { - animations.push(this._getSlideAnimation(i, 0)); - } else if (this._getDataIndex(i) === _nextDataIndex && interpolators[i]) { - animations.push(this._getSlideAnimation(i, 1)); - } - } - } else { - if (interpolators[current]) { - animations.push(this._getSlideAnimation(current, 0)); - } - - if (interpolators[next]) { - animations.push(this._getSlideAnimation(next, 1)); - } - } - - _reactNative.Animated.parallel(animations, { - stopTogether: false - }).start(); - } - }, { - key: "_hackActiveSlideAnimation", - value: function _hackActiveSlideAnimation(index, goTo) { - var _this4 = this; - - var force = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - var data = this.props.data; - - if (!this._mounted || !this._carouselRef || !this._positions[index] || !force && this._enableLoop()) { - return; - } - - var offset = this._positions[index] && this._positions[index].start; - - if (!offset && offset !== 0) { - return; - } - - var itemsLength = data && data.length; - var direction = goTo || itemsLength === 1 ? 'start' : 'end'; - - this._scrollTo(offset + (direction === 'start' ? -1 : 1), false); - - clearTimeout(this._hackSlideAnimationTimeout); - this._hackSlideAnimationTimeout = setTimeout(function () { - _this4._scrollTo(offset, false); - }, 50); - } - }, { - key: "_lockScroll", - value: function _lockScroll() { - var _this5 = this; - - var lockScrollTimeoutDuration = this.props.lockScrollTimeoutDuration; - clearTimeout(this._lockScrollTimeout); - this._lockScrollTimeout = setTimeout(function () { - _this5._releaseScroll(); - }, lockScrollTimeoutDuration); - - this._setScrollEnabled(false); - } - }, { - key: "_releaseScroll", - value: function _releaseScroll() { - clearTimeout(this._lockScrollTimeout); - - this._setScrollEnabled(true); - } - }, { - key: "_repositionScroll", - value: function _repositionScroll(index) { - var _this$props11 = this.props, - data = _this$props11.data, - loopClonesPerSide = _this$props11.loopClonesPerSide; - var dataLength = data && data.length; - - if (!this._enableLoop() || !dataLength || index >= loopClonesPerSide && index < dataLength + loopClonesPerSide) { - return; - } - - var repositionTo = index; - - if (index >= dataLength + loopClonesPerSide) { - repositionTo = index - dataLength; - } else if (index < loopClonesPerSide) { - repositionTo = index + dataLength; - } - - this._snapToItem(repositionTo, false, false, false, false); - } - }, { - key: "_scrollTo", - value: function _scrollTo(offset) { - var animated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - var vertical = this.props.vertical; - - var wrappedRef = this._getWrappedRef(); - - if (!this._mounted || !wrappedRef) { - return; - } - - var specificOptions = this._needsScrollView() ? { - x: vertical ? 0 : offset, - y: vertical ? offset : 0 - } : { - offset: offset - }; - - var options = _objectSpread({}, specificOptions, { - animated: animated - }); - - if (this._needsScrollView()) { - wrappedRef.scrollTo(options); - } else { - wrappedRef.scrollToOffset(options); - } - } - }, { - key: "_onScroll", - value: function _onScroll(event) { - var _this$props12 = this.props, - callbackOffsetMargin = _this$props12.callbackOffsetMargin, - enableMomentum = _this$props12.enableMomentum, - onScroll = _this$props12.onScroll; - var scrollOffset = event ? this._getScrollOffset(event) : this._currentContentOffset; - - var nextActiveItem = this._getActiveItem(scrollOffset); - - var itemReached = nextActiveItem === this._itemToSnapTo; - var scrollConditions = scrollOffset >= this._scrollOffsetRef - callbackOffsetMargin && scrollOffset <= this._scrollOffsetRef + callbackOffsetMargin; - this._currentContentOffset = scrollOffset; - this._onScrollTriggered = true; - this._lastScrollDate = Date.now(); - - if (this._activeItem !== nextActiveItem && this._shouldUseCustomAnimation()) { - this._playCustomSlideAnimation(this._activeItem, nextActiveItem); - } - - if (enableMomentum) { - clearTimeout(this._snapNoMomentumTimeout); - - if (this._activeItem !== nextActiveItem) { - this._activeItem = nextActiveItem; - } - - if (itemReached) { - if (this._canFireBeforeCallback) { - this._onBeforeSnap(this._getDataIndex(nextActiveItem)); - } - - if (scrollConditions && this._canFireCallback) { - this._onSnap(this._getDataIndex(nextActiveItem)); - } - } - } else if (this._activeItem !== nextActiveItem && itemReached) { - if (this._canFireBeforeCallback) { - this._onBeforeSnap(this._getDataIndex(nextActiveItem)); - } - - if (scrollConditions) { - this._activeItem = nextActiveItem; - - if (this._canLockScroll()) { - this._releaseScroll(); - } - - if (this._canFireCallback) { - this._onSnap(this._getDataIndex(nextActiveItem)); - } - } - } - - if (nextActiveItem === this._itemToSnapTo && scrollOffset === this._scrollOffsetRef) { - this._repositionScroll(nextActiveItem); - } - - if (onScroll && event) { - onScroll(event); - } - } - }, { - key: "_onStartShouldSetResponderCapture", - value: function _onStartShouldSetResponderCapture(event) { - var onStartShouldSetResponderCapture = this.props.onStartShouldSetResponderCapture; - - if (onStartShouldSetResponderCapture) { - onStartShouldSetResponderCapture(event); - } - - return this._getScrollEnabled(); - } - }, { - key: "_onTouchStart", - value: function _onTouchStart() { - if (this._getScrollEnabled() !== false && this._autoplaying) { - this.stopAutoplay(); - } - } - }, { - key: "_onScrollBeginDrag", - value: function _onScrollBeginDrag(event) { - var onScrollBeginDrag = this.props.onScrollBeginDrag; - - if (!this._getScrollEnabled()) { - return; - } - - this._scrollStartOffset = this._getScrollOffset(event); - this._scrollStartActive = this._getActiveItem(this._scrollStartOffset); - this._ignoreNextMomentum = false; - - if (onScrollBeginDrag) { - onScrollBeginDrag(event); - } - } - }, { - key: "_onScrollEndDrag", - value: function _onScrollEndDrag(event) { - var onScrollEndDrag = this.props.onScrollEndDrag; - - if (this._carouselRef) { - this._onScrollEnd && this._onScrollEnd(); - } - - if (onScrollEndDrag) { - onScrollEndDrag(event); - } - } - }, { - key: "_onMomentumScrollEnd", - value: function _onMomentumScrollEnd(event) { - var onMomentumScrollEnd = this.props.onMomentumScrollEnd; - - if (this._carouselRef) { - this._onScrollEnd && this._onScrollEnd(); - } - - if (onMomentumScrollEnd) { - onMomentumScrollEnd(event); - } - } - }, { - key: "_onScrollEnd", - value: function _onScrollEnd(event) { - var _this6 = this; - - var _this$props13 = this.props, - autoplay = _this$props13.autoplay, - enableSnap = _this$props13.enableSnap; - - if (this._ignoreNextMomentum) { - this._ignoreNextMomentum = false; - return; - } - - this._scrollEndOffset = this._currentContentOffset; - this._scrollEndActive = this._getActiveItem(this._scrollEndOffset); - - if (enableSnap) { - this._snapScroll(this._scrollEndOffset - this._scrollStartOffset); - } - - if (autoplay) { - clearTimeout(this._enableAutoplayTimeout); - this._enableAutoplayTimeout = setTimeout(function () { - _this6.startAutoplay(); - }, 300); - } - } - }, { - key: "_onTouchRelease", - value: function _onTouchRelease(event) { - var _this7 = this; - - var enableMomentum = this.props.enableMomentum; - - if (enableMomentum && IS_IOS) { - clearTimeout(this._snapNoMomentumTimeout); - this._snapNoMomentumTimeout = setTimeout(function () { - _this7._snapToItem(_this7._activeItem); - }, 100); - } - } - }, { - key: "_onLayout", - value: function _onLayout(event) { - var onLayout = this.props.onLayout; - - if (this._onLayoutInitDone) { - this._initPositionsAndInterpolators(); - - this._snapToItem(this._activeItem, false, false, false, false); - } else { - this._onLayoutInitDone = true; - } - - if (onLayout) { - onLayout(event); - } - } - }, { - key: "_snapScroll", - value: function _snapScroll(delta) { - var swipeThreshold = this.props.swipeThreshold; - - if (!this._scrollEndActive && this._scrollEndActive !== 0 && IS_IOS) { - this._scrollEndActive = this._scrollStartActive; - } - - if (this._scrollStartActive !== this._scrollEndActive) { - this._snapToItem(this._scrollEndActive); - } else { - if (delta > 0) { - if (delta > swipeThreshold) { - this._snapToItem(this._scrollStartActive + 1); - } else { - this._snapToItem(this._scrollEndActive); - } - } else if (delta < 0) { - if (delta < -swipeThreshold) { - this._snapToItem(this._scrollStartActive - 1); - } else { - this._snapToItem(this._scrollEndActive); - } - } else { - this._snapToItem(this._scrollEndActive); - } - } - } - }, { - key: "_snapToItem", - value: function _snapToItem(index) { - var _this8 = this; - - var animated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - var fireCallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - var initial = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; - var lockScroll = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true; - var _this$props14 = this.props, - enableMomentum = _this$props14.enableMomentum, - onSnapToItem = _this$props14.onSnapToItem, - onBeforeSnapToItem = _this$props14.onBeforeSnapToItem; - - var itemsLength = this._getCustomDataLength(); - - var wrappedRef = this._getWrappedRef(); - - if (!itemsLength || !wrappedRef) { - return; - } - - if (!index || index < 0) { - index = 0; - } else if (itemsLength > 0 && index >= itemsLength) { - index = itemsLength - 1; - } - - if (index !== this._previousActiveItem) { - this._previousActiveItem = index; - - if (lockScroll && this._canLockScroll()) { - this._lockScroll(); - } - - if (fireCallback) { - if (onBeforeSnapToItem) { - this._canFireBeforeCallback = true; - } - - if (onSnapToItem) { - this._canFireCallback = true; - } - } - } - - this._itemToSnapTo = index; - this._scrollOffsetRef = this._positions[index] && this._positions[index].start; - this._onScrollTriggered = false; - - if (!this._scrollOffsetRef && this._scrollOffsetRef !== 0) { - return; - } - - this._scrollTo(this._scrollOffsetRef, animated); - - if (enableMomentum) { - if (IS_IOS && !initial) { - this._ignoreNextMomentum = true; - } - - if (index === 0 || index === itemsLength - 1) { - clearTimeout(this._edgeItemTimeout); - this._edgeItemTimeout = setTimeout(function () { - if (!initial && index === _this8._activeItem && !_this8._onScrollTriggered) { - _this8._onScroll(); - } - }, 250); - } - } - } - }, { - key: "_onBeforeSnap", - value: function _onBeforeSnap(index) { - var onBeforeSnapToItem = this.props.onBeforeSnapToItem; - - if (!this._carouselRef) { - return; - } - - this._canFireBeforeCallback = false; - onBeforeSnapToItem && onBeforeSnapToItem(index); - } - }, { - key: "_onSnap", - value: function _onSnap(index) { - var onSnapToItem = this.props.onSnapToItem; - - if (!this._carouselRef) { - return; - } - - this._canFireCallback = false; - onSnapToItem && onSnapToItem(index); - } - }, { - key: "startAutoplay", - value: function startAutoplay() { - var _this9 = this; - - var _this$props15 = this.props, - autoplayInterval = _this$props15.autoplayInterval, - autoplayDelay = _this$props15.autoplayDelay; - - if (this._autoplaying) { - return; - } - - clearTimeout(this._autoplayTimeout); - this._autoplayTimeout = setTimeout(function () { - _this9._autoplaying = true; - _this9._autoplayInterval = setInterval(function () { - if (_this9._autoplaying) { - _this9.snapToNext(); - } - }, autoplayInterval); - }, autoplayDelay); - } - }, { - key: "stopAutoplay", - value: function stopAutoplay() { - this._autoplaying = false; - clearInterval(this._autoplayInterval); - } - }, { - key: "snapToItem", - value: function snapToItem(index) { - var animated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - var fireCallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - - if (!index || index < 0) { - index = 0; - } - - var positionIndex = this._getPositionIndex(index); - - if (positionIndex === this._activeItem) { - return; - } - - this._snapToItem(positionIndex, animated, fireCallback); - } - }, { - key: "snapToNext", - value: function snapToNext() { - var animated = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - var fireCallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - - var itemsLength = this._getCustomDataLength(); - - var newIndex = this._activeItem + 1; - - if (newIndex > itemsLength - 1) { - if (!this._enableLoop()) { - return; - } - - newIndex = 0; - } - - this._snapToItem(newIndex, animated, fireCallback); - } - }, { - key: "snapToPrev", - value: function snapToPrev() { - var animated = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - var fireCallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - - var itemsLength = this._getCustomDataLength(); - - var newIndex = this._activeItem - 1; - - if (newIndex < 0) { - if (!this._enableLoop()) { - return; - } - - newIndex = itemsLength - 1; - } - - this._snapToItem(newIndex, animated, fireCallback); - } - }, { - key: "triggerRenderingHack", - value: function triggerRenderingHack(offset) { - if (Date.now() - this._lastScrollDate < 500) { - return; - } - - var scrollPosition = this._currentContentOffset; - - if (!scrollPosition && scrollPosition !== 0) { - return; - } - - var scrollOffset = offset || (scrollPosition === 0 ? 1 : -1); - - this._scrollTo(scrollPosition + scrollOffset, false); - } - }, { - key: "_getSlideInterpolatedStyle", - value: function _getSlideInterpolatedStyle(index, animatedValue) { - var _this$props16 = this.props, - layoutCardOffset = _this$props16.layoutCardOffset, - slideInterpolatedStyle = _this$props16.slideInterpolatedStyle; - - if (slideInterpolatedStyle) { - return slideInterpolatedStyle(index, animatedValue, this.props); - } else if (this._shouldUseTinderLayout()) { - return (0, _animations.tinderAnimatedStyles)(index, animatedValue, this.props, layoutCardOffset); - } else if (this._shouldUseStackLayout()) { - return (0, _animations.stackAnimatedStyles)(index, animatedValue, this.props, layoutCardOffset); - } else if (this._shouldUseShiftLayout()) { - return (0, _animations.shiftAnimatedStyles)(index, animatedValue, this.props); - } else { - return (0, _animations.defaultAnimatedStyles)(index, animatedValue, this.props); - } - } - }, { - key: "_renderItem", - value: function _renderItem(_ref) { - var item = _ref.item, - index = _ref.index; - var interpolators = this.state.interpolators; - var _this$props17 = this.props, - hasParallaxImages = _this$props17.hasParallaxImages, - itemWidth = _this$props17.itemWidth, - itemHeight = _this$props17.itemHeight, - keyExtractor = _this$props17.keyExtractor, - renderItem = _this$props17.renderItem, - sliderHeight = _this$props17.sliderHeight, - sliderWidth = _this$props17.sliderWidth, - slideStyle = _this$props17.slideStyle, - vertical = _this$props17.vertical; - var animatedValue = interpolators && interpolators[index]; - - if (!animatedValue && animatedValue !== 0) { - return false; - } - - var animate = this._shouldAnimateSlides(); - - var Component = animate ? _reactNative.Animated.View : _reactNative.View; - var animatedStyle = animate ? this._getSlideInterpolatedStyle(index, animatedValue) : {}; - var parallaxProps = hasParallaxImages ? { - scrollPosition: this._scrollPos, - carouselRef: this._carouselRef, - vertical: vertical, - sliderWidth: sliderWidth, - sliderHeight: sliderHeight, - itemWidth: itemWidth, - itemHeight: itemHeight - } : undefined; - var mainDimension = vertical ? { - height: itemHeight - } : { - width: itemWidth - }; - var specificProps = this._needsScrollView() ? { - key: keyExtractor ? keyExtractor(item, index) : this._getKeyExtractor(item, index) - } : {}; - return _react.default.createElement(Component, _extends({ - style: [mainDimension, slideStyle, animatedStyle], - pointerEvents: 'box-none' - }, specificProps, { - __source: { - fileName: _jsxFileName, - lineNumber: 1177 - } - }), renderItem({ - item: item, - index: index - }, parallaxProps)); - } - }, { - key: "_getComponentOverridableProps", - value: function _getComponentOverridableProps() { - var _this$props18 = this.props, - enableMomentum = _this$props18.enableMomentum, - itemWidth = _this$props18.itemWidth, - itemHeight = _this$props18.itemHeight, - loopClonesPerSide = _this$props18.loopClonesPerSide, - sliderWidth = _this$props18.sliderWidth, - sliderHeight = _this$props18.sliderHeight, - vertical = _this$props18.vertical; - var visibleItems = Math.ceil(vertical ? sliderHeight / itemHeight : sliderWidth / itemWidth) + 1; - var initialNumPerSide = this._enableLoop() ? loopClonesPerSide : 2; - var initialNumToRender = visibleItems + initialNumPerSide * 2; - var maxToRenderPerBatch = 1 + initialNumToRender * 2; - var windowSize = maxToRenderPerBatch; - var specificProps = !this._needsScrollView() ? { - initialNumToRender: initialNumToRender, - maxToRenderPerBatch: maxToRenderPerBatch, - windowSize: windowSize - } : {}; - return _objectSpread({ - decelerationRate: enableMomentum ? 0.9 : 'fast', - showsHorizontalScrollIndicator: false, - showsVerticalScrollIndicator: false, - overScrollMode: 'never', - automaticallyAdjustContentInsets: false, - directionalLockEnabled: true, - pinchGestureEnabled: false, - scrollsToTop: false, - removeClippedSubviews: true, - inverted: this._needsRTLAdaptations() - }, specificProps); - } - }, { - key: "_getComponentStaticProps", - value: function _getComponentStaticProps() { - var _this10 = this; - - var hideCarousel = this.state.hideCarousel; - var _this$props19 = this.props, - containerCustomStyle = _this$props19.containerCustomStyle, - contentContainerCustomStyle = _this$props19.contentContainerCustomStyle, - keyExtractor = _this$props19.keyExtractor, - sliderWidth = _this$props19.sliderWidth, - sliderHeight = _this$props19.sliderHeight, - style = _this$props19.style, - vertical = _this$props19.vertical; - var containerStyle = [containerCustomStyle || style || {}, hideCarousel ? { - opacity: 0 - } : {}, vertical ? { - height: sliderHeight, - flexDirection: 'column' - } : { - width: sliderWidth, - flexDirection: this._needsRTLAdaptations() ? 'row-reverse' : 'row' - }]; - var contentContainerStyle = [contentContainerCustomStyle || {}, vertical ? { - paddingTop: this._getContainerInnerMargin(), - paddingBottom: this._getContainerInnerMargin(true) - } : { - paddingLeft: this._getContainerInnerMargin(), - paddingRight: this._getContainerInnerMargin(true) - }]; - var specificProps = !this._needsScrollView() ? { - renderItem: this._renderItem, - numColumns: 1, - getItemLayout: undefined, - initialScrollIndex: undefined, - keyExtractor: keyExtractor || this._getKeyExtractor - } : {}; - return _objectSpread({ - ref: function ref(c) { - return _this10._carouselRef = c; - }, - data: this._getCustomData(), - style: containerStyle, - contentContainerStyle: contentContainerStyle, - horizontal: !vertical, - scrollEventThrottle: 1, - onScroll: this._onScrollHandler, - onScrollBeginDrag: this._onScrollBeginDrag, - onScrollEndDrag: this._onScrollEndDrag, - onMomentumScrollEnd: this._onMomentumScrollEnd, - onResponderRelease: this._onTouchRelease, - onStartShouldSetResponderCapture: this._onStartShouldSetResponderCapture, - onTouchStart: this._onTouchStart, - onLayout: this._onLayout - }, specificProps); - } - }, { - key: "render", - value: function render() { - var _this11 = this; - - var _this$props20 = this.props, - data = _this$props20.data, - renderItem = _this$props20.renderItem; - - if (!data || !renderItem) { - return false; - } - - var props = _objectSpread({}, this._getComponentOverridableProps(), this.props, this._getComponentStaticProps()); - - return this._needsScrollView() ? _react.default.createElement(AnimatedScrollView, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 1299 - } - }), this._getCustomData().map(function (item, index) { - return _this11._renderItem({ - item: item, - index: index - }); - })) : _react.default.createElement(AnimatedFlatList, _extends({}, props, { - __source: { - fileName: _jsxFileName, - lineNumber: 1307 - } - })); - } - }, { - key: "realIndex", - get: function get() { - return this._activeItem; - } - }, { - key: "currentIndex", - get: function get() { - return this._getDataIndex(this._activeItem); - } - }, { - key: "currentScrollPosition", - get: function get() { - return this._currentContentOffset; - } - }]); - - _inherits(Carousel, _Component); - - return Carousel; - }(_react.Component), _class.propTypes = { - data: _propTypes.default.array.isRequired, - renderItem: _propTypes.default.func.isRequired, - itemWidth: _propTypes.default.number, - itemHeight: _propTypes.default.number, - sliderWidth: _propTypes.default.number, - sliderHeight: _propTypes.default.number, - activeAnimationType: _propTypes.default.string, - activeAnimationOptions: _propTypes.default.object, - activeSlideAlignment: _propTypes.default.oneOf(['center', 'end', 'start']), - activeSlideOffset: _propTypes.default.number, - apparitionDelay: _propTypes.default.number, - autoplay: _propTypes.default.bool, - autoplayDelay: _propTypes.default.number, - autoplayInterval: _propTypes.default.number, - callbackOffsetMargin: _propTypes.default.number, - containerCustomStyle: _reactNative.ViewPropTypes ? _reactNative.ViewPropTypes.style : _reactNative.View.propTypes.style, - contentContainerCustomStyle: _reactNative.ViewPropTypes ? _reactNative.ViewPropTypes.style : _reactNative.View.propTypes.style, - enableMomentum: _propTypes.default.bool, - enableSnap: _propTypes.default.bool, - firstItem: _propTypes.default.number, - hasParallaxImages: _propTypes.default.bool, - inactiveSlideOpacity: _propTypes.default.number, - inactiveSlideScale: _propTypes.default.number, - inactiveSlideShift: _propTypes.default.number, - layout: _propTypes.default.oneOf(['default', 'stack', 'tinder']), - layoutCardOffset: _propTypes.default.number, - lockScrollTimeoutDuration: _propTypes.default.number, - lockScrollWhileSnapping: _propTypes.default.bool, - loop: _propTypes.default.bool, - loopClonesPerSide: _propTypes.default.number, - scrollInterpolator: _propTypes.default.func, - slideInterpolatedStyle: _propTypes.default.func, - slideStyle: _reactNative.ViewPropTypes ? _reactNative.ViewPropTypes.style : _reactNative.View.propTypes.style, - shouldOptimizeUpdates: _propTypes.default.bool, - swipeThreshold: _propTypes.default.number, - useScrollView: _propTypes.default.bool, - vertical: _propTypes.default.bool, - onBeforeSnapToItem: _propTypes.default.func, - onSnapToItem: _propTypes.default.func - }, _class.defaultProps = { - activeAnimationType: 'timing', - activeAnimationOptions: null, - activeSlideAlignment: 'center', - activeSlideOffset: 20, - apparitionDelay: 0, - autoplay: false, - autoplayDelay: 5000, - autoplayInterval: 3000, - callbackOffsetMargin: 5, - containerCustomStyle: {}, - contentContainerCustomStyle: {}, - enableMomentum: false, - enableSnap: true, - firstItem: 0, - hasParallaxImages: false, - inactiveSlideOpacity: 0.7, - inactiveSlideScale: 0.9, - inactiveSlideShift: 0, - layout: 'default', - lockScrollTimeoutDuration: 1000, - lockScrollWhileSnapping: false, - loop: false, - loopClonesPerSide: 3, - slideStyle: {}, - shouldOptimizeUpdates: true, - swipeThreshold: 20, - useScrollView: !AnimatedFlatList, - vertical: false - }, _temp)); - - var _default2 = Carousel; - exports.default = _default2; -},765,[122,161,1,143,769,768],"node_modules/react-native-snap-carousel/src/carousel/Carousel.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var shallowEqual = _$$_REQUIRE(_dependencyMap[0], 'fbjs/lib/shallowEqual'); - - function shallowCompare(instance, nextProps, nextState) { - return !shallowEqual(instance.props, nextProps) || !shallowEqual(instance.state, nextState); - } - - module.exports = shallowCompare; -},769,[770],"node_modules/react-addons-shallow-compare/index.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - 'use strict'; - - var hasOwnProperty = Object.prototype.hasOwnProperty; - - function is(x, y) { - if (x === y) { - return x !== 0 || y !== 0 || 1 / x === 1 / y; - } else { - return x !== x && y !== y; - } - } - - function shallowEqual(objA, objB) { - if (is(objA, objB)) { - return true; - } - - if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) { - return false; - } - - var keysA = Object.keys(objA); - var keysB = Object.keys(objB); - - if (keysA.length !== keysB.length) { - return false; - } - - for (var i = 0; i < keysA.length; i++) { - if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) { - return false; - } - } - - return true; - } - - module.exports = shallowEqual; -},770,[],"node_modules/fbjs/lib/shallowEqual.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getInputRangeFromIndexes = getInputRangeFromIndexes; - exports.defaultScrollInterpolator = defaultScrollInterpolator; - exports.defaultAnimatedStyles = defaultAnimatedStyles; - exports.shiftAnimatedStyles = shiftAnimatedStyles; - exports.stackScrollInterpolator = stackScrollInterpolator; - exports.stackAnimatedStyles = stackAnimatedStyles; - exports.tinderScrollInterpolator = tinderScrollInterpolator; - exports.tinderAnimatedStyles = tinderAnimatedStyles; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var IS_ANDROID = _reactNative.Platform.OS === 'android'; - - function getInputRangeFromIndexes(range, index, carouselProps) { - var sizeRef = carouselProps.vertical ? carouselProps.itemHeight : carouselProps.itemWidth; - var inputRange = []; - - for (var i = 0; i < range.length; i++) { - inputRange.push((index - range[i]) * sizeRef); - } - - return inputRange; - } - - function defaultScrollInterpolator(index, carouselProps) { - var range = [1, 0, -1]; - var inputRange = getInputRangeFromIndexes(range, index, carouselProps); - var outputRange = [0, 1, 0]; - return { - inputRange: inputRange, - outputRange: outputRange - }; - } - - function defaultAnimatedStyles(index, animatedValue, carouselProps) { - var animatedOpacity = {}; - var animatedScale = {}; - - if (carouselProps.inactiveSlideOpacity < 1) { - animatedOpacity = { - opacity: animatedValue.interpolate({ - inputRange: [0, 1], - outputRange: [carouselProps.inactiveSlideOpacity, 1] - }) - }; - } - - if (carouselProps.inactiveSlideScale < 1) { - animatedScale = { - transform: [{ - scale: animatedValue.interpolate({ - inputRange: [0, 1], - outputRange: [carouselProps.inactiveSlideScale, 1] - }) - }] - }; - } - - return _objectSpread({}, animatedOpacity, animatedScale); - } - - function shiftAnimatedStyles(index, animatedValue, carouselProps) { - var animatedOpacity = {}; - var animatedScale = {}; - var animatedTranslate = {}; - - if (carouselProps.inactiveSlideOpacity < 1) { - animatedOpacity = { - opacity: animatedValue.interpolate({ - inputRange: [0, 1], - outputRange: [carouselProps.inactiveSlideOpacity, 1] - }) - }; - } - - if (carouselProps.inactiveSlideScale < 1) { - animatedScale = { - scale: animatedValue.interpolate({ - inputRange: [0, 1], - outputRange: [carouselProps.inactiveSlideScale, 1] - }) - }; - } - - if (carouselProps.inactiveSlideShift !== 0) { - var translateProp = carouselProps.vertical ? 'translateX' : 'translateY'; - animatedTranslate = _defineProperty({}, translateProp, animatedValue.interpolate({ - inputRange: [0, 1], - outputRange: [carouselProps.inactiveSlideShift, 0] - })); - } - - return _objectSpread({}, animatedOpacity, { - transform: [_objectSpread({}, animatedScale), _objectSpread({}, animatedTranslate)] - }); - } - - function stackScrollInterpolator(index, carouselProps) { - var range = IS_ANDROID ? [1, 0, -1, -2, -3] : [3, 2, 1, 0, -1]; - var inputRange = getInputRangeFromIndexes(range, index, carouselProps); - var outputRange = range; - return { - inputRange: inputRange, - outputRange: outputRange - }; - } - - function stackAnimatedStyles(index, animatedValue, carouselProps, cardOffset) { - var sizeRef = carouselProps.vertical ? carouselProps.itemHeight : carouselProps.itemWidth; - var translateProp = carouselProps.vertical ? 'translateY' : 'translateX'; - var card1Scale = 0.9; - var card2Scale = 0.8; - cardOffset = !cardOffset && cardOffset !== 0 ? 18 : cardOffset; - - var getTranslateFromScale = function getTranslateFromScale(cardIndex, scale) { - var centerFactor = 1 / scale * cardIndex; - var centeredPosition = -Math.round(sizeRef * centerFactor); - var edgeAlignment = Math.round((sizeRef - sizeRef * scale) / 2); - var offset = Math.round(cardOffset * Math.abs(cardIndex) / scale); - return IS_ANDROID ? centeredPosition - edgeAlignment - offset : centeredPosition + edgeAlignment + offset; - }; - - return IS_ANDROID ? { - opacity: animatedValue.interpolate({ - inputRange: [-3, -2, -1, 0], - outputRange: [0, 0.5, 0.75, 1], - extrapolate: 'clamp' - }), - transform: [{ - scale: animatedValue.interpolate({ - inputRange: [-2, -1, 0, 1], - outputRange: [card2Scale, card1Scale, 1, card1Scale], - extrapolate: 'clamp' - }) - }, _defineProperty({}, translateProp, animatedValue.interpolate({ - inputRange: [-3, -2, -1, 0, 1], - outputRange: [getTranslateFromScale(-3, card2Scale), getTranslateFromScale(-2, card2Scale), getTranslateFromScale(-1, card1Scale), 0, sizeRef * 0.5], - extrapolate: 'clamp' - }))] - } : { - zIndex: carouselProps.data.length - index, - opacity: animatedValue.interpolate({ - inputRange: [0, 1, 2, 3], - outputRange: [1, 0.75, 0.5, 0], - extrapolate: 'clamp' - }), - transform: [{ - scale: animatedValue.interpolate({ - inputRange: [-1, 0, 1, 2], - outputRange: [card1Scale, 1, card1Scale, card2Scale], - extrapolate: 'clamp' - }) - }, _defineProperty({}, translateProp, animatedValue.interpolate({ - inputRange: [-1, 0, 1, 2, 3], - outputRange: [-sizeRef * 0.5, 0, getTranslateFromScale(1, card1Scale), getTranslateFromScale(2, card2Scale), getTranslateFromScale(3, card2Scale)], - extrapolate: 'clamp' - }))] - }; - } - - function tinderScrollInterpolator(index, carouselProps) { - var range = IS_ANDROID ? [1, 0, -1, -2, -3] : [3, 2, 1, 0, -1]; - var inputRange = getInputRangeFromIndexes(range, index, carouselProps); - var outputRange = range; - return { - inputRange: inputRange, - outputRange: outputRange - }; - } - - function tinderAnimatedStyles(index, animatedValue, carouselProps, cardOffset) { - var sizeRef = carouselProps.vertical ? carouselProps.itemHeight : carouselProps.itemWidth; - var mainTranslateProp = carouselProps.vertical ? 'translateY' : 'translateX'; - var secondaryTranslateProp = carouselProps.vertical ? 'translateX' : 'translateY'; - var card1Scale = 0.96; - var card2Scale = 0.92; - var card3Scale = 0.88; - var peekingCardsOpacity = IS_ANDROID ? 0.92 : 1; - cardOffset = !cardOffset && cardOffset !== 0 ? 9 : cardOffset; - - var getMainTranslateFromScale = function getMainTranslateFromScale(cardIndex, scale) { - var centerFactor = 1 / scale * cardIndex; - return -Math.round(sizeRef * centerFactor); - }; - - var getSecondaryTranslateFromScale = function getSecondaryTranslateFromScale(cardIndex, scale) { - return Math.round(cardOffset * Math.abs(cardIndex) / scale); - }; - - return IS_ANDROID ? { - opacity: animatedValue.interpolate({ - inputRange: [-3, -2, -1, 0, 1], - outputRange: [0, peekingCardsOpacity, peekingCardsOpacity, 1, 0], - extrapolate: 'clamp' - }), - transform: [{ - scale: animatedValue.interpolate({ - inputRange: [-3, -2, -1, 0], - outputRange: [card3Scale, card2Scale, card1Scale, 1], - extrapolate: 'clamp' - }) - }, { - rotate: animatedValue.interpolate({ - inputRange: [0, 1], - outputRange: ['0deg', '22deg'], - extrapolate: 'clamp' - }) - }, _defineProperty({}, mainTranslateProp, animatedValue.interpolate({ - inputRange: [-3, -2, -1, 0, 1], - outputRange: [getMainTranslateFromScale(-3, card3Scale), getMainTranslateFromScale(-2, card2Scale), getMainTranslateFromScale(-1, card1Scale), 0, sizeRef * 1.1], - extrapolate: 'clamp' - })), _defineProperty({}, secondaryTranslateProp, animatedValue.interpolate({ - inputRange: [-3, -2, -1, 0], - outputRange: [getSecondaryTranslateFromScale(-3, card3Scale), getSecondaryTranslateFromScale(-2, card2Scale), getSecondaryTranslateFromScale(-1, card1Scale), 0], - extrapolate: 'clamp' - }))] - } : { - zIndex: carouselProps.data.length - index, - opacity: animatedValue.interpolate({ - inputRange: [-1, 0, 1, 2, 3], - outputRange: [0, 1, peekingCardsOpacity, peekingCardsOpacity, 0], - extrapolate: 'clamp' - }), - transform: [{ - scale: animatedValue.interpolate({ - inputRange: [0, 1, 2, 3], - outputRange: [1, card1Scale, card2Scale, card3Scale], - extrapolate: 'clamp' - }) - }, { - rotate: animatedValue.interpolate({ - inputRange: [-1, 0], - outputRange: ['-22deg', '0deg'], - extrapolate: 'clamp' - }) - }, _defineProperty({}, mainTranslateProp, animatedValue.interpolate({ - inputRange: [-1, 0, 1, 2, 3], - outputRange: [-sizeRef * 1.1, 0, getMainTranslateFromScale(1, card1Scale), getMainTranslateFromScale(2, card2Scale), getMainTranslateFromScale(3, card3Scale)], - extrapolate: 'clamp' - })), _defineProperty({}, secondaryTranslateProp, animatedValue.interpolate({ - inputRange: [0, 1, 2, 3], - outputRange: [0, getSecondaryTranslateFromScale(1, card1Scale), getSecondaryTranslateFromScale(2, card2Scale), getSecondaryTranslateFromScale(3, card3Scale)], - extrapolate: 'clamp' - }))] - }; - } -},768,[1],"node_modules/react-native-snap-carousel/src/utils/animations.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "prop-types")); - - var _PaginationDot = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./PaginationDot")); - - var _Pagination = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "./Pagination.style")); - - var _class, - _temp, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-snap-carousel/src/pagination/Pagination.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - Pagination: { - displayName: "Pagination" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-snap-carousel/src/pagination/Pagination.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var IS_IOS = _reactNative.Platform.OS === 'ios'; - var IS_RTL = _reactNative.I18nManager.isRTL; - - var Pagination = _wrapComponent("Pagination")((_temp = _class = function (_PureComponent) { - function Pagination(props) { - var _this; - - _classCallCheck(this, Pagination); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(Pagination).call(this, props)); - - if (props.dotColor && !props.inactiveDotColor || !props.dotColor && props.inactiveDotColor) { - console.warn('react-native-snap-carousel | Pagination: ' + 'You need to specify both `dotColor` and `inactiveDotColor`'); - } - - if (props.dotElement && !props.inactiveDotElement || !props.dotElement && props.inactiveDotElement) { - console.warn('react-native-snap-carousel | Pagination: ' + 'You need to specify both `dotElement` and `inactiveDotElement`'); - } - - if (props.tappableDots && !props.carouselRef) { - console.warn('react-native-snap-carousel | Pagination: ' + 'You must specify prop `carouselRef` when setting `tappableDots` to `true`'); - } - - return _this; - } - - _createClass(Pagination, [{ - key: "_needsRTLAdaptations", - value: function _needsRTLAdaptations() { - var vertical = this.props.vertical; - return IS_RTL && !IS_IOS && !vertical; - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - dotsLength = _this$props.dotsLength, - containerStyle = _this$props.containerStyle, - vertical = _this$props.vertical; - - if (!dotsLength || dotsLength < 2) { - return false; - } - - var style = [_Pagination.default.sliderPagination, { - flexDirection: vertical ? 'column' : this._needsRTLAdaptations() ? 'row-reverse' : 'row' - }, containerStyle || {}]; - return _react.default.createElement(_reactNative.View, { - pointerEvents: 'box-none', - style: style, - __source: { - fileName: _jsxFileName, - lineNumber: 142 - } - }, this.dots); - } - }, { - key: "_activeDotIndex", - get: function get() { - var _this$props2 = this.props, - activeDotIndex = _this$props2.activeDotIndex, - dotsLength = _this$props2.dotsLength; - return this._needsRTLAdaptations() ? dotsLength - activeDotIndex - 1 : activeDotIndex; - } - }, { - key: "dots", - get: function get() { - var _this$props3 = this.props, - activeOpacity = _this$props3.activeOpacity, - carouselRef = _this$props3.carouselRef, - dotsLength = _this$props3.dotsLength, - dotColor = _this$props3.dotColor, - dotContainerStyle = _this$props3.dotContainerStyle, - dotElement = _this$props3.dotElement, - dotStyle = _this$props3.dotStyle, - inactiveDotColor = _this$props3.inactiveDotColor, - inactiveDotElement = _this$props3.inactiveDotElement, - inactiveDotOpacity = _this$props3.inactiveDotOpacity, - inactiveDotScale = _this$props3.inactiveDotScale, - inactiveDotStyle = _this$props3.inactiveDotStyle, - renderDots = _this$props3.renderDots, - tappableDots = _this$props3.tappableDots; - - if (renderDots) { - return renderDots(this._activeDotIndex, dotsLength, this); - } - - var DefaultDot = _react.default.createElement(_PaginationDot.default, { - carouselRef: carouselRef, - tappable: tappableDots && typeof carouselRef !== 'undefined', - activeOpacity: activeOpacity, - color: dotColor, - containerStyle: dotContainerStyle, - style: dotStyle, - inactiveColor: inactiveDotColor, - inactiveOpacity: inactiveDotOpacity, - inactiveScale: inactiveDotScale, - inactiveStyle: inactiveDotStyle, - __source: { - fileName: _jsxFileName, - lineNumber: 95 - } - }); - - var dots = []; - - for (var i = 0; i < dotsLength; i++) { - var isActive = i === this._activeDotIndex; - dots.push(_react.default.cloneElement((isActive ? dotElement : inactiveDotElement) || DefaultDot, { - key: "pagination-dot-" + i, - active: i === this._activeDotIndex, - index: i - })); - } - - return dots; - } - }]); - - _inherits(Pagination, _PureComponent); - - return Pagination; - }(_react.PureComponent), _class.propTypes = { - activeDotIndex: _propTypes.default.number.isRequired, - dotsLength: _propTypes.default.number.isRequired, - activeOpacity: _propTypes.default.number, - carouselRef: _propTypes.default.object, - containerStyle: _reactNative.ViewPropTypes ? _reactNative.ViewPropTypes.style : _reactNative.View.propTypes.style, - dotColor: _propTypes.default.string, - dotContainerStyle: _reactNative.ViewPropTypes ? _reactNative.ViewPropTypes.style : _reactNative.View.propTypes.style, - dotElement: _propTypes.default.element, - dotStyle: _reactNative.ViewPropTypes ? _reactNative.ViewPropTypes.style : _reactNative.View.propTypes.style, - inactiveDotColor: _propTypes.default.string, - inactiveDotElement: _propTypes.default.element, - inactiveDotOpacity: _propTypes.default.number, - inactiveDotScale: _propTypes.default.number, - inactiveDotStyle: _reactNative.ViewPropTypes ? _reactNative.ViewPropTypes.style : _reactNative.View.propTypes.style, - renderDots: _propTypes.default.func, - tappableDots: _propTypes.default.bool, - vertical: _propTypes.default.bool - }, _class.defaultProps = { - inactiveDotOpacity: 0.5, - inactiveDotScale: 0.5, - tappableDots: false, - vertical: false - }, _temp)); - - var _default2 = Pagination; - exports.default = _default2; -},766,[122,161,1,143,771,772],"node_modules/react-native-snap-carousel/src/pagination/Pagination.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "prop-types")); - - var _Pagination = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./Pagination.style")); - - var _class, - _temp, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-snap-carousel/src/pagination/PaginationDot.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - PaginationDot: { - displayName: "PaginationDot" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-snap-carousel/src/pagination/PaginationDot.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var PaginationDot = _wrapComponent("PaginationDot")((_temp = _class = function (_PureComponent) { - function PaginationDot(props) { - var _this; - - _classCallCheck(this, PaginationDot); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(PaginationDot).call(this, props)); - _this.state = { - animColor: new _reactNative.Animated.Value(0), - animOpacity: new _reactNative.Animated.Value(0), - animTransform: new _reactNative.Animated.Value(0) - }; - return _this; - } - - _createClass(PaginationDot, [{ - key: "componentDidMount", - value: function componentDidMount() { - if (this.props.active) { - this._animate(1); - } - } - }, { - key: "componentWillReceiveProps", - value: function componentWillReceiveProps(nextProps) { - if (nextProps.active !== this.props.active) { - this._animate(nextProps.active ? 1 : 0); - } - } - }, { - key: "_animate", - value: function _animate() { - var toValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - var _this$state = this.state, - animColor = _this$state.animColor, - animOpacity = _this$state.animOpacity, - animTransform = _this$state.animTransform; - var commonProperties = { - toValue: toValue, - duration: 250, - isInteraction: false, - useNativeDriver: !this._shouldAnimateColor - }; - var animations = [_reactNative.Animated.timing(animOpacity, _objectSpread({ - easing: _reactNative.Easing.linear - }, commonProperties)), _reactNative.Animated.spring(animTransform, _objectSpread({ - friction: 4, - tension: 50 - }, commonProperties))]; - - if (this._shouldAnimateColor) { - animations.push(_reactNative.Animated.timing(animColor, _objectSpread({ - easing: _reactNative.Easing.linear - }, commonProperties))); - } - - _reactNative.Animated.parallel(animations).start(); - } - }, { - key: "render", - value: function render() { - var _this$state2 = this.state, - animColor = _this$state2.animColor, - animOpacity = _this$state2.animOpacity, - animTransform = _this$state2.animTransform; - var _this$props = this.props, - active = _this$props.active, - activeOpacity = _this$props.activeOpacity, - carouselRef = _this$props.carouselRef, - color = _this$props.color, - containerStyle = _this$props.containerStyle, - inactiveColor = _this$props.inactiveColor, - inactiveStyle = _this$props.inactiveStyle, - inactiveOpacity = _this$props.inactiveOpacity, - inactiveScale = _this$props.inactiveScale, - index = _this$props.index, - style = _this$props.style, - tappable = _this$props.tappable; - var animatedStyle = { - opacity: animOpacity.interpolate({ - inputRange: [0, 1], - outputRange: [inactiveOpacity, 1] - }), - transform: [{ - scale: animTransform.interpolate({ - inputRange: [0, 1], - outputRange: [inactiveScale, 1] - }) - }] - }; - var animatedColor = this._shouldAnimateColor ? { - backgroundColor: animColor.interpolate({ - inputRange: [0, 1], - outputRange: [inactiveColor, color] - }) - } : {}; - var dotContainerStyle = [_Pagination.default.sliderPaginationDotContainer, containerStyle || {}]; - var dotStyle = [_Pagination.default.sliderPaginationDot, style || {}, !active && inactiveStyle || {}, animatedStyle, animatedColor]; - var onPress = tappable ? function () { - carouselRef && carouselRef._snapToItem(carouselRef._getPositionIndex(index)); - } : undefined; - return _react.default.createElement(_reactNative.TouchableOpacity, { - style: dotContainerStyle, - activeOpacity: tappable ? activeOpacity : 1, - onPress: onPress, - __source: { - fileName: _jsxFileName, - lineNumber: 135 - } - }, _react.default.createElement(_reactNative.Animated.View, { - style: dotStyle, - __source: { - fileName: _jsxFileName, - lineNumber: 140 - } - })); - } - }, { - key: "_shouldAnimateColor", - get: function get() { - var _this$props2 = this.props, - color = _this$props2.color, - inactiveColor = _this$props2.inactiveColor; - return color && inactiveColor; - } - }]); - - _inherits(PaginationDot, _PureComponent); - - return PaginationDot; - }(_react.PureComponent), _class.propTypes = { - inactiveOpacity: _propTypes.default.number.isRequired, - inactiveScale: _propTypes.default.number.isRequired, - active: _propTypes.default.bool, - activeOpacity: _propTypes.default.number, - carouselRef: _propTypes.default.object, - color: _propTypes.default.string, - containerStyle: _reactNative.ViewPropTypes ? _reactNative.ViewPropTypes.style : _reactNative.View.propTypes.style, - inactiveColor: _propTypes.default.string, - inactiveStyle: _reactNative.ViewPropTypes ? _reactNative.ViewPropTypes.style : _reactNative.View.propTypes.style, - index: _propTypes.default.number, - style: _reactNative.ViewPropTypes ? _reactNative.ViewPropTypes.style : _reactNative.View.propTypes.style, - tappable: _propTypes.default.bool - }, _temp)); - - var _default2 = PaginationDot; - exports.default = _default2; -},771,[122,161,1,143,772],"node_modules/react-native-snap-carousel/src/pagination/PaginationDot.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); - - var DEFAULT_DOT_SIZE = 7; - var DEFAULT_DOT_COLOR = 'rgba(0, 0, 0, 0.75)'; - - var _default = _reactNative.StyleSheet.create({ - sliderPagination: { - alignItems: 'center', - justifyContent: 'center', - paddingHorizontal: 20, - paddingVertical: 30 - }, - sliderPaginationDotContainer: { - alignItems: 'center', - justifyContent: 'center', - marginHorizontal: 8 - }, - sliderPaginationDot: { - width: DEFAULT_DOT_SIZE, - height: DEFAULT_DOT_SIZE, - borderRadius: DEFAULT_DOT_SIZE / 2, - backgroundColor: DEFAULT_DOT_COLOR - } - }); - - exports.default = _default; -},772,[1],"node_modules/react-native-snap-carousel/src/pagination/Pagination.style.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../../react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "prop-types")); - - var _ParallaxImage = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "./ParallaxImage.style")); - - var _class, - _temp, - _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-snap-carousel/src/parallaximage/ParallaxImage.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - var _components = { - ParallaxImage: { - displayName: "ParallaxImage" - } - }; - - var _reactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/node_modules/react-native-snap-carousel/src/parallaximage/ParallaxImage.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _reactTransformHmrLibIndexJs2(Component, id); - }; - } - - var ParallaxImage = _wrapComponent("ParallaxImage")((_temp = _class = function (_Component) { - function ParallaxImage(props) { - var _this; - - _classCallCheck(this, ParallaxImage); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(ParallaxImage).call(this, props)); - _this.state = { - offset: 0, - width: 0, - height: 0, - status: 1, - animOpacity: new _reactNative.Animated.Value(0) - }; - _this._onLoad = _this._onLoad.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this._onError = _this._onError.bind(_assertThisInitialized(_assertThisInitialized(_this))); - _this._measureLayout = _this._measureLayout.bind(_assertThisInitialized(_assertThisInitialized(_this))); - return _this; - } - - _createClass(ParallaxImage, [{ - key: "setNativeProps", - value: function setNativeProps(nativeProps) { - this._container.setNativeProps(nativeProps); - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - this._mounted = true; - setTimeout(function () { - _this2._measureLayout(); - }, 0); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this._mounted = false; - } - }, { - key: "_measureLayout", - value: function _measureLayout() { - var _this3 = this; - - if (this._container) { - var _this$props = this.props, - dimensions = _this$props.dimensions, - vertical = _this$props.vertical, - carouselRef = _this$props.carouselRef, - sliderWidth = _this$props.sliderWidth, - sliderHeight = _this$props.sliderHeight, - itemWidth = _this$props.itemWidth, - itemHeight = _this$props.itemHeight; - - if (carouselRef) { - this._container.measureLayout((0, _reactNative.findNodeHandle)(carouselRef), function (x, y, width, height, pageX, pageY) { - var offset = vertical ? y - (sliderHeight - itemHeight) / 2 : x - (sliderWidth - itemWidth) / 2; - - _this3.setState({ - offset: offset, - width: dimensions && dimensions.width ? dimensions.width : Math.ceil(width), - height: dimensions && dimensions.height ? dimensions.height : Math.ceil(height) - }); - }); - } - } - } - }, { - key: "_onLoad", - value: function _onLoad(event) { - var _this4 = this; - - var animOpacity = this.state.animOpacity; - var _this$props2 = this.props, - fadeDuration = _this$props2.fadeDuration, - onLoad = _this$props2.onLoad; - - if (!this._mounted) { - return; - } - - this.setState({ - status: 2 - }); - - if (onLoad) { - onLoad(event); - } - - _reactNative.Animated.timing(animOpacity, { - toValue: 1, - duration: fadeDuration, - easing: _reactNative.Easing.out(_reactNative.Easing.quad), - isInteraction: false, - useNativeDriver: true - }).start(function () { - _this4.setState({ - status: 3 - }); - }); - } - }, { - key: "_onError", - value: function _onError(event) { - var onError = this.props.onError; - this.setState({ - status: 4 - }); - - if (onError) { - onError(event); - } - } - }, { - key: "render", - value: function render() { - var _this5 = this; - - var containerStyle = this.props.containerStyle; - return _react.default.createElement(_reactNative.View, { - ref: function ref(c) { - _this5._container = c; - }, - pointerEvents: 'none', - style: [containerStyle, _ParallaxImage.default.container], - onLayout: this._measureLayout, - __source: { - fileName: _jsxFileName, - lineNumber: 205 - } - }, this.image, this.spinner); - } - }, { - key: "image", - get: function get() { - var _this$state = this.state, - status = _this$state.status, - animOpacity = _this$state.animOpacity, - offset = _this$state.offset, - width = _this$state.width, - height = _this$state.height; - - var _this$props3 = this.props, - scrollPosition = _this$props3.scrollPosition, - dimensions = _this$props3.dimensions, - vertical = _this$props3.vertical, - sliderWidth = _this$props3.sliderWidth, - sliderHeight = _this$props3.sliderHeight, - parallaxFactor = _this$props3.parallaxFactor, - style = _this$props3.style, - other = _objectWithoutProperties(_this$props3, ["scrollPosition", "dimensions", "vertical", "sliderWidth", "sliderHeight", "parallaxFactor", "style"]); - - var parallaxPadding = (vertical ? height : width) * parallaxFactor; - var requiredStyles = { - position: 'relative' - }; - var dynamicStyles = { - width: vertical ? width : width + parallaxPadding * 2, - height: vertical ? height + parallaxPadding * 2 : height, - opacity: animOpacity, - transform: scrollPosition ? [{ - translateX: !vertical ? scrollPosition.interpolate({ - inputRange: [offset - sliderWidth, offset + sliderWidth], - outputRange: [-parallaxPadding, parallaxPadding], - extrapolate: 'clamp' - }) : 0 - }, { - translateY: vertical ? scrollPosition.interpolate({ - inputRange: [offset - sliderHeight, offset + sliderHeight], - outputRange: [-parallaxPadding, parallaxPadding], - extrapolate: 'clamp' - }) : 0 - }] : [] - }; - return _react.default.createElement(_reactNative.Animated.Image, _extends({}, other, { - style: [_ParallaxImage.default.image, style, requiredStyles, dynamicStyles], - onLoad: this._onLoad, - onError: status !== 3 ? this._onError : undefined, - __source: { - fileName: _jsxFileName, - lineNumber: 177 - } - })); - } - }, { - key: "spinner", - get: function get() { - var status = this.state.status; - var _this$props4 = this.props, - showSpinner = _this$props4.showSpinner, - spinnerColor = _this$props4.spinnerColor; - return status === 1 && showSpinner ? _react.default.createElement(_reactNative.View, { - style: _ParallaxImage.default.loaderContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 191 - } - }, _react.default.createElement(_reactNative.ActivityIndicator, { - size: 'small', - color: spinnerColor, - animating: true, - __source: { - fileName: _jsxFileName, - lineNumber: 192 - } - })) : false; - } - }]); - - _inherits(ParallaxImage, _Component); - - return ParallaxImage; - }(_react.Component), _class.propTypes = _objectSpread({}, _reactNative.Image.propTypes, { - carouselRef: _propTypes.default.object, - itemHeight: _propTypes.default.number, - itemWidth: _propTypes.default.number, - scrollPosition: _propTypes.default.object, - sliderHeight: _propTypes.default.number, - sliderWidth: _propTypes.default.number, - vertical: _propTypes.default.bool, - containerStyle: _reactNative.ViewPropTypes ? _reactNative.ViewPropTypes.style : _reactNative.View.propTypes.style, - dimensions: _propTypes.default.shape({ - width: _propTypes.default.number, - height: _propTypes.default.number - }), - fadeDuration: _propTypes.default.number, - parallaxFactor: _propTypes.default.number, - showSpinner: _propTypes.default.bool, - spinnerColor: _propTypes.default.string - }), _class.defaultProps = { - containerStyle: {}, - fadeDuration: 500, - parallaxFactor: 0.3, - showSpinner: true, - spinnerColor: 'rgba(0, 0, 0, 0.4)' - }, _temp)); - - var _default2 = ParallaxImage; - exports.default = _default2; -},767,[122,161,1,143,773],"node_modules/react-native-snap-carousel/src/parallaximage/ParallaxImage.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = void 0; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native"); - - function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var _default = _reactNative.StyleSheet.create({ - container: { - overflow: 'hidden', - alignItems: 'center', - justifyContent: 'center' - }, - image: { - position: 'relative', - resizeMode: 'cover', - width: null, - height: null - }, - loaderContainer: _objectSpread({}, _reactNative.StyleSheet.absoluteFillObject, { - alignItems: 'center', - justifyContent: 'center' - }) - }); - - exports.default = _default; -},773,[1],"node_modules/react-native-snap-carousel/src/parallaximage/ParallaxImage.style.js"); -__d(function (global, _$$_REQUIRE, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = exports.SLIDE_WIDTH = void 0; - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0], "react")); - - var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./../../node_modules/react-transform-hmr/lib/index.js")); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2], "react-native"); - - var _propTypes = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "prop-types")); - - var _MaterialCommunityIcons = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "react-native-vector-icons/MaterialCommunityIcons")); - - var _Constants = _$$_REQUIRE(_dependencyMap[5], "../config/Constants"); - - var _jsxFileName = "/Users/wimselles/contributions/wdioDemoApp/js/components/SliderEntry.js"; - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); } - - function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - 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, descriptor.key, descriptor); } } - - function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - - function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - - function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - - function _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); } - - var _components = { - SliderEntry: { - displayName: "SliderEntry" - } - }; - - var _node_modulesReactTransformHmrLibIndexJs2 = (0, _index.default)({ - filename: "/Users/wimselles/contributions/wdioDemoApp/js/components/SliderEntry.js", - components: _components, - locals: [module], - imports: [_react.default] - }); - - function _wrapComponent(id) { - return function (Component) { - return _node_modulesReactTransformHmrLibIndexJs2(Component, id); - }; - } - - var itemHorizontalMargin = Math.round(_Constants.WINDOW_WIDTH * 0.02); - var SLIDE_WIDTH = Math.round(_Constants.WINDOW_WIDTH * 0.75) + itemHorizontalMargin * 2; - exports.SLIDE_WIDTH = SLIDE_WIDTH; - - var SliderEntry = function (_Component) { - function SliderEntry() { - _classCallCheck(this, SliderEntry); - - return _possibleConstructorReturn(this, _getPrototypeOf(SliderEntry).apply(this, arguments)); - } - - _createClass(SliderEntry, [{ - key: "render", - value: function render() { - var _this$props$data = this.props.data, - icon = _this$props$data.icon, - title = _this$props$data.title, - subtitle = _this$props$data.subtitle, - link = _this$props$data.link; - return _react.default.createElement(_reactNative.TouchableOpacity, { - activeOpacity: 1, - style: styles.slideInnerContainer, - onPress: function onPress() { - return _reactNative.Linking.openURL(link); - }, - __source: { - fileName: _jsxFileName, - lineNumber: 25 - } - }, _react.default.createElement(_reactNative.View, { - style: styles.slideIconContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 30 - } - }, _react.default.createElement(_MaterialCommunityIcons.default, { - name: icon, - size: 150, - style: styles.slideIcon, - __source: { - fileName: _jsxFileName, - lineNumber: 31 - } - })), _react.default.createElement(_reactNative.View, { - style: styles.slideTextContainer, - __source: { - fileName: _jsxFileName, - lineNumber: 33 - } - }, _react.default.createElement(_reactNative.Text, { - style: styles.slideTitle, - numberOfLines: 2, - __source: { - fileName: _jsxFileName, - lineNumber: 34 - } - }, title.toUpperCase()), _react.default.createElement(_reactNative.Text, { - style: styles.slideSubtitle, - numberOfLines: 4, - __source: { - fileName: _jsxFileName, - lineNumber: 35 - } - }, subtitle))); - } - }]); - - _inherits(SliderEntry, _Component); - - return SliderEntry; - }(_react.Component); - - SliderEntry.propTypes = { - data: _propTypes.default.object.isRequired - }; - SliderEntry = _wrapComponent("SliderEntry")(SliderEntry); - - var styles = _reactNative.StyleSheet.create({ - slideInnerContainer: { - borderColor: '#ea5906', - borderWidth: 5, - alignItems: 'center', - width: SLIDE_WIDTH, - height: Math.round(_Constants.WINDOW_HEIGHT * 0.4), - paddingHorizontal: itemHorizontalMargin, - paddingTop: 18 - }, - slideIconContainer: { - flex: 1, - marginBottom: _Constants.IS_IOS ? 0 : -1 - }, - slideIcon: { - color: '#ea5906' - }, - slideTextContainer: { - paddingTop: 20, - paddingBottom: 20, - paddingHorizontal: 16 - }, - slideTitle: { - fontWeight: 'bold', - textAlign: 'center' - }, - slideSubtitle: { - marginTop: 6, - color: '#888888', - fontSize: 14, - fontStyle: 'italic', - textAlign: 'center' - } - }); - - var _default2 = SliderEntry; - exports.default = _default2; -},764,[122,161,1,143,510,508],"js/components/SliderEntry.js"); -__d(function(global, require, module, exports) { - module.exports = { - "name": "wdioDemoApp", - "displayName": "wdioDemoApp" -} -; -},3,[],"app.json"); -require(337); -require(0); -//# sourceMappingURL=http://localhost:8081/index.map?platform=android \ No newline at end of file +var __DEV__=false,__BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),process=this.process||{};process.env=process.env||{};process.env.NODE_ENV="production"; +!(function(r){'use strict';r.require=t,r.__d=function(r,t,n){if(null!=e[t])return;e[t]={dependencyMap:n,exports:void 0,factory:r,hasError:!1,isInitialized:!1}};var e='number'==typeof __NUM_MODULES__?Array(0|__NUM_MODULES__):Object.create(null);function t(r){var t=r,n=e[t];return n&&n.isInitialized?n.exports:i(t,n)}var n=!1;function i(e,t){if(!n&&r.ErrorUtils){var i;n=!0;try{i=c(e,t)}catch(e){r.ErrorUtils.reportFatalError(e)}return n=!1,i}return c(e,t)}var o=16,a=65535;function u(r){return{segmentId:r>>>o,localId:r&a}}function c(n,i){var o=r.nativeRequire;if(!i&&o){var a=u(n),c=a.segmentId;o(a.localId,c),i=e[n]}if(!i)throw Error('Requiring unknown module "'+n+'".');if(i.hasError)throw d(n,i.error);i.isInitialized=!0;var s=i.exports={},l=i,p=l.factory,f=l.dependencyMap;try{var v={exports:s};return p(r,t,v,s,f),i.factory=void 0,i.dependencyMap=void 0,i.exports=v.exports}catch(r){throw i.hasError=!0,i.error=r,i.isInitialized=!1,i.exports=void 0,r}}function d(r,e){return Error('Requiring module "'+r+'", which threw an exception: '+e)}t.unpackModuleId=u,t.packModuleId=function(r){return r.segmentId<=0||f.indexOf('description')>=0))return o(t);if(0===f.length){if(v(t)){var g=t.name?': '+t.name:'';return n.stylize('[Function'+g+']','special')}if(s(t))return n.stylize(RegExp.prototype.toString.call(t),'regexp');if(y(t))return n.stylize(Date.prototype.toString.call(t),'date');if(h(t))return o(t)}var d,b,m='',j=!1,z=['{','}'];(d=t,Array.isArray(d)&&(j=!0,z=['[',']']),v(t))&&(m=' [Function'+(t.name?': '+t.name:'')+']');return s(t)&&(m=' '+RegExp.prototype.toString.call(t)),y(t)&&(m=' '+Date.prototype.toUTCString.call(t)),h(t)&&(m=' '+o(t)),0!==f.length||j&&0!=t.length?c<0?s(t)?n.stylize(RegExp.prototype.toString.call(t),'regexp'):n.stylize('[Object]','special'):(n.seen.push(t),b=j?i(n,t,c,p,f):f.map(function(r){return u(n,t,c,p,r,j)}),n.seen.pop(),a(b,m,z)):z[0]+m+z[1]}function e(n,r){if(p(r))return n.stylize('undefined','undefined');if('string'==typeof r){var t="'"+JSON.stringify(r).replace(/^"|"$/g,'').replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(t,'string')}return f(r)?n.stylize(''+r,'number'):c(r)?n.stylize(''+r,'boolean'):l(r)?n.stylize('null','null'):void 0}function o(n){return'['+Error.prototype.toString.call(n)+']'}function i(n,r,t,e,o){for(var i=[],a=0,c=r.length;a-1&&(c=u?c.split('\n').map(function(n){return' '+n}).join('\n').substr(2):'\n'+c.split('\n').map(function(n){return' '+n}).join('\n')):c=n.stylize('[Circular]','special')),p(a)){if(u&&i.match(/^\d+$/))return c;(a=JSON.stringify(''+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=n.stylize(a,'name')):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=n.stylize(a,'string'))}return a+': '+c}function a(n,r,t){return n.reduce(function(n,r){return 0,r.indexOf('\n')>=0&&0,n+r.replace(/\u001b\[\d\d?m/g,'').length+1},0)>60?t[0]+(''===r?'':r+'\n ')+' '+n.join(',\n ')+' '+t[1]:t[0]+r+' '+n.join(', ')+' '+t[1]}function c(n){return'boolean'==typeof n}function l(n){return null===n}function f(n){return'number'==typeof n}function p(n){return void 0===n}function s(n){return g(n)&&'[object RegExp]'===d(n)}function g(n){return'object'==typeof n&&null!==n}function y(n){return g(n)&&'[object Date]'===d(n)}function h(n){return g(n)&&('[object Error]'===d(n)||n instanceof Error)}function v(n){return'function'==typeof n}function d(n){return Object.prototype.toString.call(n)}function b(n,r){return Object.prototype.hasOwnProperty.call(n,r)}return function(r,e){return t({seen:[],stylize:n},r,e.depth)}})(),t='(index)',e={trace:0,info:1,warn:2,error:3},o=[];o[e.trace]='debug',o[e.info]='log',o[e.warn]='warning',o[e.error]='error';var i=1;function u(t){return function(){var u;u=1===arguments.length&&'string'==typeof arguments[0]?arguments[0]:Array.prototype.map.call(arguments,function(n){return r(n,{depth:10})}).join(', ');var a=t;'Warning: '===u.slice(0,9)&&a>=e.error&&(a=e.warn),n.__inspectorLog&&n.__inspectorLog(o[a],u,[].slice.call(arguments),i),n.nativeLoggingHook(u,a)}}function a(n,r){return Array.apply(null,Array(r)).map(function(){return n})}if(n.nativeLoggingHook){n.console;n.console={error:u(e.error),info:u(e.info),log:u(e.info),warn:u(e.warn),trace:u(e.trace),debug:u(e.trace),table:function(r){if(!Array.isArray(r)){var o=r;for(var i in r=[],o)if(o.hasOwnProperty(i)){var u=o[i];u[t]=i,r.push(u)}}if(0!==r.length){var c=Object.keys(r[0]).sort(),l=[],f=[];c.forEach(function(n,t){f[t]=n.length;for(var e=0;e',function(){return u.applyWithGuard(r,t||this,arguments,null,n)}}};r.ErrorUtils=u})(this); +!(function(e){if(void 0===Number.EPSILON&&Object.defineProperty(Number,'EPSILON',{value:Math.pow(2,-52)}),void 0===Number.MAX_SAFE_INTEGER&&Object.defineProperty(Number,'MAX_SAFE_INTEGER',{value:Math.pow(2,53)-1}),void 0===Number.MIN_SAFE_INTEGER&&Object.defineProperty(Number,'MIN_SAFE_INTEGER',{value:-(Math.pow(2,53)-1)}),!Number.isNaN){var r=e.isNaN;Object.defineProperty(Number,'isNaN',{configurable:!0,enumerable:!1,value:function(e){return'number'==typeof e&&r(e)},writable:!0})}})(this); +String.prototype.startsWith||(String.prototype.startsWith=function(t){'use strict';if(null==this)throw TypeError();var r=String(this),n=arguments.length>1&&Number(arguments[1])||0,e=Math.min(Math.max(n,0),r.length);return r.indexOf(String(t),n)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(t){'use strict';if(null==this)throw TypeError();var r=String(this),n=r.length,e=String(t),i=arguments.length>1?Number(arguments[1])||0:n,o=Math.min(Math.max(i,0),n)-e.length;return!(o<0)&&r.lastIndexOf(e,o)===o}),String.prototype.repeat||(String.prototype.repeat=function(t){'use strict';if(null==this)throw TypeError();var r=String(this);if((t=Number(t)||0)<0||t===1/0)throw RangeError();if(1===t)return r;for(var n='';t;)1&t&&(n+=r),(t>>=1)&&(r+=r);return n}),String.prototype.includes||(String.prototype.includes=function(t,r){'use strict';return'number'!=typeof r&&(r=0),!(r+t.length>this.length)&&-1!==this.indexOf(t,r)}),String.prototype.codePointAt||(String.prototype.codePointAt=function(t){if(null==this)throw TypeError();var r=String(this),n=r.length,e=t?Number(t):0;if(Number.isNaN(e)&&(e=0),!(e<0||e>=n)){var i,o=r.charCodeAt(e);return o>=55296&&o<=56319&&n>e+1&&(i=r.charCodeAt(e+1))>=56320&&i<=57343?1024*(o-55296)+i-56320+65536:o}}); +!(function(r){function e(r,e){if(null==this)throw new TypeError('Array.prototype.findIndex called on null or undefined');if('function'!=typeof r)throw new TypeError('predicate must be a function');for(var n=Object(this),t=n.length>>>0,o=0;o=0?t=i:(t=n+i)<0&&(t=0);t2&&void 0!==arguments[2]?arguments[2]:e,o=t.superPropBase(e,r);if(o){var i=Object.getOwnPropertyDescriptor(o,r);return i.get?i.get.call(n):i.value}},t.inherits=function(e,r){if('function'!=typeof r&&null!==r)throw new TypeError('Super expression must either be null or a function');t.setPrototypeOf(e.prototype,r&&r.prototype),r&&t.setPrototypeOf(e,r)},t.construct=i,t.getPrototypeOf=a,t.assertThisInitialized=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},t.wrapNativeSuper=u,t.interopRequireDefault=function(e){return e&&e.__esModule?e:{default:e}},t.interopRequireWildcard=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t},t.objectWithoutProperties=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o},t.possibleConstructorReturn=function(e,r){return!r||'object'!=typeof r&&'function'!=typeof r?t.assertThisInitialized(e):r},t.arrayWithHoles=function(e){if(Array.isArray(e))return e},t.arrayWithoutHoles=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0?r[r.length-1]:null,l=r.length>1?r[r.length-2]:null,f='function'==typeof u,s='function'==typeof l;s&&i(f,'Cannot have a non-function arg after a function arg.');var c=f?u:null,v=s?l:null,d=f+s;r=r.slice(0,r.length-d),a.enqueueNativeCall(n,t,r,v,c)}).type=r,o}function s(e,n){return-1!==e.indexOf(n)}function c(e){var n=e||{},t=n.message,r=babelHelpers.objectWithoutProperties(n,["message"]),o=new Error(t);return o.framesToPop=1,babelHelpers.extends(o,r)}e.__fbGenNativeModule=u;var v={};if(e.nativeModuleProxy)v=e.nativeModuleProxy;else if(!e.nativeExtensions){var d=e.__fbBatchedBridgeConfig;i(d,'__fbBatchedBridgeConfig is not set, cannot invoke native modules');var h=n(o[2]);(d.remoteModuleConfig||[]).forEach(function(e,n){var t=u(e,n);t&&(t.module?v[t.name]=t.module:h(v,t.name,{get:function(){return l(t.name,n)}}))})}t.exports=v},4,[5,2,18]); +__d(function(e,r,t,c,i){'use strict';var n=new(r(i[0]));Object.defineProperty(e,'__fbBatchedBridge',{configurable:!0,value:n}),t.exports=n},5,[6]); +__d(function(e,t,l,u,s){'use strict';var a=t(s[0]),n=t(s[1]),i=(t(s[2]),t(s[3])),h=t(s[4]),o=null,r=(function(){function l(){babelHelpers.classCallCheck(this,l),this._lazyCallableModules={},this._queue=[[],[],[],0],this._successCallbacks={},this._failureCallbacks={},this._callID=0,this._lastFlush=0,this._eventLoopStartTime=(new Date).getTime(),this.callFunctionReturnFlushedQueue=this.callFunctionReturnFlushedQueue.bind(this),this.callFunctionReturnResultAndFlushedQueue=this.callFunctionReturnResultAndFlushedQueue.bind(this),this.flushedQueue=this.flushedQueue.bind(this),this.invokeCallbackAndReturnFlushedQueue=this.invokeCallbackAndReturnFlushedQueue.bind(this)}return babelHelpers.createClass(l,[{key:"callFunctionReturnFlushedQueue",value:function(e,t,l){var u=this;return this.__guard(function(){u.__callFunction(e,t,l)}),this.flushedQueue()}},{key:"callFunctionReturnResultAndFlushedQueue",value:function(e,t,l){var u,s=this;return this.__guard(function(){u=s.__callFunction(e,t,l)}),[u,this.flushedQueue()]}},{key:"invokeCallbackAndReturnFlushedQueue",value:function(e,t){var l=this;return this.__guard(function(){l.__invokeCallback(e,t)}),this.flushedQueue()}},{key:"flushedQueue",value:function(){var e=this;this.__guard(function(){e.__callImmediates()});var t=this._queue;return this._queue=[[],[],[],this._callID],t[0].length?t:null}},{key:"getEventLoopRunningTime",value:function(){return(new Date).getTime()-this._eventLoopStartTime}},{key:"registerCallableModule",value:function(e,t){this._lazyCallableModules[e]=function(){return t}}},{key:"registerLazyCallableModule",value:function(e,t){var l,u=t;this._lazyCallableModules[e]=function(){return u&&(l=u(),u=null),l}}},{key:"getCallableModule",value:function(e){var t=this._lazyCallableModules[e];return t?t():null}},{key:"enqueueNativeCall",value:function(t,l,u,s,a){(s||a)&&(s&&u.push(this._callID<<1),a&&u.push(this._callID<<1|1),this._successCallbacks[this._callID]=a,this._failureCallbacks[this._callID]=s),this._callID++,this._queue[0].push(t),this._queue[1].push(l),this._queue[2].push(u);var i=(new Date).getTime();if(e.nativeFlushQueueImmediate&&i-this._lastFlush>=5){var h=this._queue;this._queue=[[],[],[],this._callID],this._lastFlush=i,e.nativeFlushQueueImmediate(h)}n.counterEvent('pending_js_to_native_queue',this._queue[0].length),this.__spy&&this.__spy({type:1,module:t+'',method:l,args:u})}},{key:"createDebugLookup",value:function(e,t,l){}},{key:"__guard",value:function(e){if(this.__shouldPauseOnThrow())e();else try{e()}catch(e){a.reportFatalError(e)}}},{key:"__shouldPauseOnThrow",value:function(){return'undefined'!=typeof DebuggerInternal&&!0===DebuggerInternal.shouldPauseOnThrow}},{key:"__callImmediates",value:function(){n.beginEvent('JSTimers.callImmediates()'),o||(o=t(s[5])),o.callImmediates(),n.endEvent()}},{key:"__callFunction",value:function(e,t,l){this._lastFlush=(new Date).getTime(),this._eventLoopStartTime=this._lastFlush,this.__spy?n.beginEvent(e+"."+t+"("+h(l)+")"):n.beginEvent(e+"."+t+"(...)"),this.__spy&&this.__spy({type:0,module:e,method:t,args:l});var u=this.getCallableModule(e);i(!!u,'Module %s is not a registered callable module (calling %s)',e,t),i(!!u[t],'Method %s does not exist on module %s',t,e);var s=u[t].apply(u,l);return n.endEvent(),s}},{key:"__invokeCallback",value:function(e,t){this._lastFlush=(new Date).getTime(),this._eventLoopStartTime=this._lastFlush;var l=e>>>1,u=1&e?this._successCallbacks[l]:this._failureCallbacks[l];u&&(delete this._successCallbacks[l],delete this._failureCallbacks[l],u.apply(void 0,babelHelpers.toConsumableArray(t)))}}],[{key:"spy",value:function(e){l.prototype.__spy=!0===e?function(e){console.log((0===e.type?'N->JS':'JS->N')+" : "+(e.module?e.module+'.':'')+e.method+"("+JSON.stringify(e.args)+")")}:!1===e?null:e}}]),l})();l.exports=r},6,[7,8,9,2,10,11]); +__d(function(r,o,t,i,n){t.exports=r.ErrorUtils},7,[]); +__d(function(n,t,e,c,i){'use strict';t(i[0]);var o=!1,u=0,a={installReactHook:function(){!0},setEnabled:function(n){o!==n&&(o=n)},isEnabled:function(){return o},beginEvent:function(t,e){o&&(t='function'==typeof t?t():t,n.nativeTraceBeginSection(131072,t,e))},endEvent:function(){o&&n.nativeTraceEndSection(131072)},beginAsyncEvent:function(t){var e=u;return o&&(u++,t='function'==typeof t?t():t,n.nativeTraceBeginAsyncSection(131072,t,e)),e},endAsyncEvent:function(t,e){o&&(t='function'==typeof t?t():t,n.nativeTraceEndAsyncSection(131072,t,e))},counterEvent:function(t,e){o&&(t='function'==typeof t?t():t,n.nativeTraceCounter&&n.nativeTraceCounter(131072,t,e))}};e.exports=a},8,[2]); +__d(function(t,n,r,u,c){'use strict';r.exports=function(t){return t}},9,[]); +__d(function(t,n,i,e,f){'use strict';i.exports=function(t){var n,i=typeof t;if(void 0===t)n='undefined';else if(null===t)n='null';else if('string'===i)n='"'+t+'"';else if('function'===i)try{n=t.toString()}catch(t){n='[function unknown]'}else try{n=JSON.stringify(t)}catch(i){if('function'==typeof t.toString)try{n=t.toString()}catch(t){}}return n||'["'+i+'" failed to stringify]'}},10,[]); +__d(function(e,t,n,r,i){'use strict';t(i[0]),t(i[1]);var l=t(i[2]),a=t(i[3]).Timing,u=null;function o(){return u||(u=t(i[4])),u()}var c=16.666666666666668,s=[],m=[],f=[],d=[],v=[],h={},I=[],T=1,g=null,p=!1;function w(){var e=f.indexOf(null);return-1===e&&(e=f.length),e}function b(e,t){var n=T++,r=w();return f[r]=n,s[r]=e,m[r]=t,n}function k(e,n,r){t(i[5])(e<=T,'Tried to call timer with ID %s but no such timer exists.',e);var l=f.indexOf(e);if(-1!==l){var a=m[l],u=s[l];if(u&&a){'setTimeout'!==a&&'setImmediate'!==a&&'requestAnimationFrame'!==a&&'requestIdleCallback'!==a||x(l);try{'setTimeout'===a||'setInterval'===a||'setImmediate'===a?u():'requestAnimationFrame'===a?u(o()):'requestIdleCallback'===a?u({timeRemaining:function(){return Math.max(0,c-(o()-n))},didTimeout:!!r}):console.error('Tried to call a callback with invalid type: '+a)}catch(e){g?g.push(e):g=[e]}}else console.error('No callback found for timerID '+e)}}function q(){if(d.length>0){var e=d.slice();d=[];for(var t=0;t0}function x(e){f[e]=null,s[e]=null,m[e]=null,I[e]=null}function y(e){if(null!=e){var t=f.indexOf(e);if(-1!==t){x(t);var n=m[t];'setImmediate'!==n&&'requestIdleCallback'!==n&&a.deleteTimer(e)}}}var A,C={setTimeout:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i2?n-2:0),i=2;i1?t-1:0),r=1;r-1&&(v.splice(e,1),k(r,o(),!0)),delete h[r],0===v.length&&a.setSendIdleEvents(!1)},n);h[r]=i}return r},cancelIdleCallback:function(e){y(e);var t=v.indexOf(e);-1!==t&&v.splice(t,1);var n=h[e];n&&(C.clearTimeout(n),delete h[e]),0===v.length&&a.setSendIdleEvents(!1)},clearTimeout:function(e){y(e)},clearInterval:function(e){y(e)},clearImmediate:function(e){y(e);var t=d.indexOf(e);-1!==t&&d.splice(t,1)},cancelAnimationFrame:function(e){y(e)},callTimers:function(e){l(0!==e.length,'Cannot call `callTimers` with an empty list of IDs.'),g=null;for(var t=0;t1)for(var r=1;r0){var t=v.slice();v=[];for(var n=0;nU.length&&U.push(e)}function B(e,t,r,n){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var u=!1;if(null===e)u=!0;else switch(o){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case a:case y:u=!0}}if(u)return r(n,e,""===t?"."+I(e,0):t),1;if(u=0,t=""===t?".":t+":",Array.isArray(e))for(var f=0;f1&&(a-=1),a<.16666666666666666?e+6*(r-e)*a:a<.5?r:a<.6666666666666666?e+(r-e)*(.6666666666666666-a)*6:e}function t(e,r,a){var l=a<.5?a*(1+r):a+r-a*r,n=2*a-l,t=i(n,l,e+.3333333333333333),o=i(n,l,e),u=i(n,l,e-.3333333333333333);return Math.round(255*t)<<24|Math.round(255*o)<<16|Math.round(255*u)<<8}var o,u='[-+]?\\d*\\.?\\d+',d="[-+]?\\d*\\.?\\d+%";function g(){for(var e=arguments.length,r=new Array(e),a=0;a255?255:r}function h(e){return(parseFloat(e)%360+360)%360/360}function c(e){var r=parseFloat(e);return r<0?0:r>1?255:Math.round(255*r)}function b(e){var r=parseFloat(e);return r<0?0:r>100?1:r/100}var m={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199};a.exports=function(e){var r,a=(void 0===o&&(o={rgb:new RegExp('rgb'+g(u,u,u)),rgba:new RegExp('rgba'+g(u,u,u,u)),hsl:new RegExp('hsl'+g(u,d,d)),hsla:new RegExp('hsla'+g(u,d,d,u)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),o);return'number'==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(r=a.hex6.exec(e))?parseInt(r[1]+'ff',16)>>>0:m.hasOwnProperty(e)?m[e]:(r=a.rgb.exec(e))?(s(r[1])<<24|s(r[2])<<16|s(r[3])<<8|255)>>>0:(r=a.rgba.exec(e))?(s(r[1])<<24|s(r[2])<<16|s(r[3])<<8|c(r[4]))>>>0:(r=a.hex3.exec(e))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+'ff',16)>>>0:(r=a.hex8.exec(e))?parseInt(r[1],16)>>>0:(r=a.hex4.exec(e))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+r[4]+r[4],16)>>>0:(r=a.hsl.exec(e))?(255|t(h(r[1]),b(r[2]),b(r[3])))>>>0:(r=a.hsla.exec(e))?(t(h(r[1]),b(r[2]),b(r[3]))|c(r[4]))>>>0:null}},39,[]); +__d(function(l,n,t,e,r){'use strict';var u=n(r[0])({contain:null,cover:null,stretch:null,center:null,repeat:null});t.exports=u},40,[41]); +__d(function(r,n,t,a,e){'use strict';var i=n(e[0]);t.exports=function(r){var n,t={};for(n in r instanceof Object&&!Array.isArray(r)||i(!1),r)r.hasOwnProperty(n)&&(t[n]=n);return t}},41,[2]); +__d(function(e,n,r,t,i){'use strict';var o=n(i[0]),f={display:o.oneOf(['none','flex']),width:o.oneOfType([o.number,o.string]),height:o.oneOfType([o.number,o.string]),start:o.oneOfType([o.number,o.string]),end:o.oneOfType([o.number,o.string]),top:o.oneOfType([o.number,o.string]),left:o.oneOfType([o.number,o.string]),right:o.oneOfType([o.number,o.string]),bottom:o.oneOfType([o.number,o.string]),minWidth:o.oneOfType([o.number,o.string]),maxWidth:o.oneOfType([o.number,o.string]),minHeight:o.oneOfType([o.number,o.string]),maxHeight:o.oneOfType([o.number,o.string]),margin:o.oneOfType([o.number,o.string]),marginVertical:o.oneOfType([o.number,o.string]),marginHorizontal:o.oneOfType([o.number,o.string]),marginTop:o.oneOfType([o.number,o.string]),marginBottom:o.oneOfType([o.number,o.string]),marginLeft:o.oneOfType([o.number,o.string]),marginRight:o.oneOfType([o.number,o.string]),marginStart:o.oneOfType([o.number,o.string]),marginEnd:o.oneOfType([o.number,o.string]),padding:o.oneOfType([o.number,o.string]),paddingVertical:o.oneOfType([o.number,o.string]),paddingHorizontal:o.oneOfType([o.number,o.string]),paddingTop:o.oneOfType([o.number,o.string]),paddingBottom:o.oneOfType([o.number,o.string]),paddingLeft:o.oneOfType([o.number,o.string]),paddingRight:o.oneOfType([o.number,o.string]),paddingStart:o.oneOfType([o.number,o.string]),paddingEnd:o.oneOfType([o.number,o.string]),borderWidth:o.number,borderTopWidth:o.number,borderStartWidth:o.number,borderEndWidth:o.number,borderRightWidth:o.number,borderBottomWidth:o.number,borderLeftWidth:o.number,position:o.oneOf(['absolute','relative']),flexDirection:o.oneOf(['row','row-reverse','column','column-reverse']),flexWrap:o.oneOf(['wrap','nowrap','wrap-reverse']),justifyContent:o.oneOf(['flex-start','flex-end','center','space-between','space-around','space-evenly']),alignItems:o.oneOf(['flex-start','flex-end','center','stretch','baseline']),alignSelf:o.oneOf(['auto','flex-start','flex-end','center','stretch','baseline']),alignContent:o.oneOf(['flex-start','flex-end','center','stretch','space-between','space-around']),overflow:o.oneOf(['visible','hidden','scroll']),flex:o.number,flexGrow:o.number,flexShrink:o.number,flexBasis:o.oneOfType([o.number,o.string]),aspectRatio:o.number,zIndex:o.number,direction:o.oneOf(['inherit','ltr','rtl'])};r.exports=f},42,[43]); +__d(function(n,o,t,_,c){t.exports=o(c[0])()},43,[44]); +__d(function(e,r,t,o,n){'use strict';var a=r(n[0]);function p(){}t.exports=function(){function e(e,r,t,o,n,p){if(p!==a){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name='Invariant Violation',c}}function r(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r};return t.checkPropTypes=p,t.PropTypes=t,t}},44,[45]); +__d(function(_,t,E,O,S){'use strict';E.exports='SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'},45,[]); +__d(function(s,e,a,h,o){'use strict';var r=e(o[0]),t=e(o[1]),d={shadowColor:r,shadowOffset:t.shape({width:t.number,height:t.number}),shadowOpacity:t.number,shadowRadius:t.number};a.exports=d},46,[38,43]); +__d(function(e,r,t,s,a){'use strict';var n=r(a[0]),o=r(a[1]),p={transform:n.arrayOf(n.oneOfType([n.shape({perspective:n.number}),n.shape({rotate:n.string}),n.shape({rotateX:n.string}),n.shape({rotateY:n.string}),n.shape({rotateZ:n.string}),n.shape({scale:n.number}),n.shape({scaleX:n.number}),n.shape({scaleY:n.number}),n.shape({translateX:n.number}),n.shape({translateY:n.number}),n.shape({skewX:n.string}),n.shape({skewY:n.string})])),transformMatrix:function(e,r,t){if(e[r])return new Error("The transformMatrix style property is deprecated. Use `transform: [{ matrix: ... }]` instead.")},decomposedMatrix:function(e,r,t){if(e[r])return new Error("The decomposedMatrix style property is deprecated. Use `transform: [...]` instead.")},scaleX:o(n.number,'Use the transform prop instead.'),scaleY:o(n.number,'Use the transform prop instead.'),rotation:o(n.number,'Use the transform prop instead.'),translateX:o(n.number,'Use the transform prop instead.'),translateY:o(n.number,'Use the transform prop instead.')};t.exports=p},47,[43,48]); +__d(function(n,e,r,t,o){'use strict';var a=e(o[0]);r.exports=function(n,e){return function(r,t,o){a[o]||void 0===r[t]||console.warn("`"+t+"` supplied to `"+o+"` has been deprecated. "+e);for(var c=arguments.length,i=new Array(c>3?c-3:0),u=3;u2?n-2:0),r=2;r>>8)>>>0,r|=0):void 0}},52,[12,39]); +__d(function(t,n,r,u,c){'use strict';n(c[0]),n(c[1]),n(c[2]),n(c[3]);r.exports=function(t){return t}},53,[54,12,2,10]); +__d(function(t,e,n,a,r){'use strict';var o=e(r[0]),i={createIdentityMatrix:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},createCopy:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]},createOrthographic:function(t,e,n,a,r,o){return[2/(e-t),0,0,0,0,2/(a-n),0,0,0,0,-2/(o-r),0,-(e+t)/(e-t),-(a+n)/(a-n),-(o+r)/(o-r),1]},createFrustum:function(t,e,n,a,r,o){var i=1/(e-t),u=1/(a-n),s=1/(r-o);return[r*i*2,0,0,0,0,r*u*2,0,0,(e+t)*i,(a+n)*u,(o+r)*s,-1,0,0,o*r*s*2,0]},createPerspective:function(t,e,n,a){var r=1/Math.tan(t/2),o=1/(n-a);return[r/e,0,0,0,0,r,0,0,0,0,(a+n)*o,-1,0,0,a*n*o*2,0]},createTranslate2d:function(t,e){var n=i.createIdentityMatrix();return i.reuseTranslate2dCommand(n,t,e),n},reuseTranslate2dCommand:function(t,e,n){t[12]=e,t[13]=n},reuseTranslate3dCommand:function(t,e,n,a){t[12]=e,t[13]=n,t[14]=a},createScale:function(t){var e=i.createIdentityMatrix();return i.reuseScaleCommand(e,t),e},reuseScaleCommand:function(t,e){t[0]=e,t[5]=e},reuseScale3dCommand:function(t,e,n,a){t[0]=e,t[5]=n,t[10]=a},reusePerspectiveCommand:function(t,e){t[11]=-1/e},reuseScaleXCommand:function(t,e){t[0]=e},reuseScaleYCommand:function(t,e){t[5]=e},reuseScaleZCommand:function(t,e){t[10]=e},reuseRotateXCommand:function(t,e){t[5]=Math.cos(e),t[6]=Math.sin(e),t[9]=-Math.sin(e),t[10]=Math.cos(e)},reuseRotateYCommand:function(t,e){t[0]=Math.cos(e),t[2]=-Math.sin(e),t[8]=Math.sin(e),t[10]=Math.cos(e)},reuseRotateZCommand:function(t,e){t[0]=Math.cos(e),t[1]=Math.sin(e),t[4]=-Math.sin(e),t[5]=Math.cos(e)},createRotateZ:function(t){var e=i.createIdentityMatrix();return i.reuseRotateZCommand(e,t),e},reuseSkewXCommand:function(t,e){t[4]=Math.tan(e)},reuseSkewYCommand:function(t,e){t[1]=Math.tan(e)},multiplyInto:function(t,e,n){var a=e[0],r=e[1],o=e[2],i=e[3],u=e[4],s=e[5],c=e[6],m=e[7],v=e[8],l=e[9],f=e[10],d=e[11],h=e[12],M=e[13],C=e[14],p=e[15],T=n[0],x=n[1],y=n[2],b=n[3];t[0]=T*a+x*u+y*v+b*h,t[1]=T*r+x*s+y*l+b*M,t[2]=T*o+x*c+y*f+b*C,t[3]=T*i+x*m+y*d+b*p,T=n[4],x=n[5],y=n[6],b=n[7],t[4]=T*a+x*u+y*v+b*h,t[5]=T*r+x*s+y*l+b*M,t[6]=T*o+x*c+y*f+b*C,t[7]=T*i+x*m+y*d+b*p,T=n[8],x=n[9],y=n[10],b=n[11],t[8]=T*a+x*u+y*v+b*h,t[9]=T*r+x*s+y*l+b*M,t[10]=T*o+x*c+y*f+b*C,t[11]=T*i+x*m+y*d+b*p,T=n[12],x=n[13],y=n[14],b=n[15],t[12]=T*a+x*u+y*v+b*h,t[13]=T*r+x*s+y*l+b*M,t[14]=T*o+x*c+y*f+b*C,t[15]=T*i+x*m+y*d+b*p},determinant:function(t){var e=babelHelpers.slicedToArray(t,16),n=e[0],a=e[1],r=e[2],o=e[3],i=e[4],u=e[5],s=e[6],c=e[7],m=e[8],v=e[9],l=e[10],f=e[11],d=e[12],h=e[13],M=e[14],C=e[15];return o*s*v*d-r*c*v*d-o*u*l*d+a*c*l*d+r*u*f*d-a*s*f*d-o*s*m*h+r*c*m*h+o*i*l*h-n*c*l*h-r*i*f*h+n*s*f*h+o*u*m*M-a*c*m*M-o*i*v*M+n*c*v*M+a*i*f*M-n*u*f*M-r*u*m*C+a*s*m*C+r*i*v*C-n*s*v*C-a*i*l*C+n*u*l*C},inverse:function(t){var e=i.determinant(t);if(!e)return t;var n=babelHelpers.slicedToArray(t,16),a=n[0],r=n[1],o=n[2],u=n[3],s=n[4],c=n[5],m=n[6],v=n[7],l=n[8],f=n[9],d=n[10],h=n[11],M=n[12],C=n[13],p=n[14],T=n[15];return[(m*h*C-v*d*C+v*f*p-c*h*p-m*f*T+c*d*T)/e,(u*d*C-o*h*C-u*f*p+r*h*p+o*f*T-r*d*T)/e,(o*v*C-u*m*C+u*c*p-r*v*p-o*c*T+r*m*T)/e,(u*m*f-o*v*f-u*c*d+r*v*d+o*c*h-r*m*h)/e,(v*d*M-m*h*M-v*l*p+s*h*p+m*l*T-s*d*T)/e,(o*h*M-u*d*M+u*l*p-a*h*p-o*l*T+a*d*T)/e,(u*m*M-o*v*M-u*s*p+a*v*p+o*s*T-a*m*T)/e,(o*v*l-u*m*l+u*s*d-a*v*d-o*s*h+a*m*h)/e,(c*h*M-v*f*M+v*l*C-s*h*C-c*l*T+s*f*T)/e,(u*f*M-r*h*M-u*l*C+a*h*C+r*l*T-a*f*T)/e,(r*v*M-u*c*M+u*s*C-a*v*C-r*s*T+a*c*T)/e,(u*c*l-r*v*l-u*s*f+a*v*f+r*s*h-a*c*h)/e,(m*f*M-c*d*M-m*l*C+s*d*C+c*l*p-s*f*p)/e,(r*d*M-o*f*M+o*l*C-a*d*C-r*l*p+a*f*p)/e,(o*c*M-r*m*M-o*s*C+a*m*C+r*s*p-a*c*p)/e,(r*m*l-o*c*l+o*s*f-a*m*f-r*s*d+a*c*d)/e]},transpose:function(t){return[t[0],t[4],t[8],t[12],t[1],t[5],t[9],t[13],t[2],t[6],t[10],t[14],t[3],t[7],t[11],t[15]]},multiplyVectorByMatrix:function(t,e){var n=babelHelpers.slicedToArray(t,4),a=n[0],r=n[1],o=n[2],i=n[3];return[a*e[0]+r*e[4]+o*e[8]+i*e[12],a*e[1]+r*e[5]+o*e[9]+i*e[13],a*e[2]+r*e[6]+o*e[10]+i*e[14],a*e[3]+r*e[7]+o*e[11]+i*e[15]]},v3Length:function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2])},v3Normalize:function(t,e){var n=1/(e||i.v3Length(t));return[t[0]*n,t[1]*n,t[2]*n]},v3Dot:function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},v3Combine:function(t,e,n,a){return[n*t[0]+a*e[0],n*t[1]+a*e[1],n*t[2]+a*e[2]]},v3Cross:function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]},quaternionToDegreesXYZ:function(t,e,n){var a=babelHelpers.slicedToArray(t,4),r=a[0],o=a[1],u=a[2],s=a[3],c=r*r,m=o*o,v=u*u,l=r*o+u*s,f=s*s+c+m+v,d=180/Math.PI;return l>.49999*f?[0,2*Math.atan2(r,s)*d,90]:l<-.49999*f?[0,-2*Math.atan2(r,s)*d,-90]:[i.roundTo3Places(Math.atan2(2*r*s-2*o*u,1-2*c-2*v)*d),i.roundTo3Places(Math.atan2(2*o*s-2*r*u,1-2*m-2*v)*d),i.roundTo3Places(Math.asin(2*r*o+2*u*s)*d)]},roundTo3Places:function(t){var e=t.toString().split('e');return.001*Math.round(e[0]+'e'+(e[1]?+e[1]-3:3))},decomposeMatrix:function(t){o(16===t.length,'Matrix decomposition needs a list of 3d matrix values, received %s',t);var e=[],n=[],a=[],r=[],u=[];if(t[15]){for(var s=[],c=[],m=0;m<4;m++){s.push([]);for(var v=0;v<4;v++){var l=t[4*m+v]/t[15];s[m].push(l),c.push(3===v?0:l)}}if(c[15]=1,i.determinant(c)){if(0!==s[0][3]||0!==s[1][3]||0!==s[2][3]){var f=[s[0][3],s[1][3],s[2][3],s[3][3]],d=i.inverse(c),h=i.transpose(d);e=i.multiplyVectorByMatrix(f,h)}else e[0]=e[1]=e[2]=0,e[3]=1;for(m=0;m<3;m++)u[m]=s[3][m];var M=[];for(m=0;m<3;m++)M[m]=[s[m][0],s[m][1],s[m][2]];a[0]=i.v3Length(M[0]),M[0]=i.v3Normalize(M[0],a[0]),r[0]=i.v3Dot(M[0],M[1]),M[1]=i.v3Combine(M[1],M[0],1,-r[0]),r[0]=i.v3Dot(M[0],M[1]),M[1]=i.v3Combine(M[1],M[0],1,-r[0]),a[1]=i.v3Length(M[1]),M[1]=i.v3Normalize(M[1],a[1]),r[0]/=a[1],r[1]=i.v3Dot(M[0],M[2]),M[2]=i.v3Combine(M[2],M[0],1,-r[1]),r[2]=i.v3Dot(M[1],M[2]),M[2]=i.v3Combine(M[2],M[1],1,-r[2]),a[2]=i.v3Length(M[2]),M[2]=i.v3Normalize(M[2],a[2]),r[1]/=a[2],r[2]/=a[2];var C,p=i.v3Cross(M[1],M[2]);if(i.v3Dot(M[0],p)<0)for(m=0;m<3;m++)a[m]*=-1,M[m][0]*=-1,M[m][1]*=-1,M[m][2]*=-1;return n[0]=.5*Math.sqrt(Math.max(1+M[0][0]-M[1][1]-M[2][2],0)),n[1]=.5*Math.sqrt(Math.max(1-M[0][0]+M[1][1]-M[2][2],0)),n[2]=.5*Math.sqrt(Math.max(1-M[0][0]-M[1][1]+M[2][2],0)),n[3]=.5*Math.sqrt(Math.max(1+M[0][0]+M[1][1]+M[2][2],0)),M[2][1]>M[1][2]&&(n[0]=-n[0]),M[0][2]>M[2][0]&&(n[1]=-n[1]),M[1][0]>M[0][1]&&(n[2]=-n[2]),{rotationDegrees:C=n[0]<.001&&n[0]>=0&&n[1]<.001&&n[1]>=0?[0,0,i.roundTo3Places(180*Math.atan2(M[0][1],M[0][0])/Math.PI)]:i.quaternionToDegreesXYZ(n,s,M),perspective:e,quaternion:n,scale:a,skew:r,translation:u,rotate:C[2],rotateX:C[0],rotateY:C[1],scaleX:a[0],scaleY:a[1],translateX:u[0],translateY:u[1]}}}}};n.exports=i},54,[2]); +__d(function(t,i,h,d,e){'use strict';var n={width:void 0,height:void 0};h.exports=function(t,i){return(t=t||n)!==(i=i||n)&&(t.width!==i.width||t.height!==i.height)}},55,[]); +__d(function(e,l,a,t,d){'use strict';var i=l(d[0]),n=l(d[1]),r=l(d[2]),s=(l(d[3]),(function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"validateStyleProp",value:function(e,l,a){}},{key:"validateStyle",value:function(e,l){}},{key:"addValidStylePropTypes",value:function(e){for(var l in e)o[l]=e[l]}}]),e})()),o={};s.addValidStylePropTypes(i),s.addValidStylePropTypes(n),s.addValidStylePropTypes(r),a.exports=s},56,[37,50,51,2]); +__d(function(r,t,n,f,i){'use strict';n.exports=function r(t){if(null!==t&&'object'==typeof t){if(!Array.isArray(t))return t;for(var n={},f=0,i=t.length;f=r)return e[t];return e[e.length-1]||1}}]),e})();t.exports=c},68,[33,12,69,2]); +__d(function(e,r,t,n,s){'use strict';function a(e){switch(e){case.75:return'ldpi';case 1:return'mdpi';case 1.5:return'hdpi';case 2:return'xhdpi';case 3:return'xxhdpi';case 4:return'xxxhdpi'}throw new Error('no such scale')}var i=new Set(['gif','jpeg','jpg','png','svg','webp','xml']);function o(e){var r=e.httpServerLocation;return'/'===r[0]&&(r=r.substr(1)),r}t.exports={getAndroidAssetSuffix:a,getAndroidResourceFolderName:function(e,r){if(!i.has(e.type))return'raw';var t=a(r);if(!t)throw new Error("Don't know which android drawable suffix to use for asset: "+JSON.stringify(e));return'drawable-'+t},getAndroidResourceIdentifier:function(e){return(o(e)+'/'+e.name).toLowerCase().replace(/\//g,'_').replace(/([^a-z0-9_])/g,'').replace(/^assets_/,'')},getBasePath:o}},69,[]); +__d(function(e,r,t,n,a){'use strict';var l=r(a[0]),o=r(a[1]),s=r(a[2]),i=r(a[3]),p=r(a[4]),b=(function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(r).apply(this,arguments))}return babelHelpers.createClass(r,[{key:"render",value:function(){var e=this.props,r=e.forwardedRef,t=babelHelpers.objectWithoutProperties(e,["forwardedRef"]);return s.createElement(f,babelHelpers.extends({},t,{ref:r}))}}]),babelHelpers.inherits(r,e),r})(s.Component);b.propTypes=babelHelpers.objectSpread({},i,{styleAttr:o.oneOf(['Horizontal','Normal','Small','Large','Inverse','SmallInverse','LargeInverse']),animating:o.bool,indeterminate:function(e,r,t){for(var n=arguments.length,a=new Array(n>3?n-3:0),l=3;l4?u-4:0),v=4;v5?d-5:0),f=5;f4?o-4:0),l=4;l must be a child of a '),a.createElement(H,{opacity:W(e),transform:A(e)},this.props.children)}}]),babelHelpers.inherits(t,e),t})(a.Component);P.contextTypes={isInSurface:u.bool.isRequired};var O=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props,t=[T(e.x,0),T(e.y,0),T(e.width,0),T(e.height,0)],r=h(e);return delete r.x,delete r.y,a.createElement(H,{clipping:t,opacity:W(e),transform:A(r)},this.props.children)}}]),babelHelpers.inherits(t,e),t})(a.Component),J=0,V=1,G=2,I=3;function N(e,t,r){var n=new l(e);t[r+0]=n.red/255,t[r+1]=n.green/255,t[r+2]=n.blue/255,t[r+3]=n.alpha}function z(e,t,r){var n=0;if('length'in e)for(;nY?(p-=v,c-=X):l>0&&0!=Y&&(p-=l/Y*v,c-=l/Y*X),a=p*p+c*c,(l=(p=s-t)*v+(c=h-i)*X)>Y?(p-=v,c-=X):l>0&&0!=Y&&(p-=l/Y*v,c-=l/Y*X),u=p*p+c*c,a<.01&&u<.01)this.onLine(t,i,o,r);else{if(isNaN(a)||isNaN(u))throw new Error('Bad input');var f=.5*(n+s),M=.5*(e+h),b=.5*(n+t),T=.5*(e+i),k=.5*(b+f),w=.5*(T+M),_=.5*(o+s),D=.5*(r+h),z=.5*(_+f),C=.5*(D+M),m=.5*(k+z),B=.5*(w+C);this.onBezierCurve(t,i,b,T,k,w,m,B),this.onBezierCurve(m,B,z,C,_,D,o,r)}},onArc:function(t,i,n,e,s,h,o,r,a,u,p,c){var l=c?c*Math.PI/180:0,v=Math.cos(l),X=Math.sin(l),Y=v*o,f=-X*r,M=X*o,b=v*r,T=u-a;T<0&&!p?T+=2*Math.PI:T>0&&p&&(T-=2*Math.PI);for(var k=Math.ceil(Math.abs(T/(Math.PI/2))),w=T/k,_=1.3333333333333333*Math.tan(w/4),D=Math.cos(a),z=Math.sin(a),C=0;Ci.yy/i.xy?-1:1;return(i.xx<0?i.xy>=0:i.xy<0)&&(n=-n),this.rotate(t-180*Math.atan2(n*i.yx,n*i.xx)/Math.PI,x,y)},scaleTo:function(t,x){var y=this,i=Math.sqrt(y.xx*y.xx+y.yx*y.yx);return y.xx/=i,y.yx/=i,i=Math.sqrt(y.yy*y.yy+y.xy*y.xy),y.yy/=i,y.xy/=i,this.scale(t,x)},resizeTo:function(t,x){var y=this.width,i=this.height;return y&&i?this.scaleTo(t/y,x/i):this},inversePoint:function(t,x){var y=this.xx,i=this.yx,n=this.xy,r=this.yy,s=this.x,h=this.y,o=i*n-y*r;return 0==o?null:{x:(r*(s-t)+n*(x-h))/o,y:(y*(h-x)+i*(t-s))/o}},point:function(t,x){var y=this;return{x:y.xx*t+y.xy*x+y.x,y:y.yx*t+y.yy*x+y.y}}})},86,[84]); +__d(function(e,i,s,t,c){'use strict';var a=i(c[0]),o={};o.UIView={pointerEvents:!0,accessible:!0,accessibilityActions:!0,accessibilityLabel:!0,accessibilityComponentType:!0,accessibilityLiveRegion:!0,accessibilityTraits:!0,importantForAccessibility:!0,nativeID:!0,testID:!0,renderToHardwareTextureAndroid:!0,shouldRasterizeIOS:!0,onLayout:!0,onAccessibilityAction:!0,onAccessibilityTap:!0,onMagicTap:!0,collapsable:!0,needsOffscreenAlphaCompositing:!0,style:a},o.RCTView=babelHelpers.objectSpread({},o.UIView,{removeClippedSubviews:!0}),s.exports=o},87,[36]); +__d(function(e,t,s,r,o){'use strict';var i=t(o[0]),a=(t(o[1]),t(o[2])),l=t(o[3]),n=t(o[4]),b=t(o[5]),c=t(o[6]),u=(t(o[7]),t(o[8])),d=t(o[9]),p=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props,t=e.accessibilityLabel,s=e.color,r=e.onPress,o=e.title,i=e.hasTVPreferredFocus,l=e.disabled,n=e.testID,p=[h.button],f=[h.text];s&&p.push({backgroundColor:s});var y=['button'];l&&(p.push(h.buttonDisabled),f.push(h.textDisabled),y.push('disabled')),d('string'==typeof o,'The title prop of a Button must be a string');var g=o.toUpperCase(),C=c;return a.createElement(C,{accessibilityComponentType:"button",accessibilityLabel:t,accessibilityTraits:y,hasTVPreferredFocus:i,testID:n,disabled:l,onPress:r},a.createElement(u,{style:p},a.createElement(b,{style:f,disabled:l},g)))}}]),babelHelpers.inherits(t,e),t})(a.Component);p.propTypes={title:l.string.isRequired,accessibilityLabel:l.string,color:i,disabled:l.bool,hasTVPreferredFocus:l.bool,onPress:l.func.isRequired,testID:l.string};var h=n.create({button:{elevation:4,backgroundColor:'#2196F3',borderRadius:2},text:{color:'white',textAlign:'center',padding:8,fontWeight:'500'},buttonDisabled:{elevation:0,backgroundColor:'#dfdfdf'},textDisabled:{color:'#a1a1a1'}});s.exports=p},88,[38,12,25,43,32,89,158,164,58,2]); +__d(function(e,n,t,r,s){'use strict';var l=n(s[0]),o=n(s[1]),a=n(s[2]),i=n(s[3]),p=n(s[4]),u=n(s[5]),d=n(s[6]),c=n(s[7]),b=n(s[8]),h={top:20,left:20,right:20,bottom:30},f={validAttributes:babelHelpers.objectSpread({},o.UIView,{isHighlighted:!0,numberOfLines:!0,ellipsizeMode:!0,allowFontScaling:!0,disabled:!0,selectable:!0,selectionColor:!0,adjustsFontSizeToFit:!0,minimumFontScale:!0,textBreakStrategy:!0}),uiViewClassName:'RCTText'},R=(function(e){function n(){var e,t,r;babelHelpers.classCallCheck(this,n);for(var s=arguments.length,l=new Array(s),o=0;o10&&this._cancelLongPressDelayTimeout();if(l>t.left-i&&T>t.top-_&&lthis.eventPool.length&&this.eventPool.push(e)}function G(e){e.eventPool=[],e.getPooled=X,e.release=$}babelHelpers.extends(Y.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=V)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=V)},persist:function(){this.isPersistent=V},isPersistent:Q,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;to||(a=o),We(a,e,i)}}}),E=Ce,_=Ee,C=_e,ve.injection.injectGlobalResponderHandler({onChange:function(e,t,n){null!==t?l.setJSResponder(t.stateNode._nativeTag,n):l.clearJSResponder()}});var Oe=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Fe="function"==typeof Symbol&&("function"==typeof Symbol?Symbol.for:"@@for"),je=Fe?("function"==typeof Symbol?Symbol.for:"@@for")("react.element"):60103,De=Fe?("function"==typeof Symbol?Symbol.for:"@@for")("react.portal"):60106,He=Fe?("function"==typeof Symbol?Symbol.for:"@@for")("react.fragment"):60107,Be=Fe?("function"==typeof Symbol?Symbol.for:"@@for")("react.strict_mode"):60108,Le=Fe?("function"==typeof Symbol?Symbol.for:"@@for")("react.profiler"):60114,Ve=Fe?("function"==typeof Symbol?Symbol.for:"@@for")("react.provider"):60109,Qe=Fe?("function"==typeof Symbol?Symbol.for:"@@for")("react.context"):60110,Ye=Fe?("function"==typeof Symbol?Symbol.for:"@@for")("react.async_mode"):60111,Xe=Fe?("function"==typeof Symbol?Symbol.for:"@@for")("react.forward_ref"):60112,$e=Fe?("function"==typeof Symbol?Symbol.for:"@@for")("react.timeout"):60113,Ge="function"==typeof Symbol&&("function"==typeof Symbol?Symbol.iterator:"@@iterator");function qe(e){return null===e||void 0===e?null:"function"==typeof(e=Ge&&e[Ge]||e["@@iterator"])?e:null}function Je(e){var t=e.type;if("function"==typeof t)return t.displayName||t.name;if("string"==typeof t)return t;switch(t){case Ye:return"AsyncMode";case Qe:return"Context.Consumer";case He:return"ReactFragment";case De:return"ReactPortal";case Le:return"Profiler("+e.pendingProps.id+")";case Ve:return"Context.Provider";case Be:return"StrictMode";case $e:return"Timeout"}if("object"==typeof t&&null!==t)switch(t.$$typeof){case Xe:return""!==(e=t.render.displayName||t.render.name||"")?"ForwardRef("+e+")":"ForwardRef"}return null}function Ke(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function Ze(e){a(2===Ke(e),"Unable to find node on an unmounted component.")}function et(e){var t=e.alternate;if(!t)return t=Ke(e),a(3!==t,"Unable to find node on an unmounted component."),1===t?null:e;for(var n=e,r=t;;){var i=n.return,o=i?i.alternate:null;if(!i||!o)break;if(i.child===o.child){for(var l=i.child;l;){if(l===n)return Ze(i),e;if(l===r)return Ze(i),t;l=l.sibling}a(!1,"Unable to find node on an unmounted component.")}if(n.return!==r.return)n=i,r=o;else{l=!1;for(var u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}if(!l){for(u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}a(l,"Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}a(n.alternate===r,"Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}return a(3===n.tag,"Unable to find node on an unmounted component."),n.stateNode.current===n?e:t}function tt(e){if(!(e=et(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var nt={},rt=null,it=0;function at(e,t,n){if(Array.isArray(t))for(var r=t.length;r--&&0kt||(e.current=Pt[kt],Pt[kt]=null,kt--)}function Ct(e,t){Pt[++kt]=e.current,e.current=t}var Rt=Et(c),wt=Et(!1),Nt=c;function Ut(e){return zt(e)?Nt:Rt.current}function At(e,t){var n=e.type.contextTypes;if(!n)return c;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function zt(e){return 2===e.tag&&null!=e.type.childContextTypes}function It(e){zt(e)&&(_t(wt),_t(Rt))}function Mt(e){_t(wt),_t(Rt)}function Wt(e,t,n){a(Rt.current===c,"Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue."),Ct(Rt,t),Ct(wt,n)}function Ot(e,t){var n=e.stateNode,r=e.type.childContextTypes;if("function"!=typeof n.getChildContext)return t;for(var i in n=n.getChildContext())a(i in r,'%s.getChildContext(): key "%s" is not defined in childContextTypes.',Je(e)||"Unknown",i);return babelHelpers.extends({},t,n)}function Ft(e){if(!zt(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||c,Nt=Rt.current,Ct(Rt,t),Ct(wt,wt.current),!0}function jt(e,t){var n=e.stateNode;if(a(n,"Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue."),t){var r=Ot(e,Nt);n.__reactInternalMemoizedMergedChildContext=r,_t(wt),_t(Rt),Ct(Rt,r)}else _t(wt);Ct(wt,t)}function Dt(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function Ht(e,t,n){var r=e.alternate;return null===r?((r=new Dt(e.tag,t,e.key,e.mode)).type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Bt(e,t,n){var r=e.type,i=e.key;if(e=e.props,"function"==typeof r)var o=r.prototype&&r.prototype.isReactComponent?2:0;else if("string"==typeof r)o=5;else switch(r){case He:return Lt(e.children,t,n,i);case Ye:o=11,t|=3;break;case Be:o=11,t|=2;break;case Le:return(r=new Dt(15,e,i,4|t)).type=Le,r.expirationTime=n,r;case $e:o=16,t|=2;break;default:e:{switch("object"==typeof r&&null!==r?r.$$typeof:null){case Ve:o=13;break e;case Qe:o=12;break e;case Xe:o=14;break e;default:a(!1,"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",null==r?r:typeof r,"")}o=void 0}}return(t=new Dt(o,e,i,t)).type=r,t.expirationTime=n,t}function Lt(e,t,n,r){return(e=new Dt(10,e,r,t)).expirationTime=n,e}function Vt(e,t,n){return(e=new Dt(6,e,null,t)).expirationTime=n,e}function Qt(e,t,n){return(t=new Dt(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yt(e,t,n){return e={current:t=new Dt(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},t.stateNode=e}var Xt=null,$t=null;function Gt(e){return function(t){try{return e(t)}catch(e){}}}function qt(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Xt=Gt(function(e){return t.onCommitFiberRoot(n,e)}),$t=Gt(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function Jt(e){"function"==typeof Xt&&Xt(e)}function Kt(e){"function"==typeof $t&&$t(e)}function Zt(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n>t?e.earliestPendingTime=t:e.latestPendingTimen)&&(e.expirationTime=n)}function ln(e,t,n){var r=e.alternate;if(null===r){var i=e.updateQueue,a=null;null===i&&(i=e.updateQueue=nn(e.memoizedState))}else i=e.updateQueue,a=r.updateQueue,null===i?null===a?(i=e.updateQueue=nn(e.memoizedState),a=r.updateQueue=nn(r.memoizedState)):i=e.updateQueue=rn(a):null===a&&(a=r.updateQueue=rn(i));null===a||i===a?on(i,t,n):null===i.lastUpdate||null===a.lastUpdate?(on(i,t,n),on(a,t,n)):(on(i,t,n),a.lastUpdate=t)}function un(e,t,n){var r=e.updateQueue;null===(r=null===r?e.updateQueue=nn(e.memoizedState):sn(e,r)).lastCapturedUpdate?r.firstCapturedUpdate=r.lastCapturedUpdate=t:(r.lastCapturedUpdate.next=t,r.lastCapturedUpdate=t),(0===r.expirationTime||r.expirationTime>n)&&(r.expirationTime=n)}function sn(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=rn(t)),t}function cn(e,t,n,r,i,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,r,i):e;case 3:e.effectTag=-1025&e.effectTag|64;case 0:if(null===(i="function"==typeof(e=n.payload)?e.call(a,r,i):e)||void 0===i)break;return babelHelpers.extends({},r,i);case 2:tn=!0}return r}function fn(e,t,n,r,i){if(tn=!1,!(0===t.expirationTime||t.expirationTime>i)){for(var a=(t=sn(e,t)).baseState,o=null,l=0,u=t.firstUpdate,s=a;null!==u;){var c=u.expirationTime;c>i?(null===o&&(o=u,a=s),(0===l||l>c)&&(l=c)):(s=cn(e,0,u,s,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=u:(t.lastEffect.nextEffect=u,t.lastEffect=u))),u=u.next}for(c=null,u=t.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f>i?(null===c&&(c=u,null===o&&(a=s)),(0===l||l>f)&&(l=f)):(s=cn(e,0,u,s,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=u:(t.lastCapturedEffect.nextEffect=u,t.lastCapturedEffect=u))),u=u.next}null===o&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===o&&null===c&&(a=s),t.baseState=a,t.firstUpdate=o,t.firstCapturedUpdate=c,t.expirationTime=l,e.memoizedState=s}}function dn(e,t){a("function"==typeof e,"Invalid argument passed as callback. Expected a function. Instead received: %s",e),e.call(t)}function pn(e,t,n){for(null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),e=t.firstEffect,t.firstEffect=t.lastEffect=null;null!==e;){var r=e.callback;null!==r&&(e.callback=null,dn(r,n)),e=e.nextEffect}for(e=t.firstCapturedEffect,t.firstCapturedEffect=t.lastCapturedEffect=null;null!==e;)null!==(t=e.callback)&&(e.callback=null,dn(t,n)),e=e.nextEffect}function hn(e,t){return{value:e,source:t,stack:St(t)}}var mn=Et(null),gn=Et(null),vn=Et(0);function yn(e){var t=e.type._context;Ct(vn,t._changedBits),Ct(gn,t._currentValue),Ct(mn,e),t._currentValue=e.pendingProps.value,t._changedBits=e.stateNode}function bn(e){var t=vn.current,n=gn.current;_t(mn),_t(gn),_t(vn),(e=e.type._context)._currentValue=n,e._changedBits=t}var Tn={},xn=Et(Tn),Sn=Et(Tn),Pn=Et(Tn);function kn(e){return a(e!==Tn,"Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function En(e,t){Ct(Pn,t),Ct(Sn,e),Ct(xn,Tn),_t(xn),Ct(xn,{isInAParentText:!1})}function _n(e){_t(xn),_t(Sn),_t(Pn)}function Cn(e){Sn.current===e&&(_t(xn),_t(Sn))}var Rn=Object.prototype.hasOwnProperty;function wn(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Nn(e,t){if(wn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;rm?(g=f,f=null):g=f.sibling;var v=p(i,f,l[m],u);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(i,f),a=o(v,a,m),null===c?s=v:c.sibling=v,c=v,f=g}if(m===l.length)return n(i,f),s;if(null===f){for(;mg?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,s);if(null===b){m||(m=v);break}e&&m&&null===b.alternate&&t(i,m),l=o(b,l,g),null===f?c=b:f.sibling=b,f=b,m=v}if(y.done)return n(i,m),c;if(null===m){for(;!y.done;g++,y=u.next())null!==(y=d(i,y.value,s))&&(l=o(y,l,g),null===f?c=y:f.sibling=y,f=y);return c}for(m=r(i,m);!y.done;g++,y=u.next())null!==(y=h(m,i,g,y.value,s))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),l=o(y,l,g),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach(function(e){return t(i,e)}),c}return function(e,r,o,u){var s="object"==typeof o&&null!==o&&o.type===He&&null===o.key;s&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case je:e:{for(c=o.key,s=r;null!==s;){if(s.key===c){if(10===s.tag?o.type===He:s.type===o.type){n(e,s.sibling),(r=i(s,o.type===He?o.props.children:o.props,u)).ref=On(e,s,o),r.return=e,e=r;break e}n(e,s);break}t(e,s),s=s.sibling}o.type===He?((r=Lt(o.props.children,e.mode,u,o.key)).return=e,e=r):((u=Bt(o,e.mode,u)).ref=On(e,r,o),u.return=e,e=u)}return l(e);case De:e:{for(s=o.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[],u)).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Qt(o,e.mode,u)).return=e,e=r}return l(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o,u)).return=e,e=r):(n(e,r),(r=Vt(o,e.mode,u)).return=e,e=r),l(e);if(Wn(o))return m(e,r,o,u);if(qe(o))return g(e,r,o,u);if(c&&Fn(e,o),void 0===o&&!s)switch(e.tag){case 2:case 1:u=e.type,a(!1,"%s(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.",u.displayName||u.name||"Component")}return n(e,r)}}var Dn=jn(!0),Hn=jn(!1),Bn=null,Ln=null,Vn=!1;function Qn(e,t){switch(e.tag){case 5:return null!==(t=vt(e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=vt(e.pendingProps))&&(e.stateNode=t,!0);default:return!1}}function Yn(e){if(Vn){var t=Ln;if(t){var n=t;if(!Qn(e,t)){if(!(t=vt())||!Qn(e,t))return e.effectTag|=2,Vn=!1,void(Bn=e);var r=Bn,i=new Dt(5,null,null,0);i.type="DELETED",i.stateNode=n,i.return=r,i.effectTag=8,null!==r.lastEffect?(r.lastEffect.nextEffect=i,r.lastEffect=i):r.firstEffect=r.lastEffect=i}Bn=e,Ln=vt()}else e.effectTag|=2,Vn=!1,Bn=e}}function Xn(e,t,n){$n(e,t,n,t.expirationTime)}function $n(e,t,n,r){t.child=null===e?Hn(t,null,n,r):Dn(t,e.child,n,r)}function Gn(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function qn(e,t,n,r,i){Gn(e,t);var a=0!=(64&t.effectTag);if(!n&&!a)return r&&jt(t,!1),er(e,t);n=t.stateNode,Oe.current=t;var o=a?null:n.render();return t.effectTag|=1,a&&($n(e,t,null,i),t.child=null),$n(e,t,o,i),t.memoizedState=n.state,t.memoizedProps=n.props,r&&jt(t,!0),t.child}function Jn(e){var t=e.stateNode;t.pendingContext?Wt(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Wt(0,t.context,!1),En(e,t.containerInfo)}function Kn(e,t,n,r){var i=e.child;for(null!==i&&(i.return=e);null!==i;){switch(i.tag){case 12:var a=0|i.stateNode;if(i.type===t&&0!=(a&n)){for(a=i;null!==a;){var o=a.alternate;if(0===a.expirationTime||a.expirationTime>r)a.expirationTime=r,null!==o&&(0===o.expirationTime||o.expirationTime>r)&&(o.expirationTime=r);else{if(null===o||!(0===o.expirationTime||o.expirationTime>r))break;o.expirationTime=r}a=a.return}a=null}else a=i.child;break;case 13:a=i.type===e.type?null:i.child;break;default:a=i.child}if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===e){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}}function Zn(e,t,n){var r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=!0;if(wt.current)o=!1;else if(a===i)return t.stateNode=0,yn(t),er(e,t);var l=i.value;if(t.memoizedProps=i,null===a)l=1073741823;else if(a.value===i.value){if(a.children===i.children&&o)return t.stateNode=0,yn(t),er(e,t);l=0}else{var u=a.value;if(u===l&&(0!==u||1/u==1/l)||u!=u&&l!=l){if(a.children===i.children&&o)return t.stateNode=0,yn(t),er(e,t);l=0}else if(l="function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,l):1073741823,0===(l|=0)){if(a.children===i.children&&o)return t.stateNode=0,yn(t),er(e,t)}else Kn(t,r,l,n)}return t.stateNode=l,yn(t),Xn(e,t,i.children),t.child}function er(e,t){if(a(null===e||t.child===e.child,"Resuming work not yet implemented."),null!==t.child){var n=Ht(e=t.child,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ht(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function tr(e,t,n){if(0===t.expirationTime||t.expirationTime>n){switch(t.tag){case 3:Jn(t);break;case 2:Ft(t);break;case 4:En(t,t.stateNode.containerInfo);break;case 13:yn(t)}return null}switch(t.tag){case 0:a(null===e,"An indeterminate component should never have mounted. This error is likely caused by a bug in React. Please file an issue.");var r=t.type,i=t.pendingProps,o=Ut(t);return r=r(i,o=At(t,o)),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof?(o=t.type,t.tag=2,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,"function"==typeof(o=o.getDerivedStateFromProps)&&Un(t,o,i),i=Ft(t),r.updater=An,t.stateNode=r,r._reactInternalFiber=t,Mn(t,n),e=qn(e,t,!0,i,n)):(t.tag=1,Xn(e,t,r),t.memoizedProps=i,e=t.child),e;case 1:return i=t.type,n=t.pendingProps,wt.current||t.memoizedProps!==n?(i=i(n,r=At(t,r=Ut(t))),t.effectTag|=1,Xn(e,t,i),t.memoizedProps=n,e=t.child):e=er(e,t),e;case 2:if(i=Ft(t),null===e)if(null===t.stateNode){var l=t.pendingProps,u=t.type;r=Ut(t);var s=2===t.tag&&null!=t.type.contextTypes;l=new u(l,o=s?At(t,r):c),t.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,l.updater=An,t.stateNode=l,l._reactInternalFiber=t,s&&((s=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,s.__reactInternalMemoizedMaskedChildContext=o),Mn(t,n),r=!0}else{u=t.type,r=t.stateNode,s=t.memoizedProps,o=t.pendingProps,r.props=s;var f=r.context;l=At(t,l=Ut(t));var d=u.getDerivedStateFromProps;(u="function"==typeof d||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(s!==o||f!==l)&&In(t,r,o,l),tn=!1;var p=t.memoizedState;f=r.state=p;var h=t.updateQueue;null!==h&&(fn(t,h,o,r,n),f=t.memoizedState),s!==o||p!==f||wt.current||tn?("function"==typeof d&&(Un(t,d,o),f=t.memoizedState),(s=tn||zn(t,s,o,p,f,l))?(u||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||("function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount()),"function"==typeof r.componentDidMount&&(t.effectTag|=4)):("function"==typeof r.componentDidMount&&(t.effectTag|=4),t.memoizedProps=o,t.memoizedState=f),r.props=o,r.state=f,r.context=l,r=s):("function"==typeof r.componentDidMount&&(t.effectTag|=4),r=!1)}else u=t.type,r=t.stateNode,o=t.memoizedProps,s=t.pendingProps,r.props=o,f=r.context,l=At(t,l=Ut(t)),(u="function"==typeof(d=u.getDerivedStateFromProps)||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(o!==s||f!==l)&&In(t,r,s,l),tn=!1,f=t.memoizedState,p=r.state=f,null!==(h=t.updateQueue)&&(fn(t,h,s,r,n),p=t.memoizedState),o!==s||f!==p||wt.current||tn?("function"==typeof d&&(Un(t,d,s),p=t.memoizedState),(d=tn||zn(t,o,s,f,p,l))?(u||"function"!=typeof r.UNSAFE_componentWillUpdate&&"function"!=typeof r.componentWillUpdate||("function"==typeof r.componentWillUpdate&&r.componentWillUpdate(s,p,l),"function"==typeof r.UNSAFE_componentWillUpdate&&r.UNSAFE_componentWillUpdate(s,p,l)),"function"==typeof r.componentDidUpdate&&(t.effectTag|=4),"function"==typeof r.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof r.componentDidUpdate||o===e.memoizedProps&&f===e.memoizedState||(t.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||o===e.memoizedProps&&f===e.memoizedState||(t.effectTag|=256),t.memoizedProps=s,t.memoizedState=p),r.props=s,r.state=p,r.context=l,r=d):("function"!=typeof r.componentDidUpdate||o===e.memoizedProps&&f===e.memoizedState||(t.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||o===e.memoizedProps&&f===e.memoizedState||(t.effectTag|=256),r=!1);return qn(e,t,r,i,n);case 3:return Jn(t),null!==(i=t.updateQueue)?(r=null!==(r=t.memoizedState)?r.element:null,fn(t,i,t.pendingProps,null,n),(n=t.memoizedState.element)===r?e=er(e,t):(Xn(e,t,n),e=t.child)):e=er(e,t),e;case 5:return kn(Pn.current),n=kn(xn.current),i="AndroidTextInput"===(i=t.type)||"RCTMultilineTextInputView"===i||"RCTSinglelineTextInputView"===i||"RCTText"===i||"RCTVirtualText"===i,n!==(i=n.isInAParentText!==i?{isInAParentText:i}:n)&&(Ct(Sn,t),Ct(xn,i)),null===e&&Yn(t),i=t.memoizedProps,n=t.pendingProps,wt.current||i!==n?(i=n.children,Gn(e,t),Xn(e,t,i),t.memoizedProps=n,e=t.child):e=er(e,t),e;case 6:return null===e&&Yn(t),t.memoizedProps=t.pendingProps,null;case 16:return null;case 4:return En(t,t.stateNode.containerInfo),i=t.pendingProps,wt.current||t.memoizedProps!==i?(null===e?t.child=Dn(t,null,i,n):Xn(e,t,i),t.memoizedProps=i,e=t.child):e=er(e,t),e;case 14:return i=t.type.render,n=t.pendingProps,r=t.ref,wt.current||t.memoizedProps!==n||r!==(null!==e?e.ref:null)?(Xn(e,t,i=i(n,r)),t.memoizedProps=n,e=t.child):e=er(e,t),e;case 10:return n=t.pendingProps,wt.current||t.memoizedProps!==n?(Xn(e,t,n),t.memoizedProps=n,e=t.child):e=er(e,t),e;case 11:return n=t.pendingProps.children,wt.current||null!==n&&t.memoizedProps!==n?(Xn(e,t,n),t.memoizedProps=n,e=t.child):e=er(e,t),e;case 15:return n=t.pendingProps,t.memoizedProps===n?e=er(e,t):(Xn(e,t,n.children),t.memoizedProps=n,e=t.child),e;case 13:return Zn(e,t,n);case 12:e:if(r=t.type,o=t.pendingProps,s=t.memoizedProps,i=r._currentValue,l=r._changedBits,wt.current||0!==l||s!==o){if(t.memoizedProps=o,void 0!==(u=o.unstable_observedBits)&&null!==u||(u=1073741823),t.stateNode=u,0!=(l&u))Kn(t,r,l,n);else if(s===o){e=er(e,t);break e}n=(n=o.children)(i),t.effectTag|=1,Xn(e,t,n),e=t.child}else e=er(e,t);return e;default:a(!1,"Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.")}}var nr=void 0,rr=void 0,ir=void 0;function ar(e,t){var n=t.pendingProps;switch(t.tag){case 1:return null;case 2:return It(t),null;case 3:return _n(),Mt(),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(t.effectTag&=-3),nr(t),null;case 5:Cn(t);var r=kn(Pn.current),i=t.type;if(null!==e&&null!=t.stateNode){var u=e.memoizedProps,s=kn(xn.current);rr(e,t,c,i,u,n,r,s),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!n)return a(null!==t.stateNode,"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."),null;e=kn(xn.current),u=bt(),s=o.get(i),a("RCTView"!==i||!e.isInAParentText,"Nesting of within is not currently supported.");var f=st(null,nt,n,s.validAttributes);l.createView(u,s.uiViewClassName,r,f),s=new ft(u,s),xe[u]=t,Se[u]=n;e:for(u=t.child;null!==u;){if(5===u.tag||6===u.tag)s._children.push(u.stateNode);else if(4!==u.tag&&null!==u.child){u.child.return=u,u=u.child;continue}if(u===t)break;for(;null===u.sibling;){if(null===u.return||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}xt(s)&&(t.effectTag|=4),t.stateNode=s,null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)ir(e,t,e.memoizedProps,n);else{if("string"!=typeof n)return a(null!==t.stateNode,"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."),null;r=kn(Pn.current),i=kn(xn.current),a(i.isInAParentText,"Text strings must be rendered within a component."),i=bt(),l.createView(i,"RCTRawText",r,{text:n}),xe[i]=t,t.stateNode=i}return null;case 14:case 16:case 10:case 11:case 15:return null;case 4:return _n(),nr(t),null;case 13:return bn(t),null;case 12:return null;case 0:a(!1,"An indeterminate component should have become determinate before completing. This error is likely caused by a bug in React. Please file an issue.");default:a(!1,"Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.")}}function or(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=St(n)),null!==n&&Je(n),n=null!==r?r:"",t=t.value,null!==e&&2===e.tag&&Je(e);try{if(t instanceof Error){var i=t.message,a=t.name,o=t;try{o.message=(i?a+": "+i:a)+"\n\nThis error is located at:"+n}catch(e){}}else o="string"==typeof t?Error(t+"\n\nThis error is located at:"+n):Error("Unspecified error at:"+n);h.handleException(o,!1)}catch(e){e&&e.suppressReactErrorLogging||console.error(e)}}function lr(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ar(e,t)}else t.current=null}function ur(e){switch(Kt(e),e.tag){case 2:lr(e);var t=e.stateNode;if("function"==typeof t.componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Ar(e,t)}break;case 5:lr(e);break;case 4:fr(e)}}function sr(e){return 5===e.tag||3===e.tag||4===e.tag}function cr(e){e:{for(var t=e.return;null!==t;){if(sr(t)){var n=t;break e}t=t.return}a(!1,"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:a(!1,"Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}16&n.effectTag&&(n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||sr(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){if(5===i.tag||6===i.tag)if(n)if(r)a("number"!=typeof t,"Container does not support insertBefore operation");else{var o=t,u=i.stateNode,s=n,c=o._children,f=c.indexOf(u);0<=f?(c.splice(f,1),s=c.indexOf(s),c.splice(s,0,u),l.manageChildren(o._nativeTag,[f],[s],[],[],[])):(f=c.indexOf(s),c.splice(f,0,u),l.manageChildren(o._nativeTag,[],[],["number"==typeof u?u:u._nativeTag],[f],[]))}else r?(o=i.stateNode,l.setChildren(t,["number"==typeof o?o:o._nativeTag])):(o=t,c="number"==typeof(u=i.stateNode)?u:u._nativeTag,0<=(s=(f=o._children).indexOf(u))?(f.splice(s,1),f.push(u),l.manageChildren(o._nativeTag,[s],[f.length-1],[],[],[])):(f.push(u),l.manageChildren(o._nativeTag,[],[],[c],[f.length-1],[])));else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function fr(e){for(var t=e,n=!1,r=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(a(null!==n,"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."),n.tag){case 5:r=n.stateNode,i=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var o=t,u=o;;)if(ur(u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===o)break;for(;null===u.sibling;){if(null===u.return||u.return===o)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}if(i)o=r,Tt(t.stateNode),l.manageChildren(o,[],[],[],[],[0]);else{o=r;var s=t.stateNode;Tt(s),s=(u=o._children).indexOf(s),u.splice(s,1),l.manageChildren(o._nativeTag,[],[],[],[],[s])}}else if(4===t.tag?r=t.stateNode.containerInfo:ur(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function dr(e,t){switch(t.tag){case 2:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.updateQueue;t.updateQueue=null,null!==i&&(t=n.viewConfig,Se[n._nativeTag]=r,null!=(r=st(null,e,r,t.validAttributes))&&l.updateView(n._nativeTag,t.uiViewClassName,r))}break;case 6:a(null!==t.stateNode,"This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue."),l.updateView(t.stateNode,"RCTRawText",{text:t.memoizedProps});break;case 3:case 15:case 16:break;default:a(!1,"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}function pr(e,t,n){(n=an(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fi(r),or(e,t)},n}function hr(e,t,n){(n=an(n)).tag=3;var r=e.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){null===Cr?Cr=new Set([this]):Cr.add(this);var n=t.value,r=t.stack;or(e,t),this.componentDidCatch(n,{componentStack:null!==r?r:""})}),n}function mr(e){switch(e.tag){case 2:It(e);var t=e.effectTag;return 1024&t?(e.effectTag=-1025&t|64,e):null;case 3:return _n(),Mt(),1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 5:return Cn(e),null;case 16:return 1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 4:return _n(),null;case 13:return bn(e),null;default:return null}}nr=function(){},rr=function(e,t,n){(t.updateQueue=n)&&(t.effectTag|=4)},ir=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var gr=dt(),vr=gr,yr=0,br=!1,Tr=null,xr=null,Sr=0,Pr=-1,kr=!1,Er=null,_r=!1,Cr=null;function Rr(){if(null!==Tr)for(var e=Tr.return;null!==e;){var t=e;switch(t.tag){case 2:It(t);break;case 3:_n(),Mt();break;case 5:Cn(t);break;case 4:_n();break;case 13:bn(t)}e=e.return}xr=null,Sr=0,Pr=-1,kr=!1,Tr=null}function wr(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(512&e.effectTag)){t=ar(t,e);var i=e;if(1073741823===Sr||1073741823!==i.expirationTime){var a=0;switch(i.tag){case 3:case 2:var o=i.updateQueue;null!==o&&(a=o.expirationTime)}for(o=i.child;null!==o;)0!==o.expirationTime&&(0===a||a>o.expirationTime)&&(a=o.expirationTime),o=o.sibling;i.expirationTime=a}if(null!==t)return t;null!==n&&0==(512&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1n?e.earliestSuspendedTime=n:rLr)&&(Lr=e),e}function Ir(e,t){for(;null!==e;){if((0===e.expirationTime||e.expirationTime>t)&&(e.expirationTime=t),null!==e.alternate&&(0===e.alternate.expirationTime||e.alternate.expirationTime>t)&&(e.alternate.expirationTime=t),null===e.return){if(3!==e.tag)break;var n=e.stateNode;!br&&0!==Sr&&tKr&&a(!1,"Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.")}e=e.return}}function Mr(){return vr=dt()-gr,2+(vr/10|0)}var Wr=null,Or=null,Fr=0,jr=void 0,Dr=!1,Hr=null,Br=0,Lr=0,Vr=!1,Qr=!1,Yr=null,Xr=null,$r=!1,Gr=!1,qr=!1,Jr=null,Kr=1e3,Zr=0,ei=1;function ti(e){if(0!==Fr){if(e>Fr)return;if(null!==jr)pt=null,clearTimeout(jr)}Fr=e,dt(),pt=ai,jr=setTimeout(gt,1)}function ni(e,t,n,r){0<=r&&setTimeout(function(){var n=e.latestSuspendedTime;0!==n&&n<=t&&(0===(n=e.latestPingedTime)||n=Br)&&(!Vr||Mr()>=Br);)Mr(),ui(Hr,Br,!0),ii();else for(;null!==Hr&&0!==Br&&(0===e||e>=Br);)ui(Hr,Br,!1),ii();null!==Xr&&(Fr=0,jr=null),0!==Br&&ti(Br),Xr=null,Vr=!1,li()}function li(){if(Zr=0,null!==Jr){var e=Jr;Jr=null;for(var t=0;te.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,Zt(e,r)):rei)&&(Vr=!0)}function fi(e){a(null!==Hr,"Should be working on a root. This error is likely caused by a bug in React. Please file an issue."),Hr.expirationTime=0,Qr||(Qr=!0,Yr=e)}function di(e,t,n,r,i){var o=t.current;if(n){var l;n=n._reactInternalFiber;e:{for(a(2===Ke(n)&&2===n.tag,"Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."),l=n;3!==l.tag;){if(zt(l)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}l=l.return,a(l,"Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}l=l.stateNode.context}n=zt(n)?Ot(n,l):l}else n=c;return null===t.context?t.context=n:t.pendingContext=n,t=i,(i=an(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(i.callback=t),ln(o,i,r),Ir(o,r),r}function pi(e){var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?a(!1,"Unable to find node on an unmounted component."):a(!1,"Argument appears to not be a ReactComponent. Keys: %s",Object.keys(e))),null===(e=tt(t))?null:e.stateNode}function hi(e,t,n,r){var i=t.current;return di(e,t,n,i=zr(Mr(),i),r)}function mi(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function gi(e){var t=e.findFiberByHostInstance;return qt(babelHelpers.extends({},e,{findHostInstanceByFiber:function(e){return null===(e=tt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}function vi(e,t,n){var r=3=n?(this._iteratedObject=void 0,r(void 0,!0)):(this._nextIndex=i+1,"key"===a?r(i,!1):"value"===a?r(e[i],!1):"key+value"===a?r([i,e[i]],!1):void 0)}},{key:'@@iterator',value:function(){return this}}]),t})(),e=(function(){function t(e){if(babelHelpers.classCallCheck(this,t),'string'!=typeof e)throw new TypeError('Object is not a string');this._iteratedString=e,this._nextIndex=0}return babelHelpers.createClass(t,[{key:"next",value:function(){if(!this instanceof t)throw new TypeError('Object is not a StringIterator');if(null==this._iteratedString)return r(void 0,!0);var e,n=this._nextIndex,i=this._iteratedString,a=i.length;if(n>=a)return this._iteratedString=void 0,r(void 0,!0);var o=i.charCodeAt(n);if(o<55296||o>56319||n+1===a)e=i[n];else{var s=i.charCodeAt(n+1);e=s<56320||s>57343?i[n]:i[n]+i[n+1]}return this._nextIndex=n+e.length,r(e,!1)}},{key:'@@iterator',value:function(){return this}}]),t})();function r(t,e){return{value:t,done:e}}return function(r,n){return'string'==typeof r?new e(r):Array.isArray(r)?new t(r,n||"value"):r[a]()}})();babelHelpers.extends(o,{KIND_KEY:"key",KIND_VALUE:"value",KIND_KEY_VAL:"key+value",ITERATOR_SYMBOL:a}),r.exports=o},103,[]); +__d(function(e,t,n,s,i){'use strict';var r=t(i[0]),a=t(i[1]),u=t(i[2]);n.exports=(function(e){if(!a('Set'))return e.Set;var t=(function(){function e(t){if(babelHelpers.classCallCheck(this,e),null==this||'object'!=typeof this&&'function'!=typeof this)throw new TypeError('Wrong set object type.');if(n(this),null!=t)for(var s,i=u(t);!(s=i.next()).done;)this.add(s.value)}return babelHelpers.createClass(e,[{key:"add",value:function(e){return this._map.set(e,e),this.size=this._map.size,this}},{key:"clear",value:function(){n(this)}},{key:"delete",value:function(e){var t=this._map.delete(e);return this.size=this._map.size,t}},{key:"entries",value:function(){return this._map.entries()}},{key:"forEach",value:function(e){for(var t,n=arguments[1],s=this._map.keys();!(t=s.next()).done;)e.call(n,t.value,t.value,this)}},{key:"has",value:function(e){return this._map.has(e)}},{key:"values",value:function(){return this._map.values()}}]),e})();function n(e){e._map=new r,e.size=e._map.size}return t.prototype[u.ITERATOR_SYMBOL]=t.prototype.values,t.prototype.keys=t.prototype.values,t})(Function('return this')())},104,[100,99,103]); +__d(function(r,o,e,n,s){'use strict';var i=0;function c(r,e){var n=o(s[0]).ExceptionsManager;if(n){var c=o(s[1])(r),l=++i;e?n.reportFatalException(r.message,c,l):n.reportSoftException(r.message,c,l)}}function l(){if(console._errorOriginal.apply(console,arguments),console.reportErrorsAsExceptions)if(arguments[0]&&arguments[0].stack)c(arguments[0],!1);else{var r=o(s[2]),e=Array.prototype.map.call(arguments,r).join(', ');if('"Warning: '===e.slice(0,10))return;var n=new Error('console.error: '+e);n.framesToPop=1,c(n,!1)}}e.exports={handleException:function(r,o){r.message||(r=new Error(r)),console._errorOriginal?console._errorOriginal(r.message):console.error(r.message),c(r,o)},installConsoleErrorReporter:function(){console._errorOriginal||(console._errorOriginal=console.error.bind(console),console.error=l,void 0===console.reportErrorsAsExceptions&&(console.reportErrorsAsExceptions=!0))}}},105,[4,106,10]); +__d(function(r,t,s,a,e){'use strict';s.exports=function(r){if(!r||!r.stack)return[];for(var s=t(e[0]),a=Array.isArray(r.stack)?r.stack:s.parse(r.stack),o='number'==typeof r.framesToPop?r.framesToPop:0;o--;)a.shift();return a}},106,[107]); +__d(function(n,o,t,_,c){t.exports=o(c[0])},107,[108]); +__d(function(e,n,o,t,l){var u={parse:function(e){for(var n,o,t=/^\s*at (?:(?:(?:Anonymous function)?|((?:\[object object\])?\S+(?: \[as \S+\])?)) )?\(?((?:file|http|https):.*?):(\d+)(?::(\d+))?\)?\s*$/i,l=/^(?:\s*([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i,u=/^\s*at (?:((?:\[object object\])?\S+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i,i=e.split('\n'),s=[],c=0,m=i.length;c",lineNumber:+n[4],column:n[5]?+n[5]:null};else if(n=t.exec(i[c]))o={file:n[2],methodName:n[1]||"",lineNumber:+n[3],column:n[4]?+n[4]:null};else{if(!(n=u.exec(i[c])))continue;o={file:n[2],methodName:n[1]||"",lineNumber:+n[3],column:n[4]?+n[4]:null}}s.push(o)}return s}};o.exports=u},108,[]); +__d(function(e,r,a,t,n){'use strict';var i=r(n[0]).PlatformConstants,o=r(n[1]);function s(e){return e.major+"."+e.minor+"."+e.patch+(null!==e.prerelease?"-"+e.prerelease:'')}t.checkVersions=function(){if(i){var e=i.reactNativeVersion;o.version.major===e.major&&o.version.minor===e.minor||console.error("React Native version mismatch.\n\nJavaScript version: "+s(o.version)+"\nNative version: "+s(e)+"\n\nMake sure that you have rebuilt the native code. If the problem persists try clearing the Watchman and packager caches with `watchman watch-del-all && react-native start --reset-cache`.")}}},109,[4,110]); +__d(function(e,n,r,o,a){o.version={major:0,minor:56,patch:0,prerelease:null}},110,[]); +__d(function(t,r,s,c,e){'use strict';var i=r(e[0]);s.exports=i},111,[112]); +__d(function(t,n,r,e,i){'use strict';var o=n(i[0]);n(i[1]),o.prototype.finally=function(t){return this.then(t,t)},r.exports=o},112,[113,115]); +__d(function(n,t,e,r,o){'use strict';var f=t(o[0]);e.exports=f;var i=v(!0),u=v(!1),c=v(null),a=v(void 0),l=v(0),h=v('');function v(n){var t=new f(f._61);return t._65=1,t._55=n,t}f.resolve=function(n){if(n instanceof f)return n;if(null===n)return c;if(void 0===n)return a;if(!0===n)return i;if(!1===n)return u;if(0===n)return l;if(''===n)return h;if('object'==typeof n||'function'==typeof n)try{var t=n.then;if('function'==typeof t)return new f(t.bind(n))}catch(n){return new f(function(t,e){e(n)})}return v(n)},f.all=function(n){var t=Array.prototype.slice.call(n);return new f(function(n,e){if(0===t.length)return n([]);var r=t.length;function o(i,u){if(u&&('object'==typeof u||'function'==typeof u)){if(u instanceof f&&u.then===f.prototype.then){for(;3===u._65;)u=u._55;return 1===u._65?o(i,u._55):(2===u._65&&e(u._55),void u.then(function(n){o(i,n)},e))}var c=u.then;if('function'==typeof c)return void new f(c.bind(u)).then(function(n){o(i,n)},e)}t[i]=u,0==--r&&n(t)}for(var i=0;i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),h=o.call(a,"finallyLoc");if(u&&h){if(this.prev=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),P(e),v}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;P(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),v}}}function L(t,r,e,n){var o=r&&r.prototype instanceof E?r:E,i=Object.create(o.prototype),a=new F(n||[]);return i._invoke=k(t,e,a),i}function x(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}function E(){}function b(){}function _(){}function j(t){["next","throw","return"].forEach(function(r){t[r]=function(t){return this._invoke(r,t)}})}function O(t){function r(e,n,i,a){var c=x(t[e],t,n);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==typeof h&&o.call(h,"__await")?Promise.resolve(h.__await).then(function(t){r("next",t,i,a)},function(t){r("throw",t,i,a)}):Promise.resolve(h).then(function(t){u.value=t,i(u)},a)}a(c.arg)}var e;this._invoke=function(t,n){function o(){return new Promise(function(e,o){r(t,n,e,o)})}return e=e?e.then(o,o):o()}}function k(t,r,e){var n=s;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw i;return T()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=G(a,e);if(c){if(c===v)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===s)throw n=y,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=p;var u=x(t,r,e);if("normal"===u.type){if(n=e.done?y:l,u.arg===v)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=y,e.method="throw",e.arg=u.arg)}}}function G(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,G(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=x(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function N(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function P(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function S(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0,loaded:t,total:s})}},{key:"__didCompleteResponse",value:function(e,s,r){e===this._requestId&&(s&&(''!==this._responseType&&'text'!==this._responseType||(this._response=s),this._hasError=!0,r&&(this._timedOut=!0)),this._clearSubscriptions(),this._requestId=null,this.setReadyState(this.DONE),s?t._interceptor&&t._interceptor.loadingFailed(e,s):t._interceptor&&t._interceptor.loadingFinished(e,this._response.length))}},{key:"_clearSubscriptions",value:function(){(this._subscriptions||[]).forEach(function(e){e&&e.remove()}),this._subscriptions=[]}},{key:"getAllResponseHeaders",value:function(){if(!this.responseHeaders)return null;var e=this.responseHeaders||{};return Object.keys(e).map(function(t){return t+': '+e[t]}).join('\r\n')}},{key:"getResponseHeader",value:function(e){var t=this._lowerCaseResponseHeaders[e.toLowerCase()];return void 0!==t?t:null}},{key:"setRequestHeader",value:function(e,t){if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');this._headers[e.toLowerCase()]=String(t)}},{key:"setTrackingName",value:function(e){return this._trackingName=e,this}},{key:"open",value:function(e,t,s){if(this.readyState!==this.UNSENT)throw new Error('Cannot open, already sending');if(void 0!==s&&!s)throw new Error('Synchronous http requests are not supported');if(!t)throw new Error('Cannot load an empty url');this._method=e.toUpperCase(),this._url=t,this._aborted=!1,this.setReadyState(this.OPENED)}},{key:"send",value:function(e){var t=this;if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');if(this._sent)throw new Error('Request has already been sent');this._sent=!0;var s=this._incrementalEvents||!!this.onreadystatechange||!!this.onprogress;this._subscriptions.push(o.addListener('didSendNetworkData',function(e){return t.__didUploadProgress.apply(t,babelHelpers.toConsumableArray(e))})),this._subscriptions.push(o.addListener('didReceiveNetworkResponse',function(e){return t.__didReceiveResponse.apply(t,babelHelpers.toConsumableArray(e))})),this._subscriptions.push(o.addListener('didReceiveNetworkData',function(e){return t.__didReceiveData.apply(t,babelHelpers.toConsumableArray(e))})),this._subscriptions.push(o.addListener('didReceiveNetworkIncrementalData',function(e){return t.__didReceiveIncrementalData.apply(t,babelHelpers.toConsumableArray(e))})),this._subscriptions.push(o.addListener('didReceiveNetworkDataProgress',function(e){return t.__didReceiveDataProgress.apply(t,babelHelpers.toConsumableArray(e))})),this._subscriptions.push(o.addListener('didCompleteNetworkResponse',function(e){return t.__didCompleteResponse.apply(t,babelHelpers.toConsumableArray(e))}));var r='text';'arraybuffer'===this._responseType&&(r='base64'),'blob'===this._responseType&&(r='blob'),h(this._method,'Request method needs to be defined.'),h(this._url,'Request URL needs to be defined.'),o.sendRequest(this._method,this._trackingName,this._url,this._headers,e,r,s,this.timeout,this.__didCreateRequest.bind(this),this.withCredentials)}},{key:"abort",value:function(){this._aborted=!0,this._requestId&&o.abortRequest(this._requestId),this.readyState===this.UNSENT||this.readyState===this.OPENED&&!this._sent||this.readyState===this.DONE||(this._reset(),this.setReadyState(this.DONE)),this._reset()}},{key:"setResponseHeaders",value:function(e){this.responseHeaders=e||null;var t=e||{};this._lowerCaseResponseHeaders=Object.keys(t).reduce(function(e,s){return e[s.toLowerCase()]=t[s],e},{})}},{key:"setReadyState",value:function(e){this.readyState=e,this.dispatchEvent({type:'readystatechange'}),e===this.DONE&&(this._aborted?this.dispatchEvent({type:'abort'}):this._hasError?this._timedOut?this.dispatchEvent({type:'timeout'}):this.dispatchEvent({type:'error'}):this.dispatchEvent({type:'load'}),this.dispatchEvent({type:'loadend'}))}},{key:"addEventListener",value:function(e,s){'readystatechange'!==e&&'progress'!==e||(this._incrementalEvents=!0),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"addEventListener",this).call(this,e,s)}},{key:"responseType",get:function(){return this._responseType},set:function(e){if(this._sent)throw new Error("Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be set after the request has been sent.");b.hasOwnProperty(e)?(h(b[e]||'document'===e,"The provided value '"+e+"' is unsupported in this environment."),'blob'===e&&h(d.isAvailable,'Native module BlobModule is required for blob support'),this._responseType=e):p(!1,"The provided value '"+e+"' is not a valid 'responseType'.")}},{key:"responseText",get:function(){if(''!==this._responseType&&'text'!==this._responseType)throw new Error("The 'responseText' property is only available if 'responseType' is set to '' or 'text', but it is '"+this._responseType+"'.");return this.readyState<_?'':this._response}},{key:"response",get:function(){var e=this.responseType;if(''===e||'text'===e)return this.readyState<_||this._hasError?'':this._response;if(this.readyState!==y)return null;if(void 0!==this._cachedResponse)return this._cachedResponse;switch(e){case'document':this._cachedResponse=null;break;case'arraybuffer':this._cachedResponse=a.toByteArray(this._response).buffer;break;case'blob':if('object'!=typeof this._response||!this._response)throw new Error("Invalid response for blob: "+this._response);this._cachedResponse=d.createFromOptions(this._response);break;case'json':try{this._cachedResponse=JSON.parse(this._response)}catch(e){this._cachedResponse=null}break;default:this._cachedResponse=null}return this._cachedResponse}}]),babelHelpers.inherits(t,e),t})(n.apply(void 0,babelHelpers.toConsumableArray(f)));E.UNSENT=u,E.OPENED=l,E.HEADERS_RECEIVED=c,E.LOADING=_,E.DONE=y,E._interceptor=null,s.exports=E},117,[118,122,127,2,16,129]); +__d(function(e,t,n,r,i){"use strict";var l=t(i[0]),o=t(i[1]),u=t(i[2]),a=l.LISTENERS,f=l.CAPTURE,c=l.BUBBLE,s=l.ATTRIBUTE,v=l.newNode,d=o.defineCustomEventTarget,h=u.createEventWrapper,E=u.STOP_IMMEDIATE_PROPAGATION_FLAG,p="undefined"!=typeof window&&void 0!==window.EventTarget,w=n.exports=function e(){if(!(this instanceof e)){if(1===arguments.length&&Array.isArray(arguments[0]))return d(e,arguments[0]);if(arguments.length>0){for(var t=Array(arguments.length),n=0;n0?e-4:e,d=0;d>16&255,a[c++]=t>>8&255,a[c++]=255&t;2===o&&(t=h[r.charCodeAt(d)]<<2|h[r.charCodeAt(d+1)]>>4,a[c++]=255&t);1===o&&(t=h[r.charCodeAt(d)]<<10|h[r.charCodeAt(d+1)]<<4|h[r.charCodeAt(d+2)]>>2,a[c++]=t>>8&255,a[c++]=255&t);return a},e.fromByteArray=function(r){for(var t,n=r.length,e=n%3,o=[],h=0,u=n-e;hu?u:h+16383));1===e?(t=r[n-1],o.push(a[t>>2]+a[t<<4&63]+'==')):2===e&&(t=(r[n-2]<<8)+r[n-1],o.push(a[t>>10]+a[t>>4&63]+a[t<<2&63]+'='));return o.join('')};for(var a=[],h=[],u='undefined'!=typeof Uint8Array?Uint8Array:Array,c='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',i=0,d=c.length;i0)throw new Error('Invalid string. Length must be a multiple of 4');var n=r.indexOf('=');return-1===n&&(n=t),[n,n===t?0:4-n%4]}function A(r,t,n){return 3*(t+n)/4-n}function C(r,t,n){for(var e,o,h=[],u=t;u>18&63]+a[o>>12&63]+a[o>>6&63]+a[63&o]);return h.join('')}h['-'.charCodeAt(0)]=62,h['_'.charCodeAt(0)]=63},127,[]); +__d(function(t,e,a,s,i){'use strict';var n=(function(){function t(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;babelHelpers.classCallCheck(this,t);var n=e(i[0]);this.data=n.createFromParts(a,s).data}return babelHelpers.createClass(t,[{key:"slice",value:function(t,a){var s=e(i[0]),n=this.data,r=n.offset,o=n.size;return'number'==typeof t&&(t>o&&(t=o),r+=t,o-=t,'number'==typeof a&&(a<0&&(a=this.size+a),o=a-t)),s.createFromOptions({blobId:this.data.blobId,offset:r,size:o})}},{key:"close",value:function(){e(i[0]).release(this.data.blobId),this.data=null}},{key:"data",set:function(t){this._data=t},get:function(){if(!this._data)throw new Error('Blob has been closed and is no longer available');return this._data}},{key:"size",get:function(){return this.data.size}},{key:"type",get:function(){return this.data.type||''}}]),t})();a.exports=n},128,[129]); +__d(function(e,r,t,a,n){'use strict';var o=r(n[0]),i=r(n[1]),l=r(n[2]).BlobModule;var u=(function(){function r(){babelHelpers.classCallCheck(this,r)}return babelHelpers.createClass(r,null,[{key:"createFromParts",value:function(t,a){var n='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(e){var r=16*Math.random()|0;return('x'==e?r:3&r|8).toString(16)}),i=t.map(function(r){if(r instanceof ArrayBuffer||e.ArrayBufferView&&r instanceof e.ArrayBufferView)throw new Error("Creating blobs from 'ArrayBuffer' and 'ArrayBufferView' are not supported");return r instanceof o?{data:r.data,type:'blob'}:{data:String(r),type:'string'}}),u=i.reduce(function(r,t){return'string'===t.type?r+e.unescape(encodeURI(t.data)).length:r+t.data.size},0);return l.createFromParts(i,n),r.createFromOptions({blobId:n,offset:0,size:u,type:a?a.type:'',lastModified:a?a.lastModified:Date.now()})}},{key:"createFromOptions",value:function(e){return i.register(e.blobId),babelHelpers.extends(Object.create(o.prototype),{data:e})}},{key:"release",value:function(e){i.unregister(e),i.has(e)||l.release(e)}},{key:"addNetworkingHandler",value:function(){l.addNetworkingHandler()}},{key:"addWebSocketHandler",value:function(e){l.addWebSocketHandler(e)}},{key:"removeWebSocketHandler",value:function(e){l.removeWebSocketHandler(e)}},{key:"sendOverSocket",value:function(e,r){l.sendOverSocket(e.data,r)}}]),r})();u.isAvailable=!!l,t.exports=u},129,[128,130,4]); +__d(function(n,e,t,r,i){var u={};t.exports={register:function(n){u[n]?u[n]++:u[n]=1},unregister:function(n){u[n]&&(u[n]--,u[n]<=0&&delete u[n])},has:function(n){return u[n]&&u[n]>0}}},130,[]); +__d(function(e,t,n,a,s){'use strict';var r=(function(){function e(){babelHelpers.classCallCheck(this,e),this._parts=[]}return babelHelpers.createClass(e,[{key:"append",value:function(e,t){this._parts.push([e,t])}},{key:"getParts",value:function(){return this._parts.map(function(e){var t=babelHelpers.slicedToArray(e,2),n=t[0],a=t[1],s={'content-disposition':'form-data; name="'+n+'"'};return'object'==typeof a&&a?('string'==typeof a.name&&(s['content-disposition']+='; filename="'+a.name+'"'),'string'==typeof a.type&&(s['content-type']=a.type),babelHelpers.objectSpread({},a,{headers:s,fieldName:n})):{string:String(a),headers:s,fieldName:n}})}}]),e})();n.exports=r},131,[]); +__d(function(e,s,t,r,c){'use strict';var o=s(c[0]);o&&o.fetch?t.exports=o:t.exports={fetch:fetch,Headers:Headers,Request:Request,Response:Response}},132,[133]); +__d(function(t,e,r,o,n){!(function(t){'use strict';if(!t.fetch){var e={searchParams:'URLSearchParams'in t,iterable:'Symbol'in t&&'iterator'in Symbol,blob:'FileReader'in t&&'Blob'in t&&(function(){try{return new Blob,!0}catch(t){return!1}})(),formData:'FormData'in t,arrayBuffer:'ArrayBuffer'in t};if(e.arrayBuffer)var r=['[object Int8Array]','[object Uint8Array]','[object Uint8ClampedArray]','[object Int16Array]','[object Uint16Array]','[object Int32Array]','[object Uint32Array]','[object Float32Array]','[object Float64Array]'],o=function(t){return t&&DataView.prototype.isPrototypeOf(t)},n=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};u.prototype.append=function(t,e){t=a(t),e=h(e);var r=this.map[t];this.map[t]=r?r+','+e:e},u.prototype.delete=function(t){delete this.map[a(t)]},u.prototype.get=function(t){return t=a(t),this.has(t)?this.map[t]:null},u.prototype.has=function(t){return this.map.hasOwnProperty(a(t))},u.prototype.set=function(t,e){this.map[a(t)]=h(e)},u.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},u.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),f(t)},u.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),f(t)},u.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),f(t)},e.iterable&&(u.prototype["function"==typeof Symbol?Symbol.iterator:"@@iterator"]=u.prototype.entries);var i=['DELETE','GET','HEAD','OPTIONS','POST','PUT'];m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},b.call(m.prototype),b.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},_.error=function(){var t=new _(null,{status:0,statusText:''});return t.type='error',t};var s=[301,302,303,307,308];_.redirect=function(t,e){if(-1===s.indexOf(e))throw new RangeError('Invalid status code');return new _(null,{status:e,headers:{location:t}})},t.Headers=u,t.Request=m,t.Response=_,t.fetch=function(t,e){return new Promise(function(r,o){var n=new m(t,e),i=new XMLHttpRequest;i.onload=function(){var t,e,o={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||'',e=new u,t.replace(/\r?\n[\t ]+/g,' ').split(/\r?\n/).forEach(function(t){var r=t.split(':'),o=r.shift().trim();if(o){var n=r.join(':').trim();e.append(o,n)}}),e)};o.url='responseURL'in i?i.responseURL:o.headers.get('X-Request-URL');var n='response'in i?i.response:i.responseText;r(new _(n,o))},i.onerror=function(){o(new TypeError('Network request failed'))},i.ontimeout=function(){o(new TypeError('Network request failed'))},i.open(n.method,n.url,!0),'include'===n.credentials?i.withCredentials=!0:'omit'===n.credentials&&(i.withCredentials=!1),n.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),i.send(void 0===n._bodyInit?null:n._bodyInit)})},t.fetch.polyfill=!0}function a(t){if('string'!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError('Invalid character in header field name');return t.toLowerCase()}function h(t){return'string'!=typeof t&&(t=String(t)),t}function f(t){var r={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e.iterable&&(r["function"==typeof Symbol?Symbol.iterator:"@@iterator"]=function(){return r}),r}function u(t){this.map={},t instanceof u?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function d(t){if(t.bodyUsed)return Promise.reject(new TypeError('Already read'));t.bodyUsed=!0}function y(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function l(t){var e=new FileReader,r=y(e);return e.readAsArrayBuffer(t),r}function c(t){for(var e=new Uint8Array(t),r=new Array(e.length),o=0;o-1?o:r),this.mode=e.mode||this.mode||null,this.referrer=null,('GET'===this.method||'HEAD'===this.method)&&n)throw new TypeError('Body not allowed for GET or HEAD requests');this._initBody(n)}function w(t){var e=new FormData;return t.trim().split('&').forEach(function(t){if(t){var r=t.split('='),o=r.shift().replace(/\+/g,' '),n=r.join('=').replace(/\+/g,' ');e.append(decodeURIComponent(o),decodeURIComponent(n))}}),e}function _(t,e){e||(e={}),this.type='default',this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText='statusText'in e?e.statusText:'OK',this.headers=new u(e.headers),this.url=e.url||'',this._initBody(t)}})('undefined'!=typeof self?self:this)},133,[]); +__d(function(e,t,s,i,r){'use strict';var o=t(r[0]),n=t(r[1]),a=t(r[2]),c=t(r[3]),d=t(r[4]),l=(t(r[5]),t(r[6])),b=t(r[7]),u=t(r[8]),h=t(r[9]),y=d.WebSocketModule,p=0,f=1,v=2,_=3,k=0,E=(function(e){function t(e,s,i){var r;babelHelpers.classCallCheck(this,t),(r=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this))).CONNECTING=p,r.OPEN=f,r.CLOSING=v,r.CLOSED=_,r.readyState=p,'string'==typeof s&&(s=[s]);var o=i||{},n=o.headers,c=void 0===n?{}:n,d=babelHelpers.objectWithoutProperties(o,["headers"]);if(d&&'string'==typeof d.origin&&(console.warn('Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.'),c.origin=d.origin,delete d.origin),Object.keys(d).length>0&&console.warn('Unrecognized WebSocket connection option(s) `'+Object.keys(d).join('`, `')+"`. Did you mean to put these under `headers`?"),Array.isArray(s)||(s=null),!t.isAvailable)throw new Error("Cannot initialize WebSocket module. Native module WebSocketModule is missing.");return r._eventEmitter=new a(y),r._socketId=k++,r._registerEvents(),y.connect(e,s,{headers:c},r._socketId),r}return babelHelpers.createClass(t,[{key:"close",value:function(e,t){this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.readyState=this.CLOSING,this._close(e,t))}},{key:"send",value:function(e){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');if(e instanceof o)return h(c.isAvailable,'Native module BlobModule is required for blob support'),void c.sendOverSocket(e,this._socketId);if('string'!=typeof e){if(!(e instanceof ArrayBuffer||ArrayBuffer.isView(e)))throw new Error('Unsupported data type');y.sendBinary(u(e),this._socketId)}else y.send(e,this._socketId)}},{key:"ping",value:function(){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');y.ping(this._socketId)}},{key:"_close",value:function(e,t){var s='number'==typeof e?e:1e3,i='string'==typeof t?t:'';y.close(s,i,this._socketId),c.isAvailable&&'blob'===this._binaryType&&c.removeWebSocketHandler(this._socketId)}},{key:"_unregisterEvents",value:function(){this._subscriptions.forEach(function(e){return e.remove()}),this._subscriptions=[]}},{key:"_registerEvents",value:function(){var e=this;this._subscriptions=[this._eventEmitter.addListener('websocketMessage',function(t){if(t.id===e._socketId){var s=t.data;switch(t.type){case'binary':s=b.toByteArray(t.data).buffer;break;case'blob':s=c.createFromOptions(t.data)}e.dispatchEvent(new l('message',{data:s}))}}),this._eventEmitter.addListener('websocketOpen',function(t){t.id===e._socketId&&(e.readyState=e.OPEN,e.dispatchEvent(new l('open')))}),this._eventEmitter.addListener('websocketClosed',function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new l('close',{code:t.code,reason:t.reason})),e._unregisterEvents(),e.close())}),this._eventEmitter.addListener('websocketFailed',function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new l('error',{message:t.message})),e.dispatchEvent(new l('close',{message:t.message})),e._unregisterEvents(),e.close())})]}},{key:"binaryType",get:function(){return this._binaryType},set:function(e){if('blob'!==e&&'arraybuffer'!==e)throw new Error("binaryType must be either 'blob' or 'arraybuffer'");'blob'!==this._binaryType&&'blob'!==e||(h(c.isAvailable,'Native module BlobModule is required for blob support'),'blob'===e?c.addWebSocketHandler(this._socketId):c.removeWebSocketHandler(this._socketId)),this._binaryType=e}}]),babelHelpers.inherits(t,e),t})(n.apply(void 0,['close','error','message','open']));E.CONNECTING=p,E.OPEN=f,E.CLOSING=v,E.CLOSED=_,E.isAvailable=!!y,s.exports=E},134,[128,118,124,129,4,12,135,127,126,2]); +__d(function(e,t,s,i,l){'use strict';s.exports=function e(t,s){babelHelpers.classCallCheck(this,e),this.type=t.toString(),babelHelpers.extends(this,s)}},135,[]); +__d(function(e,t,a,s,n){'use strict';var l=t(n[0]),r=t(n[1]),i=(function(e){function t(e,a,s){var n;return babelHelpers.classCallCheck(this,t),r(null!=e&&null!=a,'Failed to construct `File`: Must pass both `parts` and `name` arguments.'),(n=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,e,s))).data.name=a,n}return babelHelpers.createClass(t,[{key:"name",get:function(){return r(null!=this.data.name,'Files must have a name set.'),this.data.name}},{key:"lastModified",get:function(){return this.data.lastModified||0}}]),babelHelpers.inherits(t,e),t})(l);a.exports=i},136,[128,2]); +__d(function(e,t,r,a,s){'use strict';var i=t(s[0]),n=(t(s[1]),t(s[2]).FileReaderModule),o=0,d=1,u=2,l=(function(e){function t(){var e;return babelHelpers.classCallCheck(this,t),(e=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this))).EMPTY=o,e.LOADING=d,e.DONE=u,e._aborted=!1,e._subscriptions=[],e._reset(),e}return babelHelpers.createClass(t,[{key:"_reset",value:function(){this._readyState=o,this._error=null,this._result=null}},{key:"_clearSubscriptions",value:function(){this._subscriptions.forEach(function(e){return e.remove()}),this._subscriptions=[]}},{key:"_setReadyState",value:function(e){this._readyState=e,this.dispatchEvent({type:'readystatechange'}),e===u&&(this._aborted?this.dispatchEvent({type:'abort'}):this._error?this.dispatchEvent({type:'error'}):this.dispatchEvent({type:'load'}),this.dispatchEvent({type:'loadend'}))}},{key:"readAsArrayBuffer",value:function(){throw new Error('FileReader.readAsArrayBuffer is not implemented')}},{key:"readAsDataURL",value:function(e){var t=this;this._aborted=!1,n.readAsDataURL(e.data).then(function(e){t._aborted||(t._result=e,t._setReadyState(u))},function(e){t._aborted||(t._error=e,t._setReadyState(u))})}},{key:"readAsText",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'UTF-8';this._aborted=!1,n.readAsText(e.data,r).then(function(e){t._aborted||(t._result=e,t._setReadyState(u))},function(e){t._aborted||(t._error=e,t._setReadyState(u))})}},{key:"abort",value:function(){this._aborted=!0,this._readyState!==o&&this._readyState!==u&&(this._reset(),this._setReadyState(u)),this._reset()}},{key:"readyState",get:function(){return this._readyState}},{key:"error",get:function(){return this._error}},{key:"result",get:function(){return this._result}}]),babelHelpers.inherits(t,e),t})(i.apply(void 0,['abort','error','load','loadstart','loadend','progress']));l.EMPTY=o,l.LOADING=d,l.DONE=u,r.exports=l},137,[118,128,4]); +__d(function(e,t,r,o,n){'use strict';t(n[0]);var l=t(n[1]).BlobModule,s=null;l&&'string'==typeof l.BLOB_URI_SCHEME&&(s=l.BLOB_URI_SCHEME+':','string'==typeof l.BLOB_URI_HOST&&(s+="//"+l.BLOB_URI_HOST+"/"));var a=(function(){function e(){throw babelHelpers.classCallCheck(this,e),new Error('Creating URL objects is not supported yet.')}return babelHelpers.createClass(e,null,[{key:"createObjectURL",value:function(e){if(null===s)throw new Error('Cannot create URL for blob!');return""+s+e.data.blobId+"?offset="+e.data.offset+"&size="+e.size}},{key:"revokeObjectURL",value:function(e){}}]),e})();r.exports=a},138,[128,4]); +__d(function(e,t,a,n,l){'use strict';t(l[0]);var r=t(l[1]),o=(t(l[2]),(function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"alert",value:function(e,t,a,n,l){s.alert(e,t,a,n)}}]),e})()),s=(function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"alert",value:function(e,t,a,n){var l={title:e||'',message:t||''};n&&(l=babelHelpers.objectSpread({},l,{cancelable:n.cancelable}));var o=a?a.slice(0,3):[{text:'OK'}],s=o.pop(),i=o.pop(),b=o.pop();b&&(l=babelHelpers.objectSpread({},l,{buttonNeutral:b.text||''})),i&&(l=babelHelpers.objectSpread({},l,{buttonNegative:i.text||''})),s&&(l=babelHelpers.objectSpread({},l,{buttonPositive:s.text||''})),r.DialogManagerAndroid.showAlert(l,function(e){return console.warn(e)},function(e,t){e===r.DialogManagerAndroid.buttonClicked?t===r.DialogManagerAndroid.buttonNeutral?b.onPress&&b.onPress():t===r.DialogManagerAndroid.buttonNegative?i.onPress&&i.onPress():t===r.DialogManagerAndroid.buttonPositive&&s.onPress&&s.onPress():e===r.DialogManagerAndroid.dismissed&&n&&n.onDismiss&&n.onDismiss()})}}]),e})();a.exports=o},139,[140,4,12]); +__d(function(e,t,a,r,n){'use strict';var l=t(n[0]).AlertManager,i=(function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"alert",value:function(e,t,a,r){if(void 0!==r)return console.warn('AlertIOS.alert() with a 4th "type" parameter is deprecated and will be removed. Use AlertIOS.prompt() instead.'),void this.prompt(e,t,a,r);this.prompt(e,t,a,'default')}},{key:"prompt",value:function(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:'plain-text',n=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0;if('function'!=typeof r){var o,s,u=[],c=[];'function'==typeof a?u=[a]:a instanceof Array&&a.forEach(function(e,t){if(u[t]=e.onPress,'cancel'===e.style?o=String(t):'destructive'===e.style&&(s=String(t)),e.text||t<(a||[]).length-1){var r={};r[t]=e.text||'',c.push(r)}}),l.alertWithArgs({title:e||'',message:t||void 0,buttons:c,type:r||void 0,defaultValue:n,cancelButtonKey:o,destructiveButtonKey:s,keyboardType:i},function(e,t){var a=u[e];a&&a(t)})}else{console.warn("You passed a callback function as the \"type\" argument to AlertIOS.prompt(). React Native is assuming you want to use the deprecated AlertIOS.prompt(title, defaultValue, buttons, callback) signature. The current signature is AlertIOS.prompt(title, message, callbackOrButtons, type, defaultValue, keyboardType) and the old syntax will be removed in a future version.");var p=r;l.alertWithArgs({title:e||'',type:'plain-text',defaultValue:t},function(e,t){p(t)})}}}]),e})();a.exports=i},140,[4]); +__d(function(e,t,n,r,i){'use strict';var o=t(i[0]),s=t(i[1]).LocationObserver,a=t(i[2]),u=t(i[3]),c=t(i[4]),v=new o(s),f=t(i[5]),g=t(i[6]),l=[],h=!1,p={setRNConfiguration:function(e){s.setConfiguration&&s.setConfiguration(e)},requestAuthorization:function(){s.requestAuthorization()},getCurrentPosition:function(e,t,n){var r,i;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:if(a('function'==typeof e,'Must provide a valid geo_success callback.'),r=!0,!(f.Version>=23)){o.next=11;break}return o.next=5,regeneratorRuntime.awrap(g.check(g.PERMISSIONS.ACCESS_FINE_LOCATION));case 5:if(r=o.sent){o.next=11;break}return o.next=9,regeneratorRuntime.awrap(g.request(g.PERMISSIONS.ACCESS_FINE_LOCATION));case 9:i=o.sent,r=i===g.RESULTS.GRANTED;case 11:r&&s.getCurrentPosition(n||{},e,t||u);case 12:case"end":return o.stop()}},null,this)},watchPosition:function(e,t,n){h||(s.startObserving(n||{}),h=!0);var r=l.length;return l.push([v.addListener('geolocationDidChange',e),t?v.addListener('geolocationError',t):null]),r},clearWatch:function(e){var t=l[e];if(t){t[0].remove();var n=t[1];n&&n.remove(),l[e]=void 0;for(var r=!0,i=0;i1?r-1:0),a=1;a1?e-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:-1;if(0===e)return!0;if(t===n)return!1;if('function'==typeof t&&'function'==typeof n)return!1;if('object'!=typeof t||null===t)return t!==n;if('object'!=typeof n||null===n)return!0;if(t.constructor!==n.constructor)return!0;if(Array.isArray(t)){var f=t.length;if(n.length!==f)return!0;for(var i=0;i0,u=n&&n.length>0;return!c&&u?n[0]:c?e[0]:t}}},156,[]); +__d(function(n,e,r,t,u){"use strict";r.exports=function(n){if(null!=n)return n;throw new Error("Got unexpected null or undefined")}},157,[]); +__d(function(e,t,o,r,s){'use strict';var n=t(s[0]),i=t(s[1]),a=t(s[2]),p=t(s[3]),l=t(s[4]),d=t(s[5]),c=t(s[6]),h=t(s[7]),u=t(s[8]),b=t(s[9]),f=a.shape({type:a.oneOf(['RippleAndroid']),color:a.number,borderless:a.bool}),y=a.shape({type:a.oneOf(['ThemeAttrAndroid']),attribute:a.string.isRequired}),P=a.oneOfType([f,y]),g={top:20,left:20,right:20,bottom:30},H=h({displayName:'TouchableNativeFeedback',propTypes:babelHelpers.objectSpread({},d.propTypes,{background:P,hasTVPreferredFocus:a.bool,useForeground:a.bool}),statics:{SelectableBackground:function(){return{type:'ThemeAttrAndroid',attribute:'selectableItemBackground'}},SelectableBackgroundBorderless:function(){return{type:'ThemeAttrAndroid',attribute:'selectableItemBackgroundBorderless'}},Ripple:function(e,t){return{type:'RippleAndroid',color:b(e),borderless:t}},canUseNativeForeground:function(){return n.Version>=23}},mixins:[l.Mixin],getDefaultProps:function(){return{background:this.SelectableBackground()}},getInitialState:function(){return this.touchableGetInitialState()},componentDidMount:function(){u(this.props)},UNSAFE_componentWillReceiveProps:function(e){u(e)},touchableHandleActivePressIn:function(e){this.props.onPressIn&&this.props.onPressIn(e),this._dispatchPressedStateChange(!0),this.pressInLocation&&this._dispatchHotspotUpdate(this.pressInLocation.locationX,this.pressInLocation.locationY)},touchableHandleActivePressOut:function(e){this.props.onPressOut&&this.props.onPressOut(e),this._dispatchPressedStateChange(!1)},touchableHandlePress:function(e){this.props.onPress&&this.props.onPress(e)},touchableHandleLongPress:function(e){this.props.onLongPress&&this.props.onLongPress(e)},touchableGetPressRectOffset:function(){return this.props.pressRetentionOffset||g},touchableGetHitSlop:function(){return this.props.hitSlop},touchableGetHighlightDelayMS:function(){return this.props.delayPressIn},touchableGetLongPressDelayMS:function(){return this.props.delayLongPress},touchableGetPressOutDelayMS:function(){return this.props.delayPressOut},_handleResponderMove:function(e){this.touchableHandleResponderMove(e),this._dispatchHotspotUpdate(e.nativeEvent.locationX,e.nativeEvent.locationY)},_dispatchHotspotUpdate:function(e,t){c.dispatchViewManagerCommand(p.findNodeHandle(this),c.RCTView.Commands.hotspotUpdate,[e||0,t||0])},_dispatchPressedStateChange:function(e){c.dispatchViewManagerCommand(p.findNodeHandle(this),c.RCTView.Commands.setPressed,[e])},render:function(){var e,t=i.Children.only(this.props.children),o=t.props.children;l.TOUCH_TARGET_DEBUG&&'View'===t.type.displayName&&(Array.isArray(o)||(o=[o]),o.push(l.renderDebugView({color:'brown',hitSlop:this.props.hitSlop}))),this.props.useForeground&&!H.canUseNativeForeground()&&console.warn("Requested foreground ripple, but it is not available on this version of Android. Consider calling TouchableNativeFeedback.canUseNativeForeground() and using a different Touchable if the result is false.");var r=this.props.useForeground&&H.canUseNativeForeground()?'nativeForegroundAndroid':'nativeBackgroundAndroid',s=babelHelpers.objectSpread({},t.props,(e={},babelHelpers.defineProperty(e,r,this.props.background),babelHelpers.defineProperty(e,"accessible",!1!==this.props.accessible),babelHelpers.defineProperty(e,"accessibilityLabel",this.props.accessibilityLabel),babelHelpers.defineProperty(e,"accessibilityComponentType",this.props.accessibilityComponentType),babelHelpers.defineProperty(e,"accessibilityTraits",this.props.accessibilityTraits),babelHelpers.defineProperty(e,"children",o),babelHelpers.defineProperty(e,"testID",this.props.testID),babelHelpers.defineProperty(e,"onLayout",this.props.onLayout),babelHelpers.defineProperty(e,"hitSlop",this.props.hitSlop),babelHelpers.defineProperty(e,"isTVSelectable",!0),babelHelpers.defineProperty(e,"hasTVPreferredFocus",this.props.hasTVPreferredFocus),babelHelpers.defineProperty(e,"onStartShouldSetResponder",this.touchableHandleStartShouldSetResponder),babelHelpers.defineProperty(e,"onResponderTerminationRequest",this.touchableHandleResponderTerminationRequest),babelHelpers.defineProperty(e,"onResponderGrant",this.touchableHandleResponderGrant),babelHelpers.defineProperty(e,"onResponderMove",this._handleResponderMove),babelHelpers.defineProperty(e,"onResponderRelease",this.touchableHandleResponderRelease),babelHelpers.defineProperty(e,"onResponderTerminate",this.touchableHandleResponderTerminate),e));return i.cloneElement(t,s)}});o.exports=H},158,[12,25,43,95,91,159,49,161,163,52]); +__d(function(e,s,t,o,n){'use strict';var i=s(n[0]),r=s(n[1]),p=s(n[2]),a=s(n[3]),l=s(n[4]),c=s(n[5]),h=s(n[6]),u=s(n[7]),d=s(n[8]),y=d.AccessibilityComponentTypes,b=d.AccessibilityTraits,f={top:20,left:20,right:20,bottom:30},P=c({displayName:'TouchableWithoutFeedback',mixins:[a,l.Mixin],propTypes:{accessible:p.bool,accessibilityLabel:p.node,accessibilityComponentType:p.oneOf(y),accessibilityTraits:p.oneOfType([p.oneOf(b),p.arrayOf(p.oneOf(b))]),disabled:p.bool,onPress:p.func,onPressIn:p.func,onPressOut:p.func,onLayout:p.func,onLongPress:p.func,nativeID:p.string,testID:p.string,delayPressIn:p.number,delayPressOut:p.number,delayLongPress:p.number,pressRetentionOffset:i,hitSlop:i},getInitialState:function(){return this.touchableGetInitialState()},componentDidMount:function(){h(this.props)},UNSAFE_componentWillReceiveProps:function(e){h(e)},touchableHandlePress:function(e){this.props.onPress&&this.props.onPress(e)},touchableHandleActivePressIn:function(e){this.props.onPressIn&&this.props.onPressIn(e)},touchableHandleActivePressOut:function(e){this.props.onPressOut&&this.props.onPressOut(e)},touchableHandleLongPress:function(e){this.props.onLongPress&&this.props.onLongPress(e)},touchableGetPressRectOffset:function(){return this.props.pressRetentionOffset||f},touchableGetHitSlop:function(){return this.props.hitSlop},touchableGetHighlightDelayMS:function(){return this.props.delayPressIn||0},touchableGetLongPressDelayMS:function(){return 0===this.props.delayLongPress?0:this.props.delayLongPress||500},touchableGetPressOutDelayMS:function(){return this.props.delayPressOut||0},render:function(){var e=r.Children.only(this.props.children),s=e.props.children;u(!e.type||'Text'!==e.type.displayName,'TouchableWithoutFeedback does not work well with Text children. Wrap children in a View instead. See '+(e._owner&&e._owner.getName&&e._owner.getName()||'')),l.TOUCH_TARGET_DEBUG&&e.type&&'View'===e.type.displayName&&(s=r.Children.toArray(s)).push(l.renderDebugView({color:'red',hitSlop:this.props.hitSlop}));var t=l.TOUCH_TARGET_DEBUG&&e.type&&'Text'===e.type.displayName?[e.props.style,{color:'red'}]:e.props.style;return r.cloneElement(e,{accessible:!1!==this.props.accessible,accessibilityLabel:this.props.accessibilityLabel,accessibilityComponentType:this.props.accessibilityComponentType,accessibilityTraits:this.props.accessibilityTraits,nativeID:this.props.nativeID,testID:this.props.testID,onLayout:this.props.onLayout,hitSlop:this.props.hitSlop,onStartShouldSetResponder:this.touchableHandleStartShouldSetResponder,onResponderTerminationRequest:this.touchableHandleResponderTerminationRequest,onResponderGrant:this.touchableHandleResponderGrant,onResponderMove:this.touchableHandleResponderMove,onResponderRelease:this.touchableHandleResponderRelease,onResponderTerminate:this.touchableHandleResponderTerminate,style:t,children:s})}});t.exports=P},159,[72,25,43,160,91,161,163,16,80]); +__d(function(i,t,e,n,a){'use strict';var r='undefined'==typeof window?i:window,s=function(i,t,e){return function(n,a){var r=i(function(){t.call(this,r),n.apply(this,arguments)}.bind(this),a);return this[e]?this[e].push(r):this[e]=[r],r}},c=function(i,t){return function(e){if(this[t]){var n=this[t].indexOf(e);-1!==n&&this[t].splice(n,1)}i(e)}},m='TimerMixin_timeouts',o=c(r.clearTimeout,m),l=s(r.setTimeout,o,m),u='TimerMixin_intervals',h=c(r.clearInterval,u),f=s(r.setInterval,function(){},u),d='TimerMixin_immediates',I=c(r.clearImmediate,d),v=s(r.setImmediate,I,d),T='TimerMixin_rafs',p=c(r.cancelAnimationFrame,T),x={componentWillUnmount:function(){this[m]&&this[m].forEach(function(i){r.clearTimeout(i)}),this[m]=null,this[u]&&this[u].forEach(function(i){r.clearInterval(i)}),this[u]=null,this[d]&&this[d].forEach(function(i){r.clearImmediate(i)}),this[d]=null,this[T]&&this[T].forEach(function(i){r.cancelAnimationFrame(i)}),this[T]=null},setTimeout:l,clearTimeout:o,setInterval:f,clearInterval:h,setImmediate:v,clearImmediate:I,requestAnimationFrame:s(r.requestAnimationFrame,p,T),cancelAnimationFrame:p};e.exports=x},160,[]); +__d(function(e,t,a,r,o){'use strict';var c=t(o[0]),s=t(o[1]);if(void 0===c)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var n=(new c.Component).updater;a.exports=s(c.Component,c.isValidElement,n)},161,[26,162]); +__d(function(t,e,n,o,i){'use strict';var r=e(i[0]),a=e(i[1]),s=e(i[2]),p='mixins';n.exports=function(t,e,n){var o=[],i={mixins:'DEFINE_MANY',statics:'DEFINE_MANY',propTypes:'DEFINE_MANY',contextTypes:'DEFINE_MANY',childContextTypes:'DEFINE_MANY',getDefaultProps:'DEFINE_MANY_MERGED',getInitialState:'DEFINE_MANY_MERGED',getChildContext:'DEFINE_MANY_MERGED',render:'DEFINE_ONCE',componentWillMount:'DEFINE_MANY',componentDidMount:'DEFINE_MANY',componentWillReceiveProps:'DEFINE_MANY',shouldComponentUpdate:'DEFINE_ONCE',componentWillUpdate:'DEFINE_MANY',componentDidUpdate:'DEFINE_MANY',componentWillUnmount:'DEFINE_MANY',UNSAFE_componentWillMount:'DEFINE_MANY',UNSAFE_componentWillReceiveProps:'DEFINE_MANY',UNSAFE_componentWillUpdate:'DEFINE_MANY',updateComponent:'OVERRIDE_BASE'},c={getDerivedStateFromProps:'DEFINE_MANY_MERGED'},u={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{}).iterations,e=void 0===t?-1:t,i=!1,r=0;return{start:function(t){n&&0!==e?n._isUsingNativeDriver()?n._startNativeLoop(e):(function o(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{finished:!0};i||r===e||!1===a.finished?t&&t(a):(r++,n.reset(),n.start(o))})():t&&t({finished:!0})},stop:function(){i=!0,n.stop()},reset:function(){r=0,i=!1,n.reset()},_startNativeLoop:function(){throw new Error('Loops run using the native driver cannot contain Animated.loop animations')},_isUsingNativeDriver:function(){return n._isUsingNativeDriver()}}},event:function(n,t){var e=new a(n,t);return e.__isNative?e:e.__getHandler()},createAnimatedComponent:E,attachNativeEvent:u,forkEvent:function(n,t){return n?n instanceof a?(n.__addListener(t),n):function(){'function'==typeof n&&n.apply(void 0,arguments),t.apply(void 0,arguments)}:t},unforkEvent:function(n,t){n&&n instanceof a&&n.__removeListener(t)},__PropsOnlyForTests:g}},166,[167,175,176,177,169,178,179,170,180,183,184,168,185,186,188,190,193]); +__d(function(e,t,n,i,a){'use strict';var s=t(a[0]),r=t(a[1]),v=t(a[2]),l=t(a[3]),c=t(a[1]).shouldUseNativeDriver;function o(e,t,n){var i=[];l(n[0]&&n[0].nativeEvent,'Native driven events only support animated values contained inside `nativeEvent`.'),(function e(t,n){if(t instanceof s)t.__makeNative(),i.push({nativeEventPath:n,animatedValueTag:t.__getNativeTag()});else if('object'==typeof t)for(var a in t)e(t[a],n.concat(a))})(n[0].nativeEvent,[]);var a=v.findNodeHandle(e);return i.forEach(function(e){r.API.addAnimatedEventToView(a,t,e)}),{detach:function(){i.forEach(function(e){r.API.removeAnimatedEventFromView(a,t,e.animatedValueTag)})}}}var _=(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};babelHelpers.classCallCheck(this,e),this._listeners=[],this._argMapping=t,n.listener&&this.__addListener(n.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=c(n)}return babelHelpers.createClass(e,[{key:"__addListener",value:function(e){this._listeners.push(e)}},{key:"__removeListener",value:function(e){this._listeners=this._listeners.filter(function(t){return t!==e})}},{key:"__attach",value:function(e,t){l(this.__isNative,'Only native driven events need to be attached.'),this._attachedEvent=o(e,t,this._argMapping)}},{key:"__detach",value:function(e,t){l(this.__isNative,'Only native driven events need to be detached.'),this._attachedEvent&&this._attachedEvent.detach()}},{key:"__getHandler",value:function(){var e=this;return this.__isNative?this._callListeners:function(){for(var t=arguments.length,n=new Array(t),i=0;in){if('identity'===u)return l;'clamp'===u&&(l=n)}return a===r?a:e===n?t<=e?a:r:(e===-1/0?l=-l:n===1/0?l-=e:l=(l-e)/(n-e),l=i(l),a===-1/0?l=-l:r===1/0?l+=a:l=l*(r-a)+a,l)}function h(t){var e=u(t);return null===e?t:"rgba("+((4278190080&(e=e||0))>>>24)+", "+((16711680&e)>>>16)+", "+((65280&e)>>>8)+", "+(255&e)/255+")"}var c=/[0-9\.-]+/g;function f(t){var e=t.outputRange;o(e.length>=2,'Bad output range'),g(e=e.map(h));var n=e[0].match(c).map(function(){return[]});e.forEach(function(t){t.match(c).forEach(function(t,e){n[e].push(+t)})});var a,r=e[0].match(c).map(function(e,a){return p(babelHelpers.objectSpread({},t,{outputRange:n[a]}))}),i='string'==typeof(a=e[0])&&a.startsWith('rgb');return function(t){var n=0;return e[0].replace(c,function(){var e=+r[n++](t),a=i&&n<4?Math.round(e):Math.round(1e3*e)/1e3;return String(a)})}}function g(t){for(var e=t[0].replace(c,''),n=1;n=t);++n);return n-1}function v(t){o(t.length>=2,'inputRange must have at least 2 elements');for(var e=1;e=t[e-1],'inputRange must be monotonically non-decreasing '+t)}function b(t,e){o(e.length>=2,t+' must have at least 2 elements'),o(2!==e.length||e[0]!==-1/0||e[1]!==1/0,t+'cannot be ]-infinity;+infinity[ '+e)}var m=(function(t){function e(t,n){var a;return babelHelpers.classCallCheck(this,e),(a=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).call(this)))._parent=t,a._config=n,a._interpolation=p(n),a}return babelHelpers.createClass(e,[{key:"__makeNative",value:function(){this._parent.__makeNative(),babelHelpers.get(babelHelpers.getPrototypeOf(e.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){var t=this._parent.__getValue();return o('number'==typeof t,'Cannot interpolate an input which is not a number.'),this._interpolation(t)}},{key:"interpolate",value:function(t){return new e(this,t)}},{key:"__attach",value:function(){this._parent.__addChild(this)}},{key:"__detach",value:function(){this._parent.__removeChild(this),babelHelpers.get(babelHelpers.getPrototypeOf(e.prototype),"__detach",this).call(this)}},{key:"__transformDataType",value:function(t){return t.map(function(t){return'string'!=typeof t?t:/deg$/.test(t)?(parseFloat(t)||0)*Math.PI/180:parseFloat(t)||0})}},{key:"__getNativeConfig",value:function(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||'extend',extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||'extend',type:'interpolation'}}}]),babelHelpers.inherits(e,t),e})(i);m.__createInterpolation=p,n.exports=m},169,[170,172,171,2,39]); +__d(function(e,t,a,n,i){'use strict';var _=t(i[0]),o=t(i[1]),u=(function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,[{key:"__attach",value:function(){}},{key:"__detach",value:function(){this.__isNative&&null!=this.__nativeTag&&(_.API.dropAnimatedNode(this.__nativeTag),this.__nativeTag=void 0)}},{key:"__getValue",value:function(){}},{key:"__getAnimatedValue",value:function(){return this.__getValue()}},{key:"__addChild",value:function(e){}},{key:"__removeChild",value:function(e){}},{key:"__getChildren",value:function(){return[]}},{key:"__makeNative",value:function(){if(!this.__isNative)throw new Error('This node cannot be made a "native" animated node')}},{key:"__getNativeTag",value:function(){if(_.assertNativeAnimatedModule(),o(this.__isNative,'Attempt to get native tag from node not marked as "native"'),null==this.__nativeTag){var e=_.generateNewNodeTag();_.API.createAnimatedNode(e,this.__getNativeConfig()),this.__nativeTag=e}return this.__nativeTag}},{key:"__getNativeConfig",value:function(){throw new Error('This JS animated node type cannot be used as native animated node')}},{key:"toJSON",value:function(){return this.__getValue()}}]),e})();a.exports=u},170,[171,2]); +__d(function(e,t,n,o,i){'use strict';var a,r=t(i[0]).NativeAnimatedModule,d=t(i[1]),s=t(i[2]),u=1,m=1,c={createAnimatedNode:function(e,t){A(),r.createAnimatedNode(e,t)},startListeningToAnimatedNodeValue:function(e){A(),r.startListeningToAnimatedNodeValue(e)},stopListeningToAnimatedNodeValue:function(e){A(),r.stopListeningToAnimatedNodeValue(e)},connectAnimatedNodes:function(e,t){A(),r.connectAnimatedNodes(e,t)},disconnectAnimatedNodes:function(e,t){A(),r.disconnectAnimatedNodes(e,t)},startAnimatingNode:function(e,t,n,o){A(),r.startAnimatingNode(e,t,n,o)},stopAnimation:function(e){A(),r.stopAnimation(e)},setAnimatedNodeValue:function(e,t){A(),r.setAnimatedNodeValue(e,t)},setAnimatedNodeOffset:function(e,t){A(),r.setAnimatedNodeOffset(e,t)},flattenAnimatedNodeOffset:function(e){A(),r.flattenAnimatedNodeOffset(e)},extractAnimatedNodeOffset:function(e){A(),r.extractAnimatedNodeOffset(e)},connectAnimatedNodeToView:function(e,t){A(),r.connectAnimatedNodeToView(e,t)},disconnectAnimatedNodeFromView:function(e,t){A(),r.disconnectAnimatedNodeFromView(e,t)},dropAnimatedNode:function(e){A(),r.dropAnimatedNode(e)},addAnimatedEventToView:function(e,t,n){A(),r.addAnimatedEventToView(e,t,n)},removeAnimatedEventFromView:function(e,t,n){A(),r.removeAnimatedEventFromView(e,t,n)}},f={opacity:!0,transform:!0,borderRadius:!0,borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0},p={translateX:!0,translateY:!0,scale:!0,scaleX:!0,scaleY:!0,rotate:!0,rotateX:!0,rotateY:!0,perspective:!0},l={inputRange:!0,outputRange:!0,extrapolate:!0,extrapolateRight:!0,extrapolateLeft:!0};function A(){s(r,'Native animated module is not available')}var v=!1;n.exports={API:c,addWhitelistedStyleProp:function(e){f[e]=!0},addWhitelistedTransformProp:function(e){p[e]=!0},addWhitelistedInterpolationParam:function(e){l[e]=!0},validateStyles:function(e){for(var t in e)if(!f.hasOwnProperty(t))throw new Error("Style property '"+t+"' is not supported by native animated module")},validateTransform:function(e){e.forEach(function(e){if(!p.hasOwnProperty(e.property))throw new Error("Property '"+e.property+"' is not supported by native animated module")})},validateInterpolation:function(e){for(var t in e)if(!l.hasOwnProperty(t))throw new Error("Interpolation property '"+t+"' is not supported by native animated module")},generateNewNodeTag:function(){return u++},generateNewAnimationId:function(){return m++},assertNativeAnimatedModule:A,shouldUseNativeDriver:function(e){return e.useNativeDriver&&!r?(v||(console.warn("Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module to this app, or remove `useNativeDriver`. More info: https://github.com/facebook/react-native/issues/11094#issuecomment-263240420"),v=!0),!1):e.useNativeDriver||!1},get nativeEventEmitter(){return a||(a=new d(r)),a}}},171,[4,124,2]); +__d(function(e,t,i,a,s){'use strict';var n=t(s[0]),r=t(s[1]),_=(function(e){function t(){var e;return babelHelpers.classCallCheck(this,t),(e=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this)))._children=[],e}return babelHelpers.createClass(t,[{key:"__makeNative",value:function(){if(!this.__isNative){this.__isNative=!0;var e=this._children,t=Array.isArray(e),i=0;for(e=t?e:e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var a;if(t){if(i>=e.length)break;a=e[i++]}else{if((i=e.next()).done)break;a=i.value}var s=a;s.__makeNative(),r.API.connectAnimatedNodes(this.__getNativeTag(),s.__getNativeTag())}}}},{key:"__addChild",value:function(e){0===this._children.length&&this.__attach(),this._children.push(e),this.__isNative&&(e.__makeNative(),r.API.connectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()))}},{key:"__removeChild",value:function(e){var t=this._children.indexOf(e);-1!==t?(this.__isNative&&e.__isNative&&r.API.disconnectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()),this._children.splice(t,1),0===this._children.length&&this.__detach()):console.warn("Trying to remove a child that doesn't exist")}},{key:"__getChildren",value:function(){return this._children}}]),babelHelpers.inherits(t,e),t})(n);i.exports=_},172,[170,171]); +__d(function(e,n,t,r,o){'use strict';var a=n(o[0]),i=n(o[1]),c=n(o[2]),s=n(o[3]),u=(n(o[4]),n(o[5])),d=n(o[6]),l=new i,f={Events:d({interactionStart:!0,interactionComplete:!0}),runAfterInteractions:function(e){var n=[],t=new Promise(function(t){k(),e&&n.push(e),n.push({run:t,name:'resolve '+(e&&e.name||'?')}),h.enqueueTasks(n)});return{then:t.then.bind(t),done:function(){if(t.done)return t.done.apply(t,arguments);console.warn('Tried to call done when not supported by current Promise implementation.')},cancel:function(){h.cancelTasks(n)}}},createInteractionHandle:function(){k();var e=++T;return p.add(e),e},clearInteractionHandle:function(e){u(!!e,'Must provide a handle to clear.'),k(),p.delete(e),v.add(e)},addListener:l.addListener.bind(l),setDeadline:function(e){E=e}},m=new c,p=new c,v=new c,h=new s({onMoreTasks:k}),w=0,T=0,E=-1;function k(){w||(w=E>0?setTimeout(b,0):setImmediate(b))}function b(){w=0;var e=m.size;p.forEach(function(e){return m.add(e)}),v.forEach(function(e){return m.delete(e)});var n=m.size;if(0!==e&&0===n?l.emit(f.Events.interactionComplete):0===e&&0!==n&&l.emit(f.Events.interactionStart),0===n)for(;h.hasTasksToProcess();)if(h.processNext(),E>0&&a.getEventLoopRunningTime()>=E){k();break}p.clear(),v.clear()}t.exports=f},173,[5,20,104,174,149,2,41]); +__d(function(e,t,s,u,n){'use strict';t(n[0]);var a=t(n[1]),r=(function(){function e(t){var s=t.onMoreTasks;babelHelpers.classCallCheck(this,e),this._onMoreTasks=s,this._queueStack=[{tasks:[],popable:!1}]}return babelHelpers.createClass(e,[{key:"enqueue",value:function(e){this._getCurrentQueue().push(e)}},{key:"enqueueTasks",value:function(e){var t=this;e.forEach(function(e){return t.enqueue(e)})}},{key:"cancelTasks",value:function(e){this._queueStack=this._queueStack.map(function(t){return babelHelpers.objectSpread({},t,{tasks:t.tasks.filter(function(t){return-1===e.indexOf(t)})})}).filter(function(e,t){return e.tasks.length>0||0===t})}},{key:"hasTasksToProcess",value:function(){return this._getCurrentQueue().length>0}},{key:"processNext",value:function(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{t.gen?this._genPromise(t):t.run?t.run():(a('function'==typeof t,'Expected Function, SimpleTask, or PromiseTask, but got:\n'+JSON.stringify(t,null,2)),t())}catch(e){throw e.message='TaskQueue: Error with task '+(t.name||'')+': '+e.message,e}}}},{key:"_getCurrentQueue",value:function(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&this._queueStack.length>1?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}},{key:"_genPromise",value:function(e){var t=this;this._queueStack.push({tasks:[],popable:!1});var s=this._queueStack.length-1;e.gen().then(function(){t._queueStack[s].popable=!0,t.hasTasksToProcess()&&t._onMoreTasks()}).catch(function(t){throw t.message="TaskQueue: Error resolving Promise in task "+e.name+": "+t.message,t}).done()}}]),e})();s.exports=r},174,[149,2]); +__d(function(e,t,a,i,_){'use strict';var l=t(_[0]),s=(t(_[1]),t(_[2])),r=(function(e){function t(e,a){var i;return babelHelpers.classCallCheck(this,t),(i=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this)))._a='number'==typeof e?new s(e):e,i._b='number'==typeof a?new s(a):a,i}return babelHelpers.createClass(t,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return this._a.__getValue()+this._b.__getValue()}},{key:"interpolate",value:function(e){return new l(this,e)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'addition',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),babelHelpers.inherits(t,e),t})(t(_[3]));a.exports=r},175,[169,170,168,172]); +__d(function(e,t,a,i,l){'use strict';var _=t(l[0]),s=(t(l[1]),(function(e){function t(e,a,i){var l;return babelHelpers.classCallCheck(this,t),(l=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this)))._a=e,l._min=a,l._max=i,l._value=l._lastValue=l._a.__getValue(),l}return babelHelpers.createClass(t,[{key:"__makeNative",value:function(){this._a.__makeNative(),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__makeNative",this).call(this)}},{key:"interpolate",value:function(e){return new _(this,e)}},{key:"__getValue",value:function(){var e=this._a.__getValue(),t=e-this._lastValue;return this._lastValue=e,this._value=Math.min(Math.max(this._value+t,this._min),this._max),this._value}},{key:"__attach",value:function(){this._a.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'diffclamp',input:this._a.__getNativeTag(),min:this._min,max:this._max}}}]),babelHelpers.inherits(t,e),t})(t(l[2])));a.exports=s},176,[169,170,172]); +__d(function(e,t,i,a,_){'use strict';var s=t(_[0]),l=(t(_[1]),t(_[2])),r=(function(e){function t(e,i){var a;return babelHelpers.classCallCheck(this,t),(a=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this)))._a='number'==typeof e?new l(e):e,a._b='number'==typeof i?new l(i):i,a}return babelHelpers.createClass(t,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){var e=this._a.__getValue(),t=this._b.__getValue();return 0===t&&console.error('Detected division by zero in AnimatedDivision'),e/t}},{key:"interpolate",value:function(e){return new s(this,e)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'division',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),babelHelpers.inherits(t,e),t})(t(_[3]));i.exports=r},177,[169,170,168,172]); +__d(function(e,t,a,l,s){'use strict';var i=t(s[0]),u=(t(s[1]),(function(e){function t(e,a){var l;return babelHelpers.classCallCheck(this,t),(l=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this)))._a=e,l._modulus=a,l}return babelHelpers.createClass(t,[{key:"__makeNative",value:function(){this._a.__makeNative(),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}},{key:"interpolate",value:function(e){return new i(this,e)}},{key:"__attach",value:function(){this._a.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'modulus',input:this._a.__getNativeTag(),modulus:this._modulus}}}]),babelHelpers.inherits(t,e),t})(t(s[2])));a.exports=u},178,[169,170,172]); +__d(function(e,t,a,i,_){'use strict';var l=t(_[0]),s=(t(_[1]),t(_[2])),r=(function(e){function t(e,a){var i;return babelHelpers.classCallCheck(this,t),(i=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this)))._a='number'==typeof e?new s(e):e,i._b='number'==typeof a?new s(a):a,i}return babelHelpers.createClass(t,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return this._a.__getValue()*this._b.__getValue()}},{key:"interpolate",value:function(e){return new l(this,e)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'multiplication',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),babelHelpers.inherits(t,e),t})(t(_[3]));a.exports=r},179,[169,170,168,172]); +__d(function(e,t,i,a,n){'use strict';var s=t(n[0]).AnimatedEvent,_=t(n[1]),o=t(n[2]),r=t(n[3]),l=t(n[4]),c=t(n[5]),v=(function(e){function t(e,i){var a;return babelHelpers.classCallCheck(this,t),a=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this)),e.style&&(e=babelHelpers.objectSpread({},e,{style:new o(e.style)})),a._props=e,a._callback=i,a.__attach(),a}return babelHelpers.createClass(t,[{key:"__getValue",value:function(){var e={};for(var t in this._props){var i=this._props[t];i instanceof _?(!i.__isNative||i instanceof o)&&(e[t]=i.__getValue()):e[t]=i instanceof s?i.__getHandler():i}return e}},{key:"__getAnimatedValue",value:function(){var e={};for(var t in this._props){var i=this._props[t];i instanceof _&&(e[t]=i.__getAnimatedValue())}return e}},{key:"__attach",value:function(){for(var e in this._props){var t=this._props[e];t instanceof _&&t.__addChild(this)}}},{key:"__detach",value:function(){for(var e in this.__isNative&&this._animatedView&&this.__disconnectAnimatedView(),this._props){var i=this._props[e];i instanceof _&&i.__removeChild(this)}babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__detach",this).call(this)}},{key:"update",value:function(){this._callback()}},{key:"__makeNative",value:function(){if(!this.__isNative){for(var e in this.__isNative=!0,this._props){var t=this._props[e];t instanceof _&&t.__makeNative()}this._animatedView&&this.__connectAnimatedView()}}},{key:"setNativeView",value:function(e){this._animatedView!==e&&(this._animatedView=e,this.__isNative&&this.__connectAnimatedView())}},{key:"__connectAnimatedView",value:function(){c(this.__isNative,'Expected node to be marked as "native"');var e=l.findNodeHandle(this._animatedView);c(null!=e,'Unable to locate attached view in the native tree'),r.API.connectAnimatedNodeToView(this.__getNativeTag(),e)}},{key:"__disconnectAnimatedView",value:function(){c(this.__isNative,'Expected node to be marked as "native"');var e=l.findNodeHandle(this._animatedView);c(null!=e,'Unable to locate attached view in the native tree'),r.API.disconnectAnimatedNodeFromView(this.__getNativeTag(),e)}},{key:"__getNativeConfig",value:function(){var e={};for(var t in this._props){var i=this._props[t];i instanceof _&&(e[t]=i.__getNativeTag())}return{type:'props',props:e}}}]),babelHelpers.inherits(t,e),t})(_);i.exports=v},180,[167,170,181,171,95,2]); +__d(function(e,t,a,l,s){'use strict';var r=t(s[0]),i=t(s[1]),n=t(s[2]),_=t(s[3]),o=t(s[4]),y=(function(e){function t(e){var a;return babelHelpers.classCallCheck(this,t),a=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this)),(e=o(e)||{}).transform&&(e=babelHelpers.objectSpread({},e,{transform:new i(e.transform)})),a._style=e,a}return babelHelpers.createClass(t,[{key:"_walkStyleAndGetValues",value:function(e){var t={};for(var a in e){var l=e[a];l instanceof r?l.__isNative||(t[a]=l.__getValue()):l&&!Array.isArray(l)&&'object'==typeof l?t[a]=this._walkStyleAndGetValues(l):t[a]=l}return t}},{key:"__getValue",value:function(){return this._walkStyleAndGetValues(this._style)}},{key:"_walkStyleAndGetAnimatedValues",value:function(e){var t={};for(var a in e){var l=e[a];l instanceof r?t[a]=l.__getAnimatedValue():l&&!Array.isArray(l)&&'object'==typeof l&&(t[a]=this._walkStyleAndGetAnimatedValues(l))}return t}},{key:"__getAnimatedValue",value:function(){return this._walkStyleAndGetAnimatedValues(this._style)}},{key:"__attach",value:function(){for(var e in this._style){var t=this._style[e];t instanceof r&&t.__addChild(this)}}},{key:"__detach",value:function(){for(var e in this._style){var a=this._style[e];a instanceof r&&a.__removeChild(this)}babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__detach",this).call(this)}},{key:"__makeNative",value:function(){for(var e in babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__makeNative",this).call(this),this._style){var a=this._style[e];a instanceof r&&a.__makeNative()}}},{key:"__getNativeConfig",value:function(){var e={};for(var t in this._style)this._style[t]instanceof r&&(e[t]=this._style[t].__getNativeTag());return _.validateStyles(e),{type:'style',style:e}}}]),babelHelpers.inherits(t,e),t})(n);a.exports=y},181,[170,182,172,171,57]); +__d(function(e,t,a,r,n){'use strict';var s=t(n[0]),o=t(n[1]),i=t(n[2]),f=(function(e){function t(e){var a;return babelHelpers.classCallCheck(this,t),(a=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this)))._transforms=e,a}return babelHelpers.createClass(t,[{key:"__makeNative",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__makeNative",this).call(this),this._transforms.forEach(function(e){for(var t in e){var a=e[t];a instanceof s&&a.__makeNative()}})}},{key:"__getValue",value:function(){return this._transforms.map(function(e){var t={};for(var a in e){var r=e[a];t[a]=r instanceof s?r.__getValue():r}return t})}},{key:"__getAnimatedValue",value:function(){return this._transforms.map(function(e){var t={};for(var a in e){var r=e[a];t[a]=r instanceof s?r.__getAnimatedValue():r}return t})}},{key:"__attach",value:function(){var e=this;this._transforms.forEach(function(t){for(var a in t){var r=t[a];r instanceof s&&r.__addChild(e)}})}},{key:"__detach",value:function(){var e=this;this._transforms.forEach(function(t){for(var a in t){var r=t[a];r instanceof s&&r.__removeChild(e)}}),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){var e=[];return this._transforms.forEach(function(t){for(var a in t){var r=t[a];r instanceof s?e.push({type:'animated',property:a,nodeTag:r.__getNativeTag()}):e.push({type:'static',property:a,value:r})}}),i.validateTransform(e),{type:'transform',transforms:e}}}]),babelHelpers.inherits(t,e),t})(o);a.exports=f},182,[170,172,171]); +__d(function(e,t,a,i,_){'use strict';var l=t(_[0]),s=(t(_[1]),t(_[2])),r=(function(e){function t(e,a){var i;return babelHelpers.classCallCheck(this,t),(i=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this)))._a='number'==typeof e?new s(e):e,i._b='number'==typeof a?new s(a):a,i}return babelHelpers.createClass(t,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return this._a.__getValue()-this._b.__getValue()}},{key:"interpolate",value:function(e){return new l(this,e)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'subtraction',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),babelHelpers.inherits(t,e),t})(t(_[3]));a.exports=r},183,[169,170,168,172]); +__d(function(e,t,a,i,n){'use strict';t(n[0]);var l=t(n[1]),_=t(n[2]),s=_.generateNewAnimationId,r=_.shouldUseNativeDriver,o=(function(e){function t(e,a,i,n,l){var _;return babelHelpers.classCallCheck(this,t),(_=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this)))._value=e,_._parent=a,_._animationClass=i,_._animationConfig=n,_._useNativeDriver=r(n),_._callback=l,_.__attach(),_}return babelHelpers.createClass(t,[{key:"__makeNative",value:function(){this.__isNative=!0,this._parent.__makeNative(),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__makeNative",this).call(this),this._value.__makeNative()}},{key:"__getValue",value:function(){return this._parent.__getValue()}},{key:"__attach",value:function(){this._parent.__addChild(this),this._useNativeDriver&&this.__makeNative()}},{key:"__detach",value:function(){this._parent.__removeChild(this),babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"__detach",this).call(this)}},{key:"update",value:function(){this._value.animate(new this._animationClass(babelHelpers.objectSpread({},this._animationConfig,{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}},{key:"__getNativeConfig",value:function(){var e=new this._animationClass(babelHelpers.objectSpread({},this._animationConfig,{toValue:void 0})).__getNativeAnimationConfig();return{type:'tracking',animationId:s(),animationConfig:e,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}}]),babelHelpers.inherits(t,e),t})(l);a.exports=o},184,[168,170,171]); +__d(function(e,t,s,i,n){'use strict';var a=t(n[0]),r=t(n[1]),l=t(n[2]),u=1,o=(function(e){function t(e){var s;babelHelpers.classCallCheck(this,t),s=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this));var i=e||{x:0,y:0};return'number'==typeof i.x&&'number'==typeof i.y?(s.x=new a(i.x),s.y=new a(i.y)):(l(i.x instanceof a&&i.y instanceof a,"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),s.x=i.x,s.y=i.y),s._listeners={},s}return babelHelpers.createClass(t,[{key:"setValue",value:function(e){this.x.setValue(e.x),this.y.setValue(e.y)}},{key:"setOffset",value:function(e){this.x.setOffset(e.x),this.y.setOffset(e.y)}},{key:"flattenOffset",value:function(){this.x.flattenOffset(),this.y.flattenOffset()}},{key:"extractOffset",value:function(){this.x.extractOffset(),this.y.extractOffset()}},{key:"__getValue",value:function(){return{x:this.x.__getValue(),y:this.y.__getValue()}}},{key:"resetAnimation",value:function(e){this.x.resetAnimation(),this.y.resetAnimation(),e&&e(this.__getValue())}},{key:"stopAnimation",value:function(e){this.x.stopAnimation(),this.y.stopAnimation(),e&&e(this.__getValue())}},{key:"addListener",value:function(e){var t=this,s=String(u++),i=function(s){s.value;e(t.__getValue())};return this._listeners[s]={x:this.x.addListener(i),y:this.y.addListener(i)},s}},{key:"removeListener",value:function(e){this.x.removeListener(this._listeners[e].x),this.y.removeListener(this._listeners[e].y),delete this._listeners[e]}},{key:"removeAllListeners",value:function(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}},{key:"getLayout",value:function(){return{left:this.x,top:this.y}}},{key:"getTranslateTransform",value:function(){return[{translateX:this.x},{translateY:this.y}]}}]),babelHelpers.inherits(t,e),t})(r);s.exports=o},185,[168,172,2]); +__d(function(t,e,i,a,s){'use strict';var n=e(s[0]),o=e(s[1]).shouldUseNativeDriver,r=(function(e){function i(t){var e;return babelHelpers.classCallCheck(this,i),(e=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(i).call(this)))._deceleration=void 0!==t.deceleration?t.deceleration:.998,e._velocity=t.velocity,e._useNativeDriver=o(t),e.__isInteraction=void 0===t.isInteraction||t.isInteraction,e.__iterations=void 0!==t.iterations?t.iterations:1,e}return babelHelpers.createClass(i,[{key:"__getNativeAnimationConfig",value:function(){return{type:'decay',deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations}}},{key:"start",value:function(t,e,i,a,s){this.__active=!0,this._lastValue=t,this._fromValue=t,this._onUpdate=e,this.__onEnd=i,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(s):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}},{key:"onUpdate",value:function(){var t=Date.now(),e=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(t-this._startTime)));this._onUpdate(e),Math.abs(this._lastValue-e)<.1?this.__debouncedOnEnd({finished:!0}):(this._lastValue=e,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}},{key:"stop",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(i.prototype),"stop",this).call(this),this.__active=!1,t.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}]),babelHelpers.inherits(i,e),i})(n);i.exports=r},186,[187,171]); +__d(function(t,n,e,i,a){'use strict';var o=n(a[0]),_=(function(){function t(){babelHelpers.classCallCheck(this,t)}return babelHelpers.createClass(t,[{key:"start",value:function(t,n,e,i,a){}},{key:"stop",value:function(){this.__nativeId&&o.API.stopAnimation(this.__nativeId)}},{key:"__getNativeAnimationConfig",value:function(){throw new Error('This animation type cannot be offloaded to native')}},{key:"__debouncedOnEnd",value:function(t){var n=this.__onEnd;this.__onEnd=null,n&&n(t)}},{key:"__startNativeAnimation",value:function(t){t.__makeNative(),this.__nativeId=o.generateNewAnimationId(),o.API.startAnimatingNode(this.__nativeId,t.__getNativeTag(),this.__getNativeAnimationConfig(),this.__debouncedOnEnd.bind(this))}}]),t})();e.exports=_},187,[171]); +__d(function(t,s,i,e,a){'use strict';s(a[0]),s(a[1]);var n=s(a[2]),o=s(a[3]),h=s(a[4]),l=s(a[5]).shouldUseNativeDriver;function r(t,s){return void 0===t||null===t?s:t}var _=(function(s){function i(t){var s;if(babelHelpers.classCallCheck(this,i),(s=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(i).call(this)))._overshootClamping=r(t.overshootClamping,!1),s._restDisplacementThreshold=r(t.restDisplacementThreshold,.001),s._restSpeedThreshold=r(t.restSpeedThreshold,.001),s._initialVelocity=r(t.velocity,0),s._lastVelocity=r(t.velocity,0),s._toValue=t.toValue,s._delay=r(t.delay,0),s._useNativeDriver=l(t),s.__isInteraction=void 0===t.isInteraction||t.isInteraction,s.__iterations=void 0!==t.iterations?t.iterations:1,void 0!==t.stiffness||void 0!==t.damping||void 0!==t.mass)h(void 0===t.bounciness&&void 0===t.speed&&void 0===t.tension&&void 0===t.friction,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'),s._stiffness=r(t.stiffness,100),s._damping=r(t.damping,10),s._mass=r(t.mass,1);else if(void 0!==t.bounciness||void 0!==t.speed){h(void 0===t.tension&&void 0===t.friction&&void 0===t.stiffness&&void 0===t.damping&&void 0===t.mass,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one');var e=o.fromBouncinessAndSpeed(r(t.bounciness,8),r(t.speed,12));s._stiffness=e.stiffness,s._damping=e.damping,s._mass=1}else{var a=o.fromOrigamiTensionAndFriction(r(t.tension,40),r(t.friction,7));s._stiffness=a.stiffness,s._damping=a.damping,s._mass=1}return h(s._stiffness>0,'Stiffness value must be greater than 0'),h(s._damping>0,'Damping value must be greater than 0'),h(s._mass>0,'Mass value must be greater than 0'),s}return babelHelpers.createClass(i,[{key:"__getNativeAnimationConfig",value:function(){return{type:'spring',overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:r(this._initialVelocity,this._lastVelocity),toValue:this._toValue,iterations:this.__iterations}}},{key:"start",value:function(t,s,e,a,n){var o=this;if(this.__active=!0,this._startPosition=t,this._lastPosition=this._startPosition,this._onUpdate=s,this.__onEnd=e,this._lastTime=Date.now(),this._frameTime=0,a instanceof i){var h=a.getInternalState();this._lastPosition=h.lastPosition,this._lastVelocity=h.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=h.lastTime}var l=function(){o._useNativeDriver?o.__startNativeAnimation(n):o.onUpdate()};this._delay?this._timeout=setTimeout(l,this._delay):l()}},{key:"getInternalState",value:function(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}},{key:"onUpdate",value:function(){var t=Date.now();t>this._lastTime+64&&(t=this._lastTime+64);var s=(t-this._lastTime)/1e3;this._frameTime+=s;var i=this._damping,e=this._mass,a=this._stiffness,n=-this._initialVelocity,o=i/(2*Math.sqrt(a*e)),h=Math.sqrt(a/e),l=h*Math.sqrt(1-o*o),r=this._toValue-this._startPosition,_=0,d=0,m=this._frameTime;if(o<1){var f=Math.exp(-o*h*m);_=this._toValue-f*((n+o*h*r)/l*Math.sin(l*m)+r*Math.cos(l*m)),d=o*h*f*(Math.sin(l*m)*(n+o*h*r)/l+r*Math.cos(l*m))-f*(Math.cos(l*m)*(n+o*h*r)-l*r*Math.sin(l*m))}else{var c=Math.exp(-h*m);_=this._toValue-c*(r+(n+h*r)*m),d=c*(n*(m*h-1)+m*r*(h*h))}if(this._lastTime=t,this._lastPosition=_,this._lastVelocity=d,this._onUpdate(_),this.__active){var u=!1;this._overshootClamping&&0!==this._stiffness&&(u=this._startPositionthis._toValue:_18&&d<=44?f(d):c(d),e(2*a-a*a,p,.01));return{stiffness:i(w),damping:u(M)}}}},189,[]); +__d(function(t,i,e,a,s){'use strict';i(s[0]),i(s[1]);var n,o=i(s[2]),r=i(s[3]).shouldUseNativeDriver;function _(){if(!n){var t=i(s[4]);n=t.inOut(t.ease)}return n}var u=(function(i){function e(t){var i;return babelHelpers.classCallCheck(this,e),(i=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).call(this)))._toValue=t.toValue,i._easing=void 0!==t.easing?t.easing:_(),i._duration=void 0!==t.duration?t.duration:500,i._delay=void 0!==t.delay?t.delay:0,i.__iterations=void 0!==t.iterations?t.iterations:1,i.__isInteraction=void 0===t.isInteraction||t.isInteraction,i._useNativeDriver=r(t),i}return babelHelpers.createClass(e,[{key:"__getNativeAnimationConfig",value:function(){for(var t=[],i=0;i=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((t-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}},{key:"stop",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(e.prototype),"stop",this).call(this),this.__active=!1,clearTimeout(this._timeout),t.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}]),babelHelpers.inherits(e,i),e})(o);e.exports=u},190,[168,185,187,171,191]); +__d(function(e,n,u,t,r){'use strict';var a,c=(function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"step0",value:function(e){return e>0?1:0}},{key:"step1",value:function(e){return e>=1?1:0}},{key:"linear",value:function(e){return e}},{key:"ease",value:function(n){return a||(a=e.bezier(.42,0,1,1)),a(n)}},{key:"quad",value:function(e){return e*e}},{key:"cubic",value:function(e){return e*e*e}},{key:"poly",value:function(e){return function(n){return Math.pow(n,e)}}},{key:"sin",value:function(e){return 1-Math.cos(e*Math.PI/2)}},{key:"circle",value:function(e){return 1-Math.sqrt(1-e*e)}},{key:"exp",value:function(e){return Math.pow(2,10*(e-1))}},{key:"elastic",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)*Math.PI;return function(n){return 1-Math.pow(Math.cos(n*Math.PI/2),3)*Math.cos(n*e)}}},{key:"back",value:function(e){return void 0===e&&(e=1.70158),function(n){return n*n*((e+1)*n-e)}}},{key:"bounce",value:function(e){return e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375}},{key:"bezier",value:function(e,u,t,a){return n(r[0])(e,u,t,a)}},{key:"in",value:function(e){return e}},{key:"out",value:function(e){return function(n){return 1-e(1-n)}}},{key:"inOut",value:function(e){return function(n){return n<.5?e(2*n)/2:1-e(2*(1-n))/2}}}]),e})();u.exports=c},191,[192]); +__d(function(r,n,t,u,e){'use strict';var o=4,f=.001,i=1e-7,a=10,c=.1,v='function'==typeof Float32Array;function s(r,n){return 1-3*n+3*r}function w(r,n){return 3*n-6*r}function l(r){return 3*r}function y(r,n,t){return((s(n,t)*r+w(n,t))*r+l(n))*r}function b(r,n,t){return 3*s(n,t)*r*r+2*w(n,t)*r+l(n)}function h(r,n,t,u,e){var o,f,c=0;do{(o=y(f=n+(t-n)/2,u,e)-r)>0?t=f:n=f}while(Math.abs(o)>i&&++c=f?A(n,i,r,t):0===a?i:h(n,u,u+c,r,t)}return function(e){return r===n&&t===u?e:0===e?0:1===e?1:y(i(e),n,u)}}},192,[]); +__d(function(e,t,n,o,i){'use strict';var a=t(i[0]).AnimatedEvent,s=t(i[1]),p=t(i[2]),r=t(i[3]),c=t(i[4]);n.exports=function(e){c('function'!=typeof e||e.prototype&&e.prototype.isReactComponent,"`createAnimatedComponent` does not support stateless functional components; use a class component instead.");var t=(function(t){function n(e){var t;return babelHelpers.classCallCheck(this,n),(t=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(n).call(this,e)))._invokeAnimatedPropsCallbackOnMount=!1,t._eventDetachers=[],t._animatedPropsCallback=function(){if(null==t._component)t._invokeAnimatedPropsCallbackOnMount=!0;else if(n.__skipSetNativeProps_FOR_TESTS_ONLY||'function'!=typeof t._component.setNativeProps)t.forceUpdate();else{if(t._propsAnimated.__isNative)throw new Error("Attempting to run JS driven animation on animated node that has been moved to \"native\" earlier by starting an animation with `useNativeDriver: true`");t._component.setNativeProps(t._propsAnimated.__getAnimatedValue())}},t._setComponentRef=t._setComponentRef.bind(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(t))),t}return babelHelpers.createClass(n,[{key:"componentWillUnmount",value:function(){this._propsAnimated&&this._propsAnimated.__detach(),this._detachNativeEvents()}},{key:"setNativeProps",value:function(e){this._component.setNativeProps(e)}},{key:"UNSAFE_componentWillMount",value:function(){this._attachProps(this.props)}},{key:"componentDidMount",value:function(){this._invokeAnimatedPropsCallbackOnMount&&(this._invokeAnimatedPropsCallbackOnMount=!1,this._animatedPropsCallback()),this._propsAnimated.setNativeView(this._component),this._attachNativeEvents()}},{key:"_attachNativeEvents",value:function(){var e=this,t=this._component.getScrollableNode?this._component.getScrollableNode():this._component,n=function(n){var o=e.props[n];o instanceof a&&o.__isNative&&(o.__attach(t,n),e._eventDetachers.push(function(){return o.__detach(t,n)}))};for(var o in this.props)n(o)}},{key:"_detachNativeEvents",value:function(){this._eventDetachers.forEach(function(e){return e()}),this._eventDetachers=[]}},{key:"_attachProps",value:function(e){var t=this._propsAnimated;this._propsAnimated=new s(e,this._animatedPropsCallback),t&&t.__detach()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this._attachProps(e)}},{key:"componentDidUpdate",value:function(e){this._component!==this._prevComponent&&this._propsAnimated.setNativeView(this._component),this._component===this._prevComponent&&e===this.props||(this._detachNativeEvents(),this._attachNativeEvents())}},{key:"render",value:function(){var t=this._propsAnimated.__getValue();return p.createElement(e,babelHelpers.extends({},t,{ref:this._setComponentRef,collapsable:!this._propsAnimated.__isNative&&t.collapsable}))}},{key:"_setComponentRef",value:function(e){this._prevComponent=this._component,this._component=e}},{key:"getNode",value:function(){return this._component}}]),babelHelpers.inherits(n,t),n})(p.Component);t.__skipSetNativeProps_FOR_TESTS_ONLY=!1;var n=e.propTypes;return t.propTypes={style:function(e,t,o){if(n)for(var i in r)n[i]||void 0===e[i]||console.warn('You are setting the style `{ '+i+": ... }` as a prop. You should nest it in a style object. E.g. `{ style: { "+i+': ... } }`')}},t}},193,[167,180,25,51,2]); +__d(function(e,r,t,n,o){'use strict';var a=r(o[0]),i=r(o[1]),s=r(o[2]),u=r(o[3]),c=r(o[4]),d=r(o[5]),h=r(o[6]),l=r(o[7]),p=r(o[8]),f=r(o[9]),g=r(o[10]),m=r(o[11]),b=r(o[12]),w=r(o[13]),y=r(o[14]),I=s.ImageLoader,S=w('RCTImageView'),v=w('RCTTextInlineImage'),E=1;var T=g({displayName:'Image',propTypes:babelHelpers.objectSpread({},f,{style:l(a),source:c.oneOfType([c.shape({uri:c.string,headers:c.objectOf(c.string)}),c.number,c.arrayOf(c.shape({uri:c.string,width:c.number,height:c.number,headers:c.objectOf(c.string)}))]),blurRadius:c.number,defaultSource:c.number,loadingIndicatorSource:c.oneOfType([c.shape({uri:c.string}),c.number]),progressiveRenderingEnabled:c.bool,fadeDuration:c.number,onLoadStart:c.func,onError:c.func,onLoad:c.func,onLoadEnd:c.func,testID:c.string,resizeMethod:c.oneOf(['auto','resize','scale']),resizeMode:c.oneOf(['cover','contain','stretch','repeat','center'])}),statics:{getSize:function(e,r,t){return I.getSize(e).then(function(e){r(e.width,e.height)}).catch(t||function(){console.warn('Failed to get size for image: '+e)})},prefetch:function(e,r){var t=E++;return r&&r(t),I.prefetchImage(e,t)},abortPrefetch:function(e){I.abortRequest(e)},queryCache:function(e){return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(I.queryCache(e));case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},null,this)},resolveAssetSource:y},mixins:[i],viewConfig:{uiViewClassName:'RCTView',validAttributes:d.RCTView},render:function(){var e,r,t=y(this.props.source),n=y(this.props.defaultSource),o=y(this.props.loadingIndicatorSource);if(t&&''===t.uri&&console.warn('source.uri should not be an empty string'),this.props.src&&console.warn('The component requires a `source` property rather than `src`.'),this.props.children)throw new Error('The component cannot contain children. If you want to render content on top of the image, consider using the component or absolute positioning.');if(this.props.defaultSource&&this.props.loadingIndicatorSource)throw new Error('The component cannot have defaultSource and loadingIndicatorSource at the same time. Please use either defaultSource or loadingIndicatorSource.');if(!t||!t.uri&&!Array.isArray(t))return null;if(t.uri){var a=t.width,i=t.height;e=m([{width:a,height:i},C.base,this.props.style]),r=[{uri:t.uri}]}else e=m([C.base,this.props.style]),r=t;var s=this.props,c=s.onLoadStart,d=s.onLoad,h=s.onLoadEnd,l=s.onError,f=b(this.props,{style:e,shouldNotifyLoadEvents:!!(c||d||h||l),src:r,headers:t.headers,defaultSrc:n?n.uri:null,loadingIndicatorSrc:o?o.uri:null});return u.createElement(p.Consumer,null,function(e){return e?u.createElement(v,f):u.createElement(S,f)})}}),C=h.create({base:{overflow:'hidden'}});t.exports=T},194,[37,195,4,25,43,87,32,75,59,71,161,57,77,60,66]); +__d(function(_,t,E,i,e){'use strict';var s=t(e[0]).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.NativeMethodsMixin;E.exports=s},195,[95]); +__d(function(e,o,t,n,l){'use strict';var r,s,i,a=o(l[0]),c=o(l[1]),d=o(l[2]),h=(o(l[3]),o(l[4])),p=o(l[5]),u=o(l[6]),m=o(l[7]),f=o(l[8]),S=o(l[9]),y=o(l[10]),R=o(l[11]),b=o(l[12]),H=o(l[13]),v=o(l[14]),_=(o(l[15]),o(l[16])),w=o(l[17]),g=(o(l[18]),o(l[19])),T=o(l[20]),C=o(l[21]),V=(o(l[22]),o(l[23]));r=C('RCTScrollView'),i=C('AndroidHorizontalScrollView'),s=C('AndroidHorizontalScrollContentView');var E=_({displayName:'ScrollView',propTypes:babelHelpers.objectSpread({},H,{automaticallyAdjustContentInsets:p.bool,contentInset:d,contentOffset:h,bounces:p.bool,bouncesZoom:p.bool,alwaysBounceHorizontal:p.bool,alwaysBounceVertical:p.bool,centerContent:p.bool,contentContainerStyle:R(v),decelerationRate:p.oneOfType([p.oneOf(['fast','normal']),p.number]),horizontal:p.bool,indicatorStyle:p.oneOf(['default','black','white']),invertStickyHeaders:p.bool,directionalLockEnabled:p.bool,canCancelContentTouches:p.bool,keyboardDismissMode:p.oneOf(['none','on-drag','interactive']),keyboardShouldPersistTaps:p.oneOf(['always','never','handled',!1,!0]),maintainVisibleContentPosition:p.shape({minIndexForVisible:p.number.isRequired,autoscrollToTopThreshold:p.number}),maximumZoomScale:p.number,minimumZoomScale:p.number,nestedScrollEnabled:p.bool,onMomentumScrollBegin:p.func,onMomentumScrollEnd:p.func,onScroll:p.func,onScrollBeginDrag:p.func,onScrollEndDrag:p.func,onContentSizeChange:p.func,pagingEnabled:p.bool,pinchGestureEnabled:p.bool,scrollEnabled:p.bool,scrollEventThrottle:p.number,scrollIndicatorInsets:d,scrollsToTop:p.bool,showsHorizontalScrollIndicator:p.bool,showsVerticalScrollIndicator:p.bool,stickyHeaderIndices:p.arrayOf(p.number),snapToInterval:p.number,snapToAlignment:p.oneOf(['start','center','end']),removeClippedSubviews:p.bool,zoomScale:p.number,contentInsetAdjustmentBehavior:p.oneOf(['automatic','scrollableAxes','never','always']),refreshControl:p.element,endFillColor:c,scrollPerfTag:p.string,overScrollMode:p.oneOf(['auto','always','never']),DEPRECATED_sendUpdatedChildFrames:p.bool,scrollBarThumbImage:p.oneOfType([p.shape({uri:p.string}),p.number])}),mixins:[f.Mixin],_scrollAnimatedValue:new a.Value(0),_scrollAnimatedValueAttachment:null,_stickyHeaderRefs:new Map,_headerLayoutYs:new Map,getInitialState:function(){return babelHelpers.objectSpread({},this.scrollResponderMixinGetInitialState(),{layoutHeight:null})},UNSAFE_componentWillMount:function(){this._scrollAnimatedValue=new a.Value(this.props.contentOffset?this.props.contentOffset.y:0),this._scrollAnimatedValue.setOffset(this.props.contentInset?this.props.contentInset.top:0),this._stickyHeaderRefs=new Map,this._headerLayoutYs=new Map},componentDidMount:function(){this._updateAnimatedNodeAttachment()},componentDidUpdate:function(){this._updateAnimatedNodeAttachment()},componentWillUnmount:function(){this._scrollAnimatedValueAttachment&&this._scrollAnimatedValueAttachment.detach()},setNativeProps:function(e){this._scrollViewRef&&this._scrollViewRef.setNativeProps(e)},getScrollResponder:function(){return this},getScrollableNode:function(){return m.findNodeHandle(this._scrollViewRef)},getInnerViewNode:function(){return m.findNodeHandle(this._innerViewRef)},scrollTo:function(e,o,t){if('number'==typeof e)console.warn("`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.");else{var n=e||{};o=n.x,e=n.y,t=n.animated}this.getScrollResponder().scrollResponderScrollTo({x:o||0,y:e||0,animated:!1!==t})},scrollToEnd:function(e){var o=!1!==(e&&e.animated);this.getScrollResponder().scrollResponderScrollToEnd({animated:o})},scrollWithoutAnimationTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;console.warn('`scrollWithoutAnimationTo` is deprecated. Use `scrollTo` instead'),this.scrollTo({x:o,y:e,animated:!1})},flashScrollIndicators:function(){this.getScrollResponder().scrollResponderFlashScrollIndicators()},_getKeyForIndex:function(e,o){var t=o[e];return t&&t.key},_updateAnimatedNodeAttachment:function(){this._scrollAnimatedValueAttachment&&this._scrollAnimatedValueAttachment.detach(),this.props.stickyHeaderIndices&&this.props.stickyHeaderIndices.length>0&&(this._scrollAnimatedValueAttachment=a.attachNativeEvent(this._scrollViewRef,'onScroll',[{nativeEvent:{contentOffset:{y:this._scrollAnimatedValue}}}]))},_setStickyHeaderRef:function(e,o){o?this._stickyHeaderRefs.set(e,o):this._stickyHeaderRefs.delete(e)},_onStickyHeaderLayout:function(e,o,t){if(this.props.stickyHeaderIndices){var n=u.Children.toArray(this.props.children);if(t===this._getKeyForIndex(e,n)){var l=o.nativeEvent.layout.y;this._headerLayoutYs.set(t,l);var r=this.props.stickyHeaderIndices.indexOf(e),s=this.props.stickyHeaderIndices[r-1];if(null!=s){var i=this._stickyHeaderRefs.get(this._getKeyForIndex(s,n));i&&i.setNextHeaderY(l)}}}},_handleScroll:function(e){'on-drag'===this.props.keyboardDismissMode&&this.state.isTouching&&w(),this.scrollResponderHandleScroll(e)},_handleLayout:function(e){this.props.invertStickyHeaders&&this.setState({layoutHeight:e.nativeEvent.layout.height}),this.props.onLayout&&this.props.onLayout(e)},_handleContentOnLayout:function(e){var o=e.nativeEvent.layout,t=o.width,n=o.height;this.props.onContentSizeChange&&this.props.onContentSizeChange(t,n)},_scrollViewRef:null,_setScrollViewRef:function(e){this._scrollViewRef=e},_innerViewRef:null,_setInnerViewRef:function(e){this._innerViewRef=e},render:function(){var e,o,t=this;this.props.horizontal?(e=i,o=s):(e=r,o=b),g(void 0!==e,'ScrollViewClass must not be undefined'),g(void 0!==o,'ScrollContentContainerViewClass must not be undefined');var n=[this.props.horizontal&&A.contentContainerHorizontal,this.props.contentContainerStyle],l={};this.props.onContentSizeChange&&(l={onLayout:this._handleContentOnLayout});var a=this.props.stickyHeaderIndices,c=a&&a.length>0,d=c&&u.Children.toArray(this.props.children),h=c?d.map(function(e,o){var n=e?a.indexOf(o):-1;if(n>-1){var l=e.key,r=a[n+1];return u.createElement(S,{key:l,ref:function(e){return t._setStickyHeaderRef(l,e)},nextHeaderLayoutY:t._headerLayoutYs.get(t._getKeyForIndex(r,d)),onLayout:function(e){return t._onStickyHeaderLayout(o,e,l)},scrollAnimatedValue:t._scrollAnimatedValue,inverted:t.props.invertStickyHeaders,scrollViewHeight:t.state.layoutHeight},e)}return e}):this.props.children,p=u.createElement(o,babelHelpers.extends({},l,{ref:this._setInnerViewRef,style:n,removeClippedSubviews:!c&&this.props.removeClippedSubviews,collapsable:!1}),h),m=void 0!==this.props.alwaysBounceHorizontal?this.props.alwaysBounceHorizontal:this.props.horizontal,f=void 0!==this.props.alwaysBounceVertical?this.props.alwaysBounceVertical:!this.props.horizontal,y=!!this.props.DEPRECATED_sendUpdatedChildFrames,R=this.props.horizontal?A.baseHorizontal:A.baseVertical,H=babelHelpers.objectSpread({},this.props,{alwaysBounceHorizontal:m,alwaysBounceVertical:f,style:[R,this.props.style],onContentSizeChange:null,onLayout:this._handleLayout,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderReject:this.scrollResponderHandleResponderReject,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onScroll:this._handleScroll,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onTouchEnd:this.scrollResponderHandleTouchEnd,onTouchMove:this.scrollResponderHandleTouchMove,onTouchStart:this.scrollResponderHandleTouchStart,onTouchCancel:this.scrollResponderHandleTouchCancel,scrollBarThumbImage:V(this.props.scrollBarThumbImage),scrollEventThrottle:c?1:this.props.scrollEventThrottle,sendMomentumEvents:!(!this.props.onMomentumScrollBegin&&!this.props.onMomentumScrollEnd),DEPRECATED_sendUpdatedChildFrames:y}),v=this.props.decelerationRate;v&&(H.decelerationRate=T(v));var _=this.props.refreshControl;return _?u.cloneElement(_,{style:H.style},u.createElement(e,babelHelpers.extends({},H,{style:R,ref:this._setScrollViewRef}),p)):u.createElement(e,babelHelpers.extends({},H,{ref:this._setScrollViewRef}),p)}}),A=y.create({baseVertical:{flexGrow:1,flexShrink:1,flexDirection:'column',overflow:'scroll'},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:'row',overflow:'scroll'},contentContainerHorizontal:{flexDirection:'row'}});t.exports=E},196,[166,38,72,12,197,43,25,95,198,204,32,75,58,71,51,205,161,202,57,2,206,60,16,66]); +__d(function(e,r,n,s,t){'use strict';var u=r(t[0]),a=u.shape({x:u.number,y:u.number});n.exports=a},197,[43]); +__d(function(e,o,n,s,r){'use strict';var l=o(r[0]),t=o(r[1]),i=o(r[2]),d=o(r[3]),a=o(r[4]),c=o(r[5]),p=o(r[6]),h=o(r[7]),u=o(r[8]),S=o(r[9]),m=o(r[10]),R=o(r[11]).ScrollViewManager,T={Mixin:{mixins:[a.Mixin],scrollResponderMixinGetInitialState:function(){return{isTouching:!1,lastMomentumScrollBeginTime:0,lastMomentumScrollEndTime:0,observedScrollSinceBecomingResponder:!1,becameResponderWhileAnimating:!1}},scrollResponderHandleScrollShouldSetResponder:function(){return this.state.isTouching},scrollResponderHandleStartShouldSetResponder:function(e){var o=c.currentlyFocusedField();return'handled'===this.props.keyboardShouldPersistTaps&&null!=o&&e.target!==o},scrollResponderHandleStartShouldSetResponderCapture:function(e){if(this.scrollResponderIsAnimating())return!0;var o=c.currentlyFocusedField(),n=this.props.keyboardShouldPersistTaps;return!(n&&'never'!==n||null==o||c.isTextInput(e.target))},scrollResponderHandleResponderReject:function(){},scrollResponderHandleTerminationRequest:function(){return!this.state.observedScrollSinceBecomingResponder},scrollResponderHandleTouchEnd:function(e){var o=e.nativeEvent;this.state.isTouching=0!==o.touches.length,this.props.onTouchEnd&&this.props.onTouchEnd(e)},scrollResponderHandleTouchCancel:function(e){this.state.isTouching=!1,this.props.onTouchCancel&&this.props.onTouchCancel(e)},scrollResponderHandleResponderRelease:function(e){this.props.onResponderRelease&&this.props.onResponderRelease(e);var o=c.currentlyFocusedField();!0===this.props.keyboardShouldPersistTaps||'always'===this.props.keyboardShouldPersistTaps||null==o||e.target===o||this.state.observedScrollSinceBecomingResponder||this.state.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),c.blurTextInput(o))},scrollResponderHandleScroll:function(e){this.state.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},scrollResponderHandleResponderGrant:function(e){this.state.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.state.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},scrollResponderHandleScrollBeginDrag:function(e){t.beginScroll(),this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},scrollResponderHandleScrollEndDrag:function(e){var o=e.nativeEvent.velocity;this.scrollResponderIsAnimating()||o&&(0!==o.x||0!==o.y)||t.endScroll(),this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},scrollResponderHandleMomentumScrollBegin:function(e){this.state.lastMomentumScrollBeginTime=S(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},scrollResponderHandleMomentumScrollEnd:function(e){t.endScroll(),this.state.lastMomentumScrollEndTime=S(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},scrollResponderHandleTouchStart:function(e){this.state.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},scrollResponderHandleTouchMove:function(e){this.props.onTouchMove&&this.props.onTouchMove(e)},scrollResponderIsAnimating:function(){return S()-this.state.lastMomentumScrollEndTime<16||this.state.lastMomentumScrollEndTime0){i.push(c),y.push(0),i.push(c+1),y.push(1);var d=(u||0)-o-a;d>c&&(i.push(d,d+1),y.push(d-c,d-c))}}}else{i.push(l),y.push(0);var v=(u||0)-o;v>=l?(i.push(v,v+1),y.push(v-l,v-l)):(i.push(l+1),y.push(1))}var f=this.props.scrollAnimatedValue.interpolate({inputRange:i,outputRange:y}),b=n.Children.only(this.props.children);return n.createElement(p,{collapsable:!1,onLayout:this._onLayout,style:[b.props.style,h.header,{transform:[{translateY:f}]}]},n.cloneElement(b,{style:h.fill,onLayout:void 0}))}}]),babelHelpers.inherits(t,e),t})(n.Component),h=l.create({header:{zIndex:10},fill:{flex:1}});a.exports=i},204,[166,25,32,58]); +__d(function(e,l,o,n,t){var r=(function(e){"use strict";function l(){return babelHelpers.classCallCheck(this,l),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(l).apply(this,arguments))}return babelHelpers.createClass(l,[{key:"scrollTo",value:function(e,l,o){}},{key:"flashScrollIndicators",value:function(){}},{key:"scrollToEnd",value:function(e){}},{key:"scrollWithoutAnimationTo",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0],arguments.length>1&&void 0!==arguments[1]&&arguments[1]}},{key:"getScrollResponder",value:function(){}},{key:"getScrollableNode",value:function(){}},{key:"getInnerViewNode",value:function(){}},{key:"scrollResponderScrollNativeHandleToKeyboard",value:function(e,l,o){}},{key:"scrollResponderScrollTo",value:function(e,l,o){}}]),babelHelpers.inherits(l,e),l})(l(t[0]).NativeComponent);o.exports=r},205,[95]); +__d(function(t,n,r,o,s){'use strict';r.exports=function(t){return'normal'===t?t=.998:'fast'===t&&(t=.99),t}},206,[]); +__d(function(e,t,n,o,r){'use strict';var s=t(r[0]),a=t(r[1]),i=t(r[2]),h=t(r[3]),p=t(r[4]),l=t(r[5]),c=t(r[6])('AndroidCheckBox'),u=l({displayName:'CheckBox',propTypes:babelHelpers.objectSpread({},p,{value:a.bool,disabled:a.bool,onChange:a.func,onValueChange:a.func,testID:a.string}),getDefaultProps:function(){return{value:!1,disabled:!1}},mixins:[s],_rctCheckBox:{},_onChange:function(e){this._rctCheckBox.setNativeProps({value:this.props.value}),this.props.onChange&&this.props.onChange(e),this.props.onValueChange&&this.props.onValueChange(e.nativeEvent.value)},render:function(){var e=this,t=babelHelpers.objectSpread({},this.props);return t.onStartShouldSetResponder=function(){return!0},t.onResponderTerminationRequest=function(){return!1},t.enabled=!this.props.disabled,t.on=this.props.value,t.style=[d.rctCheckBox,this.props.style],i.createElement(c,babelHelpers.extends({},t,{ref:function(t){e._rctCheckBox=t},onChange:this._onChange}))}}),d=h.create({rctCheckBox:{height:32,width:32}});n.exports=u},207,[195,43,25,32,71,161,60]); +__d(function(e,t,r,n,s){'use strict';var l=t(s[0]),o=t(s[1]),i=t(s[2]),a=t(s[3]),c=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.createClass(t,[{key:"render",value:function(){return l.createElement(a,{style:[b.dummyDatePickerIOS,this.props.style]},l.createElement(i,{style:b.datePickerText},"DatePickerIOS is not supported on this platform!"))}}]),babelHelpers.inherits(t,e),t})(l.Component),b=o.create({dummyDatePickerIOS:{height:100,width:300,backgroundColor:'#ffbcbc',borderWidth:1,borderColor:'red',alignItems:'center',justifyContent:'center',margin:10},datePickerText:{color:'#333333',margin:20}});r.exports=c},208,[25,32,89,58]); +__d(function(r,e,o,t,a){'use strict';var n=e(a[0]),i=e(a[1]),s=e(a[2]),d=e(a[3]),l=e(a[4]),w=e(a[5]),p=e(a[6]),u=e(a[7]),c=e(a[8]),h=e(a[9]),g=e(a[10]),D=c.AndroidDrawerLayout.Constants,f=e(a[11]),C=e(a[12]),b=e(a[13]),m=['Idle','Dragging','Settling'],S=f({displayName:'DrawerLayoutAndroid',statics:{positions:D.DrawerPosition},propTypes:babelHelpers.objectSpread({},g,{keyboardDismissMode:l.oneOf(['none','on-drag']),drawerBackgroundColor:n,drawerPosition:l.oneOf([D.DrawerPosition.Left,D.DrawerPosition.Right]),drawerWidth:l.number,drawerLockMode:l.oneOf(['unlocked','locked-closed','locked-open']),onDrawerSlide:l.func,onDrawerStateChanged:l.func,onDrawerOpen:l.func,onDrawerClose:l.func,renderNavigationView:l.func.isRequired,statusBarBackgroundColor:n}),mixins:[i],getDefaultProps:function(){return{drawerBackgroundColor:'white'}},getInitialState:function(){return{statusBarBackgroundColor:void 0}},getInnerViewNode:function(){return this.refs.innerView.getInnerViewNode()},render:function(){var r=s.Version>=21&&this.props.statusBarBackgroundColor,e=d.createElement(h,{style:[k.drawerSubview,{width:this.props.drawerWidth,backgroundColor:this.props.drawerBackgroundColor}],collapsable:!1},this.props.renderNavigationView(),r&&d.createElement(h,{style:k.drawerStatusBar})),o=d.createElement(h,{ref:"innerView",style:k.mainSubview,collapsable:!1},r&&d.createElement(p,{translucent:!0,backgroundColor:this.props.statusBarBackgroundColor}),r&&d.createElement(h,{style:[k.statusBar,{backgroundColor:this.props.statusBarBackgroundColor}]}),this.props.children);return d.createElement(y,babelHelpers.extends({},this.props,{ref:"drawerlayout",drawerWidth:this.props.drawerWidth,drawerPosition:this.props.drawerPosition,drawerLockMode:this.props.drawerLockMode,style:[k.base,this.props.style],onDrawerSlide:this._onDrawerSlide,onDrawerOpen:this._onDrawerOpen,onDrawerClose:this._onDrawerClose,onDrawerStateChanged:this._onDrawerStateChanged}),o,e)},_onDrawerSlide:function(r){this.props.onDrawerSlide&&this.props.onDrawerSlide(r),'on-drag'===this.props.keyboardDismissMode&&C()},_onDrawerOpen:function(){this.props.onDrawerOpen&&this.props.onDrawerOpen()},_onDrawerClose:function(){this.props.onDrawerClose&&this.props.onDrawerClose()},_onDrawerStateChanged:function(r){this.props.onDrawerStateChanged&&this.props.onDrawerStateChanged(m[r.nativeEvent.drawerState])},openDrawer:function(){c.dispatchViewManagerCommand(this._getDrawerLayoutHandle(),c.AndroidDrawerLayout.Commands.openDrawer,null)},closeDrawer:function(){c.dispatchViewManagerCommand(this._getDrawerLayoutHandle(),c.AndroidDrawerLayout.Commands.closeDrawer,null)},_getDrawerLayoutHandle:function(){return w.findNodeHandle(this.refs.drawerlayout)}}),k=u.create({base:{flex:1,elevation:16},mainSubview:{position:'absolute',top:0,left:0,right:0,bottom:0},drawerSubview:{position:'absolute',top:0,bottom:0},statusBar:{height:p.currentHeight},drawerStatusBar:{position:'absolute',top:0,left:0,right:0,height:p.currentHeight,backgroundColor:'rgba(0, 0, 0, 0.251)'}}),y=b('AndroidDrawerLayout');o.exports=S},209,[38,195,12,25,43,95,210,32,49,58,71,161,202,60]); +__d(function(e,t,n,a,r){'use strict';var l=t(r[0]),o=t(r[1]),i=t(r[2]),s=(t(r[3]),t(r[4])),u=t(r[5]).StatusBarManager;function c(e){return{backgroundColor:null!=e.backgroundColor?{value:e.backgroundColor,animated:e.animated}:null,barStyle:null!=e.barStyle?{value:e.barStyle,animated:e.animated}:null,translucent:e.translucent,hidden:null!=e.hidden?{value:e.hidden,animated:e.animated,transition:e.showHideTransition}:null,networkActivityIndicatorVisible:e.networkActivityIndicatorVisible}}var d=(function(e){function t(){var e,n,a;babelHelpers.classCallCheck(this,t);for(var r=arguments.length,l=new Array(r),o=0;o1){for(var s=[],r=0;r1?(c(Array.isArray(e),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",r),e.map(function(e,i){return s(e,t*r+i)}).join(':')):s(e,t)},i._renderItem=function(e){var t=i.props,n=t.renderItem,s=t.numColumns,r=t.columnWrapperStyle;if(s>1){var l=e.item,p=e.index;return c(Array.isArray(l),'Expected array of items with numColumns > 1'),o.createElement(a,{style:u.compose(h.row,r)},l.map(function(t,i){var r=n({item:t,index:p*s+i,separators:e.separators});return r&&o.cloneElement(r,{key:i})}))}return n(e)},i._checkProps(i.props),i.props.viewabilityConfigCallbackPairs?i._virtualizedListPairs=i.props.viewabilityConfigCallbackPairs.map(function(e){return{viewabilityConfig:e.viewabilityConfig,onViewableItemsChanged:i._createOnViewableItemsChanged(e.onViewableItemsChanged)}}):i.props.onViewableItemsChanged&&i._virtualizedListPairs.push({viewabilityConfig:i.props.viewabilityConfig,onViewableItemsChanged:i._createOnViewableItemsChanged(i.props.onViewableItemsChanged)}),i}return babelHelpers.createClass(t,[{key:"scrollToEnd",value:function(e){this._listRef&&this._listRef.scrollToEnd(e)}},{key:"scrollToIndex",value:function(e){this._listRef&&this._listRef.scrollToIndex(e)}},{key:"scrollToItem",value:function(e){this._listRef&&this._listRef.scrollToItem(e)}},{key:"scrollToOffset",value:function(e){this._listRef&&this._listRef.scrollToOffset(e)}},{key:"recordInteraction",value:function(){this._listRef&&this._listRef.recordInteraction()}},{key:"flashScrollIndicators",value:function(){this._listRef&&this._listRef.flashScrollIndicators()}},{key:"getScrollResponder",value:function(){if(this._listRef)return this._listRef.getScrollResponder()}},{key:"getScrollableNode",value:function(){if(this._listRef)return this._listRef.getScrollableNode()}},{key:"setNativeProps",value:function(e){this._listRef&&this._listRef.setNativeProps(e)}}]),babelHelpers.createClass(t,[{key:"componentDidUpdate",value:function(e){c(e.numColumns===this.props.numColumns,"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."),c(e.onViewableItemsChanged===this.props.onViewableItemsChanged,'Changing onViewableItemsChanged on the fly is not supported'),c(e.viewabilityConfig===this.props.viewabilityConfig,'Changing viewabilityConfig on the fly is not supported'),c(e.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,'Changing viewabilityConfigCallbackPairs on the fly is not supported'),this._checkProps(this.props)}},{key:"_checkProps",value:function(e){var t=e.getItem,i=e.getItemCount,n=e.horizontal,s=e.legacyImplementation,r=e.numColumns,o=e.columnWrapperStyle,a=e.onViewableItemsChanged,l=e.viewabilityConfigCallbackPairs;c(!t&&!i,'FlatList does not support custom data formats.'),r>1?c(!n,'numColumns does not support horizontal.'):c(!o,'columnWrapperStyle not supported for single column lists'),s&&(c(1===r,'Legacy list does not support multiple columns.'),this._hasWarnedLegacy||(console.warn("FlatList: Using legacyImplementation - some features not supported and performance may suffer"),this._hasWarnedLegacy=!0)),c(!(a&&l),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}},{key:"_pushMultiColumnViewable",value:function(e,t){var i=this.props,n=i.numColumns,s=i.keyExtractor;t.item.forEach(function(i,r){c(null!=t.index,'Missing index!');var o=t.index*n+r;e.push(babelHelpers.objectSpread({},t,{item:i,key:s(i,o),index:o}))})}},{key:"_createOnViewableItemsChanged",value:function(e){var t=this;return function(i){var n=t.props.numColumns;if(e)if(n>1){var s=[],r=[];i.viewableItems.forEach(function(e){return t._pushMultiColumnViewable(r,e)}),i.changed.forEach(function(e){return t._pushMultiColumnViewable(s,e)}),e({viewableItems:r,changed:s})}else e(i)}}},{key:"render",value:function(){return this.props.legacyImplementation?o.createElement(r,babelHelpers.extends({},this.props,{items:this.props.data,ref:this._captureRef})):o.createElement(l,babelHelpers.extends({},this.props,{renderItem:this._renderItem,getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs}))}}]),babelHelpers.inherits(t,e),t})(o.PureComponent);f.defaultProps=p;var h=u.create({row:{flexDirection:'row'}});i.exports=f},211,[212,25,58,220,213,32,2]); +__d(function(e,t,r,n,o){'use strict';var s=t(o[0]),a=t(o[1]),i=t(o[2]),c=t(o[3]),l=t(o[4]),p=(function(e){function t(){var e,r,n,o=this;babelHelpers.classCallCheck(this,t);for(var i=arguments.length,c=new Array(i),p=0;p=this._prevRenderedRowsCount&&o.rowShouldUpdate(u,f),v=i.createElement(p,{key:'r_'+_,shouldUpdate:!!b,render:this.props.renderRow.bind(null,o.getRowData(u,f),S,C,this._onRowHighlighted)});if(e.push(v),c++,this.props.renderSeparator&&(f!==w.length-1||u===n.length-1)){var y=this.state.highlightedRow.sectionID===S&&(this.state.highlightedRow.rowID===C||this.state.highlightedRow.rowID===w[f+1]),E=this.props.renderSeparator(S,C,y);E&&(e.push(i.createElement(R,{key:'s_'+_},E)),c++)}if(++r===this.state.curRenderedRowsCount)break}if(r>=this.state.curRenderedRowsCount)break}var L=this.props,I=L.renderScrollComponent,P=babelHelpers.objectWithoutProperties(L,["renderScrollComponent"]);return P.scrollEventThrottle||(P.scrollEventThrottle=50),void 0===P.removeClippedSubviews&&(P.removeClippedSubviews=!0),babelHelpers.extends(P,{onScroll:this._onScroll,stickyHeaderIndices:this.props.stickyHeaderIndices.concat(l),onKeyboardWillShow:void 0,onKeyboardWillHide:void 0,onKeyboardDidShow:void 0,onKeyboardDidHide:void 0}),g(I(P),{ref:this._setScrollComponentRef,onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,DEPRECATED_sendUpdatedChildFrames:void 0!==typeof P.onChangeVisibleRows},a,e,h)},_measureAndUpdateScrollProps:function(){var e=this.getScrollResponder();e&&e.getInnerViewNode&&a&&a.calculateChildFrames&&a.calculateChildFrames(d.findNodeHandle(e),this._updateVisibleRows)},_setScrollComponentRef:function(e){this._scrollComponent=e},_onContentSizeChange:function(e,t){var o=this.props.horizontal?e:t;o!==this.scrollProperties.contentLength&&(this.scrollProperties.contentLength=o,this._updateVisibleRows(),this._renderMoreRowsIfNeeded()),this.props.onContentSizeChange&&this.props.onContentSizeChange(e,t)},_onLayout:function(e){var t=e.nativeEvent.layout,o=t.width,n=t.height,s=this.props.horizontal?o:n;s!==this.scrollProperties.visibleLength&&(this.scrollProperties.visibleLength=s,this._updateVisibleRows(),this._renderMoreRowsIfNeeded()),this.props.onLayout&&this.props.onLayout(e)},_maybeCallOnEndReached:function(e){return!!(this.props.onEndReached&&this.scrollProperties.contentLength!==this._sentEndForContentLength&&this._getDistanceFromEnd(this.scrollProperties)r||_this.props.onEndReachedThreshold&&(this._sentEndForContentLength=null),this.props.onScroll&&this.props.onScroll(e)}});o.exports=f},213,[214,215,12,25,43,95,4,196,198,217,160,58,218,161,216,77,16,2]); +__d(function(e,l,t,n,o){var r=l(o[0]),s=l(o[1]),a=(function(e){"use strict";function l(){return babelHelpers.classCallCheck(this,l),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(l).apply(this,arguments))}return babelHelpers.createClass(l,[{key:"setNativeProps",value:function(e){}},{key:"flashScrollIndicators",value:function(){}},{key:"getScrollResponder",value:function(){}},{key:"getScrollableNode",value:function(){}},{key:"getMetrics",value:function(){}},{key:"scrollTo",value:function(){}},{key:"scrollToEnd",value:function(e){}}]),babelHelpers.inherits(l,e),l})(r.Component);a.DataSource=s,t.exports=a},214,[25,215]); +__d(function(t,e,i,n,s){'use strict';var a=e(s[0]),o=e(s[1]),r=e(s[2]);function h(t,e,i){return t[e][i]}function d(t,e){return t[e]}var c=(function(){function t(e){babelHelpers.classCallCheck(this,t),a(e&&'function'==typeof e.rowHasChanged,'Must provide a rowHasChanged function.'),this._rowHasChanged=e.rowHasChanged,this._getRowData=e.getRowData||h,this._sectionHeaderHasChanged=e.sectionHeaderHasChanged,this._getSectionHeaderData=e.getSectionHeaderData||d,this._dataBlob=null,this._dirtyRows=[],this._dirtySections=[],this._cachedRowCount=0,this.rowIdentities=[],this.sectionIdentities=[]}return babelHelpers.createClass(t,[{key:"cloneWithRows",value:function(t,e){var i=e?[babelHelpers.toConsumableArray(e)]:null;return this._sectionHeaderHasChanged||(this._sectionHeaderHasChanged=function(){return!1}),this.cloneWithRowsAndSections({s1:t},['s1'],i)}},{key:"cloneWithRowsAndSections",value:function(e,i,n){a('function'==typeof this._sectionHeaderHasChanged,'Must provide a sectionHeaderHasChanged function with section data.'),a(!i||!n||i.length===n.length,'row and section ids lengths must be the same');var s=new t({getRowData:this._getRowData,getSectionHeaderData:this._getSectionHeaderData,rowHasChanged:this._rowHasChanged,sectionHeaderHasChanged:this._sectionHeaderHasChanged});return s._dataBlob=e,s.sectionIdentities=i||Object.keys(e),n?s.rowIdentities=n:(s.rowIdentities=[],s.sectionIdentities.forEach(function(t){s.rowIdentities.push(Object.keys(e[t]))})),s._cachedRowCount=u(s.rowIdentities),s._calculateDirtyArrays(this._dataBlob,this.sectionIdentities,this.rowIdentities),s}},{key:"getRowCount",value:function(){return this._cachedRowCount}},{key:"getRowAndSectionCount",value:function(){return this._cachedRowCount+this.sectionIdentities.length}},{key:"rowShouldUpdate",value:function(t,e){var i=this._dirtyRows[t][e];return r(void 0!==i,'missing dirtyBit for section, row: '+t+', '+e),i}},{key:"getRowData",value:function(t,e){var i=this.sectionIdentities[t],n=this.rowIdentities[t][e];return r(void 0!==i&&void 0!==n,'rendering invalid section, row: '+t+', '+e),this._getRowData(this._dataBlob,i,n)}},{key:"getRowIDForFlatIndex",value:function(t){for(var e=t,i=0;i=this.rowIdentities[i].length))return this.rowIdentities[i][e];e-=this.rowIdentities[i].length}return null}},{key:"getSectionIDForFlatIndex",value:function(t){for(var e=t,i=0;i=this.rowIdentities[i].length))return this.sectionIdentities[i];e-=this.rowIdentities[i].length}return null}},{key:"getSectionLengths",value:function(){for(var t=[],e=0;e2?c-2:0),a=2;a0&&t>0&&null!=s.props.initialScrollIndex&&s.props.initialScrollIndex>0&&!s._hasDoneInitialScroll&&(s.scrollToIndex({animated:!1,index:s.props.initialScrollIndex}),s._hasDoneInitialScroll=!0),s.props.onContentSizeChange&&s.props.onContentSizeChange(e,t),s._scrollMetrics.contentLength=s._selectLength({height:t,width:e}),s._scheduleCellsToRenderUpdate(),s._maybeCallOnEndReached()},s._convertParentScrollMetrics=function(e){var t=e.offset-s._offsetFromParentVirtualizedList,r=e.visibleLength,i=t-s._scrollMetrics.offset;return{visibleLength:r,contentLength:s._scrollMetrics.contentLength,offset:t,dOffset:i}},s._onScroll=function(e){s._nestedChildLists.forEach(function(t){t.ref&&t.ref._onScroll(e)}),s.props.onScroll&&s.props.onScroll(e);var t=e.timeStamp,r=s._selectLength(e.nativeEvent.layoutMeasurement),i=s._selectLength(e.nativeEvent.contentSize),n=s._selectOffset(e.nativeEvent.contentOffset),o=n-s._scrollMetrics.offset;if(s._isNestedWithSameOrientation()){if(0===s._scrollMetrics.contentLength)return;var l=s._convertParentScrollMetrics({visibleLength:r,offset:n});r=l.visibleLength,i=l.contentLength,n=l.offset,o=l.dOffset}var a=s._scrollMetrics.timestamp?Math.max(1,t-s._scrollMetrics.timestamp):1,h=o/a;a>500&&s._scrollMetrics.dt>500&&i>5*r&&!s._hasWarned.perf&&(_("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:a,prevDt:s._scrollMetrics.dt,contentLength:i}),s._hasWarned.perf=!0),s._scrollMetrics={contentLength:i,dt:a,dOffset:o,offset:n,timestamp:t,velocity:h,visibleLength:r},s._updateViewableItems(s.props.data),s.props&&(s._maybeCallOnEndReached(),0!==h&&s._fillRateHelper.activate(),s._computeBlankness(),s._scheduleCellsToRenderUpdate())},s._onScrollBeginDrag=function(e){s._nestedChildLists.forEach(function(t){t.ref&&t.ref._onScrollBeginDrag(e)}),s._viewabilityTuples.forEach(function(e){e.viewabilityHelper.recordInteraction()}),s._hasInteracted=!0,s.props.onScrollBeginDrag&&s.props.onScrollBeginDrag(e)},s._onScrollEndDrag=function(e){var t=e.nativeEvent.velocity;t&&(s._scrollMetrics.velocity=s._selectOffset(t)),s._computeBlankness(),s.props.onScrollEndDrag&&s.props.onScrollEndDrag(e)},s._onMomentumScrollEnd=function(e){s._scrollMetrics.velocity=0,s._computeBlankness(),s.props.onMomentumScrollEnd&&s.props.onMomentumScrollEnd(e)},s._updateCellsToRender=function(){var e=s.props,t=e.data,r=e.getItemCount,i=e.onEndReachedThreshold,n=s._isVirtualizationDisabled();s._updateViewableItems(t),t&&s.setState(function(e){var o;if(n){var l=s._scrollMetrics,a=l.contentLength,h=l.offset,c=l.visibleLength,p=a-c-h0)for(var d=o.first,u=o.last,f=d;f<=u;f++){var g=s._indicesToKeys.get(f),_=g&&s._cellKeysToChildListKeys.get(g);if(_){var m=!1,v=_,C=Array.isArray(v),b=0;for(v=C?v:v["function"==typeof Symbol&&"function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var L;if(C){if(b>=v.length)break;L=v[b++]}else{if((b=v.next()).done)break;L=b.value}var S=L,M=s._nestedChildLists.get(S);if(M&&M.ref&&M.ref.hasMore()){m=!0;break}}if(m){o.last=f;break}}}return o})},s._createViewToken=function(e,t){var r=s.props,i=r.data,n=r.getItem,o=r.keyExtractor,l=n(i,e);return{index:e,item:l,key:o(l,e),isViewable:t}},s._getFrameMetricsApprox=function(e){var t=s._getFrameMetrics(e);if(t&&t.index===e)return t;var r=s.props.getItemLayout;return m(!r,'Should not have to estimate frames when a measurement metrics function is provided'),{length:s._averageCellLength,offset:s._averageCellLength*e}},s._getFrameMetrics=function(e){var t=s.props,r=t.data,i=t.getItem,n=t.getItemCount,o=t.getItemLayout,l=t.keyExtractor;m(n(r)>e,'Tried to get frame for out of range index '+e);var a=i(r,e),h=a&&s._frames[l(a,e)];return h&&h.index===e||o&&(h=o(r,e)),h},m(!e.onScroll||!e.onScroll.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),m(e.windowSize>0,'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.'),s._fillRateHelper=new o(s._getFrameMetrics),s._updateCellsToRenderBatcher=new n(s._updateCellsToRender,s.props.updateCellsBatchingPeriod),s.props.viewabilityConfigCallbackPairs?s._viewabilityTuples=s.props.viewabilityConfigCallbackPairs.map(function(e){return{viewabilityHelper:new g(e.viewabilityConfig),onViewableItemsChanged:e.onViewableItemsChanged}}):s.props.onViewableItemsChanged&&s._viewabilityTuples.push({viewabilityHelper:new g(s.props.viewabilityConfig),onViewableItemsChanged:s.props.onViewableItemsChanged});var i={first:s.props.initialScrollIndex||0,last:Math.min(s.props.getItemCount(s.props.data),(s.props.initialScrollIndex||0)+s.props.initialNumToRender)-1};if(s._isNestedWithSameOrientation()){var l=s.context.virtualizedList.getNestedChildState(s.props.listKey||s._getCellKey());l&&(i=l,s.state=l,s._frames=l.frames)}return s.state=i,s}return babelHelpers.createClass(t,[{key:"scrollToEnd",value:function(e){var t=!e||e.animated,r=this.props.getItemCount(this.props.data)-1,s=this._getFrameMetricsApprox(r),i=Math.max(0,s.offset+s.length+this._footerLength-this._scrollMetrics.visibleLength);this._scrollRef.scrollTo(this.props.horizontal?{x:i,animated:t}:{y:i,animated:t})}},{key:"scrollToIndex",value:function(e){var t=this.props,r=t.data,s=t.horizontal,i=t.getItemCount,n=t.getItemLayout,o=t.onScrollToIndexFailed,l=e.animated,a=e.index,h=e.viewOffset,c=e.viewPosition;if(m(a>=0&&athis._highestMeasuredFrameIndex)return m(!!o,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void o({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:a});var p=this._getFrameMetricsApprox(a),d=Math.max(0,p.offset-(c||0)*(this._scrollMetrics.visibleLength-p.length))-(h||0);this._scrollRef.scrollTo(s?{x:d,animated:l}:{y:d,animated:l})}},{key:"scrollToItem",value:function(e){for(var t=e.item,r=this.props,s=r.data,i=r.getItem,n=(0,r.getItemCount)(s),o=0;o0){v=!1,C='';var m=l?'width':'height',y=this.props.initialScrollIndex?-1:this.props.initialNumToRender-1,b=this.state,L=b.first,x=b.last;this._pushCells(p,u,d,0,y,c);var k=Math.max(y+1,L);if(!h&&L>y+1){var I=!1;if(d.size>0)for(var E=i?1:0,R=k-1;R>y;R--)if(d.has(R+E)){var w=this._getFrameMetricsApprox(y),T=this._getFrameMetricsApprox(R),z=T.offset-(w.offset+w.length);p.push(a.createElement(f,{key:"$sticky_lead",style:babelHelpers.defineProperty({},m,z)})),this._pushCells(p,u,d,R,R,c);var H=this._getFrameMetricsApprox(L).offset-(T.offset+T.length);p.push(a.createElement(f,{key:"$sticky_trail",style:babelHelpers.defineProperty({},m,H)})),I=!0;break}if(!I){var K=this._getFrameMetricsApprox(y),P=this._getFrameMetricsApprox(L).offset-(K.offset+K.length);p.push(a.createElement(f,{key:"$lead_spacer",style:babelHelpers.defineProperty({},m,P)}))}}if(this._pushCells(p,u,d,k,x,c),!this._hasWarned.keys&&v&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key property on each item or provide a custom keyExtractor.",C),this._hasWarned.keys=!0),!h&&x<_-1){var N=this._getFrameMetricsApprox(x),F=this.props.getItemLayout?_-1:Math.min(_-1,this._highestMeasuredFrameIndex),O=this._getFrameMetricsApprox(F),A=O.offset+O.length-(N.offset+N.length);p.push(a.createElement(f,{key:"$tail_spacer",style:babelHelpers.defineProperty({},m,A)}))}}else if(r){var V=a.isValidElement(r)?r:a.createElement(r,null);p.push(a.cloneElement(V,{key:'$empty',onLayout:function(t){e._onLayoutEmpty(t),V.props.onLayout&&V.props.onLayout(t)},style:[V.props.style,c]}))}if(s){var D=a.isValidElement(s)?s:a.createElement(s,null);p.push(a.createElement(S,{cellKey:this._getCellKey()+'-footer',key:"$footer"},a.createElement(f,{onLayout:this._onLayoutFooter,style:c},D)))}var B=babelHelpers.objectSpread({},this.props,{onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,onScroll:this._onScroll,onScrollBeginDrag:this._onScrollBeginDrag,onScrollEndDrag:this._onScrollEndDrag,onMomentumScrollEnd:this._onMomentumScrollEnd,scrollEventThrottle:this.props.scrollEventThrottle,invertStickyHeaders:void 0!==this.props.invertStickyHeaders?this.props.invertStickyHeaders:this.props.inverted,stickyHeaderIndices:u});c&&(B.style=[c,this.props.style]),this._hasMore=this.state.last=l.length)break;c=l[h++]}else{if((h=l.next()).done)break;c=h.value}var p=c,d=this._nestedChildLists.get(p);d&&d.ref&&d.ref.measureLayoutRelativeToContainingList()}}this._computeBlankness()}},{key:"measureLayoutRelativeToContainingList",value:function(){var e=this;u.measureLayout(h.findNodeHandle(this),h.findNodeHandle(this.context.virtualizedList.getOutermostParentListRef()),function(e){console.warn("VirtualizedList: Encountered an error while measuring a list's offset from its containing VirtualizedList.")},function(t,r,s,i){e._offsetFromParentVirtualizedList=e._selectOffset({x:t,y:r}),e._scrollMetrics.contentLength=e._selectLength({width:s,height:i});var n=e._convertParentScrollMetrics(e.context.virtualizedList.getScrollMetrics());e._scrollMetrics.visibleLength=n.visibleLength,e._scrollMetrics.offset=n.offset})}},{key:"_renderDebugOverlay",value:function(){for(var e=this._scrollMetrics.visibleLength/this._scrollMetrics.contentLength,t=[],r=this.props.getItemCount(this.props.data),s=0;s0){var c=i-this._getFrameMetricsApprox(t).offset;a=a||c<0||o<-2&&c2&&p0&&void 0!==arguments[0]?arguments[0]:{abort:!1};this._taskHandle&&(this._taskHandle.cancel(),t.abort||this._callback(),this._taskHandle=null)}},{key:"schedule",value:function(){var t=this;if(!this._taskHandle){var a=setTimeout(function(){t._taskHandle=s.runAfterInteractions(function(){t._taskHandle=null,t._callback()})},this._delay);this._taskHandle={cancel:function(){return clearTimeout(a)}}}}}]),t})();e.exports=i},221,[173]); +__d(function(t,e,a,s,n){'use strict';var i=e(n[0]),l=e(n[1]),r=function t(){babelHelpers.classCallCheck(this,t),this.any_blank_count=0,this.any_blank_ms=0,this.any_blank_speed_sum=0,this.mostly_blank_count=0,this.mostly_blank_ms=0,this.pixels_blank=0,this.pixels_sampled=0,this.pixels_scrolled=0,this.total_time_spent=0,this.sample_count=0},_=[],h=10,o=null,u=(function(){function t(e){babelHelpers.classCallCheck(this,t),this._anyBlankStartTime=null,this._enabled=!1,this._info=new r,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=e,this._enabled=(o||0)>Math.random(),this._resetData()}return babelHelpers.createClass(t,null,[{key:"addListener",value:function(t){return l(null!==o,'Call `FillRateHelper.setSampleRate` before `addListener`.'),_.push(t),{remove:function(){_=_.filter(function(e){return t!==e})}}}},{key:"setSampleRate",value:function(t){o=t}},{key:"setMinSampleCount",value:function(t){h=t}}]),babelHelpers.createClass(t,[{key:"activate",value:function(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=i())}},{key:"deactivateAndFlush",value:function(){if(this._enabled){var t=this._samplesStartTime;if(null!=t)if(this._info.sample_count0&&(o=Math.min(r,Math.max(0,m.offset-n)));for(var f=0,c=e.last,b=this._getFrameMetrics(c);c>=e.first&&(!b||!b.inLayout);)b=this._getFrameMetrics(c),c--;if(b&&c0?(this._anyBlankStartTime=h,this._info.any_blank_speed_sum+=_,this._info.any_blank_count++,this._info.pixels_blank+=p,y>.5&&(this._mostlyBlankStartTime=h,this._info.mostly_blank_count++)):(_<.01||Math.abs(s)<1)&&this.deactivateAndFlush(),y}},{key:"enabled",value:function(){return this._enabled}},{key:"_resetData",value:function(){this._anyBlankStartTime=null,this._info=new r,this._mostlyBlankStartTime=null,this._samplesStartTime=null}}]),t})();a.exports=u},222,[13,16]); +__d(function(e,i,t,r,n){'use strict';var a=i(n[0]),s=(function(){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{viewAreaCoveragePercentThreshold:0};babelHelpers.classCallCheck(this,e),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=i}return babelHelpers.createClass(e,[{key:"dispose",value:function(){this._timers.forEach(clearTimeout)}},{key:"computeViewableItems",value:function(e,i,t,r,n){var s=this._config,o=s.itemVisiblePercentThreshold,c=s.viewAreaCoveragePercentThreshold,h=null!=c,u=h?c:o;a(null!=u&&null!=o!=(null!=c),'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold');var f=[];if(0===e)return f;var v=-1,b=n||{first:0,last:e-1},d=b.first,m=b.last;a(m0)v=y,l(h,u,w,g,t,_.length)&&f.push(y);else if(v>=0)break}}return f}},{key:"onUpdate",value:function(e,i,t,r,n,a,s){var l=this;if((!this._config.waitForInteraction||this._hasInteracted)&&0!==e&&r(0)){var o=[];if(e&&(o=this.computeViewableItems(e,i,t,r,s)),this._viewableIndices.length!==o.length||!this._viewableIndices.every(function(e,i){return e===o[i]}))if(this._viewableIndices=o,this._config.minimumViewTime){var c=setTimeout(function(){l._timers.delete(c),l._onUpdateSync(o,a,n)},this._config.minimumViewTime);this._timers.add(c)}else this._onUpdateSync(o,a,n)}}},{key:"resetViewableIndices",value:function(){this._viewableIndices=[]}},{key:"recordInteraction",value:function(){this._hasInteracted=!0}},{key:"_onUpdateSync",value:function(e,i,t){var r=this;e=e.filter(function(e){return r._viewableIndices.includes(e)});var n=this._viewableItems,a=new Map(e.map(function(e){var i=t(e,!0);return[i.key,i]})),s=[],l=a,o=Array.isArray(l),c=0;for(l=o?l:l["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var h;if(o){if(c>=l.length)break;h=l[c++]}else{if((c=l.next()).done)break;h=c.value}var u=h,f=babelHelpers.slicedToArray(u,2),v=f[0],b=f[1];n.has(v)||s.push(b)}var d=n,m=Array.isArray(d),y=0;for(d=m?d:d["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var _;if(m){if(y>=d.length)break;_=d[y++]}else{if((y=d.next()).done)break;_=y.value}var w=_,g=babelHelpers.slicedToArray(w,2),p=g[0],I=g[1];a.has(p)||s.push(babelHelpers.objectSpread({},I,{isViewable:!1}))}s.length>0&&(this._viewableItems=a,i({viewableItems:Array.from(a.values()),changed:s,viewabilityConfig:this._config}))}}]),e})();function l(e,i,t,r,n,a){if(c(t,r,n))return!0;var s=o(t,r,n);return 100*(e?s/n:s/a)>=i}function o(e,i,t){var r=Math.min(i,t)-Math.max(e,0);return Math.max(0,r)}function c(e,i,t){return e>=0&&i<=t&&i>e}t.exports=s},223,[2]); +__d(function(t,r,e,a,n){'use strict';var i=r(n[0]);function s(t,r,e){for(var a=[],n=0,s=0;s=t[o]&&(a[o]=s,n++,o===t.length-1))return i(n===t.length,'bad offsets input, should be in increasing order: %s',JSON.stringify(t)),a;return a}function f(t,r){return r.last-r.first+1-Math.max(0,1+Math.min(r.last,t.last)-Math.max(r.first,t.first))}var l={computeWindowedRenderLimits:function(t,r,e,a){var n=t.data,i=t.getItemCount,l=t.maxToRenderPerBatch,o=t.windowSize,u=i(n);if(0===u)return r;var h=a.offset,m=a.velocity,v=a.visibleLength,c=Math.max(0,h),d=c+v,g=(o-1)*v,b=m>1?'after':m<-1?'before':'none',x=Math.max(0,c-.5*g),M=Math.max(0,d+.5*g);if(e(u-1).offset=L);){var T=S>=l,B=C<=r.first||C>r.last,I=C>y&&(!T||!B),J=O>=r.last||O=C&&C>=0&&O=y&&O<=L&&C<=R.first&&O>=R.last))throw new Error('Bad window calculation '+JSON.stringify({first:C,last:O,itemCount:u,overscanFirst:y,overscanLast:L,visible:R}));return{first:C,last:O}},elementsThatOverlapOffsets:s,newRangeCount:f};e.exports=l},224,[2]); +__d(function(e,t,r,l,s){'use strict';var i=t(s[0]),a=t(s[1]),n=t(s[2]),o=t(s[3]),c=t(s[4]),p=(function(e){function t(){var e,r,l;babelHelpers.classCallCheck(this,t);for(var s=arguments.length,i=new Array(s),a=0;a is not supported on Android yet.'),0===o.Children.count(this.props.children)?null:o.createElement(l,{style:[this.props.style,c.container],nativeID:this.props.nativeID,backgroundColor:this.props.backgroundColor},this.props.children)}}]),babelHelpers.inherits(t,e),t})(o.Component),c=i.create({container:{position:'absolute'}});r.exports=p},229,[38,25,32,71,60]); +__d(function(e,t,o,r,a){'use strict';var n=t(a[0]),s=t(a[1]),i=(t(a[2]),t(a[3])),l=t(a[4]),b=t(a[5]),u=(function(e){function t(){var e,o,r;babelHelpers.classCallCheck(this,t);for(var a=arguments.length,n=new Array(a),i=0;i=0){var s=n.Children.toArray(o.props.children)[t].props.value;o.props.onValueChange(s,t)}else o.props.onValueChange(null,t)}o._lastNativePosition=e.nativeEvent.position,o.forceUpdate()};var r=o._stateFromProps(e);return o.state=babelHelpers.objectSpread({},r,{initialSelectedIndex:r.selectedIndex}),o}return babelHelpers.createClass(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.setState(this._stateFromProps(e))}},{key:"render",value:function(){var e="dropdown"===this.props.mode?b:v,t={enabled:this.props.enabled,items:this.state.items,mode:this.props.mode,onSelect:this._onChange,prompt:this.props.prompt,selected:this.state.initialSelectedIndex,testID:this.props.testID,style:[y.pickerAndroid,this.props.style],accessibilityLabel:this.props.accessibilityLabel};return n.createElement(e,babelHelpers.extends({ref:"picker"},t))}},{key:"componentDidMount",value:function(){this._lastNativePosition=this.state.initialSelectedIndex}},{key:"componentDidUpdate",value:function(){this.refs.picker&&this.state.selectedIndex!==this._lastNativePosition&&(this.refs.picker.setNativeProps({selected:this.state.selectedIndex}),this._lastNativePosition=this.state.selectedIndex)}}]),babelHelpers.inherits(t,e),t})(n.Component);m.propTypes=babelHelpers.objectSpread({},c,{style:f,selectedValue:l.any,enabled:l.bool,mode:l.oneOf(['dialog','dropdown']),onValueChange:l.func,prompt:l.string,testID:l.string});var y=a.create({pickerAndroid:{height:50}});s.exports=m},239,[38,25,43,32,75,71,51,52,60]); +__d(function(e,t,r,s,n){'use strict';var o=t(n[0]),l=t(n[1]),i=t(n[2]),a=t(n[3]),c=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.createClass(t,[{key:"render",value:function(){return o.createElement(a,{style:[b.dummy,this.props.style]},o.createElement(i,{style:b.text},"ProgressViewIOS is not supported on this platform!"))}}]),babelHelpers.inherits(t,e),t})(o.Component),b=l.create({dummy:{width:120,height:20,backgroundColor:'#ffbcbc',borderWidth:1,borderColor:'red',alignItems:'center',justifyContent:'center'},text:{color:'#333333',margin:5,fontSize:10}});r.exports=c},240,[25,32,89,58]); +__d(function(t,s,c,e,i){'use strict';c.exports=s(i[0])},241,[58]); +__d(function(e,t,r,s,a){'use strict';var i=t(a[0]),l=(t(a[1]),t(a[2])),o=(t(a[3]),t(a[4])),n=babelHelpers.objectSpread({},o.defaultProps,{stickySectionHeadersEnabled:!1}),p=(function(e){function t(){var e,r,s;babelHelpers.classCallCheck(this,t);for(var a=arguments.length,i=new Array(a),l=0;l=a.data.length+1)t-=a.data.length+1;else return-1===t?{section:a,key:i+':header',index:null,header:!0,trailingSection:this.props.sections[n+1]}:t===a.data.length?{section:a,key:i+':footer',index:null,header:!1,trailingSection:this.props.sections[n+1]}:{section:a,key:i+':'+(a.keyExtractor||r)(a.data[t],t),index:t,leadingItem:a.data[t-1],leadingSection:this.props.sections[n-1],trailingItem:a.data[t+1],trailingSection:this.props.sections[n+1]}}}},{key:"_getSeparatorComponent",value:function(e,t){if(!(t=t||this._subExtractor(e)))return null;var r=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,n=this.props.SectionSeparatorComponent,a=e===this.state.childProps.getItemCount()-1,i=t.index===t.section.data.length-1;return n&&i?n:!r||i||a?null:r}}]),babelHelpers.inherits(t,e),t})(i.PureComponent);p.defaultProps=babelHelpers.objectSpread({},s.defaultProps,{data:[]});var c=(function(e){function t(){var e,r,n;babelHelpers.classCallCheck(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0},_swipeFullSpeed:function(e){this.state.currentLeft.setValue(this._previousLeft+e.dx)},_swipeSlowSpeed:function(e){this.state.currentLeft.setValue(this._previousLeft+e.dx/4)},_isSwipingExcessivelyRightFromClosedPosition:function(e){var i=m?-e.dx:e.dx;return this._isSwipingRightFromClosed(e)&&i>120},_onPanResponderTerminationRequest:function(e,i){return!1},_animateTo:function(e){var i=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;s.timing(this.state.currentLeft,{duration:t,toValue:e,useNativeDriver:!0}).start(function(){i._previousLeft=e,n()})},_animateToOpenPosition:function(){var e=m?-this.props.maxSwipeDistance:this.props.maxSwipeDistance;this._animateTo(-e)},_animateToOpenPositionWith:function(e,i){e=e>.3?e:.3;var t=Math.abs((this.props.maxSwipeDistance-Math.abs(i))/e),n=m?-this.props.maxSwipeDistance:this.props.maxSwipeDistance;this._animateTo(-n,t)},_animateToClosedPosition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300;this._animateTo(0,e)},_animateToClosedPositionDuringBounce:function(){this._animateToClosedPosition(300)},_animateBounceBack:function(e){var i=m?-30:30;this._animateTo(-i,e,this._animateToClosedPositionDuringBounce)},_isValidSwipe:function(e){return!(this.props.preventSwipeRight&&0===this._previousLeft&&e.dx>0)&&Math.abs(e.dx)>10},_shouldAnimateRemainder:function(e){return Math.abs(e.dx)>this.props.swipeThreshold||e.vx>.3},_handlePanResponderEnd:function(e,i){var t=m?-i.dx:i.dx;this._isSwipingRightFromClosed(i)?(this.props.onOpen(),this._animateBounceBack(300)):this._shouldAnimateRemainder(i)?t<0?(this.props.onOpen(),this._animateToOpenPositionWith(i.vx,t)):(this.props.onClose(),this._animateToClosedPosition()):0===this._previousLeft?this._animateToClosedPosition():this._animateToOpenPosition(),this.props.onSwipeEnd()}}),w=((function(e){function i(){return babelHelpers.classCallCheck(this,i),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(i).apply(this,arguments))}babelHelpers.createClass(i,[{key:"close",value:function(){}}]),babelHelpers.inherits(i,e)})(p.Component),u.create({slideOutContainer:{bottom:0,left:0,position:'absolute',right:0,top:0}}));t.exports=f},249,[165,235,250,25,43,32,160,58,161,17]); +__d(function(e,n,o,t,r){'use strict';var a=n(r[0]),u=n(r[1]),s=u.currentCentroidXOfTouchesChangedAfter,d=u.currentCentroidYOfTouchesChangedAfter,i=u.previousCentroidXOfTouchesChangedAfter,c=u.previousCentroidYOfTouchesChangedAfter,p=u.currentCentroidX,v=u.currentCentroidY,h={_initializeGestureState:function(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove:function(e,n){e.numberActiveTouches=n.numberActiveTouches,e.moveX=s(n,e._accountsForMovesUpTo),e.moveY=d(n,e._accountsForMovesUpTo);var o=e._accountsForMovesUpTo,t=i(n,o),r=s(n,o),a=c(n,o),u=d(n,o),p=e.dx+(r-t),v=e.dy+(u-a),h=n.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(p-e.dx)/h,e.vy=(v-e.dy)/h,e.dx=p,e.dy=v,e._accountsForMovesUpTo=n.mostRecentTimeStamp},create:function(e){var n={handle:null},o={stateID:Math.random()};return h._initializeGestureState(o),{panHandlers:{onStartShouldSetResponder:function(n){return void 0!==e.onStartShouldSetPanResponder&&e.onStartShouldSetPanResponder(n,o)},onMoveShouldSetResponder:function(n){return void 0!==e.onMoveShouldSetPanResponder&&e.onMoveShouldSetPanResponder(n,o)},onStartShouldSetResponderCapture:function(n){return 1===n.nativeEvent.touches.length&&h._initializeGestureState(o),o.numberActiveTouches=n.touchHistory.numberActiveTouches,void 0!==e.onStartShouldSetPanResponderCapture&&e.onStartShouldSetPanResponderCapture(n,o)},onMoveShouldSetResponderCapture:function(n){var t=n.touchHistory;return o._accountsForMovesUpTo!==t.mostRecentTimeStamp&&(h._updateGestureStateOnMove(o,t),!!e.onMoveShouldSetPanResponderCapture&&e.onMoveShouldSetPanResponderCapture(n,o))},onResponderGrant:function(t){return n.handle||(n.handle=a.createInteractionHandle()),o.x0=p(t.touchHistory),o.y0=v(t.touchHistory),o.dx=0,o.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(t,o),void 0===e.onShouldBlockNativeResponder||e.onShouldBlockNativeResponder()},onResponderReject:function(t){S(n,e.onPanResponderReject,t,o)},onResponderRelease:function(t){S(n,e.onPanResponderRelease,t,o),h._initializeGestureState(o)},onResponderStart:function(n){var t=n.touchHistory;o.numberActiveTouches=t.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(n,o)},onResponderMove:function(n){var t=n.touchHistory;o._accountsForMovesUpTo!==t.mostRecentTimeStamp&&(h._updateGestureStateOnMove(o,t),e.onPanResponderMove&&e.onPanResponderMove(n,o))},onResponderEnd:function(t){var r=t.touchHistory;o.numberActiveTouches=r.numberActiveTouches,S(n,e.onPanResponderEnd,t,o)},onResponderTerminate:function(t){S(n,e.onPanResponderTerminate,t,o),h._initializeGestureState(o)},onResponderTerminationRequest:function(n){return void 0===e.onPanResponderTerminationRequest||e.onPanResponderTerminationRequest(n,o)}},getInteractionHandle:function(){return n.handle}}}};function S(e,n,o,t){e.handle&&(a.clearInteractionHandle(e.handle),e.handle=null),n&&n(o,t)}o.exports=h},250,[173,251]); +__d(function(e,n,r,t,i){var o={centroidDimension:function(e,n,r,t){var i=e.touchBank,u=0,c=0,d=1===e.numberActiveTouches?e.touchBank[e.indexOfSingleActiveTouch]:null;if(null!==d)d.touchActive&&d.currentTimeStamp>n&&(u+=t&&r?d.currentPageX:t&&!r?d.currentPageY:!t&&r?d.previousPageX:d.previousPageY,c=1);else for(var a=0;a=n){u+=t&&r?f.currentPageX:t&&!r?f.currentPageY:!t&&r?f.previousPageX:f.previousPageY,c++}}return c>0?u/c:o.noCentroid},currentCentroidXOfTouchesChangedAfter:function(e,n){return o.centroidDimension(e,n,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(e,n){return o.centroidDimension(e,n,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(e,n){return o.centroidDimension(e,n,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(e,n){return o.centroidDimension(e,n,!1,!1)},currentCentroidX:function(e){return o.centroidDimension(e,0,!0,!0)},currentCentroidY:function(e){return o.centroidDimension(e,0,!1,!0)},noCentroid:-1};r.exports=o},251,[]); +__d(function(e,t,n,o,r){'use strict';var s=t(r[0]),i=t(r[1]),a=t(r[2]),u=t(r[3]),c=t(r[4]),l=(function(e){function t(e,n){var o;return babelHelpers.classCallCheck(this,t),(o=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,e,n)))._listViewRef=null,o._shouldBounceFirstRowOnMount=!1,o._onScroll=function(e){o.props.dataSource.getOpenRowID()&&o.setState({dataSource:o.state.dataSource.setOpenRowID(null)}),o.props.onScroll&&o.props.onScroll(e)},o._renderRow=function(e,t,n){var r=o.props.renderQuickActions(e,t,n);if(!r)return o.props.renderRow(e,t,n);var s=!1;return o._shouldBounceFirstRowOnMount&&(o._shouldBounceFirstRowOnMount=!1,s=n===o.props.dataSource.getFirstRowID()),a.createElement(c,{slideoutView:r,isOpen:e.id===o.props.dataSource.getOpenRowID(),maxSwipeDistance:o._getMaxSwipeDistance(e,t,n),key:n,onOpen:function(){return o._onOpen(e.id)},onClose:function(){return o._onClose(e.id)},onSwipeEnd:function(){return o._setListViewScrollable(!0)},onSwipeStart:function(){return o._setListViewScrollable(!1)},shouldBounceOnMount:s},o.props.renderRow(e,t,n))},o._shouldBounceFirstRowOnMount=o.props.bounceFirstRowOnMount,o.state={dataSource:o.props.dataSource},o}return babelHelpers.createClass(t,null,[{key:"getNewDataSource",value:function(){return new u({getRowData:function(e,t,n){return e[t][n]},getSectionHeaderData:function(e,t){return e[t]},rowHasChanged:function(e,t){return e!==t},sectionHeaderHasChanged:function(e,t){return e!==t}})}}]),babelHelpers.createClass(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.state.dataSource.getDataSource()!==e.dataSource.getDataSource()&&this.setState({dataSource:e.dataSource})}},{key:"render",value:function(){var e=this;return a.createElement(s,babelHelpers.extends({},this.props,{ref:function(t){e._listViewRef=t},dataSource:this.state.dataSource.getDataSource(),onScroll:this._onScroll,renderRow:this._renderRow}))}},{key:"_setListViewScrollable",value:function(e){this._listViewRef&&'function'==typeof this._listViewRef.setNativeProps&&this._listViewRef.setNativeProps({scrollEnabled:e})}},{key:"getScrollResponder",value:function(){if(this._listViewRef&&'function'==typeof this._listViewRef.getScrollResponder)return this._listViewRef.getScrollResponder()}},{key:"_getMaxSwipeDistance",value:function(e,t,n){return'function'==typeof this.props.maxSwipeDistance?this.props.maxSwipeDistance(e,t,n):this.props.maxSwipeDistance}},{key:"_onOpen",value:function(e){this.setState({dataSource:this.state.dataSource.setOpenRowID(e)})}},{key:"_onClose",value:function(e){this.setState({dataSource:this.state.dataSource.setOpenRowID(null)})}}]),babelHelpers.inherits(t,e),t})(a.Component);l.propTypes={bounceFirstRowOnMount:i.bool.isRequired,dataSource:i.instanceOf(u).isRequired,maxSwipeDistance:i.oneOfType([i.number,i.func]).isRequired,renderRow:i.func.isRequired,renderQuickActions:i.func.isRequired},l.defaultProps={bounceFirstRowOnMount:!1,renderQuickActions:function(){return null}},n.exports=l},252,[213,43,25,253,249]); +__d(function(t,e,i,n,s){'use strict';var o=e(s[0]),a=(function(){function t(e){var i=this;babelHelpers.classCallCheck(this,t),this._dataSource=new o({getRowData:e.getRowData,getSectionHeaderData:e.getSectionHeaderData,rowHasChanged:function(t,n){return t.id!==i._previousOpenRowID&&n.id===i._openRowID||t.id===i._previousOpenRowID&&n.id!==i._openRowID||e.rowHasChanged(t,n)},sectionHeaderHasChanged:e.sectionHeaderHasChanged})}return babelHelpers.createClass(t,[{key:"cloneWithRowsAndSections",value:function(t,e,i){return this._dataSource=this._dataSource.cloneWithRowsAndSections(t,e,i),this._dataBlob=t,this.rowIdentities=this._dataSource.rowIdentities,this.sectionIdentities=this._dataSource.sectionIdentities,this}},{key:"getDataSource",value:function(){return this._dataSource}},{key:"getOpenRowID",value:function(){return this._openRowID}},{key:"getFirstRowID",value:function(){return this.rowIdentities?this.rowIdentities[0]&&this.rowIdentities[0][0]:Object.keys(this._dataBlob)[0]}},{key:"getLastRowID",value:function(){if(this.rowIdentities&&this.rowIdentities.length){var t=this.rowIdentities[this.rowIdentities.length-1];if(t&&t.length)return t[t.length-1]}return Object.keys(this._dataBlob)[this._dataBlob.length-1]}},{key:"setOpenRowID",value:function(t){return this._previousOpenRowID=this._openRowID,this._openRowID=t,this._dataSource=this._dataSource.cloneWithRowsAndSections(this._dataBlob,this.sectionIdentities,this.rowIdentities),this}}]),t})();i.exports=a},253,[215]); +__d(function(e,t,r,s,l){'use strict';var n=t(l[0]),a=t(l[1]),p=t(l[2]),o=t(l[3]),i=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.createClass(t,[{key:"render",value:function(){return n.createElement(o,{style:[this.props.style,b.tabGroup]},this.props.children)}}]),babelHelpers.inherits(t,e),t})(n.Component);i.Item=p;var b=a.create({tabGroup:{flex:1}});r.exports=i},254,[25,32,255,58]); +__d(function(e,t,r,s,l){'use strict';var o=t(l[0]),n=t(l[1]),p=t(l[2]),a=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.createClass(t,[{key:"render",value:function(){return this.props.selected?o.createElement(n,{style:[this.props.style,i.tab]},this.props.children):o.createElement(n,null)}}]),babelHelpers.inherits(t,e),t})(o.Component),i=p.create({tab:{top:0,right:0,bottom:0,left:0,borderColor:'red',borderWidth:1}});r.exports=a},255,[25,58,32]); +__d(function(e,t,n,s,o){'use strict';var i,r=t(o[0]),a=t(o[1]),l=t(o[2]),c=t(o[3]),u=(t(o[4]),t(o[5])),p=t(o[6]),h=t(o[7]),d=t(o[8]),f=t(o[9]),b=t(o[10]),y=t(o[11]),g=t(o[12]),v=t(o[13]),m=t(o[14]),_=t(o[15]),C=t(o[16]),S=t(o[17]),x=t(o[18]),T=t(o[19]);t(o[20]);i=T('AndroidTextInput');var I=['phoneNumber','link','address','calendarEvent','none','all'],F=p({displayName:'TextInput',statics:{State:{currentlyFocusedField:g.currentlyFocusedField,focusTextInput:function(e){console.warn('`focusTextInput` is deprecated, use the `focus` method of the `TextInput` ref instead.'),g.focusTextInput(e)},blurTextInput:function(e){console.warn('`blurTextInput` is deprecated, use `Keyboard.dismiss` or the `blur` method of the `TextInput` ref.'),g.blurTextInput(e)}}},propTypes:babelHelpers.objectSpread({},C,{autoCapitalize:h.oneOf(['none','sentences','words','characters']),autoCorrect:h.bool,spellCheck:h.bool,autoFocus:h.bool,allowFontScaling:h.bool,editable:h.bool,keyboardType:h.oneOf(['default','email-address','numeric','phone-pad','number-pad','ascii-capable','numbers-and-punctuation','url','name-phone-pad','decimal-pad','twitter','web-search','visible-password']),keyboardAppearance:h.oneOf(['default','light','dark']),returnKeyType:h.oneOf(['done','go','next','search','send','none','previous','default','emergency-call','google','join','route','yahoo']),returnKeyLabel:h.string,maxLength:h.number,numberOfLines:h.number,disableFullscreenUI:h.bool,enablesReturnKeyAutomatically:h.bool,multiline:h.bool,textBreakStrategy:h.oneOf(['simple','highQuality','balanced']),onBlur:h.func,onFocus:h.func,onChange:h.func,onChangeText:h.func,onContentSizeChange:h.func,onTextInput:h.func,onEndEditing:h.func,onSelectionChange:h.func,onSubmitEditing:h.func,onKeyPress:h.func,onLayout:h.func,onScroll:h.func,placeholder:h.string,placeholderTextColor:r,secureTextEntry:h.bool,selectionColor:r,selectionState:h.instanceOf(a),selection:h.shape({start:h.number.isRequired,end:h.number}),value:h.string,defaultValue:h.string,clearButtonMode:h.oneOf(['never','while-editing','unless-editing','always']),clearTextOnFocus:h.bool,selectTextOnFocus:h.bool,blurOnSubmit:h.bool,style:b.propTypes.style,underlineColorAndroid:r,inlineImageLeft:h.string,inlineImagePadding:h.number,dataDetectorTypes:h.oneOfType([h.oneOf(I),h.arrayOf(h.oneOf(I))]),caretHidden:h.bool,contextMenuHidden:h.bool,inputAccessoryViewID:h.string,textContentType:h.oneOf(['none','URL','addressCity','addressCityAndState','addressState','countryName','creditCardNumber','emailAddress','familyName','fullStreetAddress','givenName','jobTitle','location','middleName','name','namePrefix','nameSuffix','nickname','organizationName','postalCode','streetAddressLine1','streetAddressLine2','sublocality','telephoneNumber','username','password'])}),getDefaultProps:function(){return{allowFontScaling:!0,underlineColorAndroid:'transparent'}},mixins:[c,v],isFocused:function(){return g.currentlyFocusedField()===d.findNodeHandle(this._inputRef)},_inputRef:void 0,_focusSubscription:void 0,_lastNativeText:void 0,_lastNativeSelection:void 0,componentDidMount:function(){var e=this;this._lastNativeText=this.props.value;var t=d.findNodeHandle(this._inputRef);null!=t&&g.registerInput(t),this.context.focusEmitter?(this._focusSubscription=this.context.focusEmitter.addListener('focus',function(t){e===t?e.requestAnimationFrame(e.focus):e.isFocused()&&e.blur()}),this.props.autoFocus&&this.context.onFocusRequested(this)):this.props.autoFocus&&this.requestAnimationFrame(this.focus)},componentWillUnmount:function(){this._focusSubscription&&this._focusSubscription.remove(),this.isFocused()&&this.blur();var e=d.findNodeHandle(this._inputRef);null!=e&&g.unregisterInput(e)},contextTypes:{onFocusRequested:h.func,focusEmitter:h.instanceOf(l)},clear:function(){this.setNativeProps({text:''})},render:function(){var e;return e=this._renderAndroid(),u.createElement(y.Provider,{value:!0},e)},_getText:function(){return'string'==typeof this.props.value?this.props.value:'string'==typeof this.props.defaultValue?this.props.defaultValue:''},_setNativeRef:function(e){this._inputRef=e},_renderIOSLegacy:function(){var e,t=babelHelpers.extends({},this.props);if(t.style=[this.props.style],t.selection&&null==t.selection.end&&(t.selection={start:t.selection.start,end:t.selection.start}),t.multiline){var n=t.children,s=0;u.Children.forEach(n,function(){return++s}),x(!(t.value&&s),'Cannot specify both value and children.'),s>=1&&(n=u.createElement(b,{style:t.style,allowFontScaling:t.allowFontScaling},n)),t.inputView&&(n=[n,t.inputView]),t.style.unshift(N.multilineInput),e=u.createElement(void 0,babelHelpers.extends({ref:this._setNativeRef},t,{children:n,onFocus:this._onFocus,onBlur:this._onBlur,onChange:this._onChange,onContentSizeChange:this.props.onContentSizeChange,onSelectionChange:this._onSelectionChange,onTextInput:this._onTextInput,onSelectionChangeShouldSetResponder:S.thatReturnsTrue,text:this._getText(),dataDetectorTypes:this.props.dataDetectorTypes,onScroll:this._onScroll}))}else e=u.createElement(void 0,babelHelpers.extends({ref:this._setNativeRef},t,{onFocus:this._onFocus,onBlur:this._onBlur,onChange:this._onChange,onSelectionChange:this._onSelectionChange,onSelectionChangeShouldSetResponder:S.thatReturnsTrue,text:this._getText()}));return u.createElement(m,{onLayout:t.onLayout,onPress:this._onPress,rejectResponderTermination:!0,accessible:t.accessible,accessibilityLabel:t.accessibilityLabel,accessibilityTraits:t.accessibilityTraits,nativeID:this.props.nativeID,testID:t.testID},e)},_renderIOS:function(){var e=babelHelpers.extends({},this.props);e.style=[this.props.style],e.selection&&null==e.selection.end&&(e.selection={start:e.selection.start,end:e.selection.start});var t=void e.multiline;e.multiline&&e.style.unshift(N.multilineInput);var n=u.createElement(t,babelHelpers.extends({ref:this._setNativeRef},e,{onFocus:this._onFocus,onBlur:this._onBlur,onChange:this._onChange,onContentSizeChange:this.props.onContentSizeChange,onSelectionChange:this._onSelectionChange,onTextInput:this._onTextInput,onSelectionChangeShouldSetResponder:S.thatReturnsTrue,text:this._getText(),dataDetectorTypes:this.props.dataDetectorTypes,onScroll:this._onScroll}));return u.createElement(m,{onLayout:e.onLayout,onPress:this._onPress,rejectResponderTermination:!0,accessible:e.accessible,accessibilityLabel:e.accessibilityLabel,accessibilityTraits:e.accessibilityTraits,nativeID:this.props.nativeID,testID:e.testID},n)},_renderAndroid:function(){var e=babelHelpers.extends({},this.props);e.style=[this.props.style],e.autoCapitalize=_.AndroidTextInput.Constants.AutoCapitalizationType[e.autoCapitalize||'sentences'];var t=this.props.children,n=0;u.Children.forEach(t,function(){return++n}),x(!(this.props.value&&n),'Cannot specify both value and children.'),n>1&&(t=u.createElement(b,null,t)),e.selection&&null==e.selection.end&&(e.selection={start:e.selection.start,end:e.selection.start});var s=u.createElement(i,babelHelpers.extends({ref:this._setNativeRef},e,{mostRecentEventCount:0,onFocus:this._onFocus,onBlur:this._onBlur,onChange:this._onChange,onSelectionChange:this._onSelectionChange,onTextInput:this._onTextInput,text:this._getText(),children:t,disableFullscreenUI:this.props.disableFullscreenUI,textBreakStrategy:this.props.textBreakStrategy,onScroll:this._onScroll}));return u.createElement(m,{onLayout:e.onLayout,onPress:this._onPress,accessible:this.props.accessible,accessibilityLabel:this.props.accessibilityLabel,accessibilityComponentType:this.props.accessibilityComponentType,nativeID:this.props.nativeID,testID:this.props.testID},s)},_onFocus:function(e){this.props.onFocus&&this.props.onFocus(e),this.props.selectionState&&this.props.selectionState.focus()},_onPress:function(e){(this.props.editable||void 0===this.props.editable)&&this.focus()},_onChange:function(e){this._inputRef&&this._inputRef.setNativeProps({mostRecentEventCount:e.nativeEvent.eventCount});var t=e.nativeEvent.text;this.props.onChange&&this.props.onChange(e),this.props.onChangeText&&this.props.onChangeText(t),this._inputRef&&(this._lastNativeText=t,this.forceUpdate())},_onSelectionChange:function(e){this.props.onSelectionChange&&this.props.onSelectionChange(e),this._inputRef&&(this._lastNativeSelection=e.nativeEvent.selection,(this.props.selection||this.props.selectionState)&&this.forceUpdate())},componentDidUpdate:function(){var e={};this._lastNativeText!==this.props.value&&'string'==typeof this.props.value&&(e.text=this.props.value);var t=this.props.selection;this._lastNativeSelection&&t&&(this._lastNativeSelection.start!==t.start||this._lastNativeSelection.end!==t.end)&&(e.selection=this.props.selection),Object.keys(e).length>0&&this._inputRef&&this._inputRef.setNativeProps(e),this.props.selectionState&&t&&this.props.selectionState.update(t.start,t.end)},_onBlur:function(e){this.blur(),this.props.onBlur&&this.props.onBlur(e),this.props.selectionState&&this.props.selectionState.blur()},_onTextInput:function(e){this.props.onTextInput&&this.props.onTextInput(e)},_onScroll:function(e){this.props.onScroll&&this.props.onScroll(e)}}),R=((function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}babelHelpers.createClass(t,[{key:"clear",value:function(){}},{key:"isFocused",value:function(){}}]),babelHelpers.inherits(t,e)})(d.NativeComponent),F),N=f.create({multilineInput:{paddingTop:5}});n.exports=R},256,[38,257,20,195,12,25,161,43,95,32,89,59,154,160,159,49,71,17,2,60,16]); +__d(function(s,t,e,f,u){'use strict';var h=t(u[0]),i=(function(){function s(t,e){babelHelpers.classCallCheck(this,s),this._anchorOffset=t,this._focusOffset=e,this._hasFocus=!1}return babelHelpers.createClass(s,[{key:"update",value:function(s,t){this._anchorOffset===s&&this._focusOffset===t||(this._anchorOffset=s,this._focusOffset=t,this.emit('update'))}},{key:"constrainLength",value:function(s){this.update(Math.min(this._anchorOffset,s),Math.min(this._focusOffset,s))}},{key:"focus",value:function(){this._hasFocus||(this._hasFocus=!0,this.emit('focus'))}},{key:"blur",value:function(){this._hasFocus&&(this._hasFocus=!1,this.emit('blur'))}},{key:"hasFocus",value:function(){return this._hasFocus}},{key:"isCollapsed",value:function(){return this._anchorOffset===this._focusOffset}},{key:"isBackward",value:function(){return this._anchorOffset>this._focusOffset}},{key:"getAnchorOffset",value:function(){return this._hasFocus?this._anchorOffset:null}},{key:"getFocusOffset",value:function(){return this._hasFocus?this._focusOffset:null}},{key:"getStartOffset",value:function(){return this._hasFocus?Math.min(this._anchorOffset,this._focusOffset):null}},{key:"getEndOffset",value:function(){return this._hasFocus?Math.max(this._anchorOffset,this._focusOffset):null}},{key:"overlaps",value:function(s,t){return this.hasFocus()&&this.getStartOffset()<=t&&s<=this.getEndOffset()}}]),s})();h(i,{blur:!0,focus:!0,update:!0}),e.exports=i},257,[258]); +__d(function(e,t,n,r,i){'use strict';var s=t(i[0]),_=t(i[1]),a=t(i[2]),o=t(i[3]),v=t(i[4])({__types:!0});var E={emit:function(e,t,n,r,i,s,_){return this.__getEventEmitter().emit(e,t,n,r,i,s,_)},emitAndHold:function(e,t,n,r,i,s,_){return this.__getEventEmitter().emitAndHold(e,t,n,r,i,s,_)},addListener:function(e,t,n){return this.__getEventEmitter().addListener(e,t,n)},once:function(e,t,n){return this.__getEventEmitter().once(e,t,n)},addRetroactiveListener:function(e,t,n){return this.__getEventEmitter().addRetroactiveListener(e,t,n)},addListenerMap:function(e,t){return this.__getEventEmitter().addListenerMap(e,t)},addRetroactiveListenerMap:function(e,t){return this.__getEventEmitter().addListenerMap(e,t)},removeAllListeners:function(){this.__getEventEmitter().removeAllListeners()},removeCurrentListener:function(){this.__getEventEmitter().removeCurrentListener()},releaseHeldEventType:function(e){this.__getEventEmitter().releaseHeldEventType(e)},__getEventEmitter:function(){if(!this.__eventEmitter){var e=new s,t=new a;this.__eventEmitter=new _(e,t)}return this.__eventEmitter}};n.exports=function(e,t){o(t,'Must supply set of valid event types');var n=e.prototype||e;o(!n.__eventEmitter,'An active emitter is already mixed in');var r=e.constructor;r&&o(r===Object||r===Function,'Mix EventEmitter into a class, not an instance'),n.hasOwnProperty(v)?babelHelpers.extends(n.__types,t):n.__types?n.__types=babelHelpers.extends({},n.__types,t):n.__types=t,babelHelpers.extends(n,E)}},258,[20,259,260,2,261]); +__d(function(e,t,n,r,i){'use strict';var s=(function(){function e(t,n){babelHelpers.classCallCheck(this,e),this._emitter=t,this._eventHolder=n,this._currentEventToken=null,this._emittingHeldEvents=!1}return babelHelpers.createClass(e,[{key:"addListener",value:function(e,t,n){return this._emitter.addListener(e,t,n)}},{key:"once",value:function(e,t,n){return this._emitter.once(e,t,n)}},{key:"addRetroactiveListener",value:function(e,t,n){var r=this._emitter.addListener(e,t,n);return this._emittingHeldEvents=!0,this._eventHolder.emitToListener(e,t,n),this._emittingHeldEvents=!1,r}},{key:"removeAllListeners",value:function(e){this._emitter.removeAllListeners(e)}},{key:"removeCurrentListener",value:function(){this._emitter.removeCurrentListener()}},{key:"listeners",value:function(e){return this._emitter.listeners(e)}},{key:"emit",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?r-1:0),s=1;s1?r-1:0),i=1;i. Was '+e.type.displayName),r.createElement(e.type,t)})},a._onPageScroll=function(e){a.props.onPageScroll&&a.props.onPageScroll(e),'on-drag'===a.props.keyboardDismissMode&&d()},a._onPageScrollStateChanged=function(e){a.props.onPageScrollStateChanged&&a.props.onPageScrollStateChanged(e.nativeEvent.pageScrollState)},a._onPageSelected=function(e){a.props.onPageSelected&&a.props.onPageSelected(e)},a.setPage=function(e){s.dispatchViewManagerCommand(i.findNodeHandle(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(a))),s.AndroidViewPager.Commands.setPage,[e])},a.setPageWithoutAnimation=function(e){s.dispatchViewManagerCommand(i.findNodeHandle(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(a))),s.AndroidViewPager.Commands.setPageWithoutAnimation,[e])},n))}return babelHelpers.createClass(t,[{key:"componentDidMount",value:function(){null!=this.props.initialPage&&this.setPageWithoutAnimation(this.props.initialPage)}},{key:"render",value:function(){return r.createElement(c,babelHelpers.extends({},this.props,{ref:g,style:this.props.style,onPageScroll:this._onPageScroll,onPageScrollStateChanged:this._onPageScrollStateChanged,onPageSelected:this._onPageSelected,children:this._childrenWithOverridenStyle()}))}}]),babelHelpers.inherits(t,e),t})(r.Component);h.propTypes=babelHelpers.objectSpread({},p,{initialPage:l.number,onPageScroll:l.func,onPageScrollStateChanged:l.func,onPageSelected:l.func,pageMargin:l.number,keyboardDismissMode:l.oneOf(['none','on-drag']),scrollEnabled:l.bool,peekEnabled:l.bool}),n.exports=h},265,[25,43,95,49,71,202,60]); +__d(function(e,t,n,a,o){'use strict';var i=t(o[0]),s=t(o[1]),r=t(o[2]),l=t(o[3]),d=t(o[4]),p=t(o[5]),c=t(o[6]),g=t(o[7]),h=t(o[8]),u=t(o[9]),b=t(o[10]),m=t(o[11]),v=t(o[12]),f=t(o[13]),w='webview',E=m({IDLE:null,LOADING:null,ERROR:null}),S=function(){return r.createElement(g,{style:L.loadingView},r.createElement(s,{style:L.loadingProgressBar}))},C=(function(e){function t(){var e,n,a;babelHelpers.classCallCheck(this,t);for(var o=arguments.length,i=new Array(o),s=0;s=a.length)break;u=a[n++]}else{if((n=a.next()).done)break;u=n.value}var c=u,s=babelHelpers.slicedToArray(c,2),d=s[0],f=s[1];t[d]=f()}var b={},x=e._fileSources,y=Array.isArray(x),_=0;for(x=y?x:x["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var S;if(y){if(_>=x.length)break;S=x[_++]}else{if((_=x.next()).done)break;S=_.value}var p=S,v=babelHelpers.slicedToArray(p,2),g=v[0],k=v[1];b[g]=k()}i('BugReporting extraData:',t);var m=r(o[4]).BugReporting;m&&m.setExtraData&&m.setExtraData(t,b);var D=r(o[4]).RedBox;return D&&D.setExtraData&&D.setExtraData(t,'From BugReporting.js'),{extras:t,files:b}}}]),e})();c._extraSources=new n,c._fileSources=new n,c._subscription=null,c._redboxSubscription=null,t.exports=c},271,[19,100,149,272,4]); +__d(function(e,t,r,a,i){'use strict';r.exports=function(){try{return"React tree dumps have been temporarily disabled while React is upgraded to Fiber."}catch(e){return'Failed to dump react tree: '+e}}},272,[]); +__d(function(e,n,t,c,r){'use strict';var u=[],i={name:'default'},f={setActiveScene:function(e){i=e,u.forEach(function(e){return e(i)})},getActiveScene:function(){return i},addActiveSceneChangedListener:function(e){return u.push(e),{remove:function(){u=u.filter(function(n){return e!==n})}}}};t.exports=f},273,[]); +__d(function(e,t,n,o,r){'use strict';var a=t(r[0]),l=t(r[1]),p=t(r[2]);t(r[3]),n.exports=function(e,n,o,s,c){p(o,'Expect to have a valid rootTag, instead got ',o);var d=l.createElement(a,{rootTag:o,WrapperComponent:s},l.createElement(e,babelHelpers.extends({},n,{rootTag:o})));if(null!=e.prototype&&!0===e.prototype.unstable_isAsyncReactComponent){var i=l.unstable_AsyncMode;d=l.createElement(i,null,d)}c?t(r[4]).render(d,o):t(r[5]).render(d,o)}},274,[234,25,2,275,276,95]); +__d(function(e,r,n,t,a){'use strict';var i=r(a[0]).DeviceEventManager,v=r(a[1]),o=new Set;v.addListener('hardwareBackPress',function(){for(var e=!0,r=Array.from(o.values()).reverse(),n=0;nthis.eventPool.length&&this.eventPool.push(e)}function G(e){e.eventPool=[],e.getPooled=X,e.release=$}babelHelpers.extends(V.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Y)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Y)},persist:function(){this.isPersistent=Y},isPersistent:Q,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t component."),n=st,st+=2,{node:p.createNode(n,"RCTRawText",t,{text:e},r)}}function dt(e){var t="";do{e:switch(e.tag){case 0:case 1:case 2:case 5:var n=e._debugOwner,r=e._debugSource,i=We(e),o=null;n&&(o=We(n)),n=r,i="\n in "+(i||"Unknown")+(n?" (at "+n.fileName.replace(/^.*[\\\/]/,"")+":"+n.lineNumber+")":o?" (created by "+o+")":"");break e;default:i=""}t+=i,e=e.return}while(e);return t}new Set;var pt=[],ht=-1;function mt(e){return{current:e}}function gt(e){0>ht||(e.current=pt[ht],pt[ht]=null,ht--)}function yt(e,t){pt[++ht]=e.current,e.current=t}var vt=mt(s),bt=mt(!1),Tt=s;function St(e){return Pt(e)?Tt:vt.current}function xt(e,t){var n=e.type.contextTypes;if(!n)return s;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pt(e){return 2===e.tag&&null!=e.type.childContextTypes}function Et(e){Pt(e)&&(gt(bt),gt(vt))}function kt(e){gt(bt),gt(vt)}function Ct(e,t,n){o(vt.current===s,"Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue."),yt(vt,t),yt(bt,n)}function _t(e,t){var n=e.stateNode,r=e.type.childContextTypes;if("function"!=typeof n.getChildContext)return t;for(var i in n=n.getChildContext())o(i in r,'%s.getChildContext(): key "%s" is not defined in childContextTypes.',We(e)||"Unknown",i);return babelHelpers.extends({},t,n)}function Rt(e){if(!Pt(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||s,Tt=vt.current,yt(vt,t),yt(bt,bt.current),!0}function wt(e,t){var n=e.stateNode;if(o(n,"Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue."),t){var r=_t(e,Tt);n.__reactInternalMemoizedMergedChildContext=r,gt(bt),gt(vt),yt(vt,r)}else gt(bt);yt(bt,t)}function Nt(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function Ut(e,t,n){var r=e.alternate;return null===r?((r=new Nt(e.tag,t,e.key,e.mode)).type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function At(e,t,n){var r=e.type,i=e.key;if(e=e.props,"function"==typeof r)var a=r.prototype&&r.prototype.isReactComponent?2:0;else if("string"==typeof r)a=5;else switch(r){case Ce:return It(e.children,t,n,i);case Ue:a=11,t|=3;break;case _e:a=11,t|=2;break;case Re:return(r=new Nt(15,e,i,4|t)).type=Re,r.expirationTime=n,r;case Ie:a=16,t|=2;break;default:e:{switch("object"==typeof r&&null!==r?r.$$typeof:null){case we:a=13;break e;case Ne:a=12;break e;case Ae:a=14;break e;default:o(!1,"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",null==r?r:typeof r,"")}a=void 0}}return(t=new Nt(a,e,i,t)).type=r,t.expirationTime=n,t}function It(e,t,n,r){return(e=new Nt(10,e,r,t)).expirationTime=n,e}function zt(e,t,n){return(e=new Nt(6,e,null,t)).expirationTime=n,e}function Mt(e,t,n){return(t=new Nt(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wt(e,t,n){return e={current:t=new Nt(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},t.stateNode=e}var Ot=null,Ft=null;function jt(e){return function(t){try{return e(t)}catch(e){}}}function Dt(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Ot=jt(function(e){return t.onCommitFiberRoot(n,e)}),Ft=jt(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function Ht(e){"function"==typeof Ot&&Ot(e)}function Bt(e){"function"==typeof Ft&&Ft(e)}function Lt(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n>t?e.earliestPendingTime=t:e.latestPendingTimen)&&(e.expirationTime=n)}function qt(e,t,n){var r=e.alternate;if(null===r){var i=e.updateQueue,o=null;null===i&&(i=e.updateQueue=Vt(e.memoizedState))}else i=e.updateQueue,o=r.updateQueue,null===i?null===o?(i=e.updateQueue=Vt(e.memoizedState),o=r.updateQueue=Vt(r.memoizedState)):i=e.updateQueue=Xt(o):null===o&&(o=r.updateQueue=Xt(i));null===o||i===o?Gt(i,t,n):null===i.lastUpdate||null===o.lastUpdate?(Gt(i,t,n),Gt(o,t,n)):(Gt(i,t,n),o.lastUpdate=t)}function Jt(e,t,n){var r=e.updateQueue;null===(r=null===r?e.updateQueue=Vt(e.memoizedState):Kt(e,r)).lastCapturedUpdate?r.firstCapturedUpdate=r.lastCapturedUpdate=t:(r.lastCapturedUpdate.next=t,r.lastCapturedUpdate=t),(0===r.expirationTime||r.expirationTime>n)&&(r.expirationTime=n)}function Kt(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Xt(t)),t}function Zt(e,t,n,r,i,o){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(o,r,i):e;case 3:e.effectTag=-1025&e.effectTag|64;case 0:if(null===(i="function"==typeof(e=n.payload)?e.call(o,r,i):e)||void 0===i)break;return babelHelpers.extends({},r,i);case 2:Qt=!0}return r}function en(e,t,n,r,i){if(Qt=!1,!(0===t.expirationTime||t.expirationTime>i)){for(var o=(t=Kt(e,t)).baseState,a=null,l=0,u=t.firstUpdate,s=o;null!==u;){var c=u.expirationTime;c>i?(null===a&&(a=u,o=s),(0===l||l>c)&&(l=c)):(s=Zt(e,0,u,s,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=u:(t.lastEffect.nextEffect=u,t.lastEffect=u))),u=u.next}for(c=null,u=t.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f>i?(null===c&&(c=u,null===a&&(o=s)),(0===l||l>f)&&(l=f)):(s=Zt(e,0,u,s,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=u:(t.lastCapturedEffect.nextEffect=u,t.lastCapturedEffect=u))),u=u.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(o=s),t.baseState=o,t.firstUpdate=a,t.firstCapturedUpdate=c,t.expirationTime=l,e.memoizedState=s}}function tn(e,t){o("function"==typeof e,"Invalid argument passed as callback. Expected a function. Instead received: %s",e),e.call(t)}function nn(e,t,n){for(null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),e=t.firstEffect,t.firstEffect=t.lastEffect=null;null!==e;){var r=e.callback;null!==r&&(e.callback=null,tn(r,n)),e=e.nextEffect}for(e=t.firstCapturedEffect,t.firstCapturedEffect=t.lastCapturedEffect=null;null!==e;)null!==(t=e.callback)&&(e.callback=null,tn(t,n)),e=e.nextEffect}function rn(e,t){return{value:e,source:t,stack:dt(t)}}var on=mt(null),an=mt(null),ln=mt(0);function un(e){var t=e.type._context;yt(ln,t._changedBits2),yt(an,t._currentValue2),yt(on,e),t._currentValue2=e.pendingProps.value,t._changedBits2=e.stateNode}function sn(e){var t=ln.current,n=an.current;gt(on),gt(an),gt(ln),(e=e.type._context)._currentValue2=n,e._changedBits2=t}var cn={},fn=mt(cn),dn=mt(cn),pn=mt(cn);function hn(e){return o(e!==cn,"Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function mn(e,t){yt(pn,t),yt(dn,e),yt(fn,cn),gt(fn),yt(fn,{isInAParentText:!1})}function gn(e){gt(fn),gt(dn),gt(pn)}function yn(e){dn.current===e&&(gt(fn),gt(dn))}var vn=Object.prototype.hasOwnProperty;function bn(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Tn(e,t){if(bn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;rm?(g=f,f=null):g=f.sibling;var y=p(i,f,l[m],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(i,f),o=a(y,o,m),null===c?s=y:c.sibling=y,c=y,f=g}if(m===l.length)return n(i,f),s;if(null===f){for(;mg?(y=m,m=null):y=m.sibling;var b=p(i,m,v.value,s);if(null===b){m||(m=y);break}e&&m&&null===b.alternate&&t(i,m),l=a(b,l,g),null===f?c=b:f.sibling=b,f=b,m=y}if(v.done)return n(i,m),c;if(null===m){for(;!v.done;g++,v=u.next())null!==(v=d(i,v.value,s))&&(l=a(v,l,g),null===f?c=v:f.sibling=v,f=v);return c}for(m=r(i,m);!v.done;g++,v=u.next())null!==(v=h(m,i,g,v.value,s))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),l=a(v,l,g),null===f?c=v:f.sibling=v,f=v);return e&&m.forEach(function(e){return t(i,e)}),c}return function(e,r,a,u){var s="object"==typeof a&&null!==a&&a.type===Ce&&null===a.key;s&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case Ee:e:{for(c=a.key,s=r;null!==s;){if(s.key===c){if(10===s.tag?a.type===Ce:s.type===a.type){n(e,s.sibling),(r=i(s,a.type===Ce?a.props.children:a.props,u)).ref=_n(e,s,a),r.return=e,e=r;break e}n(e,s);break}t(e,s),s=s.sibling}a.type===Ce?((r=It(a.props.children,e.mode,u,a.key)).return=e,e=r):((u=At(a,e.mode,u)).ref=_n(e,r,a),u.return=e,e=u)}return l(e);case ke:e:{for(s=a.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[],u)).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Mt(a,e.mode,u)).return=e,e=r}return l(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a,u)).return=e,e=r):(n(e,r),(r=zt(a,e.mode,u)).return=e,e=r),l(e);if(Cn(a))return m(e,r,a,u);if(Me(a))return g(e,r,a,u);if(c&&Rn(e,a),void 0===a&&!s)switch(e.tag){case 2:case 1:u=e.type,o(!1,"%s(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.",u.displayName||u.name||"Component")}return n(e,r)}}var Nn=wn(!0),Un=wn(!1),An=null,In=null,zn=!1;function Mn(e,t){switch(e.tag){case 5:return null!==(t=ut(e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=ut(e.pendingProps))&&(e.stateNode=t,!0);default:return!1}}function Wn(e){if(zn){var t=In;if(t){var n=t;if(!Mn(e,t)){if(!(t=ut())||!Mn(e,t))return e.effectTag|=2,zn=!1,void(An=e);var r=An,i=new Nt(5,null,null,0);i.type="DELETED",i.stateNode=n,i.return=r,i.effectTag=8,null!==r.lastEffect?(r.lastEffect.nextEffect=i,r.lastEffect=i):r.firstEffect=r.lastEffect=i}An=e,In=ut()}else e.effectTag|=2,zn=!1,An=e}}function On(e,t,n){Fn(e,t,n,t.expirationTime)}function Fn(e,t,n,r){t.child=null===e?Un(t,null,n,r):Nn(t,e.child,n,r)}function jn(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Dn(e,t,n,r,i){jn(e,t);var o=0!=(64&t.effectTag);if(!n&&!o)return r&&wt(t,!1),Yn(e,t);n=t.stateNode,xe.current=t;var a=o?null:n.render();return t.effectTag|=1,o&&(Fn(e,t,null,i),t.child=null),Fn(e,t,a,i),t.memoizedState=n.state,t.memoizedProps=n.props,r&&wt(t,!0),t.child}function Hn(e){var t=e.stateNode;t.pendingContext?Ct(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ct(0,t.context,!1),mn(e,t.containerInfo)}function Bn(e,t,n,r){var i=e.child;for(null!==i&&(i.return=e);null!==i;){switch(i.tag){case 12:var o=0|i.stateNode;if(i.type===t&&0!=(o&n)){for(o=i;null!==o;){var a=o.alternate;if(0===o.expirationTime||o.expirationTime>r)o.expirationTime=r,null!==a&&(0===a.expirationTime||a.expirationTime>r)&&(a.expirationTime=r);else{if(null===a||!(0===a.expirationTime||a.expirationTime>r))break;a.expirationTime=r}o=o.return}o=null}else o=i.child;break;case 13:o=i.type===e.type?null:i.child;break;default:o=i.child}if(null!==o)o.return=i;else for(o=i;null!==o;){if(o===e){o=null;break}if(null!==(i=o.sibling)){i.return=o.return,o=i;break}o=o.return}i=o}}function Ln(e,t,n){var r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=!0;if(bt.current)a=!1;else if(o===i)return t.stateNode=0,un(t),Yn(e,t);var l=i.value;if(t.memoizedProps=i,null===o)l=1073741823;else if(o.value===i.value){if(o.children===i.children&&a)return t.stateNode=0,un(t),Yn(e,t);l=0}else{var u=o.value;if(u===l&&(0!==u||1/u==1/l)||u!=u&&l!=l){if(o.children===i.children&&a)return t.stateNode=0,un(t),Yn(e,t);l=0}else if(l="function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,l):1073741823,0===(l|=0)){if(o.children===i.children&&a)return t.stateNode=0,un(t),Yn(e,t)}else Bn(t,r,l,n)}return t.stateNode=l,un(t),On(e,t,i.children),t.child}function Yn(e,t){if(o(null===e||t.child===e.child,"Resuming work not yet implemented."),null!==t.child){var n=Ut(e=t.child,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ut(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Qn(e,t,n){if(0===t.expirationTime||t.expirationTime>n){switch(t.tag){case 3:Hn(t);break;case 2:Rt(t);break;case 4:mn(t,t.stateNode.containerInfo);break;case 13:un(t)}return null}switch(t.tag){case 0:o(null===e,"An indeterminate component should never have mounted. This error is likely caused by a bug in React. Please file an issue.");var r=t.type,i=t.pendingProps,a=St(t);return r=r(i,a=xt(t,a)),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof?(a=t.type,t.tag=2,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,"function"==typeof(a=a.getDerivedStateFromProps)&&Sn(t,a,i),i=Rt(t),r.updater=xn,t.stateNode=r,r._reactInternalFiber=t,kn(t,n),e=Dn(e,t,!0,i,n)):(t.tag=1,On(e,t,r),t.memoizedProps=i,e=t.child),e;case 1:return i=t.type,n=t.pendingProps,bt.current||t.memoizedProps!==n?(i=i(n,r=xt(t,r=St(t))),t.effectTag|=1,On(e,t,i),t.memoizedProps=n,e=t.child):e=Yn(e,t),e;case 2:if(i=Rt(t),null===e)if(null===t.stateNode){var l=t.pendingProps,u=t.type;r=St(t);var c=2===t.tag&&null!=t.type.contextTypes;l=new u(l,a=c?xt(t,r):s),t.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,l.updater=xn,t.stateNode=l,l._reactInternalFiber=t,c&&((c=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,c.__reactInternalMemoizedMaskedChildContext=a),kn(t,n),r=!0}else{u=t.type,r=t.stateNode,c=t.memoizedProps,a=t.pendingProps,r.props=c;var f=r.context;l=xt(t,l=St(t));var d=u.getDerivedStateFromProps;(u="function"==typeof d||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(c!==a||f!==l)&&En(t,r,a,l),Qt=!1;var p=t.memoizedState;f=r.state=p;var h=t.updateQueue;null!==h&&(en(t,h,a,r,n),f=t.memoizedState),c!==a||p!==f||bt.current||Qt?("function"==typeof d&&(Sn(t,d,a),f=t.memoizedState),(c=Qt||Pn(t,c,a,p,f,l))?(u||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||("function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount()),"function"==typeof r.componentDidMount&&(t.effectTag|=4)):("function"==typeof r.componentDidMount&&(t.effectTag|=4),t.memoizedProps=a,t.memoizedState=f),r.props=a,r.state=f,r.context=l,r=c):("function"==typeof r.componentDidMount&&(t.effectTag|=4),r=!1)}else u=t.type,r=t.stateNode,a=t.memoizedProps,c=t.pendingProps,r.props=a,f=r.context,l=xt(t,l=St(t)),(u="function"==typeof(d=u.getDerivedStateFromProps)||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(a!==c||f!==l)&&En(t,r,c,l),Qt=!1,f=t.memoizedState,p=r.state=f,null!==(h=t.updateQueue)&&(en(t,h,c,r,n),p=t.memoizedState),a!==c||f!==p||bt.current||Qt?("function"==typeof d&&(Sn(t,d,c),p=t.memoizedState),(d=Qt||Pn(t,a,c,f,p,l))?(u||"function"!=typeof r.UNSAFE_componentWillUpdate&&"function"!=typeof r.componentWillUpdate||("function"==typeof r.componentWillUpdate&&r.componentWillUpdate(c,p,l),"function"==typeof r.UNSAFE_componentWillUpdate&&r.UNSAFE_componentWillUpdate(c,p,l)),"function"==typeof r.componentDidUpdate&&(t.effectTag|=4),"function"==typeof r.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof r.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.effectTag|=256),t.memoizedProps=c,t.memoizedState=p),r.props=c,r.state=p,r.context=l,r=d):("function"!=typeof r.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.effectTag|=256),r=!1);return Dn(e,t,r,i,n);case 3:return Hn(t),null!==(i=t.updateQueue)?(r=null!==(r=t.memoizedState)?r.element:null,en(t,i,t.pendingProps,null,n),(n=t.memoizedState.element)===r?e=Yn(e,t):(On(e,t,n),e=t.child)):e=Yn(e,t),e;case 5:return hn(pn.current),n=hn(fn.current),i="AndroidTextInput"===(i=t.type)||"RCTMultilineTextInputView"===i||"RCTSinglelineTextInputView"===i||"RCTText"===i||"RCTVirtualText"===i,n!==(i=n.isInAParentText!==i?{isInAParentText:i}:n)&&(yt(dn,t),yt(fn,i)),null===e&&Wn(t),i=t.memoizedProps,n=t.pendingProps,bt.current||i!==n?(i=n.children,jn(e,t),On(e,t,i),t.memoizedProps=n,e=t.child):e=Yn(e,t),e;case 6:return null===e&&Wn(t),t.memoizedProps=t.pendingProps,null;case 16:return null;case 4:return mn(t,t.stateNode.containerInfo),i=t.pendingProps,bt.current||t.memoizedProps!==i?(null===e?t.child=Nn(t,null,i,n):On(e,t,i),t.memoizedProps=i,e=t.child):e=Yn(e,t),e;case 14:return i=t.type.render,n=t.pendingProps,r=t.ref,bt.current||t.memoizedProps!==n||r!==(null!==e?e.ref:null)?(On(e,t,i=i(n,r)),t.memoizedProps=n,e=t.child):e=Yn(e,t),e;case 10:return n=t.pendingProps,bt.current||t.memoizedProps!==n?(On(e,t,n),t.memoizedProps=n,e=t.child):e=Yn(e,t),e;case 11:return n=t.pendingProps.children,bt.current||null!==n&&t.memoizedProps!==n?(On(e,t,n),t.memoizedProps=n,e=t.child):e=Yn(e,t),e;case 15:return n=t.pendingProps,t.memoizedProps===n?e=Yn(e,t):(On(e,t,n.children),t.memoizedProps=n,e=t.child),e;case 13:return Ln(e,t,n);case 12:e:if(r=t.type,a=t.pendingProps,c=t.memoizedProps,i=r._currentValue2,l=r._changedBits2,bt.current||0!==l||c!==a){if(t.memoizedProps=a,void 0!==(u=a.unstable_observedBits)&&null!==u||(u=1073741823),t.stateNode=u,0!=(l&u))Bn(t,r,l,n);else if(c===a){e=Yn(e,t);break e}n=(n=a.children)(i),t.effectTag|=1,On(e,t,n),e=t.child}else e=Yn(e,t);return e;default:o(!1,"Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.")}}function Vn(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)p.appendChild(e.node,n.stateNode.node);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}var Xn=void 0,$n=void 0,Gn=void 0;function qn(e,t){var n=t.pendingProps;switch(t.tag){case 1:return null;case 2:return Et(t),null;case 3:return gn(),kt(),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(t.effectTag&=-3),Xn(t),null;case 5:yn(t);var r=hn(pn.current),i=t.type;if(null!==e&&null!=t.stateNode){var l=e.memoizedProps,u=t.stateNode,s=hn(fn.current),c=Ge(null,l,n,u.canonical.viewConfig.validAttributes);u.canonical.currentProps=n,$n(e,t,c,i,l,n,r,s),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!n)return o(null!==t.stateNode,"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."),null;u=hn(fn.current),e=st,st+=2,l=a.get(i),o("RCTView"!==i||!u.isInAParentText,"Nesting of within is not currently supported."),i=Ge(null,Be,n,l.validAttributes),Vn(n={node:r=p.createNode(e,l.uiViewClassName,r,i,t),canonical:n=new ct(e,l,n)},t),t.stateNode=n,null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Gn(e,t,e.memoizedProps,n);else{if("string"!=typeof n)return o(null!==t.stateNode,"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."),null;r=hn(pn.current),i=hn(fn.current),t.stateNode=ft(n,r,i,t)}return null;case 14:case 16:case 10:case 11:case 15:return null;case 4:return gn(),Xn(t),null;case 13:return sn(t),null;case 12:return null;case 0:o(!1,"An indeterminate component should have become determinate before completing. This error is likely caused by a bug in React. Please file an issue.");default:o(!1,"Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.")}}function Jn(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=dt(n)),null!==n&&We(n),n=null!==r?r:"",t=t.value,null!==e&&2===e.tag&&We(e);try{if(t instanceof Error){var i=t.message,o=t.name,a=t;try{a.message=(i?o+": "+i:o)+"\n\nThis error is located at:"+n}catch(e){}}else a="string"==typeof t?Error(t+"\n\nThis error is located at:"+n):Error("Unspecified error at:"+n);h.handleException(a,!1)}catch(e){e&&e.suppressReactErrorLogging||console.error(e)}}function Kn(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){br(e,t)}else t.current=null}function Zn(e,t){switch(t.tag){case 2:case 5:case 6:break;case 3:case 4:break;default:o(!1,"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}function er(e,t,n){(n=$t(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Kr(r),Jn(e,t)},n}function tr(e,t,n){(n=$t(n)).tag=3;var r=e.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){null===hr?hr=new Set([this]):hr.add(this);var n=t.value,r=t.stack;Jn(e,t),this.componentDidCatch(n,{componentStack:null!==r?r:""})}),n}function nr(e){switch(e.tag){case 2:Et(e);var t=e.effectTag;return 1024&t?(e.effectTag=-1025&t|64,e):null;case 3:return gn(),kt(),1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 5:return yn(e),null;case 16:return 1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 4:return gn(),null;case 13:return sn(e),null;default:return null}}Xn=function(e){var t=e.stateNode;if(null!==e.firstEffect){var n=t.containerInfo,r=p.createChildSet(n);e:for(var i=e.child;null!==i;){if(5===i.tag||6===i.tag)p.appendChildToSet(r,i.stateNode.node);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break e;for(;null===i.sibling;){if(null===i.return||i.return===e)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.pendingChildren=r,e.effectTag|=4,p.completeRoot(n,r)}},$n=function(e,t,n){var r=null===t.firstEffect;if(e=e.stateNode,r&&null===n)t.stateNode=e;else{var i=e.node;n={node:r?null!==n?p.cloneNodeWithNewProps(i,n,t):p.cloneNode(i,t):null!==n?p.cloneNodeWithNewChildrenAndProps(i,n,t):p.cloneNodeWithNewChildren(i,t),canonical:e.canonical},t.stateNode=n,r?t.effectTag|=4:Vn(n,t)}},Gn=function(e,t,n,r){n!==r&&(e=hn(pn.current),n=hn(fn.current),t.stateNode=ft(r,e,n,t),t.effectTag|=4)};var rr=qe(),ir=rr,or=0,ar=!1,lr=null,ur=null,sr=0,cr=-1,fr=!1,dr=null,pr=!1,hr=null;function mr(){if(null!==lr)for(var e=lr.return;null!==e;){var t=e;switch(t.tag){case 2:Et(t);break;case 3:gn(),kt();break;case 5:yn(t);break;case 4:gn();break;case 13:sn(t)}e=e.return}ur=null,sr=0,cr=-1,fr=!1,lr=null}function gr(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(512&e.effectTag)){t=qn(t,e);var i=e;if(1073741823===sr||1073741823!==i.expirationTime){var o=0;switch(i.tag){case 3:case 2:var a=i.updateQueue;null!==a&&(o=a.expirationTime)}for(a=i.child;null!==a;)0!==a.expirationTime&&(0===o||o>a.expirationTime)&&(o=a.expirationTime),a=a.sibling;i.expirationTime=o}if(null!==t)return t;null!==n&&0==(512&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1n?e.earliestSuspendedTime=n:rNr)&&(Nr=e),e}function Sr(e,t){for(;null!==e;){if((0===e.expirationTime||e.expirationTime>t)&&(e.expirationTime=t),null!==e.alternate&&(0===e.alternate.expirationTime||e.alternate.expirationTime>t)&&(e.alternate.expirationTime=t),null===e.return){if(3!==e.tag)break;var n=e.stateNode;!ar&&0!==sr&&tjr&&o(!1,"Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.")}e=e.return}}function xr(){return ir=qe()-rr,2+(ir/10|0)}var Pr=null,Er=null,kr=0,Cr=void 0,_r=!1,Rr=null,wr=0,Nr=0,Ur=!1,Ar=!1,Ir=null,zr=null,Mr=!1,Wr=!1,Or=!1,Fr=null,jr=1e3,Dr=0,Hr=1;function Br(e){if(0!==kr){if(e>kr)return;if(null!==Cr)Je=null,clearTimeout(Cr)}kr=e,qe(),Je=Vr,Cr=setTimeout(et,1)}function Lr(e,t,n,r){0<=r&&setTimeout(function(){var n=e.latestSuspendedTime;0!==n&&n<=t&&(0===(n=e.latestPingedTime)||n=wr)&&(!Ur||xr()>=wr);)xr(),Gr(Rr,wr,!0),Qr();else for(;null!==Rr&&0!==wr&&(0===e||e>=wr);)Gr(Rr,wr,!1),Qr();null!==zr&&(kr=0,Cr=null),0!==wr&&Br(wr),zr=null,Ur=!1,$r()}function $r(){if(Dr=0,null!==Fr){var e=Fr;Fr=null;for(var t=0;te.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,Lt(e,r)):rHr)&&(Ur=!0)}function Kr(e){o(null!==Rr,"Should be working on a root. This error is likely caused by a bug in React. Please file an issue."),Rr.expirationTime=0,Ar||(Ar=!0,Ir=e)}function Zr(e,t,n,r,i){var a=t.current;if(n){var l;n=n._reactInternalFiber;e:{for(o(2===Oe(n)&&2===n.tag,"Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."),l=n;3!==l.tag;){if(Pt(l)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}l=l.return,o(l,"Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}l=l.stateNode.context}n=Pt(n)?_t(n,l):l}else n=s;return null===t.context?t.context=n:t.pendingContext=n,t=i,(i=$t(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(i.callback=t),qt(a,i,r),Sr(a,r),r}function ei(e){var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?o(!1,"Unable to find node on an unmounted component."):o(!1,"Argument appears to not be a ReactComponent. Keys: %s",Object.keys(e))),null===(e=De(t))?null:e.stateNode}function ti(e,t,n,r){var i=t.current;return Zr(e,t,n,i=Tr(xr(),i),r)}function ni(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:return e.child.stateNode.canonical;default:return e.child.stateNode}}function ri(e){var t=e.findFiberByHostInstance;return Dt(babelHelpers.extends({},e,{findHostInstanceByFiber:function(e){return null===(e=De(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}function ii(e,t,n){var r=3=0&&(o='video'),i.saveToCameraRoll(e,o)}},{key:"getPhotos",value:function(e){if(arguments.length>1){console.warn('CameraRoll.getPhotos(tag, success, error) is deprecated. Use the returned Promise instead');var r=arguments[1],o=arguments[2]||function(){};i.getPhotos(e).then(r,o)}return i.getPhotos(e)}}]),e})());m.GroupTypesOptions=u,m.AssetTypeOptions=d,o.exports=m},282,[43,4,76,2]); +__d(function(t,n,r,i,e){'use strict';var g=n(e[0]).Clipboard;r.exports={getString:function(){return g.getString()},setString:function(t){g.setString(t)}}},283,[4]); +__d(function(e,t,n,r,i){'use strict';var c=t(i[0]).DatePickerAndroid;function o(e,t){var n=e[t];'object'==typeof n&&'function'==typeof n.getMonth&&(e[t]=n.getTime())}var a=(function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"open",value:function(e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return e&&(o(e,'date'),o(e,'minDate'),o(e,'maxDate')),t.abrupt("return",c.open(e));case 3:case"end":return t.stop()}},null,this)}},{key:"dateSetAction",get:function(){return'dateSetAction'}},{key:"dismissedAction",get:function(){return'dismissedAction'}}]),e})();n.exports=a},284,[4]); +__d(function(e,o,a,n,r){'use strict';var c=o(r[0]).ImagePickerIOS,t={canRecordVideos:function(e){return c.canRecordVideos(e)},canUseCamera:function(e){return c.canUseCamera(e)},openCameraDialog:function(e,o,a){return e=babelHelpers.objectSpread({videoMode:!1},e),c.openCameraDialog(e,o,a)},openSelectDialog:function(e,o,a){return e=babelHelpers.objectSpread({showImages:!0,showVideos:!1},e),c.openSelectDialog(e,o,a)}};a.exports=t},285,[4]); +__d(function(e,t,n,i,a){'use strict';var r=t(a[0]),l=t(a[1]),s=(t(a[2]),t(a[3])),u=l.IntentAndroid,o=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,u))}return babelHelpers.createClass(t,[{key:"addEventListener",value:function(e,t){this.addListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.removeListener(e,t)}},{key:"openURL",value:function(e){return this._validateURL(e),u.openURL(e)}},{key:"canOpenURL",value:function(e){return this._validateURL(e),u.canOpenURL(e)}},{key:"getInitialURL",value:function(){return u.getInitialURL()}},{key:"_validateURL",value:function(e){s('string'==typeof e,'Invalid URL: should be a string. Was: '+e),s(e,'Invalid URL: cannot be empty')}}]),babelHelpers.inherits(t,e),t})(r);n.exports=new o},286,[124,4,12,2]); +__d(function(e,n,t,o,r){'use strict';var i,c=n(r[0]),f=n(r[1]),u=n(r[2]),s=(n(r[3]),u.NetInfo),v=new f(s),a=new c;function d(e){return'none'!==e.type&&'unknown'!==e.type}i=function(e){return'NONE'!==e&&'UNKNOWN'!==e};var C=new c,g={addEventListener:function(e,n){var t;if('connectionChange'===e)t=v.addListener("networkStatusDidChange",function(e){n({type:e.connectionType,effectiveType:e.effectiveConnectionType})});else{if('change'!==e)return console.warn('Trying to subscribe to unknown event: "'+e+'"'),{remove:function(){}};console.warn('NetInfo\'s "change" event is deprecated. Listen to the "connectionChange" event instead.'),t=v.addListener("networkStatusDidChange",function(e){n(e.network_info)})}return a.set(n,t),{remove:function(){return g.removeEventListener(e,n)}}},removeEventListener:function(e,n){var t=a.get(n);t&&(t.remove(),a.delete(n))},fetch:function(){return console.warn('NetInfo.fetch() is deprecated. Use NetInfo.getConnectionInfo() instead.'),s.getCurrentConnectivity().then(function(e){return e.network_info})},getConnectionInfo:function(){return s.getCurrentConnectivity().then(function(e){return{type:e.connectionType,effectiveType:e.effectiveConnectionType}})},isConnected:{addEventListener:function(e,n){var t=function(t){'change'===e?n(i(t)):'connectionChange'===e&&n(d(t))};return C.set(n,t),g.addEventListener(e,t),{remove:function(){return g.isConnected.removeEventListener(e,n)}}},removeEventListener:function(e,n){var t=C.get(n);g.removeEventListener(e,t),C.delete(n)},fetch:function(){return g.getConnectionInfo().then(d)}},isConnectionExpensive:function(){return s.isConnectionMetered()}};t.exports=g},287,[100,124,4,12]); +__d(function(e,t,i,o,n){'use strict';var a=t(n[0]),c=t(n[1]).PushNotificationManager,r=t(n[2]),l=new a(c),s=new Map,u=(function(){function e(t){var i=this;babelHelpers.classCallCheck(this,e),this._data={},this._remoteNotificationCompleteCallbackCalled=!1,this._isRemote=t.remote,this._isRemote&&(this._notificationId=t.notificationId),t.remote?Object.keys(t).forEach(function(e){var o=t[e];'aps'===e?(i._alert=o.alert,i._sound=o.sound,i._badgeCount=o.badge,i._category=o.category,i._contentAvailable=o['content-available'],i._threadID=o['thread-id']):i._data[e]=o}):(this._badgeCount=t.applicationIconBadgeNumber,this._sound=t.soundName,this._alert=t.alertBody,this._data=t.userInfo,this._category=t.category)}return babelHelpers.createClass(e,null,[{key:"presentLocalNotification",value:function(e){c.presentLocalNotification(e)}},{key:"scheduleLocalNotification",value:function(e){c.scheduleLocalNotification(e)}},{key:"cancelAllLocalNotifications",value:function(){c.cancelAllLocalNotifications()}},{key:"removeAllDeliveredNotifications",value:function(){c.removeAllDeliveredNotifications()}},{key:"getDeliveredNotifications",value:function(e){c.getDeliveredNotifications(e)}},{key:"removeDeliveredNotifications",value:function(e){c.removeDeliveredNotifications(e)}},{key:"setApplicationIconBadgeNumber",value:function(e){c.setApplicationIconBadgeNumber(e)}},{key:"getApplicationIconBadgeNumber",value:function(e){c.getApplicationIconBadgeNumber(e)}},{key:"cancelLocalNotifications",value:function(e){c.cancelLocalNotifications(e)}},{key:"getScheduledLocalNotifications",value:function(e){c.getScheduledLocalNotifications(e)}},{key:"addEventListener",value:function(t,i){var o;r('notification'===t||'register'===t||'registrationError'===t||'localNotification'===t,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'),'notification'===t?o=l.addListener("remoteNotificationReceived",function(t){i(new e(t))}):'localNotification'===t?o=l.addListener("localNotificationReceived",function(t){i(new e(t))}):'register'===t?o=l.addListener("remoteNotificationsRegistered",function(e){i(e.deviceToken)}):'registrationError'===t&&(o=l.addListener("remoteNotificationRegistrationError",function(e){i(e)})),s.set(t,o)}},{key:"removeEventListener",value:function(e,t){r('notification'===e||'register'===e||'registrationError'===e||'localNotification'===e,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events');var i=s.get(e);i&&(i.remove(),s.delete(e))}},{key:"requestPermissions",value:function(e){var t={};return t=e?{alert:!!e.alert,badge:!!e.badge,sound:!!e.sound}:{alert:!0,badge:!0,sound:!0},c.requestPermissions(t)}},{key:"abandonPermissions",value:function(){c.abandonPermissions()}},{key:"checkPermissions",value:function(e){r('function'==typeof e,'Must provide a valid callback'),c.checkPermissions(e)}},{key:"getInitialNotification",value:function(){return c.getInitialNotification().then(function(t){return t&&new e(t)})}}]),babelHelpers.createClass(e,[{key:"finish",value:function(e){this._isRemote&&this._notificationId&&!this._remoteNotificationCompleteCallbackCalled&&(this._remoteNotificationCompleteCallbackCalled=!0,c.onFinishRemoteNotification(this._notificationId,e))}},{key:"getMessage",value:function(){return this._alert}},{key:"getSound",value:function(){return this._sound}},{key:"getCategory",value:function(){return this._category}},{key:"getAlert",value:function(){return this._alert}},{key:"getContentAvailable",value:function(){return this._contentAvailable}},{key:"getBadgeCount",value:function(){return this._badgeCount}},{key:"getData",value:function(){return this._data}},{key:"getThreadID",value:function(){return this._threadID}}]),e})();u.FetchResult={NewData:'UIBackgroundFetchResultNewData',NoData:'UIBackgroundFetchResultNoData',ResultFailed:'UIBackgroundFetchResultFailed'},i.exports=u},288,[124,4,2]); +__d(function(n,t,o,e,s){'use strict';var r={get:function(n){return console.warn('Settings is not yet supported on Android'),null},set:function(n){console.warn('Settings is not yet supported on Android')},watchKeys:function(n,t){return console.warn('Settings is not yet supported on Android'),-1},clearWatch:function(n){console.warn('Settings is not yet supported on Android')}};o.exports=r},289,[]); +__d(function(e,t,n,s,i){'use strict';t(i[0]);var o=t(i[1]),l=(t(i[2]),t(i[3])),r=(l.ActionSheetManager,l.ShareModule),a=(function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"share",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o('object'==typeof e&&null!==e,'Content to share must be a valid object'),o('string'==typeof e.url||'string'==typeof e.message,'At least one of URL and message is required'),o('object'==typeof t&&null!==t,'Options must be a valid object'),o(!e.title||'string'==typeof e.title,'Invalid title: title should be a string.'),r.share(e,t.dialogTitle)}},{key:"sharedAction",get:function(){return'sharedAction'}},{key:"dismissedAction",get:function(){return'dismissedAction'}}]),e})();n.exports=a},290,[12,2,52,4]); +__d(function(t,a,r,e,n){'use strict';var s=a(n[0]);r.exports=new s('StatusBarManager')},291,[124]); +__d(function(e,t,n,r,i){'use strict';var s=t(i[0]).TimePickerAndroid,c=(function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"open",value:function(e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s.open(e));case 1:case"end":return t.stop()}},null,this)}},{key:"timeSetAction",get:function(){return'timeSetAction'}},{key:"dismissedAction",get:function(){return'dismissedAction'}}]),e})();n.exports=c},292,[4]); +__d(function(r,t,e,a,n){'use strict';var i=t(n[0]).Vibration;t(n[1]);var o={vibrate:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:400,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if('number'==typeof r)i.vibrate(r);else{if(!Array.isArray(r))throw new Error('Vibration pattern should be a number or array');i.vibrateByPattern(r,t?0:-1)}},cancel:function(){i.cancel()}};e.exports=o},293,[4,12]); +__d(function(t,i,o,n,r){'use strict';var s=i(r[0]),a={vibrate:function(){s('VibrationIOS is not supported on this platform!')}};o.exports=a},294,[16]); +__d(function(e,n,t,l,r){'use strict';var s;s=(function(e){function n(){return babelHelpers.classCallCheck(this,n),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(n).apply(this,arguments))}return babelHelpers.createClass(n,[{key:"render",value:function(){return null}}],[{key:"ignoreWarnings",value:function(e){}},{key:"install",value:function(){}},{key:"uninstall",value:function(){}}]),babelHelpers.inherits(n,e),n})(n(r[0]).Component),t.exports=s},295,[25]); +__d(function(n,o,e,t,d){var i=o(d[0]),r=o(d[1]);e.exports=function(n,o){return'number'!=typeof n&&'window'!==n&&(n=i.findNodeHandle(n)||'window'),r.__takeSnapshot(n,o)}},296,[95,49]); +__d(function(e,t,l,r,a){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=babelHelpers.interopRequireWildcard(t(a[0])),u=t(a[1]),i=babelHelpers.interopRequireDefault(t(a[2])),s=babelHelpers.interopRequireDefault(t(a[3])),o=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.createClass(t,[{key:"render",value:function(){return n.default.createElement(u.View,{style:b.container},n.default.createElement(i.default,{barStyle:"light-content"}),n.default.createElement(s.default,null))}}]),babelHelpers.inherits(t,e),t})(n.Component),b=u.StyleSheet.create({container:{flex:1}}),c=o;r.default=c},297,[26,1,298,300]); +__d(function(e,t,r,l,a){Object.defineProperty(l,"__esModule",{value:!0}),l.default=l.STATUS_BAR_HEIGHT=void 0;var o=babelHelpers.interopRequireWildcard(t(a[0])),s=t(a[1]),n=babelHelpers.interopRequireDefault(t(a[2])),u=t(a[3]),p=u.IS_IOS?u.IS_IPHONEX?44:20:s.StatusBar.currentHeight||0;l.STATUS_BAR_HEIGHT=p;var i=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.createClass(t,[{key:"render",value:function(){return o.default.createElement(s.View,{style:[b.statusBar,{backgroundColor:this.props.backgroundColor}]},o.default.createElement(s.StatusBar,babelHelpers.extends({translucent:!0,backgroundColor:this.props.backgroundColor},this.props)))}}]),babelHelpers.inherits(t,e),t})(o.Component);i.propTypes={backgroundColor:n.default.string},i.defaultProps={backgroundColor:'#000'};var b=s.StyleSheet.create({statusBar:{position:'absolute',top:0,left:0,zIndex:100,width:'100%',height:p}}),d=i;l.default=d},298,[26,1,43,299]); +__d(function(I,_,e,O,i){Object.defineProperty(O,"__esModule",{value:!0}),O.PIXEL_RATIO=O.IS_IPHONEX=O.WINDOW_HEIGHT=O.WINDOW_WIDTH=O.IS_IOS=void 0;var W=_(i[0]);O.IS_IOS=!1;var t=W.Dimensions.get('window'),H=t.width,o=t.height;O.WINDOW_HEIGHT=o,O.WINDOW_WIDTH=H;O.IS_IPHONEX=!1;var D=W.PixelRatio.get();O.PIXEL_RATIO=D},299,[1]); +__d(function(e,t,a,r,l){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=babelHelpers.interopRequireWildcard(t(l[0])),o=t(l[1]),i=babelHelpers.interopRequireDefault(t(l[2])),u=babelHelpers.interopRequireDefault(t(l[3])),b=babelHelpers.interopRequireDefault(t(l[4])),s=babelHelpers.interopRequireDefault(t(l[5])),c=babelHelpers.interopRequireDefault(t(l[6])),p=babelHelpers.interopRequireDefault(t(l[7])),f=(0,o.createBottomTabNavigator)({Home:{screen:u.default,navigationOptions:{tabBarLabel:'Home',tabBarIcon:function(e){var t=e.tintColor;return n.default.createElement(i.default,{name:'home-outline',size:26,style:{color:t}})}}},WebView:{screen:b.default,navigationOptions:{tabBarLabel:'WebView',tabBarIcon:function(e){var t=e.tintColor;return n.default.createElement(i.default,{name:'web',size:26,style:{color:t}})}}},Login:{screen:c.default,navigationOptions:{tabBarLabel:'Login',tabBarIcon:function(e){var t=e.tintColor;return n.default.createElement(i.default,{name:'login',size:26,style:{color:t}})}}},Forms:{screen:s.default,navigationOptions:{tabBarLabel:'Forms',tabBarIcon:function(e){var t=e.tintColor;return n.default.createElement(i.default,{name:'pencil',size:26,style:{color:t}})}}},Swipe:{screen:p.default,navigationOptions:{tabBarLabel:'Swipe',tabBarIcon:function(e){var t=e.tintColor;return n.default.createElement(i.default,{name:'arrow-split-vertical',size:26,style:{color:t}})}}}},{swipeEnabled:!0,tabBarOptions:{activeTintColor:'#ea5906',inactiveTintColor:'rgba(255, 255, 255, 0.8)',labelStyle:{fontSize:14,fontWeight:'100'},style:{backgroundColor:'#000',borderTopWidth:5,borderTopColor:'#ea5906',paddingTop:5,height:60},tabStyle:{width:100}}}),d=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.createClass(t,[{key:"render",value:function(){return n.default.createElement(f,null)}}]),babelHelpers.inherits(t,e),t})(n.Component);r.default=d},300,[26,301,420,585,588,590,670,672]); +__d(function(e,t,a,r,i){a.exports={get createNavigationContainer(){return t(i[0]).default},get StateUtils(){return t(i[1]).default},get getNavigation(){return t(i[2]).default},get createNavigator(){return t(i[3]).default},get createKeyboardAwareNavigator(){return t(i[4]).default},get NavigationProvider(){return t(i[5]).default.NavigationProvider},get NavigationConsumer(){return t(i[5]).default.NavigationConsumer},get createStackNavigator(){return t(i[6]).createStackNavigator},get StackNavigator(){return console.warn('The StackNavigator function name is deprecated, please use createStackNavigator instead'),t(i[6]).createStackNavigator},get createSwitchNavigator(){return t(i[7]).default},get SwitchNavigator(){return console.warn('The SwitchNavigator function name is deprecated, please use createSwitchNavigator instead'),t(i[7]).default},get createDrawerNavigator(){return t(i[8]).createDrawerNavigator},get DrawerNavigator(){return console.warn('The DrawerNavigator function name is deprecated, please use createDrawerNavigator instead'),t(i[8]).createDrawerNavigator},get createTabNavigator(){return console.warn('createTabNavigator is deprecated. Please use the createBottomTabNavigator or createMaterialTopTabNavigator instead.'),t(i[9]).createTabNavigator},get TabNavigator(){return console.warn('TabNavigator is deprecated. Please use the createBottomTabNavigator or createMaterialTopTabNavigator instead.'),t(i[9]).createTabNavigator},get createBottomTabNavigator(){return t(i[10]).createBottomTabNavigator},get createMaterialTopTabNavigator(){return t(i[10]).createMaterialTopTabNavigator},get NavigationActions(){return t(i[11]).default},get StackActions(){return t(i[12]).default},get DrawerActions(){return t(i[8]).DrawerActions},get StackRouter(){return t(i[13]).default},get TabRouter(){return t(i[14]).default},get DrawerRouter(){return t(i[8]).DrawerRouter},get SwitchRouter(){return t(i[15]).default},get createConfigGetter(){return t(i[16]).default},get getScreenForRouteName(){return t(i[17]).default},get validateRouteConfigMap(){return t(i[18]).default},get pathUtils(){return t(i[19]).default},get Transitioner(){return t(i[6]).Transitioner},get StackView(){return t(i[6]).StackView},get StackViewCard(){return t(i[6]).StackViewCard},get StackViewTransitionConfigs(){return t(i[6]).StackViewTransitionConfigs},get SafeAreaView(){return t(i[20]).default},get SceneView(){return t(i[21]).default},get ResourceSavingSceneView(){return t(i[22]).default},get Header(){return t(i[6]).Header},get HeaderTitle(){return t(i[6]).HeaderTitle},get HeaderBackButton(){return t(i[6]).HeaderBackButton},get HeaderStyleInterpolator(){return t(i[6]).HeaderStyleInterpolator},get DrawerView(){return t(i[8]).DrawerView},get DrawerItems(){return t(i[8]).DrawerNavigatorItems},get DrawerSidebar(){return t(i[8]).DrawerSidebar},get TabView(){return console.warn('TabView is deprecated. Please use the react-navigation-tabs package instead: https://github.com/react-navigation/react-navigation-tabs'),t(i[9]).TabView},get TabBarTop(){return console.warn('TabBarTop is deprecated. Please use the react-navigation-tabs package instead: https://github.com/react-navigation/react-navigation-tabs'),t(i[9]).TabBarTop},get TabBarBottom(){return console.warn('TabBarBottom is deprecated. Please use the react-navigation-tabs package instead: https://github.com/react-navigation/react-navigation-tabs'),t(i[9]).TabBarBottom},get SwitchView(){return t(i[23]).default},get NavigationEvents(){return t(i[24]).default},get withNavigation(){return t(i[25]).default},get withNavigationFocus(){return t(i[26]).default},get withOrientation(){return t(i[27]).default}}},301,[302,318,305,319,320,321,326,351,361,371,387,304,357,408,410,353,355,354,358,312,412,360,415,359,416,417,418,419]); +__d(function(t,e,n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a._TESTING_ONLY_reset_container_count=function(){0},a.default=function(t){var e=(function(e){function n(e){var a;return babelHelpers.classCallCheck(this,n),(a=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(n).call(this,e))).subs=null,a._actionEventSubscribers=new Set,a._handleOpenURL=function(e){var n=e.url,i=a.props,r=i.enableURLHandling,o=i.uriPrefix;if(!1!==r){var s=(0,p.urlToPathAndParams)(n,o);if(s){var u=s.path,l=s.params,c=t.router.getActionForPathAndParams(u,l);c&&a.dispatch(c)}}},a._persistNavigationState=function(t){var e;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(e=a.props.persistenceKey){n.next=3;break}return n.abrupt("return");case 3:return n.next=5,regeneratorRuntime.awrap(o.AsyncStorage.setItem(e,JSON.stringify(t)));case 5:case"end":return n.stop()}},null,this)},a.dispatch=function(e){if(a.props.navigation)return a.props.navigation.dispatch(e);a._navState=a._navState||a.state.nav;var n=a._navState;(0,c.default)(n,'should be set in constructor if stateful');var i=t.router.getStateForAction(e,n),r=null===i?n:i,o=function(){a._actionEventSubscribers.forEach(function(t){return t({type:'action',action:e,state:r,lastState:n})})};return null===i?(o(),!0):r!==n?(a._navState=r,a.setState({nav:r},function(){a._onNavigationStateChange(n,r,e),o(),a._persistNavigationState(r)}),!0):(o(),!1)},a._getScreenProps=function(){return a.props.screenProps},v(e),a._initialAction=u.default.init(),a._isStateful()&&(a.subs=o.BackHandler.addEventListener('hardwareBackPress',function(){if(a._isMounted)return a.dispatch(u.default.back());a.subs&&a.subs.remove()})),a.state={nav:a._isStateful()&&!e.persistenceKey?t.router.getStateForAction(a._initialAction):null},a}return babelHelpers.createClass(n,null,[{key:"getDerivedStateFromProps",value:function(t,e){return v(t),null}}]),babelHelpers.createClass(n,[{key:"_renderLoading",value:function(){return this.props.renderLoadingExperimental?this.props.renderLoadingExperimental():null}},{key:"_isStateful",value:function(){return h(this.props)}},{key:"_validateProps",value:function(t){if(!this._isStateful()){t.navigation,t.screenProps;var e=babelHelpers.objectWithoutProperties(t,["navigation","screenProps"]),n=Object.keys(e);if(0!==n.length)throw new Error("This navigator has both navigation and container props, so it is unclear if it should own its own state. Remove props: \""+n.join(', ')+"\" if the navigator should get its state from the navigation prop. If the navigator should maintain its own state, do not pass a navigation prop.")}}},{key:"_onNavigationStateChange",value:function(t,e,n){void 0===this.props.onNavigationStateChange&&this._isStateful()&&process.env.REACT_NAV_LOGGING?console.group?(console.group('Navigation Dispatch: '),console.log('Action: ',n),console.log('New State: ',e),console.log('Last State: ',t),console.groupEnd()):console.log('Navigation Dispatch: ',{action:n,newState:e,lastState:t}):'function'==typeof this.props.onNavigationStateChange&&this.props.onNavigationStateChange(t,e,n)}},{key:"componentDidUpdate",value:function(){this._navState===this.state.nav&&(this._navState=null)}},{key:"componentDidMount",value:function(){var e,n,a,i,r,s,u,l,c,h,v,g,d,b,_=this;return regeneratorRuntime.async(function(S){for(;;)switch(S.prev=S.next){case 0:if(this._isMounted=!0,this._isStateful()){S.next=3;break}return S.abrupt("return");case 3:if(0,o.Linking.addEventListener('url',this._handleOpenURL),e=this.props,n=e.persistenceKey,a=e.uriPrefix,i=e.enableURLHandling,r=null,s=null,!1===i){S.next=20;break}if(S.t0=n,!S.t0){S.next=15;break}return S.next=14,regeneratorRuntime.awrap(o.AsyncStorage.getItem(n));case 14:S.t0=S.sent;case 15:return s=S.t0,S.next=18,regeneratorRuntime.awrap(o.Linking.getInitialURL());case 18:u=S.sent,r=u&&(0,p.urlToPathAndParams)(u,a);case 20:if(l=this._initialAction,(c=this.state.nav)||(process.env.REACT_NAV_LOGGING&&console.log('Init new Navigation State'),c=t.router.getStateForAction(l)),s)try{c=JSON.parse(s),f=!0}catch(t){}if(r&&(v=(h=r).path,g=h.params,(d=t.router.getActionForPathAndParams(v,g))&&(process.env.REACT_NAV_LOGGING&&console.log('Applying Navigation Action for Initial URL:',url),l=d,c=t.router.getStateForAction(d,c))),b=function(){return _._actionEventSubscribers.forEach(function(t){return t({type:'action',action:l,state:_.state.nav,lastState:null})})},c!==this.state.nav){S.next=29;break}return b(),S.abrupt("return");case 29:this.setState({nav:c},function(){f=!1,b()});case 30:case"end":return S.stop()}},null,this)}},{key:"componentDidCatch",value:function(t,e){if(!f)throw t;f=!1,console.warn('Uncaught exception while starting app from persisted navigation state! Trying to render again with a fresh navigation state..'),this.dispatch(u.default.init())}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,o.Linking.removeEventListener('url',this._handleOpenURL),this.subs&&this.subs.remove(),this._isStateful()&&0}},{key:"render",value:function(){var e=this,n=this.props.navigation;if(this._isStateful()){var a=this.state.nav;if(!a)return this._renderLoading();this._navigation&&this._navigation.state===a||(this._navigation=(0,l.default)(t.router,a,this.dispatch,this._actionEventSubscribers,this._getScreenProps,function(){return e._navigation})),n=this._navigation}return(0,c.default)(n,'failed to get navigation'),r.default.createElement(t,babelHelpers.extends({},this.props,{navigation:n}))}}]),babelHelpers.inherits(n,e),n})(r.default.Component);return e.router=t.router,e.navigationOptions=null,(0,s.polyfill)(e)};var r=babelHelpers.interopRequireDefault(e(i[0])),o=e(i[1]),s=e(i[2]),u=babelHelpers.interopRequireDefault(e(i[3])),l=babelHelpers.interopRequireDefault(e(i[4])),c=babelHelpers.interopRequireDefault(e(i[5])),p=(babelHelpers.interopRequireDefault(e(i[6])),e(i[7]));function h(t){return!t.navigation}function v(t){if(!h(t)){t.navigation,t.screenProps;var e=babelHelpers.objectWithoutProperties(t,["navigation","screenProps"]),n=Object.keys(e);if(0!==n.length)throw new Error("This navigator has both navigation and container props, so it is unclear if it should own its own state. Remove props: \""+n.join(', ')+"\" if the navigator should get its state from the navigation prop. If the navigator should maintain its own state, do not pass a navigation prop.")}}var f=!1},302,[26,1,303,304,305,307,311,312]); +__d(function(t,e,n,o,i){'use strict';function p(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==t&&void 0!==t&&this.setState(t)}function l(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!==n&&void 0!==n?n:null}.bind(this))}function r(t,e){try{var n=this.props,o=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}Object.defineProperty(o,'__esModule',{value:!0}),p.__suppressDeprecationWarning=!0,l.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,o.polyfill=function(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error('Can only polyfill class components');if('function'!=typeof t.getDerivedStateFromProps&&'function'!=typeof e.getSnapshotBeforeUpdate)return t;var n=null,o=null,i=null;if('function'==typeof e.componentWillMount?n='componentWillMount':'function'==typeof e.UNSAFE_componentWillMount&&(n='UNSAFE_componentWillMount'),'function'==typeof e.componentWillReceiveProps?o='componentWillReceiveProps':'function'==typeof e.UNSAFE_componentWillReceiveProps&&(o='UNSAFE_componentWillReceiveProps'),'function'==typeof e.componentWillUpdate?i='componentWillUpdate':'function'==typeof e.UNSAFE_componentWillUpdate&&(i='UNSAFE_componentWillUpdate'),null!==n||null!==o||null!==i){var s=t.displayName||t.name,a='function'==typeof t.getDerivedStateFromProps?'getDerivedStateFromProps()':'getSnapshotBeforeUpdate()';throw Error('Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n'+s+' uses '+a+' but also contains the following legacy lifecycles:'+(null!==n?'\n '+n:'')+(null!==o?'\n '+o:'')+(null!==i?'\n '+i:'')+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if('function'==typeof t.getDerivedStateFromProps&&(e.componentWillMount=p,e.componentWillReceiveProps=l),'function'==typeof e.getSnapshotBeforeUpdate){if('function'!=typeof e.componentDidUpdate)throw new Error('Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype');e.componentWillUpdate=r;var c=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,t,e,o)}}return t}},303,[]); +__d(function(a,e,t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r='Navigation/BACK',o='Navigation/INIT',m={BACK:r,INIT:o,NAVIGATE:"Navigation/NAVIGATE",SET_PARAMS:"Navigation/SET_PARAMS",back:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:r,key:a.key,immediate:a.immediate}},init:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={type:o};return a.params&&(e.params=a.params),e},navigate:function(a){var e={type:"Navigation/NAVIGATE",routeName:a.routeName};return a.params&&(e.params=a.params),a.action&&(e.action=a.action),a.key&&(e.key=a.key),e},setParams:function(a){return{type:"Navigation/SET_PARAMS",key:a.key,params:a.params}}};i.default=m},304,[]); +__d(function(e,t,n,r,u){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,n,r,u,i){var l=e.getActionCreators(t,null),c={actions:l,router:e,state:t,dispatch:n,getScreenProps:u,getChildNavigation:function(e){return(0,o.default)(c,e,i)},isFocused:function(e){var t=i().state,n=t.routes,r=t.index;return null==e||n[r].key===e},addListener:function(e,t){return'action'!==e?{remove:function(){}}:(r.add(t),{remove:function(){r.delete(t)}})},dangerouslyGetParent:function(){return null}},d=babelHelpers.objectSpread({},(0,a.default)(c.state),l);return Object.keys(d).forEach(function(e){c[e]=function(){return c.dispatch(d[e].apply(d,arguments))}}),c};var a=babelHelpers.interopRequireDefault(t(u[0])),o=babelHelpers.interopRequireDefault(t(u[1]))},305,[306,308]); +__d(function(e,t,a,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=babelHelpers.interopRequireDefault(t(o[0])),i=babelHelpers.interopRequireDefault(t(o[1])),u=function(e){return{goBack:function(t){var a=t;return void 0===t&&e.key&&((0,i.default)('string'==typeof e.key,'key should be a string'),a=e.key),r.default.back({key:a})},navigate:function(e,t,a){return'string'==typeof e?r.default.navigate({routeName:e,params:t,action:a}):((0,i.default)('object'==typeof e,'Must navigateTo an object or a string'),(0,i.default)(null==t,'Params must not be provided to .navigate() when specifying an object'),(0,i.default)(null==a,'Child action must not be provided to .navigate() when specifying an object'),r.default.navigate(e))},setParams:function(t){return(0,i.default)(e.key&&'string'==typeof e.key,'setParams cannot be called by root navigator'),r.default.setParams({params:t,key:e.key})}}};n.default=u},306,[304,307]); +__d(function(n,e,r,i,o){var a=function(n){};r.exports=function(n,e,r,i,o,t,f,d){if(a(e),!n){var u;if(void 0===e)u=new Error('Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.');else{var c=[r,i,o,t,f,d],l=0;(u=new Error(e.replace(/%s/g,function(){return c[l++]}))).name='Invariant Violation'}throw u.framesToPop=1,u}}},307,[]); +__d(function(e,t,r,a,n){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=babelHelpers.interopRequireDefault(t(n[0])),u=babelHelpers.interopRequireDefault(t(n[1])),o=babelHelpers.interopRequireDefault(t(n[2])),s=(babelHelpers.interopRequireDefault(t(n[3])),function(e){return function(t,r){var a=e.params;return a&&t in a?a[t]:r}});var l=function e(t,r,a){var n=t._childrenNavigation||(t._childrenNavigation={}),l=t.state.routes.find(function(e){return e.key===r});if(!l)return null;if(n[r]&&n[r].state===l)return n[r];var d=(0,u.default)(t.router,l.routeName),c=l.routes&&'number'==typeof l.index?l.routes[l.index]:null,f=babelHelpers.objectSpread({},t.actions,t.router.getActionCreators(l,t.state.key),d?d.getActionCreators(c,l.key):{},(0,o.default)(l)),p={};if(Object.keys(f).forEach(function(e){p[e]=function(){var r=f[e].apply(void 0,arguments);return t.dispatch(r)}}),n[r])return n[r]=babelHelpers.objectSpread({},n[r],p,{state:l,router:d,actions:f,getParam:s(l)}),n[r];var b=(0,i.default)(t.addListener,r);return n[r]=babelHelpers.objectSpread({},p,{state:l,router:d,actions:f,getParam:s(l),getChildNavigation:function(t){return e(n[r],t,function(){var e=a();return e&&e.getChildNavigation(r)})},isFocused:function(){var e=a();if(!e)return!1;var t=e.state,n=t.routes,i=t.index;return!!e.isFocused()&&n[i].key===r},dispatch:t.dispatch,getScreenProps:t.getScreenProps,dangerouslyGetParent:a,addListener:b.addListener}),n[r]};a.default=l},308,[309,310,306,307]); +__d(function(e,t,n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){var n=new Set,r=new Set,i=new Set,u=new Set,o=new Set,l=function(){[n,r,i,u,o].forEach(function(e){return e.clear()}),s.forEach(function(e){return e&&e.remove()})},c=function(e){switch(e){case'action':return n;case'willFocus':return r;case'didFocus':return i;case'willBlur':return u;case'didBlur':return o;default:return null}},d=function(e,t){var n=babelHelpers.objectSpread({},t,{type:e}),r=c(e);r&&r.forEach(function(e){e(n)})},a='didBlur',s=['willFocus','didFocus','willBlur','didBlur','action'].map(function(n){return e(n,function(e){var r=e.state,i=e.lastState,u=e.action,o=i&&i.routes,c=r&&r.routes,s=(i&&i.routes&&i.routes[i.index].key,c&&c[r.index].key),f=s===t,w=o&&o.find(function(e){return e.key===t}),B=c&&c.find(function(e){return e.key===t}),F={context:t+":"+u.type+"_"+(e.context||'Root'),state:B,lastState:w,action:u,type:n},v=!!r&&r.isTransitioning,y=a;'didBlur'===a&&('willFocus'===n&&f?d(a='willFocus',F):'action'===n&&f&&d(a='willFocus',F)),'willFocus'===a&&('didFocus'===n&&f&&!v?d(a='didFocus',F):'action'===n&&f&&!v&&d(a='didFocus',F)),'didFocus'===a&&(f?'willBlur'===n?d(a='willBlur',F):'action'===n&&'didFocus'===y&&d('action',F):d(a='willBlur',F)),'willBlur'===a&&('action'!==n||f||v?'didBlur'===n&&d(a='didBlur',F):d(a='didBlur',F)),'didBlur'!==a||B||l()})});return{addListener:function(e,t){var n=c(e);if(!n)throw new Error("Invalid event name \""+e+"\"");n.add(t);return{remove:function(){n.delete(t)}}}}}},309,[]); +__d(function(e,t,o,r,u){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){if(e.childRouters&&e.childRouters[t])return e.childRouters[t];return e.getComponentForRouteName(t).router}},310,[]); +__d(function(e,t,n,o,r){Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(e){return"https://reactnavigation.org/docs/"+e}},311,[]); +__d(function(e,a,t,r,n){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.createPathParser=r.urlToPathAndParams=void 0;var o=babelHelpers.interopRequireWildcard(a(n[0])),i=babelHelpers.interopRequireDefault(a(n[1])),l=babelHelpers.interopRequireDefault(a(n[2])),u=a(n[3]),s=function(e,a,t){return a.slice(1).reduce(function(e,a,r){var n=t[r];if(!n||n.asterisk)return e;var o,i=n.name;try{o=decodeURIComponent(a)}catch(e){}return e[i]=o||a,e},babelHelpers.objectSpread({},e))},c=function(e,a){return e[a.findIndex(function(e){return e.asterisk})+1]};r.urlToPathAndParams=function(e,a){var t=e.match(/^(.*)\?(.*)$/),r=t?u.parse(t[2]):{},n=t?t[1]:e,o=a||'://',i=n.split(o)[1];return void 0===i&&(i=n),'/'===i&&(i=''),'/'===i[i.length-1]&&(i=i.slice(0,-1)),{path:i,params:r}};var d=function(e,a){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};Object.keys(e).forEach(function(e){var t;void 0===(t=void 0!==r[e]?r[e]:a[e].path)&&(t=e),(0,l.default)(null===t||'string'==typeof t,"Route path for "+e+" must be specified as a string, or null.");var i=null!==t,u=[],s=i?(0,o.default)(t,u):null,c=[],d=''===t||!i,f=(0,o.default)(d?'*':t+"/*",c);n[e]={exactRe:s,exactReKeys:u,extendedPathRe:f,extendedPathReKeys:c,isWildcard:d,toPath:null===t?function(){return''}:(0,o.compile)(t)}}),t=Object.entries(n);return{getActionForPathAndParams:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'',r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t,o=Array.isArray(n),l=0;for(n=o?n:n["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var u;if(o){if(l>=n.length)break;u=n[l++]}else{if((l=n.next()).done)break;u=l.value}var d=u,f=babelHelpers.slicedToArray(d,2),h=f[0],p=f[1],v=p.exactRe,P=p.exactReKeys,m=p.extendedPathRe,b=p.extendedPathReKeys,y=e[h],g=v&&v.exec(a);if(g&&g.length){var x=m&&m.exec(a),R=null;if(x&&y){var A=c(x,b);R=y.getActionForPathAndParams(A,r)}return i.default.navigate({routeName:h,params:s(r,g,P),action:R})}}var k=t,H=Array.isArray(k),S=0;for(k=H?k:k["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var j;if(H){if(S>=k.length)break;j=k[S++]}else{if((S=k.next()).done)break;j=S.value}var F=j,K=babelHelpers.slicedToArray(F,2),O=K[0],T=K[1],_=T.extendedPathRe,q=T.extendedPathReKeys,N=e[O],D=_&&_.exec(a);if(D&&D.length){var E=c(D,q),I=null;if(N&&(I=N.getActionForPathAndParams(E,r)),!I)continue;return i.default.navigate({routeName:O,params:s(r,D,q),action:I})}}return null},getPathAndParamsForRoute:function(a){var t=a.routeName,r=a.params,o=e[t],i=n[t],l=i.toPath,u=i.exactReKeys,s=l(r),c={};if(r&&Object.keys(r).filter(function(e){return!u.find(function(a){return a.name===e})}).forEach(function(e){c[e]=r[e]}),o){var d=o.getPathAndParamsForState(a);return{path:s?s+"/"+d.path:d.path,params:d.params?babelHelpers.objectSpread({},c,d.params):c}}return{path:s,params:c}}}};r.createPathParser=d;var f={getParamsFromPath:s,createPathParser:d};r.default=f},312,[313,304,307,315]); +__d(function(e,t,r,n,i){var o=t(i[0]);r.exports=m,r.exports.parse=a,r.exports.compile=function(e,t){return l(a(e,t))},r.exports.tokensToFunction=l,r.exports.tokensToRegExp=v;var p=new RegExp(['(\\\\.)','([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'].join('|'),'g');function a(e,t){for(var r,n=[],i=0,o=0,a='',u=t&&t.delimiter||'/';null!=(r=p.exec(e));){var l=r[0],s=r[1],g=r.index;if(a+=e.slice(o,g),o=g+l.length,s)a+=s[1];else{var h=e[o],x=r[2],d=r[3],v=r[4],m=r[5],w=r[6],E=r[7];a&&(n.push(a),a='');var y=null!=x&&null!=h&&h!==x,R='+'===w||'*'===w,$='?'===w||'*'===w,b=r[2]||u,T=v||m;n.push({name:d||i++,prefix:x||'',delimiter:b,optional:$,repeat:R,partial:y,asterisk:!!E,pattern:T?f(T):E?'.*':'[^'+c(b)+']+?'})}}return o=o.length)break;u=o[a++]}else{if((a=o.next()).done)break;u=a.value}var l=u.replace(/\+/g,' ').split('='),y=babelHelpers.slicedToArray(l,2),d=y[0],b=y[1];b=void 0===b?null:f(b,e),n(f(d,e),b,t)}return Object.keys(t).sort().reduce(function(r,e){var n=t[e];return Boolean(n)&&'object'==typeof n&&!Array.isArray(n)?r[e]=s(n):r[e]=n,r},Object.create(null))}t.extract=y,t.parse=d,t.stringify=function(r,e){!1===(e=babelHelpers.extends({encode:!0,strict:!0,arrayFormat:'none'},e)).sort&&(e.sort=function(){});var n=u(e);return r?Object.keys(r).sort(e.sort).map(function(t){var o=r[t];if(void 0===o)return'';if(null===o)return l(t,e);if(Array.isArray(o)){var i=[],a=o.slice(),u=Array.isArray(a),c=0;for(a=u?a:a["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var f;if(u){if(c>=a.length)break;f=a[c++]}else{if((c=a.next()).done)break;f=c.value}var s=f;void 0!==s&&i.push(n(t,s,i.length))}return i.join('&')}return l(t,e)+'='+l(o,e)}).filter(function(r){return r.length>0}).join('&'):''},t.parseUrl=function(r,e){return{url:r.split('?')[0]||'',query:d(y(r),e)}}},315,[316,317]); +__d(function(t,e,n,o,r){'use strict';n.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},316,[]); +__d(function(e,t,r,n,o){'use strict';var c=new RegExp('%[a-f0-9]{2}','gi'),a=new RegExp("(%[a-f0-9]{2})+",'gi');function p(e,t){try{return decodeURIComponent(e.join(''))}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],p(r),p(n))}function i(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(c),r=1;r3&&void 0!==arguments[3]&&arguments[3],u=o.indexOf(e,r),i=t?e.index:u,d=o.replaceAtIndex(e,u,n);return d.index=i,d},replaceAtIndex:function(e,r,n){if((0,i.default)(!!e.routes[r],'invalid index %s for replacing route %s',r,n.key),e.routes[r]===n&&r===e.index)return e;var t=e.routes.slice();return t[r]=n,babelHelpers.objectSpread({},e,{index:r,routes:t})},reset:function(e,r,n){(0,i.default)(r.length&&Array.isArray(r),'invalid routes to replace');var t=void 0===n?r.length-1:n;if(e.routes.length===r.length&&e.index===t){if(e.routes.every(function(e,n){return r[n]===e}))return e}return(0,i.default)(!!r[t],'invalid index %s to reset',t),babelHelpers.objectSpread({},e,{index:t,routes:r})}},d=o;t.default=d},318,[307]); +__d(function(e,t,r,o,n){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var a=babelHelpers.interopRequireDefault(t(n[0])),s=t(n[1]);babelHelpers.interopRequireDefault(t(n[2]));var i=function(e,t,r){var o=(function(o){function n(){var e,t,r;babelHelpers.classCallCheck(this,n);for(var o=arguments.length,a=new Array(o),s=0;s1&&void 0!==arguments[1]?arguments[1]:{},a=(0,u.default)(e,t);return(0,i.createNavigationContainer)(a)};n.default=l},327,[301,328]); +__d(function(t,e,a,i,o){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=e(o[0]),r=babelHelpers.interopRequireDefault(e(o[1]));var u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.initialRouteKey,i=e.initialRouteName,o=e.initialRouteParams,u=e.paths,l=e.navigationOptions,s=e.disableKeyboardHandling,d={initialRouteKey:a,initialRouteName:i,initialRouteParams:o,paths:u,navigationOptions:l,getCustomActionCreators:e.getCustomActionCreators},v=(0,n.StackRouter)(t,d),c=(0,n.createNavigator)(r.default,v,e);return s||(c=(0,n.createKeyboardAwareNavigator)(c,e)),c};i.default=u},328,[301,329]); +__d(function(e,n,r,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=babelHelpers.interopRequireDefault(n(i[0])),s=n(i[1]),a=n(i[2]),p=babelHelpers.interopRequireDefault(n(i[3])),l=babelHelpers.interopRequireDefault(n(i[4])),u=babelHelpers.interopRequireDefault(n(i[5])),d=s.NativeModules&&s.NativeModules.NativeAnimatedModule,c=(function(e){function n(){var e,r,t;babelHelpers.classCallCheck(this,n);for(var i=arguments.length,s=new Array(i),a=0;a(u?k.vertical||P:k.horizontal||y))&&(Math.abs(_)>b&&H&&!(0===h))},onPanResponderMove:function(e,t){var r=n.props,i=r.transitionProps,o=i.navigation,l=i.position,p=i.layout,d=i.scene,u=r.mode,c=o.state.index,g='modal'===u,f=d.descriptor.options.gestureDirection,h='string'==typeof f?'inverted'===f:s.I18nManager.isRTL,_=n._gestureStartValue,v=g?'dy':'dx',m=g?p.height.__getValue():p.width.__getValue(),b='dx'===v&&h?_+t[v]/m:_-t[v]/m,y=(0,a.default)(c-1,b,c);l.setValue(y)},onPanResponderTerminationRequest:function(){return!1},onPanResponderRelease:function(e,t){var r=n.props,i=r.transitionProps,o=i.navigation,a=i.position,l=i.layout,p=i.scene,d=r.mode,u=o.state.index,c='modal'===d,g=p.descriptor.options.gestureDirection,f='string'==typeof g?'inverted'===g:s.I18nManager.isRTL;if(n._isResponding){n._isResponding=!1;var h=null==n._immediateIndex?u:n._immediateIndex,_=c?l.height.__getValue():l.width.__getValue(),b=f?-1:1,y=b*t[c?'dy':'dx'],P=b*t[c?'vy':'vx'],H=_/v,x=Math.max(Math.abs(P),H),R=f?(_-y)/x:y/x,k=f?y/x:(_-y)/x;a.stopAnimation(function(e){return P<-.5?(n.props.onGestureCanceled&&n.props.onGestureCanceled(),void n._reset(h,R)):P>.5?(n.props.onGestureFinish&&n.props.onGestureFinish(),void n._goBack(h,k)):void(e<=u-m?(n.props.onGestureFinish&&n.props.onGestureFinish(),n._goBack(h,k)):(n.props.onGestureCanceled&&n.props.onGestureCanceled(),n._reset(h,R)))})}}}),n._onFloatingHeaderLayout=function(e){n.setState({floatingHeaderHeight:e.nativeEvent.layout.height})},n._getTransitionConfig=function(){var e='modal'===n.props.mode;return c.default.getTransitionConfig(n.props.transitionConfig,n.props.transitionProps,n.props.lastTransitionProps,e)},n._renderCard=function(e){var t=n._getTransitionConfig().screenInterpolator,r=t&&t(babelHelpers.objectSpread({},n.props.transitionProps,{scene:e})),i=null!==e.descriptor.options.header,a=n._getHeaderMode(),s=0;return i||'float'!==a||(s=-n.state.floatingHeaderHeight),o.default.createElement(p.default,babelHelpers.extends({},n.props.transitionProps,{key:"card_"+e.key,style:[r,{marginTop:s},n.props.cardStyle],scene:e}),n._renderInnerScene(e))},n.state={floatingHeaderHeight:x(e.isLandscape)},n}return babelHelpers.createClass(t,[{key:"_renderHeader",value:function(e,t){var n=e.descriptor.options.header;if(null===n&&'screen'===t)return null;if(o.default.isValidElement(n))return n;var r=n||function(e){return o.default.createElement(d.default,e)},i=this._getTransitionConfig(),a=i.headerLeftInterpolator,s=i.headerTitleInterpolator,p=i.headerRightInterpolator,u=i.headerBackgroundInterpolator,c=this.props,g=c.transitionProps,f=babelHelpers.objectWithoutProperties(c,["transitionProps"]);return o.default.createElement(l.NavigationProvider,{value:e.descriptor.navigation},r(babelHelpers.objectSpread({},f,g,{scene:e,mode:t,transitionPreset:this._getHeaderTransitionPreset(),layoutPreset:this._getHeaderLayoutPreset(),backTitleVisible:this._getheaderBackTitleVisible(),leftInterpolator:a,titleInterpolator:s,rightInterpolator:p,backgroundInterpolator:u})))}},{key:"_animatedSubscribe",value:function(e){H(e.transitionProps.layout.width),H(e.transitionProps.layout.height),H(e.transitionProps.position)}},{key:"_reset",value:function(e,t){s.Animated.timing(this.props.transitionProps.position,{toValue:e,duration:t,easing:h,useNativeDriver:this.props.transitionProps.position.__isNative}).start()}},{key:"_goBack",value:function(e,t){var n=this,r=this.props.transitionProps,i=r.navigation,o=r.position,a=r.scenes,p=Math.max(e-1,0);this._immediateIndex=p;s.Animated.timing(o,{toValue:p,duration:t,easing:h,useNativeDriver:o.__isNative}).start(function(){n._immediateIndex=null;var e=a.find(function(e){return e.index===p+1});!n._isResponding&&e&&(i.dispatch(l.NavigationActions.back({key:e.route.key,immediate:!0})),i.dispatch(l.StackActions.completeTransition()))})}},{key:"render",value:function(){var e=this,t=null,n=this._getHeaderMode();if('float'===n){var r=this.props.transitionProps.scene;t=o.default.createElement(s.View,{pointerEvents:"box-none",onLayout:this._onFloatingHeaderLayout},this._renderHeader(r,n))}var i=this.props.transitionProps,a=i.scene,l=i.scenes,p=a.descriptor.options,d='boolean'==typeof p.gesturesEnabled&&p.gesturesEnabled,c=d?this._panResponder:null,g=d?c.panHandlers:{},f=[k.container,this._getTransitionConfig().containerStyle];return o.default.createElement(s.View,babelHelpers.extends({},g,{style:f}),o.default.createElement(u.ScreenContainer,{style:k.scenes},l.map(function(t){return e._renderCard(t)})),t)}},{key:"_getHeaderMode",value:function(){return this.props.headerMode?this.props.headerMode:'screen'}},{key:"_getHeaderLayoutPreset",value:function(){var e=this.props.headerLayoutPreset;return e&&_.includes(e)?e:'left'}},{key:"_getHeaderTransitionPreset",value:function(){return'fade-in-place'}},{key:"_getheaderBackTitleVisible",value:function(){return this.props.headerBackTitleVisible}},{key:"_renderInnerScene",value:function(e){var t=e.descriptor,n=t.navigation,r=(0,t.getComponent)(),i=this.props.screenProps,a=this._getHeaderMode();return'screen'===a?o.default.createElement(s.View,{style:k.container},o.default.createElement(s.View,{style:k.scenes},o.default.createElement(l.SceneView,{screenProps:i,navigation:n,component:r})),this._renderHeader(e,a)):o.default.createElement(l.SceneView,{screenProps:i,navigation:n,component:r})}}]),babelHelpers.inherits(t,e),t})(o.default.Component),k=s.StyleSheet.create({container:{flex:1,flexDirection:'column-reverse'},scenes:{flex:1}}),V=(0,l.withOrientation)(R);r.default=V},330,[26,331,1,301,332,336,333,345,347]); +__d(function(n,t,o,r,u){o.exports=function(n,t,o){return to?o:n:nt?t:n}},331,[]); +__d(function(e,t,n,l,r){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var a=babelHelpers.interopRequireDefault(t(r[0])),o=t(r[1]),s=t(r[2]),i=babelHelpers.interopRequireDefault(t(r[3]));function p(e){return{importantForAccessibility:e?'yes':'no-hide-descendants'}}var u=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.pointerEvents,l=e.style,r=e.position,o=e.scene,i=o.index,u=o.isActive,c=r.interpolate({inputRange:[i,i+1-1e-5,i+1],outputRange:[1,1,0],extrapolate:'clamp'});return a.default.createElement(s.Screen,babelHelpers.extends({pointerEvents:n,onComponentRef:this.props.onComponentRef,style:[b.main,l],active:c},p(u)),t)}}]),babelHelpers.inherits(t,e),t})(a.default.Component),b=o.StyleSheet.create({main:babelHelpers.objectSpread({},o.StyleSheet.absoluteFillObject,{backgroundColor:'#E9E9EF',shadowColor:'black',shadowOffset:{width:0,height:0},shadowOpacity:.2,shadowRadius:5})}),c=(0,i.default)(u);l.default=c},332,[26,1,333,334]); +__d(function(e,r,t,n,l){Object.defineProperty(n,"__esModule",{value:!0}),n.Screen=n.ScreenContainer=void 0;var a=babelHelpers.interopRequireDefault(r(l[0])),o=r(l[1]),i=o.View;n.ScreenContainer=i;var s=(function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(r).apply(this,arguments))}return babelHelpers.createClass(r,[{key:"render",value:function(){var e=this.props,r=(e.active,e.onComponentRef),t=babelHelpers.objectWithoutProperties(e,["active","onComponentRef"]);return a.default.createElement(o.Animated.View,babelHelpers.extends({},t,{ref:r}))}}]),babelHelpers.inherits(r,e),r})(a.default.Component);n.Screen=s},333,[26,1]); +__d(function(e,t,n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(e){return(function(t){function n(e,t){var o;return babelHelpers.classCallCheck(this,n),(o=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(n).call(this,e,t)))._onComponentRef=function(e){o._component=e,e&&(0,r.default)('function'==typeof e.setNativeProps,'component must implement method `setNativeProps`')},o._onPositionChange=function(){if(o._component){var e=o._computePointerEvents();o._pointerEvents!==e&&(o._pointerEvents=e,o._component.setNativeProps({pointerEvents:e}))}},o._pointerEvents=o._computePointerEvents(),o}return babelHelpers.createClass(n,[{key:"componentWillUnmount",value:function(){this._positionListener&&this._positionListener.remove()}},{key:"render",value:function(){return this._bindPosition(),this._pointerEvents=this._computePointerEvents(),s.default.createElement(e,babelHelpers.extends({},this.props,{pointerEvents:this._pointerEvents,onComponentRef:this._onComponentRef}))}},{key:"_bindPosition",value:function(){this._positionListener&&this._positionListener.remove(),this._positionListener=new l(this.props.position,this._onPositionChange)}},{key:"_computePointerEvents",value:function(){var e=this.props,t=e.navigation,n=e.position,o=e.scene;if(o.isStale||t.state.index!==o.index)return o.index>t.state.index?'box-only':'none';var i=n.__getAnimatedValue()-t.state.index;return Math.abs(i)>a?'box-only':'auto'}}]),babelHelpers.inherits(n,t),n})(s.default.Component)};var s=babelHelpers.interopRequireDefault(t(i[0])),r=babelHelpers.interopRequireDefault(t(i[1])),a=.01;var l=(function(){function e(t,n){babelHelpers.classCallCheck(this,e),this._value=t,this._token=t.addListener(n)}return babelHelpers.createClass(e,[{key:"remove",value:function(){this._value.removeListener(this._token)}}]),e})()},334,[26,335]); +__d(function(e,r,n,i,o){'use strict';Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,r,n,i,o,a,t,f){if(void 0===r)throw new Error('invariant requires an error message argument');if(!e){var u;if(void 0===r)u=new Error('Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.');else{var d=[n,i,o,a,t,f],s=0;(u=new Error(r.replace(/%s/g,function(){return d[s++]}))).name='Invariant Violation'}throw u.framesToPop=1,u}}},335,[]); +__d(function(e,t,r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,a=babelHelpers.interopRequireDefault(t(i[0])),l=t(i[1]),s=t(i[2]),d=babelHelpers.interopRequireDefault(t(i[3])),p=babelHelpers.interopRequireDefault(t(i[4])),u=babelHelpers.interopRequireDefault(t(i[5])),c=babelHelpers.interopRequireDefault(t(i[6])),f=function(e,t,r,n){if('left'===e){var i={left:56,right:56};return r||(i.left=0),n||(i.right=0),i}if('center'===e){var o={left:56,right:56};return r||n||(o.left=0,o.right=0),o}},h=(function(e){function t(){var e,r,n;babelHelpers.classCallCheck(this,t);for(var i=arguments.length,o=new Array(i),l=0;l2?null:this._renderSubView(babelHelpers.objectSpread({},e,{style:l.StyleSheet.absoluteFill}),'background',function(){return n.headerBackground},this.props.backgroundInterpolator)}},{key:"_renderModularSubView",value:function(e,t,r,n,i){var o=this,s=e.scene,d=s.index,p=s.isStale,u=s.key;if(0!==d){var c=this.props.navigation.state.index-d;if(Math.abs(c)>2)return null;var f=r(e,function(t){var r=t.children;return a.default.createElement(l.Animated.View,{style:[i(babelHelpers.objectSpread({},o.props,e))]},r)},function(t){var r=t.children;return a.default.createElement(l.Animated.View,{style:[n(babelHelpers.objectSpread({},o.props,e))]},r)});if(null===f)return f;var h=0!==c||p?'none':'box-none';return a.default.createElement(l.View,{key:t+"_"+u,pointerEvents:h,style:[b.item,b[t],e.style]},f)}}},{key:"_renderSubView",value:function(e,t,r,n){var i=e.scene,o=i.index,s=i.isStale,d=i.key,p=this.props.navigation.state.index-o;if(Math.abs(p)>2)return null;var u=r(e);if(null==u)return null;var c=0!==p||s?'none':'box-none';return a.default.createElement(l.Animated.View,{pointerEvents:c,key:t+"_"+d,style:[b.item,b[t],e.style,n(babelHelpers.objectSpread({},this.props,e))]},u)}},{key:"_renderHeader",value:function(e){var t=e.scene.descriptor.options;if(null===t.header)return null;var r=this._renderLeft(e),n=this._renderRight(e),i=this._renderTitle(e,{hasLeftComponent:!!r,hasRightComponent:!!n,headerTitleContainerStyle:t.headerTitleContainerStyle}),o=(this.props.transitionPreset,{style:b.header,key:"scene_"+e.scene.key});return t.headerLeft||t.headerBackImage,a.default.createElement(l.View,o,i,r,n)}},{key:"render",value:function(){var e,t,r=this,n=this.props,i=n.mode,o=n.scene;n.isLandscape;if('float'===i){var d={};this.props.scenes.forEach(function(e){d[e.index]=e});var p=Object.values(d).map(function(e){return{position:r.props.position,progress:r.props.progress,scene:e}});e=p.map(this._renderHeader,this),t=p.map(this._renderBackground,this)}else{var u={position:new l.Animated.Value(this.props.scene.index),progress:new l.Animated.Value(0),scene:this.props.scene};e=this._renderHeader(u),t=this._renderBackground(u)}var c=o.descriptor.options,f=c.headerStyle,h=void 0===f?{}:f,g=l.StyleSheet.flatten(h),y=(g.alignItems,g.justifyContent,g.flex,g.flexDirection,g.flexGrow,g.flexShrink,g.flexBasis,g.flexWrap,g.position,g.padding,g.paddingHorizontal,g.paddingRight,g.paddingLeft,g.top,g.right,g.bottom,g.left,babelHelpers.objectWithoutProperties(g,["alignItems","justifyContent","flex","flexDirection","flexGrow","flexShrink","flexBasis","flexWrap","position","padding","paddingHorizontal","paddingRight","paddingLeft","top","right","bottom","left"])),m=[c.headerTransparent?b.transparentContainer:b.container,{height:56},y],k=c.headerForceInset||{top:'always',bottom:'never'};return a.default.createElement(l.Animated.View,{style:[this.props.layoutInterpolator(this.props),null]},a.default.createElement(s.SafeAreaView,{forceInset:k,style:m},t,a.default.createElement(l.View,{style:b.flexOne},e)))}}],[{key:"HEIGHT",get:function(){return 56}}]),babelHelpers.inherits(t,e),t})(a.default.PureComponent);h.defaultProps={layoutInterpolator:c.default.forLayout,leftInterpolator:c.default.forLeft,leftButtonInterpolator:c.default.forLeftButton,leftLabelInterpolator:c.default.forLeftLabel,titleFromLeftInterpolator:c.default.forCenterFromLeft,titleInterpolator:c.default.forCenter,rightInterpolator:c.default.forRight,backgroundInterpolator:c.default.forBackground},o={shadowColor:'black',shadowOpacity:.1,shadowRadius:l.StyleSheet.hairlineWidth,shadowOffset:{height:l.StyleSheet.hairlineWidth},elevation:4};var b=l.StyleSheet.create({container:babelHelpers.objectSpread({backgroundColor:'#FFF'},o),transparentContainer:babelHelpers.objectSpread({position:'absolute',top:0,left:0,right:0},o,{borderBottomWidth:0,borderBottomColor:'transparent',elevation:0}),header:babelHelpers.objectSpread({},l.StyleSheet.absoluteFillObject,{flexDirection:'row'}),item:{backgroundColor:'transparent'},iconMaskContainer:{flex:1,flexDirection:'row',justifyContent:'center'},iconMaskFillerRect:{flex:1,backgroundColor:'#d8d8d8',marginLeft:-3},iconMask:{height:21,width:12,marginLeft:9,marginTop:-.5,alignSelf:'center',resizeMode:'contain',transform:[{scaleX:l.I18nManager.isRTL?-1:1}]},title:{bottom:0,top:0,position:'absolute',alignItems:'center',flexDirection:'row'},left:{left:0,bottom:0,top:0,position:'absolute',alignItems:'center',flexDirection:'row'},right:{right:0,bottom:0,top:0,position:'absolute',flexDirection:'row',alignItems:'center'},flexOne:{flex:1}}),g=(0,s.withOrientation)(h);n.default=g},336,[26,1,301,337,338,341,342,344]); +__d(function(e,t,l,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=babelHelpers.interopRequireDefault(t(i[0])),n=t(i[1]),o=n.Animated.Text,s=n.StyleSheet.create({title:{fontSize:20,fontWeight:'500',color:'rgba(0, 0, 0, .9)',marginHorizontal:16}}),b=function(e){var t=e.style,l=babelHelpers.objectWithoutProperties(e,["style"]);return a.default.createElement(o,babelHelpers.extends({numberOfLines:1},l,{style:[s.title,t],accessibilityTraits:"header",accessible:!1}))};r.default=b},337,[26,1]); +__d(function(e,t,r,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var l=babelHelpers.interopRequireDefault(t(a[0])),n=t(a[1]),o=babelHelpers.interopRequireDefault(t(a[2])),s=babelHelpers.interopRequireDefault(t(a[3])),u=(function(e){function t(){var e,r,i;babelHelpers.classCallCheck(this,t);for(var a=arguments.length,l=new Array(a),n=0;ni?u:a;return('left'===t||!0)&&!r?null:l.default.createElement(n.Text,{accessible:!1,onLayout:this._onTextLayout,style:[c.title,!!s&&{color:s},o],numberOfLines:1},d)}},{key:"render",value:function(){var e=this.props,t=e.onPress,r=e.pressColorAndroid,i=e.title,a=l.default.createElement(o.default,{accessible:!1,accessibilityComponentType:"button",accessibilityLabel:i,accessibilityTraits:"button",testID:"header-back",delayPressIn:0,onPress:t,pressColor:r,style:c.container,borderless:!0},l.default.createElement(n.View,{style:c.container},this._renderBackImage(),this._maybeRenderTitle()));return l.default.createElement(n.View,{style:c.androidButtonWrapper},a)}}]),babelHelpers.inherits(t,e),t})(l.default.PureComponent);u.defaultProps={pressColorAndroid:'rgba(0, 0, 0, .32)',tintColor:void 0,truncatedTitle:'Back'};var c=n.StyleSheet.create({androidButtonWrapper:{margin:13,backgroundColor:'transparent'},container:{alignItems:'center',flexDirection:'row',backgroundColor:'transparent'},title:{fontSize:17,paddingRight:10},icon:{height:24,width:24,margin:3,resizeMode:'contain',transform:[{scaleX:n.I18nManager.isRTL?-1:1}]},iconWithTitle:{}}),d=u;i.default=d},338,[26,1,339,340]); +__d(function(e,r,t,l,s){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var a=babelHelpers.interopRequireDefault(r(s[0])),o=r(s[1]),p=(function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(r).apply(this,arguments))}return babelHelpers.createClass(r,[{key:"render",value:function(){if(o.Platform.Version>=21){var e=this.props,r=e.style,t=babelHelpers.objectWithoutProperties(e,["style"]);return a.default.createElement(o.TouchableNativeFeedback,babelHelpers.extends({},t,{style:null,background:o.TouchableNativeFeedback.Ripple(this.props.pressColor,this.props.borderless)}),a.default.createElement(o.View,{style:r},a.default.Children.only(this.props.children)))}return a.default.createElement(o.TouchableOpacity,this.props,this.props.children)}}]),babelHelpers.inherits(r,e),r})(a.default.Component);l.default=p,p.defaultProps={borderless:!1,pressColor:'rgba(0, 0, 0, .32)'}},339,[26,1]); +__d(function(e,s,t,a,c){t.exports=s(c[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/node_modules/react-navigation-stack/dist/views/assets",width:24,height:24,scales:[1,1.5,2,3,4],hash:"a364dc7a784101f7c8f6791c7b4514ce",name:"back-icon",type:"png"})},340,[67]); +__d(function(e,t,a,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var l=babelHelpers.interopRequireDefault(t(n[0])),r=t(n[1]),o=babelHelpers.interopRequireDefault(t(n[2])),s=babelHelpers.interopRequireDefault(t(n[3])),u=(function(e){function t(){var e,a,i;babelHelpers.classCallCheck(this,t);for(var n=arguments.length,l=new Array(n),r=0;ra?u:i;d&&d.length>8&&(d=u);var b=this.props,f=b.ButtonContainerComponent,p=b.LabelContainerComponent;return l.default.createElement(o.default,{accessibilityComponentType:"button",accessibilityLabel:d,accessibilityTraits:"button",testID:"header-back",delayPressIn:0,onPress:t,style:c.container,borderless:!0},l.default.createElement(r.View,{style:c.container},l.default.createElement(f,null,this._renderBackImage()),'string'==typeof d&&l.default.createElement(p,null,l.default.createElement(r.Text,{onLayout:this._onTextLayout,style:[c.title,!!s&&{color:s},n],numberOfLines:1},d))))}}]),babelHelpers.inherits(t,e),t})(l.default.PureComponent);u.defaultProps={tintColor:'#037aff',truncatedTitle:'Back'};var c=r.StyleSheet.create({container:{alignItems:'center',flexDirection:'row',backgroundColor:'transparent'},title:{fontSize:17,paddingRight:10},icon:{height:21,width:12,marginLeft:9,marginRight:22,marginVertical:12,resizeMode:'contain',transform:[{scaleX:r.I18nManager.isRTL?-1:1}]},iconWithTitle:{marginRight:3}}),d=u;i.default=d},341,[26,1,339,340]); +__d(function(t,n,e,r,a){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(a[0]),o=babelHelpers.interopRequireDefault(n(a[1]));function u(t){return!t||null!==t.descriptor.options.header}var s=function(t,n,e,r){return{inputRange:[n,n+.001,e-.9,e-.2,e,r-.001,r],outputRange:[0,u(t[n])?0:1,u(t[n])?0:1,u(t[n])?.3:1,u(t[e])?1:0,u(t[r])?0:1,0]}};function f(t){return!t[t.length-1].isActive}var p=i.Dimensions.get('window').width/2-70-25;var l=i.Dimensions.get('window').width/2-70+25;var c=i.Dimensions.get('window').width;var d={forLayout:function(t){var n=t.layout,e=t.position,r=t.scene,a=t.scenes;if('float'!==t.mode)return{};var s=f(a),p=(0,o.default)(t);if(!p)return{};var l=p.first,c=p.last,d=r.index,g=n.initWidth||i.Dimensions.get('window').width;if(s&&!u(a[d])&&!u(a[c])||!s&&!u(a[l])&&!u(a[d]))return{transform:[{translateX:g}]};var v=i.I18nManager.isRTL?-1:1;return{transform:[{translateX:e.interpolate({inputRange:[l,d,c],outputRange:[v*(u(a[l])?0:g),v*(u(a[d])?0:s?g:-g),v*(u(a[c])?0:-g)]})}]}},forLeft:function(t){var n=t.position,e=t.scene,r=t.scenes,a=(0,o.default)(t);if(!a)return{opacity:0};var i=a.first,u=a.last,f=e.index;return{opacity:n.interpolate(s(r,i,f,u))}},forLeftButton:function(t){var n=t.position,e=t.scene,r=t.scenes,a=(0,o.default)(t);if(!a)return{opacity:0};var i=a.first,s=a.last,f=e.index,p=[i,i+.001,i+Math.abs(f-i)/2,f,s-Math.abs(s-f)/2,s-.001,s],l=[0,u(r[i])?0:1,u(r[i])?.1:1,u(r[f])?1:0,u(r[s])?.1:1,u(r[s])?0:1,0];return{opacity:n.interpolate({inputRange:p,outputRange:l})}},forLeftLabel:function(t){var n=t.position,e=t.scene,r=t.scenes,a=(0,o.default)(t);if(!a)return{opacity:0};var s=a.first,f=a.last,l=e.index,c=p;return{opacity:n.interpolate({inputRange:[s,s+.001,l-.35,l,l+.5,f-.001,f],outputRange:[0,u(r[s])?0:1,u(r[s])?0:1,u(r[l])?1:0,u(r[f])?.5:1,u(r[f])?0:1,0]}),transform:[{translateX:n.interpolate({inputRange:[s,s+.001,l,f-.001,f],outputRange:i.I18nManager.isRTL?[1.5*-c,u(r[s])?1.5*-c:0,0,u(r[f])?c:0,c]:[c,u(r[s])?c:0,0,u(r[f])?1.5*-c:0,1.5*-c]})}]}},forCenterFromLeft:function(t){var n=t.position,e=t.scene,r=t.scenes,a=(0,o.default)(t);if(!a)return{opacity:0};var s=a.first,f=a.last,p=e.index,c=l;return{opacity:n.interpolate({inputRange:[s,s+.001,p-.5,p,p+.7,f-.001,f],outputRange:[0,u(r[s])?0:1,u(r[s])?0:1,u(r[p])?1:0,u(r[f])?0:1,u(r[f])?0:1,0]}),transform:[{translateX:n.interpolate({inputRange:[s,s+.001,p,f-.001,f],outputRange:i.I18nManager.isRTL?[-c,u(r[s])?-c:0,0,u(r[f])?c:0,c]:[c,u(r[s])?c:0,0,u(r[f])?-c:0,-c]})}]}},forCenter:function(t){var n=t.position,e=t.scene,r=t.scenes,a=(0,o.default)(t);if(!a)return{opacity:0};var i=a.first,u=a.last,f=e.index;return{opacity:n.interpolate(s(r,i,f,u))}},forRight:function(t){var n=t.position,e=t.scene,r=t.scenes,a=(0,o.default)(t);if(!a)return{opacity:0};var i=a.first,u=a.last,f=e.index;return{opacity:n.interpolate(s(r,i,f,u))}},forBackground:function(){return null},forBackgroundWithTranslation:function(t){var n=t.position,e=t.scene,r=(0,o.default)(t);if(!r)return{opacity:0};var a=r.first,u=r.last,s=e.index,f=[c,0,-c];return{transform:[{translateX:n.interpolate({inputRange:[a,s,u],outputRange:i.I18nManager.isRTL?f.reverse():f})}]}}};r.default=d},342,[1,343]); +__d(function(e,n,t,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var f=function(e){var n=e.scene,t=e.scenes,i=n.index,r=t.length-1;if(!t[r].isActive){var f=t.findIndex(function(e){return e===n}),s=t.findIndex(function(e){return e.isActive}),a=t[s].index,d=t[r].index;return i!==a&&f===r?{first:Math.min(a,i-1),last:i+1}:i===a&&f===s?{first:i-1,last:Math.max(d,i+1)}:i===a||f>s?null:{first:i-1,last:i+1}}return{first:i-1,last:i+1}};i.default=f},343,[]); +__d(function(e,s,a,t,c){a.exports=s(c[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/node_modules/react-navigation-stack/dist/views/assets",width:48,height:82,scales:[1],hash:"755fce460f64aed4d3f3ac1a6249ceea",name:"back-icon-mask",type:"png"})},344,[67]); +__d(function(n,t,i,e,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a=t(o[0]),d=babelHelpers.interopRequireDefault(t(o[1])),l={transitionSpec:r=(0,t(o[2]).supportsImprovedSpringAnimation)()?{timing:a.Animated.spring,stiffness:1e3,damping:500,mass:3}:{duration:500,easing:a.Easing.bezier(.2833,.99,.31833,.99),timing:a.Animated.timing},screenInterpolator:d.default.forHorizontal,containerStyle:{backgroundColor:'#000'}},s={transitionSpec:r,screenInterpolator:d.default.forVertical,containerStyle:{backgroundColor:'#000'}},m={transitionSpec:{duration:350,easing:a.Easing.out(a.Easing.poly(5)),timing:a.Animated.timing},screenInterpolator:d.default.forFadeFromBottomAndroid},g={transitionSpec:{duration:230,easing:a.Easing.in(a.Easing.poly(4)),timing:a.Animated.timing},screenInterpolator:d.default.forFadeFromBottomAndroid};function u(n,t,i){return t&&n.index=50||0===e&&0===n}return!1}},347,[1]); +__d(function(e,t,n,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=babelHelpers.interopRequireDefault(t(s[0])),r=t(s[1]),o=babelHelpers.interopRequireDefault(t(s[2])),u=babelHelpers.interopRequireDefault(t(s[3])),l={duration:250,easing:r.Easing.inOut(r.Easing.ease),timing:r.Animated.timing},p=(function(e){function t(e,n){var i;babelHelpers.classCallCheck(this,t),(i=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,e,n)))._onLayout=function(e){var t=e.nativeEvent.layout,n=t.height,s=t.width;if(i.state.layout.initWidth!==s||i.state.layout.initHeight!==n){var a=babelHelpers.objectSpread({},i.state.layout,{initHeight:n,initWidth:s,isMeasured:!0});a.height.setValue(n),a.width.setValue(s);var r=babelHelpers.objectSpread({},i.state,{layout:a});i._transitionProps=c(i.props,r),i.setState(r)}},i._onTransitionEnd=function(){if(i._isMounted){var e=i._prevTransitionProps;i._prevTransitionProps=null;var t=h(i.state.scenes),n=babelHelpers.objectSpread({},i.state,{scenes:t});i._transitionProps=c(i.props,n),i.setState(n,function(){var t;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!i.props.onTransitionEnd){n.next=5;break}if(!((t=i.props.onTransitionEnd(i._transitionProps,e))instanceof Promise)){n.next=5;break}return n.next=5,regeneratorRuntime.awrap(t);case 5:i._queuedTransition?(i._startTransition(i._queuedTransition.nextProps,i._queuedTransition.nextScenes,i._queuedTransition.indexHasChanged),i._queuedTransition=null):i._isTransitionRunning=!1;case 6:case"end":return n.stop()}},null,this)})}};var s={height:new r.Animated.Value(0),initHeight:0,initWidth:0,isMeasured:!1,width:new r.Animated.Value(0)};return i.state={layout:s,position:new r.Animated.Value(i.props.navigation.state.index),progress:new r.Animated.Value(1),scenes:(0,u.default)([],i.props.navigation.state,null,i.props.descriptors)},i._prevTransitionProps=null,i._transitionProps=c(e,i.state),i._isMounted=!1,i._isTransitionRunning=!1,i._queuedTransition=null,i}return babelHelpers.createClass(t,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"componentWillReceiveProps",value:function(e){var t=(0,u.default)(this.state.scenes,e.navigation.state,this.props.navigation.state,e.descriptors);if(e.navigation.state.isTransitioning||(t=h(t)),e.screenProps!==this.props.screenProps&&this.setState({nextScenes:t}),t!==this.state.scenes){var n=e.navigation.state.index!==this.props.navigation.state.index;this._isTransitionRunning?this._queuedTransition={nextProps:e,nextScenes:t,indexHasChanged:n}:this._startTransition(e,t,n)}}},{key:"_startTransition",value:function(e,t,n){var i=this,s=babelHelpers.objectSpread({},this.state,{scenes:t}),a=s.position,o=s.progress;o.setValue(0),this._prevTransitionProps=this._transitionProps,this._transitionProps=c(e,s);var u=e.navigation.state.index;if(this._transitionProps.navigation.state.isTransitioning){var p=e.configureTransition?e.configureTransition(this._transitionProps,this._prevTransitionProps):null,d=babelHelpers.objectSpread({},l,p),h=d.timing;delete d.timing;var v=a.__getValue()!==u,f=n&&v?[h(o,babelHelpers.objectSpread({},d,{toValue:1})),h(a,babelHelpers.objectSpread({},d,{toValue:e.navigation.state.index}))]:[];this._isTransitionRunning=!0,this.setState(s,function(){var t;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.onTransitionStart){n.next=5;break}if(!((t=e.onTransitionStart(i._transitionProps,i._prevTransitionProps))instanceof Promise)){n.next=5;break}return n.next=5,regeneratorRuntime.awrap(t);case 5:r.Animated.parallel(f).start(i._onTransitionEnd);case 6:case"end":return n.stop()}},null,this)})}else this.setState(s,function(){var t;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!((t=e.onTransitionStart(i._transitionProps,i._prevTransitionProps))instanceof Promise)){n.next=4;break}return n.next=4,regeneratorRuntime.awrap(t);case 4:o.setValue(1),a.setValue(u),i._onTransitionEnd();case 7:case"end":return n.stop()}},null,this)})}},{key:"render",value:function(){return a.default.createElement(r.View,{onLayout:this._onLayout,style:f.main},this.props.render(this._transitionProps,this._prevTransitionProps))}}]),babelHelpers.inherits(t,e),t})(a.default.Component);function c(e,t){var n=e.navigation,i=t.layout,s=t.position,a=t.progress,r=t.scenes,u=r.find(v);return(0,o.default)(u,'Could not find active scene'),{layout:i,navigation:n,position:s,progress:a,scenes:r,scene:u,index:u.index}}function d(e){return!e.isStale}function h(e){var t=e.filter(d);return t.length===e.length?e:t}function v(e){return e.isActive}var f=r.StyleSheet.create({main:{flex:1}}),g=p;i.default=g},348,[26,1,335,349]); +__d(function(e,t,r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,r,n){if(e.forEach(function(e){var t=e.route;n&&n[t.key]&&(e.descriptor=n[t.key])}),r===t)return e;var i=new Map,o=new Map,s=new Map;e.forEach(function(e){var t=e.key;e.isStale&&s.set(t,e),i.set(t,e)});var l=new Set;t.routes.forEach(function(e,t){var r=u+e.key,i={index:t,isActive:!1,isStale:!1,key:r,route:e,descriptor:n&&n[e.key]};(0,a.default)(!l.has(r),"navigation.state.routes["+t+"].key \""+r+"\" conflicts with another route!"),l.add(r),s.has(r)&&s.delete(r),o.set(r,i)}),r&&r.routes.forEach(function(t,r){var i=u+t.key;if(!o.has(i)){var a=e.find(function(e){return e.route.key===t.key}),c=a?a.descriptor:n[t.key];c&&s.set(i,{index:r,isActive:!1,isStale:!0,key:i,route:t,descriptor:c})}});var d=[],v=function(e){var t=e.key,r=i.has(t)?i.get(t):null;r&&f(r,e)?d.push(r):d.push(e)};s.forEach(v),o.forEach(v),d.sort(c);var y=0;if(d.forEach(function(e,r){var n=!e.isStale&&e.index===t.index;n!==e.isActive&&(d[r]=babelHelpers.objectSpread({},e,{isActive:n})),n&&y++}),(0,a.default)(1===y,'there should always be only one scene active, not %s.',y),d.length!==e.length)return d;if(d.some(function(t,r){return!f(e[r],t)}))return d;return e};var a=babelHelpers.interopRequireDefault(t(i[0])),o=babelHelpers.interopRequireDefault(t(i[1])),u='scene_';function s(e,t){var r=e.length-t.length;return r>0?1:r<0?-1:e>t?1:-1}function c(e,t){return e.index>t.index?1:e.index1&&void 0!==arguments[1]?arguments[1]:{},l=(0,d.default)(e,t);return(0,a.default)(l)};u.default=f},351,[302,352]); +__d(function(e,l,r,t,u){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;babelHelpers.interopRequireDefault(l(u[0]));var a=babelHelpers.interopRequireDefault(l(u[1])),i=babelHelpers.interopRequireDefault(l(u[2])),f=babelHelpers.interopRequireDefault(l(u[3]));var n=function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,i.default)(e,l);return(0,a.default)(f.default,r,l)};t.default=n},352,[26,319,353,359]); +__d(function(e,r,t,a,n){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=babelHelpers.interopRequireDefault(r(n[0])),u=babelHelpers.interopRequireDefault(r(n[1])),i=babelHelpers.interopRequireDefault(r(n[2])),l=babelHelpers.interopRequireDefault(r(n[3])),s=babelHelpers.interopRequireDefault(r(n[4])),b=babelHelpers.interopRequireDefault(r(n[5])),d=r(n[6]),p=function(e,r){return{}};a.default=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,b.default)(e);var t=r.order||Object.keys(e),a=r.getCustomActionCreators||p,n=r.initialRouteParams,f=r.initialRouteName||t[0],c='initialRoute'===(r.backBehavior||'none'),m=!r.hasOwnProperty('resetOnBlur')||r.resetOnBlur,v=t.indexOf(f),S={};t.forEach(function(r){e[r],S[r]=null;var t=(0,u.default)(e,r);t.router&&(S[r]=t.router)});var A=(0,d.createPathParser)(S,e,r.paths),H=A.getPathAndParamsForRoute,x=A.getActionForPathAndParams;if(-1===v)throw new Error("Invalid initialRouteName '"+f+"'.Should be one of "+t.map(function(e){return"\""+e+"\""}).join(', '));function y(e){var r=e===f?n:void 0,t=S[e];if(t){var a=l.default.init();return babelHelpers.objectSpread({},t.getStateForAction(a),{key:e,routeName:e,params:r})}return{key:e,routeName:e,params:r}}function g(e,r){if(!e)return r;if(e.index!==r.index&&m){var t=e.routes[e.index].routeName,a=babelHelpers.toConsumableArray(r.routes);return a[e.index]=y(t),babelHelpers.objectSpread({},r,{routes:a})}return r}return{childRouters:S,getActionCreators:function(e,r){return a(e,r)},getStateForAction:function(e,r){var a=r?babelHelpers.objectSpread({},r):r,o=r||{routes:t.map(y),index:v,isTransitioning:!1},u=o.index;if(e.type===l.default.INIT){var i=e.params;i&&(o.routes=o.routes.map(function(e){return babelHelpers.objectSpread({},e,{params:babelHelpers.objectSpread({},e.params,i,e.routeName===f?n:null)})}))}var b=o.routes[o.index],d=S[t[o.index]];if(d){var p=d.getStateForAction(e,b);if(!p&&r)return null;if(p&&p!==b){var m=babelHelpers.toConsumableArray(o.routes);return m[o.index]=p,g(a,babelHelpers.objectSpread({},o,{routes:m}))}}var A=null==e.key||e.key===b.key;if(e.type===l.default.BACK){if(!A||!c)return o;u=v}var H=!1;if(e.type===l.default.NAVIGATE&&(H=!!t.find(function(r,t){return r===e.routeName&&(u=t,!0)}))){var x,h=o.routes[u],j=S[e.routeName];if(e.action?x=j?j.getStateForAction(e.action,h):null:!e.action&&e.params&&(x=babelHelpers.objectSpread({},h,{params:babelHelpers.objectSpread({},h.params||{},e.params)})),x&&x!==h){var P=babelHelpers.toConsumableArray(o.routes);return P[u]=x,g(a,babelHelpers.objectSpread({},o,{routes:P,index:u}))}if(!x&&o.index===u&&a)return null}if(e.type===l.default.SET_PARAMS){var R=e.key,C=o.routes.find(function(e){return e.key===R});if(C){var N=babelHelpers.objectSpread({},C.params,e.params),F=babelHelpers.toConsumableArray(o.routes);return F[o.routes.indexOf(C)]=babelHelpers.objectSpread({},C,{params:N}),g(a,babelHelpers.objectSpread({},o,{routes:F}))}}if(u!==o.index)return g(a,babelHelpers.objectSpread({},o,{index:u}));if(H&&!r)return o;if(H)return babelHelpers.objectSpread({},o);var O,k=o.index,T=o.routes;return t.find(function(r,t){var a=S[r];if(t===k)return!1;var n=T[t];return a&&(n=a.getStateForAction(e,n)),n?n!==T[t]&&((T=babelHelpers.toConsumableArray(T))[t]=n,k=t,!0):(k=t,!0)}),O=e.type,[l.default.SET_PARAMS,s.default.COMPLETE_TRANSITION].includes(O)&&(k=o.index),k!==o.index||T!==o.routes?g(a,babelHelpers.objectSpread({},o,{index:k,routes:T})):o},getComponentForState:function(r){var t=r.routes[r.index].routeName;(0,o.default)(t,"There is no route defined for index "+r.index+". Check that\n that you passed in a navigation state with a valid tab/screen index.");var a=S[t];return a?a.getComponentForState(r.routes[r.index]):(0,u.default)(e,t)},getComponentForRouteName:function(r){return(0,u.default)(e,r)},getPathAndParamsForState:function(e){var r=e.routes[e.index];return H(r)},getActionForPathAndParams:function(e,r){return x(e,r)},getScreenOptions:(0,i.default)(e,r.navigationOptions)}}},353,[307,354,355,304,357,358,312]); +__d(function(e,n,r,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,n){var r=e[n];if(!r)throw new Error("There is no route defined for key "+n+".\nMust be one of: "+Object.keys(e).map(function(e){return"'"+e+"'"}).join(','));if(r.screen)return r.screen;if('function'==typeof r.getScreen){var t=r.getScreen();return(0,o.default)('function'==typeof t,"The getScreen defined for route '"+n+" didn't return a valid screen or navigator.\n\nPlease pass it like this:\n"+n+": {\n getScreen: () => require('./MyScreen').default\n}"),t}return r};var o=babelHelpers.interopRequireDefault(n(i[0]))},354,[307]); +__d(function(e,t,a,o,n){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=babelHelpers.interopRequireDefault(t(n[0])),u=babelHelpers.interopRequireDefault(t(n[1])),i=babelHelpers.interopRequireDefault(t(n[2]));function l(e,t,a){return'function'==typeof e?babelHelpers.objectSpread({},t,e(babelHelpers.objectSpread({},a,{navigationOptions:t}))):'object'==typeof e?babelHelpers.objectSpread({},t,e):t}o.default=function(e,t){return function(a,o){var n=a.state,p=(a.dispatch,n);(0,r.default)(p.routeName&&'string'==typeof p.routeName,'Cannot get config because the route does not have a routeName.');var b=(0,u.default)(e,p.routeName),f=e[p.routeName],s=f===b?null:f.navigationOptions,c=b.navigationOptions,d={navigation:a,screenProps:o||{}},v=l(t,{},d);return v=l(s,v=l(c,v,d),d),(0,i.default)(v,p),v}}},355,[307,354,356]); +__d(function(n,e,t,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var a=['tabBar'];o.default=function(n,e){var t=Object.keys(n).find(function(n){return a.includes(n)});if('function'==typeof n.title)throw new Error(["`title` cannot be defined as a function in navigation options for `"+e.routeName+"` screen. \n",'Try replacing the following:','{',' title: ({ state }) => state...','}','','with:','({ navigation }) => ({',' title: navigation.state...','})'].join('\n'));if(t&&'function'==typeof n[t])throw new Error(["`"+t+"` cannot be defined as a function in navigation options for `"+e.routeName+"` screen. \n",'Try replacing the following:','{'," "+t+": ({ state }) => ({",' key: state...',' })','}','','with:','({ navigation }) => ({'," "+t+"Key: navigation.state...",'})'].join('\n'));if(t&&'object'==typeof n[t])throw new Error(["Invalid key `"+t+"` defined in navigation options for `"+e.routeName+"` screen.",'\n','Try replacing the following navigation options:','{'," "+t+": {"].concat(babelHelpers.toConsumableArray(Object.keys(n[t]).map(function(n){return" "+n+": ...,"})),[' },','}','\n','with:','{'],babelHelpers.toConsumableArray(Object.keys(n[t]).map(function(n){return" "+(t+n[0].toUpperCase()+n.slice(1))+": ...,"})),['}']).join('\n'))}},356,[]); +__d(function(e,t,a,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r='Navigation/POP',i='Navigation/PUSH',p='Navigation/RESET',P={POP:r,POP_TO_TOP:"Navigation/POP_TO_TOP",PUSH:i,RESET:p,REPLACE:"Navigation/REPLACE",COMPLETE_TRANSITION:"Navigation/COMPLETE_TRANSITION",pop:function(e){return babelHelpers.objectSpread({type:r},e)},popToTop:function(e){return babelHelpers.objectSpread({type:"Navigation/POP_TO_TOP"},e)},push:function(e){return babelHelpers.objectSpread({type:i},e)},reset:function(e){return babelHelpers.objectSpread({type:p},e)},replace:function(e){return babelHelpers.objectSpread({type:"Navigation/REPLACE"},e)},completeTransition:function(e){return babelHelpers.objectSpread({type:"Navigation/COMPLETE_TRANSITION"},e)}};n.default=P},357,[]); +__d(function(e,n,r,o,t){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var a=babelHelpers.interopRequireDefault(n(t[0]));function c(e){return e?e.screen?e.screen:e:null}var i=function(e){var n=Object.keys(e);(0,a.default)(n.length>0,'Please specify at least one route when configuring a navigator.'),n.forEach(function(n){var r=e[n],o=c(r);if(!o||'function'!=typeof o&&'string'!=typeof o&&!r.getScreen)throw new Error("The component for route '"+n+"' must be a React component. For example:\n\nimport MyScreen from './MyScreen';\n...\n"+n+": MyScreen,\n}\n\nYou can also use a navigator:\n\nimport MyNavigator from './MyNavigator';\n...\n"+n+": MyNavigator,\n}");if(r.screen&&r.getScreen)throw new Error("Route '"+n+"' should declare a screen or a getScreen, not both.")})};o.default=i},358,[307]); +__d(function(e,t,r,n,s){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=babelHelpers.interopRequireDefault(t(s[0])),l=babelHelpers.interopRequireDefault(t(s[1])),o=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props.navigation.state,t=e.routes[e.index].key,r=this.props.descriptors[t],n=r.getComponent();return a.default.createElement(l.default,{component:n,navigation:r.navigation,screenProps:this.props.screenProps})}}]),babelHelpers.inherits(t,e),t})(a.default.Component);n.default=o},359,[26,360]); +__d(function(e,t,r,a,l){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=babelHelpers.interopRequireDefault(t(l[0])),o=t(l[1]),s=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props,t=e.screenProps,r=e.component,a=e.navigation;return n.default.createElement(o.NavigationProvider,{value:a},n.default.createElement(r,{screenProps:t,navigation:a}))}}]),babelHelpers.inherits(t,e),t})(n.default.PureComponent);a.default=s},360,[26,321]); +__d(function(e,r,t,a,u){t.exports={get createDrawerNavigator(){return r(u[0]).default},get DrawerRouter(){return r(u[1]).default},get DrawerActions(){return r(u[2]).default},get DrawerNavigatorItems(){return r(u[3]).default},get DrawerSidebar(){return r(u[4]).default},get DrawerView(){return r(u[5]).default}}},361,[362,363,364,369,367,365]); +__d(function(e,t,a,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=babelHelpers.interopRequireDefault(t(i[0])),n=t(i[1]),l=t(i[2]),u=babelHelpers.interopRequireDefault(t(i[3])),s=babelHelpers.interopRequireDefault(t(i[4])),c=babelHelpers.interopRequireDefault(t(i[5])),d={drawerWidth:function(){var e=n.Dimensions.get('window'),t=e.height,a=e.width,r=Math.min(t,a),i=r>=600?320:280;return Math.min(r-56,i)},contentComponent:function(e){return o.default.createElement(n.ScrollView,{alwaysBounceVertical:!1},o.default.createElement(l.SafeAreaView,{forceInset:{top:'always',horizontal:'never'}},o.default.createElement(c.default,e)))},drawerPosition:'left',drawerBackgroundColor:'white',useNativeAnimations:!0},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=babelHelpers.objectSpread({},d,t),r=a.order,i=a.paths,o=a.initialRouteName,n=a.initialRouteParams,c=a.backBehavior,f=a.getCustomActionCreators,b=babelHelpers.objectWithoutProperties(a,["order","paths","initialRouteName","initialRouteParams","backBehavior","getCustomActionCreators"]),p={order:r,paths:i,initialRouteName:o,initialRouteParams:n,backBehavior:c,getCustomActionCreators:f},m=(0,u.default)(e,p),h=(0,l.createNavigator)(s.default,m,b);return(0,l.createNavigationContainer)(h)};r.default=f},362,[26,1,301,363,365,369]); +__d(function(e,r,t,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var l=r(a[0]),n=babelHelpers.interopRequireDefault(r(a[1]));function u(e,r,t){return e.hasOwnProperty(r)&&void 0!==e[r]?e:(e[r]=t,e)}var d=function e(r){return r.routes&&r.routes[r.index]?e(r.routes[r.index]):r.key};o.default=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r=u(r=u(r=babelHelpers.objectSpread({},r),'resetOnBlur',!1),'backBehavior','initialRoute');var t=(0,l.SwitchRouter)(e,r);return babelHelpers.objectSpread({},t,{getActionCreators:function(e,r){return babelHelpers.objectSpread({openDrawer:function(){return n.default.openDrawer({key:r})},closeDrawer:function(){return n.default.closeDrawer({key:r})},toggleDrawer:function(){return n.default.toggleDrawer({key:r})}},t.getActionCreators(e,r))},getStateForAction:function(e,r){if(!r)return babelHelpers.objectSpread({},t.getStateForAction(e,void 0),{isDrawerOpen:!1,openId:0,closeId:0,toggleId:0});if(null==e.key||e.key===r.key){if(e.type===n.default.DRAWER_CLOSED)return babelHelpers.objectSpread({},r,{isDrawerOpen:!1});if(e.type===n.default.DRAWER_OPENED)return babelHelpers.objectSpread({},r,{isDrawerOpen:!0});if(e.type===n.default.CLOSE_DRAWER)return babelHelpers.objectSpread({},r,{closeId:r.closeId+1});if(e.type===l.NavigationActions.BACK&&r.isDrawerOpen)return babelHelpers.objectSpread({},r,{closeId:r.closeId+1});if(e.type===n.default.OPEN_DRAWER)return babelHelpers.objectSpread({},r,{openId:r.openId+1});if(e.type===n.default.TOGGLE_DRAWER)return babelHelpers.objectSpread({},r,{toggleId:r.toggleId+1})}var o=t.getStateForAction(e,r);return null===o?null:o!==r?d(o)!==d(r)?babelHelpers.objectSpread({},o,{closeId:r.closeId+1}):o:r}})}},363,[301,364]); +__d(function(e,a,E,t,R){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={OPEN_DRAWER:"Navigation/OPEN_DRAWER",CLOSE_DRAWER:"Navigation/CLOSE_DRAWER",TOGGLE_DRAWER:"Navigation/TOGGLE_DRAWER",DRAWER_OPENED:'Navigation/DRAWER_OPENED',DRAWER_CLOSED:'Navigation/DRAWER_CLOSED',openDrawer:function(e){return babelHelpers.objectSpread({type:"Navigation/OPEN_DRAWER"},e)},closeDrawer:function(e){return babelHelpers.objectSpread({type:"Navigation/CLOSE_DRAWER"},e)},toggleDrawer:function(e){return babelHelpers.objectSpread({type:"Navigation/TOGGLE_DRAWER"},e)}};t.default=i},364,[]); +__d(function(e,t,n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=babelHelpers.interopRequireDefault(t(o[0])),a=t(o[1]),s=babelHelpers.interopRequireDefault(t(o[2])),p=t(o[3]),d=babelHelpers.interopRequireDefault(t(o[4])),l=babelHelpers.interopRequireDefault(t(o[5])),u=(function(e){function t(){var e,n,r;babelHelpers.classCallCheck(this,t);for(var o=arguments.length,a=new Array(o),s=0;s=21){var e=this.props,r=e.style,t=babelHelpers.objectWithoutProperties(e,["style"]);return a.default.createElement(o.TouchableNativeFeedback,babelHelpers.extends({},t,{style:null,background:o.TouchableNativeFeedback.Ripple(this.props.pressColor,this.props.borderless)}),a.default.createElement(o.View,{style:r},a.default.Children.only(this.props.children)))}return a.default.createElement(o.TouchableOpacity,this.props,this.props.children)}}]),babelHelpers.inherits(r,e),r})(a.default.Component);l.default=p,p.defaultProps={borderless:!1,pressColor:'rgba(0, 0, 0, .32)'}},370,[26,1]); +__d(function(e,a,r,t,l){var u=babelHelpers.interopRequireDefault(a(l[0])),b=babelHelpers.interopRequireDefault(a(l[1])),i=babelHelpers.interopRequireDefault(a(l[2])),o=babelHelpers.interopRequireDefault(a(l[3]));r.exports={createTabNavigator:u.default,TabView:b.default,TabBarBottom:i.default,TabBarTop:o.default}},371,[372,373,386,384]); +__d(function(e,a,t,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;babelHelpers.interopRequireDefault(a(i[0])),a(i[1]);var r=a(i[2]),n=babelHelpers.interopRequireDefault(a(i[3])),l=babelHelpers.interopRequireDefault(a(i[4])),b=function e(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=babelHelpers.objectSpread({},e.Presets.Default,t),i=(0,r.TabRouter)(a,o),l=(0,r.createNavigator)(n.default,i,o);return(0,r.createNavigationContainer)(l)},d={iOSBottomTabs:{tabBarComponent:babelHelpers.interopRequireDefault(a(i[5])).default,tabBarPosition:'bottom',swipeEnabled:!1,animationEnabled:!1,initialLayout:void 0},AndroidTopTabs:{tabBarComponent:l.default,tabBarPosition:'top',swipeEnabled:!0,animationEnabled:!0,initialLayout:void 0}};b.Presets={iOSBottomTabs:d.iOSBottomTabs,AndroidTopTabs:d.AndroidTopTabs,Default:d.AndroidTopTabs};var u=b;o.default=u},372,[26,1,301,373,384,386]); +__d(function(e,t,n,r,a){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=babelHelpers.interopRequireDefault(t(a[0])),i=t(a[1]),s=t(a[2]),p=t(a[3]),l=(function(e){function t(){var e,n,r;babelHelpers.classCallCheck(this,t);for(var a=arguments.length,i=new Array(a),l=0;l1&&void 0!==arguments[1])||arguments[1],a=n._viewPager;if(a){var i=n._getPageIndex(e);!1===n.props.animationEnabled||!1===t?a.setPageWithoutAnimation(i):a.setPage(i)}},n._handlePageChange=function(e,t){n._isIdle&&n._currentIndex!==e&&(n._setPage(e,t),n._currentIndex=e)},n._handlePageScroll=function(e){n.props.offsetX.setValue(e.nativeEvent.position*n.props.layout.width*(o.I18nManager.isRTL?1:-1)),n.props.panX.setValue(e.nativeEvent.offset*n.props.layout.width*(o.I18nManager.isRTL?1:-1))},n._handlePageScrollStateChanged=function(e){n._isIdle='idle'===e;var t=n._currentIndex,a=n.props.navigationState.routes[t];switch(n.props.canJumpToTab(a)?n.props.jumpTo(a.key):(n._setPage(n.props.navigationState.index),n._currentIndex=n.props.navigationState.index),e){case'dragging':n.props.onSwipeStart&&n.props.onSwipeStart();break;case'settling':n.props.onSwipeEnd&&n.props.onSwipeEnd();break;case'idle':n.props.onAnimationEnd&&n.props.onAnimationEnd()}},n._handlePageSelected=function(e){var t=n._getPageIndex(e.nativeEvent.position);n._currentIndex=t},n._setRef=function(e){return n._viewPager=e},n._currentIndex=n.props.navigationState.index,n}return babelHelpers.createClass(t,[{key:"componentDidUpdate",value:function(e){e.navigationState.routes!==this.props.navigationState.routes||e.layout.width!==this.props.layout.width?this._handlePageChange(this.props.navigationState.index,!1):e.navigationState.index!==this.props.navigationState.index&&this._handlePageChange(this.props.navigationState.index)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.navigationState,a=e.swipeEnabled,i=e.keyboardDismissMode,s=r.Children.map(t,function(e,t){return r.createElement(o.View,{key:n.routes[t].key,testID:n.routes[t].testID,style:p.page},e)});o.I18nManager.isRTL&&s.reverse();var l=this._getPageIndex(n.index);return r.createElement(o.ViewPagerAndroid,{key:n.routes.length,keyboardDismissMode:i,initialPage:l,scrollEnabled:!1!==a,onPageScroll:this._handlePageScroll,onPageScrollStateChanged:this._handlePageScrollStateChanged,onPageSelected:this._handlePageSelected,style:p.container,ref:this._setRef},s)}}]),babelHelpers.inherits(t,e),t})(r.Component);a.default=l,l.propTypes=s.PagerRendererPropType,l.defaultProps={canJumpToTab:function(){return!0},keyboardDismissMode:'on-drag'};var p=o.StyleSheet.create({container:{flexGrow:1},page:{overflow:'hidden'}})},377,[26,1,376]); +__d(function(t,e,n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var a=babelHelpers.interopRequireWildcard(e(i[0])),l=e(i[1]),r=e(i[2]),s=(function(e){function n(e){var o;babelHelpers.classCallCheck(this,n),(o=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(n).call(this,e)))._isIdle=!0,o._isInitial=!0,o._setInitialPage=function(){o.props.layout.width&&(o._isInitial=!0,o._scrollTo(o.props.navigationState.index*o.props.layout.width,!1)),setTimeout(function(){o._isInitial=!1},50)},o._scrollTo=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];o._isIdle&&o._scrollView&&o._scrollView.scrollTo({x:t,animated:e&&!1!==o.props.animationEnabled})},o._handleMomentumScrollEnd=function(e){var n=Math.round(e.nativeEvent.contentOffset.x/o.props.layout.width),i=o.props.navigationState.routes[n];o.props.canJumpToTab(i)?(o.props.jumpTo(i.key),o.props.onAnimationEnd&&o.props.onAnimationEnd()):t.requestAnimationFrame(function(){o._scrollTo(o.props.navigationState.index*o.props.layout.width)})},o._handleScroll=function(e){if(!o._isInitial&&0!==e.nativeEvent.contentSize.width){var n=o.props,i=n.navigationState,a=n.layout,l=i.index*a.width;o.props.offsetX.setValue(-l),o.props.panX.setValue(l-e.nativeEvent.contentOffset.x),t.cancelAnimationFrame(o._idleCallback),o._isIdle=!1,o._idleCallback=t.requestAnimationFrame(function(){o._isIdle=!0})}};var i=o.props,a=i.navigationState,l=i.layout;return o.state={initialOffset:{x:a.index*l.width,y:0}},o}return babelHelpers.createClass(n,[{key:"componentDidMount",value:function(){this._setInitialPage()}},{key:"componentDidUpdate",value:function(t){var e=this.props.navigationState.index*this.props.layout.width;t.navigationState.routes!==this.props.navigationState.routes||t.layout.width!==this.props.layout.width?this._scrollTo(e,!1):t.navigationState.index!==this.props.navigationState.index&&this._scrollTo(e)}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,o=e.layout,i=e.navigationState,r=e.onSwipeStart,s=e.onSwipeEnd;return a.createElement(l.ScrollView,{horizontal:!0,pagingEnabled:!0,directionalLockEnabled:!0,keyboardDismissMode:"on-drag",keyboardShouldPersistTaps:"always",overScrollMode:"never",scrollEnabled:this.props.swipeEnabled,automaticallyAdjustContentInsets:!1,bounces:!1,alwaysBounceHorizontal:!1,scrollsToTop:!1,showsHorizontalScrollIndicator:!1,scrollEventThrottle:1,onScroll:this._handleScroll,onScrollBeginDrag:r,onScrollEndDrag:s,onMomentumScrollEnd:this._handleMomentumScrollEnd,contentOffset:this.state.initialOffset,style:p.container,contentContainerStyle:o.width?null:p.container,ref:function(e){return t._scrollView=e}},a.Children.map(n,function(t,e){return a.createElement(l.View,{key:i.routes[e].key,testID:i.routes[e].testID,style:o.width?{width:o.width,overflow:'hidden'}:e===i.index?p.page:null},e===i.index||o.width?t:null)}))}}]),babelHelpers.inherits(n,e),n})(a.Component);o.default=s,s.propTypes=r.PagerRendererPropType,s.defaultProps={canJumpToTab:function(){return!0}};var p=l.StyleSheet.create({container:{flex:1},page:{flex:1,overflow:'hidden'}})},378,[26,1,376]); +__d(function(e,t,n,a,o){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=babelHelpers.interopRequireWildcard(t(o[0])),r=babelHelpers.interopRequireDefault(t(o[1])),s=t(o[2]),p=t(o[3]),l=12,d={timing:s.Animated.spring,tension:300,friction:35},u=(function(e){function t(e){var n;return babelHelpers.classCallCheck(this,t),(n=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,e)))._isMovingHorizontally=function(e,t){return Math.abs(t.dx)>Math.abs(2*t.dy)&&Math.abs(t.vx)>Math.abs(2*t.vy)},n._canMoveScreen=function(e,t){if(!1===n.props.swipeEnabled)return!1;var a=n.props.navigationState.routes;return n._isMovingHorizontally(e,t)&&(t.dx>=l&&n._currentIndex>0||t.dx<=-12&&n._currentIndex0&&i<=0||t.dx<0&&i>=o.length-1||n.props.panX.setValue(t.dx)},n._finishGesture=function(e,t){var a=n.props,o=a.navigationState,i=a.layout,r=a.swipeDistanceThreshold,s=void 0===r?i.width/1.75:r,p=n.props.swipeVelocityThreshold,l=void 0===p?.15:p;n.props.onSwipeEnd&&n.props.onSwipeEnd(),l/=1e6;var d='number'==typeof n._pendingIndex?n._pendingIndex:n._currentIndex,u=d;Math.abs(t.dx)>Math.abs(t.dy)&&Math.abs(t.vx)>Math.abs(t.vy)&&(Math.abs(t.dx)>s||Math.abs(t.vx)>l)&&(u=Math.round(Math.min(Math.max(0,d-t.dx/Math.abs(t.dx)),o.routes.length-1)),n._currentIndex=u),isFinite(u)&&n.props.canJumpToTab(n.props.navigationState.routes[u])||(u=d),n._transitionTo(u)},n._transitionTo=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=-e*n.props.layout.width;if(!1===n.props.animationEnabled||!1===t)return n.props.panX.setValue(0),void n.props.offsetX.setValue(a);var o=d.timing,i=babelHelpers.objectWithoutProperties(d,["timing"]);s.Animated.parallel([o(n.props.panX,babelHelpers.objectSpread({},i,{toValue:0})),o(n.props.offsetX,babelHelpers.objectSpread({},i,{toValue:a}))]).start(function(t){if(t.finished){var a=n.props.navigationState.routes[e];n.props.jumpTo(a.key),n.props.onAnimationEnd&&n.props.onAnimationEnd(),n._pendingIndex=null}}),n._pendingIndex=e},n._currentIndex=n.props.navigationState.index,n}return babelHelpers.createClass(t,[{key:"componentWillMount",value:function(){this._panResponder=s.PanResponder.create({onMoveShouldSetPanResponder:this._canMoveScreen,onMoveShouldSetPanResponderCapture:this._canMoveScreen,onPanResponderGrant:this._startGesture,onPanResponderMove:this._respondToGesture,onPanResponderTerminate:this._finishGesture,onPanResponderRelease:this._finishGesture,onPanResponderTerminationRequest:function(){return!0}})}},{key:"componentDidUpdate",value:function(e){this._currentIndex=this.props.navigationState.index,e.navigationState.routes!==this.props.navigationState.routes||e.layout.width!==this.props.layout.width?this._transitionTo(this.props.navigationState.index,!1):e.navigationState.index!==this.props.navigationState.index&&this._transitionTo(this.props.navigationState.index)}},{key:"render",value:function(){var e=this.props,t=e.panX,n=e.offsetX,a=e.navigationState,o=e.layout,r=e.children,p=o.width,l=a.routes,d=p*(l.length-1),u=s.Animated.add(t,n).interpolate({inputRange:[-d,0],outputRange:[-d,0],extrapolate:'clamp'});return i.createElement(s.Animated.View,babelHelpers.extends({style:[h.sheet,p?{width:l.length*p,transform:[{translateX:u}]}:null]},this._panResponder.panHandlers),i.Children.map(r,function(e,t){return i.createElement(s.View,{key:a.routes[t].key,testID:a.routes[t].testID,style:p?{width:p}:t===a.index?s.StyleSheet.absoluteFill:null},t===a.index||p?e:null)}))}}]),babelHelpers.inherits(t,e),t})(i.Component);a.default=u,u.propTypes=babelHelpers.objectSpread({},p.PagerRendererPropType,{swipeDistanceThreshold:r.default.number,swipeVelocityThreshold:r.default.number}),u.defaultProps={canJumpToTab:function(){return!0},initialLayout:{height:0,width:0}};var h=s.StyleSheet.create({sheet:{flex:1,flexDirection:'row',alignItems:'stretch'}})},379,[26,43,1,376]); +__d(function(e,t,n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var r=babelHelpers.interopRequireWildcard(t(i[0])),o=babelHelpers.interopRequireDefault(t(i[1])),s=t(i[2]),p=t(i[3]),l={timing:s.Animated.spring,tension:75,friction:25},d=(function(e){function t(){var e,n,a;babelHelpers.classCallCheck(this,t);for(var i=arguments.length,r=new Array(i),o=0;oMath.abs(h)&&Math.abs(v)>Math.abs(b)&&(Math.abs(u)>s||Math.abs(v)>l)&&(f=Math.round(Math.min(Math.max(0,c-u/Math.abs(u)),i.routes.length-1))),isFinite(f)&&a.props.canJumpToTab(a.props.navigationState.routes[f])||(f=c),a._transitionTo(f,v)}},a._transitionTo=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=-e*a.props.layout.width;if(!1===a.props.animationEnabled||!1===n)return a.props.panX.setValue(0),void a.props.offsetX.setValue(i);var r=l.timing,o=babelHelpers.objectWithoutProperties(l,["timing"]),p=a.props.useNativeDriver;s.Animated.parallel([r(a.props.panX,babelHelpers.objectSpread({},o,{toValue:0,velocity:t,useNativeDriver:p})),r(a.props.offsetX,babelHelpers.objectSpread({},o,{toValue:i,velocity:t,useNativeDriver:p}))]).start(function(t){if(t.finished){var n=a.props.navigationState.routes[e];a.props.jumpTo(n.key),a.props.onAnimationEnd&&a.props.onAnimationEnd(),a._pendingIndex=null}}),a._pendingIndex=e},n))}return babelHelpers.createClass(t,[{key:"componentDidUpdate",value:function(e){e.navigationState.routes!==this.props.navigationState.routes||e.layout.width!==this.props.layout.width?this._transitionTo(this.props.navigationState.index,void 0,!1):e.navigationState.index!==this.props.navigationState.index&&this._transitionTo(this.props.navigationState.index)}},{key:"render",value:function(){var e=this.props,t=e.GestureHandler,n=e.panX,a=e.offsetX,i=e.layout,o=e.navigationState,p=e.swipeEnabled,l=e.children,d=i.width,h=o.routes,v=d*(h.length-1),b=s.Animated.add(n,a).interpolate({inputRange:[-v,0],outputRange:[-v,0],extrapolate:'clamp'});return r.createElement(t.PanGestureHandler,{enabled:0!==i.width&&!1!==p,minDeltaX:10,onGestureEvent:s.Animated.event([{nativeEvent:{translationX:this.props.panX}}],{useNativeDriver:this.props.useNativeDriver}),onHandlerStateChange:this._handleHandlerStateChange},r.createElement(s.Animated.View,{style:[u.sheet,d?{width:h.length*d,transform:[{translateX:b}]}:null]},r.Children.map(l,function(e,t){return r.createElement(s.View,{key:o.routes[t].key,testID:o.routes[t].testID,style:d?{width:d}:t===o.index?s.StyleSheet.absoluteFill:null},t===o.index||d?e:null)})))}}]),babelHelpers.inherits(t,e),t})(r.Component);a.default=d,d.propTypes=babelHelpers.objectSpread({},p.PagerRendererPropType,{swipeDistanceThreshold:o.default.number,swipeVelocityThreshold:o.default.number,GestureHandler:o.default.object}),d.defaultProps={GestureHandler:e.__expo&&e.__expo.DangerZone?e.__expo.DangerZone.GestureHandler:void 0,canJumpToTab:function(){return!0}};var u=s.StyleSheet.create({sheet:{flex:1,flexDirection:'row',alignItems:'stretch'}})},380,[26,43,1,376]); +__d(function(e,t,n,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var l=babelHelpers.interopRequireWildcard(t(a[0])),r=babelHelpers.interopRequireDefault(t(a[1])),i=t(a[2]),s=babelHelpers.interopRequireDefault(t(a[3])),c=t(a[4]),p=Boolean(i.NativeModules.NativeAnimatedModule),d=(function(t){function n(t){var o;babelHelpers.classCallCheck(this,n),(o=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(n).call(this,t)))._isIntial=!0,o._isManualScroll=!1,o._isMomentumScroll=!1,o._startTrackingPosition=function(){o._offsetXListener=o.props.offsetX.addListener(function(e){var t=e.value;o._lastOffsetX=t,o._handlePosition()}),o._panXListener=o.props.panX.addListener(function(e){var t=e.value;o._lastPanX=t,o._handlePosition()})},o._stopTrackingPosition=function(){o.props.offsetX.removeListener(o._offsetXListener),o.props.panX.removeListener(o._panXListener)},o._handlePosition=function(){var e=o.props,t=e.navigationState,n=e.layout;if(0!==n.width){var a=(('number'==typeof o._lastPanX?o._lastPanX:0)+('number'==typeof o._lastOffsetX?o._lastOffsetX:-t.index*n.width))/-(n.width||.001);o._adjustScroll(a)}},o._renderLabel=function(e){if(void 0!==o.props.renderLabel)return o.props.renderLabel(e);var t=o.props.getLabelText(e);return'string'!=typeof t?null:l.createElement(i.Animated.Text,{style:[u.tabLabel,o.props.labelStyle]},t)},o._renderIndicator=function(e){if(void 0!==o.props.renderIndicator)return o.props.renderIndicator(e);var t=e.width,n=e.position,a=e.navigationState,r=i.Animated.multiply(i.Animated.multiply(n.interpolate({inputRange:[0,a.routes.length-1],outputRange:[0,a.routes.length-1],extrapolate:'clamp'}),t),i.I18nManager.isRTL?-1:1);return l.createElement(i.Animated.View,{style:[u.indicator,{width:t,transform:[{translateX:r}]},o.props.indicatorStyle]})},o._getTabWidth=function(e){var t=e.layout,n=e.navigationState,o=e.tabStyle,a=i.StyleSheet.flatten(o);if(a)switch(typeof a.width){case'number':return a.width;case'string':if(a.width.endsWith('%')){var l=parseFloat(a.width);if(Number.isFinite(l))return t.width*(l/100)}}return e.scrollEnabled?t.width/5*2:t.width/n.routes.length},o._handleTabPress=function(e){o._pendingIndex=e.index,o.props.jumpTo(e.route.key),o.props.onTabPress&&o.props.onTabPress(e)},o._normalizeScrollValue=function(e,t){var n=e.layout,a=e.navigationState,l=o._getTabWidth(e),r=Math.max(l*a.routes.length,n.width)-n.width;return Math.max(Math.min(t,r),0)},o._getScrollAmount=function(e,t){var n=e.layout,a=o._getTabWidth(e)*(t+.5)-n.width/2;return o._normalizeScrollValue(e,a)},o._adjustScroll=function(t){o.props.scrollEnabled&&(e.cancelAnimationFrame(o._scrollResetCallback),o._scrollView&&o._scrollView.scrollTo({x:o._normalizeScrollValue(o.props,o._getScrollAmount(o.props,t)),animated:!o._isIntial}),o._isIntial=!1)},o._resetScroll=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];o.props.scrollEnabled&&(e.cancelAnimationFrame(o._scrollResetCallback),o._scrollResetCallback=e.requestAnimationFrame(function(){o._scrollView&&o._scrollView.scrollTo({x:o._getScrollAmount(o.props,t),animated:n})}))},o._handleBeginDrag=function(){o._isManualScroll=!0,o._isMomentumScroll=!1},o._handleEndDrag=function(){e.requestAnimationFrame(function(){o._isMomentumScroll||(o._isManualScroll=!1)})},o._handleMomentumScrollBegin=function(){o._isMomentumScroll=!0},o._handleMomentumScrollEnd=function(){o._isMomentumScroll=!1,o._isManualScroll=!1},o._setRef=function(e){return o._scrollView=e&&e._component};var a=1;o.props.scrollEnabled&&(o._getTabWidth(o.props)||(a=0));var r=o.props.scrollEnabled&&o.props.layout.width?{x:o._getScrollAmount(o.props,o.props.navigationState.index),y:0}:void 0;return o.state={visibility:new i.Animated.Value(a),scrollAmount:new i.Animated.Value(0),initialOffset:r},o}return babelHelpers.createClass(n,[{key:"componentDidMount",value:function(){this.props.scrollEnabled&&this._startTrackingPosition()}},{key:"componentDidUpdate",value:function(e){var t=this._getTabWidth(e),n=this._getTabWidth(this.props);t!==n&&n&&this.state.visibility.setValue(1),e.navigationState===this.props.navigationState&&e.layout===this.props.layout&&t===n||this.props.navigationState.index===this._pendingIndex||(this._resetScroll(this.props.navigationState.index,Boolean(e.layout.width)),this._pendingIndex=null)}},{key:"componentWillUnmount",value:function(){this._stopTrackingPosition()}},{key:"render",value:function(){var e=this,t=this.props,n=t.position,o=t.navigationState,a=t.scrollEnabled,r=t.bounces,c=o.routes,d=o.index,f=this._getTabWidth(this.props),h=f*c.length,b=[-1].concat(babelHelpers.toConsumableArray(c.map(function(e,t){return t}))),m=i.Animated.multiply(this.state.scrollAmount,-1);return l.createElement(i.Animated.View,{style:[u.tabBar,this.props.style]},l.createElement(i.Animated.View,{pointerEvents:"none",style:[u.indicatorContainer,a?{width:h,transform:[{translateX:m}]}:null]},this._renderIndicator(babelHelpers.objectSpread({},this.props,{width:f}))),l.createElement(i.View,{style:u.scroll},l.createElement(i.Animated.ScrollView,{horizontal:!0,keyboardShouldPersistTaps:"handled",scrollEnabled:a,bounces:r,alwaysBounceHorizontal:!1,scrollsToTop:!1,showsHorizontalScrollIndicator:!1,automaticallyAdjustContentInsets:!1,overScrollMode:"never",contentContainerStyle:[u.tabContent,a?null:u.container],scrollEventThrottle:1,onScroll:i.Animated.event([{nativeEvent:{contentOffset:{x:this.state.scrollAmount}}}],{useNativeDriver:p}),onScrollBeginDrag:this._handleBeginDrag,onScrollEndDrag:this._handleEndDrag,onMomentumScrollBegin:this._handleMomentumScrollBegin,onMomentumScrollEnd:this._handleMomentumScrollEnd,contentOffset:this.state.initialOffset,ref:this._setRef},c.map(function(t,o){var r=d===o,c=b.map(function(e){return e===o?1:.7}),p=i.Animated.multiply(e.state.visibility,n.interpolate({inputRange:b,outputRange:c})),h={route:t,focused:r,index:o},m=e._renderLabel(h),_=e.props.renderIcon?e.props.renderIcon(h):null,y=e.props.renderBadge?e.props.renderBadge(h):null,g={};g.opacity=p,_&&(m?g.paddingTop=8:g.padding=12);var v=i.StyleSheet.flatten(e.props.tabStyle),S=v&&void 0!==v.width||!0===a,w={};S&&(g.width=f),v&&'number'==typeof v.flex?w.flex=v.flex:S||(w.flex=1);var T=t.accessibilityLabel||t.title;return l.createElement(s.default,{borderless:!0,key:t.key,testID:t.testID,accessible:t.accessible,accessibilityLabel:T,accessibilityTraits:"button",pressColor:e.props.pressColor,pressOpacity:e.props.pressOpacity,delayPressIn:0,onPress:function(){return e._handleTabPress(h)},style:w},l.createElement(i.View,{pointerEvents:"none",style:u.container},l.createElement(i.Animated.View,{style:[u.tabItem,g,v,u.container]},_,m),y?l.createElement(i.Animated.View,{style:[u.badge,{opacity:e.state.visibility}]},y):null))}))))}}]),babelHelpers.inherits(n,t),n})(l.Component);o.default=d,d.propTypes=babelHelpers.objectSpread({},c.SceneRendererPropType,{scrollEnabled:r.default.bool,bounces:r.default.bool,pressColor:s.default.propTypes.pressColor,pressOpacity:s.default.propTypes.pressOpacity,getLabelText:r.default.func,renderIcon:r.default.func,renderLabel:r.default.func,renderIndicator:r.default.func,onTabPress:r.default.func,labelStyle:r.default.any,style:r.default.any}),d.defaultProps={getLabelText:function(e){var t=e.route;return'string'==typeof t.title?t.title.toUpperCase():t.title}};var u=i.StyleSheet.create({container:{flex:1},scroll:{overflow:'scroll'},tabBar:{backgroundColor:'#2196f3',elevation:4,shadowColor:'black',shadowOpacity:.1,shadowRadius:i.StyleSheet.hairlineWidth,shadowOffset:{height:i.StyleSheet.hairlineWidth},zIndex:0},tabContent:{flexDirection:'row',flexWrap:'nowrap'},tabLabel:{backgroundColor:'transparent',color:'white',margin:8},tabItem:{flex:1,padding:8,alignItems:'center',justifyContent:'center'},badge:{position:'absolute',top:0,right:0},indicatorContainer:{position:'absolute',top:0,left:0,right:0,bottom:0},indicator:{backgroundColor:'#ffeb3b',position:'absolute',left:0,bottom:0,right:0,height:2}})},381,[26,43,1,382,376]); +__d(function(e,r,s,l,t){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var a=babelHelpers.interopRequireWildcard(r(t[0])),o=babelHelpers.interopRequireDefault(r(t[1])),n=r(t[2]),i=(function(r){function s(){var r,l,t;babelHelpers.classCallCheck(this,s);for(var a=arguments.length,o=new Array(a),n=0;n=21?a.createElement(n.TouchableNativeFeedback,babelHelpers.extends({},o,{onPress:this._handlePress,background:n.TouchableNativeFeedback.Ripple(l,t)}),a.createElement(n.View,{style:r},a.Children.only(this.props.children))):a.createElement(n.TouchableOpacity,babelHelpers.extends({},o,{onPress:this._handlePress,style:r,activeOpacity:s}),this.props.children)}}]),babelHelpers.inherits(s,r),s})(a.Component);l.default=i,i.propTypes={onPress:o.default.func.isRequired,delayPressIn:o.default.number,borderless:o.default.bool,pressColor:o.default.string,pressOpacity:o.default.number,children:o.default.node.isRequired},i.defaultProps={pressColor:'rgba(255, 255, 255, .4)'}},382,[26,43,1]); +__d(function(e,r,t,n,u){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var r=(function(r){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.createClass(t,[{key:"render",value:function(){return l.createElement(e[this.props.route.key],this.props)}}]),babelHelpers.inherits(t,r),t})(l.PureComponent);return function(e){var t=e.route,n=e.jumpTo,u=e.jumpToIndex;return l.createElement(r,{key:t.key,route:t,jumpTo:n,jumpToIndex:u})}};var l=babelHelpers.interopRequireWildcard(r(u[0]))},383,[26]); +__d(function(e,t,n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=babelHelpers.interopRequireDefault(t(o[0])),l=t(o[1]),i=t(o[2]),s=babelHelpers.interopRequireDefault(t(o[3])),c=(function(e){function t(){var e,n,r;babelHelpers.classCallCheck(this,t);for(var o=arguments.length,i=new Array(o),c=0;c=11&&!1,c=(function(e){function t(){var e,a,r;babelHelpers.classCallCheck(this,t);for(var n=arguments.length,u=new Array(n),c=0;c0&&n.dispatch(l.StackActions.popToTop({key:o.key}))}else a(e)},a))}return babelHelpers.createClass(t,[{key:"_tabItemMaxWidth",value:function(){var e,t=this.props,a=t.tabStyle,r=t.layout,n=i.StyleSheet.flatten(a);if(n)if('number'==typeof n.width)e=n.width;else if('string'==typeof n.width&&n.width.endsWith('%')){var o=parseFloat(n.width);Number.isFinite(o)&&(e=r.width*(o/100))}else if('number'==typeof n.maxWidth)e=n.maxWidth;else if('string'==typeof n.maxWidth&&n.width.endsWith('%')){var l=parseFloat(n.maxWidth);Number.isFinite(l)&&(e=r.width*(l/100))}return e||(e=125),e}},{key:"_shouldUseHorizontalTabs",value:function(){var e=this.props.navigation.state.routes,t=this.props,a=t.isLandscape,r=t.layout,n=t.adaptive;t.tabStyle;if(!n)return!1;var o=r.width;if(0===o)return i.Platform.isPad;if(i.Platform.isPad){var l=this._tabItemMaxWidth();return e.length*l<=o}return a}},{key:"render",value:function(){var e=this,t=this.props,a=t.position,r=t.navigation,n=t.jumpToIndex,s=t.getOnPress,u=(t.getTestIDProps,t.activeBackgroundColor),c=t.inactiveBackgroundColor,d=t.style,b=t.animateStyle,f=t.tabStyle,h=(t.isLandscape,r.state.routes),m=h[r.state.index],v=[-1].concat(babelHelpers.toConsumableArray(h.map(function(e,t){return t}))),g=[p.tabBar,this._shouldUseHorizontalTabs()&&!i.Platform.isPad?p.tabBarCompact:p.tabBarRegular,d];return o.default.createElement(i.Animated.View,{style:b},o.default.createElement(l.SafeAreaView,{style:g,forceInset:{bottom:'always',top:'never'}},h.map(function(t,l){var d=l===r.state.index,b={route:t,index:l,focused:d},h=s(m,b),g=v.map(function(e){return e===l?u:c}),y=a.interpolate({inputRange:v,outputRange:g}),C=(e.props.showIcon,e._renderTestIDProps(b)||{}),T=C.testID,w=C.accessibilityLabel;return o.default.createElement(i.TouchableWithoutFeedback,{key:t.key,testID:T,accessibilityLabel:w,onPress:function(){return h?h({previousScene:m,scene:b,jumpToIndex:n,defaultHandler:e._handleTabPress}):e._handleTabPress(l)}},o.default.createElement(i.Animated.View,{style:[p.tab,{backgroundColor:y}]},o.default.createElement(i.View,{style:[p.tab,e._shouldUseHorizontalTabs()?p.tabLandscape:p.tabPortrait,f]},e._renderIcon(b),e._renderLabel(b))))})))}}]),babelHelpers.inherits(t,e),t})(o.default.PureComponent);c.defaultProps={activeTintColor:'#3478f6',activeBackgroundColor:'transparent',inactiveTintColor:'#929292',inactiveBackgroundColor:'transparent',showLabel:!0,showIcon:!0,allowFontScaling:!0,adaptive:u};var p=i.StyleSheet.create({tabBar:{backgroundColor:'#F7F7F7',borderTopWidth:i.StyleSheet.hairlineWidth,borderTopColor:'rgba(0, 0, 0, .3)',flexDirection:'row'},tabBarCompact:{height:29},tabBarRegular:{height:49},tab:{flex:1,alignItems:'stretch'},tabPortrait:{justifyContent:'flex-end',flexDirection:'column'},tabLandscape:{justifyContent:'center',flexDirection:'row'},iconWithoutLabel:{flex:1},iconWithLabel:{flex:1},iconWithExplicitHeight:{height:i.Platform.isPad?49:29},label:{textAlign:'center',backgroundColor:'transparent'},labelBeneath:{fontSize:10,marginBottom:1.5},labelBeside:{fontSize:13,marginLeft:20}}),d=(0,l.withOrientation)(c);r.default=d},386,[26,1,301,385]); +__d(function(t,a,e,r,o){e.exports={get createBottomTabNavigator(){return a(o[0]).default},get createMaterialTopTabNavigator(){return a(o[1]).default},get BottomTabBar(){return a(o[2]).default},get MaterialTopTabBar(){return a(o[3]).default},get createTabNavigator(){return a(o[4]).default}}},387,[388,395,390,407,389]); +__d(function(e,t,r,a,n){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=babelHelpers.interopRequireWildcard(t(n[0])),o=t(n[1]),s=t(n[2]),i=babelHelpers.interopRequireDefault(t(n[3])),u=babelHelpers.interopRequireDefault(t(n[4])),p=babelHelpers.interopRequireDefault(t(n[5])),d=(function(e){function t(){var e,r,a;babelHelpers.classCallCheck(this,t);for(var n=arguments.length,o=new Array(n),s=0;s0&&a.dispatch(s.StackActions.popToTop({key:t.key})):r._jumpTo(t.routeName)};i.tabBarOnPress?i.tabBarOnPress({navigation:a,defaultHandler:p}):p()},r._handleIndexChange=function(e){r._isTabPress?r._isTabPress=!1:r._jumpTo(r.props.navigation.state.routes[e].routeName)},r._handleSwipeStart=function(){r.setState({isSwiping:!0})},r._handleSwipeEnd=function(){r.setState({isSwiping:!1})},r._jumpTo=function(e){return r.props.navigation.dispatch(s.NavigationActions.navigate({routeName:e}))},r._isTabPress=!1,t))}return babelHelpers.createClass(n,[{key:"render",value:function(){var t=this.props,n=t.descriptors,r=t.navigation,o=t.screenProps,s=r.state,i=s.routes[s.index],p=n[i.key],c=babelHelpers.objectSpread({},this.props.navigationConfig,p.options);return a.createElement(e,babelHelpers.extends({},c,{getLabelText:this._getLabelText,getButtonComponent:this._getButtonComponent,getAccessibilityLabel:this._getAccessibilityLabel,getTestID:this._getTestID,renderIcon:this._renderIcon,renderScene:this._renderScene,onIndexChange:this._handleIndexChange,onTabPress:this._handleTabPress,navigation:r,descriptors:n,screenProps:o}))}}]),babelHelpers.inherits(n,t),n})(a.Component);return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,s.TabRouter)(e,n),o=(0,s.createNavigator)(t,r,n);return(0,s.createNavigationContainer)(o)}};var a=babelHelpers.interopRequireWildcard(t(o[0])),s=t(o[1])},389,[26,301]); +__d(function(e,t,a,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var l=babelHelpers.interopRequireDefault(t(o[0])),n=t(o[1]),i=t(o[2]),s=babelHelpers.interopRequireDefault(t(o[3])),c=babelHelpers.interopRequireDefault(t(o[4])),u=parseInt(n.Platform.Version,10)>=11&&!1,b=125,p=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props,t=e.onPress,a=e.testID,r=e.accessibilityLabel,o=babelHelpers.objectWithoutProperties(e,["onPress","testID","accessibilityLabel"]);return l.default.createElement(n.TouchableWithoutFeedback,{onPress:t,testID:a,accessibilityLabel:r},l.default.createElement(n.View,o))}}]),babelHelpers.inherits(t,e),t})(l.default.Component),f=(function(e){function t(){var e,a,r;babelHelpers.classCallCheck(this,t);for(var o=arguments.length,i=new Array(o),c=0;ce.height};i.isOrientationLandscape=l},392,[26,1,393]); +__d(function(e,t,r,o,p){'use strict';var a={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},c=Object.defineProperty,s=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,l=f&&f(Object);r.exports=function e(t,r,o){if('string'!=typeof r){if(l){var p=f(r);p&&p!==l&&e(t,p,o)}var g=s(r);i&&(g=g.concat(i(r)));for(var O=0;O1&&void 0!==arguments[1])||arguments[1];o.props.scrollEnabled&&(e.cancelAnimationFrame(o._scrollResetCallback),o._scrollResetCallback=e.requestAnimationFrame(function(){o._scrollView&&o._scrollView.scrollTo({x:o._getScrollAmount(o.props,t),animated:n})}))},o._handleBeginDrag=function(){o._isManualScroll=!0,o._isMomentumScroll=!1},o._handleEndDrag=function(){e.requestAnimationFrame(function(){o._isMomentumScroll||(o._isManualScroll=!1)})},o._handleMomentumScrollBegin=function(){o._isMomentumScroll=!0},o._handleMomentumScrollEnd=function(){o._isMomentumScroll=!1,o._isManualScroll=!1};var r=1;o.props.scrollEnabled&&(o._getTabWidth(o.props)||(r=0));var i=o.props.scrollEnabled&&o.props.layout.width?{x:o._getScrollAmount(o.props,o.props.navigationState.index),y:0}:void 0;return o.state={visibility:new l.Animated.Value(r),scrollAmount:new l.Animated.Value(0),initialOffset:i},o}return babelHelpers.createClass(n,[{key:"componentDidMount",value:function(){this.props.scrollEnabled&&this._startTrackingPosition()}},{key:"componentDidUpdate",value:function(e){var t=this._getTabWidth(e),n=this._getTabWidth(this.props),o='number'==typeof this._pendingIndex?this._pendingIndex:this.props.navigationState.index;this._pendingIndex=null,t!==n&&n&&this.state.visibility.setValue(1),e.navigationState.routes!==this.props.navigationState.routes||e.layout.width!==this.props.layout.width?this._resetScroll(this.props.navigationState.index,!1):e.navigationState.index!==o&&this._resetScroll(this.props.navigationState.index)}},{key:"componentWillUnmount",value:function(){this._stopTrackingPosition()}},{key:"render",value:function(){var e=this,t=this.props,n=t.position,o=t.navigationState,r=t.scrollEnabled,i=t.bounces,c=o.routes,u=this._getTabWidth(this.props),b=u*c.length,f=[-1].concat(babelHelpers.toConsumableArray(c.map(function(e,t){return t}))),h=l.Animated.multiply(this.state.scrollAmount,-1);return a.createElement(l.Animated.View,{style:[d.tabBar,this.props.style]},a.createElement(l.Animated.View,{pointerEvents:"none",style:[d.indicatorContainer,r?{width:b,transform:[{translateX:h}]}:null]},this._renderIndicator(babelHelpers.objectSpread({},this.props,{width:u}))),a.createElement(l.View,{style:d.scroll},a.createElement(l.Animated.ScrollView,{horizontal:!0,keyboardShouldPersistTaps:"handled",scrollEnabled:r,bounces:i,alwaysBounceHorizontal:!1,scrollsToTop:!1,showsHorizontalScrollIndicator:!1,automaticallyAdjustContentInsets:!1,overScrollMode:"never",contentContainerStyle:[d.tabContent,r?null:d.container],scrollEventThrottle:1,onScroll:l.Animated.event([{nativeEvent:{contentOffset:{x:this.state.scrollAmount}}}],{useNativeDriver:p}),onScrollBeginDrag:this._handleBeginDrag,onScrollEndDrag:this._handleEndDrag,onMomentumScrollBegin:this._handleMomentumScrollBegin,onMomentumScrollEnd:this._handleMomentumScrollEnd,contentOffset:this.state.initialOffset,ref:function(t){return e._scrollView=t&&t._component}},c.map(function(t,i){var c=f.map(function(e){return e===i?1:.7}),p=l.Animated.multiply(e.state.visibility,n.interpolate({inputRange:f,outputRange:c})),b=e._renderLabel({route:t}),h=e.props.renderIcon?e.props.renderIcon({route:t}):null,m=e.props.renderBadge?e.props.renderBadge({route:t}):null,g={};g.opacity=p,h&&(b?g.paddingTop=8:g.padding=12);var y=l.StyleSheet.flatten(e.props.tabStyle),_=y&&void 0!==y.width||!0===r,v={};_&&(g.width=u),y&&'number'==typeof y.flex?v.flex=y.flex:_||(v.flex=1);var S=e.props.getAccessibilityLabel({route:t});S=void 0!==S?S:e.props.getLabelText({route:t});var w=i===o.index;return a.createElement(s.default,{borderless:!0,key:t.key,testID:e.props.getTestID({route:t}),accessible:e.props.getAccessible({route:t}),accessibilityLabel:S,accessibilityTraits:w?['button','selected']:'button',accessibilityComponentType:"button",pressColor:e.props.pressColor,pressOpacity:e.props.pressOpacity,delayPressIn:0,onPress:function(){return e._handleTabPress({route:t})},style:v},a.createElement(l.View,{pointerEvents:"none",style:d.container},a.createElement(l.Animated.View,{style:[d.tabItem,g,y,d.container]},h,b),m?a.createElement(l.Animated.View,{style:[d.badge,{opacity:e.state.visibility}]},m):null))}))))}}]),babelHelpers.inherits(n,t),n})(a.Component);o.default=u,u.propTypes=babelHelpers.objectSpread({},c.SceneRendererPropType,{scrollEnabled:i.default.bool,bounces:i.default.bool,pressColor:s.default.propTypes.pressColor,pressOpacity:s.default.propTypes.pressOpacity,getLabelText:i.default.func,getAccessible:i.default.func,getAccessibilityLabel:i.default.func,getTestID:i.default.func,renderIcon:i.default.func,renderLabel:i.default.func,renderIndicator:i.default.func,onTabPress:i.default.func,labelStyle:i.default.any,style:i.default.any}),u.defaultProps={getLabelText:function(e){var t=e.route;return'string'==typeof t.title?t.title.toUpperCase():t.title},getAccessible:function(e){var t=e.route;return void 0===t.accessible||t.accessible},getAccessibilityLabel:function(e){return e.route.accessibilityLabel},getTestID:function(e){return e.route.testID}};var d=l.StyleSheet.create({container:{flex:1},scroll:{overflow:'scroll'},tabBar:{backgroundColor:'#2196f3',elevation:4,shadowColor:'black',shadowOpacity:.1,shadowRadius:l.StyleSheet.hairlineWidth,shadowOffset:{height:l.StyleSheet.hairlineWidth},zIndex:0},tabContent:{flexDirection:'row',flexWrap:'nowrap'},tabLabel:{backgroundColor:'transparent',color:'white',margin:8},tabItem:{flex:1,padding:8,alignItems:'center',justifyContent:'center'},badge:{position:'absolute',top:0,right:0},indicatorContainer:{position:'absolute',top:0,left:0,right:0,bottom:0},indicator:{backgroundColor:'#ffeb3b',position:'absolute',left:0,bottom:0,right:0,height:2}})},398,[26,43,1,399,400]); +__d(function(e,r,l,s,t){Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var a=babelHelpers.interopRequireWildcard(r(t[0])),o=babelHelpers.interopRequireDefault(r(t[1])),p=r(t[2]),i=(function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(r).apply(this,arguments))}return babelHelpers.createClass(r,[{key:"render",value:function(){var e=this.props,r=e.style,l=e.pressOpacity,s=e.pressColor,t=e.borderless,o=babelHelpers.objectWithoutProperties(e,["style","pressOpacity","pressColor","borderless"]);return p.Platform.Version>=21?a.createElement(p.TouchableNativeFeedback,babelHelpers.extends({},o,{background:p.TouchableNativeFeedback.Ripple(s,t)}),a.createElement(p.View,{style:r},a.Children.only(this.props.children))):a.createElement(p.TouchableOpacity,babelHelpers.extends({},o,{style:r,activeOpacity:l}),this.props.children)}}]),babelHelpers.inherits(r,e),r})(a.Component);s.default=i,i.propTypes={onPress:o.default.func.isRequired,delayPressIn:o.default.number,borderless:o.default.bool,pressColor:o.default.string,pressOpacity:o.default.number,children:o.default.node.isRequired},i.defaultProps={pressColor:'rgba(255, 255, 255, .4)'}},399,[26,43,1]); +__d(function(e,i,a,u,t){Object.defineProperty(u,"__esModule",{value:!0}),u.PagerRendererPropType=u.SceneRendererPropType=u.NavigationStatePropType=u.NavigationRoutePropType=void 0;var d=babelHelpers.interopRequireDefault(i(t[0])),r=i(t[1]),n=d.default.shape({title:d.default.string,key:d.default.string.isRequired});u.NavigationRoutePropType=n;var o=d.default.shape({routes:d.default.arrayOf(n).isRequired,index:d.default.number.isRequired});u.NavigationStatePropType=o;var l={panX:d.default.object.isRequired,offsetX:d.default.object.isRequired,layout:d.default.shape({measured:d.default.bool.isRequired,height:d.default.number.isRequired,width:d.default.number.isRequired}).isRequired,navigationState:o.isRequired,position:d.default.object.isRequired,jumpTo:d.default.func.isRequired,useNativeDriver:d.default.bool};u.SceneRendererPropType=l;var f={layout:d.default.shape({measured:d.default.bool.isRequired,height:d.default.number.isRequired,width:d.default.number.isRequired}).isRequired,navigationState:o.isRequired,panX:d.default.instanceOf(r.Animated.Value).isRequired,offsetX:d.default.instanceOf(r.Animated.Value).isRequired,canJumpToTab:d.default.func.isRequired,jumpTo:d.default.func.isRequired,animationEnabled:d.default.bool,swipeEnabled:d.default.bool,useNativeDriver:d.default.bool,onSwipeStart:d.default.func,onSwipeEnd:d.default.func,onAnimationEnd:d.default.func,children:d.default.node.isRequired};u.PagerRendererPropType=f},400,[43,1]); +__d(function(e,d,t,u,a){Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;d(a[0]);var f=d(a[1]).default;u.default=f},401,[1,402,403,404]); +__d(function(e,t,n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var r=babelHelpers.interopRequireWildcard(t(i[0])),o=t(i[1]),s=t(i[2]),d=(function(e){function t(e){var n;return babelHelpers.classCallCheck(this,t),(n=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,e)))._isIdle=!0,n._currentIndex=0,n._getPageIndex=function(e){return o.I18nManager.isRTL?n.props.navigationState.routes.length-(e+1):e},n._setPage=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=n._viewPager;if(a){var i=n._getPageIndex(e);!1===n.props.animationEnabled||!1===t?a.setPageWithoutAnimation(i):a.setPage(i)}},n._handlePageChange=function(e,t){n._isIdle&&n._currentIndex!==e&&(n._setPage(e,t),n._currentIndex=e)},n._handlePageScroll=function(e){n.props.offsetX.setValue(e.nativeEvent.position*n.props.layout.width*(o.I18nManager.isRTL?1:-1)),n.props.panX.setValue(e.nativeEvent.offset*n.props.layout.width*(o.I18nManager.isRTL?1:-1))},n._handlePageScrollStateChanged=function(e){n._isIdle='idle'===e;var t=n._currentIndex,a=n.props.navigationState.routes[t];switch(n.props.canJumpToTab({route:a})?n.props.jumpTo(a.key):(n._setPage(n.props.navigationState.index),n._currentIndex=n.props.navigationState.index),e){case'dragging':n.props.onSwipeStart&&n.props.onSwipeStart();break;case'settling':n.props.onSwipeEnd&&n.props.onSwipeEnd();break;case'idle':n.props.onAnimationEnd&&n.props.onAnimationEnd()}},n._handlePageSelected=function(e){var t=n._getPageIndex(e.nativeEvent.position);n._currentIndex=t},n._currentIndex=n.props.navigationState.index,n}return babelHelpers.createClass(t,[{key:"componentDidUpdate",value:function(e){e.navigationState.routes!==this.props.navigationState.routes||e.layout.width!==this.props.layout.width?this._handlePageChange(this.props.navigationState.index,!1):e.navigationState.index!==this.props.navigationState.index&&this._handlePageChange(this.props.navigationState.index)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,a=t.navigationState,i=t.swipeEnabled,s=t.keyboardDismissMode,d=r.Children.map(n,function(t,n){var i=a.routes[n],s=n===a.index;return r.createElement(o.View,{key:i.key,testID:e.props.getTestID({route:i}),accessibilityElementsHidden:!s,importantForAccessibility:s?'auto':'no-hide-descendants',style:l.page},t)});o.I18nManager.isRTL&&d.reverse();var p=this._getPageIndex(a.index);return r.createElement(o.ViewPagerAndroid,{key:a.routes.length,keyboardDismissMode:s,initialPage:p,scrollEnabled:!1!==i,onPageScroll:this._handlePageScroll,onPageScrollStateChanged:this._handlePageScrollStateChanged,onPageSelected:this._handlePageSelected,style:l.container,ref:function(t){return e._viewPager=t}},d)}}]),babelHelpers.inherits(t,e),t})(r.Component);a.default=d,d.propTypes=s.PagerRendererPropType,d.defaultProps={canJumpToTab:function(){return!0},keyboardDismissMode:'on-drag'};var l=o.StyleSheet.create({container:{flexGrow:1},page:{overflow:'hidden'}})},402,[26,1,400]); +__d(function(t,e,n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var a=babelHelpers.interopRequireWildcard(e(i[0])),l=e(i[1]),r=e(i[2]),s=(function(e){function n(e){var o;babelHelpers.classCallCheck(this,n),(o=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(n).call(this,e)))._isIdle=!0,o._isInitial=!0,o._setInitialPage=function(){o.props.layout.width&&(o._isInitial=!0,o._scrollTo(o.props.navigationState.index*o.props.layout.width,!1)),setTimeout(function(){o._isInitial=!1},50)},o._scrollTo=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];o._isIdle&&o._scrollView&&o._scrollView.scrollTo({x:t,animated:e&&!1!==o.props.animationEnabled})},o._handleMomentumScrollEnd=function(e){var n=Math.round(e.nativeEvent.contentOffset.x/o.props.layout.width),i=o.props.navigationState.routes[n];o.props.canJumpToTab({route:i})?(o.props.jumpTo(i.key),o.props.onAnimationEnd&&o.props.onAnimationEnd()):t.requestAnimationFrame(function(){o._scrollTo(o.props.navigationState.index*o.props.layout.width)})},o._handleScroll=function(e){if(!o._isInitial&&0!==e.nativeEvent.contentSize.width){var n=o.props,i=n.navigationState,a=n.layout,l=i.index*a.width;o.props.offsetX.setValue(-l),o.props.panX.setValue(l-e.nativeEvent.contentOffset.x),t.cancelAnimationFrame(o._idleCallback),o._isIdle=!1,o._idleCallback=t.requestAnimationFrame(function(){o._isIdle=!0})}};var i=o.props,a=i.navigationState,l=i.layout;return o.state={initialOffset:{x:a.index*l.width,y:0}},o}return babelHelpers.createClass(n,[{key:"componentDidMount",value:function(){this._setInitialPage()}},{key:"componentDidUpdate",value:function(t){var e=this.props.navigationState.index*this.props.layout.width;t.navigationState.routes!==this.props.navigationState.routes||t.layout.width!==this.props.layout.width?this._scrollTo(e,!1):t.navigationState.index!==this.props.navigationState.index&&this._scrollTo(e)}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,o=e.layout,i=e.navigationState,r=e.onSwipeStart,s=e.onSwipeEnd;return a.createElement(l.ScrollView,{horizontal:!0,pagingEnabled:!0,directionalLockEnabled:!0,keyboardDismissMode:"on-drag",keyboardShouldPersistTaps:"always",overScrollMode:"never",scrollEnabled:this.props.swipeEnabled,automaticallyAdjustContentInsets:!1,bounces:!1,alwaysBounceHorizontal:!1,scrollsToTop:!1,showsHorizontalScrollIndicator:!1,scrollEventThrottle:1,onScroll:this._handleScroll,onScrollBeginDrag:r,onScrollEndDrag:s,onMomentumScrollEnd:this._handleMomentumScrollEnd,contentOffset:this.state.initialOffset,style:d.container,contentContainerStyle:o.width?null:d.container,ref:function(e){return t._scrollView=e}},a.Children.map(n,function(e,n){var r=i.routes[n],s=n===i.index;return a.createElement(l.View,{key:r.key,testID:t.props.getTestID({route:r}),accessibilityElementsHidden:!s,importantForAccessibility:s?'auto':'no-hide-descendants',style:o.width?{width:o.width,overflow:'hidden'}:s?d.page:null},s||o.width?e:null)}))}}]),babelHelpers.inherits(n,e),n})(a.Component);o.default=s,s.propTypes=r.PagerRendererPropType,s.defaultProps={canJumpToTab:function(){return!0}};var d=l.StyleSheet.create({container:{flex:1},page:{flex:1,overflow:'hidden'}})},403,[26,1,400]); +__d(function(e,t,n,a,r){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=babelHelpers.interopRequireWildcard(t(r[0])),i=babelHelpers.interopRequireDefault(t(r[1])),s=t(r[2]),p=t(r[3]),l=12,d={timing:s.Animated.spring,tension:300,friction:35},u=(function(e){function t(){var e,n,a;babelHelpers.classCallCheck(this,t);for(var r=arguments.length,o=new Array(r),i=0;iMath.abs(2*t.dy)&&Math.abs(t.vx)>Math.abs(2*t.vy)},a._canMoveScreen=function(e,t){if(!1===a.props.swipeEnabled)return!1;var n=a.props.navigationState.routes;return a._isMovingHorizontally(e,t)&&(t.dx>=l&&a._currentIndex>0||t.dx<=-12&&a._currentIndex0&&o<=0||t.dx<0&&o>=r.length-1||a.props.panX.setValue(t.dx)},a._finishGesture=function(e,t){var n=a.props,r=n.navigationState,o=n.layout,i=n.swipeDistanceThreshold,s=void 0===i?o.width/1.75:i,p=a.props.swipeVelocityThreshold,l=void 0===p?.15:p;a.props.onSwipeEnd&&a.props.onSwipeEnd(),l/=1e6;var d='number'==typeof a._pendingIndex?a._pendingIndex:a._currentIndex,u=d;Math.abs(t.dx)>Math.abs(t.dy)&&Math.abs(t.vx)>Math.abs(t.vy)&&(Math.abs(t.dx)>s||Math.abs(t.vx)>l)&&(u=Math.round(Math.min(Math.max(0,d-t.dx/Math.abs(t.dx)),r.routes.length-1)),a._currentIndex=u),isFinite(u)&&a.props.canJumpToTab({route:a.props.navigationState.routes[u]})||(u=d),a._transitionTo(u)},a._transitionTo=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=-e*a.props.layout.width;if(!1===a.props.animationEnabled||!1===t)return a.props.panX.setValue(0),void a.props.offsetX.setValue(n);var r=d.timing,o=babelHelpers.objectWithoutProperties(d,["timing"]);s.Animated.parallel([r(a.props.panX,babelHelpers.objectSpread({},o,{toValue:0})),r(a.props.offsetX,babelHelpers.objectSpread({},o,{toValue:n}))]).start(function(t){if(t.finished){var n=a.props.navigationState.routes[e];a.props.jumpTo(n.key),a.props.onAnimationEnd&&a.props.onAnimationEnd(),a._pendingIndex=null}}),a._pendingIndex=e},a._panResponder=s.PanResponder.create({onMoveShouldSetPanResponder:a._canMoveScreen,onMoveShouldSetPanResponderCapture:a._canMoveScreen,onPanResponderGrant:a._startGesture,onPanResponderMove:a._respondToGesture,onPanResponderTerminate:a._finishGesture,onPanResponderRelease:a._finishGesture,onPanResponderTerminationRequest:function(){return!0}}),n))}return babelHelpers.createClass(t,[{key:"componentDidUpdate",value:function(e){this._currentIndex=this.props.navigationState.index,e.navigationState.routes!==this.props.navigationState.routes||e.layout.width!==this.props.layout.width?this._transitionTo(this.props.navigationState.index,!1):e.navigationState.index!==this.props.navigationState.index&&this._transitionTo(this.props.navigationState.index)}},{key:"render",value:function(){var e=this,t=this.props,n=t.panX,a=t.offsetX,r=t.navigationState,i=t.layout,p=t.children,l=i.width,d=r.routes,u=l*(d.length-1),c=s.Animated.multiply(s.Animated.add(n,a).interpolate({inputRange:[-u,0],outputRange:[-u,0],extrapolate:'clamp'}),s.I18nManager.isRTL?-1:1);return o.createElement(s.Animated.View,babelHelpers.extends({style:[h.sheet,l?{width:d.length*l,transform:[{translateX:c}]}:null]},this._panResponder.panHandlers),o.Children.map(p,function(t,n){var a=r.routes[n],i=n===r.index;return o.createElement(s.View,{key:a.key,testID:e.props.getTestID({route:a}),style:l?{width:l}:i?s.StyleSheet.absoluteFill:null},i||l?t:null)}))}}]),babelHelpers.inherits(t,e),t})(o.Component);a.default=u,u.propTypes=babelHelpers.objectSpread({},p.PagerRendererPropType,{swipeDistanceThreshold:i.default.number,swipeVelocityThreshold:i.default.number}),u.defaultProps={canJumpToTab:function(){return!0},initialLayout:{height:0,width:0}};var h=s.StyleSheet.create({sheet:{flex:1,flexDirection:'row',alignItems:'stretch'}})},404,[26,43,1,400]); +__d(function(e,t,n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var r=babelHelpers.interopRequireWildcard(t(i[0])),o=babelHelpers.interopRequireDefault(t(i[1])),s=t(i[2]),p=t(i[3]),l={timing:s.Animated.spring,tension:68,friction:12},d=(function(e){function t(){var e,n,a;babelHelpers.classCallCheck(this,t);for(var i=arguments.length,r=new Array(i),o=0;oMath.abs(h)&&Math.abs(v)>Math.abs(b)&&(Math.abs(u)>s||Math.abs(v)>l)&&(f=Math.round(Math.min(Math.max(0,c-u/Math.abs(u)),i.routes.length-1))),isFinite(f)&&a.props.canJumpToTab(a.props.navigationState.routes[f])||(f=c),a._transitionTo(f,v)}},a._transitionTo=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=-e*a.props.layout.width;if(!1===a.props.animationEnabled||!1===n)return a.props.panX.setValue(0),void a.props.offsetX.setValue(i);var r=l.timing,o=babelHelpers.objectWithoutProperties(l,["timing"]),p=a.props.useNativeDriver;s.Animated.parallel([r(a.props.panX,babelHelpers.objectSpread({},o,{toValue:0,velocity:t,useNativeDriver:p})),r(a.props.offsetX,babelHelpers.objectSpread({},o,{toValue:i,velocity:t,useNativeDriver:p}))]).start(function(t){if(t.finished){var n=a.props.navigationState.routes[e];a.props.jumpTo(n.key),a.props.onAnimationEnd&&a.props.onAnimationEnd(),a._pendingIndex=null}}),a._pendingIndex=e},n))}return babelHelpers.createClass(t,[{key:"componentDidUpdate",value:function(e){e.navigationState.routes!==this.props.navigationState.routes||e.layout.width!==this.props.layout.width?this._transitionTo(this.props.navigationState.index,void 0,!1):e.navigationState.index!==this.props.navigationState.index&&this.props.navigationState.index!==this._pendingIndex&&this._transitionTo(this.props.navigationState.index)}},{key:"render",value:function(){var e=this,t=this.props,n=t.GestureHandler,a=t.panX,i=t.offsetX,o=t.layout,p=t.navigationState,l=t.swipeEnabled,d=t.children,h=o.width,v=p.routes,b=h*(v.length-1),c=s.Animated.add(a,i).interpolate({inputRange:[-b,0],outputRange:[-b,0],extrapolate:'clamp'});return r.createElement(n.PanGestureHandler,{enabled:0!==o.width&&!1!==l,minDeltaX:10,onGestureEvent:s.Animated.event([{nativeEvent:{translationX:this.props.panX}}],{useNativeDriver:this.props.useNativeDriver}),onHandlerStateChange:this._handleHandlerStateChange},r.createElement(s.Animated.View,{style:[u.sheet,h?{width:v.length*h,transform:[{translateX:c}]}:null]},r.Children.map(d,function(t,n){var a=p.routes[n],i=n===p.index;return r.createElement(s.View,{key:a.key,testID:e.props.getTestID({route:a}),accessibilityElementsHidden:!i,importantForAccessibility:i?'auto':'no-hide-descendants',style:h?{width:h}:i?s.StyleSheet.absoluteFill:null},i||h?t:null)})))}}]),babelHelpers.inherits(t,e),t})(r.Component);a.default=d,d.propTypes=babelHelpers.objectSpread({},p.PagerRendererPropType,{swipeDistanceThreshold:o.default.number,swipeVelocityThreshold:o.default.number,GestureHandler:o.default.object}),d.defaultProps={canJumpToTab:function(){return!0}};var u=s.StyleSheet.create({sheet:{flex:1,flexDirection:'row',alignItems:'stretch'}})},405,[26,43,1,400]); +__d(function(e,r,t,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return function(r){var t=r.route,n=r.jumpTo;return l.createElement(u,{key:t.key,component:e[t.key],route:t,jumpTo:n})}};var l=babelHelpers.interopRequireWildcard(r(o[0])),u=(function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(r).apply(this,arguments))}return babelHelpers.createClass(r,[{key:"render",value:function(){var e=this.props,r=e.component,t=babelHelpers.objectWithoutProperties(e,["component"]);return l.createElement(r,t)}}]),babelHelpers.inherits(r,e),r})(l.PureComponent)},406,[26]); +__d(function(e,t,n,r,a){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=babelHelpers.interopRequireWildcard(t(a[0])),i=t(a[1]),l=t(a[2]),u=babelHelpers.interopRequireDefault(t(a[3])),c=(function(e){function t(){var e,n,r;babelHelpers.classCallCheck(this,t);for(var a=arguments.length,l=new Array(a),c=0;c1&&void 0!==arguments[1]?arguments[1]:{};(0,p.default)(e);var r={},a=Object.keys(e);a.forEach(function(t){var a=(0,l.default)(e,t);a&&a.router?r[t]=a.router:r[t]=null});var n=t.initialRouteParams,k=t.getCustomActionCreators||m,v=t.initialRouteName||a[0],S=r[v];function g(e){var a={},i=r[e.routeName];if(b(e)&&void 0!==i){var u={};if(null!==i){var l=e.action||o.default.init({params:e.params});u=i.getStateForAction(l)}return{key:'StackRouterRoot',isTransitioning:!1,index:0,routes:[babelHelpers.objectSpread({params:e.params},u,{key:e.key||(0,d.generateKey)(),routeName:e.routeName})]}}S&&(a=S.getStateForAction(o.default.navigate({routeName:v,params:n})));var s=(a.params||e.params||n)&&babelHelpers.objectSpread({},a.params||{},e.params||{},n||{}),p=t.initialRouteKey;return{key:'StackRouterRoot',isTransitioning:!1,index:0,routes:[a=babelHelpers.objectSpread({},a,s?{params:s}:{},{routeName:v,key:e.key||p||(0,d.generateKey)()})]}}var A=(0,c.createPathParser)(r,e,t.paths),H=A.getPathAndParamsForRoute,N=A.getActionForPathAndParams;return{childRouters:r,getComponentForState:function(t){var a=t.routes[t.index],n=a.routeName;return r[n]?r[n].getComponentForState(a):(0,l.default)(e,n)},getComponentForRouteName:function(t){return(0,l.default)(e,t)},getActionCreators:function(e,t){return babelHelpers.objectSpread({},k(e,t),{pop:function(e,t){return i.default.pop(babelHelpers.objectSpread({n:e},t))},popToTop:function(e){return i.default.popToTop(e)},push:function(e,t,r){return i.default.push({routeName:e,params:t,action:r})},replace:function(t,r,a,n){return'string'==typeof t?i.default.replace({routeName:t,params:r,action:a,key:e.key,newKey:n}):((0,f.default)('object'==typeof t,'Must replaceWith an object or a string'),(0,f.default)(null==r,'Params must not be provided to .replace() when specifying an object'),(0,f.default)(null==a,'Child action must not be provided to .replace() when specifying an object'),(0,f.default)(null==n,'Child action must not be provided to .replace() when specifying an object'),i.default.replace(t))},reset:function(e,r){return i.default.reset({actions:e,index:null==r?e.length-1:r,key:t})},dismiss:function(){return o.default.back({key:t})}})},getStateForAction:function(e,t){if(!t)return g(e);var a,n=t.routes[t.index];if(y(e)||e.type===o.default.NAVIGATE){if(e.type===o.default.NAVIGATE){var u=t.routes.slice().reverse(),l=Array.isArray(u),p=0;for(u=l?u:u["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var c;if(l){if(p>=u.length)break;c=u[p++]}else{if((p=u.next()).done)break;c=p.value}var m=c,k=r[m.routeName],v=e.routeName===m.routeName&&e.action?e.action:e;if(k){var S=k.getStateForAction(v,m);if(null===S||S!==m){var A=s.default.replaceAndPrune(t,S?S.key:m.key,S||m);return babelHelpers.objectSpread({},A,{isTransitioning:t.index!==A.index?!0!==e.immediate:t.isTransitioning})}}}}}else{var H=r[n.routeName];if(H){var N=H.getStateForAction(e,n);if(null!==N&&N!==n)return s.default.replaceAt(t,n.key,N,e.type===o.default.SET_PARAMS)}}if(b(e)&&void 0!==r[e.routeName]){var j,P=r[e.routeName];(0,f.default)(e.type!==i.default.PUSH||null==e.key,'StackRouter does not support key on the push action');var T=t.routes.findIndex(function(t){return e.key?t.key===e.key:t.routeName===e.routeName});if(e.type!==i.default.PUSH&&-1!==T){if(t.index===T&&!e.params)return null;var h=t.routes.slice(0,T+1);if(e.params){var x=t.routes[T];h[T]=babelHelpers.objectSpread({},x,{params:babelHelpers.objectSpread({},x.params,e.params)})}return babelHelpers.objectSpread({},t,{isTransitioning:t.index!==T?!0!==e.immediate:t.isTransitioning,index:T,routes:h})}if(P){var R=e.action||o.default.init({params:e.params});j=babelHelpers.objectSpread({params:e.params},P.getStateForAction(R),{routeName:e.routeName,key:e.key||(0,d.generateKey)()})}else j={params:e.params,routeName:e.routeName,key:e.key||(0,d.generateKey)()};return babelHelpers.objectSpread({},s.default.push(t,j),{isTransitioning:!0!==e.immediate})}if(e.type===i.default.PUSH&&void 0===r[e.routeName])return t;if(b(e))for(var F=Object.keys(r),E=0;E0?babelHelpers.objectSpread({},t,{isTransitioning:!0!==e.immediate,index:0,routes:[t.routes[0]]}):t;if(e.type===i.default.REPLACE&&-1!==(a=void 0===e.key&&t.routes.length?t.routes.length-1:t.routes.findIndex(function(t){return t.key===e.key}))){var I=r[e.routeName],M={};if(I){var w=e.action||o.default.init({params:e.params});M=I.getStateForAction(w)}var U=babelHelpers.toConsumableArray(t.routes);return U[a]=babelHelpers.objectSpread({params:e.params},M,{routeName:e.routeName,key:e.newKey||(0,d.generateKey)()}),babelHelpers.objectSpread({},t,{routes:U})}if(e.type===i.default.COMPLETE_TRANSITION&&(null==e.key||e.key===t.key)&&t.isTransitioning)return babelHelpers.objectSpread({},t,{isTransitioning:!1});if(e.type===o.default.SET_PARAMS){var G=e.key,V=t.routes.find(function(e){return e.key===G});if(V){var L=babelHelpers.objectSpread({},V.params,e.params),B=babelHelpers.toConsumableArray(t.routes);return B[t.routes.indexOf(V)]=babelHelpers.objectSpread({},V,{params:L}),babelHelpers.objectSpread({},t,{routes:B})}}if(e.type===i.default.RESET){if(null!=e.key&&e.key!=t.key)return t;var W=e.actions;return babelHelpers.objectSpread({},t,{routes:W.map(function(e){var t=r[e.routeName],a={};if(t){var n=e.action||o.default.init({params:e.params});a=t.getStateForAction(n)}return babelHelpers.objectSpread({params:e.params},a,{routeName:e.routeName,key:e.key||(0,d.generateKey)()})}),index:e.index})}if(e.type===o.default.BACK||e.type===i.default.POP){var z=e.key,J=e.n,Q=e.immediate,X=t.index;if(e.type===i.default.POP&&null!=J)X=Math.max(1,t.index-J+1);else if(z){var Y=t.routes.find(function(e){return e.key===z});X=t.routes.indexOf(Y)}if(X>0)return babelHelpers.objectSpread({},t,{routes:t.routes.slice(0,X),index:X-1,isTransitioning:!0!==Q})}var Z=e.key?s.default.indexOf(t,e.key):-1,$=t.routes.slice().reverse(),ee=Array.isArray($),te=0;for($=ee?$:$["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var re;if(ee){if(te>=$.length)break;re=$[te++]}else{if((te=$.next()).done)break;re=te.value}var ae=re;if(ae.key!==n.key&&!(Z>=0&&ae.key!==e.key)){var ne=r[ae.routeName];if(ne){var oe=ne.getStateForAction(e,ae);if(null===oe)return t;if(oe&&oe!==ae)return s.default.replaceAt(t,ae.key,oe,e.type===o.default.SET_PARAMS)}}}return t},getPathAndParamsForState:function(e){var t=e.routes[e.index];return H(t)},getActionForPathAndParams:function(e,t){return N(e,t)},getScreenOptions:(0,u.default)(e,t.navigationOptions)}}},408,[304,357,355,354,318,358,307,409,312]); +__d(function(e,n,t,_,i){Object.defineProperty(_,"__esModule",{value:!0}),_._TESTING_ONLY_normalize_keys=function(){o='id',r=0},_.generateKey=function(){return o+"-"+r++};var o="id-"+Date.now(),r=0},409,[]); +__d(function(e,t,l,a,r){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=babelHelpers.interopRequireDefault(t(r[0])),i=babelHelpers.interopRequireDefault(t(r[1]));a.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=babelHelpers.objectSpread({},t),t=(0,i.default)(t,'resetOnBlur',!1),t=(0,i.default)(t,'backBehavior','initialRoute'),(0,u.default)(e,t)}},410,[353,411]); +__d(function(e,t,d,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=function(e,t,d){return e.hasOwnProperty(t)&&void 0!==e[t]?e:(e[t]=d,e)}},411,[]); +__d(function(e,t,a,i,n){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"withSafeArea",{enumerable:!0,get:function(){return p.default}}),i.default=void 0;var o=babelHelpers.interopRequireWildcard(t(n[0])),r=t(n[1]),d=babelHelpers.interopRequireDefault(t(n[2])),p=babelHelpers.interopRequireDefault(t(n[3])),s=375,l=812,u=r.Dimensions.get('window'),c=(u.height,u.width,r.NativeModules.PlatformConstants),g=((void 0===c?{}:c).reactNativeVersion||{}).minor,h=(void 0===g?0:g)>=50&&r.DeviceInfo.isIPhoneX_deprecated,f=null,v=function(t){return null!==f?f:e.Expo?e.Expo.Constants.statusBarHeight:0},b=function(e){if(!e.includes('%'))return 0;var t=parseFloat(e)/100;return isNaN(t)?0:t},m=(function(e){function t(){var e,a,i;babelHelpers.classCallCheck(this,t);for(var n=arguments.length,o=new Array(n),d=0;d=p?l%=p:l<0&&(l=l%p+p),u>=d?u%=d:u<0&&(u=u%d+d);var c=0===l,g=l+o>=p,h=0===u,f=u+n>=d;i.setState({touchesTop:c,touchesBottom:g,touchesLeft:h,touchesRight:f,orientation:r,viewWidth:n,viewHeight:o}),i.props.onLayout&&(s=i.props).onLayout.apply(s,t)}})}}},i._getSafeAreaStyle=function(){var e=i.state,t=e.touchesTop,a=e.touchesBottom,n=e.touchesLeft,o=e.touchesRight,r=i.props,d=r.forceInset,p=(r.isLandscape,i._getViewStyles()),s=p.paddingTop,l=p.paddingBottom,u=p.paddingLeft,c=p.paddingRight,g=p.viewStyle,h=babelHelpers.objectSpread({},g,{paddingTop:t?i._getInset('top'):0,paddingBottom:a?i._getInset('bottom'):0,paddingLeft:n?i._getInset('left'):0,paddingRight:o?i._getInset('right'):0});return d&&Object.keys(d).forEach(function(e){var t=d[e];switch('always'===t&&(t=i._getInset(e)),'never'===t&&(t=0),e){case'horizontal':h.paddingLeft=t,h.paddingRight=t;break;case'vertical':h.paddingTop=t,h.paddingBottom=t;break;case'left':case'right':case'top':case'bottom':var a="padding"+e[0].toUpperCase()+e.slice(1);h[a]=t}}),h.height&&'number'==typeof h.height&&(h.height+=h.paddingTop+h.paddingBottom),h.width&&'number'==typeof h.width&&(h.width+=h.paddingLeft+h.paddingRight),h.paddingTop=Math.max(h.paddingTop,s),h.paddingBottom=Math.max(h.paddingBottom,l),h.paddingLeft=Math.max(h.paddingLeft,u),h.paddingRight=Math.max(h.paddingRight,c),h},i._getViewStyles=function(){var e=i.state.viewWidth,t=r.StyleSheet.flatten(i.props.style||{}),a=t.padding,n=void 0===a?0:a,o=t.paddingVertical,d=void 0===o?n:o,p=t.paddingHorizontal,s=void 0===p?n:p,l=t.paddingTop,u=void 0===l?d:l,c=t.paddingBottom,g=void 0===c?d:c,h=t.paddingLeft,f=void 0===h?s:h,v=t.paddingRight,m=void 0===v?s:v,y=babelHelpers.objectWithoutProperties(t,["padding","paddingVertical","paddingHorizontal","paddingTop","paddingBottom","paddingLeft","paddingRight"]);return'number'!=typeof u&&(u=b(u)*e),'number'!=typeof g&&(g=b(g)*e),'number'!=typeof f&&(f=b(f)*e),'number'!=typeof m&&(m=b(m)*e),{paddingTop:u,paddingBottom:g,paddingLeft:f,paddingRight:m,viewStyle:y}},i._getInset=function(e){var t=i.props.isLandscape;switch(e){case'horizontal':case'right':case'left':return t&&h?44:0;case'vertical':case'top':return v(t);case'bottom':return h?t?24:34:0}},a))}return babelHelpers.createClass(t,[{key:"componentDidMount",value:function(){var e=this;r.InteractionManager.runAfterInteractions(function(){e._onLayout()})}},{key:"componentWillReceiveProps",value:function(){this._onLayout()}},{key:"render",value:function(){var e=this,t=this.props,a=(t.forceInset,t.isLandscape,t.style,babelHelpers.objectWithoutProperties(t,["forceInset","isLandscape","style"])),i=this._getSafeAreaStyle();return o.default.createElement(r.Animated.View,babelHelpers.extends({ref:function(t){return e.view=t},pointerEvents:"box-none"},a,{onLayout:this._onLayout,style:i}))}}]),babelHelpers.inherits(t,e),t})(o.Component);m.setStatusBarHeight=function(e){f=e};var y=(0,d.default)(m);i.default=y},412,[26,1,413,414]); +__d(function(e,n,t,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var n=(function(n){function t(){var e;babelHelpers.classCallCheck(this,t),(e=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this))).handleOrientationChange=function(n){var t=n.window,i=l(t);e.setState({isLandscape:i})};var n=l(s.Dimensions.get('window'));return e.state={isLandscape:n},e}return babelHelpers.createClass(t,[{key:"componentDidMount",value:function(){'function'==typeof s.Dimensions.addEventListener&&s.Dimensions.addEventListener('change',this.handleOrientationChange)}},{key:"componentWillUnmount",value:function(){'function'==typeof s.Dimensions.removeEventListener&&s.Dimensions.removeEventListener('change',this.handleOrientationChange)}},{key:"render",value:function(){return r.createElement(e,babelHelpers.extends({},this.props,this.state))}}]),babelHelpers.inherits(t,n),t})(r.Component);return(0,o.default)(n,e)},i.isOrientationLandscape=void 0;var r=babelHelpers.interopRequireWildcard(n(a[0])),s=n(a[1]),o=babelHelpers.interopRequireDefault(n(a[2])),l=function(e){return e.width>e.height};i.isOrientationLandscape=l},413,[26,1,393]); +__d(function(e,t,r,l,n){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var r=(function(r){function l(){return babelHelpers.classCallCheck(this,l),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(l).apply(this,arguments))}return babelHelpers.createClass(l,[{key:"render",value:function(){return a.default.createElement(s.default,{style:{flex:1},forceInset:e},a.default.createElement(t,this.props),";")}}]),babelHelpers.inherits(l,r),l})(a.Component);return(0,u.default)(r,t)}};var a=babelHelpers.interopRequireWildcard(t(n[0])),u=babelHelpers.interopRequireDefault(t(n[1])),s=babelHelpers.interopRequireDefault(t(n[2]))},414,[26,393,412]); +__d(function(e,t,l,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var r=babelHelpers.interopRequireDefault(t(i[0])),n=t(i[1]),s=(babelHelpers.interopRequireDefault(t(i[2])),t(i[3])),o=babelHelpers.interopRequireDefault(t(i[4])),u=(function(e){function t(e){var l;return babelHelpers.classCallCheck(this,t),(l=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this)))._mustAlwaysBeVisible=function(){return l.props.animationEnabled||l.props.swipeEnabled},l.state={awake:!e.lazy||e.isFocused},l}return babelHelpers.createClass(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){return e.isFocused&&!t.awake?{awake:!0}:null}}]),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.state.awake,t=this.props,l=t.isFocused,a=t.childNavigation,i=(t.navigation,t.removeClippedSubviews),s=(t.lazy,babelHelpers.objectWithoutProperties(t,["isFocused","childNavigation","navigation","removeClippedSubviews","lazy"]));return r.default.createElement(n.View,{style:p.container,collapsable:!1,removeClippedSubviews:i},r.default.createElement(n.View,{style:this._mustAlwaysBeVisible()||l?p.innerAttached:p.innerDetached},e?r.default.createElement(o.default,babelHelpers.extends({},s,{navigation:a})):null))}}]),babelHelpers.inherits(t,e),t})(r.default.PureComponent),p=n.StyleSheet.create({container:{flex:1,overflow:'hidden'},innerAttached:{flex:1},innerDetached:{flex:1,top:3e3}}),b=(0,s.polyfill)(u);a.default=b},415,[26,1,43,303,360]); +__d(function(e,n,r,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=babelHelpers.interopRequireDefault(n(o[0])),s=babelHelpers.interopRequireDefault(n(o[1])),l={willFocus:'onWillFocus',didFocus:'onDidFocus',willBlur:'onWillBlur',didBlur:'onDidBlur'},u=Object.keys(l),a=(function(e){function n(){var e,r,t;babelHelpers.classCallCheck(this,n);for(var o=arguments.length,i=new Array(o),s=0;se.height};a.isOrientationLandscape=o},419,[26,1,393]); +__d(function(e,a,r,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.getImageSource=t.ToolbarAndroid=t.TabBarItemIOS=t.TabBarItem=t.Button=t.default=void 0;var u=babelHelpers.interopRequireDefault(a(o[0])),l=babelHelpers.interopRequireDefault(a(o[1])),n=(0,u.default)(l.default,'Material Design Icons','MaterialCommunityIcons.ttf'),b=n;t.default=b;var d=n.Button;t.Button=d;var i=n.TabBarItem;t.TabBarItem=i;var I=n.TabBarItemIOS;t.TabBarItemIOS=I;var m=n.ToolbarAndroid;t.ToolbarAndroid=m;var f=n.getImageSource;t.getImageSource=f},420,[421,584]); +__d(function(e,t,r,o,n){Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(e,t,r,o){var n=r?r.replace(/\.(otf|ttf)$/,''):t,v=l.default.oneOf(Object.keys(e)),h=(function(t){function r(){var e,t,o;babelHelpers.classCallCheck(this,r);for(var n=arguments.length,a=new Array(n),l=0;l1&&void 0!==arguments[1]?arguments[1]:b,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;(0,u.default)();var a=e[t]||'?';'number'==typeof a&&(a=String.fromCharCode(a));var l=(0,i.processColor)(o),s=a+":"+r+":"+l,f=i.PixelRatio.get();return new Promise(function(e,t){var o=y[s];void 0!==o?!o||o instanceof Error?t(o):e({uri:o,scale:f}):p.getImageForFont(n,a,r,l,function(r,o){var n='string'==typeof r?new Error(r):r;y[s]=o||n||!1,!n&&o?e({uri:o,scale:f}):t(n)})})}return h.Button=(0,s.default)(h),h.TabBarItem=(0,f.default)(v,m),h.TabBarItemIOS=h.TabBarItem,h.ToolbarAndroid=(0,c.default)(v,m),h.getImageSource=m,h.loadFont=function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0],Promise.resolve()},h.hasIcon=function(t){return Object.prototype.hasOwnProperty.call(e,t)},h.getRawGlyphMap=function(){return e},h.getFontFamily=function(){return n},h},o.DEFAULT_ICON_COLOR=o.DEFAULT_ICON_SIZE=o.NativeIconAPI=void 0;var a=babelHelpers.interopRequireWildcard(t(n[0])),l=babelHelpers.interopRequireDefault(t(n[1])),i=t(n[2]),u=babelHelpers.interopRequireDefault(t(n[3])),s=babelHelpers.interopRequireDefault(t(n[4])),f=babelHelpers.interopRequireDefault(t(n[5])),c=babelHelpers.interopRequireDefault(t(n[6])),p=i.NativeModules.RNVectorIconsManager||i.NativeModules.RNVectorIconsModule;o.NativeIconAPI=p;var b=12;o.DEFAULT_ICON_SIZE=b;var d='black';o.DEFAULT_ICON_COLOR=d},421,[26,43,422,423,424,569,583]); +__d(function(e,t,n,r,u){Object.defineProperty(r,"__esModule",{value:!0});var o=t(u[0]);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})})},422,[1]); +__d(function(e,n,o,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){if(!i.NativeIconAPI)throw new Error('RNVectorIconsModule not available, did you properly integrate the module? Try running `react-native link react-native-vector-icons` and recompiling.')};n(t[0]);var i=n(t[1])},423,[422,421]); +__d(function(e,t,l,r,a){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var t,l;return l=t=(function(t){function l(){return babelHelpers.classCallCheck(this,l),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(l).apply(this,arguments))}return babelHelpers.createClass(l,[{key:"render",value:function(){var t=this.props,l=t.style,r=t.iconStyle,a=t.children,s=babelHelpers.objectWithoutProperties(t,["style","iconStyle","children"]),c=(0,u.default)(s,Object.keys(d.Text.propTypes),'style','name','size','color'),p=(0,u.default)(s,Object.keys(d.TouchableHighlight.propTypes)),f=(0,n.default)(s,Object.keys(c),Object.keys(p),'iconStyle','borderRadius','backgroundColor');c.style=r?[b.icon,r]:b.icon;var y=(0,u.default)(this.props,'color'),h=(0,u.default)(this.props,'backgroundColor','borderRadius');return i.default.createElement(d.TouchableHighlight,babelHelpers.extends({style:[b.touchable,h]},p),i.default.createElement(d.View,babelHelpers.extends({style:[b.container,h,l]},f),i.default.createElement(e,c),(0,o.default)(a)?i.default.createElement(d.Text,{style:[b.text,y]},a):a))}}]),babelHelpers.inherits(l,t),l})(i.PureComponent),t.propTypes={backgroundColor:s.default.oneOfType([s.default.string,s.default.number]),borderRadius:s.default.number,color:s.default.oneOfType([s.default.string,s.default.number]),size:s.default.number,iconStyle:s.default.any,style:s.default.any,children:s.default.node},t.defaultProps={backgroundColor:c,borderRadius:5,color:'white',size:20},l};var o=babelHelpers.interopRequireDefault(t(a[0])),n=babelHelpers.interopRequireDefault(t(a[1])),u=babelHelpers.interopRequireDefault(t(a[2])),i=babelHelpers.interopRequireWildcard(t(a[3])),s=babelHelpers.interopRequireDefault(t(a[4])),d=t(a[5]),b=d.StyleSheet.create({container:{flexDirection:'row',justifyContent:'flex-start',alignItems:'center',padding:8},touchable:{overflow:'hidden'},icon:{marginRight:10},text:{fontWeight:'600',backgroundColor:'transparent'}}),c='#007AFF'},424,[425,434,562,26,43,422]); +__d(function(t,n,r,o,e){var i=n(e[0]),c=n(e[1]),f=n(e[2]),u='[object String]';r.exports=function(t){return'string'==typeof t||!c(t)&&f(t)&&i(t)==u}},425,[426,432,433]); +__d(function(n,t,o,i,e){var c=t(e[0]),r=t(e[1]),u=t(e[2]),d='[object Null]',f='[object Undefined]',g=c?"function"==typeof c?c.toStringTag:"@@toStringTag":void 0;o.exports=function(n){return null==n?void 0===n?f:d:g&&g in Object(n)?r(n):u(n)}},426,[427,430,431]); +__d(function(o,n,r,t,_){var a=n(_[0]).Symbol;r.exports=a},427,[428]); +__d(function(e,t,f,s,c){var n=t(c[0]),o='object'==typeof self&&self&&self.Object===Object&&self,l=n||o||Function('return this')();f.exports=l},428,[429]); +__d(function(t,e,c,o,b){var j='object'==typeof t&&t&&t.Object===Object&&t;c.exports=j},429,[]); +__d(function(t,o,r,n,a){var e=o(a[0]),c=Object.prototype,i=c.hasOwnProperty,g=c.toString,l=e?"function"==typeof e?e.toStringTag:"@@toStringTag":void 0;r.exports=function(t){var o=i.call(t,l),r=t[l];try{t[l]=void 0}catch(t){}var n=g.call(t);return o?t[l]=r:delete t[l],n}},430,[427]); +__d(function(t,n,o,r,c){var e=Object.prototype.toString;o.exports=function(t){return e.call(t)}},431,[]); +__d(function(r,a,i,n,o){var s=Array.isArray;i.exports=s},432,[]); +__d(function(n,t,o,e,u){o.exports=function(n){return null!=n&&'object'==typeof n}},433,[]); +__d(function(n,r,t,u,e){var f=r(e[0]),o=r(e[1]),a=r(e[2]),i=r(e[3]),l=r(e[4]),v=r(e[5]),c=r(e[6]),g=r(e[7]),h=c(function(n,r){var t={};if(null==n)return t;var u=!1;r=f(r,function(r){return r=i(r,n),u||(u=r.length>1),r}),l(n,g(n),t),u&&(t=o(t,7,v));for(var e=r.length;e--;)a(t,r[e]);return t});t.exports=h},434,[435,436,535,536,480,549,551,515]); +__d(function(n,r,t,o,u){t.exports=function(n,r){for(var t=-1,o=null==n?0:n.length,u=Array(o);++t-1}},444,[441]); +__d(function(t,i,s,_,n){var r=i(n[0]);s.exports=function(t,i){var s=this.__data__,_=r(s,t);return _<0?(++this.size,s.push([t,i])):s[_][1]=i,this}},445,[441]); +__d(function(t,_,i,n,s){var a=_(s[0]);i.exports=function(){this.__data__=new a,this.size=0}},446,[438]); +__d(function(t,e,i,_,n){i.exports=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}},447,[]); +__d(function(t,_,n,e,i){n.exports=function(t){return this.__data__.get(t)}},448,[]); +__d(function(t,_,n,a,i){n.exports=function(t){return this.__data__.has(t)}},449,[]); +__d(function(t,i,s,_,e){var a=i(e[0]),n=i(e[1]),h=i(e[2]);s.exports=function(t,i){var s=this.__data__;if(s instanceof a){var _=s.__data__;if(!n||_.length<199)return _.push([t,i]),this.size=++s.size,this;s=this.__data__=new h(_)}return s.set(t,i),this.size=s.size,this}},450,[438,451,460]); +__d(function(a,n,o,p,r){var t=n(r[0])(n(r[1]),'Map');o.exports=t},451,[452,428]); +__d(function(n,r,o,t,i){var u=r(i[0]),v=r(i[1]);o.exports=function(n,r){var o=v(n,r);return u(o)?o:void 0}},452,[453,459]); +__d(function(t,o,r,e,n){var c=o(n[0]),p=o(n[1]),a=o(n[2]),u=o(n[3]),i=/^\[object .+?Constructor\]$/,s=Function.prototype,$=Object.prototype,f=s.toString,g=$.hasOwnProperty,l=RegExp('^'+f.call(g).replace(/[\\^$.*+?()[\]{}|]/g,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');r.exports=function(t){return!(!a(t)||p(t))&&(c(t)?l:i).test(u(t))}},453,[454,456,455,458]); +__d(function(n,t,o,c,r){var e=t(r[0]),u=t(r[1]),i='[object AsyncFunction]',b='[object Function]',j='[object GeneratorFunction]',a='[object Proxy]';o.exports=function(n){if(!u(n))return!1;var t=e(n);return t==b||t==j||t==i||t==a}},454,[426,455]); +__d(function(n,t,o,u,c){o.exports=function(n){var t=typeof n;return null!=n&&('object'==t||'function'==t)}},455,[]); +__d(function(e,n,r,c,o){var s,t=n(o[0]),_=(s=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||''))?'Symbol(src)_1.'+s:'';r.exports=function(e){return!!_&&_ in e}},456,[457]); +__d(function(_,r,e,o,s){var a=r(s[0])['__core-js_shared__'];e.exports=a},457,[428]); +__d(function(t,r,n,c,o){var u=Function.prototype.toString;n.exports=function(t){if(null!=t){try{return u.call(t)}catch(t){}try{return t+''}catch(t){}}return''}},458,[]); +__d(function(n,o,t,u,i){t.exports=function(n,o){return null==n?void 0:n[o]}},459,[]); +__d(function(t,e,o,r,p){var a=e(p[0]),l=e(p[1]),n=e(p[2]),s=e(p[3]),y=e(p[4]);function c(t){var e=-1,o=null==t?0:t.length;for(this.clear();++e-1&&n%1==0&&n-1&&n%1==0&&n<=u}},491,[]); +__d(function(n,t,r,u,o){r.exports=function(n){return function(t){return n(t)}}},492,[]); +__d(function(e,t,r,n,o){var i=t(o[0]),p='object'==typeof n&&n&&!n.nodeType&&n,c=p&&'object'==typeof r&&r&&!r.nodeType&&r,u=c&&c.exports===p&&i.process,y=(function(){try{var e=c&&c.require&&c.require('util').types;return e||u&&u.binding&&u.binding('util')}catch(e){}})();r.exports=y},493,[429]); +__d(function(r,t,n,o,c){var e=t(c[0]),u=t(c[1]),a=Object.prototype.hasOwnProperty;n.exports=function(r){if(!e(r))return u(r);var t=[];for(var n in Object(r))a.call(r,n)&&'constructor'!=n&&t.push(n);return t}},494,[495,496]); +__d(function(t,o,r,n,c){var e=Object.prototype;r.exports=function(t){var o=t&&t.constructor;return t===('function'==typeof o&&o.prototype||e)}},495,[]); +__d(function(e,t,c,b,j){var n=t(j[0])(Object.keys,Object);c.exports=n},496,[497]); +__d(function(n,t,r,u,o){r.exports=function(n,t){return function(r){return n(t(r))}}},497,[]); +__d(function(n,t,r,u,e){var l=t(e[0]),o=t(e[1]);r.exports=function(n){return null!=n&&o(n.length)&&!l(n)}},498,[454,491]); +__d(function(n,r,t,o,u){var c=r(u[0]),e=r(u[1]);t.exports=function(n,r){return n&&c(r,e(r),n)}},499,[480,500]); +__d(function(n,r,t,o,u){var c=r(u[0]),e=r(u[1]),f=r(u[2]);t.exports=function(n){return f(n)?c(n,!0):e(n)}},500,[482,501,498]); +__d(function(r,t,n,o,c){var e=t(c[0]),u=t(c[1]),a=t(c[2]),p=Object.prototype.hasOwnProperty;n.exports=function(r){if(!e(r))return a(r);var t=u(r),n=[];for(var o in r)('constructor'!=o||!t&&p.call(r,o))&&n.push(o);return n}},501,[455,495,502]); +__d(function(n,r,t,u,f){t.exports=function(n){var r=[];if(null!=n)for(var t in Object(n))r.push(t);return r}},502,[]); +__d(function(e,o,t,n,r){var c=o(r[0]),f='object'==typeof n&&n&&!n.nodeType&&n,p=f&&'object'==typeof t&&t&&!t.nodeType&&t,i=p&&p.exports===f?c.Buffer:void 0,u=i?i.allocUnsafe:void 0;t.exports=function(e,o){if(o)return e.slice();var t=e.length,n=u?u(t):new e.constructor(t);return e.copy(n),n}},503,[428]); +__d(function(r,n,t,o,e){t.exports=function(r,n){var t=-1,o=r.length;for(n||(n=Array(o));++ta?0:a+n),(t=t>a?a:t)<0&&(t+=a),a=n>t?0:t-n>>>0,n>>>=0;for(var e=Array(a);++o0&&e(g)?t>1?n(g,t-1,e,o,u):a(u,g):o||(u[u.length]=g)}return u}},553,[511,554]); +__d(function(n,o,t,a,e){var i=o(e[0]),r=o(e[1]),c=o(e[2]),d=i?"function"==typeof i?i.isConcatSpreadable:"@@isConcatSpreadable":void 0;t.exports=function(n){return c(n)||r(n)||!!(d&&n&&n[d])}},554,[427,484,432]); +__d(function(r,n,t,a,o){var e=n(o[0]),f=Math.max;t.exports=function(r,n,t){return n=f(void 0===n?r.length-1:n,0),function(){for(var a=arguments,o=-1,i=f(a.length-n,0),u=Array(i);++o0){if(++r>=o)return arguments[0]}else r=0;return n.apply(void 0,arguments)}}},561,[]); +__d(function(n,r,t,u,o){var c=r(o[0]),e=r(o[1])(function(n,r){return null==n?{}:c(n,r)});t.exports=e},562,[563,551]); +__d(function(n,r,t,u,o){var c=r(o[0]),e=r(o[1]);t.exports=function(n,r){return c(n,r,function(r,t){return e(n,t)})}},563,[564,566]); +__d(function(r,n,t,o,a){var e=n(a[0]),f=n(a[1]),u=n(a[2]);t.exports=function(r,n,t){for(var o=-1,a=n.length,v={};++os))return!1;var g=d.get(e);if(g&&d.get(r))return g==r;var b=-1,h=!0,k=t&v?new f:void 0;for(d.set(e,r),d.set(r,e);++b1&&void 0!==arguments[1]&&arguments[1]?{accessible:!1}:{};if(i.IS_IOS)return babelHelpers.objectSpread({},t,{testID:e});return babelHelpers.objectSpread({},t,{accessibilityLabel:e})};var i=t(b[0])},586,[299]); +__d(function(e,s,a,t,r){a.exports=s(r[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/js/assets",width:167,height:196,scales:[1],hash:"717c283dbbbca590c4406baaa2aed677",name:"webdriverio",type:"png"})},587,[67]); +__d(function(e,t,r,n,l){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=babelHelpers.interopRequireWildcard(t(l[0])),i=t(l[1]),o=babelHelpers.interopRequireDefault(t(l[2])),u=t(l[3]),s=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.createClass(t,[{key:"renderLoading",value:function(){return a.default.createElement(i.View,{style:d.loaderContainer},a.default.createElement(o.default,{text:"Loading..."}))}},{key:"render",value:function(){return console.log('render'),a.default.createElement(i.WebView,{renderLoading:this.renderLoading,source:{uri:'http://webdriver.io/'},startInLoadingState:!0,originWhitelist:['*'],style:{marginTop:u.STATUS_BAR_HEIGHT}})}}]),babelHelpers.inherits(t,e),t})(a.Component),d=i.StyleSheet.create({loaderContainer:{backgroundColor:'#f7f7f7',flex:1,flexDirection:'column',justifyContent:'center',alignItems:'center'}}),c=s;n.default=c},588,[26,1,589,298]); +__d(function(e,r,t,a,l){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=babelHelpers.interopRequireWildcard(r(l[0])),d=r(l[1]),n=babelHelpers.interopRequireDefault(r(l[2])),i=(function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(r).apply(this,arguments))}return babelHelpers.createClass(r,[{key:"render",value:function(){var e=this.props.text;return o.default.createElement(d.Text,{style:[p.headerBorder,p.header]},e.toUpperCase())}}]),babelHelpers.inherits(r,e),r})(o.PureComponent);i.propTypes={text:n.default.string.isRequired};var p=d.StyleSheet.create({headerBorder:babelHelpers.objectSpread({backgroundColor:'#000',borderColor:'#ea5906',borderWidth:5},{paddingBottom:4},{paddingLeft:13,paddingRight:13,paddingTop:9,textAlign:'center'}),header:{color:'#ea5906',fontSize:40}}),s=i;a.default=s},589,[26,1,43]); +__d(function(e,t,r,l,n){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var a=babelHelpers.interopRequireWildcard(t(n[0])),o=t(n[1]),s=babelHelpers.interopRequireDefault(t(n[2])),i=t(n[3]),u=t(n[4]),b=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.createClass(t,[{key:"render",value:function(){return a.default.createElement(o.ScrollView,babelHelpers.extends({style:p.container},(0,u.testProperties)('Forms-screen')),a.default.createElement(s.default,null))}}]),babelHelpers.inherits(t,e),t})(a.Component),p=o.StyleSheet.create({container:{flex:1,backgroundColor:'#f7f7f7',marginTop:i.STATUS_BAR_HEIGHT,paddingBottom:40}}),c=b;l.default=c},590,[26,1,591,298,586]); +__d(function(e,t,n,l,i){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var a=babelHelpers.interopRequireWildcard(t(i[0])),r=t(i[1]),o=babelHelpers.interopRequireDefault(t(i[2])),u=t(i[3]),s=t(i[4]),d=t(i[5]),c=babelHelpers.interopRequireDefault(t(i[6])),p=babelHelpers.interopRequireDefault(t(i[7])),b=[{value:'1',label:'webdriver.io is awesome'},{value:'2',label:'Appium is awesome'},{value:'3',label:'This app is awesome'}],f=(function(e){function t(){var e;return babelHelpers.classCallCheck(this,t),(e=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this))).state={isSwitchActive:!1,inputText:''},e}return babelHelpers.createClass(t,[{key:"showAlert",value:function(){r.Alert.alert('This button is','This button is active',[{text:'Ask me later'},{text:'Cancel'},{text:'OK'}],{cancelable:!1})}},{key:"render",value:function(){var e=this,t=this.state.isSwitchActive;return a.default.createElement(r.View,{style:h.container},a.default.createElement(p.default,{text:"Form components"}),a.default.createElement(r.View,{style:h.formComponentsContainer},a.default.createElement(r.View,null,a.default.createElement(u.Input,babelHelpers.extends({keyboardAppearance:"light",autoFocus:!1,autoCapitalize:"none",autoCorrect:!1,placeholder:'Type something',onChangeText:function(t){return e.setState({inputText:t})},label:"Input field",labelStyle:h.inputLabelStyle,containerStyle:h.inputContainerStyle,inputContainerStyle:h.inputInnerContainerStyle,inputStyle:h.inputStyle,maxLength:30,multiline:!1},(0,d.testProperties)('text-input'))),a.default.createElement(r.Text,{style:h.inputTextLabel},"You have typed:"),a.default.createElement(r.Text,babelHelpers.extends({style:h.inputText},(0,d.testProperties)('input-text-result')),this.state.inputText)),a.default.createElement(r.Text,{style:h.labelText},"Switch"),a.default.createElement(r.View,{style:h.switchContainer},a.default.createElement(r.Switch,babelHelpers.extends({value:this.state.isSwitchActive,onValueChange:function(){return e.setState({isSwitchActive:!t})},style:h.switch,tintColor:'#FF5C06',onTintColor:'#FF5C06',thumbTintColor:'#e3e3e3'},(0,d.testProperties)('switch'))),a.default.createElement(r.Text,(0,d.testProperties)('switch-text'),"Click to turn the switch "+(this.state.isSwitchActive?'OFF':'ON'))),a.default.createElement(o.default,{label:"Dropdown",placeholder:"Select a value here",options:b,containerStyle:h.selectInput,labelStyle:h.selectInputLabel,innerContainerStyle:h.selectInputInnerContainer,testProperty:"Dropdown"}),a.default.createElement(r.View,null,a.default.createElement(r.Text,{style:h.labelText},"Buttons"),a.default.createElement(r.View,{style:h.buttonContainer},a.default.createElement(c.default,{containerStyle:h.button,text:"Active",onPress:this.showAlert,textStyle:h.buttonText,disabled:!1}),a.default.createElement(c.default,{containerStyle:[h.button,{marginLeft:10}],text:"Inactive",textStyle:h.buttonText,disabled:!0})))))}}]),babelHelpers.inherits(t,e),t})(a.Component),h=r.StyleSheet.create({container:{flex:1,backgroundColor:'#f7f7f7',alignItems:'center'},formComponentsContainer:{backgroundColor:'#f7f7f7',width:s.WINDOW_WIDTH-30,paddingTop:30,paddingBottom:30,borderColor:'#ea5906',borderWidth:5},labelText:{fontSize:16,marginLeft:20},input:{paddingLeft:10,paddingRight:10},inputLabelStyle:{color:'#000',fontWeight:'normal',paddingLeft:10},inputContainerStyle:{padding:10,width:s.WINDOW_WIDTH-40},inputInnerContainerStyle:{borderColor:'#ea5906'},inputStyle:{fontSize:14,color:'#545454'},inputTextLabel:{paddingLeft:20},inputText:{color:'#545454',fontSize:12,fontWeight:'100',padding:10,height:35,borderWidth:1,borderColor:'#e3e3e3',margin:20},switchContainer:{flex:1,paddingLeft:10,borderBottomColor:'#ea5906',borderBottomWidth:1,marginLeft:10,marginRight:10,paddingBottom:10,alignItems:'flex-start'},switch:{marginTop:10,marginBottom:10},selectInput:{paddingLeft:10,paddingRight:10},selectInputLabel:{fontSize:16,color:'#000'},selectInputInnerContainer:{borderBottomColor:'#ea5906',borderBottomWidth:1,paddingLeft:10},buttonContainer:{flexDirection:'row',justifyContent:'center',marginLeft:10,marginRight:10},button:{height:50,width:125,backgroundColor:'#000',borderColor:'#ea5906',borderWidth:5,marginTop:20},buttonText:{fontSize:16,color:'#ea5906'}}),m=f;l.default=m},591,[26,1,592,601,299,586,668,669]); +__d(function(e,l,t,a,n){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var r=babelHelpers.interopRequireWildcard(l(n[0])),o=babelHelpers.interopRequireDefault(l(n[1])),i=l(n[2]),s=babelHelpers.interopRequireWildcard(l(n[3])),u=babelHelpers.interopRequireDefault(l(n[4])),d=babelHelpers.interopRequireDefault(l(n[5])),p=l(n[6]),b=(function(e){function l(e){var t;return babelHelpers.classCallCheck(this,l),(t=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(l).call(this,e))).getValue=function(){var e=t.props,l=e.options,a=e.placeholder,n=l.find(function(e){return e.value===t.state.value});return n?n.label:a},t.handleChangeValue=function(e){t.setState({value:e},function(){return t.props.onChange(e)})},t.handleToggleShowOptions=function(){t.props.disabled||t.props.loading||(i.Keyboard.dismiss(),t.setState(function(e){return{optionsVisible:!e.optionsVisible}}))},t.renderValue=function(){var e=t.props,l=e.loading,a=e.disabled,n=e.loadingContainerStyle,o=e.valueStyle,s=e.valueProps;return l?r.default.createElement(i.View,{style:[t.styles.loadingContainer,n]},r.default.createElement(d.default,null)):r.default.createElement(i.Text,babelHelpers.extends({},s,{style:[t.styles.value,a&&t.styles.valueDisabled,o]}),t.getValue())},t.renderLabel=function(){var e=t.props,l=e.label,a=e.renderLabel,n=e.disabled,o=e.loading,s=e.labelProps,u=e.labelStyle;return a?a():l?r.default.createElement(i.Text,babelHelpers.extends({},s,{style:[t.styles.label,(n||o)&&t.styles.labelDisabled,u]}),l):void 0},t.state={value:e.value,optionsVisible:!1},t.styles=c(e),t}return babelHelpers.createClass(l,[{key:"componentWillReceiveProps",value:function(e){e.value!==this.state.value&&this.setState({value:e.value})}},{key:"render",value:function(){var e=this.state,l=e.value,t=e.optionsVisible,a=this.props,n=(a.label,a.disabled),o=a.loading,d=a.colors,b=a.valueContainerStyle,c=a.containerStyle,f=a.innerContainerStyle,y=a.renderArrowIcon,g=a.testProperty,h=babelHelpers.objectWithoutProperties(a,["label","disabled","loading","colors","valueContainerStyle","containerStyle","innerContainerStyle","renderArrowIcon","testProperty"]);return r.default.createElement(i.View,{style:[this.styles.container,c]},r.default.createElement(i.TouchableWithoutFeedback,babelHelpers.extends({onPress:this.handleToggleShowOptions},(0,p.testProperties)('select',g)),r.default.createElement(i.View,{style:[this.styles.innerContainer,this.state.optionsVisible&&this.styles.activeInnerContainer,f]},this.renderLabel(),r.default.createElement(i.View,{style:[this.styles.valueContainer,b]},this.renderValue(),r.default.createElement(s.default,{disabled:n,loading:o,type:t?s.ARROW_ICON_TYPES.UP:s.ARROW_ICON_TYPES.DOWN,tintColor:n||o?d.normal:d.dark,renderArrowIcon:y})))),!n&&!o&&r.default.createElement(u.default,babelHelpers.extends({},h,{colors:d,value:l,onChange:this.handleChangeValue,visible:t,toggleShowOptions:this.handleToggleShowOptions,testProperty:g})))}}]),babelHelpers.inherits(l,e),l})(r.Component);b.propTypes={label:o.default.string,placeholder:o.default.string,done:o.default.string,value:o.default.oneOfType([o.default.string,o.default.number]),options:o.default.arrayOf(o.default.shape({value:o.default.oneOfType([o.default.string,o.default.number]),label:o.default.string})).isRequired,disabled:o.default.bool,loading:o.default.bool,colors:o.default.shape({normal:o.default.string,light:o.default.string,dark:o.default.string}).isRequired,onChange:o.default.func,renderLabel:o.default.func,labelProps:o.default.object,valueProps:o.default.object,renderArrowIcon:o.default.func,labelStyle:i.Text.propTypes.style,loadingContainerStyle:i.ViewPropTypes.style,valueContainerStyle:i.ViewPropTypes.style,valueStyle:i.Text.propTypes.style,containerStyle:i.ViewPropTypes.style,innerContainerStyle:i.ViewPropTypes.style,testProperty:o.default.string},b.defaultProps={label:null,placeholder:'Select a value',done:'Done',value:null,arrowIcon:null,disabled:!1,loading:!1,colors:{normal:'#9C9C9C',light:'#D9D9D9',dark:'#545454'},onChange:function(){},renderLabel:null,labelProps:{},valueProps:{},renderArrowIcon:null,labelStyle:null,loadingContainerStyle:null,valueContainerStyle:null,valueStyle:null,containerStyle:null,innerContainerStyle:null,testProperty:null};var c=function(e){var l=e.colors;return i.StyleSheet.create({container:{zIndex:1,flex:1},innerContainer:{flex:1,marginBottom:28,borderBottomWidth:1,borderBottomColor:l.light,paddingVertical:10},activeInnerContainer:{borderBottomWidth:2,borderBottomColor:l.dark},label:{color:l.normal,fontSize:14},labelDisabled:{color:l.normal},valueContainer:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'},loadingContainer:{paddingTop:15},value:{fontSize:14,color:l.dark,paddingTop:15,marginRight:15},valueDisabled:{color:l.normal}})},f=b;a.default=f},592,[26,43,1,593,596,600,599]); +__d(function(e,r,t,l,a){Object.defineProperty(l,"__esModule",{value:!0}),l.default=l.ARROW_ICON_TYPES=void 0;var o=babelHelpers.interopRequireWildcard(r(a[0])),n=babelHelpers.interopRequireDefault(r(a[1])),s=r(a[2]),i={UP:'UP',DOWN:'DOWN'};l.ARROW_ICON_TYPES=i;var p=(function(e){function t(){var e,l,o;babelHelpers.classCallCheck(this,t);for(var n=arguments.length,s=new Array(n),p=0;p=21?w.background=i.TouchableNativeFeedback.Ripple('ThemeAttrAndroid',!0):w.background=i.TouchableNativeFeedback.SelectableBackground()),n.default.createElement(i.View,{style:[o,R&&f.raised]},n.default.createElement(l,babelHelpers.extends({},w,{onPress:a,underlayColor:d?'transparent':void 0,activeOpacity:d?0:void 0,disabled:P}),n.default.createElement(x,babelHelpers.extends({},T,{style:[f.button,r,P&&f.disabled,P&&H,d&&{backgroundColor:'transparent',elevation:0},T&&{backgroundColor:'transparent'}]}),u&&n.default.createElement(i.ActivityIndicator,babelHelpers.extends({animating:!0,style:[f.loading,p],color:c.color,size:c.size},c)),!u&&m&&!h&&(0,s.default)(b.default,m,{containerStyle:[f.iconContainer,C]}),!u&&!!y&&n.default.createElement(i.Text,babelHelpers.extends({style:[f.title,S,P&&f.disabledTitle,P&&v]},g),y),!u&&m&&h&&(0,s.default)(b.default,m,{containerStyle:[f.iconContainer,C]}))))}}]),babelHelpers.inherits(l,t),l})(n.Component);c.propTypes={title:r.default.string,titleStyle:i.Text.propTypes.style,titleProps:r.default.object,buttonStyle:p.default.style,clear:r.default.bool,loading:r.default.bool,loadingStyle:p.default.style,loadingProps:r.default.object,onPress:r.default.any,containerStyle:p.default.style,icon:u.default,iconContainerStyle:p.default.style,iconRight:r.default.bool,linearGradientProps:r.default.object,TouchableComponent:r.default.any,ViewComponent:r.default.any,disabled:r.default.bool,disabledStyle:p.default.style,disabledTitleStyle:i.Text.propTypes.style,raised:r.default.bool},c.defaultProps={title:'Welcome to\nReact Native Elements',iconRight:!1,TouchableComponent:i.TouchableNativeFeedback,onPress:function(){console.log('Please attach a method to this component')},clear:!1,loadingProps:{color:'white',size:'small'},buttonStyle:{borderRadius:3},disabled:!1,raised:!1};var f=i.StyleSheet.create({button:babelHelpers.objectSpread({flexDirection:'row',justifyContent:'center',alignItems:'center',borderRadius:3,backgroundColor:d.default.primary},{elevation:4,borderRadius:2}),disabled:babelHelpers.objectSpread({backgroundColor:'#D1D5D8'},{borderRadius:2}),title:babelHelpers.objectSpread({backgroundColor:'transparent',color:'white',fontSize:16,textAlign:'center',padding:8},{fontWeight:'500'}),disabledTitle:{color:'#F3F4F5'},iconContainer:{marginHorizontal:5},raised:babelHelpers.objectSpread({},{backgroundColor:'#fff',elevation:2})}),y=c;o.default=y},602,[43,26,1,603,604,605,628,627]); +__d(function(e,r,d,y,c){Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;y.default={primary:'#2089dc',secondary:'#8F0CE8',grey0:'#393e42',grey1:'#43484d',grey2:'#5e6977',grey3:'#86939e',grey4:'#bdc6cf',grey5:'#e1e8ee',greyOutline:'#bbb',searchBg:'#303337',error:'#ff190c'}},603,[]); +__d(function(e,l,t,u,a){Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var n=babelHelpers.interopRequireDefault(l(a[0]));u.default=function(e,l,t){return null===l||!1===l?null:n.default.isValidElement(l)?l:!0===l?n.default.createElement(e,t):n.default.createElement(e,babelHelpers.extends({},t,l))}},604,[26]); +__d(function(e,r,t,l,o){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var a=babelHelpers.interopRequireDefault(r(o[0])),n=babelHelpers.interopRequireDefault(r(o[1])),s=r(o[2]),i=babelHelpers.interopRequireDefault(r(o[3])),u=babelHelpers.interopRequireDefault(r(o[4])),d=function(e){var r=e.type,t=e.name,l=e.size,o=e.color,a=e.iconStyle,u=e.underlayColor,d=e.reverse,p=e.raised,f=e.containerStyle,b=e.reverseColor,y=e.onPress,v=e.component,m=void 0===v?y?s.TouchableHighlight:s.View:v,g=babelHelpers.objectWithoutProperties(e,["type","name","size","color","iconStyle","underlayColor","reverse","raised","containerStyle","reverseColor","onPress","component"]),C=(0,i.default)(r||'material');return n.default.createElement(s.View,{style:f&&f},n.default.createElement(m,babelHelpers.extends({},g,{underlayColor:d?o:u||o,style:[(d||p)&&c.button,(d||p)&&{borderRadius:l+4,height:2*l+4,width:2*l+4},p&&c.raised,{backgroundColor:d?o:p?'white':'transparent',alignItems:'center',justifyContent:'center'}],onPress:y}),n.default.createElement(C,{style:[{backgroundColor:'transparent'},a&&a],size:l,name:t,color:d?b:o})))};d.propTypes={type:a.default.string,name:a.default.string,size:a.default.number,color:a.default.string,component:a.default.func,underlayColor:a.default.string,reverse:a.default.bool,raised:a.default.bool,containerStyle:u.default.style,iconStyle:s.Text.propTypes.style,onPress:a.default.func,reverseColor:a.default.string},d.defaultProps={underlayColor:'white',reverse:!1,raised:!1,size:24,color:'black',reverseColor:'white'};var c=s.StyleSheet.create({button:{margin:7},raised:babelHelpers.objectSpread({},{elevation:2})}),p=d;l.default=p},605,[43,26,1,606,627]); +__d(function(e,r,t,a,u){Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.registerCustomIconType=void 0;var l=babelHelpers.interopRequireDefault(r(u[0])),n=babelHelpers.interopRequireDefault(r(u[1])),i=babelHelpers.interopRequireDefault(r(u[2])),o=babelHelpers.interopRequireDefault(r(u[3])),f=babelHelpers.interopRequireDefault(r(u[4])),s=babelHelpers.interopRequireDefault(r(u[5])),p=babelHelpers.interopRequireDefault(r(u[6])),c=babelHelpers.interopRequireDefault(r(u[7])),b=babelHelpers.interopRequireDefault(r(u[8])),d=babelHelpers.interopRequireDefault(r(u[9])),q=babelHelpers.interopRequireDefault(r(u[10])),D={};a.registerCustomIconType=function(e,r){D[e]=r};a.default=function(e){switch(e){case'zocial':return l.default;case'octicon':return n.default;case'material':return i.default;case'material-community':return o.default;case'ionicon':return f.default;case'foundation':return s.default;case'evilicon':return p.default;case'entypo':return c.default;case'font-awesome':return b.default;case'simple-line-icon':return d.default;case'feather':return q.default;default:return D.hasOwnProperty(e)?D[e]:i.default}}},606,[607,609,611,420,613,615,617,619,621,623,625]); +__d(function(e,a,r,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.getImageSource=t.ToolbarAndroid=t.TabBarItemIOS=t.TabBarItem=t.Button=t.default=void 0;var l=babelHelpers.interopRequireDefault(a(o[0])),u=babelHelpers.interopRequireDefault(a(o[1])),b=(0,l.default)(u.default,'zocial','Zocial.ttf'),d=b;t.default=d;var i=b.Button;t.Button=i;var I=b.TabBarItem;t.TabBarItem=I;var n=b.TabBarItemIOS;t.TabBarItemIOS=n;var f=b.ToolbarAndroid;t.ToolbarAndroid=f;var m=b.getImageSource;t.getImageSource=m},607,[421,608]); +__d(function(e,o,t,a){t.exports={acrobat:61696,amazon:61697,android:61698,angellist:61699,aol:61700,appnet:61701,appstore:61702,bitbucket:61703,bitcoin:61704,blogger:61705,buffer:61706,cal:61707,call:61708,cart:61709,chrome:61710,cloudapp:61711,creativecommons:61712,delicious:61713,digg:61714,disqus:61715,dribbble:61716,dropbox:61717,drupal:61718,dwolla:61720,email:61721,eventasaurus:61722,eventbrite:61723,eventful:61724,evernote:61725,facebook:61726,fivehundredpx:61727,flattr:61728,flickr:61729,forrst:61730,foursquare:61731,github:61732,gmail:61733,google:61734,googleplay:61735,googleplus:61736,gowalla:61737,grooveshark:61738,guest:61739,html5:61740,ie:61741,instagram:61742,instapaper:61743,intensedebate:61744,itunes:61745,klout:61746,lanyrd:61747,lastfm:61748,lego:61749,linkedin:61750,lkdto:61751,logmein:61752,macstore:61753,meetup:61754,myspace:61755,ninetyninedesigns:61756,openid:61757,opentable:61758,paypal:61759,persona:61796,pinboard:61760,pinterest:61761,plancast:61762,plurk:61763,pocket:61764,podcast:61765,posterous:61766,print:61767,quora:61768,reddit:61769,rss:61770,scribd:61771,skype:61772,smashing:61773,songkick:61774,soundcloud:61775,spotify:61776,stackoverflow:61777,statusnet:61778,steam:61779,stripe:61780,stumbleupon:61781,tumblr:61782,twitter:61783,viadeo:61784,vimeo:61785,vk:61786,weibo:61787,wikipedia:61788,windows:61789,wordpress:61790,xing:61791,yahoo:61792,ycombinator:61793,yelp:61794,youtube:61795}},608,[]); +__d(function(e,a,t,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.getImageSource=r.ToolbarAndroid=r.TabBarItemIOS=r.TabBarItem=r.Button=r.default=void 0;var u=babelHelpers.interopRequireDefault(a(o[0])),l=babelHelpers.interopRequireDefault(a(o[1])),b=(0,u.default)(l.default,'Octicons','Octicons.ttf'),d=b;r.default=d;var n=b.Button;r.Button=n;var i=b.TabBarItem;r.TabBarItem=i;var I=b.TabBarItemIOS;r.TabBarItemIOS=I;var c=b.ToolbarAndroid;r.ToolbarAndroid=c;var f=b.getImageSource;r.getImageSource=f},609,[421,610]); +__d(function(e,r,i,o){i.exports={alert:61696,archive:61697,"arrow-down":61698,"arrow-left":61699,"arrow-right":61700,"arrow-small-down":61701,"arrow-small-left":61702,"arrow-small-right":61703,"arrow-small-up":61704,"arrow-up":61705,beaker:61706,bell:61707,bold:61708,book:61709,bookmark:61710,briefcase:61711,broadcast:61712,browser:61713,bug:61714,calendar:61715,check:61716,checklist:61717,"chevron-down":61718,"chevron-left":61719,"chevron-right":61720,"chevron-up":61721,"circle-slash":61722,"circuit-board":61723,clippy:61724,clock:61725,"cloud-download":61726,"cloud-upload":61727,code:61728,comment:61729,"comment-discussion":61730,"credit-card":61731,dash:61732,dashboard:61733,database:61734,"desktop-download":61735,"device-camera":61736,"device-camera-video":61737,"device-desktop":61738,"device-mobile":61739,diff:61740,"diff-added":61741,"diff-ignored":61742,"diff-modified":61743,"diff-removed":61744,"diff-renamed":61745,ellipsis:61746,eye:61747,file:61748,"file-binary":61749,"file-code":61750,"file-directory":61751,"file-media":61752,"file-pdf":61753,"file-submodule":61754,"file-symlink-directory":61755,"file-symlink-file":61756,"file-zip":61757,flame:61758,fold:61759,gear:61760,gift:61761,gist:61762,"gist-secret":61763,"git-branch":61764,"git-commit":61765,"git-compare":61766,"git-merge":61767,"git-pull-request":61768,globe:61769,grabber:61770,graph:61771,heart:61772,history:61773,home:61774,"horizontal-rule":61775,hubot:61776,inbox:61777,info:61778,"issue-closed":61779,"issue-opened":61780,"issue-reopened":61781,italic:61782,jersey:61783,"kebab-horizontal":61784,"kebab-vertical":61785,key:61786,keyboard:61787,law:61788,"light-bulb":61789,link:61790,"link-external":61791,"list-ordered":61792,"list-unordered":61793,location:61794,lock:61795,"logo-gist":61796,"logo-github":61797,mail:61798,"mail-read":61799,"mark-github":61800,markdown:61801,megaphone:61802,mention:61803,milestone:61804,mirror:61805,"mortar-board":61806,mute:61807,"no-newline":61808,note:61809,octoface:61810,organization:61811,package:61812,paintcan:61813,pencil:61814,person:61815,pin:61816,plug:61817,plus:61818,"plus-small":61819,"primitive-dot":61820,"primitive-square":61821,project:61822,pulse:61823,question:61824,quote:61825,"radio-tower":61826,reply:61827,repo:61828,"repo-clone":61829,"repo-force-push":61830,"repo-forked":61831,"repo-pull":61832,"repo-push":61833,report:61834,rocket:61835,rss:61836,ruby:61837,"screen-full":61838,"screen-normal":61839,search:61840,server:61841,settings:61842,shield:61843,"sign-in":61844,"sign-out":61845,smiley:61846,squirrel:61847,star:61848,stop:61849,sync:61850,tag:61851,tasklist:61852,telescope:61853,terminal:61854,"text-size":61855,"three-bars":61856,thumbsdown:61857,thumbsup:61858,tools:61859,trashcan:61860,"triangle-down":61861,"triangle-left":61862,"triangle-right":61863,"triangle-up":61864,unfold:61865,unmute:61866,unverified:61867,verified:61868,versions:61869,watch:61870,x:61871,zap:61872}},610,[]); +__d(function(e,a,r,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.getImageSource=t.ToolbarAndroid=t.TabBarItemIOS=t.TabBarItem=t.Button=t.default=void 0;var l=babelHelpers.interopRequireDefault(a(o[0])),u=babelHelpers.interopRequireDefault(a(o[1])),b=(0,l.default)(u.default,'Material Icons','MaterialIcons.ttf'),d=b;t.default=d;var I=b.Button;t.Button=I;var n=b.TabBarItem;t.TabBarItem=n;var i=b.TabBarItemIOS;t.TabBarItemIOS=i;var f=b.ToolbarAndroid;t.ToolbarAndroid=f;var m=b.getImageSource;t.getImageSource=m},611,[421,612]); +__d(function(e,o,t,r){t.exports={"3d-rotation":59469,"ac-unit":60219,"access-alarm":57744,"access-alarms":57745,"access-time":57746,accessibility:59470,accessible:59668,"account-balance":59471,"account-balance-wallet":59472,"account-box":59473,"account-circle":59475,adb:58894,add:57669,"add-a-photo":58425,"add-alarm":57747,"add-alert":57347,"add-box":57670,"add-circle":57671,"add-circle-outline":57672,"add-location":58727,"add-shopping-cart":59476,"add-to-photos":58269,"add-to-queue":57436,adjust:58270,"airline-seat-flat":58928,"airline-seat-flat-angled":58929,"airline-seat-individual-suite":58930,"airline-seat-legroom-extra":58931,"airline-seat-legroom-normal":58932,"airline-seat-legroom-reduced":58933,"airline-seat-recline-extra":58934,"airline-seat-recline-normal":58935,"airplanemode-active":57749,"airplanemode-inactive":57748,airplay:57429,"airport-shuttle":60220,alarm:59477,"alarm-add":59478,"alarm-off":59479,"alarm-on":59480,album:57369,"all-inclusive":60221,"all-out":59659,android:59481,announcement:59482,apps:58819,archive:57673,"arrow-back":58820,"arrow-downward":58843,"arrow-drop-down":58821,"arrow-drop-down-circle":58822,"arrow-drop-up":58823,"arrow-forward":58824,"arrow-upward":58840,"art-track":57440,"aspect-ratio":59483,assessment:59484,assignment:59485,"assignment-ind":59486,"assignment-late":59487,"assignment-return":59488,"assignment-returned":59489,"assignment-turned-in":59490,assistant:58271,"assistant-photo":58272,"attach-file":57894,"attach-money":57895,attachment:58044,audiotrack:58273,autorenew:59491,"av-timer":57371,backspace:57674,backup:59492,"battery-alert":57756,"battery-charging-full":57763,"battery-full":57764,"battery-std":57765,"battery-unknown":57766,"beach-access":60222,beenhere:58669,block:57675,bluetooth:57767,"bluetooth-audio":58895,"bluetooth-connected":57768,"bluetooth-disabled":57769,"bluetooth-searching":57770,"blur-circular":58274,"blur-linear":58275,"blur-off":58276,"blur-on":58277,book:59493,bookmark:59494,"bookmark-border":59495,"border-all":57896,"border-bottom":57897,"border-clear":57898,"border-color":57899,"border-horizontal":57900,"border-inner":57901,"border-left":57902,"border-outer":57903,"border-right":57904,"border-style":57905,"border-top":57906,"border-vertical":57907,"branding-watermark":57451,"brightness-1":58278,"brightness-2":58279,"brightness-3":58280,"brightness-4":58281,"brightness-5":58282,"brightness-6":58283,"brightness-7":58284,"brightness-auto":57771,"brightness-high":57772,"brightness-low":57773,"brightness-medium":57774,"broken-image":58285,brush:58286,"bubble-chart":59101,"bug-report":59496,build:59497,"burst-mode":58428,business:57519,"business-center":60223,cached:59498,cake:59369,call:57520,"call-end":57521,"call-made":57522,"call-merge":57523,"call-missed":57524,"call-missed-outgoing":57572,"call-received":57525,"call-split":57526,"call-to-action":57452,camera:58287,"camera-alt":58288,"camera-enhance":59644,"camera-front":58289,"camera-rear":58290,"camera-roll":58291,cancel:58825,"card-giftcard":59638,"card-membership":59639,"card-travel":59640,casino:60224,cast:58119,"cast-connected":58120,"center-focus-strong":58292,"center-focus-weak":58293,"change-history":59499,chat:57527,"chat-bubble":57546,"chat-bubble-outline":57547,check:58826,"check-box":59444,"check-box-outline-blank":59445,"check-circle":59500,"chevron-left":58827,"chevron-right":58828,"child-care":60225,"child-friendly":60226,"chrome-reader-mode":59501,class:59502,clear:57676,"clear-all":57528,close:58829,"closed-caption":57372,cloud:58045,"cloud-circle":58046,"cloud-done":58047,"cloud-download":58048,"cloud-off":58049,"cloud-queue":58050,"cloud-upload":58051,code:59503,collections:58294,"collections-bookmark":58417,"color-lens":58295,colorize:58296,comment:57529,compare:58297,"compare-arrows":59669,computer:58122,"confirmation-number":58936,"contact-mail":57552,"contact-phone":57551,contacts:57530,"content-copy":57677,"content-cut":57678,"content-paste":57679,"control-point":58298,"control-point-duplicate":58299,copyright:59660,create:57680,"create-new-folder":58060,"credit-card":59504,crop:58302,"crop-16-9":58300,"crop-3-2":58301,"crop-5-4":58303,"crop-7-5":58304,"crop-din":58305,"crop-free":58306,"crop-landscape":58307,"crop-original":58308,"crop-portrait":58309,"crop-rotate":58423,"crop-square":58310,dashboard:59505,"data-usage":57775,"date-range":59670,dehaze:58311,delete:59506,"delete-forever":59691,"delete-sweep":57708,description:59507,"desktop-mac":58123,"desktop-windows":58124,details:58312,"developer-board":58125,"developer-mode":57776,"device-hub":58165,devices:57777,"devices-other":58167,"dialer-sip":57531,dialpad:57532,directions:58670,"directions-bike":58671,"directions-boat":58674,"directions-bus":58672,"directions-car":58673,"directions-railway":58676,"directions-run":58726,"directions-subway":58675,"directions-transit":58677,"directions-walk":58678,"disc-full":58896,dns:59509,"do-not-disturb":58898,"do-not-disturb-alt":58897,"do-not-disturb-off":58947,"do-not-disturb-on":58948,dock:58126,domain:59374,done:59510,"done-all":59511,"donut-large":59671,"donut-small":59672,drafts:57681,"drag-handle":57949,"drive-eta":58899,dvr:57778,edit:58313,"edit-location":58728,eject:59643,email:57534,"enhanced-encryption":58943,equalizer:57373,error:57344,"error-outline":57345,"euro-symbol":59686,"ev-station":58733,event:59512,"event-available":58900,"event-busy":58901,"event-note":58902,"event-seat":59651,"exit-to-app":59513,"expand-less":58830,"expand-more":58831,explicit:57374,explore:59514,exposure:58314,"exposure-neg-1":58315,"exposure-neg-2":58316,"exposure-plus-1":58317,"exposure-plus-2":58318,"exposure-zero":58319,extension:59515,face:59516,"fast-forward":57375,"fast-rewind":57376,favorite:59517,"favorite-border":59518,"featured-play-list":57453,"featured-video":57454,feedback:59519,"fiber-dvr":57437,"fiber-manual-record":57441,"fiber-new":57438,"fiber-pin":57450,"fiber-smart-record":57442,"file-download":58052,"file-upload":58054,filter:58323,"filter-1":58320,"filter-2":58321,"filter-3":58322,"filter-4":58324,"filter-5":58325,"filter-6":58326,"filter-7":58327,"filter-8":58328,"filter-9":58329,"filter-9-plus":58330,"filter-b-and-w":58331,"filter-center-focus":58332,"filter-drama":58333,"filter-frames":58334,"filter-hdr":58335,"filter-list":57682,"filter-none":58336,"filter-tilt-shift":58338,"filter-vintage":58339,"find-in-page":59520,"find-replace":59521,fingerprint:59661,"first-page":58844,"fitness-center":60227,flag:57683,flare:58340,"flash-auto":58341,"flash-off":58342,"flash-on":58343,flight:58681,"flight-land":59652,"flight-takeoff":59653,flip:58344,"flip-to-back":59522,"flip-to-front":59523,folder:58055,"folder-open":58056,"folder-shared":58057,"folder-special":58903,"font-download":57703,"format-align-center":57908,"format-align-justify":57909,"format-align-left":57910,"format-align-right":57911,"format-bold":57912,"format-clear":57913,"format-color-fill":57914,"format-color-reset":57915,"format-color-text":57916,"format-indent-decrease":57917,"format-indent-increase":57918,"format-italic":57919,"format-line-spacing":57920,"format-list-bulleted":57921,"format-list-numbered":57922,"format-paint":57923,"format-quote":57924,"format-shapes":57950,"format-size":57925,"format-strikethrough":57926,"format-textdirection-l-to-r":57927,"format-textdirection-r-to-l":57928,"format-underlined":57929,forum:57535,forward:57684,"forward-10":57430,"forward-30":57431,"forward-5":57432,"free-breakfast":60228,fullscreen:58832,"fullscreen-exit":58833,functions:57930,"g-translate":59687,gamepad:58127,games:57377,gavel:59662,gesture:57685,"get-app":59524,gif:59656,"golf-course":60229,"gps-fixed":57779,"gps-not-fixed":57780,"gps-off":57781,grade:59525,gradient:58345,grain:58346,"graphic-eq":57784,"grid-off":58347,"grid-on":58348,group:59375,"group-add":59376,"group-work":59526,hd:57426,"hdr-off":58349,"hdr-on":58350,"hdr-strong":58353,"hdr-weak":58354,headset:58128,"headset-mic":58129,healing:58355,hearing:57379,help:59527,"help-outline":59645,"high-quality":57380,highlight:57951,"highlight-off":59528,history:59529,home:59530,"hot-tub":60230,hotel:58682,"hourglass-empty":59531,"hourglass-full":59532,http:59650,https:59533,image:58356,"image-aspect-ratio":58357,"import-contacts":57568,"import-export":57539,"important-devices":59666,inbox:57686,"indeterminate-check-box":59657,info:59534,"info-outline":59535,input:59536,"insert-chart":57931,"insert-comment":57932,"insert-drive-file":57933,"insert-emoticon":57934,"insert-invitation":57935,"insert-link":57936,"insert-photo":57937,"invert-colors":59537,"invert-colors-off":57540,iso:58358,keyboard:58130,"keyboard-arrow-down":58131,"keyboard-arrow-left":58132,"keyboard-arrow-right":58133,"keyboard-arrow-up":58134,"keyboard-backspace":58135,"keyboard-capslock":58136,"keyboard-hide":58138,"keyboard-return":58139,"keyboard-tab":58140,"keyboard-voice":58141,kitchen:60231,label:59538,"label-outline":59539,landscape:58359,language:59540,laptop:58142,"laptop-chromebook":58143,"laptop-mac":58144,"laptop-windows":58145,"last-page":58845,launch:59541,layers:58683,"layers-clear":58684,"leak-add":58360,"leak-remove":58361,lens:58362,"library-add":57390,"library-books":57391,"library-music":57392,"lightbulb-outline":59663,"line-style":59673,"line-weight":59674,"linear-scale":57952,link:57687,"linked-camera":58424,list:59542,"live-help":57542,"live-tv":58937,"local-activity":58687,"local-airport":58685,"local-atm":58686,"local-bar":58688,"local-cafe":58689,"local-car-wash":58690,"local-convenience-store":58691,"local-dining":58710,"local-drink":58692,"local-florist":58693,"local-gas-station":58694,"local-grocery-store":58695,"local-hospital":58696,"local-hotel":58697,"local-laundry-service":58698,"local-library":58699,"local-mall":58700,"local-movies":58701,"local-offer":58702,"local-parking":58703,"local-pharmacy":58704,"local-phone":58705,"local-pizza":58706,"local-play":58707,"local-post-office":58708,"local-printshop":58709,"local-see":58711,"local-shipping":58712,"local-taxi":58713,"location-city":59377,"location-disabled":57782,"location-off":57543,"location-on":57544,"location-searching":57783,lock:59543,"lock-open":59544,"lock-outline":59545,looks:58364,"looks-3":58363,"looks-4":58365,"looks-5":58366,"looks-6":58367,"looks-one":58368,"looks-two":58369,loop:57384,loupe:58370,"low-priority":57709,loyalty:59546,mail:57688,"mail-outline":57569,map:58715,markunread:57689,"markunread-mailbox":59547,memory:58146,menu:58834,"merge-type":57938,message:57545,mic:57385,"mic-none":57386,"mic-off":57387,mms:58904,"mode-comment":57939,"mode-edit":57940,"monetization-on":57955,"money-off":57948,"monochrome-photos":58371,mood:59378,"mood-bad":59379,more:58905,"more-horiz":58835,"more-vert":58836,motorcycle:59675,mouse:58147,"move-to-inbox":57704,movie:57388,"movie-creation":58372,"movie-filter":58426,"multiline-chart":59103,"music-note":58373,"music-video":57443,"my-location":58716,nature:58374,"nature-people":58375,"navigate-before":58376,"navigate-next":58377,navigation:58717,"near-me":58729,"network-cell":57785,"network-check":58944,"network-locked":58906,"network-wifi":57786,"new-releases":57393,"next-week":57706,nfc:57787,"no-encryption":58945,"no-sim":57548,"not-interested":57395,note:57455,"note-add":59548,notifications:59380,"notifications-active":59383,"notifications-none":59381,"notifications-off":59382,"notifications-paused":59384,"offline-pin":59658,"ondemand-video":58938,opacity:59676,"open-in-browser":59549,"open-in-new":59550,"open-with":59551,pages:59385,pageview:59552,palette:58378,"pan-tool":59685,panorama:58379,"panorama-fish-eye":58380,"panorama-horizontal":58381,"panorama-vertical":58382,"panorama-wide-angle":58383,"party-mode":59386,pause:57396,"pause-circle-filled":57397,"pause-circle-outline":57398,payment:59553,people:59387,"people-outline":59388,"perm-camera-mic":59554,"perm-contact-calendar":59555,"perm-data-setting":59556,"perm-device-information":59557,"perm-identity":59558,"perm-media":59559,"perm-phone-msg":59560,"perm-scan-wifi":59561,person:59389,"person-add":59390,"person-outline":59391,"person-pin":58714,"person-pin-circle":58730,"personal-video":58939,pets:59677,phone:57549,"phone-android":58148,"phone-bluetooth-speaker":58907,"phone-forwarded":58908,"phone-in-talk":58909,"phone-iphone":58149,"phone-locked":58910,"phone-missed":58911,"phone-paused":58912,phonelink:58150,"phonelink-erase":57563,"phonelink-lock":57564,"phonelink-off":58151,"phonelink-ring":57565,"phonelink-setup":57566,photo:58384,"photo-album":58385,"photo-camera":58386,"photo-filter":58427,"photo-library":58387,"photo-size-select-actual":58418,"photo-size-select-large":58419,"photo-size-select-small":58420,"picture-as-pdf":58389,"picture-in-picture":59562,"picture-in-picture-alt":59665,"pie-chart":59076,"pie-chart-outlined":59077,"pin-drop":58718,place:58719,"play-arrow":57399,"play-circle-filled":57400,"play-circle-outline":57401,"play-for-work":59654,"playlist-add":57403,"playlist-add-check":57445,"playlist-play":57439,"plus-one":59392,poll:59393,polymer:59563,pool:60232,"portable-wifi-off":57550,portrait:58390,power:58940,"power-input":58166,"power-settings-new":59564,"pregnant-woman":59678,"present-to-all":57567,print:59565,"priority-high":58949,public:59403,publish:57941,"query-builder":59566,"question-answer":59567,queue:57404,"queue-music":57405,"queue-play-next":57446,radio:57406,"radio-button-checked":59447,"radio-button-unchecked":59446,"rate-review":58720,receipt:59568,"recent-actors":57407,"record-voice-over":59679,redeem:59569,redo:57690,refresh:58837,remove:57691,"remove-circle":57692,"remove-circle-outline":57693,"remove-from-queue":57447,"remove-red-eye":58391,"remove-shopping-cart":59688,reorder:59646,repeat:57408,"repeat-one":57409,replay:57410,"replay-10":57433,"replay-30":57434,"replay-5":57435,reply:57694,"reply-all":57695,report:57696,"report-problem":59570,restaurant:58732,"restaurant-menu":58721,restore:59571,"restore-page":59689,"ring-volume":57553,room:59572,"room-service":60233,"rotate-90-degrees-ccw":58392,"rotate-left":58393,"rotate-right":58394,"rounded-corner":59680,router:58152,rowing:59681,"rss-feed":57573,"rv-hookup":58946,satellite:58722,save:57697,scanner:58153,schedule:59573,school:59404,"screen-lock-landscape":57790,"screen-lock-portrait":57791,"screen-lock-rotation":57792,"screen-rotation":57793,"screen-share":57570,"sd-card":58915,"sd-storage":57794,search:59574,security:58154,"select-all":57698,send:57699,"sentiment-dissatisfied":59409,"sentiment-neutral":59410,"sentiment-satisfied":59411,"sentiment-very-dissatisfied":59412,"sentiment-very-satisfied":59413,settings:59576,"settings-applications":59577,"settings-backup-restore":59578,"settings-bluetooth":59579,"settings-brightness":59581,"settings-cell":59580,"settings-ethernet":59582,"settings-input-antenna":59583,"settings-input-component":59584,"settings-input-composite":59585,"settings-input-hdmi":59586,"settings-input-svideo":59587,"settings-overscan":59588,"settings-phone":59589,"settings-power":59590,"settings-remote":59591,"settings-system-daydream":57795,"settings-voice":59592,share:59405,shop:59593,"shop-two":59594,"shopping-basket":59595,"shopping-cart":59596,"short-text":57953,"show-chart":59105,shuffle:57411,"signal-cellular-4-bar":57800,"signal-cellular-connected-no-internet-4-bar":57805,"signal-cellular-no-sim":57806,"signal-cellular-null":57807,"signal-cellular-off":57808,"signal-wifi-4-bar":57816,"signal-wifi-4-bar-lock":57817,"signal-wifi-off":57818,"sim-card":58155,"sim-card-alert":58916,"skip-next":57412,"skip-previous":57413,slideshow:58395,"slow-motion-video":57448,smartphone:58156,"smoke-free":60234,"smoking-rooms":60235,sms:58917,"sms-failed":58918,snooze:57414,sort:57700,"sort-by-alpha":57427,spa:60236,"space-bar":57942,speaker:58157,"speaker-group":58158,"speaker-notes":59597,"speaker-notes-off":59690,"speaker-phone":57554,spellcheck:59598,star:59448,"star-border":59450,"star-half":59449,stars:59600,"stay-current-landscape":57555,"stay-current-portrait":57556,"stay-primary-landscape":57557,"stay-primary-portrait":57558,stop:57415,"stop-screen-share":57571,storage:57819,store:59601,"store-mall-directory":58723,straighten:58396,streetview:58734,"strikethrough-s":57943,style:58397,"subdirectory-arrow-left":58841,"subdirectory-arrow-right":58842,subject:59602,subscriptions:57444,subtitles:57416,subway:58735,"supervisor-account":59603,"surround-sound":57417,"swap-calls":57559,"swap-horiz":59604,"swap-vert":59605,"swap-vertical-circle":59606,"switch-camera":58398,"switch-video":58399,sync:58919,"sync-disabled":58920,"sync-problem":58921,"system-update":58922,"system-update-alt":59607,tab:59608,"tab-unselected":59609,tablet:58159,"tablet-android":58160,"tablet-mac":58161,"tag-faces":58400,"tap-and-play":58923,terrain:58724,"text-fields":57954,"text-format":57701,textsms:57560,texture:58401,theaters:59610,"thumb-down":59611,"thumb-up":59612,"thumbs-up-down":59613,"time-to-leave":58924,timelapse:58402,timeline:59682,timer:58405,"timer-10":58403,"timer-3":58404,"timer-off":58406,title:57956,toc:59614,today:59615,toll:59616,tonality:58407,"touch-app":59667,toys:58162,"track-changes":59617,traffic:58725,train:58736,tram:58737,"transfer-within-a-station":58738,transform:58408,translate:59618,"trending-down":59619,"trending-flat":59620,"trending-up":59621,tune:58409,"turned-in":59622,"turned-in-not":59623,tv:58163,unarchive:57705,undo:57702,"unfold-less":58838,"unfold-more":58839,update:59683,usb:57824,"verified-user":59624,"vertical-align-bottom":57944,"vertical-align-center":57945,"vertical-align-top":57946,vibration:58925,"video-call":57456,"video-label":57457,"video-library":57418,videocam:57419,"videocam-off":57420,"videogame-asset":58168,"view-agenda":59625,"view-array":59626,"view-carousel":59627,"view-column":59628,"view-comfy":58410,"view-compact":58411,"view-day":59629,"view-headline":59630,"view-list":59631,"view-module":59632,"view-quilt":59633,"view-stream":59634,"view-week":59635,vignette:58421,visibility:59636,"visibility-off":59637,"voice-chat":58926,voicemail:57561,"volume-down":57421,"volume-mute":57422,"volume-off":57423,"volume-up":57424,"vpn-key":57562,"vpn-lock":58927,wallpaper:57788,warning:57346,watch:58164,"watch-later":59684,"wb-auto":58412,"wb-cloudy":58413,"wb-incandescent":58414,"wb-iridescent":58422,"wb-sunny":58416,wc:58941,web:57425,"web-asset":57449,weekend:57707,whatshot:59406,widgets:57789,wifi:58942,"wifi-lock":57825,"wifi-tethering":57826,work:59641,"wrap-text":57947,"youtube-searched-for":59642,"zoom-in":59647,"zoom-out":59648,"zoom-out-map":58731}},612,[]); +__d(function(e,a,r,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.getImageSource=t.ToolbarAndroid=t.TabBarItemIOS=t.TabBarItem=t.Button=t.default=void 0;var u=babelHelpers.interopRequireDefault(a(o[0])),l=babelHelpers.interopRequireDefault(a(o[1])),n=(0,u.default)(l.default,'Ionicons','Ionicons.ttf'),b=n;t.default=b;var d=n.Button;t.Button=d;var I=n.TabBarItem;t.TabBarItem=I;var i=n.TabBarItemIOS;t.TabBarItemIOS=i;var f=n.ToolbarAndroid;t.ToolbarAndroid=f;var m=n.getImageSource;t.getImageSource=m},613,[421,614]); +__d(function(o,i,s,e){s.exports={"ios-add":61698,"ios-add-circle":61697,"ios-add-circle-outline":61696,"ios-airplane":61751,"ios-alarm":62408,"ios-albums":62410,"ios-alert":61700,"ios-american-football":61702,"ios-analytics":62414,"ios-aperture":61704,"ios-apps":61706,"ios-appstore":61708,"ios-archive":61710,"ios-arrow-back":62415,"ios-arrow-down":62416,"ios-arrow-dropdown":61712,"ios-arrow-dropdown-circle":61733,"ios-arrow-dropleft":61714,"ios-arrow-dropleft-circle":61737,"ios-arrow-dropright":61716,"ios-arrow-dropright-circle":61739,"ios-arrow-dropup":61718,"ios-arrow-dropup-circle":61741,"ios-arrow-forward":62417,"ios-arrow-round-back":61719,"ios-arrow-round-down":61720,"ios-arrow-round-forward":61721,"ios-arrow-round-up":61722,"ios-arrow-up":62424,"ios-at":62426,"ios-attach":61723,"ios-backspace":61725,"ios-barcode":62428,"ios-baseball":62430,"ios-basket":61727,"ios-basketball":62432,"ios-battery-charging":61728,"ios-battery-dead":61729,"ios-battery-full":61730,"ios-beaker":61732,"ios-bed":61753,"ios-beer":61734,"ios-bicycle":61735,"ios-bluetooth":61736,"ios-boat":61738,"ios-body":62436,"ios-bonfire":61740,"ios-book":62440,"ios-bookmark":61742,"ios-bookmarks":62442,"ios-bowtie":61744,"ios-briefcase":62446,"ios-browsers":62448,"ios-brush":61746,"ios-bug":61748,"ios-build":61750,"ios-bulb":61752,"ios-bus":61754,"ios-business":61859,"ios-cafe":61756,"ios-calculator":62450,"ios-calendar":62452,"ios-call":61758,"ios-camera":62454,"ios-car":61760,"ios-card":61762,"ios-cart":62456,"ios-cash":61764,"ios-cellular":61757,"ios-chatboxes":62458,"ios-chatbubbles":61766,"ios-checkbox":61768,"ios-checkbox-outline":61767,"ios-checkmark":62463,"ios-checkmark-circle":61770,"ios-checkmark-circle-outline":61769,"ios-clipboard":61772,"ios-clock":62467,"ios-close":62470,"ios-close-circle":61774,"ios-close-circle-outline":61773,"ios-cloud":62476,"ios-cloud-circle":61778,"ios-cloud-done":61780,"ios-cloud-download":62472,"ios-cloud-outline":62473,"ios-cloud-upload":62475,"ios-cloudy":62480,"ios-cloudy-night":62478,"ios-code":61783,"ios-code-download":61781,"ios-code-working":61782,"ios-cog":62482,"ios-color-fill":61785,"ios-color-filter":62484,"ios-color-palette":61787,"ios-color-wand":62486,"ios-compass":61789,"ios-construct":61791,"ios-contact":62490,"ios-contacts":61793,"ios-contract":61794,"ios-contrast":61795,"ios-copy":62492,"ios-create":61797,"ios-crop":62494,"ios-cube":61800,"ios-cut":61802,"ios-desktop":61804,"ios-disc":61806,"ios-document":61808,"ios-done-all":61809,"ios-download":62496,"ios-easel":61811,"ios-egg":61813,"ios-exit":61815,"ios-expand":61816,"ios-eye":62501,"ios-eye-off":61818,"ios-fastforward":62503,"ios-female":61819,"ios-filing":62505,"ios-film":62507,"ios-finger-print":61820,"ios-fitness":61867,"ios-flag":62509,"ios-flame":62511,"ios-flash":61822,"ios-flash-off":61743,"ios-flashlight":61761,"ios-flask":62513,"ios-flower":62515,"ios-folder":62517,"ios-folder-open":61824,"ios-football":62519,"ios-funnel":61826,"ios-gift":61841,"ios-git-branch":61827,"ios-git-commit":61828,"ios-git-compare":61829,"ios-git-merge":61830,"ios-git-network":61831,"ios-git-pull-request":61832,"ios-glasses":62527,"ios-globe":61834,"ios-grid":61836,"ios-hammer":61838,"ios-hand":61840,"ios-happy":61842,"ios-headset":61844,"ios-heart":62531,"ios-heart-dislike":61759,"ios-heart-empty":61851,"ios-heart-half":61853,"ios-help":62534,"ios-help-buoy":61846,"ios-help-circle":61848,"ios-help-circle-outline":61847,"ios-home":62536,"ios-hourglass":61699,"ios-ice-cream":61850,"ios-image":61852,"ios-images":61854,"ios-infinite":62538,"ios-information":62541,"ios-information-circle":61856,"ios-information-circle-outline":61855,"ios-jet":61861,"ios-journal":61833,"ios-key":61863,"ios-keypad":62544,"ios-laptop":61864,"ios-leaf":61866,"ios-link":61994,"ios-list":62548,"ios-list-box":61763,"ios-locate":61870,"ios-lock":61872,"ios-log-in":61873,"ios-log-out":61874,"ios-magnet":61876,"ios-mail":61880,"ios-mail-open":61878,"ios-mail-unread":61765,"ios-male":61881,"ios-man":61883,"ios-map":61885,"ios-medal":61887,"ios-medical":62556,"ios-medkit":62558,"ios-megaphone":61889,"ios-menu":61891,"ios-mic":62561,"ios-mic-off":62559,"ios-microphone":61894,"ios-moon":62568,"ios-more":61896,"ios-move":61899,"ios-musical-note":62571,"ios-musical-notes":62572,"ios-navigate":62574,"ios-notifications":61907,"ios-notifications-off":61905,"ios-notifications-outline":61747,"ios-nuclear":61909,"ios-nutrition":62576,"ios-open":61911,"ios-options":61913,"ios-outlet":61915,"ios-paper":62578,"ios-paper-plane":61917,"ios-partly-sunny":61919,"ios-pause":62584,"ios-paw":62586,"ios-people":62588,"ios-person":62590,"ios-person-add":61921,"ios-phone-landscape":61922,"ios-phone-portrait":61923,"ios-photos":62594,"ios-pie":62596,"ios-pin":61925,"ios-pint":62598,"ios-pizza":61927,"ios-planet":61931,"ios-play":62600,"ios-play-circle":61715,"ios-podium":61933,"ios-power":61935,"ios-pricetag":62605,"ios-pricetags":62607,"ios-print":61937,"ios-pulse":62611,"ios-qr-scanner":61939,"ios-quote":61941,"ios-radio":61945,"ios-radio-button-off":61942,"ios-radio-button-on":61943,"ios-rainy":62613,"ios-recording":62615,"ios-redo":62617,"ios-refresh":62620,"ios-refresh-circle":61749,"ios-remove":61948,"ios-remove-circle":61947,"ios-remove-circle-outline":61946,"ios-reorder":61949,"ios-repeat":61950,"ios-resize":61951,"ios-restaurant":61953,"ios-return-left":61954,"ios-return-right":61955,"ios-reverse-camera":62623,"ios-rewind":62625,"ios-ribbon":61957,"ios-rocket":61771,"ios-rose":62627,"ios-sad":61959,"ios-save":61862,"ios-school":61961,"ios-search":62629,"ios-send":61964,"ios-settings":62631,"ios-share":61969,"ios-share-alt":61967,"ios-shirt":61971,"ios-shuffle":62633,"ios-skip-backward":61973,"ios-skip-forward":61975,"ios-snow":61976,"ios-speedometer":62640,"ios-square":61978,"ios-square-outline":61788,"ios-star":62643,"ios-star-half":62641,"ios-star-outline":62642,"ios-stats":61980,"ios-stopwatch":62645,"ios-subway":61982,"ios-sunny":62647,"ios-swap":61983,"ios-switch":61985,"ios-sync":61986,"ios-tablet-landscape":61987,"ios-tablet-portrait":62030,"ios-tennisball":62651,"ios-text":62032,"ios-thermometer":62034,"ios-thumbs-down":62036,"ios-thumbs-up":62038,"ios-thunderstorm":62653,"ios-time":62655,"ios-timer":62657,"ios-today":61775,"ios-train":62040,"ios-transgender":62041,"ios-trash":62661,"ios-trending-down":62042,"ios-trending-up":62043,"ios-trophy":62045,"ios-tv":61717,"ios-umbrella":62047,"ios-undo":62663,"ios-unlock":62049,"ios-videocam":62669,"ios-volume-high":61724,"ios-volume-low":61726,"ios-volume-mute":62051,"ios-volume-off":62052,"ios-walk":62054,"ios-wallet":61835,"ios-warning":62056,"ios-watch":62057,"ios-water":62059,"ios-wifi":62061,"ios-wine":62063,"ios-woman":62065,"logo-android":61989,"logo-angular":61991,"logo-apple":61993,"logo-bitbucket":61843,"logo-bitcoin":61995,"logo-buffer":61997,"logo-chrome":61999,"logo-closed-captioning":61701,"logo-codepen":62e3,"logo-css3":62001,"logo-designernews":62002,"logo-dribbble":62003,"logo-dropbox":62004,"logo-euro":62005,"logo-facebook":62006,"logo-flickr":61703,"logo-foursquare":62007,"logo-freebsd-devil":62008,"logo-game-controller-a":61755,"logo-game-controller-b":61825,"logo-github":62009,"logo-google":62010,"logo-googleplus":62011,"logo-hackernews":62012,"logo-html5":62013,"logo-instagram":62014,"logo-ionic":61776,"logo-ionitron":61777,"logo-javascript":62015,"logo-linkedin":62016,"logo-markdown":62017,"logo-model-s":61779,"logo-no-smoking":61705,"logo-nodejs":62018,"logo-npm":61845,"logo-octocat":62019,"logo-pinterest":62020,"logo-playstation":62021,"logo-polymer":61790,"logo-python":62022,"logo-reddit":62023,"logo-rss":62024,"logo-sass":62025,"logo-skype":62026,"logo-slack":61707,"logo-snapchat":62027,"logo-steam":62028,"logo-tumblr":62029,"logo-tux":62126,"logo-twitch":62127,"logo-twitter":62128,"logo-usd":62129,"logo-vimeo":62148,"logo-vk":61709,"logo-whatsapp":62149,"logo-windows":62255,"logo-wordpress":62256,"logo-xbox":62284,"logo-xing":61711,"logo-yahoo":62285,"logo-yen":62286,"logo-youtube":62287,"md-add":62067,"md-add-circle":62066,"md-add-circle-outline":61784,"md-airplane":61786,"md-alarm":62068,"md-albums":62069,"md-alert":62070,"md-american-football":62071,"md-analytics":62072,"md-aperture":62073,"md-apps":62074,"md-appstore":62075,"md-archive":62076,"md-arrow-back":62077,"md-arrow-down":62078,"md-arrow-dropdown":62080,"md-arrow-dropdown-circle":62079,"md-arrow-dropleft":62082,"md-arrow-dropleft-circle":62081,"md-arrow-dropright":62084,"md-arrow-dropright-circle":62083,"md-arrow-dropup":62086,"md-arrow-dropup-circle":62085,"md-arrow-forward":62087,"md-arrow-round-back":62088,"md-arrow-round-down":62089,"md-arrow-round-forward":62090,"md-arrow-round-up":62091,"md-arrow-up":62092,"md-at":62093,"md-attach":62094,"md-backspace":62095,"md-barcode":62096,"md-baseball":62097,"md-basket":62098,"md-basketball":62099,"md-battery-charging":62100,"md-battery-dead":62101,"md-battery-full":62102,"md-beaker":62103,"md-bed":61792,"md-beer":62104,"md-bicycle":62105,"md-bluetooth":62106,"md-boat":62107,"md-body":62108,"md-bonfire":62109,"md-book":62110,"md-bookmark":62111,"md-bookmarks":62112,"md-bowtie":62113,"md-briefcase":62114,"md-browsers":62115,"md-brush":62116,"md-bug":62117,"md-build":62118,"md-bulb":62119,"md-bus":62120,"md-business":61860,"md-cafe":62121,"md-calculator":62122,"md-calendar":62123,"md-call":62124,"md-camera":62125,"md-car":62130,"md-card":62131,"md-cart":62132,"md-cash":62133,"md-cellular":61796,"md-chatboxes":62134,"md-chatbubbles":62135,"md-checkbox":62137,"md-checkbox-outline":62136,"md-checkmark":62140,"md-checkmark-circle":62139,"md-checkmark-circle-outline":62138,"md-clipboard":62141,"md-clock":62142,"md-close":62144,"md-close-circle":62143,"md-close-circle-outline":61798,"md-cloud":62153,"md-cloud-circle":62146,"md-cloud-done":62147,"md-cloud-download":62150,"md-cloud-outline":62151,"md-cloud-upload":62152,"md-cloudy":62155,"md-cloudy-night":62154,"md-code":62158,"md-code-download":62156,"md-code-working":62157,"md-cog":62159,"md-color-fill":62160,"md-color-filter":62161,"md-color-palette":62162,"md-color-wand":62163,"md-compass":62164,"md-construct":62165,"md-contact":62166,"md-contacts":62167,"md-contract":62168,"md-contrast":62169,"md-copy":62170,"md-create":62171,"md-crop":62172,"md-cube":62173,"md-cut":62174,"md-desktop":62175,"md-disc":62176,"md-document":62177,"md-done-all":62178,"md-download":62179,"md-easel":62180,"md-egg":62181,"md-exit":62182,"md-expand":62183,"md-eye":62185,"md-eye-off":62184,"md-fastforward":62186,"md-female":62187,"md-filing":62188,"md-film":62189,"md-finger-print":62190,"md-fitness":61868,"md-flag":62191,"md-flame":62192,"md-flash":62193,"md-flash-off":61801,"md-flashlight":61803,"md-flask":62194,"md-flower":62195,"md-folder":62197,"md-folder-open":62196,"md-football":62198,"md-funnel":62199,"md-gift":61849,"md-git-branch":62202,"md-git-commit":62203,"md-git-compare":62204,"md-git-merge":62205,"md-git-network":62206,"md-git-pull-request":62207,"md-glasses":62208,"md-globe":62209,"md-grid":62210,"md-hammer":62211,"md-hand":62212,"md-happy":62213,"md-headset":62214,"md-heart":62216,"md-heart-dislike":61799,"md-heart-empty":61857,"md-heart-half":61858,"md-help":62219,"md-help-buoy":62217,"md-help-circle":62218,"md-help-circle-outline":61805,"md-home":62220,"md-hourglass":61713,"md-ice-cream":62221,"md-image":62222,"md-images":62223,"md-infinite":62224,"md-information":62226,"md-information-circle":62225,"md-information-circle-outline":61807,"md-jet":62229,"md-journal":61837,"md-key":62230,"md-keypad":62231,"md-laptop":62232,"md-leaf":62233,"md-link":61998,"md-list":62235,"md-list-box":62234,"md-locate":62236,"md-lock":62237,"md-log-in":62238,"md-log-out":62239,"md-magnet":62240,"md-mail":62242,"md-mail-open":62241,"md-mail-unread":61810,"md-male":62243,"md-man":62244,"md-map":62245,"md-medal":62246,"md-medical":62247,"md-medkit":62248,"md-megaphone":62249,"md-menu":62250,"md-mic":62252,"md-mic-off":62251,"md-microphone":62253,"md-moon":62254,"md-more":61897,"md-move":62257,"md-musical-note":62258,"md-musical-notes":62259,"md-navigate":62260,"md-notifications":62264,"md-notifications-off":62262,"md-notifications-outline":62263,"md-nuclear":62265,"md-nutrition":62266,"md-open":62267,"md-options":62268,"md-outlet":62269,"md-paper":62271,"md-paper-plane":62270,"md-partly-sunny":62272,"md-pause":62273,"md-paw":62274,"md-people":62275,"md-person":62277,"md-person-add":62276,"md-phone-landscape":62278,"md-phone-portrait":62279,"md-photos":62280,"md-pie":62281,"md-pin":62282,"md-pint":62283,"md-pizza":62292,"md-planet":62294,"md-play":62295,"md-play-circle":61812,"md-podium":62296,"md-power":62297,"md-pricetag":62298,"md-pricetags":62299,"md-print":62300,"md-pulse":62301,"md-qr-scanner":62302,"md-quote":62303,"md-radio":62306,"md-radio-button-off":62304,"md-radio-button-on":62305,"md-rainy":62307,"md-recording":62308,"md-redo":62309,"md-refresh":62310,"md-refresh-circle":61992,"md-remove":62312,"md-remove-circle":62311,"md-remove-circle-outline":61814,"md-reorder":62313,"md-repeat":62314,"md-resize":62315,"md-restaurant":62316,"md-return-left":62317,"md-return-right":62318,"md-reverse-camera":62319,"md-rewind":62320,"md-ribbon":62321,"md-rocket":61817,"md-rose":62322,"md-sad":62323,"md-save":61865,"md-school":62324,"md-search":62325,"md-send":62326,"md-settings":62327,"md-share":62329,"md-share-alt":62328,"md-shirt":62330,"md-shuffle":62331,"md-skip-backward":62332,"md-skip-forward":62333,"md-snow":62334,"md-speedometer":62335,"md-square":62337,"md-square-outline":62336,"md-star":62340,"md-star-half":62338,"md-star-outline":62339,"md-stats":62341,"md-stopwatch":62342,"md-subway":62343,"md-sunny":62344,"md-swap":62345,"md-switch":62346,"md-sync":62347,"md-tablet-landscape":62348,"md-tablet-portrait":62349,"md-tennisball":62350,"md-text":62351,"md-thermometer":62352,"md-thumbs-down":62353,"md-thumbs-up":62354,"md-thunderstorm":62355,"md-time":62356,"md-timer":62357,"md-today":61821,"md-train":62358,"md-transgender":62359,"md-trash":62360,"md-trending-down":62361,"md-trending-up":62362,"md-trophy":62363,"md-tv":61823,"md-umbrella":62364,"md-undo":62365,"md-unlock":62366,"md-videocam":62367,"md-volume-high":61731,"md-volume-low":61745,"md-volume-mute":62369,"md-volume-off":62370,"md-walk":62372,"md-wallet":61839,"md-warning":62373,"md-watch":62374,"md-water":62375,"md-wifi":62376,"md-wine":62377,"md-woman":62378}},614,[]); +__d(function(e,a,t,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.getImageSource=r.ToolbarAndroid=r.TabBarItemIOS=r.TabBarItem=r.Button=r.default=void 0;var u=babelHelpers.interopRequireDefault(a(o[0])),d=babelHelpers.interopRequireDefault(a(o[1])),l=(0,u.default)(d.default,'fontcustom','Foundation.ttf'),b=l;r.default=b;var n=l.Button;r.Button=n;var I=l.TabBarItem;r.TabBarItem=I;var i=l.TabBarItemIOS;r.TabBarItemIOS=i;var f=l.ToolbarAndroid;r.ToolbarAndroid=f;var m=l.getImageSource;r.getImageSource=m},615,[421,616]); +__d(function(o,e,a,l){a.exports={"address-book":61696,alert:61697,"align-center":61698,"align-justify":61699,"align-left":61700,"align-right":61701,anchor:61702,annotate:61703,archive:61704,"arrow-down":61705,"arrow-left":61706,"arrow-right":61707,"arrow-up":61708,"arrows-compress":61709,"arrows-expand":61710,"arrows-in":61711,"arrows-out":61712,asl:61713,asterisk:61714,"at-sign":61715,"background-color":61716,"battery-empty":61717,"battery-full":61718,"battery-half":61719,"bitcoin-circle":61720,bitcoin:61721,blind:61722,bluetooth:61723,bold:61724,"book-bookmark":61725,book:61726,bookmark:61727,braille:61728,"burst-new":61729,"burst-sale":61730,burst:61731,calendar:61732,camera:61733,check:61734,checkbox:61735,"clipboard-notes":61736,"clipboard-pencil":61737,clipboard:61738,clock:61739,"closed-caption":61740,cloud:61741,"comment-minus":61742,"comment-quotes":61743,"comment-video":61744,comment:61745,comments:61746,compass:61747,contrast:61748,"credit-card":61749,crop:61750,crown:61751,css3:61752,database:61753,"die-five":61754,"die-four":61755,"die-one":61756,"die-six":61757,"die-three":61758,"die-two":61759,dislike:61760,"dollar-bill":61761,dollar:61762,download:61763,eject:61764,elevator:61765,euro:61766,eye:61767,"fast-forward":61768,"female-symbol":61769,female:61770,filter:61771,"first-aid":61772,flag:61773,"folder-add":61774,"folder-lock":61775,folder:61776,foot:61777,foundation:61778,"graph-bar":61779,"graph-horizontal":61780,"graph-pie":61781,"graph-trend":61782,"guide-dog":61783,"hearing-aid":61784,heart:61785,home:61786,html5:61787,"indent-less":61788,"indent-more":61789,info:61790,italic:61791,key:61792,laptop:61793,layout:61794,lightbulb:61795,like:61796,link:61797,"list-bullet":61798,"list-number":61799,"list-thumbnails":61800,list:61801,lock:61802,loop:61803,"magnifying-glass":61804,mail:61805,"male-female":61806,"male-symbol":61807,male:61808,map:61809,marker:61810,megaphone:61811,microphone:61812,"minus-circle":61813,minus:61814,"mobile-signal":61815,mobile:61816,monitor:61817,mountains:61818,music:61819,next:61820,"no-dogs":61821,"no-smoking":61822,"page-add":61823,"page-copy":61824,"page-csv":61825,"page-delete":61826,"page-doc":61827,"page-edit":61828,"page-export-csv":61829,"page-export-doc":61830,"page-export-pdf":61831,"page-export":61832,"page-filled":61833,"page-multiple":61834,"page-pdf":61835,"page-remove":61836,"page-search":61837,page:61838,"paint-bucket":61839,paperclip:61840,pause:61841,paw:61842,paypal:61843,pencil:61844,photo:61845,"play-circle":61846,"play-video":61847,play:61848,plus:61849,pound:61850,power:61851,previous:61852,"price-tag":61853,"pricetag-multiple":61854,print:61855,prohibited:61856,"projection-screen":61857,puzzle:61858,quote:61859,record:61860,refresh:61861,"results-demographics":61862,results:61863,"rewind-ten":61864,rewind:61865,rss:61866,"safety-cone":61867,save:61868,share:61869,"sheriff-badge":61870,shield:61871,"shopping-bag":61872,"shopping-cart":61873,shuffle:61874,skull:61875,"social-500px":61876,"social-adobe":61877,"social-amazon":61878,"social-android":61879,"social-apple":61880,"social-behance":61881,"social-bing":61882,"social-blogger":61883,"social-delicious":61884,"social-designer-news":61885,"social-deviant-art":61886,"social-digg":61887,"social-dribbble":61888,"social-drive":61889,"social-dropbox":61890,"social-evernote":61891,"social-facebook":61892,"social-flickr":61893,"social-forrst":61894,"social-foursquare":61895,"social-game-center":61896,"social-github":61897,"social-google-plus":61898,"social-hacker-news":61899,"social-hi5":61900,"social-instagram":61901,"social-joomla":61902,"social-lastfm":61903,"social-linkedin":61904,"social-medium":61905,"social-myspace":61906,"social-orkut":61907,"social-path":61908,"social-picasa":61909,"social-pinterest":61910,"social-rdio":61911,"social-reddit":61912,"social-skillshare":61913,"social-skype":61914,"social-smashing-mag":61915,"social-snapchat":61916,"social-spotify":61917,"social-squidoo":61918,"social-stack-overflow":61919,"social-steam":61920,"social-stumbleupon":61921,"social-treehouse":61922,"social-tumblr":61923,"social-twitter":61924,"social-vimeo":61925,"social-windows":61926,"social-xbox":61927,"social-yahoo":61928,"social-yelp":61929,"social-youtube":61930,"social-zerply":61931,"social-zurb":61932,sound:61933,star:61934,stop:61935,strikethrough:61936,subscript:61937,superscript:61938,"tablet-landscape":61939,"tablet-portrait":61940,"target-two":61941,target:61942,"telephone-accessible":61943,telephone:61944,"text-color":61945,thumbnails:61946,ticket:61947,"torso-business":61948,"torso-female":61949,torso:61950,"torsos-all-female":61951,"torsos-all":61952,"torsos-female-male":61953,"torsos-male-female":61954,torsos:61955,trash:61956,trees:61957,trophy:61958,underline:61959,"universal-access":61960,unlink:61961,unlock:61962,"upload-cloud":61963,upload:61964,usb:61965,video:61966,"volume-none":61967,"volume-strike":61968,volume:61969,web:61970,wheelchair:61971,widget:61972,wrench:61973,"x-circle":61974,x:61975,yen:61976,"zoom-in":61977,"zoom-out":61978}},616,[]); +__d(function(e,a,r,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.getImageSource=t.ToolbarAndroid=t.TabBarItemIOS=t.TabBarItem=t.Button=t.default=void 0;var l=babelHelpers.interopRequireDefault(a(o[0])),u=babelHelpers.interopRequireDefault(a(o[1])),b=(0,l.default)(u.default,'EvilIcons','EvilIcons.ttf'),d=b;t.default=d;var I=b.Button;t.Button=I;var n=b.TabBarItem;t.TabBarItem=n;var i=b.TabBarItemIOS;t.TabBarItemIOS=i;var v=b.ToolbarAndroid;t.ToolbarAndroid=v;var f=b.getImageSource;t.getImageSource=f},617,[421,618]); +__d(function(e,r,c,o){c.exports={archive:61696,"arrow-down":61697,"arrow-left":61698,"arrow-right":61699,"arrow-up":61700,bell:61701,calendar:61702,camera:61703,cart:61704,chart:61705,check:61706,"chevron-down":61707,"chevron-left":61708,"chevron-right":61709,"chevron-up":61710,clock:61711,close:61712,"close-o":61713,comment:61714,"credit-card":61715,envelope:61716,exclamation:61717,"external-link":61718,eye:61719,gear:61720,heart:61721,image:61722,like:61723,link:61724,location:61725,lock:61726,minus:61727,navicon:61728,paperclip:61729,pencil:61730,play:61731,plus:61732,pointer:61733,question:61734,redo:61735,refresh:61736,retweet:61737,"sc-facebook":61738,"sc-github":61739,"sc-google-plus":61740,"sc-instagram":61741,"sc-linkedin":61742,"sc-odnoklassniki":61743,"sc-pinterest":61744,"sc-skype":61745,"sc-soundcloud":61746,"sc-telegram":61747,"sc-tumblr":61748,"sc-twitter":61749,"sc-vimeo":61750,"sc-vk":61751,"sc-youtube":61752,search:61753,"share-apple":61754,"share-google":61755,spinner:61756,"spinner-2":61757,"spinner-3":61758,star:61759,tag:61760,trash:61761,trophy:61762,undo:61763,unlock:61764,user:61765}},618,[]); +__d(function(e,a,t,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.getImageSource=r.ToolbarAndroid=r.TabBarItemIOS=r.TabBarItem=r.Button=r.default=void 0;var u=babelHelpers.interopRequireDefault(a(o[0])),l=babelHelpers.interopRequireDefault(a(o[1])),b=(0,u.default)(l.default,'Entypo','Entypo.ttf'),d=b;r.default=d;var n=b.Button;r.Button=n;var I=b.TabBarItem;r.TabBarItem=I;var i=b.TabBarItemIOS;r.TabBarItemIOS=i;var f=b.ToolbarAndroid;r.ToolbarAndroid=f;var m=b.getImageSource;r.getImageSource=m},619,[421,620]); +__d(function(e,r,o,i){o.exports={"500px":61696,"500px-with-circle":61697,"add-to-list":61698,"add-user":61699,address:61700,adjust:61701,air:61702,aircraft:61703,"aircraft-landing":61704,"aircraft-take-off":61705,"align-bottom":61706,"align-horizontal-middle":61707,"align-left":61708,"align-right":61709,"align-top":61710,"align-vertical-middle":61711,"app-store":61712,archive:61713,"area-graph":61714,"arrow-bold-down":61715,"arrow-bold-left":61716,"arrow-bold-right":61717,"arrow-bold-up":61718,"arrow-down":61719,"arrow-left":61720,"arrow-long-down":61721,"arrow-long-left":61722,"arrow-long-right":61723,"arrow-long-up":61724,"arrow-right":61725,"arrow-up":61726,"arrow-with-circle-down":61727,"arrow-with-circle-left":61728,"arrow-with-circle-right":61729,"arrow-with-circle-up":61730,attachment:61731,"awareness-ribbon":61732,back:61733,"back-in-time":61734,baidu:61735,"bar-graph":61736,basecamp:61737,battery:61738,"beamed-note":61739,behance:61740,bell:61741,blackboard:61742,block:61743,book:61744,bookmark:61745,bookmarks:61746,bowl:61747,box:61748,briefcase:61749,browser:61750,brush:61751,bucket:61752,bug:61753,cake:61754,calculator:61755,calendar:61756,camera:61757,ccw:61758,chat:61759,check:61760,"chevron-down":61761,"chevron-left":61762,"chevron-right":61763,"chevron-small-down":61764,"chevron-small-left":61765,"chevron-small-right":61766,"chevron-small-up":61767,"chevron-thin-down":61768,"chevron-thin-left":61769,"chevron-thin-right":61770,"chevron-thin-up":61771,"chevron-up":61772,"chevron-with-circle-down":61773,"chevron-with-circle-left":61774,"chevron-with-circle-right":61775,"chevron-with-circle-up":61776,circle:61777,"circle-with-cross":61778,"circle-with-minus":61779,"circle-with-plus":61780,"circular-graph":61781,clapperboard:61782,"classic-computer":61783,clipboard:61784,clock:61785,cloud:61786,code:61787,cog:61788,colours:61789,compass:61790,"controller-fast-backward":61791,"controller-fast-forward":61792,"controller-jump-to-start":61793,"controller-next":61794,"controller-paus":61795,"controller-play":61796,"controller-record":61797,"controller-stop":61798,"controller-volume":61799,copy:61800,"creative-cloud":61801,"creative-commons":61802,"creative-commons-attribution":61803,"creative-commons-noderivs":61804,"creative-commons-noncommercial-eu":61805,"creative-commons-noncommercial-us":61806,"creative-commons-public-domain":61807,"creative-commons-remix":61808,"creative-commons-share":61809,"creative-commons-sharealike":61810,credit:61811,"credit-card":61812,crop:61813,cross:61814,cup:61815,cw:61816,cycle:61817,database:61818,"dial-pad":61819,direction:61820,document:61821,"document-landscape":61822,documents:61823,"dot-single":61824,"dots-three-horizontal":61825,"dots-three-vertical":61826,"dots-two-horizontal":61827,"dots-two-vertical":61828,download:61829,dribbble:61830,"dribbble-with-circle":61831,drink:61832,drive:61833,drop:61834,dropbox:61835,edit:61836,email:61837,"emoji-flirt":61838,"emoji-happy":61839,"emoji-neutral":61840,"emoji-sad":61841,erase:61842,eraser:61843,evernote:61844,export:61845,eye:61846,"eye-with-line":61847,facebook:61848,"facebook-with-circle":61849,feather:61850,fingerprint:61851,flag:61852,flash:61853,flashlight:61854,"flat-brush":61855,flattr:61856,flickr:61857,"flickr-with-circle":61858,"flow-branch":61859,"flow-cascade":61860,"flow-line":61861,"flow-parallel":61862,"flow-tree":61863,flower:61864,folder:61865,"folder-images":61866,"folder-music":61867,"folder-video":61868,forward:61869,foursquare:61870,funnel:61871,"game-controller":61872,gauge:61873,github:61874,"github-with-circle":61875,globe:61876,"google-":61877,"google--with-circle":61878,"google-drive":61879,"google-hangouts":61880,"google-play":61881,"graduation-cap":61882,grid:61883,grooveshark:61884,"hair-cross":61885,hand:61886,heart:61887,"heart-outlined":61888,help:61889,"help-with-circle":61890,home:61891,"hour-glass":61892,houzz:61893,icloud:61894,image:61895,"image-inverted":61896,images:61897,inbox:61898,infinity:61899,info:61900,"info-with-circle":61901,instagram:61902,"instagram-with-circle":61903,install:61904,key:61905,keyboard:61906,"lab-flask":61907,landline:61908,language:61909,laptop:61910,lastfm:61911,"lastfm-with-circle":61912,layers:61913,leaf:61914,"level-down":61915,"level-up":61916,lifebuoy:61917,"light-bulb":61918,"light-down":61919,"light-up":61920,"line-graph":61921,link:61922,linkedin:61923,"linkedin-with-circle":61924,list:61925,location:61926,"location-pin":61927,lock:61928,"lock-open":61929,"log-out":61930,login:61931,loop:61932,magnet:61933,"magnifying-glass":61934,mail:61935,"mail-with-circle":61936,man:61937,map:61938,mask:61939,medal:61940,medium:61941,"medium-with-circle":61942,megaphone:61943,menu:61944,merge:61945,message:61946,mic:61947,minus:61948,mixi:61949,mobile:61950,"modern-mic":61951,moon:61952,mouse:61953,"mouse-pointer":61954,music:61955,network:61956,new:61957,"new-message":61958,news:61959,newsletter:61960,note:61961,notification:61962,"notifications-off":61963,"old-mobile":61964,"old-phone":61965,onedrive:61966,"open-book":61967,palette:61968,"paper-plane":61969,paypal:61970,pencil:61971,phone:61972,picasa:61973,"pie-chart":61974,pin:61975,pinterest:61976,"pinterest-with-circle":61977,plus:61978,popup:61979,"power-plug":61980,"price-ribbon":61981,"price-tag":61982,print:61983,"progress-empty":61984,"progress-full":61985,"progress-one":61986,"progress-two":61987,publish:61988,qq:61989,"qq-with-circle":61990,quote:61991,radio:61992,raft:61993,"raft-with-circle":61994,rainbow:61995,rdio:61996,"rdio-with-circle":61997,"remove-user":61998,renren:61999,reply:62e3,"reply-all":62001,"resize-100-":62002,"resize-full-screen":62003,retweet:62004,rocket:62005,"round-brush":62006,rss:62007,ruler:62008,save:62009,scissors:62010,scribd:62011,"select-arrows":62012,share:62013,"share-alternative":62014,shareable:62015,shield:62016,shop:62017,"shopping-bag":62018,"shopping-basket":62019,"shopping-cart":62020,shuffle:62021,signal:62022,"sina-weibo":62023,skype:62024,"skype-with-circle":62025,slideshare:62026,smashing:62027,sound:62028,"sound-mix":62029,"sound-mute":62030,soundcloud:62031,"sports-club":62032,spotify:62033,"spotify-with-circle":62034,spreadsheet:62035,"squared-cross":62036,"squared-minus":62037,"squared-plus":62038,star:62039,"star-outlined":62040,stopwatch:62041,stumbleupon:62042,"stumbleupon-with-circle":62043,suitcase:62044,swap:62045,swarm:62046,sweden:62047,switch:62048,tablet:62049,"tablet-mobile-combo":62050,tag:62051,text:62052,"text-document":62053,"text-document-inverted":62054,thermometer:62055,"thumbs-down":62056,"thumbs-up":62057,"thunder-cloud":62058,ticket:62059,"time-slot":62060,tools:62061,"traffic-cone":62062,trash:62063,tree:62064,"triangle-down":62065,"triangle-left":62066,"triangle-right":62067,"triangle-up":62068,tripadvisor:62069,trophy:62070,tumblr:62071,"tumblr-with-circle":62072,tv:62073,twitter:62074,"twitter-with-circle":62075,typing:62076,uninstall:62077,unread:62078,untag:62079,upload:62080,"upload-to-cloud":62081,user:62082,users:62083,"v-card":62084,video:62085,"video-camera":62086,vimeo:62087,"vimeo-with-circle":62088,vine:62089,"vine-with-circle":62090,vinyl:62091,vk:62092,"vk-alternitive":62093,"vk-with-circle":62094,voicemail:62095,wallet:62096,warning:62097,water:62098,"windows-store":62099,xing:62100,"xing-with-circle":62101,yelp:62102,youko:62103,"youko-with-circle":62104,youtube:62105,"youtube-with-circle":62106}},620,[]); +__d(function(e,a,t,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.getImageSource=r.ToolbarAndroid=r.TabBarItemIOS=r.TabBarItem=r.Button=r.default=void 0;var u=babelHelpers.interopRequireDefault(a(o[0])),l=babelHelpers.interopRequireDefault(a(o[1])),b=(0,u.default)(l.default,'FontAwesome','FontAwesome.ttf'),d=b;r.default=d;var n=b.Button;r.Button=n;var I=b.TabBarItem;r.TabBarItem=I;var m=b.TabBarItemIOS;r.TabBarItemIOS=m;var i=b.ToolbarAndroid;r.ToolbarAndroid=i;var f=b.getImageSource;r.getImageSource=f},621,[421,622]); +__d(function(e,r,o,a){o.exports={glass:61440,music:61441,search:61442,"envelope-o":61443,heart:61444,star:61445,"star-o":61446,user:61447,film:61448,"th-large":61449,th:61450,"th-list":61451,check:61452,remove:61453,close:61453,times:61453,"search-plus":61454,"search-minus":61456,"power-off":61457,signal:61458,gear:61459,cog:61459,"trash-o":61460,home:61461,"file-o":61462,"clock-o":61463,road:61464,download:61465,"arrow-circle-o-down":61466,"arrow-circle-o-up":61467,inbox:61468,"play-circle-o":61469,"rotate-right":61470,repeat:61470,refresh:61473,"list-alt":61474,lock:61475,flag:61476,headphones:61477,"volume-off":61478,"volume-down":61479,"volume-up":61480,qrcode:61481,barcode:61482,tag:61483,tags:61484,book:61485,bookmark:61486,print:61487,camera:61488,font:61489,bold:61490,italic:61491,"text-height":61492,"text-width":61493,"align-left":61494,"align-center":61495,"align-right":61496,"align-justify":61497,list:61498,dedent:61499,outdent:61499,indent:61500,"video-camera":61501,photo:61502,image:61502,"picture-o":61502,pencil:61504,"map-marker":61505,adjust:61506,tint:61507,edit:61508,"pencil-square-o":61508,"share-square-o":61509,"check-square-o":61510,arrows:61511,"step-backward":61512,"fast-backward":61513,backward:61514,play:61515,pause:61516,stop:61517,forward:61518,"fast-forward":61520,"step-forward":61521,eject:61522,"chevron-left":61523,"chevron-right":61524,"plus-circle":61525,"minus-circle":61526,"times-circle":61527,"check-circle":61528,"question-circle":61529,"info-circle":61530,crosshairs:61531,"times-circle-o":61532,"check-circle-o":61533,ban:61534,"arrow-left":61536,"arrow-right":61537,"arrow-up":61538,"arrow-down":61539,"mail-forward":61540,share:61540,expand:61541,compress:61542,plus:61543,minus:61544,asterisk:61545,"exclamation-circle":61546,gift:61547,leaf:61548,fire:61549,eye:61550,"eye-slash":61552,warning:61553,"exclamation-triangle":61553,plane:61554,calendar:61555,random:61556,comment:61557,magnet:61558,"chevron-up":61559,"chevron-down":61560,retweet:61561,"shopping-cart":61562,folder:61563,"folder-open":61564,"arrows-v":61565,"arrows-h":61566,"bar-chart-o":61568,"bar-chart":61568,"twitter-square":61569,"facebook-square":61570,"camera-retro":61571,key:61572,gears:61573,cogs:61573,comments:61574,"thumbs-o-up":61575,"thumbs-o-down":61576,"star-half":61577,"heart-o":61578,"sign-out":61579,"linkedin-square":61580,"thumb-tack":61581,"external-link":61582,"sign-in":61584,trophy:61585,"github-square":61586,upload:61587,"lemon-o":61588,phone:61589,"square-o":61590,"bookmark-o":61591,"phone-square":61592,twitter:61593,"facebook-f":61594,facebook:61594,github:61595,unlock:61596,"credit-card":61597,feed:61598,rss:61598,"hdd-o":61600,bullhorn:61601,bell:61683,certificate:61603,"hand-o-right":61604,"hand-o-left":61605,"hand-o-up":61606,"hand-o-down":61607,"arrow-circle-left":61608,"arrow-circle-right":61609,"arrow-circle-up":61610,"arrow-circle-down":61611,globe:61612,wrench:61613,tasks:61614,filter:61616,briefcase:61617,"arrows-alt":61618,group:61632,users:61632,chain:61633,link:61633,cloud:61634,flask:61635,cut:61636,scissors:61636,copy:61637,"files-o":61637,paperclip:61638,save:61639,"floppy-o":61639,square:61640,navicon:61641,reorder:61641,bars:61641,"list-ul":61642,"list-ol":61643,strikethrough:61644,underline:61645,table:61646,magic:61648,truck:61649,pinterest:61650,"pinterest-square":61651,"google-plus-square":61652,"google-plus":61653,money:61654,"caret-down":61655,"caret-up":61656,"caret-left":61657,"caret-right":61658,columns:61659,unsorted:61660,sort:61660,"sort-down":61661,"sort-desc":61661,"sort-up":61662,"sort-asc":61662,envelope:61664,linkedin:61665,"rotate-left":61666,undo:61666,legal:61667,gavel:61667,dashboard:61668,tachometer:61668,"comment-o":61669,"comments-o":61670,flash:61671,bolt:61671,sitemap:61672,umbrella:61673,paste:61674,clipboard:61674,"lightbulb-o":61675,exchange:61676,"cloud-download":61677,"cloud-upload":61678,"user-md":61680,stethoscope:61681,suitcase:61682,"bell-o":61602,coffee:61684,cutlery:61685,"file-text-o":61686,"building-o":61687,"hospital-o":61688,ambulance:61689,medkit:61690,"fighter-jet":61691,beer:61692,"h-square":61693,"plus-square":61694,"angle-double-left":61696,"angle-double-right":61697,"angle-double-up":61698,"angle-double-down":61699,"angle-left":61700,"angle-right":61701,"angle-up":61702,"angle-down":61703,desktop:61704,laptop:61705,tablet:61706,"mobile-phone":61707,mobile:61707,"circle-o":61708,"quote-left":61709,"quote-right":61710,spinner:61712,circle:61713,"mail-reply":61714,reply:61714,"github-alt":61715,"folder-o":61716,"folder-open-o":61717,"smile-o":61720,"frown-o":61721,"meh-o":61722,gamepad:61723,"keyboard-o":61724,"flag-o":61725,"flag-checkered":61726,terminal:61728,code:61729,"mail-reply-all":61730,"reply-all":61730,"star-half-empty":61731,"star-half-full":61731,"star-half-o":61731,"location-arrow":61732,crop:61733,"code-fork":61734,unlink:61735,"chain-broken":61735,question:61736,info:61737,exclamation:61738,superscript:61739,subscript:61740,eraser:61741,"puzzle-piece":61742,microphone:61744,"microphone-slash":61745,shield:61746,"calendar-o":61747,"fire-extinguisher":61748,rocket:61749,maxcdn:61750,"chevron-circle-left":61751,"chevron-circle-right":61752,"chevron-circle-up":61753,"chevron-circle-down":61754,html5:61755,css3:61756,anchor:61757,"unlock-alt":61758,bullseye:61760,"ellipsis-h":61761,"ellipsis-v":61762,"rss-square":61763,"play-circle":61764,ticket:61765,"minus-square":61766,"minus-square-o":61767,"level-up":61768,"level-down":61769,"check-square":61770,"pencil-square":61771,"external-link-square":61772,"share-square":61773,compass:61774,"toggle-down":61776,"caret-square-o-down":61776,"toggle-up":61777,"caret-square-o-up":61777,"toggle-right":61778,"caret-square-o-right":61778,euro:61779,eur:61779,gbp:61780,dollar:61781,usd:61781,rupee:61782,inr:61782,cny:61783,rmb:61783,yen:61783,jpy:61783,ruble:61784,rouble:61784,rub:61784,won:61785,krw:61785,bitcoin:61786,btc:61786,file:61787,"file-text":61788,"sort-alpha-asc":61789,"sort-alpha-desc":61790,"sort-amount-asc":61792,"sort-amount-desc":61793,"sort-numeric-asc":61794,"sort-numeric-desc":61795,"thumbs-up":61796,"thumbs-down":61797,"youtube-square":61798,youtube:61799,xing:61800,"xing-square":61801,"youtube-play":61802,dropbox:61803,"stack-overflow":61804,instagram:61805,flickr:61806,adn:61808,bitbucket:61809,"bitbucket-square":61810,tumblr:61811,"tumblr-square":61812,"long-arrow-down":61813,"long-arrow-up":61814,"long-arrow-left":61815,"long-arrow-right":61816,apple:61817,windows:61818,android:61819,linux:61820,dribbble:61821,skype:61822,foursquare:61824,trello:61825,female:61826,male:61827,gittip:61828,gratipay:61828,"sun-o":61829,"moon-o":61830,archive:61831,bug:61832,vk:61833,weibo:61834,renren:61835,pagelines:61836,"stack-exchange":61837,"arrow-circle-o-right":61838,"arrow-circle-o-left":61840,"toggle-left":61841,"caret-square-o-left":61841,"dot-circle-o":61842,wheelchair:61843,"vimeo-square":61844,"turkish-lira":61845,try:61845,"plus-square-o":61846,"space-shuttle":61847,slack:61848,"envelope-square":61849,wordpress:61850,openid:61851,institution:61852,bank:61852,university:61852,"mortar-board":61853,"graduation-cap":61853,yahoo:61854,google:61856,reddit:61857,"reddit-square":61858,"stumbleupon-circle":61859,stumbleupon:61860,delicious:61861,digg:61862,"pied-piper-pp":61863,"pied-piper-alt":61864,drupal:61865,joomla:61866,language:61867,fax:61868,building:61869,child:61870,paw:61872,spoon:61873,cube:61874,cubes:61875,behance:61876,"behance-square":61877,steam:61878,"steam-square":61879,recycle:61880,automobile:61881,car:61881,cab:61882,taxi:61882,tree:61883,spotify:61884,deviantart:61885,soundcloud:61886,database:61888,"file-pdf-o":61889,"file-word-o":61890,"file-excel-o":61891,"file-powerpoint-o":61892,"file-photo-o":61893,"file-picture-o":61893,"file-image-o":61893,"file-zip-o":61894,"file-archive-o":61894,"file-sound-o":61895,"file-audio-o":61895,"file-movie-o":61896,"file-video-o":61896,"file-code-o":61897,vine:61898,codepen:61899,jsfiddle:61900,"life-bouy":61901,"life-buoy":61901,"life-saver":61901,support:61901,"life-ring":61901,"circle-o-notch":61902,ra:61904,resistance:61904,rebel:61904,ge:61905,empire:61905,"git-square":61906,git:61907,"y-combinator-square":61908,"yc-square":61908,"hacker-news":61908,"tencent-weibo":61909,qq:61910,wechat:61911,weixin:61911,send:61912,"paper-plane":61912,"send-o":61913,"paper-plane-o":61913,history:61914,"circle-thin":61915,header:61916,paragraph:61917,sliders:61918,"share-alt":61920,"share-alt-square":61921,bomb:61922,"soccer-ball-o":61923,"futbol-o":61923,tty:61924,binoculars:61925,plug:61926,slideshare:61927,twitch:61928,yelp:61929,"newspaper-o":61930,wifi:61931,calculator:61932,paypal:61933,"google-wallet":61934,"cc-visa":61936,"cc-mastercard":61937,"cc-discover":61938,"cc-amex":61939,"cc-paypal":61940,"cc-stripe":61941,"bell-slash":61942,"bell-slash-o":61943,trash:61944,copyright:61945,at:61946,eyedropper:61947,"paint-brush":61948,"birthday-cake":61949,"area-chart":61950,"pie-chart":61952,"line-chart":61953,lastfm:61954,"lastfm-square":61955,"toggle-off":61956,"toggle-on":61957,bicycle:61958,bus:61959,ioxhost:61960,angellist:61961,cc:61962,shekel:61963,sheqel:61963,ils:61963,meanpath:61964,buysellads:61965,connectdevelop:61966,dashcube:61968,forumbee:61969,leanpub:61970,sellsy:61971,shirtsinbulk:61972,simplybuilt:61973,skyatlas:61974,"cart-plus":61975,"cart-arrow-down":61976,diamond:61977,ship:61978,"user-secret":61979,motorcycle:61980,"street-view":61981,heartbeat:61982,venus:61985,mars:61986,mercury:61987,intersex:61988,transgender:61988,"transgender-alt":61989,"venus-double":61990,"mars-double":61991,"venus-mars":61992,"mars-stroke":61993,"mars-stroke-v":61994,"mars-stroke-h":61995,neuter:61996,genderless:61997,"facebook-official":62e3,"pinterest-p":62001,whatsapp:62002,server:62003,"user-plus":62004,"user-times":62005,hotel:62006,bed:62006,viacoin:62007,train:62008,subway:62009,medium:62010,yc:62011,"y-combinator":62011,"optin-monster":62012,opencart:62013,expeditedssl:62014,"battery-4":62016,battery:62016,"battery-full":62016,"battery-3":62017,"battery-three-quarters":62017,"battery-2":62018,"battery-half":62018,"battery-1":62019,"battery-quarter":62019,"battery-0":62020,"battery-empty":62020,"mouse-pointer":62021,"i-cursor":62022,"object-group":62023,"object-ungroup":62024,"sticky-note":62025,"sticky-note-o":62026,"cc-jcb":62027,"cc-diners-club":62028,clone:62029,"balance-scale":62030,"hourglass-o":62032,"hourglass-1":62033,"hourglass-start":62033,"hourglass-2":62034,"hourglass-half":62034,"hourglass-3":62035,"hourglass-end":62035,hourglass:62036,"hand-grab-o":62037,"hand-rock-o":62037,"hand-stop-o":62038,"hand-paper-o":62038,"hand-scissors-o":62039,"hand-lizard-o":62040,"hand-spock-o":62041,"hand-pointer-o":62042,"hand-peace-o":62043,trademark:62044,registered:62045,"creative-commons":62046,gg:62048,"gg-circle":62049,tripadvisor:62050,odnoklassniki:62051,"odnoklassniki-square":62052,"get-pocket":62053,"wikipedia-w":62054,safari:62055,chrome:62056,firefox:62057,opera:62058,"internet-explorer":62059,tv:62060,television:62060,contao:62061,"500px":62062,amazon:62064,"calendar-plus-o":62065,"calendar-minus-o":62066,"calendar-times-o":62067,"calendar-check-o":62068,industry:62069,"map-pin":62070,"map-signs":62071,"map-o":62072,map:62073,commenting:62074,"commenting-o":62075,houzz:62076,vimeo:62077,"black-tie":62078,fonticons:62080,"reddit-alien":62081,edge:62082,"credit-card-alt":62083,codiepie:62084,modx:62085,"fort-awesome":62086,usb:62087,"product-hunt":62088,mixcloud:62089,scribd:62090,"pause-circle":62091,"pause-circle-o":62092,"stop-circle":62093,"stop-circle-o":62094,"shopping-bag":62096,"shopping-basket":62097,hashtag:62098,bluetooth:62099,"bluetooth-b":62100,percent:62101,gitlab:62102,wpbeginner:62103,wpforms:62104,envira:62105,"universal-access":62106,"wheelchair-alt":62107,"question-circle-o":62108,blind:62109,"audio-description":62110,"volume-control-phone":62112,braille:62113,"assistive-listening-systems":62114,"asl-interpreting":62115,"american-sign-language-interpreting":62115,deafness:62116,"hard-of-hearing":62116,deaf:62116,glide:62117,"glide-g":62118,signing:62119,"sign-language":62119,"low-vision":62120,viadeo:62121,"viadeo-square":62122,snapchat:62123,"snapchat-ghost":62124,"snapchat-square":62125,"pied-piper":62126,"first-order":62128,yoast:62129,themeisle:62130,"google-plus-circle":62131,"google-plus-official":62131,fa:62132,"font-awesome":62132,"handshake-o":62133,"envelope-open":62134,"envelope-open-o":62135,linode:62136,"address-book":62137,"address-book-o":62138,vcard:62139,"address-card":62139,"vcard-o":62140,"address-card-o":62140,"user-circle":62141,"user-circle-o":62142,"user-o":62144,"id-badge":62145,"drivers-license":62146,"id-card":62146,"drivers-license-o":62147,"id-card-o":62147,quora:62148,"free-code-camp":62149,telegram:62150,"thermometer-4":62151,thermometer:62151,"thermometer-full":62151,"thermometer-3":62152,"thermometer-three-quarters":62152,"thermometer-2":62153,"thermometer-half":62153,"thermometer-1":62154,"thermometer-quarter":62154,"thermometer-0":62155,"thermometer-empty":62155,shower:62156,bathtub:62157,s15:62157,bath:62157,podcast:62158,"window-maximize":62160,"window-minimize":62161,"window-restore":62162,"times-rectangle":62163,"window-close":62163,"times-rectangle-o":62164,"window-close-o":62164,bandcamp:62165,grav:62166,etsy:62167,imdb:62168,ravelry:62169,eercast:62170,microchip:62171,"snowflake-o":62172,superpowers:62173,wpexplorer:62174,meetup:62176}},622,[]); +__d(function(e,a,r,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.getImageSource=t.ToolbarAndroid=t.TabBarItemIOS=t.TabBarItem=t.Button=t.default=void 0;var l=babelHelpers.interopRequireDefault(a(o[0])),u=babelHelpers.interopRequireDefault(a(o[1])),i=(0,l.default)(u.default,'simple-line-icons','SimpleLineIcons.ttf'),n=i;t.default=n;var b=i.Button;t.Button=b;var d=i.TabBarItem;t.TabBarItem=d;var I=i.TabBarItemIOS;t.TabBarItemIOS=I;var m=i.ToolbarAndroid;t.ToolbarAndroid=m;var f=i.getImageSource;t.getImageSource=f},623,[421,624]); +__d(function(e,o,l,a){l.exports={user:57349,people:57345,"user-female":57344,"user-follow":57346,"user-following":57347,"user-unfollow":57348,login:57446,logout:57445,emotsmile:57377,phone:58880,"call-end":57416,"call-in":57415,"call-out":57414,map:57395,"location-pin":57494,direction:57410,directions:57409,compass:57413,layers:57396,menu:58881,list:57447,"options-vertical":58882,options:58883,"arrow-down":58884,"arrow-left":58885,"arrow-right":58886,"arrow-up":58887,"arrow-up-circle":57464,"arrow-left-circle":57466,"arrow-right-circle":57465,"arrow-down-circle":57467,check:57472,clock:57473,plus:57493,minus:58901,close:57474,event:58905,exclamation:58903,organization:58902,trophy:57350,"screen-smartphone":57360,"screen-desktop":57361,plane:57362,notebook:57363,mustache:57364,mouse:57365,magnet:57366,energy:57376,disc:57378,cursor:57454,"cursor-move":57379,crop:57380,chemistry:57382,speedometer:57351,shield:57358,"screen-tablet":57359,"magic-wand":57367,hourglass:57368,graduation:57369,ghost:57370,"game-controller":57371,fire:57372,eyeglass:57373,"envelope-open":57374,"envelope-letter":57375,bell:57383,badge:57384,anchor:57385,wallet:57386,vector:57387,speech:57388,puzzle:57389,printer:57390,present:57391,playlist:57392,pin:57393,picture:57394,handbag:57397,"globe-alt":57398,globe:57399,"folder-alt":57401,folder:57481,film:57402,feed:57403,drop:57406,drawer:57407,docs:57408,doc:57477,diamond:57411,cup:57412,calculator:57417,bubbles:57418,briefcase:57419,"book-open":57420,"basket-loaded":57421,basket:57422,bag:57423,"action-undo":57424,"action-redo":57425,wrench:57426,umbrella:57427,trash:57428,tag:57429,support:57430,frame:57400,"size-fullscreen":57431,"size-actual":57432,shuffle:57433,"share-alt":57434,share:57435,rocket:57436,question:57437,"pie-chart":57438,pencil:57439,note:57440,loop:57444,home:57449,grid:57450,graph:57451,microphone:57443,"music-tone-alt":57441,"music-tone":57442,"earphones-alt":57404,earphones:57405,equalizer:57452,like:57448,dislike:57453,"control-start":57455,"control-rewind":57456,"control-play":57457,"control-pause":57458,"control-forward":57459,"control-end":57460,"volume-1":57503,"volume-2":57504,"volume-off":57505,calendar:57461,bulb:57462,chart:57463,ban:57468,bubble:57469,camrecorder:57470,camera:57471,"cloud-download":57475,"cloud-upload":57476,envelope:57478,eye:57479,flag:57480,heart:57482,info:57483,key:57484,link:57485,lock:57486,"lock-open":57487,magnifier:57488,"magnifier-add":57489,"magnifier-remove":57490,"paper-clip":57491,"paper-plane":57492,power:57495,refresh:57496,reload:57497,settings:57498,star:57499,"symbol-female":57500,"symbol-male":57501,target:57502,"credit-card":57381,paypal:58888,"social-tumblr":57354,"social-twitter":57353,"social-facebook":57355,"social-instagram":58889,"social-linkedin":58890,"social-pinterest":58891,"social-github":58892,"social-google":58893,"social-reddit":58894,"social-skype":58895,"social-dribbble":57357,"social-behance":58896,"social-foursqare":58897,"social-soundcloud":58898,"social-spotify":58899,"social-stumbleupon":58900,"social-youtube":57352,"social-dropbox":57356,"social-vkontakte":58904,"social-steam":58912}},624,[]); +__d(function(e,a,r,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.getImageSource=t.ToolbarAndroid=t.TabBarItemIOS=t.TabBarItem=t.Button=t.default=void 0;var u=babelHelpers.interopRequireDefault(a(o[0])),l=babelHelpers.interopRequireDefault(a(o[1])),b=(0,u.default)(l.default,'Feather','Feather.ttf'),d=b;t.default=d;var I=b.Button;t.Button=I;var n=b.TabBarItem;t.TabBarItem=n;var i=b.TabBarItemIOS;t.TabBarItemIOS=i;var f=b.ToolbarAndroid;t.ToolbarAndroid=f;var m=b.getImageSource;t.getImageSource=m},625,[421,626]); +__d(function(e,r,o,i){o.exports={activity:59648,airplay:59649,"alert-circle":59650,"alert-octagon":59651,"alert-triangle":59652,"align-center":59653,"align-justify":59654,"align-left":59655,"align-right":59656,anchor:59657,aperture:59658,archive:59659,"arrow-down":59660,"arrow-down-circle":59661,"arrow-down-left":59662,"arrow-down-right":59663,"arrow-left":59664,"arrow-left-circle":59665,"arrow-right":59666,"arrow-right-circle":59667,"arrow-up":59668,"arrow-up-circle":59669,"arrow-up-left":59670,"arrow-up-right":59671,"at-sign":59672,award:59673,"bar-chart":59674,"bar-chart-2":59675,battery:59676,"battery-charging":59677,bell:59678,"bell-off":59679,bluetooth:59680,bold:59681,book:59682,"book-open":59683,bookmark:59684,box:59685,briefcase:59686,calendar:59687,camera:59688,"camera-off":59689,cast:59690,check:59691,"check-circle":59692,"check-square":59693,"chevron-down":59694,"chevron-left":59695,"chevron-right":59696,"chevron-up":59697,"chevrons-down":59698,"chevrons-left":59699,"chevrons-right":59700,"chevrons-up":59701,chrome:59702,circle:59703,clipboard:59704,clock:59705,cloud:59706,"cloud-drizzle":59707,"cloud-lightning":59708,"cloud-off":59709,"cloud-rain":59710,"cloud-snow":59711,code:59712,codepen:59713,command:59714,compass:59715,copy:59716,"corner-down-left":59717,"corner-down-right":59718,"corner-left-down":59719,"corner-left-up":59720,"corner-right-down":59721,"corner-right-up":59722,"corner-up-left":59723,"corner-up-right":59724,cpu:59725,"credit-card":59726,crop:59727,crosshair:59728,database:59729,delete:59730,disc:59731,"dollar-sign":59732,download:59733,"download-cloud":59734,droplet:59735,edit:59736,"edit-2":59737,"edit-3":59738,"external-link":59739,eye:59740,"eye-off":59741,facebook:59742,"fast-forward":59743,feather:59744,file:59745,"file-minus":59746,"file-plus":59747,"file-text":59748,film:59749,filter:59750,flag:59751,folder:59752,"folder-minus":59753,"folder-plus":59754,gift:59755,"git-branch":59756,"git-commit":59757,"git-merge":59758,"git-pull-request":59759,github:59760,gitlab:59761,globe:59762,grid:59763,"hard-drive":59764,hash:59765,headphones:59766,heart:59767,"help-circle":59768,home:59769,image:59770,inbox:59771,info:59772,instagram:59773,italic:59774,layers:59775,layout:59776,"life-buoy":59777,link:59778,"link-2":59779,linkedin:59780,list:59781,loader:59782,lock:59783,"log-in":59784,"log-out":59785,mail:59786,map:59787,"map-pin":59788,maximize:59789,"maximize-2":59790,menu:59791,"message-circle":59792,"message-square":59793,mic:59794,"mic-off":59795,minimize:59796,"minimize-2":59797,minus:59798,"minus-circle":59799,"minus-square":59800,monitor:59801,moon:59802,"more-horizontal":59803,"more-vertical":59804,move:59805,music:59806,navigation:59807,"navigation-2":59808,octagon:59809,package:59810,paperclip:59811,pause:59812,"pause-circle":59813,percent:59814,phone:59815,"phone-call":59816,"phone-forwarded":59817,"phone-incoming":59818,"phone-missed":59819,"phone-off":59820,"phone-outgoing":59821,"pie-chart":59822,play:59823,"play-circle":59824,plus:59825,"plus-circle":59826,"plus-square":59827,pocket:59828,power:59829,printer:59830,radio:59831,"refresh-ccw":59832,"refresh-cw":59833,repeat:59834,rewind:59835,"rotate-ccw":59836,"rotate-cw":59837,rss:59838,save:59839,scissors:59840,search:59841,send:59842,server:59843,settings:59844,share:59845,"share-2":59846,shield:59847,"shield-off":59848,"shopping-bag":59849,"shopping-cart":59850,shuffle:59851,sidebar:59852,"skip-back":59853,"skip-forward":59854,slack:59855,slash:59856,sliders:59857,smartphone:59858,speaker:59859,square:59860,star:59861,"stop-circle":59862,sun:59863,sunrise:59864,sunset:59865,tablet:59866,tag:59867,target:59868,terminal:59869,thermometer:59870,"thumbs-down":59871,"thumbs-up":59872,"toggle-left":59873,"toggle-right":59874,trash:59875,"trash-2":59876,"trending-down":59877,"trending-up":59878,triangle:59879,truck:59880,tv:59881,twitter:59882,type:59883,umbrella:59884,underline:59885,unlock:59886,upload:59887,"upload-cloud":59888,user:59889,"user-check":59890,"user-minus":59891,"user-plus":59892,"user-x":59893,users:59894,video:59895,"video-off":59896,voicemail:59897,volume:59898,"volume-1":59899,"volume-2":59900,"volume-x":59901,watch:59902,wifi:59903,"wifi-off":59904,wind:59905,x:59906,"x-circle":59907,"x-square":59908,youtube:59909,zap:59910,"zap-off":59911,"zoom-in":59912,"zoom-out":59913}},626,[]); +__d(function(e,d,o,p,i){Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var r=d(i[0]),t=r.ViewPropTypes||r.View.propTypes;p.default=t},627,[1]); +__d(function(e,l,t,u,a){Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var d=babelHelpers.interopRequireDefault(l(a[0])),f=d.default.oneOfType([d.default.element,d.default.object,d.default.bool]);u.default=f},628,[43]); +__d(function(e,t,l,r,n){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=babelHelpers.interopRequireDefault(t(n[0])),i=babelHelpers.interopRequireWildcard(t(n[1])),o=t(n[2]),u=babelHelpers.interopRequireDefault(t(n[3])),s=babelHelpers.interopRequireDefault(t(n[4])),p=babelHelpers.interopRequireDefault(t(n[5])),f=babelHelpers.interopRequireDefault(t(n[6])),c=babelHelpers.interopRequireDefault(t(n[7])),b=babelHelpers.interopRequireDefault(t(n[8])),y=(function(e){function t(){var e,l,r;babelHelpers.classCallCheck(this,t);for(var n=arguments.length,a=new Array(n),i=0;i=2&&r<3?s<360?.95*i:h<667?i:h>=667&&h<=735?1.15*i:1.25*i:r>=3&&r<3.5?s<=360?i:h<667?1.15*i:h>=667&&h<=735?1.2*i:1.27*i:r>=3.5?s<=360?i:h<667?1.2*i:h>=667&&h<=735?1.25*i:1.4*i:i}},638,[1]); +__d(function(e,n,l,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=babelHelpers.interopRequireDefault(n(o[0])),u=babelHelpers.interopRequireDefault(n(o[1])),a=babelHelpers.interopRequireDefault(n(o[2])),c=babelHelpers.interopRequireDefault(n(o[3])),d=function(e){var n=e.checked,l=e.onIconPress,t=e.onLongIconPress,o=e.size,u=e.checkedIcon,d=e.uncheckedIcon,f=e.iconType,i=e.checkedColor,s=e.uncheckedColor;if(n&&r.default.isValidElement(u))return u;if(!n&&r.default.isValidElement(d))return d;var p=f?(0,c.default)(f):a.default;return r.default.createElement(p,{color:n?i:s,name:n?u:d,size:o||24,style:{minWidth:o||24},onLongPress:t,onPress:l})};d.propTypes={checked:u.default.bool,onIconPress:u.default.func,onLongIconPress:u.default.func,size:u.default.number,checkedIcon:u.default.oneOfType([u.default.string,u.default.element]),uncheckedIcon:u.default.oneOfType([u.default.string,u.default.element]),iconType:u.default.string,checkedColor:u.default.string,uncheckedColor:u.default.string};var f=d;t.default=f},639,[26,43,621,606]); +__d(function(e,t,r,n,u){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BackgroudImage",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"colors",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"getStatusBarHeight",{enumerable:!0,get:function(){return i.getStatusBarHeight}}),Object.defineProperty(n,"ViewPropTypes",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"fonts",{enumerable:!0,get:function(){return f.default}});var a=babelHelpers.interopRequireDefault(t(u[0])),l=babelHelpers.interopRequireDefault(t(u[1])),i=t(u[2]),o=babelHelpers.interopRequireDefault(t(u[3])),f=babelHelpers.interopRequireDefault(t(u[4]))},640,[641,603,642,627,630]); +__d(function(e,a,d,u,o){Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var t=a(o[0]),f=t.ImageBackground||t.Image;u.default=f},641,[1]); +__d(function(t,e,r,n,u){Object.defineProperty(n,"__esModule",{value:!0}),n.getStatusBarHeight=function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return 0;return i.StatusBar.currentHeight};var i=e(u[0])},642,[1]); +__d(function(e,t,l,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=babelHelpers.interopRequireDefault(t(o[0])),a=babelHelpers.interopRequireDefault(t(o[1])),d=t(o[2]),u=babelHelpers.interopRequireDefault(t(o[3])),i=babelHelpers.interopRequireDefault(t(o[4])),s=babelHelpers.interopRequireDefault(t(o[5])),c=babelHelpers.interopRequireDefault(t(o[6])),f=function(e){var t=e.component,l=e.buttons,r=e.onPress,o=e.selectedIndex,n=e.selectedIndexes,s=e.selectMultiple,c=e.containerStyle,f=e.innerBorderStyle,b=e.lastBorderStyle,p=e.buttonStyle,S=e.textStyle,m=e.selectedTextStyle,h=e.selectedButtonStyle,x=e.underlayColor,T=e.activeOpacity,g=e.onHideUnderlay,R=e.onShowUnderlay,B=e.setOpacityTo,H=e.containerBorderRadius,v=e.disableSelected,C=babelHelpers.objectWithoutProperties(e,["component","buttons","onPress","selectedIndex","selectedIndexes","selectMultiple","containerStyle","innerBorderStyle","lastBorderStyle","buttonStyle","textStyle","selectedTextStyle","selectedButtonStyle","underlayColor","activeOpacity","onHideUnderlay","onShowUnderlay","setOpacityTo","containerBorderRadius","disableSelected"]);return a.default.createElement(d.View,babelHelpers.extends({},C,{style:[y.container,c&&c]}),l.map(function(e,c){var C=o===c||n.includes(c);return a.default.createElement(t,{activeOpacity:T,setOpacityTo:B,onHideUnderlay:g,onShowUnderlay:R,underlayColor:x||u.default.primary,disabled:!(!v||!C),onPress:function(){s?n.includes(c)?r(n.filter(function(e){return e!==c})):r(babelHelpers.toConsumableArray(n).concat([c])):r(c)},key:c,style:[y.button,c=this.x&&t>=this.y&&e<=this.x+this.width&&t<=this.y+this.height};var m=(function(e){function t(e){var i;return babelHelpers.classCallCheck(this,t),(i=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,e))).state={containerSize:{width:0,height:0},trackSize:{width:0,height:0},thumbSize:{width:0,height:0},allMeasured:!1,value:new o.Animated.Value(e.value)},i}return babelHelpers.createClass(t,[{key:"componentWillMount",value:function(){this.panResponder=o.PanResponder.create({onStartShouldSetPanResponder:this.handleStartShouldSetPanResponder.bind(this),onMoveShouldSetPanResponder:this.handleMoveShouldSetPanResponder.bind(this),onPanResponderGrant:this.handlePanResponderGrant.bind(this),onPanResponderMove:this.handlePanResponderMove.bind(this),onPanResponderRelease:this.handlePanResponderEnd.bind(this),onPanResponderTerminationRequest:this.handlePanResponderRequestEnd.bind(this),onPanResponderTerminate:this.handlePanResponderEnd.bind(this)})}},{key:"componentWillReceiveProps",value:function(e){var t=e.value;this.props.value!==t&&(this.props.animateTransitions?this.setCurrentValueAnimated(t):this.setCurrentValue(t))}},{key:"setCurrentValue",value:function(e){this.state.value.setValue(e)}},{key:"setCurrentValueAnimated",value:function(e){var t=this.props.animationType,i=babelHelpers.extends({},s[t],this.props.animationConfig,{toValue:e});o.Animated[t](this.state.value,i).start()}},{key:"handleMoveShouldSetPanResponder",value:function(){return!1}},{key:"handlePanResponderGrant",value:function(){this._previousLeft=this.getThumbLeft(this.getCurrentValue()),this.fireChangeEvent('onSlidingStart')}},{key:"handlePanResponderMove",value:function(e,t){this.props.disabled||(this.setCurrentValue(this.getValue(t)),this.fireChangeEvent('onValueChange'))}},{key:"handlePanResponderRequestEnd",value:function(){return!1}},{key:"handlePanResponderEnd",value:function(e,t){this.props.disabled||(this.setCurrentValue(this.getValue(t)),this.fireChangeEvent('onSlidingComplete'))}},{key:"thumbHitTest",value:function(e){var t=e.nativeEvent;return this.getThumbTouchRect().containsPoint(t.locationX,t.locationY)}},{key:"handleStartShouldSetPanResponder",value:function(e){return this.thumbHitTest(e)}},{key:"fireChangeEvent",value:function(e){this.props[e]&&this.props[e](this.getCurrentValue())}},{key:"getTouchOverflowSize",value:function(){var e=this.state,t=this.props,i={};return!0===e.allMeasured&&(i.width=Math.max(0,t.thumbTouchSize.width-e.thumbSize.width),i.height=Math.max(0,t.thumbTouchSize.height-e.containerSize.height)),i}},{key:"getTouchOverflowStyle",value:function(){var e=this.getTouchOverflowSize(),t=e.width,i=e.height,a={};if(void 0!==t&&void 0!==i){var n=-i/2;a.marginTop=n,a.marginBottom=n;var r=-t/2;a.marginLeft=r,a.marginRight=r}return!0===this.props.debugTouchArea&&(a.backgroundColor='orange',a.opacity=.5),a}},{key:"handleMeasure",value:function(e,t){var i=t.nativeEvent.layout,a=i.width,n=i.height,r={width:a,height:n},u="_"+e,o=this[u];o&&a===o.width&&n===o.height||(this[u]=r,this._containerSize&&this._trackSize&&this._thumbSize&&this.setState({containerSize:this._containerSize,trackSize:this._trackSize,thumbSize:this._thumbSize,allMeasured:!0}))}},{key:"measureContainer",value:function(e){this.handleMeasure('containerSize',e)}},{key:"measureTrack",value:function(e){this.handleMeasure('trackSize',e)}},{key:"measureThumb",value:function(e){this.handleMeasure('thumbSize',e)}},{key:"getValue",value:function(e){var t=this.state.containerSize.width-this.state.thumbSize.width,i=(this._previousLeft+('vertical'===this.props.orientation?e.dy:e.dx))/t;return this.props.step?Math.max(this.props.minimumValue,Math.min(this.props.maximumValue,this.props.minimumValue+Math.round(i*(this.props.maximumValue-this.props.minimumValue)/this.props.step)*this.props.step)):Math.max(this.props.minimumValue,Math.min(this.props.maximumValue,i*(this.props.maximumValue-this.props.minimumValue)+this.props.minimumValue))}},{key:"getCurrentValue",value:function(){return this.state.value.__getValue()}},{key:"getRatio",value:function(e){return(e-this.props.minimumValue)/(this.props.maximumValue-this.props.minimumValue)}},{key:"getThumbLeft",value:function(e){return this.getRatio(e)*(this.state.containerSize.width-this.state.thumbSize.width)}},{key:"getThumbTouchRect",value:function(){var e=this.state,t=this.props,i=this.getTouchOverflowSize();return new l(i.width/2+this.getThumbLeft(this.getCurrentValue())+(e.thumbSize.width-t.thumbTouchSize.width)/2,i.height/2+(e.containerSize.height-t.thumbTouchSize.height)/2,t.thumbTouchSize.width,t.thumbTouchSize.height)}},{key:"renderDebugThumbTouchRect",value:function(e){var t=this.getThumbTouchRect(),i={left:e,top:t.y,width:t.width,height:t.height};return u.default.createElement(o.Animated.View,{style:i,pointerEvents:"none"})}},{key:"render",value:function(){var e=this.props,t=e.minimumValue,i=e.maximumValue,a=e.minimumTrackTintColor,n=e.maximumTrackTintColor,r=e.thumbTintColor,h=e.containerStyle,s=e.style,l=e.trackStyle,m=e.thumbStyle,p=e.debugTouchArea,c=e.orientation,b=babelHelpers.objectWithoutProperties(e,["minimumValue","maximumValue","minimumTrackTintColor","maximumTrackTintColor","thumbTintColor","containerStyle","style","trackStyle","thumbStyle","debugTouchArea","orientation"]),f=this.state,g=f.value,v=f.containerSize,S=f.trackSize,y=f.thumbSize,T=f.allMeasured,k=h||d,C=g.interpolate({inputRange:[t,i],outputRange:[0,v.width-y.width]}),V={};T||(V.opacity=0);var R=babelHelpers.objectSpread({position:'absolute',width:o.Animated.add(C,y.width/2),marginTop:-S.height,backgroundColor:a},V),w=m&&m.transform||[],z=this.getTouchOverflowStyle();return u.default.createElement(o.View,babelHelpers.extends({},b,{style:[k.container,'vertical'===c&&{transform:[{rotate:'90deg'}]},s],onLayout:this.measureContainer.bind(this)}),u.default.createElement(o.View,{style:[{backgroundColor:n},k.track,l],onLayout:this.measureTrack.bind(this)}),u.default.createElement(o.Animated.View,{style:[k.track,l,R]}),u.default.createElement(o.Animated.View,{onLayout:this.measureThumb.bind(this),style:[{backgroundColor:r},k.thumb,m,babelHelpers.objectSpread({transform:[{translateX:C},{translateY:-(S.height+y.height)/2}].concat(babelHelpers.toConsumableArray(w))},V)]}),u.default.createElement(o.View,babelHelpers.extends({style:[d.touchArea,z]},this.panResponder.panHandlers),!0===p&&this.renderDebugThumbTouchRect(C)))}}]),babelHelpers.inherits(t,e),t})(u.Component);a.default=m,m.propTypes={value:r.default.number,disabled:r.default.bool,minimumValue:r.default.number,maximumValue:r.default.number,step:r.default.number,minimumTrackTintColor:r.default.string,maximumTrackTintColor:r.default.string,thumbTintColor:r.default.string,thumbTouchSize:r.default.shape({width:r.default.number,height:r.default.number}),onValueChange:r.default.func,onSlidingStart:r.default.func,onSlidingComplete:r.default.func,style:h.default.style,trackStyle:h.default.style,thumbStyle:h.default.style,debugTouchArea:r.default.bool,animateTransitions:r.default.bool,animationType:r.default.oneOf(['spring','timing']),orientation:r.default.oneOf(['horizontal','vertical']),animationConfig:r.default.object,containerStyle:h.default.style},m.defaultProps={value:0,minimumValue:0,maximumValue:1,step:0,minimumTrackTintColor:'#3f3f3f',maximumTrackTintColor:'#b3b3b3',thumbTintColor:'red',thumbTouchSize:{width:40,height:40},debugTouchArea:!1,animationType:'timing',orientation:'horizontal'};var d=o.StyleSheet.create({container:{height:40,justifyContent:'center'},track:{height:4,borderRadius:2},thumb:{position:'absolute',width:20,height:20,borderRadius:10,top:22},touchArea:{position:'absolute',backgroundColor:'transparent',top:0,left:0,right:0,bottom:0},debugThumbTouchArea:{position:'absolute',backgroundColor:'green',opacity:.5}})},652,[43,26,1,627]); +__d(function(e,t,l,a,r){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=babelHelpers.interopRequireDefault(t(r[0])),d=babelHelpers.interopRequireDefault(t(r[1])),u=t(r[2]),n=babelHelpers.interopRequireDefault(t(r[3])),o=babelHelpers.interopRequireDefault(t(r[4])),f=babelHelpers.interopRequireDefault(t(r[5])),p=babelHelpers.interopRequireDefault(t(r[6])),b=babelHelpers.interopRequireDefault(t(r[7])),s=babelHelpers.interopRequireDefault(t(r[8])),y=babelHelpers.interopRequireDefault(t(r[9])),c=function(e){var t=e.children,l=e.flexDirection,a=e.containerStyle,r=e.wrapperStyle,i=e.imageWrapperStyle,n=e.title,o=e.titleStyle,b=e.titleNumberOfLines,s=e.featuredTitle,c=e.featuredTitleStyle,S=e.featuredSubtitle,g=e.featuredSubtitleStyle,T=e.dividerStyle,H=e.image,h=e.imageStyle,w=e.fontFamily,v=e.imageProps,D=babelHelpers.objectWithoutProperties(e,["children","flexDirection","containerStyle","wrapperStyle","imageWrapperStyle","title","titleStyle","titleNumberOfLines","featuredTitle","featuredTitleStyle","featuredSubtitle","featuredSubtitleStyle","dividerStyle","image","imageStyle","fontFamily","imageProps"]);return d.default.createElement(u.View,babelHelpers.extends({},D,{style:[m.container,H&&{padding:0},a&&a]}),d.default.createElement(u.View,{style:[m.wrapper,r&&r,l&&{flexDirection:l}]},''===n||d.default.isValidElement(n)?n:n&&n.length&&d.default.createElement(u.View,null,d.default.createElement(f.default,{style:[m.cardTitle,H&&m.imageCardTitle,o&&o,w&&{fontFamily:w}],numberOfLines:b},n),!H&&d.default.createElement(p.default,{style:[m.divider,T&&T]})),H&&d.default.createElement(u.View,{style:i&&i},d.default.createElement(y.default,babelHelpers.extends({style:[{width:null,height:150},h&&h],source:H},v),(s||S)&&d.default.createElement(u.View,{style:m.overlayContainer},s&&d.default.createElement(f.default,{style:[m.featuredTitle,c&&c]},s),S&&d.default.createElement(f.default,{style:[m.featuredSubtitle,g&&g]},S))),d.default.createElement(u.View,{style:[{padding:10},r&&r]},t)),!H&&t))};c.propTypes={children:i.default.any,flexDirection:i.default.string,containerStyle:s.default.style,wrapperStyle:s.default.style,overlayStyle:s.default.style,title:i.default.oneOfType([i.default.string,i.default.element]),titleStyle:u.Text.propTypes.style,featuredTitle:i.default.string,featuredTitleStyle:f.default.propTypes.style,featuredSubtitle:i.default.string,featuredSubtitleStyle:f.default.propTypes.style,dividerStyle:s.default.style,image:u.Image.propTypes.source,imageStyle:s.default.style,imageWrapperStyle:s.default.style,fontFamily:i.default.string,imageProps:i.default.object,titleNumberOfLines:i.default.number};var m=u.StyleSheet.create({container:babelHelpers.objectSpread({backgroundColor:'white',borderColor:o.default.grey5,borderWidth:1,padding:15,margin:15,marginBottom:0},{elevation:1}),featuredTitle:babelHelpers.objectSpread({fontSize:(0,b.default)(18),marginBottom:8,color:'white'},babelHelpers.objectSpread({},n.default.android.black)),featuredSubtitle:babelHelpers.objectSpread({fontSize:(0,b.default)(13),marginBottom:8,color:'white'},babelHelpers.objectSpread({},n.default.android.black)),wrapper:{backgroundColor:'transparent'},divider:{marginBottom:15},cardTitle:babelHelpers.objectSpread({fontSize:(0,b.default)(14)},babelHelpers.objectSpread({},n.default.android.black),{textAlign:'center',marginBottom:15,color:o.default.grey1}),imageCardTitle:{marginTop:15},overlayContainer:{flex:1,alignItems:'center',backgroundColor:'rgba(0, 0, 0, 0.2)',alignSelf:'stretch',justifyContent:'center',position:'absolute',top:0,left:0,right:0,bottom:0}}),S=c;a.default=S},653,[43,26,1,630,603,637,644,638,627,641]); +__d(function(e,t,n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=babelHelpers.interopRequireDefault(t(i[0])),r=babelHelpers.interopRequireDefault(t(i[1])),o=t(i[2]),c=babelHelpers.interopRequireDefault(t(i[3])),u=babelHelpers.interopRequireDefault(t(i[4])),f=babelHelpers.interopRequireDefault(t(i[5])),y=babelHelpers.interopRequireDefault(t(i[6])),d=babelHelpers.interopRequireDefault(t(i[7])),s=function(e){var t=e.featured,n=e.imageSrc,a=e.icon,i=e.title,l=e.children,y=e.caption,s=e.titleStyle,p=e.onPress,b=e.activeOpacity,S=e.overlayContainerStyle,m=e.captionStyle,g=e.iconContainerStyle,C=e.imageContainerStyle,h=e.containerStyle,v=e.contentContainerStyle,O=e.titleNumberOfLines,w=babelHelpers.objectWithoutProperties(e,["featured","imageSrc","icon","title","children","caption","titleStyle","onPress","activeOpacity","overlayContainerStyle","captionStyle","iconContainerStyle","imageContainerStyle","containerStyle","contentContainerStyle","titleNumberOfLines"]),H=e.width,D=e.height;H||(H=o.Dimensions.get('window').width),D||(D=.8*H);var R=o.StyleSheet.create({container:{width:H,height:D},imageContainer:{alignItems:'center',justifyContent:'center',backgroundColor:'#ffffff',flex:2},text:{backgroundColor:'rgba(0,0,0,0)',marginBottom:5},contentContainer:{paddingTop:15,paddingBottom:5,paddingLeft:15,paddingRight:15},iconContainer:{justifyContent:'center',alignItems:'center',alignSelf:'center'}});if(t){var T={title:i,icon:a,caption:y,imageSrc:n,onPress:p,activeOpacity:b,containerStyle:h,imageContainerStyle:C,overlayContainerStyle:S,titleStyle:s,captionStyle:m,width:H,height:D};return r.default.createElement(f.default,T)}return r.default.createElement(o.TouchableOpacity,babelHelpers.extends({},w,{onPress:p,activeOpacity:b,style:[R.container,h&&h]}),r.default.createElement(d.default,{source:n,style:[R.imageContainer,C&&C],resizeMode:"cover"},r.default.createElement(o.View,{style:[R.iconContainer,g&&g]},a&&r.default.createElement(u.default,a))),r.default.createElement(o.View,{style:[R.contentContainer,v&&v]},r.default.createElement(c.default,{h4:!0,style:[R.text,s&&s],numberOfLines:O},i),l))};s.propTypes={title:l.default.string,icon:l.default.object,caption:l.default.string,imageSrc:o.Image.propTypes.source,onPress:l.default.func,activeOpacity:l.default.number,containerStyle:y.default.style,imageContainerStyle:y.default.style,iconContainerStyle:y.default.style,overlayContainerStyle:y.default.style,titleStyle:o.Text.propTypes.style,captionStyle:o.Text.propTypes.style,width:l.default.number,height:l.default.number,featured:l.default.bool,children:l.default.any,contentContainerStyle:y.default.style,titleNumberOfLines:l.default.number};var p=s;a.default=p},654,[43,26,1,637,605,655,627,641]); +__d(function(e,t,l,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=babelHelpers.interopRequireDefault(t(a[0])),r=babelHelpers.interopRequireDefault(t(a[1])),o=t(a[2]),c=babelHelpers.interopRequireDefault(t(a[3])),u=babelHelpers.interopRequireDefault(t(a[4])),f=babelHelpers.interopRequireDefault(t(a[5])),d=babelHelpers.interopRequireDefault(t(a[6])),s=function(e){var t=e.title,l=e.icon,n=e.caption,a=e.imageSrc,i=e.containerStyle,f=e.imageContainerStyle,s=e.overlayContainerStyle,y=e.iconContainerStyle,p=e.titleStyle,g=e.captionStyle,b=babelHelpers.objectWithoutProperties(e,["title","icon","caption","imageSrc","containerStyle","imageContainerStyle","overlayContainerStyle","iconContainerStyle","titleStyle","captionStyle"]),m=e.width,S=e.height;m||(m=o.Dimensions.get('window').width),S||(S=.8*m);var C=o.StyleSheet.create({container:{width:m,height:S},imageContainer:{alignItems:'center',justifyContent:'center',backgroundColor:'#ffffff',width:m,height:S},overlayContainer:{flex:1,alignItems:'center',backgroundColor:'rgba(0,0,0,0.2)',alignSelf:'stretch',justifyContent:'center',paddingLeft:25,paddingRight:25,paddingTop:45,paddingBottom:40,position:'absolute',top:0,left:0,right:0,bottom:0},text:{color:'#ffffff',backgroundColor:'rgba(0,0,0,0)',marginBottom:15,textAlign:'center'},iconContainer:{justifyContent:'center',alignItems:'center',alignSelf:'center'}});return r.default.createElement(o.TouchableOpacity,babelHelpers.extends({},b,{style:[C.container,i&&i]}),r.default.createElement(d.default,{source:a,style:[C.imageContainer,f&&f],resizeMode:"cover"},r.default.createElement(o.View,{style:[C.overlayContainer,s&&s]},r.default.createElement(o.View,{style:[C.iconContainer,y&&y]},l&&r.default.createElement(u.default,l)),r.default.createElement(c.default,{h4:!0,style:[C.text,p&&p]},t),r.default.createElement(c.default,{style:[C.text,g&&g]},n))))};s.propTypes={title:i.default.string,icon:i.default.object,caption:i.default.string,imageSrc:o.Image.propTypes.source,onPress:i.default.func,containerStyle:f.default.style,iconContainerStyle:f.default.style,imageContainerStyle:f.default.style,overlayContainerStyle:f.default.style,titleStyle:o.Text.propTypes.style,captionStyle:o.Text.propTypes.style,width:i.default.number,height:i.default.number};var y=s;n.default=y},655,[43,26,1,637,605,627,641]); +__d(function(e,t,n,r,a){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=babelHelpers.interopRequireDefault(t(a[0])),i=babelHelpers.interopRequireDefault(t(a[1])),l=babelHelpers.interopRequireWildcard(t(a[2])),u=t(a[3]),s=babelHelpers.interopRequireDefault(t(a[4])),c=babelHelpers.interopRequireDefault(t(a[5])),g={star:{source:t(a[6]),color:'#f1c40f',backgroundColor:'white'},heart:{source:t(a[7]),color:'#e74c3c',backgroundColor:'white'},rocket:{source:t(a[8]),color:'#2ecc71',backgroundColor:'white'},bell:{source:t(a[9]),color:'#f39c12',backgroundColor:'white'}},d=(function(e){function t(e){var n;babelHelpers.classCallCheck(this,t);var r=(n=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,e))).props,a=r.onFinishRating,o=r.fractions,i=new u.Animated.ValueXY,l=u.PanResponder.create({onStartShouldSetPanResponder:function(){return!0},onPanResponderMove:function(e,t){var r=new u.Animated.ValueXY;r.setValue({x:t.dx,y:0}),n.setState({position:r,value:t.dx})},onPanResponderRelease:function(){var e=n.getCurrentRating();o||n.setCurrentRating(e),a(e)}});return n.state={panResponder:l,position:i},n}return babelHelpers.createClass(t,[{key:"componentDidMount",value:function(){this.setCurrentRating(this.props.startingValue)}},{key:"getPrimaryViewStyle",value:function(){var e=this.state.position,t=this.props,n=t.imageSize,r=t.ratingCount,a=t.type,o=g[a].color,i=e.x.interpolate({inputRange:[n/2*-r,0,r*(n/2)],outputRange:[0,r*n/2,r*n],extrapolate:'clamp'},{useNativeDriver:!0});return{backgroundColor:o,width:i,height:i?n:0}}},{key:"getSecondaryViewStyle",value:function(){var e=this.state.position,t=this.props,n=t.imageSize,r=t.ratingCount,a=t.type,o=g[a].backgroundColor,i=e.x.interpolate({inputRange:[n/2*-r,0,r*(n/2)],outputRange:[r*n,r*n/2,0],extrapolate:'clamp'},{useNativeDriver:!0});return{backgroundColor:o,width:i,height:i?n:0}}},{key:"renderRatings",value:function(){var e=this.props,t=e.imageSize,n=e.ratingCount,r=e.type,a=g[r].source;return(0,o.default)(n,function(e){return l.default.createElement(u.View,{key:e,style:p.starContainer},l.default.createElement(u.Image,{source:a,style:{width:t,height:t}}))})}},{key:"getCurrentRating",value:function(){var e=this.state.value,t=this.props,n=t.fractions,r=t.imageSize,a=t.ratingCount,o=a/2,i=0;return e>a*r/2?i=a:e<-a*r/2?i=0:er?(i=o+e/r,i=n?+i.toFixed(n):Math.ceil(i)):i=n?+o.toFixed(n):Math.ceil(o),i}},{key:"setCurrentRating",value:function(e){var t=this.props,n=t.imageSize,r=t.ratingCount,a=null;a=e>r?r*n/2:e<0?-r*n/2:er/2?(e-r/2)*n:0;var o=new u.Animated.ValueXY;o.setValue({x:a,y:0}),this.setState({position:o,value:a})}},{key:"displayCurrentRating",value:function(){var e=this.props,t=e.ratingCount,n=e.type,r=e.ratingTextColor,a=e.readonly,o=e.showReadOnlyText,i=r||g[n].color,c=o&&a;return l.default.createElement(u.View,{style:p.showRatingView},l.default.createElement(u.View,{style:p.ratingView},l.default.createElement(s.default,{style:[p.ratingText,{color:i}]},"Rating: "),l.default.createElement(s.default,{style:[p.currentRatingText,{color:i}]},this.getCurrentRating()),l.default.createElement(s.default,{style:[p.maxRatingText,{color:i}]},"/",t)),l.default.createElement(u.View,null,c&&l.default.createElement(s.default,{style:[p.readonlyLabel,{color:i}]},"(readonly)")))}},{key:"render",value:function(){var e=this.props,t=e.readonly,n=e.type,r=e.ratingImage,a=e.ratingColor,o=e.ratingBackgroundColor,i=e.style,s=e.showRating;if('custom'===n){var c={source:r,color:a,backgroundColor:o};g.custom=c}return l.default.createElement(u.View,{pointerEvents:t?'none':'auto',style:i},s&&this.displayCurrentRating(),l.default.createElement(u.View,babelHelpers.extends({style:p.starsWrapper},this.state.panResponder.panHandlers),l.default.createElement(u.View,{style:p.starsInsideWrapper},l.default.createElement(u.Animated.View,{style:this.getPrimaryViewStyle()}),l.default.createElement(u.Animated.View,{style:this.getSecondaryViewStyle()})),this.renderRatings()))}}]),babelHelpers.inherits(t,e),t})(l.Component);r.default=d,d.defaultProps={type:'star',ratingImage:t(a[6]),ratingColor:'#f1c40f',ratingBackgroundColor:'white',ratingCount:5,showReadOnlyText:!0,imageSize:60,onFinishRating:function(){return console.log('Attach a function here.')}};var p=u.StyleSheet.create({starsWrapper:{flexDirection:'row',justifyContent:'center',alignItems:'center'},starsInsideWrapper:{position:'absolute',top:0,left:0,right:0,bottom:0,flexDirection:'row',justifyContent:'center',alignItems:'center'},showRatingView:{flexDirection:'column',justifyContent:'center',alignItems:'center',paddingBottom:5},ratingView:{flexDirection:'row',justifyContent:'center',alignItems:'center',paddingBottom:5},ratingText:{fontSize:15,textAlign:'center',fontFamily:null,color:'#34495e'},readonlyLabel:{justifyContent:'center',alignItems:'center',fontSize:12,textAlign:'center',fontFamily:null,color:'#34495a'},currentRatingText:{fontSize:30,textAlign:'center',fontFamily:null},maxRatingText:{fontSize:18,textAlign:'center',fontFamily:null,color:'#34495e'}});d.propTypes={type:i.default.string,ratingImage:u.Image.propTypes.source,ratingColor:i.default.string,ratingBackgroundColor:i.default.string,ratingCount:i.default.number,imageSize:i.default.number,onFinishRating:i.default.func,showRating:i.default.bool,style:c.default.style,ratingTextColor:i.default.string,readonly:i.default.bool,showReadOnlyText:i.default.bool,startingValue:i.default.number,fractions:function(e,t,n){if(e[t]){var r=e[t];return'number'==typeof r?r>=0&&r<=20?null:new Error("`"+t+"` in `"+n+"` must be between 0 and 20"):new Error("`"+t+"` in `"+n+"` must be a number")}}}},656,[657,43,26,1,637,627,658,659,660,661]); +__d(function(t,r,n,e,o){var f=1/0,u=9007199254740991,i=1.7976931348623157e308,c=NaN,a=4294967295,p='[object Symbol]',v=/^\s+|\s+$/g,y=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,b=/^0o[0-7]+$/i,l=parseInt;function j(t,r){for(var n=-1,e=Array(t);++nu)return[];var n=a,e=$(t,a);t-=a;for(var o=j(e,r='function'==typeof r?r:d);++n0?m:t))};C.propTypes={placement:a.default.oneOf(['left','center','right']),leftComponent:a.default.object,centerComponent:a.default.object,rightComponent:a.default.object,backgroundColor:a.default.string,outerContainerStyles:s.ViewPropTypes.style,innerContainerStyles:s.ViewPropTypes.style,centerComponentStyle:s.ViewPropTypes.style,children:a.default.oneOfType([a.default.element,a.default.arrayOf(a.default.element)]),statusBarProps:a.default.object},C.defaultProps={placement:'center'};var y=i.StyleSheet.create({innerContainer:{flex:1,flexDirection:'row',justifyContent:'space-between',alignItems:'center'},outerContainer:babelHelpers.objectSpread({backgroundColor:s.colors.primary,borderBottomColor:'#f2f2f2',borderBottomWidth:1,paddingHorizontal:10,height:70-(0,s.getStatusBarHeight)()},void 0),centerComponent:{flex:1,marginHorizontal:16}}),g=C;r.default=g},662,[26,43,1,663,664,665,666,640]); +__d(function(e,t,r,n,o){var c=9007199254740991,u='[object Arguments]',a='[object Function]',i='[object GeneratorFunction]',f='[object Map]',l='[object Set]',s=/^\[object .+?Constructor\]$/,p='object'==typeof e&&e&&e.Object===Object&&e,b='object'==typeof self&&self&&self.Object===Object&&self,y=p||b||Function('return this')(),j='object'==typeof n&&n&&!n.nodeType&&n,v=j&&'object'==typeof r&&r&&!r.nodeType&&r,O=v&&v.exports===j;function g(e,t){return null==e?void 0:e[t]}function h(e){var t=!1;if(null!=e&&'function'!=typeof e.toString)try{t=!!(e+'')}catch(e){}return t}var w,d,_,m=Function.prototype,k=Object.prototype,P=y['__core-js_shared__'],S=(w=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||''))?'Symbol(src)_1.'+w:'',$=m.toString,M=k.hasOwnProperty,x=k.toString,A=RegExp('^'+$.call(M).replace(/[\\^$.*+?()[\]{}|]/g,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$'),F=O?y.Buffer:void 0,B=k.propertyIsEnumerable,D=F?F.isBuffer:void 0,E=(d=Object.keys,_=Object,function(e){return d(_(e))}),T=L(y,'DataView'),V=L(y,'Map'),W=L(y,'Promise'),I=L(y,'Set'),R=L(y,'WeakMap'),z=!B.call({valueOf:1},'valueOf'),C=U(T),G=U(V),q=U(W),H=U(I),J=U(R);function K(e){return!(!oe(e)||S&&S in e)&&(re(e)||h(e)?A:s).test(U(e))}function L(e,t){var r=g(e,t);return K(r)?r:void 0}var N=function(e){return x.call(e)};function Q(e){var t=e&&e.constructor;return e===('function'==typeof t&&t.prototype||k)}function U(e){if(null!=e){try{return $.call(e)}catch(e){}try{return e+''}catch(e){}}return''}function X(e){return ee(e)&&M.call(e,'callee')&&(!B.call(e,'callee')||x.call(e)==u)}(T&&"[object DataView]"!=N(new T(new ArrayBuffer(1)))||V&&N(new V)!=f||W&&"[object Promise]"!=N(W.resolve())||I&&N(new I)!=l||R&&"[object WeakMap]"!=N(new R))&&(N=function(e){var t=x.call(e),r="[object Object]"==t?e.constructor:void 0,n=r?U(r):void 0;if(n)switch(n){case C:return"[object DataView]";case G:return f;case q:return"[object Promise]";case H:return l;case J:return"[object WeakMap]"}return t});var Y=Array.isArray;function Z(e){return null!=e&&ne(e.length)&&!re(e)}function ee(e){return ce(e)&&Z(e)}var te=D||function(){return!1};function re(e){var t=oe(e)?x.call(e):'';return t==a||t==i}function ne(e){return'number'==typeof e&&e>-1&&e%1==0&&e<=c}function oe(e){var t=typeof e;return!!e&&('object'==t||'function'==t)}function ce(e){return!!e&&'object'==typeof e}r.exports=function(e){if(Z(e)&&(Y(e)||'string'==typeof e||'function'==typeof e.splice||te(e)||X(e)))return!e.length;var t=N(e);if(t==f||t==l)return!e.size;if(z||Q(e))return!E(e).length;for(var r in e)if(M.call(e,r))return!1;return!0}},663,[]); +__d(function(e,t,u,a,l){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var d=babelHelpers.interopRequireDefault(t(l[0])),n=t(l[1]),r=n.StyleSheet.create({dummyNavBtn:{height:24,width:24}}),i=function(){return d.default.createElement(n.View,{style:r.dummyNavBtn})};a.default=i},664,[26,1]); +__d(function(e,t,r,l,a){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var u=babelHelpers.interopRequireDefault(t(a[0])),i=babelHelpers.interopRequireDefault(t(a[1])),n=babelHelpers.interopRequireDefault(t(a[2])),o=function(e){var t=e.icon,r=babelHelpers.objectWithoutProperties(e,["icon"]);return u.default.createElement(n.default,babelHelpers.extends({},r,{name:t}))};o.propTypes={icon:i.default.string};var p=o;l.default=p},665,[26,43,605]); +__d(function(e,t,r,l,a){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var u=babelHelpers.interopRequireDefault(t(a[0])),i=babelHelpers.interopRequireDefault(t(a[1])),n=babelHelpers.interopRequireDefault(t(a[2])),b=function(e){var t=e.text,r=babelHelpers.objectWithoutProperties(e,["text"]);return u.default.createElement(n.default,babelHelpers.extends({numberOfLines:1},r),t)};b.propTypes={text:i.default.string};var p=b;l.default=p},666,[26,43,637]); +__d(function(e,t,r,l,a){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var n=babelHelpers.interopRequireDefault(t(a[0])),o=babelHelpers.interopRequireDefault(t(a[1])),i=t(a[2]),u=babelHelpers.interopRequireDefault(t(a[3])),p=babelHelpers.interopRequireDefault(t(a[4])),d=babelHelpers.interopRequireDefault(t(a[5])),f=babelHelpers.interopRequireDefault(t(a[6])),b=babelHelpers.interopRequireDefault(t(a[7])),c=babelHelpers.interopRequireDefault(t(a[8])),s=babelHelpers.interopRequireDefault(t(a[9])),g=function(e){var t=e.containerStyle,r=e.wrapperStyle,l=e.title,a=e.price,n=e.info,p=e.button,d=e.color,c=e.titleFont,s=e.pricingFont,g=e.infoFont,m=e.onButtonPress,S=babelHelpers.objectWithoutProperties(e,["containerStyle","wrapperStyle","title","price","info","button","color","titleFont","pricingFont","infoFont","onButtonPress"]);return o.default.createElement(i.View,babelHelpers.extends({},S,{style:[y.container,t&&t]}),o.default.createElement(i.View,{style:[y.wrapper,r&&r]},o.default.createElement(u.default,{style:[y.pricingTitle,{color:d},c&&{fontFamily:c}]},l),o.default.createElement(u.default,{style:[y.pricingPrice,s&&{fontFamily:s}]},a),n.map(function(e,t){return o.default.createElement(u.default,{key:t,style:[y.pricingInfo,g&&{fontFamily:g}]},e)}),o.default.createElement(f.default,{title:p.title,buttonStyle:[y.button,p.buttonStyle,{backgroundColor:d}],onPress:m,icon:o.default.createElement(b.default,{name:p.icon,size:15,color:"white"})})))};g.propTypes={containerStyle:s.default.style,wrapperStyle:s.default.style,title:n.default.string,price:n.default.oneOfType([n.default.string,n.default.number]),info:n.default.array,button:n.default.object,color:n.default.string,onButtonPress:n.default.any,titleFont:n.default.string,pricingFont:n.default.string,infoFont:n.default.string,buttonFont:n.default.string},g.defaultProps={color:d.default.primary};var y=i.StyleSheet.create({container:babelHelpers.objectSpread({margin:15,marginBottom:15,backgroundColor:'white',borderColor:d.default.grey5,borderWidth:1,padding:15},{elevation:1}),wrapper:{backgroundColor:'transparent'},pricingTitle:babelHelpers.objectSpread({textAlign:'center',color:d.default.primary,fontSize:(0,c.default)(30)},babelHelpers.objectSpread({},p.default.android.black)),pricingPrice:babelHelpers.objectSpread({textAlign:'center',marginTop:10,marginBottom:10,fontSize:(0,c.default)(40)},babelHelpers.objectSpread({},p.default.android.bold)),pricingInfo:babelHelpers.objectSpread({textAlign:'center',marginTop:5,marginBottom:5,color:d.default.grey3},babelHelpers.objectSpread({},p.default.android.bold)),button:{marginTop:15,marginBottom:10}}),m=g;l.default=m},667,[43,26,1,637,630,603,602,605,638,627]); +__d(function(e,t,n,r,l){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=babelHelpers.interopRequireWildcard(t(l[0])),s=t(l[1]),a=babelHelpers.interopRequireDefault(t(l[2])),i=t(l[3]),d=(function(e){function t(){var e,n,r;babelHelpers.classCallCheck(this,t);for(var l=arguments.length,a=new Array(l),i=0;i()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}},{key:"login",value:function(){var e=this,t=this.state,a=t.email,n=t.password;this.setState({isLoading:!0}),setTimeout(function(){o.LayoutAnimation.easeInEaseOut(),e.setState({isLoading:!1,isEmailValid:e.validateEmail(a)||e.emailInput.shake(),isPasswordValid:n.length>=8||e.passwordInput.shake()}),e.state.isEmailValid&&e.state.isPasswordValid&&o.Alert.alert('Success','You are logged in!',[{text:'OK'}],{cancelable:!1})},1500)}},{key:"signUp",value:function(){var e=this,t=this.state,a=t.email,n=t.password,r=t.passwordConfirmation;this.setState({isLoading:!0}),setTimeout(function(){o.LayoutAnimation.easeInEaseOut(),e.setState({isLoading:!1,isEmailValid:e.validateEmail(a)||e.emailInput.shake(),isPasswordValid:n.length>=8||e.passwordInput.shake(),isConfirmationValid:n==r||e.confirmationInput.shake()}),e.state.isEmailValid&&e.state.isPasswordValid&&e.state.isConfirmationValid?o.Alert.alert('Signed Up!','You successfully signed up!',[{text:'OK'}],{cancelable:!1}):o.Alert.alert('Failure','Some fields are not valid!',[{text:'Try again'}],{cancelable:!1})},1500)}},{key:"render",value:function(){var e=this,t=this.state,a=t.selectedCategory,n=t.isLoading,r=t.isEmailValid,u=t.isPasswordValid,g=t.isConfirmationValid,b=t.email,y=t.password,C=t.passwordConfirmation,h=0===a,S=1===a;return i.default.createElement(o.View,{style:m.contentContainer},i.default.createElement(o.KeyboardAvoidingView,{contentContainerStyle:m.loginContainer,behavior:"position"},i.default.createElement(p.default,{text:"Login / Sign up Form"}),i.default.createElement(o.View,{style:m.categoryContainer},i.default.createElement(c.default,{onPress:function(){return e.selectCategory(0)},containerStyle:{flex:1},textStyle:[m.categoryText,h&&m.selectedCategoryText],text:'Login',testID:'login-container'}),i.default.createElement(c.default,{onPress:function(){return e.selectCategory(1)},containerStyle:{flex:1},textStyle:[m.categoryText,S&&m.selectedCategoryText],text:'Sign up',testID:'sign-up-container'})),i.default.createElement(o.View,{style:m.rowSelector},i.default.createElement(f,{selected:h}),i.default.createElement(f,{selected:S})),i.default.createElement(o.View,{style:m.formContainer},i.default.createElement(l.Input,babelHelpers.extends({leftIcon:i.default.createElement(s.default,{name:"email-outline",color:"#ea5906",size:25,style:{backgroundColor:'transparent'}}),value:b,keyboardAppearance:"light",autoFocus:!1,autoCapitalize:"none",autoCorrect:!1,keyboardType:"email-address",returnKeyType:"next",inputStyle:{marginLeft:10},placeholder:'Email',inputContainerStyle:{borderBottomColor:'#ea5906'},ref:function(t){return e.emailInput=t},onSubmitEditing:function(){return e.passwordInput.focus()},onChangeText:function(t){return e.setState({email:t})},errorMessage:r?null:'Please enter a valid email address'},(0,d.testProperties)('input-email'))),i.default.createElement(l.Input,babelHelpers.extends({leftIcon:i.default.createElement(s.default,{name:"lock-outline",color:"#ea5906",size:25,style:{backgroundColor:'transparent'}}),value:y,keyboardAppearance:"light",autoCapitalize:"none",autoCorrect:!1,secureTextEntry:!0,returnKeyType:S?'next':'done',blurOnSubmit:!0,containerStyle:{marginTop:16},inputContainerStyle:{borderBottomColor:'#ea5906'},inputStyle:{marginLeft:10},placeholder:'Password',ref:function(t){return e.passwordInput=t},onSubmitEditing:function(){return S?e.confirmationInput.focus():e.login()},onChangeText:function(t){return e.setState({password:t})},errorMessage:u?null:'Please enter at least 8 characters'},(0,d.testProperties)('input-password'))),S&&i.default.createElement(l.Input,babelHelpers.extends({leftIcon:i.default.createElement(s.default,{name:"lock-outline",color:"#ea5906",size:25,style:{backgroundColor:'transparent'}}),value:C,secureTextEntry:!0,keyboardAppearance:"light",autoCapitalize:"none",autoCorrect:!1,keyboardType:"default",returnKeyType:'done',blurOnSubmit:!0,containerStyle:{marginTop:16},inputContainerStyle:{borderBottomColor:'#ea5906'},inputStyle:{marginLeft:10},placeholder:'Confirm password',ref:function(t){return e.confirmationInput=t},onSubmitEditing:this.signUp,onChangeText:function(t){return e.setState({passwordConfirmation:t})},errorMessage:g?null:'Please enter the same password'},(0,d.testProperties)('input-repeat-password'))),i.default.createElement(c.default,{containerStyle:m.button,onPress:h?this.login:this.signUp,text:h?'LOGIN':'SIGN UP',textStyle:m.buttonText,loading:n,disabled:n}))))}}]),babelHelpers.inherits(t,e),t})(i.Component),m=o.StyleSheet.create({contentContainer:{alignItems:'center',justifyContent:'center'},titleContainer:{height:150,backgroundColor:'transparent',justifyContent:'center'},titleText:{color:'#000',fontSize:30,fontWeight:'100'},categoryContainer:{flexDirection:'row'},categoryText:{textAlign:'center',color:'#000',fontSize:24,backgroundColor:'transparent',opacity:.54},selectedCategoryText:{opacity:1},rowSelector:{height:20,flexDirection:'row',alignItems:'center'},selectorContainer:{flex:1,alignItems:'center'},selected:{position:'absolute',borderRadius:50,height:0,width:0,top:-5,borderRightWidth:70,borderBottomWidth:70,borderColor:'#ea5906',backgroundColor:'#ea5906'},loginContainer:{alignItems:'center',justifyContent:'center'},formContainer:{backgroundColor:'#f7f7f7',width:u.WINDOW_WIDTH-30,paddingTop:32,paddingBottom:32,alignItems:'center',borderColor:'#ea5906',borderWidth:5},loginText:{fontSize:16,fontWeight:'bold',color:'#000'},buttonText:{fontSize:16,color:'#ea5906'},button:{height:50,width:200,backgroundColor:'#000',borderColor:'#ea5906',borderWidth:5,marginTop:32,flex:0}}),b=g;n.default=b},671,[26,1,601,420,299,586,668,669]); +__d(function(e,t,i,r,n){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=babelHelpers.interopRequireWildcard(t(n[0])),a=t(n[1]),l=t(n[2]),s=babelHelpers.interopRequireDefault(t(n[3])),d=babelHelpers.interopRequireWildcard(t(n[4])),u=babelHelpers.interopRequireWildcard(t(n[5])),c=t(n[6]),p=t(n[7]),b=[{title:'Fully Open Source',subtitle:'WebdriverIO is fully open source and can be found on GitHub',icon:'github-circle',link:'https://github.com/webdriverio/webdriverio/'},{title:'Creat community',subtitle:'WebdriverIO has a great community that supports all members.',icon:'wechat',link:'https://gitter.im/webdriverio/webdriverio'},{title:'JS.Foundation',subtitle:'The JS Foundation is host to projects that span the entire JavaScript ecosystem.',icon:'language-javascript',link:'https://js.foundation/community/projects'},{title:'Support Videos',subtitle:'The community around WebdriverIO is actively speaking on various user groups or conferences about specific topics around automated testing with WebdriverIO.',icon:'youtube',link:'https://www.youtube.com/user/medigerati/videos'},{title:'Extendable',subtitle:'Adding helper functions, or more complicated sets and combinations of existing commands is simple and really useful',icon:'engine-outline',link:'http://webdriver.io/guide/services/sauce.html'},{title:'Compatible',subtitle:'WebdriverIO works in combination with most of the TDD and BDD test frameworks in the JavaScript world',icon:'arrow-decision-outline',link:'http://webdriver.io/guide/testrunner/frameworks.html'}],m=(function(e){function t(e){var i;return babelHelpers.classCallCheck(this,t),(i=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,e))).state={slider1ActiveSlide:0},i}return babelHelpers.createClass(t,[{key:"renderItem",value:function(e){var t=e.item;return o.default.createElement(u.default,{data:t})}},{key:"render",value:function(){var e=this,t=this.state.slider1ActiveSlide;return o.default.createElement(a.View,babelHelpers.extends({style:f.container},(0,p.testProperties)('Swipe-screen')),o.default.createElement(s.default,{text:"Swipe horizontal"}),o.default.createElement(a.View,(0,p.testProperties)('Carousel'),o.default.createElement(d.default,{ref:function(t){return e._slider1Ref=t},data:b,renderItem:this.renderItem,sliderWidth:c.WINDOW_WIDTH,itemWidth:u.SLIDE_WIDTH,inactiveSlideScale:.9,inactiveSlideOpacity:.7,containerCustomStyle:f.sliderContainer,contentContainerCustomStyle:f.sliderContentContainer,onSnapToItem:function(t){return e.setState({slider1ActiveSlide:t})}}),o.default.createElement(d.Pagination,{dotsLength:b.length,activeDotIndex:t,containerStyle:f.paginationContainer,dotColor:'#ea5906',dotStyle:f.paginationDot,inactiveDotColor:'#ea5906',inactiveDotOpacity:.4,inactiveDotScale:.6,carouselRef:this._slider1Ref,tappableDots:!!this._slider1Ref})))}}]),babelHelpers.inherits(t,e),t})(o.Component),f=a.StyleSheet.create({container:{flex:1,backgroundColor:'#f7f7f7',marginTop:l.STATUS_BAR_HEIGHT,paddingBottom:40},sliderContainer:{overflow:'visible'},sliderContentContainer:{paddingVertical:10},paginationContainer:{paddingVertical:8},paginationDot:{width:10,height:10,borderRadius:4,marginHorizontal:8}}),h=m;r.default=h},672,[26,1,298,669,673,683,299,586]); +__d(function(e,t,r,n,u){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"Pagination",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"ParallaxImage",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"getInputRangeFromIndexes",{enumerable:!0,get:function(){return f.getInputRangeFromIndexes}});var a=babelHelpers.interopRequireDefault(t(u[0])),l=babelHelpers.interopRequireDefault(t(u[1])),i=babelHelpers.interopRequireDefault(t(u[2])),f=t(u[3])},673,[674,678,681,677]); +__d(function(e,t,i,o,n){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var s=babelHelpers.interopRequireWildcard(t(n[0])),a=t(n[1]),l=babelHelpers.interopRequireDefault(t(n[2])),r=babelHelpers.interopRequireDefault(t(n[3])),u=t(n[4]),h=a.FlatList?a.Animated.createAnimatedComponent(a.FlatList):null,c=a.Animated.createAnimatedComponent(a.ScrollView),p=a.I18nManager.isRTL,d=(function(e){function t(e){var i;babelHelpers.classCallCheck(this,t),(i=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,e))).state={hideCarousel:!0,interpolators:[]};var o=i._getFirstItem(e.firstItem);i._activeItem=o,i._previousActiveItem=o,i._previousFirstItem=o,i._previousItemsLength=o,i._mounted=!1,i._positions=[],i._currentContentOffset=0,i._canFireBeforeCallback=!1,i._canFireCallback=!1,i._scrollOffsetRef=null,i._onScrollTriggered=!0,i._lastScrollDate=0,i._scrollEnabled=!1!==e.scrollEnabled,i._initPositionsAndInterpolators=i._initPositionsAndInterpolators.bind(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(i))),i._renderItem=i._renderItem.bind(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(i))),i._onSnap=i._onSnap.bind(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(i))),i._onLayout=i._onLayout.bind(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(i))),i._onScroll=i._onScroll.bind(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(i))),i._onScrollBeginDrag=e.enableSnap?i._onScrollBeginDrag.bind(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(i))):void 0,i._onScrollEnd=e.enableSnap||e.autoplay?i._onScrollEnd.bind(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(i))):void 0,i._onScrollEndDrag=e.enableMomentum?void 0:i._onScrollEndDrag.bind(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(i))),i._onMomentumScrollEnd=e.enableMomentum?i._onMomentumScrollEnd.bind(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(i))):void 0,i._onTouchStart=i._onTouchStart.bind(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(i))),i._onTouchRelease=i._onTouchRelease.bind(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(i))),i._getKeyExtractor=i._getKeyExtractor.bind(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(i)));var n={listener:i._onScroll,useNativeDriver:!0};return i._scrollPos=new a.Animated.Value(0),i._onScrollHandler=e.vertical?a.Animated.event([{nativeEvent:{contentOffset:{y:i._scrollPos}}}],n):a.Animated.event([{nativeEvent:{contentOffset:{x:i._scrollPos}}}],n),i._ignoreNextMomentum=!1,a.ViewPropTypes||console.warn('react-native-snap-carousel: It is recommended to use at least version 0.44 of React Native with the plugin'),e.vertical||e.sliderWidth&&e.itemWidth||console.warn('react-native-snap-carousel: You need to specify both `sliderWidth` and `itemWidth` for horizontal carousels'),!e.vertical||e.sliderHeight&&e.itemHeight||console.warn('react-native-snap-carousel: You need to specify both `sliderHeight` and `itemHeight` for vertical carousels'),e.apparitionDelay&&!e.useScrollView&&console.warn('react-native-snap-carousel: Using `apparitionDelay` on Android is not recommended since it can lead to rendering issues'),(e.customAnimationType||e.customAnimationOptions)&&console.warn('react-native-snap-carousel: Props `customAnimationType` and `customAnimationOptions` have been renamed to `activeAnimationType` and `activeAnimationOptions`'),e.onScrollViewScroll&&console.warn('react-native-snap-carousel: Prop `onScrollViewScroll` has been removed. Use `onScroll` instead'),i}return babelHelpers.createClass(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,i=t.apparitionDelay,o=t.autoplay,n=t.firstItem,s=this._getFirstItem(n),a=function(){e.setState({hideCarousel:!1}),o&&e.startAutoplay()};this._mounted=!0,this._initPositionsAndInterpolators(),requestAnimationFrame(function(){e._mounted&&(e._snapToItem(s,!1,!1,!0,!1),e._hackActiveSlideAnimation(s,'start',!0),i?e._apparitionTimeout=setTimeout(function(){a()},i):a())})}},{key:"shouldComponentUpdate",value:function(e,t){return!1===this.props.shouldOptimizeUpdates||(0,r.default)(this,e,t)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state.interpolators,i=e.firstItem,o=e.itemHeight,n=e.itemWidth,s=e.scrollEnabled,a=e.sliderHeight,l=e.sliderWidth,r=this._getCustomDataLength(e);if(r){var u=this._getFirstItem(i,e),h=this._activeItem||0===this._activeItem?this._activeItem:u,c=l&&l!==this.props.sliderWidth,p=a&&a!==this.props.sliderHeight,d=n&&n!==this.props.itemWidth,_=o&&o!==this.props.itemHeight,m=s!==this.props.scrollEnabled;h>r-1&&(h=r-1),m&&this._setScrollEnabled(s),t.length!==r||c||p||d||_?(this._activeItem=h,this._previousItemsLength=r,this._initPositionsAndInterpolators(e),this._previousItemsLength>r&&this._hackActiveSlideAnimation(h,null,!0),(c||p||d||_)&&this._snapToItem(h,!1,!1,!1,!1)):u!==this._previousFirstItem&&u!==this._activeItem&&(this._activeItem=u,this._previousFirstItem=u,this._snapToItem(u,!0,!0,!1,!1))}}},{key:"componentWillUnmount",value:function(){this._mounted=!1,this.stopAutoplay(),clearTimeout(this._apparitionTimeout),clearTimeout(this._hackSlideAnimationTimeout),clearTimeout(this._enableAutoplayTimeout),clearTimeout(this._autoplayTimeout),clearTimeout(this._snapNoMomentumTimeout),clearTimeout(this._edgeItemTimeout),clearTimeout(this._lockScrollTimeout)}},{key:"_needsScrollView",value:function(){return this.props.useScrollView||!h||this._shouldUseStackLayout()||this._shouldUseTinderLayout()}},{key:"_needsRTLAdaptations",value:function(){var e=this.props.vertical;return p&&!e}},{key:"_canLockScroll",value:function(){var e=this.props,t=e.enableMomentum,i=e.lockScrollWhileSnapping;return!t&&i}},{key:"_enableLoop",value:function(){var e=this.props,t=e.data,i=e.enableSnap,o=e.loop;return i&&o&&t.length&&t.length>1}},{key:"_shouldAnimateSlides",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.inactiveSlideOpacity,i=e.inactiveSlideScale,o=e.scrollInterpolator,n=e.slideInterpolatedStyle;return t<1||i<1||!!o||!!n||this._shouldUseShiftLayout()||this._shouldUseStackLayout()||this._shouldUseTinderLayout()}},{key:"_shouldUseCustomAnimation",value:function(){return!!this.props.activeAnimationOptions&&!this._shouldUseStackLayout()&&!this._shouldUseTinderLayout()}},{key:"_shouldUseShiftLayout",value:function(){var e=this.props,t=e.inactiveSlideShift;return'default'===e.layout&&0!==t}},{key:"_shouldUseStackLayout",value:function(){return'stack'===this.props.layout}},{key:"_shouldUseTinderLayout",value:function(){return'tinder'===this.props.layout}},{key:"_getCustomData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.data,i=e.loopClonesPerSide,o=t.length;if(!t||!o)return[];if(!this._enableLoop())return t;var n=[],s=[];if(i>o){for(var a,l,r=Math.floor(i/o),u=i%o,h=0;h0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.data,i=e.loopClonesPerSide,o=t&&t.length;return o?this._enableLoop()?o+2*i:o:0}},{key:"_getCustomIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props,i=this._getCustomDataLength(t);return!i||!e&&0!==e?0:this._needsRTLAdaptations()?i-e-1:e}},{key:"_getDataIndex",value:function(e){var t=this.props,i=t.data,o=t.loopClonesPerSide,n=i&&i.length;if(!this._enableLoop()||!n)return e;if(e>=n+o)return o>n?(e-o)%n:e-n-o;if(en){for(var s=[],a=[],l=Math.floor(o/n),r=o%n,u=0;u1&&void 0!==arguments[1]?arguments[1]:this.props,i=t.loopClonesPerSide,o=this._getCustomDataLength(t);return!o||e>o-1||e<0?0:this._enableLoop()?e+i:e}},{key:"_getWrappedRef",value:function(){return this._carouselRef&&this._carouselRef.getNode&&this._carouselRef.getNode()}},{key:"_getScrollEnabled",value:function(){return this._scrollEnabled}},{key:"_setScrollEnabled",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=(this.props.scrollEnabled,this._getWrappedRef());t&&t.setNativeProps&&(t.setNativeProps({scrollEnabled:e}),this._scrollEnabled=e)}},{key:"_getKeyExtractor",value:function(e,t){return this._needsScrollView()?"scrollview-item-"+t:"flatlist-item-"+t}},{key:"_getScrollOffset",value:function(e){var t=this.props.vertical;return e&&e.nativeEvent&&e.nativeEvent.contentOffset&&e.nativeEvent.contentOffset[t?'y':'x']||0}},{key:"_getContainerInnerMargin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props,i=t.sliderWidth,o=t.sliderHeight,n=t.itemWidth,s=t.itemHeight,a=t.vertical,l=t.activeSlideAlignment;return'start'===l&&!e||'end'===l&&e?0:'end'===l&&!e||'start'===l&&e?a?o-s:i-n:a?(o-s)/2:(i-n)/2}},{key:"_getViewportOffet",value:function(){var e=this.props,t=e.sliderWidth,i=e.sliderHeight,o=e.itemWidth,n=e.itemHeight,s=e.vertical,a=e.activeSlideAlignment;return'start'===a?s?n/2:o/2:'end'===a?s?i-n/2:t-o/2:s?i/2:t/2}},{key:"_getCenter",value:function(e){return e+this._getViewportOffet()-this._getContainerInnerMargin()}},{key:"_getActiveItem",value:function(e){for(var t=this.props,i=t.activeSlideOffset,o=t.swipeThreshold,n=this._getCenter(e),s=i||o,a=0;a=r&&n-s<=u)return a}var h=this._positions.length-1;return this._positions[h]&&n-s>this._positions[h].end?h:0}},{key:"_initPositionsAndInterpolators",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,i=t.data,o=t.itemWidth,n=t.itemHeight,s=t.scrollInterpolator,l=t.vertical?n:o;if(i.length){var r=[];this._positions=[],this._getCustomData(t).forEach(function(i,o){var n,h=e._getCustomIndex(o,t);if(e._positions[o]={start:o*l,end:o*l+l},e._shouldAnimateSlides(t))if(e._shouldUseCustomAnimation())n=new a.Animated.Value(h===e._activeItem?1:0);else{var c;s?c=s(h,t):e._shouldUseStackLayout()?c=(0,u.stackScrollInterpolator)(h,t):e._shouldUseTinderLayout()&&(c=(0,u.tinderScrollInterpolator)(h,t)),c&&c.inputRange&&c.outputRange||(c=(0,u.defaultScrollInterpolator)(h,t)),n=e._scrollPos.interpolate(babelHelpers.objectSpread({},c,{extrapolate:'clamp'}))}else n=1;r.push(n)}),this.setState({interpolators:r})}}},{key:"_getSlideAnimation",value:function(e,t){var i=this.state.interpolators,o=this.props,n=o.activeAnimationType,s=o.activeAnimationOptions,l=i&&i[e];if(!l&&0!==l)return!1;var r=babelHelpers.objectSpread({isInteraction:!1,useNativeDriver:!0},s,{toValue:t});return a.Animated.parallel([a.Animated.timing(l,babelHelpers.objectSpread({},r,{easing:a.Easing.linear})),a.Animated[n](l,babelHelpers.objectSpread({},r))])}},{key:"_playCustomSlideAnimation",value:function(e,t){var i=this.state.interpolators,o=this._getCustomDataLength(),n=this._getCustomIndex(e),s=this._getDataIndex(n),l=this._getCustomIndex(t),r=this._getDataIndex(l),u=[];if(this._enableLoop())for(var h=0;h2&&void 0!==arguments[2]&&arguments[2],n=this.props.data;if(this._mounted&&this._carouselRef&&this._positions[e]&&(o||!this._enableLoop())){var s=this._positions[e]&&this._positions[e].start;if(s||0===s){var a=n&&n.length,l=t||1===a?'start':'end';this._scrollTo(s+('start'===l?-1:1),!1),clearTimeout(this._hackSlideAnimationTimeout),this._hackSlideAnimationTimeout=setTimeout(function(){i._scrollTo(s,!1)},50)}}}},{key:"_lockScroll",value:function(){var e=this,t=this.props.lockScrollTimeoutDuration;clearTimeout(this._lockScrollTimeout),this._lockScrollTimeout=setTimeout(function(){e._releaseScroll()},t),this._setScrollEnabled(!1)}},{key:"_releaseScroll",value:function(){clearTimeout(this._lockScrollTimeout),this._setScrollEnabled(!0)}},{key:"_repositionScroll",value:function(e){var t=this.props,i=t.data,o=t.loopClonesPerSide,n=i&&i.length;if(this._enableLoop()&&n&&!(e>=o&&e=n+o?s=e-n:e1&&void 0!==arguments[1])||arguments[1],i=this.props.vertical,o=this._getWrappedRef();if(this._mounted&&o){var n=this._needsScrollView()?{x:i?0:e,y:i?e:0}:{offset:e},s=babelHelpers.objectSpread({},n,{animated:t});this._needsScrollView()?o.scrollTo(s):o.scrollToOffset(s)}}},{key:"_onScroll",value:function(e){var t=this.props,i=t.callbackOffsetMargin,o=t.enableMomentum,n=t.onScroll,s=e?this._getScrollOffset(e):this._currentContentOffset,a=this._getActiveItem(s),l=a===this._itemToSnapTo,r=s>=this._scrollOffsetRef-i&&s<=this._scrollOffsetRef+i;this._currentContentOffset=s,this._onScrollTriggered=!0,this._lastScrollDate=Date.now(),this._activeItem!==a&&this._shouldUseCustomAnimation()&&this._playCustomSlideAnimation(this._activeItem,a),o?(clearTimeout(this._snapNoMomentumTimeout),this._activeItem!==a&&(this._activeItem=a),l&&(this._canFireBeforeCallback&&this._onBeforeSnap(this._getDataIndex(a)),r&&this._canFireCallback&&this._onSnap(this._getDataIndex(a)))):this._activeItem!==a&&l&&(this._canFireBeforeCallback&&this._onBeforeSnap(this._getDataIndex(a)),r&&(this._activeItem=a,this._canLockScroll()&&this._releaseScroll(),this._canFireCallback&&this._onSnap(this._getDataIndex(a)))),a===this._itemToSnapTo&&s===this._scrollOffsetRef&&this._repositionScroll(a),n&&e&&n(e)}},{key:"_onStartShouldSetResponderCapture",value:function(e){var t=this.props.onStartShouldSetResponderCapture;return t&&t(e),this._getScrollEnabled()}},{key:"_onTouchStart",value:function(){!1!==this._getScrollEnabled()&&this._autoplaying&&this.stopAutoplay()}},{key:"_onScrollBeginDrag",value:function(e){var t=this.props.onScrollBeginDrag;this._getScrollEnabled()&&(this._scrollStartOffset=this._getScrollOffset(e),this._scrollStartActive=this._getActiveItem(this._scrollStartOffset),this._ignoreNextMomentum=!1,t&&t(e))}},{key:"_onScrollEndDrag",value:function(e){var t=this.props.onScrollEndDrag;this._carouselRef&&this._onScrollEnd&&this._onScrollEnd(),t&&t(e)}},{key:"_onMomentumScrollEnd",value:function(e){var t=this.props.onMomentumScrollEnd;this._carouselRef&&this._onScrollEnd&&this._onScrollEnd(),t&&t(e)}},{key:"_onScrollEnd",value:function(e){var t=this,i=this.props,o=i.autoplay,n=i.enableSnap;this._ignoreNextMomentum?this._ignoreNextMomentum=!1:(this._scrollEndOffset=this._currentContentOffset,this._scrollEndActive=this._getActiveItem(this._scrollEndOffset),n&&this._snapScroll(this._scrollEndOffset-this._scrollStartOffset),o&&(clearTimeout(this._enableAutoplayTimeout),this._enableAutoplayTimeout=setTimeout(function(){t.startAutoplay()},300)))}},{key:"_onTouchRelease",value:function(e){this.props.enableMomentum}},{key:"_onLayout",value:function(e){var t=this.props.onLayout;this._onLayoutInitDone?(this._initPositionsAndInterpolators(),this._snapToItem(this._activeItem,!1,!1,!1,!1)):this._onLayoutInitDone=!0,t&&t(e)}},{key:"_snapScroll",value:function(e){var t=this.props.swipeThreshold;this._scrollStartActive!==this._scrollEndActive?this._snapToItem(this._scrollEndActive):e>0?e>t?this._snapToItem(this._scrollStartActive+1):this._snapToItem(this._scrollEndActive):e<0&&e<-t?this._snapToItem(this._scrollStartActive-1):this._snapToItem(this._scrollEndActive)}},{key:"_snapToItem",value:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.props,l=a.enableMomentum,r=a.onSnapToItem,u=a.onBeforeSnapToItem,h=this._getCustomDataLength(),c=this._getWrappedRef();h&&c&&(!e||e<0?e=0:h>0&&e>=h&&(e=h-1),e!==this._previousActiveItem&&(this._previousActiveItem=e,s&&this._canLockScroll()&&this._lockScroll(),o&&(u&&(this._canFireBeforeCallback=!0),r&&(this._canFireCallback=!0))),this._itemToSnapTo=e,this._scrollOffsetRef=this._positions[e]&&this._positions[e].start,this._onScrollTriggered=!1,(this._scrollOffsetRef||0===this._scrollOffsetRef)&&(this._scrollTo(this._scrollOffsetRef,i),l&&(0!==e&&e!==h-1||(clearTimeout(this._edgeItemTimeout),this._edgeItemTimeout=setTimeout(function(){n||e!==t._activeItem||t._onScrollTriggered||t._onScroll()},250)))))}},{key:"_onBeforeSnap",value:function(e){var t=this.props.onBeforeSnapToItem;this._carouselRef&&(this._canFireBeforeCallback=!1,t&&t(e))}},{key:"_onSnap",value:function(e){var t=this.props.onSnapToItem;this._carouselRef&&(this._canFireCallback=!1,t&&t(e))}},{key:"startAutoplay",value:function(){var e=this,t=this.props,i=t.autoplayInterval,o=t.autoplayDelay;this._autoplaying||(clearTimeout(this._autoplayTimeout),this._autoplayTimeout=setTimeout(function(){e._autoplaying=!0,e._autoplayInterval=setInterval(function(){e._autoplaying&&e.snapToNext()},i)},o))}},{key:"stopAutoplay",value:function(){this._autoplaying=!1,clearInterval(this._autoplayInterval)}},{key:"snapToItem",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(!e||e<0)&&(e=0);var o=this._getPositionIndex(e);o!==this._activeItem&&this._snapToItem(o,t,i)}},{key:"snapToNext",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this._getCustomDataLength(),o=this._activeItem+1;if(o>i-1){if(!this._enableLoop())return;o=0}this._snapToItem(o,e,t)}},{key:"snapToPrev",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this._getCustomDataLength(),o=this._activeItem-1;if(o<0){if(!this._enableLoop())return;o=i-1}this._snapToItem(o,e,t)}},{key:"triggerRenderingHack",value:function(e){if(!(Date.now()-this._lastScrollDate<500)){var t=this._currentContentOffset;if(t||0===t){var i=e||(0===t?1:-1);this._scrollTo(t+i,!1)}}}},{key:"_getSlideInterpolatedStyle",value:function(e,t){var i=this.props,o=i.layoutCardOffset,n=i.slideInterpolatedStyle;return n?n(e,t,this.props):this._shouldUseTinderLayout()?(0,u.tinderAnimatedStyles)(e,t,this.props,o):this._shouldUseStackLayout()?(0,u.stackAnimatedStyles)(e,t,this.props,o):this._shouldUseShiftLayout()?(0,u.shiftAnimatedStyles)(e,t,this.props):(0,u.defaultAnimatedStyles)(e,t,this.props)}},{key:"_renderItem",value:function(e){var t=e.item,i=e.index,o=this.state.interpolators,n=this.props,l=n.hasParallaxImages,r=n.itemWidth,u=n.itemHeight,h=n.keyExtractor,c=n.renderItem,p=n.sliderHeight,d=n.sliderWidth,_=n.slideStyle,m=n.vertical,f=o&&o[i];if(!f&&0!==f)return!1;var v=this._shouldAnimateSlides(),S=v?a.Animated.View:a.View,g=v?this._getSlideInterpolatedStyle(i,f):{},b=l?{scrollPosition:this._scrollPos,carouselRef:this._carouselRef,vertical:m,sliderWidth:d,sliderHeight:p,itemWidth:r,itemHeight:u}:void 0,y=m?{height:u}:{width:r},I=this._needsScrollView()?{key:h?h(t,i):this._getKeyExtractor(t,i)}:{};return s.default.createElement(S,babelHelpers.extends({style:[y,_,g],pointerEvents:'box-none'},I),c({item:t,index:i},b))}},{key:"_getComponentOverridableProps",value:function(){var e=this.props,t=e.enableMomentum,i=e.itemWidth,o=e.itemHeight,n=e.loopClonesPerSide,s=e.sliderWidth,a=e.sliderHeight,l=e.vertical,r=Math.ceil(l?a/o:s/i)+1+2*(this._enableLoop()?n:2),u=1+2*r,h=u,c=this._needsScrollView()?{}:{initialNumToRender:r,maxToRenderPerBatch:u,windowSize:h};return babelHelpers.objectSpread({decelerationRate:t?.9:'fast',showsHorizontalScrollIndicator:!1,showsVerticalScrollIndicator:!1,overScrollMode:'never',automaticallyAdjustContentInsets:!1,directionalLockEnabled:!0,pinchGestureEnabled:!1,scrollsToTop:!1,removeClippedSubviews:!0,inverted:this._needsRTLAdaptations()},c)}},{key:"_getComponentStaticProps",value:function(){var e=this,t=this.state.hideCarousel,i=this.props,o=i.containerCustomStyle,n=i.contentContainerCustomStyle,s=i.keyExtractor,a=i.sliderWidth,l=i.sliderHeight,r=i.style,u=i.vertical,h=[o||r||{},t?{opacity:0}:{},u?{height:l,flexDirection:'column'}:{width:a,flexDirection:this._needsRTLAdaptations()?'row-reverse':'row'}],c=[n||{},u?{paddingTop:this._getContainerInnerMargin(),paddingBottom:this._getContainerInnerMargin(!0)}:{paddingLeft:this._getContainerInnerMargin(),paddingRight:this._getContainerInnerMargin(!0)}],p=this._needsScrollView()?{}:{renderItem:this._renderItem,numColumns:1,getItemLayout:void 0,initialScrollIndex:void 0,keyExtractor:s||this._getKeyExtractor};return babelHelpers.objectSpread({ref:function(t){return e._carouselRef=t},data:this._getCustomData(),style:h,contentContainerStyle:c,horizontal:!u,scrollEventThrottle:1,onScroll:this._onScrollHandler,onScrollBeginDrag:this._onScrollBeginDrag,onScrollEndDrag:this._onScrollEndDrag,onMomentumScrollEnd:this._onMomentumScrollEnd,onResponderRelease:this._onTouchRelease,onStartShouldSetResponderCapture:this._onStartShouldSetResponderCapture,onTouchStart:this._onTouchStart,onLayout:this._onLayout},p)}},{key:"render",value:function(){var e=this,t=this.props,i=t.data,o=t.renderItem;if(!i||!o)return!1;var n=babelHelpers.objectSpread({},this._getComponentOverridableProps(),this.props,this._getComponentStaticProps());return this._needsScrollView()?s.default.createElement(c,n,this._getCustomData().map(function(t,i){return e._renderItem({item:t,index:i})})):s.default.createElement(h,n)}},{key:"realIndex",get:function(){return this._activeItem}},{key:"currentIndex",get:function(){return this._getDataIndex(this._activeItem)}},{key:"currentScrollPosition",get:function(){return this._currentContentOffset}}]),babelHelpers.inherits(t,e),t})(s.Component);o.default=d,d.propTypes={data:l.default.array.isRequired,renderItem:l.default.func.isRequired,itemWidth:l.default.number,itemHeight:l.default.number,sliderWidth:l.default.number,sliderHeight:l.default.number,activeAnimationType:l.default.string,activeAnimationOptions:l.default.object,activeSlideAlignment:l.default.oneOf(['center','end','start']),activeSlideOffset:l.default.number,apparitionDelay:l.default.number,autoplay:l.default.bool,autoplayDelay:l.default.number,autoplayInterval:l.default.number,callbackOffsetMargin:l.default.number,containerCustomStyle:a.ViewPropTypes?a.ViewPropTypes.style:a.View.propTypes.style,contentContainerCustomStyle:a.ViewPropTypes?a.ViewPropTypes.style:a.View.propTypes.style,enableMomentum:l.default.bool,enableSnap:l.default.bool,firstItem:l.default.number,hasParallaxImages:l.default.bool,inactiveSlideOpacity:l.default.number,inactiveSlideScale:l.default.number,inactiveSlideShift:l.default.number,layout:l.default.oneOf(['default','stack','tinder']),layoutCardOffset:l.default.number,lockScrollTimeoutDuration:l.default.number,lockScrollWhileSnapping:l.default.bool,loop:l.default.bool,loopClonesPerSide:l.default.number,scrollInterpolator:l.default.func,slideInterpolatedStyle:l.default.func,slideStyle:a.ViewPropTypes?a.ViewPropTypes.style:a.View.propTypes.style,shouldOptimizeUpdates:l.default.bool,swipeThreshold:l.default.number,useScrollView:l.default.bool,vertical:l.default.bool,onBeforeSnapToItem:l.default.func,onSnapToItem:l.default.func},d.defaultProps={activeAnimationType:'timing',activeAnimationOptions:null,activeSlideAlignment:'center',activeSlideOffset:20,apparitionDelay:0,autoplay:!1,autoplayDelay:5e3,autoplayInterval:3e3,callbackOffsetMargin:5,containerCustomStyle:{},contentContainerCustomStyle:{},enableMomentum:!1,enableSnap:!0,firstItem:0,hasParallaxImages:!1,inactiveSlideOpacity:.7,inactiveSlideScale:.9,inactiveSlideShift:0,layout:'default',lockScrollTimeoutDuration:1e3,lockScrollWhileSnapping:!1,loop:!1,loopClonesPerSide:3,slideStyle:{},shouldOptimizeUpdates:!0,swipeThreshold:20,useScrollView:!h,vertical:!1}},674,[26,1,43,675,677]); +__d(function(t,r,n,s,e){'use strict';var o=r(e[0]);n.exports=function(t,r,n){return!o(t.props,r)||!o(t.state,n)}},675,[676]); +__d(function(t,e,r,n,o){'use strict';var u=Object.prototype.hasOwnProperty;function c(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}r.exports=function(t,e){if(c(t,e))return!0;if('object'!=typeof t||null===t||'object'!=typeof e||null===e)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:0,t=this.state,a=t.animColor,i=t.animOpacity,n=t.animTransform,o={toValue:e,duration:250,isInteraction:!1,useNativeDriver:!this._shouldAnimateColor},r=[l.Animated.timing(i,babelHelpers.objectSpread({easing:l.Easing.linear},o)),l.Animated.spring(n,babelHelpers.objectSpread({friction:4,tension:50},o))];this._shouldAnimateColor&&r.push(l.Animated.timing(a,babelHelpers.objectSpread({easing:l.Easing.linear},o))),l.Animated.parallel(r).start()}},{key:"render",value:function(){var e=this.state,t=e.animColor,a=e.animOpacity,i=e.animTransform,n=this.props,r=n.active,p=n.activeOpacity,u=n.carouselRef,c=n.color,d=n.containerStyle,y=n.inactiveColor,m=n.inactiveStyle,b=n.inactiveOpacity,f=n.inactiveScale,v=n.index,h=n.style,g=n.tappable,C={opacity:a.interpolate({inputRange:[0,1],outputRange:[b,1]}),transform:[{scale:i.interpolate({inputRange:[0,1],outputRange:[f,1]})}]},R=this._shouldAnimateColor?{backgroundColor:t.interpolate({inputRange:[0,1],outputRange:[y,c]})}:{},T=[s.default.sliderPaginationDotContainer,d||{}],P=[s.default.sliderPaginationDot,h||{},!r&&m||{},C,R],V=g?function(){u&&u._snapToItem(u._getPositionIndex(v))}:void 0;return o.default.createElement(l.TouchableOpacity,{style:T,activeOpacity:g?p:1,onPress:V},o.default.createElement(l.Animated.View,{style:P}))}},{key:"_shouldAnimateColor",get:function(){var e=this.props,t=e.color,a=e.inactiveColor;return t&&a}}]),babelHelpers.inherits(t,e),t})(o.PureComponent);i.default=p,p.propTypes={inactiveOpacity:r.default.number.isRequired,inactiveScale:r.default.number.isRequired,active:r.default.bool,activeOpacity:r.default.number,carouselRef:r.default.object,color:r.default.string,containerStyle:l.ViewPropTypes?l.ViewPropTypes.style:l.View.propTypes.style,inactiveColor:r.default.string,inactiveStyle:l.ViewPropTypes?l.ViewPropTypes.style:l.View.propTypes.style,index:r.default.number,style:l.ViewPropTypes?l.ViewPropTypes.style:l.View.propTypes.style,tappable:r.default.bool}},679,[26,1,43,680]); +__d(function(e,t,n,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r=t(a[0]).StyleSheet.create({sliderPagination:{alignItems:'center',justifyContent:'center',paddingHorizontal:20,paddingVertical:30},sliderPaginationDotContainer:{alignItems:'center',justifyContent:'center',marginHorizontal:8},sliderPaginationDot:{width:7,height:7,borderRadius:3.5,backgroundColor:'rgba(0, 0, 0, 0.75)'}});i.default=r},680,[1]); +__d(function(e,t,i,a,r){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=babelHelpers.interopRequireWildcard(t(r[0])),s=t(r[1]),o=babelHelpers.interopRequireDefault(t(r[2])),l=babelHelpers.interopRequireDefault(t(r[3])),u=(function(e){function t(e){var i;return babelHelpers.classCallCheck(this,t),(i=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,e))).state={offset:0,width:0,height:0,status:1,animOpacity:new s.Animated.Value(0)},i._onLoad=i._onLoad.bind(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(i))),i._onError=i._onError.bind(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(i))),i._measureLayout=i._measureLayout.bind(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(i))),i}return babelHelpers.createClass(t,[{key:"setNativeProps",value:function(e){this._container.setNativeProps(e)}},{key:"componentDidMount",value:function(){var e=this;this._mounted=!0,setTimeout(function(){e._measureLayout()},0)}},{key:"componentWillUnmount",value:function(){this._mounted=!1}},{key:"_measureLayout",value:function(){var e=this;if(this._container){var t=this.props,i=t.dimensions,a=t.vertical,r=t.carouselRef,n=t.sliderWidth,o=t.sliderHeight,l=t.itemWidth,u=t.itemHeight;r&&this._container.measureLayout((0,s.findNodeHandle)(r),function(t,r,s,d,p,h){var c=a?r-(o-u)/2:t-(n-l)/2;e.setState({offset:c,width:i&&i.width?i.width:Math.ceil(s),height:i&&i.height?i.height:Math.ceil(d)})})}}},{key:"_onLoad",value:function(e){var t=this,i=this.state.animOpacity,a=this.props,r=a.fadeDuration,n=a.onLoad;this._mounted&&(this.setState({status:2}),n&&n(e),s.Animated.timing(i,{toValue:1,duration:r,easing:s.Easing.out(s.Easing.quad),isInteraction:!1,useNativeDriver:!0}).start(function(){t.setState({status:3})}))}},{key:"_onError",value:function(e){var t=this.props.onError;this.setState({status:4}),t&&t(e)}},{key:"render",value:function(){var e=this,t=this.props.containerStyle;return n.default.createElement(s.View,{ref:function(t){e._container=t},pointerEvents:'none',style:[t,l.default.container],onLayout:this._measureLayout},this.image,this.spinner)}},{key:"image",get:function(){var e=this.state,t=e.status,i=e.animOpacity,a=e.offset,r=e.width,o=e.height,u=this.props,d=u.scrollPosition,p=(u.dimensions,u.vertical),h=u.sliderWidth,c=u.sliderHeight,f=u.parallaxFactor,b=u.style,m=babelHelpers.objectWithoutProperties(u,["scrollPosition","dimensions","vertical","sliderWidth","sliderHeight","parallaxFactor","style"]),y=(p?o:r)*f,g={width:p?r:r+2*y,height:p?o+2*y:o,opacity:i,transform:d?[{translateX:p?0:d.interpolate({inputRange:[a-h,a+h],outputRange:[-y,y],extrapolate:'clamp'})},{translateY:p?d.interpolate({inputRange:[a-c,a+c],outputRange:[-y,y],extrapolate:'clamp'}):0}]:[]};return n.default.createElement(s.Animated.Image,babelHelpers.extends({},m,{style:[l.default.image,b,{position:'relative'},g],onLoad:this._onLoad,onError:3!==t?this._onError:void 0}))}},{key:"spinner",get:function(){var e=this.state.status,t=this.props,i=t.showSpinner,a=t.spinnerColor;return!(1!==e||!i)&&n.default.createElement(s.View,{style:l.default.loaderContainer},n.default.createElement(s.ActivityIndicator,{size:'small',color:a,animating:!0}))}}]),babelHelpers.inherits(t,e),t})(n.Component);a.default=u,u.propTypes=babelHelpers.objectSpread({},s.Image.propTypes,{carouselRef:o.default.object,itemHeight:o.default.number,itemWidth:o.default.number,scrollPosition:o.default.object,sliderHeight:o.default.number,sliderWidth:o.default.number,vertical:o.default.bool,containerStyle:s.ViewPropTypes?s.ViewPropTypes.style:s.View.propTypes.style,dimensions:o.default.shape({width:o.default.number,height:o.default.number}),fadeDuration:o.default.number,parallaxFactor:o.default.number,showSpinner:o.default.bool,spinnerColor:o.default.string}),u.defaultProps={containerStyle:{},fadeDuration:500,parallaxFactor:.3,showSpinner:!0,spinnerColor:'rgba(0, 0, 0, 0.4)'}},681,[26,1,43,682]); +__d(function(e,t,n,l,i){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var o=t(i[0]),r=o.StyleSheet.create({container:{overflow:'hidden',alignItems:'center',justifyContent:'center'},image:{position:'relative',resizeMode:'cover',width:null,height:null},loaderContainer:babelHelpers.objectSpread({},o.StyleSheet.absoluteFillObject,{alignItems:'center',justifyContent:'center'})});l.default=r},682,[1]); +__d(function(e,t,l,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.SLIDE_WIDTH=void 0;var i=babelHelpers.interopRequireWildcard(t(r[0])),a=t(r[1]),o=babelHelpers.interopRequireDefault(t(r[2])),s=babelHelpers.interopRequireDefault(t(r[3])),d=t(r[4]),u=t(r[5]),p=Math.round(.02*d.WINDOW_WIDTH),c=Math.round(.75*d.WINDOW_WIDTH)+2*p;n.SLIDE_WIDTH=c;var b=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props.data,t=e.icon,l=e.title,n=e.subtitle,r=e.link;return i.default.createElement(a.TouchableOpacity,babelHelpers.extends({activeOpacity:1,style:f.slideInnerContainer,onPress:function(){return a.Linking.openURL(r)}},(0,u.testProperties)('card',!0)),i.default.createElement(a.View,{style:f.slideIconContainer},i.default.createElement(s.default,{name:t,size:150,style:f.slideIcon})),i.default.createElement(a.View,{style:f.slideTextContainer},i.default.createElement(a.Text,{style:f.slideTitle,numberOfLines:2},l.toUpperCase()),i.default.createElement(a.Text,{style:f.slideSubtitle,numberOfLines:4},n)))}}]),babelHelpers.inherits(t,e),t})(i.Component);b.propTypes={data:o.default.object.isRequired};var f=a.StyleSheet.create({slideInnerContainer:{borderColor:'#ea5906',borderWidth:5,alignItems:'center',width:c,height:Math.round(.4*d.WINDOW_HEIGHT),paddingHorizontal:p,paddingTop:18},slideIconContainer:{flex:1,marginBottom:d.IS_IOS?0:-1},slideIcon:{color:'#ea5906'},slideTextContainer:{paddingTop:20,paddingBottom:20,paddingHorizontal:16},slideTitle:{fontWeight:'bold',textAlign:'center'},slideSubtitle:{marginTop:6,color:'#888888',fontSize:14,fontStyle:'italic',textAlign:'center'}}),I=b;n.default=I},683,[26,1,43,420,299,586]); +__d(function(o,p,e,d){e.exports={name:"wdioDemoApp",displayName:"wdioDemoApp"}},684,[]); +require(97); +require(0); \ No newline at end of file diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index d51c05b..2615c80 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -15,13 +15,16 @@ This will only work on a MAC so get started execute the following steps: > For more info about React Native please use Google or the [React Native docs](https://facebook.github.io/react-native/) ## Building iOS -Making a iOS build can be done by running the following command `npm run ios.build`. +Making an iOS build can be done by running the following command `npm run ios.build`. The output can be found in `ios/build/Build/Products/Debug-iphonesimulator/` ## Building Android -Making a iOS build can be done by running the following commands +Making an Android build can be done by running the following commands 1. `npm run android.clear.build` 2. `npm run android`, this will install the app and starts building the js. Wait until all JS has been compiled -3. `npm run android.build.js` -4. `npm run android.debug` +3. Kill the metro bundler +4. `npm run android.build.js` +5. `npm run android.debug` + +The output can be found in `android/app/build/outputs/apk/app-debug.apk` diff --git a/js/components/FormComponents.js b/js/components/FormComponents.js index 1dc209c..1e6c9cf 100644 --- a/js/components/FormComponents.js +++ b/js/components/FormComponents.js @@ -139,17 +139,6 @@ const styles = StyleSheet.create({ fontSize: 16, marginLeft: 20, }, - checkBoxContainer: { - borderColor: 'transparent', - backgroundColor: 'transparent', - borderBottomColor: '#ea5906', - borderBottomWidth: 1, - borderRadius: 0 - }, - checkBoxText: { - fontWeight: '100', - fontSize: 16, - }, input: { paddingLeft: 10, paddingRight: 10, diff --git a/package.json b/package.json index 7961b11..927f697 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { "name": "native-demo-app", - "version": "0.1.1", + "version": "0.2.0", "private": true, "scripts": { "build.clear.cache": "watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro* && rm -rf $TMPDIR/haste-*", "android": "react-native run-android", "android.clear.build": "npm run build.clear.cache && rm -rf android/app/build", "android": "react-native run-android", - "android.build.js": "react-native bundle --dev false --platform android --entry-file index.js --bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle --assets-dest ./android/app/build/intermediates/res/merged/debug", + "android.build.js": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res", "android.debug": "cd android && ./gradlew assembleDebug", "ios": "react-native run-ios", "ios.clear.build": "npm run build.clear.cache && rm -rf ./ios/build/Build/Products/Release-iphonesimulator",