This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.js
24 lines (24 loc) · 138 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(function(){"use strict";function Ot(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ot=function(e){return typeof e}:Ot=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ot(t)}function ga(t,e){return ma(t)||wa(t,e)||ba()}function xn(t){return _a(t)||va(t)||ya()}function _a(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}function ma(t){if(Array.isArray(t))return t}function va(t){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]")return Array.from(t)}function wa(t,e){var r=[],n=!0,i=!1,l=void 0;try{for(var f=t[Symbol.iterator](),d;!(n=(d=f.next()).done)&&(r.push(d.value),!(e&&r.length===e));n=!0);}catch(g){i=!0,l=g}finally{try{!n&&f.return!=null&&f.return()}finally{if(i)throw l}}return r}function ya(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function ba(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var On=9007199254740991,Ta="[object Arguments]",Ca="[object Function]",Pa="[object GeneratorFunction]",Sa=/^(?:0|[1-9]\d*)$/;function xa(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}function Oa(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function Ea(t,e){return function(r){return t(e(r))}}var on=Object.prototype,_n=on.hasOwnProperty,En=on.toString,Da=on.propertyIsEnumerable,Ra=Ea(Object.keys,Object);function Aa(t,e){var r=Dn(t)||Wa(t)?Oa(t.length,String):[],n=r.length,i=!!n;for(var l in t)(e||_n.call(t,l))&&!(i&&(l=="length"||La(l,n)))&&r.push(l);return r}var Ia=ka(Fa),$a=Ua();function Fa(t,e){return t&&$a(t,e,Qa)}function Ma(t){if(!Na(t))return Ra(t);var e=[];for(var r in Object(t))_n.call(t,r)&&r!="constructor"&&e.push(r);return e}function ka(t,e){return function(r,n){if(r==null)return r;if(!mn(r))return t(r,n);for(var i=r.length,l=e?i:-1,f=Object(r);(e?l--:++l<i)&&n(f[l],l,f)!==!1;);return r}}function Ua(t){return function(e,r,n){for(var i=-1,l=Object(e),f=n(e),d=f.length;d--;){var g=f[t?d:++i];if(r(l[g],g,l)===!1)break}return e}}function La(t,e){return e=e==null?On:e,!!e&&(typeof t=="number"||Sa.test(t))&&t>-1&&t%1==0&&t<e}function Na(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||on;return t===r}function Ha(t,e){var r=Dn(t)?xa:Ia;return r(t,typeof e=="function"?e:Ka)}function Wa(t){return Ba(t)&&_n.call(t,"callee")&&(!Da.call(t,"callee")||En.call(t)==Ta)}var Dn=Array.isArray;function mn(t){return t!=null&&qa(t.length)&&!Ya(t)}function Ba(t){return ja(t)&&mn(t)}function Ya(t){var e=Ga(t)?En.call(t):"";return e==Ca||e==Pa}function qa(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=On}function Ga(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function ja(t){return!!t&&typeof t=="object"}function Qa(t){return mn(t)?Aa(t):Ma(t)}function Ka(t){return t}var Q=Ha,Rn=9007199254740991,Xa="[object Arguments]",za="[object Function]",Va="[object GeneratorFunction]",Ja=/^(?:0|[1-9]\d*)$/;function Za(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function ei(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function ti(t,e){return function(r){return t(e(r))}}var sn=Object.prototype,mr=sn.hasOwnProperty,An=sn.toString,In=sn.propertyIsEnumerable,ri=ti(Object.keys,Object),$n=Math.max,ni=!In.call({valueOf:1},"valueOf");function ai(t,e){var r=fi(t)||ci(t)?ei(t.length,String):[],n=r.length,i=!!n;for(var l in t)(e||mr.call(t,l))&&!(i&&(l=="length"||Mn(l,n)))&&r.push(l);return r}function Fn(t,e,r){var n=t[e];(!(mr.call(t,e)&&Un(n,r))||r===void 0&&!(e in t))&&(t[e]=r)}function ii(t){if(!kn(t))return ri(t);var e=[];for(var r in Object(t))mr.call(t,r)&&r!="constructor"&&e.push(r);return e}function oi(t,e){return e=$n(e===void 0?t.length-1:e,0),function(){for(var r=arguments,n=-1,i=$n(r.length-e,0),l=Array(i);++n<i;)l[n]=r[e+n];n=-1;for(var f=Array(e+1);++n<e;)f[n]=r[n];return f[e]=l,Za(t,this,f)}}function si(t,e,r,n){r||(r={});for(var i=-1,l=e.length;++i<l;){var f=e[i],d=n?n(r[f],t[f],f,r,t):void 0;Fn(r,f,d===void 0?t[f]:d)}return r}function li(t){return oi(function(e,r){var n=-1,i=r.length,l=i>1?r[i-1]:void 0,f=i>2?r[2]:void 0;for(l=t.length>3&&typeof l=="function"?(i--,l):void 0,f&&ui(r[0],r[1],f)&&(l=i<3?void 0:l,i=1),e=Object(e);++n<i;){var d=r[n];d&&t(e,d,n,l)}return e})}function Mn(t,e){return e=e==null?Rn:e,!!e&&(typeof t=="number"||Ja.test(t))&&t>-1&&t%1==0&&t<e}function ui(t,e,r){if(!Ln(r))return!1;var n=typeof e;return(n=="number"?ln(r)&&Mn(e,r.length):n=="string"&&e in r)?Un(r[e],t):!1}function kn(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||sn;return t===r}function Un(t,e){return t===e||t!==t&&e!==e}function ci(t){return di(t)&&mr.call(t,"callee")&&(!In.call(t,"callee")||An.call(t)==Xa)}var fi=Array.isArray;function ln(t){return t!=null&&pi(t.length)&&!hi(t)}function di(t){return gi(t)&&ln(t)}function hi(t){var e=Ln(t)?An.call(t):"";return e==za||e==Va}function pi(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Rn}function Ln(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function gi(t){return!!t&&typeof t=="object"}var _i=li(function(t,e){if(ni||kn(e)||ln(e)){si(e,mi(e),t);return}for(var r in e)mr.call(e,r)&&Fn(t,r,e[r])});function mi(t){return ln(t)?ai(t):ii(t)}var Nn=_i,Oe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function vn(t,e){return e={exports:{}},t(e,e.exports),e.exports}var ye=vn(function(t,e){var r=200,n="__lodash_hash_undefined__",i=9007199254740991,l="[object Arguments]",f="[object Array]",d="[object Boolean]",g="[object Date]",m="[object Error]",y="[object Function]",P="[object GeneratorFunction]",b="[object Map]",M="[object Number]",Y="[object Object]",q="[object Promise]",G="[object RegExp]",k="[object Set]",R="[object String]",F="[object Symbol]",ce="[object WeakMap]",ie="[object ArrayBuffer]",fe="[object DataView]",Ee="[object Float32Array]",be="[object Float64Array]",Ke="[object Int8Array]",de="[object Int16Array]",Xe="[object Int32Array]",Te="[object Uint8Array]",De="[object Uint8ClampedArray]",tt="[object Uint16Array]",Re="[object Uint32Array]",ze=/[\\^$.*+?()[\]{}|]/g,te=/\w*$/,he=/^\[object .+?Constructor\]$/,rt=/^(?:0|[1-9]\d*)$/,A={};A[l]=A[f]=A[ie]=A[fe]=A[d]=A[g]=A[Ee]=A[be]=A[Ke]=A[de]=A[Xe]=A[b]=A[M]=A[Y]=A[G]=A[k]=A[R]=A[F]=A[Te]=A[De]=A[tt]=A[Re]=!0,A[m]=A[y]=A[ce]=!1;var br=typeof Oe=="object"&&Oe&&Oe.Object===Object&&Oe,Tr=typeof self=="object"&&self&&self.Object===Object&&self,Ce=br||Tr||Function("return this")(),Jt=e&&!e.nodeType&&e,I=Jt&&!0&&t&&!t.nodeType&&t,Zt=I&&I.exports===Jt;function Cr(a,s){return a.set(s[0],s[1]),a}function x(a,s){return a.add(s),a}function It(a,s){for(var c=-1,p=a?a.length:0;++c<p&&s(a[c],c,a)!==!1;);return a}function er(a,s){for(var c=-1,p=s.length,C=a.length;++c<p;)a[C+c]=s[c];return a}function me(a,s,c,p){var C=-1,w=a?a.length:0;for(p&&w&&(c=a[++C]);++C<w;)c=s(c,a[C],C,a);return c}function ht(a,s){for(var c=-1,p=Array(a);++c<a;)p[c]=s(c);return p}function $t(a,s){return a==null?void 0:a[s]}function Ft(a){var s=!1;if(a!=null&&typeof a.toString!="function")try{s=!!(a+"")}catch{}return s}function Mt(a){var s=-1,c=Array(a.size);return a.forEach(function(p,C){c[++s]=[C,p]}),c}function pt(a,s){return function(c){return a(s(c))}}function kt(a){var s=-1,c=Array(a.size);return a.forEach(function(p){c[++s]=p}),c}var Pr=Array.prototype,Sr=Function.prototype,gt=Object.prototype,Ut=Ce["__core-js_shared__"],tr=function(){var a=/[^.]+$/.exec(Ut&&Ut.keys&&Ut.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),rr=Sr.toString,ve=gt.hasOwnProperty,_t=gt.toString,xr=RegExp("^"+rr.call(ve).replace(ze,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nt=Zt?Ce.Buffer:void 0,mt=Ce.Symbol,Lt=Ce.Uint8Array,le=pt(Object.getPrototypeOf,Object),vt=Object.create,Nt=gt.propertyIsEnumerable,nr=Pr.splice,pe=Object.getOwnPropertySymbols,Pe=nt?nt.isBuffer:void 0,ar=pt(Object.keys,Object),at=xe(Ce,"DataView"),Ve=xe(Ce,"Map"),Se=xe(Ce,"Promise"),wt=xe(Ce,"Set"),Ht=xe(Ce,"WeakMap"),ke=xe(Object,"create"),Ue=ue(at),Le=ue(Ve),it=ue(Se),ot=ue(wt),Ne=ue(Ht),Je=mt?mt.prototype:void 0,ir=Je?Je.valueOf:void 0;function He(a){var s=-1,c=a?a.length:0;for(this.clear();++s<c;){var p=a[s];this.set(p[0],p[1])}}function Or(){this.__data__=ke?ke(null):{}}function Er(a){return this.has(a)&&delete this.__data__[a]}function yt(a){var s=this.__data__;if(ke){var c=s[a];return c===n?void 0:c}return ve.call(s,a)?s[a]:void 0}function bt(a){var s=this.__data__;return ke?s[a]!==void 0:ve.call(s,a)}function Tt(a,s){var c=this.__data__;return c[a]=ke&&s===void 0?n:s,this}He.prototype.clear=Or,He.prototype.delete=Er,He.prototype.get=yt,He.prototype.has=bt,He.prototype.set=Tt;function N(a){var s=-1,c=a?a.length:0;for(this.clear();++s<c;){var p=a[s];this.set(p[0],p[1])}}function Dr(){this.__data__=[]}function Rr(a){var s=this.__data__,c=Ct(s,a);if(c<0)return!1;var p=s.length-1;return c==p?s.pop():nr.call(s,c,1),!0}function Ar(a){var s=this.__data__,c=Ct(s,a);return c<0?void 0:s[c][1]}function Ir(a){return Ct(this.__data__,a)>-1}function $r(a,s){var c=this.__data__,p=Ct(c,a);return p<0?c.push([a,s]):c[p][1]=s,this}N.prototype.clear=Dr,N.prototype.delete=Rr,N.prototype.get=Ar,N.prototype.has=Ir,N.prototype.set=$r;function U(a){var s=-1,c=a?a.length:0;for(this.clear();++s<c;){var p=a[s];this.set(p[0],p[1])}}function Fr(){this.__data__={hash:new He,map:new(Ve||N),string:new He}}function Mr(a){return lt(this,a).delete(a)}function kr(a){return lt(this,a).get(a)}function Ur(a){return lt(this,a).has(a)}function Lr(a,s){return lt(this,a).set(a,s),this}U.prototype.clear=Fr,U.prototype.delete=Mr,U.prototype.get=kr,U.prototype.has=Ur,U.prototype.set=Lr;function H(a){this.__data__=new N(a)}function Nr(){this.__data__=new N}function Hr(a){return this.__data__.delete(a)}function Wr(a){return this.__data__.get(a)}function Br(a){return this.__data__.has(a)}function Yr(a,s){var c=this.__data__;if(c instanceof N){var p=c.__data__;if(!Ve||p.length<r-1)return p.push([a,s]),this;c=this.__data__=new U(p)}return c.set(a,s),this}H.prototype.clear=Nr,H.prototype.delete=Hr,H.prototype.get=Wr,H.prototype.has=Br,H.prototype.set=Yr;function We(a,s){var c=Ie(a)||Pt(a)?ht(a.length,String):[],p=c.length,C=!!p;for(var w in a)(s||ve.call(a,w))&&!(C&&(w=="length"||cr(w,p)))&&c.push(w);return c}function or(a,s,c){var p=a[s];(!(ve.call(a,s)&&ut(p,c))||c===void 0&&!(s in a))&&(a[s]=c)}function Ct(a,s){for(var c=a.length;c--;)if(ut(a[c][0],s))return c;return-1}function J(a,s){return a&&qt(s,St(s),a)}function Wt(a,s,c,p,C,w,S){var O;if(p&&(O=w?p(a,C,w,S):p(a)),O!==void 0)return O;if(!$e(a))return a;var z=Ie(a);if(z){if(O=Zr(a),!s)return Yt(a,O)}else{var D=qe(a),Z=D==y||D==P;if(jt(a))return Be(a,s);if(D==Y||D==l||Z&&!w){if(Ft(a))return w?a:{};if(O=Ae(Z?{}:a),!s)return Vr(a,J(O,a))}else{if(!A[D])return w?a:{};O=en(a,D,Wt,s)}}S||(S=new H);var re=S.get(a);if(re)return re;if(S.set(a,O),!z)var W=c?Jr(a):St(a);return It(W||a,function(ee,ne){W&&(ne=ee,ee=a[ne]),or(O,ne,Wt(ee,s,c,p,ne,a,S))}),O}function qr(a){return $e(a)?vt(a):{}}function Gr(a,s,c){var p=s(a);return Ie(a)?p:er(p,c(a))}function jr(a){return _t.call(a)}function Qr(a){if(!$e(a)||rn(a))return!1;var s=Ze(a)||Ft(a)?xr:he;return s.test(ue(a))}function Kr(a){if(!Gt(a))return ar(a);var s=[];for(var c in Object(a))ve.call(a,c)&&c!="constructor"&&s.push(c);return s}function Be(a,s){if(s)return a.slice();var c=new a.constructor(a.length);return a.copy(c),c}function Bt(a){var s=new a.constructor(a.byteLength);return new Lt(s).set(new Lt(a)),s}function st(a,s){var c=s?Bt(a.buffer):a.buffer;return new a.constructor(c,a.byteOffset,a.byteLength)}function sr(a,s,c){var p=s?c(Mt(a),!0):Mt(a);return me(p,Cr,new a.constructor)}function lr(a){var s=new a.constructor(a.source,te.exec(a));return s.lastIndex=a.lastIndex,s}function ur(a,s,c){var p=s?c(kt(a),!0):kt(a);return me(p,x,new a.constructor)}function Xr(a){return ir?Object(ir.call(a)):{}}function zr(a,s){var c=s?Bt(a.buffer):a.buffer;return new a.constructor(c,a.byteOffset,a.length)}function Yt(a,s){var c=-1,p=a.length;for(s||(s=Array(p));++c<p;)s[c]=a[c];return s}function qt(a,s,c,p){c||(c={});for(var C=-1,w=s.length;++C<w;){var S=s[C],O=p?p(c[S],a[S],S,c,a):void 0;or(c,S,O===void 0?a[S]:O)}return c}function Vr(a,s){return qt(a,Ye(a),s)}function Jr(a){return Gr(a,St,Ye)}function lt(a,s){var c=a.__data__;return tn(s)?c[typeof s=="string"?"string":"hash"]:c.map}function xe(a,s){var c=$t(a,s);return Qr(c)?c:void 0}var Ye=pe?pt(pe,Object):pr,qe=jr;(at&&qe(new at(new ArrayBuffer(1)))!=fe||Ve&&qe(new Ve)!=b||Se&&qe(Se.resolve())!=q||wt&&qe(new wt)!=k||Ht&&qe(new Ht)!=ce)&&(qe=function(a){var s=_t.call(a),c=s==Y?a.constructor:void 0,p=c?ue(c):void 0;if(p)switch(p){case Ue:return fe;case Le:return b;case it:return q;case ot:return k;case Ne:return ce}return s});function Zr(a){var s=a.length,c=a.constructor(s);return s&&typeof a[0]=="string"&&ve.call(a,"index")&&(c.index=a.index,c.input=a.input),c}function Ae(a){return typeof a.constructor=="function"&&!Gt(a)?qr(le(a)):{}}function en(a,s,c,p){var C=a.constructor;switch(s){case ie:return Bt(a);case d:case g:return new C(+a);case fe:return st(a,p);case Ee:case be:case Ke:case de:case Xe:case Te:case De:case tt:case Re:return zr(a,p);case b:return sr(a,p,c);case M:case R:return new C(a);case G:return lr(a);case k:return ur(a,p,c);case F:return Xr(a)}}function cr(a,s){return s=s==null?i:s,!!s&&(typeof a=="number"||rt.test(a))&&a>-1&&a%1==0&&a<s}function tn(a){var s=typeof a;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?a!=="__proto__":a===null}function rn(a){return!!tr&&tr in a}function Gt(a){var s=a&&a.constructor,c=typeof s=="function"&&s.prototype||gt;return a===c}function ue(a){if(a!=null){try{return rr.call(a)}catch{}try{return a+""}catch{}}return""}function fr(a){return Wt(a,!0,!0)}function ut(a,s){return a===s||a!==a&&s!==s}function Pt(a){return nn(a)&&ve.call(a,"callee")&&(!Nt.call(a,"callee")||_t.call(a)==l)}var Ie=Array.isArray;function ge(a){return a!=null&&dr(a.length)&&!Ze(a)}function nn(a){return hr(a)&&ge(a)}var jt=Pe||an;function Ze(a){var s=$e(a)?_t.call(a):"";return s==y||s==P}function dr(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=i}function $e(a){var s=typeof a;return!!a&&(s=="object"||s=="function")}function hr(a){return!!a&&typeof a=="object"}function St(a){return ge(a)?We(a):Kr(a)}function pr(){return[]}function an(){return!1}t.exports=fr}),vi=vn(function(t,e){var r=200,n="Expected a function",i="__lodash_hash_undefined__",l=1,f=2,d=1/0,g=9007199254740991,m="[object Arguments]",y="[object Array]",P="[object Boolean]",b="[object Date]",M="[object Error]",Y="[object Function]",q="[object GeneratorFunction]",G="[object Map]",k="[object Number]",R="[object Object]",F="[object Promise]",ce="[object RegExp]",ie="[object Set]",fe="[object String]",Ee="[object Symbol]",be="[object WeakMap]",Ke="[object ArrayBuffer]",de="[object DataView]",Xe="[object Float32Array]",Te="[object Float64Array]",De="[object Int8Array]",tt="[object Int16Array]",Re="[object Int32Array]",ze="[object Uint8Array]",te="[object Uint8ClampedArray]",he="[object Uint16Array]",rt="[object Uint32Array]",A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,br=/^\w*$/,Tr=/^\./,Ce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jt=/[\\^$.*+?()[\]{}|]/g,I=/\\(\\)?/g,Zt=/^\[object .+?Constructor\]$/,Cr=/^(?:0|[1-9]\d*)$/,x={};x[Xe]=x[Te]=x[De]=x[tt]=x[Re]=x[ze]=x[te]=x[he]=x[rt]=!0,x[m]=x[y]=x[Ke]=x[P]=x[de]=x[b]=x[M]=x[Y]=x[G]=x[k]=x[R]=x[ce]=x[ie]=x[fe]=x[be]=!1;var It=typeof Oe=="object"&&Oe&&Oe.Object===Object&&Oe,er=typeof self=="object"&&self&&self.Object===Object&&self,me=It||er||Function("return this")(),ht=e&&!e.nodeType&&e,$t=ht&&!0&&t&&!t.nodeType&&t,Ft=$t&&$t.exports===ht,Mt=Ft&&It.process,pt=function(){try{return Mt&&Mt.binding("util")}catch{}}(),kt=pt&&pt.isTypedArray;function Pr(o,u){for(var h=-1,_=o?o.length:0,T=0,v=[];++h<_;){var E=o[h];u(E,h,o)&&(v[T++]=E)}return v}function Sr(o,u){for(var h=-1,_=o?o.length:0;++h<_;)if(u(o[h],h,o))return!0;return!1}function gt(o){return function(u){return u==null?void 0:u[o]}}function Ut(o,u){for(var h=-1,_=Array(o);++h<o;)_[h]=u(h);return _}function tr(o){return function(u){return o(u)}}function rr(o,u){return o==null?void 0:o[u]}function ve(o){var u=!1;if(o!=null&&typeof o.toString!="function")try{u=!!(o+"")}catch{}return u}function _t(o){var u=-1,h=Array(o.size);return o.forEach(function(_,T){h[++u]=[T,_]}),h}function xr(o,u){return function(h){return o(u(h))}}function nt(o){var u=-1,h=Array(o.size);return o.forEach(function(_){h[++u]=_}),h}var mt=Array.prototype,Lt=Function.prototype,le=Object.prototype,vt=me["__core-js_shared__"],Nt=function(){var o=/[^.]+$/.exec(vt&&vt.keys&&vt.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),nr=Lt.toString,pe=le.hasOwnProperty,Pe=le.toString,ar=RegExp("^"+nr.call(pe).replace(Jt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),at=me.Symbol,Ve=me.Uint8Array,Se=le.propertyIsEnumerable,wt=mt.splice,Ht=xr(Object.keys,Object),ke=Ie(me,"DataView"),Ue=Ie(me,"Map"),Le=Ie(me,"Promise"),it=Ie(me,"Set"),ot=Ie(me,"WeakMap"),Ne=Ie(Object,"create"),Je=s(ke),ir=s(Ue),He=s(Le),Or=s(it),Er=s(ot),yt=at?at.prototype:void 0,bt=yt?yt.valueOf:void 0,Tt=yt?yt.toString:void 0;function N(o){var u=-1,h=o?o.length:0;for(this.clear();++u<h;){var _=o[u];this.set(_[0],_[1])}}function Dr(){this.__data__=Ne?Ne(null):{}}function Rr(o){return this.has(o)&&delete this.__data__[o]}function Ar(o){var u=this.__data__;if(Ne){var h=u[o];return h===i?void 0:h}return pe.call(u,o)?u[o]:void 0}function Ir(o){var u=this.__data__;return Ne?u[o]!==void 0:pe.call(u,o)}function $r(o,u){var h=this.__data__;return h[o]=Ne&&u===void 0?i:u,this}N.prototype.clear=Dr,N.prototype.delete=Rr,N.prototype.get=Ar,N.prototype.has=Ir,N.prototype.set=$r;function U(o){var u=-1,h=o?o.length:0;for(this.clear();++u<h;){var _=o[u];this.set(_[0],_[1])}}function Fr(){this.__data__=[]}function Mr(o){var u=this.__data__,h=Be(u,o);if(h<0)return!1;var _=u.length-1;return h==_?u.pop():wt.call(u,h,1),!0}function kr(o){var u=this.__data__,h=Be(u,o);return h<0?void 0:u[h][1]}function Ur(o){return Be(this.__data__,o)>-1}function Lr(o,u){var h=this.__data__,_=Be(h,o);return _<0?h.push([o,u]):h[_][1]=u,this}U.prototype.clear=Fr,U.prototype.delete=Mr,U.prototype.get=kr,U.prototype.has=Ur,U.prototype.set=Lr;function H(o){var u=-1,h=o?o.length:0;for(this.clear();++u<h;){var _=o[u];this.set(_[0],_[1])}}function Nr(){this.__data__={hash:new N,map:new(Ue||U),string:new N}}function Hr(o){return ut(this,o).delete(o)}function Wr(o){return ut(this,o).get(o)}function Br(o){return ut(this,o).has(o)}function Yr(o,u){return ut(this,o).set(o,u),this}H.prototype.clear=Nr,H.prototype.delete=Hr,H.prototype.get=Wr,H.prototype.has=Br,H.prototype.set=Yr;function We(o){var u=-1,h=o?o.length:0;for(this.__data__=new H;++u<h;)this.add(o[u])}function or(o){return this.__data__.set(o,i),this}function Ct(o){return this.__data__.has(o)}We.prototype.add=We.prototype.push=or,We.prototype.has=Ct;function J(o){this.__data__=new U(o)}function Wt(){this.__data__=new U}function qr(o){return this.__data__.delete(o)}function Gr(o){return this.__data__.get(o)}function jr(o){return this.__data__.has(o)}function Qr(o,u){var h=this.__data__;if(h instanceof U){var _=h.__data__;if(!Ue||_.length<r-1)return _.push([o,u]),this;h=this.__data__=new H(_)}return h.set(o,u),this}J.prototype.clear=Wt,J.prototype.delete=qr,J.prototype.get=Gr,J.prototype.has=jr,J.prototype.set=Qr;function Kr(o,u){var h=S(o)||w(o)?Ut(o.length,String):[],_=h.length,T=!!_;for(var v in o)(u||pe.call(o,v))&&!(T&&(v=="length"||jt(v,_)))&&h.push(v);return h}function Be(o,u){for(var h=o.length;h--;)if(C(o[h][0],u))return h;return-1}var Bt=tn(lr);function st(o,u){var h=[];return Bt(o,function(_,T,v){u(_,T,v)&&h.push(_)}),h}var sr=rn();function lr(o,u){return o&&sr(o,u,Qt)}function ur(o,u){u=Ze(u,o)?[u]:cr(u);for(var h=0,_=u.length;o!=null&&h<_;)o=o[a(u[h++])];return h&&h==_?o:void 0}function Xr(o){return Pe.call(o)}function zr(o,u){return o!=null&&u in Object(o)}function Yt(o,u,h,_,T){return o===u?!0:o==null||u==null||!re(o)&&!W(u)?o!==o&&u!==u:qt(o,u,Yt,h,_,T)}function qt(o,u,h,_,T,v){var E=S(o),L=S(u),j=y,oe=y;E||(j=ge(o),j=j==m?R:j),L||(oe=ge(u),oe=oe==m?R:oe);var _e=j==R&&!ve(o),we=oe==R&&!ve(u),se=j==oe;if(se&&!_e)return v||(v=new J),E||ne(o)?Gt(o,u,h,_,T,v):ue(o,u,j,h,_,T,v);if(!(T&f)){var Fe=_e&&pe.call(o,"__wrapped__"),Me=we&&pe.call(u,"__wrapped__");if(Fe||Me){var xt=Fe?o.value():o,ft=Me?u.value():u;return v||(v=new J),h(xt,ft,_,T,v)}}return se?(v||(v=new J),fr(o,u,h,_,T,v)):!1}function Vr(o,u,h,_){var T=h.length,v=T,E=!_;if(o==null)return!v;for(o=Object(o);T--;){var L=h[T];if(E&&L[2]?L[1]!==o[L[0]]:!(L[0]in o))return!1}for(;++T<v;){L=h[T];var j=L[0],oe=o[j],_e=L[1];if(E&&L[2]){if(oe===void 0&&!(j in o))return!1}else{var we=new J;if(_)var se=_(oe,_e,j,o,u,we);if(!(se===void 0?Yt(_e,oe,_,l|f,we):se))return!1}}return!0}function Jr(o){if(!re(o)||$e(o))return!1;var u=D(o)||ve(o)?ar:Zt;return u.test(s(o))}function lt(o){return W(o)&&Z(o.length)&&!!x[Pe.call(o)]}function xe(o){return typeof o=="function"?o:o==null?gr:typeof o=="object"?S(o)?Zr(o[0],o[1]):qe(o):_r(o)}function Ye(o){if(!hr(o))return Ht(o);var u=[];for(var h in Object(o))pe.call(o,h)&&h!="constructor"&&u.push(h);return u}function qe(o){var u=Pt(o);return u.length==1&&u[0][2]?pr(u[0][0],u[0][1]):function(h){return h===o||Vr(h,o,u)}}function Zr(o,u){return Ze(o)&&St(u)?pr(a(o),u):function(h){var _=Ge(h,o);return _===void 0&&_===u?ct(h,o):Yt(u,_,void 0,l|f)}}function Ae(o){return function(u){return ur(u,o)}}function en(o){if(typeof o=="string")return o;if(ee(o))return Tt?Tt.call(o):"";var u=o+"";return u=="0"&&1/o==-d?"-0":u}function cr(o){return S(o)?o:an(o)}function tn(o,u){return function(h,_){if(h==null)return h;if(!O(h))return o(h,_);for(var T=h.length,v=u?T:-1,E=Object(h);(u?v--:++v<T)&&_(E[v],v,E)!==!1;);return h}}function rn(o){return function(u,h,_){for(var T=-1,v=Object(u),E=_(u),L=E.length;L--;){var j=E[o?L:++T];if(h(v[j],j,v)===!1)break}return u}}function Gt(o,u,h,_,T,v){var E=T&f,L=o.length,j=u.length;if(L!=j&&!(E&&j>L))return!1;var oe=v.get(o);if(oe&&v.get(u))return oe==u;var _e=-1,we=!0,se=T&l?new We:void 0;for(v.set(o,u),v.set(u,o);++_e<L;){var Fe=o[_e],Me=u[_e];if(_)var xt=E?_(Me,Fe,_e,u,o,v):_(Fe,Me,_e,o,u,v);if(xt!==void 0){if(xt)continue;we=!1;break}if(se){if(!Sr(u,function(ft,Kt){if(!se.has(Kt)&&(Fe===ft||h(Fe,ft,_,T,v)))return se.add(Kt)})){we=!1;break}}else if(!(Fe===Me||h(Fe,Me,_,T,v))){we=!1;break}}return v.delete(o),v.delete(u),we}function ue(o,u,h,_,T,v,E){switch(h){case de:if(o.byteLength!=u.byteLength||o.byteOffset!=u.byteOffset)return!1;o=o.buffer,u=u.buffer;case Ke:return!(o.byteLength!=u.byteLength||!_(new Ve(o),new Ve(u)));case P:case b:case k:return C(+o,+u);case M:return o.name==u.name&&o.message==u.message;case ce:case fe:return o==u+"";case G:var L=_t;case ie:var j=v&f;if(L||(L=nt),o.size!=u.size&&!j)return!1;var oe=E.get(o);if(oe)return oe==u;v|=l,E.set(o,u);var _e=Gt(L(o),L(u),_,T,v,E);return E.delete(o),_e;case Ee:if(bt)return bt.call(o)==bt.call(u)}return!1}function fr(o,u,h,_,T,v){var E=T&f,L=Qt(o),j=L.length,oe=Qt(u),_e=oe.length;if(j!=_e&&!E)return!1;for(var we=j;we--;){var se=L[we];if(!(E?se in u:pe.call(u,se)))return!1}var Fe=v.get(o);if(Fe&&v.get(u))return Fe==u;var Me=!0;v.set(o,u),v.set(u,o);for(var xt=E;++we<j;){se=L[we];var ft=o[se],Kt=u[se];if(_)var pa=E?_(Kt,ft,se,u,o,v):_(ft,Kt,se,o,u,v);if(!(pa===void 0?ft===Kt||h(ft,Kt,_,T,v):pa)){Me=!1;break}xt||(xt=se=="constructor")}if(Me&&!xt){var pn=o.constructor,gn=u.constructor;pn!=gn&&"constructor"in o&&"constructor"in u&&!(typeof pn=="function"&&pn instanceof pn&&typeof gn=="function"&&gn instanceof gn)&&(Me=!1)}return v.delete(o),v.delete(u),Me}function ut(o,u){var h=o.__data__;return dr(u)?h[typeof u=="string"?"string":"hash"]:h.map}function Pt(o){for(var u=Qt(o),h=u.length;h--;){var _=u[h],T=o[_];u[h]=[_,T,St(T)]}return u}function Ie(o,u){var h=rr(o,u);return Jr(h)?h:void 0}var ge=Xr;(ke&&ge(new ke(new ArrayBuffer(1)))!=de||Ue&&ge(new Ue)!=G||Le&&ge(Le.resolve())!=F||it&&ge(new it)!=ie||ot&&ge(new ot)!=be)&&(ge=function(o){var u=Pe.call(o),h=u==R?o.constructor:void 0,_=h?s(h):void 0;if(_)switch(_){case Je:return de;case ir:return G;case He:return F;case Or:return ie;case Er:return be}return u});function nn(o,u,h){u=Ze(u,o)?[u]:cr(u);for(var _,T=-1,E=u.length;++T<E;){var v=a(u[T]);if(!(_=o!=null&&h(o,v)))break;o=o[v]}if(_)return _;var E=o?o.length:0;return!!E&&Z(E)&&jt(v,E)&&(S(o)||w(o))}function jt(o,u){return u=u==null?g:u,!!u&&(typeof o=="number"||Cr.test(o))&&o>-1&&o%1==0&&o<u}function Ze(o,u){if(S(o))return!1;var h=typeof o;return h=="number"||h=="symbol"||h=="boolean"||o==null||ee(o)?!0:br.test(o)||!A.test(o)||u!=null&&o in Object(u)}function dr(o){var u=typeof o;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?o!=="__proto__":o===null}function $e(o){return!!Nt&&Nt in o}function hr(o){var u=o&&o.constructor,h=typeof u=="function"&&u.prototype||le;return o===h}function St(o){return o===o&&!re(o)}function pr(o,u){return function(h){return h==null?!1:h[o]===u&&(u!==void 0||o in Object(h))}}var an=p(function(o){o=et(o);var u=[];return Tr.test(o)&&u.push(""),o.replace(Ce,function(h,_,T,v){u.push(T?v.replace(I,"$1"):_||h)}),u});function a(o){if(typeof o=="string"||ee(o))return o;var u=o+"";return u=="0"&&1/o==-d?"-0":u}function s(o){if(o!=null){try{return nr.call(o)}catch{}try{return o+""}catch{}}return""}function c(o,u){var h=S(o)?Pr:st;return h(o,xe(u))}function p(o,u){if(typeof o!="function"||u&&typeof u!="function")throw new TypeError(n);var h=function(){var _=arguments,T=u?u.apply(this,_):_[0],v=h.cache;if(v.has(T))return v.get(T);var E=o.apply(this,_);return h.cache=v.set(T,E),E};return h.cache=new(p.Cache||H),h}p.Cache=H;function C(o,u){return o===u||o!==o&&u!==u}function w(o){return z(o)&&pe.call(o,"callee")&&(!Se.call(o,"callee")||Pe.call(o)==m)}var S=Array.isArray;function O(o){return o!=null&&Z(o.length)&&!D(o)}function z(o){return W(o)&&O(o)}function D(o){var u=re(o)?Pe.call(o):"";return u==Y||u==q}function Z(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=g}function re(o){var u=typeof o;return!!o&&(u=="object"||u=="function")}function W(o){return!!o&&typeof o=="object"}function ee(o){return typeof o=="symbol"||W(o)&&Pe.call(o)==Ee}var ne=kt?tr(kt):lt;function et(o){return o==null?"":en(o)}function Ge(o,u,h){var _=o==null?void 0:ur(o,u);return _===void 0?h:_}function ct(o,u){return o!=null&&nn(o,u,zr)}function Qt(o){return O(o)?Kr(o):Ye(o)}function gr(o){return o}function _r(o){return Ze(o)?gt(a(o)):Ae(o)}t.exports=c}),wn=vn(function(t,e){var r=200,n="__lodash_hash_undefined__",i=1,l=2,f=9007199254740991,d="[object Arguments]",g="[object Array]",m="[object AsyncFunction]",y="[object Boolean]",P="[object Date]",b="[object Error]",M="[object Function]",Y="[object GeneratorFunction]",q="[object Map]",G="[object Number]",k="[object Null]",R="[object Object]",F="[object Promise]",ce="[object Proxy]",ie="[object RegExp]",fe="[object Set]",Ee="[object String]",be="[object Symbol]",Ke="[object Undefined]",de="[object WeakMap]",Xe="[object ArrayBuffer]",Te="[object DataView]",De="[object Float32Array]",tt="[object Float64Array]",Re="[object Int8Array]",ze="[object Int16Array]",te="[object Int32Array]",he="[object Uint8Array]",rt="[object Uint8ClampedArray]",A="[object Uint16Array]",br="[object Uint32Array]",Tr=/[\\^$.*+?()[\]{}|]/g,Ce=/^\[object .+?Constructor\]$/,Jt=/^(?:0|[1-9]\d*)$/,I={};I[De]=I[tt]=I[Re]=I[ze]=I[te]=I[he]=I[rt]=I[A]=I[br]=!0,I[d]=I[g]=I[Xe]=I[y]=I[Te]=I[P]=I[b]=I[M]=I[q]=I[G]=I[R]=I[ie]=I[fe]=I[Ee]=I[de]=!1;var Zt=typeof Oe=="object"&&Oe&&Oe.Object===Object&&Oe,Cr=typeof self=="object"&&self&&self.Object===Object&&self,x=Zt||Cr||Function("return this")(),It=e&&!e.nodeType&&e,er=It&&!0&&t&&!t.nodeType&&t,me=er&&er.exports===It,ht=me&&Zt.process,$t=function(){try{return ht&&ht.binding&&ht.binding("util")}catch{}}(),Ft=$t&&$t.isTypedArray;function Mt(a,s){for(var c=-1,p=a==null?0:a.length,C=0,w=[];++c<p;){var S=a[c];s(S,c,a)&&(w[C++]=S)}return w}function pt(a,s){for(var c=-1,p=s.length,C=a.length;++c<p;)a[C+c]=s[c];return a}function kt(a,s){for(var c=-1,p=a==null?0:a.length;++c<p;)if(s(a[c],c,a))return!0;return!1}function Pr(a,s){for(var c=-1,p=Array(a);++c<a;)p[c]=s(c);return p}function Sr(a){return function(s){return a(s)}}function gt(a,s){return a.has(s)}function Ut(a,s){return a==null?void 0:a[s]}function tr(a){var s=-1,c=Array(a.size);return a.forEach(function(p,C){c[++s]=[C,p]}),c}function rr(a,s){return function(c){return a(s(c))}}function ve(a){var s=-1,c=Array(a.size);return a.forEach(function(p){c[++s]=p}),c}var _t=Array.prototype,xr=Function.prototype,nt=Object.prototype,mt=x["__core-js_shared__"],Lt=xr.toString,le=nt.hasOwnProperty,vt=function(){var a=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Nt=nt.toString,nr=RegExp("^"+Lt.call(le).replace(Tr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pe=me?x.Buffer:void 0,Pe=x.Symbol,ar=x.Uint8Array,at=nt.propertyIsEnumerable,Ve=_t.splice,Se=Pe?Pe.toStringTag:void 0,wt=Object.getOwnPropertySymbols,Ht=pe?pe.isBuffer:void 0,ke=rr(Object.keys,Object),Ue=Ye(x,"DataView"),Le=Ye(x,"Map"),it=Ye(x,"Promise"),ot=Ye(x,"Set"),Ne=Ye(x,"WeakMap"),Je=Ye(Object,"create"),ir=ue(Ue),He=ue(Le),Or=ue(it),Er=ue(ot),yt=ue(Ne),bt=Pe?Pe.prototype:void 0,Tt=bt?bt.valueOf:void 0;function N(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var p=a[s];this.set(p[0],p[1])}}function Dr(){this.__data__=Je?Je(null):{},this.size=0}function Rr(a){var s=this.has(a)&&delete this.__data__[a];return this.size-=s?1:0,s}function Ar(a){var s=this.__data__;if(Je){var c=s[a];return c===n?void 0:c}return le.call(s,a)?s[a]:void 0}function Ir(a){var s=this.__data__;return Je?s[a]!==void 0:le.call(s,a)}function $r(a,s){var c=this.__data__;return this.size+=this.has(a)?0:1,c[a]=Je&&s===void 0?n:s,this}N.prototype.clear=Dr,N.prototype.delete=Rr,N.prototype.get=Ar,N.prototype.has=Ir,N.prototype.set=$r;function U(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var p=a[s];this.set(p[0],p[1])}}function Fr(){this.__data__=[],this.size=0}function Mr(a){var s=this.__data__,c=Be(s,a);if(c<0)return!1;var p=s.length-1;return c==p?s.pop():Ve.call(s,c,1),--this.size,!0}function kr(a){var s=this.__data__,c=Be(s,a);return c<0?void 0:s[c][1]}function Ur(a){return Be(this.__data__,a)>-1}function Lr(a,s){var c=this.__data__,p=Be(c,a);return p<0?(++this.size,c.push([a,s])):c[p][1]=s,this}U.prototype.clear=Fr,U.prototype.delete=Mr,U.prototype.get=kr,U.prototype.has=Ur,U.prototype.set=Lr;function H(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var p=a[s];this.set(p[0],p[1])}}function Nr(){this.size=0,this.__data__={hash:new N,map:new(Le||U),string:new N}}function Hr(a){var s=xe(this,a).delete(a);return this.size-=s?1:0,s}function Wr(a){return xe(this,a).get(a)}function Br(a){return xe(this,a).has(a)}function Yr(a,s){var c=xe(this,a),p=c.size;return c.set(a,s),this.size+=c.size==p?0:1,this}H.prototype.clear=Nr,H.prototype.delete=Hr,H.prototype.get=Wr,H.prototype.has=Br,H.prototype.set=Yr;function We(a){var s=-1,c=a==null?0:a.length;for(this.__data__=new H;++s<c;)this.add(a[s])}function or(a){return this.__data__.set(a,n),this}function Ct(a){return this.__data__.has(a)}We.prototype.add=We.prototype.push=or,We.prototype.has=Ct;function J(a){var s=this.__data__=new U(a);this.size=s.size}function Wt(){this.__data__=new U,this.size=0}function qr(a){var s=this.__data__,c=s.delete(a);return this.size=s.size,c}function Gr(a){return this.__data__.get(a)}function jr(a){return this.__data__.has(a)}function Qr(a,s){var c=this.__data__;if(c instanceof U){var p=c.__data__;if(!Le||p.length<r-1)return p.push([a,s]),this.size=++c.size,this;c=this.__data__=new H(p)}return c.set(a,s),this.size=c.size,this}J.prototype.clear=Wt,J.prototype.delete=qr,J.prototype.get=Gr,J.prototype.has=jr,J.prototype.set=Qr;function Kr(a,s){var c=Pt(a),p=!c&&ut(a),C=!c&&!p&&ge(a),w=!c&&!p&&!C&&hr(a),S=c||p||C||w,O=S?Pr(a.length,String):[],z=O.length;for(var D in a)(s||le.call(a,D))&&!(S&&(D=="length"||C&&(D=="offset"||D=="parent")||w&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||en(D,z)))&&O.push(D);return O}function Be(a,s){for(var c=a.length;c--;)if(fr(a[c][0],s))return c;return-1}function Bt(a,s,c){var p=s(a);return Pt(a)?p:pt(p,c(a))}function st(a){return a==null?a===void 0?Ke:k:Se&&Se in Object(a)?qe(a):Gt(a)}function sr(a){return $e(a)&&st(a)==d}function lr(a,s,c,p,C){return a===s?!0:a==null||s==null||!$e(a)&&!$e(s)?a!==a&&s!==s:ur(a,s,c,p,lr,C)}function ur(a,s,c,p,C,w){var S=Pt(a),O=Pt(s),z=S?g:Ae(a),D=O?g:Ae(s);z=z==d?R:z,D=D==d?R:D;var Z=z==R,re=D==R,W=z==D;if(W&&ge(a)){if(!ge(s))return!1;S=!0,Z=!1}if(W&&!Z)return w||(w=new J),S||hr(a)?qt(a,s,c,p,C,w):Vr(a,s,z,c,p,C,w);if(!(c&i)){var ee=Z&&le.call(a,"__wrapped__"),ne=re&&le.call(s,"__wrapped__");if(ee||ne){var et=ee?a.value():a,Ge=ne?s.value():s;return w||(w=new J),C(et,Ge,c,p,w)}}return W?(w||(w=new J),Jr(a,s,c,p,C,w)):!1}function Xr(a){if(!dr(a)||tn(a))return!1;var s=jt(a)?nr:Ce;return s.test(ue(a))}function zr(a){return $e(a)&&Ze(a.length)&&!!I[st(a)]}function Yt(a){if(!rn(a))return ke(a);var s=[];for(var c in Object(a))le.call(a,c)&&c!="constructor"&&s.push(c);return s}function qt(a,s,c,p,C,w){var S=c&i,O=a.length,z=s.length;if(O!=z&&!(S&&z>O))return!1;var D=w.get(a);if(D&&w.get(s))return D==s;var Z=-1,re=!0,W=c&l?new We:void 0;for(w.set(a,s),w.set(s,a);++Z<O;){var ee=a[Z],ne=s[Z];if(p)var et=S?p(ne,ee,Z,s,a,w):p(ee,ne,Z,a,s,w);if(et!==void 0){if(et)continue;re=!1;break}if(W){if(!kt(s,function(Ge,ct){if(!gt(W,ct)&&(ee===Ge||C(ee,Ge,c,p,w)))return W.push(ct)})){re=!1;break}}else if(!(ee===ne||C(ee,ne,c,p,w))){re=!1;break}}return w.delete(a),w.delete(s),re}function Vr(a,s,c,p,C,w,S){switch(c){case Te:if(a.byteLength!=s.byteLength||a.byteOffset!=s.byteOffset)return!1;a=a.buffer,s=s.buffer;case Xe:return!(a.byteLength!=s.byteLength||!w(new ar(a),new ar(s)));case y:case P:case G:return fr(+a,+s);case b:return a.name==s.name&&a.message==s.message;case ie:case Ee:return a==s+"";case q:var O=tr;case fe:var z=p&i;if(O||(O=ve),a.size!=s.size&&!z)return!1;var D=S.get(a);if(D)return D==s;p|=l,S.set(a,s);var Z=qt(O(a),O(s),p,C,w,S);return S.delete(a),Z;case be:if(Tt)return Tt.call(a)==Tt.call(s)}return!1}function Jr(a,s,c,p,C,w){var S=c&i,O=lt(a),z=O.length,D=lt(s),Z=D.length;if(z!=Z&&!S)return!1;for(var re=z;re--;){var W=O[re];if(!(S?W in s:le.call(s,W)))return!1}var ee=w.get(a);if(ee&&w.get(s))return ee==s;var ne=!0;w.set(a,s),w.set(s,a);for(var et=S;++re<z;){W=O[re];var Ge=a[W],ct=s[W];if(p)var Qt=S?p(ct,Ge,W,s,a,w):p(Ge,ct,W,a,s,w);if(!(Qt===void 0?Ge===ct||C(Ge,ct,c,p,w):Qt)){ne=!1;break}et||(et=W=="constructor")}if(ne&&!et){var gr=a.constructor,_r=s.constructor;gr!=_r&&"constructor"in a&&"constructor"in s&&!(typeof gr=="function"&&gr instanceof gr&&typeof _r=="function"&&_r instanceof _r)&&(ne=!1)}return w.delete(a),w.delete(s),ne}function lt(a){return Bt(a,St,Zr)}function xe(a,s){var c=a.__data__;return cr(s)?c[typeof s=="string"?"string":"hash"]:c.map}function Ye(a,s){var c=Ut(a,s);return Xr(c)?c:void 0}function qe(a){var s=le.call(a,Se),c=a[Se];try{a[Se]=void 0;var p=!0}catch{}var C=Nt.call(a);return p&&(s?a[Se]=c:delete a[Se]),C}var Zr=wt?function(a){return a==null?[]:(a=Object(a),Mt(wt(a),function(s){return at.call(a,s)}))}:pr,Ae=st;(Ue&&Ae(new Ue(new ArrayBuffer(1)))!=Te||Le&&Ae(new Le)!=q||it&&Ae(it.resolve())!=F||ot&&Ae(new ot)!=fe||Ne&&Ae(new Ne)!=de)&&(Ae=function(a){var s=st(a),c=s==R?a.constructor:void 0,p=c?ue(c):"";if(p)switch(p){case ir:return Te;case He:return q;case Or:return F;case Er:return fe;case yt:return de}return s});function en(a,s){return s=s==null?f:s,!!s&&(typeof a=="number"||Jt.test(a))&&a>-1&&a%1==0&&a<s}function cr(a){var s=typeof a;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?a!=="__proto__":a===null}function tn(a){return!!vt&&vt in a}function rn(a){var s=a&&a.constructor,c=typeof s=="function"&&s.prototype||nt;return a===c}function Gt(a){return Nt.call(a)}function ue(a){if(a!=null){try{return Lt.call(a)}catch{}try{return a+""}catch{}}return""}function fr(a,s){return a===s||a!==a&&s!==s}var ut=sr(function(){return arguments}())?sr:function(a){return $e(a)&&le.call(a,"callee")&&!at.call(a,"callee")},Pt=Array.isArray;function Ie(a){return a!=null&&Ze(a.length)&&!jt(a)}var ge=Ht||an;function nn(a,s){return lr(a,s)}function jt(a){if(!dr(a))return!1;var s=st(a);return s==M||s==Y||s==m||s==ce}function Ze(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=f}function dr(a){var s=typeof a;return a!=null&&(s=="object"||s=="function")}function $e(a){return a!=null&&typeof a=="object"}var hr=Ft?Sr(Ft):zr;function St(a){return Ie(a)?Kr(a):Yt(a)}function pr(){return[]}function an(){return!1}t.exports=nn}),Hn={a:["a","\xE0","\xE1","\xE2","\xE3","\xE4","\xE5","\xE6","\u0101","\u0103","\u0105","\u01CE","\u01DF","\u01E1","\u01FB","\u0201","\u0203","\u0227","\u0250","\u0251","\u0252","\u0363","\u0430","\u04D1","\u04D3","\u1D43","\u1D44","\u1D8F","\u1E01","\u1E9A","\u1EA1","\u1EA3","\u1EA5","\u1EA7","\u1EA9","\u1EAB","\u1EAD","\u1EAF","\u1EB1","\u1EB3","\u1EB5","\u1EB7","\u2090","\u2C65","\uFF41"],A:["A","\xC0","\xC1","\xC2","\xC3","\xC4","\xC5","\u0100","\u0102","\u0104","\u01CD","\u01DE","\u01E0","\u01FA","\u0200","\u0202","\u0226","\u023A","\u0410","\u04D0","\u04D2","\u1D00","\u1D2C","\u1E00","\u1EA0","\u1EA2","\u1EA4","\u1EA6","\u1EA8","\u1EAA","\u1EAC","\u1EAE","\u1EB0","\u1EB2","\u1EB4","\u1EB6","\uFF21"],b:["b","\u0180","\u0183","\u0253","\u15AF","\u1D47","\u1D6C","\u1D80","\u1E03","\u1E05","\u1E07","\uFF42"],B:["B","\u0181","\u0182","\u0243","\u0299","\u16D2","\u1D03","\u1D2E","\u1D2F","\u1E02","\u1E04","\u1E06","\uFF22"],c:["c","\xE7","\u0107","\u0109","\u010B","\u010D","\u0188","\u023C","\u0255","\u0368","\u1D04","\u1D9C","\u1E09","\u2184","\uFF43"],C:["C","\xC7","\u0106","\u0108","\u010A","\u010C","\u0187","\u023B","\u0297","\u1E08","\uFF23"],d:["d","\u010F","\u0111","\u018B","\u018C","\u0221","\u0256","\u0257","\u0369","\u1D48","\u1D6D","\u1D81","\u1D91","\u1E0B","\u1E0D","\u1E0F","\u1E11","\u1E13","\uFF44"],D:["D","\u010E","\u0110","\u0189","\u018A","\u1D30","\u1E0A","\u1E0C","\u1E0E","\u1E10","\u1E12","\uFF24"],e:["e","\xE8","\xE9","\xEA","\xEB","\u0113","\u0115","\u0117","\u0119","\u011B","\u01DD","\u0205","\u0207","\u0229","\u0247","\u0258","\u0364","\u1D49","\u1D92","\u1E15","\u1E17","\u1E19","\u1E1B","\u1E1D","\u1EB9","\u1EBB","\u1EBD","\u1EBF","\u1EC1","\u1EC3","\u1EC5","\u1EC7","\u2091","\uFF45"],E:["E","\xC8","\xC9","\xCA","\xCB","\u0112","\u0114","\u0116","\u0118","\u011A","\u0152","\u018E","\u0190","\u0204","\u0206","\u0228","\u0246","\u025B","\u025C","\u0276","\u0404","\u042D","\u044D","\u0454","\u04EC","\u04ED","\u1D07","\u1D08","\u1D31","\u1D32","\u1D4B","\u1D4C","\u1D93","\u1D94","\u1D9F","\u1E14","\u1E16","\u1E18","\u1E1A","\u1E1C","\u1EB8","\u1EBA","\u1EBC","\u1EBE","\u1EC0","\u1EC2","\u1EC4","\u1EC6","\uFF25","\u{10401}","\u{10429}"],f:["f","\u0192","\u1D6E","\u1D82","\u1DA0","\u1E1F","\uFF46"],F:["F","\u0191","\u1E1E","\u214E","\uFF26"],g:["g","\u011D","\u011F","\u0121","\u0123","\u01E5","\u01E7","\u01F5","\u0260","\u0261","\u1D4D","\u1D77","\u1D79","\u1D83","\u1DA2","\u1E21","\uFF47"],G:["G","\u011C","\u011E","\u0120","\u0122","\u0193","\u01E4","\u01E6","\u01F4","\u0262","\u029B","\u1D33","\u1E20","\uFF27"],h:["h","\u0125","\u0127","\u0195","\u021F","\u0265","\u0266","\u02AE","\u02AF","\u02B0","\u02B1","\u036A","\u04BA","\u04BB","\u144B","\u1DA3","\u1E23","\u1E25","\u1E27","\u1E29","\u1E2B","\u2C68","\uFF48"],H:["H","\u0124","\u0126","\u021E","\u029C","\u157C","\u16BA","\u16BB","\u1D34","\u1E22","\u1E24","\u1E26","\u1E28","\u1E2A","\u2C67","\uFF28"],i:["i","\xEC","\xED","\xEE","\xEF","\u0129","\u012B","\u012D","\u012F","\u01D0","\u0209","\u020B","\u0268","\u0365","\u1D09","\u1D4E","\u1D62","\u1D96","\u1DA4","\u1E2D","\u1E2F","\u1EC9","\u1ECB","\uFF49"],I:["I","\xCC","\xCD","\xCE","\xCF","\u0128","\u012A","\u012C","\u012E","\u0130","\u01CF","\u0208","\u020A","\u026A","\u0406","\u1D35","\u1D7B","\u1DA6","\u1DA7","\u1E2C","\u1E2E","\u1EC8","\u1ECA","\uFF29"],j:["j","\u0135","\u01F0","\u0249","\u029D","\u02B2","\u1DA1","\u1DA8","\uFF4A"],J:["J","\u0134","\u1D0A","\u1D36","\uFF2A"],k:["k","\u0137","\u0199","\u01E9","\u029E","\u1D4F","\u1D84","\u1E31","\u1E33","\u1E35","\u2C6A","\uFF4B"],K:["K","\u0136","\u0198","\u01E8","\u1D37","\u1E30","\u1E32","\u1E34","\u2C69","\uFF2B"],l:["l","\u013A","\u013C","\u013E","\u0140","\u0142","\u019A","\u0234","\u026B","\u026C","\u026D","\u02E1","\u1D85","\u1DA9","\u1DAA","\u1E37","\u1E39","\u1E3B","\u1E3D","\u2113","\u2C61"],L:["L","\u0139","\u013B","\u013D","\u013F","\u0141","\u023D","\u029F","\u1D0C","\u1D38","\u1DAB","\u1E36","\u1E38","\u1E3A","\u1E3C","\u2C60","\u2C62"],m:["m","\u026F","\u0270","\u0271","\u036B","\u1D1F","\u1D50","\u1D5A","\u1D6F","\u1D86","\u1DAC","\u1DAD","\u1E3F","\u1E41","\u1E43","\u33A1","\u33A5","\uFF4D"],M:["M","\u019C","\u1D0D","\u1D39","\u1E3E","\u1E40","\u1E42","\uFF2D"],n:["n","\xF1","\u0144","\u0146","\u0148","\u0149","\u019E","\u01F9","\u0235","\u0272","\u0273","\u1D70","\u1D87","\u1DAE","\u1DAF","\u1E45","\u1E47","\u1E49","\u1E4B","\u207F","\uFF4E"],N:["N","\xD1","\u0143","\u0145","\u0147","\u019D","\u01F8","\u0220","\u0274","\u1D0E","\u1D3A","\u1D3B","\u1DB0","\u1E44","\u1E46","\u1E48","\u1E4A","\uFF2E"],o:["o","\xF2","\xF3","\xF4","\xF5","\xF6","\xF8","\u014D","\u014F","\u0151","\u01A1","\u01D2","\u01EB","\u01ED","\u01FF","\u020D","\u020F","\u022B","\u022D","\u022F","\u0231","\u0275","\u0366","\u043E","\u04E7","\u04E9","\u1D0F","\u1D11","\u1D13","\u1D3C","\u1D52","\u1DB1","\u1E4D","\u1E4F","\u1E51","\u1E53","\u1ECD","\u1ECF","\u1ED1","\u1ED3","\u1ED5","\u1ED7","\u1ED9","\u1EDB","\u1EDD","\u1EDF","\u1EE1","\u1EE3","\u2092","\uFF4F","\u{1042C}"],O:["O","\xD2","\xD3","\xD4","\xD5","\xD6","\xD8","\u014C","\u014E","\u0150","\u019F","\u01A0","\u01D1","\u01EA","\u01EC","\u01FE","\u020C","\u020E","\u022A","\u022C","\u022E","\u0230","\u041E","\u04E6","\u04E8","\u1E4C","\u1E4E","\u1E50","\u1E52","\u1ECC","\u1ECE","\u1ED0","\u1ED2","\u1ED4","\u1ED6","\u1ED8","\u1EDA","\u1EDC","\u1EDE","\u1EE0","\u1EE2","\uFF2F","\u{10404}"],p:["p","\u1D56","\u1D71","\u1D7D","\u1D88","\u1E55","\u1E57","\uFF50"],P:["P","\u01A4","\u1D18","\u1D3E","\u1E54","\u1E56","\u2C63","\uFF30"],q:["q","\u024B","\u02A0","\u16E9","\uFF51"],Q:["Q","\u024A","\uFF31"],r:["r","\u0155","\u0157","\u0159","\u0211","\u0213","\u024D","\u0279","\u027B","\u02B3","\u02B4","\u02B5","\u036C","\u1D63","\u1D72","\u1D89","\u1E59","\u1E5B","\u1E5D","\u1E5F"],R:["R","\u0154","\u0156","\u0158","\u01A6","\u0210","\u0212","\u024C","\u0280","\u0281","\u02B6","\u16B1","\u1D19","\u1D1A","\u1D3F","\u1E58","\u1E5A","\u1E5C","\u1E5E","\u2C64"],s:["s","\u015B","\u015D","\u015F","\u0161","\u0219","\u0282","\u1506","\u1D8A","\u1E61","\u1E63","\u1E65","\u1E67","\u1E69","\uFF53"],S:["S","\u015A","\u015C","\u015E","\u0160","\u0218","\u023F","\u02E2","\u1D74","\u1E60","\u1E62","\u1E64","\u1E66","\u1E68","\uFF33"],t:["t","\u0163","\u0165","\u0167","\u01AB","\u01AD","\u021B","\u0287","\u036D","\u1D40","\u1D57","\u1D75","\u1DB5","\u1E6B","\u1E6D","\u1E6F","\u1E71","\u1E97","\uFF54"],T:["T","\u0162","\u0164","\u01AC","\u01AE","\u021A","\u023E","\u1D1B","\u1D40","\u1E6A","\u1E6C","\u1E6E","\u1E70","\uFF34"],u:["u","\xF9","\xFA","\xFB","\xFC","\u0169","\u016B","\u016D","\u016F","\u0171","\u0173","\u01B0","\u01D4","\u01D6","\u01D8","\u01DA","\u01DC","\u0215","\u0217","\u0367","\u07CE","\u1D58","\u1D64","\u1E73","\u1E75","\u1E77","\u1E79","\u1E7B","\u1EE5","\u1EE7","\u1EE9","\u1EEB","\u1EED","\u1EEF","\u1EF1","\uFF55"],U:["U","\xD9","\xDA","\xDB","\xDC","\u0168","\u016A","\u016C","\u016E","\u0170","\u0172","\u01AF","\u01D3","\u01D5","\u01D7","\u01D9","\u01DB","\u0214","\u0216","\u0244","\u1D1C","\u1D41","\u1D7E","\u1E72","\u1E74","\u1E76","\u1E78","\u1E7A","\u1EE4","\u1EE6","\u1EE8","\u1EEA","\u1EEC","\u1EEE","\u1EF0","\uFF35"],v:["v","\u028B","\u036E","\u1D5B","\u1D65","\u1DB9","\u1E7D","\u1E7F","\u2C71","\uFF56","\u2C74"],V:["V","\u01B2","\u0245","\u028C","\u1D20","\u1D8C","\u1E7C","\u1E7E","\uFF36"],w:["w","\u0175","\u02B7","\u1D42","\u1E81","\u1E83","\u1E85","\u1E87","\u1E89","\u1E98","\u2C73","\uFF57"],W:["W","\u0174","\u028D","\u1D21","\u1E80","\u1E82","\u1E84","\u1E86","\u1E88","\u2C72","\uFF37"],x:["x","\u033D","\u0353","\u1D8D","\u036F","\u1E8B","\u1E8D","\u2093","\uFF58"],X:["X","\u02E3","\u036F","\u1E8A","\u1E8C","\u2612","\u2715","\u2716","\u2717","\u2718","\uFF38"],y:["y","\xFD","\xFF","\u0177","\u0233","\u024F","\u02B8","\u1E8F","\u1EF3","\u1EF5","\u1EF7","\u1EF9","\uFF59"],Y:["Y","\xDD","\u0176","\u0178","\u01B3","\u01B4","\u0232","\u024E","\u028E","\u028F","\u1E8E","\u1EF2","\u1EF4","\u1EF6","\u1EF8","\uFF39"],z:["z","\u017A","\u017C","\u017E","\u01B6","\u0225","\u0240","\u0290","\u0291","\u1646","\u1647","\u1DBB","\u1DBC","\u1DBD","\u1E91","\u1E93","\u1E95","\u2C6C","\uFF5A"],Z:["Z","\u0179","\u017B","\u017D","\u01B5","\u0224","\u1D22","\u1D76","\u1E90","\u1E92","\u1E94","\u2C6B","\uFF3A"]},yn=function(t){for(var e=[],r=0;r<t.length;r++){var n=t.charAt(r),i=!1;for(var l in Hn){var f=Hn[l].indexOf(n);if(f!==-1){e.push(l),i=!0;break}}i||e.push(n)}return e.join("")},Wn=function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")},Xt={format:function(e){return e},filterPredicate:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(typeof e=="undefined"||e===null)return!1;var l=n?String(e).toLowerCase():yn(Wn(String(e)).toLowerCase()),f=n?r.toLowerCase():yn(Wn(r).toLowerCase());return i?l===f:l.indexOf(f)>-1},compare:function(e,r){function n(i){return typeof i=="undefined"||i===null?"":yn(i.toLowerCase())}return e=n(e),r=n(r),e<r?-1:e>r?1:0}},wi={name:"VgtPaginationPageInfo",props:{currentPage:{default:1},lastPage:{default:1},totalRecords:{default:0},ofText:{default:"of",type:String},pageText:{default:"page",type:String}},data:function(){return{}},computed:{pageInfo:function(){return"".concat(this.ofText," ").concat(this.lastPage)}},methods:{changePage:function(e){var r=parseInt(e.target.value,10);//! invalid number
if(Number.isNaN(r)||r>this.lastPage||r<1)return e.target.value=this.currentPage,!1;e.target.value=r,this.$emit("page-changed",r)}},mounted:function(){},components:{}};function Et(t,e,r,n,i,l,f,d,g,m){typeof f!="boolean"&&(g=d,d=f,f=!1);const y=typeof r=="function"?r.options:r;t&&t.render&&(y.render=t.render,y.staticRenderFns=t.staticRenderFns,y._compiled=!0,i&&(y.functional=!0)),n&&(y._scopeId=n);let P;if(l?(P=function(b){b=b||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!b&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(b=__VUE_SSR_CONTEXT__),e&&e.call(this,g(b)),b&&b._registeredComponents&&b._registeredComponents.add(l)},y._ssrRegister=P):e&&(P=f?function(b){e.call(this,m(b,this.$root.$options.shadowRoot))}:function(b){e.call(this,d(b))}),P)if(y.functional){const b=y.render;y.render=function(Y,q){return P.call(q),b(Y,q)}}else{const b=y.beforeCreate;y.beforeCreate=b?[].concat(b,P):[P]}return r}var yi=wi,bi=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"footer__navigation__page-info"},[e._v(`
`+e._s(e.pageText)+" "),n("input",{staticClass:"footer__navigation__page-info__current-entry",attrs:{type:"text"},domProps:{value:e.currentPage},on:{keyup:function(l){return!l.type.indexOf("key")&&e._k(l.keyCode,"enter",13,l.key,"Enter")?null:(l.stopPropagation(),e.changePage(l))}}}),e._v(" "+e._s(e.pageInfo)+`
`)])},Ti=[],Ci=void 0,Pi="data-v-9a8cd1f4",Si=void 0,xi=!1,Oi=Et({render:bi,staticRenderFns:Ti},Ci,yi,Pi,xi,Si,!1,void 0,void 0,void 0),Ei=[10,20,30,40,50],Di={name:"VgtPagination",props:{styleClass:{default:"table table-bordered"},total:{default:null},perPage:{},rtl:{default:!1},customRowsPerPageDropdown:{default:function(){return[]}},paginateDropdownAllowAll:{default:!0},mode:{default:"records"},nextText:{default:"Next"},prevText:{default:"Prev"},rowsPerPageText:{default:"Rows per page:"},ofText:{default:"of"},pageText:{default:"page"},allText:{default:"All"}},data:function(){return{currentPage:1,prevPage:0,currentPerPage:10,rowsPerPageOptions:[]}},watch:{perPage:{handler:function(e,r){this.handlePerPage(),this.perPageChanged(r)},immediate:!0},customRowsPerPageDropdown:function(){this.handlePerPage()},total:{handler:function(e,r){this.rowsPerPageOptions.indexOf(this.currentPerPage)===-1&&(this.currentPerPage=e)}}},computed:{pagesCount:function(){var e=Math.floor(this.total/this.currentPerPage),r=this.total%this.currentPerPage;return r===0?e:e+1},paginatedInfo:function(){var e=(this.currentPage-1)*this.currentPerPage+1,r=Math.min(this.total,this.currentPage*this.currentPerPage);return r===0&&(e=0),"".concat(e," - ").concat(r," ").concat(this.ofText," ").concat(this.total)},nextIsPossible:function(){return this.currentPage<this.pagesCount},prevIsPossible:function(){return this.currentPage>1}},methods:{changePage:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;e>0&&this.total>this.currentPerPage*(e-1)&&(this.prevPage=this.currentPage,this.currentPage=e,r&&this.pageChanged())},nextPage:function(){this.nextIsPossible&&(this.prevPage=this.currentPage,++this.currentPage,this.pageChanged())},previousPage:function(){this.prevIsPossible&&(this.prevPage=this.currentPage,--this.currentPage,this.pageChanged())},pageChanged:function(){this.$emit("page-changed",{currentPage:this.currentPage,prevPage:this.prevPage})},perPageChanged:function(e){e&&this.$emit("per-page-changed",{currentPerPage:this.currentPerPage}),this.changePage(1,!1)},handlePerPage:function(){if(this.customRowsPerPageDropdown!==null&&Array.isArray(this.customRowsPerPageDropdown)&&this.customRowsPerPageDropdown.length!==0?this.rowsPerPageOptions=ye(this.customRowsPerPageDropdown):this.rowsPerPageOptions=ye(Ei),this.perPage){this.currentPerPage=this.perPage;for(var e=!1,r=0;r<this.rowsPerPageOptions.length;r++)this.rowsPerPageOptions[r]===this.perPage&&(e=!0);!e&&this.perPage!==-1&&this.rowsPerPageOptions.unshift(this.perPage)}else this.currentPerPage=10}},mounted:function(){},components:{"pagination-page-info":Oi}},Ri=Di,Ai=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"vgt-wrap__footer vgt-clearfix"},[n("div",{staticClass:"footer__row-count vgt-pull-left"},[n("span",{staticClass:"footer__row-count__label"},[e._v(e._s(e.rowsPerPageText))]),e._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:e.currentPerPage,expression:"currentPerPage"}],staticClass:"footer__row-count__select",attrs:{autocomplete:"off",name:"perPageSelect"},on:{change:[function(i){var l=Array.prototype.filter.call(i.target.options,function(f){return f.selected}).map(function(f){var d="_value"in f?f._value:f.value;return d});e.currentPerPage=i.target.multiple?l:l[0]},e.perPageChanged]}},[e._l(e.rowsPerPageOptions,function(i,l){return n("option",{key:"rows-dropdown-option-"+l,domProps:{value:i}},[e._v(`
`+e._s(i)+`
`)])}),e._v(" "),e.paginateDropdownAllowAll?n("option",{domProps:{value:e.total}},[e._v(e._s(e.allText))]):e._e()],2)]),e._v(" "),n("div",{staticClass:"footer__navigation vgt-pull-right"},[n("a",{staticClass:"footer__navigation__page-btn",class:{disabled:!e.prevIsPossible},attrs:{href:"javascript:undefined",tabindex:"0"},on:{click:function(l){return l.preventDefault(),l.stopPropagation(),e.previousPage(l)}}},[n("span",{staticClass:"chevron",class:{left:!e.rtl,right:e.rtl}}),e._v(" "),n("span",[e._v(e._s(e.prevText))])]),e._v(" "),e.mode==="pages"?n("pagination-page-info",{attrs:{totalRecords:e.total,lastPage:e.pagesCount,currentPage:e.currentPage,ofText:e.ofText,pageText:e.pageText},on:{"page-changed":e.changePage}}):n("div",{staticClass:"footer__navigation__info"},[e._v(e._s(e.paginatedInfo))]),e._v(" "),n("a",{staticClass:"footer__navigation__page-btn",class:{disabled:!e.nextIsPossible},attrs:{href:"javascript:undefined",tabindex:"0"},on:{click:function(l){return l.preventDefault(),l.stopPropagation(),e.nextPage(l)}}},[n("span",[e._v(e._s(e.nextText))]),e._v(" "),n("span",{staticClass:"chevron",class:{right:!e.rtl,left:e.rtl}})])],1)])},Ii=[],$i=void 0,Fi=void 0,Mi=void 0,ki=!1,Ui=Et({render:Ai,staticRenderFns:Ii},$i,Ri,Fi,ki,Mi,!1,void 0,void 0,void 0),Li={name:"VgtGlobalSearch",props:["value","searchEnabled","globalSearchPlaceholder"],data:function(){return{globalSearchTerm:null}},computed:{showControlBar:function(){return!!(this.searchEnabled||this.$slots&&this.$slots["internal-table-actions"])}},methods:{updateValue:function(e){this.$emit("input",e),this.$emit("on-keyup",e)},entered:function(e){this.$emit("on-enter",e)}}},Ni=Li,Hi=function(){var e=this,r=e.$createElement,n=e._self._c||r;return e.showControlBar?n("div",{staticClass:"vgt-global-search vgt-clearfix"},[n("div",{staticClass:"vgt-global-search__input vgt-pull-left"},[e.searchEnabled?n("span",{staticClass:"input__icon"},[n("div",{staticClass:"magnifying-glass"})]):e._e(),e._v(" "),e.searchEnabled?n("input",{staticClass:"vgt-input vgt-pull-left",attrs:{type:"text",placeholder:e.globalSearchPlaceholder},domProps:{value:e.value},on:{input:function(l){return e.updateValue(l.target.value)},keyup:function(l){return!l.type.indexOf("key")&&e._k(l.keyCode,"enter",13,l.key,"Enter")?null:e.entered(l.target.value)}}}):e._e()]),e._v(" "),n("div",{staticClass:"vgt-global-search__actions vgt-pull-right"},[e._t("internal-table-actions")],2)]):e._e()},Wi=[],Bi=void 0,Yi=void 0,qi=void 0,Gi=!1,ji=Et({render:Hi,staticRenderFns:Wi},Bi,Ni,Yi,Gi,qi,!1,void 0,void 0,void 0),Qi={name:"VgtFilterRow",props:["lineNumbers","columns","typedColumns","globalSearchEnabled","selectable","mode"],watch:{columns:{handler:function(e,r){this.populateInitialFilters()},deep:!0,immediate:!0}},data:function(){return{columnFilters:{},timer:null}},computed:{hasFilterRow:function(){for(var e=0;e<this.columns.length;e++){var r=this.columns[e];if(r.filterOptions&&r.filterOptions.enabled)return!0}return!1}},methods:{reset:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.columnFilters={},e&&this.$emit("filter-changed",this.columnFilters)},isFilterable:function(e){return e.filterOptions&&e.filterOptions.enabled},isDropdown:function(e){return this.isFilterable(e)&&e.filterOptions.filterDropdownItems&&e.filterOptions.filterDropdownItems.length},isDropdownObjects:function(e){return this.isDropdown(e)&&Ot(e.filterOptions.filterDropdownItems[0])==="object"},isDropdownArray:function(e){return this.isDropdown(e)&&Ot(e.filterOptions.filterDropdownItems[0])!=="object"},getPlaceholder:function(e){var r=this.isFilterable(e)&&e.filterOptions.placeholder||"Filter ".concat(e.label);return r},updateFiltersOnEnter:function(e,r){this.timer&&clearTimeout(this.timer),this.updateFiltersImmediately(e.field,r)},updateFiltersOnKeyup:function(e,r){e.filterOptions.trigger!=="enter"&&this.updateFilters(e,r)},updateSlotFilter:function(e,r){var n=e.filterOptions.slotFilterField||e.field;typeof e.filterOptions.formatValue=="function"&&(r=e.filterOptions.formatValue(r)),this.updateFiltersImmediately(n,r)},updateFilters:function(e,r){var n=this;this.timer&&clearTimeout(this.timer),this.timer=setTimeout(function(){n.updateFiltersImmediately(e.field,r)},400)},updateFiltersImmediately:function(e,r){this.$set(this.columnFilters,e,r),this.$emit("filter-changed",this.columnFilters)},populateInitialFilters:function(){for(var e=0;e<this.columns.length;e++){var r=this.columns[e];this.isFilterable(r)&&typeof r.filterOptions.filterValue!="undefined"&&r.filterOptions.filterValue!==null&&this.$set(this.columnFilters,r.field,r.filterOptions.filterValue)}this.$emit("filter-changed",this.columnFilters)}}},Ki=Qi,Xi=function(){var e=this,r=e.$createElement,n=e._self._c||r;return e.hasFilterRow?n("tr",[e.lineNumbers?n("th"):e._e(),e._v(" "),e.selectable?n("th"):e._e(),e._v(" "),e._l(e.columns,function(i,l){return i.hidden?e._e():n("th",{key:l,staticClass:"filter-th"},[e._t("column-filter",[e.isFilterable(i)?n("div",[e.isDropdown(i)?e._e():n("input",{staticClass:"vgt-input",attrs:{type:"text",placeholder:e.getPlaceholder(i)},domProps:{value:e.columnFilters[i.field]},on:{keyup:function(d){return!d.type.indexOf("key")&&e._k(d.keyCode,"enter",13,d.key,"Enter")?null:e.updateFiltersOnEnter(i,d.target.value)},input:function(d){return e.updateFiltersOnKeyup(i,d.target.value)}}}),e._v(" "),e.isDropdownArray(i)?n("select",{staticClass:"vgt-select",domProps:{value:e.columnFilters[i.field]},on:{change:function(d){return e.updateFilters(i,d.target.value)}}},[n("option",{key:"-1",attrs:{value:""}},[e._v(e._s(e.getPlaceholder(i)))]),e._v(" "),e._l(i.filterOptions.filterDropdownItems,function(f,d){return n("option",{key:d,domProps:{value:f}},[e._v(`
`+e._s(f)+`
`)])})],2):e._e(),e._v(" "),e.isDropdownObjects(i)?n("select",{staticClass:"vgt-select",domProps:{value:e.columnFilters[i.field]},on:{change:function(d){return e.updateFilters(i,d.target.value,!0)}}},[n("option",{key:"-1",attrs:{value:""}},[e._v(e._s(e.getPlaceholder(i)))]),e._v(" "),e._l(i.filterOptions.filterDropdownItems,function(f,d){return n("option",{key:d,domProps:{value:f.value}},[e._v(e._s(f.text))])})],2):e._e()]):e._e()],{column:i,updateFilters:e.updateSlotFilter})],2)})],2):e._e()},zi=[],Vi=void 0,Ji="data-v-1c6bfd21",Zi=void 0,eo=!1,to=Et({render:Xi,staticRenderFns:zi},Vi,Ki,Ji,eo,Zi,!1,void 0,void 0,void 0),Bn="asc";function Yn(t){return t.firstSortType||Bn}function ro(t,e){return t.length===1&&t[0].field===e.field?t[0].type:void 0}function qn(t){return t==="asc"?"desc":Bn}function no(t,e){for(var r=0;r<t.length;r++)if(e.field===t[r].field)return r;return-1}var ao=function(t,e){var r=ro(t,e);return[{field:e.field,type:r?qn(r):Yn(e)}]},io=function(t,e){var r=no(t,e);return r===-1?t.push({field:e.field,type:Yn(e)}):t[r].type=qn(t[r].type),t},oo={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},mode:{type:String},typedColumns:{},sortable:{type:Boolean},getClasses:{type:Function},searchEnabled:{type:Boolean},tableRef:{},paginated:{}},watch:{columns:{handler:function(){this.setColumnStyles()},immediate:!0},tableRef:{handler:function(){this.setColumnStyles()},immediate:!0},paginated:{handler:function(){this.tableRef&&this.setColumnStyles()},deep:!0}},data:function(){return{checkBoxThStyle:{},lineNumberThStyle:{},columnStyles:[],sorts:[],ro:null}},computed:{},methods:{reset:function(){this.$refs["filter-row"].reset(!0)},toggleSelectAll:function(){this.$emit("on-toggle-select-all")},isSortableColumn:function(e){var r=e.sortable,n=typeof r=="boolean"?r:this.sortable;return n},sort:function(e,r){!this.isSortableColumn(r)||(e.shiftKey?this.sorts=io(this.sorts,r):this.sorts=ao(this.sorts,r),this.$emit("on-sort-change",this.sorts))},setInitialSort:function(e){this.sorts=e,this.$emit("on-sort-change",this.sorts)},getColumnSort:function(e){for(var r=0;r<this.sorts.length;r+=1)if(this.sorts[r].field===e.field)return this.sorts[r].type||"asc";return null},getHeaderClasses:function(e,r){var n=Nn({},this.getClasses(r,"th"),{sortable:this.isSortableColumn(e),"sorting sorting-desc":this.getColumnSort(e)==="desc","sorting sorting-asc":this.getColumnSort(e)==="asc"});return n},filterRows:function(e){this.$emit("filter-changed",e)},getWidthStyle:function(e){if(window&&window.getComputedStyle&&e){var r=window.getComputedStyle(e,null);return{width:r.width}}return{width:"auto"}},setColumnStyles:function(){for(var e=[],r=0;r<this.columns.length;r++)if(this.tableRef){var n=0;this.selectable&&n++,this.lineNumbers&&n++;var i=this.tableRef.rows[0].cells[r+n];e.push(this.getWidthStyle(i))}else e.push({minWidth:this.columns[r].width?this.columns[r].width:"auto",maxWidth:this.columns[r].width?this.columns[r].width:"auto",width:this.columns[r].width?this.columns[r].width:"auto"});this.columnStyles=e},getColumnStyle:function(e,r){var n={minWidth:e.width?e.width:"auto",maxWidth:e.width?e.width:"auto",width:e.width?e.width:"auto"};if(this.tableRef){this.selectable&&r++,this.lineNumbers&&r++;var i=this.tableRef.rows[0].cells[r],l=window.getComputedStyle(i,null);n.width=l.width}return n}},mounted:function(){var e=this;this.$nextTick(function(){e.ro=new ResizeObserver(function(){e.setColumnStyles()}),e.ro.observe(e.$parent.$el),e.tableRef&&Array.from(e.$parent.$refs["table-header-primary"].$el.children[0].children).forEach(function(r){e.ro.observe(r)})})},beforeDestroy:function(){this.ro.disconnect()},components:{"vgt-filter-row":to}},so=oo,lo=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("thead",[n("tr",[e.lineNumbers?n("th",{staticClass:"line-numbers"}):e._e(),e._v(" "),e.selectable?n("th",{staticClass:"vgt-checkbox-col"},[n("input",{attrs:{type:"checkbox"},domProps:{checked:e.allSelected,indeterminate:e.allSelectedIndeterminate},on:{change:e.toggleSelectAll}})]):e._e(),e._v(" "),e._l(e.columns,function(i,l){return i.hidden?e._e():n("th",{key:l,class:e.getHeaderClasses(i,l),style:e.columnStyles[l],on:{click:function(d){return e.sort(d,i)}}},[e._t("table-column",[n("span",[e._v(e._s(i.label))])],{column:i})],2)})],2),e._v(" "),n("vgt-filter-row",{ref:"filter-row",tag:"tr",attrs:{"global-search-enabled":e.searchEnabled,"line-numbers":e.lineNumbers,selectable:e.selectable,columns:e.columns,mode:e.mode,"typed-columns":e.typedColumns},on:{"filter-changed":e.filterRows},scopedSlots:e._u([{key:"column-filter",fn:function(l){return[e._t("column-filter",null,{column:l.column,updateFilters:l.updateFilters})]}}],null,!0)})],1)},uo=[],co=void 0,fo=void 0,ho=void 0,po=!1,go=Et({render:lo,staticRenderFns:uo},co,so,fo,po,ho,!1,void 0,void 0,void 0),_o={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}},data:function(){return{}},computed:{allSelected:function(){var e=this.headerRow;return this.groupChildObject,e.children.filter(function(r){return r.vgtSelected}).length===e.children.length}},methods:{columnCollapsable:function(e){return this.collapsable===!0?e===0:e===this.collapsable},toggleSelectGroup:function(e){this.$emit("on-select-group-change",{groupIndex:this.groupIndex,checked:e.target.checked})}},mounted:function(){},components:{}},mo=_o,vo=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("tr",[e.headerRow.mode==="span"?n("th",{staticClass:"vgt-left-align vgt-row-header",attrs:{colspan:e.fullColspan}},[e.selectAllByGroup?[e._t("table-header-group-select",[n("input",{attrs:{type:"checkbox"},domProps:{checked:e.allSelected},on:{change:function(l){return e.toggleSelectGroup(l)}}})],{columns:e.columns,row:e.headerRow})]:e._e(),e._v(" "),n("span",{on:{click:function(l){e.collapsable&&e.$emit("vgtExpand",!e.headerRow.vgtIsExpanded)}}},[e.collapsable?n("span",{staticClass:"triangle",class:{expand:e.headerRow.vgtIsExpanded}}):e._e(),e._v(" "),e._t("table-header-row",[e.headerRow.html?n("span",{domProps:{innerHTML:e._s(e.headerRow.label)}}):n("span",[e._v(`
`+e._s(e.headerRow.label)+`
`)])],{row:e.headerRow})],2)],2):e._e(),e._v(" "),e.headerRow.mode!=="span"&&e.lineNumbers?n("th",{staticClass:"vgt-row-header"}):e._e(),e._v(" "),e.headerRow.mode!=="span"&&e.selectable?n("th",{staticClass:"vgt-row-header"},[e.selectAllByGroup?[e._t("table-header-group-select",[n("input",{attrs:{type:"checkbox"},domProps:{checked:e.allSelected},on:{change:function(l){return e.toggleSelectGroup(l)}}})],{columns:e.columns,row:e.headerRow})]:e._e()],2):e._e(),e._v(" "),e._l(e.columns,function(i,l){return e.headerRow.mode!=="span"&&!i.hidden?n("th",{key:l,staticClass:"vgt-row-header",class:e.getClasses(l,"td"),on:{click:function(d){e.columnCollapsable(l)&&e.$emit("vgtExpand",!e.headerRow.vgtIsExpanded)}}},[e.columnCollapsable(l)?n("span",{staticClass:"triangle",class:{expand:e.headerRow.vgtIsExpanded}}):e._e(),e._v(" "),e._t("table-header-row",[i.html?e._e():n("span",[e._v(`
`+e._s(e.collectFormatted(e.headerRow,i,!0))+`
`)]),e._v(" "),i.html?n("span",{domProps:{innerHTML:e._s(e.collectFormatted(e.headerRow,i,!0))}}):e._e()],{row:e.headerRow,column:i,formattedRow:e.formattedRow(e.headerRow,!0)})],2):e._e()})],2)},wo=[],yo=void 0,bo=void 0,To=void 0,Co=!1,Po=Et({render:vo,staticRenderFns:wo},yo,mo,bo,Co,To,!1,void 0,void 0,void 0);function ae(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function K(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function So(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=ae(t).getTime(),n=K(e);return new Date(r+n)}var Gn=6e4;function jn(t){var e=new Date(t.getTime()),r=e.getTimezoneOffset();e.setSeconds(0,0);var n=e.getTime()%Gn;return r*Gn+n}function xo(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=ae(t),n=ae(e),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function un(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=ae(t);return!isNaN(e)}var cn={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"},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"}};function Oo(t,e,r){r=r||{};var n;return typeof cn[t]=="string"?n=cn[t]:e===1?n=cn[t].one:n=cn[t].other.replace("{{count}}",e),r.addSuffix?r.comparison>0?"in "+n:n+" ago":n}function bn(t){return function(e){var r=e||{},n=r.width?String(r.width):t.defaultWidth,i=t.formats[n]||t.formats[t.defaultWidth];return i}}var Eo={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Do={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ro={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ao={date:bn({formats:Eo,defaultWidth:"full"}),time:bn({formats:Do,defaultWidth:"full"}),dateTime:bn({formats:Ro,defaultWidth:"full"})},Io={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function $o(t,e,r,n){return Io[t]}function vr(t){return function(e,r){var n=r||{},i=n.context?String(n.context):"standalone",l;if(i==="formatting"&&t.formattingValues){var f=t.defaultFormattingWidth||t.defaultWidth,d=n.width?String(n.width):f;l=t.formattingValues[d]||t.formattingValues[f]}else{var g=t.defaultWidth,m=n.width?String(n.width):t.defaultWidth;l=t.values[m]||t.values[g]}var y=t.argumentCallback?t.argumentCallback(e):e;return l[y]}}var Fo={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Mo={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ko={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"]},Uo={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"]},Lo={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"}},No={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"}};function Ho(t,e){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"}var Wo={ordinalNumber:Ho,era:vr({values:Fo,defaultWidth:"wide"}),quarter:vr({values:Mo,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:vr({values:ko,defaultWidth:"wide"}),day:vr({values:Uo,defaultWidth:"wide"}),dayPeriod:vr({values:Lo,defaultWidth:"wide",formattingValues:No,defaultFormattingWidth:"wide"})};function Bo(t){return function(e,r){var n=String(e),i=r||{},l=n.match(t.matchPattern);if(!l)return null;var f=l[0],d=n.match(t.parsePattern);if(!d)return null;var g=t.valueCallback?t.valueCallback(d[0]):d[0];return g=i.valueCallback?i.valueCallback(g):g,{value:g,rest:n.slice(f.length)}}}function wr(t){return function(e,r){var n=String(e),i=r||{},l=i.width,f=l&&t.matchPatterns[l]||t.matchPatterns[t.defaultMatchWidth],d=n.match(f);if(!d)return null;var g=d[0],m=l&&t.parsePatterns[l]||t.parsePatterns[t.defaultParseWidth],y;return Object.prototype.toString.call(m)==="[object Array]"?y=m.findIndex(function(P){return P.test(n)}):y=Yo(m,function(P){return P.test(n)}),y=t.valueCallback?t.valueCallback(y):y,y=i.valueCallback?i.valueCallback(y):y,{value:y,rest:n.slice(g.length)}}}function Yo(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}var qo=/^(\d+)(th|st|nd|rd)?/i,Go=/\d+/i,jo={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},Qo={any:[/^b/i,/^(a|c)/i]},Ko={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Xo={any:[/1/i,/2/i,/3/i,/4/i]},zo={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},Vo={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]},Jo={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},Zo={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]},es={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},ts={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}},rs={ordinalNumber:Bo({matchPattern:qo,parsePattern:Go,valueCallback:function(t){return parseInt(t,10)}}),era:wr({matchPatterns:jo,defaultMatchWidth:"wide",parsePatterns:Qo,defaultParseWidth:"any"}),quarter:wr({matchPatterns:Ko,defaultMatchWidth:"wide",parsePatterns:Xo,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:wr({matchPatterns:zo,defaultMatchWidth:"wide",parsePatterns:Vo,defaultParseWidth:"any"}),day:wr({matchPatterns:Jo,defaultMatchWidth:"wide",parsePatterns:Zo,defaultParseWidth:"any"}),dayPeriod:wr({matchPatterns:es,defaultMatchWidth:"any",parsePatterns:ts,defaultParseWidth:"any"})},Qn={formatDistance:Oo,formatLong:Ao,formatRelative:$o,localize:Wo,match:rs,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Kn(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=K(e);return So(t,-r)}function $(t,e){for(var r=t<0?"-":"",n=Math.abs(t).toString();n.length<e;)n="0"+n;return r+n}var dt={y:function(t,e){var r=t.getUTCFullYear(),n=r>0?r:1-r;return $(e==="yy"?n%100:n,e.length)},M:function(t,e){var r=t.getUTCMonth();return e==="M"?String(r+1):$(r+1,2)},d:function(t,e){return $(t.getUTCDate(),e.length)},a:function(t,e){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return r.toUpperCase();case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,e){return $(t.getUTCHours()%12||12,e.length)},H:function(t,e){return $(t.getUTCHours(),e.length)},m:function(t,e){return $(t.getUTCMinutes(),e.length)},s:function(t,e){return $(t.getUTCSeconds(),e.length)},S:function(t,e){var r=e.length,n=t.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,r-3));return $(i,e.length)}},ns=864e5;function as(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=ae(t),r=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=e.getTime(),i=r-n;return Math.floor(i/ns)+1}function zt(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=1,r=ae(t),n=r.getUTCDay(),i=(n<e?7:0)+n-e;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function Xn(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=ae(t),r=e.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=zt(n),l=new Date(0);l.setUTCFullYear(r,0,4),l.setUTCHours(0,0,0,0);var f=zt(l);return e.getTime()>=i.getTime()?r+1:e.getTime()>=f.getTime()?r:r-1}function is(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Xn(t),r=new Date(0);r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0);var n=zt(r);return n}var os=6048e5;function zn(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=ae(t),r=zt(e).getTime()-is(e).getTime();return Math.round(r/os)+1}function Dt(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=e||{},n=r.locale,i=n&&n.options&&n.options.weekStartsOn,l=i==null?0:K(i),f=r.weekStartsOn==null?l:K(r.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=ae(t),g=d.getUTCDay(),m=(g<f?7:0)+g-f;return d.setUTCDate(d.getUTCDate()-m),d.setUTCHours(0,0,0,0),d}function Tn(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=ae(t,e),n=r.getUTCFullYear(),i=e||{},l=i.locale,f=l&&l.options&&l.options.firstWeekContainsDate,d=f==null?1:K(f),g=i.firstWeekContainsDate==null?d:K(i.firstWeekContainsDate);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(n+1,0,g),m.setUTCHours(0,0,0,0);var y=Dt(m,e),P=new Date(0);P.setUTCFullYear(n,0,g),P.setUTCHours(0,0,0,0);var b=Dt(P,e);return r.getTime()>=y.getTime()?n+1:r.getTime()>=b.getTime()?n:n-1}function ss(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=e||{},n=r.locale,i=n&&n.options&&n.options.firstWeekContainsDate,l=i==null?1:K(i),f=r.firstWeekContainsDate==null?l:K(r.firstWeekContainsDate),d=Tn(t,e),g=new Date(0);g.setUTCFullYear(d,0,f),g.setUTCHours(0,0,0,0);var m=Dt(g,e);return m}var ls=6048e5;function Vn(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var r=ae(t),n=Dt(r,e).getTime()-ss(r,e).getTime();return Math.round(n/ls)+1}var Vt={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},us={G:function(t,e,r){var n=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if(e==="yo"){var n=t.getUTCFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return dt.y(t,e)},Y:function(t,e,r,n){var i=Tn(t,n),l=i>0?i:1-i;if(e==="YY"){var f=l%100;return $(f,2)}return e==="Yo"?r.ordinalNumber(l,{unit:"year"}):$(l,e.length)},R:function(t,e){var r=Xn(t);return $(r,e.length)},u:function(t,e){var r=t.getUTCFullYear();return $(r,e.length)},Q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return $(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return $(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){var n=t.getUTCMonth();switch(e){case"M":case"MM":return dt.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){var n=t.getUTCMonth();switch(e){case"L":return String(n+1);case"LL":return $(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){var i=Vn(t,n);return e==="wo"?r.ordinalNumber(i,{unit:"week"}):$(i,e.length)},I:function(t,e,r){var n=zn(t);return e==="Io"?r.ordinalNumber(n,{unit:"week"}):$(n,e.length)},d:function(t,e,r){return e==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):dt.d(t,e)},D:function(t,e,r){var n=as(t);return e==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):$(n,e.length)},E:function(t,e,r){var n=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){var i=t.getUTCDay(),l=(i-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(l);case"ee":return $(l,2);case"eo":return r.ordinalNumber(l,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){var i=t.getUTCDay(),l=(i-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(l);case"cc":return $(l,e.length);case"co":return r.ordinalNumber(l,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,r){var n=t.getUTCDay(),i=n===0?7:n;switch(e){case"i":return String(i);case"ii":return $(i,e.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){var n=t.getUTCHours(),i=n/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,r){var n=t.getUTCHours(),i;switch(n===12?i=Vt.noon:n===0?i=Vt.midnight:i=n/12>=1?"pm":"am",e){case"b":case"bb":case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,r){var n=t.getUTCHours(),i;switch(n>=17?i=Vt.evening:n>=12?i=Vt.afternoon:n>=4?i=Vt.morning:i=Vt.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,r){if(e==="ho"){var n=t.getUTCHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return dt.h(t,e)},H:function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):dt.H(t,e)},K:function(t,e,r){var n=t.getUTCHours()%12;return e==="Ko"?r.ordinalNumber(n,{unit:"hour"}):$(n,e.length)},k:function(t,e,r){var n=t.getUTCHours();return n===0&&(n=24),e==="ko"?r.ordinalNumber(n,{unit:"hour"}):$(n,e.length)},m:function(t,e,r){return e==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):dt.m(t,e)},s:function(t,e,r){return e==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):dt.s(t,e)},S:function(t,e){return dt.S(t,e)},X:function(t,e,r,n){var i=n._originalDate||t,l=i.getTimezoneOffset();if(l===0)return"Z";switch(e){case"X":return Zn(l);case"XXXX":case"XX":return Rt(l);case"XXXXX":case"XXX":default:return Rt(l,":")}},x:function(t,e,r,n){var i=n._originalDate||t,l=i.getTimezoneOffset();switch(e){case"x":return Zn(l);case"xxxx":case"xx":return Rt(l);case"xxxxx":case"xxx":default:return Rt(l,":")}},O:function(t,e,r,n){var i=n._originalDate||t,l=i.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Jn(l,":");case"OOOO":default:return"GMT"+Rt(l,":")}},z:function(t,e,r,n){var i=n._originalDate||t,l=i.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Jn(l,":");case"zzzz":default:return"GMT"+Rt(l,":")}},t:function(t,e,r,n){var i=n._originalDate||t,l=Math.floor(i.getTime()/1e3);return $(l,e.length)},T:function(t,e,r,n){var i=n._originalDate||t,l=i.getTime();return $(l,e.length)}};function Jn(t,e){var r=t>0?"-":"+",n=Math.abs(t),i=Math.floor(n/60),l=n%60;if(l===0)return r+String(i);var f=e||"";return r+String(i)+f+$(l,2)}function Zn(t,e){if(t%60===0){var r=t>0?"-":"+";return r+$(Math.abs(t)/60,2)}return Rt(t,e)}function Rt(t,e){var r=e||"",n=t>0?"-":"+",i=Math.abs(t),l=$(Math.floor(i/60),2),f=$(i%60,2);return n+l+r+f}function ea(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function ta(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}function cs(t,e){var r=t.match(/(P+)(p+)?/),n=r[1],i=r[2];if(!i)return ea(t,e);var l;switch(n){case"P":l=e.dateTime({width:"short"});break;case"PP":l=e.dateTime({width:"medium"});break;case"PPP":l=e.dateTime({width:"long"});break;case"PPPP":default:l=e.dateTime({width:"full"});break}return l.replace("{{date}}",ea(n,e)).replace("{{time}}",ta(i,e))}var ra={p:ta,P:cs},fs=["D","DD"],ds=["YY","YYYY"];function na(t){return fs.indexOf(t)!==-1}function aa(t){return ds.indexOf(t)!==-1}function fn(t){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if(t==="YY")throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if(t==="D")throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if(t==="DD")throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}var hs=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ps=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gs=/^'(.*?)'?$/,_s=/''/g,ms=/[a-zA-Z]/;function vs(t,e,r){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=String(e),i=r||{},l=i.locale||Qn,f=l.options&&l.options.firstWeekContainsDate,d=f==null?1:K(f),g=i.firstWeekContainsDate==null?d:K(i.firstWeekContainsDate);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=l.options&&l.options.weekStartsOn,y=m==null?0:K(m),P=i.weekStartsOn==null?y:K(i.weekStartsOn);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!l.localize)throw new RangeError("locale must contain localize property");if(!l.formatLong)throw new RangeError("locale must contain formatLong property");var b=ae(t);if(!un(b))throw new RangeError("Invalid time value");var M=jn(b),Y=Kn(b,M),q={firstWeekContainsDate:g,weekStartsOn:P,locale:l,_originalDate:b},G=n.match(ps).map(function(k){var R=k[0];if(R==="p"||R==="P"){var F=ra[R];return F(k,l.formatLong,q)}return k}).join("").match(hs).map(function(k){if(k==="''")return"'";var R=k[0];if(R==="'")return ws(k);var F=us[R];if(F)return!i.useAdditionalWeekYearTokens&&aa(k)&&fn(k),!i.useAdditionalDayOfYearTokens&&na(k)&&fn(k),F(Y,k,l.localize,q);if(R.match(ms))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return k}).join("");return G}function ws(t){return t.match(gs)[1].replace(_s,"'")}function ys(t,e){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");e=e||{};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function Cn(t,e,r){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=r||{},i=n.locale,l=i&&i.options&&i.options.weekStartsOn,f=l==null?0:K(l),d=n.weekStartsOn==null?f:K(n.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=ae(t),m=K(e),y=g.getUTCDay(),P=m%7,b=(P+7)%7,M=(b<d?7:0)+m-y;return g.setUTCDate(g.getUTCDate()+M),g}function bs(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=K(e);r%7===0&&(r=r-7);var n=1,i=ae(t),l=i.getUTCDay(),f=r%7,d=(f+7)%7,g=(d<n?7:0)+r-l;return i.setUTCDate(i.getUTCDate()+g),i}function Ts(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=ae(t),n=K(e),i=zn(r)-n;return r.setUTCDate(r.getUTCDate()-i*7),r}function Cs(t,e,r){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=ae(t),i=K(e),l=Vn(n,r)-i;return n.setUTCDate(n.getUTCDate()-l*7),n}var Ps=36e5,Ss=6e4,xs=1e3,V={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}/},je={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 B(t,e,r){var n=e.match(t);if(!n)return null;var i=parseInt(n[0],10);return{value:r?r(i):i,rest:e.slice(n[0].length)}}function Qe(t,e){var r=e.match(t);if(!r)return null;if(r[0]==="Z")return{value:0,rest:e.slice(1)};var n=r[1]==="+"?1:-1,i=r[2]?parseInt(r[2],10):0,l=r[3]?parseInt(r[3],10):0,f=r[5]?parseInt(r[5],10):0;return{value:n*(i*Ps+l*Ss+f*xs),rest:e.slice(r[0].length)}}function ia(t,e){return B(V.anyDigitsSigned,t,e)}function X(t,e,r){switch(t){case 1:return B(V.singleDigit,e,r);case 2:return B(V.twoDigits,e,r);case 3:return B(V.threeDigits,e,r);case 4:return B(V.fourDigits,e,r);default:return B(new RegExp("^\\d{1,"+t+"}"),e,r)}}function dn(t,e,r){switch(t){case 1:return B(V.singleDigitSigned,e,r);case 2:return B(V.twoDigitsSigned,e,r);case 3:return B(V.threeDigitsSigned,e,r);case 4:return B(V.fourDigitsSigned,e,r);default:return B(new RegExp("^-?\\d{1,"+t+"}"),e,r)}}function Pn(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function oa(t,e){var r=e>0,n=r?e:1-e,i;if(n<=50)i=t||100;else{var l=n+50,f=Math.floor(l/100)*100,d=t>=l%100;i=t+f-(d?100:0)}return r?i:1-i}var Os=[31,28,31,30,31,30,31,31,30,31,30,31],Es=[31,29,31,30,31,30,31,31,30,31,30,31];function sa(t){return t%400===0||t%4===0&&t%100!==0}var Ds={G:{priority:140,parse:function(t,e,r,n){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});case"GGGG":default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}},set:function(t,e,r,n){return e.era=r,t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(t,e,r,n){var i=function(l){return{year:l,isTwoDigitYear:e==="yy"}};switch(e){case"y":return X(4,t,i);case"yo":return r.ordinalNumber(t,{unit:"year",valueCallback:i});default:return X(e.length,t,i)}},validate:function(t,e,r){return e.isTwoDigitYear||e.year>0},set:function(t,e,r,n){var i=t.getUTCFullYear();if(r.isTwoDigitYear){var l=oa(r.year,i);return t.setUTCFullYear(l,0,1),t.setUTCHours(0,0,0,0),t}var f=!("era"in e)||e.era===1?r.year:1-r.year;return t.setUTCFullYear(f,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(t,e,r,n){var i=function(l){return{year:l,isTwoDigitYear:e==="YY"}};switch(e){case"Y":return X(4,t,i);case"Yo":return r.ordinalNumber(t,{unit:"year",valueCallback:i});default:return X(e.length,t,i)}},validate:function(t,e,r){return e.isTwoDigitYear||e.year>0},set:function(t,e,r,n){var i=Tn(t,n);if(r.isTwoDigitYear){var l=oa(r.year,i);return t.setUTCFullYear(l,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Dt(t,n)}var f=!("era"in e)||e.era===1?r.year:1-r.year;return t.setUTCFullYear(f,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Dt(t,n)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(t,e,r,n){return dn(e==="R"?4:e.length,t)},set:function(t,e,r,n){var i=new Date(0);return i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0),zt(i)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(t,e,r,n){return dn(e==="u"?4:e.length,t)},set:function(t,e,r,n){return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(t,e,r,n){switch(e){case"Q":case"QQ":return X(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=1&&e<=4},set:function(t,e,r,n){return t.setUTCMonth((r-1)*3,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(t,e,r,n){switch(e){case"q":case"qq":return X(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,r){return e>=1&&e<=4},set:function(t,e,r,n){return t.setUTCMonth((r-1)*3,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(t,e,r,n){var i=function(l){return l-1};switch(e){case"M":return B(V.month,t,i);case"MM":return X(2,t,i);case"Mo":return r.ordinalNumber(t,{unit:"month",valueCallback:i});case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=0&&e<=11},set:function(t,e,r,n){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(t,e,r,n){var i=function(l){return l-1};switch(e){case"L":return B(V.month,t,i);case"LL":return X(2,t,i);case"Lo":return r.ordinalNumber(t,{unit:"month",valueCallback:i});case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,r){return e>=0&&e<=11},set:function(t,e,r,n){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(t,e,r,n){switch(e){case"w":return B(V.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return X(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=53},set:function(t,e,r,n){return Dt(Cs(t,r,n),n)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(t,e,r,n){switch(e){case"I":return B(V.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return X(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=53},set:function(t,e,r,n){return zt(Ts(t,r,n),n)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,parse:function(t,e,r,n){switch(e){case"d":return B(V.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return X(e.length,t)}},validate:function(t,e,r){var n=t.getUTCFullYear(),i=sa(n),l=t.getUTCMonth();return i?e>=1&&e<=Es[l]:e>=1&&e<=Os[l]},set:function(t,e,r,n){return t.setUTCDate(r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,parse:function(t,e,r,n){switch(e){case"D":case"DD":return B(V.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return X(e.length,t)}},validate:function(t,e,r){var n=t.getUTCFullYear(),i=sa(n);return i?e>=1&&e<=366:e>=1&&e<=365},set:function(t,e,r,n){return t.setUTCMonth(0,r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(t,e,r,n){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=0&&e<=6},set:function(t,e,r,n){return t=Cn(t,r,n),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(t,e,r,n){var i=function(l){var f=Math.floor((l-1)/7)*7;return(l+n.weekStartsOn+6)%7+f};switch(e){case"e":case"ee":return X(e.length,t,i);case"eo":return r.ordinalNumber(t,{unit:"day",valueCallback:i});case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=0&&e<=6},set:function(t,e,r,n){return t=Cn(t,r,n),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(t,e,r,n){var i=function(l){var f=Math.floor((l-1)/7)*7;return(l+n.weekStartsOn+6)%7+f};switch(e){case"c":case"cc":return X(e.length,t,i);case"co":return r.ordinalNumber(t,{unit:"day",valueCallback:i});case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,r){return e>=0&&e<=6},set:function(t,e,r,n){return t=Cn(t,r,n),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(t,e,r,n){var i=function(l){return l===0?7:l};switch(e){case"i":case"ii":return X(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return r.day(t,{width:"abbreviated",context:"formatting",valueCallback:i})||r.day(t,{width:"short",context:"formatting",valueCallback:i})||r.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return r.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return r.day(t,{width:"short",context:"formatting",valueCallback:i})||r.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiii":default:return r.day(t,{width:"wide",context:"formatting",valueCallback:i})||r.day(t,{width:"abbreviated",context:"formatting",valueCallback:i})||r.day(t,{width:"short",context:"formatting",valueCallback:i})||r.day(t,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(t,e,r){return e>=1&&e<=7},set:function(t,e,r,n){return t=bs(t,r,n),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(t,e,r,n){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,r,n){return t.setUTCHours(Pn(r),0,0,0),t},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(t,e,r,n){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,r,n){return t.setUTCHours(Pn(r),0,0,0),t},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(t,e,r,n){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,r,n){return t.setUTCHours(Pn(r),0,0,0),t},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(t,e,r,n){switch(e){case"h":return B(V.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return X(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=12},set:function(t,e,r,n){var i=t.getUTCHours()>=12;return i&&r<12?t.setUTCHours(r+12,0,0,0):!i&&r===12?t.setUTCHours(0,0,0,0):t.setUTCHours(r,0,0,0),t},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(t,e,r,n){switch(e){case"H":return B(V.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return X(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=23},set:function(t,e,r,n){return t.setUTCHours(r,0,0,0),t},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(t,e,r,n){switch(e){case"K":return B(V.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return X(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=11},set:function(t,e,r,n){var i=t.getUTCHours()>=12;return i&&r<12?t.setUTCHours(r+12,0,0,0):t.setUTCHours(r,0,0,0),t},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(t,e,r,n){switch(e){case"k":return B(V.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return X(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=24},set:function(t,e,r,n){var i=r<=24?r%24:r;return t.setUTCHours(i,0,0,0),t},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(t,e,r,n){switch(e){case"m":return B(V.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return X(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=59},set:function(t,e,r,n){return t.setUTCMinutes(r,0,0),t},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(t,e,r,n){switch(e){case"s":return B(V.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return X(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=59},set:function(t,e,r,n){return t.setUTCSeconds(r,0),t},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(t,e,r,n){var i=function(l){return Math.floor(l*Math.pow(10,-e.length+3))};return X(e.length,t,i)},set:function(t,e,r,n){return t.setUTCMilliseconds(r),t},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(t,e,r,n){switch(e){case"X":return Qe(je.basicOptionalMinutes,t);case"XX":return Qe(je.basic,t);case"XXXX":return Qe(je.basicOptionalSeconds,t);case"XXXXX":return Qe(je.extendedOptionalSeconds,t);case"XXX":default:return Qe(je.extended,t)}},set:function(t,e,r,n){return e.timestampIsSet?t:new Date(t.getTime()-r)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(t,e,r,n){switch(e){case"x":return Qe(je.basicOptionalMinutes,t);case"xx":return Qe(je.basic,t);case"xxxx":return Qe(je.basicOptionalSeconds,t);case"xxxxx":return Qe(je.extendedOptionalSeconds,t);case"xxx":default:return Qe(je.extended,t)}},set:function(t,e,r,n){return e.timestampIsSet?t:new Date(t.getTime()-r)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(t,e,r,n){return ia(t)},set:function(t,e,r,n){return[new Date(r*1e3),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(t,e,r,n){return ia(t)},set:function(t,e,r,n){return[new Date(r),{timestampIsSet:!0}]},incompatibleTokens:"*"}},Rs=10,As=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Is=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$s=/^'(.*?)'?$/,Fs=/''/g,Ms=/\S/,ks=/[a-zA-Z]/;function la(t,e,r,n){if(arguments.length<3)throw new TypeError("3 arguments required, but only "+arguments.length+" present");var i=String(t),l=String(e),f=n||{},d=f.locale||Qn;if(!d.match)throw new RangeError("locale must contain match property");var g=d.options&&d.options.firstWeekContainsDate,m=g==null?1:K(g),y=f.firstWeekContainsDate==null?m:K(f.firstWeekContainsDate);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=d.options&&d.options.weekStartsOn,b=P==null?0:K(P),M=f.weekStartsOn==null?b:K(f.weekStartsOn);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(l==="")return i===""?ae(r):new Date(NaN);var Y={firstWeekContainsDate:y,weekStartsOn:M,locale:d},q=[{priority:Rs,set:Us,index:0}],G,k=l.match(Is).map(function(te){var he=te[0];if(he==="p"||he==="P"){var rt=ra[he];return rt(te,d.formatLong,Y)}return te}).join("").match(As),R=[];for(G=0;G<k.length;G++){var F=k[G];!f.useAdditionalWeekYearTokens&&aa(F)&&fn(F),!f.useAdditionalDayOfYearTokens&&na(F)&&fn(F);var ce=F[0],ie=Ds[ce];if(ie){var fe=ie.incompatibleTokens;if(Array.isArray(fe)){for(var Ee=void 0,be=0;be<R.length;be++){var Ke=R[be].token;if(fe.indexOf(Ke)!==-1||Ke===ce){Ee=R[be];break}}if(Ee)throw new RangeError("The format string mustn't contain `".concat(Ee.fullToken,"` and `").concat(F,"` at the same time"))}else if(ie.incompatibleTokens==="*"&&R.length)throw new RangeError("The format string mustn't contain `".concat(F,"` and any other token at the same time"));R.push({token:ce,fullToken:F});var de=ie.parse(i,F,d.match,Y);if(!de)return new Date(NaN);q.push({priority:ie.priority,set:ie.set,validate:ie.validate,value:de.value,index:q.length}),i=de.rest}else{if(ce.match(ks))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ce+"`");if(F==="''"?F="'":ce==="'"&&(F=Ls(F)),i.indexOf(F)===0)i=i.slice(F.length);else return new Date(NaN)}}if(i.length>0&&Ms.test(i))return new Date(NaN);var Xe=q.map(function(te){return te.priority}).sort(function(te,he){return he-te}).filter(function(te,he,rt){return rt.indexOf(te)===he}).map(function(te){return q.filter(function(he){return he.priority===te}).reverse()}).map(function(te){return te[0]}),Te=ae(r);if(isNaN(Te))return new Date(NaN);var De=Kn(Te,jn(Te)),tt={};for(G=0;G<Xe.length;G++){var Re=Xe[G];if(Re.validate&&!Re.validate(De,Re.value,Y))return new Date(NaN);var ze=Re.set(De,tt,Re.value,Y);ze[0]?(De=ze[0],ys(tt,ze[1])):De=ze}return De}function Us(t,e){if(e.timestampIsSet)return t;var r=new Date(0);return r.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),r.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),r}function Ls(t){return t.match($s)[1].replace(Fs,"'")}var hn=ye(Xt);hn.isRight=!0,hn.compare=function(t,e,r){function n(i){return r&&r.dateInputFormat?la("".concat(i),"".concat(r.dateInputFormat),new Date):i}return t=n(t),e=n(e),un(t)?un(e)?xo(t,e):1:-1},hn.format=function(t,e){if(t==null)return"";var r=la(t,e.dateInputFormat,new Date);return un(r)?vs(r,e.dateOutputFormat):(console.error('Not a valid date: "'.concat(t,'"')),null)};var Ns=Object.freeze({default:hn}),At=ye(Xt);At.isRight=!0,At.filterPredicate=function(t,e){return At.compare(t,e)===0},At.compare=function(t,e){function r(n){return n==null?-1/0:n.indexOf(".")>=0?parseFloat(n):parseInt(n,10)}return t=typeof t=="number"?t:r(t),e=typeof e=="number"?e:r(e),t<e?-1:t>e?1:0};var Hs=Object.freeze({default:At}),ua=ye(At);ua.format=function(t){return t==null?"":parseFloat(Math.round(t*100)/100).toFixed(2)};var Ws=Object.freeze({default:ua}),ca=ye(At);ca.format=function(t){return t==null?"":"".concat(parseFloat(t*100).toFixed(2),"%")};var Bs=Object.freeze({default:ca}),yr=ye(Xt);yr.isRight=!0,yr.filterPredicate=function(t,e){return yr.compare(t,e)===0},yr.compare=function(t,e){function r(n){return typeof n=="boolean"?n?1:0:typeof n=="string"?n==="true"?1:0:-1/0}return t=r(t),e=r(e),t<e?-1:t>e?1:0};var Ys=Object.freeze({default:yr}),qs={date:Ns,decimal:Ws,number:Hs,percentage:Bs,boolean:Ys},fa={},da=qs;Q(Object.keys(da),function(t){var e=t.replace(/^\.\//,"").replace(/\.js/,"");fa[e]=da[t].default});var Gs={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,groupOptions:{default:function(){return{enabled:!1,collapsable:!1,rowKey:null}}},selectOptions:{default:function(){return{enabled:!1,selectionInfoClass:"",selectionText:"rows selected",clearSelectionText:"clear",disableSelectInfo:!1,selectAllByGroup:!1}}},sortOptions:{default:function(){return{enabled:!0,initialSortBy:{}}}},paginationOptions:{default:function(){return{enabled:!1,perPage:10,perPageDropdown:null,position:"bottom",dropdownAllowAll:!0,mode:"records"}}},searchOptions:{default:function(){return{enabled:!1,trigger:null,externalQuery:null,searchFn:null,placeholder:"Search Table"}}}},data:function(){return{tableLoading:!1,nextText:"Next",prevText:"Prev",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,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",currentPage:1,currentPerPage:10,sorts:[],globalSearchTerm:"",filteredRows:[],columnFilters:{},forceSearch:!1,sortChanged:!1,dataTypes:fa||{}}},watch:{rows:{handler:function(){this.$emit("update:isLoading",!1),this.filterRows(this.columnFilters,!1)},deep:!0,immediate:!0},selectOptions:{handler:function(){this.initializeSelect()},deep:!0,immediate:!0},paginationOptions:{handler:function(e,r){wn(e,r)||this.initializePagination()},deep:!0,immediate:!0},searchOptions:{handler:function(){this.searchOptions.externalQuery!==void 0&&this.searchOptions.externalQuery!==this.searchTerm&&(this.externalSearchQuery=this.searchOptions.externalQuery,this.handleSearch()),this.initializeSearch()},deep:!0,immediate:!0},sortOptions:{handler:function(e,r){wn(e,r)||this.initializeSort()},deep:!0},selectedRows:function(e,r){wn(e,r)||this.$emit("on-selected-rows-change",{selectedRows:this.selectedRows})}},computed:{tableStyles:function(){return this.compactMode?this.tableStyleClasses+"vgt-compact":this.tableStyleClasses},hasFooterSlot:function(){return!!this.$slots["table-actions-bottom"]},wrapperStyles:function(){return{overflow:"scroll-y",maxHeight:this.maxHeight?this.maxHeight:"auto"}},rowKeyField:function(){return this.groupOptions.rowKey||"vgt_header_id"},hasHeaderRowTemplate:function(){return!!this.$slots["table-header-row"]||!!this.$scopedSlots["table-header-row"]},showEmptySlot:function(){return!this.paginated.length||this.paginated[0].label==="no groups"&&!this.paginated[0].children.length},allSelected:function(){return this.selectedRowCount>0&&(this.selectAllByPage&&this.selectedPageRowsCount===this.totalPageRowCount||!this.selectAllByPage&&this.selectedRowCount===this.totalRowCount)},allSelectedIndeterminate:function(){return!this.allSelected&&(this.selectAllByPage&&this.selectedPageRowsCount>0||!this.selectAllByPage&&this.selectedRowCount>0)},selectionInfo:function(){return"".concat(this.selectedRowCount," ").concat(this.selectionText)},selectedRowCount:function(){return this.selectedRows.length},selectedPageRowsCount:function(){return this.selectedPageRows.length},selectedPageRows:function(){var e=[];return Q(this.paginated,function(r){Q(r.children,function(n){n.vgtSelected&&e.push(n)})}),e},selectedRows:function(){var e=[];return Q(this.processedRows,function(r){Q(r.children,function(n){n.vgtSelected&&e.push(n)})}),e.sort(function(r,n){return r.originalIndex-n.originalIndex})},fullColspan:function(){for(var e=0,r=0;r<this.columns.length;r+=1)this.columns[r].hidden||(e+=1);return this.lineNumbers&&e++,this.selectable&&e++,e},groupHeaderOnTop:function(){return this.groupOptions&&this.groupOptions.enabled&&this.groupOptions.headerPosition&&this.groupOptions.headerPosition==="bottom"?!1:!!(this.groupOptions&&this.groupOptions.enabled)},groupHeaderOnBottom:function(){return!!(this.groupOptions&&this.groupOptions.enabled&&this.groupOptions.headerPosition&&this.groupOptions.headerPosition==="bottom")},totalRowCount:function(){var e=0;return Q(this.processedRows,function(r){e+=r.children?r.children.length:0}),e},totalPageRowCount:function(){var e=0;return Q(this.paginated,function(r){e+=r.children?r.children.length:0}),e},wrapStyleClasses:function(){var e="vgt-wrap";return this.rtl&&(e+=" rtl"),e+=" ".concat(this.theme),e},tableStyleClasses:function(){var e=this.styleClass;return e+=" ".concat(this.theme),e},searchTerm:function(){return this.externalSearchQuery!=null?this.externalSearchQuery:this.globalSearchTerm},globalSearchAllowed:function(){return this.searchEnabled&&!!this.globalSearchTerm&&this.searchTrigger!=="enter"||this.externalSearchQuery!=null&&this.searchTrigger!=="enter"?!0:this.forceSearch?(this.forceSearch=!1,!0):!1},processedRows:function(){var e=this,r=this.filteredRows;if(this.mode==="remote")return r;if(this.globalSearchAllowed){var n=[];Q(this.filteredRows,function(l){n.push.apply(n,xn(l.children))});var i=[];Q(n,function(l){Q(e.columns,function(f){if(!f.globalSearchDisabled)if(e.searchFn){var d=e.searchFn(l,f,e.collectFormatted(l,f),e.searchTerm);if(d)return i.push(l),!1}else{var g=Xt.filterPredicate(e.collectFormatted(l,f),e.searchTerm,e.searchSkipDiacritics);if(g)return i.push(l),!1}})}),this.$emit("on-search",{searchTerm:this.searchTerm,rowCount:i.length}),r=[],Q(this.filteredRows,function(l){var f=l.vgt_header_id,d=vi(i,["vgt_id",f]);if(d.length){var g=ye(l);g.children=d,r.push(g)}})}return this.sorts.length&&r.forEach(function(l){l.children.sort(function(f,d){for(var g,m=0;m<e.sorts.length;m+=1){var y=e.getColumnForField(e.sorts[m].field),P=e.collect(f,e.sorts[m].field),b=e.collect(d,e.sorts[m].field),M=y.sortFn;M&&typeof M=="function"?g=g||M(P,b,y,f,d)*(e.sorts[m].type==="desc"?-1:1):g=g||y.typeDef.compare(P,b,y)*(e.sorts[m].type==="desc"?-1:1)}return g})}),this.searchTrigger==="enter"&&(this.filteredRows=r),r},paginated:function(){var e=this;if(!this.processedRows.length)return[];if(this.mode==="remote")return this.processedRows;var r=[];if(Q(this.processedRows,function(f){var d;e.groupOptions.enabled&&r.push(f),(d=r).push.apply(d,xn(f.children))}),this.paginate){var n=(this.currentPage-1)*this.currentPerPage;(n>=r.length||this.currentPerPage===-1)&&(this.currentPage=1,n=0);var i=r.length+1;this.currentPerPage!==-1&&(i=this.currentPage*this.currentPerPage),r=r.slice(n,i)}var l=[];return r.forEach(function(f){if(f.vgt_header_id!==void 0){e.handleExpanded(f);var d=ye(f);d.children=[],l.push(d)}else{var g=l.find(function(m){return m.vgt_header_id===f.vgt_id});g||(g=e.processedRows.find(function(m){return m.vgt_header_id===f.vgt_id}),g&&(g=ye(g),g.children=[],l.push(g))),g.children.push(f)}}),l},originalRows:function(){var e=ye(this.rows),r=[];this.groupOptions.enabled?r=this.handleGrouped(e):r=this.handleGrouped([{label:"no groups",children:e}]);var n=0;return Q(r,function(i,l){Q(i.children,function(f,d){f.originalIndex=n++})}),r},typedColumns:function(){for(var e=Nn(this.columns,[]),r=0;r<this.columns.length;r++){var n=e[r];n.typeDef=this.dataTypes[n.type]||Xt}return e},hasRowClickListener:function(){return this.$listeners&&this.$listeners["on-row-click"]}},methods:{handleExpanded:function(e){this.maintainExpanded&&this.expandedRowKeys.has(e[this.rowKeyField])?this.$set(e,"vgtIsExpanded",!0):this.$set(e,"vgtIsExpanded",!1)},toggleExpand:function(e){var r=this,n=this.filteredRows.find(function(i){return i[r.rowKeyField]===e});n&&this.$set(n,"vgtIsExpanded",!n.vgtIsExpanded),this.maintainExpanded&&n.vgtIsExpanded?this.expandedRowKeys.add(n[this.rowKeyField]):this.expandedRowKeys.delete(n[this.rowKeyField])},expandAll:function(){var e=this;this.filteredRows.forEach(function(r){e.$set(r,"vgtIsExpanded",!0),e.maintainExpanded&&e.expandedRowKeys.add(r[e.rowKeyField])})},collapseAll:function(){var e=this;this.filteredRows.forEach(function(r){e.$set(r,"vgtIsExpanded",!1),e.expandedRowKeys.clear()})},getColumnForField:function(e){for(var r=0;r<this.typedColumns.length;r+=1)if(this.typedColumns[r].field===e)return this.typedColumns[r]},handleSearch:function(){this.resetTable(),this.mode==="remote"&&this.$emit("on-search",{searchTerm:this.searchTerm})},reset:function(){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:function(){this.$emit("on-select-all",{selected:this.selectedRowCount===this.totalRowCount,selectedRows:this.selectedRows})},unselectAllInternal:function(e){var r=this,n=this.selectAllByPage&&!e?this.paginated:this.filteredRows;Q(n,function(i,l){Q(i.children,function(f,d){r.$set(f,"vgtSelected",!1)})}),this.emitSelectedRows()},toggleSelectAll:function(){var e=this;if(this.allSelected){this.unselectAllInternal();return}var r=this.selectAllByPage?this.paginated:this.filteredRows;Q(r,function(n){Q(n.children,function(i){e.$set(i,"vgtSelected",!0)})}),this.emitSelectedRows()},toggleSelectGroup:function(e,r){var n=this;Q(r.children,function(i){n.$set(i,"vgtSelected",e.checked)})},changePage:function(e){if(this.paginationOptions.enabled){var r=this.$refs.paginationBottom;this.paginationOptions.position==="top"&&(r=this.$refs.paginationTop),r&&(r.currentPage=e,this.currentPage=e)}},pageChangedEvent:function(){return{currentPage:this.currentPage,currentPerPage:this.currentPerPage,total:Math.floor(this.totalRowCount/this.currentPerPage)}},pageChanged:function(e){this.currentPage=e.currentPage;var r=this.pageChangedEvent();r.prevPage=e.prevPage,this.$emit("on-page-change",r),this.mode==="remote"&&this.$emit("update:isLoading",!0)},perPageChanged:function(e){this.currentPerPage=e.currentPerPage;var r=this.pageChangedEvent();this.$emit("on-per-page-change",r),this.mode==="remote"&&this.$emit("update:isLoading",!0)},changeSort:function(e){if(this.sorts=e,this.$emit("on-sort-change",e),this.changePage(1),this.mode==="remote"){this.$emit("update:isLoading",!0);return}this.sortChanged=!0},onCheckboxClicked:function(e,r,n){this.$set(e,"vgtSelected",!e.vgtSelected),this.$emit("on-row-click",{row:e,pageIndex:r,selected:!!e.vgtSelected,event:n})},onRowDoubleClicked:function(e,r,n){this.$emit("on-row-dblclick",{row:e,pageIndex:r,selected:!!e.vgtSelected,event:n})},onRowClicked:function(e,r,n){this.selectable&&!this.selectOnCheckboxOnly&&this.$set(e,"vgtSelected",!e.vgtSelected),this.$emit("on-row-click",{row:e,pageIndex:r,selected:!!e.vgtSelected,event:n})},onRowAuxClicked:function(e,r,n){this.$emit("on-row-aux-click",{row:e,pageIndex:r,selected:!!e.vgtSelected,event:n})},onCellClicked:function(e,r,n,i){this.$emit("on-cell-click",{row:e,column:r,rowIndex:n,event:i})},onMouseenter:function(e,r){this.$emit("on-row-mouseenter",{row:e,pageIndex:r})},onMouseleave:function(e,r){this.$emit("on-row-mouseleave",{row:e,pageIndex:r})},searchTableOnEnter:function(){this.searchTrigger==="enter"&&(this.handleSearch(),this.filteredRows=ye(this.originalRows),this.forceSearch=!0,this.sortChanged=!0)},searchTableOnKeyUp:function(){this.searchTrigger!=="enter"&&this.handleSearch()},resetTable:function(){this.unselectAllInternal(!0),this.changePage(1)},collect:function(e,r){function n(i,l){for(var f=i,d=l.split("."),g=0;g<d.length;g++){if(typeof f=="undefined"||f===null)return;f=f[d[g]]}return f}if(typeof r=="function")return r(e);if(typeof r=="string")return n(e,r)},collectFormatted:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i;if(n&&r.headerField?i=this.collect(e,r.headerField):i=this.collect(e,r.field),i===void 0)return"";if(r.formatFn&&typeof r.formatFn=="function")return r.formatFn(i,e);var l=r.typeDef;l||(l=this.dataTypes[r.type]||Xt);var f=l.format(i,r);return this.compactMode&&(f==""||f==null)?"-":f},formattedRow:function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n={},i=0;i<this.typedColumns.length;i++){var l=this.typedColumns[i];l.field&&(n[l.field]=this.collectFormatted(e,l,r))}return n},getClasses:function(e,r,n){var i=this.typedColumns[e],l=i.typeDef,f=i["".concat(r,"Class")],d=l.isRight;this.rtl&&(d=!0);var g={"vgt-right-align":d,"vgt-left-align":!d};return typeof f=="function"?g[f(n)]=!0:typeof f=="string"&&(g[f]=!0),g},filterRows:function(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.columnFilters=e;var i=ye(this.originalRows);if(this.columnFilters&&Object.keys(this.columnFilters).length){if((this.mode!=="remote"||n)&&this.changePage(1),n&&this.$emit("on-column-filter",{columnFilters:this.columnFilters}),this.mode==="remote"){n?this.$emit("update:isLoading",!0):this.filteredRows=i;return}for(var l=function(g){var m=r.typedColumns[g];r.columnFilters[m.field]&&(i=Q(i,function(y){var P=y.children.filter(function(b){if(m.filterOptions&&typeof m.filterOptions.filterFn=="function")return m.filterOptions.filterFn(r.collect(b,m.field),r.columnFilters[m.field]);var M=m.typeDef;return M.filterPredicate(r.collect(b,m.field),r.columnFilters[m.field],!1,m.filterOptions&&Ot(m.filterOptions.filterDropdownItems)==="object")});y.children=P}))},f=0;f<this.typedColumns.length;f++)l(f)}this.filteredRows=i},getCurrentIndex:function(e){return(this.currentPage-1)*this.currentPerPage+e+1},getRowStyleClass:function(e){var r="";this.hasRowClickListener&&(r+="clickable");var n;return typeof this.rowStyleClass=="function"?n=this.rowStyleClass(e):n=this.rowStyleClass,n&&(r+=" ".concat(n)),r},handleGrouped:function(e){var r=this;return Q(e,function(n,i){n.vgt_header_id=i,r.groupOptions.maintainExpanded&&r.expandedRowKeys.has(n[r.groupOptions.rowKey])&&r.$set(n,"vgtIsExpanded",!0),Q(n.children,function(l){l.vgt_id=i})}),e},initializePagination:function(){var e=this,r=this.paginationOptions,n=r.enabled,i=r.perPage,l=r.position,f=r.perPageDropdown,d=r.dropdownAllowAll,g=r.nextLabel,m=r.prevLabel,y=r.rowsPerPageLabel,P=r.ofLabel,b=r.pageLabel,M=r.allLabel,Y=r.setCurrentPage,q=r.mode;if(typeof n=="boolean"&&(this.paginate=n),typeof i=="number"&&(this.perPage=i),l==="top"?(this.paginateOnTop=!0,this.paginateOnBottom=!1):l==="both"&&(this.paginateOnTop=!0,this.paginateOnBottom=!0),Array.isArray(f)&&f.length&&(this.customRowsPerPageDropdown=f,!this.perPage)){var G=ga(f,1);this.perPage=G[0]}typeof d=="boolean"&&(this.paginateDropdownAllowAll=d),typeof q=="string"&&(this.paginationMode=q),typeof g=="string"&&(this.nextText=g),typeof m=="string"&&(this.prevText=m),typeof y=="string"&&(this.rowsPerPageText=y),typeof P=="string"&&(this.ofText=P),typeof b=="string"&&(this.pageText=b),typeof M=="string"&&(this.allText=M),typeof Y=="number"&&setTimeout(function(){e.changePage(Y)},500)},initializeSearch:function(){var e=this.searchOptions,r=e.enabled,n=e.trigger,i=e.externalQuery,l=e.searchFn,f=e.placeholder,d=e.skipDiacritics;typeof r=="boolean"&&(this.searchEnabled=r),n==="enter"&&(this.searchTrigger=n),typeof i=="string"&&(this.externalSearchQuery=i),typeof l=="function"&&(this.searchFn=l),typeof f=="string"&&(this.searchPlaceholder=f),typeof d=="boolean"&&(this.searchSkipDiacritics=d)},initializeSort:function(){var e=this.sortOptions,r=e.enabled,n=e.initialSortBy;if(typeof r=="boolean"&&(this.sortable=r),Ot(n)==="object"){var i=this.fixedHeader?this.$refs["table-header-secondary"]:this.$refs["table-header-primary"];if(Array.isArray(n))i.setInitialSort(n);else{var l=Object.prototype.hasOwnProperty.call(n,"field");l&&i.setInitialSort([n])}}},initializeSelect:function(){var e=this.selectOptions,r=e.enabled,n=e.selectionInfoClass,i=e.selectionText,l=e.clearSelectionText,f=e.selectOnCheckboxOnly,d=e.selectAllByPage,g=e.disableSelectInfo,m=e.selectAllByGroup;typeof r=="boolean"&&(this.selectable=r),typeof f=="boolean"&&(this.selectOnCheckboxOnly=f),typeof d=="boolean"&&(this.selectAllByPage=d),typeof m=="boolean"&&(this.selectAllByGroup=m),typeof g=="boolean"&&(this.disableSelectInfo=g),typeof n=="string"&&(this.selectionInfoClass=n),typeof i=="string"&&(this.selectionText=i),typeof l=="string"&&(this.clearSelectionText=l)}},mounted:function(){this.perPage&&(this.currentPerPage=this.perPage),this.initializeSort()},components:{"vgt-pagination":Ui,"vgt-global-search":ji,"vgt-header-row":Po,"vgt-table-header":go}},js=Gs,Qs=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{class:e.wrapStyleClasses},[e.isLoading?n("div",{staticClass:"vgt-loading vgt-center-align"},[e._t("loadingContent",[n("span",{staticClass:"vgt-loading__content"},[e._v(`
Loading...
`)])])],2):e._e(),e._v(" "),n("div",{staticClass:"vgt-inner-wrap",class:{"is-loading":e.isLoading}},[e.paginate&&e.paginateOnTop?e._t("pagination-top",[n("vgt-pagination",{ref:"paginationTop",attrs:{perPage:e.perPage,rtl:e.rtl,total:e.totalRows||e.totalRowCount,mode:e.paginationMode,nextText:e.nextText,prevText:e.prevText,rowsPerPageText:e.rowsPerPageText,customRowsPerPageDropdown:e.customRowsPerPageDropdown,paginateDropdownAllowAll:e.paginateDropdownAllowAll,ofText:e.ofText,pageText:e.pageText,allText:e.allText},on:{"page-changed":e.pageChanged,"per-page-changed":e.perPageChanged}})],{pageChanged:e.pageChanged,perPageChanged:e.perPageChanged,total:e.totalRows||e.totalRowCount}):e._e(),e._v(" "),n("vgt-global-search",{attrs:{"search-enabled":e.searchEnabled&&e.externalSearchQuery==null,"global-search-placeholder":e.searchPlaceholder},on:{"on-keyup":e.searchTableOnKeyUp,"on-enter":e.searchTableOnEnter},model:{value:e.globalSearchTerm,callback:function(l){e.globalSearchTerm=l},expression:"globalSearchTerm"}},[n("template",{slot:"internal-table-actions"},[e._t("table-actions")],2)],2),e._v(" "),e.selectedRowCount&&!e.disableSelectInfo?n("div",{staticClass:"vgt-selection-info-row clearfix",class:e.selectionInfoClass},[e._v(`
`+e._s(e.selectionInfo)+`
`),n("a",{attrs:{href:""},on:{click:function(l){return l.preventDefault(),e.unselectAllInternal(!0)}}},[e._v(`
`+e._s(e.clearSelectionText)+`
`)]),e._v(" "),n("div",{staticClass:"vgt-selection-info-row__actions vgt-pull-right"},[e._t("selected-row-actions")],2)]):e._e(),e._v(" "),n("div",{staticClass:"vgt-fixed-header"},[e.fixedHeader?n("table",{class:e.tableStyleClasses},[n("vgt-table-header",{ref:"table-header-secondary",tag:"thead",attrs:{columns:e.columns,"line-numbers":e.lineNumbers,selectable:e.selectable,"all-selected":e.allSelected,"all-selected-indeterminate":e.allSelectedIndeterminate,mode:e.mode,sortable:e.sortable,"typed-columns":e.typedColumns,getClasses:e.getClasses,searchEnabled:e.searchEnabled,paginated:e.paginated,"table-ref":e.$refs.table},on:{"on-toggle-select-all":e.toggleSelectAll,"on-sort-change":e.changeSort,"filter-changed":e.filterRows},scopedSlots:e._u([{key:"table-column",fn:function(l){return[e._t("table-column",[n("span",[e._v(e._s(l.column.label))])],{column:l.column})]}}],null,!0)})],1):e._e()]),e._v(" "),n("div",{class:{"vgt-responsive":e.responsive},style:e.wrapperStyles},[n("table",{ref:"table",class:e.tableStyles},[n("vgt-table-header",{ref:"table-header-primary",tag:"thead",attrs:{columns:e.columns,"line-numbers":e.lineNumbers,selectable:e.selectable,"all-selected":e.allSelected,"all-selected-indeterminate":e.allSelectedIndeterminate,mode:e.mode,sortable:e.sortable,"typed-columns":e.typedColumns,getClasses:e.getClasses,searchEnabled:e.searchEnabled},on:{"on-toggle-select-all":e.toggleSelectAll,"on-sort-change":e.changeSort,"filter-changed":e.filterRows},scopedSlots:e._u([{key:"table-column",fn:function(l){return[e._t("table-column",[n("span",[e._v(e._s(l.column.label))])],{column:l.column})]}},{key:"column-filter",fn:function(l){return[e._t("column-filter",null,{column:l.column,updateFilters:l.updateFilters})]}}],null,!0)}),e._v(" "),e._l(e.paginated,function(i,l){return n("tbody",{key:l},[e.groupHeaderOnTop?n("vgt-header-row",{class:e.getRowStyleClass(i),attrs:{"header-row":i,columns:e.columns,"line-numbers":e.lineNumbers,selectable:e.selectable,"select-all-by-group":e.selectAllByGroup,collapsable:e.groupOptions.collapsable,"collect-formatted":e.collectFormatted,"formatted-row":e.formattedRow,"get-classes":e.getClasses,"full-colspan":e.fullColspan,groupIndex:l},on:{vgtExpand:function(d){return e.toggleExpand(i[e.rowKeyField])},"on-select-group-change":function(d){return e.toggleSelectGroup(d,i)}},scopedSlots:e._u([{key:"table-header-row",fn:function(d){return e.hasHeaderRowTemplate?[e._t("table-header-row",null,{column:d.column,formattedRow:d.formattedRow,row:d.row})]:void 0}}],null,!0)}):e._e(),e._v(" "),e._l(i.children,function(f,d){return!e.groupOptions.collapsable||i.vgtIsExpanded?n("tr",{key:f.originalIndex,class:e.getRowStyleClass(f),on:{mouseenter:function(m){return e.onMouseenter(f,d)},mouseleave:function(m){return e.onMouseleave(f,d)},dblclick:function(m){return e.onRowDoubleClicked(f,d,m)},click:function(m){return e.onRowClicked(f,d,m)},auxclick:function(m){return e.onRowAuxClicked(f,d,m)}}},[e.lineNumbers?n("th",{staticClass:"line-numbers"},[e._v(`
`+e._s(e.getCurrentIndex(d))+`
`)]):e._e(),e._v(" "),e.selectable?n("th",{staticClass:"vgt-checkbox-col",on:{click:function(m){return m.stopPropagation(),e.onCheckboxClicked(f,d,m)}}},[n("input",{attrs:{type:"checkbox"},domProps:{checked:f.vgtSelected}})]):e._e(),e._v(" "),e._l(e.columns,function(g,m){return!g.hidden&&g.field?n("td",{key:m,class:e.getClasses(m,"td",f),attrs:{"data-label":e.compactMode?g.label:void 0},on:{click:function(P){return e.onCellClicked(f,g,d,P)}}},[e._t("table-row",[g.html?e._e():n("span",[e._v(`
`+e._s(e.collectFormatted(f,g))+`
`)]),e._v(" "),g.html?n("span",{domProps:{innerHTML:e._s(e.collect(f,g.field))}}):e._e()],{row:f,column:g,formattedRow:e.formattedRow(f),index:d})],2):e._e()})],2):e._e()}),e._v(" "),e.groupHeaderOnBottom?n("vgt-header-row",{attrs:{"header-row":i,columns:e.columns,"line-numbers":e.lineNumbers,selectable:e.selectable,"select-all-by-group":e.selectAllByGroup,"collect-formatted":e.collectFormatted,"formatted-row":e.formattedRow,"get-classes":e.getClasses,"full-colspan":e.fullColspan,groupIndex:l},on:{"on-select-group-change":function(d){return e.toggleSelectGroup(d,i)}},scopedSlots:e._u([{key:"table-header-row",fn:function(d){return e.hasHeaderRowTemplate?[e._t("table-header-row",null,{column:d.column,formattedRow:d.formattedRow,row:d.row})]:void 0}}],null,!0)}):e._e()],2)}),e._v(" "),e.showEmptySlot?n("tbody",[n("tr",[n("td",{attrs:{colspan:e.fullColspan}},[e._t("emptystate",[n("div",{staticClass:"vgt-center-align vgt-text-disabled"},[e._v(`
No data for table
`)])])],2)])]):e._e()],2)]),e._v(" "),e.hasFooterSlot?n("div",{staticClass:"vgt-wrap__actions-footer"},[e._t("table-actions-bottom")],2):e._e(),e._v(" "),e.paginate&&e.paginateOnBottom?e._t("pagination-bottom",[n("vgt-pagination",{ref:"paginationBottom",attrs:{perPage:e.perPage,rtl:e.rtl,total:e.totalRows||e.totalRowCount,mode:e.paginationMode,nextText:e.nextText,prevText:e.prevText,rowsPerPageText:e.rowsPerPageText,customRowsPerPageDropdown:e.customRowsPerPageDropdown,paginateDropdownAllowAll:e.paginateDropdownAllowAll,ofText:e.ofText,pageText:e.pageText,allText:e.allText},on:{"page-changed":e.pageChanged,"per-page-changed":e.perPageChanged}})],{pageChanged:e.pageChanged,perPageChanged:e.perPageChanged,total:e.totalRows||e.totalRowCount}):e._e()],2)])},Ks=[],Xs=void 0,zs=void 0,Vs=void 0,Js=!1,Sn=Et({render:Qs,staticRenderFns:Ks},Xs,js,zs,Js,Vs,!1,void 0,void 0,void 0),Zs={install:function(e,r){e.component(Sn.name,Sn)}};typeof window!="undefined"&&window.Vue&&window.Vue.use(Zs);var el=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("section",{staticClass:"k-pagetable-section"},[r("header",{staticClass:"k-section-header"},[r("k-headline",{attrs:{link:t.options.link}},[t.isLoading?r("span",[t._v("\u2026")]):r("span",[t._v(t._s(t.options.headline))])]),r("k-button-group",[t.showReset?r("button",{staticClass:"pagetable-reset-button",domProps:{innerHTML:t._s(t.translations.reset)},on:{click:t.resetTable}}):t._e(),t.showSearch?r("input",{directives:[{name:"model",rawName:"v-model",value:t.searchTerm,expression:"searchTerm"}],staticClass:"pagetable-search-input",attrs:{type:"text",placeholder:t.translations.filter},domProps:{value:t.searchTerm},on:{input:function(n){n.target.composing||(t.searchTerm=n.target.value)}}}):t._e(),t.canAdd?r("k-button",{attrs:{icon:"add"},on:{click:t.onAdd}},[t._v(t._s(t.$t("add")))]):t._e()],1)],1),t.rows.length&&!t.isLoading?r("vue-good-table",{ref:"table",attrs:{columns:t.columns,rows:t.rows,"sort-options":t.sortOptions,"search-options":t.searchOptions,"pagination-options":t.paginationOptions},on:{"on-search":t.onSearch,"on-sort-change":t.onSortChange,"on-page-change":t.onPageChange,"on-per-page-change":t.onPerPageChange},scopedSlots:t._u([{key:"table-row",fn:function(n){return[n.column.field=="p-cover-image"&&t.options.showImage?r("span",[r("k-link",{attrs:{to:n.row.rowLink}},[n.row.image?r("k-item-image",{attrs:{image:n.row.image}}):t._e()],1)],1):n.column.field=="p-options"&&t.showOptions?r("span",[r("div",{staticClass:"k-list-item-options"},[t._t("options",function(){return[n.row.flag&&t.options.showStatus?r("k-status-icon",t._b({},"k-status-icon",n.row.flag,!1)):t._e(),n.row.options&&t.options.showActions?r("k-options-dropdown",{staticClass:"k-item-options-dropdown",attrs:{options:n.row.options}}):t._e()]})],2)]):r("k-link",{attrs:{to:n.row.rowLink},domProps:{innerHTML:t._s(n.formattedRow[n.column.field])}})]}}],null,!1,2906339760)}):!t.rows.length&&!t.isLoading?[r("k-empty",{attrs:{layout:t.options.layout,"data-invalid":t.isInvalid,icon:"page"},on:{click:t.onAdd}},[t._v(" "+t._s(t.translations.empty)+" ")]),r("footer",{staticClass:"k-collection-footer"},[t.help?r("k-text",{staticClass:"k-collection-help",attrs:{theme:"help"},domProps:{innerHTML:t._s(t.help)}}):t._e()],1)]:t.isLoading?r("div",{staticClass:"loading"},[r("k-empty",{attrs:{layout:t.options.layout,icon:"pagetableLoader"}},[t._v(" "+t._s(t.translations.loading)+" ")])],1):t._e()],2)},tl=[],sl="";function rl(t,e,r,n,i,l,f,d){var g=typeof t=="function"?t.options:t;e&&(g.render=e,g.staticRenderFns=r,g._compiled=!0),n&&(g.functional=!0),l&&(g._scopeId="data-v-"+l);var m;if(f?(m=function(b){b=b||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!b&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(b=__VUE_SSR_CONTEXT__),i&&i.call(this,b),b&&b._registeredComponents&&b._registeredComponents.add(f)},g._ssrRegister=m):i&&(m=d?function(){i.call(this,(g.functional?this.parent:this).$root.$options.shadowRoot)}:i),m)if(g.functional){g._injectStyles=m;var y=g.render;g.render=function(M,Y){return m.call(Y),y(M,Y)}}else{var P=g.beforeCreate;g.beforeCreate=P?[].concat(P,m):[m]}return{exports:t,options:g}}const nl={extends:"k-pages-section",components:{VueGoodTable:Sn},data(){return{columns:[],rows:[],searchTerm:"",showReset:!1,error:null,isLoading:!1,storedState:{searchTerm:void 0,sort:void 0,page:void 0},options:{empty:null,headline:null,layout:"list",link:null,max:null,min:null,size:null,sortable:null,limit:10,limitOptions:[],search:!0,showImage:!0,showStatus:!0,showActions:!0},translations:{rowsPerPage:this.$t("pagetable.rowsPerPage"),of:this.$t("pagetable.of"),all:this.$t("pagetable.all"),empty:this.$t("pages.empty"),filter:this.$t("pagetable.filter-pages"),reset:this.$t("pagetable.reset"),loading:this.$t("pagetable.loading")}}},props:{parent:String,blueprint:String,name:String},computed:{searchOptions(){return{enabled:!0,externalQuery:this.searchTerm}},sortOptions(){return{enabled:!0,initialSortBy:this.storedState.sort||!1}},storedPerPage(){return this.storedState.page?this.storedState.page.currentPerPage||this.options.limit:this.options.limit},storedPage(){return this.storedState.page&&this.storedState.page.currentPage||!1},paginationOptions(){return{enabled:!0,perPage:this.storedPerPage,setCurrentPage:this.storedPage,perPageDropdown:this.options.limitOptions,nextLabel:this.$t("next"),prevLabel:this.$t("prev"),rowsPerPageLabel:this.translations.rowsPerPage,ofLabel:this.$t("pagetable.of"),allLabel:this.translations.all}},showSearch(){return this.columns.filter(t=>t.globalSearchDisabled==!1).length>0&&this.options.search&&this.rows.length},storeName(){return"kirby$plugin$pagetable"+this.parent+"-"+this.name},showOptions(){return this.options.showStatus||this.options.showActions}},watch:{language(){this.reload()}},created(){this.load(),this.loadStoredState()},methods:{load(t){t||(this.isLoading=!0),this.$api.get(this.parent+"/sections/"+this.name).then(e=>{this.isLoading=!1,this.options=e.options,this.columns=e.data.columns,this.data=e.data.rows,this.rows=this.items;let r=e.translations;Object.keys(r).forEach(n=>{r[n]==null&&delete r[n]}),this.translations=Object.assign({},this.translations,r)}).catch(e=>{this.isLoading=!1,this.error=e.message})},openRef(t){this.$refs[t].toggle()},onSearch(t){this.storeCurrentState(),this.checkReset()},onPerPageChange(t){this.$refs.table&&this.$refs.table.changePage(1)},onPageChange(t){this.storeCurrentState(),this.checkReset()},onSortChange(t){this.storeCurrentState(),this.checkReset()},checkReset(){this.showReset=this.rows.length&&(this.searchTerm.length>0||this.$refs.table&&this.$refs.table.sorts.length||this.$refs.table&&this.$refs.table.currentPage!=1)},loadStoredState(){let t=JSON.parse(sessionStorage.getItem(this.storeName));t!==null&&(this.storedState=t,t.searchTerm&&t.searchTerm.length>0&&(this.searchTerm=t.searchTerm))},storeCurrentState(){if(this.$refs.table){let t={};t.page={currentPage:this.$refs.table.currentPage,currentPerPage:this.$refs.table.currentPerPage},this.$refs.table.sorts[0]&&(t.sort={field:this.$refs.table.sorts[0].field,type:this.$refs.table.sorts[0].type}),t.searchTerm=this.searchTerm,sessionStorage.setItem(this.storeName,JSON.stringify(t))}},resetTable(){this.$refs.table.changeSort([]),document.querySelectorAll(".sorting").forEach(e=>{e.tagName=="TH"&&e.classList.remove("sorting","sorting-asc","sorting-desc")}),this.searchTerm="",this.$refs.table.currentPerPage=this.options.limit,this.$refs.table.perPage=this.options.limit,this.$refs.table.changePage(1),this.storeCurrentState()}}},ha={};var al=rl(nl,el,tl,!1,il,null,null,null);function il(t){for(let e in ha)this[e]=ha[e]}var ol=function(){return al.exports}();panel.plugin("sylvainjule/pagetable",{sections:{pagetable:ol},icons:{pagetableLoader:'<g fill="none" fill-rule="evenodd"><g transform="translate(1 1)" stroke-width="1.75"><circle cx="7" cy="7" r="7.2" stroke="#000" stroke-opacity=".2"/><path d="M14.2,7c0-4-3.2-7.2-7.2-7.2" stroke="#000"><animateTransform attributeName="transform" type="rotate" from="0 7 7" to="360 7 7" dur="1s" repeatCount="indefinite"/></path></g></g>'}})})();