UNPKG

@warp-works/warpjs-map-plugin

Version:
30 lines 1.29 MB
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=316)}([function(e,t,n){"use strict";(function(t){"production"===t.env.NODE_ENV?e.exports=n(722):e.exports=n(721)}).call(t,n(7))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){e.prototype=(0,a.default)(t.prototype),e.prototype.constructor=e,(0,l.default)(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(338),a=r(i),u=n(342),l=r(u)},function(e,t,n){"use strict";function r(){return t.default=r=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(178),i=function(e){return e&&e.__esModule?e:{default:e}}(o)},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=(0,i.default)(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(339),i=function(e){return e&&e.__esModule?e:{default:e}}(o)},function(e,t,n){"use strict";(function(t){if("production"!==t.env.NODE_ENV){var r=n(69);e.exports=n(622)(r.isElement,!0)}else e.exports=n(621)()}).call(t,n(7))},function(e,t,n){"use strict";var r,o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(){function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=void 0===n?"undefined":i(n);if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var o=a.apply(null,n);o&&e.push(o)}}else if("object"===r)if(n.toString===Object.prototype.toString)for(var l in n)u.call(n,l)&&n[l]&&e.push(l);else e.push(n.toString())}}return e.join(" ")}var u={}.hasOwnProperty;void 0!==e&&e.exports?(a.default=a,e.exports=a):"object"===i(n(54))&&n(54)?(r=[],void 0!==(o=function(){return a}.apply(t,r))&&(e.exports=o)):window.classNames=a}()},function(e,t,n){"use strict";(function(e){function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return"function"==typeof n[n.length-1]?e.apply(void 0,n):function(t){return e.apply(void 0,n.concat([t]))}}}function i(t,n){var r=(t.bsClass||"").trim();return null==r&&("production"!==e.env.NODE_ENV?(0,y.default)(!1,"A `bsClass` prop is required for this component"):(0,y.default)(!1)),r+(n?"-"+n:"")}function a(e){var t,n=(t={},t[i(e)]=!0,t);if(e.bsSize){n[i(e,_.SIZE_MAP[e.bsSize]||e.bsSize)]=!0}return e.bsStyle&&(n[i(e,e.bsStyle)]=!0),n}function u(e){return{bsClass:e.bsClass,bsSize:e.bsSize,bsStyle:e.bsStyle,bsRole:e.bsRole}}function l(e){return"bsClass"===e||"bsSize"===e||"bsStyle"===e||"bsRole"===e}function s(e){var t={};return(0,d.default)(e).forEach(function(e){var n=e[0],r=e[1];l(n)||(t[n]=r)}),[u(e),t]}function c(e,t){var n={};t.forEach(function(e){n[e]=!0});var r={};return(0,d.default)(e).forEach(function(e){var t=e[0],o=e[1];l(t)||n[t]||(r[t]=o)}),[u(e),r]}function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];w(n,e)}Object.defineProperty(t,"__esModule",{value:!0}),t._curry=t.bsSizes=t.bsStyles=t.bsClass=void 0,t.prefix=i,t.getClassSet=a,t.splitBsProps=s,t.splitBsPropsAndOmit=c,t.addStyle=f;var p=n(179),d=r(p),h=n(2),m=r(h),v=n(88),y=r(v),g=n(4),b=r(g),_=n(12),w=(t.bsClass=o(function(e,t){var n=t.propTypes||(t.propTypes={}),r=t.defaultProps||(t.defaultProps={});return n.bsClass=b.default.string,r.bsClass=e,t}),t.bsStyles=o(function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);var r=n.STYLES||[],o=n.propTypes||{};e.forEach(function(e){-1===r.indexOf(e)&&r.push(e)});var i=b.default.oneOf(r);if(n.STYLES=r,i._values=r,n.propTypes=(0,m.default)({},o,{bsStyle:i}),void 0!==t){(n.defaultProps||(n.defaultProps={})).bsStyle=t}return n}));t.bsSizes=o(function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);var r=n.SIZES||[],o=n.propTypes||{};e.forEach(function(e){-1===r.indexOf(e)&&r.push(e)});var i=[];r.forEach(function(e){var t=_.SIZE_MAP[e];t&&t!==e&&i.push(t),i.push(e)});var a=b.default.oneOf(i);return a._values=i,n.SIZES=r,n.propTypes=(0,m.default)({},o,{bsSize:a}),void 0!==t&&(n.defaultProps||(n.defaultProps={}),n.defaultProps.bsSize=t),n}),t._curry=o}).call(t,n(7))},function(e,t,n){"use strict";function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(f===setTimeout)return setTimeout(e,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function a(e){if(p===clearTimeout)return clearTimeout(e);if((p===o||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function u(){v&&h&&(v=!1,h.length?m=h.concat(m):y=-1,m.length&&l())}function l(){if(!v){var e=i(u);v=!0;for(var t=m.length;t;){for(h=m,m=[];++y<t;)h&&h[y].run();y=-1,t=m.length}h=null,v=!1,a(e)}}function s(e,t){this.fun=e,this.array=t}function c(){}var f,p,d=e.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(e){f=r}try{p="function"==typeof clearTimeout?clearTimeout:o}catch(e){p=o}}();var h,m=[],v=!1,y=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];m.push(new s(e,t)),1!==m.length||v||i(l)},s.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.prependListener=c,d.prependOnceListener=c,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){"use strict";e.exports=n(220).default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,o){var i=e[t];return a.default.isValidElement(i)?new Error("Invalid "+r+" `"+o+"` of type ReactElement supplied to `"+n+"`,expected an element type (a string , component class, or function component)."):(0,u.isValidElementType)(i)?null:new Error("Invalid "+r+" `"+o+"` of value `"+i+"` supplied to `"+n+"`, expected an element type (a string , component class, or function component).")}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=r(i),u=n(69),l=n(98),s=r(l);t.default=(0,s.default)(o),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return null!=e}).reduce(function(e,t){if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}},null)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Size={LARGE:"large",SMALL:"small",XSMALL:"xsmall"},t.SIZE_MAP={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"},t.DEVICE_SIZES=["lg","md","sm","xs"],t.State={SUCCESS:"success",WARNING:"warning",DANGER:"danger",INFO:"info"},t.Style={DEFAULT:"default",PRIMARY:"primary",LINK:"link",INVERSE:"inverse"}},function(e,t,n){"use strict";(function(t){function r(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==t.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}}"production"===t.env.NODE_ENV?(r(),e.exports=n(694)):e.exports=n(693)}).call(t,n(7))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(109),a=n(108),u=a.MAX_LENGTH,l=a.MAX_SAFE_INTEGER,s=n(53),c=s.re,f=s.t,p=n(110),d=n(170),h=d.compareIdentifiers,m=function(){function e(t,n){if(r(this,e),n=p(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError("Invalid Version: "+t);if(t.length>u)throw new TypeError("version is longer than "+u+" characters");i("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;var o=t.trim().match(n.loose?c[f.LOOSE]:c[f.FULL]);if(!o)throw new TypeError("Invalid Version: "+t);if(this.raw=t,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>l||this.major<0)throw new TypeError("Invalid major version");if(this.minor>l||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>l||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<l)return t}return e}):this.prerelease=[],this.build=o[5]?o[5].split("."):[],this.format()}return o(e,[{key:"format",value:function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}},{key:"toString",value:function(){return this.version}},{key:"compare",value:function(t){if(i("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}},{key:"compareMain",value:function(t){return t instanceof e||(t=new e(t,this.options)),h(this.major,t.major)||h(this.minor,t.minor)||h(this.patch,t.patch)}},{key:"comparePre",value:function(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;var n=0;do{var r=this.prerelease[n],o=t.prerelease[n];if(i("prerelease compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return h(r,o)}while(++n)}},{key:"compareBuild",value:function(t){t instanceof e||(t=new e(t,this.options));var n=0;do{var r=this.build[n],o=t.build[n];if(i("prerelease compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return h(r,o)}while(++n)}},{key:"inc",value:function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);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 n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}]),e}();e.exports=m},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return p[e]}function o(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}function i(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function a(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return h.test(e)?e.replace(d,r):e}function u(e){return!e&&0!==e||!(!y(e)||0!==e.length)}function l(e){var t=o({},e);return t._parent=e,t}function s(e,t){return e.path=t,e}function c(e,t){return(e?e+".":"")+t}var f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0,t.extend=o,t.indexOf=i,t.escapeExpression=a,t.isEmpty=u,t.createFrame=l,t.blockParams=s,t.appendContextPath=c;var p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},d=/[&<>"'`=]/g,h=/[&<>"'`=]/,m=Object.prototype.toString;t.toString=m;var v=function(e){return"function"==typeof e};v(/x/)&&(t.isFunction=v=function(e){return"function"==typeof e&&"[object Function]"===m.call(e)}),t.isFunction=v;var y=Array.isArray||function(e){return!(!e||"object"!==(void 0===e?"undefined":f(e)))&&"[object Array]"===m.call(e)};t.isArray=y},function(e,t,n){"use strict";function r(e,t,n){var r=0;return p.default.Children.map(e,function(e){return p.default.isValidElement(e)?t.call(n,e,r++):e})}function o(e,t,n){var r=0;p.default.Children.forEach(e,function(e){p.default.isValidElement(e)&&t.call(n,e,r++)})}function i(e){var t=0;return p.default.Children.forEach(e,function(e){p.default.isValidElement(e)&&++t}),t}function a(e,t,n){var r=0,o=[];return p.default.Children.forEach(e,function(e){p.default.isValidElement(e)&&t.call(n,e,r++)&&o.push(e)}),o}function u(e,t,n){var r,o=0;return p.default.Children.forEach(e,function(e){r||p.default.isValidElement(e)&&t.call(n,e,o++)&&(r=e)}),r}function l(e,t,n){var r=0,o=!0;return p.default.Children.forEach(e,function(e){o&&p.default.isValidElement(e)&&(t.call(n,e,r++)||(o=!1))}),o}function s(e,t,n){var r=0,o=!1;return p.default.Children.forEach(e,function(e){o||p.default.isValidElement(e)&&t.call(n,e,r++)&&(o=!0)}),o}function c(e){var t=[];return p.default.Children.forEach(e,function(e){p.default.isValidElement(e)&&t.push(e)}),t}Object.defineProperty(t,"__esModule",{value:!0});var f=n(0),p=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default={map:r,forEach:o,count:i,find:u,filter:a,every:l,some:s,toArray:c}},function(e,t,n){"use strict";function r(e){return p[e]}function o(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}function i(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function a(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return h.test(e)?e.replace(d,r):e}function u(e){return!e&&0!==e||!(!y(e)||0!==e.length)}function l(e){var t=o({},e);return t._parent=e,t}function s(e,t){return e.path=t,e}function c(e,t){return(e?e+".":"")+t}var f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0,t.extend=o,t.indexOf=i,t.escapeExpression=a,t.isEmpty=u,t.createFrame=l,t.blockParams=s,t.appendContextPath=c;var p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},d=/[&<>"'`=]/g,h=/[&<>"'`=]/,m=Object.prototype.toString;t.toString=m;var v=function(e){return"function"==typeof e};v(/x/)&&(t.isFunction=v=function(e){return"function"==typeof e&&"[object Function]"===m.call(e)}),t.isFunction=v;var y=Array.isArray||function(e){return!(!e||"object"!==(void 0===e?"undefined":f(e)))&&"[object Array]"===m.call(e)};t.isArray=y},function(e,t,n){"use strict";var r=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},function(e,t,n){"use strict";(function(t){var n=function(){};"production"!==t.env.NODE_ENV&&(n=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var o=2;o<r;o++)n[o-2]=arguments[o];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(!e){var i=0,a="Warning: "+t.replace(/%s/g,function(){return n[i++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}}),e.exports=n}).call(t,n(7))},function(e,t,n){"use strict";(function(n,r,o){var i,a,u,l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};/* @preserve * The MIT License (MIT) * * Copyright (c) 2013-2018 Petka Antonov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * */ !function(n){if("object"==l(t)&&void 0!==e)e.exports=n();else{a=[],i=n,void 0!==(u="function"==typeof i?i.apply(t,a):i)&&(e.exports=u)}}(function(){var e,t,i;return function e(t,n,r){function o(a,u){if(!n[a]){if(!t[a]){var l="function"==typeof _dereq_&&_dereq_;if(!u&&l)return l(a,!0);if(i)return i(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return o(n||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof _dereq_&&_dereq_,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){t.exports=function(e){function t(e){var t=new n(e),r=t.promise();return t.setHowMany(1),t.setUnwrap(),t.init(),r}var n=e._SomePromiseArray;e.any=function(e){return t(e)},e.prototype.any=function(){return t(this)}}},{}],2:[function(e,t,r){function o(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new p(16),this._normalQueue=new p(16),this._haveDrainedQueues=!1;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=f}function i(e,t,n){this._lateQueue.push(e,t,n),this._queueTick()}function a(e,t,n){this._normalQueue.push(e,t,n),this._queueTick()}function u(e){this._normalQueue._pushOne(e),this._queueTick()}function l(e){for(;e.length()>0;)s(e)}function s(e){var t=e.shift();if("function"!=typeof t)t._settlePromises();else{var n=e.shift(),r=e.shift();t.call(n,r)}}var c;try{throw new Error}catch(e){c=e}var f=e("./schedule"),p=e("./queue");o.prototype.setScheduler=function(e){var t=this._schedule;return this._schedule=e,this._customScheduler=!0,t},o.prototype.hasCustomScheduler=function(){return this._customScheduler},o.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},o.prototype.fatalError=function(e,t){t?(n.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n"),n.exit(2)):this.throwLater(e)},o.prototype.throwLater=function(e,t){if(1===arguments.length&&(t=e,e=function(){throw t}),"undefined"!=typeof setTimeout)setTimeout(function(){e(t)},0);else try{this._schedule(function(){e(t)})}catch(e){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},o.prototype.invokeLater=i,o.prototype.invoke=a,o.prototype.settlePromises=u,o.prototype._drainQueues=function(){l(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,l(this._lateQueue)},o.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},o.prototype._reset=function(){this._isTickUsed=!1},t.exports=o,t.exports.firstLineError=c},{"./queue":26,"./schedule":29}],3:[function(e,t,n){t.exports=function(e,t,n,r){var o=!1,i=function(e,t){this._reject(t)},a=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(i,i,null,this,e)},u=function(e,t){0==(50397184&this._bitField)&&this._resolveCallback(t.target)},l=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(i){o||(o=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var s=n(i),c=new e(t);c._propagateFrom(this,1);var f=this._target();if(c._setBoundTo(s),s instanceof e){var p={promiseRejectionQueued:!1,promise:c,target:f,bindingPromise:s};f._then(t,a,void 0,c,p),s._then(u,l,void 0,c,p),c._setOnCancel(s)}else c._resolveCallback(f);return c},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},{}],4:[function(e,t,n){function r(){try{Promise===i&&(Promise=o)}catch(e){}return i}var o;"undefined"!=typeof Promise&&(o=Promise);var i=e("./promise")();i.noConflict=r,t.exports=i},{"./promise":22}],5:[function(e,t,n){var r=Object.create;if(r){var o=r(null),i=r(null);o[" size"]=i[" size"]=0}t.exports=function(t){function n(e,n){var r;if(null!=e&&(r=e[n]),"function"!=typeof r){var o="Object "+u.classString(e)+" has no method '"+u.toString(n)+"'";throw new t.TypeError(o)}return r}function r(e){return n(e,this.pop()).apply(e,this)}function o(e){return e[this]}function i(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}var a,u=e("./util"),l=u.canEvaluate;u.isIdentifier;t.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(r,void 0,void 0,t,void 0)},t.prototype.get=function(e){var t,n="number"==typeof e;if(n)t=i;else if(l){var r=a(e);t=null!==r?r:o}else t=o;return this._then(t,void 0,void 0,e,void 0)}}},{"./util":36}],6:[function(e,t,n){t.exports=function(t,n,r,o){var i=e("./util"),a=i.tryCatch,u=i.errorObj,l=t._async;t.prototype.break=t.prototype.cancel=function(){if(!o.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),l.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(i.isArray(e))for(var n=0;n<e.length;++n)this._doInvokeOnCancel(e[n],t);else if(void 0!==e)if("function"==typeof e){if(!t){var r=a(e).call(this._boundValue());r===u&&(this._attachExtraTrace(r.e),l.throwLater(r.e))}}else e._resultCancelled(this)},t.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),l.invoke(this._doInvokeOnCancel,this,e)},t.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},t.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(e,t,n){t.exports=function(t){function n(e,n,u){return function(l){var s=u._boundValue();e:for(var c=0;c<e.length;++c){var f=e[c];if(f===Error||null!=f&&f.prototype instanceof Error){if(l instanceof f)return i(n).call(s,l)}else if("function"==typeof f){var p=i(f).call(s,l);if(p===a)return p;if(p)return i(n).call(s,l)}else if(r.isObject(l)){for(var d=o(f),h=0;h<d.length;++h){var m=d[h];if(f[m]!=l[m])continue e}return i(n).call(s,l)}}return t}}var r=e("./util"),o=e("./es5").keys,i=r.tryCatch,a=r.errorObj;return n}},{"./es5":13,"./util":36}],8:[function(e,t,n){t.exports=function(e){function t(){this._trace=new t.CapturedTrace(r())}function n(){if(o)return new t}function r(){var e=i.length-1;if(e>=0)return i[e]}var o=!1,i=[];return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},t.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,i.push(this._trace))},t.prototype._popContext=function(){if(void 0!==this._trace){var e=i.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},t.CapturedTrace=null,t.create=n,t.deactivateLongStackTraces=function(){},t.activateLongStackTraces=function(){var n=e.prototype._pushContext,i=e.prototype._popContext,a=e._peekContext,u=e.prototype._peekContext,l=e.prototype._promiseCreated;t.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=i,e._peekContext=a,e.prototype._peekContext=u,e.prototype._promiseCreated=l,o=!1},o=!0,e.prototype._pushContext=t.prototype._pushContext,e.prototype._popContext=t.prototype._popContext,e._peekContext=e.prototype._peekContext=r,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},t}},{}],9:[function(e,t,r){t.exports=function(t,r,o,i){function a(e,t){return{promise:t}}function u(){return!1}function s(e,t,n){var r=this;try{e(t,n,function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+$.toString(e));r._attachCancellationCallback(e)})}catch(e){return e}}function c(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?$.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function f(){return this._onCancelField}function p(e){this._onCancelField=e}function d(){this._cancellationParent=void 0,this._onCancelField=void 0}function h(e,t){if(0!=(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;void 0===n&&(n=0),e._branchesRemainingToCancel=n+1}0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}function m(e,t){0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}function v(){var e=this._boundTo;return void 0!==e&&e instanceof t?e.isFulfilled()?e.value():void 0:e}function y(){this._trace=new D(this._peekContext())}function g(e,t){if(W(e)){var n=this._trace;if(void 0!==n&&t&&(n=n._parent),void 0!==n)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var r=T(e);$.notEnumerableProp(e,"stack",r.message+"\n"+r.stack.join("\n")),$.notEnumerableProp(e,"__stackCleaned__",!0)}}}function b(){this._trace=void 0}function _(e,t,n,r,o){if(void 0===e&&null!==t&&te){if(void 0!==o&&o._returnedNonUndefined())return;if(0==(65535&r._bitField))return;n&&(n+=" ");var i="",a="";if(t._trace){for(var u=t._trace.stack.split("\n"),l=C(u),s=l.length-1;s>=0;--s){var c=l[s];if(!K.test(c)){var f=c.match(G);f&&(i="at "+f[1]+":"+f[2]+":"+f[3]+" ");break}}if(l.length>0)for(var p=l[0],s=0;s<u.length;++s)if(u[s]===p){s>0&&(a="\n"+u[s-1]);break}}var d="a promise was created in a "+n+"handler "+i+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(d,!0,t)}}function w(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),x(n)}function x(e,n,r){if(pe.warnings){var o,i=new H(e);if(n)r._attachExtraTrace(i);else if(pe.longStackTraces&&(o=t._peekContext()))o.attachExtraTrace(i);else{var a=T(i);i.stack=a.message+"\n"+a.stack.join("\n")}ue("warning",i)||O(i,"",!0)}}function E(e,t){for(var n=0;n<t.length-1;++n)t[n].push("From previous event:"),t[n]=t[n].join("\n");return n<t.length&&(t[n]=t[n].join("\n")),e+"\n"+t.join("\n")}function k(e){for(var t=0;t<e.length;++t)(0===e[t].length||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}function S(e){for(var t=e[0],n=1;n<e.length;++n){for(var r=e[n],o=t.length-1,i=t[o],a=-1,u=r.length-1;u>=0;--u)if(r[u]===i){a=u;break}for(var u=a;u>=0;--u){var l=r[u];if(t[o]!==l)break;t.pop(),o--}t=r}}function C(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],o=" (No stack trace)"===r||Y.test(r),i=o&&se(r);o&&!i&&(Q&&" "!==r.charAt(0)&&(r=" "+r),t.push(r))}return t}function P(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n<t.length;++n){var r=t[n];if(" (No stack trace)"===r||Y.test(r))break}return n>0&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}function T(e){var t=e.stack,n=e.toString();return t="string"==typeof t&&t.length>0?P(e):[" (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:C(t)}}function O(e,t,n){if("undefined"!=typeof console){var r;if($.isObject(e)){var o=e.stack;r=t+X(o,e)}else r=t+String(e);"function"==typeof U?U(r,n):"function"!=typeof console.log&&"object"!==l(console.log)||console.log(r)}}function N(e,t,n,r){var o=!1;try{"function"==typeof t&&(o=!0,"rejectionHandled"===e?t(r):t(n,r))}catch(e){z.throwLater(e)}"unhandledRejection"===e?ue(e,n,r)||o||O(n,"Unhandled rejection "):ue(e,r)}function R(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{t=e&&"function"==typeof e.toString?e.toString():$.toString(e);if(/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch(e){}0===t.length&&(t="(empty array)")}return"(<"+j(t)+">, no stack trace)"}function j(e){return e.length<41?e:e.substr(0,38)+"..."}function I(){return"function"==typeof fe}function M(e){var t=e.match(ce);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function A(e,t){if(I()){for(var n,r,o=(e.stack||"").split("\n"),i=(t.stack||"").split("\n"),a=-1,u=-1,l=0;l<o.length;++l){var s=M(o[l]);if(s){n=s.fileName,a=s.line;break}}for(var l=0;l<i.length;++l){var s=M(i[l]);if(s){r=s.fileName,u=s.line;break}}a<0||u<0||!n||!r||n!==r||a>=u||(se=function(e){if(q.test(e))return!0;var t=M(e);return!!(t&&t.fileName===n&&a<=t.line&&t.line<=u)})}}function D(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);fe(this,D),t>32&&this.uncycle()}var L,F,U,B,z=t._async,H=e("./errors").Warning,$=e("./util"),V=e("./es5"),W=$.canAttachTrace,q=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,K=/\((?:timers\.js):\d+:\d+\)/,G=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,Y=null,X=null,Q=!1,J=!(0==$.env("BLUEBIRD_DEBUG")),Z=!(0==$.env("BLUEBIRD_WARNINGS")||!J&&!$.env("BLUEBIRD_WARNINGS")),ee=!(0==$.env("BLUEBIRD_LONG_STACK_TRACES")||!J&&!$.env("BLUEBIRD_LONG_STACK_TRACES")),te=0!=$.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(Z||!!$.env("BLUEBIRD_W_FORGOTTEN_RETURN"));!function(){function e(){for(var e=0;e<r.length;++e)r[e]._notifyUnhandledRejection();n()}function n(){r.length=0}var r=[];B=function(t){r.push(t),setTimeout(e,1)},V.defineProperty(t,"_unhandledRejectionCheck",{value:e}),V.defineProperty(t,"_unhandledRejectionClear",{value:n})}(),t.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},t.prototype._ensurePossibleRejectionHandled=function(){0==(524288&this._bitField)&&(this._setRejectionIsUnhandled(),B(this))},t.prototype._notifyUnhandledRejectionIsHandled=function(){N("rejectionHandled",L,void 0,this)},t.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},t.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},t.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),N("unhandledRejection",F,e,this)}},t.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},t.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},t.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},t.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},t.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},t.prototype._warn=function(e,t,n){return x(e,t,n||this)},t.onPossiblyUnhandledRejection=function(e){var n=t._getContext();F=$.contextBind(n,e)},t.onUnhandledRejectionHandled=function(e){var n=t._getContext();L=$.contextBind(n,e)};var ne=function(){};t.longStackTraces=function(){if(z.haveItemsQueued()&&!pe.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!pe.longStackTraces&&I()){var e=t.prototype._captureStackTrace,n=t.prototype._attachExtraTrace,o=t.prototype._dereferenceTrace;pe.longStackTraces=!0,ne=function(){if(z.haveItemsQueued()&&!pe.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");t.prototype._captureStackTrace=e,t.prototype._attachExtraTrace=n,t.prototype._dereferenceTrace=o,r.deactivateLongStackTraces(),pe.longStackTraces=!1},t.prototype._captureStackTrace=y,t.prototype._attachExtraTrace=g,t.prototype._dereferenceTrace=b,r.activateLongStackTraces()}},t.hasLongStackTraces=function(){return pe.longStackTraces&&I()};var re={unhandledrejection:{before:function(){var e=$.global.onunhandledrejection;return $.global.onunhandledrejection=null,e},after:function(e){$.global.onunhandledrejection=e}},rejectionhandled:{before:function(){var e=$.global.onrejectionhandled;return $.global.onrejectionhandled=null,e},after:function(e){$.global.onrejectionhandled=e}}},oe=function(){var e=function(e,t){if(!e)return!$.global.dispatchEvent(t);var n;try{return n=e.before(),!$.global.dispatchEvent(t)}finally{e.after(n)}};try{if("function"==typeof CustomEvent){var t=new CustomEvent("CustomEvent");return $.global.dispatchEvent(t),function(t,n){t=t.toLowerCase();var r={detail:n,cancelable:!0},o=new CustomEvent(t,r);return V.defineProperty(o,"promise",{value:n.promise}),V.defineProperty(o,"reason",{value:n.reason}),e(re[t],o)}}if("function"==typeof Event){var t=new Event("CustomEvent");return $.global.dispatchEvent(t),function(t,n){t=t.toLowerCase();var r=new Event(t,{cancelable:!0});return r.detail=n,V.defineProperty(r,"promise",{value:n.promise}),V.defineProperty(r,"reason",{value:n.reason}),e(re[t],r)}}var t=document.createEvent("CustomEvent");return t.initCustomEvent("testingtheevent",!1,!0,{}),$.global.dispatchEvent(t),function(t,n){t=t.toLowerCase();var r=document.createEvent("CustomEvent");return r.initCustomEvent(t,!1,!0,n),e(re[t],r)}}catch(e){}return function(){return!1}}(),ie=function(){return $.isNode?function(){return n.emit.apply(n,arguments)}:$.global?function(e){var t="on"+e.toLowerCase(),n=$.global[t];return!!n&&(n.apply($.global,[].slice.call(arguments,1)),!0)}:function(){return!1}}(),ae={promiseCreated:a,promiseFulfilled:a,promiseRejected:a,promiseResolved:a,promiseCancelled:a,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:a},ue=function(e){var t=!1;try{t=ie.apply(null,arguments)}catch(e){z.throwLater(e),t=!0}var n=!1;try{n=oe(e,ae[e].apply(null,arguments))}catch(e){z.throwLater(e),n=!0}return n||t};t.config=function(e){if(e=Object(e),"longStackTraces"in e&&(e.longStackTraces?t.longStackTraces():!e.longStackTraces&&t.hasLongStackTraces()&&ne()),"warnings"in e){var n=e.warnings;pe.warnings=!!n,te=pe.warnings,$.isObject(n)&&"wForgottenReturn"in n&&(te=!!n.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!pe.cancellation){if(z.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");t.prototype._clearCancellationData=d,t.prototype._propagateFrom=h,t.prototype._onCancel=f,t.prototype._setOnCancel=p,t.prototype._attachCancellationCallback=c,t.prototype._execute=s,le=h,pe.cancellation=!0}if("monitoring"in e&&(e.monitoring&&!pe.monitoring?(pe.monitoring=!0,t.prototype._fireEvent=ue):!e.monitoring&&pe.monitoring&&(pe.monitoring=!1,t.prototype._fireEvent=u)),"asyncHooks"in e&&$.nodeSupportsAsyncResource){var r=pe.asyncHooks,a=!!e.asyncHooks;r!==a&&(pe.asyncHooks=a,a?o():i())}return t},t.prototype._fireEvent=u,t.prototype._execute=function(e,t,n){try{e(t,n)}catch(e){return e}},t.prototype._onCancel=function(){},t.prototype._setOnCancel=function(e){},t.prototype._attachCancellationCallback=function(e){},t.prototype._captureStackTrace=function(){},t.prototype._attachExtraTrace=function(){},t.prototype._dereferenceTrace=function(){},t.prototype._clearCancellationData=function(){},t.prototype._propagateFrom=function(e,t){};var le=m,se=function(){return!1},ce=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;$.inherits(D,Error),r.CapturedTrace=D,D.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},r=0,o=this;void 0!==o;++r)t.push(o),o=o._parent;e=this._length=r;for(var r=e-1;r>=0;--r){var i=t[r].stack;void 0===n[i]&&(n[i]=r)}for(var r=0;r<e;++r){var a=t[r].stack,u=n[a];if(void 0!==u&&u!==r){u>0&&(t[u-1]._parent=void 0,t[u-1]._length=1),t[r]._parent=void 0,t[r]._length=1;var l=r>0?t[r-1]:this;u<e-1?(l._parent=t[u+1],l._parent.uncycle(),l._length=l._parent._length+1):(l._parent=void 0,l._length=1);for(var s=l._length+1,c=r-2;c>=0;--c)t[c]._length=s,s++;return}}}},D.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=T(e),n=t.message,r=[t.stack],o=this;void 0!==o;)r.push(C(o.stack.split("\n"))),o=o._parent;S(r),k(r),$.notEnumerableProp(e,"stack",E(n,r)),$.notEnumerableProp(e,"__stackCleaned__",!0)}};var fe=function(){var e=/^\s*at\s*/,t=function(e,t){return"string"==typeof e?e:void 0!==t.name&&void 0!==t.message?t.toString():R(t)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,Y=e,X=t;var n=Error.captureStackTrace;return se=function(e){return q.test(e)},function(e,t){Error.stackTraceLimit+=6,n(e,t),Error.stackTraceLimit-=6}}var r=new Error;if("string"==typeof r.stack&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0)return Y=/@/,X=t,Q=!0,function(e){e.stack=(new Error).stack};var o;try{throw new Error}catch(e){o="stack"in e}return"stack"in r||!o||"number"!=typeof Error.stackTraceLimit?(X=function(e,t){return"string"==typeof e?e:"object"!==(void 0===t?"undefined":l(t))&&"function"!=typeof t||void 0===t.name||void 0===t.message?R(t):t.toString()},null):(Y=e,X=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6})}();"undefined"!=typeof console&&void 0!==console.warn&&(U=function(e){console.warn(e)},$.isNode&&n.stderr.isTTY?U=function(e,t){var n=t?"":"";console.warn(n+e+"\n")}:$.isNode||"string"!=typeof(new Error).stack||(U=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var pe={warnings:Z,longStackTraces:!1,cancellation:!1,monitoring:!1,asyncHooks:!1};return ee&&t.longStackTraces(),{asyncHooks:function(){return pe.asyncHooks},longStackTraces:function(){return pe.longStackTraces},warnings:function(){return pe.warnings},cancellation:function(){return pe.cancellation},monitoring:function(){return pe.monitoring},propagateFromFunction:function(){return le},boundValueFunction:function(){return v},checkForgottenReturns:_,setBounds:A,warn:x,deprecated:w,CapturedTrace:D,fireDomEvent:oe,fireGlobalEvent:ie}}},{"./errors":12,"./es5":13,"./util":36}],10:[function(e,t,n){t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1],r=function(){throw t};return this.caught(e,r)},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var r=arguments[1];r instanceof e&&r.suppressUnhandledRejections();var o=function(){return r};return this.caught(n,o)}}},{}],11:[function(e,t,n){t.exports=function(e,t){function n(){return i(this)}function r(e,n){return o(e,n,t,t)}var o=e.reduce,i=e.all;e.prototype.each=function(e){return o(this,e,t,0)._then(n,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return o(this,e,t,t)},e.each=function(e,r){return o(e,r,t,0)._then(n,void 0,void 0,e,void 0)},e.mapSeries=r}},{}],12:[function(e,t,n){function r(e,t){function n(r){if(!(this instanceof n))return new n(r);f(this,"message","string"==typeof r?r:t),f(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return c(n,Error),n}function o(e){if(!(this instanceof o))return new o(e);f(this,"name","OperationalError"),f(this,"message",e),this.cause=e,this.isOperational=!0,e instanceof Error?(f(this,"message",e.message),f(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}var i,a,u=e("./es5"),l=u.freeze,s=e("./util"),c=s.inherits,f=s.notEnumerableProp,p=r("Warning","warning"),d=r("CancellationError","cancellation error"),h=r("TimeoutError","timeout error"),m=r("AggregateError","aggregate error");try{i=TypeError,a=RangeError}catch(e){i=r("TypeError","type error"),a=r("RangeError","range error")}for(var v="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),y=0;y<v.length;++y)"function"==typeof Array.prototype[v[y]]&&(m.prototype[v[y]]=Array.prototype[v[y]]);u.defineProperty(m.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),m.prototype.isOperational=!0;var g=0;m.prototype.toString=function(){var e=Array(4*g+1).join(" "),t="\n"+e+"AggregateError of:\n";g++,e=Array(4*g+1).join(" ");for(var n=0;n<this.length;++n){for(var r=this[n]===this?"[Circular AggregateError]":this[n]+"",o=r.split("\n"),i=0;i<o.length;++i)o[i]=e+o[i];r=o.join("\n"),t+=r+"\n"}return g--,t},c(o,Error);var b=Error.__BluebirdErrorTypes__;b||(b=l({CancellationError:d,TimeoutError:h,OperationalError:o,RejectionError:o,AggregateError:m}),u.defineProperty(Error,"__BluebirdErrorTypes__",{value:b,writable:!1,enumerable:!1,configurable:!1})),t.exports={Error:Error,TypeError:i,RangeError:a,CancellationError:b.CancellationError,OperationalError:b.OperationalError,TimeoutError:b.TimeoutError,AggregateError:b.AggregateError,Warning:p}},{"./es5":13,"./util":36}],13:[function(e,t,n){var r=function(){return void 0===this}();if(r)t.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:r,propertyIsWritable:function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!(n&&!n.writable&&!n.set)}};else{var o={}.hasOwnProperty,i={}.toString,a={}.constructor.prototype,u=function(e){var t=[];for(var n in e)o.call(e,n)&&t.push(n);return t},l=function(e,t){return{value:e[t]}},s=function(e,t,n){return e[t]=n.value,e},c=function(e){return e},f=function(e){try{return Object(e).constructor.prototype}catch(e){return a}},p=function(e){try{return"[object Array]"===i.call(e)}catch(e){return!1}};t.exports={isArray:p,keys:u,names:u,defineProperty:s,getDescriptor:l,freeze:c,getPrototypeOf:f,isES5:r,propertyIsWritable:function(){return!0}}}},{}],14:[function(e,t,n){t.exports=function(e,t){var n=e.map;e.prototype.filter=function(e,r){return n(this,e,r,t)},e.filter=function(e,r,o){return n(e,r,o,t)}}},{}],15:[function(e,t,n){t.exports=function(t,n,r){function o(e,t,n){this.promise=e,this.type=t,this.handler=n,this.called=!1,this.cancelPromise=null}function i(e){this.finallyHandler=e}function a(e,t){return null!=e.cancelPromise&&(arguments.length>1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function u(){return s.call(this,this.promise._target()._settledValue())}function l(e){if(!a(this,e))return p.e=e,p}function s(e){var o=this.promise,s=this.handler;if(!this.called){this.called=!0;var c=this.isFinallyHandler()?s.call(o._boundValue()):s.call(o._boundValue(),e);if(c===r)return c;if(void 0!==c){o._setReturnedNonUndefined();var d=n(c,o);if(d instanceof t){if(null!=this.cancelPromise){if(d._isCancelled()){var h=new f("late cancellation observer");return o._attachExtraTrace(h),p.e=h,p}d.isPending()&&d._attachCancellationCallback(new i(this))}return d._then(u,l,void 0,this,void 0)}}}return o.isRejected()?(a(this),p.e=e,p):(a(this),e)}var c=e("./util"),f=t.CancellationError,p=c.errorObj,d=e("./catch_filter")(r);return o.prototype.isFinallyHandler=function(){return 0===this.type},i.prototype._resultCancelled=function(){a(this.finallyHandler)},t.prototype._passThrough=function(e,t,n,r){return"function"!=typeof e?this.then():this._then(n,r,void 0,new o(this,t,e),void 0)},t.prototype.lastly=t.prototype.finally=function(e){return this._passThrough(e,0,s,s)},t.prototype.tap=function(e){return this._passThrough(e,1,s)},t.prototype.tapCatch=function(e){var n=arguments.length;if(1===n)return this._passThrough(e,1,void 0,s);var r,o=new Array(n-1),i=0;for(r=0;r<n-1;++r){var a=arguments[r];if(!c.isObject(a))return t.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+c.classString(a)));o[i++]=a}o.length=i;var u=arguments[r];return this._passThrough(d(o,u,this),1,void 0,s)},o}},{"./catch_filter":7,"./util":36}],16:[function(e,t,n){t.exports=function(t,n,r,o,i,a){function u(e,n,r){for(var i=0;i<n.length;++i){r._pushContext();var a=d(n[i])(e);if(r._popContext(),a===p){r._pushContext();var u=t.reject(p.e);return r._popContext(),u}var l=o(a,r);if(l instanceof t)return l}return null}function l(e,n,o,i){if(a.cancellation()){var u=new t(r),l=this._finallyPromise=new t(r);this._promise=u.lastly(function(){return l}),u._captureStackTrace(),u._setOnCancel(this)}else{(this._promise=new t(r))._captureStackTrace()}this._stack=i,this._generatorFunction=e,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"==typeof o?[o].concat(h):h,this._yieldedPromise=null,this._cancellationPhase=!1}var s=e("./errors"),c=s.TypeError,f=e("./util"),p=f.errorObj,d=f.tryCatch,h=[];f.inherits(l,i),l.prototype._isResolved=function(){return null===this._promise},l.prototype._cleanup=function(){this._promise=this._generator=null,a.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},l.prototype._promiseCancelled=function(){if(!this._isResolved()){var e,n=void 0!==this._generator.return;if(n)this._promise._pushContext(),e=d(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var r=new t.CancellationError("generator .return() sentinel");t.coroutine.returnSentinel=r,this._promise._attachExtraTrace(r),this._promise._pushContext(),e=d(this._generator.throw).call(this._generator,r),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(e)}},l.prototype._promiseFulfilled=function(e){this._yieldedPromise=null,this._promise._pushContext();var t=d(this._generator.next).call(this._generator,e);this._promise._popContext(),this._continue(t)},l.prototype._promiseRejected=function(e){this._yieldedPromise=null,this._promise._attachExtraTrace(e),this._promise._pushCo