nexustate-react
Version:
React nexustate state management
154 lines (140 loc) • 369 kB
JavaScript
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define("nexusdk", [], factory);
else if(typeof exports === 'object')
exports["nexusdk"] = factory();
else
root["nexusdk"] = factory();
})(global, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = "./src/index.js");
/******/ })
/************************************************************************/
/******/ ({
/***/ "./node_modules/fbjs/lib/emptyFunction.js":
/*!************************************************!*\
!*** ./node_modules/fbjs/lib/emptyFunction.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;\n\n//# sourceURL=webpack://nexusdk/./node_modules/fbjs/lib/emptyFunction.js?");
/***/ }),
/***/ "./node_modules/fbjs/lib/emptyObject.js":
/*!**********************************************!*\
!*** ./node_modules/fbjs/lib/emptyObject.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n\n\nvar emptyObject = {};\n\nif (true) {\n Object.freeze(emptyObject);\n}\n\nmodule.exports = emptyObject;\n\n//# sourceURL=webpack://nexusdk/./node_modules/fbjs/lib/emptyObject.js?");
/***/ }),
/***/ "./node_modules/fbjs/lib/invariant.js":
/*!********************************************!*\
!*** ./node_modules/fbjs/lib/invariant.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function validateFormat(format) {};\n\nif (true) {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\nmodule.exports = invariant;\n\n//# sourceURL=webpack://nexusdk/./node_modules/fbjs/lib/invariant.js?");
/***/ }),
/***/ "./node_modules/fbjs/lib/warning.js":
/*!******************************************!*\
!*** ./node_modules/fbjs/lib/warning.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n\n\nvar emptyFunction = __webpack_require__(/*! ./emptyFunction */ \"./node_modules/fbjs/lib/emptyFunction.js\");\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = emptyFunction;\n\nif (true) {\n var printWarning = function printWarning(format) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n warning = function warning(condition, format) {\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (format.indexOf('Failed Composite propType: ') === 0) {\n return; // Ignore CompositeComponent proptype check.\n }\n\n if (!condition) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(undefined, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;\n\n//# sourceURL=webpack://nexusdk/./node_modules/fbjs/lib/warning.js?");
/***/ }),
/***/ "./node_modules/nexustate/dist/src/index.js":
/*!**************************************************!*\
!*** ./node_modules/nexustate/dist/src/index.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("(function webpackUniversalModuleDefinition(root, factory) {\n\tif(true)\n\t\tmodule.exports = factory();\n\telse {}\n})(global, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// define __esModule on exports\n/******/ \t__webpack_require__.r = function(exports) {\n/******/ \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t}\n/******/ \t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t};\n/******/\n/******/ \t// create a fake namespace object\n/******/ \t// mode & 1: value is a module id, require it\n/******/ \t// mode & 2: merge all properties of value into the ns\n/******/ \t// mode & 4: return value when already ns object\n/******/ \t// mode & 8|1: behave like require\n/******/ \t__webpack_require__.t = function(value, mode) {\n/******/ \t\tif(mode & 1) value = __webpack_require__(value);\n/******/ \t\tif(mode & 8) return value;\n/******/ \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n/******/ \t\tvar ns = Object.create(null);\n/******/ \t\t__webpack_require__.r(ns);\n/******/ \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n/******/ \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n/******/ \t\treturn ns;\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = \"./src/index.js\");\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ \"./node_modules/bluebird/js/release/any.js\":\n/*!*************************************************!*\\\n !*** ./node_modules/bluebird/js/release/any.js ***!\n \\*************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\neval(\"\\nmodule.exports = function(Promise) {\\nvar SomePromiseArray = Promise._SomePromiseArray;\\nfunction any(promises) {\\n var ret = new SomePromiseArray(promises);\\n var promise = ret.promise();\\n ret.setHowMany(1);\\n ret.setUnwrap();\\n ret.init();\\n return promise;\\n}\\n\\nPromise.any = function (promises) {\\n return any(promises);\\n};\\n\\nPromise.prototype.any = function () {\\n return any(this);\\n};\\n\\n};\\n\\n\\n//# sourceURL=webpack://nexusdk/./node_modules/bluebird/js/release/any.js?\");\n\n/***/ }),\n\n/***/ \"./node_modules/bluebird/js/release/async.js\":\n/*!***************************************************!*\\\n !*** ./node_modules/bluebird/js/release/async.js ***!\n \\***************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\neval(\"\\nvar firstLineError;\\ntry {throw new Error(); } catch (e) {firstLineError = e;}\\nvar schedule = __webpack_require__(/*! ./schedule */ \\\"./node_modules/bluebird/js/release/schedule.js\\\");\\nvar Queue = __webpack_require__(/*! ./queue */ \\\"./node_modules/bluebird/js/release/queue.js\\\");\\nvar util = __webpack_require__(/*! ./util */ \\\"./node_modules/bluebird/js/release/util.js\\\");\\n\\nfunction Async() {\\n this._customScheduler = false;\\n this._isTickUsed = false;\\n this._lateQueue = new Queue(16);\\n this._normalQueue = new Queue(16);\\n this._haveDrainedQueues = false;\\n this._trampolineEnabled = true;\\n var self = this;\\n this.drainQueues = function () {\\n self._drainQueues();\\n };\\n this._schedule = schedule;\\n}\\n\\nAsync.prototype.setScheduler = function(fn) {\\n var prev = this._schedule;\\n this._schedule = fn;\\n this._customScheduler = true;\\n return prev;\\n};\\n\\nAsync.prototype.hasCustomScheduler = function() {\\n return this._customScheduler;\\n};\\n\\nAsync.prototype.enableTrampoline = function() {\\n this._trampolineEnabled = true;\\n};\\n\\nAsync.prototype.disableTrampolineIfNecessary = function() {\\n if (util.hasDevTools) {\\n this._trampolineEnabled = false;\\n }\\n};\\n\\nAsync.prototype.haveItemsQueued = function () {\\n return this._isTickUsed || this._haveDrainedQueues;\\n};\\n\\n\\nAsync.prototype.fatalError = function(e, isNode) {\\n if (isNode) {\\n process.stderr.write(\\\"Fatal \\\" + (e instanceof Error ? e.stack : e) +\\n \\\"\\\\n\\\");\\n process.exit(2);\\n } else {\\n this.throwLater(e);\\n }\\n};\\n\\nAsync.prototype.throwLater = function(fn, arg) {\\n if (arguments.length === 1) {\\n arg = fn;\\n fn = function () { throw arg; };\\n }\\n if (typeof setTimeout !== \\\"undefined\\\") {\\n setTimeout(function() {\\n fn(arg);\\n }, 0);\\n } else try {\\n this._schedule(function() {\\n fn(arg);\\n });\\n } catch (e) {\\n throw new Error(\\\"No async scheduler available\\\\u000a\\\\u000a See http://goo.gl/MqrFmX\\\\u000a\\\");\\n }\\n};\\n\\nfunction AsyncInvokeLater(fn, receiver, arg) {\\n this._lateQueue.push(fn, receiver, arg);\\n this._queueTick();\\n}\\n\\nfunction AsyncInvoke(fn, receiver, arg) {\\n this._normalQueue.push(fn, receiver, arg);\\n this._queueTick();\\n}\\n\\nfunction AsyncSettlePromises(promise) {\\n this._normalQueue._pushOne(promise);\\n this._queueTick();\\n}\\n\\nif (!util.hasDevTools) {\\n Async.prototype.invokeLater = AsyncInvokeLater;\\n Async.prototype.invoke = AsyncInvoke;\\n Async.prototype.settlePromises = AsyncSettlePromises;\\n} else {\\n Async.prototype.invokeLater = function (fn, receiver, arg) {\\n if (this._trampolineEnabled) {\\n AsyncInvokeLater.call(this, fn, receiver, arg);\\n } else {\\n this._schedule(function() {\\n setTimeout(function() {\\n fn.call(receiver, arg);\\n }, 100);\\n });\\n }\\n };\\n\\n Async.prototype.invoke = function (fn, receiver, arg) {\\n if (this._trampolineEnabled) {\\n AsyncInvoke.call(this, fn, receiver, arg);\\n } else {\\n this._schedule(function() {\\n fn.call(receiver, arg);\\n });\\n }\\n };\\n\\n Async.prototype.settlePromises = function(promise) {\\n if (this._trampolineEnabled) {\\n AsyncSettlePromises.call(this, promise);\\n } else {\\n this._schedule(function() {\\n promise._settlePromises();\\n });\\n }\\n };\\n}\\n\\nAsync.prototype._drainQueue = function(queue) {\\n while (queue.length() > 0) {\\n var fn = queue.shift();\\n if (typeof fn !== \\\"function\\\") {\\n fn._settlePromises();\\n continue;\\n }\\n var receiver = queue.shift();\\n var arg = queue.shift();\\n fn.call(receiver, arg);\\n }\\n};\\n\\nAsync.prototype._drainQueues = function () {\\n this._drainQueue(this._normalQueue);\\n this._reset();\\n this._haveDrainedQueues = true;\\n this._drainQueue(this._lateQueue);\\n};\\n\\nAsync.prototype._queueTick = function () {\\n if (!this._isTickUsed) {\\n this._isTickUsed = true;\\n this._schedule(this.drainQueues);\\n }\\n};\\n\\nAsync.prototype._reset = function () {\\n this._isTickUsed = false;\\n};\\n\\nmodule.exports = Async;\\nmodule.exports.firstLineError = firstLineError;\\n\\n\\n//# sourceURL=webpack://nexusdk/./node_modules/bluebird/js/release/async.js?\");\n\n/***/ }),\n\n/***/ \"./node_modules/bluebird/js/release/bind.js\":\n/*!**************************************************!*\\\n !*** ./node_modules/bluebird/js/release/bind.js ***!\n \\**************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\neval(\"\\nmodule.exports = function(Promise, INTERNAL, tryConvertToPromise, debug) {\\nvar calledBind = false;\\nvar rejectThis = function(_, e) {\\n this._reject(e);\\n};\\n\\nvar targetRejected = function(e, context) {\\n context.promiseRejectionQueued = true;\\n context.bindingPromise._then(rejectThis, rejectThis, null, this, e);\\n};\\n\\nvar bindingResolved = function(thisArg, context) {\\n if (((this._bitField & 50397184) === 0)) {\\n this._resolveCallback(context.target);\\n }\\n};\\n\\nvar bindingRejected = function(e, context) {\\n if (!context.promiseRejectionQueued) this._reject(e);\\n};\\n\\nPromise.prototype.bind = function (thisArg) {\\n if (!calledBind) {\\n calledBind = true;\\n Promise.prototype._propagateFrom = debug.propagateFromFunction();\\n Promise.prototype._boundValue = debug.boundValueFunction();\\n }\\n var maybePromise = tryConvertToPromise(thisArg);\\n var ret = new Promise(INTERNAL);\\n ret._propagateFrom(this, 1);\\n var target = this._target();\\n ret._setBoundTo(maybePromise);\\n if (maybePromise instanceof Promise) {\\n var context = {\\n promiseRejectionQueued: false,\\n promise: ret,\\n target: target,\\n bindingPromise: maybePromise\\n };\\n target._then(INTERNAL, targetRejected, undefined, ret, context);\\n maybePromise._then(\\n bindingResolved, bindingRejected, undefined, ret, context);\\n ret._setOnCancel(maybePromise);\\n } else {\\n ret._resolveCallback(target);\\n }\\n return ret;\\n};\\n\\nPromise.prototype._setBoundTo = function (obj) {\\n if (obj !== undefined) {\\n this._bitField = this._bitField | 2097152;\\n this._boundTo = obj;\\n } else {\\n this._bitField = this._bitField & (~2097152);\\n }\\n};\\n\\nPromise.prototype._isBound = function () {\\n return (this._bitField & 2097152) === 2097152;\\n};\\n\\nPromise.bind = function (thisArg, value) {\\n return Promise.resolve(value).bind(thisArg);\\n};\\n};\\n\\n\\n//# sourceURL=webpack://nexusdk/./node_modules/bluebird/js/release/bind.js?\");\n\n/***/ }),\n\n/***/ \"./node_modules/bluebird/js/release/bluebird.js\":\n/*!******************************************************!*\\\n !*** ./node_modules/bluebird/js/release/bluebird.js ***!\n \\******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\neval(\"\\nvar old;\\nif (typeof Promise !== \\\"undefined\\\") old = Promise;\\nfunction noConflict() {\\n try { if (Promise === bluebird) Promise = old; }\\n catch (e) {}\\n return bluebird;\\n}\\nvar bluebird = __webpack_require__(/*! ./promise */ \\\"./node_modules/bluebird/js/release/promise.js\\\")();\\nbluebird.noConflict = noConflict;\\nmodule.exports = bluebird;\\n\\n\\n//# sourceURL=webpack://nexusdk/./node_modules/bluebird/js/release/bluebird.js?\");\n\n/***/ }),\n\n/***/ \"./node_modules/bluebird/js/release/call_get.js\":\n/*!******************************************************!*\\\n !*** ./node_modules/bluebird/js/release/call_get.js ***!\n \\******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\neval(\"\\nvar cr = Object.create;\\nif (cr) {\\n var callerCache = cr(null);\\n var getterCache = cr(null);\\n callerCache[\\\" size\\\"] = getterCache[\\\" size\\\"] = 0;\\n}\\n\\nmodule.exports = function(Promise) {\\nvar util = __webpack_require__(/*! ./util */ \\\"./node_modules/bluebird/js/release/util.js\\\");\\nvar canEvaluate = util.canEvaluate;\\nvar isIdentifier = util.isIdentifier;\\n\\nvar getMethodCaller;\\nvar getGetter;\\nif (true) {\\nvar makeMethodCaller = function (methodName) {\\n return new Function(\\\"ensureMethod\\\", \\\" \\\\n\\\\\\n return function(obj) { \\\\n\\\\\\n 'use strict' \\\\n\\\\\\n var len = this.length; \\\\n\\\\\\n ensureMethod(obj, 'methodName'); \\\\n\\\\\\n switch(len) { \\\\n\\\\\\n case 1: return obj.methodName(this[0]); \\\\n\\\\\\n case 2: return obj.methodName(this[0], this[1]); \\\\n\\\\\\n case 3: return obj.methodName(this[0], this[1], this[2]); \\\\n\\\\\\n case 0: return obj.methodName(); \\\\n\\\\\\n default: \\\\n\\\\\\n return obj.methodName.apply(obj, this); \\\\n\\\\\\n } \\\\n\\\\\\n }; \\\\n\\\\\\n \\\".replace(/methodName/g, methodName))(ensureMethod);\\n};\\n\\nvar makeGetter = function (propertyName) {\\n return new Function(\\\"obj\\\", \\\" \\\\n\\\\\\n 'use strict'; \\\\n\\\\\\n return obj.propertyName; \\\\n\\\\\\n \\\".replace(\\\"propertyName\\\", propertyName));\\n};\\n\\nvar getCompiled = function(name, compiler, cache) {\\n var ret = cache[name];\\n if (typeof ret !== \\\"function\\\") {\\n if (!isIdentifier(name)) {\\n return null;\\n }\\n ret = compiler(name);\\n cache[name] = ret;\\n cache[\\\" size\\\"]++;\\n if (cache[\\\" size\\\"] > 512) {\\n var keys = Object.keys(cache);\\n for (var i = 0; i < 256; ++i) delete cache[keys[i]];\\n cache[\\\" size\\\"] = keys.length - 256;\\n }\\n }\\n return ret;\\n};\\n\\ngetMethodCaller = function(name) {\\n return getCompiled(name, makeMethodCaller, callerCache);\\n};\\n\\ngetGetter = function(name) {\\n return getCompiled(name, makeGetter, getterCache);\\n};\\n}\\n\\nfunction ensureMethod(obj, methodName) {\\n var fn;\\n if (obj != null) fn = obj[methodName];\\n if (typeof fn !== \\\"function\\\") {\\n var message = \\\"Object \\\" + util.classString(obj) + \\\" has no method '\\\" +\\n util.toString(methodName) + \\\"'\\\";\\n throw new Promise.TypeError(message);\\n }\\n return fn;\\n}\\n\\nfunction caller(obj) {\\n var methodName = this.pop();\\n var fn = ensureMethod(obj, methodName);\\n return fn.apply(obj, this);\\n}\\nPromise.prototype.call = function (methodName) {\\n var $_len = arguments.length;var args = new Array(Math.max($_len - 1, 0)); for(var $_i = 1; $_i < $_len; ++$_i) {args[$_i - 1] = arguments[$_i];};\\n if (true) {\\n if (canEvaluate) {\\n var maybeCaller = getMethodCaller(methodName);\\n if (maybeCaller !== null) {\\n return this._then(\\n maybeCaller, undefined, undefined, args, undefined);\\n }\\n }\\n }\\n args.push(methodName);\\n return this._then(caller, undefined, undefined, args, undefined);\\n};\\n\\nfunction namedGetter(obj) {\\n return obj[this];\\n}\\nfunction indexedGetter(obj) {\\n var index = +this;\\n if (index < 0) index = Math.max(0, index + obj.length);\\n return obj[index];\\n}\\nPromise.prototype.get = function (propertyName) {\\n var isIndex = (typeof propertyName === \\\"number\\\");\\n var getter;\\n if (!isIndex) {\\n if (canEvaluate) {\\n var maybeGetter = getGetter(propertyName);\\n getter = maybeGetter !== null ? maybeGetter : namedGetter;\\n } else {\\n getter = namedGetter;\\n }\\n } else {\\n getter = indexedGetter;\\n }\\n return this._then(getter, undefined, undefined, propertyName, undefined);\\n};\\n};\\n\\n\\n//# sourceURL=webpack://nexusdk/./node_modules/bluebird/js/release/call_get.js?\");\n\n/***/ }),\n\n/***/ \"./node_modules/bluebird/js/release/cancel.js\":\n/*!****************************************************!*\\\n !*** ./node_modules/bluebird/js/release/cancel.js ***!\n \\****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\neval(\"\\nmodule.exports = function(Promise, PromiseArray, apiRejection, debug) {\\nvar util = __webpack_require__(/*! ./util */ \\\"./node_modules/bluebird/js/release/util.js\\\");\\nvar tryCatch = util.tryCatch;\\nvar errorObj = util.errorObj;\\nvar async = Promise._async;\\n\\nPromise.prototype[\\\"break\\\"] = Promise.prototype.cancel = function() {\\n if (!debug.cancellation()) return this._warn(\\\"cancellation is disabled\\\");\\n\\n var promise = this;\\n var child = promise;\\n while (promise._isCancellable()) {\\n if (!promise._cancelBy(child)) {\\n if (child._isFollowing()) {\\n child._followee().cancel();\\n } else {\\n child._cancelBranched();\\n }\\n break;\\n }\\n\\n var parent = promise._cancellationParent;\\n if (parent == null || !parent._isCancellable()) {\\n if (promise._isFollowing()) {\\n promise._followee().cancel();\\n } else {\\n promise._cancelBranched();\\n }\\n break;\\n } else {\\n if (promise._isFollowing()) promise._followee().cancel();\\n promise._setWillBeCancelled();\\n child = promise;\\n promise = parent;\\n }\\n }\\n};\\n\\nPromise.prototype._branchHasCancelled = function() {\\n this._branchesRemainingToCancel--;\\n};\\n\\nPromise.prototype._enoughBranchesHaveCancelled = function() {\\n return this._branchesRemainingToCancel === undefined ||\\n this._branchesRemainingToCancel <= 0;\\n};\\n\\nPromise.prototype._cancelBy = function(canceller) {\\n if (canceller === this) {\\n this._branchesRemainingToCancel = 0;\\n this._invokeOnCancel();\\n return true;\\n } else {\\n this._branchHasCancelled();\\n if (this._enoughBranchesHaveCancelled()) {\\n this._invokeOnCancel();\\n return true;\\n }\\n }\\n return false;\\n};\\n\\nPromise.prototype._cancelBranched = function() {\\n if (this._enoughBranchesHaveCancelled()) {\\n this._cancel();\\n }\\n};\\n\\nPromise.prototype._cancel = function() {\\n if (!this._isCancellable()) return;\\n this._setCancelled();\\n async.invoke(this._cancelPromises, this, undefined);\\n};\\n\\nPromise.prototype._cancelPromises = function() {\\n if (this._length() > 0) this._settlePromises();\\n};\\n\\nPromise.prototype._unsetOnCancel = function() {\\n this._onCancelField = undefined;\\n};\\n\\nPromise.prototype._isCancellable = function() {\\n return this.isPending() && !this._isCancelled();\\n};\\n\\nPromise.prototype.isCancellable = function() {\\n return this.isPending() && !this.isCancelled();\\n};\\n\\nPromise.prototype._doInvokeOnCancel = function(onCancelCallback, internalOnly) {\\n if (util.isArray(onCancelCallback)) {\\n for (var i = 0; i < onCancelCallback.length; ++i) {\\n this._doInvokeOnCancel(onCancelCallback[i], internalOnly);\\n }\\n } else if (onCancelCallback !== undefined) {\\n if (typeof onCancelCallback === \\\"function\\\") {\\n if (!internalOnly) {\\n var e = tryCatch(onCancelCallback).call(this._boundValue());\\n if (e === errorObj) {\\n this._attachExtraTrace(e.e);\\n async.throwLater(e.e);\\n }\\n }\\n } else {\\n onCancelCallback._resultCancelled(this);\\n }\\n }\\n};\\n\\nPromise.prototype._invokeOnCancel = function() {\\n var onCancelCallback = this._onCancel();\\n this._unsetOnCancel();\\n async.invoke(this._doInvokeOnCancel, this, onCancelCallback);\\n};\\n\\nPromise.prototype._invokeInternalOnCancel = function() {\\n if (this._isCancellable()) {\\n this._doInvokeOnCancel(this._onCancel(), true);\\n this._unsetOnCancel();\\n }\\n};\\n\\nPromise.prototype._resultCancelled = function() {\\n this.cancel();\\n};\\n\\n};\\n\\n\\n//# sourceURL=webpack://nexusdk/./node_modules/bluebird/js/release/cancel.js?\");\n\n/***/ }),\n\n/***/ \"./node_modules/bluebird/js/release/catch_filter.js\":\n/*!**********************************************************!*\\\n !*** ./node_modules/bluebird/js/release/catch_filter.js ***!\n \\**********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\neval(\"\\nmodule.exports = function(NEXT_FILTER) {\\nvar util = __webpack_require__(/*! ./util */ \\\"./node_modules/bluebird/js/release/util.js\\\");\\nvar getKeys = __webpack_require__(/*! ./es5 */ \\\"./node_modules/bluebird/js/release/es5.js\\\").keys;\\nvar tryCatch = util.tryCatch;\\nvar errorObj = util.errorObj;\\n\\nfunction catchFilter(instances, cb, promise) {\\n return function(e) {\\n var boundTo = promise._boundValue();\\n predicateLoop: for (var i = 0; i < instances.length; ++i) {\\n var item = instances[i];\\n\\n if (item === Error ||\\n (item != null && item.prototype instanceof Error)) {\\n if (e instanceof item) {\\n return tryCatch(cb).call(boundTo, e);\\n }\\n } else if (typeof item === \\\"function\\\") {\\n var matchesPredicate = tryCatch(item).call(boundTo, e);\\n if (matchesPredicate === errorObj) {\\n return matchesPredicate;\\n } else if (matchesPredicate) {\\n return tryCatch(cb).call(boundTo, e);\\n }\\n } else if (util.isObject(e)) {\\n var keys = getKeys(item);\\n for (var j = 0; j < keys.length; ++j) {\\n var key = keys[j];\\n if (item[key] != e[key]) {\\n continue predicateLoop;\\n }\\n }\\n return tryCatch(cb).call(boundTo, e);\\n }\\n }\\n return NEXT_FILTER;\\n };\\n}\\n\\nreturn catchFilter;\\n};\\n\\n\\n//# sourceURL=webpack://nexusdk/./node_modules/bluebird/js/release/catch_filter.js?\");\n\n/***/ }),\n\n/***/ \"./node_modules/bluebird/js/release/context.js\":\n/*!*****************************************************!*\\\n !*** ./node_modules/bluebird/js/release/context.js ***!\n \\*****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\neval(\"\\nmodule.exports = function(Promise) {\\nvar longStackTraces = false;\\nvar contextStack = [];\\n\\nPromise.prototype._promiseCreated = function() {};\\nPromise.prototype._pushContext = function() {};\\nPromise.prototype._popContext = function() {return null;};\\nPromise._peekContext = Promise.prototype._peekContext = function() {};\\n\\nfunction Context() {\\n this._trace = new Context.CapturedTrace(peekContext());\\n}\\nContext.prototype._pushContext = function () {\\n if (this._trace !== undefined) {\\n this._trace._promiseCreated = null;\\n contextStack.push(this._trace);\\n }\\n};\\n\\nContext.prototype._popContext = function () {\\n if (this._trace !== undefined) {\\n var trace = contextStack.pop();\\n var ret = trace._promiseCreated;\\n trace._promiseCreated = null;\\n return ret;\\n }\\n return null;\\n};\\n\\nfunction createContext() {\\n if (longStackTraces) return new Context();\\n}\\n\\nfunction peekContext() {\\n var lastIndex = contextStack.length - 1;\\n if (lastIndex >= 0) {\\n return contextStack[lastIndex];\\n }\\n return undefined;\\n}\\nContext.CapturedTrace = null;\\nContext.create = createContext;\\nContext.deactivateLongStackTraces = function() {};\\nContext.activateLongStackTraces = function() {\\n var Promise_pushContext = Promise.prototype._pushContext;\\n var Promise_popContext = Promise.prototype._popContext;\\n var Promise_PeekContext = Promise._peekContext;\\n var Promise_peekContext = Promise.prototype._peekContext;\\n var Promise_promiseCreated = Promise.prototype._promiseCreated;\\n Context.deactivateLongStackTraces = function() {\\n Promise.prototype._pushContext = Promise_pushContext;\\n Promise.prototype._popContext = Promise_popContext;\\n Promise._peekContext = Promise_PeekContext;\\n Promise.prototype._peekContext = Promise_peekContext;\\n Promise.prototype._promiseCreated = Promise_promiseCreated;\\n longStackTraces = false;\\n };\\n longStackTraces = true;\\n Promise.prototype._pushContext = Context.prototype._pushContext;\\n Promise.prototype._popContext = Context.prototype._popContext;\\n Promise._peekContext = Promise.prototype._peekContext = peekContext;\\n Promise.prototype._promiseCreated = function() {\\n var ctx = this._peekContext();\\n if (ctx && ctx._promiseCreated == null) ctx._promiseCreated = this;\\n };\\n};\\nreturn Context;\\n};\\n\\n\\n//# sourceURL=webpack://nexusdk/./node_modules/bluebird/js/release/context.js?\");\n\n/***/ }),\n\n/***/ \"./node_modules/bluebird/js/release/debuggability.js\":\n/*!***********************************************************!*\\\n !*** ./node_modules/bluebird/js/release/debuggability.js ***!\n \\***********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\neval(\"\\nmodule.exports = function(Promise, Context) {\\nvar getDomain = Promise._getDomain;\\nvar async = Promise._async;\\nvar Warning = __webpack_require__(/*! ./errors */ \\\"./node_modules/bluebird/js/release/errors.js\\\").Warning;\\nvar util = __webpack_require__(/*! ./util */ \\\"./node_modules/bluebird/js/release/util.js\\\");\\nvar canAttachTrace = util.canAttachTrace;\\nvar unhandledRejectionHandled;\\nvar possiblyUnhandledRejection;\\nvar bluebirdFramePattern =\\n /[\\\\\\\\\\\\/]bluebird[\\\\\\\\\\\\/]js[\\\\\\\\\\\\/](release|debug|instrumented)/;\\nvar nodeFramePattern = /\\\\((?:timers\\\\.js):\\\\d+:\\\\d+\\\\)/;\\nvar parseLinePattern = /[\\\\/<\\\\(](.+?):(\\\\d+):(\\\\d+)\\\\)?\\\\s*$/;\\nvar stackFramePattern = null;\\nvar formatStack = null;\\nvar indentStackFrames = false;\\nvar printWarning;\\nvar debugging = !!(util.env(\\\"BLUEBIRD_DEBUG\\\") != 0 &&\\n (false ||\\n util.env(\\\"BLUEBIRD_DEBUG\\\") ||\\n util.env(\\\"NODE_ENV\\\") === \\\"development\\\"));\\n\\nvar warnings = !!(util.env(\\\"BLUEBIRD_WARNINGS\\\") != 0 &&\\n (debugging || util.env(\\\"BLUEBIRD_WARNINGS\\\")));\\n\\nvar longStackTraces = !!(util.env(\\\"BLUEBIRD_LONG_STACK_TRACES\\\") != 0 &&\\n (debugging || util.env(\\\"BLUEBIRD_LONG_STACK_TRACES\\\")));\\n\\nvar wForgottenReturn = util.env(\\\"BLUEBIRD_W_FORGOTTEN_RETURN\\\") != 0 &&\\n (warnings || !!util.env(\\\"BLUEBIRD_W_FORGOTTEN_RETURN\\\"));\\n\\nPromise.prototype.suppressUnhandledRejections = function() {\\n var target = this._target();\\n target._bitField = ((target._bitField & (~1048576)) |\\n 524288);\\n};\\n\\nPromise.prototype._ensurePossibleRejectionHandled = function () {\\n if ((this._bitField & 524288) !== 0) return;\\n this._setRejectionIsUnhandled();\\n var self = this;\\n setTimeout(function() {\\n self._notifyUnhandledRejection();\\n }, 1);\\n};\\n\\nPromise.prototype._notifyUnhandledRejectionIsHandled = function () {\\n fireRejectionEvent(\\\"rejectionHandled\\\",\\n unhandledRejectionHandled, undefined, this);\\n};\\n\\nPromise.prototype._setReturnedNonUndefined = function() {\\n this._bitField = this._bitField | 268435456;\\n};\\n\\nPromise.prototype._returnedNonUndefined = function() {\\n return (this._bitField & 268435456) !== 0;\\n};\\n\\nPromise.prototype._notifyUnhandledRejection = function () {\\n if (this._isRejectionUnhandled()) {\\n var reason = this._settledValue();\\n this._setUnhandledRejectionIsNotified();\\n fireRejectionEvent(\\\"unhandledRejection\\\",\\n possiblyUnhandledRejection, reason, this);\\n }\\n};\\n\\nPromise.prototype._setUnhandledRejectionIsNotified = function () {\\n this._bitField = this._bitField | 262144;\\n};\\n\\nPromise.prototype._unsetUnhandledRejectionIsNotified = function () {\\n this._bitField = this._bitField & (~262144);\\n};\\n\\nPromise.prototype._isUnhandledRejectionNotified = function () {\\n return (this._bitField & 262144) > 0;\\n};\\n\\nPromise.prototype._setRejectionIsUnhandled = function () {\\n this._bitField = this._bitField | 1048576;\\n};\\n\\nPromise.prototype._unsetRejectionIsUnhandled = function () {\\n this._bitField = this._bitField & (~1048576);\\n if (this._isUnhandledRejectionNotified()) {\\n this._unsetUnhandledRejectionIsNotified();\\n this._notifyUnhandledRejectionIsHandled();\\n }\\n};\\n\\nPromise.prototype._isRejectionUnhandled = function () {\\n return (this._bitField & 1048576) > 0;\\n};\\n\\nPromise.prototype._warn = function(message, shouldUseOwnTrace, promise) {\\n return warn(message, shouldUseOwnTrace, promise || this);\\n};\\n\\nPromise.onPossiblyUnhandledRejection = function (fn) {\\n var domain = getDomain();\\n possiblyUnhandledRejection =\\n typeof fn === \\\"function\\\" ? (domain === null ?\\n fn : util.domainBind(domain, fn))\\n : undefined;\\n};\\n\\nPromise.onUnhandledRejectionHandled = function (fn) {\\n var domain = getDomain();\\n unhandledRejectionHandled =\\n typeof fn === \\\"function\\\" ? (domain === null ?\\n fn : util.domainBind(domain, fn))\\n : undefined;\\n};\\n\\nvar disableLongStackTraces = function() {};\\nPromise.longStackTraces = function () {\\n if (async.haveItemsQueued() && !config.longStackTraces) {\\n throw new Error(\\\"cannot enable long stack traces after promises have been created\\\\u000a\\\\u000a See http://goo.gl/MqrFmX\\\\u000a\\\");\\n }\\n if (!config.longStackTraces && longStackTracesIsSupported()) {\\n var Promise_captureStackTrace = Promise.prototype._captureStackTrace;\\n var Promise_attachExtraTrace = Promise.prototype._attachExtraTrace;\\n config.longStackTraces = true;\\n disableLongStackTraces = function() {\\n if (async.haveItemsQueued() && !config.longStackTraces) {\\n throw new Error(\\\"cannot enable long stack traces after promises have been created\\\\u000a\\\\u000a See http://goo.gl/MqrFmX\\\\u000a\\\");\\n }\\n Promise.prototype._captureStackTrace = Promise_captureStackTrace;\\n Promise.prototype._attachExtraTrace = Promise_attachExtraTrace;\\n Context.deactivateLongStackTraces();\\n async.enableTrampoline();\\n config.longStackTraces = false;\\n };\\n Promise.prototype._captureStackTrace = longStackTracesCaptureStackTrace;\\n Promise.prototype._attachExtraTrace = longStackTracesAttachExtraTrace;\\n Context.activateLongStackTraces();\\n async.disableTrampolineIfNecessary();\\n }\\n};\\n\\nPromise.hasLongStackTraces = function () {\\n return config.longStackTraces && longStackTracesIsSupported();\\n};\\n\\nvar fireDomEvent = (function() {\\n try {\\n if (typeof CustomEvent === \\\"function\\\") {\\n var event = new CustomEvent(\\\"CustomEvent\\\");\\n util.global.dispatchEvent(event);\\n return function(name, event) {\\n var domEvent = new CustomEvent(name.toLowerCase(), {\\n detail: event,\\n cancelable: true\\n });\\n return !util.global.dispatchEvent(domEvent);\\n };\\n } else if (typeof Event === \\\"function\\\") {\\n var event = new Event(\\\"CustomEvent\\\");\\n util.global.dispatchEvent(event);\\n return function(name, event) {\\n var domEvent = new Event(name.toLowerCase(), {\\n cancelable: true\\n });\\n domEvent.detail = event;\\n return !util.global.dispatchEvent(domEvent);\\n };\\n } else {\\n var event = document.createEvent(\\\"CustomEvent\\\");\\n event.initCustomEvent(\\\"testingtheevent\\\", false, true, {});\\n util.global.dispatchEvent(event);\\n return function(name, event) {\\n var domEvent = document.createEvent(\\\"CustomEvent\\\");\\n domEvent.initCustomEvent(name.toLowerCase(), false, true,\\n event);\\n return !util.global.dispatchEvent(domEvent);\\n };\\n }\\n } catch (e) {}\\n return function() {\\n return false;\\n };\\n})();\\n\\nvar fireGlobalEvent = (function() {\\n if (util.isNode) {\\n return function() {\\n return process.emit.apply(process, arguments);\\n };\\n } else {\\n if (!util.global) {\\n return function() {\\n return false;\\n };\\n }\\n return function(name) {\\n var methodName = \\\"on\\\" + name.toLowerCase();\\n var method = util.global[methodName];\\n if (!method) return false;\\n method.apply(util.global, [].slice.call(arguments, 1));\\n return true;\\n };\\n }\\n})();\\n\\nfunction generatePromiseLifecycleEventObject(name, promise) {\\n return {promise: promise};\\n}\\n\\nvar eventToObjectGenerator = {\\n promiseCreated: generatePromiseLifecycleEventObject,\\n promiseFulfilled: generatePromiseLifecycleEventObject,\\n promiseRejected: generatePromiseLifecycleEventObject,\\n promiseResolved: generatePromiseLifecycleEventObject,\\n promiseCancelled: generatePromiseLifecycleEventObject,\\n promiseChained: function(name, promise, child) {\\n return {promise: promise, child: child};\\n },\\n warning: function(name, warning) {\\n return {warning: warning};\\n },\\n unhandledRejection: function (name, reason, promise) {\\n return {reason: reason, promise: promise};\\n },\\n rejectionHandled: generatePromiseLifecycleEventObject\\n};\\n\\nvar activeFireEvent = function (name) {\\n var globalEventFired = false;\\n try {\\n globalEventFired = fireGlobalEvent.apply(null, arguments);\\n } catch (e) {\\n async.throwLater(e);\\n globalEventFired = true;\\n }\\n\\n var domEventFired = false;\\n try {\\n domEventFired = fireDomEvent(name,\\n eventToObjectGenerator[name].apply(null, arguments));\\n } catch (e) {\\n async.throwLater(e);\\n domEventFired = true;\\n }\\n\\n return domEventFired || globalEventFired;\\n};\\n\\nPromise.config = function(opts) {\\n opts = Object(opts);\\n if (\\\"longStackTraces\\\" in opts) {\\n if (opts.longStackTraces) {\\n Promise.longStackTraces();\\n } else if (!opts.longStackTraces && Promise.hasLongStackTraces()) {\\n disableLongStackTraces();\\n }\\n }\\n if (\\\"warnings\\\" in opts) {\\n var warningsOption = opts.warnings;\\n config.warnings = !!warningsOption;\\n wForgottenReturn = config.warnings;\\n\\n if (util.isObject(warningsOption)) {\\n if (\\\"wForgottenReturn\\\" in warningsOption) {\\n wForgottenReturn = !!warningsOption.wForgottenReturn;\\n }\\n }\\n }\\n if (\\\"cancellation\\\" in opts && opts.cancellation && !config.cancellation) {\\n if (async.haveItemsQueued()) {\\n throw new Error(\\n \\\"cannot enable cancellation after promises are in use\\\");\\n }\\n Promise.prototype._clearCancellationData =\\n