laravel-js-str
Version:
1 lines • 68.9 kB
JavaScript
var laravelJsStr=function(r){var n={};function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}return o.m=r,o.c=n,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=11)}([function(t,e,r){"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,e,r){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}t.exports=function(e){var r=[];return Array.isArray(e)?r.push.apply(r,n(e)):"Collection"===e.constructor.name?r.push.apply(r,n(e.all())):Object.keys(e).forEach(function(t){return r.push(e[t])}),r}},function(t,e,r){"use strict";t.exports=function(t,e){try{return e.split(".").reduce(function(t,e){return t[e]},t)}catch(e){return t}}},function(t,e){var r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var c,a=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?a=c.concat(a):f=-1,a.length&&h())}function h(){if(!l){var t=u(p);l=!0;for(var e=a.length;e;){for(c=a,a=[];++f<e;)c&&c[f].run();f=-1,e=a.length}c=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(t)}}function y(t,e){this.fun=t,this.array=e}function m(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];a.push(new y(t,e)),1!==a.length||l||u(h)},y.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,r){"use strict";t.exports=function(t){return Array.isArray(t[0])?t[0]:t}},function(t,e,r){"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,e,r){"use strict";t.exports=function(e){var t,r=void 0;return Array.isArray(e)?(t=r=[]).push.apply(t,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(e)):(r={},Object.keys(e).forEach(function(t){r[t]=e[t]})),r}},function(t,e,r){"use strict";var n=r(1),o=r(0).isFunction;t.exports=function(r,e){if(void 0!==e)return Array.isArray(this.items)?0<this.items.filter(function(t){return void 0!==t[r]&&t[r]===e}).length:void 0!==this.items[r]&&this.items[r]===e;if(o(r))return 0<this.items.filter(function(t,e){return r(t,e)}).length;if(Array.isArray(this.items))return-1!==this.items.indexOf(r);var t=n(this.items);return t.push.apply(t,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(Object.keys(this.items))),-1!==t.indexOf(r)}},function(t,e,r){"use strict";t.exports=function(t,e){if(Array.isArray(this.items)&&this.items.length)return t(this);if(Object.keys(this.items).length)return t(this);if(void 0!==e){if(Array.isArray(this.items)&&!this.items.length)return e(this);if(!Object.keys(this.items).length)return e(this)}return this}},function(t,e,r){"use strict";t.exports=function(t,e){if(Array.isArray(this.items)&&!this.items.length)return t(this);if(!Object.keys(this.items).length)return t(this);if(void 0!==e){if(Array.isArray(this.items)&&this.items.length)return e(this);if(Object.keys(this.items).length)return e(this)}return this}},function(O,t,E){"use strict";(function(v,t){function n(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(n=(s=u.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(t,e)||r(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),t}function d(t){return(d="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)}var l="uuid".v4,f=E(12),p=E(13).collect,h=E(122),y=E(123),m=E(126);function g(t,e,r){if(arguments.length<2||void 0===t||void 0===e)return null;if(""===t||!1===t||null===t)return!1;if("function"==typeof t||"object"===d(t)||"function"==typeof e||"object"===d(e))return{0:""};!0===t&&(t="1");var n=(e+="").split(t+="");return void 0===r?n:(0===r&&(r=1),0<r?r>=n.length?n:n.slice(0,r-1).concat([n.slice(r-1).join(t)]):-r>=n.length?[]:(n.splice(n.length+r),n))}function b(t){return this.value=t,"".concat(this.value)}b.prototype.after=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return new b(x.after(this.value,t))},b.prototype.afterLast=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return new b(x.afterLast(this.value,e))},b.prototype.append=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return new b(this.value+e.join(""))},b.prototype.ascii=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"en";return new b(x.ascii(this.value,t))},b.prototype.before=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return new b(x.before(this.value,t))},b.prototype.beforeLast=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return new b(x.beforeLast(this.value,t))},b.prototype.between=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return new b(x.between(this.value,t,e))},b.prototype.camel=function(){return new b(x.camel(this.value))},b.prototype.contains=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];return x.contains(this.value,t)},b.prototype.containsAll=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];return x.containsAll(this.value,t)},b.prototype.endsWith=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];return x.endsWith(this.value,t)},b.prototype.finish=function(t){return new b(x.finish(this.value,t))},b.prototype.exactly=function(t){return this.value===t},b.prototype.explode=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_SAFE_INTEGER;return p(g(t,this.value,e))},b.prototype.split=function(t){var e=this.value.split(new RegExp(t));return void 0===e||e.length<1?p():p(e)},b.prototype.finish=function(t){return new b(x.finish(this.value,t))},b.prototype.is=function(t){return x.is(t,this.value)},b.prototype.isAscii=function(){return x.isAscii(this.value)},b.prototype.isEmpty=function(){return""===this.value},b.prototype.isNotEmpty=function(){return!this.isEmpty()},b.prototype.kebab=function(){return new b(x.kebab(this.value))},b.prototype.length=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;return x.length(this.value,t)},b.prototype.limit=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:100,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"...";return new b(x.limit(this.value,t,e))},b.prototype.lower=function(){return new b(x.lower(this.value))},b.prototype.match=function(t){var e=h(t,this.value);return new b(e?e[1]||e[0]:"")},b.prototype.parseCallback=function(t){return x.parseCallback(this.value,t)},b.prototype.plural=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:2;return new b(x.plural(this.value,t))},b.prototype.pluralStudly=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:2;return new b(x.pluralStudly(this.value,t))},b.prototype.replace=function(t,e){return new b(function(t,e,r){var n,o=0,i=0,s="",u="",c=0,a=[].concat(t),l=[].concat(e),f=r,p="[object Array]"===Object.prototype.toString.call(l),h="[object Array]"===Object.prototype.toString.call(f),f=[].concat(f),y="undefined"!=typeof window?window:v;y.$locutus=y.$locutus||{};var m=y.$locutus;if(m.php=m.php||{},"object"===d(t)&&"string"==typeof e){for(s=e,e=[],o=0;o<t.length;o+=1)e[o]=s;s="",l=[].concat(e),p="[object Array]"===Object.prototype.toString.call(l)}for(o=0,n=f.length;o<n;o++)if(""!==f[o])for(i=0,c=a.length;i<c;i++)s=f[o]+"",u=p?void 0!==l[i]?l[i]:"":l[0],f[o]=s.split(a[i]).join(u);return h?f:f[0]}(t,e,this.value))},b.prototype.replaceArray=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];return new b(x.replaceArray(t,e,this.value))},b.prototype.replaceFirst=function(t,e){return new b(x.replaceFirst(t,e,this.value))},b.prototype.replaceLast=function(t,e){return new b(x.replaceLast(t,e,this.value))},b.prototype.start=function(t){return new b(x.start(this.value,t))},b.prototype.upper=function(){return new b(x.upper(this.value))},b.prototype.title=function(){return new b(x.title(this.value))},b.prototype.singular=function(){return new b(x.singular(this.value))},b.prototype.slug=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"-",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"en";return new b(x.slug(this.value,t,e))},b.prototype.snake=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"_";return new b(x.snake(this.value,t))},b.prototype.startsWith=function(t){return x.startsWith(this.value,t)},b.prototype.studly=function(){return new b(x.studly(this.value))},b.prototype.substr=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return new b(x.substr(this.value,t,e))},b.prototype.substrCount=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return x.substrCount(this.value,t,e,r)},b.trim=function(){return new b(function(t,e){var r=[" ","\n","\r","\t","\f","\v"," "," "," "," "," "," "," "," "," "," "," "," ","","\u2028","\u2029"," "].join(""),n=0,o=0;for(t+="",e&&(r=(e+"").replace(/([[\]().?/*{}+$^:])/g,"$1")),n=t.length,o=0;o<n;o++)if(-1===r.indexOf(t.charAt(o))){t=t.substring(o);break}for(o=(n=t.length)-1;0<=o;o--)if(-1===r.indexOf(t.charAt(o))){t=t.substring(0,o+1);break}return-1===r.indexOf(t.charAt(0))?t:""}.apply(void 0,[this.value].concat(Array.prototype.slice.call(arguments))))},b.ltrim=function(){return new b(function(t,e){e=e?(e+"").replace(/([[\]().?/*{}+$^:])/g,"$1"):" \\s ";var r=new RegExp("^["+e+"]+","g");return(t+"").replace(r,"")}.apply(void 0,[this.value].concat(Array.prototype.slice.call(arguments))))},b.rtrim=function(){return new b(function(t,e){e=e?(e+"").replace(/([[\]().?/*{}+$^:])/g,"\\$1"):" \\s ";var r=new RegExp("["+e+"]+$","g");return(t+"").replace(r,"")}.apply(void 0,[this.value].concat(Array.prototype.slice.call(arguments))))},b.prototype.whenEmpty=function(t){if(this.isEmpty()){var e=t(this);return null==e?this:e}return this},b.prototype.words=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:100,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"...";return new b(x.words(this.value,t,e))},b.prototype.dump=function(){return console.log(this),this},b.prototype.dd=function(){this.dump(),void 0!==t&&void 0!==t.exit&&t.exit(1)},b.prototype.get=function(t){return this[t]()},b.prototype.toLocaleString=function(){return"".concat(this.value)},b.prototype.toString=function(){return"".concat(this.value)},b.prototype.toJSON=function(){return this.toString()},b.prototype.valueOf=function(){return"".concat(this.value)};var w=(a(A,null,[{key:"plural",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:2;if(1===Math.abs(e)||A.uncountable(t))return t;var r=A.inflector().plural(t);return A.matchCase(r,t)}},{key:"singular",value:function(t){var e=A.inflector().singular(t);return A.matchCase(e,t)}},{key:"uncountable",value:function(t){return A.rules.uncountable.includes(t.toLowerCase())}},{key:"isPlural",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return A.inflector().isPlural(t)}},{key:"isSingular",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return A.inflector().isSingular(t)}},{key:"matchCase",value:function(t,e){return e.toLowerCase()===e?t.toLowerCase():e.toUpperCase()===e?t.toUpperCase():e[0].toUpperCase()+e.slice(1)===e?t[0].toUpperCase()+t.slice(1):t}},{key:"inflector",value:function(){return void 0===A.inflection&&(A.inflection=f,A.rules.uncountable.forEach(function(t){return A.inflection.addUncountableRule(t)}),Object.entries(A.rules.plural).forEach(function(t){var e=s(t,2),r=e[0],n=e[1];return A.inflection.addIrregularRule(n,r)}),Object.entries(A.rules.singular).forEach(function(t){var e=s(t,2),r=e[0],n=e[1];return A.inflection.addIrregularRule(n,r)}),Object.entries(A.rules.irregular).forEach(function(t){var e=s(t,2),r=e[0],n=e[1];return A.inflection.addIrregularRule(n,r)})),A.inflection}}]),A);function A(){e(this,A)}w.rules={plural:{},singular:{},irregular:{},uncountable:["audio","bison","cattle","chassis","compensation","coreopsis","data","deer","education","emoji","equipment","evidence","feedback","firmware","fish","furniture","gold","hardware","information","jedi","kin","knowledge","love","metadata","money","moose","news","nutrition","offspring","plankton","pokemon","police","rain","recommended","related","rice","series","sheep","software","species","swine","traffic","wheat"]};var x=(a(S,null,[{key:"of",value:function(t){return new b(t)}},{key:"after",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return""===e||-1===t.indexOf(e)?t:t.substr(t.indexOf(e)+e.length)}},{key:"afterLast",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return""===e||-1===t.indexOf(e)?t:t.substr(t.lastIndexOf(e)+e.length)}},{key:"ascii",value:function(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return String.fromCharCode.apply(String,function(t){if(Array.isArray(t))return u(t)}(t=e.split("").map(function(t){return t.charCodeAt(0)}))||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||r(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}},{key:"before",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return""===e||-1===t.indexOf(e)?t:t.substr(0,t.indexOf(e))}},{key:"beforeLast",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return""===e||-1===t.indexOf(e)?t:t.substr(0,t.lastIndexOf(e))}},{key:"between",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"";return-1===t.indexOf(e)||-1===t.indexOf(r)?t:S.beforeLast(S.after(t,e),r)}},{key:"camel",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";if(void 0!==S.camelCache[t])return S.camelCache[t];var e=S.studly(t);return S.camelCache[t]="".concat(e[0].toLowerCase()).concat(e.slice(1))}},{key:"contains",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];return Array.isArray(t)?t.some(function(t){return e.includes(t)}):e.includes(t)}},{key:"containsAll",value:function(e){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:[]).every(function(t){return e.includes(t)})}},{key:"endsWith",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];return Array.isArray(t)?t.some(function(t){return e.substr(-t.length)===t}):e.substr(-t.length)===t}},{key:"finish",value:function(t,e){return S.endsWith(t,e)?t:"".concat(t).concat(e)}},{key:"is",value:function(t,e){return(Array.isArray(t)?t:[t]).some(function(t){return e===t||(!1===t.includes("*")?new RegExp(t).test(e):t.includes("*")?new RegExp(t.replace(/\*/g,".*")).test(e):void 0)})}},{key:"isAscii",value:function(t){return/^[\x00-\xFF]*$/.test(String(t))}},{key:"isUuid",value:function(t){return"string"==typeof t&&0<h("/^[da-f]{8}-[da-f]{4}-[da-f]{4}-[da-f]{4}-[da-f]{12}$/iD",t)}},{key:"kebab",value:function(t){return S.snake(t,"-")}},{key:"snake",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"_",r=t;return void 0!==S.snakeCache&&void 0!==S.snakeCache[e]||(y(t)?S.snakeCache[r]=o(o({},S.snakeCache[r]||{}),{},i({},e,t)):S.snakeCache[r]=o(o({},S.snakeCache[r]||{}),{},i({},e,t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(function(t){return t.toLowerCase()}).join(e)))),S.snakeCache[r][e]}},{key:"length",value:function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").length}},{key:"limit",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:100,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"...";return t.length<e?t:t.slice(0,e)+r}},{key:"lower",value:function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").toLocaleLowerCase()}},{key:"words",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:100,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"...",n=t.split(" ");return n.length<=e?t:n.slice(0,e).join(" ")+r}},{key:"parseCallback",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return S.contains(t,"@")?g("@",t,2):[t,e]}},{key:"plural",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:2;return w.plural(t,e)}},{key:"pluralStudly",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:2,r=s(t.split(/(?=[A-Z][^A-Z]+$)/),2),n=r[0],o=r[1];return n+S.plural(o,e)}},{key:"random",value:function(){for(var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:16,e="",r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n=0;n<t;n++){var o=Math.floor(Math.random()*Math.floor(r.length));e+=r.slice(o,o+1)}return e}},{key:"replaceArray",value:function(r){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],e=2<arguments.length?arguments[2]:void 0;if(!1===Array.isArray(t))throw Error("Str.replaceArray requires that parameter two (replace) is an array. Passed In: "+JSON.stringify(t));return t.reduce(function(t,e){return t.replace(r,e)},e)}},{key:"replaceFirst",value:function(t,e,r){if(""===t)return r;var n=r.indexOf(t);if(-1===n)return r;var o=r.substr(0,n),i=r.substr(n+t.length,r.length);return"".concat(o).concat(e).concat(i)}},{key:"replaceLast",value:function(t,e,r){if(""===t)return r;var n=r.lastIndexOf(t);if(-1===n)return r;var o=r.substr(0,n),i=r.substr(n+t.length,r.length);return"".concat(o).concat(e).concat(i)}},{key:"start",value:function(t,e){return S.startsWith(t,e)?t:"".concat(e).concat(t)}},{key:"studly",value:function(t){return void 0!==S.studlyCache[t]?S.studlyCache[t]:S.studlyCache[t]=t.replace(/_/g," ").replace(/-/g," ").split(" ").reduce(function(t,e){return"".concat(t).concat(e[0].toUpperCase()).concat(e.slice(1))},"")}},{key:"upper",value:function(t){return t.toLocaleUpperCase()}},{key:"title",value:function(t){return S.snake(t).split("_").map(function(t){return S.ucfirst(t)}).join(" ")}},{key:"singular",value:function(t){return w.singular(t)}},{key:"slug",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"-";t=t.toLocaleString();var r=S.snake(t.replace(/@/g,"_at_")).replace(/_/g,e).trim();return r[0]===e?r.slice(1,r.length):r}},{key:"startsWith",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];return Array.isArray(t)?t.some(function(t){return e.startsWith(t)}):e.substr(0,t.length)===t}},{key:"substr",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return t.slice(e,e+r)}},{key:"substrCount",value:function(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return null===n?m(t,e,r):m(t,e,r,n)}},{key:"ucfirst",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return 0===t.length?t:1===t.length?t[0].toUpperCase():t[0].toUpperCase()+t.slice(1)}},{key:"uuid",value:function(){return void 0===S.uuidFactory?l():S.uuidFactory()}},{key:"createUuidsUsing",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;if("function"!=typeof t&&null!==t)throw Error("create uuidsUsing only excepts functions.");S.uuidFactory=t}},{key:"createUuidsNormally",value:function(){S.uuidFactory=null}}]),S);function S(){e(this,S)}x.snakeCache={},x.camelCache={},x.studlyCache={},O.exports=x,O.exports.Str=x,O.exports.default=x}).call(this,E(3),E(4))},function(t,e,r){function n(t){return"string"==typeof t?new RegExp("^"+t+"$","i"):t}function u(t,e){return t===e?e:t===t.toLowerCase()?e.toLowerCase():t===t.toUpperCase()?e.toUpperCase():t[0]===t[0].toUpperCase()?e.charAt(0).toUpperCase()+e.substr(1).toLowerCase():e.toLowerCase()}function i(i,s){return i.replace(s[0],function(t,e){var r,n,o=(r=s[1],n=arguments,r.replace(/\$(\d{1,2})/g,function(t,e){return n[e]||""}));return u(""===t?i[e-1]:t,o)})}function s(t,e,r){if(!t.length||p.hasOwnProperty(t))return e;for(var n=r.length;n--;){var o=r[n];if(o[0].test(e))return i(e,o)}return e}function o(r,n,o){return function(t){var e=t.toLowerCase();return n.hasOwnProperty(e)?u(t,e):r.hasOwnProperty(e)?u(t,r[e]):s(e,t,o)}}function c(r,n,o){return function(t){var e=t.toLowerCase();return!!n.hasOwnProperty(e)||!r.hasOwnProperty(e)&&s(e,e,o)===e}}function a(t,e,r){return(r?e+" ":"")+(1===e?a.singular(t):a.plural(t))}var l,f,p,h,y;t.exports=(l=[],f=[],p={},h={},y={},a.plural=o(y,h,l),a.isPlural=c(y,h,l),a.singular=o(h,y,f),a.isSingular=c(h,y,f),a.addPluralRule=function(t,e){l.push([n(t),e])},a.addSingularRule=function(t,e){f.push([n(t),e])},a.addUncountableRule=function(t){"string"!=typeof t?(a.addPluralRule(t,"$0"),a.addSingularRule(t,"$0")):p[t.toLowerCase()]=!0},a.addIrregularRule=function(t,e){e=e.toLowerCase(),t=t.toLowerCase(),y[t]=e,h[e]=t},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(t){return a.addIrregularRule(t[0],t[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(t){return a.addPluralRule(t[0],t[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(t){return a.addSingularRule(t[0],t[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(a.addUncountableRule),a)},function(t,e,r){"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 o(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 i=r(14);"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=i),o.prototype.toJSON=function(){return this.items},o.prototype.all=r(15),o.prototype.average=r(6),o.prototype.avg=r(16),o.prototype.chunk=r(17),o.prototype.collapse=r(18),o.prototype.combine=r(19),o.prototype.concat=r(20),o.prototype.contains=r(8),o.prototype.count=r(21),o.prototype.countBy=r(22),o.prototype.crossJoin=r(23),o.prototype.dd=r(24),o.prototype.diff=r(25),o.prototype.diffAssoc=r(26),o.prototype.diffKeys=r(27),o.prototype.dump=r(28),o.prototype.duplicates=r(29),o.prototype.each=r(30),o.prototype.eachSpread=r(31),o.prototype.every=r(32),o.prototype.except=r(33),o.prototype.filter=r(34),o.prototype.first=r(35),o.prototype.firstWhere=r(36),o.prototype.flatMap=r(37),o.prototype.flatten=r(38),o.prototype.flip=r(39),o.prototype.forPage=r(40),o.prototype.forget=r(41),o.prototype.get=r(42),o.prototype.groupBy=r(43),o.prototype.has=r(44),o.prototype.implode=r(45),o.prototype.intersect=r(46),o.prototype.intersectByKeys=r(47),o.prototype.isEmpty=r(48),o.prototype.isNotEmpty=r(49),o.prototype.join=r(50),o.prototype.keyBy=r(51),o.prototype.keys=r(52),o.prototype.last=r(53),o.prototype.macro=r(54),o.prototype.make=r(55),o.prototype.map=r(56),o.prototype.mapSpread=r(57),o.prototype.mapToDictionary=r(58),o.prototype.mapInto=r(59),o.prototype.mapToGroups=r(60),o.prototype.mapWithKeys=r(61),o.prototype.max=r(62),o.prototype.median=r(63),o.prototype.merge=r(64),o.prototype.mergeRecursive=r(65),o.prototype.min=r(66),o.prototype.mode=r(67),o.prototype.nth=r(68),o.prototype.only=r(69),o.prototype.pad=r(70),o.prototype.partition=r(71),o.prototype.pipe=r(72),o.prototype.pluck=r(73),o.prototype.pop=r(74),o.prototype.prepend=r(75),o.prototype.pull=r(76),o.prototype.push=r(77),o.prototype.put=r(78),o.prototype.random=r(79),o.prototype.reduce=r(80),o.prototype.reject=r(81),o.prototype.replace=r(82),o.prototype.replaceRecursive=r(83),o.prototype.reverse=r(84),o.prototype.search=r(85),o.prototype.shift=r(86),o.prototype.shuffle=r(87),o.prototype.skip=r(88),o.prototype.slice=r(89),o.prototype.some=r(90),o.prototype.sort=r(91),o.prototype.sortDesc=r(92),o.prototype.sortBy=r(93),o.prototype.sortByDesc=r(94),o.prototype.sortKeys=r(95),o.prototype.sortKeysDesc=r(96),o.prototype.splice=r(97),o.prototype.split=r(98),o.prototype.sum=r(99),o.prototype.take=r(100),o.prototype.tap=r(101),o.prototype.times=r(102),o.prototype.toArray=r(103),o.prototype.toJson=r(104),o.prototype.transform=r(105),o.prototype.unless=r(106),o.prototype.unlessEmpty=r(9),o.prototype.unlessNotEmpty=r(10),o.prototype.union=r(107),o.prototype.unique=r(108),o.prototype.unwrap=r(109),o.prototype.values=r(110),o.prototype.when=r(111),o.prototype.whenEmpty=r(10),o.prototype.whenNotEmpty=r(9),o.prototype.where=r(112),o.prototype.whereBetween=r(113),o.prototype.whereIn=r(114),o.prototype.whereInstanceOf=r(115),o.prototype.whereNotBetween=r(116),o.prototype.whereNotIn=r(117),o.prototype.whereNull=r(118),o.prototype.whereNotNull=r(119),o.prototype.wrap=r(120),o.prototype.zip=r(121);function s(t){return new o(t)}t.exports=s,t.exports.collect=s,t.exports.default=s,t.exports.Collection=o},function(t,e,r){"use strict";t.exports=function(){var t=this,e=-1;return{next:function(){return e+=1,{value:t.items[e],done:e>=t.items.length}}}}},function(t,e,r){"use strict";t.exports=function(){return this.items}},function(t,e,r){"use strict";var n=r(6);t.exports=n},function(t,e,r){"use strict";var u="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(r){var n=this,o=[],i=0;if(Array.isArray(this.items))do{var t=this.items.slice(i,i+r),e=new this.constructor(t);o.push(e),i+=r}while(i<this.items.length);else if("object"===u(this.items))for(var s=Object.keys(this.items);function(){var t=s.slice(i,i+r),e=new n.constructor({});t.forEach(function(t){return e.put(t,n.items[t])}),o.push(e),i+=r}(),i<s.length;);else o.push(new this.constructor([this.items]));return new this.constructor(o)}},function(t,e,r){"use strict";t.exports=function(){var t;return new this.constructor((t=[]).concat.apply(t,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(this.items)))}},function(t,e,r){"use strict";var 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,n=t;n instanceof this.constructor&&(n=t.all());var e,o={};return Array.isArray(this.items)&&Array.isArray(n)?this.items.forEach(function(t,e){o[t]=n[e]}):"object"===i(this.items)&&"object"===(void 0===n?"undefined":i(n))?Object.keys(this.items).forEach(function(t,e){o[r.items[t]]=n[Object.keys(n)[e]]}):Array.isArray(this.items)?o[this.items[0]]=n:"string"==typeof this.items&&Array.isArray(n)?(e=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(n=(s=u.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(n,1),o[this.items]=e[0]):"string"==typeof this.items&&(o[this.items]=n),new this.constructor(o)}},function(t,e,r){"use strict";var o="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=r(7);t.exports=function(e){var r=e;e instanceof this.constructor?r=e.all():"object"===(void 0===e?"undefined":o(e))&&(r=[],Object.keys(e).forEach(function(t){r.push(e[t])}));var n=i(this.items);return r.forEach(function(e){"object"===(void 0===e?"undefined":o(e))?Object.keys(e).forEach(function(t){return n.push(e[t])}):n.push(e)}),new this.constructor(n)}},function(t,e,r){"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,e,r){"use strict";t.exports=function(){var t=0<arguments.length&&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,e,r){"use strict";t.exports=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return new this.constructor(function t(e,r,n){var o=n[0];o instanceof r&&(o=o.all());for(var i=n.slice(1),s=!i.length,u=[],c=0;c<o.length;c+=1){var a=e.slice();a.push(o[c]),s?u.push(a):u=u.concat(t(a,r,i))}return u}([],this.constructor,[].concat([this.items],e)))}},function(e,t,r){"use strict";(function(t){e.exports=function(){this.dump(),void 0!==t&&t.exit(1)}}).call(this,r(4))},function(t,e,r){"use strict";t.exports=function(t){var e=void 0,e=t instanceof this.constructor?t.all():t,r=this.items.filter(function(t){return-1===e.indexOf(t)});return new this.constructor(r)}},function(t,e,r){"use strict";t.exports=function(t){var e=this,r=t;t instanceof this.constructor&&(r=t.all());var n={};return Object.keys(this.items).forEach(function(t){void 0!==r[t]&&r[t]===e.items[t]||(n[t]=e.items[t])}),new this.constructor(n)}},function(t,e,r){"use strict";t.exports=function(t){var e=t instanceof this.constructor?t.all():t,r=Object.keys(e),n=Object.keys(this.items).filter(function(t){return-1===r.indexOf(t)});return new this.constructor(this.items).only(n)}},function(t,e,r){"use strict";t.exports=function(){return console.log(this),this}},function(t,e,r){"use strict";var s="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(){function n(t){return Array.isArray(t)||"object"===(void 0===t?"undefined":s(t))?JSON.stringify(t):t}var r=this,o=[],i={};return Array.isArray(this.items)?this.items.forEach(function(t,e){var r=n(t);-1===o.indexOf(r)?o.push(r):i[e]=t}):"object"===s(this.items)&&Object.keys(this.items).forEach(function(t){var e=n(r.items[t]);-1===o.indexOf(e)?o.push(e):i[t]=r.items[t]}),new this.constructor(i)}},function(t,e,r){"use strict";t.exports=function(t){var e=!1;if(Array.isArray(this.items))for(var r=this.items.length,n=0;n<r&&!e;n+=1)e=!1===t(this.items[n],n,this.items);else for(var o=Object.keys(this.items),i=o.length,s=0;s<i&&!e;s+=1)var u=o[s],e=!1===t(this.items[u],u,this.items);return this}},function(t,e,r){"use strict";t.exports=function(r){return this.each(function(t,e){r.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(t).concat([e]))}),this}},function(t,e,r){"use strict";var n=r(1);t.exports=function(t){return n(this.items).every(t)}},function(t,e,r){"use strict";var u=r(5);t.exports=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=u(r);if(Array.isArray(this.items)){var i=this.items.filter(function(t){return-1===o.indexOf(t)});return new this.constructor(i)}var s={};return Object.keys(this.items).forEach(function(t){-1===o.indexOf(t)&&(s[t]=e.items[t])}),new this.constructor(s)}},function(t,e,r){"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 s(t){if(Array.isArray(t)){if(t.length)return}else if(null!=t&&"object"===(void 0===t?"undefined":n(t))){if(Object.keys(t).length)return}else if(t)return;return 1}t.exports=function(t){var e,r,n,o=t||!1,i=Array.isArray(this.items)?function(t){if(o)return t.filter(o);for(var e=[],r=0;r<t.length;r+=1){var n=t[r];s(n)||e.push(n)}return e}(this.items):(e=o,r=this.items,n={},Object.keys(r).forEach(function(t){e?e(r[t],t)&&(n[t]=r[t]):s(r[t])||(n[t]=r[t])}),n);return new this.constructor(i)}},function(t,e,r){"use strict";var s=r(0).isFunction;t.exports=function(t,e){if(s(t)){for(var r=0,n=this.items.length;r<n;r+=1){var o=this.items[r];if(t(o))return o}return s(e)?e():e}if(Array.isArray(this.items)&&this.items.length||Object.keys(this.items).length){if(Array.isArray(this.items))return this.items[0];var i=Object.keys(this.items)[0];return this.items[i]}return s(e)?e():e}},function(t,e,r){"use strict";t.exports=function(t,e,r){return this.where(t,e,r).first()||null}},function(t,e,r){"use strict";t.exports=function(t){return this.map(t).collapse()}},function(t,e,r){"use strict";var n=r(0),s=n.isArray,u=n.isObject;t.exports=function(t){function e(r){i=[],s(r)?r.forEach(function(e){s(e)?i=i.concat(e):u(e)?Object.keys(e).forEach(function(t){i=i.concat(e[t])}):i.push(e)}):Object.keys(r).forEach(function(e){s(r[e])?i=i.concat(r[e]):u(r[e])?Object.keys(r[e]).forEach(function(t){i=i.concat(r[e][t])}):i.push(r[e])}),o=0===(o=i.filter(function(t){return u(t)})).length,--n}var n=t||1/0,o=!1,i=[];for(e(this.items);!o&&0<n;)e(i);return new this.constructor(i)}},function(t,e,r){"use strict";t.exports=function(){var e=this,r={};return Array.isArray(this.items)?Object.keys(this.items).forEach(function(t){r[e.items[t]]=Number(t)}):Object.keys(this.items).forEach(function(t){r[e.items[t]]=t}),new this.constructor(r)}},function(t,e,r){"use strict";t.exports=function(t,e){var r=this,n={};return Array.isArray(this.items)?n=this.items.slice(t*e-e,t*e):Object.keys(this.items).slice(t*e-e,t*e).forEach(function(t){n[t]=r.items[t]}),new this.constructor(n)}},function(t,e,r){"use strict";t.exports=function(t){return Array.isArray(this.items)?this.items.splice(t,1):delete this.items[t],this}},function(t,e,r){"use strict";var n=r(0).isFunction;t.exports=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return void 0!==this.items[t]?this.items[t]:n(e)?e():null!==e?e:null}},function(t,e,r){"use strict";var s=r(2),u=r(0).isFunction;t.exports=function(n){var o=this,i={};return this.items.forEach(function(t,e){var r=u(n)?n(t,e):s(t,n)||0===s(t,n)?s(t,n):"";void 0===i[r]&&(i[r]=new o.constructor([])),i[r].push(t)}),new this.constructor(i)}},function(t,e,r){"use strict";var i=r(5);t.exports=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=i(r);return o.filter(function(t){return e.items[t]}).length===o.length}},function(t,e,r){"use strict";t.exports=function(t,e){return void 0===e?this.items.join(t):new this.constructor(this.items).pluck(t).all().join(e)}},function(t,e,r){"use strict";t.exports=function(t){var e=t;t instanceof this.constructor&&(e=t.all());var r=this.items.filter(function(t){return-1!==e.indexOf(t)});return new this.constructor(r)}},function(t,e,r){"use strict";t.exports=function(t){var e=this,r=Object.keys(t);t instanceof this.constructor&&(r=Object.keys(t.all()));var n={};return Object.keys(this.items).forEach(function(t){-1!==r.indexOf(t)&&(n[t]=e.items[t])}),new this.constructor(n)}},function(t,e,r){"use strict";t.exports=function(){return Array.isArray(this.items)?!this.items.length:!Object.keys(this.items).length}},function(t,e,r){"use strict";t.exports=function(){return!this.isEmpty()}},function(t,e,r){"use strict";t.exports=function(t,e){var r=this.values();if(void 0===e)return r.implode(t);var n=r.count();if(0===n)return"";if(1===n)return r.last();var o=r.pop();return r.implode(t)+e+o}},function(t,e,r){"use strict";var o=r(2),i=r(0).isFunction;t.exports=function(r){var n={};return i(r)?this.items.forEach(function(t){n[r(t)]=t}):this.items.forEach(function(t){var e=o(t,r);n[e||""]=t}),new this.constructor(n)}},function(t,e,r){"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,e,r){"use strict";var o=r(0).isFunction;t.exports=function(t,e){var r=this.items;if(o(t)&&(r=this.filter(t).all()),Array.isArray(r)&&!r.length||!Object.keys(r).length)return o(e)?e():e;if(Array.isArray(r))return r[r.length-1];var n=Object.keys(r);return r[n[n.length-1]]}},function(t,e,r){"use strict";t.exports=function(t,e){this.constructor.prototype[t]=e}},function(t,e,r){"use strict";t.exports=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];return new this.constructor(t)}},function(t,e,r){"use strict";t.exports=function(e){var r=this;if(Array.isArray(this.items))return new this.constructor(this.items.map(e));var n={};return Object.keys(this.items).forEach(function(t){n[t]=e(r.items[t],t)}),new this.constructor(n)}},function(t,e,r){"use strict";t.exports=function(r){return this.map(function(t,e){return r.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(t).concat([e]))})}},function(t,e,r){"use strict";t.exports=function(i){var s={};return this.items.forEach(function(t,e){var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(n=(s=u.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(i(t,e),2),n=r[0],o=r[1];void 0===s[n]?s[n]=[o]:s[n].push(o)}),new this.constructor(s)}},function(t,e,r){"use strict";t.exports=function(r){return this.map(function(t,e){return new r(t,e)})}},function(t,e,r){"use strict";t.exports=function(i){var s={};return this.items.forEach(function(t,e){var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(n=(s=u.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(i(t,e),2),n=r[0],o=r[1];void 0===s[n]?s[n]=[o]:s[n].push(o)}),new this.constructor(s)}},function(t,e,r){"use strict";function c(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(n=(s=u.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}t.exports=function(i){var s=this,u={};return Array.isArray(this.items)?this.items.forEach(function(t){var e=i(t),r=c(e,2),n=r[0],o=r[1];u[n]=o}):Object.keys(this.items).forEach(function(t){var e=i(s.items[t]),r=c(e,2),n=r[0],o=r[1];u[n]=o}),new this.constructor(u)}},function(t,e,r){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}t.exports=function(e){if("string"!=typeof e)return Math.max.apply(Math,n(this.items));var t=this.items.filter(function(t){return void 0!==t[e]});return Math.max.apply(Math,n(t.map(function(t){return t[e]})))}},function(t,e,r){"use strict";t.exports=function(t){var e=this.items.length;return void 0===t?e%2==0?(this.items[e/2-1]+this.items[e/2])/2:this.items[Math.floor(e/2)]:e%2==0?(this.items[e/2-1][t]+this.items[e/2][t])/2:this.items[Math.floor(e/2)][t]}},function(t,e,r){"use strict";t.exports=function(t){var e=t;if("string"==typeof e&&(e=[e]),Array.isArray(this.items)&&Array.isArray(e))return new this.constructor(this.items.concat(e));var r=JSON.parse(JSON.stringify(this.items));return Object.keys(e).forEach(function(t){r[t]=e[t]}),new this.constructor(r)}},function(t,e,r){"use strict";var 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){function o(e,r){var n={};return Object.keys(Object.assign({},e,r)).forEach(function(t){void 0===e[t]&&void 0!==r[t]?n[t]=r[t]:void 0!==e[t]&&void 0===r[t]?n[t]=e[t]:void 0!==e[t]&&void 0!==r[t]&&(e[t]===r[t]?n[t]=e[t]:Array.isArray(e[t])||"object"!==i(e[t])||Array.isArray(r[t])||"object"!==i(r[t])?n[t]=[].concat(e[t],r[t]):n[t]=o(e[t],r[t]))}),n}return t?"Collection"===t.constructor.name?new this.constructor(o(this.items,t.all())):new this.constructor(o(this.items,t)):this}},function(t,e,r){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}t.exports=function(e){if(void 0===e)return Math.min.apply(Math,n(this.items));var t=this.items.filter(function(t){return void 0!==t[e]});return Math.min.apply(Math,n(t.map(function(t){return t[e]})))}},function(t,e,r){"use strict";t.exports=function(n){var o=[],i=1;return this.items.length?(this.items.forEach(function(e){var t,r=o.filter(function(t){return void 0!==n?t.key===e[n]:t.key===e});r.length?(r[0].count+=1,t=r[0].count,i<t&&(i=t)):void 0!==n?o.push({key:e[n],count:1}):o.push({key:e,count:1})}),o.filter(function(t){return t.count===i}).map(function(t){return t.key})):null}},function(t,e,r){"use strict";var n=r(1);t.exports=function(r){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=n(this.items).slice(t).filter(function(t,e){return e%r==0});return new this.constructor(e)}},function(t,e,r){"use strict";var u=r(5);t.exports=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=u(r);if(Array.isArray(this.items)){var i=this.items.filter(function(t){return-1!==o.indexOf(t)}