UNPKG

zotero-web-library

Version:

Web library from zotero.org

2 lines 671 kB
!function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return o(n?n:e)},u,u.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){"use strict";var r,o=e("es5-ext/object/assign"),i=e("es5-ext/object/normalize-options"),a=e("es5-ext/object/is-callable"),s=e("es5-ext/string/#/contains");r=t.exports=function(e,t){var n,r,a,l,c;return arguments.length<2||"string"!=typeof e?(l=t,t=e,e=null):l=arguments[2],null==e?(n=a=!0,r=!1):(n=s.call(e,"c"),r=s.call(e,"e"),a=s.call(e,"w")),c={value:t,configurable:n,enumerable:r,writable:a},l?o(i(l),c):c},r.gs=function(e,t,n){var r,l,c,u;return"string"!=typeof e?(c=n,n=t,t=e,e=null):c=arguments[3],null==t?t=void 0:a(t)?null==n?n=void 0:a(n)||(c=n,n=void 0):(c=t,t=n=void 0),null==e?(r=!0,l=!1):(r=s.call(e,"c"),l=s.call(e,"e")),u={get:t,set:n,configurable:r,enumerable:l},c?o(i(c),u):u}},{"es5-ext/object/assign":58,"es5-ext/object/is-callable":63,"es5-ext/object/normalize-options":69,"es5-ext/string/#/contains":73}],2:[function(e,t,n){"use strict";var r,o,i,a=e("es5-ext/object/valid-callable"),s=e("d"),l=e("es5-ext/object/is-callable"),c=e("event-emitter"),u=e("./is-promise"),d=Object.create,p=Object.defineProperty;t.exports=n=function(e,t,r,o){e=String(e),a(o)&&(null==r||a(r))&&a(t),p(n._unresolved,e,s(t)),n._onresolve[e]=r,p(n._resolved,e,s(o)),n._names.push(e)},n._names=["done","then","valueOf"],n._unresolved=c(d(Function.prototype,{then:s(function(e,t){var n;return this.pending||(this.pending=[]),n=r(),this.pending.push("then",[e,t,n.resolve,n.reject]),n.promise}),done:s(function(e,t){null==e||a(e),null==t||a(t),this.pending||(this.pending=[]),this.pending.push("done",arguments)}),resolved:s(!1),returnsPromise:s(!0),valueOf:s(function(){return this})})),n._onresolve={then:function(e,t,n,r){var o,i=this.failed?t:e;if(null==i)return void(this.failed?r(this.value):n(this.value));if(l(i)){if(u(i))return i.resolved?void(i.failed?r(i.value):n(i.value)):void i.done(n,r);try{o=i(this.value)}catch(a){return void r(a)}return void n(o)}n(i)},done:function(e,t){if(this.failed){if(t)return void t(this.value);throw this.value}e&&e(this.value)}},n._resolved=c(d(Function.prototype,{then:s(function(e,t){var n,r=this.failed?t:e;if(null==r)return this;if(l(r)){if(u(r))return r;try{n=r(this.value)}catch(a){return i(a)}return o(n)}return o(r)}),done:s(function(e,t){if(null==e||a(e),null==t||a(t),this.failed){if(t)return void t(this.value);throw this.value}e&&e(this.value)}),resolved:s(!0),returnsPromise:s(!0),valueOf:s(function(){return this.value})})),r=e("./deferred"),o=r.resolve,i=r.reject,r.extend=n},{"./deferred":4,"./is-promise":31,d:1,"es5-ext/object/is-callable":63,"es5-ext/object/valid-callable":70,"event-emitter":87}],3:[function(e,t,n){"use strict";var r=e("es5-ext/object/is-object"),o=e("./is-promise"),i=e("./deferred"),a=e("next-tick"),s=Object.getPrototypeOf;t.exports=function l(e){var t,n,c,u,d;if(!e)return e;try{t=e.then}catch(p){return e}if("function"!=typeof t)return e;if(o(e))return e;if(!r(e))return e;if(!s(e))return e;try{n=e.done}catch(f){}if(c=i(),u=function(e){c.resolve(l(e))},d=function(e){c.reject(e)},"function"==typeof n){try{n.call(e,u,d)}catch(p){return c.reject(p)}return c.promise}try{t.call(e,function(e){a(function(){u(e)})},function(e){a(function(){d(e)})})}catch(p){return c.reject(p)}return c.promise}},{"./deferred":4,"./is-promise":31,"es5-ext/object/is-object":64,"next-tick":146}],4:[function(e,t,n){"use strict";var r,o,i,a,s,l,c,u=e("es5-ext/error/is-error"),d=e("es5-ext/function/noop"),p=e("./is-promise"),f=Array.prototype.every,h=Array.prototype.push,m=0,g=Boolean(p.__proto__);a=function(e){s._names.forEach(function(t){e[t]=function(){return e.__proto__[t].apply(e,arguments)}}),e.returnsPromise=!0,e.resolved=e.__proto__.resolved},l=function(e,t){var n=function(e,t){return n.then(e,t)};return n.value=e,n.failed=t,n.__proto__=s._resolved,g||a(n),o._profile&&o._profile(!0),n},r=function(){var e=function(t,n){return e.then(t,n)};m||(i=setTimeout(d,1e9)),++m,o._monitor&&(e.monitor=o._monitor()),e.__proto__=s._unresolved,g||a(e),o._profile&&o._profile(),this.promise=e,this.resolve=this.resolve.bind(this),this.reject=this.reject.bind(this)},r.prototype={resolved:!1,_settle:function(e){var t,n,r,o,i,a;for(this.promise.value=e,this.promise.__proto__=s._resolved,g||(this.promise.resolved=!0),o=this.promise.dependencies,delete this.promise.dependencies;o;){for(t=0;i=o[t];++t)i.value=e,i.failed=this.failed,i.__proto__=s._resolved,g||(i.resolved=!0),delete i.pending,i.dependencies&&(a?h.apply(a,i.dependencies):a=i.dependencies,delete i.dependencies);o=a,a=null}if(r=this.promise.pending){for(t=0;n=r[t];++t)s._onresolve[n].apply(this.promise,r[++t]);delete this.promise.pending}return this.promise},resolve:function(e){if(this.resolved)return this.promise;if(this.resolved=!0,--m||clearTimeout(i),this.promise.monitor&&clearTimeout(this.promise.monitor),e=c(e),p(e)){if(!e.resolved)return e.dependencies||(e.dependencies=[]),e.dependencies.push(this.promise),this.promise.pending?e.pending?(h.apply(e.pending,this.promise.pending),this.promise.pending=e.pending,this.promise.dependencies&&this.promise.dependencies.forEach(function t(n){n.pending=e.pending,n.dependencies&&n.dependencies.forEach(t)})):e.pending=this.promise.pending:e.pending?this.promise.pending=e.pending:this.promise.pending=e.pending=[],this.promise;this.promise.failed=e.failed,e=e.value}return this._settle(e)},reject:function(e){return this.resolved?this.promise:(this.resolved=!0,--m||clearTimeout(i),this.promise.monitor&&clearTimeout(this.promise.monitor),this.promise.failed=!0,this._settle(e))}},t.exports=o=function(e){var t,n,o,i,a=arguments.length;return a?a>1?(t=new r,n=0,i=new Array(a),f.call(arguments,function(e,r){return e=c(e),p(e)?e.resolved?e.failed?(t.reject(e.value),!1):(i[r]=e.value,!0):(++n,e.done(function(e){i[r]=e,!--n&&o&&t.resolve(i)},t.reject),!0):(i[r]=e,!0)}),o=!0,n||t.resolve(i),t.promise):(e=c(e),p(e)?e:l(e,u(e))):new r},o.Deferred=r,o.reject=function(e){return l(e,!0)},o.resolve=function(e){return e=c(e),p(e)?e:l(e,!1)},s=e("./_ext"),c=e("./assimilate")},{"./_ext":2,"./assimilate":3,"./is-promise":31,"es5-ext/error/is-error":43,"es5-ext/function/noop":49}],5:[function(e,t,n){"use strict";var r,o=e("es5-ext/array/from"),i=e("es5-ext/iterable/validate-object"),a=e("es5-ext/object/assign"),s=e("./deferred"),l=e("./is-promise"),c=e("./assimilate");t.exports=r=function(e){return this instanceof r?(e=o(i(e)),a(this,s()),e.every(this.add,this),this.waiting?void(this.initialized=!0):void this.resolve()):new r(e)},r.prototype={waiting:0,initialized:!1,add:function(e){if(this.promise.resolved)throw new Error("Queue was already resolved");if(++this.waiting,e=c(e),l(e)){if(!e.resolved)return e.done(this._processValue.bind(this),this.reject),!0;if(e.failed)return this.reject(e.value),!1}return this._processValue()},_processValue:function(){return this.promise.resolved?void 0:(!--this.waiting&&this.initialized&&this.resolve(),!0)}}},{"./assimilate":3,"./deferred":4,"./is-promise":31,"es5-ext/array/from":36,"es5-ext/iterable/validate-object":51,"es5-ext/object/assign":58}],6:[function(e,t,n){"use strict";var r=e("es5-ext/array/of"),o=e("../deferred"),i=e("../is-promise"),a=e("../assimilate"),s=Array.prototype.push,l=Array.prototype.slice;t.exports=function(e,t){var n,c,u;for(null!=t&&e.length!==t&&(e=l.call(e,0,t),e.length<t&&s.apply(e,new Array(t-e.length))),n=0,c=e.length;c>n;++n)if(u=a(e[n]),i(u)){if(!u.resolved)return c>1?o.apply(null,e):u(r);if(u.failed)return u;e[n]=u.value}return e}},{"../assimilate":3,"../deferred":4,"../is-promise":31,"es5-ext/array/of":39}],7:[function(e,t,n){"use strict";t.exports=e("../../lib/some-every")(!1)},{"../../lib/some-every":32}],8:[function(e,t,n){"use strict";var r,o=e("es5-ext/object/assign"),i=e("es5-ext/object/valid-value"),a=e("es5-ext/object/valid-callable"),s=e("../../deferred"),l=e("../../is-promise"),c=e("../../assimilate"),u=Function.prototype.call,d=s.resolve;r=function(e,t,n){for(this.list=e,this.cb=t,this.context=n,this.length=e.length>>>0;this.current<this.length;){if(this.current in e)return o(this,s()),this.processCb=this.processCb.bind(this),this.process(),this.promise;++this.current}return d(void 0)},r.prototype={current:0,process:function(){var e=c(this.list[this.current]);if(l(e)){if(!e.resolved)return void e.done(this.processCb,this.reject);if(e.failed)return void this.reject(e.value);e=e.value}this.processCb(e)},processCb:function(e){var t;if(this.cb){try{t=u.call(this.cb,this.context,e,this.current,this.list)}catch(n){return void this.reject(n)}if(t=c(t),l(t)){if(!t.resolved)return void t.done(this.processValue.bind(this,e),this.reject);if(t.failed)return void this.reject(t.value);t=t.value}}else t=e;this.processValue(e,t)},processValue:function(e,t){if(t)return void this.resolve(e);for(;++this.current<this.length;)if(this.current in this.list)return void this.process();this.resolve(void 0)}},t.exports=function(e){return i(this),null==e||a(e),new r(this,e,arguments[1])}},{"../../assimilate":3,"../../deferred":4,"../../is-promise":31,"es5-ext/object/assign":58,"es5-ext/object/valid-callable":70,"es5-ext/object/valid-value":72}],9:[function(e,t,n){"use strict";var r,o=e("es5-ext/object/assign"),i=e("es5-ext/object/valid-value"),a=e("es5-ext/object/valid-callable"),s=e("../../deferred"),l=e("../../is-promise"),c=e("../../assimilate"),u=Array.prototype.every,d=Function.prototype.call;r=function(e,t,n){return this.list=e,this.cb=t,this.context=n,this.result=new Array(e.length>>>0),o(this,s()),u.call(e,this.process,this),this.waiting?(this.initialized=!0,this.promise):this.resolve(this.result)},r.prototype={waiting:0,initialized:!1,process:function(e,t){if(++this.waiting,e=c(e),l(e)){if(!e.resolved)return e.done(this.processCb.bind(this,t),this.reject),!0;if(e.failed)return this.reject(e.value),!1;e=e.value}return this.processCb(t,e)},processCb:function(e,t){if(this.promise.resolved)return!1;if(this.cb){try{t=d.call(this.cb,this.context,t,e,this.list)}catch(n){return this.reject(n),!1}if(t=c(t),l(t)){if(!t.resolved)return t.done(this.processValue.bind(this,e),this.reject),!0;if(t.failed)return this.reject(t.value),!1;t=t.value}}return this.processValue(e,t),!0},processValue:function(e,t){this.promise.resolved||(this.result[e]=t,!--this.waiting&&this.initialized&&this.resolve(this.result))}},t.exports=function(e){return i(this),null==e||a(e),new r(this,e,arguments[1])}},{"../../assimilate":3,"../../deferred":4,"../../is-promise":31,"es5-ext/object/assign":58,"es5-ext/object/valid-callable":70,"es5-ext/object/valid-value":72}],10:[function(e,t,n){"use strict";var r,o=e("es5-ext/object/assign"),i=e("es5-ext/object/valid-value"),a=e("es5-ext/object/valid-callable"),s=e("../../deferred"),l=e("../../is-promise"),c=e("../../assimilate"),u=Function.prototype.call,d=Object.prototype.hasOwnProperty,p=s.resolve;r=function(e,t,n,r){if(this.list=e,this.cb=t,this.initialized=r,this.length=e.length>>>0,n=c(n),l(n)){if(!n.resolved)return o(this,s()),n.done(function(e){this.value=e,this.init()}.bind(this),this.reject),this.promise;if(this.value=n.value,n.failed)return n}else this.value=n;return this.init()},r.prototype={current:0,state:!1,init:function(){for(;this.current<this.length&&!d.call(this.list,this.current);)++this.current;if(this.current===this.length){if(!this.initialized)throw new Error("Reduce of empty array with no initial value");return this.resolve?this.resolve(this.value):p(this.value)}return this.promise||o(this,s()),this.processCb=this.processCb.bind(this),this.processValue=this.processValue.bind(this),this["continue"](),this.promise},"continue":function(){for(var e;!this.state&&(e=this.process(),"cb"===this.state)&&(e=this.processCb(e),"value"===this.state);)this.processValue(e)},process:function(){var e=c(this.list[this.current]);if(l(e)){if(!e.resolved)return void e.done(function(e){e=this.processCb(e),"value"===this.state&&(this.processValue(e),this.state||this["continue"]())}.bind(this),this.reject);if(e.failed)return void this.reject(e.value);e=e.value}return this.state="cb",e},processCb:function(e){if(!this.initialized)return this.initialized=!0,this.state="value",e;if(this.cb){try{e=u.call(this.cb,void 0,this.value,e,this.current,this.list)}catch(t){return void this.reject(t)}if(e=c(e),l(e)){if(!e.resolved)return void e.done(function(e){this.state="value",this.processValue(e),this.state||this["continue"]()}.bind(this),this.reject);if(e.failed)return void this.reject(e.value);e=e.value}}return this.state="value",e},processValue:function(e){for(this.value=e;++this.current<this.length;)if(d.call(this.list,this.current))return void(this.state=!1);this.resolve(this.value)}},t.exports=function(e){return i(this),null==e||a(e),new r(this,e,arguments[1],arguments.length>1)}},{"../../assimilate":3,"../../deferred":4,"../../is-promise":31,"es5-ext/object/assign":58,"es5-ext/object/valid-callable":70,"es5-ext/object/valid-value":72}],11:[function(e,t,n){"use strict";t.exports=e("../../lib/some-every")(!0)},{"../../lib/some-every":32}],12:[function(e,t,n){"use strict";var r,o,i=e("es5-ext/array/to-array"),a=e("es5-ext/object/valid-callable"),s=e("../../deferred"),l=e("../../is-promise"),c=e("../_process-arguments"),u=Array.prototype.slice,d=Function.prototype.apply;r=function(e,t,n){t=i(t),d.call(e,this,t.concat(function(e,t){null==e?n.resolve(arguments.length>2?u.call(arguments,1):t):n.reject(e)}))},o=function(e,t,n,o){var i;if(o=c(o,t),l(o))return o.failed?o:(i=s(),o.done(function(t){if(e.returnsPromise)return d.call(e,n,t);try{r.call(n,e,t,i)}catch(o){i.reject(o)}},i.reject),i.promise);if(e.returnsPromise)return d.call(e,n,o);i=s();try{r.call(n,e,o,i)}catch(a){throw i.reject(a),a}return i.promise},t.exports=n=function(e){return o(a(this),null,e,u.call(arguments,1))},Object.defineProperty(n,"_base",{configurable:!0,enumerable:!1,writable:!0,value:o})},{"../../deferred":4,"../../is-promise":31,"../_process-arguments":6,"es5-ext/array/to-array":42,"es5-ext/object/valid-callable":70}],13:[function(e,t,n){"use strict";var r,o=e("es5-ext/object/valid-callable"),i=e("next-tick"),a=e("timers-ext/valid-timeout"),s=e("../../deferred"),l=Function.prototype.apply;r=function(e,t,n,r){var o;try{o=l.call(e,this,t)}catch(i){return void r(i)}n(o)},t.exports=function(e){var t,n,l;return t=o(this),null==e?l=i:(e=a(e),l=setTimeout),n=function(){var n=s();return l(r.bind(this,t,arguments,n.resolve,n.reject),e),n.promise},n.returnsPromise=!0,n}},{"../../deferred":4,"es5-ext/object/valid-callable":70,"next-tick":146,"timers-ext/valid-timeout":291}],14:[function(e,t,n){"use strict";var r,o=e("es5-ext/number/to-pos-integer"),i=e("es5-ext/object/valid-callable"),a=e("event-emitter/unify"),s=e("../../deferred"),l=e("../../is-promise"),c=e("../../assimilate"),u=s.resolve,d=s.reject,p=Function.prototype.apply,f=Math.max;e("../promise/finally"),r=function(){var e=new Error("Too many calls");return e.type="deferred-gate-rejected",d(e)},t.exports=function(e,t){var n,h,m,g,v,b,y;return n=i(this),e=f(o(e),1),t=null==t||isNaN(t)?1/0:o(t),h=0,v=[],b=function(e,t,r){var o;try{o=p.call(n,e,t)}catch(i){return r?(r.reject(i),void g()):d(i)}if(o=c(o),l(o)){if(r&&a(r.promise,o),!o.resolved)return++h,r&&r.resolve(o),o["finally"](m);o=o.value}return r?(r.resolve(o),void g()):u(o)},m=function(){--h,g()},g=function(){var e;(e=v.shift())&&b.apply(null,e)},y=function(){var n;return h>=e?v.length<t?(n=s(),v.push([this,arguments,n]),n.promise):r():b(this,arguments)},y.returnsPromise=!0,y}},{"../../assimilate":3,"../../deferred":4,"../../is-promise":31,"../promise/finally":21,"es5-ext/number/to-pos-integer":56,"es5-ext/object/valid-callable":70,"event-emitter/unify":88}],15:[function(e,t,n){"use strict";var r,o=e("es5-ext/object/valid-callable"),i=e("../../deferred"),a=e("../../is-promise"),s=e("../_process-arguments"),l=Function.prototype.apply;r=function(e,t,n,r){var o;try{o=l.call(e,this,t)}catch(i){return void r(i)}n(o)},t.exports=function(e){var t,n;return t=o(this),t.returnsPromise?t:(null!=e&&(e>>>=0),n=function(){var n,o;if(n=s(arguments,e),a(n)){if(n.failed)return n;o=i(),n.done(function(e){r.call(this,t,e,o.resolve,o.reject)}.bind(this),o.reject)}else o=i(),r.call(this,t,n,o.resolve,o.reject);return o.promise},n.returnsPromise=!0,n)}},{"../../deferred":4,"../../is-promise":31,"../_process-arguments":6,"es5-ext/object/valid-callable":70}],16:[function(e,t,n){"use strict";var r=e("es5-ext/object/valid-callable"),o=e("./call-async")._base;t.exports=function(e){var t,n;return t=r(this),t.returnsPromise?t:(null!=e&&(e>>>=0),n=function(){return o(t,e,this,arguments)},n.returnsPromise=!0,n)}},{"./call-async":12,"es5-ext/object/valid-callable":70}],17:[function(e,t,n){"use strict";var r=e("es5-ext/object/valid-callable"),o=e("../../deferred"),i=o.reject;t.exports=function(e,t){o.extend(e,function(t){var n;return null==t||r(t),this.pending||(this.pending=[]),n=o(),this.pending.push(e,[arguments,n.resolve,n.reject]),n.promise},function(e,n,r){var o;if(this.failed)return void r(this.value);try{o=t.apply(this.value,e)}catch(i){return void r(i)}n(o)},function(e){if(null==e||r(e),this.failed)return this;try{return t.apply(this.value,arguments)}catch(n){return i(n)}})}},{"../../deferred":4,"es5-ext/object/valid-callable":70}],18:[function(e,t,n){"use strict";var r=e("es5-ext/object/valid-callable"),o=e("../../deferred");o.extend("aside",function(e,t){return null==e||r(e),null==t||r(t),(e||t)&&(this.pending||(this.pending=[]),this.pending.push("aside",arguments)),this},function(e,t){var n=this.failed?t:e;n&&n(this.value)},function(e,t){var n;return null==e||r(e),null==t||r(t),n=this.failed?t:e,n&&n(this.value),this})},{"../../deferred":4,"es5-ext/object/valid-callable":70}],19:[function(e,t,n){"use strict";var r=e("es5-ext/object/is-callable"),o=e("es5-ext/object/valid-value"),i=e("../../deferred"),a=e("../../is-promise"),s=i.resolve,l=i.reject;i.extend("catch",function(e){var t;return o(e),this.pending||(this.pending=[]),t=i(),this.pending.push("catch",[e,t.resolve,t.reject]),t.promise},function(e,t,n){var o;if(!this.failed)return void t(this.value);if(r(e)){if(a(e))return void(e.resolved?e.failed?n(e.value):t(e.value):e.done(t,n));try{o=e(this.value)}catch(i){return void n(i)}return void t(o)}t(e)},function(e){var t;if(o(e),!this.failed)return this;if(r(e)){if(a(e))return e;try{t=e(this.value)}catch(n){return l(n)}return s(t)}return s(e)})},{"../../deferred":4,"../../is-promise":31,"es5-ext/object/is-callable":63,"es5-ext/object/valid-value":72}],20:[function(e,t,n){"use strict";var r=e("es5-ext/object/valid-callable"),o=e("next-tick"),i=e("../../deferred");i.extend("cb",function(e){return null==e?this:(r(e),o(function(){this.resolved?this.failed?e(this.value):e(null,this.value):(this.pending||(this.pending=[]),this.pending.push("cb",[e]))}.bind(this)),this)},function(e){this.failed?e(this.value):e(null,this.value)},function(e){return null==e?this:(r(e),o(function(){this.failed?e(this.value):e(null,this.value)}.bind(this)),this)})},{"../../deferred":4,"es5-ext/object/valid-callable":70,"next-tick":146}],21:[function(e,t,n){"use strict";var r=e("es5-ext/object/valid-callable"),o=e("../../deferred");o.extend("finally",function(e){return r(e),this.pending||(this.pending=[]),this.pending.push("finally",arguments),this},function(e){e()},function(e){return r(e)(),this})},{"../../deferred":4,"es5-ext/object/valid-callable":70}],22:[function(e,t,n){"use strict";var r=e("es5-ext/object/valid-value"),o=e("../../deferred"),i=Array.prototype.reduce,a=o.resolve,s=o.reject;o.extend("get",function(){var e;return this.pending||(this.pending=[]),e=o(),this.pending.push("get",[arguments,e.resolve,e.reject]),e.promise},function(e,t,n){var o;this.failed&&n(this.value);try{o=i.call(e,function(e,t){return r(e)[String(t)]},this.value)}catch(a){return void n(a)}t(o)},function(){var e;if(this.failed)return this;try{e=i.call(arguments,function(e,t){return r(e)[String(t)]},this.value)}catch(t){return s(t)}return a(e)})},{"../../deferred":4,"es5-ext/object/valid-value":72}],23:[function(e,t,n){"use strict";var r,o=e("es5-ext/array/to-array"),i=e("es5-ext/object/is-callable"),a=e("../../deferred"),s=e("../../is-promise"),l=e("../_process-arguments"),c=Array.prototype.slice,u=Function.prototype.apply,d=a.reject;r=function(e,t,n,r){var i;if(e.returnsPromise){try{i=u.call(e,this,t)}catch(a){return void r(a)}return n(i)}t=o(t).concat(function(e,t){null==e?n(arguments.length>2?c.call(arguments,1):t):r(e)});try{u.call(e,this,t)}catch(s){r(s)}},a.extend("invokeAsync",function(e){var t;return this.pending||(this.pending=[]),t=a(),this.pending.push("invokeAsync",[arguments,t.resolve,t.reject]),t.promise},function(e,t,n){var o;if(this.failed)return void n(this.value);if(null==this.value)return void n(new TypeError("Cannot use null or undefined"));if(o=e[0],!i(o)){if(o=String(o),!i(this.value[o]))return void n(new TypeError(o+" is not a function"));o=this.value[o]}if(e=l(c.call(e,1)),s(e)){if(e.failed)return void n(e.value);e.done(function(e){r.call(this,o,e,t,n)}.bind(this.value),n)}else r.call(this.value,o,e,t,n)},function(e){var t,n;if(this.failed)return this;if(null==this.value)return d(new TypeError("Cannot use null or undefined"));if(!i(e)){if(e=String(e),!i(this.value[e]))return d(new TypeError(e+" is not a function"));e=this.value[e]}if(t=l(c.call(arguments,1)),s(t)){if(t.failed)return t;n=a(),t.done(function(t){r.call(this,e,t,n.resolve,n.reject)}.bind(this.value),n.reject)}else{if(e.returnsPromise)return r.call(this.value,e,t,a,d);n=a(),r.call(this.value,e,t,n.resolve,n.reject)}return n.promise})},{"../../deferred":4,"../../is-promise":31,"../_process-arguments":6,"es5-ext/array/to-array":42,"es5-ext/object/is-callable":63}],24:[function(e,t,n){"use strict";var r,o=e("es5-ext/object/is-callable"),i=e("../../deferred"),a=e("../../is-promise"),s=e("../_process-arguments"),l=Array.prototype.slice,c=Function.prototype.apply,u=i.reject;r=function(e,t,n,r){var o;try{o=c.call(e,this,t)}catch(i){return r(i)}return n(o)},i.extend("invoke",function(e){var t;return this.pending||(this.pending=[]),t=i(),this.pending.push("invoke",[arguments,t.resolve,t.reject]),t.promise},function(e,t,n){var i;if(this.failed)return void n(this.value);if(null==this.value)return void n(new TypeError("Cannot use null or undefined"));if(i=e[0],!o(i)){if(i=String(i),!o(this.value[i]))return void n(new TypeError(i+" is not a function"));i=this.value[i]}if(e=s(l.call(e,1)),a(e)){if(e.failed)return void n(e.value);e.done(function(e){r.call(this,i,e,t,n)}.bind(this.value),n)}else r.call(this.value,i,e,t,n)},function(e){var t,n;if(this.failed)return this;if(null==this.value)return u(new TypeError("Cannot use null or undefined"));if(!o(e)){if(e=String(e),!o(this.value[e]))return u(new TypeError(e+" is not a function"));e=this.value[e]}return t=s(l.call(arguments,1)),a(t)?t.failed?t:(n=i(),t.done(function(t){r.call(this,e,t,n.resolve,n.reject)}.bind(this.value),n.reject),n.promise):r.call(this.value,e,t,i,u)})},{"../../deferred":4,"../../is-promise":31,"../_process-arguments":6,"es5-ext/object/is-callable":63}],25:[function(e,t,n){"use strict";e("./_array")("map",e("../array/map"))},{"../array/map":9,"./_array":17}],26:[function(e,t,n){"use strict";e("./_array")("reduce",e("../array/reduce"))},{"../array/reduce":10,"./_array":17}],27:[function(e,t,n){"use strict";e("./_array")("some",e("../array/some"))},{"../array/some":11,"./_array":17}],28:[function(e,t,n){"use strict";var r=e("es5-ext/function/#/spread"),o=e("es5-ext/object/valid-callable"),i=e("es5-ext/object/is-callable"),a=e("../../is-promise"),s=e("../../deferred"),l=s.resolve,c=s.reject;s.extend("spread",function(e,t){var n;return null==e||o(e),e||null!=t?(this.pending||(this.pending=[]),n=s(),this.pending.push("spread",[e,t,n.resolve,n.reject]),n.promise):this},function(e,t,n,o){var s,l;if(s=this.failed?t:e,null==s&&(this.failed?o(this.value):n(this.value)),i(s)){if(a(s))return void(s.resolved?s.failed?o(s.value):n(s.value):s.done(n,o));this.failed||(s=r.call(s));try{l=s(this.value)}catch(c){return void o(c)}n(l)}else n(s)},function(e,t){var n,o;if(n=this.failed?t:e,null==n)return this;if(i(n)){if(a(n))return n;this.failed||(n=r.call(n));try{o=n(this.value)}catch(s){return c(s)}return l(o)}return l(n)})},{"../../deferred":4,"../../is-promise":31,"es5-ext/function/#/spread":45,"es5-ext/object/is-callable":63,"es5-ext/object/valid-callable":70}],29:[function(e,t,n){"use strict";var r=Function.prototype.call,o=e("es5-ext/object/assign");t.exports=o(e("./deferred"),{invokeAsync:e("./invoke-async"),isPromise:e("./is-promise"),dynamicQueue:e("./dynamic-queue"),validPromise:e("./valid-promise"),callAsync:r.bind(e("./ext/function/call-async")),delay:r.bind(e("./ext/function/delay")),gate:r.bind(e("./ext/function/gate")),monitor:e("./monitor"),promisify:r.bind(e("./ext/function/promisify")),promisifySync:r.bind(e("./ext/function/promisify-sync")),every:r.bind(e("./ext/array/every")),find:r.bind(e("./ext/array/find")),map:r.bind(e("./ext/array/map")),reduce:r.bind(e("./ext/array/reduce")),some:r.bind(e("./ext/array/some"))},e("./profiler")),e("./ext/promise/aside"),e("./ext/promise/catch"),e("./ext/promise/cb"),e("./ext/promise/finally"),e("./ext/promise/get"),e("./ext/promise/invoke"),e("./ext/promise/invoke-async"),e("./ext/promise/map"),e("./ext/promise/spread"),e("./ext/promise/some"),e("./ext/promise/reduce")},{"./deferred":4,"./dynamic-queue":5,"./ext/array/every":7,"./ext/array/find":8,"./ext/array/map":9,"./ext/array/reduce":10,"./ext/array/some":11,"./ext/function/call-async":12,"./ext/function/delay":13,"./ext/function/gate":14,"./ext/function/promisify":16,"./ext/function/promisify-sync":15,"./ext/promise/aside":18,"./ext/promise/catch":19,"./ext/promise/cb":20,"./ext/promise/finally":21,"./ext/promise/get":22,"./ext/promise/invoke":24,"./ext/promise/invoke-async":23,"./ext/promise/map":25,"./ext/promise/reduce":26,"./ext/promise/some":27,"./ext/promise/spread":28,"./invoke-async":30,"./is-promise":31,"./monitor":33,"./profiler":34,"./valid-promise":35,"es5-ext/object/assign":58}],30:[function(e,t,n){"use strict";var r=e("es5-ext/object/is-callable"),o=e("es5-ext/object/valid-callable"),i=e("es5-ext/object/valid-value"),a=e("./ext/function/call-async")._base,s=Array.prototype.slice;t.exports=function(e,t){return i(e),r(t)||(t=o(e[t])),a(t,null,e,s.call(arguments,2))}},{"./ext/function/call-async":12,"es5-ext/object/is-callable":63,"es5-ext/object/valid-callable":70,"es5-ext/object/valid-value":72}],31:[function(e,t,n){"use strict";t.exports=function(e){return"function"==typeof e&&"function"==typeof e.then&&e.end!==e.done}},{}],32:[function(e,t,n){"use strict";var r=e("es5-ext/object/assign"),o=e("es5-ext/object/valid-value"),i=e("es5-ext/object/valid-callable"),a=e("../deferred"),s=e("../is-promise"),l=e("../assimilate"),c=Function.prototype.call,u=a.resolve;t.exports=function(e){var t=function(t,n,o){for(this.list=t,this.cb=n,this.context=o,this.length=t.length>>>0;this.current<this.length;){if(this.current in t)return r(this,a()),this.processCb=this.processCb.bind(this),this.processValue=this.processValue.bind(this),this["continue"](),this.promise;++this.current}return u(!e)};return t.prototype={current:0,state:!1,"continue":function(){for(var e;!this.state&&(e=this.process(),"cb"===this.state)&&(e=this.processCb(e),"value"===this.state);)this.processValue(e)},process:function(){var e=l(this.list[this.current]);if(s(e)){if(!e.resolved)return void e.done(function(e){e=this.processCb(e),"value"===this.state&&(this.processValue(e),this.state||this["continue"]())}.bind(this),this.reject);if(e.failed)return void this.reject(e.value);e=e.value}return this.state="cb",e},processCb:function(e){if(this.cb){try{e=c.call(this.cb,this.context,e,this.current,this.list)}catch(t){return void this.reject(t)}if(e=l(e),s(e)){if(!e.resolved)return void e.done(function(e){this.state="value",this.processValue(e),this.state||this["continue"]()}.bind(this),this.reject);if(e.failed)return void this.reject(e.value);e=e.value}}return this.state="value",e},processValue:function(t){if(Boolean(t)===e)return void this.resolve(e);for(;++this.current<this.length;)if(this.current in this.list)return void(this.state=!1);this.resolve(!e)}},function(e){return o(this),null==e||i(e),new t(this,e,arguments[1])}}},{"../assimilate":3,"../deferred":4,"../is-promise":31,"es5-ext/object/assign":58,"es5-ext/object/valid-callable":70,"es5-ext/object/valid-value":72}],33:[function(e,t,n){"use strict";var r=Math.max,o=e("es5-ext/object/valid-callable"),i=e("es5-ext/object/is-callable"),a=e("es5-ext/number/to-pos-integer"),s=e("./deferred");n=t.exports=function(e,t){return e===!1?(delete s._monitor,delete n.timeout,void delete n.callback):(n.timeout=e=r(a(e)||5e3,50),null==t?"undefined"!=typeof console&&console&&i(console.error)&&(t=function(e){console.error(e.stack&&e.stack.toString()||"Unresolved promise: no stack available")}):o(t),n.callback=t,void(s._monitor=function(){var n=new Error("Unresolved promise");return setTimeout(function(){t&&t(n)},e)}))}},{"./deferred":4,"es5-ext/number/to-pos-integer":56,"es5-ext/object/is-callable":63,"es5-ext/object/valid-callable":70}],34:[function(e,t,n){"use strict";var r,o,i,a,s,l=e("es5-ext/function/#/partial"),c=e("es5-ext/object/for-each"),u=e("es5-ext/string/#/pad"),d=e("./deferred");n.profile=function(){r=0,o={},i=0,a={},d._profile=s},s=function(e){var t,n;e?(++r,n=o):(++i,n=a),t=(new Error).stack,t.split("\n").slice(3).some(function(e){return-1===e.search(/[\/\\]deferred[\/\\]/)&&-1===e.search(/[\/\\]es5-ext[\/\\]/)&&-1===e.indexOf(" (native)")?(e=e.replace(/\n/g,"\\n").trim(),n[e]||(n[e]={count:0}),++n[e].count,!0):void 0})||(n.unknown||(n.unknown={count:0,stack:t}),++n.unknown.count)},n.profileEnd=function(){var e,t,n="";if(!d._profile)throw new Error("Deferred profiler was not initialized");return delete d._profile,n+="------------------------------------------------------------\n",n+="Deferred usage statistics:\n\n",e=String(r+i),t=l.call(u," ",e.length),n+=e+" Total promises initialized\n",n+=t.call(i)+" Initialized as Unresolved\n",n+=t.call(r)+" Initialized as Resolved\n",i&&(n+="\nUnresolved promises were initialized at:\n",c(a,function(e,r){n+=t.call(e.count)+" "+r+"\n"},null,function(e,t){return this[t].count-this[e].count})),r&&(n+="\nResolved promises were initialized at:\n",c(o,function(e,r){n+=t.call(e.count)+" "+r+"\n"},null,function(e,t){return this[t].count-this[e].count})),n+="------------------------------------------------------------\n",{log:n,resolved:{count:r,stats:o},unresolved:{count:i,stats:a}}}},{"./deferred":4,"es5-ext/function/#/partial":44,"es5-ext/object/for-each":61,"es5-ext/string/#/pad":76}],35:[function(e,t,n){"use strict";var r=e("./is-promise");t.exports=function(e){if(!r(e))throw new TypeError(e+" is not a promise object");return e}},{"./is-promise":31}],36:[function(e,t,n){"use strict";t.exports=e("./is-implemented")()?Array.from:e("./shim")},{"./is-implemented":37,"./shim":38}],37:[function(e,t,n){"use strict";t.exports=function(){var e,t,n=Array.from;return"function"!=typeof n?!1:(e=["raz","dwa"],t=n(e),Boolean(t&&t!==e&&"dwa"===t[1]))}},{}],38:[function(e,t,n){"use strict";var r=e("es6-symbol").iterator,o=e("../../function/is-arguments"),i=e("../../function/is-function"),a=e("../../number/to-pos-integer"),s=e("../../object/valid-callable"),l=e("../../object/valid-value"),c=e("../../string/is-string"),u=Array.isArray,d=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},f=Object.defineProperty;t.exports=function(e){var t,n,h,m,g,v,b,y,E,C,w=arguments[1],N=arguments[2];if(e=Object(l(e)),null!=w&&s(w), this&&this!==Array&&i(this))t=this;else{if(!w){if(o(e))return g=e.length,1!==g?Array.apply(null,e):(m=new Array(1),m[0]=e[0],m);if(u(e)){for(m=new Array(g=e.length),n=0;g>n;++n)m[n]=e[n];return m}}m=[]}if(!u(e))if(void 0!==(E=e[r])){for(b=s(E).call(e),t&&(m=new t),y=b.next(),n=0;!y.done;)C=w?d.call(w,N,y.value,n):y.value,t?(p.value=C,f(m,n,p)):m[n]=C,y=b.next(),++n;g=n}else if(c(e)){for(g=e.length,t&&(m=new t),n=0,h=0;g>n;++n)C=e[n],g>n+1&&(v=C.charCodeAt(0),v>=55296&&56319>=v&&(C+=e[++n])),C=w?d.call(w,N,C,h):C,t?(p.value=C,f(m,h,p)):m[h]=C,++h;g=h}if(void 0===g)for(g=a(e.length),t&&(m=new t(g)),n=0;g>n;++n)C=w?d.call(w,N,e[n],n):e[n],t?(p.value=C,f(m,n,p)):m[n]=C;return t&&(p.value=null,m.length=g),m}},{"../../function/is-arguments":47,"../../function/is-function":48,"../../number/to-pos-integer":56,"../../object/valid-callable":70,"../../object/valid-value":72,"../../string/is-string":80,"es6-symbol":82}],39:[function(e,t,n){"use strict";t.exports=e("./is-implemented")()?Array.of:e("./shim")},{"./is-implemented":40,"./shim":41}],40:[function(e,t,n){"use strict";t.exports=function(){var e,t=Array.of;return"function"!=typeof t?!1:(e=t("foo","bar"),Boolean(e&&"bar"===e[1]))}},{}],41:[function(e,t,n){"use strict";var r=e("../../function/is-function"),o=Array.prototype.slice,i=Object.defineProperty,a={configurable:!0,enumerable:!0,writable:!0,value:null};t.exports=function(){var e,t,n;if(!this||this===Array||!r(this))return o.call(arguments);for(e=new this(n=arguments.length),t=0;n>t;++t)a.value=arguments[t],i(e,t,a);return a.value=null,e.length=n,e}},{"../../function/is-function":48}],42:[function(e,t,n){"use strict";var r=e("./from"),o=Array.isArray;t.exports=function(e){return o(e)?e:r(e)}},{"./from":36}],43:[function(e,t,n){"use strict";var r=Object.prototype.toString,o=r.call(new Error);t.exports=function(e){return e&&(e instanceof Error||r.call(e)===o)||!1}},{}],44:[function(e,t,n){"use strict";var r=e("../../object/valid-callable"),o=e("../../array/from"),i=e("../_define-length"),a=Function.prototype.apply;t.exports=function(){var e=r(this),t=o(arguments);return i(function(){return a.call(e,this,t.concat(o(arguments)))},e.length-t.length)}},{"../../array/from":36,"../../object/valid-callable":70,"../_define-length":46}],45:[function(e,t,n){"use strict";var r=e("../../object/valid-callable"),o=Function.prototype.apply;t.exports=function(){var e=r(this);return function(t){return o.call(e,this,t)}}},{"../../object/valid-callable":70}],46:[function(e,t,n){"use strict";var r,o,i,a,s=e("../number/to-pos-integer"),l=function(e,t){};try{Object.defineProperty(l,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch(c){}1===l.length?(r={configurable:!0,writable:!1,enumerable:!1},o=Object.defineProperty,t.exports=function(e,t){return t=s(t),e.length===t?e:(r.value=t,o(e,"length",r))}):(a=e("../object/mixin"),i=function(){var e=[];return function(t){var n,r=0;if(e[t])return e[t];for(n=[];t--;)n.push("a"+(++r).toString(36));return new Function("fn","return function ("+n.join(", ")+") { return fn.apply(this, arguments); };")}}(),t.exports=function(e,t){var n;if(t=s(t),e.length===t)return e;n=i(t)(e);try{a(n,e)}catch(r){}return n})},{"../number/to-pos-integer":56,"../object/mixin":68}],47:[function(e,t,n){"use strict";var r=Object.prototype.toString,o=r.call(function(){return arguments}());t.exports=function(e){return r.call(e)===o}},{}],48:[function(e,t,n){"use strict";var r=Object.prototype.toString,o=r.call(e("./noop"));t.exports=function(e){return"function"==typeof e&&r.call(e)===o}},{"./noop":49}],49:[function(e,t,n){"use strict";t.exports=function(){}},{}],50:[function(e,t,n){"use strict";var r=e("es6-symbol").iterator,o=e("../object/is-array-like");t.exports=function(e){return null==e?!1:"function"==typeof e[r]?!0:o(e)}},{"../object/is-array-like":62,"es6-symbol":82}],51:[function(e,t,n){"use strict";var r=e("../object/is-object"),o=e("./is");t.exports=function(e){if(o(e)&&r(e))return e;throw new TypeError(e+" is not an iterable or array-like object")}},{"../object/is-object":64,"./is":50}],52:[function(e,t,n){"use strict";t.exports=e("./is-implemented")()?Math.sign:e("./shim")},{"./is-implemented":53,"./shim":54}],53:[function(e,t,n){"use strict";t.exports=function(){var e=Math.sign;return"function"!=typeof e?!1:1===e(10)&&-1===e(-20)}},{}],54:[function(e,t,n){"use strict";t.exports=function(e){return e=Number(e),isNaN(e)||0===e?e:e>0?1:-1}},{}],55:[function(e,t,n){"use strict";var r=e("../math/sign"),o=Math.abs,i=Math.floor;t.exports=function(e){return isNaN(e)?0:(e=Number(e),0!==e&&isFinite(e)?r(e)*i(o(e)):e)}},{"../math/sign":52}],56:[function(e,t,n){"use strict";var r=e("./to-integer"),o=Math.max;t.exports=function(e){return o(0,r(e))}},{"./to-integer":55}],57:[function(e,t,n){"use strict";var r=e("./valid-callable"),o=e("./valid-value"),i=Function.prototype.bind,a=Function.prototype.call,s=Object.keys,l=Object.prototype.propertyIsEnumerable;t.exports=function(e,t){return function(n,c){var u,d=arguments[2],p=arguments[3];return n=Object(o(n)),r(c),u=s(n),p&&u.sort("function"==typeof p?i.call(p,n):void 0),"function"!=typeof e&&(e=u[e]),a.call(e,u,function(e,r){return l.call(n,e)?a.call(c,d,n[e],e,n,r):t})}}},{"./valid-callable":70,"./valid-value":72}],58:[function(e,t,n){"use strict";t.exports=e("./is-implemented")()?Object.assign:e("./shim")},{"./is-implemented":59,"./shim":60}],59:[function(e,t,n){"use strict";t.exports=function(){var e,t=Object.assign;return"function"!=typeof t?!1:(e={foo:"raz"},t(e,{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},{}],60:[function(e,t,n){"use strict";var r=e("../keys"),o=e("../valid-value"),i=Math.max;t.exports=function(e,t){var n,a,s,l=i(arguments.length,2);for(e=Object(o(e)),s=function(r){try{e[r]=t[r]}catch(o){n||(n=o)}},a=1;l>a;++a)t=arguments[a],r(t).forEach(s);if(void 0!==n)throw n;return e}},{"../keys":65,"../valid-value":72}],61:[function(e,t,n){"use strict";t.exports=e("./_iterate")("forEach")},{"./_iterate":57}],62:[function(e,t,n){"use strict";var r=e("../function/is-function"),o=e("./is-object");t.exports=function(e){return null!=e&&"number"==typeof e.length&&(o(e)&&!r(e)||"string"==typeof e)||!1}},{"../function/is-function":48,"./is-object":64}],63:[function(e,t,n){"use strict";t.exports=function(e){return"function"==typeof e}},{}],64:[function(e,t,n){"use strict";var r={"function":!0,object:!0};t.exports=function(e){return null!=e&&r[typeof e]||!1}},{}],65:[function(e,t,n){"use strict";t.exports=e("./is-implemented")()?Object.keys:e("./shim")},{"./is-implemented":66,"./shim":67}],66:[function(e,t,n){"use strict";t.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},{}],67:[function(e,t,n){"use strict";var r=Object.keys;t.exports=function(e){return r(null==e?e:Object(e))}},{}],68:[function(e,t,n){"use strict";var r=e("./valid-value"),o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames;t.exports=function(e,t){var n;if(e=Object(r(e)),a(Object(r(t))).forEach(function(r){try{o(e,r,i(t,r))}catch(a){n=a}}),void 0!==n)throw n;return e}},{"./valid-value":72}],69:[function(e,t,n){"use strict";var r=Array.prototype.forEach,o=Object.create,i=function(e,t){var n;for(n in e)t[n]=e[n]};t.exports=function(e){var t=o(null);return r.call(arguments,function(e){null!=e&&i(Object(e),t)}),t}},{}],70:[function(e,t,n){"use strict";t.exports=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}},{}],71:[function(e,t,n){"use strict";var r=e("./is-object");t.exports=function(e){if(!r(e))throw new TypeError(e+" is not an Object");return e}},{"./is-object":64}],72:[function(e,t,n){"use strict";t.exports=function(e){if(null==e)throw new TypeError("Cannot use null or undefined");return e}},{}],73:[function(e,t,n){"use strict";t.exports=e("./is-implemented")()?String.prototype.contains:e("./shim")},{"./is-implemented":74,"./shim":75}],74:[function(e,t,n){"use strict";var r="razdwatrzy";t.exports=function(){return"function"!=typeof r.contains?!1:r.contains("dwa")===!0&&r.contains("foo")===!1}},{}],75:[function(e,t,n){"use strict";var r=String.prototype.indexOf;t.exports=function(e){return r.call(this,e,arguments[1])>-1}},{}],76:[function(e,t,n){"use strict";var r=e("../../number/to-integer"),o=e("../../object/valid-value"),i=e("./repeat"),a=Math.abs,s=Math.max;t.exports=function(e){var t=String(o(this)),n=t.length,l=arguments[1];return l=isNaN(l)?1:r(l),e=i.call(String(e),a(l)),l>=0?e.slice(0,s(0,l-n))+t:t+(n+l>=0?"":e.slice(l+n))}},{"../../number/to-integer":55,"../../object/valid-value":72,"./repeat":77}],77:[function(e,t,n){"use strict";t.exports=e("./is-implemented")()?String.prototype.repeat:e("./shim")},{"./is-implemented":78,"./shim":79}],78:[function(e,t,n){"use strict";var r="foo";t.exports=function(){return"function"!=typeof r.repeat?!1:"foofoo"===r.repeat(2)}},{}],79:[function(e,t,n){"use strict";var r=e("../../../object/valid-value"),o=e("../../../number/to-integer");t.exports=function(e){var t,n=String(r(this));if(e=o(e),0>e)throw new RangeError("Count must be >= 0");if(!isFinite(e))throw new RangeError("Count must be < ∞");if(t="",!e)return t;for(;;){if(1&e&&(t+=n),e>>>=1,0>=e)break;n+=n}return t}},{"../../../number/to-integer":55,"../../../object/valid-value":72}],80:[function(e,t,n){"use strict";var r=Object.prototype.toString,o=r.call("");t.exports=function(e){return"string"==typeof e||e&&"object"==typeof e&&(e instanceof String||r.call(e)===o)||!1}},{}],81:[function(e,t,n){(function(n,r){(function(){"use strict";function o(e){return"function"==typeof e||"object"==typeof e&&null!==e}function i(e){return"function"==typeof e}function a(e){H=e}function s(e){Q=e}function l(){return function(){n.nextTick(f)}}function c(){return function(){J(f)}}function u(){var e=0,t=new te(f),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function d(){var e=new MessageChannel;return e.port1.onmessage=f,function(){e.port2.postMessage(0)}}function p(){return function(){setTimeout(f,1)}}function f(){for(var e=0;$>e;e+=2){var t=oe[e],n=oe[e+1];t(n),oe[e]=void 0,oe[e+1]=void 0}$=0}function h(){try{var t=e,n=t("vertx");return J=n.runOnLoop||n.runOnContext,c()}catch(r){return p()}}function m(e,t){var n=this,r=new this.constructor(v);void 0===r[se]&&M(r);var o=n._state;if(o){var i=arguments[o-1];Q(function(){R(o,r,i,n._result)})}else S(n,r,e,t);return r}function g(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(v);return _(n,e),n}function v(){}function b(){return new TypeError("You cannot resolve a promise with itself")}function y(){return new TypeError("A promises callback cannot return that same promise.")}function E(e){try{return e.then}catch(t){return de.error=t,de}}function C(e,t,n,r){try{e.call(t,n,r)}catch(o){return o}}function w(e,t,n){Q(function(e){var r=!1,o=C(n,t,function(n){r||(r=!0,t!==n?_(e,n):T(e,n))},function(t){r||(r=!0,O(e,t))},"Settle: "+(e._label||" unknown promise"));!r&&o&&(r=!0,O(e,o))},e)}function N(e,t){t._state===ce?T(e,t._result):t._state===ue?O(e,t._result):S(t,void 0,function(t){_(e,t)},function(t){O(e,t)})}function x(e,t,n){t.constructor===e.constructor&&n===ie&&constructor.resolve===ae?N(e,t):n===de?O(e,de.error):void 0===n?T(e,t):i(n)?w(e,t,n):T(e,t)}function _(e,t){e===t?O(e,b()):o(t)?x(e,t,E(t)):T(e,t)}function D(e){e._onerror&&e._onerror(e._result),j(e)}function T(e,t){e._state===le&&(e._result=t,e._state=ce,0!==e._subscribers.length&&Q(j,e))}function O(e,t){e._state===le&&(e._state=ue,e._result=t,Q(D,e))}function S(e,t,n,r){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+ce]=n,o[i+ue]=r,0===i&&e._state&&Q(j,e)}function j(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r,o,i=e._result,a=0;a<t.length;a+=3)r=t[a],o=t[a+n],r?R(n,r,o,i):o(i);e._subscribers.length=0}}function I(){this.error=null}function k(e,t){try{return e(t)}catch(n){return pe.error=n,pe}}function R(e,t,n,r){var o,a,s,l,c=i(n);if(c){if(o=k(n,r),o===pe?(l=!0,a=o.error,o=null):s=!0,t===o)return void O(t,y())}else o=r,s=!0;t._state!==le||(c&&s?_(t,o):l?O(t,a):e===ce?T(t,o):e===ue&&O(t,o))}function L(e,t){try{t(function(t){_(e,t)},function(t){O(e,t)})}catch(n){O(e,n)}}function P(){return fe++}function M(e){e[se]=fe++,e._state=void 0,e._result=void 0,e._subscribers=[]}function A(e){return new be(this,e).promise}function V(e){var t=this;return new t(Y(e)?function(n,r){for(var o=e.length,i=0;o>i;i++)t.resolve(e[i]).then(n,r)}:function(e,t){t(new TypeError("You must pass an array to race."))})}function U(e){var t=this,n=new t(v);return O(n,e),n}function Z(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function F(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function q(e){this[se]=P(),this._result=this._state=void 0,this._subscribers=[],v!==e&&("function"!=typeof e&&Z(),this instanceof q?L(this,e):F())}function B(e,t){this._instanceConstructor=e,this.promise=new e(v),this.promise[se]||M(this.promise),Y(t)?(this._input=t,this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?T(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&T(this.promise,this._result))):O(this.promise,z())}function z(){return new Error("Array Methods must be provided an Array")}function W(){var e;if("undefined"!=typeof r)e=r;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=e.Promise;n&&"[object Promise]"===Object.prototype.toString.call(n.resolve())&&!n.cast||(e.Promise=ve)}var K;K=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var J,H,G,Y=K,$=0,Q=function(e,t){oe[$]=e,oe[$+1]=t,$+=2,2===$&&(H?H(f):G())},X="undefined"!=typeof window?window:void 0,ee=X||{},te=ee.MutationObserver||ee.WebKitMutationObserver,ne="undefined"==typeof self&&"undefined"!=typeof n&&"[object process]"==={}.toString.call(n),re="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,oe=new Array(1e3);G=ne?l():te?u():re?d():void 0===X&&"function"==typeof e?h():p();var ie=m,ae=g,se=Math.random().toString(36).substring(16),le=void 0,ce=1,ue=2,de=new I,pe=new I,fe=0,he=A,me=V,ge=U,ve=q;q.all=he,q.race=me,q.resolve=ae,q.reject=ge,q._setScheduler=a,q._setAsap=s,q._asap=Q,q.prototype={constructor:q,then:ie,"catch":function(e){return this.then(null,e)}};var be=B;B.prototype._enumerate=function(){for(var e=this.length,t=this._input,n=0;this._state===le&&e>n;n++)this._eachEntry(t[n],n)},B.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===ae){var o=E(e);if(o===ie&&e._state!==le)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(n===ve){var i=new n(v);x(i,e,o),this._willSettleAt(i,t)}else this._willSettleAt(new n(function(t){t(e)}),t)}else this._willSettleAt(r(e),t)},B.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===le&&(this._remaining--,e===ue?O(r,n):this._result[t]=n),0===this._remaining&&T(r,this._result)},B.prototype._willSettleAt=function(e,t){var n=this;S(e,void 0,function(e){n._settledAt(ce,t,e)},function(e){n._settledAt(ue,t,e)})};var ye=W,Ee={Promise:ve,polyfill:ye};"function"==typeof define&&define.amd?define(function(){return Ee}):"undefined"!=typeof t&&t.exports?t.exports=Ee:"undefined"!=typeof this&&(this.ES6Promise=Ee),ye()}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:148}],82:[function(e,t,n){"use strict";t.exports=e("./is-implemented")()?Symbol:e("./polyfill")},{"./is-implemented":83,"./polyfill":85}],83:[function(e,t,n){"use strict";t.exports=function(){var e;if("function"!=typeof Symbol)return!1;e=Symbol("test symbol");try{String(e)}catch(t){return!1}return"symbol"==typeof Symbol.iterator?!0:"object"!=typeof Symbol.isConcatSpreadable?!1:"object"!=typeof Symbol.iterator?!1:"object"!=typeof Symbol.toPrimitive?!1:"object"!=typeof Symbol.toStringTag?!1:"object"==typeof Symbol.unscopables}},{}],84:[function(e,t,n){"use strict";t.exports=function(e){return e&&("symbol"==typeof e||"Symbol"===e["@@toStringTag"])||!1}},{}],85:[function(e,t,n){"use strict";var r,o,i,a=e("d"),s=e("./validate-symbol"),l=Object.create,c=Object.defineProperties,u=Object.defineProperty,d=Object.prototype,p=l(null);"function"==typeof Symbol&&(r=Symbol);var f=function(){var e=l(null);return function(t){for(var n,r,o=0;e[t+(o||"")];)++o;return t+=o||"",e[t]=!0,n="@@"+t,u(d,n,a.gs(null,function(e){r||(r=!0,u(this,n,a(e)),r=!1)})),n}}();i=function(e){if(this instanceof i)throw new TypeError("TypeError: Symbol is not a constructor");return o(e)},t.exports=o=function h(e){var t;if(this instanceof h)throw new TypeError("TypeError: Symbol is not a constructor");return t=l(i.prototype),e=void 0===e?"":String(e),c(t,{__description__:a("",e),__name__:a("",f(e))})},c(o,{"for":a(function(e){return p[e]?p[e]:p[e]=o(String(e))}),keyFor:a(function(e){var t;s(e);for(t in p)if(p[t]===e)return t}),hasInstance:a("",r&&r.hasInstance||o("hasInstance")),isConcatSpreadable:a("",r&&r.isConcatSpreadable||o("isConcatSpreadable")),iterator:a("",r&&r.iterator||o("iterator")),match:a("",r&&r.match||o("match")),replace:a("",r&&r.replace||o("replace")),search:a("",r&&r.search||o("search")),species:a("",r&&r.species||o("species")),split:a("",r&&r.split||o("split")),toPrimitive:a("",r&&r.toPrimitive||o("toPrimitive")),toStringTag:a("",r&&r.toStringTag||o("toStringTag")),unscopables:a("",r&&r.unscopables||o("unscopables"))}),c(i.prototype,{constructor:a(o),toString:a("",function(){return this.__name__})}),c(o.prototype,{toString:a(function(){return"Sy