diff --git a/compiled/methods/init-date-filters.js b/compiled/methods/init-date-filters.js index 817c9b3b..a7b5790a 100644 --- a/compiled/methods/init-date-filters.js +++ b/compiled/methods/init-date-filters.js @@ -43,13 +43,13 @@ module.exports = function () { columnOptions = typeof that.opts.datepickerPerColumnOptions[column] !== 'undefined' ? that.opts.datepickerPerColumnOptions[column] : {}; - columnOptions = merge(columnOptions, { + columnOptions = merge.recursive(columnOptions, { locale: { format: that.dateFormat(column) } }); - el.daterangepicker(merge(datepickerOptions, columnOptions, range)); + el.daterangepicker(merge.recursive(datepickerOptions, columnOptions, range)); el.on('apply.daterangepicker', function (ev, picker) { diff --git a/dist/vue-tables-2.min.js b/dist/vue-tables-2.min.js index 293c8ece..dfd25bba 100644 --- a/dist/vue-tables-2.min.js +++ b/dist/vue-tables-2.min.js @@ -1 +1 @@ -var VueTables=function(t){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}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get: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,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=31)}([function(t,e,r){(function(t){!function(e){function r(t,e){if("object"!==i(t))return e;for(var n in e)"object"===i(t[n])&&"object"===i(e[n])?t[n]=r(t[n],e[n]):t[n]=e[n];return t}function n(t,e,n){var s=n[0],a=n.length;(t||"object"!==i(s))&&(s={});for(var u=0;u1)for(var r=1;r=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n=-1&&!i;o--){var s=o>=0?arguments[o]:t.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,i="/"===s.charAt(0))}return e=r(n(e.split("/"),function(t){return!!t}),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),o="/"===s(t,-1);return t=r(n(t.split("/"),function(t){return!!t}),!i).join("/"),t||i||(t="."),t&&o&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split("/")),o=n(r.split("/")),s=Math.min(i.length,o.length),a=s,u=0;u=0?i=setTimeout(n,e-c):(i=null,r||(u=t.apply(s,o),s=o=null))}var i,o,s,a,u;null==e&&(e=100);var c=function(){s=this,o=arguments,a=Date.now();var c=r&&!i;return i||(i=setTimeout(n,e)),c&&(u=t.apply(s,o),s=o=null),u};return c.clear=function(){i&&(clearTimeout(i),i=null)},c.flush=function(){i&&(u=t.apply(s,o),s=o=null,clearTimeout(i),i=null)},c}},function(t,e){t.exports=Vue},function(t,e,r){"use strict";var n=r(33),i=r(12);t.exports={Pagination:n,PaginationEvent:i}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";var n=r(9),i=function(t){return t&&t.__esModule?t:{default:t}}(n),o=new i.default;t.exports=o},function(t,e,r){"use strict";function n(){return{methods:{setData:function(t){this.commit("SET_DATA",t),this.commit("LOADED",t),setTimeout(function(){this.dispatch("loaded",t)}.bind(this),0)}}}}function i(){return{}}Object.defineProperty(e,"__esModule",{value:!0});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};e.default=function(t){var e="server"==t?n():i();return a.default.recursive(!0,{props:{name:{type:String,required:!0}},computed:{state:function(){return this.$store.state[this.name]},Page:function(){return this.state.page},count:function(){return this.state.count},Columns:function(){return this.state.columns},tableData:function(){return this.state.data},page:function(){return this.state.page},limit:function(){return this.state.limit},customQueries:function(){return this.state.customQueries},query:function(){return this.state.query},orderBy:function(){return{column:this.state.sortBy,ascending:this.state.ascending}}},methods:{commit:function(t,e){return this.$store.commit(this.name+"/"+t,e)},orderByColumn:function(t,e){if(this.sortable(t))if(e.shiftKey&&this.orderBy.column&&this.hasMultiSort)this.setUserMultiSort(t);else{var r=this.orderBy.column===t?!this.orderBy.ascending:this._initialOrderAscending(t),n={column:t,ascending:r};this.updateState("orderBy",n),this.commit("SORT",n),this.dispatch("sorted",n)}},setLimit:function(t){var e="object"===(void 0===t?"undefined":o(t))?parseInt(t.target.value):t;this.updateState("perPage",e),this.commit("SET_LIMIT",e),this.dispatch("limit",e)},setOrder:function(t,e){this.updateState("orderBy",{column:t,ascending:e}),this.commit("SORT",{column:t,ascending:e})},setPage:function(t){t||(t=this.$refs.page.value),this.opts.pagination.dropdown||(this.$refs.pagination.Page=t),this.commit("PAGINATE",t)}}},e)};var s=r(0),a=function(t){return t&&t.__esModule?t:{default:t}}(s)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{computed:{Columns:function(){return this.columns}}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{methods:n,computed:i,directives:o,beforeDestroy:s}};var n=r(40),i=r(141),o=r(153),s=r(156)},function(t,e,r){"use strict";t.exports=function(t,e){if(!this.opts.texts)return"";var t=this.opts.texts[t];if(e)for(var r in e)t=t.replace("{"+r+"}",e[r]);return t}},function(t,e,r){"use strict";function n(t,e){t.vuex?t.commit("SET_FILTER",e):(t.initPagination(),t.opts.pagination.dropdown&&t.getData())}t.exports=function(t,e){var r=this.vuex?JSON.parse(JSON.stringify(this.query)):this.query;if("Object"==Object.prototype.toString.call(t).slice(8,-1)){r=this.vuex?JSON.parse(JSON.stringify(t)):t,this.vuex||(this.query=r);var i=e.target.name,o=e.target.value;i?(this.dispatch("filter",{name:i,value:o}),this.dispatch("filter::"+i,o)):this.dispatch("filter",o),this.updateState("query",r)}else if(t){var s=this.getName(t.target.name),a=t.target.value;s?r[s]=a:r=a,this.vuex||(this.query=r),s?(this.dispatch("filter",{name:s,value:a}),this.dispatch("filter::"+s,a)):this.dispatch("filter",a),this.updateState("query",r)}return n(this,r)}},function(t,e,r){"use strict";t.exports=function(t){return t&&"function"==typeof t.isValid&&t.isValid()}},function(t,e,r){"use strict";(function(t){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(n()=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),o.alloc(+t)}function y(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return K(t).length;default:if(n)return V(t).length;e=(""+e).toLowerCase(),n=!0}}function m(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,e,r);case"utf8":case"utf-8":return T(this,e,r);case"ascii":return O(this,e,r);case"latin1":case"binary":return B(this,e,r);case"base64":return E(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=o.from(e,n)),o.isBuffer(e))return 0===e.length?-1:_(t,e,r,n,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):_(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,e,r,n,i){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}var c;if(i){var l=-1;for(c=r;ca&&(r=a-u),c=r;c>=0;c--){for(var f=!0,p=0;pi&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s239?4:o>223?3:o>191?2:1;if(i+a<=r){var u,c,l,f;switch(a){case 1:o<128&&(s=o);break;case 2:u=t[i+1],128==(192&u)&&(f=(31&o)<<6|63&u)>127&&(s=f);break;case 3:u=t[i+1],c=t[i+2],128==(192&u)&&128==(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(s=f);break;case 4:u=t[i+1],c=t[i+2],l=t[i+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(s=f)}}null===s?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=a}return j(n)}function j(t){var e=t.length;if(e<=Z)return String.fromCharCode.apply(String,t);for(var r="",n=0;nn)&&(r=n);for(var i="",o=e;or)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,r,n,i,s){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function F(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i>>8*(n?i:1-i)}function $(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i>>8*(n?i:3-i)&255}function I(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(t,e,r,n,i){return i||I(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),J.write(t,e,r,n,23,4),r+4}function U(t,e,r,n,i){return i||I(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),J.write(t,e,r,n,52,8),r+8}function N(t){if(t=q(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function q(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Y(t){return t<16?"0"+t.toString(16):t.toString(16)}function V(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],s=0;s55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Q(t){for(var e=[],r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function K(t){return z.toByteArray(N(t))}function G(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function W(t){return t!==t}var z=r(68),J=r(69),X=r(20);e.Buffer=o,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,r){return s(null,t,e,r)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,r){return u(null,t,e,r)},o.allocUnsafe=function(t){return c(null,t)},o.allocUnsafeSlow=function(t){return c(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,s=Math.min(r,n);i0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},o.prototype.compare=function(t,e,r,n,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var s=i-n,a=r-e,u=Math.min(s,a),c=this.slice(n,i),l=t.slice(e,r),f=0;fi)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return x(this,t,e,r);case"ascii":return S(this,t,e,r);case"latin1":case"binary":return P(this,t,e,r);case"base64":return C(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)n+=this[t+--e]*i;return n},o.prototype.readUInt8=function(t,e){return e||M(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||M(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||M(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||M(t,e,this.length);for(var n=this[t],i=1,o=0;++o=i&&(n-=Math.pow(2,8*e)),n},o.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||M(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||M(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(t,e){e||M(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(t,e){return e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||M(t,4,this.length),J.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||M(t,4,this.length),J.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||M(t,8,this.length),J.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||M(t,8,this.length),J.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){D(this,t,e,r,Math.pow(2,8*r)-1,0)}var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+r},o.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):F(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):F(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):$(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):$(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);D(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+r},o.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);D(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},o.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):F(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):F(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):$(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):$(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,r){return L(this,t,e,!0,r)},o.prototype.writeFloatBE=function(t,e,r){return L(this,t,e,!1,r)},o.prototype.writeDoubleLE=function(t,e,r){return U(this,t,e,!0,r)},o.prototype.writeDoubleBE=function(t,e,r){return U(this,t,e,!1,r)},o.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--i)t[i+e]=this[i+r];else if(s<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var s;if("number"==typeof t)for(s=e;s2&&void 0!==arguments[2]?arguments[2]:1,n={vuex:!0,activeState:!1,userColumnsDisplay:[],userControlsColumns:!1,displayColumnsDropdown:!1};return t?n:(n=(0,i.default)(n,{vuex:!1,count:0,customQueries:{},query:null,page:r,limit:10,windowWidth:window.innerWidth,orderBy:{column:!1,ascending:!0}}),"server"==e&&(n.data=[]),n)};var n=r(0),i=function(t){return t&&t.__esModule?t:{default:t}}(n)},function(t,e,r){"use strict";function n(){for(var t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r<5;r++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}t.exports=function(){return{id:n(),openChildRows:[],windowWidth:window.innerWidth,userMultiSorting:{}}}},function(t,e,r){"use strict";function n(t){var e,r,n,a={};for(var u in t){n=o(t[u]);try{r=s(t[u]),e=i(r,n),a[u]=e.concat([n])}catch(t){console.warn("Unknown device "+r)}}return a}function i(t,e){var r={desktop:[1024,null],tablet:[480,1024],mobile:[0,480],tabletL:[768,1024],tabletP:[480,768],mobileL:[320,480],mobileP:[0,320]};switch(e){case"min":return[r[t][0],null];case"max":return[0,r[t][1]];default:return r[t]}}function o(t){var e=t.split("_");return["not","min","max"].indexOf(e[0])>-1&&e[0]}function s(t){var e=t.split("_");return e.length>1?e[1]:e[0]}var a=r(157),u=r(158);t.exports=function(t){t.vuex?u(t):t.limit=t.opts.perPage,a(t.opts.columnsDisplay)||(t.columnsDisplay=n(t.opts.columnsDisplay),window.addEventListener("resize",function(){t.windowWidth=window.innerWidth}.bind(t)))}},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=function(t,e){var i={bootstrap3:r(161)(),bootstrap4:r(162)(),bulma:r(163)()},o={default:r(164),footerPagination:r(165)};return function(s){var a={rows:r(166).call(this,s),normalFilter:r(167).call(this,s),dropdownPagination:r(168).call(this,s),dropdownPaginationCount:r(169).call(this,s),columnFilters:r(170).call(this,s),pagination:r(174).call(this,s),headings:r(175).call(this,s),perPage:r(177).call(this,s),columnsDropdown:r(178).call(this,s)};if("string"==typeof t&&(!o[t]||"function"!=typeof o[t]))throw'vue-tables-2: Template "'+t+'" does not exist';if("string"==typeof e&&(!i[e]||"object"!==n(i[e])))throw'vue-tables-2: Theme "'+e+'" does not exist';var u="string"==typeof t?o[t]:t,c="string"==typeof e?i[e]:e(),l=r(181).call(this);return u.call(this,s,a,c,l)}}},function(t,e,r){"use strict";t.exports=function(t){var e=this,r=[];return this.opts.perPageValues.every(function(n){var i=n>=e.count,o=e.limit==n||i&&e.limit>n;return r.push(t("option",{domProps:{value:n,selected:o}},[n])),!i}),r}},function(t,e,r){"use strict";t.exports=function(){return Math.ceil(this.count/this.limit)}},function(t,e,r){"use strict";function n(t){return t?"string"==typeof t?t.toLowerCase():t:""}function i(t,e,r){if(["string","number"].indexOf(void 0===e?"undefined":s(e))>-1&&(e=String(e).toLowerCase()),r)return e==t;if("string"==typeof e)return e.indexOf(t)>-1;if(u(e)){var n=moment(t.start,"YYYY-MM-DD HH:mm:ss"),o=moment(t.end,"YYYY-MM-DD HH:mm:ss");return e>=n&&e<=o}if("object"===(void 0===e?"undefined":s(e))){for(var a in e)if(i(t,e[a]))return!0;return!1}return e>=n&&e<=o}function o(t,e,r){return u(t)?e?t:t.format(r):t}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},a=r(185),u=r(18),c=r(186);t.exports=function(t,e){if(e){var r=this.query;this.setPage(1,!0);var u=this.getName(e.target.name),l="object"===s(e.target.value)?e.target.value:""+e.target.value;u?r[u]=l:r=l,this.vuex?this.commit("SET_FILTER",r):this.query=r,this.updateState("query",r),u?(this.dispatch("filter",{name:u,value:l}),this.dispatch("filter::"+u,l)):this.dispatch("filter",l)}var f=this.query,p=f?1:0;if(!this.opts)return t;this.opts.filterByColumn&&(p=a(f));var l,h,d,g,y,m,t=c(t,this.opts.customFilters,this.customQueries);return p?t.filter(function(t,e){return h=0,this.filterableColumns.forEach(function(e){y=this.opts.dateColumns.indexOf(e)>-1&&this.opts.filterByColumn,m=this.isListFilter(e)&&this.opts.filterByColumn,g=this.dateFormat(e),l=o(t[e],y,g),d=this.opts.filterByColumn?f[e]:f,(d=n(d))&&i(d,l,m)&&h++}.bind(this)),h>=p}.bind(this)):t}},function(t,e,r){"use strict";var n=r(1),i=function(t){return t&&t.__esModule?t:{default:t}}(n),o=r(32),s=r(191);t.exports={ClientTable:o,ServerTable:s,Event:i.default}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var i=r(10),o=r(13),s=n(o),a=r(14),u=n(a),c=r(0),l=n(c),f=r(15),p=n(f),h=r(24),d=n(h),g=r(25),y=r(26),m=r(27);e.install=function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bootstrap3",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",c=l.default.recursive(!0,(0,p.default)(),{name:"client-table",components:{Pagination:i.Pagination},render:m.call(this,a,o),props:{columns:{type:Array,required:!0},data:{type:Array,required:!0},name:{type:String,required:!1},options:{type:Object,required:!1,default:function(){return{}}}},created:function(){y(this),this.vuex||(this.initOrderBy(),this.query=this.initQuery(),this.customQueries=this.initCustomFilters())},mounted:function(){this.opts.toMomentFormat&&this.transformDateStringsToMoment(),this.vuex||(this.registerClientFilters(),this.options.initialPage&&this.setPage(this.options.initialPage)),this.opts.groupBy&&!this.opts.orderBy&&(this.orderBy.column=this.opts.groupBy),this.loadState(),this.hasDateFilters()&&this.initDateFilters()},data:function(){return l.default.recursive(g(),{source:"client",globalOptions:e,currentlySorting:{},time:Date.now()},(0,d.default)(n,"client",this.options.initialPage))},computed:{q:r(182),customQ:r(183),totalPages:r(29),filteredData:r(184),hasMultiSort:function(){return this.opts.clientMultiSorting}},methods:{transformDateStringsToMoment:r(188),registerClientFilters:r(189),search:r(30),defaultSort:r(190),loadState:function(){if(this.opts.saveState){if(!this.storage.getItem(this.stateKey))return this.initState(),void(this.activeState=!0);var t=JSON.parse(this.storage.getItem(this.stateKey));this.opts.filterable&&this.setFilter(t.query),this.setOrder(t.orderBy.column,t.orderBy.ascending),this.vuex?this.commit("SET_LIMIT",t.perPage):this.limit=t.perPage,this.setPage(t.page),this.activeState=!0}}}}),f=n?(0,s.default)():(0,u.default)();return c=l.default.recursive(c,f),t.component("v-client-table",c),c}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}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 o(t,e){return Array.apply(0,Array(e)).map(function(e,r){return r+t})}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},a="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":s(t)},u=r(34),c=n(u),l=r(35),f=n(l),p=r(36),h=r(12);t.exports={render:p.call(void 0),props:{for:{type:String,required:!1},records:{type:Number,required:!0},perPage:{type:Number,default:25},vuex:{type:Boolean},options:{type:Object}},created:function(){if(this.vuex){if(!this.for)throw new Error('vue-pagination-2: The "for" prop is required when using vuex');var t=this.for;this.$store.state[t]||this.$store.registerModule(this.for,{state:{page:1},mutations:i({},t+"/PAGINATE",function(t,e){t.page=e})})}},data:function(){return{Page:1,firstPage:1}},computed:{opts:function(){return(0,f.default)((0,c.default)(),this.options)},Theme:function(){if("object"===a(this.opts.theme))return this.opts.theme;var t={bootstrap3:r(37),bootstrap4:r(38),bulma:r(39)};if(void 0===a(t[this.opts.theme]))throw"vue-pagination-2: the theme "+this.opts.theme+" does not exist";return t[this.opts.theme]},page:function(){return this.vuex?this.$store.state[this.for].page:this.Page},pages:function(){return this.records?o(this.paginationStart,this.pagesInCurrentChunk):[]},totalPages:function(){return this.records?Math.ceil(this.records/this.perPage):1},totalChunks:function(){return Math.ceil(this.totalPages/this.opts.chunk)},currentChunk:function(){return Math.ceil(this.page/this.opts.chunk)},paginationStart:function(){return"scroll"===this.opts.chunksNavigation?this.firstPage:(this.currentChunk-1)*this.opts.chunk+1},pagesInCurrentChunk:function(){return this.paginationStart+this.opts.chunk<=this.totalPages?this.opts.chunk:this.totalPages-this.paginationStart+1},count:function(){if(/{page}/.test(this.opts.texts.count))return this.totalPages<=1?"":this.opts.texts.count.replace("{page}",this.page).replace("{pages}",this.totalPages);var t=this.opts.texts.count.split("|"),e=(this.page-1)*this.perPage+1,r=this.page==this.totalPages?this.records:e+this.perPage-1;return t[Math.min(1==this.records?2:1==this.totalPages?1:0,t.length-1)].replace("{count}",this.formatNumber(this.records)).replace("{from}",this.formatNumber(e)).replace("{to}",this.formatNumber(r))}},methods:{setPage:function(t){this.allowedPage(t)&&this.paginate(t)},paginate:function(t){this.vuex?this.$store.commit(this.for+"/PAGINATE",t):this.Page=t,this.$emit("paginate",t),this.for&&h.$emit("vue-pagination::"+this.for,t)},next:function(){var t=this.page+1;return"scroll"===this.opts.chunksNavigation&&this.allowedPage(t)&&!this.inDisplay(t)&&this.firstPage++,this.setPage(t)},prev:function(){var t=this.page-1;return"scroll"===this.opts.chunksNavigation&&this.allowedPage(t)&&!this.inDisplay(t)&&this.firstPage--,this.setPage(t)},inDisplay:function(t){var e=this.firstPage,r=e+this.opts.chunk-1;return t>=e&&t<=r},nextChunk:function(){return this.setChunk(1)},prevChunk:function(){return this.setChunk(-1)},setChunk:function(t){this.setPage((this.currentChunk-1+t)*this.opts.chunk+1)},allowedPage:function(t){return t>=1&&t<=this.totalPages},allowedChunk:function(t){return 1==t&&this.currentChunk1},allowedPageClass:function(t){return this.allowedPage(t)?"":this.Theme.disabled},allowedChunkClass:function(t){return this.allowedChunk(t)?"":this.Theme.disabled},activeClass:function(t){return this.page==t?this.Theme.active:""},formatNumber:function(t){return this.opts.format?t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):t}},beforeDestroy:function(){h.$off(),h.$destroy()}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{format:!0,chunk:10,chunksNavigation:"fixed",edgeNavigation:!1,theme:"bootstrap3",texts:{count:"Showing {from} to {to} of {count} records|{count} records|One record",first:"First",last:"Last"}}}},function(t,e,r){(function(t){!function(e){function r(t,e){if("object"!==i(t))return e;for(var n in e)"object"===i(t[n])&&"object"===i(e[n])?t[n]=r(t[n],e[n]):t[n]=e[n];return t}function n(t,e,n){var s=n[0],a=n.length;(t||"object"!==i(s))&&(s={});for(var u=0;u1&&(i=t("li",{class:"VuePagination__pagination-item "+e.item+" "+(1===this.page?e.disabled:"")+" VuePagination__pagination-item-prev-chunk"},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:1===this.page},on:{click:this.setPage.bind(this,1)}},[this.opts.texts.first])]),o=t("li",{class:"VuePagination__pagination-item "+e.item+" "+(this.page===this.totalPages?e.disabled:"")+" VuePagination__pagination-item-prev-chunk"},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:this.page===this.totalPages},on:{click:this.setPage.bind(this,this.totalPages)}},[this.opts.texts.last])])),"fixed"===this.opts.chunksNavigation&&(r=t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.prev+" VuePagination__pagination-item-prev-chunk "+this.allowedChunkClass(-1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedChunkClass(-1)},on:{click:this.setChunk.bind(this,-1)}},["<<"])]),n=t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.next+" VuePagination__pagination-item-next-chunk "+this.allowedChunkClass(1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedChunkClass(1)},on:{click:this.setChunk.bind(this,1)}},[">>"])])),t("div",{class:"VuePagination "+e.wrapper},[t("nav",{class:""+e.nav},[t("ul",{directives:[{name:"show",value:this.totalPages>1}],class:e.list+" VuePagination__pagination"},[i,r,t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.prev+" VuePagination__pagination-item-prev-page "+this.allowedPageClass(this.page-1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedPageClass(this.page-1)},on:{click:this.prev.bind(this)}},["<"])]),s,t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.next+" VuePagination__pagination-item-next-page "+this.allowedPageClass(this.page+1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedPageClass(this.page+1)},on:{click:this.next.bind(this)}},[">"])]),n,o]),t("p",{directives:[{name:"show",value:parseInt(this.records)}],class:"VuePagination__count "+e.count},[this.count])])])}}},function(t,e,r){"use strict";t.exports={nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}},function(t,e,r){"use strict";t.exports={nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}},function(t,e,r){"use strict";t.exports={nav:"",count:"",wrapper:"pagination",list:"pagination-list",item:"",link:"pagination-link",next:"",prev:"",active:"is-current",disabled:""}},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i;t.exports=(i={initQuery:r(41),initCustomFilters:r(42),initOptions:r(43),sortableClass:r(44),sortableChevronClass:r(45),display:r(16),orderByColumn:r(46),getHeading:r(47),getHeadingTooltip:r(49),sortable:r(50)},n(i,"display",r(16)),n(i,"serverSearch",r(17)),n(i,"initOrderBy",r(51)),n(i,"initDateFilters",r(52)),n(i,"setFilter",r(53)),n(i,"setPage",r(54)),n(i,"setOrder",r(55)),n(i,"initPagination",r(56)),n(i,"filterable",r(57)),n(i,"isTextFilter",r(58)),n(i,"isDateFilter",r(59)),n(i,"isListFilter",r(60)),n(i,"highlightMatch",r(61)),n(i,"formatDate",r(62)),n(i,"hasDateFilters",r(63)),n(i,"applyFilters",r(112)),n(i,"optionText",r(113)),n(i,"render",r(114)),n(i,"rowWasClicked",r(115)),n(i,"setLimit",r(116)),n(i,"getOpenChildRows",r(117)),n(i,"dispatch",r(118)),n(i,"toggleChildRow",r(119)),n(i,"childRowTogglerClass",r(120)),n(i,"sendRequest",r(121)),n(i,"getResponseData",r(122)),n(i,"getSortFn",r(123)),n(i,"initState",r(124)),n(i,"updateState",r(125)),n(i,"columnClass",r(126)),n(i,"getName",r(127)),n(i,"toggleColumn",r(128)),n(i,"setUserMultiSort",r(129)),n(i,"_setFiltersDOM",r(130)),n(i,"_currentlySorted",r(131)),n(i,"_getChildRowTemplate",r(132)),n(i,"_toggleColumnsDropdown",r(133)),n(i,"_onlyColumn",r(134)),n(i,"_onPagination",r(135)),n(i,"_toggleGroupDirection",r(136)),n(i,"_getInitialDateRange",r(137)),n(i,"_setDatepickerText",r(138)),n(i,"_initialOrderAscending",r(139)),n(i,"dateFormat",r(140)),i)},function(t,e,r){"use strict";function n(t,e){return t.hasOwnProperty(e)?void 0===t[e].start?t[e]:{start:t[e].start.format("YYYY-MM-DD HH:mm:ss"),end:t[e].end.format("YYYY-MM-DD HH:mm:ss")}:""}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(){var t=this.opts.initFilters;if(!this.opts.filterByColumn)return t.hasOwnProperty("GENERIC")?t.GENERIC:"";var e={};return(this.opts.filterable&&"object"==i(this.opts.filterable)?this.opts.filterable:this.columns).forEach(function(r){e[r]=n(t,r)}.bind(this)),e}},function(t,e,r){"use strict";t.exports=function(){var t={},e=this.opts.initFilters,r=void 0;return this.opts.customFilters.forEach(function(n){r="client"==this.source?n.name:n,t[r]=e.hasOwnProperty(r)?e[r]:""}.bind(this)),t}},function(t,e,r){"use strict";var n=r(0);t.exports=function(t,e,r){return e&&(t=n.recursive(t,e)),r=n.recursive(t,r)}},function(t,e,r){"use strict";t.exports=function(t){var e=this.sortable(t)?"VueTables__sortable ":"";return e+=this.columnClass(t)}},function(t,e,r){"use strict";t.exports=function(t){var e=this.opts.sortIcon.base+" ";if(this.sortable(t)){if(this.opts.sortIcon.is&&!this._currentlySorted(t)&&(e+=this.opts.sortIcon.is+" "),this.hasMultiSort&&this.orderBy.column&&this.userMultiSorting[this.orderBy.column]){var r=this.userMultiSorting[this.orderBy.column].filter(function(e){return e.column===t})[0];r&&(e+=r.ascending?this.opts.sortIcon.up:this.opts.sortIcon.down)}return t==this.orderBy.column&&(e+=1==this.orderBy.ascending?this.opts.sortIcon.up:this.opts.sortIcon.down),e}}},function(t,e,r){"use strict";t.exports=function(t,e){this.sortable(t)&&(e.shiftKey&&this.orderBy.column&&this.hasMultiSort?this.setUserMultiSort(t):(this.userMultiSorting={},this.orderBy.ascending=t==this.orderBy.column?!this.orderBy.ascending:this._initialOrderAscending(t),this.orderBy.column=t,this.updateState("orderBy",this.orderBy),this.dispatch("sorted",JSON.parse(JSON.stringify(this.orderBy)))),"server"==this.source&&this.getData())}},function(t,e,r){"use strict";var n=r(48),i=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=function(t,e){if("string"!=typeof t)return"";if(void 0!==this.$slots["h__"+t])return this.$slots["h__"+t];var r=(0,i.default)(t.split("_").join(" "));return this.opts.headings.hasOwnProperty(t)?"function"==typeof this.opts.headings[t]?e?this.opts.headings[t].call(this.$parent,e):r:this.opts.headings[t]:r}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},function(t,e,r){"use strict";t.exports=function(t,e){if("string"!=typeof t)return"";return this.opts.headingsTooltips.hasOwnProperty(t)?"function"==typeof this.opts.headingsTooltips[t]?e?this.opts.headingsTooltips[t].call(this.$parent,e):"":this.opts.headingsTooltips[t]:""}},function(t,e,r){"use strict";t.exports=function(t){return!("boolean"!=typeof this.opts.sortable||!this.opts.sortable)||this.opts.sortable.indexOf(t)>-1}},function(t,e,r){"use strict";t.exports=function(){this.opts.orderBy&&(this.orderBy.column=this.opts.orderBy.column,this.orderBy.ascending=!this.opts.orderBy.hasOwnProperty("ascending")||this.opts.orderBy.ascending)}},function(t,e,r){"use strict";var n=r(0);t.exports=function(){if("undefined"==typeof $)return void console.error("Date filters require jquery and daterangepicker");var t,e,r=this,i=this.vuex?JSON.parse(JSON.stringify(this.query)):this.query,o=function(t,e){return"client"==r.source?r.search(r.data,e):r.serverSearch(t,e)},s=n.recursive(this.opts.datepickerOptions,{autoUpdateInput:!1,singleDatePicker:!1});r.opts.dateColumns.forEach(function(a){var u=r._getInitialDateRange(a);u?(r._setDatepickerText(a,u.start,u.end),u={startDate:u.start,endDate:u.end}):u={},t=$(r.$el).find("#VueTables__"+a+"-filter"),e=void 0!==r.opts.datepickerPerColumnOptions[a]?r.opts.datepickerPerColumnOptions[a]:{},e=n(e,{locale:{format:r.dateFormat(a)}}),t.daterangepicker(n(s,e,u)),t.on("apply.daterangepicker",function(t,e){i[a]={start:e.startDate.format("YYYY-MM-DD HH:mm:ss"),end:e.endDate.format("YYYY-MM-DD HH:mm:ss")},r.vuex||(r.query=i),r._setDatepickerText($(this),e.startDate,e.endDate),r.updateState("query",i),o(i,{target:{name:"vf__"+a,value:i[a]}})}),t.on("cancel.daterangepicker",function(t,e){i[a]="",r.vuex||(r.query=i),e.setStartDate(moment()),e.setEndDate(moment()),r.updateState("query",i),$(this).html(""+r.display("filterBy",{column:r.getHeading(a)})+""),o(i,{target:{name:"vf__"+a,value:i[a]}})})})}},function(t,e,r){"use strict";var n=r(0);t.exports=function(t){if(!this.opts.filterable)return void console.warn("vue-tables-2: Unable to set filter. Filtering is disabled (filterable: false)");if(this.opts.filterByColumn&&"string"==typeof t)return void console.warn("vue-tables-2: Unable to set filter. Filter value must be an object (`filterByColumn` is set to `true`)");if(!this.opts.filterByColumn&&"string"!=typeof t)return void console.warn("vue-tables-2: Unable to set filter. Filter value must be a string (`filterByColumn` is set to `false`)");var e=this.opts.filterByColumn?n(this.query,t):t;this.vuex?this.commit("SET_FILTER",e):(this.query=e,this.setPage(1,!0)),this.updateState("query",e),this._setFiltersDOM(t),"server"==this.source&&this.getData()}},function(t,e,r){"use strict";t.exports=function(t,e){t=t||this.$refs.page.value,this.opts.pagination.dropdown||(this.$refs.pagination.Page=t),this.page=t,this.updateState("page",t),"server"!=this.source||e||this.getData()}},function(t,e,r){"use strict";t.exports=function(t,e){this.orderBy.column=t,this.orderBy.ascending=e,this.updateState("orderBy",{column:t,ascending:e}),"server"==this.source&&this.getData()}},function(t,e,r){"use strict";t.exports=function(){this.page=1,this.opts.pagination.dropdown||this.$refs.pagination.setPage(1)}},function(t,e,r){"use strict";t.exports=function(t){return!!this.opts.filterable&&("boolean"==typeof this.opts.filterable&&this.opts.filterable||this.opts.filterable.indexOf(t)>-1)}},function(t,e,r){"use strict";t.exports=function(t){return this.query.hasOwnProperty(t)&&-1==this.opts.dateColumns.indexOf(t)&&!this.opts.listColumns.hasOwnProperty(t)}},function(t,e,r){"use strict";t.exports=function(t){return this.query.hasOwnProperty(t)&&this.opts.dateColumns.indexOf(t)>-1}},function(t,e,r){"use strict";t.exports=function(t){return this.query.hasOwnProperty(t)&&this.opts.listColumns.hasOwnProperty(t)}},function(t,e,r){"use strict";function n(t,e,r){return String(t).split(e).map(function(t){return e.test(t)?r("b",{},t):t})}function i(t){return"string"==typeof t?t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"):t}t.exports=function(t,e,r){if(!this.opts.highlightMatches||-1===this.filterableColumns.indexOf(e))return t;if(void 0===t)return t;var o=this.opts.filterByColumn?this.query[e]:this.query;return o?(o=new RegExp("("+i(o)+")","i"),r("span",{class:"VueTables__highlight"},n(t,o,r))):t}},function(t,e,r){"use strict";var n=r(18);t.exports=function(t,e){return n(t)?t.format(e):t}},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},i=r(64);t.exports=function(){var t=this.opts;return t.dateColumns.length&&t.filterByColumn&&("boolean"==typeof t.filterable&&t.filterable||"object"==n(t.filterable)&&i(t.filterable,t.dateColumns).length)}},function(t,e,r){"use strict";var n=r(65),i=r(108),o=r(21),s=r(110),a=r(111);t.exports=function(t){if(null==t)return[];if(1===arguments.length)return o(t);var e=s(arguments,1);return n(o(t),function(t){return i(e,function(e){return-1!==a(e,t)})})}},function(t,e,r){"use strict";var n=r(66),i=r(70),o=r(73);t.exports=function(t,e,r){if(0===t.length)return[];if("function"===n(e)||"regexp"===n(e)){var s=o.matcher(e,r);return i(t,function(t){return s(t)})}return"string"===n(e)||"array"===n(e)?i(t,o.filter(e,r)):[]}},function(t,e,r){(function(e){var r=Object.prototype.toString;t.exports=function(t){if(void 0===t)return"undefined";if(null===t)return"null";if(!0===t||!1===t||t instanceof Boolean)return"boolean";if("object"!=typeof t)return typeof t;if(Array.isArray(t))return"array";var n=r.call(t);return t instanceof RegExp||"[object RegExp]"===n?"regexp":t instanceof Date||"[object Date]"===n?"date":"[object Function]"===n?"function":"[object Arguments]"===n?"arguments":void 0!==e&&e.isBuffer(t)?"buffer":n.slice(8,-1).toLowerCase()}}).call(e,r(19).Buffer)},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t){return 3*t.length/4-n(t)}function o(t){var e,r,i,o,s,a=t.length;o=n(t),s=new f(3*a/4-o),r=o>0?a-4:a;var u=0;for(e=0;e>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=l[t.charCodeAt(e)]<<2|l[t.charCodeAt(e+1)]>>4,s[u++]=255&i):1===o&&(i=l[t.charCodeAt(e)]<<10|l[t.charCodeAt(e+1)]<<4|l[t.charCodeAt(e+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}function s(t){return c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}function a(t,e,r){for(var n,i=[],o=e;ou?u:s+16383));return 1===n?(e=t[r-1],i+=c[e>>2],i+=c[e<<4&63],i+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=c[e>>10],i+=c[e>>4&63],i+=c[e<<2&63],i+="="),o.push(i),o.join("")}e.byteLength=i,e.toByteArray=o,e.fromByteArray=u;for(var c=[],l=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,d=p.length;h>1,l=-7,f=r?i-1:0,p=r?-1:1,h=t[e+f];for(f+=p,o=h&(1<<-l)-1,h>>=-l,l+=a;l>0;o=256*o+t[e+f],f+=p,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),o-=c}return(h?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),e+=s+f>=1?p/u:p*Math.pow(2,1-f),e*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,i),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[r+h]=255&a,h+=d,a/=256,i-=8);for(s=s<0;t[r+h]=255&s,h+=d,s/=256,c-=8);t[r+h-d]|=128*g}},function(t,e,r){"use strict";var n=r(71);t.exports=function(t,e,r){if(null==t)return[];if("function"!=typeof e)throw new TypeError("expected callback to be a function");for(var i=n(e,r),o=t.length,s=t.slice(),a=-1;o--;)i(t[o],a++)||s.splice(o,1);return s}},function(t,e,r){"use strict";function n(t,e){for(var r=t.length,n=-1;++n1&&/^[\[?*]/.test(r.pattern)&&(r.pattern=(n.dot?g:h)+r.pattern),r}function i(t,e){var r=t.split(e),n=""===r[0],i=""===r[r.length-1];return r=r.filter(Boolean),n&&r.unshift(""),i&&r.push(""),r.join(e)}function o(t){return t.replace(/\[\^([^\]]*?)\]/g,function(t,e){return-1===e.indexOf("/")&&(e="\\/"+e),"[^"+e+"]"})}function s(t,e,r){var n=t.split(e);return n.join("").length!==t.split(r).join("").length?(t=n.join("\\"+e),t.split(r).join("\\"+r)):t}function a(t){return t?"(?!"+d+")(?=.)"+p:h+p}function u(t){return t?y:"(?:(?!(?:\\/|^)\\.).)*?"}var c=r(5),l=r(106);t.exports=n;var f="[^/]",p=f+"*?",h="(?!\\.)(?=.)",d="(?:\\/|^)\\.{1,2}($|\\/)",g="(?!"+d+")(?=.)",y="(?:(?!"+d+").)*?"},function(t,e){t.exports=function(){return/([^\\\/]+)$/}},function(t,e,r){"use strict";function n(t,e){var e,r=arguments.length,n=t.length,s=-1,a=[];if(1===r)return t;for(r>2&&(e=i(o.call(arguments,1)));++s1?T:[t];if(O=y(t,A,R),/\{[^{}]+?\}/.test(O))e=n(O,e,m);else if(""!==O){if(m.nodupes&&-1!==e.indexOf(O))continue;e.push(_?w.after(O):O)}}return m.strict?b(e,a):e}function i(t,e,r){"function"==typeof e&&(r=e,e=null);var n,i=e||{},o="__ESC_EXP__",s=0,a=t.split("{,}");if(i.nodupes)return r(a.join(""),i);s=a.length-1,n=r(a.join(o),i);for(var u=n.length,c=[],l=0;u--;){var f=n[l++];if(-1===f.indexOf(o))c.push(f);else if((f=f.split("__ESC_EXP__").join(""))&&!1!==i.nodupes)c.push(f);else{var p=Math.pow(2,s);c.push.apply(c,_(f,p))}}return c}function o(t,e){return"|"===e?"("+t.join(e)+")":","===e?"{"+t.join(e)+"}":"-"===e?"["+t.join(e)+"]":"\\"===e?"\\{"+t+"\\}":void 0}function s(t,e,r){return n(t.split("{}").join("\\{\\}"),e,r)}function a(t){return!!t&&"\\"!==t}function u(t){for(var e=t.split(" "),r=e.length,i=[],o=0;r--;)i.push.apply(i,n(e[o++]));return i}function c(t,e,r){return/\{[^{]+\{/.test(t)?(t=t.split("\\{").join("__LT_BRACE__"),t=t.split("\\}").join("__RT_BRACE__"),m(n(t,e,r),function(t){return t=t.split("__LT_BRACE__").join("{"),t.split("__RT_BRACE__").join("}")})):e.concat(t.split("\\").join(""))}function l(t,e,r){return/[^\\]\..+\\\./.test(t)?(t=t.split("\\.").join("__ESC_DOT__"),m(n(t,e,r),function(t){return t.split("__ESC_DOT__").join(".")})):e.concat(t.split("\\").join(""))}function f(t,e,r){return t=t.split("/.").join("__ESC_PATH__"),m(n(t,e,r),function(t){return t.split("__ESC_PATH__").join("/.")})}function p(t,e,r){return/\w,/.test(t)?(t=t.split("\\,").join("__ESC_COMMA__"),m(n(t,e,r),function(t){return t.split("__ESC_COMMA__").join(",")})):e.concat(t.split("\\").join(""))}function h(){return/\${|( (?=[{,}])|(?=[{,}]) )|{}|{,}|\\,(?=.*[{}])|\/\.(?=.*[{}])|\\\.(?={)|\\{|\\}/}function d(){return/.*(\\?\{([^}]+)\})/}function g(){return/\$\{([^}]+)\}/}function y(t,e,r){var n=t.indexOf(e);return t.substr(0,n)+r+t.substr(n+e.length)}function m(t,e){if(null==t)return[];for(var r=t.length,n=new Array(r),i=-1;++i3?t:1===s?o:("boolean"==typeof r&&!0===r&&(i.makeRe=!0),o.push(i),n.apply(null,o.concat(r)))}},function(t,e,r){"use strict";function n(t,e,r,n,o){if(null==t||null==e)throw new Error("fill-range expects the first and second args to be strings.");"function"==typeof r&&(o=r,n={},r=null),"function"==typeof n&&(o=n,n={}),v(r)&&(n=r,r="");var f,y=!1,b="",x=n||{};void 0===x.silent&&(x.silent=!0),r=r||x.step;var P=t,C=e;if(e="-0"===e.toString()?0:e,(x.optimize||x.makeRe)&&(r=r?r+="~":r,f=!0,y=!0,b="~"),"string"==typeof r){var A=p().exec(r);if(A){var E=A.index,T=A[0];if("+"===T)return S(t,e);if("?"===T)return[w(t,e)];">"===T?(r=r.substr(0,E)+r.substr(E+1),f=!0):"|"===T?(r=r.substr(0,E)+r.substr(E+1),f=!0,y=!0,b=T):"~"===T&&(r=r.substr(0,E)+r.substr(E+1),f=!0,y=!0,b=T)}else if(!_(r)){if(!x.silent)throw new TypeError("fill-range: invalid step.");return null}}if(/[.&*()[\]^%$#@!]/.test(t)||/[.&*()[\]^%$#@!]/.test(e)){if(!x.silent)throw new RangeError("fill-range: invalid range arguments.");return null}if(!h(t)||!h(e)||d(t)||d(e)){if(!x.silent)throw new RangeError("fill-range: invalid range arguments.");return null}var j=_(g(t)),O=_(g(e));if(!j&&O||j&&!O){if(!x.silent)throw new TypeError("fill-range: first range argument is incompatible with second.");return null}var B=j,k=u(r);B?(t=+t,e=+e):(t=t.charCodeAt(0),e=e.charCodeAt(0));var R=t>e;(t<0||e<0)&&(f=!1,y=!1);var M,D,F=m(P,C),$=[],I=0;if(y&&s(t,e,k,B,F,x))return"|"!==b&&"~"!==b||(b=a(t,e,k,B,R)),i([P,C],b,x);for(;R?t>=e:t<=e;)F&&B&&(D=F(t)),M="function"==typeof o?o(t,B,D,I++):B?c(t,D):y&&l(t)?null:String.fromCharCode(t),null!==M&&$.push(M),R?t-=k:t+=k;return!y&&!f||x.noexpand?$:("|"!==b&&"~"!==b||(b=a(t,e,k,B,R)),1===$.length||t<0||e<0?$:i($,b,x))}function i(t,e,r){"~"===e&&(e="-");var n=t.join(e),i=r&&r.regexPrefix;return"|"===e&&(n=i?i+n:n,n="("+n+")"),"-"===e&&(n=i&&"^"===i?i+n:n,n="["+n+"]"),[n]}function o(t,e,r,n,i){return!i&&(n?t<=9&&e<=9:t9||e>9))&&(!i&&1===r&&t>0)||1}function c(t,e){var r=e?e+t:t;return e&&"-"===t.toString().charAt(0)&&(r="-"+e+t.toString().substr(1)),r.toString()}function l(t){var e=f(t);return"\\"===e||"["===e||"]"===e||"^"===e||"("===e||")"===e||"`"===e}function f(t){return String.fromCharCode(t)}function p(){return/\?|>|\||\+|\~/g}function h(t){return/[a-z0-9]/i.test(t)}function d(t){return/[a-z][0-9]|[0-9][a-z]/i.test(t)}function g(t){return/^-*0+$/.test(t.toString())?"0":t}function y(t){return/[^.]\.|^-*0+[0-9]/.test(t)}function m(t,e){if(y(t)||y(e)){var r=b(t),n=b(e),i=r>=n?r:n;return function(t){return x("0",i-b(t))}}return!1}function b(t){return t.toString().length}var v=r(81),_=r(82),w=r(84),x=r(88),S=r(22);t.exports=n},function(t,e,r){"use strict";var n=r(20);t.exports=function(t){return null!=t&&"object"==typeof t&&!1===n(t)}},function(t,e,r){"use strict";var n=r(83);t.exports=function(t){var e=n(t);if("number"!==e&&"string"!==e)return!1;var r=+t;return r-r+1>=0&&""!==t}},function(t,e,r){var n=r(2),i=Object.prototype.toString;t.exports=function(t){if(void 0===t)return"undefined";if(null===t)return"null";if(!0===t||!1===t||t instanceof Boolean)return"boolean";if("string"==typeof t||t instanceof String)return"string";if("number"==typeof t||t instanceof Number)return"number";if("function"==typeof t||t instanceof Function)return"function";if(void 0!==Array.isArray&&Array.isArray(t))return"array";if(t instanceof RegExp)return"regexp";if(t instanceof Date)return"date";var e=i.call(t);return"[object RegExp]"===e?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":n(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"}},function(t,e,r){"use strict";function n(t,e,r){if(void 0===t)throw new Error("randomatic expects a string or number.");var n=!1;1===arguments.length&&("string"==typeof t?e=t.length:i(t)&&(r={},e=t,t="*")),"object"===o(e)&&e.hasOwnProperty("chars")&&(r=e,t=r.chars,e=t.length,n=!0);var a=r||{},u="",c="";for(-1!==t.indexOf("?")&&(u+=a.chars),-1!==t.indexOf("a")&&(u+=s.lower),-1!==t.indexOf("A")&&(u+=s.upper),-1!==t.indexOf("0")&&(u+=s.number),-1!==t.indexOf("!")&&(u+=s.special),-1!==t.indexOf("*")&&(u+=s.all),n&&(u+=t);e--;)c+=u.charAt(parseInt(Math.random()*u.length,10));return c}var i=r(85),o=r(87);t.exports=n;var s={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};s.all=s.lower+s.upper+s.number+s.special},function(t,e,r){"use strict";var n=r(86);t.exports=function(t){var e=n(t);if("string"===e){if(!t.trim())return!1}else if("number"!==e)return!1;return t-t+1>=0}},function(t,e,r){var n=r(2),i=Object.prototype.toString;t.exports=function(t){if(void 0===t)return"undefined";if(null===t)return"null";if(!0===t||!1===t||t instanceof Boolean)return"boolean";if("string"==typeof t||t instanceof String)return"string";if("number"==typeof t||t instanceof Number)return"number";if("function"==typeof t||t instanceof Function)return"function";if(void 0!==Array.isArray&&Array.isArray(t))return"array";if(t instanceof RegExp)return"regexp";if(t instanceof Date)return"date";var e=i.call(t);return"[object RegExp]"===e?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":n(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"}},function(t,e,r){var n=r(2),i=Object.prototype.toString;t.exports=function(t){if(void 0===t)return"undefined";if(null===t)return"null";if(!0===t||!1===t||t instanceof Boolean)return"boolean";if("string"==typeof t||t instanceof String)return"string";if("number"==typeof t||t instanceof Number)return"number";if("function"==typeof t||t instanceof Function)return"function";if(void 0!==Array.isArray&&Array.isArray(t))return"array";if(t instanceof RegExp)return"regexp";if(t instanceof Date)return"date";var e=i.call(t);return"[object RegExp]"===e?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":"[object Promise]"===e?"promise":n(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"}},function(t,e,r){"use strict";function n(t,e){if("string"!=typeof t)throw new TypeError("expected a string");if(1===e)return t;if(2===e)return t+t;var r=t.length*e;if(i!==t||void 0===i)i=t,o="";else if(o.length>=r)return o.substr(0,r);for(;r>o.length&&e>1;)1&e&&(o+=t),e>>=1,t+=t;return o+=t,o=o.substr(0,r)}var i,o="";t.exports=n},function(t,e,r){"use strict";function n(){return Math.random().toString().slice(2,7)}e.before=function(t,e){return t.replace(e,function(t){var e=n();return i[e]=t,"__ID"+e+"__"})},e.after=function(t){return t.replace(/__ID(.{5})__/g,function(t,e){return i[e]})};var i={}},function(t,e,r){"use strict";function n(t){if(!i(t))return t;var e=!1;-1!==t.indexOf("[^")&&(e=!0,t=t.split("[^").join("[")),-1!==t.indexOf("[!")&&(e=!0,t=t.split("[!").join("["));for(var r=t.split("["),n=t.split("]"),s=r.length!==n.length,a=t.split(/(?::\]\[:|\[?\[:|:\]\]?)/),u=a.length,c=0,l="",f="",p=[];u--;){var h=a[c++];"^[!"!==h&&"[!"!==h||(h="",e=!0);var d=e?"^":"",g=o[h];g?p.push("["+d+g+"]"):h&&(/^\[?\w-\w\]?$/.test(h)?c===a.length?p.push("["+d+h):1===c?p.push(d+h+"]"):p.push(d+h):1===c?f+=h:c===a.length?l+=h:p.push("["+d+h+"]"))}var y=p.join("|"),m=p.length||1;return m>1&&(y="(?:"+y+")",m=1),f&&(m++,"["===f.charAt(0)&&(s?f="\\["+f.slice(1):f+="]"),y=f+y),l&&(m++,"]"===l.slice(-1)&&(l=s?l.slice(0,l.length-1)+"\\]":"["+l),y+=l),m>1&&(y=y.split("][").join("]|["),-1===y.indexOf("|")||/\(\?/.test(y)||(y="(?:"+y+")")),y=y.replace(/\[+=|=\]+/g,"\\b")}var i=r(91),o={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E",punct:"-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};t.exports=n,n.makeRe=function(t){try{return new RegExp(n(t))}catch(t){}},n.isMatch=function(t,e){try{return n.makeRe(e).test(t)}catch(t){return!1}},n.match=function(t,e){for(var r=t.length,i=0,o=t.slice(),s=n.makeRe(e);i0&&("/"===r||n&&"\\"===r)}var n="win32"===e.platform;t.exports=function(t){var e=t.length-1;if(e<2)return t;for(;r(t,e);)e--;return t.substr(0,e+1)}}).call(e,r(6))},function(t,e,r){"use strict";var n=r(97),i=r(23);t.exports=function(t,e){if(!n(t))return{};e=[].concat.apply([],[].slice.call(arguments,1));var r,o=e[e.length-1],s={};"function"==typeof o&&(r=e.pop());var a="function"==typeof r;return e.length||a?(i(t,function(n,i){-1===e.indexOf(i)&&(a?r(n,i,t)&&(s[i]=n):s[i]=n)}),s):t}},function(t,e,r){"use strict";t.exports=function(t){return void 0!==t&&null!==t&&("object"==typeof t||"function"==typeof t)}},function(t,e,r){"use strict";t.exports=function(t,e,r){for(var n in t)if(!1===e.call(r,t[n],n,t))break}},function(t,e,r){"use strict";function n(t){return-1!==t.indexOf("/.")||"."===t.charAt(0)&&"/"!==t.charAt(1)}function i(t,e,r){return t&&-1!==e.indexOf(r)}function o(t){var e=/\{([^{}]*?)}|\(([^()]*?)\)|\[([^\[\]]*?)\]/g;return t.replace(e,function(t,e,r,n){var i=e||r||n;return i?t.split(i).join(s(i)):t})}function s(t){return t=t.split("/").join("__SLASH__"),t=t.split(".").join("__DOT__")}function a(t){return t=t.split("__SLASH__").join("/"),t=t.split("__DOT__").join(".")}var u=r(4),c=r(100),l=r(3),f=r(102),p=t.exports.cache={};t.exports=function(t){if(p.hasOwnProperty(t))return p[t];var e={};e.orig=t,e.is={},t=o(t);var r=c(t);e.is.glob=r.isGlob,e.glob=r.glob,e.base=r.base;var s=/([^\/]*)$/.exec(t);e.path={},e.path.dirname="",e.path.basename=s[1]||"",e.path.dirname=t.split(e.path.basename).join("")||"";var h=(e.path.basename||"").split(".")||"";e.path.filename=h[0]||"",e.path.extname=h.slice(1).join(".")||"",e.path.ext="",u(e.path.dirname)&&!e.path.basename&&(/\/$/.test(e.glob)||(e.path.basename=e.glob),e.path.dirname=e.base),-1!==t.indexOf("/")||e.is.globstar||(e.path.dirname="",e.path.basename=e.orig);var d=e.path.basename.indexOf(".");if(-1!==d&&(e.path.filename=e.path.basename.slice(0,d),e.path.extname=e.path.basename.slice(d)),"."===e.path.extname.charAt(0)){var g=e.path.extname.split(".");e.path.ext=g[g.length-1]}e.glob=a(e.glob),e.path.dirname=a(e.path.dirname),e.path.basename=a(e.path.basename),e.path.filename=a(e.path.filename),e.path.extname=a(e.path.extname);var y=t&&e.is.glob;return e.is.negated=t&&"!"===t.charAt(0),e.is.extglob=t&&l(t),e.is.braces=i(y,t,"{"),e.is.brackets=i(y,t,"[:"),e.is.globstar=i(y,t,"**"),e.is.dotfile=f(e.path.basename)||f(e.path.filename),e.is.dotdir=n(e.path.dirname),p[t]=e}},function(t,e,r){"use strict";function n(t){return"/"===t.slice(-1)?t:i.dirname(t)}var i=r(7),o=r(101),s=r(4);t.exports=function(t){if("string"!=typeof t)throw new TypeError("glob-base expects a string.");var e={};return e.base=o(t),e.isGlob=s(t),"."!==e.base?(e.glob=t.substr(e.base.length),"/"===e.glob.charAt(0)&&(e.glob=e.glob.substr(1))):e.glob=t,e.isGlob||(e.base=n(t),e.glob="."!==e.base?t.substr(e.base.length):t),"./"===e.glob.substr(0,2)&&(e.glob=e.glob.substr(2)),"/"===e.glob.charAt(0)&&(e.glob=e.glob.substr(1)),e}},function(t,e,r){"use strict";var n=r(7),i=r(4);t.exports=function(t){t+="a";do{t=n.dirname(t)}while(i(t));return t}},function(t,e){t.exports=function(t){if(46===t.charCodeAt(0)&&-1===t.indexOf("/",1))return!0;var e=t.lastIndexOf("/");return-1!==e&&46===t.charCodeAt(e+1)}},function(t,e,r){"use strict";function n(t,e,r){var n,u,c="_default_";if(!e&&!r)return"function"!=typeof t?t:s[c]||(s[c]=t(e));if("string"==typeof e){if(!r)return s[e]||(s[e]=t(e));c=e}else r=e;return(u=a[c])&&o(u.opts,r)?u.regex:(i(c,r,n=t(e,r)),n)}function i(t,e,r){a[t]={regex:r,opts:e}}var o=r(104),s={},a={};t.exports=n,t.exports.cache=a,t.exports.basic=s},function(t,e,r){"use strict";var n=r(105);t.exports=function(t,e){if(!t&&!e)return!0;if(!t&&e||t&&!e)return!1;var r,i=0,o=0;for(r in e)if(o++,!n(e[r])||!t.hasOwnProperty(r)||t[r]!==e[r])return!1;for(r in t)i++;return i===o}},function(t,e,r){"use strict";t.exports=function(t){return null==t||"function"!=typeof t&&"object"!=typeof t}},function(t,e,r){"use strict";function n(t){return t=t.split("?").join("%~"),t=t.split("*").join("%%")}function i(t){return t=t.split("%~").join("?"),t=t.split("%%").join("*")}var o=r(107),s=r(5),a=t.exports=function t(e,r){if(!(this instanceof t))return new t(e,r);this.options=r||{},this.pattern=e,this.history=[],this.tokens={},this.init(e)};a.prototype.init=function(t){this.orig=t,this.negated=this.isNegated(),this.options.track=this.options.track||!1,this.options.makeRe=!0},a.prototype.track=function(t){this.options.track&&this.history.push({msg:t,pattern:this.pattern})},a.prototype.isNegated=function(){return 33===this.pattern.charCodeAt(0)&&(this.pattern=this.pattern.slice(1),!0)},a.prototype.braces=function(){if(!0!==this.options.nobraces&&!0!==this.options.nobrace){var t=this.pattern.match(/[\{\(\[]/g),e=this.pattern.match(/[\}\)\]]/g);t&&e&&t.length!==e.length&&(this.options.makeRe=!1);var r=s.braces(this.pattern,this.options);this.pattern=r.join("|")}},a.prototype.brackets=function(){!0!==this.options.nobrackets&&(this.pattern=s.brackets(this.pattern))},a.prototype.extglob=function(){!0!==this.options.noextglob&&s.isExtglob(this.pattern)&&(this.pattern=s.extglob(this.pattern,{escape:!0}))},a.prototype.parse=function(t){return this.tokens=s.parseGlob(t||this.pattern,!0),this.tokens},a.prototype._replace=function(t,e,r){this.track('before (find): "'+t+'" (replace with): "'+e+'"'),r&&(e=n(e)),this.pattern=t&&e&&"string"==typeof t?this.pattern.split(t).join(e):this.pattern.replace(t,e),this.track("after")},a.prototype.escape=function(t){this.track("before escape: ");var e=/["\\](['"]?[^"'\\]['"]?)/g;this.pattern=t.replace(e,function(t,e){var r=o.ESC,n=r&&r[e];return n||(/[a-z]/i.test(t)?t.split("\\").join(""):t)}),this.track("after escape: ")},a.prototype.unescape=function(t){var e=/__([A-Z]+)_([A-Z]+)__/g;this.pattern=t.replace(e,function(t,e){return o[e][t]}),this.pattern=i(this.pattern)}},function(t,e,r){"use strict";function n(t,e){return Object.keys(t).reduce(function(r,n){var i=e?e+n:n;return r[t[n]]=i,r},{})}var i,o,s={};s.escapeRegex={"?":/\?/g,"@":/\@/g,"!":/\!/g,"+":/\+/g,"*":/\*/g,"(":/\(/g,")":/\)/g,"[":/\[/g,"]":/\]/g},s.ESC={"?":"__UNESC_QMRK__","@":"__UNESC_AMPE__","!":"__UNESC_EXCL__","+":"__UNESC_PLUS__","*":"__UNESC_STAR__",",":"__UNESC_COMMA__","(":"__UNESC_LTPAREN__",")":"__UNESC_RTPAREN__","[":"__UNESC_LTBRACK__","]":"__UNESC_RTBRACK__"},s.UNESC=i||(i=n(s.ESC,"\\")),s.ESC_TEMP={"?":"__TEMP_QMRK__","@":"__TEMP_AMPE__","!":"__TEMP_EXCL__","*":"__TEMP_STAR__","+":"__TEMP_PLUS__",",":"__TEMP_COMMA__","(":"__TEMP_LTPAREN__",")":"__TEMP_RTPAREN__","[":"__TEMP_LTBRACK__","]":"__TEMP_RTBRACK__"},s.TEMP=o||(o=n(s.ESC_TEMP)),t.exports=s},function(t,e,r){"use strict";var n=r(109);t.exports=function(t,e,r){e=n(e,r);var i=!0;if(null==t)return i;for(var o=t.length,s=0;o--;)if(!e(t[s++],s,t)){i=!1;break}return i}},function(t,e,r){"use strict";function n(t,e){for(var r=t.length,n=-1;++n>>0;return e=null==e?r||0:e<0?Math.max(n+e,0):Math.min(e,n)}t.exports=function(t,e,r){var i=t.length>>>0,o=[];for(e=n(t,e),r=n(t,r,i);e0&&void 0!==arguments[0]?arguments[0]:null;if(!this.opts.childRow||"function"==typeof this.opts.childRow)throw new Error("vue-tables-2: Child row undefined or not a component");var r=e?this.openChildRows.filter(function(t){return e.includes(t)}):this.openChildRows;return r.length?this.$children.filter(function(e){return"ChildRow"===e.$options.name&&r.includes(e.data[t.opts.uniqueKey])}):[]}},function(t,e,r){"use strict";var n=r(1),i=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=function(t,e){if(this.vuex){if(t.split("::").length>1)return;this.commit(t.toUpperCase().replace("-","_"),e)}this.$emit(t,e),i.default.$emit("vue-tables."+t,e),this.name&&i.default.$emit("vue-tables."+this.name+"."+t,e)}},function(t,e,r){"use strict";t.exports=function(t,e){if(e&&e.stopPropagation(),this.openChildRows.includes(t)){var r=this.openChildRows.indexOf(t);this.openChildRows.splice(r,1)}else this.openChildRows.push(t)}},function(t,e,r){"use strict";t.exports=function(t){return this.openChildRows.includes(t)?"VueTables__child-row-toggler--open":"VueTables__child-row-toggler--closed"}},function(t,e,r){"use strict";t.exports=function(t){if("function"==typeof this.opts.requestFunction)return this.opts.requestFunction.call(this,t);if("undefined"!=typeof axios)return axios.get(this.url,{params:t}).catch(function(t){this.dispatch("error",t)}.bind(this));if(void 0!==this.$http)return this.$http.get(this.url,{params:t}).then(function(t){return t.json()}.bind(this),function(t){this.dispatch("error",t)}.bind(this));if("undefined"!=typeof $)return $.getJSON(this.url,t).fail(function(t){this.dispatch("error",t)}.bind(this));throw"vue-tables: No supported ajax library was found. (jQuery, axios or vue-resource). To use a different library you can write your own request function (see the `requestFunction` option)"}},function(t,e,r){"use strict";t.exports=function(t){return"undefined"!=typeof axios?t.data:t}},function(t,e,r){"use strict";t.exports=function(t){var e=this.orderBy.ascending;return this.currentlySorting={column:t,ascending:e},void 0===this.opts.customSorting[t]?this.defaultSort(t,e):this.opts.customSorting[t](e)}},function(t,e,r){"use strict";t.exports=function(){var t={page:1,query:this.query,orderBy:this.orderBy,perPage:this.opts.perPage,customQueries:this.customQueries};return this.storage.setItem(this.stateKey,JSON.stringify(t)),t}},function(t,e,r){"use strict";t.exports=function(t,e){if(this.opts.saveState&&this.activeState){try{var r=JSON.parse(this.storage.getItem(this.stateKey))}catch(t){var r=this.initState()}r[t]=e,this.storage.setItem(this.stateKey,JSON.stringify(r))}}},function(t,e,r){"use strict";t.exports=function(t){var e=this.opts.columnsClasses;return e.hasOwnProperty(t)?e[t]:""}},function(t,e,r){"use strict";t.exports=function(t){return t?(t=t.split("__"),t.shift(),t.join("__")):t}},function(t,e,r){"use strict";t.exports=function(t){if(this.userControlsColumns||(this.userColumnsDisplay=JSON.parse(JSON.stringify(this.allColumns)),this.userControlsColumns=!0),this.userColumnsDisplay.includes(t)){if(1===this.userColumnsDisplay.length)return;var e=this.userColumnsDisplay.indexOf(t);this.userColumnsDisplay.splice(e,1)}else this.userColumnsDisplay.push(t)}},function(t,e,r){"use strict";function n(t,e){var r=[JSON.parse(JSON.stringify(t))];return r=r.concat(e[t.column])}t.exports=function(t){var e=this.orderBy.column,r=this.orderBy.ascending;this.userMultiSorting[e]||(this.userMultiSorting[e]=[]);var i=this.userMultiSorting[e];if(e===t)!i.length||r?this.orderBy.ascending=!this.orderBy.ascending:(this.orderBy=i.shift(),this.userMultiSorting={},this.userMultiSorting[this.orderBy.column]=i);else{var o=i.filter(function(e){return e.column==t})[0];o?o.ascending?o.ascending=!o.ascending:(this.userMultiSorting[e]=i.filter(function(e){return e.column!=t}),this.userMultiSorting[e].length||(this.userMultiSorting={})):i.push({column:t,ascending:!0})}this.time=Date.now(),this.dispatch("sorted",n(this.orderBy,this.userMultiSorting))}},function(t,e,r){"use strict";t.exports=function(t){var e;if(this.opts.filterByColumn)for(var r in t)this.isDateFilter(r)||(e=this.$el.querySelector("[name='vf__"+r+"']"),e?e.value=t[r]:console.error("vue-tables-2: Error in setting filter value. Column '"+r+"' does not exist."));else this.$el.querySelector(".VueTables__search input").value=t}},function(t,e,r){"use strict";t.exports=function(t){var e=Object.keys(this.userMultiSorting);return e.length&&this.orderBy.column!==t?!!this.userMultiSorting[e[0]].filter(function(e){return e.column==t}).length:this.orderBy.column===t}},function(t,e,r){"use strict";t.exports=function(t,e){if(this.$scopedSlots.child_row)return this.$scopedSlots.child_row({row:e});var r=this.opts.childRow;return"function"==typeof r?r.apply(this,[t,e]):t(r,{attrs:{data:e}})}},function(t,e,r){"use strict";t.exports=function(){this.displayColumnsDropdown=!this.displayColumnsDropdown}},function(t,e,r){"use strict";t.exports=function(t){return 1===this.userColumnsDisplay.length&&this.userColumnsDisplay[0]===t}},function(t,e,r){"use strict";t.exports=function(t){this.vuex||(this.setPage(t),this.dispatch("pagination",t))}},function(t,e,r){"use strict";t.exports=function(){this.orderBy.column!=this.opts.groupBy?this.setOrder(this.opts.groupBy,!0):this.setOrder(this.opts.groupBy,!this.orderBy.ascending)}},function(t,e,r){"use strict";t.exports=function(t){return void 0!==this.opts.initFilters[t]?this.opts.initFilters[t]:!(void 0===this.query[t]||!this.query[t].start)&&{start:moment(this.query[t].start,"YYYY-MM-DD HH:mm:ss"),end:moment(this.query[t].end,"YYYY-MM-DD HH:mm:ss")}}},function(t,e,r){"use strict";t.exports=function(t,e,r){var n=this.dateFormat(t);("string"==typeof t?$(this.$el).find("#VueTables__"+t+"-filter"):t).text(e.format(n)+" - "+r.format(n))}},function(t,e,r){"use strict";t.exports=function(t){return!this.opts.descOrderColumns.includes(t)}},function(t,e,r){"use strict";t.exports=function(t){return this.opts.dateFormatPerColumn.hasOwnProperty(t)?this.opts.dateFormatPerColumn[t]:this.opts.dateFormat}},function(t,e,r){"use strict";t.exports={listColumnsObject:r(142),allColumns:r(143),templatesKeys:r(144),opts:r(145),tableData:r(147),storage:r(148),filterableColumns:r(149),hasChildRow:r(150),colspan:r(151),hasGenericFilter:r(152),stateKey:function(){return"vuetables_"+(this.name?this.name:this.id)},Page:function(){return this.page}}},function(t,e,r){"use strict";t.exports=function(){var t=Object.keys(this.opts.listColumns),e={};return t.forEach(function(t){e[t]={},this.opts.listColumns[t].forEach(function(r){e[t][r.id]=r.text})}.bind(this)),e}},function(t,e,r){"use strict";t.exports=function(){var t=this,e=this.columnsDisplay;return e||this.userControlsColumns?this.userControlsColumns?this.columns.filter(function(e){return t.userColumnsDisplay.includes(e)}):this.Columns.filter(function(r){if(!e[r])return!0;var n=e[r],i=n[2],o=(!n[0]||t.windowWidth>=n[0])&&(!n[1]||t.windowWidth0)return!1;if(0===t.length)return!0;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var i=r(159),o=n(i),s=r(160),a=n(s);t.exports=function(t){var e={state:(0,o.default)(t),mutations:(0,a.default)(t)};t.$store.registerModule(t.name,e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e={page:t.opts.initialPage?t.opts.initialPage:1,limit:t.opts.perPage,count:"server"==t.source?0:t.data.length,columns:t.columns,data:"client"==t.source?t.data:[],query:t.initQuery(),customQueries:t.initCustomFilters(),sortBy:!(!t.opts.orderBy||!t.opts.orderBy.column)&&t.opts.orderBy.column,ascending:!t.opts.orderBy||!t.opts.orderBy.hasOwnProperty("ascending")||t.opts.orderBy.ascending};return void 0!==t.$store.state[t.name]?(0,i.default)(!0,t.$store.state[t.name],e):e};var n=r(0),i=function(t){return t&&t.__esModule?t:{default:t}}(n)},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,r,i="server"==t.source?(e={},n(e,t.name+"/SET_DATA",function(e,r){var n=t.opts.responseAdapter.call(t,r);e.data=n.data,e.count=parseInt(n.count)}),n(e,t.name+"/LOADING",function(t,e){}),n(e,t.name+"/LOADED",function(t,e){}),n(e,t.name+"/ERROR",function(t,e){}),e):n({},t.name+"/SET_COUNT",function(t,e){t.count=e});return o.default.recursive(!0,(r={},n(r,t.name+"/PAGINATE",function(e,r){e.page=r,t.updateState("page",r),"server"==t.source&&t.getData(),t.commit("PAGINATION",r)}),n(r,t.name+"/SET_FILTER",function(e,r){e.page=1,t.updateState("page",1),e.query=r,"server"==t.source&&t.getData()}),n(r,t.name+"/PAGINATION",function(t,e){}),n(r,t.name+"/SET_CUSTOM_FILTER",function(e,r){var n=r.filter,i=r.value;e.customQueries[n]=i,e.page=1,t.updateState("page",1),t.updateState("customQueries",e.customQueries),"server"==t.source&&t.getData()}),n(r,t.name+"/SET_STATE",function(t,e){var r=e.page,n=e.query,i=e.customQueries,o=e.limit,s=e.orderBy;t.customQueries=i,t.query=n,t.page=r,t.limit=o,t.ascending=s.ascending,t.sortBy=s.column}),n(r,t.name+"/SET_LIMIT",function(e,r){e.page=1,t.updateState("page",1),e.limit=r,"server"==t.source&&t.getData()}),n(r,t.name+"/SORT",function(e,r){var n=r.column,i=r.ascending;e.ascending=i,e.sortBy=n,"server"==t.source&&t.getData()}),n(r,t.name+"/SORTED",function(t,e){}),n(r,t.name+"/ROW_CLICK",function(t,e){}),n(r,t.name+"/FILTER",function(t,e){}),n(r,t.name+"/LIMIT",function(t,e){}),r),i)};var i=r(0),o=function(t){return t&&t.__esModule?t:{default:t}}(i)},function(t,e,r){"use strict";t.exports=function(){return{framework:"bootstrap3",table:"table table-striped table-bordered table-hover",row:"row",column:"col-md-12",label:"",input:"form-control",select:"form-control",field:"form-group",inline:"form-inline",right:"pull-right",left:"pull-left",center:"text-center",contentCenter:"",small:"",nomargin:"",groupTr:"info",button:"btn btn-secondary",dropdown:{container:"dropdown",trigger:"dropdown-toggle",menu:"dropdown-menu",content:"",item:"",caret:"caret"},pagination:{nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}}}},function(t,e,r){"use strict";t.exports=function(){return{framework:"bootstrap4",table:"table table-striped table-bordered table-hover",row:"row",column:"col-md-12",label:"",input:"form-control",select:"form-control",field:"form-group",inline:"form-inline",right:"float-right",left:"float-left",center:"text-center",contentCenter:"justify-content-center",nomargin:"m-0",groupTr:"table-info",small:"",button:"btn btn-secondary",dropdown:{container:"dropdown",trigger:"dropdown-toggle",menu:"dropdown-menu",content:"",item:"dropdown-item",caret:"caret"},pagination:{nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}}}},function(t,e,r){"use strict";t.exports=function(){return{framework:"bulma",table:"table is-bordered is-striped is-hoverable is-fullwidth",row:"columns",column:"column is-12",label:"label",input:"input",select:"select",field:"field",inline:"is-horizontal",right:"is-pulled-right",left:"is-pulled-left",center:"has-text-centered",contentCenter:"is-centered",icon:"icon",small:"is-small",nomargin:"marginless",button:"button",groupTr:"is-selected",dropdown:{container:"dropdown",trigger:"dropdown-trigger",menu:"dropdown-menu",content:"dropdown-content",item:"dropdown-item",caret:"fa fa-angle-down"},pagination:{nav:"",count:"",wrapper:"pagination",list:"pagination-list",item:"",link:"pagination-link",next:"",prev:"",active:"is-current",disabled:""}}}},function(t,e,r){"use strict";var n=r(0),i=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=function(t,e,n,o){var s="VueTables__search_"+this.id,a="VueTables__dropdown-pagination_"+this.id,u="VueTables__limit_"+this.id,c=r(28).call(this,t),l=this.hasGenericFilter?t("div",{class:"VueTables__search-field"},[t("label",{attrs:{for:s},class:n.label},[this.display("filter")]),e.normalFilter(n,s)]):"",f=c.length>1?t("div",{class:"VueTables__limit-field"},[t("label",{class:n.label,attrs:{for:u}},[this.display("limit")]),e.perPage(c,n.select,u)]):"",p=this.opts.pagination&&this.opts.pagination.dropdown?t("div",{class:"VueTables__pagination-wrapper"},[t("div",{class:n.field+" "+n.inline+" "+n.right+" VueTables__dropdown-pagination",directives:[{name:"show",value:this.totalPages>1}]},[t("label",{attrs:{for:a}},[this.display("page")]),e.dropdownPagination(n.select,a)])]):"",h=this.opts.columnsDropdown?t("div",{class:"VueTables__columns-dropdown-wrapper"},[e.columnsDropdown(n)]):"",d=this.opts.footerHeadings?t("tfoot",null,[t("tr",null,[e.headings(n.right)])]):"",g=l||f||p||h||o.beforeFilter||o.afterFilter||o.beforeLimit||o.afterLimit?t("div",{class:n.row},[t("div",{class:n.column},[t("div",{class:n.field+" "+n.inline+" "+n.left+" VueTables__search"},[o.beforeFilter,l,o.afterFilter]),t("div",{class:n.field+" "+n.inline+" "+n.right+" VueTables__limit"},[o.beforeLimit,f,o.afterLimit]),p,h])]):"";return t("div",{class:"VueTables VueTables--"+this.source},[g,o.beforeTable,t("div",{class:"table-responsive"},[t("table",{class:"VueTables__table "+(this.opts.skin?this.opts.skin:n.table)},[t("thead",null,[t("tr",null,[e.headings(n.right)]),o.beforeFilters,e.columnFilters(n),o.afterFilters]),d,o.beforeBody,t("tbody",null,[o.prependBody,e.rows(n),o.appendBody]),o.afterBody])]),o.afterTable,e.pagination((0,i.default)(n.pagination,{wrapper:n.row+" "+n.column+" "+n.contentCenter,nav:n.center,count:n.center+" "+n.column})),e.dropdownPaginationCount()])}},function(t,e,r){"use strict";var n=r(0),i=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=function(t,e,n,o){var s="VueTables__search_"+this.id,a="VueTables__limit_"+this.id,u=r(28).call(this,t),c=this.hasGenericFilter?t("div",{class:"VueTables__search-field"},[t("label",{attrs:{for:s},class:n.label},[this.display("filter")]),e.normalFilter(n,s)]):"",l=u.length>1?t("div",{class:"VueTables__limit-field"},[t("label",{class:n.label,attrs:{for:a}},[this.display("limit")]),e.perPage(u,n.select,a)]):"",f=this.opts.columnsDropdown?t("div",{class:"VueTables__columns-dropdown-wrapper"},[e.columnsDropdown(n)]):"",p=c||l||f||o.beforeFilter||o.afterFilter||o.beforeLimit||o.afterLimit?t("div",{class:n.row},[t("div",{class:n.column},[t("div",{class:n.field+" "+n.inline+" "+n.left+" VueTables__search"},[o.beforeFilter,c,o.afterFilter]),t("div",{class:n.field+" "+n.inline+" "+n.right+" VueTables__limit"},[o.beforeLimit,l,o.afterLimit]),f])]):"";return t("div",{class:"VueTables VueTables--"+this.source},[p,o.beforeTable,t("div",{class:"table-responsive"},[t("table",{class:"VueTables__table "+(this.opts.skin?this.opts.skin:n.table)},[t("thead",null,[t("tr",null,[e.headings(n.right)]),o.beforeFilters,e.columnFilters(n),o.afterFilters]),t("tfoot",null,[t("tr",null,[t("td",{attrs:{colspan:this.colspan}},[e.pagination((0,i.default)(n.pagination,{list:n.pagination.list+" "+n.right+" "+n.nomargin,count:""+n.left}))])])]),o.beforeBody,t("tbody",null,[o.prependBody,e.rows(n),o.appendBody]),o.afterBody])]),o.afterTable])}},function(t,e,r){"use strict";t.exports=function(t){var e=this;return function(r){var n;if("client"===e.source?(n=e.filteredData,n.length||"client"!==e.source||1===e.page||e.setPage(e.totalPages?e.totalPages:1)):n=e.tableData,0===e.count){var i=e.allColumns.length;return e.hasChildRow&&i++,t("tr",{class:"VueTables__no-results"},[t("td",{class:"text-center",attrs:{colspan:e.colspan}},[e.display(e.loading?"loading":"noResults")])])}var o,s,a,u=[],c=e.opts.uniqueKey,l=(e.Page-1)*e.limit;return n.map(function(n,i){if(e.opts.groupBy&&"client"===e.source&&n[e.opts.groupBy]!==a&&(u.push(t("tr",{class:r.groupTr,on:{click:e._toggleGroupDirection.bind(e)}},[t("td",{attrs:{colspan:e.colspan}},[n[e.opts.groupBy]])])),a=n[e.opts.groupBy]),i=l+i+1,o=[],e.hasChildRow){var f=t("td",null,[t("span",{on:{click:e.toggleChildRow.bind(e,n[c])},class:"VueTables__child-row-toggler "+e.childRowTogglerClass(n[c])},[])]);e.opts.childRowTogglerFirst&&o.push(f)}e.allColumns.map(function(r){var s=e.$scopedSlots&&e.$scopedSlots[r];o.push(t("td",{class:e.columnClass(r)},[s?s({row:n,column:r,index:i}):e.render(n,r,i,t)]))}),e.hasChildRow&&!e.opts.childRowTogglerFirst&&o.push(f),s=e.opts.rowClassCallback?e.opts.rowClassCallback(n):"",u.push(t("tr",{class:s,on:{click:e.rowWasClicked.bind(e,n),dblclick:e.rowWasClicked.bind(e,n)}},[o," "])),u.push(e.hasChildRow&&e.openChildRows.includes(n[c])?t("tr",{class:"VueTables__child-row"},[t("td",{attrs:{colspan:e.colspan}},[e._getChildRowTemplate(t,n)])]):t())}),u}}},function(t,e,r){"use strict";var n=r(8);t.exports=function(t){var e=this;return function(r,i){var o="client"==e.source?e.search.bind(e,e.data):e.serverSearch.bind(e);return t("input",{class:r.input+" "+r.small,attrs:{type:"text",value:e.query,placeholder:e.display("filterPlaceholder"),id:i},on:{keyup:n(o,e.opts.debounce)}},[])}}},function(t,e,r){"use strict";r(8);t.exports=function(t){var e=this;return function(r,n){for(var i,o=[],s=1;s<=e.totalPages;s++){var i=e.page==s;o.push(t("option",{domProps:{value:s,selected:i}},[s]))}return t("select",{class:r+" dropdown-pagination",directives:[{name:"show",value:e.totalPages>1}],attrs:{name:"page",id:n},ref:"page",domProps:{value:e.page},on:{change:e.setPage.bind(e,null,!1)}},[o])}}},function(t,e,r){"use strict";t.exports=function(t){var e=this;return function(){if(e.count>0&&e.opts.pagination.dropdown){var r=parseInt(e.limit),n=(e.Page-1)*r+1,i=e.Page==e.totalPages?e.count:n+r-1,o=e.opts.texts.count.split("|"),s=Math.min(1==e.count?2:1==e.totalPages?1:0,o.length-1),a=o[s].replace("{count}",e.count).replace("{from}",n).replace("{to}",i);return t("div",{class:"VuePagination"},[t("p",{class:"VuePagination__count"},[a])])}return""}}},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(0);!function(t){t&&t.__esModule}(i);t.exports=function(t){var e=this;return function(i){if(!e.opts.filterByColumn||!e.opts.filterable)return"";var o=r(171).call(e,t,i.input),s=r(172).call(e,t),a=r(173).call(e,t,i.select),u=[];return e.hasChildRow&&e.opts.childRowTogglerFirst&&u.push(t("th",null,[])),e.allColumns.map(function(r){var i="";if(e.filterable(r))switch(!0){case e.isTextFilter(r):i=o(r);break;case e.isDateFilter(r):i=s(r);break;case e.isListFilter(r):i=a(r)}void 0!==e.$slots["filter__"+r]&&(i=i?t("div",null,[i,e.$slots["filter__"+r]]):e.$slots["filter__"+r]),u.push(t("th",{class:e.columnClass(r)},[t("div",n({class:"VueTables__column-filter"},"class","VueTables__"+r+"-filter-wrapper"),[i])]))}),e.hasChildRow&&!e.opts.childRowTogglerFirst&&u.push(t("th",null,[])),t("tr",{class:"VueTables__filters-row"},[u])}}},function(t,e,r){"use strict";var n=r(8);t.exports=function(t,e){var r=this,i="client"==this.source?this.search.bind(this,this.data):this.serverSearch.bind(this),o=n(i,this.opts.debounce),s=function(t){13===t.keyCode?(o.clear(),i.apply(void 0,arguments)):o.apply(void 0,arguments)};return function(n){return t("input",{on:{keyup:s},class:e,attrs:{name:"vf__"+n,type:"text",placeholder:r.display("filterBy",{column:r.getHeading(n)}),value:r.query[n]}},[])}}},function(t,e,r){"use strict";t.exports=function(t){var e=this;return function(r){return t("div",{class:"VueTables__date-filter",attrs:{id:"VueTables__"+r+"-filter"}},[t("span",{class:"VueTables__filter-placeholder"},[e.display("filterBy",{column:e.getHeading(r)})])])}}},function(t,e,r){"use strict";t.exports=function(t,e){var r=this;return function(n){var i=[],o=void 0,s="client"==r.source?r.search.bind(r,r.data):r.serverSearch.bind(r);return r.opts.listColumns[n].filter(function(t){return!t.hide}).map(function(e){o=e.id==r.query[n]&&""!==r.query[n],i.push(t("option",{domProps:{value:e.id,selected:o}},[e.text]))}),t("div",{class:"VueTables__list-filter",attrs:{id:"VueTables__"+n+"-filter"}},[t("select",{class:e,on:{change:s},attrs:{name:"vf__"+n},domProps:{value:r.query[n]}},[t("option",{attrs:{value:""}},[r.display("defaultOption",{column:r.opts.headings[n]?r.opts.headings[n]:n})]),i])])}}},function(t,e,r){"use strict";t.exports=function(t){var e=this;return function(r){if(e.opts.pagination&&e.opts.pagination.dropdown)return"";var n={theme:r,chunk:e.opts.pagination.chunk,chunksNavigation:e.opts.pagination.nav,edgeNavigation:e.opts.pagination.edge,texts:{count:e.opts.texts.count,first:e.opts.texts.first,last:e.opts.texts.last}},i=e.vuex?e.name:e.id;return t("pagination",{ref:"pagination",attrs:{options:n,for:i,vuex:e.vuex,records:e.count,"per-page":parseInt(e.limit)},on:{paginate:e._onPagination.bind(e)}},[])}}},function(t,e,r){"use strict";t.exports=function(t){var e=this;return function(n){var i=r(176)(t,n),o=[];return e.hasChildRow&&e.opts.childRowTogglerFirst&&o.push(t("th",null,[])),e.allColumns.map(function(e){o.push(t("th",{on:{click:this.orderByColumn.bind(this,e)},class:this.sortableClass(e)},[t("span",{class:"VueTables__heading",attrs:{title:this.getHeadingTooltip(e,t)}},[this.getHeading(e,t)]),i.call(this,e)]))}.bind(e)),e.hasChildRow&&!e.opts.childRowTogglerFirst&&o.push(t("th",null,[])),o}}},function(t,e,r){"use strict";t.exports=function(t,e){return function(r){return this.sortable(r)?t("span",{class:"VueTables__sort-icon "+e+" "+this.sortableChevronClass(r)},[]):""}}},function(t,e,r){"use strict";t.exports=function(t){var e=this;return function(r,n,i){return r.length>1?t("select",{class:n,attrs:{name:"limit",id:i},domProps:{value:e.limit},on:{change:e.setLimit.bind(e)}},[r]):""}}},function(t,e,r){"use strict";var n=r(179),i=r(180);t.exports=function(t){var e=this;return function(r){var o=e.columns.map(function(n){return i(t,r,t("a",{class:r.dropdown.item,attrs:{href:"#"}},[t("input",{attrs:{type:"checkbox",value:n,disabled:e._onlyColumn(n)},on:{change:e.toggleColumn.bind(e,n)},domProps:{checked:e.allColumns.includes(n)}},[]),e.getHeading(n)]))});return t("div",{class:r.dropdown.container+" "+r.right+" VueTables__columns-dropdown"},[t("button",{attrs:{type:"button"},class:r.button+" "+r.dropdown.trigger,on:{click:e._toggleColumnsDropdown.bind(e)}},[e.display("columns"),t("span",{class:r.icon+" "+r.small},[t("i",{class:r.dropdown.caret},[])])]),n.call(e,t,r,o)])}}},function(t,e,r){"use strict";t.exports=function(t,e,r){return"bulma"===e.framework?t("div",{class:e.dropdown.menu,style:this.displayColumnsDropdown?"display:block":"display:none"},[t("div",{class:e.dropdown.content},[r])]):"bootstrap4"===e.framework?t("div",{class:e.dropdown.menu,style:this.displayColumnsDropdown?"display:block":"display:none"},[r]):t("ul",{class:e.dropdown.menu,style:this.displayColumnsDropdown?"display:block":"display:none"},[r])}},function(t,e,r){"use strict";t.exports=function(t,e,r){return"bulma"===e.framework?r:t("li",null,[r])}},function(t,e,r){"use strict";t.exports=function(){return{beforeFilters:this.$slots.beforeFilters?this.$slots.beforeFilters:"",afterFilters:this.$slots.afterFilters?this.$slots.afterFilters:"",beforeBody:this.$slots.beforeBody?this.$slots.beforeBody:"",prependBody:this.$slots.prependBody?this.$slots.prependBody:"",appendBody:this.$slots.appendBody?this.$slots.appendBody:"",afterBody:this.$slots.afterBody?this.$slots.afterBody:"",beforeFilter:this.$slots.beforeFilter?this.$slots.beforeFilter:"",afterFilter:this.$slots.afterFilter?this.$slots.afterFilter:"",beforeLimit:this.$slots.beforeLimit?this.$slots.beforeLimit:"",afterLimit:this.$slots.afterLimit?this.$slots.afterLimit:"",beforeTable:this.$slots.beforeTable?this.$slots.beforeTable:"",afterTable:this.$slots.afterTable?this.$slots.afterTable:""}}},function(t,e,r){"use strict";t.exports=function(){return this.opts.filterByColumn?JSON.stringify(this.query):this.query}},function(t,e,r){"use strict";t.exports=function(){return JSON.stringify(this.customQueries)}},function(t,e,r){"use strict";var n=(r(30),r(187));t.exports=function(){var t=n(this.tableData),e=this.orderBy.column;t=this.search(t),e?(this.time&&(this.time=this.time),t=this.opts.sortingAlgorithm.call(this,t,e)):this.opts.groupBy&&(t=this.opts.sortingAlgorithm.call(this,t,this.opts.groupBy)),this.vuex?this.count!=t.length&&this.commit("SET_COUNT",t.length):this.count=t.length;var r=(this.page-1)*this.limit;return t=t.splice(r,this.limit),this.applyFilters(t)}},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=function(t){var e=0;for(var r in t){("object"==n(t[r])||t[r]&&(!isNaN(t[r])||t[r].trim()))&&e++}return e}},function(t,e,r){"use strict";t.exports=function(t,e,r){var n;return t.filter(function(t){return n=!0,e.forEach(function(e){var i=r[e.name];i&&!e.callback(t,i)&&(n=!1)}),n})}},function(t,e,r){(function(e){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}function r(n,i,o,s,f){function p(n,o){if(null===n)return null;if(0===o)return n;var y,m;if("object"!=typeof n)return n;if(t(n,u))y=new u;else if(t(n,c))y=new c;else if(t(n,l))y=new l(function(t,e){n.then(function(e){t(p(e,o-1))},function(t){e(p(t,o-1))})});else if(r.__isArray(n))y=[];else if(r.__isRegExp(n))y=new RegExp(n.source,a(n)),n.lastIndex&&(y.lastIndex=n.lastIndex);else if(r.__isDate(n))y=new Date(n.getTime());else{if(g&&e.isBuffer(n))return y=new e(n.length),n.copy(y),y;t(n,Error)?y=Object.create(n):void 0===s?(m=Object.getPrototypeOf(n),y=Object.create(m)):(y=Object.create(s),m=s)}if(i){var b=h.indexOf(n);if(-1!=b)return d[b];h.push(n),d.push(y)}t(n,u)&&n.forEach(function(t,e){var r=p(e,o-1),n=p(t,o-1);y.set(r,n)}),t(n,c)&&n.forEach(function(t){var e=p(t,o-1);y.add(e)});for(var v in n){var _;m&&(_=Object.getOwnPropertyDescriptor(m,v)),_&&null==_.set||(y[v]=p(n[v],o-1))}if(Object.getOwnPropertySymbols)for(var w=Object.getOwnPropertySymbols(n),v=0;v2&&void 0!==arguments[2]?arguments[2]:-1,n=this.defaultSort,i=this.userMultiSorting[this.currentlySorting.column]?this.userMultiSorting[this.currentlySorting.column]:this.opts.multiSorting[this.currentlySorting.column],o=this.currentlySorting.ascending;return function(s,a){var u,c=s[t]||"",l=a[t]||"",f=e?1:-1;if("string"==typeof c&&(c=c.toLowerCase()),"string"==typeof l&&(l=l.toLowerCase()),c===l&&i&&i[r+1]){var p=i[r+1];return u=void 0!==p.ascending?p.ascending:p.matchDir?o:!o,n(p.column,u,r+1)(s,a)}return c>l?f:-f}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var i=r(0),o=n(i),s=r(24),a=n(s),u=r(13),c=n(u),l=r(14),f=n(l),p=r(15),h=n(p),d=r(10),g=r(25),y=r(26),m=r(27);e.install=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bootstrap3",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",u=n?(0,c.default)("server"):(0,f.default)(),l=o.default.recursive(!0,(0,h.default)(),{name:"server-table",components:{Pagination:d.Pagination},render:m.call(this,s,i),props:{columns:{type:Array,required:!0},url:{type:String,required:!0},name:{type:String,required:!1},options:{type:Object,required:!1,default:function(){return{}}}},created:function(){y(this),this.vuex||(this.query=this.initQuery(),this.initOrderBy(),this.customQueries=this.initCustomFilters()),this.loadState(),this.getData(!0).then(function(t){this.setData(t),this.loading=!1,this.hasDateFilters()&&setTimeout(function(){this.initDateFilters()}.bind(this),0)}.bind(this))},mounted:function(){this.vuex||(this.registerServerFilters(),this.options.initialPage&&this.setPage(this.options.initialPage,!0))},data:function(){return o.default.recursive(g(),{source:"server",loading:!0,lastKeyStrokeAt:!1,globalOptions:e},(0,a.default)(n,"server",this.options.initialPage))},methods:{refresh:r(192),getData:r(193),setData:r(194),serverSearch:r(17),registerServerFilters:r(195),loadState:function(){var t=this;if(this.opts.saveState){if(!this.storage.getItem(this.stateKey))return this.initState(),void(this.activeState=!0);var e=JSON.parse(this.storage.getItem(this.stateKey));this.vuex?this.commit("SET_STATE",{query:e.query,customQueries:e.customQueries,page:e.page,limit:e.perPage,orderBy:e.orderBy}):(this.page=e.page,this.query=e.query,this.customQueries=e.customQueries,this.limit=e.perPage,this.orderBy=e.orderBy),this.opts.pagination.dropdown||setTimeout(function(){t.$refs.pagination.Page=e.page},0),this.activeState=!0}}},computed:{totalPages:r(29),filteredQuery:r(196),hasMultiSort:function(){return this.opts.serverMultiSorting}}},u);return t.component("v-server-table",l),l}},function(t,e,r){"use strict";t.exports=function(){this.serverSearch()}},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(0);t.exports=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this.opts.requestKeys,a=(e={},n(e,s.query,this.filteredQuery),n(e,s.limit,this.limit),n(e,s.ascending,this.orderBy.ascending?1:0),n(e,s.page,this.page),n(e,s.byColumn,this.opts.filterByColumn?1:0),e);this.orderBy.hasOwnProperty("column")&&this.orderBy.column&&(a[s.orderBy]=this.orderBy.column),a=i(a,this.opts.params,this.customQueries,r),this.hasMultiSort&&this.orderBy.column&&this.userMultiSorting[this.orderBy.column]&&(a.multiSort=this.userMultiSorting[this.orderBy.column]),a=this.opts.requestAdapter(a),o&&this.dispatch("loading",a);var u=this.sendRequest(a);return t?u:u.then(function(t){return this.setData(t)}.bind(this))}},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=function(t){var e=this.opts.responseAdapter.call(this,t);if(this.data=this.applyFilters(e.data),isNaN(e.count))throw console.error("vue-tables-2: invalid 'count' property. Expected number, got "+n(e.count)),console.error("count equals",e.count),new Error;this.count=parseInt(e.count),setTimeout(function(){this.dispatch("loaded",t)}.bind(this),0)}},function(t,e,r){"use strict";var n=r(1),i=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=function(){var t="vue-tables";this.name&&(t+="."+this.name),this.opts.customFilters.forEach(function(e){i.default.$off(t+".filter::"+e),i.default.$on(t+".filter::"+e,function(t){this.customQueries[e]=t,this.updateState("customQueries",this.customQueries),this.refresh()}.bind(this))}.bind(this))}},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=function(){if("object"!==n(this.query))return this.query;var t={};for(var e in this.query)""!==this.query[e]&&(t[e]=this.query[e]);return t}}]); \ No newline at end of file +var VueTables=function(t){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}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get: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,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=31)}([function(t,e,r){(function(t){!function(e){function r(t,e){if("object"!==i(t))return e;for(var n in e)"object"===i(t[n])&&"object"===i(e[n])?t[n]=r(t[n],e[n]):t[n]=e[n];return t}function n(t,e,n){var s=n[0],a=n.length;(t||"object"!==i(s))&&(s={});for(var u=0;u1)for(var r=1;r=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n=-1&&!i;o--){var s=o>=0?arguments[o]:t.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,i="/"===s.charAt(0))}return e=r(n(e.split("/"),function(t){return!!t}),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),o="/"===s(t,-1);return t=r(n(t.split("/"),function(t){return!!t}),!i).join("/"),t||i||(t="."),t&&o&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split("/")),o=n(r.split("/")),s=Math.min(i.length,o.length),a=s,u=0;u=0?i=setTimeout(n,e-c):(i=null,r||(u=t.apply(s,o),s=o=null))}var i,o,s,a,u;null==e&&(e=100);var c=function(){s=this,o=arguments,a=Date.now();var c=r&&!i;return i||(i=setTimeout(n,e)),c&&(u=t.apply(s,o),s=o=null),u};return c.clear=function(){i&&(clearTimeout(i),i=null)},c.flush=function(){i&&(u=t.apply(s,o),s=o=null,clearTimeout(i),i=null)},c}},function(t,e){t.exports=Vue},function(t,e,r){"use strict";var n=r(33),i=r(12);t.exports={Pagination:n,PaginationEvent:i}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";var n=r(9),i=function(t){return t&&t.__esModule?t:{default:t}}(n),o=new i.default;t.exports=o},function(t,e,r){"use strict";function n(){return{methods:{setData:function(t){this.commit("SET_DATA",t),this.commit("LOADED",t),setTimeout(function(){this.dispatch("loaded",t)}.bind(this),0)}}}}function i(){return{}}Object.defineProperty(e,"__esModule",{value:!0});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};e.default=function(t){var e="server"==t?n():i();return a.default.recursive(!0,{props:{name:{type:String,required:!0}},computed:{state:function(){return this.$store.state[this.name]},Page:function(){return this.state.page},count:function(){return this.state.count},Columns:function(){return this.state.columns},tableData:function(){return this.state.data},page:function(){return this.state.page},limit:function(){return this.state.limit},customQueries:function(){return this.state.customQueries},query:function(){return this.state.query},orderBy:function(){return{column:this.state.sortBy,ascending:this.state.ascending}}},methods:{commit:function(t,e){return this.$store.commit(this.name+"/"+t,e)},orderByColumn:function(t,e){if(this.sortable(t))if(e.shiftKey&&this.orderBy.column&&this.hasMultiSort)this.setUserMultiSort(t);else{var r=this.orderBy.column===t?!this.orderBy.ascending:this._initialOrderAscending(t),n={column:t,ascending:r};this.updateState("orderBy",n),this.commit("SORT",n),this.dispatch("sorted",n)}},setLimit:function(t){var e="object"===(void 0===t?"undefined":o(t))?parseInt(t.target.value):t;this.updateState("perPage",e),this.commit("SET_LIMIT",e),this.dispatch("limit",e)},setOrder:function(t,e){this.updateState("orderBy",{column:t,ascending:e}),this.commit("SORT",{column:t,ascending:e})},setPage:function(t){t||(t=this.$refs.page.value),this.opts.pagination.dropdown||(this.$refs.pagination.Page=t),this.commit("PAGINATE",t)}}},e)};var s=r(0),a=function(t){return t&&t.__esModule?t:{default:t}}(s)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{computed:{Columns:function(){return this.columns}}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{methods:n,computed:i,directives:o,beforeDestroy:s}};var n=r(40),i=r(141),o=r(153),s=r(156)},function(t,e,r){"use strict";t.exports=function(t,e){if(!this.opts.texts)return"";var t=this.opts.texts[t];if(e)for(var r in e)t=t.replace("{"+r+"}",e[r]);return t}},function(t,e,r){"use strict";function n(t,e){t.vuex?t.commit("SET_FILTER",e):(t.initPagination(),t.opts.pagination.dropdown&&t.getData())}t.exports=function(t,e){var r=this.vuex?JSON.parse(JSON.stringify(this.query)):this.query;if("Object"==Object.prototype.toString.call(t).slice(8,-1)){r=this.vuex?JSON.parse(JSON.stringify(t)):t,this.vuex||(this.query=r);var i=e.target.name,o=e.target.value;i?(this.dispatch("filter",{name:i,value:o}),this.dispatch("filter::"+i,o)):this.dispatch("filter",o),this.updateState("query",r)}else if(t){var s=this.getName(t.target.name),a=t.target.value;s?r[s]=a:r=a,this.vuex||(this.query=r),s?(this.dispatch("filter",{name:s,value:a}),this.dispatch("filter::"+s,a)):this.dispatch("filter",a),this.updateState("query",r)}return n(this,r)}},function(t,e,r){"use strict";t.exports=function(t){return t&&"function"==typeof t.isValid&&t.isValid()}},function(t,e,r){"use strict";(function(t){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(n()=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),o.alloc(+t)}function y(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return K(t).length;default:if(n)return V(t).length;e=(""+e).toLowerCase(),n=!0}}function m(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,e,r);case"utf8":case"utf-8":return T(this,e,r);case"ascii":return O(this,e,r);case"latin1":case"binary":return B(this,e,r);case"base64":return E(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=o.from(e,n)),o.isBuffer(e))return 0===e.length?-1:_(t,e,r,n,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):_(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,e,r,n,i){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}var c;if(i){var l=-1;for(c=r;ca&&(r=a-u),c=r;c>=0;c--){for(var f=!0,p=0;pi&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s239?4:o>223?3:o>191?2:1;if(i+a<=r){var u,c,l,f;switch(a){case 1:o<128&&(s=o);break;case 2:u=t[i+1],128==(192&u)&&(f=(31&o)<<6|63&u)>127&&(s=f);break;case 3:u=t[i+1],c=t[i+2],128==(192&u)&&128==(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(s=f);break;case 4:u=t[i+1],c=t[i+2],l=t[i+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(s=f)}}null===s?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=a}return j(n)}function j(t){var e=t.length;if(e<=Z)return String.fromCharCode.apply(String,t);for(var r="",n=0;nn)&&(r=n);for(var i="",o=e;or)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,r,n,i,s){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function F(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i>>8*(n?i:1-i)}function $(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i>>8*(n?i:3-i)&255}function I(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(t,e,r,n,i){return i||I(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),J.write(t,e,r,n,23,4),r+4}function U(t,e,r,n,i){return i||I(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),J.write(t,e,r,n,52,8),r+8}function N(t){if(t=q(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function q(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Y(t){return t<16?"0"+t.toString(16):t.toString(16)}function V(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],s=0;s55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Q(t){for(var e=[],r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function K(t){return z.toByteArray(N(t))}function G(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function W(t){return t!==t}var z=r(68),J=r(69),X=r(20);e.Buffer=o,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,r){return s(null,t,e,r)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,r){return u(null,t,e,r)},o.allocUnsafe=function(t){return c(null,t)},o.allocUnsafeSlow=function(t){return c(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,s=Math.min(r,n);i0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},o.prototype.compare=function(t,e,r,n,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var s=i-n,a=r-e,u=Math.min(s,a),c=this.slice(n,i),l=t.slice(e,r),f=0;fi)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return x(this,t,e,r);case"ascii":return S(this,t,e,r);case"latin1":case"binary":return P(this,t,e,r);case"base64":return C(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)n+=this[t+--e]*i;return n},o.prototype.readUInt8=function(t,e){return e||M(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||M(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||M(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||M(t,e,this.length);for(var n=this[t],i=1,o=0;++o=i&&(n-=Math.pow(2,8*e)),n},o.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||M(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||M(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(t,e){e||M(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(t,e){return e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||M(t,4,this.length),J.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||M(t,4,this.length),J.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||M(t,8,this.length),J.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||M(t,8,this.length),J.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){D(this,t,e,r,Math.pow(2,8*r)-1,0)}var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+r},o.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):F(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):F(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):$(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):$(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);D(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+r},o.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);D(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},o.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):F(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):F(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):$(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):$(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,r){return L(this,t,e,!0,r)},o.prototype.writeFloatBE=function(t,e,r){return L(this,t,e,!1,r)},o.prototype.writeDoubleLE=function(t,e,r){return U(this,t,e,!0,r)},o.prototype.writeDoubleBE=function(t,e,r){return U(this,t,e,!1,r)},o.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--i)t[i+e]=this[i+r];else if(s<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var s;if("number"==typeof t)for(s=e;s2&&void 0!==arguments[2]?arguments[2]:1,n={vuex:!0,activeState:!1,userColumnsDisplay:[],userControlsColumns:!1,displayColumnsDropdown:!1};return t?n:(n=(0,i.default)(n,{vuex:!1,count:0,customQueries:{},query:null,page:r,limit:10,windowWidth:window.innerWidth,orderBy:{column:!1,ascending:!0}}),"server"==e&&(n.data=[]),n)};var n=r(0),i=function(t){return t&&t.__esModule?t:{default:t}}(n)},function(t,e,r){"use strict";function n(){for(var t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r<5;r++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}t.exports=function(){return{id:n(),openChildRows:[],windowWidth:window.innerWidth,userMultiSorting:{}}}},function(t,e,r){"use strict";function n(t){var e,r,n,a={};for(var u in t){n=o(t[u]);try{r=s(t[u]),e=i(r,n),a[u]=e.concat([n])}catch(t){console.warn("Unknown device "+r)}}return a}function i(t,e){var r={desktop:[1024,null],tablet:[480,1024],mobile:[0,480],tabletL:[768,1024],tabletP:[480,768],mobileL:[320,480],mobileP:[0,320]};switch(e){case"min":return[r[t][0],null];case"max":return[0,r[t][1]];default:return r[t]}}function o(t){var e=t.split("_");return["not","min","max"].indexOf(e[0])>-1&&e[0]}function s(t){var e=t.split("_");return e.length>1?e[1]:e[0]}var a=r(157),u=r(158);t.exports=function(t){t.vuex?u(t):t.limit=t.opts.perPage,a(t.opts.columnsDisplay)||(t.columnsDisplay=n(t.opts.columnsDisplay),window.addEventListener("resize",function(){t.windowWidth=window.innerWidth}.bind(t)))}},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=function(t,e){var i={bootstrap3:r(161)(),bootstrap4:r(162)(),bulma:r(163)()},o={default:r(164),footerPagination:r(165)};return function(s){var a={rows:r(166).call(this,s),normalFilter:r(167).call(this,s),dropdownPagination:r(168).call(this,s),dropdownPaginationCount:r(169).call(this,s),columnFilters:r(170).call(this,s),pagination:r(174).call(this,s),headings:r(175).call(this,s),perPage:r(177).call(this,s),columnsDropdown:r(178).call(this,s)};if("string"==typeof t&&(!o[t]||"function"!=typeof o[t]))throw'vue-tables-2: Template "'+t+'" does not exist';if("string"==typeof e&&(!i[e]||"object"!==n(i[e])))throw'vue-tables-2: Theme "'+e+'" does not exist';var u="string"==typeof t?o[t]:t,c="string"==typeof e?i[e]:e(),l=r(181).call(this);return u.call(this,s,a,c,l)}}},function(t,e,r){"use strict";t.exports=function(t){var e=this,r=[];return this.opts.perPageValues.every(function(n){var i=n>=e.count,o=e.limit==n||i&&e.limit>n;return r.push(t("option",{domProps:{value:n,selected:o}},[n])),!i}),r}},function(t,e,r){"use strict";t.exports=function(){return Math.ceil(this.count/this.limit)}},function(t,e,r){"use strict";function n(t){return t?"string"==typeof t?t.toLowerCase():t:""}function i(t,e,r){if(["string","number"].indexOf(void 0===e?"undefined":s(e))>-1&&(e=String(e).toLowerCase()),r)return e==t;if("string"==typeof e)return e.indexOf(t)>-1;if(u(e)){var n=moment(t.start,"YYYY-MM-DD HH:mm:ss"),o=moment(t.end,"YYYY-MM-DD HH:mm:ss");return e>=n&&e<=o}if("object"===(void 0===e?"undefined":s(e))){for(var a in e)if(i(t,e[a]))return!0;return!1}return e>=n&&e<=o}function o(t,e,r){return u(t)?e?t:t.format(r):t}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},a=r(185),u=r(18),c=r(186);t.exports=function(t,e){if(e){var r=this.query;this.setPage(1,!0);var u=this.getName(e.target.name),l="object"===s(e.target.value)?e.target.value:""+e.target.value;u?r[u]=l:r=l,this.vuex?this.commit("SET_FILTER",r):this.query=r,this.updateState("query",r),u?(this.dispatch("filter",{name:u,value:l}),this.dispatch("filter::"+u,l)):this.dispatch("filter",l)}var f=this.query,p=f?1:0;if(!this.opts)return t;this.opts.filterByColumn&&(p=a(f));var l,h,d,g,y,m,t=c(t,this.opts.customFilters,this.customQueries);return p?t.filter(function(t,e){return h=0,this.filterableColumns.forEach(function(e){y=this.opts.dateColumns.indexOf(e)>-1&&this.opts.filterByColumn,m=this.isListFilter(e)&&this.opts.filterByColumn,g=this.dateFormat(e),l=o(t[e],y,g),d=this.opts.filterByColumn?f[e]:f,(d=n(d))&&i(d,l,m)&&h++}.bind(this)),h>=p}.bind(this)):t}},function(t,e,r){"use strict";var n=r(1),i=function(t){return t&&t.__esModule?t:{default:t}}(n),o=r(32),s=r(191);t.exports={ClientTable:o,ServerTable:s,Event:i.default}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var i=r(10),o=r(13),s=n(o),a=r(14),u=n(a),c=r(0),l=n(c),f=r(15),p=n(f),h=r(24),d=n(h),g=r(25),y=r(26),m=r(27);e.install=function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bootstrap3",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",c=l.default.recursive(!0,(0,p.default)(),{name:"client-table",components:{Pagination:i.Pagination},render:m.call(this,a,o),props:{columns:{type:Array,required:!0},data:{type:Array,required:!0},name:{type:String,required:!1},options:{type:Object,required:!1,default:function(){return{}}}},created:function(){y(this),this.vuex||(this.initOrderBy(),this.query=this.initQuery(),this.customQueries=this.initCustomFilters())},mounted:function(){this.opts.toMomentFormat&&this.transformDateStringsToMoment(),this.vuex||(this.registerClientFilters(),this.options.initialPage&&this.setPage(this.options.initialPage)),this.opts.groupBy&&!this.opts.orderBy&&(this.orderBy.column=this.opts.groupBy),this.loadState(),this.hasDateFilters()&&this.initDateFilters()},data:function(){return l.default.recursive(g(),{source:"client",globalOptions:e,currentlySorting:{},time:Date.now()},(0,d.default)(n,"client",this.options.initialPage))},computed:{q:r(182),customQ:r(183),totalPages:r(29),filteredData:r(184),hasMultiSort:function(){return this.opts.clientMultiSorting}},methods:{transformDateStringsToMoment:r(188),registerClientFilters:r(189),search:r(30),defaultSort:r(190),loadState:function(){if(this.opts.saveState){if(!this.storage.getItem(this.stateKey))return this.initState(),void(this.activeState=!0);var t=JSON.parse(this.storage.getItem(this.stateKey));this.opts.filterable&&this.setFilter(t.query),this.setOrder(t.orderBy.column,t.orderBy.ascending),this.vuex?this.commit("SET_LIMIT",t.perPage):this.limit=t.perPage,this.setPage(t.page),this.activeState=!0}}}}),f=n?(0,s.default)():(0,u.default)();return c=l.default.recursive(c,f),t.component("v-client-table",c),c}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}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 o(t,e){return Array.apply(0,Array(e)).map(function(e,r){return r+t})}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},a="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":s(t)},u=r(34),c=n(u),l=r(35),f=n(l),p=r(36),h=r(12);t.exports={render:p.call(void 0),props:{for:{type:String,required:!1},records:{type:Number,required:!0},perPage:{type:Number,default:25},vuex:{type:Boolean},options:{type:Object}},created:function(){if(this.vuex){if(!this.for)throw new Error('vue-pagination-2: The "for" prop is required when using vuex');var t=this.for;this.$store.state[t]||this.$store.registerModule(this.for,{state:{page:1},mutations:i({},t+"/PAGINATE",function(t,e){t.page=e})})}},data:function(){return{Page:1,firstPage:1}},computed:{opts:function(){return(0,f.default)((0,c.default)(),this.options)},Theme:function(){if("object"===a(this.opts.theme))return this.opts.theme;var t={bootstrap3:r(37),bootstrap4:r(38),bulma:r(39)};if(void 0===a(t[this.opts.theme]))throw"vue-pagination-2: the theme "+this.opts.theme+" does not exist";return t[this.opts.theme]},page:function(){return this.vuex?this.$store.state[this.for].page:this.Page},pages:function(){return this.records?o(this.paginationStart,this.pagesInCurrentChunk):[]},totalPages:function(){return this.records?Math.ceil(this.records/this.perPage):1},totalChunks:function(){return Math.ceil(this.totalPages/this.opts.chunk)},currentChunk:function(){return Math.ceil(this.page/this.opts.chunk)},paginationStart:function(){return"scroll"===this.opts.chunksNavigation?this.firstPage:(this.currentChunk-1)*this.opts.chunk+1},pagesInCurrentChunk:function(){return this.paginationStart+this.opts.chunk<=this.totalPages?this.opts.chunk:this.totalPages-this.paginationStart+1},count:function(){if(/{page}/.test(this.opts.texts.count))return this.totalPages<=1?"":this.opts.texts.count.replace("{page}",this.page).replace("{pages}",this.totalPages);var t=this.opts.texts.count.split("|"),e=(this.page-1)*this.perPage+1,r=this.page==this.totalPages?this.records:e+this.perPage-1;return t[Math.min(1==this.records?2:1==this.totalPages?1:0,t.length-1)].replace("{count}",this.formatNumber(this.records)).replace("{from}",this.formatNumber(e)).replace("{to}",this.formatNumber(r))}},methods:{setPage:function(t){this.allowedPage(t)&&this.paginate(t)},paginate:function(t){this.vuex?this.$store.commit(this.for+"/PAGINATE",t):this.Page=t,this.$emit("paginate",t),this.for&&h.$emit("vue-pagination::"+this.for,t)},next:function(){var t=this.page+1;return"scroll"===this.opts.chunksNavigation&&this.allowedPage(t)&&!this.inDisplay(t)&&this.firstPage++,this.setPage(t)},prev:function(){var t=this.page-1;return"scroll"===this.opts.chunksNavigation&&this.allowedPage(t)&&!this.inDisplay(t)&&this.firstPage--,this.setPage(t)},inDisplay:function(t){var e=this.firstPage,r=e+this.opts.chunk-1;return t>=e&&t<=r},nextChunk:function(){return this.setChunk(1)},prevChunk:function(){return this.setChunk(-1)},setChunk:function(t){this.setPage((this.currentChunk-1+t)*this.opts.chunk+1)},allowedPage:function(t){return t>=1&&t<=this.totalPages},allowedChunk:function(t){return 1==t&&this.currentChunk1},allowedPageClass:function(t){return this.allowedPage(t)?"":this.Theme.disabled},allowedChunkClass:function(t){return this.allowedChunk(t)?"":this.Theme.disabled},activeClass:function(t){return this.page==t?this.Theme.active:""},formatNumber:function(t){return this.opts.format?t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):t}},beforeDestroy:function(){h.$off(),h.$destroy()}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{format:!0,chunk:10,chunksNavigation:"fixed",edgeNavigation:!1,theme:"bootstrap3",texts:{count:"Showing {from} to {to} of {count} records|{count} records|One record",first:"First",last:"Last"}}}},function(t,e,r){(function(t){!function(e){function r(t,e){if("object"!==i(t))return e;for(var n in e)"object"===i(t[n])&&"object"===i(e[n])?t[n]=r(t[n],e[n]):t[n]=e[n];return t}function n(t,e,n){var s=n[0],a=n.length;(t||"object"!==i(s))&&(s={});for(var u=0;u1&&(i=t("li",{class:"VuePagination__pagination-item "+e.item+" "+(1===this.page?e.disabled:"")+" VuePagination__pagination-item-prev-chunk"},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:1===this.page},on:{click:this.setPage.bind(this,1)}},[this.opts.texts.first])]),o=t("li",{class:"VuePagination__pagination-item "+e.item+" "+(this.page===this.totalPages?e.disabled:"")+" VuePagination__pagination-item-prev-chunk"},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:this.page===this.totalPages},on:{click:this.setPage.bind(this,this.totalPages)}},[this.opts.texts.last])])),"fixed"===this.opts.chunksNavigation&&(r=t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.prev+" VuePagination__pagination-item-prev-chunk "+this.allowedChunkClass(-1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedChunkClass(-1)},on:{click:this.setChunk.bind(this,-1)}},["<<"])]),n=t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.next+" VuePagination__pagination-item-next-chunk "+this.allowedChunkClass(1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedChunkClass(1)},on:{click:this.setChunk.bind(this,1)}},[">>"])])),t("div",{class:"VuePagination "+e.wrapper},[t("nav",{class:""+e.nav},[t("ul",{directives:[{name:"show",value:this.totalPages>1}],class:e.list+" VuePagination__pagination"},[i,r,t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.prev+" VuePagination__pagination-item-prev-page "+this.allowedPageClass(this.page-1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedPageClass(this.page-1)},on:{click:this.prev.bind(this)}},["<"])]),s,t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.next+" VuePagination__pagination-item-next-page "+this.allowedPageClass(this.page+1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedPageClass(this.page+1)},on:{click:this.next.bind(this)}},[">"])]),n,o]),t("p",{directives:[{name:"show",value:parseInt(this.records)}],class:"VuePagination__count "+e.count},[this.count])])])}}},function(t,e,r){"use strict";t.exports={nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}},function(t,e,r){"use strict";t.exports={nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}},function(t,e,r){"use strict";t.exports={nav:"",count:"",wrapper:"pagination",list:"pagination-list",item:"",link:"pagination-link",next:"",prev:"",active:"is-current",disabled:""}},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i;t.exports=(i={initQuery:r(41),initCustomFilters:r(42),initOptions:r(43),sortableClass:r(44),sortableChevronClass:r(45),display:r(16),orderByColumn:r(46),getHeading:r(47),getHeadingTooltip:r(49),sortable:r(50)},n(i,"display",r(16)),n(i,"serverSearch",r(17)),n(i,"initOrderBy",r(51)),n(i,"initDateFilters",r(52)),n(i,"setFilter",r(53)),n(i,"setPage",r(54)),n(i,"setOrder",r(55)),n(i,"initPagination",r(56)),n(i,"filterable",r(57)),n(i,"isTextFilter",r(58)),n(i,"isDateFilter",r(59)),n(i,"isListFilter",r(60)),n(i,"highlightMatch",r(61)),n(i,"formatDate",r(62)),n(i,"hasDateFilters",r(63)),n(i,"applyFilters",r(112)),n(i,"optionText",r(113)),n(i,"render",r(114)),n(i,"rowWasClicked",r(115)),n(i,"setLimit",r(116)),n(i,"getOpenChildRows",r(117)),n(i,"dispatch",r(118)),n(i,"toggleChildRow",r(119)),n(i,"childRowTogglerClass",r(120)),n(i,"sendRequest",r(121)),n(i,"getResponseData",r(122)),n(i,"getSortFn",r(123)),n(i,"initState",r(124)),n(i,"updateState",r(125)),n(i,"columnClass",r(126)),n(i,"getName",r(127)),n(i,"toggleColumn",r(128)),n(i,"setUserMultiSort",r(129)),n(i,"_setFiltersDOM",r(130)),n(i,"_currentlySorted",r(131)),n(i,"_getChildRowTemplate",r(132)),n(i,"_toggleColumnsDropdown",r(133)),n(i,"_onlyColumn",r(134)),n(i,"_onPagination",r(135)),n(i,"_toggleGroupDirection",r(136)),n(i,"_getInitialDateRange",r(137)),n(i,"_setDatepickerText",r(138)),n(i,"_initialOrderAscending",r(139)),n(i,"dateFormat",r(140)),i)},function(t,e,r){"use strict";function n(t,e){return t.hasOwnProperty(e)?void 0===t[e].start?t[e]:{start:t[e].start.format("YYYY-MM-DD HH:mm:ss"),end:t[e].end.format("YYYY-MM-DD HH:mm:ss")}:""}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(){var t=this.opts.initFilters;if(!this.opts.filterByColumn)return t.hasOwnProperty("GENERIC")?t.GENERIC:"";var e={};return(this.opts.filterable&&"object"==i(this.opts.filterable)?this.opts.filterable:this.columns).forEach(function(r){e[r]=n(t,r)}.bind(this)),e}},function(t,e,r){"use strict";t.exports=function(){var t={},e=this.opts.initFilters,r=void 0;return this.opts.customFilters.forEach(function(n){r="client"==this.source?n.name:n,t[r]=e.hasOwnProperty(r)?e[r]:""}.bind(this)),t}},function(t,e,r){"use strict";var n=r(0);t.exports=function(t,e,r){return e&&(t=n.recursive(t,e)),r=n.recursive(t,r)}},function(t,e,r){"use strict";t.exports=function(t){var e=this.sortable(t)?"VueTables__sortable ":"";return e+=this.columnClass(t)}},function(t,e,r){"use strict";t.exports=function(t){var e=this.opts.sortIcon.base+" ";if(this.sortable(t)){if(this.opts.sortIcon.is&&!this._currentlySorted(t)&&(e+=this.opts.sortIcon.is+" "),this.hasMultiSort&&this.orderBy.column&&this.userMultiSorting[this.orderBy.column]){var r=this.userMultiSorting[this.orderBy.column].filter(function(e){return e.column===t})[0];r&&(e+=r.ascending?this.opts.sortIcon.up:this.opts.sortIcon.down)}return t==this.orderBy.column&&(e+=1==this.orderBy.ascending?this.opts.sortIcon.up:this.opts.sortIcon.down),e}}},function(t,e,r){"use strict";t.exports=function(t,e){this.sortable(t)&&(e.shiftKey&&this.orderBy.column&&this.hasMultiSort?this.setUserMultiSort(t):(this.userMultiSorting={},this.orderBy.ascending=t==this.orderBy.column?!this.orderBy.ascending:this._initialOrderAscending(t),this.orderBy.column=t,this.updateState("orderBy",this.orderBy),this.dispatch("sorted",JSON.parse(JSON.stringify(this.orderBy)))),"server"==this.source&&this.getData())}},function(t,e,r){"use strict";var n=r(48),i=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=function(t,e){if("string"!=typeof t)return"";if(void 0!==this.$slots["h__"+t])return this.$slots["h__"+t];var r=(0,i.default)(t.split("_").join(" "));return this.opts.headings.hasOwnProperty(t)?"function"==typeof this.opts.headings[t]?e?this.opts.headings[t].call(this.$parent,e):r:this.opts.headings[t]:r}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},function(t,e,r){"use strict";t.exports=function(t,e){if("string"!=typeof t)return"";return this.opts.headingsTooltips.hasOwnProperty(t)?"function"==typeof this.opts.headingsTooltips[t]?e?this.opts.headingsTooltips[t].call(this.$parent,e):"":this.opts.headingsTooltips[t]:""}},function(t,e,r){"use strict";t.exports=function(t){return!("boolean"!=typeof this.opts.sortable||!this.opts.sortable)||this.opts.sortable.indexOf(t)>-1}},function(t,e,r){"use strict";t.exports=function(){this.opts.orderBy&&(this.orderBy.column=this.opts.orderBy.column,this.orderBy.ascending=!this.opts.orderBy.hasOwnProperty("ascending")||this.opts.orderBy.ascending)}},function(t,e,r){"use strict";var n=r(0);t.exports=function(){if("undefined"==typeof $)return void console.error("Date filters require jquery and daterangepicker");var t,e,r=this,i=this.vuex?JSON.parse(JSON.stringify(this.query)):this.query,o=function(t,e){return"client"==r.source?r.search(r.data,e):r.serverSearch(t,e)},s=n.recursive(this.opts.datepickerOptions,{autoUpdateInput:!1,singleDatePicker:!1});r.opts.dateColumns.forEach(function(a){var u=r._getInitialDateRange(a);u?(r._setDatepickerText(a,u.start,u.end),u={startDate:u.start,endDate:u.end}):u={},t=$(r.$el).find("#VueTables__"+a+"-filter"),e=void 0!==r.opts.datepickerPerColumnOptions[a]?r.opts.datepickerPerColumnOptions[a]:{},e=n.recursive(e,{locale:{format:r.dateFormat(a)}}),t.daterangepicker(n.recursive(s,e,u)),t.on("apply.daterangepicker",function(t,e){i[a]={start:e.startDate.format("YYYY-MM-DD HH:mm:ss"),end:e.endDate.format("YYYY-MM-DD HH:mm:ss")},r.vuex||(r.query=i),r._setDatepickerText($(this),e.startDate,e.endDate),r.updateState("query",i),o(i,{target:{name:"vf__"+a,value:i[a]}})}),t.on("cancel.daterangepicker",function(t,e){i[a]="",r.vuex||(r.query=i),e.setStartDate(moment()),e.setEndDate(moment()),r.updateState("query",i),$(this).html(""+r.display("filterBy",{column:r.getHeading(a)})+""),o(i,{target:{name:"vf__"+a,value:i[a]}})})})}},function(t,e,r){"use strict";var n=r(0);t.exports=function(t){if(!this.opts.filterable)return void console.warn("vue-tables-2: Unable to set filter. Filtering is disabled (filterable: false)");if(this.opts.filterByColumn&&"string"==typeof t)return void console.warn("vue-tables-2: Unable to set filter. Filter value must be an object (`filterByColumn` is set to `true`)");if(!this.opts.filterByColumn&&"string"!=typeof t)return void console.warn("vue-tables-2: Unable to set filter. Filter value must be a string (`filterByColumn` is set to `false`)");var e=this.opts.filterByColumn?n(this.query,t):t;this.vuex?this.commit("SET_FILTER",e):(this.query=e,this.setPage(1,!0)),this.updateState("query",e),this._setFiltersDOM(t),"server"==this.source&&this.getData()}},function(t,e,r){"use strict";t.exports=function(t,e){t=t||this.$refs.page.value,this.opts.pagination.dropdown||(this.$refs.pagination.Page=t),this.page=t,this.updateState("page",t),"server"!=this.source||e||this.getData()}},function(t,e,r){"use strict";t.exports=function(t,e){this.orderBy.column=t,this.orderBy.ascending=e,this.updateState("orderBy",{column:t,ascending:e}),"server"==this.source&&this.getData()}},function(t,e,r){"use strict";t.exports=function(){this.page=1,this.opts.pagination.dropdown||this.$refs.pagination.setPage(1)}},function(t,e,r){"use strict";t.exports=function(t){return!!this.opts.filterable&&("boolean"==typeof this.opts.filterable&&this.opts.filterable||this.opts.filterable.indexOf(t)>-1)}},function(t,e,r){"use strict";t.exports=function(t){return this.query.hasOwnProperty(t)&&-1==this.opts.dateColumns.indexOf(t)&&!this.opts.listColumns.hasOwnProperty(t)}},function(t,e,r){"use strict";t.exports=function(t){return this.query.hasOwnProperty(t)&&this.opts.dateColumns.indexOf(t)>-1}},function(t,e,r){"use strict";t.exports=function(t){return this.query.hasOwnProperty(t)&&this.opts.listColumns.hasOwnProperty(t)}},function(t,e,r){"use strict";function n(t,e,r){return String(t).split(e).map(function(t){return e.test(t)?r("b",{},t):t})}function i(t){return"string"==typeof t?t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"):t}t.exports=function(t,e,r){if(!this.opts.highlightMatches||-1===this.filterableColumns.indexOf(e))return t;if(void 0===t)return t;var o=this.opts.filterByColumn?this.query[e]:this.query;return o?(o=new RegExp("("+i(o)+")","i"),r("span",{class:"VueTables__highlight"},n(t,o,r))):t}},function(t,e,r){"use strict";var n=r(18);t.exports=function(t,e){return n(t)?t.format(e):t}},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},i=r(64);t.exports=function(){var t=this.opts;return t.dateColumns.length&&t.filterByColumn&&("boolean"==typeof t.filterable&&t.filterable||"object"==n(t.filterable)&&i(t.filterable,t.dateColumns).length)}},function(t,e,r){"use strict";var n=r(65),i=r(108),o=r(21),s=r(110),a=r(111);t.exports=function(t){if(null==t)return[];if(1===arguments.length)return o(t);var e=s(arguments,1);return n(o(t),function(t){return i(e,function(e){return-1!==a(e,t)})})}},function(t,e,r){"use strict";var n=r(66),i=r(70),o=r(73);t.exports=function(t,e,r){if(0===t.length)return[];if("function"===n(e)||"regexp"===n(e)){var s=o.matcher(e,r);return i(t,function(t){return s(t)})}return"string"===n(e)||"array"===n(e)?i(t,o.filter(e,r)):[]}},function(t,e,r){(function(e){var r=Object.prototype.toString;t.exports=function(t){if(void 0===t)return"undefined";if(null===t)return"null";if(!0===t||!1===t||t instanceof Boolean)return"boolean";if("object"!=typeof t)return typeof t;if(Array.isArray(t))return"array";var n=r.call(t);return t instanceof RegExp||"[object RegExp]"===n?"regexp":t instanceof Date||"[object Date]"===n?"date":"[object Function]"===n?"function":"[object Arguments]"===n?"arguments":void 0!==e&&e.isBuffer(t)?"buffer":n.slice(8,-1).toLowerCase()}}).call(e,r(19).Buffer)},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t){return 3*t.length/4-n(t)}function o(t){var e,r,i,o,s,a=t.length;o=n(t),s=new f(3*a/4-o),r=o>0?a-4:a;var u=0;for(e=0;e>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=l[t.charCodeAt(e)]<<2|l[t.charCodeAt(e+1)]>>4,s[u++]=255&i):1===o&&(i=l[t.charCodeAt(e)]<<10|l[t.charCodeAt(e+1)]<<4|l[t.charCodeAt(e+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}function s(t){return c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}function a(t,e,r){for(var n,i=[],o=e;ou?u:s+16383));return 1===n?(e=t[r-1],i+=c[e>>2],i+=c[e<<4&63],i+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=c[e>>10],i+=c[e>>4&63],i+=c[e<<2&63],i+="="),o.push(i),o.join("")}e.byteLength=i,e.toByteArray=o,e.fromByteArray=u;for(var c=[],l=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,d=p.length;h>1,l=-7,f=r?i-1:0,p=r?-1:1,h=t[e+f];for(f+=p,o=h&(1<<-l)-1,h>>=-l,l+=a;l>0;o=256*o+t[e+f],f+=p,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),o-=c}return(h?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),e+=s+f>=1?p/u:p*Math.pow(2,1-f),e*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,i),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[r+h]=255&a,h+=d,a/=256,i-=8);for(s=s<0;t[r+h]=255&s,h+=d,s/=256,c-=8);t[r+h-d]|=128*g}},function(t,e,r){"use strict";var n=r(71);t.exports=function(t,e,r){if(null==t)return[];if("function"!=typeof e)throw new TypeError("expected callback to be a function");for(var i=n(e,r),o=t.length,s=t.slice(),a=-1;o--;)i(t[o],a++)||s.splice(o,1);return s}},function(t,e,r){"use strict";function n(t,e){for(var r=t.length,n=-1;++n1&&/^[\[?*]/.test(r.pattern)&&(r.pattern=(n.dot?g:h)+r.pattern),r}function i(t,e){var r=t.split(e),n=""===r[0],i=""===r[r.length-1];return r=r.filter(Boolean),n&&r.unshift(""),i&&r.push(""),r.join(e)}function o(t){return t.replace(/\[\^([^\]]*?)\]/g,function(t,e){return-1===e.indexOf("/")&&(e="\\/"+e),"[^"+e+"]"})}function s(t,e,r){var n=t.split(e);return n.join("").length!==t.split(r).join("").length?(t=n.join("\\"+e),t.split(r).join("\\"+r)):t}function a(t){return t?"(?!"+d+")(?=.)"+p:h+p}function u(t){return t?y:"(?:(?!(?:\\/|^)\\.).)*?"}var c=r(5),l=r(106);t.exports=n;var f="[^/]",p=f+"*?",h="(?!\\.)(?=.)",d="(?:\\/|^)\\.{1,2}($|\\/)",g="(?!"+d+")(?=.)",y="(?:(?!"+d+").)*?"},function(t,e){t.exports=function(){return/([^\\\/]+)$/}},function(t,e,r){"use strict";function n(t,e){var e,r=arguments.length,n=t.length,s=-1,a=[];if(1===r)return t;for(r>2&&(e=i(o.call(arguments,1)));++s1?T:[t];if(O=y(t,A,R),/\{[^{}]+?\}/.test(O))e=n(O,e,m);else if(""!==O){if(m.nodupes&&-1!==e.indexOf(O))continue;e.push(_?w.after(O):O)}}return m.strict?b(e,a):e}function i(t,e,r){"function"==typeof e&&(r=e,e=null);var n,i=e||{},o="__ESC_EXP__",s=0,a=t.split("{,}");if(i.nodupes)return r(a.join(""),i);s=a.length-1,n=r(a.join(o),i);for(var u=n.length,c=[],l=0;u--;){var f=n[l++];if(-1===f.indexOf(o))c.push(f);else if((f=f.split("__ESC_EXP__").join(""))&&!1!==i.nodupes)c.push(f);else{var p=Math.pow(2,s);c.push.apply(c,_(f,p))}}return c}function o(t,e){return"|"===e?"("+t.join(e)+")":","===e?"{"+t.join(e)+"}":"-"===e?"["+t.join(e)+"]":"\\"===e?"\\{"+t+"\\}":void 0}function s(t,e,r){return n(t.split("{}").join("\\{\\}"),e,r)}function a(t){return!!t&&"\\"!==t}function u(t){for(var e=t.split(" "),r=e.length,i=[],o=0;r--;)i.push.apply(i,n(e[o++]));return i}function c(t,e,r){return/\{[^{]+\{/.test(t)?(t=t.split("\\{").join("__LT_BRACE__"),t=t.split("\\}").join("__RT_BRACE__"),m(n(t,e,r),function(t){return t=t.split("__LT_BRACE__").join("{"),t.split("__RT_BRACE__").join("}")})):e.concat(t.split("\\").join(""))}function l(t,e,r){return/[^\\]\..+\\\./.test(t)?(t=t.split("\\.").join("__ESC_DOT__"),m(n(t,e,r),function(t){return t.split("__ESC_DOT__").join(".")})):e.concat(t.split("\\").join(""))}function f(t,e,r){return t=t.split("/.").join("__ESC_PATH__"),m(n(t,e,r),function(t){return t.split("__ESC_PATH__").join("/.")})}function p(t,e,r){return/\w,/.test(t)?(t=t.split("\\,").join("__ESC_COMMA__"),m(n(t,e,r),function(t){return t.split("__ESC_COMMA__").join(",")})):e.concat(t.split("\\").join(""))}function h(){return/\${|( (?=[{,}])|(?=[{,}]) )|{}|{,}|\\,(?=.*[{}])|\/\.(?=.*[{}])|\\\.(?={)|\\{|\\}/}function d(){return/.*(\\?\{([^}]+)\})/}function g(){return/\$\{([^}]+)\}/}function y(t,e,r){var n=t.indexOf(e);return t.substr(0,n)+r+t.substr(n+e.length)}function m(t,e){if(null==t)return[];for(var r=t.length,n=new Array(r),i=-1;++i3?t:1===s?o:("boolean"==typeof r&&!0===r&&(i.makeRe=!0),o.push(i),n.apply(null,o.concat(r)))}},function(t,e,r){"use strict";function n(t,e,r,n,o){if(null==t||null==e)throw new Error("fill-range expects the first and second args to be strings.");"function"==typeof r&&(o=r,n={},r=null),"function"==typeof n&&(o=n,n={}),v(r)&&(n=r,r="");var f,y=!1,b="",x=n||{};void 0===x.silent&&(x.silent=!0),r=r||x.step;var P=t,C=e;if(e="-0"===e.toString()?0:e,(x.optimize||x.makeRe)&&(r=r?r+="~":r,f=!0,y=!0,b="~"),"string"==typeof r){var A=p().exec(r);if(A){var E=A.index,T=A[0];if("+"===T)return S(t,e);if("?"===T)return[w(t,e)];">"===T?(r=r.substr(0,E)+r.substr(E+1),f=!0):"|"===T?(r=r.substr(0,E)+r.substr(E+1),f=!0,y=!0,b=T):"~"===T&&(r=r.substr(0,E)+r.substr(E+1),f=!0,y=!0,b=T)}else if(!_(r)){if(!x.silent)throw new TypeError("fill-range: invalid step.");return null}}if(/[.&*()[\]^%$#@!]/.test(t)||/[.&*()[\]^%$#@!]/.test(e)){if(!x.silent)throw new RangeError("fill-range: invalid range arguments.");return null}if(!h(t)||!h(e)||d(t)||d(e)){if(!x.silent)throw new RangeError("fill-range: invalid range arguments.");return null}var j=_(g(t)),O=_(g(e));if(!j&&O||j&&!O){if(!x.silent)throw new TypeError("fill-range: first range argument is incompatible with second.");return null}var B=j,k=u(r);B?(t=+t,e=+e):(t=t.charCodeAt(0),e=e.charCodeAt(0));var R=t>e;(t<0||e<0)&&(f=!1,y=!1);var M,D,F=m(P,C),$=[],I=0;if(y&&s(t,e,k,B,F,x))return"|"!==b&&"~"!==b||(b=a(t,e,k,B,R)),i([P,C],b,x);for(;R?t>=e:t<=e;)F&&B&&(D=F(t)),M="function"==typeof o?o(t,B,D,I++):B?c(t,D):y&&l(t)?null:String.fromCharCode(t),null!==M&&$.push(M),R?t-=k:t+=k;return!y&&!f||x.noexpand?$:("|"!==b&&"~"!==b||(b=a(t,e,k,B,R)),1===$.length||t<0||e<0?$:i($,b,x))}function i(t,e,r){"~"===e&&(e="-");var n=t.join(e),i=r&&r.regexPrefix;return"|"===e&&(n=i?i+n:n,n="("+n+")"),"-"===e&&(n=i&&"^"===i?i+n:n,n="["+n+"]"),[n]}function o(t,e,r,n,i){return!i&&(n?t<=9&&e<=9:t9||e>9))&&(!i&&1===r&&t>0)||1}function c(t,e){var r=e?e+t:t;return e&&"-"===t.toString().charAt(0)&&(r="-"+e+t.toString().substr(1)),r.toString()}function l(t){var e=f(t);return"\\"===e||"["===e||"]"===e||"^"===e||"("===e||")"===e||"`"===e}function f(t){return String.fromCharCode(t)}function p(){return/\?|>|\||\+|\~/g}function h(t){return/[a-z0-9]/i.test(t)}function d(t){return/[a-z][0-9]|[0-9][a-z]/i.test(t)}function g(t){return/^-*0+$/.test(t.toString())?"0":t}function y(t){return/[^.]\.|^-*0+[0-9]/.test(t)}function m(t,e){if(y(t)||y(e)){var r=b(t),n=b(e),i=r>=n?r:n;return function(t){return x("0",i-b(t))}}return!1}function b(t){return t.toString().length}var v=r(81),_=r(82),w=r(84),x=r(88),S=r(22);t.exports=n},function(t,e,r){"use strict";var n=r(20);t.exports=function(t){return null!=t&&"object"==typeof t&&!1===n(t)}},function(t,e,r){"use strict";var n=r(83);t.exports=function(t){var e=n(t);if("number"!==e&&"string"!==e)return!1;var r=+t;return r-r+1>=0&&""!==t}},function(t,e,r){var n=r(2),i=Object.prototype.toString;t.exports=function(t){if(void 0===t)return"undefined";if(null===t)return"null";if(!0===t||!1===t||t instanceof Boolean)return"boolean";if("string"==typeof t||t instanceof String)return"string";if("number"==typeof t||t instanceof Number)return"number";if("function"==typeof t||t instanceof Function)return"function";if(void 0!==Array.isArray&&Array.isArray(t))return"array";if(t instanceof RegExp)return"regexp";if(t instanceof Date)return"date";var e=i.call(t);return"[object RegExp]"===e?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":n(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"}},function(t,e,r){"use strict";function n(t,e,r){if(void 0===t)throw new Error("randomatic expects a string or number.");var n=!1;1===arguments.length&&("string"==typeof t?e=t.length:i(t)&&(r={},e=t,t="*")),"object"===o(e)&&e.hasOwnProperty("chars")&&(r=e,t=r.chars,e=t.length,n=!0);var a=r||{},u="",c="";for(-1!==t.indexOf("?")&&(u+=a.chars),-1!==t.indexOf("a")&&(u+=s.lower),-1!==t.indexOf("A")&&(u+=s.upper),-1!==t.indexOf("0")&&(u+=s.number),-1!==t.indexOf("!")&&(u+=s.special),-1!==t.indexOf("*")&&(u+=s.all),n&&(u+=t);e--;)c+=u.charAt(parseInt(Math.random()*u.length,10));return c}var i=r(85),o=r(87);t.exports=n;var s={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};s.all=s.lower+s.upper+s.number+s.special},function(t,e,r){"use strict";var n=r(86);t.exports=function(t){var e=n(t);if("string"===e){if(!t.trim())return!1}else if("number"!==e)return!1;return t-t+1>=0}},function(t,e,r){var n=r(2),i=Object.prototype.toString;t.exports=function(t){if(void 0===t)return"undefined";if(null===t)return"null";if(!0===t||!1===t||t instanceof Boolean)return"boolean";if("string"==typeof t||t instanceof String)return"string";if("number"==typeof t||t instanceof Number)return"number";if("function"==typeof t||t instanceof Function)return"function";if(void 0!==Array.isArray&&Array.isArray(t))return"array";if(t instanceof RegExp)return"regexp";if(t instanceof Date)return"date";var e=i.call(t);return"[object RegExp]"===e?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":n(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"}},function(t,e,r){var n=r(2),i=Object.prototype.toString;t.exports=function(t){if(void 0===t)return"undefined";if(null===t)return"null";if(!0===t||!1===t||t instanceof Boolean)return"boolean";if("string"==typeof t||t instanceof String)return"string";if("number"==typeof t||t instanceof Number)return"number";if("function"==typeof t||t instanceof Function)return"function";if(void 0!==Array.isArray&&Array.isArray(t))return"array";if(t instanceof RegExp)return"regexp";if(t instanceof Date)return"date";var e=i.call(t);return"[object RegExp]"===e?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":"[object Promise]"===e?"promise":n(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"}},function(t,e,r){"use strict";function n(t,e){if("string"!=typeof t)throw new TypeError("expected a string");if(1===e)return t;if(2===e)return t+t;var r=t.length*e;if(i!==t||void 0===i)i=t,o="";else if(o.length>=r)return o.substr(0,r);for(;r>o.length&&e>1;)1&e&&(o+=t),e>>=1,t+=t;return o+=t,o=o.substr(0,r)}var i,o="";t.exports=n},function(t,e,r){"use strict";function n(){return Math.random().toString().slice(2,7)}e.before=function(t,e){return t.replace(e,function(t){var e=n();return i[e]=t,"__ID"+e+"__"})},e.after=function(t){return t.replace(/__ID(.{5})__/g,function(t,e){return i[e]})};var i={}},function(t,e,r){"use strict";function n(t){if(!i(t))return t;var e=!1;-1!==t.indexOf("[^")&&(e=!0,t=t.split("[^").join("[")),-1!==t.indexOf("[!")&&(e=!0,t=t.split("[!").join("["));for(var r=t.split("["),n=t.split("]"),s=r.length!==n.length,a=t.split(/(?::\]\[:|\[?\[:|:\]\]?)/),u=a.length,c=0,l="",f="",p=[];u--;){var h=a[c++];"^[!"!==h&&"[!"!==h||(h="",e=!0);var d=e?"^":"",g=o[h];g?p.push("["+d+g+"]"):h&&(/^\[?\w-\w\]?$/.test(h)?c===a.length?p.push("["+d+h):1===c?p.push(d+h+"]"):p.push(d+h):1===c?f+=h:c===a.length?l+=h:p.push("["+d+h+"]"))}var y=p.join("|"),m=p.length||1;return m>1&&(y="(?:"+y+")",m=1),f&&(m++,"["===f.charAt(0)&&(s?f="\\["+f.slice(1):f+="]"),y=f+y),l&&(m++,"]"===l.slice(-1)&&(l=s?l.slice(0,l.length-1)+"\\]":"["+l),y+=l),m>1&&(y=y.split("][").join("]|["),-1===y.indexOf("|")||/\(\?/.test(y)||(y="(?:"+y+")")),y=y.replace(/\[+=|=\]+/g,"\\b")}var i=r(91),o={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E",punct:"-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};t.exports=n,n.makeRe=function(t){try{return new RegExp(n(t))}catch(t){}},n.isMatch=function(t,e){try{return n.makeRe(e).test(t)}catch(t){return!1}},n.match=function(t,e){for(var r=t.length,i=0,o=t.slice(),s=n.makeRe(e);i0&&("/"===r||n&&"\\"===r)}var n="win32"===e.platform;t.exports=function(t){var e=t.length-1;if(e<2)return t;for(;r(t,e);)e--;return t.substr(0,e+1)}}).call(e,r(6))},function(t,e,r){"use strict";var n=r(97),i=r(23);t.exports=function(t,e){if(!n(t))return{};e=[].concat.apply([],[].slice.call(arguments,1));var r,o=e[e.length-1],s={};"function"==typeof o&&(r=e.pop());var a="function"==typeof r;return e.length||a?(i(t,function(n,i){-1===e.indexOf(i)&&(a?r(n,i,t)&&(s[i]=n):s[i]=n)}),s):t}},function(t,e,r){"use strict";t.exports=function(t){return void 0!==t&&null!==t&&("object"==typeof t||"function"==typeof t)}},function(t,e,r){"use strict";t.exports=function(t,e,r){for(var n in t)if(!1===e.call(r,t[n],n,t))break}},function(t,e,r){"use strict";function n(t){return-1!==t.indexOf("/.")||"."===t.charAt(0)&&"/"!==t.charAt(1)}function i(t,e,r){return t&&-1!==e.indexOf(r)}function o(t){var e=/\{([^{}]*?)}|\(([^()]*?)\)|\[([^\[\]]*?)\]/g;return t.replace(e,function(t,e,r,n){var i=e||r||n;return i?t.split(i).join(s(i)):t})}function s(t){return t=t.split("/").join("__SLASH__"),t=t.split(".").join("__DOT__")}function a(t){return t=t.split("__SLASH__").join("/"),t=t.split("__DOT__").join(".")}var u=r(4),c=r(100),l=r(3),f=r(102),p=t.exports.cache={};t.exports=function(t){if(p.hasOwnProperty(t))return p[t];var e={};e.orig=t,e.is={},t=o(t);var r=c(t);e.is.glob=r.isGlob,e.glob=r.glob,e.base=r.base;var s=/([^\/]*)$/.exec(t);e.path={},e.path.dirname="",e.path.basename=s[1]||"",e.path.dirname=t.split(e.path.basename).join("")||"";var h=(e.path.basename||"").split(".")||"";e.path.filename=h[0]||"",e.path.extname=h.slice(1).join(".")||"",e.path.ext="",u(e.path.dirname)&&!e.path.basename&&(/\/$/.test(e.glob)||(e.path.basename=e.glob),e.path.dirname=e.base),-1!==t.indexOf("/")||e.is.globstar||(e.path.dirname="",e.path.basename=e.orig);var d=e.path.basename.indexOf(".");if(-1!==d&&(e.path.filename=e.path.basename.slice(0,d),e.path.extname=e.path.basename.slice(d)),"."===e.path.extname.charAt(0)){var g=e.path.extname.split(".");e.path.ext=g[g.length-1]}e.glob=a(e.glob),e.path.dirname=a(e.path.dirname),e.path.basename=a(e.path.basename),e.path.filename=a(e.path.filename),e.path.extname=a(e.path.extname);var y=t&&e.is.glob;return e.is.negated=t&&"!"===t.charAt(0),e.is.extglob=t&&l(t),e.is.braces=i(y,t,"{"),e.is.brackets=i(y,t,"[:"),e.is.globstar=i(y,t,"**"),e.is.dotfile=f(e.path.basename)||f(e.path.filename),e.is.dotdir=n(e.path.dirname),p[t]=e}},function(t,e,r){"use strict";function n(t){return"/"===t.slice(-1)?t:i.dirname(t)}var i=r(7),o=r(101),s=r(4);t.exports=function(t){if("string"!=typeof t)throw new TypeError("glob-base expects a string.");var e={};return e.base=o(t),e.isGlob=s(t),"."!==e.base?(e.glob=t.substr(e.base.length),"/"===e.glob.charAt(0)&&(e.glob=e.glob.substr(1))):e.glob=t,e.isGlob||(e.base=n(t),e.glob="."!==e.base?t.substr(e.base.length):t),"./"===e.glob.substr(0,2)&&(e.glob=e.glob.substr(2)),"/"===e.glob.charAt(0)&&(e.glob=e.glob.substr(1)),e}},function(t,e,r){"use strict";var n=r(7),i=r(4);t.exports=function(t){t+="a";do{t=n.dirname(t)}while(i(t));return t}},function(t,e){t.exports=function(t){if(46===t.charCodeAt(0)&&-1===t.indexOf("/",1))return!0;var e=t.lastIndexOf("/");return-1!==e&&46===t.charCodeAt(e+1)}},function(t,e,r){"use strict";function n(t,e,r){var n,u,c="_default_";if(!e&&!r)return"function"!=typeof t?t:s[c]||(s[c]=t(e));if("string"==typeof e){if(!r)return s[e]||(s[e]=t(e));c=e}else r=e;return(u=a[c])&&o(u.opts,r)?u.regex:(i(c,r,n=t(e,r)),n)}function i(t,e,r){a[t]={regex:r,opts:e}}var o=r(104),s={},a={};t.exports=n,t.exports.cache=a,t.exports.basic=s},function(t,e,r){"use strict";var n=r(105);t.exports=function(t,e){if(!t&&!e)return!0;if(!t&&e||t&&!e)return!1;var r,i=0,o=0;for(r in e)if(o++,!n(e[r])||!t.hasOwnProperty(r)||t[r]!==e[r])return!1;for(r in t)i++;return i===o}},function(t,e,r){"use strict";t.exports=function(t){return null==t||"function"!=typeof t&&"object"!=typeof t}},function(t,e,r){"use strict";function n(t){return t=t.split("?").join("%~"),t=t.split("*").join("%%")}function i(t){return t=t.split("%~").join("?"),t=t.split("%%").join("*")}var o=r(107),s=r(5),a=t.exports=function t(e,r){if(!(this instanceof t))return new t(e,r);this.options=r||{},this.pattern=e,this.history=[],this.tokens={},this.init(e)};a.prototype.init=function(t){this.orig=t,this.negated=this.isNegated(),this.options.track=this.options.track||!1,this.options.makeRe=!0},a.prototype.track=function(t){this.options.track&&this.history.push({msg:t,pattern:this.pattern})},a.prototype.isNegated=function(){return 33===this.pattern.charCodeAt(0)&&(this.pattern=this.pattern.slice(1),!0)},a.prototype.braces=function(){if(!0!==this.options.nobraces&&!0!==this.options.nobrace){var t=this.pattern.match(/[\{\(\[]/g),e=this.pattern.match(/[\}\)\]]/g);t&&e&&t.length!==e.length&&(this.options.makeRe=!1);var r=s.braces(this.pattern,this.options);this.pattern=r.join("|")}},a.prototype.brackets=function(){!0!==this.options.nobrackets&&(this.pattern=s.brackets(this.pattern))},a.prototype.extglob=function(){!0!==this.options.noextglob&&s.isExtglob(this.pattern)&&(this.pattern=s.extglob(this.pattern,{escape:!0}))},a.prototype.parse=function(t){return this.tokens=s.parseGlob(t||this.pattern,!0),this.tokens},a.prototype._replace=function(t,e,r){this.track('before (find): "'+t+'" (replace with): "'+e+'"'),r&&(e=n(e)),this.pattern=t&&e&&"string"==typeof t?this.pattern.split(t).join(e):this.pattern.replace(t,e),this.track("after")},a.prototype.escape=function(t){this.track("before escape: ");var e=/["\\](['"]?[^"'\\]['"]?)/g;this.pattern=t.replace(e,function(t,e){var r=o.ESC,n=r&&r[e];return n||(/[a-z]/i.test(t)?t.split("\\").join(""):t)}),this.track("after escape: ")},a.prototype.unescape=function(t){var e=/__([A-Z]+)_([A-Z]+)__/g;this.pattern=t.replace(e,function(t,e){return o[e][t]}),this.pattern=i(this.pattern)}},function(t,e,r){"use strict";function n(t,e){return Object.keys(t).reduce(function(r,n){var i=e?e+n:n;return r[t[n]]=i,r},{})}var i,o,s={};s.escapeRegex={"?":/\?/g,"@":/\@/g,"!":/\!/g,"+":/\+/g,"*":/\*/g,"(":/\(/g,")":/\)/g,"[":/\[/g,"]":/\]/g},s.ESC={"?":"__UNESC_QMRK__","@":"__UNESC_AMPE__","!":"__UNESC_EXCL__","+":"__UNESC_PLUS__","*":"__UNESC_STAR__",",":"__UNESC_COMMA__","(":"__UNESC_LTPAREN__",")":"__UNESC_RTPAREN__","[":"__UNESC_LTBRACK__","]":"__UNESC_RTBRACK__"},s.UNESC=i||(i=n(s.ESC,"\\")),s.ESC_TEMP={"?":"__TEMP_QMRK__","@":"__TEMP_AMPE__","!":"__TEMP_EXCL__","*":"__TEMP_STAR__","+":"__TEMP_PLUS__",",":"__TEMP_COMMA__","(":"__TEMP_LTPAREN__",")":"__TEMP_RTPAREN__","[":"__TEMP_LTBRACK__","]":"__TEMP_RTBRACK__"},s.TEMP=o||(o=n(s.ESC_TEMP)),t.exports=s},function(t,e,r){"use strict";var n=r(109);t.exports=function(t,e,r){e=n(e,r);var i=!0;if(null==t)return i;for(var o=t.length,s=0;o--;)if(!e(t[s++],s,t)){i=!1;break}return i}},function(t,e,r){"use strict";function n(t,e){for(var r=t.length,n=-1;++n>>0;return e=null==e?r||0:e<0?Math.max(n+e,0):Math.min(e,n)}t.exports=function(t,e,r){var i=t.length>>>0,o=[];for(e=n(t,e),r=n(t,r,i);e0&&void 0!==arguments[0]?arguments[0]:null;if(!this.opts.childRow||"function"==typeof this.opts.childRow)throw new Error("vue-tables-2: Child row undefined or not a component");var r=e?this.openChildRows.filter(function(t){return e.includes(t)}):this.openChildRows;return r.length?this.$children.filter(function(e){return"ChildRow"===e.$options.name&&r.includes(e.data[t.opts.uniqueKey])}):[]}},function(t,e,r){"use strict";var n=r(1),i=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=function(t,e){if(this.vuex){if(t.split("::").length>1)return;this.commit(t.toUpperCase().replace("-","_"),e)}this.$emit(t,e),i.default.$emit("vue-tables."+t,e),this.name&&i.default.$emit("vue-tables."+this.name+"."+t,e)}},function(t,e,r){"use strict";t.exports=function(t,e){if(e&&e.stopPropagation(),this.openChildRows.includes(t)){var r=this.openChildRows.indexOf(t);this.openChildRows.splice(r,1)}else this.openChildRows.push(t)}},function(t,e,r){"use strict";t.exports=function(t){return this.openChildRows.includes(t)?"VueTables__child-row-toggler--open":"VueTables__child-row-toggler--closed"}},function(t,e,r){"use strict";t.exports=function(t){if("function"==typeof this.opts.requestFunction)return this.opts.requestFunction.call(this,t);if("undefined"!=typeof axios)return axios.get(this.url,{params:t}).catch(function(t){this.dispatch("error",t)}.bind(this));if(void 0!==this.$http)return this.$http.get(this.url,{params:t}).then(function(t){return t.json()}.bind(this),function(t){this.dispatch("error",t)}.bind(this));if("undefined"!=typeof $)return $.getJSON(this.url,t).fail(function(t){this.dispatch("error",t)}.bind(this));throw"vue-tables: No supported ajax library was found. (jQuery, axios or vue-resource). To use a different library you can write your own request function (see the `requestFunction` option)"}},function(t,e,r){"use strict";t.exports=function(t){return"undefined"!=typeof axios?t.data:t}},function(t,e,r){"use strict";t.exports=function(t){var e=this.orderBy.ascending;return this.currentlySorting={column:t,ascending:e},void 0===this.opts.customSorting[t]?this.defaultSort(t,e):this.opts.customSorting[t](e)}},function(t,e,r){"use strict";t.exports=function(){var t={page:1,query:this.query,orderBy:this.orderBy,perPage:this.opts.perPage,customQueries:this.customQueries};return this.storage.setItem(this.stateKey,JSON.stringify(t)),t}},function(t,e,r){"use strict";t.exports=function(t,e){if(this.opts.saveState&&this.activeState){try{var r=JSON.parse(this.storage.getItem(this.stateKey))}catch(t){var r=this.initState()}r[t]=e,this.storage.setItem(this.stateKey,JSON.stringify(r))}}},function(t,e,r){"use strict";t.exports=function(t){var e=this.opts.columnsClasses;return e.hasOwnProperty(t)?e[t]:""}},function(t,e,r){"use strict";t.exports=function(t){return t?(t=t.split("__"),t.shift(),t.join("__")):t}},function(t,e,r){"use strict";t.exports=function(t){if(this.userControlsColumns||(this.userColumnsDisplay=JSON.parse(JSON.stringify(this.allColumns)),this.userControlsColumns=!0),this.userColumnsDisplay.includes(t)){if(1===this.userColumnsDisplay.length)return;var e=this.userColumnsDisplay.indexOf(t);this.userColumnsDisplay.splice(e,1)}else this.userColumnsDisplay.push(t)}},function(t,e,r){"use strict";function n(t,e){var r=[JSON.parse(JSON.stringify(t))];return r=r.concat(e[t.column])}t.exports=function(t){var e=this.orderBy.column,r=this.orderBy.ascending;this.userMultiSorting[e]||(this.userMultiSorting[e]=[]);var i=this.userMultiSorting[e];if(e===t)!i.length||r?this.orderBy.ascending=!this.orderBy.ascending:(this.orderBy=i.shift(),this.userMultiSorting={},this.userMultiSorting[this.orderBy.column]=i);else{var o=i.filter(function(e){return e.column==t})[0];o?o.ascending?o.ascending=!o.ascending:(this.userMultiSorting[e]=i.filter(function(e){return e.column!=t}),this.userMultiSorting[e].length||(this.userMultiSorting={})):i.push({column:t,ascending:!0})}this.time=Date.now(),this.dispatch("sorted",n(this.orderBy,this.userMultiSorting))}},function(t,e,r){"use strict";t.exports=function(t){var e;if(this.opts.filterByColumn)for(var r in t)this.isDateFilter(r)||(e=this.$el.querySelector("[name='vf__"+r+"']"),e?e.value=t[r]:console.error("vue-tables-2: Error in setting filter value. Column '"+r+"' does not exist."));else this.$el.querySelector(".VueTables__search input").value=t}},function(t,e,r){"use strict";t.exports=function(t){var e=Object.keys(this.userMultiSorting);return e.length&&this.orderBy.column!==t?!!this.userMultiSorting[e[0]].filter(function(e){return e.column==t}).length:this.orderBy.column===t}},function(t,e,r){"use strict";t.exports=function(t,e){if(this.$scopedSlots.child_row)return this.$scopedSlots.child_row({row:e});var r=this.opts.childRow;return"function"==typeof r?r.apply(this,[t,e]):t(r,{attrs:{data:e}})}},function(t,e,r){"use strict";t.exports=function(){this.displayColumnsDropdown=!this.displayColumnsDropdown}},function(t,e,r){"use strict";t.exports=function(t){return 1===this.userColumnsDisplay.length&&this.userColumnsDisplay[0]===t}},function(t,e,r){"use strict";t.exports=function(t){this.vuex||(this.setPage(t),this.dispatch("pagination",t))}},function(t,e,r){"use strict";t.exports=function(){this.orderBy.column!=this.opts.groupBy?this.setOrder(this.opts.groupBy,!0):this.setOrder(this.opts.groupBy,!this.orderBy.ascending)}},function(t,e,r){"use strict";t.exports=function(t){return void 0!==this.opts.initFilters[t]?this.opts.initFilters[t]:!(void 0===this.query[t]||!this.query[t].start)&&{start:moment(this.query[t].start,"YYYY-MM-DD HH:mm:ss"),end:moment(this.query[t].end,"YYYY-MM-DD HH:mm:ss")}}},function(t,e,r){"use strict";t.exports=function(t,e,r){var n=this.dateFormat(t);("string"==typeof t?$(this.$el).find("#VueTables__"+t+"-filter"):t).text(e.format(n)+" - "+r.format(n))}},function(t,e,r){"use strict";t.exports=function(t){return!this.opts.descOrderColumns.includes(t)}},function(t,e,r){"use strict";t.exports=function(t){return this.opts.dateFormatPerColumn.hasOwnProperty(t)?this.opts.dateFormatPerColumn[t]:this.opts.dateFormat}},function(t,e,r){"use strict";t.exports={listColumnsObject:r(142),allColumns:r(143),templatesKeys:r(144),opts:r(145),tableData:r(147),storage:r(148),filterableColumns:r(149),hasChildRow:r(150),colspan:r(151),hasGenericFilter:r(152),stateKey:function(){return"vuetables_"+(this.name?this.name:this.id)},Page:function(){return this.page}}},function(t,e,r){"use strict";t.exports=function(){var t=Object.keys(this.opts.listColumns),e={};return t.forEach(function(t){e[t]={},this.opts.listColumns[t].forEach(function(r){e[t][r.id]=r.text})}.bind(this)),e}},function(t,e,r){"use strict";t.exports=function(){var t=this,e=this.columnsDisplay;return e||this.userControlsColumns?this.userControlsColumns?this.columns.filter(function(e){return t.userColumnsDisplay.includes(e)}):this.Columns.filter(function(r){if(!e[r])return!0;var n=e[r],i=n[2],o=(!n[0]||t.windowWidth>=n[0])&&(!n[1]||t.windowWidth0)return!1;if(0===t.length)return!0;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var i=r(159),o=n(i),s=r(160),a=n(s);t.exports=function(t){var e={state:(0,o.default)(t),mutations:(0,a.default)(t)};t.$store.registerModule(t.name,e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e={page:t.opts.initialPage?t.opts.initialPage:1,limit:t.opts.perPage,count:"server"==t.source?0:t.data.length,columns:t.columns,data:"client"==t.source?t.data:[],query:t.initQuery(),customQueries:t.initCustomFilters(),sortBy:!(!t.opts.orderBy||!t.opts.orderBy.column)&&t.opts.orderBy.column,ascending:!t.opts.orderBy||!t.opts.orderBy.hasOwnProperty("ascending")||t.opts.orderBy.ascending};return void 0!==t.$store.state[t.name]?(0,i.default)(!0,t.$store.state[t.name],e):e};var n=r(0),i=function(t){return t&&t.__esModule?t:{default:t}}(n)},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,r,i="server"==t.source?(e={},n(e,t.name+"/SET_DATA",function(e,r){var n=t.opts.responseAdapter.call(t,r);e.data=n.data,e.count=parseInt(n.count)}),n(e,t.name+"/LOADING",function(t,e){}),n(e,t.name+"/LOADED",function(t,e){}),n(e,t.name+"/ERROR",function(t,e){}),e):n({},t.name+"/SET_COUNT",function(t,e){t.count=e});return o.default.recursive(!0,(r={},n(r,t.name+"/PAGINATE",function(e,r){e.page=r,t.updateState("page",r),"server"==t.source&&t.getData(),t.commit("PAGINATION",r)}),n(r,t.name+"/SET_FILTER",function(e,r){e.page=1,t.updateState("page",1),e.query=r,"server"==t.source&&t.getData()}),n(r,t.name+"/PAGINATION",function(t,e){}),n(r,t.name+"/SET_CUSTOM_FILTER",function(e,r){var n=r.filter,i=r.value;e.customQueries[n]=i,e.page=1,t.updateState("page",1),t.updateState("customQueries",e.customQueries),"server"==t.source&&t.getData()}),n(r,t.name+"/SET_STATE",function(t,e){var r=e.page,n=e.query,i=e.customQueries,o=e.limit,s=e.orderBy;t.customQueries=i,t.query=n,t.page=r,t.limit=o,t.ascending=s.ascending,t.sortBy=s.column}),n(r,t.name+"/SET_LIMIT",function(e,r){e.page=1,t.updateState("page",1),e.limit=r,"server"==t.source&&t.getData()}),n(r,t.name+"/SORT",function(e,r){var n=r.column,i=r.ascending;e.ascending=i,e.sortBy=n,"server"==t.source&&t.getData()}),n(r,t.name+"/SORTED",function(t,e){}),n(r,t.name+"/ROW_CLICK",function(t,e){}),n(r,t.name+"/FILTER",function(t,e){}),n(r,t.name+"/LIMIT",function(t,e){}),r),i)};var i=r(0),o=function(t){return t&&t.__esModule?t:{default:t}}(i)},function(t,e,r){"use strict";t.exports=function(){return{framework:"bootstrap3",table:"table table-striped table-bordered table-hover",row:"row",column:"col-md-12",label:"",input:"form-control",select:"form-control",field:"form-group",inline:"form-inline",right:"pull-right",left:"pull-left",center:"text-center",contentCenter:"",small:"",nomargin:"",groupTr:"info",button:"btn btn-secondary",dropdown:{container:"dropdown",trigger:"dropdown-toggle",menu:"dropdown-menu",content:"",item:"",caret:"caret"},pagination:{nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}}}},function(t,e,r){"use strict";t.exports=function(){return{framework:"bootstrap4",table:"table table-striped table-bordered table-hover",row:"row",column:"col-md-12",label:"",input:"form-control",select:"form-control",field:"form-group",inline:"form-inline",right:"float-right",left:"float-left",center:"text-center",contentCenter:"justify-content-center",nomargin:"m-0",groupTr:"table-info",small:"",button:"btn btn-secondary",dropdown:{container:"dropdown",trigger:"dropdown-toggle",menu:"dropdown-menu",content:"",item:"dropdown-item",caret:"caret"},pagination:{nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}}}},function(t,e,r){"use strict";t.exports=function(){return{framework:"bulma",table:"table is-bordered is-striped is-hoverable is-fullwidth",row:"columns",column:"column is-12",label:"label",input:"input",select:"select",field:"field",inline:"is-horizontal",right:"is-pulled-right",left:"is-pulled-left",center:"has-text-centered",contentCenter:"is-centered",icon:"icon",small:"is-small",nomargin:"marginless",button:"button",groupTr:"is-selected",dropdown:{container:"dropdown",trigger:"dropdown-trigger",menu:"dropdown-menu",content:"dropdown-content",item:"dropdown-item",caret:"fa fa-angle-down"},pagination:{nav:"",count:"",wrapper:"pagination",list:"pagination-list",item:"",link:"pagination-link",next:"",prev:"",active:"is-current",disabled:""}}}},function(t,e,r){"use strict";var n=r(0),i=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=function(t,e,n,o){var s="VueTables__search_"+this.id,a="VueTables__dropdown-pagination_"+this.id,u="VueTables__limit_"+this.id,c=r(28).call(this,t),l=this.hasGenericFilter?t("div",{class:"VueTables__search-field"},[t("label",{attrs:{for:s},class:n.label},[this.display("filter")]),e.normalFilter(n,s)]):"",f=c.length>1?t("div",{class:"VueTables__limit-field"},[t("label",{class:n.label,attrs:{for:u}},[this.display("limit")]),e.perPage(c,n.select,u)]):"",p=this.opts.pagination&&this.opts.pagination.dropdown?t("div",{class:"VueTables__pagination-wrapper"},[t("div",{class:n.field+" "+n.inline+" "+n.right+" VueTables__dropdown-pagination",directives:[{name:"show",value:this.totalPages>1}]},[t("label",{attrs:{for:a}},[this.display("page")]),e.dropdownPagination(n.select,a)])]):"",h=this.opts.columnsDropdown?t("div",{class:"VueTables__columns-dropdown-wrapper"},[e.columnsDropdown(n)]):"",d=this.opts.footerHeadings?t("tfoot",null,[t("tr",null,[e.headings(n.right)])]):"",g=l||f||p||h||o.beforeFilter||o.afterFilter||o.beforeLimit||o.afterLimit?t("div",{class:n.row},[t("div",{class:n.column},[t("div",{class:n.field+" "+n.inline+" "+n.left+" VueTables__search"},[o.beforeFilter,l,o.afterFilter]),t("div",{class:n.field+" "+n.inline+" "+n.right+" VueTables__limit"},[o.beforeLimit,f,o.afterLimit]),p,h])]):"";return t("div",{class:"VueTables VueTables--"+this.source},[g,o.beforeTable,t("div",{class:"table-responsive"},[t("table",{class:"VueTables__table "+(this.opts.skin?this.opts.skin:n.table)},[t("thead",null,[t("tr",null,[e.headings(n.right)]),o.beforeFilters,e.columnFilters(n),o.afterFilters]),d,o.beforeBody,t("tbody",null,[o.prependBody,e.rows(n),o.appendBody]),o.afterBody])]),o.afterTable,e.pagination((0,i.default)(n.pagination,{wrapper:n.row+" "+n.column+" "+n.contentCenter,nav:n.center,count:n.center+" "+n.column})),e.dropdownPaginationCount()])}},function(t,e,r){"use strict";var n=r(0),i=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=function(t,e,n,o){var s="VueTables__search_"+this.id,a="VueTables__limit_"+this.id,u=r(28).call(this,t),c=this.hasGenericFilter?t("div",{class:"VueTables__search-field"},[t("label",{attrs:{for:s},class:n.label},[this.display("filter")]),e.normalFilter(n,s)]):"",l=u.length>1?t("div",{class:"VueTables__limit-field"},[t("label",{class:n.label,attrs:{for:a}},[this.display("limit")]),e.perPage(u,n.select,a)]):"",f=this.opts.columnsDropdown?t("div",{class:"VueTables__columns-dropdown-wrapper"},[e.columnsDropdown(n)]):"",p=c||l||f||o.beforeFilter||o.afterFilter||o.beforeLimit||o.afterLimit?t("div",{class:n.row},[t("div",{class:n.column},[t("div",{class:n.field+" "+n.inline+" "+n.left+" VueTables__search"},[o.beforeFilter,c,o.afterFilter]),t("div",{class:n.field+" "+n.inline+" "+n.right+" VueTables__limit"},[o.beforeLimit,l,o.afterLimit]),f])]):"";return t("div",{class:"VueTables VueTables--"+this.source},[p,o.beforeTable,t("div",{class:"table-responsive"},[t("table",{class:"VueTables__table "+(this.opts.skin?this.opts.skin:n.table)},[t("thead",null,[t("tr",null,[e.headings(n.right)]),o.beforeFilters,e.columnFilters(n),o.afterFilters]),t("tfoot",null,[t("tr",null,[t("td",{attrs:{colspan:this.colspan}},[e.pagination((0,i.default)(n.pagination,{list:n.pagination.list+" "+n.right+" "+n.nomargin,count:""+n.left}))])])]),o.beforeBody,t("tbody",null,[o.prependBody,e.rows(n),o.appendBody]),o.afterBody])]),o.afterTable])}},function(t,e,r){"use strict";t.exports=function(t){var e=this;return function(r){var n;if("client"===e.source?(n=e.filteredData,n.length||"client"!==e.source||1===e.page||e.setPage(e.totalPages?e.totalPages:1)):n=e.tableData,0===e.count){var i=e.allColumns.length;return e.hasChildRow&&i++,t("tr",{class:"VueTables__no-results"},[t("td",{class:"text-center",attrs:{colspan:e.colspan}},[e.display(e.loading?"loading":"noResults")])])}var o,s,a,u=[],c=e.opts.uniqueKey,l=(e.Page-1)*e.limit;return n.map(function(n,i){if(e.opts.groupBy&&"client"===e.source&&n[e.opts.groupBy]!==a&&(u.push(t("tr",{class:r.groupTr,on:{click:e._toggleGroupDirection.bind(e)}},[t("td",{attrs:{colspan:e.colspan}},[n[e.opts.groupBy]])])),a=n[e.opts.groupBy]),i=l+i+1,o=[],e.hasChildRow){var f=t("td",null,[t("span",{on:{click:e.toggleChildRow.bind(e,n[c])},class:"VueTables__child-row-toggler "+e.childRowTogglerClass(n[c])},[])]);e.opts.childRowTogglerFirst&&o.push(f)}e.allColumns.map(function(r){var s=e.$scopedSlots&&e.$scopedSlots[r];o.push(t("td",{class:e.columnClass(r)},[s?s({row:n,column:r,index:i}):e.render(n,r,i,t)]))}),e.hasChildRow&&!e.opts.childRowTogglerFirst&&o.push(f),s=e.opts.rowClassCallback?e.opts.rowClassCallback(n):"",u.push(t("tr",{class:s,on:{click:e.rowWasClicked.bind(e,n),dblclick:e.rowWasClicked.bind(e,n)}},[o," "])),u.push(e.hasChildRow&&e.openChildRows.includes(n[c])?t("tr",{class:"VueTables__child-row"},[t("td",{attrs:{colspan:e.colspan}},[e._getChildRowTemplate(t,n)])]):t())}),u}}},function(t,e,r){"use strict";var n=r(8);t.exports=function(t){var e=this;return function(r,i){var o="client"==e.source?e.search.bind(e,e.data):e.serverSearch.bind(e);return t("input",{class:r.input+" "+r.small,attrs:{type:"text",value:e.query,placeholder:e.display("filterPlaceholder"),id:i},on:{keyup:n(o,e.opts.debounce)}},[])}}},function(t,e,r){"use strict";r(8);t.exports=function(t){var e=this;return function(r,n){for(var i,o=[],s=1;s<=e.totalPages;s++){var i=e.page==s;o.push(t("option",{domProps:{value:s,selected:i}},[s]))}return t("select",{class:r+" dropdown-pagination",directives:[{name:"show",value:e.totalPages>1}],attrs:{name:"page",id:n},ref:"page",domProps:{value:e.page},on:{change:e.setPage.bind(e,null,!1)}},[o])}}},function(t,e,r){"use strict";t.exports=function(t){var e=this;return function(){if(e.count>0&&e.opts.pagination.dropdown){var r=parseInt(e.limit),n=(e.Page-1)*r+1,i=e.Page==e.totalPages?e.count:n+r-1,o=e.opts.texts.count.split("|"),s=Math.min(1==e.count?2:1==e.totalPages?1:0,o.length-1),a=o[s].replace("{count}",e.count).replace("{from}",n).replace("{to}",i);return t("div",{class:"VuePagination"},[t("p",{class:"VuePagination__count"},[a])])}return""}}},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(0);!function(t){t&&t.__esModule}(i);t.exports=function(t){var e=this;return function(i){if(!e.opts.filterByColumn||!e.opts.filterable)return"";var o=r(171).call(e,t,i.input),s=r(172).call(e,t),a=r(173).call(e,t,i.select),u=[];return e.hasChildRow&&e.opts.childRowTogglerFirst&&u.push(t("th",null,[])),e.allColumns.map(function(r){var i="";if(e.filterable(r))switch(!0){case e.isTextFilter(r):i=o(r);break;case e.isDateFilter(r):i=s(r);break;case e.isListFilter(r):i=a(r)}void 0!==e.$slots["filter__"+r]&&(i=i?t("div",null,[i,e.$slots["filter__"+r]]):e.$slots["filter__"+r]),u.push(t("th",{class:e.columnClass(r)},[t("div",n({class:"VueTables__column-filter"},"class","VueTables__"+r+"-filter-wrapper"),[i])]))}),e.hasChildRow&&!e.opts.childRowTogglerFirst&&u.push(t("th",null,[])),t("tr",{class:"VueTables__filters-row"},[u])}}},function(t,e,r){"use strict";var n=r(8);t.exports=function(t,e){var r=this,i="client"==this.source?this.search.bind(this,this.data):this.serverSearch.bind(this),o=n(i,this.opts.debounce),s=function(t){13===t.keyCode?(o.clear(),i.apply(void 0,arguments)):o.apply(void 0,arguments)};return function(n){return t("input",{on:{keyup:s},class:e,attrs:{name:"vf__"+n,type:"text",placeholder:r.display("filterBy",{column:r.getHeading(n)}),value:r.query[n]}},[])}}},function(t,e,r){"use strict";t.exports=function(t){var e=this;return function(r){return t("div",{class:"VueTables__date-filter",attrs:{id:"VueTables__"+r+"-filter"}},[t("span",{class:"VueTables__filter-placeholder"},[e.display("filterBy",{column:e.getHeading(r)})])])}}},function(t,e,r){"use strict";t.exports=function(t,e){var r=this;return function(n){var i=[],o=void 0,s="client"==r.source?r.search.bind(r,r.data):r.serverSearch.bind(r);return r.opts.listColumns[n].filter(function(t){return!t.hide}).map(function(e){o=e.id==r.query[n]&&""!==r.query[n],i.push(t("option",{domProps:{value:e.id,selected:o}},[e.text]))}),t("div",{class:"VueTables__list-filter",attrs:{id:"VueTables__"+n+"-filter"}},[t("select",{class:e,on:{change:s},attrs:{name:"vf__"+n},domProps:{value:r.query[n]}},[t("option",{attrs:{value:""}},[r.display("defaultOption",{column:r.opts.headings[n]?r.opts.headings[n]:n})]),i])])}}},function(t,e,r){"use strict";t.exports=function(t){var e=this;return function(r){if(e.opts.pagination&&e.opts.pagination.dropdown)return"";var n={theme:r,chunk:e.opts.pagination.chunk,chunksNavigation:e.opts.pagination.nav,edgeNavigation:e.opts.pagination.edge,texts:{count:e.opts.texts.count,first:e.opts.texts.first,last:e.opts.texts.last}},i=e.vuex?e.name:e.id;return t("pagination",{ref:"pagination",attrs:{options:n,for:i,vuex:e.vuex,records:e.count,"per-page":parseInt(e.limit)},on:{paginate:e._onPagination.bind(e)}},[])}}},function(t,e,r){"use strict";t.exports=function(t){var e=this;return function(n){var i=r(176)(t,n),o=[];return e.hasChildRow&&e.opts.childRowTogglerFirst&&o.push(t("th",null,[])),e.allColumns.map(function(e){o.push(t("th",{on:{click:this.orderByColumn.bind(this,e)},class:this.sortableClass(e)},[t("span",{class:"VueTables__heading",attrs:{title:this.getHeadingTooltip(e,t)}},[this.getHeading(e,t)]),i.call(this,e)]))}.bind(e)),e.hasChildRow&&!e.opts.childRowTogglerFirst&&o.push(t("th",null,[])),o}}},function(t,e,r){"use strict";t.exports=function(t,e){return function(r){return this.sortable(r)?t("span",{class:"VueTables__sort-icon "+e+" "+this.sortableChevronClass(r)},[]):""}}},function(t,e,r){"use strict";t.exports=function(t){var e=this;return function(r,n,i){return r.length>1?t("select",{class:n,attrs:{name:"limit",id:i},domProps:{value:e.limit},on:{change:e.setLimit.bind(e)}},[r]):""}}},function(t,e,r){"use strict";var n=r(179),i=r(180);t.exports=function(t){var e=this;return function(r){var o=e.columns.map(function(n){return i(t,r,t("a",{class:r.dropdown.item,attrs:{href:"#"}},[t("input",{attrs:{type:"checkbox",value:n,disabled:e._onlyColumn(n)},on:{change:e.toggleColumn.bind(e,n)},domProps:{checked:e.allColumns.includes(n)}},[]),e.getHeading(n)]))});return t("div",{class:r.dropdown.container+" "+r.right+" VueTables__columns-dropdown"},[t("button",{attrs:{type:"button"},class:r.button+" "+r.dropdown.trigger,on:{click:e._toggleColumnsDropdown.bind(e)}},[e.display("columns"),t("span",{class:r.icon+" "+r.small},[t("i",{class:r.dropdown.caret},[])])]),n.call(e,t,r,o)])}}},function(t,e,r){"use strict";t.exports=function(t,e,r){return"bulma"===e.framework?t("div",{class:e.dropdown.menu,style:this.displayColumnsDropdown?"display:block":"display:none"},[t("div",{class:e.dropdown.content},[r])]):"bootstrap4"===e.framework?t("div",{class:e.dropdown.menu,style:this.displayColumnsDropdown?"display:block":"display:none"},[r]):t("ul",{class:e.dropdown.menu,style:this.displayColumnsDropdown?"display:block":"display:none"},[r])}},function(t,e,r){"use strict";t.exports=function(t,e,r){return"bulma"===e.framework?r:t("li",null,[r])}},function(t,e,r){"use strict";t.exports=function(){return{beforeFilters:this.$slots.beforeFilters?this.$slots.beforeFilters:"",afterFilters:this.$slots.afterFilters?this.$slots.afterFilters:"",beforeBody:this.$slots.beforeBody?this.$slots.beforeBody:"",prependBody:this.$slots.prependBody?this.$slots.prependBody:"",appendBody:this.$slots.appendBody?this.$slots.appendBody:"",afterBody:this.$slots.afterBody?this.$slots.afterBody:"",beforeFilter:this.$slots.beforeFilter?this.$slots.beforeFilter:"",afterFilter:this.$slots.afterFilter?this.$slots.afterFilter:"",beforeLimit:this.$slots.beforeLimit?this.$slots.beforeLimit:"",afterLimit:this.$slots.afterLimit?this.$slots.afterLimit:"",beforeTable:this.$slots.beforeTable?this.$slots.beforeTable:"",afterTable:this.$slots.afterTable?this.$slots.afterTable:""}}},function(t,e,r){"use strict";t.exports=function(){return this.opts.filterByColumn?JSON.stringify(this.query):this.query}},function(t,e,r){"use strict";t.exports=function(){return JSON.stringify(this.customQueries)}},function(t,e,r){"use strict";var n=(r(30),r(187));t.exports=function(){var t=n(this.tableData),e=this.orderBy.column;t=this.search(t),e?(this.time&&(this.time=this.time),t=this.opts.sortingAlgorithm.call(this,t,e)):this.opts.groupBy&&(t=this.opts.sortingAlgorithm.call(this,t,this.opts.groupBy)),this.vuex?this.count!=t.length&&this.commit("SET_COUNT",t.length):this.count=t.length;var r=(this.page-1)*this.limit;return t=t.splice(r,this.limit),this.applyFilters(t)}},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=function(t){var e=0;for(var r in t){("object"==n(t[r])||t[r]&&(!isNaN(t[r])||t[r].trim()))&&e++}return e}},function(t,e,r){"use strict";t.exports=function(t,e,r){var n;return t.filter(function(t){return n=!0,e.forEach(function(e){var i=r[e.name];i&&!e.callback(t,i)&&(n=!1)}),n})}},function(t,e,r){(function(e){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}function r(n,i,o,s,f){function p(n,o){if(null===n)return null;if(0===o)return n;var y,m;if("object"!=typeof n)return n;if(t(n,u))y=new u;else if(t(n,c))y=new c;else if(t(n,l))y=new l(function(t,e){n.then(function(e){t(p(e,o-1))},function(t){e(p(t,o-1))})});else if(r.__isArray(n))y=[];else if(r.__isRegExp(n))y=new RegExp(n.source,a(n)),n.lastIndex&&(y.lastIndex=n.lastIndex);else if(r.__isDate(n))y=new Date(n.getTime());else{if(g&&e.isBuffer(n))return y=new e(n.length),n.copy(y),y;t(n,Error)?y=Object.create(n):void 0===s?(m=Object.getPrototypeOf(n),y=Object.create(m)):(y=Object.create(s),m=s)}if(i){var b=h.indexOf(n);if(-1!=b)return d[b];h.push(n),d.push(y)}t(n,u)&&n.forEach(function(t,e){var r=p(e,o-1),n=p(t,o-1);y.set(r,n)}),t(n,c)&&n.forEach(function(t){var e=p(t,o-1);y.add(e)});for(var v in n){var _;m&&(_=Object.getOwnPropertyDescriptor(m,v)),_&&null==_.set||(y[v]=p(n[v],o-1))}if(Object.getOwnPropertySymbols)for(var w=Object.getOwnPropertySymbols(n),v=0;v2&&void 0!==arguments[2]?arguments[2]:-1,n=this.defaultSort,i=this.userMultiSorting[this.currentlySorting.column]?this.userMultiSorting[this.currentlySorting.column]:this.opts.multiSorting[this.currentlySorting.column],o=this.currentlySorting.ascending;return function(s,a){var u,c=s[t]||"",l=a[t]||"",f=e?1:-1;if("string"==typeof c&&(c=c.toLowerCase()),"string"==typeof l&&(l=l.toLowerCase()),c===l&&i&&i[r+1]){var p=i[r+1];return u=void 0!==p.ascending?p.ascending:p.matchDir?o:!o,n(p.column,u,r+1)(s,a)}return c>l?f:-f}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var i=r(0),o=n(i),s=r(24),a=n(s),u=r(13),c=n(u),l=r(14),f=n(l),p=r(15),h=n(p),d=r(10),g=r(25),y=r(26),m=r(27);e.install=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bootstrap3",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",u=n?(0,c.default)("server"):(0,f.default)(),l=o.default.recursive(!0,(0,h.default)(),{name:"server-table",components:{Pagination:d.Pagination},render:m.call(this,s,i),props:{columns:{type:Array,required:!0},url:{type:String,required:!0},name:{type:String,required:!1},options:{type:Object,required:!1,default:function(){return{}}}},created:function(){y(this),this.vuex||(this.query=this.initQuery(),this.initOrderBy(),this.customQueries=this.initCustomFilters()),this.loadState(),this.getData(!0).then(function(t){this.setData(t),this.loading=!1,this.hasDateFilters()&&setTimeout(function(){this.initDateFilters()}.bind(this),0)}.bind(this))},mounted:function(){this.vuex||(this.registerServerFilters(),this.options.initialPage&&this.setPage(this.options.initialPage,!0))},data:function(){return o.default.recursive(g(),{source:"server",loading:!0,lastKeyStrokeAt:!1,globalOptions:e},(0,a.default)(n,"server",this.options.initialPage))},methods:{refresh:r(192),getData:r(193),setData:r(194),serverSearch:r(17),registerServerFilters:r(195),loadState:function(){var t=this;if(this.opts.saveState){if(!this.storage.getItem(this.stateKey))return this.initState(),void(this.activeState=!0);var e=JSON.parse(this.storage.getItem(this.stateKey));this.vuex?this.commit("SET_STATE",{query:e.query,customQueries:e.customQueries,page:e.page,limit:e.perPage,orderBy:e.orderBy}):(this.page=e.page,this.query=e.query,this.customQueries=e.customQueries,this.limit=e.perPage,this.orderBy=e.orderBy),this.opts.pagination.dropdown||setTimeout(function(){t.$refs.pagination.Page=e.page},0),this.activeState=!0}}},computed:{totalPages:r(29),filteredQuery:r(196),hasMultiSort:function(){return this.opts.serverMultiSorting}}},u);return t.component("v-server-table",l),l}},function(t,e,r){"use strict";t.exports=function(){this.serverSearch()}},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(0);t.exports=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this.opts.requestKeys,a=(e={},n(e,s.query,this.filteredQuery),n(e,s.limit,this.limit),n(e,s.ascending,this.orderBy.ascending?1:0),n(e,s.page,this.page),n(e,s.byColumn,this.opts.filterByColumn?1:0),e);this.orderBy.hasOwnProperty("column")&&this.orderBy.column&&(a[s.orderBy]=this.orderBy.column),a=i(a,this.opts.params,this.customQueries,r),this.hasMultiSort&&this.orderBy.column&&this.userMultiSorting[this.orderBy.column]&&(a.multiSort=this.userMultiSorting[this.orderBy.column]),a=this.opts.requestAdapter(a),o&&this.dispatch("loading",a);var u=this.sendRequest(a);return t?u:u.then(function(t){return this.setData(t)}.bind(this))}},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=function(t){var e=this.opts.responseAdapter.call(this,t);if(this.data=this.applyFilters(e.data),isNaN(e.count))throw console.error("vue-tables-2: invalid 'count' property. Expected number, got "+n(e.count)),console.error("count equals",e.count),new Error;this.count=parseInt(e.count),setTimeout(function(){this.dispatch("loaded",t)}.bind(this),0)}},function(t,e,r){"use strict";var n=r(1),i=function(t){return t&&t.__esModule?t:{default:t}}(n);t.exports=function(){var t="vue-tables";this.name&&(t+="."+this.name),this.opts.customFilters.forEach(function(e){i.default.$off(t+".filter::"+e),i.default.$on(t+".filter::"+e,function(t){this.customQueries[e]=t,this.updateState("customQueries",this.customQueries),this.refresh()}.bind(this))}.bind(this))}},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=function(){if("object"!==n(this.query))return this.query;var t={};for(var e in this.query)""!==this.query[e]&&(t[e]=this.query[e]);return t}}]); \ No newline at end of file diff --git a/lib/methods/init-date-filters.js b/lib/methods/init-date-filters.js index 7d8fd52d..f70f87ef 100644 --- a/lib/methods/init-date-filters.js +++ b/lib/methods/init-date-filters.js @@ -45,13 +45,13 @@ module.exports = function() { columnOptions = typeof that.opts.datepickerPerColumnOptions[column]!=='undefined'? that.opts.datepickerPerColumnOptions[column]:{}; - columnOptions = merge(columnOptions, { + columnOptions = merge.recursive(columnOptions, { locale: { format: that.dateFormat(column) } }); - el.daterangepicker(merge(datepickerOptions, columnOptions, range)); + el.daterangepicker(merge.recursive(datepickerOptions, columnOptions, range)); el.on('apply.daterangepicker', function(ev, picker) { diff --git a/package.json b/package.json index e8301bc3..6c012e9c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vue-tables-2", "description": "Vue.js 2 grid components", - "version": "1.3.83", + "version": "1.3.90", "keywords": [ "vue2", "vuex",