Current File : //home/tradevaly/www/node_modules/collect.js/build/collect.min.js
var collect=function(t){var r={};function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var i in t)e.d(n,i,function(r){return t[r]}.bind(null,i));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=9)}([function(t,r,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports={isArray:function(t){return Array.isArray(t)},isObject:function(t){return"object"===(void 0===t?"undefined":n(t))&&!1===Array.isArray(t)&&null!==t},isFunction:function(t){return"function"==typeof t}}},function(t,r,e){"use strict";function n(t){if(Array.isArray(t)){for(var r=0,e=Array(t.length);r<t.length;r++)e[r]=t[r];return e}return Array.from(t)}t.exports=function(t){var r=[];return Array.isArray(t)?r.push.apply(r,n(t)):"Collection"===t.constructor.name?r.push.apply(r,n(t.all())):Object.keys(t).forEach((function(e){return r.push(t[e])})),r}},function(t,r,e){"use strict";t.exports=function(t,r){try{return r.split(".").reduce((function(t,r){return t[r]}),t)}catch(r){return t}}},function(t,r,e){"use strict";t.exports=function(t){return Array.isArray(t[0])?t[0]:t}},function(t,r,e){"use strict";t.exports=function(t){return void 0===t?this.sum()/this.items.length:new this.constructor(this.items).pluck(t).sum()/this.items.length}},function(t,r,e){"use strict";t.exports=function(t){var r,e=void 0;Array.isArray(t)?(r=e=[]).push.apply(r,function(t){if(Array.isArray(t)){for(var r=0,e=Array(t.length);r<t.length;r++)e[r]=t[r];return e}return Array.from(t)}(t)):(e={},Object.keys(t).forEach((function(r){e[r]=t[r]})));return e}},function(t,r,e){"use strict";var n=e(1),i=e(0).isFunction;t.exports=function(t,r){if(void 0!==r)return Array.isArray(this.items)?this.items.filter((function(e){return void 0!==e[t]&&e[t]===r})).length>0:void 0!==this.items[t]&&this.items[t]===r;if(i(t))return this.items.filter((function(r,e){return t(r,e)})).length>0;if(Array.isArray(this.items))return-1!==this.items.indexOf(t);var e=n(this.items);return e.push.apply(e,function(t){if(Array.isArray(t)){for(var r=0,e=Array(t.length);r<t.length;r++)e[r]=t[r];return e}return Array.from(t)}(Object.keys(this.items))),-1!==e.indexOf(t)}},function(t,r,e){"use strict";t.exports=function(t,r){if(Array.isArray(this.items)&&this.items.length)return t(this);if(Object.keys(this.items).length)return t(this);if(void 0!==r){if(Array.isArray(this.items)&&!this.items.length)return r(this);if(!Object.keys(this.items).length)return r(this)}return this}},function(t,r,e){"use strict";t.exports=function(t,r){if(Array.isArray(this.items)&&!this.items.length)return t(this);if(!Object.keys(this.items).length)return t(this);if(void 0!==r){if(Array.isArray(this.items)&&this.items.length)return r(this);if(Object.keys(this.items).length)return r(this)}return this}},function(t,r,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function i(t){void 0===t||Array.isArray(t)||"object"===(void 0===t?"undefined":n(t))?t instanceof this.constructor?this.items=t.all():this.items=t||[]:this.items=[t]}var o=e(10);"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=o),i.prototype.toJSON=function(){return this.items},i.prototype.all=e(11),i.prototype.average=e(4),i.prototype.avg=e(12),i.prototype.chunk=e(13),i.prototype.collapse=e(14),i.prototype.combine=e(15),i.prototype.concat=e(16),i.prototype.contains=e(6),i.prototype.count=e(17),i.prototype.countBy=e(18),i.prototype.crossJoin=e(19),i.prototype.dd=e(20),i.prototype.diff=e(22),i.prototype.diffAssoc=e(23),i.prototype.diffKeys=e(24),i.prototype.dump=e(25),i.prototype.duplicates=e(26),i.prototype.each=e(27),i.prototype.eachSpread=e(28),i.prototype.every=e(29),i.prototype.except=e(30),i.prototype.filter=e(31),i.prototype.first=e(32),i.prototype.firstWhere=e(33),i.prototype.flatMap=e(34),i.prototype.flatten=e(35),i.prototype.flip=e(36),i.prototype.forPage=e(37),i.prototype.forget=e(38),i.prototype.get=e(39),i.prototype.groupBy=e(40),i.prototype.has=e(41),i.prototype.implode=e(42),i.prototype.intersect=e(43),i.prototype.intersectByKeys=e(44),i.prototype.isEmpty=e(45),i.prototype.isNotEmpty=e(46),i.prototype.join=e(47),i.prototype.keyBy=e(48),i.prototype.keys=e(49),i.prototype.last=e(50),i.prototype.macro=e(51),i.prototype.make=e(52),i.prototype.map=e(53),i.prototype.mapSpread=e(54),i.prototype.mapToDictionary=e(55),i.prototype.mapInto=e(56),i.prototype.mapToGroups=e(57),i.prototype.mapWithKeys=e(58),i.prototype.max=e(59),i.prototype.median=e(60),i.prototype.merge=e(61),i.prototype.mergeRecursive=e(62),i.prototype.min=e(63),i.prototype.mode=e(64),i.prototype.nth=e(65),i.prototype.only=e(66),i.prototype.pad=e(67),i.prototype.partition=e(68),i.prototype.pipe=e(69),i.prototype.pluck=e(70),i.prototype.pop=e(71),i.prototype.prepend=e(72),i.prototype.pull=e(73),i.prototype.push=e(74),i.prototype.put=e(75),i.prototype.random=e(76),i.prototype.reduce=e(77),i.prototype.reject=e(78),i.prototype.replace=e(79),i.prototype.replaceRecursive=e(80),i.prototype.reverse=e(81),i.prototype.search=e(82),i.prototype.shift=e(83),i.prototype.shuffle=e(84),i.prototype.skip=e(85),i.prototype.skipUntil=e(86),i.prototype.skipWhile=e(87),i.prototype.slice=e(88),i.prototype.some=e(89),i.prototype.sort=e(90),i.prototype.sortDesc=e(91),i.prototype.sortBy=e(92),i.prototype.sortByDesc=e(93),i.prototype.sortKeys=e(94),i.prototype.sortKeysDesc=e(95),i.prototype.splice=e(96),i.prototype.split=e(97),i.prototype.sum=e(98),i.prototype.take=e(99),i.prototype.takeUntil=e(100),i.prototype.takeWhile=e(101),i.prototype.tap=e(102),i.prototype.times=e(103),i.prototype.toArray=e(104),i.prototype.toJson=e(105),i.prototype.transform=e(106),i.prototype.unless=e(107),i.prototype.unlessEmpty=e(7),i.prototype.unlessNotEmpty=e(8),i.prototype.union=e(108),i.prototype.unique=e(109),i.prototype.unwrap=e(110),i.prototype.values=e(111),i.prototype.when=e(112),i.prototype.whenEmpty=e(8),i.prototype.whenNotEmpty=e(7),i.prototype.where=e(113),i.prototype.whereBetween=e(114),i.prototype.whereIn=e(115),i.prototype.whereInstanceOf=e(116),i.prototype.whereNotBetween=e(117),i.prototype.whereNotIn=e(118),i.prototype.whereNull=e(119),i.prototype.whereNotNull=e(120),i.prototype.wrap=e(121),i.prototype.zip=e(122);var s=function(t){return new i(t)};t.exports=s,t.exports.collect=s,t.exports.default=s,t.exports.Collection=i},function(t,r,e){"use strict";t.exports=function(){var t=this,r=-1;return{next:function(){return r+=1,{value:t.items[r],done:r>=t.items.length}}}}},function(t,r,e){"use strict";t.exports=function(){return this.items}},function(t,r,e){"use strict";var n=e(4);t.exports=n},function(t,r,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var r=this,e=[],i=0;if(Array.isArray(this.items))do{var o=this.items.slice(i,i+t),s=new this.constructor(o);e.push(s),i+=t}while(i<this.items.length);else if("object"===n(this.items)){var u=Object.keys(this.items),c=function(){var n=u.slice(i,i+t),o=new r.constructor({});n.forEach((function(t){return o.put(t,r.items[t])})),e.push(o),i+=t};do{c()}while(i<u.length)}else e.push(new this.constructor([this.items]));return new this.constructor(e)}},function(t,r,e){"use strict";t.exports=function(){var t;return new this.constructor((t=[]).concat.apply(t,function(t){if(Array.isArray(t)){for(var r=0,e=Array(t.length);r<t.length;r++)e[r]=t[r];return e}return Array.from(t)}(this.items)))}},function(t,r,e){"use strict";var n=function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,r){var e=[],n=!0,i=!1,o=void 0;try{for(var s,u=t[Symbol.iterator]();!(n=(s=u.next()).done)&&(e.push(s.value),!r||e.length!==r);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&u.return&&u.return()}finally{if(i)throw o}}return e}(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var r=this,e=t;e instanceof this.constructor&&(e=t.all());var o={};if(Array.isArray(this.items)&&Array.isArray(e))this.items.forEach((function(t,r){o[t]=e[r]}));else if("object"===i(this.items)&&"object"===(void 0===e?"undefined":i(e)))Object.keys(this.items).forEach((function(t,n){o[r.items[t]]=e[Object.keys(e)[n]]}));else if(Array.isArray(this.items))o[this.items[0]]=e;else if("string"==typeof this.items&&Array.isArray(e)){var s=n(e,1);o[this.items]=s[0]}else"string"==typeof this.items&&(o[this.items]=e);return new this.constructor(o)}},function(t,r,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=e(5);t.exports=function(t){var r=t;t instanceof this.constructor?r=t.all():"object"===(void 0===t?"undefined":n(t))&&(r=[],Object.keys(t).forEach((function(e){r.push(t[e])})));var e=i(this.items);return r.forEach((function(t){"object"===(void 0===t?"undefined":n(t))?Object.keys(t).forEach((function(r){return e.push(t[r])})):e.push(t)})),new this.constructor(e)}},function(t,r,e){"use strict";t.exports=function(){var t=0;return Array.isArray(this.items)&&(t=this.items.length),Math.max(Object.keys(this.items).length,t)}},function(t,r,e){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(t){return t};return new this.constructor(this.items).groupBy(t).map((function(t){return t.count()}))}},function(t,r,e){"use strict";t.exports=function(){function t(r,e,n){var i=n[0];i instanceof e&&(i=i.all());for(var o=n.slice(1),s=!o.length,u=[],c=0;c<i.length;c+=1){var f=r.slice();f.push(i[c]),s?u.push(f):u=u.concat(t(f,e,o))}return u}for(var r=arguments.length,e=Array(r),n=0;n<r;n++)e[n]=arguments[n];return new this.constructor(t([],this.constructor,[].concat([this.items],e)))}},function(t,r,e){"use strict";(function(r){t.exports=function(){this.dump(),void 0!==r&&r.exit(1)}}).call(this,e(21))},function(t,r){var e,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var c,f=[],a=!1,h=-1;function p(){a&&c&&(a=!1,c.length?f=c.concat(f):h=-1,f.length&&y())}function y(){if(!a){var t=u(p);a=!0;for(var r=f.length;r;){for(c=f,f=[];++h<r;)c&&c[h].run();h=-1,r=f.length}c=null,a=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(r){try{return n.call(null,t)}catch(r){return n.call(this,t)}}}(t)}}function l(t,r){this.fun=t,this.array=r}function m(){}i.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];f.push(new l(t,r)),1!==f.length||a||u(y)},l.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,r,e){"use strict";t.exports=function(t){var r=void 0;r=t instanceof this.constructor?t.all():t;var e=this.items.filter((function(t){return-1===r.indexOf(t)}));return new this.constructor(e)}},function(t,r,e){"use strict";t.exports=function(t){var r=this,e=t;t instanceof this.constructor&&(e=t.all());var n={};return Object.keys(this.items).forEach((function(t){void 0!==e[t]&&e[t]===r.items[t]||(n[t]=r.items[t])})),new this.constructor(n)}},function(t,r,e){"use strict";t.exports=function(t){var r=void 0;r=t instanceof this.constructor?t.all():t;var e=Object.keys(r),n=Object.keys(this.items).filter((function(t){return-1===e.indexOf(t)}));return new this.constructor(this.items).only(n)}},function(t,r,e){"use strict";t.exports=function(){return console.log(this),this}},function(t,r,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(){var t=this,r=[],e={},i=function(t){return Array.isArray(t)||"object"===(void 0===t?"undefined":n(t))?JSON.stringify(t):t};return Array.isArray(this.items)?this.items.forEach((function(t,n){var o=i(t);-1===r.indexOf(o)?r.push(o):e[n]=t})):"object"===n(this.items)&&Object.keys(this.items).forEach((function(n){var o=i(t.items[n]);-1===r.indexOf(o)?r.push(o):e[n]=t.items[n]})),new this.constructor(e)}},function(t,r,e){"use strict";t.exports=function(t){var r=!1;if(Array.isArray(this.items))for(var e=this.items.length,n=0;n<e&&!r;n+=1)r=!1===t(this.items[n],n,this.items);else for(var i=Object.keys(this.items),o=i.length,s=0;s<o&&!r;s+=1){var u=i[s];r=!1===t(this.items[u],u,this.items)}return this}},function(t,r,e){"use strict";t.exports=function(t){return this.each((function(r,e){t.apply(void 0,function(t){if(Array.isArray(t)){for(var r=0,e=Array(t.length);r<t.length;r++)e[r]=t[r];return e}return Array.from(t)}(r).concat([e]))})),this}},function(t,r,e){"use strict";var n=e(1);t.exports=function(t){return n(this.items).every(t)}},function(t,r,e){"use strict";var n=e(3);t.exports=function(){for(var t=this,r=arguments.length,e=Array(r),i=0;i<r;i++)e[i]=arguments[i];var o=n(e);if(Array.isArray(this.items)){var s=this.items.filter((function(t){return-1===o.indexOf(t)}));return new this.constructor(s)}var u={};return Object.keys(this.items).forEach((function(r){-1===o.indexOf(r)&&(u[r]=t.items[r])})),new this.constructor(u)}},function(t,r,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function i(t){if(Array.isArray(t)){if(t.length)return!1}else if(null!=t&&"object"===(void 0===t?"undefined":n(t))){if(Object.keys(t).length)return!1}else if(t)return!1;return!0}t.exports=function(t){var r=t||!1,e=null;return e=Array.isArray(this.items)?function(t,r){if(t)return r.filter(t);for(var e=[],n=0;n<r.length;n+=1){var o=r[n];i(o)||e.push(o)}return e}(r,this.items):function(t,r){var e={};return Object.keys(r).forEach((function(n){t?t(r[n],n)&&(e[n]=r[n]):i(r[n])||(e[n]=r[n])})),e}(r,this.items),new this.constructor(e)}},function(t,r,e){"use strict";var n=e(0).isFunction;t.exports=function(t,r){if(n(t)){for(var e=0,i=this.items.length;e<i;e+=1){var o=this.items[e];if(t(o))return o}return n(r)?r():r}if(Array.isArray(this.items)&&this.items.length||Object.keys(this.items).length){if(Array.isArray(this.items))return this.items[0];var s=Object.keys(this.items)[0];return this.items[s]}return n(r)?r():r}},function(t,r,e){"use strict";t.exports=function(t,r,e){return this.where(t,r,e).first()||null}},function(t,r,e){"use strict";t.exports=function(t){return this.map(t).collapse()}},function(t,r,e){"use strict";var n=e(0),i=n.isArray,o=n.isObject;t.exports=function(t){var r=t||1/0,e=!1,n=[],s=function(t){n=[],i(t)?t.forEach((function(t){i(t)?n=n.concat(t):o(t)?Object.keys(t).forEach((function(r){n=n.concat(t[r])})):n.push(t)})):Object.keys(t).forEach((function(r){i(t[r])?n=n.concat(t[r]):o(t[r])?Object.keys(t[r]).forEach((function(e){n=n.concat(t[r][e])})):n.push(t[r])})),e=0===(e=n.filter((function(t){return o(t)}))).length,r-=1};for(s(this.items);!e&&r>0;)s(n);return new this.constructor(n)}},function(t,r,e){"use strict";t.exports=function(){var t=this,r={};return Array.isArray(this.items)?Object.keys(this.items).forEach((function(e){r[t.items[e]]=Number(e)})):Object.keys(this.items).forEach((function(e){r[t.items[e]]=e})),new this.constructor(r)}},function(t,r,e){"use strict";t.exports=function(t,r){var e=this,n={};return Array.isArray(this.items)?n=this.items.slice(t*r-r,t*r):Object.keys(this.items).slice(t*r-r,t*r).forEach((function(t){n[t]=e.items[t]})),new this.constructor(n)}},function(t,r,e){"use strict";t.exports=function(t){return Array.isArray(this.items)?this.items.splice(t,1):delete this.items[t],this}},function(t,r,e){"use strict";var n=e(0).isFunction;t.exports=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return void 0!==this.items[t]?this.items[t]:n(r)?r():null!==r?r:null}},function(t,r,e){"use strict";var n=e(2),i=e(0).isFunction;t.exports=function(t){var r=this,e={};return this.items.forEach((function(o,s){var u=void 0;u=i(t)?t(o,s):n(o,t)||0===n(o,t)?n(o,t):"",void 0===e[u]&&(e[u]=new r.constructor([])),e[u].push(o)})),new this.constructor(e)}},function(t,r,e){"use strict";var n=e(3);t.exports=function(){for(var t=this,r=arguments.length,e=Array(r),i=0;i<r;i++)e[i]=arguments[i];var o=n(e);return o.filter((function(r){return Object.hasOwnProperty.call(t.items,r)})).length===o.length}},function(t,r,e){"use strict";t.exports=function(t,r){return void 0===r?this.items.join(t):new this.constructor(this.items).pluck(t).all().join(r)}},function(t,r,e){"use strict";t.exports=function(t){var r=t;t instanceof this.constructor&&(r=t.all());var e=this.items.filter((function(t){return-1!==r.indexOf(t)}));return new this.constructor(e)}},function(t,r,e){"use strict";t.exports=function(t){var r=this,e=Object.keys(t);t instanceof this.constructor&&(e=Object.keys(t.all()));var n={};return Object.keys(this.items).forEach((function(t){-1!==e.indexOf(t)&&(n[t]=r.items[t])})),new this.constructor(n)}},function(t,r,e){"use strict";t.exports=function(){return Array.isArray(this.items)?!this.items.length:!Object.keys(this.items).length}},function(t,r,e){"use strict";t.exports=function(){return!this.isEmpty()}},function(t,r,e){"use strict";t.exports=function(t,r){var e=this.values();if(void 0===r)return e.implode(t);var n=e.count();if(0===n)return"";if(1===n)return e.last();var i=e.pop();return e.implode(t)+r+i}},function(t,r,e){"use strict";var n=e(2),i=e(0).isFunction;t.exports=function(t){var r={};return i(t)?this.items.forEach((function(e){r[t(e)]=e})):this.items.forEach((function(e){var i=n(e,t);r[i||""]=e})),new this.constructor(r)}},function(t,r,e){"use strict";t.exports=function(){var t=Object.keys(this.items);return Array.isArray(this.items)&&(t=t.map(Number)),new this.constructor(t)}},function(t,r,e){"use strict";var n=e(0).isFunction;t.exports=function(t,r){var e=this.items;if(n(t)&&(e=this.filter(t).all()),Array.isArray(e)&&!e.length||!Object.keys(e).length)return n(r)?r():r;if(Array.isArray(e))return e[e.length-1];var i=Object.keys(e);return e[i[i.length-1]]}},function(t,r,e){"use strict";t.exports=function(t,r){this.constructor.prototype[t]=r}},function(t,r,e){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new this.constructor(t)}},function(t,r,e){"use strict";t.exports=function(t){var r=this;if(Array.isArray(this.items))return new this.constructor(this.items.map(t));var e={};return Object.keys(this.items).forEach((function(n){e[n]=t(r.items[n],n)})),new this.constructor(e)}},function(t,r,e){"use strict";t.exports=function(t){return this.map((function(r,e){return t.apply(void 0,function(t){if(Array.isArray(t)){for(var r=0,e=Array(t.length);r<t.length;r++)e[r]=t[r];return e}return Array.from(t)}(r).concat([e]))}))}},function(t,r,e){"use strict";var n=function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,r){var e=[],n=!0,i=!1,o=void 0;try{for(var s,u=t[Symbol.iterator]();!(n=(s=u.next()).done)&&(e.push(s.value),!r||e.length!==r);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&u.return&&u.return()}finally{if(i)throw o}}return e}(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var r={};return this.items.forEach((function(e,i){var o=t(e,i),s=n(o,2),u=s[0],c=s[1];void 0===r[u]?r[u]=[c]:r[u].push(c)})),new this.constructor(r)}},function(t,r,e){"use strict";t.exports=function(t){return this.map((function(r,e){return new t(r,e)}))}},function(t,r,e){"use strict";var n=function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,r){var e=[],n=!0,i=!1,o=void 0;try{for(var s,u=t[Symbol.iterator]();!(n=(s=u.next()).done)&&(e.push(s.value),!r||e.length!==r);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&u.return&&u.return()}finally{if(i)throw o}}return e}(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var r={};return this.items.forEach((function(e,i){var o=t(e,i),s=n(o,2),u=s[0],c=s[1];void 0===r[u]?r[u]=[c]:r[u].push(c)})),new this.constructor(r)}},function(t,r,e){"use strict";var n=function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,r){var e=[],n=!0,i=!1,o=void 0;try{for(var s,u=t[Symbol.iterator]();!(n=(s=u.next()).done)&&(e.push(s.value),!r||e.length!==r);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&u.return&&u.return()}finally{if(i)throw o}}return e}(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var r=this,e={};return Array.isArray(this.items)?this.items.forEach((function(r){var i=t(r),o=n(i,2),s=o[0],u=o[1];e[s]=u})):Object.keys(this.items).forEach((function(i){var o=t(r.items[i]),s=n(o,2),u=s[0],c=s[1];e[u]=c})),new this.constructor(e)}},function(t,r,e){"use strict";function n(t){if(Array.isArray(t)){for(var r=0,e=Array(t.length);r<t.length;r++)e[r]=t[r];return e}return Array.from(t)}t.exports=function(t){if("string"==typeof t){var r=this.items.filter((function(r){return void 0!==r[t]}));return Math.max.apply(Math,n(r.map((function(r){return r[t]}))))}return Math.max.apply(Math,n(this.items))}},function(t,r,e){"use strict";t.exports=function(t){var r=this.items.length;return void 0===t?r%2==0?(this.items[r/2-1]+this.items[r/2])/2:this.items[Math.floor(r/2)]:r%2==0?(this.items[r/2-1][t]+this.items[r/2][t])/2:this.items[Math.floor(r/2)][t]}},function(t,r,e){"use strict";t.exports=function(t){var r=t;if("string"==typeof r&&(r=[r]),Array.isArray(this.items)&&Array.isArray(r))return new this.constructor(this.items.concat(r));var e=JSON.parse(JSON.stringify(this.items));return Object.keys(r).forEach((function(t){e[t]=r[t]})),new this.constructor(e)}},function(t,r,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var r=function t(r,e){var i={};return Object.keys(Object.assign({},r,e)).forEach((function(o){void 0===r[o]&&void 0!==e[o]?i[o]=e[o]:void 0!==r[o]&&void 0===e[o]?i[o]=r[o]:void 0!==r[o]&&void 0!==e[o]&&(r[o]===e[o]?i[o]=r[o]:Array.isArray(r[o])||"object"!==n(r[o])||Array.isArray(e[o])||"object"!==n(e[o])?i[o]=[].concat(r[o],e[o]):i[o]=t(r[o],e[o]))})),i};return t?"Collection"===t.constructor.name?new this.constructor(r(this.items,t.all())):new this.constructor(r(this.items,t)):this}},function(t,r,e){"use strict";function n(t){if(Array.isArray(t)){for(var r=0,e=Array(t.length);r<t.length;r++)e[r]=t[r];return e}return Array.from(t)}t.exports=function(t){if(void 0!==t){var r=this.items.filter((function(r){return void 0!==r[t]}));return Math.min.apply(Math,n(r.map((function(r){return r[t]}))))}return Math.min.apply(Math,n(this.items))}},function(t,r,e){"use strict";t.exports=function(t){var r=[],e=1;return this.items.length?(this.items.forEach((function(n){var i=r.filter((function(r){return void 0!==t?r.key===n[t]:r.key===n}));if(i.length){i[0].count+=1;var o=i[0].count;o>e&&(e=o)}else void 0!==t?r.push({key:n[t],count:1}):r.push({key:n,count:1})})),r.filter((function(t){return t.count===e})).map((function(t){return t.key}))):null}},function(t,r,e){"use strict";var n=e(1);t.exports=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=n(this.items),i=e.slice(r).filter((function(r,e){return e%t==0}));return new this.constructor(i)}},function(t,r,e){"use strict";var n=e(3);t.exports=function(){for(var t=this,r=arguments.length,e=Array(r),i=0;i<r;i++)e[i]=arguments[i];var o=n(e);if(Array.isArray(this.items)){var s=this.items.filter((function(t){return-1!==o.indexOf(t)}));return new this.constructor(s)}var u={};return Object.keys(this.items).forEach((function(r){-1!==o.indexOf(r)&&(u[r]=t.items[r])})),new this.constructor(u)}},function(t,r,e){"use strict";var n=e(5);t.exports=function(t,r){var e=Math.abs(t),i=this.count();if(e<=i)return this;for(var o=e-i,s=n(this.items),u=Array.isArray(this.items),c=t<0,f=0;f<o;)u?c?s.unshift(r):s.push(r):void 0!==s[f]?o+=1:s[f]=r,f+=1;return new this.constructor(s)}},function(t,r,e){"use strict";t.exports=function(t){var r=this,e=void 0;return Array.isArray(this.items)?(e=[new this.constructor([]),new this.constructor([])],this.items.forEach((function(r){!0===t(r)?e[0].push(r):e[1].push(r)}))):(e=[new this.constructor({}),new this.constructor({})],Object.keys(this.items).forEach((function(n){var i=r.items[n];!0===t(i)?e[0].put(n,i):e[1].put(n,i)}))),new this.constructor(e)}},function(t,r,e){"use strict";t.exports=function(t){return t(this)}},function(t,r,e){"use strict";var n=e(0),i=n.isArray,o=n.isObject,s=e(2);t.exports=function(t,r){if(-1!==t.indexOf("*")){var e=(y=this.items,l={},y.forEach((function(t,r){!function t(r,e){o(r)?Object.keys(r).forEach((function(n){t(r[n],e+"."+n)})):i(r)&&r.forEach((function(r,n){t(r,e+"."+n)})),l[e]=r}(t,r)})),l),n=[];if(void 0!==r){var u=new RegExp("0."+r,"g"),c=("0."+r).split(".").length;Object.keys(e).forEach((function(t){var r=t.match(u);if(r){var i=r[0];i.split(".").length===c&&n.push(e[i])}}))}var f=[],a=new RegExp("0."+t,"g"),h=("0."+t).split(".").length;if(Object.keys(e).forEach((function(t){var r=t.match(a);if(r){var n=r[0];n.split(".").length===h&&f.push(e[n])}})),void 0!==r){var p={};return this.items.forEach((function(t,r){p[n[r]||""]=f})),new this.constructor(p)}return new this.constructor([f])}var y,l;if(void 0!==r){var m={};return this.items.forEach((function(e){void 0!==s(e,t)?m[e[r]||""]=s(e,t):m[e[r]||""]=null})),new this.constructor(m)}return this.map((function(r){return void 0!==s(r,t)?s(r,t):null}))}},function(t,r,e){"use strict";t.exports=function(){if(Array.isArray(this.items))return this.items.pop();var t=Object.keys(this.items),r=t[t.length-1],e=this.items[r];return delete this.items[r],e}},function(t,r,e){"use strict";t.exports=function(t,r){return void 0!==r?this.put(r,t):(this.items.unshift(t),this)}},function(t,r,e){"use strict";var n=e(0).isFunction;t.exports=function(t,r){var e=this.items[t]||null;return e||void 0===r||(e=n(r)?r():r),delete this.items[t],e}},function(t,r,e){"use strict";t.exports=function(){var t;return(t=this.items).push.apply(t,arguments),this}},function(t,r,e){"use strict";t.exports=function(t,r){return this.items[t]=r,this}},function(t,r,e){"use strict";var n=e(1);t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=n(this.items),e=new this.constructor(r).shuffle();return t!==parseInt(t,10)?e.first():e.take(t)}},function(t,r,e){"use strict";t.exports=function(t,r){var e=this,n=null;return void 0!==r&&(n=r),Array.isArray(this.items)?this.items.forEach((function(r){n=t(n,r)})):Object.keys(this.items).forEach((function(r){n=t(n,e.items[r],r)})),n}},function(t,r,e){"use strict";t.exports=function(t){return new this.constructor(this.items).filter((function(r){return!t(r)}))}},function(t,r,e){"use strict";t.exports=function(t){if(!t)return this;if(Array.isArray(t)){var r=this.items.map((function(r,e){return t[e]||r}));return new this.constructor(r)}if("Collection"===t.constructor.name){var e=Object.assign({},this.items,t.all());return new this.constructor(e)}var n=Object.assign({},this.items,t);return new this.constructor(n)}},function(t,r,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var r=function t(r,e){var i=Object.assign({},r);return Object.keys(Object.assign({},r,e)).forEach((function(o){Array.isArray(e[o])||"object"!==n(e[o])?void 0===r[o]&&void 0!==e[o]?"object"===n(r[o])?i[o]=Object.assign({},e[o]):i[o]=e[o]:void 0!==r[o]&&void 0===e[o]?"object"===n(r[o])?i[o]=Object.assign({},r[o]):i[o]=r[o]:void 0!==r[o]&&void 0!==e[o]&&("object"===n(e[o])?i[o]=Object.assign({},e[o]):i[o]=e[o]):i[o]=t(r[o],e[o])})),i};return t?Array.isArray(t)||"object"===(void 0===t?"undefined":n(t))?"Collection"===t.constructor.name?new this.constructor(r(this.items,t.all())):new this.constructor(r(this.items,t)):new this.constructor(r(this.items,[t])):this}},function(t,r,e){"use strict";t.exports=function(){var t=[].concat(this.items).reverse();return new this.constructor(t)}},function(t,r,e){"use strict";var n=e(0),i=n.isArray,o=n.isObject,s=n.isFunction;t.exports=function(t,r){var e=this,n=void 0,u=function(n,i){return s(t)?t(e.items[i],i):r?e.items[i]===t:e.items[i]==t};return i(this.items)?n=this.items.findIndex(u):o(this.items)&&(n=Object.keys(this.items).find((function(t){return u(e.items[t],t)}))),!(void 0===n||n<0)&&n}},function(t,r,e){"use strict";t.exports=function(){if(Array.isArray(this.items)&&this.items.length)return this.items.shift();if(Object.keys(this.items).length){var t=Object.keys(this.items)[0],r=this.items[t];return delete this.items[t],r}return null}},function(t,r,e){"use strict";var n=e(1);t.exports=function(){var t=n(this.items),r=void 0,e=void 0,i=void 0;for(i=t.length;i;i-=1)r=Math.floor(Math.random()*i),e=t[i-1],t[i-1]=t[r],t[r]=e;return this.items=t,this}},function(t,r,e){"use strict";var n=e(0).isObject;t.exports=function(t){var r=this;return n(this.items)?new this.constructor(Object.keys(this.items).reduce((function(e,n,i){return i+1>t&&(e[n]=r.items[n]),e}),{})):new this.constructor(this.items.slice(t))}},function(t,r,e){"use strict";var n=e(0),i=n.isArray,o=n.isObject,s=n.isFunction;t.exports=function(t){var r=this,e=null,n=void 0,u=function(r){return r===t};return s(t)&&(u=t),i(this.items)&&(n=this.items.filter((function(t){return!0!==e&&(e=u(t)),e}))),o(this.items)&&(n=Object.keys(this.items).reduce((function(t,n){return!0!==e&&(e=u(r.items[n])),!1!==e&&(t[n]=r.items[n]),t}),{})),new this.constructor(n)}},function(t,r,e){"use strict";var n=e(0),i=n.isArray,o=n.isObject,s=n.isFunction;t.exports=function(t){var r=this,e=null,n=void 0,u=function(r){return r===t};return s(t)&&(u=t),i(this.items)&&(n=this.items.filter((function(t){return!0!==e&&(e=!u(t)),e}))),o(this.items)&&(n=Object.keys(this.items).reduce((function(t,n){return!0!==e&&(e=!u(r.items[n])),!1!==e&&(t[n]=r.items[n]),t}),{})),new this.constructor(n)}},function(t,r,e){"use strict";t.exports=function(t,r){var e=this.items.slice(t);return void 0!==r&&(e=e.slice(0,r)),new this.constructor(e)}},function(t,r,e){"use strict";var n=e(6);t.exports=n},function(t,r,e){"use strict";t.exports=function(t){var r=[].concat(this.items);return void 0===t?this.every((function(t){return"number"==typeof t}))?r.sort((function(t,r){return t-r})):r.sort():r.sort(t),new this.constructor(r)}},function(t,r,e){"use strict";t.exports=function(){return this.sort().reverse()}},function(t,r,e){"use strict";var n=e(2),i=e(0).isFunction;t.exports=function(t){var r=[].concat(this.items),e=function(r){return i(t)?t(r):n(r,t)};return r.sort((function(t,r){var n=e(t),i=e(r);return null==n?1:null==i?-1:n<i?-1:n>i?1:0})),new this.constructor(r)}},function(t,r,e){"use strict";t.exports=function(t){return this.sortBy(t).reverse()}},function(t,r,e){"use strict";t.exports=function(){var t=this,r={};return Object.keys(this.items).sort().forEach((function(e){r[e]=t.items[e]})),new this.constructor(r)}},function(t,r,e){"use strict";t.exports=function(){var t=this,r={};return Object.keys(this.items).sort().reverse().forEach((function(e){r[e]=t.items[e]})),new this.constructor(r)}},function(t,r,e){"use strict";t.exports=function(t,r,e){var n=this.slice(t,r);if(this.items=this.diff(n.all()).all(),Array.isArray(e))for(var i=0,o=e.length;i<o;i+=1)this.items.splice(t+i,0,e[i]);return n}},function(t,r,e){"use strict";t.exports=function(t){for(var r=Math.round(this.items.length/t),e=JSON.parse(JSON.stringify(this.items)),n=[],i=0;i<t;i+=1)n.push(new this.constructor(e.splice(0,r)));return new this.constructor(n)}},function(t,r,e){"use strict";var n=e(1),i=e(0).isFunction;t.exports=function(t){var r=n(this.items),e=0;if(void 0===t)for(var o=0,s=r.length;o<s;o+=1)e+=parseFloat(r[o]);else if(i(t))for(var u=0,c=r.length;u<c;u+=1)e+=parseFloat(t(r[u]));else for(var f=0,a=r.length;f<a;f+=1)e+=parseFloat(r[f][t]);return parseFloat(e.toPrecision(12))}},function(t,r,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var r=this;if(!Array.isArray(this.items)&&"object"===n(this.items)){var e=Object.keys(this.items),i=void 0;i=t<0?e.slice(t):e.slice(0,t);var o={};return e.forEach((function(t){-1!==i.indexOf(t)&&(o[t]=r.items[t])})),new this.constructor(o)}return t<0?new this.constructor(this.items.slice(t)):new this.constructor(this.items.slice(0,t))}},function(t,r,e){"use strict";var n=e(0),i=n.isArray,o=n.isObject,s=n.isFunction;t.exports=function(t){var r=this,e=null,n=void 0,u=function(r){return r===t};return s(t)&&(u=t),i(this.items)&&(n=this.items.filter((function(t){return!1!==e&&(e=!u(t)),e}))),o(this.items)&&(n=Object.keys(this.items).reduce((function(t,n){return!1!==e&&(e=!u(r.items[n])),!1!==e&&(t[n]=r.items[n]),t}),{})),new this.constructor(n)}},function(t,r,e){"use strict";var n=e(0),i=n.isArray,o=n.isObject,s=n.isFunction;t.exports=function(t){var r=this,e=null,n=void 0,u=function(r){return r===t};return s(t)&&(u=t),i(this.items)&&(n=this.items.filter((function(t){return!1!==e&&(e=u(t)),e}))),o(this.items)&&(n=Object.keys(this.items).reduce((function(t,n){return!1!==e&&(e=u(r.items[n])),!1!==e&&(t[n]=r.items[n]),t}),{})),new this.constructor(n)}},function(t,r,e){"use strict";t.exports=function(t){return t(this),this}},function(t,r,e){"use strict";t.exports=function(t,r){for(var e=1;e<=t;e+=1)this.items.push(r(e));return this}},function(t,r,e){"use strict";t.exports=function(){var t=this.constructor;if(Array.isArray(this.items)){var r=[];return this.items.forEach((function(e){!function r(e,n){var i=[];e instanceof t?(e.items.forEach((function(t){return r(t,i)})),n.push(i)):Array.isArray(e)?(e.forEach((function(t){return r(t,i)})),n.push(i)):n.push(e)}(e,r)})),r}return this.values().all()}},function(t,r,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(){return"object"!==n(this.items)||Array.isArray(this.items)?JSON.stringify(this.toArray()):JSON.stringify(this.all())}},function(t,r,e){"use strict";t.exports=function(t){var r=this;if(Array.isArray(this.items))this.items=this.items.map(t);else{var e={};Object.keys(this.items).forEach((function(n){e[n]=t(r.items[n],n)})),this.items=e}return this}},function(t,r,e){"use strict";t.exports=function(t,r,e){t?e(this):r(this)}},function(t,r,e){"use strict";t.exports=function(t){var r=this,e=JSON.parse(JSON.stringify(this.items));return Object.keys(t).forEach((function(n){void 0===r.items[n]&&(e[n]=t[n])})),new this.constructor(e)}},function(t,r,e){"use strict";var n=e(0).isFunction;t.exports=function(t){var r=void 0;if(void 0===t)r=this.items.filter((function(t,r,e){return e.indexOf(t)===r}));else{r=[];for(var e=[],i=0,o=this.items.length;i<o;i+=1){var s=void 0;s=n(t)?t(this.items[i]):this.items[i][t],-1===e.indexOf(s)&&(r.push(this.items[i]),e.push(s))}}return new this.constructor(r)}},function(t,r,e){"use strict";t.exports=function(t){return t instanceof this.constructor?t.all():t}},function(t,r,e){"use strict";var n=e(1);t.exports=function(){return new this.constructor(n(this.items))}},function(t,r,e){"use strict";t.exports=function(t,r,e){return t?r(this,t):e?e(this,t):this}},function(t,r,e){"use strict";var n=e(1),i=e(2);t.exports=function(t,r,e){var o=r,s=e,u=n(this.items);if(void 0===r||!0===r)return new this.constructor(u.filter((function(r){return i(r,t)})));if(!1===r)return new this.constructor(u.filter((function(r){return!i(r,t)})));void 0===e&&(s=r,o="===");var c=u.filter((function(r){switch(o){case"==":return i(r,t)===Number(s)||i(r,t)===s.toString();default:case"===":return i(r,t)===s;case"!=":case"<>":return i(r,t)!==Number(s)&&i(r,t)!==s.toString();case"!==":return i(r,t)!==s;case"<":return i(r,t)<s;case"<=":return i(r,t)<=s;case">":return i(r,t)>s;case">=":return i(r,t)>=s}}));return new this.constructor(c)}},function(t,r,e){"use strict";t.exports=function(t,r){return this.where(t,">=",r[0]).where(t,"<=",r[r.length-1])}},function(t,r,e){"use strict";var n=e(1),i=e(2);t.exports=function(t,r){var e=n(r),o=this.items.filter((function(r){return-1!==e.indexOf(i(r,t))}));return new this.constructor(o)}},function(t,r,e){"use strict";t.exports=function(t){return this.filter((function(r){return r instanceof t}))}},function(t,r,e){"use strict";var n=e(2);t.exports=function(t,r){return this.filter((function(e){return n(e,t)<r[0]||n(e,t)>r[r.length-1]}))}},function(t,r,e){"use strict";var n=e(1),i=e(2);t.exports=function(t,r){var e=n(r),o=this.items.filter((function(r){return-1===e.indexOf(i(r,t))}));return new this.constructor(o)}},function(t,r,e){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"===",null)}},function(t,r,e){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"!==",null)}},function(t,r,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return t instanceof this.constructor?t:"object"===(void 0===t?"undefined":n(t))?new this.constructor(t):new this.constructor([t])}},function(t,r,e){"use strict";t.exports=function(t){var r=this,e=t;e instanceof this.constructor&&(e=e.all());var n=this.items.map((function(t,n){return new r.constructor([t,e[n]])}));return new this.constructor(n)}}]);