/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/vue-good-table-draggable-next@0.1.3/dist/vue-good-table-draggable.cjs.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
/*!
  * vue-good-table-draggable-next v0.1.3
  * (c) 2021-present Boris Flesch <boris@singlequote.net>
  * (c) 2017-2021 xaksis <shay@crayonbits.com>
  * @license MIT
  */
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var vue=require("vue");const DEFAULT_SORT_TYPE="asc",SORT_TYPES={Ascending:"asc",Descending:"desc",None:"none"},PAGINATION_MODES={Pages:"pages",Records:"records"},DEFAULT_ROWS_PER_PAGE_DROPDOWN=[10,20,30,40,50];var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},lodash_isequal={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Array]",i="[object Boolean]",l="[object Date]",s="[object Error]",c="[object Function]",u="[object Map]",d="[object Number]",h="[object Object]",g="[object Promise]",p="[object RegExp]",f="[object Set]",m="[object String]",v="[object Symbol]",b="[object WeakMap]",w="[object ArrayBuffer]",y="[object DataView]",E=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[o]=S[a]=S[w]=S[i]=S[y]=S[l]=S[s]=S[c]=S[u]=S[d]=S[h]=S[p]=S[f]=S[m]=S[b]=!1;var x="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,T="object"==typeof self&&self&&self.Object===Object&&self,C=x||T||Function("return this")(),P=t&&!t.nodeType&&t,D=P&&e&&!e.nodeType&&e,k=D&&D.exports===P,O=k&&x.process,I=function(){try{return O&&O.binding&&O.binding("util")}catch(e){}}(),N=I&&I.isTypedArray;function R(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function $(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function M(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var A,F,B,L=Array.prototype,U=Function.prototype,V=Object.prototype,Y=C["__core-js_shared__"],z=U.toString,j=V.hasOwnProperty,W=(A=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",H=V.toString,q=RegExp("^"+z.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=k?C.Buffer:void 0,X=C.Symbol,Q=C.Uint8Array,K=V.propertyIsEnumerable,Z=L.splice,J=X?X.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=G?G.isBuffer:void 0,ne=(F=Object.keys,B=Object,function(e){return F(B(e))}),re=Ie(C,"DataView"),oe=Ie(C,"Map"),ae=Ie(C,"Promise"),ie=Ie(C,"Set"),le=Ie(C,"WeakMap"),se=Ie(Object,"create"),ce=Me(re),ue=Me(oe),de=Me(ae),he=Me(ie),ge=Me(le),pe=X?X.prototype:void 0,fe=pe?pe.valueOf:void 0;function me(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function we(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new be;++t<n;)this.add(e[t])}function ye(e){var t=this.__data__=new ve(e);this.size=t.size}function Ee(e,t){var n=Be(e),r=!n&&Fe(e),o=!n&&!r&&Le(e),a=!n&&!r&&!o&&je(e),i=n||r||o||a,l=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=l.length;for(var c in e)!t&&!j.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||$e(c,s))||l.push(c);return l}function _e(e,t){for(var n=e.length;n--;)if(Ae(e[n][0],t))return n;return-1}function Se(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":J&&J in Object(e)?function(e){var t=j.call(e,J),n=e[J];try{e[J]=void 0;var r=!0}catch(e){}var o=H.call(e);r&&(t?e[J]=n:delete e[J]);return o}(e):function(e){return H.call(e)}(e)}function xe(e){return ze(e)&&Se(e)==o}function Te(e,t,n,r,c){return e===t||(null==e||null==t||!ze(e)&&!ze(t)?e!=e&&t!=t:function(e,t,n,r,c,g){var b=Be(e),E=Be(t),_=b?a:Re(e),S=E?a:Re(t),x=(_=_==o?h:_)==h,T=(S=S==o?h:S)==h,C=_==S;if(C&&Le(e)){if(!Le(t))return!1;b=!0,x=!1}if(C&&!x)return g||(g=new ye),b||je(e)?De(e,t,n,r,c,g):function(e,t,n,r,o,a,c){switch(n){case y:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!a(new Q(e),new Q(t)));case i:case l:case d:return Ae(+e,+t);case s:return e.name==t.name&&e.message==t.message;case p:case m:return e==t+"";case u:var h=$;case f:var g=1&r;if(h||(h=M),e.size!=t.size&&!g)return!1;var b=c.get(e);if(b)return b==t;r|=2,c.set(e,t);var E=De(h(e),h(t),r,o,a,c);return c.delete(e),E;case v:if(fe)return fe.call(e)==fe.call(t)}return!1}(e,t,_,n,r,c,g);if(!(1&n)){var P=x&&j.call(e,"__wrapped__"),D=T&&j.call(t,"__wrapped__");if(P||D){var k=P?e.value():e,O=D?t.value():t;return g||(g=new ye),c(k,O,n,r,g)}}if(!C)return!1;return g||(g=new ye),function(e,t,n,r,o,a){var i=1&n,l=ke(e),s=l.length,c=ke(t),u=c.length;if(s!=u&&!i)return!1;var d=s;for(;d--;){var h=l[d];if(!(i?h in t:j.call(t,h)))return!1}var g=a.get(e);if(g&&a.get(t))return g==t;var p=!0;a.set(e,t),a.set(t,e);var f=i;for(;++d<s;){var m=e[h=l[d]],v=t[h];if(r)var b=i?r(v,m,h,t,e,a):r(m,v,h,e,t,a);if(!(void 0===b?m===v||o(m,v,n,r,a):b)){p=!1;break}f||(f="constructor"==h)}if(p&&!f){var w=e.constructor,y=t.constructor;w==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof y&&y instanceof y||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,r,c,g)}(e,t,n,r,Te,c))}function Ce(e){return!(!Ye(e)||function(e){return!!W&&W in e}(e))&&(Ue(e)?q:E).test(Me(e))}function Pe(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||V,t!==r)return ne(e);var t,n,r,o=[];for(var a in Object(e))j.call(e,a)&&"constructor"!=a&&o.push(a);return o}function De(e,t,n,r,o,a){var i=1&n,l=e.length,s=t.length;if(l!=s&&!(i&&s>l))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var u=-1,d=!0,h=2&n?new we:void 0;for(a.set(e,t),a.set(t,e);++u<l;){var g=e[u],p=t[u];if(r)var f=i?r(p,g,u,t,e,a):r(g,p,u,e,t,a);if(void 0!==f){if(f)continue;d=!1;break}if(h){if(!R(t,(function(e,t){if(i=t,!h.has(i)&&(g===e||o(g,e,n,r,a)))return h.push(t);var i}))){d=!1;break}}else if(g!==p&&!o(g,p,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function ke(e){return function(e,t,n){var r=t(e);return Be(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,We,Ne)}function Oe(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ie(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ce(n)?n:void 0}me.prototype.clear=function(){this.__data__=se?se(null):{},this.size=0},me.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},me.prototype.get=function(e){var t=this.__data__;if(se){var r=t[e];return r===n?void 0:r}return j.call(t,e)?t[e]:void 0},me.prototype.has=function(e){var t=this.__data__;return se?void 0!==t[e]:j.call(t,e)},me.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=se&&void 0===t?n:t,this},ve.prototype.clear=function(){this.__data__=[],this.size=0},ve.prototype.delete=function(e){var t=this.__data__,n=_e(t,e);return!(n<0)&&(n==t.length-1?t.pop():Z.call(t,n,1),--this.size,!0)},ve.prototype.get=function(e){var t=this.__data__,n=_e(t,e);return n<0?void 0:t[n][1]},ve.prototype.has=function(e){return _e(this.__data__,e)>-1},ve.prototype.set=function(e,t){var n=this.__data__,r=_e(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},be.prototype.clear=function(){this.size=0,this.__data__={hash:new me,map:new(oe||ve),string:new me}},be.prototype.delete=function(e){var t=Oe(this,e).delete(e);return this.size-=t?1:0,t},be.prototype.get=function(e){return Oe(this,e).get(e)},be.prototype.has=function(e){return Oe(this,e).has(e)},be.prototype.set=function(e,t){var n=Oe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},we.prototype.add=we.prototype.push=function(e){return this.__data__.set(e,n),this},we.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.clear=function(){this.__data__=new ve,this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ye.prototype.get=function(e){return this.__data__.get(e)},ye.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ve){var r=n.__data__;if(!oe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new be(r)}return n.set(e,t),this.size=n.size,this};var Ne=ee?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}(ee(e),(function(t){return K.call(e,t)})))}:function(){return[]},Re=Se;function $e(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function Me(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ae(e,t){return e===t||e!=e&&t!=t}(re&&Re(new re(new ArrayBuffer(1)))!=y||oe&&Re(new oe)!=u||ae&&Re(ae.resolve())!=g||ie&&Re(new ie)!=f||le&&Re(new le)!=b)&&(Re=function(e){var t=Se(e),n=t==h?e.constructor:void 0,r=n?Me(n):"";if(r)switch(r){case ce:return y;case ue:return u;case de:return g;case he:return f;case ge:return b}return t});var Fe=xe(function(){return arguments}())?xe:function(e){return ze(e)&&j.call(e,"callee")&&!K.call(e,"callee")},Be=Array.isArray;var Le=te||function(){return!1};function Ue(e){if(!Ye(e))return!1;var t=Se(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ve(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ye(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ze(e){return null!=e&&"object"==typeof e}var je=N?function(e){return function(t){return e(t)}}(N):function(e){return ze(e)&&Ve(e.length)&&!!S[Se(e)]};function We(e){return null!=(t=e)&&Ve(t.length)&&!Ue(t)?Ee(e):Pe(e);var t}e.exports=function(e,t){return Te(e,t)}}(lodash_isequal,lodash_isequal.exports);var isEqual=lodash_isequal.exports;let diacritics={a:["a","à","á","â","ã","ä","å","æ","ā","ă","ą","ǎ","ǟ","ǡ","ǻ","ȁ","ȃ","ȧ","ɐ","ɑ","ɒ","ͣ","а","ӑ","ӓ","ᵃ","ᵄ","ᶏ","ḁ","ẚ","ạ","ả","ấ","ầ","ẩ","ẫ","ậ","ắ","ằ","ẳ","ẵ","ặ","ₐ","ⱥ","ａ"],b:["b","ƀ","ƃ","ɓ","ᖯ","ᵇ","ᵬ","ᶀ","ḃ","ḅ","ḇ","ｂ"],c:["c","ç","ć","ĉ","ċ","č","ƈ","ȼ","ɕ","ͨ","ᴄ","ᶜ","ḉ","ↄ","ｃ"],d:["d","ď","đ","Ƌ","ƌ","ȡ","ɖ","ɗ","ͩ","ᵈ","ᵭ","ᶁ","ᶑ","ḋ","ḍ","ḏ","ḑ","ḓ","ｄ"],e:["e","è","é","ê","ë","ē","ĕ","ė","ę","ě","ǝ","ȅ","ȇ","ȩ","ɇ","ɘ","ͤ","ᵉ","ᶒ","ḕ","ḗ","ḙ","ḛ","ḝ","ẹ","ẻ","ẽ","ế","ề","ể","ễ","ệ","ₑ","ｅ"],f:["f","ƒ","ᵮ","ᶂ","ᶠ","ḟ","ｆ"],g:["g","ĝ","ğ","ġ","ģ","ǥ","ǧ","ǵ","ɠ","ɡ","ᵍ","ᵷ","ᵹ","ᶃ","ᶢ","ḡ","ｇ"],h:["h","ĥ","ħ","ƕ","ȟ","ɥ","ɦ","ʮ","ʯ","ʰ","ʱ","ͪ","Һ","һ","ᑋ","ᶣ","ḣ","ḥ","ḧ","ḩ","ḫ","ⱨ","ｈ"],i:["i","ì","í","î","ï","ĩ","ī","ĭ","į","ǐ","ȉ","ȋ","ɨ","ͥ","ᴉ","ᵎ","ᵢ","ᶖ","ᶤ","ḭ","ḯ","ỉ","ị","ｉ"],j:["j","ĵ","ǰ","ɉ","ʝ","ʲ","ᶡ","ᶨ","ｊ"],k:["k","ķ","ƙ","ǩ","ʞ","ᵏ","ᶄ","ḱ","ḳ","ḵ","ⱪ","ｋ"],l:["l","ĺ","ļ","ľ","ŀ","ł","ƚ","ȴ","ɫ","ɬ","ɭ","ˡ","ᶅ","ᶩ","ᶪ","ḷ","ḹ","ḻ","ḽ","ℓ","ⱡ"],m:["m","ɯ","ɰ","ɱ","ͫ","ᴟ","ᵐ","ᵚ","ᵯ","ᶆ","ᶬ","ᶭ","ḿ","ṁ","ṃ","㎡","㎥","ｍ"],n:["n","ñ","ń","ņ","ň","ŉ","ƞ","ǹ","ȵ","ɲ","ɳ","ᵰ","ᶇ","ᶮ","ᶯ","ṅ","ṇ","ṉ","ṋ","ⁿ","ｎ"],o:["o","ò","ó","ô","õ","ö","ø","ō","ŏ","ő","ơ","ǒ","ǫ","ǭ","ǿ","ȍ","ȏ","ȫ","ȭ","ȯ","ȱ","ɵ","ͦ","о","ӧ","ө","ᴏ","ᴑ","ᴓ","ᴼ","ᵒ","ᶱ","ṍ","ṏ","ṑ","ṓ","ọ","ỏ","ố","ồ","ổ","ỗ","ộ","ớ","ờ","ở","ỡ","ợ","ₒ","ｏ","𐐬"],p:["p","ᵖ","ᵱ","ᵽ","ᶈ","ṕ","ṗ","ｐ"],q:["q","ɋ","ʠ","ᛩ","ｑ"],r:["r","ŕ","ŗ","ř","ȑ","ȓ","ɍ","ɹ","ɻ","ʳ","ʴ","ʵ","ͬ","ᵣ","ᵲ","ᶉ","ṙ","ṛ","ṝ","ṟ"],s:["s","ś","ŝ","ş","š","ș","ʂ","ᔆ","ᶊ","ṡ","ṣ","ṥ","ṧ","ṩ","ｓ"],t:["t","ţ","ť","ŧ","ƫ","ƭ","ț","ʇ","ͭ","ᵀ","ᵗ","ᵵ","ᶵ","ṫ","ṭ","ṯ","ṱ","ẗ","ｔ"],u:["u","ù","ú","û","ü","ũ","ū","ŭ","ů","ű","ų","ư","ǔ","ǖ","ǘ","ǚ","ǜ","ȕ","ȗ","ͧ","ߎ","ᵘ","ᵤ","ṳ","ṵ","ṷ","ṹ","ṻ","ụ","ủ","ứ","ừ","ử","ữ","ự","ｕ"],v:["v","ʋ","ͮ","ᵛ","ᵥ","ᶹ","ṽ","ṿ","ⱱ","ｖ","ⱴ"],w:["w","ŵ","ʷ","ᵂ","ẁ","ẃ","ẅ","ẇ","ẉ","ẘ","ⱳ","ｗ"],x:["x","̽","͓","ᶍ","ͯ","ẋ","ẍ","ₓ","ｘ"],y:["y","ý","ÿ","ŷ","ȳ","ɏ","ʸ","ẏ","ỳ","ỵ","ỷ","ỹ","ｙ"],z:["z","ź","ż","ž","ƶ","ȥ","ɀ","ʐ","ʑ","ᙆ","ᙇ","ᶻ","ᶼ","ᶽ","ẑ","ẓ","ẕ","ⱬ","ｚ"]};const compiledDiactitics=function(){let e={};for(let t in diacritics){let n=diacritics[t];for(let r in n){let o=n[r];o!==t&&(e[o]=t)}}return e}(),regexNonASCII=/[^a-z0-9\s,.-]/,diacriticless=e=>{if(-1===e.search(regexNonASCII))return e;let t="",n=e.length;for(var r=0;r<n;r++){let n=e.charAt(r);t+=n in compiledDiactitics?compiledDiactitics[n]:n}return t},escapeRegExp=e=>e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");var defaultType={format:e=>e,filterPredicate(e,t,n=!1,r=!1){if(null==e)return!1;const o=n?String(e).toLowerCase():diacriticless(escapeRegExp(String(e)).toLowerCase()),a=n?t.toLowerCase():diacriticless(escapeRegExp(t).toLowerCase());return r?o===a:o.indexOf(a)>-1},compare(e,t){function n(e){return null==e?"":diacriticless(String(e).toLowerCase())}return(e=n(e))<(t=n(t))?-1:e>t?1:0}},_export_sfc=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n};const _sfc_main$6={name:"VgtPaginationPageInfo",props:{currentPage:{default:1},lastPage:{default:1},totalRecords:{default:0},ofText:{default:"of",type:String},pageText:{default:"page",type:String},currentPerPage:{},mode:{default:PAGINATION_MODES.Records},infoFn:{default:null}},data(){return{id:this.getId()}},computed:{pageInfo(){return`${this.ofText} ${this.lastPage}`},firstRecordOnPage(){return(this.currentPage-1)*this.currentPerPage+1},lastRecordOnPage(){return Math.min(this.totalRecords,this.currentPage*this.currentPerPage)},recordInfo(){let e=this.firstRecordOnPage;const t=this.lastRecordOnPage;return 0===t&&(e=0),`${e} - ${t} ${this.ofText} ${this.totalRecords}`},infoParams(){let e=this.firstRecordOnPage;const t=this.lastRecordOnPage;return 0===t&&(e=0),{firstRecordOnPage:e,lastRecordOnPage:t,totalRecords:this.totalRecords,currentPage:this.currentPage,totalPages:this.lastPage}}},methods:{getId:()=>`vgt-page-input-${Math.floor(Math.random()*Date.now())}`,changePage(e){const t=parseInt(e.target.value,10);
//! invalid number
if(Number.isNaN(t)||t>this.lastPage||t<1)return e.target.value=this.currentPage,!1;e.target.value=t,this.$emit("page-changed",t)}},mounted(){},components:{}},_hoisted_1$6={class:"footer__navigation__page-info"},_hoisted_2$6={key:0},_hoisted_3$6=["for"],_hoisted_4$6=["id","value"],_hoisted_5$6=vue.createElementVNode("span",{id:"change-page-hint",style:{display:"none"}}," Type a page number and press Enter to change the page. ",-1),_hoisted_6$6={key:2};function _sfc_render$6(e,t,n,r,o,a){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$6,[n.infoFn?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$6,vue.toDisplayString(n.infoFn(a.infoParams)),1)):"pages"===n.mode?(vue.openBlock(),vue.createElementBlock("form",{key:1,onSubmit:t[1]||(t[1]=vue.withModifiers((()=>{}),["prevent"]))},[vue.createElementVNode("label",{for:o.id,class:"page-info__label"},[vue.createElementVNode("span",null,vue.toDisplayString(n.pageText),1),vue.createElementVNode("input",{id:o.id,"aria-describedby":"change-page-hint","aria-controls":"vgb-table",class:"footer__navigation__page-info__current-entry",type:"text",onKeyup:t[0]||(t[0]=vue.withKeys(vue.withModifiers(((...e)=>a.changePage&&a.changePage(...e)),["stop"]),["enter"])),value:n.currentPage},null,40,_hoisted_4$6),vue.createElementVNode("span",null,vue.toDisplayString(a.pageInfo),1)],8,_hoisted_3$6),_hoisted_5$6],32)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$6,vue.toDisplayString(a.recordInfo),1))])}var VgtPaginationPageInfo=_export_sfc(_sfc_main$6,[["render",_sfc_render$6]]);const _sfc_main$5={name:"VgtPagination",props:{styleClass:{default:"table table-bordered"},total:{default:null},perPage:{},rtl:{default:!1},perPageDropdownEnabled:{default:!0},customRowsPerPageDropdown:{default:()=>[]},paginateDropdownAllowAll:{default:!0},mode:{default:PAGINATION_MODES.Records},nextText:{default:"Next"},prevText:{default:"Prev"},rowsPerPageText:{default:"Rows per page:"},ofText:{default:"of"},pageText:{default:"page"},allText:{default:"All"},infoFn:{default:null}},data(){return{id:this.getId(),currentPage:1,prevPage:0,currentPerPage:10,rowsPerPageOptions:[]}},watch:{perPage:{handler(e,t){this.handlePerPage(),this.perPageChanged(t)},immediate:!0},customRowsPerPageDropdown:{handler(){this.handlePerPage()},deep:!0},total:{handler(e,t){-1===this.rowsPerPageOptions.indexOf(this.currentPerPage)&&(this.currentPerPage=e)}}},computed:{pagesCount(){const e=Math.floor(this.total/this.currentPerPage);return 0===this.total%this.currentPerPage?e:e+1},nextIsPossible(){return this.currentPage<this.pagesCount},prevIsPossible(){return this.currentPage>1}},methods:{getId:()=>`vgt-select-rpp-${Math.floor(Math.random()*Date.now())}`,changePage(e,t=!0){e>0&&this.total>this.currentPerPage*(e-1)&&(this.prevPage=this.currentPage,this.currentPage=e,this.pageChanged(t))},nextPage(){this.nextIsPossible&&(this.prevPage=this.currentPage,++this.currentPage,this.pageChanged())},previousPage(){this.prevIsPossible&&(this.prevPage=this.currentPage,--this.currentPage,this.pageChanged())},pageChanged(e=!0){const t={currentPage:this.currentPage,prevPage:this.prevPage};e||(t.noEmit=!0),this.$emit("page-changed",t)},perPageChanged(e){e&&this.$emit("per-page-changed",{currentPerPage:this.currentPerPage}),this.changePage(1,!1)},handlePerPage(){if(null!==this.customRowsPerPageDropdown&&Array.isArray(this.customRowsPerPageDropdown)&&0!==this.customRowsPerPageDropdown.length?this.rowsPerPageOptions=JSON.parse(JSON.stringify(this.customRowsPerPageDropdown)):this.rowsPerPageOptions=JSON.parse(JSON.stringify(DEFAULT_ROWS_PER_PAGE_DROPDOWN)),this.perPage){this.currentPerPage=this.perPage;let e=!1;for(let t=0;t<this.rowsPerPageOptions.length;t++)this.rowsPerPageOptions[t]===this.perPage&&(e=!0);e||-1===this.perPage||this.rowsPerPageOptions.unshift(this.perPage)}else this.currentPerPage=10}},mounted(){},components:{"pagination-page-info":VgtPaginationPageInfo}},_hoisted_1$5={class:"vgt-wrap__footer vgt-clearfix"},_hoisted_2$5={key:0,class:"footer__row-count vgt-pull-left"},_hoisted_3$5=["for"],_hoisted_4$5=["id"],_hoisted_5$5=["value"],_hoisted_6$5=["value"],_hoisted_7$5={class:"footer__navigation vgt-pull-right"};function _sfc_render$5(e,t,n,r,o,a){const i=vue.resolveComponent("pagination-page-info");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$5,[n.perPageDropdownEnabled?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$5,[vue.createElementVNode("form",null,[vue.createElementVNode("label",{for:o.id,class:"footer__row-count__label"},vue.toDisplayString(n.rowsPerPageText)+":",9,_hoisted_3$5),vue.withDirectives(vue.createElementVNode("select",{id:o.id,autocomplete:"off",name:"perPageSelect",class:"footer__row-count__select","onUpdate:modelValue":t[0]||(t[0]=e=>o.currentPerPage=e),onChange:t[1]||(t[1]=(...e)=>a.perPageChanged&&a.perPageChanged(...e)),"aria-controls":"vgt-table"},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.rowsPerPageOptions,((e,t)=>(vue.openBlock(),vue.createElementBlock("option",{key:t,value:e},vue.toDisplayString(e),9,_hoisted_5$5)))),128)),n.paginateDropdownAllowAll?(vue.openBlock(),vue.createElementBlock("option",{key:0,value:n.total},vue.toDisplayString(n.allText),9,_hoisted_6$5)):vue.createCommentVNode("v-if",!0)],40,_hoisted_4$5),[[vue.vModelSelect,o.currentPerPage]])])])):vue.createCommentVNode("v-if",!0),vue.createElementVNode("div",_hoisted_7$5,[vue.createVNode(i,{onPageChanged:a.changePage,"total-records":n.total,"last-page":a.pagesCount,"current-page":o.currentPage,"current-per-page":o.currentPerPage,"of-text":n.ofText,"page-text":n.pageText,"info-fn":n.infoFn,mode:n.mode},null,8,["onPageChanged","total-records","last-page","current-page","current-per-page","of-text","page-text","info-fn","mode"]),vue.createElementVNode("button",{type:"button","aria-controls":"vgt-table",class:vue.normalizeClass(["footer__navigation__page-btn",{disabled:!a.prevIsPossible}]),onClick:t[2]||(t[2]=vue.withModifiers(((...e)=>a.previousPage&&a.previousPage(...e)),["prevent","stop"]))},[vue.createElementVNode("span",{"aria-hidden":"true",class:vue.normalizeClass(["chevron",{left:!n.rtl,right:n.rtl}])},null,2),vue.createElementVNode("span",null,vue.toDisplayString(n.prevText),1)],2),vue.createElementVNode("button",{type:"button","aria-controls":"vgt-table",class:vue.normalizeClass(["footer__navigation__page-btn",{disabled:!a.nextIsPossible}]),onClick:t[3]||(t[3]=vue.withModifiers(((...e)=>a.nextPage&&a.nextPage(...e)),["prevent","stop"]))},[vue.createElementVNode("span",null,vue.toDisplayString(n.nextText),1),vue.createElementVNode("span",{"aria-hidden":"true",class:vue.normalizeClass(["chevron",{right:!n.rtl,left:n.rtl}])},null,2)],2)])])}var VgtPagination=_export_sfc(_sfc_main$5,[["render",_sfc_render$5]]);const _sfc_main$4={name:"VgtGlobalSearch",props:["value","searchEnabled","globalSearchPlaceholder"],emits:["input","keyup","enter"],data(){return{globalSearchTerm:null,id:this.getId()}},computed:{showControlBar(){return!!this.searchEnabled||!(!this.$slots||!this.$slots["internal-table-actions"])}},methods:{updateValue(e){this.$emit("input",e),this.$emit("keyup",e)},entered(e){this.$emit("enter",e)},getId:()=>`vgt-search-${Math.floor(Math.random()*Date.now())}`}},_hoisted_1$4={key:0,class:"vgt-global-search vgt-clearfix"},_hoisted_2$4={class:"vgt-global-search__input vgt-pull-left"},_hoisted_3$4=["for"],_hoisted_4$4=vue.createElementVNode("span",{"aria-hidden":"true",class:"input__icon"},[vue.createElementVNode("div",{class:"magnifying-glass"})],-1),_hoisted_5$4=vue.createElementVNode("span",{class:"sr-only"},"Search",-1),_hoisted_6$4=[_hoisted_4$4,_hoisted_5$4],_hoisted_7$4=["id","placeholder","value"],_hoisted_8$3={class:"vgt-global-search__actions vgt-pull-right"};function _sfc_render$4(e,t,n,r,o,a){return a.showControlBar?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$4,[vue.createElementVNode("div",_hoisted_2$4,[n.searchEnabled?(vue.openBlock(),vue.createElementBlock("form",{key:0,onSubmit:t[2]||(t[2]=vue.withModifiers((()=>{}),["prevent"])),role:"search"},[vue.createElementVNode("label",{for:o.id},_hoisted_6$4,8,_hoisted_3$4),vue.createElementVNode("input",{id:o.id,type:"text",class:"vgt-input vgt-pull-left",placeholder:n.globalSearchPlaceholder,value:n.value,onInput:t[0]||(t[0]=e=>a.updateValue(e.target.value)),onKeyup:t[1]||(t[1]=vue.withKeys((e=>a.entered(e.target.value)),["enter"]))},null,40,_hoisted_7$4)],32)):vue.createCommentVNode("v-if",!0)]),vue.createElementVNode("div",_hoisted_8$3,[vue.renderSlot(e.$slots,"internal-table-actions")])])):vue.createCommentVNode("v-if",!0)}var VgtGlobalSearch=_export_sfc(_sfc_main$4,[["render",_sfc_render$4]]);
/*!
  * vue-draggable-next v2.2.0
  * (c) 2023 Anish George
  * @license MIT
  */
/**!
 * Sortable 1.14.0
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _extends(){return _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var version="1.14.0";function userAgent(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Edge=userAgent(/Edge/i),FireFox=userAgent(/firefox/i),Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i),IOS=userAgent(/iP(ad|od|hone)/i),ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i),captureMode={capture:!1,passive:!1};function on(e,t,n){e.addEventListener(t,n,!IE11OrLess&&captureMode)}function off(e,t,n){e.removeEventListener(t,n,!IE11OrLess&&captureMode)}function matches(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function getParentOrHost(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function closest(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&matches(e,t):matches(e,t))||r&&e===n)return e;if(e===n)break}while(e=getParentOrHost(e))}return null}var _throttleTimeout,R_SPACE=/\s+/g;function toggleClass(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(R_SPACE," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(R_SPACE," ")}}function css(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function matrix(e,t){var n="";if("string"==typeof e)n=e;else do{var r=css(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function find(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,a=r.length;if(n)for(;o<a;o++)n(r[o],o);return r}return[]}function getWindowScrollingElement(){var e=document.scrollingElement;return e||document.documentElement}function getRect(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var a,i,l,s,c,u,d;if(e!==window&&e.parentNode&&e!==getWindowScrollingElement()?(i=(a=e.getBoundingClientRect()).top,l=a.left,s=a.bottom,c=a.right,u=a.height,d=a.width):(i=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!IE11OrLess))do{if(o&&o.getBoundingClientRect&&("none"!==css(o,"transform")||n&&"static"!==css(o,"position"))){var h=o.getBoundingClientRect();i-=h.top+parseInt(css(o,"border-top-width")),l-=h.left+parseInt(css(o,"border-left-width")),s=i+a.height,c=l+a.width;break}}while(o=o.parentNode);if(r&&e!==window){var g=matrix(o||e),p=g&&g.a,f=g&&g.d;g&&(s=(i/=f)+(u/=f),c=(l/=p)+(d/=p))}return{top:i,left:l,bottom:s,right:c,width:d,height:u}}}function isScrolledPast(e,t,n){for(var r=getParentAutoScrollElement(e,!0),o=getRect(e)[t];r;){var a=getRect(r)[n];if(!("top"===n||"left"===n?o>=a:o<=a))return r;if(r===getWindowScrollingElement())break;r=getParentAutoScrollElement(r,!1)}return!1}function getChild(e,t,n,r){for(var o=0,a=0,i=e.children;a<i.length;){if("none"!==i[a].style.display&&i[a]!==Sortable.ghost&&(r||i[a]!==Sortable.dragged)&&closest(i[a],n.draggable,e,!1)){if(o===t)return i[a];o++}a++}return null}function lastChild(e,t){for(var n=e.lastElementChild;n&&(n===Sortable.ghost||"none"===css(n,"display")||t&&!matches(n,t));)n=n.previousElementSibling;return n||null}function index$2(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Sortable.clone||t&&!matches(e,t)||n++;return n}function getRelativeScrollOffset(e){var t=0,n=0,r=getWindowScrollingElement();if(e)do{var o=matrix(e),a=o.a,i=o.d;t+=e.scrollLeft*a,n+=e.scrollTop*i}while(e!==r&&(e=e.parentNode));return[t,n]}function indexOfObject(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}function getParentAutoScrollElement(e,t){if(!e||!e.getBoundingClientRect)return getWindowScrollingElement();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=css(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return getWindowScrollingElement();if(r||t)return n;r=!0}}}while(n=n.parentNode);return getWindowScrollingElement()}function extend(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function isRectEqual(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function throttle(e,t){return function(){if(!_throttleTimeout){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),_throttleTimeout=setTimeout((function(){_throttleTimeout=void 0}),t)}}}function cancelThrottle(){clearTimeout(_throttleTimeout),_throttleTimeout=void 0}function scrollBy(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function clone(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var expando="Sortable"+(new Date).getTime();function AnimationStateManager(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==css(e,"display")&&e!==Sortable.ghost){t.push({target:e,rect:getRect(e)});var n=_objectSpread2({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=matrix(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(indexOfObject(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var o=!1,a=0;t.forEach((function(e){var t=0,n=e.target,i=n.fromRect,l=getRect(n),s=n.prevFromRect,c=n.prevToRect,u=e.rect,d=matrix(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&isRectEqual(s,l)&&!isRectEqual(i,l)&&(u.top-l.top)/(u.left-l.left)==(i.top-l.top)/(i.left-l.left)&&(t=calculateRealTime(u,s,c,r.options)),isRectEqual(l,i)||(n.prevFromRect=i,n.prevToRect=l,t||(t=r.options.animation),r.animate(n,u,l,t)),t&&(o=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),o?e=setTimeout((function(){"function"==typeof n&&n()}),a):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){css(e,"transition",""),css(e,"transform","");var o=matrix(this.el),a=o&&o.a,i=o&&o.d,l=(t.left-n.left)/(a||1),s=(t.top-n.top)/(i||1);e.animatingX=!!l,e.animatingY=!!s,css(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=repaint(e),css(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),css(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){css(e,"transition",""),css(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}function repaint(e){return e.offsetWidth}function calculateRealTime(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var plugins=[],defaults={initializeByDefault:!0},PluginManager={mount:function(e){for(var t in defaults)defaults.hasOwnProperty(t)&&!(t in e)&&(e[t]=defaults[t]);plugins.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),plugins.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";plugins.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][o]&&t[r.pluginName][o](_objectSpread2({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](_objectSpread2({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var o in plugins.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[o]=a,_extends(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var a=this.modifyOption(e,o,e.options[o]);void 0!==a&&(e.options[o]=a)}},getEventProperties:function(e,t){var n={};return plugins.forEach((function(r){"function"==typeof r.eventProperties&&_extends(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return plugins.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};function dispatchEvent(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,a=e.cloneEl,i=e.toEl,l=e.fromEl,s=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,h=e.originalEvent,g=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[expando]){var f,m=t.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||IE11OrLess||Edge?(f=document.createEvent("Event")).initEvent(r,!0,!0):f=new CustomEvent(r,{bubbles:!0,cancelable:!0}),f.to=i||n,f.from=l||n,f.item=o||n,f.clone=a,f.oldIndex=s,f.newIndex=c,f.oldDraggableIndex=u,f.newDraggableIndex=d,f.originalEvent=h,f.pullMode=g?g.lastPutMode:void 0;var b=_objectSpread2(_objectSpread2({},p),PluginManager.getEventProperties(r,t));for(var w in b)f[w]=b[w];n&&n.dispatchEvent(f),m[v]&&m[v].call(t,f)}}var _excluded=["evt"],pluginEvent=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=_objectWithoutProperties(n,_excluded);PluginManager.pluginEvent.bind(Sortable)(e,t,_objectSpread2({dragEl:dragEl,parentEl:parentEl,ghostEl:ghostEl,rootEl:rootEl,nextEl:nextEl,lastDownEl:lastDownEl,cloneEl:cloneEl,cloneHidden:cloneHidden,dragStarted:moved,putSortable:putSortable,activeSortable:Sortable.active,originalEvent:r,oldIndex:oldIndex,oldDraggableIndex:oldDraggableIndex,newIndex:newIndex,newDraggableIndex:newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function(){cloneHidden=!0},cloneNowShown:function(){cloneHidden=!1},dispatchSortableEvent:function(e){_dispatchEvent({sortable:t,name:e,originalEvent:r})}},o))};function _dispatchEvent(e){dispatchEvent(_objectSpread2({putSortable:putSortable,cloneEl:cloneEl,targetEl:dragEl,rootEl:rootEl,oldIndex:oldIndex,oldDraggableIndex:oldDraggableIndex,newIndex:newIndex,newDraggableIndex:newDraggableIndex},e))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,targetMoveDistance,ghostRelativeParent,awaitingDragStarted=!1,ignoreNextClick=!1,sortables=[],pastFirstInvertThresh=!1,isCircumstantialInvert=!1,ghostRelativeParentInitialScroll=[],_silent=!1,savedInputChecked=[],documentExists="undefined"!=typeof document,PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(documentExists){if(IE11OrLess)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),_detectDirection=function(e,t){var n=css(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=getChild(e,0,t),a=getChild(e,1,t),i=o&&css(o),l=a&&css(a),s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+getRect(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+getRect(a).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&i.float&&"none"!==i.float){var u="left"===i.float?"left":"right";return!a||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return o&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||s>=r&&"none"===n[CSSFloatProperty]||a&&"none"===n[CSSFloatProperty]&&s+c>r)?"vertical":"horizontal"},_dragElInRowColumn=function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,a=n?e.width:e.height,i=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return r===i||o===l||r+a/2===i+s/2},_detectNearestEmptySortable=function(e,t){var n;return sortables.some((function(r){var o=r[expando].options.emptyInsertThreshold;if(o&&!lastChild(r)){var a=getRect(r),i=e>=a.left-o&&e<=a.right+o,l=t>=a.top-o&&t<=a.bottom+o;return i&&l?n=r:void 0}})),n},_prepareGroup=function(e){function t(e,n){return function(r,o,a,i){var l=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,a,i),n)(r,o,a,i);var s=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},r=e.group;r&&"object"==_typeof(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},_hideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","none")},_unhideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","")};documentExists&&document.addEventListener("click",(function(e){if(ignoreNextClick)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ignoreNextClick=!1,!1}),!0);var nearestEmptyInsertDetectEvent=function(e){if(dragEl){e=e.touches?e.touches[0]:e;var t=_detectNearestEmptySortable(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[expando]._onDragOver(n)}}},_checkOutsideTargetEl=function(e){dragEl&&dragEl.parentNode[expando]._isOutsideThisEl(e.target)};function Sortable(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=_extends({},t),e[expando]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return _detectDirection(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Sortable.supportPointer&&"PointerEvent"in window&&!Safari,emptyInsertThreshold:5};for(var r in PluginManager.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in _prepareGroup(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&supportDraggable,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?on(e,"pointerdown",this._onTapStart):(on(e,"mousedown",this._onTapStart),on(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(on(e,"dragover",this),on(e,"dragenter",this)),sortables.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),_extends(this,AnimationStateManager())}function _globalDragOver(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function _onMove(e,t,n,r,o,a,i,l){var s,c,u=e[expando],d=u.options.onMove;return!window.CustomEvent||IE11OrLess||Edge?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=r,s.related=o||t,s.relatedRect=a||getRect(t),s.willInsertAfter=l,s.originalEvent=i,e.dispatchEvent(s),d&&(c=d.call(u,s,i)),c}function _disableDraggable(e){e.draggable=!1}function _unsilent(){_silent=!1}function _ghostIsFirst(e,t,n){var r=getRect(getChild(n.el,0,n.options,!0));return t?e.clientX<r.left-10||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-10||e.clientY<r.bottom&&e.clientX<r.left}function _ghostIsLast(e,t,n){var r=getRect(lastChild(n.el,n.options.draggable));return t?e.clientX>r.right+10||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+10}function _getSwapDirection(e,t,n,r,o,a,i,l){var s=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,h=!1;if(!i)if(l&&targetMoveDistance<c*o){if(!pastFirstInvertThresh&&(1===lastDirection?s>u+c*a/2:s<d-c*a/2)&&(pastFirstInvertThresh=!0),pastFirstInvertThresh)h=!0;else if(1===lastDirection?s<u+targetMoveDistance:s>d-targetMoveDistance)return-lastDirection}else if(s>u+c*(1-o)/2&&s<d-c*(1-o)/2)return _getInsertDirection(t);return(h=h||i)&&(s<u+c*a/2||s>d-c*a/2)?s>u+c/2?1:-1:0}function _getInsertDirection(e){return index$2(dragEl)<index$2(e)?1:-1}function _generateId(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function _saveInputCheckedState(e){savedInputChecked.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&savedInputChecked.push(r)}}function _nextTick(e){return setTimeout(e,0)}function _cancelNextTick(e){return clearTimeout(e)}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(lastTarget=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,dragEl):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,a=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(i||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=r.filter;if(_saveInputCheckedState(n),!dragEl&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||r.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!Safari||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=closest(l,r.draggable,n,!1))&&l.animated||lastDownEl===l)){if(oldIndex=index$2(l),oldDraggableIndex=index$2(l,r.draggable),"function"==typeof c){if(c.call(this,e,l,this))return _dispatchEvent({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),pluginEvent("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=closest(s,r.trim(),n,!1))return _dispatchEvent({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),pluginEvent("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!closest(s,r.handle,n,!1)||this._prepareDragStart(e,i,l)}}},_prepareDragStart:function(e,t,n){var r,o=this,a=o.el,i=o.options,l=a.ownerDocument;if(n&&!dragEl&&n.parentNode===a){var s=getRect(n);if(rootEl=a,parentEl=(dragEl=n).parentNode,nextEl=dragEl.nextSibling,lastDownEl=n,activeGroup=i.group,Sortable.dragged=dragEl,tapEvt={target:dragEl,clientX:(t||e).clientX,clientY:(t||e).clientY},tapDistanceLeft=tapEvt.clientX-s.left,tapDistanceTop=tapEvt.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,dragEl.style["will-change"]="all",r=function(){pluginEvent("delayEnded",o,{evt:e}),Sortable.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!FireFox&&o.nativeDraggable&&(dragEl.draggable=!0),o._triggerDragStart(e,t),_dispatchEvent({sortable:o,name:"choose",originalEvent:e}),toggleClass(dragEl,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){find(dragEl,e.trim(),_disableDraggable)})),on(l,"dragover",nearestEmptyInsertDetectEvent),on(l,"mousemove",nearestEmptyInsertDetectEvent),on(l,"touchmove",nearestEmptyInsertDetectEvent),on(l,"mouseup",o._onDrop),on(l,"touchend",o._onDrop),on(l,"touchcancel",o._onDrop),FireFox&&this.nativeDraggable&&(this.options.touchStartThreshold=4,dragEl.draggable=!0),pluginEvent("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(Edge||IE11OrLess))r();else{if(Sortable.eventCanceled)return void this._onDrop();on(l,"mouseup",o._disableDelayedDrag),on(l,"touchend",o._disableDelayedDrag),on(l,"touchcancel",o._disableDelayedDrag),on(l,"mousemove",o._delayedDragTouchMoveHandler),on(l,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&on(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,i.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){dragEl&&_disableDraggable(dragEl),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;off(e,"mouseup",this._disableDelayedDrag),off(e,"touchend",this._disableDelayedDrag),off(e,"touchcancel",this._disableDelayedDrag),off(e,"mousemove",this._delayedDragTouchMoveHandler),off(e,"touchmove",this._delayedDragTouchMoveHandler),off(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?on(document,"pointermove",this._onTouchMove):on(document,t?"touchmove":"mousemove",this._onTouchMove):(on(dragEl,"dragend",this),on(rootEl,"dragstart",this._onDragStart));try{document.selection?_nextTick((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(awaitingDragStarted=!1,rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:t}),this.nativeDraggable&&on(document,"dragover",_checkOutsideTargetEl);var n=this.options;!e&&toggleClass(dragEl,n.dragClass,!1),toggleClass(dragEl,n.ghostClass,!0),Sortable.active=this,e&&this._appendGhost(),_dispatchEvent({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(touchEvt){this._lastX=touchEvt.clientX,this._lastY=touchEvt.clientY,_hideGhostForTarget();for(var e=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY))!==t;)t=e;if(dragEl.parentNode[expando]._isOutsideThisEl(e),t)do{if(t[expando]){if(t[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);_unhideGhostForTarget()}},_onTouchMove:function(e){if(tapEvt){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,a=ghostEl&&matrix(ghostEl,!0),i=ghostEl&&a&&a.a,l=ghostEl&&a&&a.d,s=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),c=(o.clientX-tapEvt.clientX+r.x)/(i||1)+(s?s[0]-ghostRelativeParentInitialScroll[0]:0)/(i||1),u=(o.clientY-tapEvt.clientY+r.y)/(l||1)+(s?s[1]-ghostRelativeParentInitialScroll[1]:0)/(l||1);if(!Sortable.active&&!awaitingDragStarted){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(ghostEl){a?(a.e+=c-(lastDx||0),a.f+=u-(lastDy||0)):a={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");css(ghostEl,"webkitTransform",d),css(ghostEl,"mozTransform",d),css(ghostEl,"msTransform",d),css(ghostEl,"transform",d),lastDx=c,lastDy=u,touchEvt=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!ghostEl){var e=this.options.fallbackOnBody?document.body:rootEl,t=getRect(dragEl,!0,PositionGhostAbsolutely,!0,e),n=this.options;if(PositionGhostAbsolutely){for(ghostRelativeParent=e;"static"===css(ghostRelativeParent,"position")&&"none"===css(ghostRelativeParent,"transform")&&ghostRelativeParent!==document;)ghostRelativeParent=ghostRelativeParent.parentNode;ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement?(ghostRelativeParent===document&&(ghostRelativeParent=getWindowScrollingElement()),t.top+=ghostRelativeParent.scrollTop,t.left+=ghostRelativeParent.scrollLeft):ghostRelativeParent=getWindowScrollingElement(),ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}toggleClass(ghostEl=dragEl.cloneNode(!0),n.ghostClass,!1),toggleClass(ghostEl,n.fallbackClass,!0),toggleClass(ghostEl,n.dragClass,!0),css(ghostEl,"transition",""),css(ghostEl,"transform",""),css(ghostEl,"box-sizing","border-box"),css(ghostEl,"margin",0),css(ghostEl,"top",t.top),css(ghostEl,"left",t.left),css(ghostEl,"width",t.width),css(ghostEl,"height",t.height),css(ghostEl,"opacity","0.8"),css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed"),css(ghostEl,"zIndex","100000"),css(ghostEl,"pointerEvents","none"),Sortable.ghost=ghostEl,e.appendChild(ghostEl),css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;pluginEvent("dragStart",this,{evt:e}),Sortable.eventCanceled?this._onDrop():(pluginEvent("setupClone",this),Sortable.eventCanceled||((cloneEl=clone(dragEl)).draggable=!1,cloneEl.style["will-change"]="",this._hideClone(),toggleClass(cloneEl,this.options.chosenClass,!1),Sortable.clone=cloneEl),n.cloneId=_nextTick((function(){pluginEvent("clone",n),Sortable.eventCanceled||(n.options.removeCloneOnHide||rootEl.insertBefore(cloneEl,dragEl),n._hideClone(),_dispatchEvent({sortable:n,name:"clone"}))})),!t&&toggleClass(dragEl,o.dragClass,!0),t?(ignoreNextClick=!0,n._loopId=setInterval(n._emulateDragOver,50)):(off(document,"mouseup",n._onDrop),off(document,"touchend",n._onDrop),off(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,dragEl)),on(document,"drop",n),css(dragEl,"transform","translateZ(0)")),awaitingDragStarted=!0,n._dragStartId=_nextTick(n._dragStarted.bind(n,t,e)),on(document,"selectstart",n),moved=!0,Safari&&css(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,o,a=this.el,i=e.target,l=this.options,s=l.group,c=Sortable.active,u=activeGroup===s,d=l.sort,h=putSortable||c,g=this,p=!1;if(!_silent){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),i=closest(i,l.draggable,a,!0),k("dragOver"),Sortable.eventCanceled)return p;if(dragEl.contains(e.target)||i.animated&&i.animatingX&&i.animatingY||g._ignoreWhileAnimating===i)return I(!1);if(ignoreNextClick=!1,c&&!l.disabled&&(u?d||(r=parentEl!==rootEl):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,c,dragEl,e))&&s.checkPut(this,c,dragEl,e))){if(o="vertical"===this._getDirection(e,i),t=getRect(dragEl),k("dragOverValid"),Sortable.eventCanceled)return p;if(r)return parentEl=rootEl,O(),this._hideClone(),k("revert"),Sortable.eventCanceled||(nextEl?rootEl.insertBefore(dragEl,nextEl):rootEl.appendChild(dragEl)),I(!0);var f=lastChild(a,l.draggable);if(!f||_ghostIsLast(e,o,this)&&!f.animated){if(f===dragEl)return I(!1);if(f&&a===e.target&&(i=f),i&&(n=getRect(i)),!1!==_onMove(rootEl,a,dragEl,t,i,n,e,!!i))return O(),a.appendChild(dragEl),parentEl=a,N(),I(!0)}else if(f&&_ghostIsFirst(e,o,this)){var m=getChild(a,0,l,!0);if(m===dragEl)return I(!1);if(n=getRect(i=m),!1!==_onMove(rootEl,a,dragEl,t,i,n,e,!1))return O(),a.insertBefore(dragEl,m),parentEl=a,N(),I(!0)}else if(i.parentNode===a){n=getRect(i);var v,b,w,y=dragEl.parentNode!==a,E=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||t,i.animated&&i.toRect||n,o),_=o?"top":"left",S=isScrolledPast(i,"top","top")||isScrolledPast(dragEl,"top","top"),x=S?S.scrollTop:void 0;if(lastTarget!==i&&(b=n[_],pastFirstInvertThresh=!1,isCircumstantialInvert=!E&&l.invertSwap||y),0!==(v=_getSwapDirection(e,i,n,o,E?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,isCircumstantialInvert,lastTarget===i))){var T=index$2(dragEl);do{T-=v,w=parentEl.children[T]}while(w&&("none"===css(w,"display")||w===ghostEl))}if(0===v||w===i)return I(!1);lastTarget=i,lastDirection=v;var C=i.nextElementSibling,P=!1,D=_onMove(rootEl,a,dragEl,t,i,n,e,P=1===v);if(!1!==D)return 1!==D&&-1!==D||(P=1===D),_silent=!0,setTimeout(_unsilent,30),O(),P&&!C?a.appendChild(dragEl):i.parentNode.insertBefore(dragEl,P?C:i),S&&scrollBy(S,0,x-S.scrollTop),parentEl=dragEl.parentNode,void 0===b||isCircumstantialInvert||(targetMoveDistance=Math.abs(b-getRect(i)[_])),N(),I(!0)}if(a.contains(dragEl))return I(!1)}return!1}function k(l,s){pluginEvent(l,g,_objectSpread2({evt:e,isOwner:u,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:h,target:i,completed:I,onMove:function(n,r){return _onMove(rootEl,a,dragEl,t,n,getRect(n),e,r)},changed:N},s))}function O(){k("dragOverAnimationCapture"),g.captureAnimationState(),g!==h&&h.captureAnimationState()}function I(t){return k("dragOverCompleted",{insertion:t}),t&&(u?c._hideClone():c._showClone(g),g!==h&&(toggleClass(dragEl,putSortable?putSortable.options.ghostClass:c.options.ghostClass,!1),toggleClass(dragEl,l.ghostClass,!0)),putSortable!==g&&g!==Sortable.active?putSortable=g:g===Sortable.active&&putSortable&&(putSortable=null),h===g&&(g._ignoreWhileAnimating=i),g.animateAll((function(){k("dragOverAnimationComplete"),g._ignoreWhileAnimating=null})),g!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(i===dragEl&&!dragEl.animated||i===a&&!i.animated)&&(lastTarget=null),l.dragoverBubble||e.rootEl||i===document||(dragEl.parentNode[expando]._isOutsideThisEl(e.target),!t&&nearestEmptyInsertDetectEvent(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function N(){newIndex=index$2(dragEl),newDraggableIndex=index$2(dragEl,l.draggable),_dispatchEvent({sortable:g,name:"change",toEl:a,newIndex:newIndex,newDraggableIndex:newDraggableIndex,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){off(document,"mousemove",this._onTouchMove),off(document,"touchmove",this._onTouchMove),off(document,"pointermove",this._onTouchMove),off(document,"dragover",nearestEmptyInsertDetectEvent),off(document,"mousemove",nearestEmptyInsertDetectEvent),off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function(){var e=this.el.ownerDocument;off(e,"mouseup",this._onDrop),off(e,"touchend",this._onDrop),off(e,"pointerup",this._onDrop),off(e,"touchcancel",this._onDrop),off(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;newIndex=index$2(dragEl),newDraggableIndex=index$2(dragEl,n.draggable),pluginEvent("drop",this,{evt:e}),parentEl=dragEl&&dragEl.parentNode,newIndex=index$2(dragEl),newDraggableIndex=index$2(dragEl,n.draggable),Sortable.eventCanceled||(awaitingDragStarted=!1,isCircumstantialInvert=!1,pastFirstInvertThresh=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_cancelNextTick(this.cloneId),_cancelNextTick(this._dragStartId),this.nativeDraggable&&(off(document,"drop",this),off(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Safari&&css(document.body,"user-select",""),css(dragEl,"transform",""),e&&(moved&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl),(rootEl===parentEl||putSortable&&"clone"!==putSortable.lastPutMode)&&cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),dragEl&&(this.nativeDraggable&&off(dragEl,"dragend",this),_disableDraggable(dragEl),dragEl.style["will-change"]="",moved&&!awaitingDragStarted&&toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,!1),toggleClass(dragEl,this.options.chosenClass,!1),_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:e}),rootEl!==parentEl?(newIndex>=0&&(_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:e}),_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:e}),_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:e}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:e})),putSortable&&putSortable.save()):newIndex!==oldIndex&&newIndex>=0&&(_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:e}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:e})),Sortable.active&&(null!=newIndex&&-1!==newIndex||(newIndex=oldIndex,newDraggableIndex=oldDraggableIndex),_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){pluginEvent("nulling",this),rootEl=dragEl=parentEl=ghostEl=nextEl=cloneEl=lastDownEl=cloneHidden=tapEvt=touchEvt=moved=newIndex=newDraggableIndex=oldIndex=oldDraggableIndex=lastTarget=lastDirection=putSortable=activeGroup=Sortable.dragged=Sortable.ghost=Sortable.clone=Sortable.active=null,savedInputChecked.forEach((function(e){e.checked=!0})),savedInputChecked.length=lastDx=lastDy=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":dragEl&&(this._onDragOver(e),_globalDragOver(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,a=this.options;r<o;r++)closest(e=n[r],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||_generateId(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var o=r.children[t];closest(o,this.options.draggable,r,!1)&&(n[e]=o)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return closest(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=PluginManager.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&_prepareGroup(n)},destroy:function(){pluginEvent("destroy",this);var e=this.el;e[expando]=null,off(e,"mousedown",this._onTapStart),off(e,"touchstart",this._onTapStart),off(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(off(e,"dragover",this),off(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),sortables.splice(sortables.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!cloneHidden){if(pluginEvent("hideClone",this),Sortable.eventCanceled)return;css(cloneEl,"display","none"),this.options.removeCloneOnHide&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),cloneHidden=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(cloneHidden){if(pluginEvent("showClone",this),Sortable.eventCanceled)return;dragEl.parentNode!=rootEl||this.options.group.revertClone?nextEl?rootEl.insertBefore(cloneEl,nextEl):rootEl.appendChild(cloneEl):rootEl.insertBefore(cloneEl,dragEl),this.options.group.revertClone&&this.animate(dragEl,cloneEl),css(cloneEl,"display",""),cloneHidden=!1}}else this._hideClone()}},documentExists&&on(document,"touchmove",(function(e){(Sortable.active||awaitingDragStarted)&&e.cancelable&&e.preventDefault()})),Sortable.utils={on:on,off:off,css:css,find:find,is:function(e,t){return!!closest(e,t,e,!1)},extend:extend,throttle:throttle,closest:closest,toggleClass:toggleClass,clone:clone,index:index$2,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild:getChild},Sortable.get=function(e){return e[expando]},Sortable.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Sortable.utils=_objectSpread2(_objectSpread2({},Sortable.utils),e.utils)),PluginManager.mount(e)}))},Sortable.create=function(e,t){return new Sortable(e,t)},Sortable.version=version;var scrollEl,scrollRootEl,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval,autoScrolls=[],scrolling=!1;function AutoScrollPlugin(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?on(document,"dragover",this._handleAutoScroll):this.options.supportPointer?on(document,"pointermove",this._handleFallbackAutoScroll):t.touches?on(document,"touchmove",this._handleFallbackAutoScroll):on(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?off(document,"dragover",this._handleAutoScroll):(off(document,"pointermove",this._handleFallbackAutoScroll),off(document,"touchmove",this._handleFallbackAutoScroll),off(document,"mousemove",this._handleFallbackAutoScroll)),clearPointerElemChangedInterval(),clearAutoScrolls(),cancelThrottle()},nulling:function(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null,autoScrolls.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,o);if(touchEvt$1=e,t||this.options.forceAutoScrollFallback||Edge||IE11OrLess||Safari){autoScroll(e,this.options,a,t);var i=getParentAutoScrollElement(a,!0);!scrolling||pointerElemChangedInterval&&r===lastAutoScrollX&&o===lastAutoScrollY||(pointerElemChangedInterval&&clearPointerElemChangedInterval(),pointerElemChangedInterval=setInterval((function(){var a=getParentAutoScrollElement(document.elementFromPoint(r,o),!0);a!==i&&(i=a,clearAutoScrolls()),autoScroll(e,n.options,a,t)}),10),lastAutoScrollX=r,lastAutoScrollY=o)}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(a,!0)===getWindowScrollingElement())return void clearAutoScrolls();autoScroll(e,this.options,getParentAutoScrollElement(a,!1),!1)}}},_extends(e,{pluginName:"scroll",initializeByDefault:!0})}function clearAutoScrolls(){autoScrolls.forEach((function(e){clearInterval(e.pid)})),autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle((function(e,t,n,r){if(t.scroll){var o,a=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=getWindowScrollingElement(),u=!1;scrollRootEl!==n&&(scrollRootEl=n,clearAutoScrolls(),scrollEl=t.scroll,o=t.scrollFn,!0===scrollEl&&(scrollEl=getParentAutoScrollElement(n,!0)));var d=0,h=scrollEl;do{var g=h,p=getRect(g),f=p.top,m=p.bottom,v=p.left,b=p.right,w=p.width,y=p.height,E=void 0,_=void 0,S=g.scrollWidth,x=g.scrollHeight,T=css(g),C=g.scrollLeft,P=g.scrollTop;g===c?(E=w<S&&("auto"===T.overflowX||"scroll"===T.overflowX||"visible"===T.overflowX),_=y<x&&("auto"===T.overflowY||"scroll"===T.overflowY||"visible"===T.overflowY)):(E=w<S&&("auto"===T.overflowX||"scroll"===T.overflowX),_=y<x&&("auto"===T.overflowY||"scroll"===T.overflowY));var D=E&&(Math.abs(b-a)<=l&&C+w<S)-(Math.abs(v-a)<=l&&!!C),k=_&&(Math.abs(m-i)<=l&&P+y<x)-(Math.abs(f-i)<=l&&!!P);if(!autoScrolls[d])for(var O=0;O<=d;O++)autoScrolls[O]||(autoScrolls[O]={});autoScrolls[d].vx==D&&autoScrolls[d].vy==k&&autoScrolls[d].el===g||(autoScrolls[d].el=g,autoScrolls[d].vx=D,autoScrolls[d].vy=k,clearInterval(autoScrolls[d].pid),0==D&&0==k||(u=!0,autoScrolls[d].pid=setInterval(function(){r&&0===this.layer&&Sortable.active._onTouchMove(touchEvt$1);var t=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*s:0,n=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*s:0;"function"==typeof o&&"continue"!==o.call(Sortable.dragged.parentNode[expando],n,t,e,touchEvt$1,autoScrolls[this.layer].el)||scrollBy(autoScrolls[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==c&&(h=getParentAutoScrollElement(h,!1)));scrolling=u}}),30),drop=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,a=e.dispatchSortableEvent,i=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||o;i();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(a("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Revert(){}function Remove(){}function getConsole(){return"undefined"!=typeof window?window.console:global.console}Revert.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=getChild(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:drop},_extends(Revert,{pluginName:"revertOnSpill"}),Remove.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:drop},_extends(Remove,{pluginName:"removeOnSpill"}),Sortable.mount(new AutoScrollPlugin),Sortable.mount(Remove,Revert);const console$1=getConsole();function cached(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const regex=/-(\w)/g,camelize=cached((e=>e.replace(regex,((e,t)=>t?t.toUpperCase():""))));function removeNode(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function insertNodeAt(e,t,n){const r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}function computeVmIndex(e,t){return Object.values(e).indexOf(t)}function computeIndexes(e,t,n,r){if(!e)return[];const o=Object.values(e),a=t.length-r;return[...t].map(((e,t)=>t>=a?o.length:o.indexOf(e)))}function emit(e,t){this.$nextTick((()=>this.$emit(e.toLowerCase(),t)))}function delegateAndEmit(e){return t=>{null!==this.realList&&this["onDrag"+e](t),emit.call(this,e,t)}}function isTransitionName(e){return["transition-group","TransitionGroup"].includes(e)}function isTransition(e){if(!e||1!==e.length)return!1;const[{type:t}]=e;return!!t&&isTransitionName(t.name)}function getComponentAttributes(e,t){return t?{...t.props,...t.attrs}:e}const eventsListened=["Start","Add","Remove","Update","End"],eventsToEmit=["Choose","Unchoose","Sort","Filter","Clone"],readonlyProperties=["Move",...eventsListened,...eventsToEmit].map((e=>"on"+e));let draggingElement=null;const props={options:Object,list:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:e=>e},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null},component:{type:String,default:null},modelValue:{type:Array,required:!1,default:null}},VueDraggableNext=vue.defineComponent({name:"VueDraggableNext",inheritAttrs:!1,emits:["update:modelValue","move","change",...eventsListened.map((e=>e.toLowerCase())),...eventsToEmit.map((e=>e.toLowerCase()))],props:props,data:()=>({transitionMode:!1,noneFunctionalComponentMode:!1,headerOffset:0,footerOffset:0,_sortable:{},visibleIndexes:[],context:{}}),render(){const e=this.$slots.default?this.$slots.default():null,t=getComponentAttributes(this.$attrs,this.componentData);return e?(this.transitionMode=isTransition(e),vue.h(this.getTag(),t,e)):vue.h(this.getTag(),t,[])},created(){null!==this.list&&null!==this.modelValue&&console$1.error("list props are mutually exclusive! Please set one.")},mounted(){const e={};eventsListened.forEach((t=>{e["on"+t]=delegateAndEmit.call(this,t)})),eventsToEmit.forEach((t=>{e["on"+t]=emit.bind(this,t)}));const t=Object.keys(this.$attrs).reduce(((e,t)=>(e[camelize(t)]=this.$attrs[t],e)),{}),n=Object.assign({},t,e,{onMove:(e,t)=>this.onDragMove(e,t)});!("draggable"in n)&&(n.draggable=">*");const r=1===this.$el.nodeType?this.$el:this.$el.parentElement;this._sortable=new Sortable(r,n),r.__draggable_component__=this,this.computeIndexes()},beforeUnmount(){try{void 0!==this._sortable&&this._sortable.destroy()}catch(e){}},computed:{realList(){return this.list?this.list:this.modelValue}},watch:{$attrs:{handler(e){this.updateOptions(e)},deep:!0},realList(){this.computeIndexes()}},methods:{getTag(){return this.component?vue.resolveComponent(this.component):this.tag},updateOptions(e){for(var t in e){const n=camelize(t);-1===readonlyProperties.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes(){return this.$el.children},computeIndexes(){this.$nextTick((()=>{this.visibleIndexes=computeIndexes(this.getChildrenNodes(),this.$el.children,this.transitionMode,this.footerOffset)}))},getUnderlyingVm(e){const t=computeVmIndex(this.getChildrenNodes()||[],e);if(-1===t)return null;return{index:t,element:this.realList[t]}},emitChanges(e){this.$nextTick((()=>{this.$emit("change",e)}))},alterList(e){if(this.list)return void e(this.list);const t=[...this.modelValue];e(t),this.$emit("update:modelValue",t)},spliceList(){this.alterList((e=>e.splice(...arguments)))},updatePosition(e,t){this.alterList((n=>n.splice(t,0,n.splice(e,1)[0])))},getVmIndex(e){const t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent(){return this.$slots.default?this.$slots.default()[0].componentInstance:null},resetTransitionData(e){if(!this.noTransitionOnDrag||!this.transitionMode)return;this.getChildrenNodes()[e].data=null;const t=this.getComponent();t.children=[],t.kept=void 0},onDragStart(e){this.computeIndexes(),this.context=this.getUnderlyingVm(e.item),this.context&&(e.item._underlying_vm_=this.clone(this.context.element),draggingElement=e.item)},onDragAdd(e){const t=e.item._underlying_vm_;if(void 0===t)return;removeNode(e.item);const n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();const r={element:t,newIndex:n};this.emitChanges({added:r})},onDragRemove(e){if(insertNodeAt(this.$el,e.item,e.oldIndex),"clone"===e.pullMode)return void removeNode(e.clone);if(!this.context)return;const t=this.context.index;this.spliceList(t,1);const n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})},onDragUpdate(e){removeNode(e.item),insertNodeAt(e.from,e.item,e.oldIndex);const t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);const r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},onDragMove(e,t){const n=this.move;if(!n||!this.realList)return!0;const r=this.getRelatedContextFromMoveEvent(e),o=this.context,a=this.computeFutureIndex(r,e);Object.assign(o,{futureIndex:a});return n(Object.assign({},e,{relatedContext:r,draggedContext:o}),t)},onDragEnd(){this.computeIndexes(),draggingElement=null},getTrargetedComponent:e=>e.__draggable_component__,getRelatedContextFromMoveEvent({to:e,related:t}){const n=this.getTrargetedComponent(e);if(!n)return{component:n};const r=n.realList,o={list:r,component:n};if(e!==t&&r&&n.getUnderlyingVm){const e=n.getUnderlyingVm(t);if(e)return Object.assign(e,o)}return o},computeFutureIndex(e,t){const n=[...t.to.children].filter((e=>"none"!==e.style.display));if(0===n.length)return 0;const r=n.indexOf(t.related),o=e.component.getVmIndex(r);return-1!==n.indexOf(draggingElement)||!t.willInsertAfter?o:o+1}}}),_sfc_main$3={name:"VgtFilterRow",props:["lineNumbers","columns","expandRowsEnabled","typedColumns","globalSearchEnabled","selectable","mode"],emits:["filter-changed"],watch:{columns:{handler(e,t){this.populateInitialFilters()},deep:!0,immediate:!0}},data:()=>({columnFilters:{},timer:null}),computed:{hasFilterRow(){for(let e=0;e<this.columns.length;e++){const t=this.columns[e];if(t.filterOptions&&t.filterOptions.enabled)return!0}return!1}},methods:{fieldKey:e=>"function"==typeof e&&e.name?e.name:e,reset(e=!1){this.columnFilters={},e&&this.$emit("filter-changed",this.columnFilters)},isFilterable:e=>e.filterOptions&&e.filterOptions.enabled,isDropdown(e){return this.isFilterable(e)&&e.filterOptions.filterDropdownItems&&e.filterOptions.filterDropdownItems.length},isDropdownObjects(e){return this.isDropdown(e)&&"object"==typeof e.filterOptions.filterDropdownItems[0]},isDropdownArray(e){return this.isDropdown(e)&&"object"!=typeof e.filterOptions.filterDropdownItems[0]},getClasses(e){const t="filter-th";return e.filterOptions&&e.filterOptions.styleClass?[t,...e.filterOptions.styleClass.split(" ")].join(" "):t},getPlaceholder(e){return this.isFilterable(e)&&e.filterOptions.placeholder||`Filter ${e.label}`},getName(e){return`vgt-${this.fieldKey(e.field)}`},updateFiltersOnEnter(e,t){this.timer&&clearTimeout(this.timer),this.updateFiltersImmediately(e.field,t)},updateFiltersOnKeyup(e,t){"enter"!==e.filterOptions.trigger&&this.updateFilters(e,t)},updateSlotFilter(e,t){let n=e.filterOptions.slotFilterField||e.field;"function"==typeof e.filterOptions.formatValue&&(t=e.filterOptions.formatValue(t)),this.updateFiltersImmediately(n,t)},updateFilters(e,t){this.timer&&clearTimeout(this.timer),this.timer=setTimeout((()=>{this.updateFiltersImmediately(e.field,t)}),400)},updateFiltersImmediately(e,t){this.columnFilters[this.fieldKey(e)]=t,this.$emit("filter-changed",this.columnFilters)},populateInitialFilters(){for(let e=0;e<this.columns.length;e++){const t=this.columns[e];this.isFilterable(t)&&void 0!==t.filterOptions.filterValue&&null!==t.filterOptions.filterValue&&(this.columnFilters[this.fieldKey(t.field)]=t.filterOptions.filterValue)}this.$emit("filter-changed",this.columnFilters)}}},_hoisted_1$3={key:0},_hoisted_2$3={key:0},_hoisted_3$3={key:1},_hoisted_4$3={key:2},_hoisted_5$3={key:0},_hoisted_6$3=["name","placeholder","value","onKeyup","onInput"],_hoisted_7$3=["name","value","onChange"],_hoisted_8$2={value:"",key:"-1"},_hoisted_9$2=["value"],_hoisted_10$2=["name","value","onChange"],_hoisted_11$1={value:"",key:"-1"},_hoisted_12$1=["value"];function _sfc_render$3(e,t,n,r,o,a){return a.hasFilterRow?(vue.openBlock(),vue.createElementBlock("tr",_hoisted_1$3,[n.expandRowsEnabled?(vue.openBlock(),vue.createElementBlock("th",_hoisted_2$3)):vue.createCommentVNode("v-if",!0),n.lineNumbers?(vue.openBlock(),vue.createElementBlock("th",_hoisted_3$3)):vue.createCommentVNode("v-if",!0),n.selectable?(vue.openBlock(),vue.createElementBlock("th",_hoisted_4$3)):vue.createCommentVNode("v-if",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(n.columns,((t,n)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:n},[t.hidden?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("th",{key:0,class:vue.normalizeClass(a.getClasses(t))},[vue.renderSlot(e.$slots,"column-filter",{column:t,updateFilters:a.updateSlotFilter},(()=>[a.isFilterable(t)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$3,[a.isDropdown(t)?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("input",{key:0,name:a.getName(t),type:"text",class:"vgt-input",placeholder:a.getPlaceholder(t),value:o.columnFilters[a.fieldKey(t.field)],onKeyup:vue.withKeys((e=>a.updateFiltersOnEnter(t,e.target.value)),["enter"]),onInput:e=>a.updateFiltersOnKeyup(t,e.target.value)},null,40,_hoisted_6$3)),vue.createCommentVNode(" options are a list of primitives "),a.isDropdownArray(t)?(vue.openBlock(),vue.createElementBlock("select",{key:1,name:a.getName(t),class:"vgt-select",value:o.columnFilters[a.fieldKey(t.field)],onChange:e=>a.updateFiltersImmediately(t.field,e.target.value)},[vue.createElementVNode("option",_hoisted_8$2,vue.toDisplayString(a.getPlaceholder(t)),1),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.filterOptions.filterDropdownItems,((e,t)=>(vue.openBlock(),vue.createElementBlock("option",{key:t,value:e},vue.toDisplayString(e),9,_hoisted_9$2)))),128))],40,_hoisted_7$3)):vue.createCommentVNode("v-if",!0),vue.createCommentVNode(" options are a list of objects with text and value "),a.isDropdownObjects(t)?(vue.openBlock(),vue.createElementBlock("select",{key:2,name:a.getName(t),class:"vgt-select",value:o.columnFilters[a.fieldKey(t.field)],onChange:e=>a.updateFiltersImmediately(t.field,e.target.value)},[vue.createElementVNode("option",_hoisted_11$1,vue.toDisplayString(a.getPlaceholder(t)),1),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.filterOptions.filterDropdownItems,((e,t)=>(vue.openBlock(),vue.createElementBlock("option",{key:t,value:e.value},vue.toDisplayString(e.text),9,_hoisted_12$1)))),128))],40,_hoisted_10$2)):vue.createCommentVNode("v-if",!0)])):vue.createCommentVNode("v-if",!0)]))],2))],64)))),128))])):vue.createCommentVNode("v-if",!0)}var VgtFilterRow=_export_sfc(_sfc_main$3,[["render",_sfc_render$3]]);function getColumnFirstSortType(e){return e.firstSortType||"asc"}function getCurrentPrimarySort(e,t){return 1===e.length&&e[0].field===t.field?e[0].type:void 0}function getNextSort(e,t){return SORT_TYPES.Descending===getColumnFirstSortType(t)&&e===SORT_TYPES.Ascending?SORT_TYPES.None:e===SORT_TYPES.Ascending?SORT_TYPES.Descending:SORT_TYPES.Descending===getColumnFirstSortType(t)&&e===SORT_TYPES.Descending?SORT_TYPES.Ascending:e===SORT_TYPES.Descending?SORT_TYPES.None:SORT_TYPES.Descending===getColumnFirstSortType(t)&&e===SORT_TYPES.None?SORT_TYPES.Descending:SORT_TYPES.Ascending}function getIndex(e,t){for(let n=0;n<e.length;n++)if(t.field===e[n].field)return n;return-1}const primarySort=(e,t)=>{const n=getCurrentPrimarySort(e,t),r=getNextSort(n,t);return[{field:t.field,type:n?r:getColumnFirstSortType(t)}]},secondarySort=(e,t)=>{const n=getIndex(e,t);return-1===n?e.push({field:t.field,type:getColumnFirstSortType(t)}):e[n].type=getNextSort(e[n].type,t),e},_sfc_main$2={name:"VgtTableHeader",props:{lineNumbers:{default:!1,type:Boolean},selectable:{default:!1,type:Boolean},allSelected:{default:!1,type:Boolean},allSelectedIndeterminate:{default:!1,type:Boolean},columns:{type:Array},expandRowsEnabled:{default:!1,type:Boolean},mode:{type:String},typedColumns:{},sortable:{type:Boolean},multipleColumnSort:{type:Boolean,default:!0},getClasses:{type:Function},searchEnabled:{type:Boolean},tableRef:{},paginated:{}},emits:["toggle-select-all","toggle-expand-rows-all","sort-change","filter-changed"],watch:{columns:{handler(){this.setColumnStyles()},immediate:!0,deep:!0},tableRef:{handler(){this.setColumnStyles()},immediate:!0},paginated:{handler(){this.tableRef&&this.setColumnStyles()},deep:!0}},data:()=>({checkBoxThStyle:{},lineNumberThStyle:{},columnStyles:[],sorts:[],ro:null}),computed:{},methods:{reset(){this.$refs["filter-row"].reset(!0)},toggleExpandRowsAll(){this.$emit("toggle-expand-rows-all")},toggleSelectAll(){this.$emit("toggle-select-all")},isSortableColumn(e){const{sortable:t}=e;return"boolean"==typeof t?t:this.sortable},sort(e,t){this.isSortableColumn(t)&&(e.shiftKey&&this.multipleColumnSort?this.sorts=secondarySort(this.sorts,t):this.sorts=primarySort(this.sorts,t),this.$emit("sort-change",this.sorts))},setInitialSort(e){this.sorts=e,this.$emit("sort-change",this.sorts)},getColumnSort(e){for(let t=0;t<this.sorts.length;t+=1)if(this.sorts[t].field===e.field)return this.sorts[t].type||"asc";return null},getColumnSortLong(e){return"asc"===this.getColumnSort(e)?"ascending":"descending"},getHeaderClasses(e,t){return Object.assign({},this.getClasses(t,"th"),{sortable:this.isSortableColumn(e),"sorting sorting-desc":"desc"===this.getColumnSort(e),"sorting sorting-asc":"asc"===this.getColumnSort(e)})},filterRows(e){this.$emit("filter-changed",e)},getWidthStyle(e){if(window&&window.getComputedStyle&&e){return{width:window.getComputedStyle(e,null).width}}return{width:"auto"}},setColumnStyles(){const e=[];for(let t=0;t<this.columns.length;t++)if(this.tableRef){let n=0;this.selectable&&n++,this.lineNumbers&&n++;const r=this.tableRef.rows[0].cells[t+n];e.push(this.getWidthStyle(r))}else e.push({minWidth:this.columns[t].width?this.columns[t].width:"auto",maxWidth:this.columns[t].width?this.columns[t].width:"auto",width:this.columns[t].width?this.columns[t].width:"auto"});this.columnStyles=e},getColumnStyle(e,t){const n={minWidth:e.width?e.width:"auto",maxWidth:e.width?e.width:"auto",width:e.width?e.width:"auto"};if(this.tableRef){this.selectable&&t++,this.lineNumbers&&t++;const e=this.tableRef.rows[0].cells[t],r=window.getComputedStyle(e,null);n.width=r.width}return n}},mounted(){this.$nextTick((()=>{"ResizeObserver"in window&&(this.ro=new ResizeObserver((()=>{this.setColumnStyles()})),this.ro.observe(this.$parent.$el),this.tableRef&&Array.from(this.$parent.$refs["table-header-primary"].$el.children[0].children).forEach((e=>{this.ro.observe(e)})))}))},beforeUnmount(){this.ro&&this.ro.disconnect()},components:{draggable:VueDraggableNext,"vgt-filter-row":VgtFilterRow}},_hoisted_1$2={key:0,scope:"col",class:"line-numbers"},_hoisted_2$2={key:1,scope:"col",class:"vgt-checkbox-col"},_hoisted_3$2=["checked",".indeterminate"],_hoisted_4$2={key:2,scope:"col",class:"vgt-checkbox-col"},_hoisted_5$2=["title","aria-sort","aria-controls"],_hoisted_6$2=["onClick"],_hoisted_7$2={class:"sr-only"};function _sfc_render$2(e,t,n,r,o,a){const i=vue.resolveComponent("draggable"),l=vue.resolveComponent("vgt-filter-row");return vue.openBlock(),vue.createElementBlock("thead",null,[vue.createVNode(i,{tag:"tr",list:n.columns},{header:vue.withCtx((()=>[n.lineNumbers?(vue.openBlock(),vue.createElementBlock("th",_hoisted_1$2)):vue.createCommentVNode("v-if",!0),n.selectable?(vue.openBlock(),vue.createElementBlock("th",_hoisted_2$2,[vue.createElementVNode("input",{type:"checkbox",checked:n.allSelected,".indeterminate":n.allSelectedIndeterminate,onChange:t[0]||(t[0]=(...e)=>a.toggleSelectAll&&a.toggleSelectAll(...e))},null,40,_hoisted_3$2)])):vue.createCommentVNode("v-if",!0),n.expandRowsEnabled?(vue.openBlock(),vue.createElementBlock("th",_hoisted_4$2,[vue.createElementVNode("a",{href:"",onClick:t[1]||(t[1]=vue.withModifiers(((...e)=>a.toggleExpandRowsAll&&a.toggleExpandRowsAll(...e)),["prevent"])),class:"vgt-wrap__expander"}," (+) ")])):vue.createCommentVNode("v-if",!0)])),default:vue.withCtx((()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(n.columns,((t,n)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:n},[t.hidden?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("th",{key:0,scope:"col",title:t.tooltip,class:vue.normalizeClass(a.getHeaderClasses(t,n)),style:vue.normalizeStyle(o.columnStyles[n]),"aria-sort":a.getColumnSortLong(t),"aria-controls":`col-${n}`},[vue.renderSlot(e.$slots,"table-column",{column:t},(()=>[vue.createTextVNode(vue.toDisplayString(t.label),1)])),a.isSortableColumn(t)?(vue.openBlock(),vue.createElementBlock("button",{key:0,onClick:e=>a.sort(e,t)},[vue.createElementVNode("span",_hoisted_7$2," Sort table by "+vue.toDisplayString(t.label)+" in "+vue.toDisplayString(a.getColumnSortLong(t))+" order ",1)],8,_hoisted_6$2)):vue.createCommentVNode("v-if",!0)],14,_hoisted_5$2))],64)))),128))])),_:3},8,["list"]),vue.createVNode(l,{ref:"filter-row",onFilterChanged:a.filterRows,"global-search-enabled":n.searchEnabled,"line-numbers":n.lineNumbers,"expand-rows-enabled":n.expandRowsEnabled,selectable:n.selectable,columns:n.columns,mode:n.mode,"typed-columns":n.typedColumns},{"column-filter":vue.withCtx((t=>[vue.renderSlot(e.$slots,"column-filter",{column:t.column,updateFilters:t.updateFilters})])),_:3},8,["onFilterChanged","global-search-enabled","line-numbers","expand-rows-enabled","selectable","columns","mode","typed-columns"])])}var VgtTableHeader=_export_sfc(_sfc_main$2,[["render",_sfc_render$2]]);const _sfc_main$1={name:"VgtHeaderRow",props:{headerRow:{type:Object},columns:{type:Array},lineNumbers:{type:Boolean},selectable:{type:Boolean},selectAllByGroup:{type:Boolean},collapsable:{type:[Boolean,Number],default:!1},collectFormatted:{type:Function},formattedRow:{type:Function},getClasses:{type:Function},fullColspan:{type:Number},groupIndex:{type:Number}},emits:["vgtExpand","select-group-change"],data:()=>({}),computed:{allSelected(){const{headerRow:e}=this;return e.children.filter((e=>e.vgtSelected)).length===e.children.length}},methods:{columnCollapsable(e){return!0===this.collapsable?0===e:e===this.collapsable},toggleSelectGroup(e){this.$emit("select-group-change",{groupIndex:this.groupIndex,checked:e.target.checked})}},mounted(){},components:{}},_hoisted_1$1=["colspan"],_hoisted_2$1=["checked"],_hoisted_3$1=["innerHTML"],_hoisted_4$1={key:1},_hoisted_5$1={key:1,class:"vgt-row-header"},_hoisted_6$1={key:2,class:"vgt-row-header"},_hoisted_7$1=["checked"],_hoisted_8$1=["onClick"],_hoisted_9$1={key:0},_hoisted_10$1=["innerHTML"];function _sfc_render$1(e,t,n,r,o,a){return vue.openBlock(),vue.createElementBlock("tr",null,["span"===n.headerRow.mode?(vue.openBlock(),vue.createElementBlock("th",{key:0,class:"vgt-left-align vgt-row-header",colspan:n.fullColspan},[n.selectAllByGroup?vue.renderSlot(e.$slots,"table-header-group-select",{key:0,columns:n.columns,row:n.headerRow},(()=>[vue.createElementVNode("input",{type:"checkbox",checked:a.allSelected,onChange:t[0]||(t[0]=e=>a.toggleSelectGroup(e))},null,40,_hoisted_2$1)])):vue.createCommentVNode("v-if",!0),vue.createElementVNode("span",{onClick:t[1]||(t[1]=t=>n.collapsable?e.$emit("vgtExpand",!n.headerRow.vgtIsExpanded):()=>{})},[n.collapsable?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:vue.normalizeClass(["triangle",{expand:n.headerRow.vgtIsExpanded}])},null,2)):vue.createCommentVNode("v-if",!0),vue.renderSlot(e.$slots,"table-header-row",{row:n.headerRow},(()=>[n.headerRow.html?(vue.openBlock(),vue.createElementBlock("span",{key:0,innerHTML:n.headerRow.label},null,8,_hoisted_3$1)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$1,vue.toDisplayString(n.headerRow.label),1))]))])],8,_hoisted_1$1)):vue.createCommentVNode("v-if",!0),vue.createCommentVNode(" if the mode is not span, we display every column "),"span"!==n.headerRow.mode&&n.lineNumbers?(vue.openBlock(),vue.createElementBlock("th",_hoisted_5$1)):vue.createCommentVNode("v-if",!0),"span"!==n.headerRow.mode&&n.selectable?(vue.openBlock(),vue.createElementBlock("th",_hoisted_6$1,[n.selectAllByGroup?vue.renderSlot(e.$slots,"table-header-group-select",{key:0,columns:n.columns,row:n.headerRow},(()=>[vue.createElementVNode("input",{type:"checkbox",checked:a.allSelected,onChange:t[2]||(t[2]=e=>a.toggleSelectGroup(e))},null,40,_hoisted_7$1)])):vue.createCommentVNode("v-if",!0)])):vue.createCommentVNode("v-if",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(n.columns,((t,r)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:r},["span"===n.headerRow.mode||t.hidden?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("th",{key:0,class:vue.normalizeClass(["vgt-row-header",n.getClasses(r,"td")]),onClick:t=>a.columnCollapsable(r)?e.$emit("vgtExpand",!n.headerRow.vgtIsExpanded):()=>{}},[a.columnCollapsable(r)?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:vue.normalizeClass(["triangle",{expand:n.headerRow.vgtIsExpanded}])},null,2)):vue.createCommentVNode("v-if",!0),vue.renderSlot(e.$slots,"table-header-row",{row:n.headerRow,column:t,formattedRow:n.formattedRow(n.headerRow,!0)},(()=>[t.html?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("span",_hoisted_9$1,vue.toDisplayString(n.collectFormatted(n.headerRow,t,!0)),1)),t.html?(vue.openBlock(),vue.createElementBlock("span",{key:1,innerHTML:n.collectFormatted(n.headerRow,t,!0)},null,8,_hoisted_10$1)):vue.createCommentVNode("v-if",!0)]))],10,_hoisted_8$1))],64)))),128))])}var VgtHeaderRow=_export_sfc(_sfc_main$1,[["render",_sfc_render$1]]);function toInteger(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function requiredArgs(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function toDate(e){requiredArgs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function addMilliseconds(e,t){requiredArgs(2,arguments);var n=toDate(e).getTime(),r=toInteger(t);return new Date(n+r)}function getTimezoneOffsetInMilliseconds(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function compareAsc(e,t){requiredArgs(2,arguments);var n=toDate(e),r=toDate(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function isDate(e){return requiredArgs(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function isValid(e){if(requiredArgs(1,arguments),!isDate(e)&&"number"!=typeof e)return!1;var t=toDate(e);return!isNaN(Number(t))}var formatDistanceLocale={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance=function(e,t,n){var r,o=formatDistanceLocale[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatDistance$1=formatDistance;function buildFormatLongFn(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var dateFormats={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})},formatLong$1=formatLong,formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative=function(e,t,n,r){return formatRelativeLocale[e]},formatRelative$1=formatRelative;function buildLocalizeFn(e){return function(t,n){var r,o=n||{};if("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,i=o.width?String(o.width):a;r=e.formattingValues[i]||e.formattingValues[a]}else{var l=e.defaultWidth,s=o.width?String(o.width):e.defaultWidth;r=e.values[s]||e.values[l]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var eraValues={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber=function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},localize={ordinalNumber:ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})},localize$1=localize;function buildMatchFn(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var i,l=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?findIndex(s,(function(e){return e.test(l)})):findKey(s,(function(e){return e.test(l)}));return i=e.valueCallback?e.valueCallback(c):c,{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(l.length)}}}function findKey(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function findIndex(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function buildMatchPatternFn(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],a=t.match(e.parsePattern);if(!a)return null;var i=e.valueCallback?e.valueCallback(a[0]):a[0];return{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(o.length)}}}var matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})},match$1=match,locale={code:"en-US",formatDistance:formatDistance$1,formatLong:formatLong$1,formatRelative:formatRelative$1,localize:localize$1,match:match$1,options:{weekStartsOn:0,firstWeekContainsDate:1}},defaultLocale=locale;function subMilliseconds(e,t){return requiredArgs(2,arguments),addMilliseconds(e,-toInteger(t))}var MILLISECONDS_IN_DAY=864e5;function getUTCDayOfYear(e){requiredArgs(1,arguments);var t=toDate(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/MILLISECONDS_IN_DAY)+1}function startOfUTCISOWeek(e){requiredArgs(1,arguments);var t=toDate(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function getUTCISOWeekYear(e){requiredArgs(1,arguments);var t=toDate(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=startOfUTCISOWeek(r),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var i=startOfUTCISOWeek(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function startOfUTCISOWeekYear(e){requiredArgs(1,arguments);var t=getUTCISOWeekYear(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),startOfUTCISOWeek(n)}var MILLISECONDS_IN_WEEK$1=6048e5;function getUTCISOWeek(e){requiredArgs(1,arguments);var t=toDate(e),n=startOfUTCISOWeek(t).getTime()-startOfUTCISOWeekYear(t).getTime();return Math.round(n/MILLISECONDS_IN_WEEK$1)+1}function startOfUTCWeek(e,t){requiredArgs(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,a=null==o?0:toInteger(o),i=null==n.weekStartsOn?a:toInteger(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=toDate(e),s=l.getUTCDay(),c=(s<i?7:0)+s-i;return l.setUTCDate(l.getUTCDate()-c),l.setUTCHours(0,0,0,0),l}function getUTCWeekYear(e,t){requiredArgs(1,arguments);var n=toDate(e),r=n.getUTCFullYear(),o=t||{},a=o.locale,i=a&&a.options&&a.options.firstWeekContainsDate,l=null==i?1:toInteger(i),s=null==o.firstWeekContainsDate?l:toInteger(o.firstWeekContainsDate);if(!(s>=1&&s<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(r+1,0,s),c.setUTCHours(0,0,0,0);var u=startOfUTCWeek(c,t),d=new Date(0);d.setUTCFullYear(r,0,s),d.setUTCHours(0,0,0,0);var h=startOfUTCWeek(d,t);return n.getTime()>=u.getTime()?r+1:n.getTime()>=h.getTime()?r:r-1}function startOfUTCWeekYear(e,t){requiredArgs(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.firstWeekContainsDate,a=null==o?1:toInteger(o),i=null==n.firstWeekContainsDate?a:toInteger(n.firstWeekContainsDate),l=getUTCWeekYear(e,t),s=new Date(0);return s.setUTCFullYear(l,0,i),s.setUTCHours(0,0,0,0),startOfUTCWeek(s,t)}var MILLISECONDS_IN_WEEK=6048e5;function getUTCWeek(e,t){requiredArgs(1,arguments);var n=toDate(e),r=startOfUTCWeek(n,t).getTime()-startOfUTCWeekYear(n,t).getTime();return Math.round(r/MILLISECONDS_IN_WEEK)+1}function addLeadingZeros(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var formatters$2={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return addLeadingZeros("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):addLeadingZeros(n+1,2)},d:function(e,t){return addLeadingZeros(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return addLeadingZeros(e.getUTCHours()%12||12,t.length)},H:function(e,t){return addLeadingZeros(e.getUTCHours(),t.length)},m:function(e,t){return addLeadingZeros(e.getUTCMinutes(),t.length)},s:function(e,t){return addLeadingZeros(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return addLeadingZeros(Math.floor(r*Math.pow(10,n-3)),t.length)}},formatters$3=formatters$2,dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return formatters$3.y(e,t)},Y:function(e,t,n,r){var o=getUTCWeekYear(e,r),a=o>0?o:1-o;return"YY"===t?addLeadingZeros(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):addLeadingZeros(a,t.length)},R:function(e,t){return addLeadingZeros(getUTCISOWeekYear(e),t.length)},u:function(e,t){return addLeadingZeros(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return addLeadingZeros(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return addLeadingZeros(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return formatters$3.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return addLeadingZeros(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=getUTCWeek(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):addLeadingZeros(o,t.length)},I:function(e,t,n){var r=getUTCISOWeek(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):addLeadingZeros(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):formatters$3.d(e,t)},D:function(e,t,n){var r=getUTCDayOfYear(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):addLeadingZeros(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return addLeadingZeros(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return addLeadingZeros(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return addLeadingZeros(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?dayPeriodEnum.noon:0===o?dayPeriodEnum.midnight:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?dayPeriodEnum.evening:o>=12?dayPeriodEnum.afternoon:o>=4?dayPeriodEnum.morning:dayPeriodEnum.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return formatters$3.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):formatters$3.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):addLeadingZeros(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):addLeadingZeros(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):formatters$3.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):formatters$3.s(e,t)},S:function(e,t){return formatters$3.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return formatTimezoneWithOptionalMinutes(o);case"XXXX":case"XX":return formatTimezone(o);default:return formatTimezone(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return formatTimezoneWithOptionalMinutes(o);case"xxxx":case"xx":return formatTimezone(o);default:return formatTimezone(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(o,":");default:return"GMT"+formatTimezone(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(o,":");default:return"GMT"+formatTimezone(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return addLeadingZeros(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return addLeadingZeros((r._originalDate||e).getTime(),t.length)}};function formatTimezoneShort(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;if(0===a)return n+String(o);var i=t||"";return n+String(o)+i+addLeadingZeros(a,2)}function formatTimezoneWithOptionalMinutes(e,t){return e%60==0?(e>0?"-":"+")+addLeadingZeros(Math.abs(e)/60,2):formatTimezone(e,t)}function formatTimezone(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+addLeadingZeros(Math.floor(o/60),2)+n+addLeadingZeros(o%60,2)}var formatters$1=formatters;function dateLongFormatter(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function timeLongFormatter(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}function dateTimeLongFormatter(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return dateLongFormatter(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",dateLongFormatter(o,t)).replace("{{time}}",timeLongFormatter(a,t))}var longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},longFormatters$1=longFormatters,protectedDayOfYearTokens=["D","DD"],protectedWeekYearTokens=["YY","YYYY"];function isProtectedDayOfYearToken(e){return-1!==protectedDayOfYearTokens.indexOf(e)}function isProtectedWeekYearToken(e){return-1!==protectedWeekYearTokens.indexOf(e)}function throwProtectedError(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var formattingTokensRegExp$1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp$1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp$1=/^'([^]*?)'?$/,doubleQuoteRegExp$1=/''/g,unescapedLatinCharacterRegExp$1=/[a-zA-Z]/;function format(e,t,n){requiredArgs(2,arguments);var r=String(t),o=n||{},a=o.locale||defaultLocale,i=a.options&&a.options.firstWeekContainsDate,l=null==i?1:toInteger(i),s=null==o.firstWeekContainsDate?l:toInteger(o.firstWeekContainsDate);if(!(s>=1&&s<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=a.options&&a.options.weekStartsOn,u=null==c?0:toInteger(c),d=null==o.weekStartsOn?u:toInteger(o.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!a.localize)throw new RangeError("locale must contain localize property");if(!a.formatLong)throw new RangeError("locale must contain formatLong property");var h=toDate(e);if(!isValid(h))throw new RangeError("Invalid time value");var g=subMilliseconds(h,getTimezoneOffsetInMilliseconds(h)),p={firstWeekContainsDate:s,weekStartsOn:d,locale:a,_originalDate:h};return r.match(longFormattingTokensRegExp$1).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,longFormatters$1[t])(e,a.formatLong,p):e})).join("").match(formattingTokensRegExp$1).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return cleanEscapedString$1(n);var i=formatters$1[r];if(i)return!o.useAdditionalWeekYearTokens&&isProtectedWeekYearToken(n)&&throwProtectedError(n,t,e),!o.useAdditionalDayOfYearTokens&&isProtectedDayOfYearToken(n)&&throwProtectedError(n,t,e),i(g,n,a.localize,p);if(r.match(unescapedLatinCharacterRegExp$1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("")}function cleanEscapedString$1(e){return e.match(escapedStringRegExp$1)[1].replace(doubleQuoteRegExp$1,"'")}function assign(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function setUTCDay(e,t,n){requiredArgs(2,arguments);var r=n||{},o=r.locale,a=o&&o.options&&o.options.weekStartsOn,i=null==a?0:toInteger(a),l=null==r.weekStartsOn?i:toInteger(r.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=toDate(e),c=toInteger(t),u=((c%7+7)%7<l?7:0)+c-s.getUTCDay();return s.setUTCDate(s.getUTCDate()+u),s}function setUTCISODay(e,t){requiredArgs(2,arguments);var n=toInteger(t);n%7==0&&(n-=7);var r=toDate(e),o=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+o),r}function setUTCISOWeek(e,t){requiredArgs(2,arguments);var n=toDate(e),r=toInteger(t),o=getUTCISOWeek(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}function setUTCWeek(e,t,n){requiredArgs(2,arguments);var r=toDate(e),o=toInteger(t),a=getUTCWeek(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*a),r}var MILLISECONDS_IN_HOUR=36e5,MILLISECONDS_IN_MINUTE=6e4,MILLISECONDS_IN_SECOND=1e3,numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function parseNumericPattern(e,t,n){var r=t.match(e);if(!r)return null;var o=parseInt(r[0],10);return{value:n?n(o):o,rest:t.slice(r[0].length)}}function parseTimezonePattern(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*MILLISECONDS_IN_HOUR+a*MILLISECONDS_IN_MINUTE+i*MILLISECONDS_IN_SECOND),rest:t.slice(n[0].length)}}function parseAnyDigitsSigned(e,t){return parseNumericPattern(numericPatterns.anyDigitsSigned,e,t)}function parseNDigits(e,t,n){switch(e){case 1:return parseNumericPattern(numericPatterns.singleDigit,t,n);case 2:return parseNumericPattern(numericPatterns.twoDigits,t,n);case 3:return parseNumericPattern(numericPatterns.threeDigits,t,n);case 4:return parseNumericPattern(numericPatterns.fourDigits,t,n);default:return parseNumericPattern(new RegExp("^\\d{1,"+e+"}"),t,n)}}function parseNDigitsSigned(e,t,n){switch(e){case 1:return parseNumericPattern(numericPatterns.singleDigitSigned,t,n);case 2:return parseNumericPattern(numericPatterns.twoDigitsSigned,t,n);case 3:return parseNumericPattern(numericPatterns.threeDigitsSigned,t,n);case 4:return parseNumericPattern(numericPatterns.fourDigitsSigned,t,n);default:return parseNumericPattern(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function dayPeriodEnumToHours(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function normalizeTwoDigitYear(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var a=o+50;n=e+100*Math.floor(a/100)-(e>=a%100?100:0)}return r?n:1-n}var DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],DAYS_IN_MONTH_LEAP_YEAR=[31,29,31,30,31,30,31,31,30,31,30,31];function isLeapYearIndex(e){return e%400==0||e%4==0&&e%100!=0}var parsers={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,r){var o=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return parseNDigits(4,e,o);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:o});default:return parseNDigits(t.length,e,o)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var o=e.getUTCFullYear();if(n.isTwoDigitYear){var a=normalizeTwoDigitYear(n.year,o);return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,r){var o=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return parseNDigits(4,e,o);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:o});default:return parseNDigits(t.length,e,o)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var o=getUTCWeekYear(e,r);if(n.isTwoDigitYear){var a=normalizeTwoDigitYear(n.year,o);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),startOfUTCWeek(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),startOfUTCWeek(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,r){return parseNDigitsSigned("R"===t?4:t.length,e)},set:function(e,t,n,r){var o=new Date(0);return o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0),startOfUTCISOWeek(o)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,r){return parseNDigitsSigned("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return parseNDigits(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return parseNDigits(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,r){var o=function(e){return e-1};switch(t){case"M":return parseNumericPattern(numericPatterns.month,e,o);case"MM":return parseNDigits(2,e,o);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:o});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,r){var o=function(e){return e-1};switch(t){case"L":return parseNumericPattern(numericPatterns.month,e,o);case"LL":return parseNDigits(2,e,o);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:o});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return parseNumericPattern(numericPatterns.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return parseNDigits(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return startOfUTCWeek(setUTCWeek(e,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return parseNumericPattern(numericPatterns.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return parseNDigits(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return startOfUTCISOWeek(setUTCISOWeek(e,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"d":return parseNumericPattern(numericPatterns.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return parseNDigits(t.length,e)}},validate:function(e,t,n){var r=isLeapYearIndex(e.getUTCFullYear()),o=e.getUTCMonth();return r?t>=1&&t<=DAYS_IN_MONTH_LEAP_YEAR[o]:t>=1&&t<=DAYS_IN_MONTH[o]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"D":case"DD":return parseNumericPattern(numericPatterns.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return parseNDigits(t.length,e)}},validate:function(e,t,n){return isLeapYearIndex(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=setUTCDay(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return parseNDigits(t.length,e,o);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:o});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=setUTCDay(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return parseNDigits(t.length,e,o);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:o});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=setUTCDay(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,r){var o=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return parseNDigits(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o});default:return n.day(e,{width:"wide",context:"formatting",valueCallback:o})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return(e=setUTCISODay(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(dayPeriodEnumToHours(n),0,0,0),e},incompatibleTokens:["b","B","H","k","t","T"]},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(dayPeriodEnumToHours(n),0,0,0),e},incompatibleTokens:["a","B","H","k","t","T"]},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(dayPeriodEnumToHours(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return parseNumericPattern(numericPatterns.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return parseNDigits(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var o=e.getUTCHours()>=12;return o&&n<12?e.setUTCHours(n+12,0,0,0):o||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return parseNumericPattern(numericPatterns.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return parseNDigits(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return parseNumericPattern(numericPatterns.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return parseNDigits(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return parseNumericPattern(numericPatterns.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return parseNDigits(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var o=n<=24?n%24:n;return e.setUTCHours(o,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return parseNumericPattern(numericPatterns.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return parseNDigits(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return parseNumericPattern(numericPatterns.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return parseNDigits(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,r){return parseNDigits(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,e);case"XX":return parseTimezonePattern(timezonePatterns.basic,e);case"XXXX":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,e);case"XXXXX":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,e);default:return parseTimezonePattern(timezonePatterns.extended,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,e);case"xx":return parseTimezonePattern(timezonePatterns.basic,e);case"xxxx":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,e);case"xxxxx":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,e);default:return parseTimezonePattern(timezonePatterns.extended,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,r){return parseAnyDigitsSigned(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,r){return parseAnyDigitsSigned(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}},parsers$1=parsers,TIMEZONE_UNIT_PRIORITY=10,formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,notWhitespaceRegExp=/\S/,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function parse(e,t,n,r){requiredArgs(3,arguments);var o=String(e),a=String(t),i=r||{},l=i.locale||defaultLocale;if(!l.match)throw new RangeError("locale must contain match property");var s=l.options&&l.options.firstWeekContainsDate,c=null==s?1:toInteger(s),u=null==i.firstWeekContainsDate?c:toInteger(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=l.options&&l.options.weekStartsOn,h=null==d?0:toInteger(d),g=null==i.weekStartsOn?h:toInteger(i.weekStartsOn);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===a)return""===o?toDate(n):new Date(NaN);var p,f={firstWeekContainsDate:u,weekStartsOn:g,locale:l},m=[{priority:TIMEZONE_UNIT_PRIORITY,subPriority:-1,set:dateToSystemTimezone,index:0}],v=a.match(longFormattingTokensRegExp).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,longFormatters$1[t])(e,l.formatLong,f):e})).join("").match(formattingTokensRegExp),b=[];for(p=0;p<v.length;p++){var w=v[p];!i.useAdditionalWeekYearTokens&&isProtectedWeekYearToken(w)&&throwProtectedError(w,a,e),!i.useAdditionalDayOfYearTokens&&isProtectedDayOfYearToken(w)&&throwProtectedError(w,a,e);var y=w[0],E=parsers$1[y];if(E){var _=E.incompatibleTokens;if(Array.isArray(_)){for(var S=void 0,x=0;x<b.length;x++){var T=b[x].token;if(-1!==_.indexOf(T)||T===y){S=b[x];break}}if(S)throw new RangeError("The format string mustn't contain `".concat(S.fullToken,"` and `").concat(w,"` at the same time"))}else if("*"===E.incompatibleTokens&&b.length)throw new RangeError("The format string mustn't contain `".concat(w,"` and any other token at the same time"));b.push({token:y,fullToken:w});var C=E.parse(o,w,l.match,f);if(!C)return new Date(NaN);m.push({priority:E.priority,subPriority:E.subPriority||0,set:E.set,validate:E.validate,value:C.value,index:m.length}),o=C.rest}else{if(y.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");if("''"===w?w="'":"'"===y&&(w=cleanEscapedString(w)),0!==o.indexOf(w))return new Date(NaN);o=o.slice(w.length)}}if(o.length>0&&notWhitespaceRegExp.test(o))return new Date(NaN);var P=m.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return m.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),D=toDate(n);if(isNaN(D))return new Date(NaN);var k=subMilliseconds(D,getTimezoneOffsetInMilliseconds(D)),O={};for(p=0;p<P.length;p++){var I=P[p];if(I.validate&&!I.validate(k,I.value,f))return new Date(NaN);var N=I.set(k,O,I.value,f);N[0]?(k=N[0],assign(O,N[1])):k=N}return k}function dateToSystemTimezone(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}function cleanEscapedString(e){return e.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,"'")}const date=Object.assign({},defaultType);date.isRight=!0,date.compare=function(e,t,n){function r(e){if(n&&n.dateInputFormat)return parse(`${e}`,`${n.dateInputFormat}`,new Date);if("string"==typeof e)try{return Date.parse(e)}catch(t){return e}return e}return e=r(e),t=r(t),isValid(e)?isValid(t)?compareAsc(e,t):1:-1},date.format=function(e,t){if(null==e)return"";const n=parse(e,t.dateInputFormat,new Date);return isValid(n)?format(n,t.dateOutputFormat):(console.error(`Not a valid date: "${e}"`),null)};var date$1=Object.freeze({__proto__:null,default:date});const number=Object.assign({},defaultType);number.isRight=!0,number.filterPredicate=function(e,t){return 0===number.compare(e,t)},number.compare=function(e,t){function n(e){return null==e?-1/0:e.indexOf(".")>=0?parseFloat(e):parseInt(e,10)}return(e="number"==typeof e?e:n(e))<(t="number"==typeof t?t:n(t))?-1:e>t?1:0};var number$1=Object.freeze({__proto__:null,default:number});const decimal=Object.assign({},number);decimal.format=function(e){return null==e?"":parseFloat(Math.round(100*e)/100).toFixed(2)};var decimal$1=Object.freeze({__proto__:null,default:decimal});const percentage=Object.assign({},number);percentage.format=function(e){return null==e?"":`${parseFloat(100*e).toFixed(2)}%`};var percentage$1=Object.freeze({__proto__:null,default:percentage});const boolean=Object.assign({},defaultType);boolean.isRight=!0,boolean.filterPredicate=function(e,t){return 0===boolean.compare(e,t)},boolean.compare=function(e,t){function n(e){return"boolean"==typeof e?e?1:0:"string"==typeof e?"true"===e?1:0:-1/0}return(e=n(e))<(t=n(t))?-1:e>t?1:0};var boolean$1=Object.freeze({__proto__:null,default:boolean}),index$1={date:date$1,decimal:decimal$1,number:number$1,percentage:percentage$1,boolean:boolean$1};const dataTypes={},coreDataTypes=index$1;Object.keys(coreDataTypes).forEach((e=>{const t=e.replace(/^\.\//,"").replace(/\.js/,"");dataTypes[t]=coreDataTypes[e].default}));const _sfc_main={name:"vue-good-table",props:{isLoading:{default:null,type:Boolean},maxHeight:{default:null,type:String},fixedHeader:Boolean,theme:{default:""},mode:{default:"local"},totalRows:{},styleClass:{default:"vgt-table bordered"},columns:{},rows:{},lineNumbers:Boolean,responsive:{default:!0,type:Boolean},rtl:Boolean,rowStyleClass:{default:null,type:[Function,String]},compactMode:Boolean,enableRowExpand:{default:!1,type:Boolean},expandRowsOptions:{default:()=>({enabled:!1})},groupOptions:{default:()=>({enabled:!1,collapsable:!1,rowKey:null})},selectOptions:{default:()=>({enabled:!1,selectionInfoClass:"",selectionText:"rows selected",clearSelectionText:"clear",disableSelectInfo:!1,selectAllByGroup:!1})},sortOptions:{default:()=>({enabled:!0,multipleColumns:!0,initialSortBy:{}})},paginationOptions:{default:()=>({enabled:!1,position:"bottom",perPage:10,perPageDropdown:null,perPageDropdownEnabled:!0,dropdownAllowAll:!0,mode:"records",infoFn:null})},searchOptions:{default:()=>({enabled:!1,trigger:null,externalQuery:null,searchFn:null,placeholder:"Search Table"})},expandedRowClasses:{default:"",type:String},expandedRowDetailClasses:{default:"",type:String}},data:()=>({tableLoading:!1,nextText:"Next",prevText:"Previous",rowsPerPageText:"Rows per page",ofText:"of",allText:"All",pageText:"page",selectable:!1,selectOnCheckboxOnly:!1,selectAllByPage:!0,disableSelectInfo:!1,selectionInfoClass:"",selectionText:"rows selected",clearSelectionText:"clear",maintainExpanded:!0,expandedRowKeys:new Set,sortable:!0,defaultSortBy:null,multipleColumnSort:!0,searchEnabled:!1,searchTrigger:null,externalSearchQuery:null,searchFn:null,searchPlaceholder:"Search Table",searchSkipDiacritics:!1,perPage:null,paginate:!1,paginateOnTop:!1,paginateOnBottom:!0,customRowsPerPageDropdown:[],paginateDropdownAllowAll:!0,paginationMode:"records",paginationInfoFn:null,currentPage:1,currentPerPage:10,sorts:[],globalSearchTerm:"",filteredRows:[],columnFilters:{},forceSearch:!1,sortChanged:!1,dataTypes:dataTypes||{},expandedRowIndex:null}),emits:["select-all","selected-rows-change","search","per-page-change","page-change","update:isLoading","sort-change","row-click","row-dblclick","row-aux-click","cell-click","row-mouseenter","row-mouseleave","column-filter"],watch:{rows:{handler(){this.$emit("update:isLoading",!1),this.filterRows(this.columnFilters,!1)},deep:!0,immediate:!0},selectOptions:{handler(){this.initializeSelect()},deep:!0,immediate:!0},paginationOptions:{handler(e,t){isEqual(e,t)||this.initializePagination()},deep:!0,immediate:!0},expandRowsOptions:{handler(e,t){this.initializeExpandRows()},deep:!0,immediate:!0},searchOptions:{handler(){void 0!==this.searchOptions.externalQuery&&this.searchOptions.externalQuery!==this.searchTerm&&(this.externalSearchQuery=this.searchOptions.externalQuery,this.handleSearch()),this.initializeSearch()},deep:!0,immediate:!0},sortOptions:{handler(e,t){isEqual(e,t)||this.initializeSort()},deep:!0},selectedRows(e,t){isEqual(e,t)||this.$emit("selected-rows-change",{selectedRows:this.selectedRows})}},computed:{tableStyles(){return this.compactMode?this.tableStyleClasses+"vgt-compact":this.tableStyleClasses},hasFooterSlot(){return!!this.$slots["table-actions-bottom"]},wrapperStyles(){return{overflow:"scroll-y",maxHeight:this.maxHeight?this.maxHeight:"auto"}},rowKeyField(){return this.groupOptions.rowKey||"vgt_header_id"},hasHeaderRowTemplate(){return!!this.$slots["table-header-row"]},showEmptySlot(){return!this.paginated.length||"no groups"===this.paginated[0].label&&!this.paginated[0].children.length},allSelected(){return this.selectedRowCount>0&&(this.selectAllByPage&&this.selectedPageRowsCount===this.totalPageRowCount||!this.selectAllByPage&&this.selectedRowCount===this.totalRowCount)},allSelectedIndeterminate(){return!this.allSelected&&(this.selectAllByPage&&this.selectedPageRowsCount>0||!this.selectAllByPage&&this.selectedRowCount>0)},selectionInfo(){return`${this.selectedRowCount} ${this.selectionText}`},selectedRowCount(){return this.selectedRows.length},selectedPageRowsCount(){return this.selectedPageRows.length},selectedPageRows(){const e=[];return this.paginated.forEach((t=>{t.children.forEach((t=>{t.vgtSelected&&e.push(t)}))})),e},selectedRows(){const e=[];return this.processedRows.forEach((t=>{t.children.forEach((t=>{t.vgtSelected&&e.push(t)}))})),e.sort(((e,t)=>e.originalIndex-t.originalIndex))},fullColspan(){let e=0;for(let t=0;t<this.columns.length;t+=1)this.columns[t].hidden||(e+=1);return this.lineNumbers&&e++,this.selectable&&e++,this.expandRowsEnabled&&e++,e},groupHeaderOnTop(){return!(this.groupOptions&&this.groupOptions.enabled&&this.groupOptions.headerPosition&&"bottom"===this.groupOptions.headerPosition)&&!(!this.groupOptions||!this.groupOptions.enabled)},groupHeaderOnBottom(){return!!(this.groupOptions&&this.groupOptions.enabled&&this.groupOptions.headerPosition&&"bottom"===this.groupOptions.headerPosition)},totalRowCount(){return this.processedRows.reduce(((e,t)=>e+(t.children?t.children.length:0)),0)},totalPageRowCount(){return this.paginated.reduce(((e,t)=>e+(t.children?t.children.length:0)),0)},wrapStyleClasses(){let e="vgt-wrap";return this.rtl&&(e+=" rtl"),e+=` ${this.theme}`,e},tableStyleClasses(){let e=this.styleClass;return e+=` ${this.theme}`,e},searchTerm(){return null!=this.externalSearchQuery?this.externalSearchQuery:this.globalSearchTerm},globalSearchAllowed(){return!(!this.searchEnabled||!this.globalSearchTerm||"enter"===this.searchTrigger)||(null!=this.externalSearchQuery&&"enter"!==this.searchTrigger||!!this.forceSearch&&(this.forceSearch=!1,!0))},processedRows(){let e=this.filteredRows;if("remote"===this.mode)return e;if(this.globalSearchAllowed){const t=[];this.filteredRows.forEach((e=>{t.push(...e.children)}));const n=[];t.forEach((e=>{for(let t=0;t<this.columns.length;t+=1){const r=this.columns[t];if(!r.globalSearchDisabled)if(this.searchFn){if(this.searchFn(e,r,this.collectFormatted(e,r),this.searchTerm)){n.push(e);break}}else{if(defaultType.filterPredicate(this.collectFormatted(e,r),this.searchTerm,this.searchSkipDiacritics)){n.push(e);break}}}})),this.$emit("search",{searchTerm:this.searchTerm,rowCount:n.length}),e=[],this.filteredRows.forEach((t=>{const r=t.vgt_header_id,o=n.filter((e=>e.vgt_id===r));if(o.length){const n=JSON.parse(JSON.stringify(t));n.children=o,e.push(n)}}))}return this.sorts.length&&e.forEach((e=>{e.children.sort(((e,t)=>{let n;for(let r=0;r<this.sorts.length;r+=1){const o=this.sorts[r];if(o.type===SORT_TYPES.None)n=n||e.originalIndex-t.originalIndex;else{const r=this.getColumnForField(o.field),a=this.collect(e,o.field),i=this.collect(t,o.field),{sortFn:l}=r;n=l&&"function"==typeof l?n||l(a,i,r,e,t)*(o.type===SORT_TYPES.Descending?-1:1):n||r.typeDef.compare(a,i,r)*(o.type===SORT_TYPES.Descending?-1:1)}}return n}))})),"enter"===this.searchTrigger&&(this.filteredRows=e),e},paginated(){if(!this.processedRows.length)return[];if("remote"===this.mode)return this.processedRows;let e=[];if(this.processedRows.forEach((t=>{this.groupOptions.enabled&&e.push(t),e.push(...t.children)})),this.paginate){let t=(this.currentPage-1)*this.currentPerPage;(t>=e.length||-1===this.currentPerPage)&&(this.currentPage=1,t=0);let n=e.length+1;-1!==this.currentPerPage&&(n=this.currentPage*this.currentPerPage),e=e.slice(t,n)}const t=[];return e.forEach((e=>{if(void 0!==e.vgt_header_id){this.handleExpanded(e);const n=JSON.parse(JSON.stringify(e));n.children=[],t.push(n)}else{let n=t.find((t=>t.vgt_header_id===e.vgt_id));n||(n=this.processedRows.find((t=>t.vgt_header_id===e.vgt_id)),n&&(n=JSON.parse(JSON.stringify(n)),n.children=[],t.push(n))),n.children.push(e)}})),t},originalRows(){const e=JSON.parse(JSON.stringify(this.rows));let t=[];t=this.groupOptions.enabled?this.handleGrouped(e):this.handleGrouped([{label:"no groups",children:e}]);let n=0;return t.forEach((e=>{e.children.forEach((e=>{e.originalIndex=n++}))})),t},typedColumns(){const e=this.columns;for(let t=0;t<this.columns.length;t++){const n=e[t];n.typeDef=this.dataTypes[n.type]||defaultType}return e},hasRowClickListener(){return this.$attrs&&this.$attrs["row-click"]}},methods:{handleExpanded(e){this.maintainExpanded&&this.expandedRowKeys.has(e[this.rowKeyField])?e.vgtIsExpanded=!0:e.vgtIsExpanded=!1},toggleExpand(e){const t=this.filteredRows.find((t=>t[this.rowKeyField]===e));t&&(t.vgtIsExpanded=!t.vgtIsExpanded),this.maintainExpanded&&t.vgtIsExpanded?this.expandedRowKeys.add(t[this.rowKeyField]):this.expandedRowKeys.delete(t[this.rowKeyField])},expandAll(){this.filteredRows.forEach((e=>{e.vgtIsExpanded=!0,this.maintainExpanded&&this.expandedRowKeys.add(e[this.rowKeyField])}))},collapseAll(){this.filteredRows.forEach((e=>{e.vgtIsExpanded=!1,this.expandedRowKeys.clear()}))},getColumnForField(e){for(let t=0;t<this.typedColumns.length;t+=1)if(this.typedColumns[t].field===e)return this.typedColumns[t]},handleSearch(){this.resetTable(),"remote"===this.mode&&this.$emit("search",{searchTerm:this.searchTerm})},reset(){this.initializeSort(),this.changePage(1),this.$refs["table-header-primary"].reset(!0),this.$refs["table-header-secondary"]&&this.$refs["table-header-secondary"].reset(!0)},emitSelectedRows(){this.$emit("select-all",{selected:this.selectedRowCount===this.totalRowCount,selectedRows:this.selectedRows})},unselectAllInternal(e){(this.selectAllByPage&&!e?this.paginated:this.filteredRows).forEach(((e,t)=>{e.children.forEach(((e,t)=>{e.vgtSelected=!1}))})),this.emitSelectedRows()},toggleSelectAll(){if(this.allSelected)return void this.unselectAllInternal();(this.selectAllByPage?this.paginated:this.filteredRows).forEach((e=>{e.children.forEach((e=>{e.vgtSelected=!0}))})),this.emitSelectedRows()},toggleExpandRowsAll(){for(let e of this.rows)e.expandedRow?e.expanded=!e.expanded:e.expanded=!1;this.$emit("toggle-expand-rows-all",{})},toggleSelectGroup(e,t){t.children.forEach((t=>{t.vgtSelected=e}))},changePage(e){const t=this.paginate;let{paginationBottom:n,paginationTop:r}=this.$refs;t&&(this.paginateOnTop&&r&&(r.currentPage=e),this.paginateOnBottom&&n&&(n.currentPage=e),this.currentPage=e)},pageChangedEvent(){return{currentPage:this.currentPage,currentPerPage:this.currentPerPage,total:Math.floor(this.totalRowCount/this.currentPerPage)}},pageChanged(e){if(this.currentPage=e.currentPage,!e.noEmit){const t=this.pageChangedEvent();t.prevPage=e.prevPage,this.$emit("page-change",t),"remote"===this.mode&&this.$emit("update:isLoading",!0)}},perPageChanged(e){this.currentPerPage=e.currentPerPage;let t=this.paginationOptions.position;!this.$refs.paginationTop||"top"!==t&&"both"!==t||(this.$refs.paginationTop.currentPerPage=this.currentPerPage),!this.$refs.paginationBottom||"bottom"!==t&&"both"!==t||(this.$refs.paginationBottom.currentPerPage=this.currentPerPage);const n=this.pageChangedEvent();this.$emit("per-page-change",n),"remote"===this.mode&&this.$emit("update:isLoading",!0)},changeSort(e){this.sorts=e,this.$emit("sort-change",e),this.changePage(1),"remote"!==this.mode?this.sortChanged=!0:this.$emit("update:isLoading",!0)},toggleRowExpand(e,t){this.expandedRowIndex===t?this.expandedRowIndex=null:this.expandedRowIndex=t},onCheckboxClicked(e,t,n){this.enableRowExpand&&this.toggleRowExpand(e,t),e.vgtSelected=!e.vgtSelected,this.$emit("row-click",{row:e,pageIndex:t,selected:!!e.vgtSelected,event:n})},toggleExpandRow(e){e.expanded=!e.expanded},onRowDoubleClicked(e,t,n){this.$emit("row-dblclick",{row:e,pageIndex:t,selected:!!e.vgtSelected,event:n})},onRowClicked(e,t,n){this.enableRowExpand&&this.toggleRowExpand(e,t),this.selectable&&!this.selectOnCheckboxOnly&&(e.vgtSelected=!e.vgtSelected),this.$emit("row-click",{row:e,pageIndex:t,selected:!!e.vgtSelected,event:n})},onRowAuxClicked(e,t,n){this.$emit("row-aux-click",{row:e,pageIndex:t,selected:!!e.vgtSelected,event:n})},onCellClicked(e,t,n,r){this.$emit("cell-click",{row:e,column:t,rowIndex:n,event:r})},onMouseenter(e,t){this.$emit("row-mouseenter",{row:e,pageIndex:t})},onMouseleave(e,t){this.$emit("row-mouseleave",{row:e,pageIndex:t})},searchTableOnEnter(){"enter"===this.searchTrigger&&(this.handleSearch(),this.filteredRows=JSON.parse(JSON.stringify(this.originalRows)),this.forceSearch=!0,this.sortChanged=!0)},searchTableOnKeyUp(){"enter"!==this.searchTrigger&&this.handleSearch()},resetTable(){this.unselectAllInternal(!0),this.changePage(1)},collect:(e,t)=>"function"==typeof t?t(e):"string"==typeof t?function(e,t){let n=e;const r=t.split(".");for(let e=0;e<r.length;e++){if(null==n)return;n=n[r[e]]}return n}(e,t):void 0,collectFormatted(e,t,n=!1){let r;if(r=n&&t.headerField?this.collect(e,t.headerField):this.collect(e,t.field),void 0===r)return"";if(t.formatFn&&"function"==typeof t.formatFn)return t.formatFn(r,e);let o=t.typeDef;o||(o=this.dataTypes[t.type]||defaultType);let a=o.format(r,t);return!this.compactMode||""!=a&&null!=a?a:"-"},formattedRow(e,t=!1){const n={};for(let r=0;r<this.typedColumns.length;r++){const o=this.typedColumns[r];o.field&&(n[o.field]=this.collectFormatted(e,o,t))}return n},getClasses(e,t,n){const{typeDef:r,[`${t}Class`]:o}=this.typedColumns[e];let{isRight:a}=r;this.rtl&&(a=!0);const i={"vgt-right-align":a,"vgt-left-align":!a};return"function"==typeof o?i[o(n)]=!0:"string"==typeof o&&(i[o]=!0),i},filterRows(e,t=!0){this.columnFilters=e;let n=JSON.parse(JSON.stringify(this.originalRows)),r=!1;if(this.columnFilters&&Object.keys(this.columnFilters).length){if(("remote"!==this.mode||t)&&this.changePage(1),t&&this.$emit("column-filter",{columnFilters:this.columnFilters}),"remote"===this.mode)return void(t?this.$emit("update:isLoading",!0):this.filteredRows=n);const e=e=>"function"==typeof e&&e.name?e.name:e;for(let t=0;t<this.typedColumns.length;t++){const o=this.typedColumns[t];this.columnFilters[e(o.field)]&&(r=!0,n.forEach((t=>{const n=t.children.filter((t=>{if(o.filterOptions&&"function"==typeof o.filterOptions.filterFn)return o.filterOptions.filterFn(this.collect(t,o.field),this.columnFilters[e(o.field)]);const{typeDef:n}=o;return n.filterPredicate(this.collect(t,o.field),this.columnFilters[e(o.field)],!1,o.filterOptions&&"object"==typeof o.filterOptions.filterDropdownItems)}));t.children=n})))}}this.filteredRows=r?n.filter((e=>e.children&&e.children.length)):n},getCurrentIndex(e){let t=0,n=!1;for(let r=0;r<this.paginated.length;r+=1){const o=this.paginated[r],{children:a}=o;if(a&&a.length)for(let r=0;r<a.length;r+=1){if(a[r].originalIndex===e){n=!0;break}t+=1}if(n)break}return(this.currentPage-1)*this.currentPerPage+t+1},getRowStyleClass(e){let t,n="";return this.hasRowClickListener&&(n+="clickable"),t="function"==typeof this.rowStyleClass?this.rowStyleClass(e):this.rowStyleClass,t&&(n+=` ${t}`),this.expandedRowIndex===e.originalIndex&&(n+=` ${this.expandedRowClasses}`),n},handleGrouped(e){return e.forEach(((e,t)=>{e.vgt_header_id=t,this.groupOptions.maintainExpanded&&this.expandedRowKeys.has(e[this.groupOptions.rowKey])&&(e.vgtIsExpanded=!0),e.children.forEach((e=>{e.vgt_id=t}))})),e},initializePagination(){const{enabled:e,perPage:t,position:n,perPageDropdown:r,perPageDropdownEnabled:o,dropdownAllowAll:a,nextLabel:i,prevLabel:l,rowsPerPageLabel:s,ofLabel:c,pageLabel:u,allLabel:d,setCurrentPage:h,mode:g,infoFn:p}=this.paginationOptions;"boolean"==typeof e&&(this.paginate=e),"number"==typeof t&&(this.perPage=t),"top"===n?(this.paginateOnTop=!0,this.paginateOnBottom=!1):"both"===n&&(this.paginateOnTop=!0,this.paginateOnBottom=!0),Array.isArray(r)&&r.length&&(this.customRowsPerPageDropdown=r,this.perPage||([this.perPage]=r)),"boolean"==typeof o&&(this.perPageDropdownEnabled=o),"boolean"==typeof a&&(this.paginateDropdownAllowAll=a),"string"==typeof g&&(this.paginationMode=g),"string"==typeof i&&(this.nextText=i),"string"==typeof l&&(this.prevText=l),"string"==typeof s&&(this.rowsPerPageText=s),"string"==typeof c&&(this.ofText=c),"string"==typeof u&&(this.pageText=u),"string"==typeof d&&(this.allText=d),"number"==typeof h&&setTimeout((()=>{this.changePage(h)}),500),"function"==typeof p&&(this.paginationInfoFn=p)},initializeExpandRows(){const{enabled:e}=this.expandRowsOptions;"boolean"==typeof e&&(this.expandRowsEnabled=e)},initializeSearch(){const{enabled:e,trigger:t,externalQuery:n,searchFn:r,placeholder:o,skipDiacritics:a}=this.searchOptions;"boolean"==typeof e&&(this.searchEnabled=e),"enter"===t&&(this.searchTrigger=t),"string"==typeof n&&(this.externalSearchQuery=n),"function"==typeof r&&(this.searchFn=r),"string"==typeof o&&(this.searchPlaceholder=o),"boolean"==typeof a&&(this.searchSkipDiacritics=a)},initializeSort(){const{enabled:e,initialSortBy:t,multipleColumns:n}=this.sortOptions,r=JSON.parse(JSON.stringify(t||{}));if("boolean"==typeof e&&(this.sortable=e),"boolean"==typeof n&&(this.multipleColumnSort=n),"object"==typeof r){const e=this.fixedHeader?this.$refs["table-header-secondary"]:this.$refs["table-header-primary"];if(Array.isArray(r))e.setInitialSort(r);else{Object.prototype.hasOwnProperty.call(r,"field")&&e.setInitialSort([r])}}},initializeSelect(){const{enabled:e,selectionInfoClass:t,selectionText:n,clearSelectionText:r,selectOnCheckboxOnly:o,selectAllByPage:a,disableSelectInfo:i,selectAllByGroup:l}=this.selectOptions;"boolean"==typeof e&&(this.selectable=e),"boolean"==typeof o&&(this.selectOnCheckboxOnly=o),"boolean"==typeof a&&(this.selectAllByPage=a),"boolean"==typeof l&&(this.selectAllByGroup=l),"boolean"==typeof i&&(this.disableSelectInfo=i),"string"==typeof t&&(this.selectionInfoClass=t),"string"==typeof n&&(this.selectionText=n),"string"==typeof r&&(this.clearSelectionText=r)}},mounted(){this.perPage&&(this.currentPerPage=this.perPage),this.initializeSort()},components:{"vgt-pagination":VgtPagination,"vgt-global-search":VgtGlobalSearch,"vgt-header-row":VgtHeaderRow,"vgt-table-header":VgtTableHeader}},_hoisted_1={key:0,class:"vgt-loading vgt-center-align"},_hoisted_2=vue.createElementVNode("span",{class:"vgt-loading__content"}," Loading... ",-1),_hoisted_3={class:"vgt-selection-info-row__actions vgt-pull-right"},_hoisted_4={class:"vgt-fixed-header"},_hoisted_5=["id"],_hoisted_6=["id"],_hoisted_7=["onMouseenter","onMouseleave","onDblclick","onClick","onAuxclick"],_hoisted_8={key:0,class:"line-numbers"},_hoisted_9=["onClick"],_hoisted_10=["disabled","checked"],_hoisted_11=["onClick","data-label"],_hoisted_12={key:0},_hoisted_13=["innerHTML"],_hoisted_14=["colspan"],_hoisted_15=["colspan"],_hoisted_16={key:0},_hoisted_17=["colspan"],_hoisted_18=vue.createElementVNode("div",{class:"vgt-center-align vgt-text-disabled"}," No data for table ",-1),_hoisted_19={key:2,class:"vgt-wrap__actions-footer"};function _sfc_render(e,t,n,r,o,a){const i=vue.resolveComponent("vgt-pagination"),l=vue.resolveComponent("vgt-global-search"),s=vue.resolveComponent("vgt-table-header"),c=vue.resolveComponent("vgt-header-row");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(a.wrapStyleClasses)},[n.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1,[vue.renderSlot(e.$slots,"loadingContent",{},(()=>[_hoisted_2]))])):vue.createCommentVNode("v-if",!0),vue.createElementVNode("div",{class:vue.normalizeClass(["vgt-inner-wrap",{"is-loading":n.isLoading}])},[e.paginate&&e.paginateOnTop?vue.renderSlot(e.$slots,"pagination-top",{key:0,pageChanged:a.pageChanged,perPageChanged:a.perPageChanged,total:n.totalRows||a.totalRowCount},(()=>[vue.createVNode(i,{ref:"paginationTop",onPageChanged:a.pageChanged,onPerPageChanged:a.perPageChanged,perPage:e.perPage,rtl:n.rtl,total:n.totalRows||a.totalRowCount,mode:e.paginationMode,nextText:e.nextText,prevText:e.prevText,rowsPerPageText:e.rowsPerPageText,perPageDropdownEnabled:n.paginationOptions.perPageDropdownEnabled,customRowsPerPageDropdown:e.customRowsPerPageDropdown,paginateDropdownAllowAll:e.paginateDropdownAllowAll,ofText:e.ofText,pageText:e.pageText,allText:e.allText,"info-fn":e.paginationInfoFn},null,8,["onPageChanged","onPerPageChanged","perPage","rtl","total","mode","nextText","prevText","rowsPerPageText","perPageDropdownEnabled","customRowsPerPageDropdown","paginateDropdownAllowAll","ofText","pageText","allText","info-fn"])])):vue.createCommentVNode("v-if",!0),vue.createVNode(l,{onKeyup:a.searchTableOnKeyUp,onEnter:a.searchTableOnEnter,value:e.globalSearchTerm,onInput:t[0]||(t[0]=t=>e.globalSearchTerm=t),"search-enabled":e.searchEnabled&&null==e.externalSearchQuery,"global-search-placeholder":e.searchPlaceholder},vue.createSlots({_:2},[e.$slots["table-actions"]?{name:"internal-table-actions",fn:vue.withCtx((()=>[vue.renderSlot(e.$slots,"table-actions")]))}:void 0]),1032,["onKeyup","onEnter","value","search-enabled","global-search-placeholder"]),a.selectedRowCount&&!e.disableSelectInfo?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["vgt-selection-info-row clearfix",e.selectionInfoClass])},[vue.createTextVNode(vue.toDisplayString(a.selectionInfo)+" ",1),vue.createElementVNode("a",{href:"",onClick:t[1]||(t[1]=vue.withModifiers((e=>a.unselectAllInternal(!0)),["prevent"]))},vue.toDisplayString(e.clearSelectionText),1),vue.createElementVNode("div",_hoisted_3,[vue.renderSlot(e.$slots,"selected-row-actions")])],2)):vue.createCommentVNode("v-if",!0),vue.createElementVNode("div",_hoisted_4,[n.fixedHeader?(vue.openBlock(),vue.createElementBlock("table",{key:0,id:"vgt-table",class:vue.normalizeClass(a.tableStyleClasses)},[vue.createElementVNode("colgroup",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(n.columns,((e,t)=>(vue.openBlock(),vue.createElementBlock("col",{key:t,id:`col-${t}`},null,8,_hoisted_5)))),128))]),vue.createCommentVNode(" Table header "),vue.createVNode(s,{ref:"table-header-secondary",onToggleSelectAll:a.toggleSelectAll,onToggleExpandRowsAll:a.toggleExpandRowsAll,onSortChange:a.changeSort,onFilterChanged:a.filterRows,columns:n.columns,"line-numbers":n.lineNumbers,selectable:e.selectable,"all-selected":a.allSelected,"all-selected-indeterminate":a.allSelectedIndeterminate,mode:n.mode,sortable:e.sortable,"multiple-column-sort":e.multipleColumnSort,"typed-columns":a.typedColumns,getClasses:a.getClasses,searchEnabled:e.searchEnabled,paginated:a.paginated,"table-ref":e.$refs.table},{"table-column":vue.withCtx((t=>[vue.renderSlot(e.$slots,"table-column",{column:t.column},(()=>[vue.createElementVNode("span",null,vue.toDisplayString(t.column.label),1)]))])),"column-filter":vue.withCtx((t=>[vue.renderSlot(e.$slots,"column-filter",{column:t.column,updateFilters:t.updateFilters})])),_:3},8,["onToggleSelectAll","onToggleExpandRowsAll","onSortChange","onFilterChanged","columns","line-numbers","selectable","all-selected","all-selected-indeterminate","mode","sortable","multiple-column-sort","typed-columns","getClasses","searchEnabled","paginated","table-ref"])],2)):vue.createCommentVNode("v-if",!0)]),vue.createElementVNode("div",{class:vue.normalizeClass({"vgt-responsive":n.responsive}),style:vue.normalizeStyle(a.wrapperStyles)},[vue.createElementVNode("table",{id:"vgt-table",ref:"table",class:vue.normalizeClass(a.tableStyles)},[vue.createElementVNode("colgroup",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(n.columns,((e,t)=>(vue.openBlock(),vue.createElementBlock("col",{key:t,id:`col-${t}`},null,8,_hoisted_6)))),128))]),vue.createCommentVNode(" Table header "),vue.createVNode(s,{ref:"table-header-primary",onToggleSelectAll:a.toggleSelectAll,onToggleExpandRowsAll:a.toggleExpandRowsAll,onSortChange:a.changeSort,onFilterChanged:a.filterRows,columns:n.columns,"line-numbers":n.lineNumbers,selectable:e.selectable,"all-selected":a.allSelected,"all-selected-indeterminate":a.allSelectedIndeterminate,mode:n.mode,sortable:e.sortable,"multiple-column-sort":e.multipleColumnSort,"typed-columns":a.typedColumns,getClasses:a.getClasses,searchEnabled:e.searchEnabled},{"table-column":vue.withCtx((t=>[vue.renderSlot(e.$slots,"table-column",{column:t.column},(()=>[vue.createElementVNode("span",null,vue.toDisplayString(t.column.label),1)]))])),"column-filter":vue.withCtx((t=>[vue.renderSlot(e.$slots,"column-filter",{column:t.column,updateFilters:t.updateFilters})])),_:3},8,["onToggleSelectAll","onToggleExpandRowsAll","onSortChange","onFilterChanged","columns","line-numbers","selectable","all-selected","all-selected-indeterminate","mode","sortable","multiple-column-sort","typed-columns","getClasses","searchEnabled"]),vue.createCommentVNode(" Table body starts here "),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.paginated,((t,r)=>(vue.openBlock(),vue.createElementBlock("tbody",{key:r},[vue.createCommentVNode(" if group row header is at the top "),a.groupHeaderOnTop?(vue.openBlock(),vue.createBlock(c,{key:0,onVgtExpand:e=>a.toggleExpand(t[a.rowKeyField]),"header-row":t,columns:n.columns,"line-numbers":n.lineNumbers,selectable:e.selectable,"select-all-by-group":e.selectAllByGroup,collapsable:n.groupOptions.collapsable,"collect-formatted":a.collectFormatted,"formatted-row":a.formattedRow,class:vue.normalizeClass(a.getRowStyleClass(t)),"get-classes":a.getClasses,"full-colspan":a.fullColspan,groupIndex:r,onSelectGroupChange:e=>a.toggleSelectGroup(e,t)},vue.createSlots({_:2},[a.hasHeaderRowTemplate?{name:"table-header-row",fn:vue.withCtx((t=>[vue.renderSlot(e.$slots,"table-header-row",{column:t.column,formattedRow:t.formattedRow,row:t.row})]))}:void 0]),1032,["onVgtExpand","header-row","columns","line-numbers","selectable","select-all-by-group","collapsable","collect-formatted","formatted-row","class","get-classes","full-colspan","groupIndex","onSelectGroupChange"])):vue.createCommentVNode("v-if",!0),vue.createCommentVNode(" normal rows here. we loop over all rows "),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.children,((r,o)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[!n.groupOptions.collapsable||t.vgtIsExpanded?(vue.openBlock(),vue.createElementBlock("tr",{key:r.originalIndex,class:vue.normalizeClass(a.getRowStyleClass(r)),onMouseenter:e=>a.onMouseenter(r,o),onMouseleave:e=>a.onMouseleave(r,o),onDblclick:e=>a.onRowDoubleClicked(r,o,e),onClick:e=>a.onRowClicked(r,o,e),onAuxclick:e=>a.onRowAuxClicked(r,o,e)},[n.lineNumbers?(vue.openBlock(),vue.createElementBlock("th",_hoisted_8,vue.toDisplayString(a.getCurrentIndex(r.originalIndex)),1)):vue.createCommentVNode("v-if",!0),e.selectable?(vue.openBlock(),vue.createElementBlock("th",{key:1,onClick:vue.withModifiers((e=>a.onCheckboxClicked(r,o,e)),["stop"]),class:"vgt-checkbox-col"},[vue.createElementVNode("input",{type:"checkbox",disabled:r.vgtDisabled,checked:r.vgtSelected},null,8,_hoisted_10)],8,_hoisted_9)):vue.createCommentVNode("v-if",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(n.columns,((t,i)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[!t.hidden&&t.field?(vue.openBlock(),vue.createElementBlock("td",{key:i,onClick:e=>a.onCellClicked(r,t,o,e),class:vue.normalizeClass(a.getClasses(i,"td",r)),"data-label":n.compactMode?t.label:void 0},[vue.renderSlot(e.$slots,"table-row",{row:r,column:t,formattedRow:a.formattedRow(r),index:o,expandedRow:e.expandedRowIndex===o},(()=>[t.html?(vue.openBlock(),vue.createElementBlock("span",{key:1,innerHTML:a.collect(r,t.field)},null,8,_hoisted_13)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_12,vue.toDisplayString(a.collectFormatted(r,t)),1))]))],10,_hoisted_11)):vue.createCommentVNode("v-if",!0)],64)))),256))],42,_hoisted_7)):vue.createCommentVNode("v-if",!0),e.expandedRowIndex===o?(vue.openBlock(),vue.createElementBlock("tr",{class:vue.normalizeClass(n.expandedRowDetailClasses),key:r.originalIndex},[vue.createElementVNode("td",{colspan:a.fullColspan},[vue.renderSlot(e.$slots,"row-details",{row:r,formattedRow:a.formattedRow(r),index:o})],8,_hoisted_14)],2)):vue.createCommentVNode("v-if",!0),r.expanded?(vue.openBlock(),vue.createElementBlock("tr",{key:r.originalIndex},[vue.createElementVNode("td",{colspan:a.fullColspan},vue.toDisplayString(r.expandedRow),9,_hoisted_15)])):vue.createCommentVNode("v-if",!0)],64)))),256)),vue.createCommentVNode(" if group row header is at the bottom "),a.groupHeaderOnBottom?(vue.openBlock(),vue.createBlock(c,{key:1,"header-row":t,columns:n.columns,"line-numbers":n.lineNumbers,selectable:e.selectable,"select-all-by-group":e.selectAllByGroup,"collect-formatted":a.collectFormatted,"formatted-row":a.formattedRow,"get-classes":a.getClasses,"full-colspan":a.fullColspan,groupIndex:e.index,onSelectGroupChange:e=>a.toggleSelectGroup(e,t)},vue.createSlots({_:2},[a.hasHeaderRowTemplate?{name:"table-header-row",fn:vue.withCtx((t=>[vue.renderSlot(e.$slots,"table-header-row",{column:t.column,formattedRow:t.formattedRow,row:t.row})]))}:void 0]),1032,["header-row","columns","line-numbers","selectable","select-all-by-group","collect-formatted","formatted-row","get-classes","full-colspan","groupIndex","onSelectGroupChange"])):vue.createCommentVNode("v-if",!0)])))),128)),a.showEmptySlot?(vue.openBlock(),vue.createElementBlock("tbody",_hoisted_16,[vue.createElementVNode("tr",null,[vue.createElementVNode("td",{colspan:a.fullColspan},[vue.renderSlot(e.$slots,"emptystate",{},(()=>[_hoisted_18]))],8,_hoisted_17)])])):vue.createCommentVNode("v-if",!0)],2)],6),a.hasFooterSlot?(vue.openBlock(),vue.createElementBlock("div",_hoisted_19,[vue.renderSlot(e.$slots,"table-actions-bottom")])):vue.createCommentVNode("v-if",!0),e.paginate&&e.paginateOnBottom?vue.renderSlot(e.$slots,"pagination-bottom",{key:3,pageChanged:a.pageChanged,perPageChanged:a.perPageChanged,total:n.totalRows||a.totalRowCount},(()=>[vue.createVNode(i,{ref:"paginationBottom",onPageChanged:a.pageChanged,onPerPageChanged:a.perPageChanged,perPage:e.perPage,rtl:n.rtl,total:n.totalRows||a.totalRowCount,mode:e.paginationMode,nextText:e.nextText,prevText:e.prevText,rowsPerPageText:e.rowsPerPageText,perPageDropdownEnabled:n.paginationOptions.perPageDropdownEnabled,customRowsPerPageDropdown:e.customRowsPerPageDropdown,paginateDropdownAllowAll:e.paginateDropdownAllowAll,ofText:e.ofText,pageText:e.pageText,allText:e.allText,"info-fn":e.paginationInfoFn},null,8,["onPageChanged","onPerPageChanged","perPage","rtl","total","mode","nextText","prevText","rowsPerPageText","perPageDropdownEnabled","customRowsPerPageDropdown","paginateDropdownAllowAll","ofText","pageText","allText","info-fn"])])):vue.createCommentVNode("v-if",!0)],2)],2)}var VueGoodTable=_export_sfc(_sfc_main,[["render",_sfc_render]]),index={install:(e,t)=>{e.component("VueGoodTable",VueGoodTable)}};exports.VueGoodTable=VueGoodTable,exports.default=index;
//# sourceMappingURL=/sm/3dc7cae30223af7c9ebddada3ee795b37969baac0e27bdc714c3c46ae10ba27d.map