jquery.dgtable 0.6.5 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * jquery.dgtable 0.6.5
2
+ * jquery.dgtable 0.6.6
3
3
  * git://github.com/danielgindi/jquery.dgtable.git
4
4
  */
5
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery"),require("@danielgindi/dom-utils/lib/ScrollHelper"),require("@danielgindi/dom-utils/lib/Css")):"function"==typeof define&&define.amd?define(["jquery","@danielgindi/dom-utils/lib/ScrollHelper","@danielgindi/dom-utils/lib/Css"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).DGTable=t(e.jQuery,e.domUtilsScrollHelper,e.domUtilsCss)}(this,(function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=function(e){return e&&e.Math==Math&&e},u=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof l&&l)||function(){return this}()||Function("return this")(),c={},d=function(e){try{return!!e()}catch(e){return!0}},h=!d((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f=!d((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),p=f,v=Function.prototype.call,m=p?v.bind(v):function(){return v.apply(v,arguments)},g={},b={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,w=y&&!b.call({1:2},1);g.f=w?function(e){var t=y(this,e);return!!t&&t.enumerable}:b;var C,E,S=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_=f,I=Function.prototype,R=I.call,x=_&&I.bind.bind(R,R),W=_?x:function(e){return function(){return R.apply(e,arguments)}},P=W,k=P({}.toString),T=P("".slice),A=function(e){return T(k(e),8,-1)},H=A,N=W,O=function(e){if("Function"===H(e))return N(e)},F=d,L=A,M=Object,z=O("".split),U=F((function(){return!M("z").propertyIsEnumerable(0)}))?function(e){return"String"==L(e)?z(e,""):M(e)}:M,j=function(e){return null==e},$=j,B=TypeError,D=function(e){if($(e))throw B("Can't call method on "+e);return e},V=U,q=D,G=function(e){return V(q(e))},X="object"==typeof document&&document.all,Y={all:X,IS_HTMLDDA:void 0===X&&void 0!==X},J=Y.all,K=Y.IS_HTMLDDA?function(e){return"function"==typeof e||e===J}:function(e){return"function"==typeof e},Q=K,Z=Y.all,ee=Y.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Q(e)||e===Z}:function(e){return"object"==typeof e?null!==e:Q(e)},te=u,re=K,ne=function(e){return re(e)?e:void 0},oe=function(e,t){return arguments.length<2?ne(te[e]):te[e]&&te[e][t]},ie=O({}.isPrototypeOf),ae=oe("navigator","userAgent")||"",le=u,se=ae,ue=le.process,ce=le.Deno,de=ue&&ue.versions||ce&&ce.version,he=de&&de.v8;he&&(E=(C=he.split("."))[0]>0&&C[0]<4?1:+(C[0]+C[1])),!E&&se&&(!(C=se.match(/Edge\/(\d+)/))||C[1]>=74)&&(C=se.match(/Chrome\/(\d+)/))&&(E=+C[1]);var fe=E,pe=fe,ve=d,me=!!Object.getOwnPropertySymbols&&!ve((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pe&&pe<41})),ge=me&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,be=oe,ye=K,we=ie,Ce=Object,Ee=ge?function(e){return"symbol"==typeof e}:function(e){var t=be("Symbol");return ye(t)&&we(t.prototype,Ce(e))},Se=String,_e=function(e){try{return Se(e)}catch(e){return"Object"}},Ie=K,Re=_e,xe=TypeError,We=function(e){if(Ie(e))return e;throw xe(Re(e)+" is not a function")},Pe=We,ke=j,Te=function(e,t){var r=e[t];return ke(r)?void 0:Pe(r)},Ae=m,He=K,Ne=ee,Oe=TypeError,Fe={exports:{}},Le=u,Me=Object.defineProperty,ze=function(e,t){try{Me(Le,e,{value:t,configurable:!0,writable:!0})}catch(r){Le[e]=t}return t},Ue=ze,je="__core-js_shared__",$e=u[je]||Ue(je,{}),Be=$e;(Fe.exports=function(e,t){return Be[e]||(Be[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.0",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"});var De=D,Ve=Object,qe=function(e){return Ve(De(e))},Ge=qe,Xe=O({}.hasOwnProperty),Ye=Object.hasOwn||function(e,t){return Xe(Ge(e),t)},Je=O,Ke=0,Qe=Math.random(),Ze=Je(1..toString),et=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ze(++Ke+Qe,36)},tt=u,rt=Fe.exports,nt=Ye,ot=et,it=me,at=ge,lt=rt("wks"),st=tt.Symbol,ut=st&&st.for,ct=at?st:st&&st.withoutSetter||ot,dt=function(e){if(!nt(lt,e)||!it&&"string"!=typeof lt[e]){var t="Symbol."+e;it&&nt(st,e)?lt[e]=st[e]:lt[e]=at&&ut?ut(t):ct(t)}return lt[e]},ht=m,ft=ee,pt=Ee,vt=Te,mt=TypeError,gt=dt("toPrimitive"),bt=function(e,t){if(!ft(e)||pt(e))return e;var r,n=vt(e,gt);if(n){if(void 0===t&&(t="default"),r=ht(n,e,t),!ft(r)||pt(r))return r;throw mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&He(r=e.toString)&&!Ne(n=Ae(r,e)))return n;if(He(r=e.valueOf)&&!Ne(n=Ae(r,e)))return n;if("string"!==t&&He(r=e.toString)&&!Ne(n=Ae(r,e)))return n;throw Oe("Can't convert object to primitive value")}(e,t)},yt=bt,wt=Ee,Ct=function(e){var t=yt(e,"string");return wt(t)?t:t+""},Et=ee,St=u.document,_t=Et(St)&&Et(St.createElement),It=function(e){return _t?St.createElement(e):{}},Rt=It,xt=!h&&!d((function(){return 7!=Object.defineProperty(Rt("div"),"a",{get:function(){return 7}}).a})),Wt=h,Pt=m,kt=g,Tt=S,At=G,Ht=Ct,Nt=Ye,Ot=xt,Ft=Object.getOwnPropertyDescriptor;c.f=Wt?Ft:function(e,t){if(e=At(e),t=Ht(t),Ot)try{return Ft(e,t)}catch(e){}if(Nt(e,t))return Tt(!Pt(kt.f,e,t),e[t])};var Lt={},Mt=h&&d((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),zt=ee,Ut=String,jt=TypeError,$t=function(e){if(zt(e))return e;throw jt(Ut(e)+" is not an object")},Bt=h,Dt=xt,Vt=Mt,qt=$t,Gt=Ct,Xt=TypeError,Yt=Object.defineProperty,Jt=Object.getOwnPropertyDescriptor;Lt.f=Bt?Vt?function(e,t,r){if(qt(e),t=Gt(t),qt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=Jt(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return Yt(e,t,r)}:Yt:function(e,t,r){if(qt(e),t=Gt(t),qt(r),Dt)try{return Yt(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Xt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Kt=Lt,Qt=S,Zt=h?function(e,t,r){return Kt.f(e,t,Qt(1,r))}:function(e,t,r){return e[t]=r,e},er={exports:{}},tr=h,rr=Ye,nr=Function.prototype,or=tr&&Object.getOwnPropertyDescriptor,ir=rr(nr,"name"),ar={EXISTS:ir,PROPER:ir&&"something"===function(){}.name,CONFIGURABLE:ir&&(!tr||tr&&or(nr,"name").configurable)},lr=K,sr=$e,ur=O(Function.toString);lr(sr.inspectSource)||(sr.inspectSource=function(e){return ur(e)});var cr,dr,hr,fr=sr.inspectSource,pr=K,vr=u.WeakMap,mr=pr(vr)&&/native code/.test(String(vr)),gr=Fe.exports,br=et,yr=gr("keys"),wr=function(e){return yr[e]||(yr[e]=br(e))},Cr={},Er=mr,Sr=u,_r=ee,Ir=Zt,Rr=Ye,xr=$e,Wr=wr,Pr=Cr,kr="Object already initialized",Tr=Sr.TypeError,Ar=Sr.WeakMap;if(Er||xr.state){var Hr=xr.state||(xr.state=new Ar);Hr.get=Hr.get,Hr.has=Hr.has,Hr.set=Hr.set,cr=function(e,t){if(Hr.has(e))throw Tr(kr);return t.facade=e,Hr.set(e,t),t},dr=function(e){return Hr.get(e)||{}},hr=function(e){return Hr.has(e)}}else{var Nr=Wr("state");Pr[Nr]=!0,cr=function(e,t){if(Rr(e,Nr))throw Tr(kr);return t.facade=e,Ir(e,Nr,t),t},dr=function(e){return Rr(e,Nr)?e[Nr]:{}},hr=function(e){return Rr(e,Nr)}}var Or={set:cr,get:dr,has:hr,enforce:function(e){return hr(e)?dr(e):cr(e,{})},getterFor:function(e){return function(t){var r;if(!_r(t)||(r=dr(t)).type!==e)throw Tr("Incompatible receiver, "+e+" required");return r}}},Fr=d,Lr=K,Mr=Ye,zr=h,Ur=ar.CONFIGURABLE,jr=fr,$r=Or.enforce,Br=Or.get,Dr=Object.defineProperty,Vr=zr&&!Fr((function(){return 8!==Dr((function(){}),"length",{value:8}).length})),qr=String(String).split("String"),Gr=er.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Mr(e,"name")||Ur&&e.name!==t)&&(zr?Dr(e,"name",{value:t,configurable:!0}):e.name=t),Vr&&r&&Mr(r,"arity")&&e.length!==r.arity&&Dr(e,"length",{value:r.arity});try{r&&Mr(r,"constructor")&&r.constructor?zr&&Dr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=$r(e);return Mr(n,"source")||(n.source=qr.join("string"==typeof t?t:"")),e};Function.prototype.toString=Gr((function(){return Lr(this)&&Br(this).source||jr(this)}),"toString");var Xr=K,Yr=Lt,Jr=er.exports,Kr=ze,Qr=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(Xr(r)&&Jr(r,i,n),n.global)o?e[t]=r:Kr(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:Yr.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Zr={},en=Math.ceil,tn=Math.floor,rn=Math.trunc||function(e){var t=+e;return(t>0?tn:en)(t)},nn=function(e){var t=+e;return t!=t||0===t?0:rn(t)},on=nn,an=Math.max,ln=Math.min,sn=function(e,t){var r=on(e);return r<0?an(r+t,0):ln(r,t)},un=nn,cn=Math.min,dn=function(e){return e>0?cn(un(e),9007199254740991):0},hn=dn,fn=function(e){return hn(e.length)},pn=G,vn=sn,mn=fn,gn=function(e){return function(t,r,n){var o,i=pn(t),a=mn(i),l=vn(n,a);if(e&&r!=r){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===r)return e||l||0;return!e&&-1}},bn={includes:gn(!0),indexOf:gn(!1)},yn=Ye,wn=G,Cn=bn.indexOf,En=Cr,Sn=O([].push),_n=function(e,t){var r,n=wn(e),o=0,i=[];for(r in n)!yn(En,r)&&yn(n,r)&&Sn(i,r);for(;t.length>o;)yn(n,r=t[o++])&&(~Cn(i,r)||Sn(i,r));return i},In=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Rn=_n,xn=In.concat("length","prototype");Zr.f=Object.getOwnPropertyNames||function(e){return Rn(e,xn)};var Wn={};Wn.f=Object.getOwnPropertySymbols;var Pn=oe,kn=Zr,Tn=Wn,An=$t,Hn=O([].concat),Nn=Pn("Reflect","ownKeys")||function(e){var t=kn.f(An(e)),r=Tn.f;return r?Hn(t,r(e)):t},On=Ye,Fn=Nn,Ln=c,Mn=Lt,zn=function(e,t,r){for(var n=Fn(t),o=Mn.f,i=Ln.f,a=0;a<n.length;a++){var l=n[a];On(e,l)||r&&On(r,l)||o(e,l,i(t,l))}},Un=d,jn=K,$n=/#|\.prototype\./,Bn=function(e,t){var r=Vn[Dn(e)];return r==Gn||r!=qn&&(jn(t)?Un(t):!!t)},Dn=Bn.normalize=function(e){return String(e).replace($n,".").toLowerCase()},Vn=Bn.data={},qn=Bn.NATIVE="N",Gn=Bn.POLYFILL="P",Xn=Bn,Yn=u,Jn=c.f,Kn=Zt,Qn=Qr,Zn=ze,eo=zn,to=Xn,ro=function(e,t){var r,n,o,i,a,l=e.target,s=e.global,u=e.stat;if(r=s?Yn:u?Yn[l]||Zn(l,{}):(Yn[l]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=Jn(r,n))&&a.value:r[n],!to(s?n:l+(u?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;eo(i,o)}(e.sham||o&&o.sham)&&Kn(i,"sham",!0),Qn(r,n,i,e)}},no=d,oo=function(e,t){var r=[][e];return!!r&&no((function(){r.call(null,t||function(){return 1},1)}))},io=ro,ao=bn.indexOf,lo=oo,so=O([].indexOf),uo=!!so&&1/so([1],1,-0)<0,co=lo("indexOf");io({target:"Array",proto:!0,forced:uo||!co},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return uo?so(this,e,t)||0:ao(this,e,t)}});var ho={};ho[dt("toStringTag")]="z";var fo="[object z]"===String(ho),po=fo,vo=K,mo=A,go=dt("toStringTag"),bo=Object,yo="Arguments"==mo(function(){return arguments}()),wo=po?mo:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=bo(e),go))?r:yo?mo(t):"Object"==(n=mo(t))&&vo(t.callee)?"Arguments":n},Co=wo,Eo=String,So=function(e){if("Symbol"===Co(e))throw TypeError("Cannot convert a Symbol value to a string");return Eo(e)},_o=D,Io=So,Ro=O("".replace),xo="[\t\n\v\f\r                 \u2028\u2029\ufeff]",Wo=RegExp("^"+xo+xo+"*"),Po=RegExp(xo+xo+"*$"),ko=function(e){return function(t){var r=Io(_o(t));return 1&e&&(r=Ro(r,Wo,"")),2&e&&(r=Ro(r,Po,"")),r}},To={start:ko(1),end:ko(2),trim:ko(3)},Ao=u,Ho=d,No=So,Oo=To.trim,Fo=O("".charAt),Lo=Ao.parseFloat,Mo=Ao.Symbol,zo=Mo&&Mo.iterator,Uo=1/Lo("\t\n\v\f\r                 \u2028\u2029\ufeff-0")!=-1/0||zo&&!Ho((function(){Lo(Object(zo))}))?function(e){var t=Oo(No(e)),r=Lo(t);return 0===r&&"-"==Fo(t,0)?-0:r}:Lo;ro({global:!0,forced:parseFloat!=Uo},{parseFloat:Uo});var jo={},$o=_n,Bo=In,Do=Object.keys||function(e){return $o(e,Bo)},Vo=h,qo=Mt,Go=Lt,Xo=$t,Yo=G,Jo=Do;jo.f=Vo&&!qo?Object.defineProperties:function(e,t){Xo(e);for(var r,n=Yo(t),o=Jo(t),i=o.length,a=0;i>a;)Go.f(e,r=o[a++],n[r]);return e};var Ko,Qo=oe("document","documentElement"),Zo=$t,ei=jo,ti=In,ri=Cr,ni=Qo,oi=It,ii=wr("IE_PROTO"),ai=function(){},li=function(e){return"<script>"+e+"<\/script>"},si=function(e){e.write(li("")),e.close();var t=e.parentWindow.Object;return e=null,t},ui=function(){try{Ko=new ActiveXObject("htmlfile")}catch(e){}var e,t;ui="undefined"!=typeof document?document.domain&&Ko?si(Ko):((t=oi("iframe")).style.display="none",ni.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(li("document.F=Object")),e.close(),e.F):si(Ko);for(var r=ti.length;r--;)delete ui.prototype[ti[r]];return ui()};ri[ii]=!0;var ci=Object.create||function(e,t){var r;return null!==e?(ai.prototype=Zo(e),r=new ai,ai.prototype=null,r[ii]=e):r=ui(),void 0===t?r:ei.f(r,t)},di={},hi=Ct,fi=Lt,pi=S,vi=function(e,t,r){var n=hi(t);n in e?fi.f(e,n,pi(0,r)):e[n]=r},mi=sn,gi=fn,bi=vi,yi=Array,wi=Math.max,Ci=function(e,t,r){for(var n=gi(e),o=mi(t,n),i=mi(void 0===r?n:r,n),a=yi(wi(i-o,0)),l=0;o<i;o++,l++)bi(a,l,e[o]);return a.length=l,a},Ei=A,Si=G,_i=Zr.f,Ii=Ci,Ri="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];di.f=function(e){return Ri&&"Window"==Ei(e)?function(e){try{return _i(e)}catch(e){return Ii(Ri)}}(e):_i(Si(e))};var xi={},Wi=dt;xi.f=Wi;var Pi=u,ki=Ye,Ti=xi,Ai=Lt.f,Hi=m,Ni=oe,Oi=dt,Fi=Qr,Li=Lt.f,Mi=Ye,zi=dt("toStringTag"),Ui=function(e,t,r){e&&!r&&(e=e.prototype),e&&!Mi(e,zi)&&Li(e,zi,{configurable:!0,value:t})},ji=We,$i=f,Bi=O(O.bind),Di=function(e,t){return ji(e),void 0===t?e:$i?Bi(e,t):function(){return e.apply(t,arguments)}},Vi=A,qi=Array.isArray||function(e){return"Array"==Vi(e)},Gi=O,Xi=d,Yi=K,Ji=wo,Ki=fr,Qi=function(){},Zi=[],ea=oe("Reflect","construct"),ta=/^\s*(?:class|function)\b/,ra=Gi(ta.exec),na=!ta.exec(Qi),oa=function(e){if(!Yi(e))return!1;try{return ea(Qi,Zi,e),!0}catch(e){return!1}},ia=function(e){if(!Yi(e))return!1;switch(Ji(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return na||!!ra(ta,Ki(e))}catch(e){return!0}};ia.sham=!0;var aa=!ea||Xi((function(){var e;return oa(oa.call)||!oa(Object)||!oa((function(){e=!0}))||e}))?ia:oa,la=qi,sa=aa,ua=ee,ca=dt("species"),da=Array,ha=function(e,t){return new(function(e){var t;return la(e)&&(t=e.constructor,(sa(t)&&(t===da||la(t.prototype))||ua(t)&&null===(t=t[ca]))&&(t=void 0)),void 0===t?da:t}(e))(0===t?0:t)},fa=Di,pa=U,va=qe,ma=fn,ga=ha,ba=O([].push),ya=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(s,u,c,d){for(var h,f,p=va(s),v=pa(p),m=fa(u,c),g=ma(v),b=0,y=d||ga,w=t?y(s,g):r||a?y(s,0):void 0;g>b;b++)if((l||b in v)&&(f=m(h=v[b],b,p),e))if(t)w[b]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return b;case 2:ba(w,h)}else switch(e){case 4:return!1;case 7:ba(w,h)}return i?-1:n||o?o:w}},wa={forEach:ya(0),map:ya(1),filter:ya(2),some:ya(3),every:ya(4),find:ya(5),findIndex:ya(6),filterReject:ya(7)},Ca=ro,Ea=u,Sa=m,_a=O,Ia=h,Ra=me,xa=d,Wa=Ye,Pa=ie,ka=$t,Ta=G,Aa=Ct,Ha=So,Na=S,Oa=ci,Fa=Do,La=Zr,Ma=di,za=Wn,Ua=c,ja=Lt,$a=jo,Ba=g,Da=Qr,Va=Fe.exports,qa=Cr,Ga=et,Xa=dt,Ya=xi,Ja=Ui,Ka=Or,Qa=wa.forEach,Za=wr("hidden"),el="Symbol",tl=Ka.set,rl=Ka.getterFor(el),nl=Object.prototype,ol=Ea.Symbol,il=ol&&ol.prototype,al=Ea.TypeError,ll=Ea.QObject,sl=Ua.f,ul=ja.f,cl=Ma.f,dl=Ba.f,hl=_a([].push),fl=Va("symbols"),pl=Va("op-symbols"),vl=Va("wks"),ml=!ll||!ll.prototype||!ll.prototype.findChild,gl=Ia&&xa((function(){return 7!=Oa(ul({},"a",{get:function(){return ul(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=sl(nl,t);n&&delete nl[t],ul(e,t,r),n&&e!==nl&&ul(nl,t,n)}:ul,bl=function(e,t){var r=fl[e]=Oa(il);return tl(r,{type:el,tag:e,description:t}),Ia||(r.description=t),r},yl=function(e,t,r){e===nl&&yl(pl,t,r),ka(e);var n=Aa(t);return ka(r),Wa(fl,n)?(r.enumerable?(Wa(e,Za)&&e[Za][n]&&(e[Za][n]=!1),r=Oa(r,{enumerable:Na(0,!1)})):(Wa(e,Za)||ul(e,Za,Na(1,{})),e[Za][n]=!0),gl(e,n,r)):ul(e,n,r)},wl=function(e,t){ka(e);var r=Ta(t),n=Fa(r).concat(_l(r));return Qa(n,(function(t){Ia&&!Sa(Cl,r,t)||yl(e,t,r[t])})),e},Cl=function(e){var t=Aa(e),r=Sa(dl,this,t);return!(this===nl&&Wa(fl,t)&&!Wa(pl,t))&&(!(r||!Wa(this,t)||!Wa(fl,t)||Wa(this,Za)&&this[Za][t])||r)},El=function(e,t){var r=Ta(e),n=Aa(t);if(r!==nl||!Wa(fl,n)||Wa(pl,n)){var o=sl(r,n);return!o||!Wa(fl,n)||Wa(r,Za)&&r[Za][n]||(o.enumerable=!0),o}},Sl=function(e){var t=cl(Ta(e)),r=[];return Qa(t,(function(e){Wa(fl,e)||Wa(qa,e)||hl(r,e)})),r},_l=function(e){var t=e===nl,r=cl(t?pl:Ta(e)),n=[];return Qa(r,(function(e){!Wa(fl,e)||t&&!Wa(nl,e)||hl(n,fl[e])})),n};Ra||(Da(il=(ol=function(){if(Pa(il,this))throw al("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Ha(arguments[0]):void 0,t=Ga(e),r=function(e){this===nl&&Sa(r,pl,e),Wa(this,Za)&&Wa(this[Za],t)&&(this[Za][t]=!1),gl(this,t,Na(1,e))};return Ia&&ml&&gl(nl,t,{configurable:!0,set:r}),bl(t,e)}).prototype,"toString",(function(){return rl(this).tag})),Da(ol,"withoutSetter",(function(e){return bl(Ga(e),e)})),Ba.f=Cl,ja.f=yl,$a.f=wl,Ua.f=El,La.f=Ma.f=Sl,za.f=_l,Ya.f=function(e){return bl(Xa(e),e)},Ia&&(ul(il,"description",{configurable:!0,get:function(){return rl(this).description}}),Da(nl,"propertyIsEnumerable",Cl,{unsafe:!0}))),Ca({global:!0,constructor:!0,wrap:!0,forced:!Ra,sham:!Ra},{Symbol:ol}),Qa(Fa(vl),(function(e){!function(e){var t=Pi.Symbol||(Pi.Symbol={});ki(t,e)||Ai(t,e,{value:Ti.f(e)})}(e)})),Ca({target:el,stat:!0,forced:!Ra},{useSetter:function(){ml=!0},useSimple:function(){ml=!1}}),Ca({target:"Object",stat:!0,forced:!Ra,sham:!Ia},{create:function(e,t){return void 0===t?Oa(e):wl(Oa(e),t)},defineProperty:yl,defineProperties:wl,getOwnPropertyDescriptor:El}),Ca({target:"Object",stat:!0,forced:!Ra},{getOwnPropertyNames:Sl}),function(){var e=Ni("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=Oi("toPrimitive");t&&!t[n]&&Fi(t,n,(function(e){return Hi(r,this)}),{arity:1})}(),Ja(ol,el),qa[Za]=!0;var Il=me&&!!Symbol.for&&!!Symbol.keyFor,Rl=ro,xl=oe,Wl=Ye,Pl=So,kl=Fe.exports,Tl=Il,Al=kl("string-to-symbol-registry"),Hl=kl("symbol-to-string-registry");Rl({target:"Symbol",stat:!0,forced:!Tl},{for:function(e){var t=Pl(e);if(Wl(Al,t))return Al[t];var r=xl("Symbol")(t);return Al[t]=r,Hl[r]=t,r}});var Nl=ro,Ol=Ye,Fl=Ee,Ll=_e,Ml=Il,zl=(0,Fe.exports)("symbol-to-string-registry");Nl({target:"Symbol",stat:!0,forced:!Ml},{keyFor:function(e){if(!Fl(e))throw TypeError(Ll(e)+" is not a symbol");if(Ol(zl,e))return zl[e]}});var Ul=f,jl=Function.prototype,$l=jl.apply,Bl=jl.call,Dl="object"==typeof Reflect&&Reflect.apply||(Ul?Bl.bind($l):function(){return Bl.apply($l,arguments)}),Vl=O([].slice),ql=ro,Gl=oe,Xl=Dl,Yl=m,Jl=O,Kl=d,Ql=qi,Zl=K,es=ee,ts=Ee,rs=Vl,ns=me,os=Gl("JSON","stringify"),is=Jl(/./.exec),as=Jl("".charAt),ls=Jl("".charCodeAt),ss=Jl("".replace),us=Jl(1..toString),cs=/[\uD800-\uDFFF]/g,ds=/^[\uD800-\uDBFF]$/,hs=/^[\uDC00-\uDFFF]$/,fs=!ns||Kl((function(){var e=Gl("Symbol")();return"[null]"!=os([e])||"{}"!=os({a:e})||"{}"!=os(Object(e))})),ps=Kl((function(){return'"\\udf06\\ud834"'!==os("\udf06\ud834")||'"\\udead"'!==os("\udead")})),vs=function(e,t){var r=rs(arguments),n=t;if((es(t)||void 0!==e)&&!ts(e))return Ql(t)||(t=function(e,t){if(Zl(n)&&(t=Yl(n,this,e,t)),!ts(t))return t}),r[1]=t,Xl(os,null,r)},ms=function(e,t,r){var n=as(r,t-1),o=as(r,t+1);return is(ds,e)&&!is(hs,o)||is(hs,e)&&!is(ds,n)?"\\u"+us(ls(e,0),16):e};os&&ql({target:"JSON",stat:!0,arity:3,forced:fs||ps},{stringify:function(e,t,r){var n=rs(arguments),o=Xl(fs?vs:os,null,n);return ps&&"string"==typeof o?ss(o,cs,ms):o}});var gs=Wn,bs=qe;ro({target:"Object",stat:!0,forced:!me||d((function(){gs.f(1)}))},{getOwnPropertySymbols:function(e){var t=gs.f;return t?t(bs(e)):[]}});var ys=ro,ws=h,Cs=u,Es=O,Ss=Ye,_s=K,Is=ie,Rs=So,xs=Lt.f,Ws=zn,Ps=Cs.Symbol,ks=Ps&&Ps.prototype;if(ws&&_s(Ps)&&(!("description"in ks)||void 0!==Ps().description)){var Ts={},As=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:Rs(arguments[0]),t=Is(ks,this)?new Ps(e):void 0===e?Ps():Ps(e);return""===e&&(Ts[t]=!0),t};Ws(As,Ps),As.prototype=ks,ks.constructor=As;var Hs="Symbol(test)"==String(Ps("test")),Ns=Es(ks.valueOf),Os=Es(ks.toString),Fs=/^Symbol\((.*)\)[^)]+$/,Ls=Es("".replace),Ms=Es("".slice);xs(ks,"description",{configurable:!0,get:function(){var e=Ns(this);if(Ss(Ts,e))return"";var t=Os(e),r=Hs?Ms(t,7,-1):Ls(t,Fs,"$1");return""===r?void 0:r}}),ys({global:!0,constructor:!0,forced:!0},{Symbol:As})}var zs=wo,Us=fo?{}.toString:function(){return"[object "+zs(this)+"]"};fo||Qr(Object.prototype,"toString",Us,{unsafe:!0});var js,$s,Bs=$t,Ds=function(){var e=Bs(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Vs=d,qs=u.RegExp,Gs=Vs((function(){var e=qs("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Xs=Gs||Vs((function(){return!qs("a","y").sticky})),Ys={BROKEN_CARET:Gs||Vs((function(){var e=qs("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Xs,UNSUPPORTED_Y:Gs},Js=d,Ks=u.RegExp,Qs=Js((function(){var e=Ks(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Zs=d,eu=u.RegExp,tu=Zs((function(){var e=eu("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),ru=m,nu=O,ou=So,iu=Ds,au=Ys,lu=Fe.exports,su=ci,uu=Or.get,cu=Qs,du=tu,hu=lu("native-string-replace",String.prototype.replace),fu=RegExp.prototype.exec,pu=fu,vu=nu("".charAt),mu=nu("".indexOf),gu=nu("".replace),bu=nu("".slice),yu=($s=/b*/g,ru(fu,js=/a/,"a"),ru(fu,$s,"a"),0!==js.lastIndex||0!==$s.lastIndex),wu=au.BROKEN_CARET,Cu=void 0!==/()??/.exec("")[1];(yu||Cu||wu||cu||du)&&(pu=function(e){var t,r,n,o,i,a,l,s=this,u=uu(s),c=ou(e),d=u.raw;if(d)return d.lastIndex=s.lastIndex,t=ru(pu,d,c),s.lastIndex=d.lastIndex,t;var h=u.groups,f=wu&&s.sticky,p=ru(iu,s),v=s.source,m=0,g=c;if(f&&(p=gu(p,"y",""),-1===mu(p,"g")&&(p+="g"),g=bu(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==vu(c,s.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,m++),r=new RegExp("^(?:"+v+")",p)),Cu&&(r=new RegExp("^"+v+"$(?!\\s)",p)),yu&&(n=s.lastIndex),o=ru(fu,f?r:s,g),f?o?(o.input=bu(o.input,m),o[0]=bu(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:yu&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Cu&&o&&o.length>1&&ru(hu,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&h)for(o.groups=a=su(null),i=0;i<h.length;i++)a[(l=h[i])[0]]=o[l[1]];return o});var Eu=pu;ro({target:"RegExp",proto:!0,forced:/./.exec!==Eu},{exec:Eu});var Su=TypeError,_u=function(e){if(e>9007199254740991)throw Su("Maximum allowed index exceeded");return e},Iu=d,Ru=fe,xu=dt("species"),Wu=function(e){return Ru>=51||!Iu((function(){var t=[];return(t.constructor={})[xu]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Pu=ro,ku=d,Tu=qi,Au=ee,Hu=qe,Nu=fn,Ou=_u,Fu=vi,Lu=ha,Mu=Wu,zu=fe,Uu=dt("isConcatSpreadable"),ju=zu>=51||!ku((function(){var e=[];return e[Uu]=!1,e.concat()[0]!==e})),$u=Mu("concat"),Bu=function(e){if(!Au(e))return!1;var t=e[Uu];return void 0!==t?!!t:Tu(e)};Pu({target:"Array",proto:!0,arity:1,forced:!ju||!$u},{concat:function(e){var t,r,n,o,i,a=Hu(this),l=Lu(a,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(Bu(i=-1===t?a:arguments[t]))for(o=Nu(i),Ou(s+o),r=0;r<o;r++,s++)r in i&&Fu(l,s,i[r]);else Ou(s+1),Fu(l,s++,i);return l.length=s,l}});var Du=ro,Vu=qi,qu=aa,Gu=ee,Xu=sn,Yu=fn,Ju=G,Ku=vi,Qu=dt,Zu=Vl,ec=Wu("slice"),tc=Qu("species"),rc=Array,nc=Math.max;Du({target:"Array",proto:!0,forced:!ec},{slice:function(e,t){var r,n,o,i=Ju(this),a=Yu(i),l=Xu(e,a),s=Xu(void 0===t?a:t,a);if(Vu(i)&&(r=i.constructor,(qu(r)&&(r===rc||Vu(r.prototype))||Gu(r)&&null===(r=r[tc]))&&(r=void 0),r===rc||void 0===r))return Zu(i,l,s);for(n=new(void 0===r?rc:r)(nc(s-l,0)),o=0;l<s;l++,o++)l in i&&Ku(n,o,i[l]);return n.length=o,n}});var oc=u,ic=d,ac=O,lc=So,sc=To.trim,uc="\t\n\v\f\r                 \u2028\u2029\ufeff",cc=oc.parseInt,dc=oc.Symbol,hc=dc&&dc.iterator,fc=/^[+-]?0x/i,pc=ac(fc.exec),vc=8!==cc(uc+"08")||22!==cc(uc+"0x16")||hc&&!ic((function(){cc(Object(hc))}))?function(e,t){var r=sc(lc(e));return cc(r,t>>>0||(pc(fc,r)?16:10))}:cc;ro({global:!0,forced:parseInt!=vc},{parseInt:vc});var mc=wa.filter;ro({target:"Array",proto:!0,forced:!Wu("filter")},{filter:function(e){return mc(this,e,arguments.length>1?arguments[1]:void 0)}});var gc=h,bc=qi,yc=TypeError,wc=Object.getOwnPropertyDescriptor,Cc=gc&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),Ec=_e,Sc=TypeError,_c=function(e,t){if(!delete e[t])throw Sc("Cannot delete property "+Ec(t)+" of "+Ec(e))},Ic=ro,Rc=qe,xc=sn,Wc=nn,Pc=fn,kc=Cc?function(e,t){if(bc(e)&&!wc(e,"length").writable)throw yc("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Tc=_u,Ac=ha,Hc=vi,Nc=_c,Oc=Wu("splice"),Fc=Math.max,Lc=Math.min;Ic({target:"Array",proto:!0,forced:!Oc},{splice:function(e,t){var r,n,o,i,a,l,s=Rc(this),u=Pc(s),c=xc(e,u),d=arguments.length;for(0===d?r=n=0:1===d?(r=0,n=u-c):(r=d-2,n=Lc(Fc(Wc(t),0),u-c)),Tc(u+r-n),o=Ac(s,n),i=0;i<n;i++)(a=c+i)in s&&Hc(o,i,s[a]);if(o.length=n,r<n){for(i=c;i<u-n;i++)l=i+r,(a=i+n)in s?s[l]=s[a]:Nc(s,l);for(i=u;i>u-n+r;i--)Nc(s,i-1)}else if(r>n)for(i=u-n;i>c;i--)l=i+r-1,(a=i+n-1)in s?s[l]=s[a]:Nc(s,l);for(i=0;i<r;i++)s[i+c]=arguments[i+2];return kc(s,u-n+r),o}});var Mc=dt,zc=ci,Uc=Lt.f,jc=Mc("unscopables"),$c=Array.prototype;null==$c[jc]&&Uc($c,jc,{configurable:!0,value:zc(null)});var Bc=function(e){$c[jc][e]=!0},Dc=ro,Vc=wa.find,qc=Bc,Gc="find",Xc=!0;Gc in[]&&Array(1).find((function(){Xc=!1})),Dc({target:"Array",proto:!0,forced:Xc},{find:function(e){return Vc(this,e,arguments.length>1?arguments[1]:void 0)}}),qc(Gc);var Yc=Ci,Jc=Math.floor,Kc=function(e,t){var r=e.length,n=Jc(r/2);return r<8?Qc(e,t):Zc(e,Kc(Yc(e,0,n),t),Kc(Yc(e,n),t),t)},Qc=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},Zc=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,l=0;a<o||l<i;)e[a+l]=a<o&&l<i?n(t[a],r[l])<=0?t[a++]:r[l++]:a<o?t[a++]:r[l++];return e},ed=Kc,td=ae.match(/firefox\/(\d+)/i),rd=!!td&&+td[1],nd=/MSIE|Trident/.test(ae),od=ae.match(/AppleWebKit\/(\d+)\./),id=!!od&&+od[1],ad=ro,ld=O,sd=We,ud=qe,cd=fn,dd=_c,hd=So,fd=d,pd=ed,vd=oo,md=rd,gd=nd,bd=fe,yd=id,wd=[],Cd=ld(wd.sort),Ed=ld(wd.push),Sd=fd((function(){wd.sort(void 0)})),_d=fd((function(){wd.sort(null)})),Id=vd("sort"),Rd=!fd((function(){if(bd)return bd<70;if(!(md&&md>3)){if(gd)return!0;if(yd)return yd<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)wd.push({k:t+n,v:r})}for(wd.sort((function(e,t){return t.v-e.v})),n=0;n<wd.length;n++)t=wd[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));ad({target:"Array",proto:!0,forced:Sd||!_d||!Id||!Rd},{sort:function(e){void 0!==e&&sd(e);var t=ud(this);if(Rd)return void 0===e?Cd(t):Cd(t,e);var r,n,o=[],i=cd(t);for(n=0;n<i;n++)n in t&&Ed(o,t[n]);for(pd(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:hd(t)>hd(r)?1:-1}}(e)),r=cd(o),n=0;n<r;)t[n]=o[n++];for(;n<i;)dd(t,n++);return t}});var xd,Wd,Pd,kd={},Td=!d((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ad=Ye,Hd=K,Nd=qe,Od=Td,Fd=wr("IE_PROTO"),Ld=Object,Md=Ld.prototype,zd=Od?Ld.getPrototypeOf:function(e){var t=Nd(e);if(Ad(t,Fd))return t[Fd];var r=t.constructor;return Hd(r)&&t instanceof r?r.prototype:t instanceof Ld?Md:null},Ud=d,jd=K,$d=ee,Bd=zd,Dd=Qr,Vd=dt("iterator"),qd=!1;[].keys&&("next"in(Pd=[].keys())?(Wd=Bd(Bd(Pd)))!==Object.prototype&&(xd=Wd):qd=!0),(!$d(xd)||Ud((function(){var e={};return xd[Vd].call(e)!==e})))&&(xd={}),jd(xd[Vd])||Dd(xd,Vd,(function(){return this}));var Gd={IteratorPrototype:xd,BUGGY_SAFARI_ITERATORS:qd},Xd=Gd.IteratorPrototype,Yd=ci,Jd=S,Kd=Ui,Qd=kd,Zd=function(){return this},eh=function(e,t,r,n){var o=t+" Iterator";return e.prototype=Yd(Xd,{next:Jd(+!n,r)}),Kd(e,o,!1),Qd[o]=Zd,e},th=K,rh=String,nh=TypeError,oh=O,ih=$t,ah=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=oh(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return ih(r),function(e){if("object"==typeof e||th(e))return e;throw nh("Can't set "+rh(e)+" as a prototype")}(n),t?e(r,n):r.__proto__=n,r}}():void 0),lh=ro,sh=m,uh=K,ch=eh,dh=zd,hh=ah,fh=Ui,ph=Zt,vh=Qr,mh=kd,gh=ar.PROPER,bh=ar.CONFIGURABLE,yh=Gd.IteratorPrototype,wh=Gd.BUGGY_SAFARI_ITERATORS,Ch=dt("iterator"),Eh="keys",Sh="values",_h="entries",Ih=function(){return this},Rh=function(e,t,r,n,o,i,a){ch(r,t,n);var l,s,u,c=function(e){if(e===o&&v)return v;if(!wh&&e in f)return f[e];switch(e){case Eh:case Sh:case _h:return function(){return new r(this,e)}}return function(){return new r(this)}},d=t+" Iterator",h=!1,f=e.prototype,p=f[Ch]||f["@@iterator"]||o&&f[o],v=!wh&&p||c(o),m="Array"==t&&f.entries||p;if(m&&(l=dh(m.call(new e)))!==Object.prototype&&l.next&&(dh(l)!==yh&&(hh?hh(l,yh):uh(l[Ch])||vh(l,Ch,Ih)),fh(l,d,!0)),gh&&o==Sh&&p&&p.name!==Sh&&(bh?ph(f,"name",Sh):(h=!0,v=function(){return sh(p,this)})),o)if(s={values:c(Sh),keys:i?v:c(Eh),entries:c(_h)},a)for(u in s)(wh||h||!(u in f))&&vh(f,u,s[u]);else lh({target:t,proto:!0,forced:wh||h},s);return f[Ch]!==v&&vh(f,Ch,v,{name:o}),mh[t]=v,s},xh=function(e,t){return{value:e,done:t}},Wh=G,Ph=Bc,kh=kd,Th=Or,Ah=Lt.f,Hh=Rh,Nh=xh,Oh=h,Fh="Array Iterator",Lh=Th.set,Mh=Th.getterFor(Fh),zh=Hh(Array,"Array",(function(e,t){Lh(this,{type:Fh,target:Wh(e),index:0,kind:t})}),(function(){var e=Mh(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,Nh(void 0,!0)):Nh("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),Uh=kh.Arguments=kh.Array;if(Ph("keys"),Ph("values"),Ph("entries"),Oh&&"values"!==Uh.name)try{Ah(Uh,"name",{value:"values"})}catch(e){}var jh=O,$h=nn,Bh=So,Dh=D,Vh=jh("".charAt),qh=jh("".charCodeAt),Gh=jh("".slice),Xh=function(e){return function(t,r){var n,o,i=Bh(Dh(t)),a=$h(r),l=i.length;return a<0||a>=l?e?"":void 0:(n=qh(i,a))<55296||n>56319||a+1===l||(o=qh(i,a+1))<56320||o>57343?e?Vh(i,a):n:e?Gh(i,a,a+2):o-56320+(n-55296<<10)+65536}},Yh={codeAt:Xh(!1),charAt:Xh(!0)},Jh=Yh.charAt,Kh=So,Qh=Or,Zh=Rh,ef=xh,tf="String Iterator",rf=Qh.set,nf=Qh.getterFor(tf);Zh(String,"String",(function(e){rf(this,{type:tf,string:Kh(e),index:0})}),(function(){var e,t=nf(this),r=t.string,n=t.index;return n>=r.length?ef(void 0,!0):(e=Jh(r,n),t.index+=e.length,ef(e,!1))}));var of=It("span").classList,af=of&&of.constructor&&of.constructor.prototype,lf=af===Object.prototype?void 0:af,sf=u,uf={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},cf=lf,df=zh,hf=Zt,ff=dt,pf=ff("iterator"),vf=ff("toStringTag"),mf=df.values,gf=function(e,t){if(e){if(e[pf]!==mf)try{hf(e,pf,mf)}catch(t){e[pf]=mf}if(e[vf]||hf(e,vf,t),uf[t])for(var r in df)if(e[r]!==df[r])try{hf(e,r,df[r])}catch(t){e[r]=df[r]}}};for(var bf in uf)gf(sf[bf]&&sf[bf].prototype,bf);gf(cf,"DOMTokenList");var yf=d,wf=dt("iterator"),Cf=!yf((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[wf]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),Ef=er.exports,Sf=Lt,_f=ie,If=TypeError,Rf=function(e,t){if(_f(t,e))return e;throw If("Incorrect invocation")},xf=h,Wf=O,Pf=m,kf=d,Tf=Do,Af=Wn,Hf=g,Nf=qe,Of=U,Ff=Object.assign,Lf=Object.defineProperty,Mf=Wf([].concat),zf=!Ff||kf((function(){if(xf&&1!==Ff({b:1},Ff(Lf({},"a",{enumerable:!0,get:function(){Lf(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=Ff({},e)[r]||Tf(Ff({},t)).join("")!=n}))?function(e,t){for(var r=Nf(e),n=arguments.length,o=1,i=Af.f,a=Hf.f;n>o;)for(var l,s=Of(arguments[o++]),u=i?Mf(Tf(s),i(s)):Tf(s),c=u.length,d=0;c>d;)l=u[d++],xf&&!Pf(a,s,l)||(r[l]=s[l]);return r}:Ff,Uf=m,jf=$t,$f=Te,Bf=$t,Df=kd,Vf=dt("iterator"),qf=Array.prototype,Gf=wo,Xf=Te,Yf=j,Jf=kd,Kf=dt("iterator"),Qf=function(e){if(!Yf(e))return Xf(e,Kf)||Xf(e,"@@iterator")||Jf[Gf(e)]},Zf=m,ep=We,tp=$t,rp=_e,np=Qf,op=TypeError,ip=function(e,t){var r=arguments.length<2?np(e):t;if(ep(r))return tp(Zf(r,e));throw op(rp(e)+" is not iterable")},ap=Di,lp=m,sp=qe,up=function(e,t,r,n){try{return n?t(Bf(r)[0],r[1]):t(r)}catch(t){!function(e,t,r){var n,o;jf(e);try{if(!(n=$f(e,"return"))){if("throw"===t)throw r;return r}n=Uf(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;jf(n)}(e,"throw",t)}},cp=function(e){return void 0!==e&&(Df.Array===e||qf[Vf]===e)},dp=aa,hp=fn,fp=vi,pp=ip,vp=Qf,mp=Array,gp=O,bp=2147483647,yp=/[^\0-\u007E]/,wp=/[.\u3002\uFF0E\uFF61]/g,Cp="Overflow: input needs wider integers to process",Ep=RangeError,Sp=gp(wp.exec),_p=Math.floor,Ip=String.fromCharCode,Rp=gp("".charCodeAt),xp=gp([].join),Wp=gp([].push),Pp=gp("".replace),kp=gp("".split),Tp=gp("".toLowerCase),Ap=function(e){return e+22+75*(e<26)},Hp=function(e,t,r){var n=0;for(e=r?_p(e/700):e>>1,e+=_p(e/t);e>455;)e=_p(e/35),n+=36;return _p(n+36*e/(e+38))},Np=function(e){var t,r,n=[],o=(e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=Rp(e,r++);if(o>=55296&&o<=56319&&r<n){var i=Rp(e,r++);56320==(64512&i)?Wp(t,((1023&o)<<10)+(1023&i)+65536):(Wp(t,o),r--)}else Wp(t,o)}return t}(e)).length,i=128,a=0,l=72;for(t=0;t<e.length;t++)(r=e[t])<128&&Wp(n,Ip(r));var s=n.length,u=s;for(s&&Wp(n,"-");u<o;){var c=bp;for(t=0;t<e.length;t++)(r=e[t])>=i&&r<c&&(c=r);var d=u+1;if(c-i>_p((bp-a)/d))throw Ep(Cp);for(a+=(c-i)*d,i=c,t=0;t<e.length;t++){if((r=e[t])<i&&++a>bp)throw Ep(Cp);if(r==i){for(var h=a,f=36;;){var p=f<=l?1:f>=l+26?26:f-l;if(h<p)break;var v=h-p,m=36-p;Wp(n,Ip(Ap(p+v%m))),h=_p(v/m),f+=36}Wp(n,Ip(Ap(h))),l=Hp(a,d,u==s),a=0,u++}}a++,i++}return xp(n,"")},Op=TypeError,Fp=function(e,t){if(e<t)throw Op("Not enough arguments");return e},Lp=Qr,Mp=ro,zp=u,Up=m,jp=O,$p=h,Bp=Cf,Dp=Qr,Vp=Ui,qp=eh,Gp=Or,Xp=Rf,Yp=K,Jp=Ye,Kp=Di,Qp=wo,Zp=$t,ev=ee,tv=So,rv=ci,nv=S,ov=ip,iv=Qf,av=Fp,lv=ed,sv=dt("iterator"),uv="URLSearchParams",cv="URLSearchParamsIterator",dv=Gp.set,hv=Gp.getterFor(uv),fv=Gp.getterFor(cv),pv=Object.getOwnPropertyDescriptor,vv=function(e){if(!$p)return zp[e];var t=pv(zp,e);return t&&t.value},mv=vv("fetch"),gv=vv("Request"),bv=vv("Headers"),yv=gv&&gv.prototype,wv=bv&&bv.prototype,Cv=zp.RegExp,Ev=zp.TypeError,Sv=zp.decodeURIComponent,_v=zp.encodeURIComponent,Iv=jp("".charAt),Rv=jp([].join),xv=jp([].push),Wv=jp("".replace),Pv=jp([].shift),kv=jp([].splice),Tv=jp("".split),Av=jp("".slice),Hv=/\+/g,Nv=Array(4),Ov=function(e){return Nv[e-1]||(Nv[e-1]=Cv("((?:%[\\da-f]{2}){"+e+"})","gi"))},Fv=function(e){try{return Sv(e)}catch(t){return e}},Lv=function(e){var t=Wv(e,Hv," "),r=4;try{return Sv(t)}catch(e){for(;r;)t=Wv(t,Ov(r--),Fv);return t}},Mv=/[!'()~]|%20/g,zv={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Uv=function(e){return zv[e]},jv=function(e){return Wv(_v(e),Mv,Uv)},$v=qp((function(e,t){dv(this,{type:cv,iterator:ov(hv(e).entries),kind:t})}),"Iterator",(function(){var e=fv(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),Bv=function(e){this.entries=[],this.url=null,void 0!==e&&(ev(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Iv(e,0)?Av(e,1):e:tv(e)))};Bv.prototype={type:uv,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,l,s=iv(e);if(s)for(r=(t=ov(e,s)).next;!(n=Up(r,t)).done;){if(i=(o=ov(Zp(n.value))).next,(a=Up(i,o)).done||(l=Up(i,o)).done||!Up(i,o).done)throw Ev("Expected sequence with length 2");xv(this.entries,{key:tv(a.value),value:tv(l.value)})}else for(var u in e)Jp(e,u)&&xv(this.entries,{key:u,value:tv(e[u])})},parseQuery:function(e){if(e)for(var t,r,n=Tv(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=Tv(t,"="),xv(this.entries,{key:Lv(Pv(r)),value:Lv(Rv(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],xv(r,jv(e.key)+"="+jv(e.value));return Rv(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Dv=function(){Xp(this,Vv);var e=arguments.length>0?arguments[0]:void 0;dv(this,new Bv(e))},Vv=Dv.prototype;if(function(e,t,r){for(var n in t)Lp(e,n,t[n],r)}(Vv,{append:function(e,t){av(arguments.length,2);var r=hv(this);xv(r.entries,{key:tv(e),value:tv(t)}),r.updateURL()},delete:function(e){av(arguments.length,1);for(var t=hv(this),r=t.entries,n=tv(e),o=0;o<r.length;)r[o].key===n?kv(r,o,1):o++;t.updateURL()},get:function(e){av(arguments.length,1);for(var t=hv(this).entries,r=tv(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){av(arguments.length,1);for(var t=hv(this).entries,r=tv(e),n=[],o=0;o<t.length;o++)t[o].key===r&&xv(n,t[o].value);return n},has:function(e){av(arguments.length,1);for(var t=hv(this).entries,r=tv(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){av(arguments.length,1);for(var r,n=hv(this),o=n.entries,i=!1,a=tv(e),l=tv(t),s=0;s<o.length;s++)(r=o[s]).key===a&&(i?kv(o,s--,1):(i=!0,r.value=l));i||xv(o,{key:a,value:l}),n.updateURL()},sort:function(){var e=hv(this);lv(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=hv(this).entries,n=Kp(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new $v(this,"keys")},values:function(){return new $v(this,"values")},entries:function(){return new $v(this,"entries")}},{enumerable:!0}),Dp(Vv,sv,Vv.entries,{name:"entries"}),Dp(Vv,"toString",(function(){return hv(this).serialize()}),{enumerable:!0}),Vp(Dv,uv),Mp({global:!0,constructor:!0,forced:!Bp},{URLSearchParams:Dv}),!Bp&&Yp(bv)){var qv=jp(wv.has),Gv=jp(wv.set),Xv=function(e){if(ev(e)){var t,r=e.body;if(Qp(r)===uv)return t=e.headers?new bv(e.headers):new bv,qv(t,"content-type")||Gv(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),rv(e,{body:nv(0,tv(r)),headers:nv(0,t)})}return e};if(Yp(mv)&&Mp({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return mv(e,arguments.length>1?Xv(arguments[1]):{})}}),Yp(gv)){var Yv=function(e){return Xp(this,yv),new gv(e,arguments.length>1?Xv(arguments[1]):{})};yv.constructor=Yv,Yv.prototype=yv,Mp({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Yv})}}var Jv,Kv=ro,Qv=h,Zv=Cf,em=u,tm=Di,rm=O,nm=Qr,om=function(e,t,r){return r.get&&Ef(r.get,t,{getter:!0}),r.set&&Ef(r.set,t,{setter:!0}),Sf.f(e,t,r)},im=Rf,am=Ye,lm=zf,sm=function(e){var t=sp(e),r=dp(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=ap(o,n>2?arguments[2]:void 0));var a,l,s,u,c,d,h=vp(t),f=0;if(!h||this===mp&&cp(h))for(a=hp(t),l=r?new this(a):mp(a);a>f;f++)d=i?o(t[f],f):t[f],fp(l,f,d);else for(c=(u=pp(t,h)).next,l=r?new this:[];!(s=lp(c,u)).done;f++)d=i?up(u,o,[s.value,f],!0):s.value,fp(l,f,d);return l.length=f,l},um=Ci,cm=Yh.codeAt,dm=So,hm=Ui,fm=Fp,pm={URLSearchParams:Dv,getState:hv},vm=Or,mm=vm.set,gm=vm.getterFor("URL"),bm=pm.URLSearchParams,ym=pm.getState,wm=em.URL,Cm=em.TypeError,Em=em.parseInt,Sm=Math.floor,_m=Math.pow,Im=rm("".charAt),Rm=rm(/./.exec),xm=rm([].join),Wm=rm(1..toString),Pm=rm([].pop),km=rm([].push),Tm=rm("".replace),Am=rm([].shift),Hm=rm("".split),Nm=rm("".slice),Om=rm("".toLowerCase),Fm=rm([].unshift),Lm="Invalid scheme",Mm="Invalid host",zm="Invalid port",Um=/[a-z]/i,jm=/[\d+-.a-z]/i,$m=/\d/,Bm=/^0x/i,Dm=/^[0-7]+$/,Vm=/^\d+$/,qm=/^[\da-f]+$/i,Gm=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Xm=/[\0\t\n\r #/:<>?@[\\\]^|]/,Ym=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,Jm=/[\t\n\r]/g,Km=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)Fm(t,e%256),e=Sm(e/256);return xm(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=Wm(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Qm={},Zm=lm({},Qm,{" ":1,'"':1,"<":1,">":1,"`":1}),eg=lm({},Zm,{"#":1,"?":1,"{":1,"}":1}),tg=lm({},eg,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),rg=function(e,t){var r=cm(e,0);return r>32&&r<127&&!am(t,e)?e:encodeURIComponent(e)},ng={ftp:21,file:null,http:80,https:443,ws:80,wss:443},og=function(e,t){var r;return 2==e.length&&Rm(Um,Im(e,0))&&(":"==(r=Im(e,1))||!t&&"|"==r)},ig=function(e){var t;return e.length>1&&og(Nm(e,0,2))&&(2==e.length||"/"===(t=Im(e,2))||"\\"===t||"?"===t||"#"===t)},ag=function(e){return"."===e||"%2e"===Om(e)},lg={},sg={},ug={},cg={},dg={},hg={},fg={},pg={},vg={},mg={},gg={},bg={},yg={},wg={},Cg={},Eg={},Sg={},_g={},Ig={},Rg={},xg={},Wg=function(e,t,r){var n,o,i,a=dm(e);if(t){if(o=this.parse(a))throw Cm(o);this.searchParams=null}else{if(void 0!==r&&(n=new Wg(r,!0)),o=this.parse(a,null,n))throw Cm(o);(i=ym(new bm)).bindURL(this),this.searchParams=i}};Wg.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,l,s=this,u=t||lg,c=0,d="",h=!1,f=!1,p=!1;for(e=dm(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=Tm(e,Ym,"")),e=Tm(e,Jm,""),n=sm(e);c<=n.length;){switch(o=n[c],u){case lg:if(!o||!Rm(Um,o)){if(t)return Lm;u=ug;continue}d+=Om(o),u=sg;break;case sg:if(o&&(Rm(jm,o)||"+"==o||"-"==o||"."==o))d+=Om(o);else{if(":"!=o){if(t)return Lm;d="",u=ug,c=0;continue}if(t&&(s.isSpecial()!=am(ng,d)||"file"==d&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=d,t)return void(s.isSpecial()&&ng[s.scheme]==s.port&&(s.port=null));d="","file"==s.scheme?u=wg:s.isSpecial()&&r&&r.scheme==s.scheme?u=cg:s.isSpecial()?u=pg:"/"==n[c+1]?(u=dg,c++):(s.cannotBeABaseURL=!0,km(s.path,""),u=Ig)}break;case ug:if(!r||r.cannotBeABaseURL&&"#"!=o)return Lm;if(r.cannotBeABaseURL&&"#"==o){s.scheme=r.scheme,s.path=um(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,u=xg;break}u="file"==r.scheme?wg:hg;continue;case cg:if("/"!=o||"/"!=n[c+1]){u=hg;continue}u=vg,c++;break;case dg:if("/"==o){u=mg;break}u=_g;continue;case hg:if(s.scheme=r.scheme,o==Jv)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=um(r.path),s.query=r.query;else if("/"==o||"\\"==o&&s.isSpecial())u=fg;else if("?"==o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=um(r.path),s.query="",u=Rg;else{if("#"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=um(r.path),s.path.length--,u=_g;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=um(r.path),s.query=r.query,s.fragment="",u=xg}break;case fg:if(!s.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,u=_g;continue}u=mg}else u=vg;break;case pg:if(u=vg,"/"!=o||"/"!=Im(d,c+1))continue;c++;break;case vg:if("/"!=o&&"\\"!=o){u=mg;continue}break;case mg:if("@"==o){h&&(d="%40"+d),h=!0,i=sm(d);for(var v=0;v<i.length;v++){var m=i[v];if(":"!=m||p){var g=rg(m,tg);p?s.password+=g:s.username+=g}else p=!0}d=""}else if(o==Jv||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(h&&""==d)return"Invalid authority";c-=sm(d).length+1,d="",u=gg}else d+=o;break;case gg:case bg:if(t&&"file"==s.scheme){u=Eg;continue}if(":"!=o||f){if(o==Jv||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(s.isSpecial()&&""==d)return Mm;if(t&&""==d&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(d))return a;if(d="",u=Sg,t)return;continue}"["==o?f=!0:"]"==o&&(f=!1),d+=o}else{if(""==d)return Mm;if(a=s.parseHost(d))return a;if(d="",u=yg,t==bg)return}break;case yg:if(!Rm($m,o)){if(o==Jv||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()||t){if(""!=d){var b=Em(d,10);if(b>65535)return zm;s.port=s.isSpecial()&&b===ng[s.scheme]?null:b,d=""}if(t)return;u=Sg;continue}return zm}d+=o;break;case wg:if(s.scheme="file","/"==o||"\\"==o)u=Cg;else{if(!r||"file"!=r.scheme){u=_g;continue}if(o==Jv)s.host=r.host,s.path=um(r.path),s.query=r.query;else if("?"==o)s.host=r.host,s.path=um(r.path),s.query="",u=Rg;else{if("#"!=o){ig(xm(um(n,c),""))||(s.host=r.host,s.path=um(r.path),s.shortenPath()),u=_g;continue}s.host=r.host,s.path=um(r.path),s.query=r.query,s.fragment="",u=xg}}break;case Cg:if("/"==o||"\\"==o){u=Eg;break}r&&"file"==r.scheme&&!ig(xm(um(n,c),""))&&(og(r.path[0],!0)?km(s.path,r.path[0]):s.host=r.host),u=_g;continue;case Eg:if(o==Jv||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&og(d))u=_g;else if(""==d){if(s.host="",t)return;u=Sg}else{if(a=s.parseHost(d))return a;if("localhost"==s.host&&(s.host=""),t)return;d="",u=Sg}continue}d+=o;break;case Sg:if(s.isSpecial()){if(u=_g,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=Jv&&(u=_g,"/"!=o))continue}else s.fragment="",u=xg;else s.query="",u=Rg;break;case _g:if(o==Jv||"/"==o||"\\"==o&&s.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(l=Om(l=d))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(s.shortenPath(),"/"==o||"\\"==o&&s.isSpecial()||km(s.path,"")):ag(d)?"/"==o||"\\"==o&&s.isSpecial()||km(s.path,""):("file"==s.scheme&&!s.path.length&&og(d)&&(s.host&&(s.host=""),d=Im(d,0)+":"),km(s.path,d)),d="","file"==s.scheme&&(o==Jv||"?"==o||"#"==o))for(;s.path.length>1&&""===s.path[0];)Am(s.path);"?"==o?(s.query="",u=Rg):"#"==o&&(s.fragment="",u=xg)}else d+=rg(o,eg);break;case Ig:"?"==o?(s.query="",u=Rg):"#"==o?(s.fragment="",u=xg):o!=Jv&&(s.path[0]+=rg(o,Qm));break;case Rg:t||"#"!=o?o!=Jv&&("'"==o&&s.isSpecial()?s.query+="%27":s.query+="#"==o?"%23":rg(o,Qm)):(s.fragment="",u=xg);break;case xg:o!=Jv&&(s.fragment+=rg(o,Zm))}c++}},parseHost:function(e){var t,r,n;if("["==Im(e,0)){if("]"!=Im(e,e.length-1))return Mm;if(!(t=function(e){var t,r,n,o,i,a,l,s=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,h=function(){return Im(e,d)};if(":"==h()){if(":"!=Im(e,1))return;d+=2,c=++u}for(;h();){if(8==u)return;if(":"!=h()){for(t=r=0;r<4&&Rm(qm,h());)t=16*t+Em(h(),16),d++,r++;if("."==h()){if(0==r)return;if(d-=r,u>6)return;for(n=0;h();){if(o=null,n>0){if(!("."==h()&&n<4))return;d++}if(!Rm($m,h()))return;for(;Rm($m,h());){if(i=Em(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;d++}s[u]=256*s[u]+o,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==h()){if(d++,!h())return}else if(h())return;s[u++]=t}else{if(null!==c)return;d++,c=++u}}if(null!==c)for(a=u-c,u=7;0!=u&&a>0;)l=s[u],s[u--]=s[c+a-1],s[c+--a]=l;else if(8!=u)return;return s}(Nm(e,1,-1))))return Mm;this.host=t}else if(this.isSpecial()){if(e=function(e){var t,r,n=[],o=kp(Pp(Tp(e),wp,"."),".");for(t=0;t<o.length;t++)r=o[t],Wp(n,Sp(yp,r)?"xn--"+Np(r):r);return xp(n,".")}(e),Rm(Gm,e))return Mm;if(null===(t=function(e){var t,r,n,o,i,a,l,s=Hm(e,".");if(s.length&&""==s[s.length-1]&&s.length--,(t=s.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=s[n]))return e;if(i=10,o.length>1&&"0"==Im(o,0)&&(i=Rm(Bm,o)?16:8,o=Nm(o,8==i?1:2)),""===o)a=0;else{if(!Rm(10==i?Vm:8==i?Dm:qm,o))return e;a=Em(o,i)}km(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=_m(256,5-t))return null}else if(a>255)return null;for(l=Pm(r),n=0;n<r.length;n++)l+=r[n]*_m(256,3-n);return l}(e)))return Mm;this.host=t}else{if(Rm(Xm,e))return Mm;for(t="",r=sm(e),n=0;n<r.length;n++)t+=rg(r[n],Qm);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return am(ng,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&og(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,l=e.query,s=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=Km(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+xm(a,"/"):"",null!==l&&(u+="?"+l),null!==s&&(u+="#"+s),u},setHref:function(e){var t=this.parse(e);if(t)throw Cm(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Pg(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Km(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(dm(e)+":",lg)},getUsername:function(){return this.username},setUsername:function(e){var t=sm(dm(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=rg(t[r],tg)}},getPassword:function(){return this.password},setPassword:function(e){var t=sm(dm(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=rg(t[r],tg)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Km(e):Km(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,gg)},getHostname:function(){var e=this.host;return null===e?"":Km(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,bg)},getPort:function(){var e=this.port;return null===e?"":dm(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=dm(e))?this.port=null:this.parse(e,yg))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+xm(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Sg))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=dm(e))?this.query=null:("?"==Im(e,0)&&(e=Nm(e,1)),this.query="",this.parse(e,Rg)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=dm(e))?("#"==Im(e,0)&&(e=Nm(e,1)),this.fragment="",this.parse(e,xg)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Pg=function(e){var t=im(this,kg),r=fm(arguments.length,1)>1?arguments[1]:void 0,n=mm(t,new Wg(e,!1,r));Qv||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},kg=Pg.prototype,Tg=function(e,t){return{get:function(){return gm(this)[e]()},set:t&&function(e){return gm(this)[t](e)},configurable:!0,enumerable:!0}};if(Qv&&(om(kg,"href",Tg("serialize","setHref")),om(kg,"origin",Tg("getOrigin")),om(kg,"protocol",Tg("getProtocol","setProtocol")),om(kg,"username",Tg("getUsername","setUsername")),om(kg,"password",Tg("getPassword","setPassword")),om(kg,"host",Tg("getHost","setHost")),om(kg,"hostname",Tg("getHostname","setHostname")),om(kg,"port",Tg("getPort","setPort")),om(kg,"pathname",Tg("getPathname","setPathname")),om(kg,"search",Tg("getSearch","setSearch")),om(kg,"searchParams",Tg("getSearchParams")),om(kg,"hash",Tg("getHash","setHash"))),nm(kg,"toJSON",(function(){return gm(this).serialize()}),{enumerable:!0}),nm(kg,"toString",(function(){return gm(this).serialize()}),{enumerable:!0}),wm){var Ag=wm.createObjectURL,Hg=wm.revokeObjectURL;Ag&&nm(Pg,"createObjectURL",tm(Ag,wm)),Hg&&nm(Pg,"revokeObjectURL",tm(Hg,wm))}hm(Pg,"URL"),Kv({global:!0,constructor:!0,forced:!Zv,sham:!Qv},{URL:Pg});var Ng=O,Og=Qr,Fg=Eu,Lg=d,Mg=dt,zg=Zt,Ug=Mg("species"),jg=RegExp.prototype,$g=Yh.charAt,Bg=O,Dg=qe,Vg=Math.floor,qg=Bg("".charAt),Gg=Bg("".replace),Xg=Bg("".slice),Yg=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Jg=/\$([$&'`]|\d{1,2})/g,Kg=m,Qg=$t,Zg=K,eb=A,tb=Eu,rb=TypeError,nb=Dl,ob=m,ib=O,ab=d,lb=$t,sb=K,ub=j,cb=nn,db=dn,hb=So,fb=D,pb=function(e,t,r){return t+(r?$g(e,t).length:1)},vb=Te,mb=function(e,t,r,n,o,i){var a=r+e.length,l=n.length,s=Jg;return void 0!==o&&(o=Dg(o),s=Yg),Gg(i,s,(function(i,s){var u;switch(qg(s,0)){case"$":return"$";case"&":return e;case"`":return Xg(t,0,r);case"'":return Xg(t,a);case"<":u=o[Xg(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>l){var d=Vg(c/10);return 0===d?i:d<=l?void 0===n[d-1]?qg(s,1):n[d-1]+qg(s,1):i}u=n[c-1]}return void 0===u?"":u}))},gb=function(e,t){var r=e.exec;if(Zg(r)){var n=Kg(r,e,t);return null!==n&&Qg(n),n}if("RegExp"===eb(e))return Kg(tb,e,t);throw rb("RegExp#exec called on incompatible receiver")},bb=dt("replace"),yb=Math.max,wb=Math.min,Cb=ib([].concat),Eb=ib([].push),Sb=ib("".indexOf),_b=ib("".slice),Ib="$0"==="a".replace(/./,"$0"),Rb=!!/./[bb]&&""===/./[bb]("a","$0");!function(e,t,r,n){var o=Mg(e),i=!Lg((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Lg((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Ug]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var l=Ng(/./[o]),s=t(o,""[e],(function(e,t,r,n,o){var a=Ng(e),s=t.exec;return s===Fg||s===jg.exec?i&&!o?{done:!0,value:l(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));Og(String.prototype,e,s[0]),Og(jg,o,s[1])}n&&zg(jg[o],"sham",!0)}("replace",(function(e,t,r){var n=Rb?"$":"$0";return[function(e,r){var n=fb(this),o=ub(e)?void 0:vb(e,bb);return o?ob(o,e,n,r):ob(t,hb(n),e,r)},function(e,o){var i=lb(this),a=hb(e);if("string"==typeof o&&-1===Sb(o,n)&&-1===Sb(o,"$<")){var l=r(t,i,a,o);if(l.done)return l.value}var s=sb(o);s||(o=hb(o));var u=i.global;if(u){var c=i.unicode;i.lastIndex=0}for(var d=[];;){var h=gb(i,a);if(null===h)break;if(Eb(d,h),!u)break;""===hb(h[0])&&(i.lastIndex=pb(a,db(i.lastIndex),c))}for(var f,p="",v=0,m=0;m<d.length;m++){for(var g=hb((h=d[m])[0]),b=yb(wb(cb(h.index),a.length),0),y=[],w=1;w<h.length;w++)Eb(y,void 0===(f=h[w])?f:String(f));var C=h.groups;if(s){var E=Cb([g],y,b,a);void 0!==C&&Eb(E,C);var S=hb(nb(o,void 0,E))}else S=mb(g,a,b,y,C,o);b>=v&&(p+=_b(a,v,b)+S,v=b+g.length)}return p+_b(a,v)}]}),!!ab((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Ib||Rb);var xb=Array.prototype.indexOf,Wb=function(e,t){for(var r=0,n=e.length;r>=0&&r<n;r+=1)if(t(e[r],r,e))return e[r]},Pb=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")},kb=zf;function Tb(){var e=[];return Object.assign(e,Tb.prototype),e.initialize.apply(e,arguments),e}ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==kb},{assign:kb}),Tb.prototype=[],Tb.prototype.initialize=function(e){e=e||{},this.sortColumn=null==e.sortColumn?[]:e.sortColumn},Tb.prototype.add=function(e,t){var r,n;if("splice"in e&&"length"in e)if("number"==typeof t)for(r=0,n=e.length;r<n;r++)this.splice(t++,0,e[r]);else for(r=0,n=e.length;r<n;r++)this.push(e[r]);else"number"==typeof t?this.splice(t,0,e):this.push(e)},Tb.prototype.reset=function(e){this.length=0,e&&this.add(e)},Tb.prototype.filteredCollection=function(e,t){if(e&&t){for(var r,n=new Tb({sortColumn:this.sortColumn}),o=0,i=this.length;o<i;o++)e(r=this[o],t)&&(r.__i=o,n.push(r));return n}return null},Tb.prototype.onComparatorRequired=null,Tb.prototype.onSort=null;var Ab=Tb.prototype.sort;function Hb(e,t){var r=e.column,n=e.comparePath||r;"string"==typeof n&&(n=n.split("."));var o,i=n.length,a=i>1,l=t?1:-1,s=t?-1:1;return function(e,t){var r=e[n[0]],u=t[n[0]];if(a)for(o=1;o<i;o++)r=r&&r[n[o]],u=u&&u[n[o]];return r===u?0:null==r?l:null==u?s:r<u?l:s}}function Nb(){var e=[];return Object.assign(e,Nb.prototype),e.initialize.apply(e,arguments),e}Tb.prototype.sort=function(e){var t;if(this.sortColumn.length){for(var r=[],n=0;n<this.sortColumn.length;n++){t=null;var o=Hb(this.sortColumn[n],this.sortColumn[n].descending);this.onComparatorRequired&&(t=this.onComparatorRequired(this.sortColumn[n].column,this.sortColumn[n].descending,o)),t||(t=o),r.push(t.bind(this))}if(1===r.length)t=r[0],Ab.call(this,t);else{var i,a=r.length;t=function(e,t){for(var n=0;n<a;n++)if(0!==(i=r[n](e,t)))return i;return i},Ab.call(this,t)}e||this.onSort&&this.onSort(t)}return t},Nb.prototype=[],Nb.prototype.initialize=function(){},Nb.prototype.get=function(e){for(var t=0,r=this.length;t<r;t++)if(this[t].name===e)return this[t];return null},Nb.prototype.indexOf=function(e){for(var t=0,r=this.length;t<r;t++)if(this[t].name===e)return t;return-1},Nb.prototype.getByOrder=function(e){for(var t=0,r=this.length;t<r;t++)if(this[t].order===e)return this[t];return null},Nb.prototype.normalizeOrder=function(){var e,t=[];for(e=0;e<this.length;e++)t.push(this[e]);for(t.sort((function(e,t){return e.order<t.order?-1:e.order>t.order?1:0})),e=0;e<t.length;e++)t[e].order=e;return this},Nb.prototype.getColumns=function(){for(var e,t=[],r=0;r<this.length;r++)e=this[r],t.push(e);return t.sort((function(e,t){return e.order<t.order?-1:e.order>t.order?1:0})),t},Nb.prototype.getVisibleColumns=function(){for(var e,t=[],r=0;r<this.length;r++)(e=this[r]).visible&&t.push(e);return t.sort((function(e,t){return e.order<t.order?-1:e.order>t.order?1:0})),t},Nb.prototype.getMaxOrder=function(){for(var e,t=0,r=0;r<this.length;r++)(e=this[r]).order>t&&(t=e.order);return t},Nb.prototype.moveColumn=function(e,t){if(e&&t){var r,n=e.order,o=t.order;if(n<o)for(r=n+1;r<=o;r++)this.getByOrder(r).order--;else for(r=n-1;r>=o;r--)this.getByOrder(r).order++;e.order=o}return this};var Ob=m,Fb=Ye,Lb=ie,Mb=Ds,zb=RegExp.prototype,Ub=ar.PROPER,jb=Qr,$b=$t,Bb=So,Db=d,Vb="toString",qb=RegExp.prototype.toString,Gb=Db((function(){return"/a/b"!=qb.call({source:"a",flags:"b"})})),Xb=Ub&&qb.name!=Vb;(Gb||Xb)&&jb(RegExp.prototype,Vb,(function(){var e=$b(this);return"/"+Bb(e.source)+"/"+Bb(function(e){var t=e.flags;return void 0!==t||"flags"in zb||Fb(e,"flags")||!Lb(zb,e)?t:Ob(Mb,e)}(e))}),{unsafe:!0});var Yb=function(){function e(){o(this,e)}return a(e,null,[{key:"saveSelection",value:function(e){var t=window.getSelection().getRangeAt(0);if(e!==t.commonAncestorContainer&&!function(e,t){for(;(e=e.parentNode)&&e!==t;);return!!e}(t.commonAncestorContainer,e))return null;var r=t.cloneRange();r.selectNodeContents(e),r.setEnd(t.startContainer,t.startOffset);var n=r.toString().length;return{start:n,end:n+t.toString().length}}},{key:"restoreSelection",value:function(e,t){var r,n=0,o=[e],i=!1,a=!1,l=document.createRange();for(l.setStart(e,0),l.collapse(!0);!a&&(r=o.pop());)if(3===r.nodeType){var s=n+r.length;!i&&t.start>=n&&t.start<=s&&(l.setStart(r,t.start-n),i=!0),i&&t.end>=n&&t.end<=s&&(l.setEnd(r,t.end-n),a=!0),n=s}else for(var u=r.childNodes.length;u--;)o.push(r.childNodes[u]);var c=window.getSelection();c.removeAllRanges(),c.addRange(l)}}]),e}(),Jb=K,Kb=ee,Qb=ah,Zb=O(1..valueOf),ey=h,ty=u,ry=O,ny=Xn,oy=Qr,iy=Ye,ay=function(e,t,r){var n,o;return Qb&&Jb(n=t.constructor)&&n!==r&&Kb(o=n.prototype)&&o!==r.prototype&&Qb(e,o),e},ly=ie,sy=Ee,uy=bt,cy=d,dy=Zr.f,hy=c.f,fy=Lt.f,py=Zb,vy=To.trim,my="Number",gy=ty.Number,by=gy.prototype,yy=ty.TypeError,wy=ry("".slice),Cy=ry("".charCodeAt),Ey=function(e){var t=uy(e,"number");return"bigint"==typeof t?t:Sy(t)},Sy=function(e){var t,r,n,o,i,a,l,s,u=uy(e,"number");if(sy(u))throw yy("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=vy(u),43===(t=Cy(u,0))||45===t){if(88===(r=Cy(u,2))||120===r)return NaN}else if(48===t){switch(Cy(u,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+u}for(a=(i=wy(u,2)).length,l=0;l<a;l++)if((s=Cy(i,l))<48||s>o)return NaN;return parseInt(i,n)}return+u};if(ny(my,!gy(" 0o1")||!gy("0b1")||gy("+0x1"))){for(var _y,Iy=function(e){var t=arguments.length<1?0:gy(Ey(e)),r=this;return ly(by,r)&&cy((function(){py(r)}))?ay(Object(t),r,Iy):t},Ry=ey?dy(gy):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),xy=0;Ry.length>xy;xy++)iy(gy,_y=Ry[xy])&&!iy(Iy,_y)&&fy(Iy,_y,hy(gy,_y));Iy.prototype=by,by.constructor=Iy,oy(ty,my,Iy,{constructor:!0})}var Wy=Object.prototype.hasOwnProperty,Py=void 0!==Element.prototype.insertAdjacentElement;function ky(e,t,r){t?!1===Py||e instanceof DocumentFragment?r.insertBefore(e,t):t.insertAdjacentElement("beforebegin",e):r.appendChild(e)}function Ty(e,t,r,n){return e.parentNode!==n?(t||(t=document.createDocumentFragment()),t.appendChild(e)):(t&&t.childNodes.length>0&&(ky(t,r,n),t=null),e.nextSibling!==r&&ky(e,r,n)),t}var Ay=function(){function e(t){var r;o(this,e);var n=this._p={list:t.list||null,hookScrollEvent:void 0===t.hookScrollEvent||!!t.hookScrollEvent,count:t.count||0,virtual:void 0===t.virtual||!!t.virtual,userItemsParent:t.itemsParent||null,setVirtualWrapperWidth:null===(r=t.autoVirtualWrapperWidth)||void 0===r||r,estimatedItemHeight:20,buffer:5,itemHeightEstimatorFn:null,itemElementCreatorFn:Oy,onItemRender:null,onItemUnrender:null,virtualWrapper:null,currentItemsParent:null,cachedItemHeights:[],cachedItemEstimatedHeights:[],cachedItemPositions:[],itemPositionsNeedsUpdate:0,boundRender:this.render.bind(this),existingEls:[]};n.currentItemsParent=n.userItemsParent||n.list,"boolean"==typeof t.hookScrollEvent?this.setHookScrollEvent(t.hookScrollEvent):this._hookEvents(),"number"==typeof t.count&&this.setCount(t.count),"boolean"==typeof t.virtual&&this.setVirtual(t.virtual),"number"==typeof t.estimatedItemHeight&&this.setEstimatedItemHeight(t.estimatedItemHeight),"number"==typeof t.buffer&&this.setBuffer(t.buffer),"function"==typeof t.itemHeightEstimatorFn&&this.setItemHeightEstimatorFn(t.itemHeightEstimatorFn),"function"==typeof t.itemElementCreatorFn&&this.setItemElementCreatorFn(t.itemElementCreatorFn),"function"==typeof t.onItemRender&&this.setOnItemRender(t.onItemRender),"function"==typeof t.onItemUnrender&&this.setOnItemUnrender(t.onItemUnrender)}return a(e,[{key:"destroy",value:function(){this._unhookEvents().invalidate()._destroyElements()}},{key:"setHookScrollEvent",value:function(e){var t=this._p;return e=void 0===e||!!e,t.hookScrollEvent===e||(t.hookScrollEvent=e,this._unhookEvents()._hookEvents()),this}},{key:"isHookScrollEventEnabled",value:function(){return this._p.hookScrollEvent}},{key:"setCount",value:function(e){return this._p.count=e,this.invalidatePositions()}},{key:"getCount",value:function(){return this._p.count}},{key:"setVirtual",value:function(e){var t=this._p;return e=void 0===e||!!e,t.virtual===e||(t.virtual=e,this._hookEvents().invalidate()._destroyElements()),this}},{key:"isVirtual",value:function(){return this._p.virtual}},{key:"setEstimatedItemHeight",value:function(e){return this._p.estimatedItemHeight=Math.abs(("number"==typeof e?e:Number(e))||20),this}},{key:"getEstimatedItemHeight",value:function(){return this._p.estimatedItemHeight}},{key:"setAutoVirtualWrapperWidth",value:function(e){var t=this._p;return t.autoVirtualWrapperWidth=void 0===e||!!e,t.virtualWrapper&&t.autoVirtualWrapperWidth!==t.virtualWrapperWidthWasSet&&(t.virtualWrapper.style.width=t.autoVirtualWrapperWidth?"100%":"",t.virtualWrapperWidthWasSet=t.autoVirtualWrapperWidth),this}},{key:"isAutoVirtualWrapperWidth",value:function(){return this._p.autoVirtualWrapperWidth}},{key:"setBuffer",value:function(e){return this._p.buffer=Math.abs("number"==typeof e?e:Number(e)||5),this}},{key:"getBuffer",value:function(){return this._p.buffer}},{key:"setItemHeightEstimatorFn",value:function(e){return this._p.itemHeightEstimatorFn=e,this}},{key:"setItemElementCreatorFn",value:function(e){return this._p.itemElementCreatorFn=e||Oy,this}},{key:"setOnItemRender",value:function(e){return this._p.onItemRender=e,this}},{key:"setOnItemUnrender",value:function(e){return this._p.onItemUnrender=e,this}},{key:"estimateFullHeight",value:function(){var e=this._p;if(0===e.count)return 0;if(e.virtual)return this._calculateItemPosition(e.count)||0;var t=e.existingEls;if(e.count===t.length){var r=t[0].getBoundingClientRect(),n=t[t.length-1].getBoundingClientRect();return n.top-r.top+n.height}return this._calculateItemPosition(e.count)||0}},{key:"invalidatePositions",value:function(){var e=this._p;return e.itemPositionsNeedsUpdate=0,e.cachedItemHeights=[],e.cachedItemEstimatedHeights=[],e.cachedItemPositions=[],e.cachedItemHeights.length=e.count,e.cachedItemEstimatedHeights.length=e.count,e.cachedItemPositions.length=e.count,this}},{key:"invalidate",value:function(){var e=this._p;this.invalidatePositions();for(var t=e.onItemUnrender,r=e.existingEls,n=0;n<r.length;n++){var o=r[n];void 0!==o[Hy]&&(t&&t(o),delete o[Hy])}return this}},{key:"render",value:function(){var e=this,t=this._p,r=t.list,n=t.virtual,o=t.virtualWrapper,i=t.currentItemsParent,a=r.scrollTop,l=a+r.clientHeight,s=t.count,u=t.buffer,c=t.onItemUnrender,d=t.existingEls,h=d.length;if(n){var f=r.clientWidth;o||((o=t.virtualWrapper=t.userItemsParent)||(o=t.virtualWrapper=document.createElement("div"),r.appendChild(o)),this._resetCurrentItemsParent(),i=t.currentItemsParent,t.autoVirtualWrapperWidth?(o.style.width="100%",t.virtualWrapperWidthWasSet=!0):t.virtualWrapperWidthWasSet=!1);for(var p=0;p<h;p++)d[p][Ny]=!0;this._calculateItemPosition(t.count-1);for(var v=this._getExistingElsRange(),m=Fy(t.cachedItemPositions,a),g=Math.max(0,m-u),b=g,y=this._calculateItemPosition(b),w=u,C=Math.max(b,Fy(t.cachedItemPositions,l-1)+1+u),E=[],S=null,_=o.childNodes[0],I=function(e){var t=void 0;return-1!==v.firstIndex&&e>=v.firstIndex&&e<=v.lastIndex&&(t=d.find((function(t){return t[Hy]===e&&!0===t[Ny]}))),void 0===t&&(t=(v.firstIndex<g||v.firstValidArrayIndex>0?d.find((function(e){return(e[Hy]<g||!1===Wy.call(e,Hy))&&!0===e[Ny]})):void 0)||My(d,(function(e){return!0===e[Ny]}))),void 0!==t&&delete t[Ny],t};b<s&&b<C;b++){var R=I(b);_&&_===R&&(_=_.nextSibling);var x=this._dequeueElementForIndex(R,b,_,!0);E.push([x,b]),S=Ty(x,S,_,i)}S&&S.childNodes.length>0&&ky(S,_,i);for(var W=0,P=E;W<P.length;W++){var k=P[W],T=k[1];this._insertItemAndFlow(k[0],T,!1),y=t.cachedItemPositions[T]+t.cachedItemHeights[T]}if(y<l)for(;(y<l||w-- >0)&&b<s;b++){var A=I(b);_&&_===A&&(_=_.nextSibling),this._dequeueElementForIndex(A,b,_,!1),y=t.cachedItemPositions[b]+t.cachedItemHeights[b]}var H=this.estimateFullHeight();t.virtualWrapper.style.height=H+"px",f!==r.clientWidth&&this.render()}else if(s!==d.length){for(var N=0;N<h;N++)d[N][Ny]=!0;for(var O=i.childNodes[0],F=null,L=function(t){var r=d.find((function(e){return e[Hy]===t&&!0===e[Ny]}));void 0!==r&&delete r[Ny],O&&O===r&&(O=O.nextSibling);var n=e._dequeueElementForIndex(r,t,O,!0);F=Ty(n,F,O,i)},M=0;M<s;M++)L(M);F&&F.childNodes.length>0&&ky(F,O,i)}h=d.length;for(var z=0;z<h;z++){var U=d[z];if(!0===U[Ny]){var j=U.parentNode;j&&j.removeChild(U),c&&void 0!==U[Hy]&&c(U),d.splice(z,1),z--,h--}}}},{key:"addItemsAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if("number"!=typeof e||e<=0)return this;var r=this._p;if((t<-1||t>=r.count)&&(t=r.count),r.count+=e,r.virtual)t>=0&&t<r.count&&this._invalidateItemIndexesAt(t,-1);else{var n=r.existingEls,o=n.length;if(o!==r.count-e)return this;var i=this._getExistingElsRange();if(-1===i.firstValidArrayIndex)return this;var a=r.currentItemsParent,l=i.firstValidArrayIndex+t-i.firstIndex;this._pushItemIndexesAt(t,e);for(var s=n[l-1]?n[l-1].nextSibling:n[0],u=null,c=t,d=t+e;c<d;c++){var h=this._dequeueElementForIndex(void 0,c,s,!0);u=Ty(h,u,s,a)}u&&u.childNodes.length>0&&ky(u,s,a)}return this}},{key:"removeItemsAt",value:function(e,t){var r=this._p;if("number"!=typeof e||"number"!=typeof t||e<=0||t<0||t>=r.count)return this;if(r.count-=Math.min(e,r.count-t),r.virtual)this._invalidateItemIndexesAt(t,-1);else{var n=r.existingEls;if(n.length!==r.count+e)return this;var o=this._getExistingElsRange();if(-1===o.firstValidArrayIndex)return this;this._pushItemIndexesAt(t+e,-e);var i=r.onItemUnrender,a=o.firstValidArrayIndex+t-o.firstIndex;if(a<n.length){for(var l=0;l<e;l++){var s=n[a+l],u=s.parentNode;u&&u.removeChild(s),i&&void 0!==s[Hy]&&i(s)}n.splice(a,e)}}return this}},{key:"refreshItemAt",value:function(e){var t=this._p;if("number"!=typeof e||e<0||e>=t.count)return this;if(t.virtual)this._invalidateItemIndexesAt(e,1);else{var r=t.existingEls;if(r.length!==t.count)return this;var n=this._getExistingElsRange();if(e>=n.firstIndex&&e<=n.lastIndex){var o=r[n.firstValidArrayIndex+e-n.firstIndex];delete o[Hy],this._dequeueElementForIndex(o,e,o.nextSibling,!1)}}return this}},{key:"isItemRendered",value:function(e){var t=this._p;if("number"!=typeof e||e<0||e>=t.count)return!1;var r=this._getExistingElsRange();return e>=r.firstIndex&&e<=r.lastIndex}},{key:"getItemElementAt",value:function(e){var t=this._p;if(!("number"!=typeof e||e<0||e>=t.count)){var r=t.existingEls,n=this._getExistingElsRange();return e>=n.firstIndex&&e<=n.lastIndex?r[n.firstValidArrayIndex+e-n.firstIndex]:void 0}}},{key:"getItemPosition",value:function(e){var t=this._p;if(!("number"!=typeof e||e<0||e>=t.count)){if(t.virtual)return this._calculateItemPosition(e);var n=this.getItemElementAt(e);if(void 0!==n){var o=t.list;return r.getElementOffset(n).top-r.getElementOffset(o).top+o.scrollTop}}}},{key:"getItemIndexFromElement",value:function(e){return e?e[Hy]:void 0}},{key:"getItemSize",value:function(e){var t=this._p;if(!("number"!=typeof e||e<0||e>=t.count)){var r=t.cachedItemHeights[e-1];return void 0===r&&("number"!=typeof(r=t.itemHeightEstimatorFn?t.itemHeightEstimatorFn(e-1):null)&&(r=t.estimatedItemHeight),t.cachedItemEstimatedHeights[e-1]=r),r}}},{key:"getVisibleItemCount",value:function(){var e,t,r=this,n=this._p,o=n.list,i=o.scrollTop,a=o.clientHeight;if(n.virtual)e=Fy(n.cachedItemPositions,i),t=Fy(n.cachedItemPositions,i+a,e);else{var l=function(e){var t=r.getItemPosition(e);return void 0===t&&(t=1/0),t};e=Ly(n.count,l,i),t=Ly(n.count,l,i+a,e)}return this.getItemPosition(t)===i+a&&t--,t-e+1}},{key:"createGhostItemElement",value:function(e,t,r){var n=this._p,o=this._dequeueElementForIndex(null,e,!1,!0);try{t&&n.currentItemsParent.appendChild(o),r(o)}finally{if(t){var i=o.parentNode;i&&i.removeChild(o)}n.onItemUnrender&&n.onItemUnrender(o)}}},{key:"_resetCurrentItemsParent",value:function(){var e,t,r=this._p;r.currentItemsParent=null!==(e=null!==(t=r.virtualWrapper)&&void 0!==t?t:r.userItemsParent)&&void 0!==e?e:r.list}},{key:"_destroyElements",value:function(){for(var e=this._p,t=e.onItemUnrender,r=e.existingEls,n=0;n<r.length;n++){var o=r[n],i=o.parentNode;i&&i.removeChild(o),t&&void 0!==o[Hy]&&t(o)}return r.length=0,e.virtualWrapper&&(e.virtualWrapper!==e.userItemsParent&&e.virtualWrapper.parentNode&&e.virtualWrapper.parentNode.removeChild(e.virtualWrapper),e.virtualWrapper=null,this._resetCurrentItemsParent()),this}},{key:"_invalidateItemIndexesAt",value:function(e,t){var r=this._p;this._setItemPositionsNeedsUpdate(e);var n=r.existingEls,o=n.length,i=this._getExistingElsRange();if(-1!==i.firstValidArrayIndex&&(-1===t&&(t=n.length),e>=i.firstIndex&&e<=i.lastIndex))for(var a=i.firstValidArrayIndex+e-i.firstIndex,l=0;a<o&&l<t;a++,l++)delete n[a][Hy]}},{key:"_pushItemIndexesAt",value:function(e,t){var r=this._p.existingEls,n=r.length,o=this._getExistingElsRange();if(-1!==o.firstValidArrayIndex&&e>=o.firstIndex&&e<=o.lastIndex)for(var i=o.firstValidArrayIndex+e-o.firstIndex;i<n;i++)r[i][Hy]+=t}},{key:"_hookEvents",value:function(){var e=this._p;return this._unhookEvents(),e.virtual&&e.hookScrollEvent&&e.list&&e.list.addEventListener("scroll",e.boundRender),this}},{key:"_unhookEvents",value:function(){var e=this._p;return e.list&&e.list.removeEventListener("scroll",e.boundRender),this}},{key:"_setItemPositionsNeedsUpdate",value:function(e){var t=this._p;e<t.itemPositionsNeedsUpdate&&(t.itemPositionsNeedsUpdate=e)}},{key:"_calculateItemPosition",value:function(e){var t=this._p,r=t.cachedItemPositions;if(e>=t.itemPositionsNeedsUpdate){var n=t.count,o=t.cachedItemHeights,i=t.cachedItemEstimatedHeights,a=t.estimatedItemHeight,l=t.itemHeightEstimatorFn;o.length!==n&&(o.length=n,i.length=n,r.length=n);var s=t.itemPositionsNeedsUpdate,u=Math.min(e,n),c=0;s>0&&(c=r[s-1]);for(var d=s;d<=u;d++)if(0!==d){var h=d-1,f=o[h];void 0===f&&("number"!=typeof(f=l?l(h):null)&&(f=a),i[h]=f),c+=f,r[d]=c}else r[d]=c;t.itemPositionsNeedsUpdate=u+1}if(e>0&&e===t.count){var p=t.cachedItemHeights[e-1];return void 0===p&&("number"!=typeof(p=t.itemHeightEstimatorFn?t.itemHeightEstimatorFn(e-1):null)&&(p=t.estimatedItemHeight),t.cachedItemEstimatedHeights[e-1]=p),r[e-1]+p}return r[e]}},{key:"_dequeueElementForIndex",value:function(e,t,r,n){var o=this._p,i=o.virtualWrapper;o.currentItemsParent;var a=o.existingEls,l=o.onItemRender,s=o.onItemUnrender,u=!e,c=u||t!==e[Hy];if(e?s&&c&&s(e):(e=o.itemElementCreatorFn(),i&&!1!==r&&(e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.right="0")),c&&(e.innerHTML="",l&&l(e,t)),!1!==r){if(r instanceof Node||(r=null),!u){var d=a.indexOf(e);-1!==d&&a.splice(d,1)}var h=r?a.indexOf(r):-1;-1===h?a.push(e):a.splice(h,0,e),n||this._insertItemAndFlow(e,t,r)}return e[Hy]=t,e}},{key:"_insertItemAndFlow",value:function(e,t,r){var n=this._p,o=n.virtualWrapper,i=n.currentItemsParent;if(!1!==r&&(r instanceof Node||(r=null),e.parentNode===i&&e.nextSibling===r||ky(e,r,i)),o){var a=e.getBoundingClientRect().height,l=n.cachedItemHeights[t];l!==a&&(n.cachedItemHeights[t]=a),(void 0!==l&&a!==l||void 0===l&&a!==n.cachedItemEstimatedHeights[t])&&this._setItemPositionsNeedsUpdate(t+1);var s=this._calculateItemPosition(t),u=Uy();!1===u?e.style.top="".concat(s,"px"):e.style[u]="translateY(".concat(s,"px)")}}},{key:"_getExistingElsRange",value:function(){for(var e=this._p.existingEls,t=-1,r=-1,n=0,o=e.length;n<o;n++)if(!1!==Wy.call(e[n],Hy)){t=n;break}for(var i=e.length-1;i>=0;i--)if(!1!==Wy.call(e[i],Hy)){r=i;break}return{firstValidArrayIndex:t,lastValidArrayIndex:r,firstIndex:-1!==t?e[t][Hy]:-1,lastIndex:-1!==r?e[r][Hy]:-1}}}]),e}(),Hy=Symbol("index"),Ny=Symbol("reuse"),Oy=function(){return document.createElement("li")},Fy=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,o=e.length;if(n<0&&(n+=o),n<=r)return n;for(;r<=n;){var i=Math.floor(r+(n-r)/2),a=e[i];if(a===t||a<=t&&i<o&&e[i+1]>t){for(;i>0&&e[i-1]===a;)i--;return i}a<t?r=i+1:n=i-1}return-1===n?0:o-1},Ly=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;if(o<0&&(o+=e),o<=n)return o;for(;n<=o;){var i=Math.floor(n+(o-n)/2),a=t(i);if(a===r||a<=r&&i<e&&t(i+1)>r){for(;i>0&&t(i-1)===a;)i--;return i}a<r?n=i+1:o=i-1}return-1===o?0:t(e-1)},My=function(e,t){for(var r=e.length-1;r>=0;r--)if(t(e[r]))return e[r]},zy=null,Uy=function(){if(null===zy){var e=document.createElement("div");zy=!1;for(var t=0,r=["transform","WebkitTransform","MozTransform","OTransform","msTransform"];t<r.length;t++){var n=r[t];if(e&&void 0!==e.style[n]){zy=n;break}}}return zy};function jy(e,t){var r=t.column,n=null==t.keyword?"":t.keyword.toString();if(!n||!r)return!0;var o=e[r];return null!=o&&(o=o.toString(),t.caseSensitive||(o=o.toLowerCase(),n=n.toLowerCase()),-1!==o.indexOf(n))}var $y=Array.prototype.indexOf,By=e,Dy=navigator.userAgent,Vy=-1!==Dy.indexOf("MSIE ")?parseFloat(Dy.substr(Dy.indexOf("MSIE ")+5)):null,qy=Vy&&Vy<10,Gy=document.createElement.bind(document),Xy=Object.prototype.hasOwnProperty,Yy=Symbol("safe"),Jy=Symbol("hover_in"),Ky=Symbol("hover_out"),Qy=Symbol("row_click");function Zy(e){var t,r;t=["relative","absolute","fixed"],r=e.css("position"),xb.call(t,r)>=0||e.css("position","relative")}var ew,tw,rw=function(e){return/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(e.target.tagName)},nw=function e(){if(!(this instanceof e))return new(Function.prototype.bind.apply(e,[e].concat(Array.prototype.slice.call(arguments,0))));this.initialize.apply(this,arguments)};nw.VERSION="@@VERSION",nw.prototype.VERSION=nw.VERSION,nw.prototype.initialize=function(e){var t=this;e=e||{};var r=t.o={},n=t.p={};n.events={},t.el=e.el&&e.el instanceof Element?e.el:document.createElement("div");var o=t.$el=By(t.el);t.el!==e.el&&o.addClass(e.className||"dgtable-wrapper"),o.data("control",t).data("dgtable",t),o.on("remove",(function(){return t.destroy()})),n.onMouseMoveResizeAreaBound=this._onMouseMoveResizeArea.bind(this),n.onEndDragColumnHeaderBound=this._onEndDragColumnHeader.bind(this),n.onTableScrolledHorizontallyBound=this._onTableScrolledHorizontally.bind(this),this.$el.on("dragend",n.onEndDragColumnHeaderBound),n.tableSkeletonNeedsRendering=!0,r.virtualTable=void 0===e.virtualTable||!!e.virtualTable,r.estimatedRowHeight=e.estimatedRowHeight||void 0,r.rowsBufferSize=e.rowsBufferSize||3,r.minColumnWidth=Math.max(e.minColumnWidth||35,0),r.resizeAreaWidth=e.resizeAreaWidth||8,r.resizableColumns=void 0===e.resizableColumns||!!e.resizableColumns,r.movableColumns=void 0===e.movableColumns||!!e.movableColumns,r.sortableColumns=void 0===e.sortableColumns?1:parseInt(e.sortableColumns,10)||1,r.adjustColumnWidthForSortArrow=void 0===e.adjustColumnWidthForSortArrow||!!e.adjustColumnWidthForSortArrow,r.convertColumnWidthsToRelative=void 0!==e.convertColumnWidthsToRelative&&!!e.convertColumnWidthsToRelative,r.autoFillTableWidth=void 0!==e.autoFillTableWidth&&!!e.autoFillTableWidth,r.cellClasses=void 0===e.cellClasses?"":e.cellClasses,r.resizerClassName=void 0===e.resizerClassName?"dgtable-resize":e.resizerClassName,r.tableClassName=void 0===e.tableClassName?"dgtable":e.tableClassName,r.allowCellPreview=void 0===e.allowCellPreview||e.allowCellPreview,r.allowHeaderCellPreview=void 0===e.allowHeaderCellPreview||e.allowHeaderCellPreview,r.cellPreviewClassName=void 0===e.cellPreviewClassName?"dgtable-cell-preview":e.cellPreviewClassName,r.cellPreviewAutoBackground=void 0===e.cellPreviewAutoBackground||e.cellPreviewAutoBackground,r.onComparatorRequired=void 0===e.onComparatorRequired?null:e.onComparatorRequired,r.onComparatorRequired||"function"!=typeof e.comparatorCallback||(r.onComparatorRequired=e.comparatorCallback),r.width=void 0===e.width?nw.Width.NONE:e.width,r.relativeWidthGrowsToFillWidth=void 0===e.relativeWidthGrowsToFillWidth||!!e.relativeWidthGrowsToFillWidth,r.relativeWidthShrinksToFillWidth=void 0!==e.relativeWidthShrinksToFillWidth&&!!e.relativeWidthShrinksToFillWidth,this.setCellFormatter(e.cellFormatter),this.setHeaderCellFormatter(e.headerCellFormatter),this.setFilter(e.filter),r.height=e.height,t.setColumns(e.columns||[],!1);var i=[];if(e.sortColumn){var a=e.sortColumn;if(a&&!Array.isArray(a)&&(a=[a]),a)for(var l=0,s=a.length;l<s;l++){var u=a[l];"string"==typeof u&&(u={column:u,descending:!1});var c=n.columns.get(u.column);c&&i.push({column:u.column,comparePath:c.comparePath||c.dataPath,descending:u.descending})}}n.rows=new Tb({sortColumn:i}),n.rows.onComparatorRequired=function(e,t,n){if(r.onComparatorRequired)return r.onComparatorRequired(e,t,n)},n.filteredRows=null,this._setupHovers()},nw.prototype._setupHovers=function(){var e=this,t=e.p,r=function(t){var r=t.fromElement||t.relatedTarget;r===this||By.contains(this,r)||this.__previewCell&&(r===this.__previewCell||By.contains(this.__previewCell,r))||e._cellMouseOverEvent.call(e,this)},n=function(t){var r=(t=t||event).toElement||t.relatedTarget;r===this||By.contains(this,r)||this.__previewCell&&(r===this.__previewCell||By.contains(this.__previewCell,r))||e._cellMouseOutEvent.call(e,this)};t._bindCellHoverIn=function(e){e[Jy]||e.addEventListener("mouseover",e[Jy]=r.bind(e))},t._unbindCellHoverIn=function(e){e[Jy]&&(e.removeEventListener("mouseover",e[Jy]),e[Jy]=null)},t._bindCellHoverOut=function(e){return e[Ky]||e.addEventListener("mouseout",e[Ky]=n.bind(e.__cell||e)),this},t._unbindCellHoverOut=function(e){return e[Ky]&&(e.removeEventListener("mouseout",e[Ky]),e[Ky]=null),this}},nw.prototype._setupVirtualTable=function(){var e,t=this,r=this,n=r.p,o=r.o,i=o.tableClassName,a=i+"-row",l=i+"-row-alt",s=i+"-cell",u=n.visibleColumns,c=u.length;n.notifyRendererOfColumnsConfig=function(){u=n.visibleColumns,c=u.length;for(var e,t=0;t<c;t++)(e=u[t])._finalWidth=e.actualWidthConsideringScrollbarWidth||e.actualWidth},n.virtualListHelper=new Ay({list:n.table,itemsParent:n.tbody,autoVirtualWrapperWidth:!1,virtual:o.virtualTable,buffer:o.rowsBufferSize,estimatedItemHeight:o.estimatedRowHeight?o.estimatedRowHeight:n.virtualRowHeight||40,itemElementCreatorFn:function(){return Gy("div")},onItemRender:function(e,i){var d=n.filteredRows||n.rows,h=!!n.filteredRows,f=o.allowCellPreview;e.className=a,i%2==1&&(e.className+=" "+l);var p=d[i],v=h?p.__i:i;e.rowIndex=i,e.physicalRowIndex=v;for(var m=0;m<c;m++){var g=u[m],b=Gy("div");b.columnName=g.name,b.setAttribute("data-column",g.name),b.className=s,b.style.width=g._finalWidth+"px",g.cellClasses&&(b.className+=" "+g.cellClasses),f&&n._bindCellHoverIn(b),b.appendChild(Gy("div")).innerHTML=t._getHtmlForCell(p,g),e.appendChild(b)}e.addEventListener("click",e[Qy]=function(t){r.trigger("rowclick",t,i,v,e,p)}),r.trigger("rowcreate",i,v,e,p)},onItemUnrender:function(e){e[Qy]&&e.removeEventListener("click",e[Qy]),r._unbindCellEventsForRow(e),r.trigger("rowdestroy",e)}}),n.virtualListHelper.setCount((null!==(e=n.filteredRows)&&void 0!==e?e:n.rows).length),n.notifyRendererOfColumnsConfig()},nw.prototype.on=function(e,t){var r=this.p.events;return"function"!=typeof t||(Xy.call(r,e)||(r[e]=[]),r[e].push({cb:t,once:!1})),this},nw.prototype.once=function(e,t){var r=this.p.events;return"function"!=typeof t||(Xy.call(r,e)||(r[e]=[]),r[e].push({cb:t,once:!0})),this},nw.prototype.off=function(e,t){var r=this.p.events;if(!Xy.call(r,e))return this;for(var n=r[e],o=0;o<n.length;o++){var i=n[o];t&&i.cb!==t||n.splice(o--,1)}return this},nw.prototype.trigger=function(e){var t=this.p;if(t){var r=t.events;if(Xy.call(r,e))for(var n=r[e],o=0;o<n.length;o++){var i=n[o];i.once&&n.splice(o--,1),i.cb.apply(this,Array.prototype.slice.call(arguments,1))}return this}},nw.prototype._parseColumnWidth=function(e,t){var r=Math.max(0,parseFloat(e)),n=ow.AUTO;return r>0&&(e===r+"%"?(n=ow.RELATIVE,r/=100):r>0&&r<1?n=ow.RELATIVE:(r<t&&(r=t),n=ow.ABSOLUTE)),{width:r,mode:n}},nw.prototype._initColumnFromData=function(e){var t=this._parseColumnWidth(e.width,e.ignoreMin?0:this.o.minColumnWidth),r={name:e.name,label:void 0===e.label?e.name:e.label,width:t.width,widthMode:t.mode,resizable:void 0===e.resizable||e.resizable,sortable:void 0===e.sortable||e.sortable,movable:void 0===e.movable||e.movable,visible:void 0===e.visible||e.visible,cellClasses:void 0===e.cellClasses?this.o.cellClasses:e.cellClasses,ignoreMin:void 0!==e.ignoreMin&&!!e.ignoreMin};return r.dataPath=void 0===e.dataPath?r.name:e.dataPath,r.comparePath=void 0===e.comparePath?r.dataPath:e.comparePath,"string"==typeof r.dataPath&&(r.dataPath=r.dataPath.split(".")),"string"==typeof r.comparePath&&(r.comparePath=r.comparePath.split(".")),r},nw.prototype.close=nw.prototype.remove=nw.prototype.destroy=function(){var e,t=this,r=t.p||{},n=t.$el;if(t.__removed)return t;if(r.$resizer&&(r.$resizer.remove(),r.$resizer=null),null===(e=r.virtualListHelper)||void 0===e||e.destroy(),r.virtualListHelper=null,this._destroyHeaderCells(),r.virtualListHelper.destroy(),r.$table&&r.$table.empty(),r.$tbody&&r.$tbody.empty(),r.workerListeners){for(var o=0;o<r.workerListeners.length;o++){var i=r.workerListeners[o];i.worker.removeEventListener("message",i.listener,!1)}r.workerListeners.length=0}for(var a in r.rows.length=r.columns.length=0,r._deferredRender&&clearTimeout(r._deferredRender),t)Xy.call(t,a)&&(t[a]=null);return t.__removed=!0,n&&n.remove(),this},nw.prototype._unbindCellEventsForTable=function(){var e=this.p;if(e.headerRow)for(var t=0,r=e.headerRow.childNodes,n=r.length;t<n;t++)for(var o=0,i=r[t].childNodes,a=i.length;o<a;o++)e._unbindCellHoverIn(i[o]);return this},nw.prototype._unbindCellEventsForRow=function(e){for(var t=this.p,r=0,n=e.childNodes,o=n.length;r<o;r++)t._unbindCellHoverIn(n[r]);return this},nw.prototype.render=function(){var e=this,r=this.o,n=this.p;if(!this.el.offsetParent)return n._deferredRender||(n._deferredRender=setTimeout((function(){n._deferredRender=null,!e.__removed&&e.el.offsetParent&&e.render()}))),this;if(!0===n.tableSkeletonNeedsRendering){var o;n.tableSkeletonNeedsRendering=!1,r.width===nw.Width.AUTO&&this._clearSortArrows();var i=n.table&&n.table.parentNode?n.table.scrollTop:NaN,a=n.table&&n.table.parentNode?t.getScrollHorz(n.table):NaN;this._renderSkeletonBase()._renderSkeletonBody().tableWidthChanged(!0,!1)._renderSkeletonHeaderCells(),n.virtualListHelper.setCount((null!==(o=n.filteredRows)&&void 0!==o?o:n.rows).length),this._updateLastCellWidthFromScrollbar(!0),this._updateTableWidth(!0);for(var l=0;l<n.rows.sortColumn.length;l++)this._showSortArrow(n.rows.sortColumn[l].column,n.rows.sortColumn[l].descending);r.adjustColumnWidthForSortArrow&&n.rows.sortColumn.length?this.tableWidthChanged(!0):r.virtualTable||this.tableWidthChanged(),isNaN(i)||(n.table.scrollTop=i),isNaN(a)||(t.setScrollHorz(n.table,a),t.setScrollHorz(n.header,a)),this.trigger("renderskeleton")}return n.virtualListHelper.render(),this.trigger("render"),this},nw.prototype.clearAndRender=function(e){var t,r=this.p;return r.tableSkeletonNeedsRendering=!0,null===(t=r.notifyRendererOfColumnsConfig)||void 0===t||t.call(r),(void 0===e||e)&&this.render(),this},nw.prototype._calculateTbodyWidth=function(){var e,t,n,o=this.p,i=this.o.tableClassName,a=i+"-row",l=i+"-cell",s=o.visibleColumns,u=s.length,c=By("<div>").addClass(a).css("float","left"),d=0;for(t=0;t<u;t++)n=s[t],(e=Gy("div")).className=l,e.style.width=n.actualWidth+"px",n.cellClasses&&(e.className+=" "+n.cellClasses),e.appendChild(Gy("div")),c.append(e),d+=n.actualWidth;var h=By("<div>").addClass(this.el.className).css({"z-index":-1,position:"absolute",left:"0",top:"-9999px",float:"left",width:"1px",overflow:"hidden"}).append(By("<div>").addClass(i).append(By("<div>").addClass(i+"-body").css("width",d+1e4).append(c)));h.appendTo(document.body);var f=By('<div style="border:1.5px solid #000;width:0;height:0;position:absolute;left:0;top:-9999px">').appendTo(document.body),p=parseFloat(f.css("border-width")),v=Math.round(p)!==p;f.remove();var m=r.getElementWidth(c[0],!0,!0,!0);return m-=o.scrollbarWidth||0,v&&m++,h.remove(),m},nw.prototype.setColumns=function(e,t){var r=this.p;e=e||[];for(var n=new Nb,o=0,i=0;o<e.length;o++){var a=e[o],l=this._initColumnFromData(a);void 0!==a.order?(a.order>i&&(i=a.order+1),l.order=a.order):l.order=i++,n.push(l)}return n.normalizeOrder(),r.columns=n,r.visibleColumns=n.getVisibleColumns(),this._ensureVisibleColumns().clearAndRender(t),this},nw.prototype.addColumn=function(e,t,r){var n=this.p,o=n.columns;if(e&&!o.get(e.name)){var i=null;void 0!==t&&(i=o.get(t)||o.getByOrder(t));var a=this._initColumnFromData(e);a.order=i?i.order:o.getMaxOrder()+1;for(var l=o.getMaxOrder(),s=a.order;l>=s;l--){var u=o.getByOrder(l);u&&u.order++}o.push(a),o.normalizeOrder(),n.visibleColumns=o.getVisibleColumns(),this._ensureVisibleColumns().clearAndRender(r),this.trigger("addcolumn",a.name)}return this},nw.prototype.removeColumn=function(e,t){var r=this.p,n=r.columns,o=n.indexOf(e);return o>-1&&(n.splice(o,1),n.normalizeOrder(),r.visibleColumns=n.getVisibleColumns(),this._ensureVisibleColumns().clearAndRender(t),this.trigger("removecolumn",e)),this},nw.prototype.setCellFormatter=function(e){return e||((e=function(e){return"string"==typeof e?Pb(e):e})[Yy]=!0),this.o.cellFormatter=e,this},nw.prototype.setHeaderCellFormatter=function(e){return this.o.headerCellFormatter=e||function(e){return"string"==typeof e?Pb(e):e},this},nw.prototype.setFilter=function(e){return this.o.filter=e,this},nw.prototype.filter=function(e){var t=this.p,r=this.o.filter||jy;"string"==typeof arguments[0]&&"string"==typeof arguments[1]&&(e={column:arguments[0],keyword:arguments[1],caseSensitive:arguments[2]});var o=!!t.filteredRows;return t.filteredRows&&(t.filteredRows=null),t.filterArgs=null==e?null:"object"!==n(e)||Array.isArray(e)?e:By.extend({},e),null!==t.filterArgs?(t.filteredRows=t.rows.filteredCollection(r,t.filterArgs),(o||t.filteredRows)&&(this.clearAndRender(),this.trigger("filter",e))):(t.filterArgs=null,t.filteredRows=null,this.clearAndRender(),this.trigger("filterclear",{})),this},nw.prototype.clearFilter=function(){var e=this.p;return e.filteredRows&&(e.filterArgs=null,e.filteredRows=null,this.clearAndRender(),this.trigger("filterclear",{})),this},nw.prototype._refilter=function(){var e=this.p;if(e.filteredRows&&e.filterArgs){var t=this.o.filter||jy;e.filteredRows=e.rows.filteredCollection(t,e.filterArgs)}return this},nw.prototype.setColumnLabel=function(e,t){var r=this.p.columns.get(e);if(r&&(r.label=void 0===t?r.name:t,r.element))for(var n=0;n<r.element[0].firstChild.childNodes.length;n++){var o=r.element[0].firstChild.childNodes[n];if(3===o.nodeType){o.textContent=r.label;break}}return this},nw.prototype.moveColumn=function(e,t){var r,n,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.o,a=this.p,l=a.columns,s=o?a.visibleColumns:l.getColumns();if("string"==typeof e?r=l.get(e):"number"==typeof e&&(r=s[e]),"string"==typeof t?n=l.get(t):"number"==typeof t&&(n=s[t]),r&&n&&e!==t){var u=r.order,c=n.order,d=l.moveColumn(r,n).getVisibleColumns();if(a.visibleColumns.length!==d.length||a.visibleColumns.some((function(e,t){return e!==d[t]})))if(a.visibleColumns=d,this._ensureVisibleColumns(),i.virtualTable)this.clearAndRender()._updateLastCellWidthFromScrollbar(!0);else{var h=a.$headerRow.find(">div."+i.tableClassName+"-header-cell"),f=u<c?c+1:c,p=u;h[0].parentNode.insertBefore(h[p],h[f]);var v=a.visibleColumns[u];v=(v.actualWidthConsideringScrollbarWidth||v.actualWidth)+"px";var m=a.visibleColumns[c];m=(m.actualWidthConsideringScrollbarWidth||m.actualWidth)+"px";for(var g=a.tbody.childNodes,b=0,y=g.length;b<y;b++){var w=g[b];1===w.nodeType&&(w.insertBefore(w.childNodes[p],w.childNodes[f]),w.childNodes[c].firstChild.style.width=m,w.childNodes[u].firstChild.style.width=v)}}this.trigger("movecolumn",r.name,u,c)}return this},nw.prototype.sort=function(e,t,r){var n,o=this.o,i=this.p,a=i.columns.get(e),l=i.rows.sortColumn;if(a){if(l.length&&l[l.length-1].column===e&&(t=void 0===t?!l[l.length-1].descending:t),r){for(var s=0;s<l.length;s++)if(l[s].column===a.name){s<l.length-1?l.length=0:l.splice(l.length-1,1);break}(o.sortableColumns>0&&l.length>=o.sortableColumns||l.length>=i.visibleColumns.length)&&(l.length=0)}else l.length=0;t=void 0!==t&&t,l.push({column:a.name,comparePath:a.comparePath||a.dataPath,descending:!!t})}else l.length=0;this._clearSortArrows();for(var u=0;u<l.length;u++)this._showSortArrow(l[u].column,l[u].descending);o.adjustColumnWidthForSortArrow&&!i.tableSkeletonNeedsRendering&&this.tableWidthChanged(!0),i.rows.sortColumn=l,l.length&&(n=i.rows.sort(!!i.filteredRows),i.filteredRows&&i.filteredRows.sort(!!i.filteredRows)),i.virtualListHelper.invalidate().render();for(var c=[],d=0;d<l.length;d++)c.push({column:l[d].column,descending:l[d].descending});return this.trigger("sort",c,!0,n),this},nw.prototype.resort=function(){var e=this.p,t=e.columns,r=e.rows.sortColumn;if(r.length){for(var n=0;n<r.length;n++)t.get(r[n].column)||r.splice(n--,1);var o;e.rows.sortColumn=r,r.length&&(o=e.rows.sort(!!e.filteredRows),e.filteredRows&&e.filteredRows.sort(!!e.filteredRows));for(var i=[],a=0;a<r.length;a++)i.push({column:r[a].column,descending:r[a].descending});this.trigger("sort",i,!1,o)}return this},nw.prototype._ensureVisibleColumns=function(){var e=this.p;return 0===e.visibleColumns.length&&e.columns.length&&(e.columns[0].visible=!0,e.visibleColumns.push(e.columns[0]),this.trigger("showcolumn",e.columns[0].name)),this},nw.prototype.setColumnVisible=function(e,t){var r=this.p,n=r.columns.get(e);return t=!!t,n&&!!n.visible!==t&&(n.visible=t,r.visibleColumns=r.columns.getVisibleColumns(),this.trigger(t?"showcolumn":"hidecolumn",e),this._ensureVisibleColumns(),this.clearAndRender()),this},nw.prototype.isColumnVisible=function(e){var t=this.p.columns.get(e);return!!t&&t.visible},nw.prototype.setMinColumnWidth=function(e){var t=this.o;return e=Math.max(e,0),t.minColumnWidth!==e&&(t.minColumnWidth=e,this.tableWidthChanged(!0)),this},nw.prototype.getMinColumnWidth=function(){return this.o.minColumnWidth},nw.prototype.setSortableColumns=function(e){var t=this.p,r=this.o;if(r.sortableColumns!==e&&(r.sortableColumns=e,t.$table))for(var n=t.$headerRow.find(">div."+r.tableClassName+"-header-cell"),o=0;o<n.length;o++)By(n[0])[r.sortableColumns>0&&t.visibleColumns[o].sortable?"addClass":"removeClass"]("sortable");return this},nw.prototype.getSortableColumns=function(){return this.o.sortableColumns},nw.prototype.setMovableColumns=function(e){var t=this.o;return e=void 0===e||!!e,t.movableColumns!==e&&(t.movableColumns=e),this},nw.prototype.getMovableColumns=function(){return this.o.movableColumns},nw.prototype.setResizableColumns=function(e){var t=this.o;return e=void 0===e||!!e,t.resizableColumns!==e&&(t.resizableColumns=e),this},nw.prototype.getResizableColumns=function(){return this.o.resizableColumns},nw.prototype.setComparatorCallback=function(e){var t=this.o;return t.onComparatorRequired!==e&&(t.onComparatorRequired=e),this},nw.prototype.setColumnWidth=function(e,t){var r=this.p.columns.get(e),n=this._parseColumnWidth(t,r.ignoreMin?0:this.o.minColumnWidth);if(r){var o=this._serializeColumnWidth(r);r.width=n.width,r.widthMode=n.mode;var i=this._serializeColumnWidth(r);o!==i&&this.tableWidthChanged(!0),this.trigger("columnwidth",r.name,o,i)}return this},nw.prototype.getColumnWidth=function(e){var t=this.p.columns.get(e);return t?this._serializeColumnWidth(t):null},nw.prototype.getColumnConfig=function(e){var t=this.p.columns.get(e);return t?{order:t.order,width:this._serializeColumnWidth(t),visible:t.visible,label:t.label}:null},nw.prototype.getColumnsConfig=function(){for(var e=this.p,t={},r=0;r<e.columns.length;r++)t[e.columns[r].name]=this.getColumnConfig(e.columns[r].name);return t},nw.prototype.getSortedColumns=function(){for(var e=this.p,t=[],r=0;r<e.rows.sortColumn.length;r++){var n=e.rows.sortColumn[r];t.push({column:n.column,descending:n.descending})}return t},nw.prototype.getHtmlForRowCell=function(e,t){var r=this.p;if(e<0||e>r.rows.length-1)return null;var n=r.columns.get(t);if(!n)return null;var o=r.rows[e];return this._getHtmlForCell(o,n)},nw.prototype.getHtmlForRowDataCell=function(e,t){var r=this.p.columns.get(t);return r?this._getHtmlForCell(e,r):null},nw.prototype._getHtmlForCell=function(e,t){for(var r=t.dataPath,n=e[r[0]],o=1;o<r.length&&null!=n;o++)n=n&&n[r[o]];var i,a=this.o.cellFormatter;if(a[Yy])i=a(n,t.name,e);else try{i=a(n,t.name,e)}catch(e){i="[ERROR]",console.error("Failed to generate content for cell "+t.name,e)}return null==i&&(i=""),i},nw.prototype.getRowYPos=function(e){return this.p.virtualListHelper.getItemPosition(e)||null},nw.prototype.getDataForRow=function(e){var t=this.p;return e<0||e>t.rows.length-1?null:t.rows[e]},nw.prototype.getRowCount=function(){var e=this.p;return e.rows?e.rows.length:0},nw.prototype.getIndexForRow=function(e){return this.p.rows.indexOf(e)},nw.prototype.getFilteredRowCount=function(){var e=this.p;return(e.filteredRows||e.rows).length},nw.prototype.getIndexForFilteredRow=function(e){var t=this.p;return(t.filteredRows||t.rows).indexOf(e)},nw.prototype.getDataForFilteredRow=function(e){var t=this.p;return e<0||e>(t.filteredRows||t.rows).length-1?null:(t.filteredRows||t.rows)[e]},nw.prototype.getHeaderRowElement=function(){return this.p.headerRow},nw.prototype._horizontalPadding=function(e){return(parseFloat(By.css(e,"padding-left"))||0)+(parseFloat(By.css(e,"padding-right"))||0)},nw.prototype._horizontalBorderWidth=function(e){return(parseFloat(By.css(e,"border-left"))||0)+(parseFloat(By.css(e,"border-right"))||0)},nw.prototype._calculateWidthAvailableForColumns=function(){var e,t,n,o=this.o,i=this.p;i.table&&(t=i.table?i.table.scrollTop:0,n=i.table?i.table.scrollLeft:0,o.virtualTable&&(e=i.table.style.display,i.table.style.display="none"));var a=r.getElementWidth(this.$el[0]);i.table&&(o.virtualTable&&(i.table.style.display=e),i.table.scrollTop=t,i.table.scrollLeft=n,i.header.scrollLeft=n);for(var l=o.tableClassName,s=By("<div>").addClass(this.el.className).css({"z-index":-1,position:"absolute",left:"0",top:"-9999px"}),u=By("<div>").addClass(l+"-header").appendTo(s),c=By("<div>").addClass(l+"-header-row").appendTo(u),d=0;d<i.visibleColumns.length;d++)c.append(By("<div><div></div></div>").addClass(l+"-header-cell").addClass(i.visibleColumns[d].cellClasses||""));s.appendTo(document.body),a-=this._horizontalBorderWidth(c[0]);for(var h=c.find(">div."+l+"-header-cell"),f=0;f<h.length;f++){var p=By(h[f]);"border-box"===p.css("boxSizing")||(a-=(parseFloat(p.css("border-right-width"))||0)+(parseFloat(p.css("border-left-width"))||0)+this._horizontalPadding(p[0]))}return s&&s.remove(),Math.max(0,a)},nw.prototype.tableWidthChanged=(ew=function(e){var t,n=this.o.tableClassName,o=By("<div>").addClass(this.$el).append(By("<div>").addClass(n+"-header").append(By("<div>").addClass(n+"-header-row").append(t=By("<div>").addClass(n+"-header-cell").append(By("<div>").text(e))))).css({position:"absolute",top:"-9999px",visibility:"hidden"});o.appendTo(document.body);var i=r.getElementWidth(t[0]);return o.remove(),i},tw=null,function(e,t){var r=this.o,n=this.p,o=this._calculateWidthAvailableForColumns(),i=o,a=0;if(!n.$table)return this;t=void 0===t||t;var l=0;if(n.tbody||(t=!1),t&&(l=parseFloat(n.tbody.style.minWidth)||0),i!==tw||e){var s;tw=o;for(var u=0,c=[],d=0,h=0;h<n.columns.length;h++)n.columns[h].actualWidthConsideringScrollbarWidth=null;for(var f=0;f<n.visibleColumns.length;f++){var p=n.visibleColumns[f];if(p.widthMode===ow.ABSOLUTE){var v=p.width;v+=p.arrowProposedWidth||0,!p.ignoreMin&&v<r.minColumnWidth&&(v=r.minColumnWidth),i-=v,u+=v,v!==p.actualWidth&&(p.actualWidth=v,c.push(f))}else if(p.widthMode===ow.AUTO){var m=ew.call(this,p.label)+20;m+=p.arrowProposedWidth||0,!p.ignoreMin&&m<r.minColumnWidth&&(m=r.minColumnWidth),i-=m,u+=m,m!==p.actualWidth&&(p.actualWidth=m,r.convertColumnWidthsToRelative||c.push(f))}else p.widthMode===ow.RELATIVE&&(d+=p.width,a++)}if(r.convertColumnWidthsToRelative)for(var g=0;g<n.visibleColumns.length;g++){var b=n.visibleColumns[g];b.widthMode===ow.AUTO&&(b.widthMode=ow.RELATIVE,i+=b.actualWidth,b.width=b.actualWidth/u,d+=b.width,a++)}if(a&&(d<1&&r.relativeWidthGrowsToFillWidth||d>1&&r.relativeWidthShrinksToFillWidth))for(var y=0;y<n.visibleColumns.length;y++){var w=n.visibleColumns[y];w.widthMode===ow.RELATIVE&&(w.width/=d)}var C=Math.max(0,i);0===C&&(C=n.table.clientWidth);var E=r.minColumnWidth/C;if(isNaN(E)&&(E=0),E>0){for(var S,_=0,I=0;I<n.visibleColumns.length;I++){var R=n.visibleColumns[I];R.widthMode===ow.RELATIVE&&!R.ignoreMin&&R.width<E&&(_+=E-R.width,R.width=E)}for(var x=0;x<n.visibleColumns.length;x++){var W=n.visibleColumns[x];W.widthMode===ow.RELATIVE&&!W.ignoreMin&&W.width>E&&_>0&&(S=Math.min(_,W.width-E),W.width-=S,_-=S)}}if(r.autoFillTableWidth&&i>0){for(var P=0,k=i,T=0;T<n.visibleColumns.length;T++){var A=n.visibleColumns[T];A.resizable||A.widthMode!==ow.ABSOLUTE||(P+=A.width),A.widthMode===ow.RELATIVE&&(k-=Math.round(C*A.width))}for(var H=(o-P)/(o-k-P)||NaN,N=0;N<n.visibleColumns.length&&k>0;N++){var O=n.visibleColumns[N];if(O.resizable||O.widthMode!==ow.ABSOLUTE)if(O.widthMode===ow.RELATIVE)O.width*=H;else{var F=O.actualWidth*H;O.actualWidth!==F&&(O.actualWidth=F,-1===c.indexOf(N)&&c.push(N))}}}for(var L=0;L<n.visibleColumns.length;L++){var M=n.visibleColumns[L];if(M.widthMode===ow.RELATIVE){var z=Math.round(C*M.width);i-=z,0==--a&&1===i&&(z++,i--),-1===i&&(z--,i++),z!==M.actualWidth&&(M.actualWidth=z,c.push(L))}}if(n.visibleColumns.length&&(n.visibleColumns[n.visibleColumns.length-1].actualWidthConsideringScrollbarWidth=n.visibleColumns[n.visibleColumns.length-1].actualWidth-(n.scrollbarWidth||0)),null===(s=n.notifyRendererOfColumnsConfig)||void 0===s||s.call(n),t){var U=this._calculateTbodyWidth();l<U&&this._updateTableWidth(!1);for(var j=0;j<c.length;j++)this._resizeColumnElements(c[j]);l>U&&this._updateTableWidth(!1)}}return this}),nw.prototype.tableHeightChanged=function(){var e=this,t=e.o,n=e.p;if(!n.$table)return e;var o=r.getElementHeight(e.$el[0],!0)-(parseFloat(n.$table.css("border-top-width"))||0)-(parseFloat(n.$table.css("border-bottom-width"))||0);return o!==t.height&&(t.height=o,n.tbody&&(n.tbody.style.height=Math.max(t.height-r.getElementHeight(n.$headerRow[0],!0,!0,!0),1)+"px"),t.virtualTable&&e.clearAndRender()),e},nw.prototype.addRows=function(e,t,r,n){var o=this.p;return"boolean"==typeof t&&(n=r,r=t,t=-1),"number"!=typeof t&&(t=-1),(t<0||t>o.rows.length)&&(t=o.rows.length),n=void 0===n||!!n,e&&(o.rows.add(e,t),o.filteredRows||r&&o.rows.sortColumn.length?(r&&o.rows.sortColumn.length?this.resort():this._refilter(),o.tableSkeletonNeedsRendering=!0,n&&this.render()):n&&(o.virtualListHelper.addItemsAt(e.length,t),this.o.virtualTable?this._updateVirtualHeight()._updateLastCellWidthFromScrollbar().render()._updateTableWidth(!1):o.tbody&&this.render()._updateLastCellWidthFromScrollbar()._updateTableWidth(!0)),this.trigger("addrows",e.length,!1)),this},nw.prototype.removeRows=function(e,t,r){var n=this.p;return"number"!=typeof t||t<=0||e<0||e>n.rows.length-1||(n.rows.splice(e,t),r=void 0===r||!!r,n.filteredRows?(this._refilter(),n.tableSkeletonNeedsRendering=!0,r&&this.render()):r&&(n.virtualListHelper.removeItemsAt(t,e),this.o.virtualTable?this._updateVirtualHeight()._updateLastCellWidthFromScrollbar().render()._updateTableWidth(!1):this.render()._updateLastCellWidthFromScrollbar()._updateTableWidth(!0))),this},nw.prototype.removeRow=function(e,t){return this.removeRows(e,1,t)},nw.prototype.refreshRow=function(e){var t=this.p;if(e<0||e>t.rows.length-1)return this;var r=-1;return t.filteredRows&&-1===(r=t.filteredRows.indexOf(t.rows[e]))||(-1===r&&(r=e),t.virtualListHelper.refreshItemAt(r)),this},nw.prototype.getRowElement=function(e){var t=this.p;if(e<0||e>t.rows.length-1)return null;var r=-1;return t.filteredRows&&-1===(r=t.filteredRows.indexOf(t.rows[e]))?this:(-1===r&&(r=e),t.virtualListHelper.getItemElementAt(r)||null)},nw.prototype.refreshAllVirtualRows=function(){return this.p.virtualListHelper.invalidate().render(),this},nw.prototype.setRows=function(e,t){var r=this.p;return r.rows.reset(e),t&&r.rows.sortColumn.length?this.resort():this._refilter(),this.clearAndRender().trigger("addrows",e.length,!0),this},nw.prototype.getUrlForElementContent=function(e){var t,r=document.getElementById(e);if(r){var n=r.textContent;if("function"==typeof Blob)t=new Blob([n]);else{var o=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if(!o)return null;var i=new o;i.append(n),t=i.getBlob()}return(window.URL||window.webkitURL).createObjectURL(t)}return null},nw.prototype.isWorkerSupported=function(){return window.Worker instanceof Function},nw.prototype.createWebWorker=function(e,t,r){if(this.isWorkerSupported()){var n=this,o=n.p,i=new Worker(e),a=function(e){e.data.append?n.addRows(e.data.rows,r):n.setRows(e.data.rows,r)};return i.addEventListener("message",a,!1),o.workerListeners||(o.workerListeners=[]),o.workerListeners.push({worker:i,listener:a}),(t||void 0===t)&&i.postMessage(null),i}return null},nw.prototype.unbindWebWorker=function(e){var t=this.p;if(t.workerListeners)for(var r=0;r<t.workerListeners.length;r++)t.workerListeners[r].worker===e&&(e.removeEventListener("message",t.workerListeners[r].listener,!1),t.workerListeners.splice(r,1),r--);return this},nw.prototype.abortCellPreview=function(){return this.hideCellPreview(),this},nw.prototype.cancelColumnResize=function(){var e=this.p;return e.$resizer&&(e.$resizer.remove(),e.$resizer=null,By(document).off("mousemove.dgtable",e.onMouseMoveResizeAreaBound).off("mouseup.dgtable",e.onEndDragColumnHeaderBound)),this},nw.prototype._onTableScrolledHorizontally=function(){var e=this.p;e.header.scrollLeft=e.table.scrollLeft},nw.prototype._getColumnByResizePosition=function(e){var t=this.o,n=this._isTableRtl(),o=By(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName),i=o[0];i.__cell&&(i=i.__cell,o=By(i));for(var a=o[0].previousSibling;a&&1!==a.nodeType;)a=a.previousSibling;var l=!a,s=((null!=e.pageX?e.pageX:e.originalEvent.pageX)||e.originalEvent.clientX)-o.offset().left;if(n){if(!l&&r.getElementWidth(o[0],!0,!0,!0)-s<=t.resizeAreaWidth/2)return a.columnName;if(s<=t.resizeAreaWidth/2)return i.columnName}else{if(!l&&s<=t.resizeAreaWidth/2)return a.columnName;if(r.getElementWidth(o[0],!0,!0,!0)-s<=t.resizeAreaWidth/2)return i.columnName}return null},nw.prototype._onTouchStartColumnHeader=function(e){var t=this,r=this.p;if(!r.currentTouchId){var n=e.originalEvent.changedTouches[0];r.currentTouchId=n.identifier;var o,i=By(e.currentTarget),a={x:n.pageX,y:n.pageY},l=a,s=function(){r.currentTouchId=null,i.off("touchend").off("touchcancel"),clearTimeout(o)},u=function(t){for(var r=By.Event(t),n=Array.prototype.slice.call(arguments,1),o=0,i=["target","clientX","clientY","offsetX","offsetY","screenX","screenY","pageX","pageY","which"];o<i.length;o++){var a=i[o];r[a]=e[a];for(var l=0;l<n.length;l++)null!=n[l][a]&&(r[a]=n[l][a])}return r};i.trigger(u("mousedown",e.originalEvent.changedTouches[0],{which:1,target:e.target})),o=setTimeout((function(){s(),i.one("touchend",(function(e){rw(e)||e.preventDefault(),i.off("touchend").off("touchcancel")})).one("touchcancel",(function(e){i.off("touchend").off("touchcancel")})),Math.sqrt(Math.pow(Math.abs(l.x-a.x),2)+Math.pow(Math.abs(l.y-a.y),2))<9&&(t.cancelColumnResize(),i.trigger(u("mouseup",e.originalEvent.changedTouches[0],{which:3,target:e.target})))}),500),i.on("touchend",(function(e){var t=Wb(e.originalEvent.changedTouches,(function(e){return e.identifier===r.currentTouchId}));t&&(s(),rw(e)||e.preventDefault(),l={x:t.pageX,y:t.pageY},(Math.sqrt(Math.pow(Math.abs(l.x-a.x),2)+Math.pow(Math.abs(l.y-a.y),2))<9||r.$resizer)&&(i.trigger(u("mouseup",t,{which:1,target:e.target})),i.trigger(u("click",t,{which:1,target:e.target}))))})).on("touchcancel",(function(){s()})).on("touchmove",(function(e){var t=Wb(e.originalEvent.changedTouches,(function(e){return e.identifier===r.currentTouchId}));t&&(l={x:t.pageX,y:t.pageY},r.$resizer&&(e.preventDefault(),i.trigger(u("mousemove",t,{target:e.target}))))}))}},nw.prototype._onMouseDownColumnHeader=function(e){if(1!==e.which)return this;var t=this.o,n=this.p,o=this._getColumnByResizePosition(e);if(o){var i=n.columns.get(o);if(!t.resizableColumns||!i||!i.resizable)return!1;var a=this._isTableRtl();n.$resizer&&By(n.$resizer).remove(),n.$resizer=By("<div></div>").addClass(t.resizerClassName).css({position:"absolute",display:"block","z-index":-1,visibility:"hidden",width:"2px",background:"#000",opacity:.7}).appendTo(this.$el);var l=i.element,s=n.$resizer.parent(),u=l.offset(),c=s.offset();8===Vy&&(u=l.offset()),c.left+=parseFloat(s.css("border-left-width"))||0,c.top+=parseFloat(s.css("border-top-width"))||0,u.left-=c.left,u.top-=c.top,u.top-=parseFloat(l.css("border-top-width"))||0;var d=r.getElementWidth(n.$resizer[0],!0,!0,!0);a?(u.left-=Math.ceil((parseFloat(l.css("border-left-width"))||0)/2),u.left-=Math.ceil(d/2)):(u.left+=r.getElementWidth(l[0],!0,!0,!0),u.left+=Math.ceil((parseFloat(l.css("border-right-width"))||0)/2),u.left-=Math.ceil(d/2)),n.$resizer.css({"z-index":"10",visibility:"visible",left:u.left,top:u.top,height:r.getElementHeight(this.$el[0])})[0].columnName=l[0].columnName;try{n.$resizer[0].style.zIndex=""}catch(e){}By(document).on("mousemove.dgtable",n.onMouseMoveResizeAreaBound),By(document).on("mouseup.dgtable",n.onEndDragColumnHeaderBound),e.preventDefault()}},nw.prototype._onMouseMoveColumnHeader=function(e){var t=this.o,r=this.p;if(t.resizableColumns){var n=this._getColumnByResizePosition(e),o=By(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName)[0];n&&r.columns.get(n).resizable?o.style.cursor="e-resize":o.style.cursor=""}},nw.prototype._onMouseUpColumnHeader=function(e){if(3===e.which){var t=this.o,n=By(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName),o=n.offset();o.width=r.getElementWidth(n[0],!0,!0,!0),o.height=r.getElementHeight(n[0],!0,!0,!0),this.trigger("headercontextmenu",n[0].columnName,e.pageX,e.pageY,o)}return this},nw.prototype._onMouseLeaveColumnHeader=function(e){var t=this.o;By(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName)[0].style.cursor=""},nw.prototype._onClickColumnHeader=function(e){if(!rw(e)&&!this._getColumnByResizePosition(e)){var t=this.o,r=this.p,n=By(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName)[0];if(t.sortableColumns){var o=r.columns.get(n.columnName);o&&o.sortable&&this.sort(n.columnName,void 0,!0).render()}}},nw.prototype._onStartDragColumnHeader=function(e){var t=this.o,r=this.p;if(t.movableColumns){var n=By(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName),o=r.columns.get(n[0].columnName);o&&o.movable?(n[0].style.opacity=.35,r.dragId=161061273*Math.random(),e.originalEvent.dataTransfer.setData("text",JSON.stringify({dragId:r.dragId,column:o.name}))):e.preventDefault()}else e.preventDefault()},nw.prototype._onMouseMoveResizeArea=function(e){var t=this.p,n=t.columns.get(t.$resizer[0].columnName),o=this._isTableRtl(),i=n.element,a=t.$resizer.parent(),l=i.offset(),s=a.offset();s.left+=parseFloat(a.css("border-left-width"))||0,l.left-=s.left;var u=r.getElementWidth(t.$resizer[0],!0,!0,!0),c="border-box"===i.css("box-sizing"),d=e.pageX-s.left,h=l.left;h-=Math.ceil(u/2),o?(h+=r.getElementWidth(i[0],!0,!0,!0),h-=n.ignoreMin?0:this.o.minColumnWidth,c||(h-=Math.ceil((parseFloat(i.css("border-left-width"))||0)/2),h-=this._horizontalPadding(i[0])),d>h&&(d=h)):(h+=n.ignoreMin?0:this.o.minColumnWidth,c||(h+=Math.ceil((parseFloat(i.css("border-right-width"))||0)/2),h+=this._horizontalPadding(i[0])),d<h&&(d=h)),t.$resizer.css("left",d+"px")},nw.prototype._onEndDragColumnHeader=function(e){var t=this.o,n=this.p;if(n.$resizer){By(document).off("mousemove.dgtable",n.onMouseMoveResizeAreaBound).off("mouseup.dgtable",n.onEndDragColumnHeaderBound);var o=n.columns.get(n.$resizer[0].columnName),i=this._isTableRtl(),a=o.element,l=n.$resizer.parent(),s=a.offset(),u=l.offset();u.left+=parseFloat(l.css("border-left-width"))||0,s.left-=u.left;var c=r.getElementWidth(n.$resizer[0],!0,!0,!0),d="border-box"===a.css("box-sizing"),h=e.pageX-u.left,f=s.left,p=s.left,v=0;f-=Math.ceil(c/2),i?(d||(h+=this._horizontalPadding(a[0]),h+=parseFloat(a.css("border-left-width"))||0,h+=parseFloat(a.css("border-right-width"))||0),h>(p=(f+=r.getElementWidth(a[0],!0,!0,!0))-(o.ignoreMin?0:this.o.minColumnWidth))&&(h=p),v=f-h):(d||(h-=this._horizontalPadding(a[0]),h-=parseFloat(a.css("border-left-width"))||0,h-=parseFloat(a.css("border-right-width"))||0),h<(p=f+(o.ignoreMin?0:this.o.minColumnWidth))&&(h=p),v=h-f),n.$resizer.remove(),n.$resizer=null;var m=v;if(o.widthMode===ow.RELATIVE){for(var g=this._calculateWidthAvailableForColumns(),b=0,y=0,w=0;w<n.visibleColumns.length;w++){var C=n.visibleColumns[w];C.name!==o.name&&(C.widthMode===ow.RELATIVE?(b+=C.width,y++):g-=C.actualWidth)}if(m=v/(g=Math.max(1,g)),y>0){var E=m/((1-m)/b);((b+=m)<1&&t.relativeWidthGrowsToFillWidth||b>1&&t.relativeWidthShrinksToFillWidth)&&(m=E)}m*=100,m+="%"}this.setColumnWidth(o.name,m)}else e.target.style.opacity=null},nw.prototype._onDragEnterColumnHeader=function(e){var t=this.o,r=this.p;if(t.movableColumns){var n=e.originalEvent.dataTransfer.getData("text");n=n?JSON.parse(n):null;var o=By(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName);if(!n||r.dragId===n.dragId&&o.columnName!==n.column){var i=r.columns.get(o[0].columnName);i&&(i.movable||i!==r.visibleColumns[0])&&By(o).addClass("drag-over")}}},nw.prototype._onDragOverColumnHeader=function(e){e.preventDefault()},nw.prototype._onDragLeaveColumnHeader=function(e){var t=this.o,r=By(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName);By(r[0].firstChild).has(e.originalEvent.relatedTarget).length||r.removeClass("drag-over")},nw.prototype._onDropColumnHeader=function(e){e.preventDefault();var t=this.o,r=this.p,n=JSON.parse(e.originalEvent.dataTransfer.getData("text")),o=By(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName);if(t.movableColumns&&n.dragId===r.dragId){var i=n.column,a=o[0].columnName,l=r.columns.get(i),s=r.columns.get(a);l&&s&&l.movable&&(s.movable||s!==r.visibleColumns[0])&&this.moveColumn(i,a)}By(o).removeClass("drag-over")},nw.prototype._clearSortArrows=function(){var e=this.p;if(e.$table){var t=this.o.tableClassName,r=e.$headerRow.find(">div."+t+"-header-cell.sorted"),n=r.find(">div>.sort-arrow");n.each((function(t,r){var n=e.columns.get(r.parentNode.parentNode.columnName);n&&(n.arrowProposedWidth=0)})),n.remove(),r.removeClass("sorted").removeClass("desc")}return this},nw.prototype._showSortArrow=function(e,t){var r=this.p.columns.get(e);if(!r)return!1;var n=Gy("span");return n.className="sort-arrow",r.element&&(r.element.addClass(t?"sorted desc":"sorted"),r.element[0].firstChild.insertBefore(n,r.element[0].firstChild.firstChild)),r.widthMode!==ow.RELATIVE&&this.o.adjustColumnWidthForSortArrow&&(r.arrowProposedWidth=n.scrollWidth+(parseFloat(By(n).css("margin-right"))||0)+(parseFloat(By(n).css("margin-left"))||0)),this},nw.prototype._resizeColumnElements=function(e){var t=this.p,r=t.$headerRow.find("div."+this.o.tableClassName+"-header-cell"),n=t.columns.get(r[e].columnName);if(n){r[e].style.width=(n.actualWidthConsideringScrollbarWidth||n.actualWidth)+"px";for(var o=(n.actualWidthConsideringScrollbarWidth||n.actualWidth)+"px",i=t.tbody.childNodes,a=0,l=i.length;a<l;a++){var s=i[a];1===s.nodeType&&(s.childNodes[e].style.width=o)}}return this},nw.prototype._destroyHeaderCells=function(){var e=this.o,t=this.p;return t.$headerRow&&(this.trigger("headerrowdestroy",t.headerRow),t.$headerRow.find("div."+e.tableClassName+"-header-cell").remove(),t.$headerRow=null,t.headerRow=null),this},nw.prototype._renderSkeletonBase=function(){var e,t=this,n=t.p,o=t.o;null===(e=n.virtualListHelper)||void 0===e||e.destroy(),n.virtualListHelper=null,n.$table&&o.virtualTable&&(n.$table.remove(),n.$table=n.table=n.$tbody=n.tbody=null),t._destroyHeaderCells(),n.currentTouchId=null,n.$header&&n.$header.remove();var i=o.tableClassName,a=Gy("div"),l=By(a),s=Gy("div"),u=By(s);return a.className=i+"-header",s.className=i+"-header-row",n.$header=l,n.header=a,n.$headerRow=u,n.headerRow=s,u.appendTo(n.$header),l.prependTo(this.$el),Zy(t.$el),o.width===nw.Width.SCROLL?this.el.style.overflow="hidden":this.el.style.overflow="",!o.height&&o.virtualTable&&(o.height=r.getElementHeight(this.$el[0],!0)),this},nw.prototype._renderSkeletonHeaderCells=function(){var e,t=this,r=t.p,n=t.o,o=n.allowCellPreview,i=n.allowHeaderCellPreview,a=n.tableClassName+"-header-cell",l=r.headerRow;qy&&(e=function(e){return e.preventDefault(),this.dragDrop(),!1});for(var s=function(e){e.preventDefault()},u=0;u<r.visibleColumns.length;u++){var c=r.visibleColumns[u];if(c.visible){var d=Gy("div"),h=By(d);d.draggable=!0,d.className=a,d.style.width=c.actualWidth+"px",n.sortableColumns&&c.sortable&&(d.className+=" sortable"),d.columnName=c.name,d.setAttribute("data-column",c.name);var f=Gy("div");f.innerHTML=n.headerCellFormatter(c.label,c.name),d.appendChild(f),o&&i&&r._bindCellHoverIn(d),l.appendChild(d),r.visibleColumns[u].element=h,h.on("mousedown.dgtable",t._onMouseDownColumnHeader.bind(t)).on("mousemove.dgtable",t._onMouseMoveColumnHeader.bind(t)).on("mouseup.dgtable",t._onMouseUpColumnHeader.bind(t)).on("mouseleave.dgtable",t._onMouseLeaveColumnHeader.bind(t)).on("touchstart.dgtable",t._onTouchStartColumnHeader.bind(t)).on("dragstart.dgtable",t._onStartDragColumnHeader.bind(t)).on("click.dgtable",t._onClickColumnHeader.bind(t)).on("contextmenu.dgtable",s),By(f).on("dragenter.dgtable",t._onDragEnterColumnHeader.bind(t)).on("dragover.dgtable",t._onDragOverColumnHeader.bind(t)).on("dragleave.dgtable",t._onDragLeaveColumnHeader.bind(t)).on("drop.dgtable",t._onDropColumnHeader.bind(t)),qy&&h.on("selectstart.dgtable",e.bind(d)),h.css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","-o-user-select":"none","user-select":"none"})}}return this.trigger("headerrowcreate",l),this},nw.prototype._renderSkeletonBody=function(){var e=this,t=e.p,n=e.o,o=n.tableClassName;if(n.virtualTable&&!t.virtualRowHeight){var i,a=function(){var e=Gy("div"),t=e.appendChild(Gy("div")),r=t.appendChild(Gy("div"));return e.className=o+"-row",t.className=o+"-cell",r.innerHTML="0",e.style.visibility="hidden",e.style.position="absolute",e},l=By("<div>").addClass(e.el.className).css({"z-index":-1,position:"absolute",left:"0",top:"-9999px",width:"1px",overflow:"hidden"}).append(By("<div>").addClass(o).append(i=By("<div>").addClass(o+"-body").css("width",99999)));l.appendTo(document.body);var s=a(),u=a(),c=a();i.append(s,u,c),t.virtualRowHeightFirst=r.getElementHeight(s,!0,!0,!0),t.virtualRowHeight=r.getElementHeight(u,!0,!0,!0),t.virtualRowHeightLast=r.getElementHeight(c,!0,!0,!0),l.remove()}if(!t.$table){var d=document.createDocumentFragment(),h=Gy("div"),f=By(h);h.className=o,n.virtualTable&&(h.className+=" virtual");var p=n.height-r.getElementHeight(t.$headerRow[0],!0,!0,!0);"border-box"!==f.css("box-sizing")&&(p-=parseFloat(f.css("border-top-width"))||0,p-=parseFloat(f.css("border-bottom-width"))||0,p-=parseFloat(f.css("padding-top"))||0,p-=parseFloat(f.css("padding-bottom"))||0),t.visibleHeight=p,h.style.height=n.height?p+"px":"auto",h.style.display="block",h.style.overflowY="auto",h.style.overflowX=n.width===nw.Width.SCROLL?"auto":"hidden",d.appendChild(h);var v=Gy("div"),m=By(v);v.className=n.tableClassName+"-body",v.style.minHeight="1px",t.table=h,t.tbody=v,t.$table=f,t.$tbody=m,Zy(m),Zy(f),h.appendChild(v),e.el.appendChild(d),this._setupVirtualTable()}return this},nw.prototype._renderSkeleton=function(){return this},nw.prototype._updateVirtualHeight=function(){var e=this.o,t=this.p;return t.tbody?(e.virtualTable?t.tbody.style.height=t.virtualListHelper.estimateFullHeight()+"px":t.tbody.style.height="",this):this},nw.prototype._updateLastCellWidthFromScrollbar=function(e){var t=this.p,r=t.table.offsetWidth-t.table.clientWidth;if(r!==t.scrollbarWidth||e){var n;t.scrollbarWidth=r;for(var o=0;o<t.columns.length;o++)t.columns[o].actualWidthConsideringScrollbarWidth=null;if(t.scrollbarWidth>0&&t.visibleColumns.length>0){var i=t.visibleColumns.length-1;t.visibleColumns[i].actualWidthConsideringScrollbarWidth=t.visibleColumns[i].actualWidth-t.scrollbarWidth;for(var a=t.visibleColumns[i].actualWidthConsideringScrollbarWidth+"px",l=t.tbody.childNodes,s=0,u=l.length;s<u;s++){var c=l[s];1===c.nodeType&&(c.childNodes[i].style.width=a)}t.headerRow.childNodes[i].style.width=a}null===(n=t.notifyRendererOfColumnsConfig)||void 0===n||n.call(t)}return this},nw.prototype._updateTableWidth=function(e){var t,n,o=this.o,i=this.p,a=this._calculateTbodyWidth();if(i.tbody.style.minWidth=a+"px",i.headerRow.style.minWidth=a+(i.scrollbarWidth||0)+"px",i.$table.off("scroll",i.onTableScrolledHorizontallyBound),o.width===nw.Width.AUTO)r.setElementWidth(i.$table[0],r.getElementWidth(i.tbody,!0,!0,!0)),r.setElementWidth(this.$el[0],r.getElementWidth(i.$table[0],!0,!0,!0));else if(o.width===nw.Width.SCROLL){if(e){var l=i.table?i.table.scrollTop:0,s=i.table?i.table.scrollLeft:0;n=(t=this.el).style.display,t.style.display="none",t.offsetHeight,t.style.display=n,i.table.scrollTop=l,i.table.scrollLeft=s,i.header.scrollLeft=s}i.$table.on("scroll",i.onTableScrolledHorizontallyBound)}return this},nw.prototype._isTableRtl=function(){return"rtl"===this.p.$table.css("direction")},nw.prototype._serializeColumnWidth=function(e){return e.widthMode===ow.AUTO?"auto":e.widthMode===ow.RELATIVE?100*e.width+"%":e.width},nw.prototype._cellMouseOverEvent=function(e){var t=this,n=this.o,o=this.p,i=e.firstChild;if(i.scrollWidth-i.clientWidth>1||i.scrollHeight-i.clientHeight>1){this.hideCellPreview(),o.abortCellPreview=!1;var a=By(e),l=By(i),s=e.parentNode,u=Gy("div"),c=By(u);u.innerHTML=e.innerHTML,u.className=n.cellPreviewClassName;var d=a.hasClass(n.tableClassName+"-header-cell");d&&(u.className+=" header",a.hasClass("sortable")&&(u.className+=" sortable"),u.draggable=!0,By(u).on("mousedown",this._onMouseDownColumnHeader.bind(this)).on("mousemove",this._onMouseMoveColumnHeader.bind(this)).on("mouseup",this._onMouseUpColumnHeader.bind(this)).on("mouseleave",this._onMouseLeaveColumnHeader.bind(this)).on("touchstart",this._onTouchStartColumnHeader.bind(this)).on("dragstart",this._onStartDragColumnHeader.bind(this)).on("click",this._onClickColumnHeader.bind(this)).on("contextmenu.dgtable",(function(e){e.preventDefault()})),By(u.firstChild).on("dragenter",this._onDragEnterColumnHeader.bind(this)).on("dragover",this._onDragOverColumnHeader.bind(this)).on("dragleave",this._onDragLeaveColumnHeader.bind(this)).on("drop",this._onDropColumnHeader.bind(this)),qy&&By(u).on("selectstart",function(e){return e.preventDefault(),this.dragDrop(),!1}.bind(u)));var h=parseFloat(a.css("padding-left"))||0,f=parseFloat(a.css("padding-right"))||0,p=parseFloat(a.css("padding-top"))||0,v=parseFloat(a.css("padding-bottom"))||0,m=i.scrollWidth+(e.clientWidth-i.offsetWidth),g="border-box"===a.css("box-sizing");if(g?c.css("box-sizing","border-box"):(m-=h+f,c.css("margin-top",parseFloat(By(e).css("border-top-width"))||0)),!o.transparentBgColor1){var b=document.createElement("div");b.style.backgroundColor="transparent",o.transparentBgColor1=By(b).css("background-color"),b.style.backgroundColor="rgba(0,0,0,0)",o.transparentBgColor2=By(b).css("background-color")}var y={"box-sizing":g?"border-box":"content-box",width:m,"min-height":r.getElementHeight(a[0]),"padding-left":h,"padding-right":f,"padding-top":p,"padding-bottom":v,overflow:"hidden",position:"absolute","z-index":"-1",left:"0",top:"0",cursor:a.css("cursor")};if(y){var w=By(e).css("background-color");w!==o.transparentBgColor1&&w!==o.transparentBgColor2||(w=By(s).css("background-color")),w!==o.transparentBgColor1&&w!==o.transparentBgColor2||(w="#fff"),y["background-color"]=w}c.css(y),this.el.appendChild(u),By(u.firstChild).css({direction:l.css("direction"),"white-space":l.css("white-space")}),d&&c.css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","-o-user-select":"none","user-select":"none"}),u.rowIndex=s.rowIndex;var C=u.physicalRowIndex=s.physicalRowIndex;u.columnName=o.visibleColumns[$y.call(s.childNodes,e)].name;try{var E=Yb.saveSelection(e);E&&Yb.restoreSelection(u,E)}catch(e){}if(this.trigger("cellpreview",u.firstChild,null==C?null:C,u.columnName,null==C?null:o.rows[C],e),o.abortCellPreview)return void c.remove();null!=C&&u.addEventListener("click",(function(e){t.trigger("rowclick",e,s.rowIndex,C,s,o.rows[C])}));var S=this.$el,_=S[0]===window?By(document):S,I=a.offset(),R=S.offset(),x="right"===a.css("float"),W=x?"right":"left";if(x){var P=By(window).width();I.right=P-(I.left+r.getElementWidth(a[0],!0,!0,!0)),R.right=P-(R.left+r.getElementWidth(S[0],!0,!0,!0))}I.left-=parseFloat(S.css("border-left-width"))||0,I.right-=parseFloat(S.css("border-right-width"))||0,I.top-=parseFloat(S.css("border-top-width"))||0,I[W]+=parseFloat(By(e).css("border-"+W+"-width"))||0,I.top+=parseFloat(By(e).css("border-top-width"))||parseFloat(By(e).css("border-bottom-width"))||0,I.left-=R.left,I.right-=R.right,I.top-=R.top;var k=S-r.getElementWidth(c[0],!0,!0,!0);I[W]=I[W]<0?0:I[W]>k?k:I[W];var T=r.getElementHeight(a[0],!0,!0,!0),A=_.scrollTop()+r.getElementHeight(S[0],!0)-T;I.top>A&&(I.top=Math.max(0,A));var H={top:I.top,"z-index":9999};H[W]=I[W],c.css(H),u.__cell=e,o.$cellPreviewCell=c,e.__previewCell=u,o._bindCellHoverOut(e),o._bindCellHoverOut(u),c.on("wheel",(function(){t.hideCellPreview()}))}},nw.prototype._cellMouseOutEvent=function(e){this.hideCellPreview()},nw.prototype.hideCellPreview=function(){var e=this.p;if(e.$cellPreviewCell){var t,r=e.$cellPreviewCell[0],n=r.__cell;try{t=Yb.saveSelection(r)}catch(e){}e.$cellPreviewCell.remove(),e._unbindCellHoverOut(n),e._unbindCellHoverOut(r);try{t&&Yb.restoreSelection(n,t)}catch(e){}this.trigger("cellpreviewdestroy",r.firstChild,r.physicalRowIndex,r.columnName,n),n.__previewCell=null,r.__cell=null,e.$cellPreviewCell=null,e.abortCellPreview=!1}else e.abortCellPreview=!0;return this};var ow={AUTO:0,ABSOLUTE:1,RELATIVE:2};return nw.Width={NONE:"none",AUTO:"auto",SCROLL:"scroll"},By.controls||(By.controls={}),By.controls.dgtable=nw,nw}));
5
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery"),require("@danielgindi/dom-utils/lib/ScrollHelper"),require("@danielgindi/dom-utils/lib/Css")):"function"==typeof define&&define.amd?define(["jquery","@danielgindi/dom-utils/lib/ScrollHelper","@danielgindi/dom-utils/lib/Css"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).DGTable=t(e.jQuery,e.domUtilsScrollHelper,e.domUtilsCss)}(this,(function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=function(e){return e&&e.Math==Math&&e},u=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof l&&l)||function(){return this}()||Function("return this")(),c={},d=function(e){try{return!!e()}catch(e){return!0}},h=!d((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f=!d((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),p=f,v=Function.prototype.call,m=p?v.bind(v):function(){return v.apply(v,arguments)},g={},b={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,w=y&&!b.call({1:2},1);g.f=w?function(e){var t=y(this,e);return!!t&&t.enumerable}:b;var C,E,S=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_=f,I=Function.prototype,R=I.call,x=_&&I.bind.bind(R,R),W=_?x:function(e){return function(){return R.apply(e,arguments)}},P=W,k=P({}.toString),T=P("".slice),A=function(e){return T(k(e),8,-1)},H=A,N=W,O=function(e){if("Function"===H(e))return N(e)},F=d,L=A,M=Object,z=O("".split),U=F((function(){return!M("z").propertyIsEnumerable(0)}))?function(e){return"String"==L(e)?z(e,""):M(e)}:M,j=function(e){return null==e},$=j,B=TypeError,D=function(e){if($(e))throw B("Can't call method on "+e);return e},V=U,q=D,G=function(e){return V(q(e))},X="object"==typeof document&&document.all,Y={all:X,IS_HTMLDDA:void 0===X&&void 0!==X},J=Y.all,K=Y.IS_HTMLDDA?function(e){return"function"==typeof e||e===J}:function(e){return"function"==typeof e},Q=K,Z=Y.all,ee=Y.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Q(e)||e===Z}:function(e){return"object"==typeof e?null!==e:Q(e)},te=u,re=K,ne=function(e){return re(e)?e:void 0},oe=function(e,t){return arguments.length<2?ne(te[e]):te[e]&&te[e][t]},ie=O({}.isPrototypeOf),ae=oe("navigator","userAgent")||"",le=u,se=ae,ue=le.process,ce=le.Deno,de=ue&&ue.versions||ce&&ce.version,he=de&&de.v8;he&&(E=(C=he.split("."))[0]>0&&C[0]<4?1:+(C[0]+C[1])),!E&&se&&(!(C=se.match(/Edge\/(\d+)/))||C[1]>=74)&&(C=se.match(/Chrome\/(\d+)/))&&(E=+C[1]);var fe=E,pe=fe,ve=d,me=!!Object.getOwnPropertySymbols&&!ve((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pe&&pe<41})),ge=me&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,be=oe,ye=K,we=ie,Ce=Object,Ee=ge?function(e){return"symbol"==typeof e}:function(e){var t=be("Symbol");return ye(t)&&we(t.prototype,Ce(e))},Se=String,_e=function(e){try{return Se(e)}catch(e){return"Object"}},Ie=K,Re=_e,xe=TypeError,We=function(e){if(Ie(e))return e;throw xe(Re(e)+" is not a function")},Pe=We,ke=j,Te=function(e,t){var r=e[t];return ke(r)?void 0:Pe(r)},Ae=m,He=K,Ne=ee,Oe=TypeError,Fe={exports:{}},Le=u,Me=Object.defineProperty,ze=function(e,t){try{Me(Le,e,{value:t,configurable:!0,writable:!0})}catch(r){Le[e]=t}return t},Ue=ze,je="__core-js_shared__",$e=u[je]||Ue(je,{}),Be=$e;(Fe.exports=function(e,t){return Be[e]||(Be[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.0",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"});var De=D,Ve=Object,qe=function(e){return Ve(De(e))},Ge=qe,Xe=O({}.hasOwnProperty),Ye=Object.hasOwn||function(e,t){return Xe(Ge(e),t)},Je=O,Ke=0,Qe=Math.random(),Ze=Je(1..toString),et=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ze(++Ke+Qe,36)},tt=u,rt=Fe.exports,nt=Ye,ot=et,it=me,at=ge,lt=rt("wks"),st=tt.Symbol,ut=st&&st.for,ct=at?st:st&&st.withoutSetter||ot,dt=function(e){if(!nt(lt,e)||!it&&"string"!=typeof lt[e]){var t="Symbol."+e;it&&nt(st,e)?lt[e]=st[e]:lt[e]=at&&ut?ut(t):ct(t)}return lt[e]},ht=m,ft=ee,pt=Ee,vt=Te,mt=TypeError,gt=dt("toPrimitive"),bt=function(e,t){if(!ft(e)||pt(e))return e;var r,n=vt(e,gt);if(n){if(void 0===t&&(t="default"),r=ht(n,e,t),!ft(r)||pt(r))return r;throw mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&He(r=e.toString)&&!Ne(n=Ae(r,e)))return n;if(He(r=e.valueOf)&&!Ne(n=Ae(r,e)))return n;if("string"!==t&&He(r=e.toString)&&!Ne(n=Ae(r,e)))return n;throw Oe("Can't convert object to primitive value")}(e,t)},yt=bt,wt=Ee,Ct=function(e){var t=yt(e,"string");return wt(t)?t:t+""},Et=ee,St=u.document,_t=Et(St)&&Et(St.createElement),It=function(e){return _t?St.createElement(e):{}},Rt=It,xt=!h&&!d((function(){return 7!=Object.defineProperty(Rt("div"),"a",{get:function(){return 7}}).a})),Wt=h,Pt=m,kt=g,Tt=S,At=G,Ht=Ct,Nt=Ye,Ot=xt,Ft=Object.getOwnPropertyDescriptor;c.f=Wt?Ft:function(e,t){if(e=At(e),t=Ht(t),Ot)try{return Ft(e,t)}catch(e){}if(Nt(e,t))return Tt(!Pt(kt.f,e,t),e[t])};var Lt={},Mt=h&&d((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),zt=ee,Ut=String,jt=TypeError,$t=function(e){if(zt(e))return e;throw jt(Ut(e)+" is not an object")},Bt=h,Dt=xt,Vt=Mt,qt=$t,Gt=Ct,Xt=TypeError,Yt=Object.defineProperty,Jt=Object.getOwnPropertyDescriptor;Lt.f=Bt?Vt?function(e,t,r){if(qt(e),t=Gt(t),qt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=Jt(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return Yt(e,t,r)}:Yt:function(e,t,r){if(qt(e),t=Gt(t),qt(r),Dt)try{return Yt(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Xt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Kt=Lt,Qt=S,Zt=h?function(e,t,r){return Kt.f(e,t,Qt(1,r))}:function(e,t,r){return e[t]=r,e},er={exports:{}},tr=h,rr=Ye,nr=Function.prototype,or=tr&&Object.getOwnPropertyDescriptor,ir=rr(nr,"name"),ar={EXISTS:ir,PROPER:ir&&"something"===function(){}.name,CONFIGURABLE:ir&&(!tr||tr&&or(nr,"name").configurable)},lr=K,sr=$e,ur=O(Function.toString);lr(sr.inspectSource)||(sr.inspectSource=function(e){return ur(e)});var cr,dr,hr,fr=sr.inspectSource,pr=K,vr=u.WeakMap,mr=pr(vr)&&/native code/.test(String(vr)),gr=Fe.exports,br=et,yr=gr("keys"),wr=function(e){return yr[e]||(yr[e]=br(e))},Cr={},Er=mr,Sr=u,_r=ee,Ir=Zt,Rr=Ye,xr=$e,Wr=wr,Pr=Cr,kr="Object already initialized",Tr=Sr.TypeError,Ar=Sr.WeakMap;if(Er||xr.state){var Hr=xr.state||(xr.state=new Ar);Hr.get=Hr.get,Hr.has=Hr.has,Hr.set=Hr.set,cr=function(e,t){if(Hr.has(e))throw Tr(kr);return t.facade=e,Hr.set(e,t),t},dr=function(e){return Hr.get(e)||{}},hr=function(e){return Hr.has(e)}}else{var Nr=Wr("state");Pr[Nr]=!0,cr=function(e,t){if(Rr(e,Nr))throw Tr(kr);return t.facade=e,Ir(e,Nr,t),t},dr=function(e){return Rr(e,Nr)?e[Nr]:{}},hr=function(e){return Rr(e,Nr)}}var Or={set:cr,get:dr,has:hr,enforce:function(e){return hr(e)?dr(e):cr(e,{})},getterFor:function(e){return function(t){var r;if(!_r(t)||(r=dr(t)).type!==e)throw Tr("Incompatible receiver, "+e+" required");return r}}},Fr=d,Lr=K,Mr=Ye,zr=h,Ur=ar.CONFIGURABLE,jr=fr,$r=Or.enforce,Br=Or.get,Dr=Object.defineProperty,Vr=zr&&!Fr((function(){return 8!==Dr((function(){}),"length",{value:8}).length})),qr=String(String).split("String"),Gr=er.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Mr(e,"name")||Ur&&e.name!==t)&&(zr?Dr(e,"name",{value:t,configurable:!0}):e.name=t),Vr&&r&&Mr(r,"arity")&&e.length!==r.arity&&Dr(e,"length",{value:r.arity});try{r&&Mr(r,"constructor")&&r.constructor?zr&&Dr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=$r(e);return Mr(n,"source")||(n.source=qr.join("string"==typeof t?t:"")),e};Function.prototype.toString=Gr((function(){return Lr(this)&&Br(this).source||jr(this)}),"toString");var Xr=K,Yr=Lt,Jr=er.exports,Kr=ze,Qr=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(Xr(r)&&Jr(r,i,n),n.global)o?e[t]=r:Kr(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:Yr.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Zr={},en=Math.ceil,tn=Math.floor,rn=Math.trunc||function(e){var t=+e;return(t>0?tn:en)(t)},nn=function(e){var t=+e;return t!=t||0===t?0:rn(t)},on=nn,an=Math.max,ln=Math.min,sn=function(e,t){var r=on(e);return r<0?an(r+t,0):ln(r,t)},un=nn,cn=Math.min,dn=function(e){return e>0?cn(un(e),9007199254740991):0},hn=dn,fn=function(e){return hn(e.length)},pn=G,vn=sn,mn=fn,gn=function(e){return function(t,r,n){var o,i=pn(t),a=mn(i),l=vn(n,a);if(e&&r!=r){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===r)return e||l||0;return!e&&-1}},bn={includes:gn(!0),indexOf:gn(!1)},yn=Ye,wn=G,Cn=bn.indexOf,En=Cr,Sn=O([].push),_n=function(e,t){var r,n=wn(e),o=0,i=[];for(r in n)!yn(En,r)&&yn(n,r)&&Sn(i,r);for(;t.length>o;)yn(n,r=t[o++])&&(~Cn(i,r)||Sn(i,r));return i},In=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Rn=_n,xn=In.concat("length","prototype");Zr.f=Object.getOwnPropertyNames||function(e){return Rn(e,xn)};var Wn={};Wn.f=Object.getOwnPropertySymbols;var Pn=oe,kn=Zr,Tn=Wn,An=$t,Hn=O([].concat),Nn=Pn("Reflect","ownKeys")||function(e){var t=kn.f(An(e)),r=Tn.f;return r?Hn(t,r(e)):t},On=Ye,Fn=Nn,Ln=c,Mn=Lt,zn=function(e,t,r){for(var n=Fn(t),o=Mn.f,i=Ln.f,a=0;a<n.length;a++){var l=n[a];On(e,l)||r&&On(r,l)||o(e,l,i(t,l))}},Un=d,jn=K,$n=/#|\.prototype\./,Bn=function(e,t){var r=Vn[Dn(e)];return r==Gn||r!=qn&&(jn(t)?Un(t):!!t)},Dn=Bn.normalize=function(e){return String(e).replace($n,".").toLowerCase()},Vn=Bn.data={},qn=Bn.NATIVE="N",Gn=Bn.POLYFILL="P",Xn=Bn,Yn=u,Jn=c.f,Kn=Zt,Qn=Qr,Zn=ze,eo=zn,to=Xn,ro=function(e,t){var r,n,o,i,a,l=e.target,s=e.global,u=e.stat;if(r=s?Yn:u?Yn[l]||Zn(l,{}):(Yn[l]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=Jn(r,n))&&a.value:r[n],!to(s?n:l+(u?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;eo(i,o)}(e.sham||o&&o.sham)&&Kn(i,"sham",!0),Qn(r,n,i,e)}},no=d,oo=function(e,t){var r=[][e];return!!r&&no((function(){r.call(null,t||function(){return 1},1)}))},io=ro,ao=bn.indexOf,lo=oo,so=O([].indexOf),uo=!!so&&1/so([1],1,-0)<0,co=lo("indexOf");io({target:"Array",proto:!0,forced:uo||!co},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return uo?so(this,e,t)||0:ao(this,e,t)}});var ho={};ho[dt("toStringTag")]="z";var fo="[object z]"===String(ho),po=fo,vo=K,mo=A,go=dt("toStringTag"),bo=Object,yo="Arguments"==mo(function(){return arguments}()),wo=po?mo:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=bo(e),go))?r:yo?mo(t):"Object"==(n=mo(t))&&vo(t.callee)?"Arguments":n},Co=wo,Eo=String,So=function(e){if("Symbol"===Co(e))throw TypeError("Cannot convert a Symbol value to a string");return Eo(e)},_o=D,Io=So,Ro=O("".replace),xo="[\t\n\v\f\r                 \u2028\u2029\ufeff]",Wo=RegExp("^"+xo+xo+"*"),Po=RegExp(xo+xo+"*$"),ko=function(e){return function(t){var r=Io(_o(t));return 1&e&&(r=Ro(r,Wo,"")),2&e&&(r=Ro(r,Po,"")),r}},To={start:ko(1),end:ko(2),trim:ko(3)},Ao=u,Ho=d,No=So,Oo=To.trim,Fo=O("".charAt),Lo=Ao.parseFloat,Mo=Ao.Symbol,zo=Mo&&Mo.iterator,Uo=1/Lo("\t\n\v\f\r                 \u2028\u2029\ufeff-0")!=-1/0||zo&&!Ho((function(){Lo(Object(zo))}))?function(e){var t=Oo(No(e)),r=Lo(t);return 0===r&&"-"==Fo(t,0)?-0:r}:Lo;ro({global:!0,forced:parseFloat!=Uo},{parseFloat:Uo});var jo={},$o=_n,Bo=In,Do=Object.keys||function(e){return $o(e,Bo)},Vo=h,qo=Mt,Go=Lt,Xo=$t,Yo=G,Jo=Do;jo.f=Vo&&!qo?Object.defineProperties:function(e,t){Xo(e);for(var r,n=Yo(t),o=Jo(t),i=o.length,a=0;i>a;)Go.f(e,r=o[a++],n[r]);return e};var Ko,Qo=oe("document","documentElement"),Zo=$t,ei=jo,ti=In,ri=Cr,ni=Qo,oi=It,ii=wr("IE_PROTO"),ai=function(){},li=function(e){return"<script>"+e+"<\/script>"},si=function(e){e.write(li("")),e.close();var t=e.parentWindow.Object;return e=null,t},ui=function(){try{Ko=new ActiveXObject("htmlfile")}catch(e){}var e,t;ui="undefined"!=typeof document?document.domain&&Ko?si(Ko):((t=oi("iframe")).style.display="none",ni.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(li("document.F=Object")),e.close(),e.F):si(Ko);for(var r=ti.length;r--;)delete ui.prototype[ti[r]];return ui()};ri[ii]=!0;var ci=Object.create||function(e,t){var r;return null!==e?(ai.prototype=Zo(e),r=new ai,ai.prototype=null,r[ii]=e):r=ui(),void 0===t?r:ei.f(r,t)},di={},hi=Ct,fi=Lt,pi=S,vi=function(e,t,r){var n=hi(t);n in e?fi.f(e,n,pi(0,r)):e[n]=r},mi=sn,gi=fn,bi=vi,yi=Array,wi=Math.max,Ci=function(e,t,r){for(var n=gi(e),o=mi(t,n),i=mi(void 0===r?n:r,n),a=yi(wi(i-o,0)),l=0;o<i;o++,l++)bi(a,l,e[o]);return a.length=l,a},Ei=A,Si=G,_i=Zr.f,Ii=Ci,Ri="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];di.f=function(e){return Ri&&"Window"==Ei(e)?function(e){try{return _i(e)}catch(e){return Ii(Ri)}}(e):_i(Si(e))};var xi={},Wi=dt;xi.f=Wi;var Pi=u,ki=Ye,Ti=xi,Ai=Lt.f,Hi=m,Ni=oe,Oi=dt,Fi=Qr,Li=Lt.f,Mi=Ye,zi=dt("toStringTag"),Ui=function(e,t,r){e&&!r&&(e=e.prototype),e&&!Mi(e,zi)&&Li(e,zi,{configurable:!0,value:t})},ji=We,$i=f,Bi=O(O.bind),Di=function(e,t){return ji(e),void 0===t?e:$i?Bi(e,t):function(){return e.apply(t,arguments)}},Vi=A,qi=Array.isArray||function(e){return"Array"==Vi(e)},Gi=O,Xi=d,Yi=K,Ji=wo,Ki=fr,Qi=function(){},Zi=[],ea=oe("Reflect","construct"),ta=/^\s*(?:class|function)\b/,ra=Gi(ta.exec),na=!ta.exec(Qi),oa=function(e){if(!Yi(e))return!1;try{return ea(Qi,Zi,e),!0}catch(e){return!1}},ia=function(e){if(!Yi(e))return!1;switch(Ji(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return na||!!ra(ta,Ki(e))}catch(e){return!0}};ia.sham=!0;var aa=!ea||Xi((function(){var e;return oa(oa.call)||!oa(Object)||!oa((function(){e=!0}))||e}))?ia:oa,la=qi,sa=aa,ua=ee,ca=dt("species"),da=Array,ha=function(e,t){return new(function(e){var t;return la(e)&&(t=e.constructor,(sa(t)&&(t===da||la(t.prototype))||ua(t)&&null===(t=t[ca]))&&(t=void 0)),void 0===t?da:t}(e))(0===t?0:t)},fa=Di,pa=U,va=qe,ma=fn,ga=ha,ba=O([].push),ya=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(s,u,c,d){for(var h,f,p=va(s),v=pa(p),m=fa(u,c),g=ma(v),b=0,y=d||ga,w=t?y(s,g):r||a?y(s,0):void 0;g>b;b++)if((l||b in v)&&(f=m(h=v[b],b,p),e))if(t)w[b]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return b;case 2:ba(w,h)}else switch(e){case 4:return!1;case 7:ba(w,h)}return i?-1:n||o?o:w}},wa={forEach:ya(0),map:ya(1),filter:ya(2),some:ya(3),every:ya(4),find:ya(5),findIndex:ya(6),filterReject:ya(7)},Ca=ro,Ea=u,Sa=m,_a=O,Ia=h,Ra=me,xa=d,Wa=Ye,Pa=ie,ka=$t,Ta=G,Aa=Ct,Ha=So,Na=S,Oa=ci,Fa=Do,La=Zr,Ma=di,za=Wn,Ua=c,ja=Lt,$a=jo,Ba=g,Da=Qr,Va=Fe.exports,qa=Cr,Ga=et,Xa=dt,Ya=xi,Ja=Ui,Ka=Or,Qa=wa.forEach,Za=wr("hidden"),el="Symbol",tl=Ka.set,rl=Ka.getterFor(el),nl=Object.prototype,ol=Ea.Symbol,il=ol&&ol.prototype,al=Ea.TypeError,ll=Ea.QObject,sl=Ua.f,ul=ja.f,cl=Ma.f,dl=Ba.f,hl=_a([].push),fl=Va("symbols"),pl=Va("op-symbols"),vl=Va("wks"),ml=!ll||!ll.prototype||!ll.prototype.findChild,gl=Ia&&xa((function(){return 7!=Oa(ul({},"a",{get:function(){return ul(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=sl(nl,t);n&&delete nl[t],ul(e,t,r),n&&e!==nl&&ul(nl,t,n)}:ul,bl=function(e,t){var r=fl[e]=Oa(il);return tl(r,{type:el,tag:e,description:t}),Ia||(r.description=t),r},yl=function(e,t,r){e===nl&&yl(pl,t,r),ka(e);var n=Aa(t);return ka(r),Wa(fl,n)?(r.enumerable?(Wa(e,Za)&&e[Za][n]&&(e[Za][n]=!1),r=Oa(r,{enumerable:Na(0,!1)})):(Wa(e,Za)||ul(e,Za,Na(1,{})),e[Za][n]=!0),gl(e,n,r)):ul(e,n,r)},wl=function(e,t){ka(e);var r=Ta(t),n=Fa(r).concat(_l(r));return Qa(n,(function(t){Ia&&!Sa(Cl,r,t)||yl(e,t,r[t])})),e},Cl=function(e){var t=Aa(e),r=Sa(dl,this,t);return!(this===nl&&Wa(fl,t)&&!Wa(pl,t))&&(!(r||!Wa(this,t)||!Wa(fl,t)||Wa(this,Za)&&this[Za][t])||r)},El=function(e,t){var r=Ta(e),n=Aa(t);if(r!==nl||!Wa(fl,n)||Wa(pl,n)){var o=sl(r,n);return!o||!Wa(fl,n)||Wa(r,Za)&&r[Za][n]||(o.enumerable=!0),o}},Sl=function(e){var t=cl(Ta(e)),r=[];return Qa(t,(function(e){Wa(fl,e)||Wa(qa,e)||hl(r,e)})),r},_l=function(e){var t=e===nl,r=cl(t?pl:Ta(e)),n=[];return Qa(r,(function(e){!Wa(fl,e)||t&&!Wa(nl,e)||hl(n,fl[e])})),n};Ra||(Da(il=(ol=function(){if(Pa(il,this))throw al("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Ha(arguments[0]):void 0,t=Ga(e),r=function(e){this===nl&&Sa(r,pl,e),Wa(this,Za)&&Wa(this[Za],t)&&(this[Za][t]=!1),gl(this,t,Na(1,e))};return Ia&&ml&&gl(nl,t,{configurable:!0,set:r}),bl(t,e)}).prototype,"toString",(function(){return rl(this).tag})),Da(ol,"withoutSetter",(function(e){return bl(Ga(e),e)})),Ba.f=Cl,ja.f=yl,$a.f=wl,Ua.f=El,La.f=Ma.f=Sl,za.f=_l,Ya.f=function(e){return bl(Xa(e),e)},Ia&&(ul(il,"description",{configurable:!0,get:function(){return rl(this).description}}),Da(nl,"propertyIsEnumerable",Cl,{unsafe:!0}))),Ca({global:!0,constructor:!0,wrap:!0,forced:!Ra,sham:!Ra},{Symbol:ol}),Qa(Fa(vl),(function(e){!function(e){var t=Pi.Symbol||(Pi.Symbol={});ki(t,e)||Ai(t,e,{value:Ti.f(e)})}(e)})),Ca({target:el,stat:!0,forced:!Ra},{useSetter:function(){ml=!0},useSimple:function(){ml=!1}}),Ca({target:"Object",stat:!0,forced:!Ra,sham:!Ia},{create:function(e,t){return void 0===t?Oa(e):wl(Oa(e),t)},defineProperty:yl,defineProperties:wl,getOwnPropertyDescriptor:El}),Ca({target:"Object",stat:!0,forced:!Ra},{getOwnPropertyNames:Sl}),function(){var e=Ni("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=Oi("toPrimitive");t&&!t[n]&&Fi(t,n,(function(e){return Hi(r,this)}),{arity:1})}(),Ja(ol,el),qa[Za]=!0;var Il=me&&!!Symbol.for&&!!Symbol.keyFor,Rl=ro,xl=oe,Wl=Ye,Pl=So,kl=Fe.exports,Tl=Il,Al=kl("string-to-symbol-registry"),Hl=kl("symbol-to-string-registry");Rl({target:"Symbol",stat:!0,forced:!Tl},{for:function(e){var t=Pl(e);if(Wl(Al,t))return Al[t];var r=xl("Symbol")(t);return Al[t]=r,Hl[r]=t,r}});var Nl=ro,Ol=Ye,Fl=Ee,Ll=_e,Ml=Il,zl=(0,Fe.exports)("symbol-to-string-registry");Nl({target:"Symbol",stat:!0,forced:!Ml},{keyFor:function(e){if(!Fl(e))throw TypeError(Ll(e)+" is not a symbol");if(Ol(zl,e))return zl[e]}});var Ul=f,jl=Function.prototype,$l=jl.apply,Bl=jl.call,Dl="object"==typeof Reflect&&Reflect.apply||(Ul?Bl.bind($l):function(){return Bl.apply($l,arguments)}),Vl=O([].slice),ql=ro,Gl=oe,Xl=Dl,Yl=m,Jl=O,Kl=d,Ql=qi,Zl=K,es=ee,ts=Ee,rs=Vl,ns=me,os=Gl("JSON","stringify"),is=Jl(/./.exec),as=Jl("".charAt),ls=Jl("".charCodeAt),ss=Jl("".replace),us=Jl(1..toString),cs=/[\uD800-\uDFFF]/g,ds=/^[\uD800-\uDBFF]$/,hs=/^[\uDC00-\uDFFF]$/,fs=!ns||Kl((function(){var e=Gl("Symbol")();return"[null]"!=os([e])||"{}"!=os({a:e})||"{}"!=os(Object(e))})),ps=Kl((function(){return'"\\udf06\\ud834"'!==os("\udf06\ud834")||'"\\udead"'!==os("\udead")})),vs=function(e,t){var r=rs(arguments),n=t;if((es(t)||void 0!==e)&&!ts(e))return Ql(t)||(t=function(e,t){if(Zl(n)&&(t=Yl(n,this,e,t)),!ts(t))return t}),r[1]=t,Xl(os,null,r)},ms=function(e,t,r){var n=as(r,t-1),o=as(r,t+1);return is(ds,e)&&!is(hs,o)||is(hs,e)&&!is(ds,n)?"\\u"+us(ls(e,0),16):e};os&&ql({target:"JSON",stat:!0,arity:3,forced:fs||ps},{stringify:function(e,t,r){var n=rs(arguments),o=Xl(fs?vs:os,null,n);return ps&&"string"==typeof o?ss(o,cs,ms):o}});var gs=Wn,bs=qe;ro({target:"Object",stat:!0,forced:!me||d((function(){gs.f(1)}))},{getOwnPropertySymbols:function(e){var t=gs.f;return t?t(bs(e)):[]}});var ys=ro,ws=h,Cs=u,Es=O,Ss=Ye,_s=K,Is=ie,Rs=So,xs=Lt.f,Ws=zn,Ps=Cs.Symbol,ks=Ps&&Ps.prototype;if(ws&&_s(Ps)&&(!("description"in ks)||void 0!==Ps().description)){var Ts={},As=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:Rs(arguments[0]),t=Is(ks,this)?new Ps(e):void 0===e?Ps():Ps(e);return""===e&&(Ts[t]=!0),t};Ws(As,Ps),As.prototype=ks,ks.constructor=As;var Hs="Symbol(test)"==String(Ps("test")),Ns=Es(ks.valueOf),Os=Es(ks.toString),Fs=/^Symbol\((.*)\)[^)]+$/,Ls=Es("".replace),Ms=Es("".slice);xs(ks,"description",{configurable:!0,get:function(){var e=Ns(this);if(Ss(Ts,e))return"";var t=Os(e),r=Hs?Ms(t,7,-1):Ls(t,Fs,"$1");return""===r?void 0:r}}),ys({global:!0,constructor:!0,forced:!0},{Symbol:As})}var zs=wo,Us=fo?{}.toString:function(){return"[object "+zs(this)+"]"};fo||Qr(Object.prototype,"toString",Us,{unsafe:!0});var js,$s,Bs=$t,Ds=function(){var e=Bs(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Vs=d,qs=u.RegExp,Gs=Vs((function(){var e=qs("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Xs=Gs||Vs((function(){return!qs("a","y").sticky})),Ys={BROKEN_CARET:Gs||Vs((function(){var e=qs("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Xs,UNSUPPORTED_Y:Gs},Js=d,Ks=u.RegExp,Qs=Js((function(){var e=Ks(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Zs=d,eu=u.RegExp,tu=Zs((function(){var e=eu("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),ru=m,nu=O,ou=So,iu=Ds,au=Ys,lu=Fe.exports,su=ci,uu=Or.get,cu=Qs,du=tu,hu=lu("native-string-replace",String.prototype.replace),fu=RegExp.prototype.exec,pu=fu,vu=nu("".charAt),mu=nu("".indexOf),gu=nu("".replace),bu=nu("".slice),yu=($s=/b*/g,ru(fu,js=/a/,"a"),ru(fu,$s,"a"),0!==js.lastIndex||0!==$s.lastIndex),wu=au.BROKEN_CARET,Cu=void 0!==/()??/.exec("")[1];(yu||Cu||wu||cu||du)&&(pu=function(e){var t,r,n,o,i,a,l,s=this,u=uu(s),c=ou(e),d=u.raw;if(d)return d.lastIndex=s.lastIndex,t=ru(pu,d,c),s.lastIndex=d.lastIndex,t;var h=u.groups,f=wu&&s.sticky,p=ru(iu,s),v=s.source,m=0,g=c;if(f&&(p=gu(p,"y",""),-1===mu(p,"g")&&(p+="g"),g=bu(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==vu(c,s.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,m++),r=new RegExp("^(?:"+v+")",p)),Cu&&(r=new RegExp("^"+v+"$(?!\\s)",p)),yu&&(n=s.lastIndex),o=ru(fu,f?r:s,g),f?o?(o.input=bu(o.input,m),o[0]=bu(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:yu&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Cu&&o&&o.length>1&&ru(hu,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&h)for(o.groups=a=su(null),i=0;i<h.length;i++)a[(l=h[i])[0]]=o[l[1]];return o});var Eu=pu;ro({target:"RegExp",proto:!0,forced:/./.exec!==Eu},{exec:Eu});var Su=TypeError,_u=function(e){if(e>9007199254740991)throw Su("Maximum allowed index exceeded");return e},Iu=d,Ru=fe,xu=dt("species"),Wu=function(e){return Ru>=51||!Iu((function(){var t=[];return(t.constructor={})[xu]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Pu=ro,ku=d,Tu=qi,Au=ee,Hu=qe,Nu=fn,Ou=_u,Fu=vi,Lu=ha,Mu=Wu,zu=fe,Uu=dt("isConcatSpreadable"),ju=zu>=51||!ku((function(){var e=[];return e[Uu]=!1,e.concat()[0]!==e})),$u=Mu("concat"),Bu=function(e){if(!Au(e))return!1;var t=e[Uu];return void 0!==t?!!t:Tu(e)};Pu({target:"Array",proto:!0,arity:1,forced:!ju||!$u},{concat:function(e){var t,r,n,o,i,a=Hu(this),l=Lu(a,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(Bu(i=-1===t?a:arguments[t]))for(o=Nu(i),Ou(s+o),r=0;r<o;r++,s++)r in i&&Fu(l,s,i[r]);else Ou(s+1),Fu(l,s++,i);return l.length=s,l}});var Du=ro,Vu=qi,qu=aa,Gu=ee,Xu=sn,Yu=fn,Ju=G,Ku=vi,Qu=dt,Zu=Vl,ec=Wu("slice"),tc=Qu("species"),rc=Array,nc=Math.max;Du({target:"Array",proto:!0,forced:!ec},{slice:function(e,t){var r,n,o,i=Ju(this),a=Yu(i),l=Xu(e,a),s=Xu(void 0===t?a:t,a);if(Vu(i)&&(r=i.constructor,(qu(r)&&(r===rc||Vu(r.prototype))||Gu(r)&&null===(r=r[tc]))&&(r=void 0),r===rc||void 0===r))return Zu(i,l,s);for(n=new(void 0===r?rc:r)(nc(s-l,0)),o=0;l<s;l++,o++)l in i&&Ku(n,o,i[l]);return n.length=o,n}});var oc=u,ic=d,ac=O,lc=So,sc=To.trim,uc="\t\n\v\f\r                 \u2028\u2029\ufeff",cc=oc.parseInt,dc=oc.Symbol,hc=dc&&dc.iterator,fc=/^[+-]?0x/i,pc=ac(fc.exec),vc=8!==cc(uc+"08")||22!==cc(uc+"0x16")||hc&&!ic((function(){cc(Object(hc))}))?function(e,t){var r=sc(lc(e));return cc(r,t>>>0||(pc(fc,r)?16:10))}:cc;ro({global:!0,forced:parseInt!=vc},{parseInt:vc});var mc=wa.filter;ro({target:"Array",proto:!0,forced:!Wu("filter")},{filter:function(e){return mc(this,e,arguments.length>1?arguments[1]:void 0)}});var gc=h,bc=qi,yc=TypeError,wc=Object.getOwnPropertyDescriptor,Cc=gc&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),Ec=_e,Sc=TypeError,_c=function(e,t){if(!delete e[t])throw Sc("Cannot delete property "+Ec(t)+" of "+Ec(e))},Ic=ro,Rc=qe,xc=sn,Wc=nn,Pc=fn,kc=Cc?function(e,t){if(bc(e)&&!wc(e,"length").writable)throw yc("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Tc=_u,Ac=ha,Hc=vi,Nc=_c,Oc=Wu("splice"),Fc=Math.max,Lc=Math.min;Ic({target:"Array",proto:!0,forced:!Oc},{splice:function(e,t){var r,n,o,i,a,l,s=Rc(this),u=Pc(s),c=xc(e,u),d=arguments.length;for(0===d?r=n=0:1===d?(r=0,n=u-c):(r=d-2,n=Lc(Fc(Wc(t),0),u-c)),Tc(u+r-n),o=Ac(s,n),i=0;i<n;i++)(a=c+i)in s&&Hc(o,i,s[a]);if(o.length=n,r<n){for(i=c;i<u-n;i++)l=i+r,(a=i+n)in s?s[l]=s[a]:Nc(s,l);for(i=u;i>u-n+r;i--)Nc(s,i-1)}else if(r>n)for(i=u-n;i>c;i--)l=i+r-1,(a=i+n-1)in s?s[l]=s[a]:Nc(s,l);for(i=0;i<r;i++)s[i+c]=arguments[i+2];return kc(s,u-n+r),o}});var Mc=dt,zc=ci,Uc=Lt.f,jc=Mc("unscopables"),$c=Array.prototype;null==$c[jc]&&Uc($c,jc,{configurable:!0,value:zc(null)});var Bc=function(e){$c[jc][e]=!0},Dc=ro,Vc=wa.find,qc=Bc,Gc="find",Xc=!0;Gc in[]&&Array(1).find((function(){Xc=!1})),Dc({target:"Array",proto:!0,forced:Xc},{find:function(e){return Vc(this,e,arguments.length>1?arguments[1]:void 0)}}),qc(Gc);var Yc=Ci,Jc=Math.floor,Kc=function(e,t){var r=e.length,n=Jc(r/2);return r<8?Qc(e,t):Zc(e,Kc(Yc(e,0,n),t),Kc(Yc(e,n),t),t)},Qc=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},Zc=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,l=0;a<o||l<i;)e[a+l]=a<o&&l<i?n(t[a],r[l])<=0?t[a++]:r[l++]:a<o?t[a++]:r[l++];return e},ed=Kc,td=ae.match(/firefox\/(\d+)/i),rd=!!td&&+td[1],nd=/MSIE|Trident/.test(ae),od=ae.match(/AppleWebKit\/(\d+)\./),id=!!od&&+od[1],ad=ro,ld=O,sd=We,ud=qe,cd=fn,dd=_c,hd=So,fd=d,pd=ed,vd=oo,md=rd,gd=nd,bd=fe,yd=id,wd=[],Cd=ld(wd.sort),Ed=ld(wd.push),Sd=fd((function(){wd.sort(void 0)})),_d=fd((function(){wd.sort(null)})),Id=vd("sort"),Rd=!fd((function(){if(bd)return bd<70;if(!(md&&md>3)){if(gd)return!0;if(yd)return yd<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)wd.push({k:t+n,v:r})}for(wd.sort((function(e,t){return t.v-e.v})),n=0;n<wd.length;n++)t=wd[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));ad({target:"Array",proto:!0,forced:Sd||!_d||!Id||!Rd},{sort:function(e){void 0!==e&&sd(e);var t=ud(this);if(Rd)return void 0===e?Cd(t):Cd(t,e);var r,n,o=[],i=cd(t);for(n=0;n<i;n++)n in t&&Ed(o,t[n]);for(pd(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:hd(t)>hd(r)?1:-1}}(e)),r=cd(o),n=0;n<r;)t[n]=o[n++];for(;n<i;)dd(t,n++);return t}});var xd,Wd,Pd,kd={},Td=!d((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ad=Ye,Hd=K,Nd=qe,Od=Td,Fd=wr("IE_PROTO"),Ld=Object,Md=Ld.prototype,zd=Od?Ld.getPrototypeOf:function(e){var t=Nd(e);if(Ad(t,Fd))return t[Fd];var r=t.constructor;return Hd(r)&&t instanceof r?r.prototype:t instanceof Ld?Md:null},Ud=d,jd=K,$d=ee,Bd=zd,Dd=Qr,Vd=dt("iterator"),qd=!1;[].keys&&("next"in(Pd=[].keys())?(Wd=Bd(Bd(Pd)))!==Object.prototype&&(xd=Wd):qd=!0),(!$d(xd)||Ud((function(){var e={};return xd[Vd].call(e)!==e})))&&(xd={}),jd(xd[Vd])||Dd(xd,Vd,(function(){return this}));var Gd={IteratorPrototype:xd,BUGGY_SAFARI_ITERATORS:qd},Xd=Gd.IteratorPrototype,Yd=ci,Jd=S,Kd=Ui,Qd=kd,Zd=function(){return this},eh=function(e,t,r,n){var o=t+" Iterator";return e.prototype=Yd(Xd,{next:Jd(+!n,r)}),Kd(e,o,!1),Qd[o]=Zd,e},th=K,rh=String,nh=TypeError,oh=O,ih=$t,ah=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=oh(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return ih(r),function(e){if("object"==typeof e||th(e))return e;throw nh("Can't set "+rh(e)+" as a prototype")}(n),t?e(r,n):r.__proto__=n,r}}():void 0),lh=ro,sh=m,uh=K,ch=eh,dh=zd,hh=ah,fh=Ui,ph=Zt,vh=Qr,mh=kd,gh=ar.PROPER,bh=ar.CONFIGURABLE,yh=Gd.IteratorPrototype,wh=Gd.BUGGY_SAFARI_ITERATORS,Ch=dt("iterator"),Eh="keys",Sh="values",_h="entries",Ih=function(){return this},Rh=function(e,t,r,n,o,i,a){ch(r,t,n);var l,s,u,c=function(e){if(e===o&&v)return v;if(!wh&&e in f)return f[e];switch(e){case Eh:case Sh:case _h:return function(){return new r(this,e)}}return function(){return new r(this)}},d=t+" Iterator",h=!1,f=e.prototype,p=f[Ch]||f["@@iterator"]||o&&f[o],v=!wh&&p||c(o),m="Array"==t&&f.entries||p;if(m&&(l=dh(m.call(new e)))!==Object.prototype&&l.next&&(dh(l)!==yh&&(hh?hh(l,yh):uh(l[Ch])||vh(l,Ch,Ih)),fh(l,d,!0)),gh&&o==Sh&&p&&p.name!==Sh&&(bh?ph(f,"name",Sh):(h=!0,v=function(){return sh(p,this)})),o)if(s={values:c(Sh),keys:i?v:c(Eh),entries:c(_h)},a)for(u in s)(wh||h||!(u in f))&&vh(f,u,s[u]);else lh({target:t,proto:!0,forced:wh||h},s);return f[Ch]!==v&&vh(f,Ch,v,{name:o}),mh[t]=v,s},xh=function(e,t){return{value:e,done:t}},Wh=G,Ph=Bc,kh=kd,Th=Or,Ah=Lt.f,Hh=Rh,Nh=xh,Oh=h,Fh="Array Iterator",Lh=Th.set,Mh=Th.getterFor(Fh),zh=Hh(Array,"Array",(function(e,t){Lh(this,{type:Fh,target:Wh(e),index:0,kind:t})}),(function(){var e=Mh(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,Nh(void 0,!0)):Nh("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),Uh=kh.Arguments=kh.Array;if(Ph("keys"),Ph("values"),Ph("entries"),Oh&&"values"!==Uh.name)try{Ah(Uh,"name",{value:"values"})}catch(e){}var jh=O,$h=nn,Bh=So,Dh=D,Vh=jh("".charAt),qh=jh("".charCodeAt),Gh=jh("".slice),Xh=function(e){return function(t,r){var n,o,i=Bh(Dh(t)),a=$h(r),l=i.length;return a<0||a>=l?e?"":void 0:(n=qh(i,a))<55296||n>56319||a+1===l||(o=qh(i,a+1))<56320||o>57343?e?Vh(i,a):n:e?Gh(i,a,a+2):o-56320+(n-55296<<10)+65536}},Yh={codeAt:Xh(!1),charAt:Xh(!0)},Jh=Yh.charAt,Kh=So,Qh=Or,Zh=Rh,ef=xh,tf="String Iterator",rf=Qh.set,nf=Qh.getterFor(tf);Zh(String,"String",(function(e){rf(this,{type:tf,string:Kh(e),index:0})}),(function(){var e,t=nf(this),r=t.string,n=t.index;return n>=r.length?ef(void 0,!0):(e=Jh(r,n),t.index+=e.length,ef(e,!1))}));var of=It("span").classList,af=of&&of.constructor&&of.constructor.prototype,lf=af===Object.prototype?void 0:af,sf=u,uf={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},cf=lf,df=zh,hf=Zt,ff=dt,pf=ff("iterator"),vf=ff("toStringTag"),mf=df.values,gf=function(e,t){if(e){if(e[pf]!==mf)try{hf(e,pf,mf)}catch(t){e[pf]=mf}if(e[vf]||hf(e,vf,t),uf[t])for(var r in df)if(e[r]!==df[r])try{hf(e,r,df[r])}catch(t){e[r]=df[r]}}};for(var bf in uf)gf(sf[bf]&&sf[bf].prototype,bf);gf(cf,"DOMTokenList");var yf=d,wf=dt("iterator"),Cf=!yf((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[wf]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),Ef=er.exports,Sf=Lt,_f=ie,If=TypeError,Rf=function(e,t){if(_f(t,e))return e;throw If("Incorrect invocation")},xf=h,Wf=O,Pf=m,kf=d,Tf=Do,Af=Wn,Hf=g,Nf=qe,Of=U,Ff=Object.assign,Lf=Object.defineProperty,Mf=Wf([].concat),zf=!Ff||kf((function(){if(xf&&1!==Ff({b:1},Ff(Lf({},"a",{enumerable:!0,get:function(){Lf(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=Ff({},e)[r]||Tf(Ff({},t)).join("")!=n}))?function(e,t){for(var r=Nf(e),n=arguments.length,o=1,i=Af.f,a=Hf.f;n>o;)for(var l,s=Of(arguments[o++]),u=i?Mf(Tf(s),i(s)):Tf(s),c=u.length,d=0;c>d;)l=u[d++],xf&&!Pf(a,s,l)||(r[l]=s[l]);return r}:Ff,Uf=m,jf=$t,$f=Te,Bf=$t,Df=kd,Vf=dt("iterator"),qf=Array.prototype,Gf=wo,Xf=Te,Yf=j,Jf=kd,Kf=dt("iterator"),Qf=function(e){if(!Yf(e))return Xf(e,Kf)||Xf(e,"@@iterator")||Jf[Gf(e)]},Zf=m,ep=We,tp=$t,rp=_e,np=Qf,op=TypeError,ip=function(e,t){var r=arguments.length<2?np(e):t;if(ep(r))return tp(Zf(r,e));throw op(rp(e)+" is not iterable")},ap=Di,lp=m,sp=qe,up=function(e,t,r,n){try{return n?t(Bf(r)[0],r[1]):t(r)}catch(t){!function(e,t,r){var n,o;jf(e);try{if(!(n=$f(e,"return"))){if("throw"===t)throw r;return r}n=Uf(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;jf(n)}(e,"throw",t)}},cp=function(e){return void 0!==e&&(Df.Array===e||qf[Vf]===e)},dp=aa,hp=fn,fp=vi,pp=ip,vp=Qf,mp=Array,gp=O,bp=2147483647,yp=/[^\0-\u007E]/,wp=/[.\u3002\uFF0E\uFF61]/g,Cp="Overflow: input needs wider integers to process",Ep=RangeError,Sp=gp(wp.exec),_p=Math.floor,Ip=String.fromCharCode,Rp=gp("".charCodeAt),xp=gp([].join),Wp=gp([].push),Pp=gp("".replace),kp=gp("".split),Tp=gp("".toLowerCase),Ap=function(e){return e+22+75*(e<26)},Hp=function(e,t,r){var n=0;for(e=r?_p(e/700):e>>1,e+=_p(e/t);e>455;)e=_p(e/35),n+=36;return _p(n+36*e/(e+38))},Np=function(e){var t,r,n=[],o=(e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=Rp(e,r++);if(o>=55296&&o<=56319&&r<n){var i=Rp(e,r++);56320==(64512&i)?Wp(t,((1023&o)<<10)+(1023&i)+65536):(Wp(t,o),r--)}else Wp(t,o)}return t}(e)).length,i=128,a=0,l=72;for(t=0;t<e.length;t++)(r=e[t])<128&&Wp(n,Ip(r));var s=n.length,u=s;for(s&&Wp(n,"-");u<o;){var c=bp;for(t=0;t<e.length;t++)(r=e[t])>=i&&r<c&&(c=r);var d=u+1;if(c-i>_p((bp-a)/d))throw Ep(Cp);for(a+=(c-i)*d,i=c,t=0;t<e.length;t++){if((r=e[t])<i&&++a>bp)throw Ep(Cp);if(r==i){for(var h=a,f=36;;){var p=f<=l?1:f>=l+26?26:f-l;if(h<p)break;var v=h-p,m=36-p;Wp(n,Ip(Ap(p+v%m))),h=_p(v/m),f+=36}Wp(n,Ip(Ap(h))),l=Hp(a,d,u==s),a=0,u++}}a++,i++}return xp(n,"")},Op=TypeError,Fp=function(e,t){if(e<t)throw Op("Not enough arguments");return e},Lp=Qr,Mp=ro,zp=u,Up=m,jp=O,$p=h,Bp=Cf,Dp=Qr,Vp=Ui,qp=eh,Gp=Or,Xp=Rf,Yp=K,Jp=Ye,Kp=Di,Qp=wo,Zp=$t,ev=ee,tv=So,rv=ci,nv=S,ov=ip,iv=Qf,av=Fp,lv=ed,sv=dt("iterator"),uv="URLSearchParams",cv="URLSearchParamsIterator",dv=Gp.set,hv=Gp.getterFor(uv),fv=Gp.getterFor(cv),pv=Object.getOwnPropertyDescriptor,vv=function(e){if(!$p)return zp[e];var t=pv(zp,e);return t&&t.value},mv=vv("fetch"),gv=vv("Request"),bv=vv("Headers"),yv=gv&&gv.prototype,wv=bv&&bv.prototype,Cv=zp.RegExp,Ev=zp.TypeError,Sv=zp.decodeURIComponent,_v=zp.encodeURIComponent,Iv=jp("".charAt),Rv=jp([].join),xv=jp([].push),Wv=jp("".replace),Pv=jp([].shift),kv=jp([].splice),Tv=jp("".split),Av=jp("".slice),Hv=/\+/g,Nv=Array(4),Ov=function(e){return Nv[e-1]||(Nv[e-1]=Cv("((?:%[\\da-f]{2}){"+e+"})","gi"))},Fv=function(e){try{return Sv(e)}catch(t){return e}},Lv=function(e){var t=Wv(e,Hv," "),r=4;try{return Sv(t)}catch(e){for(;r;)t=Wv(t,Ov(r--),Fv);return t}},Mv=/[!'()~]|%20/g,zv={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Uv=function(e){return zv[e]},jv=function(e){return Wv(_v(e),Mv,Uv)},$v=qp((function(e,t){dv(this,{type:cv,iterator:ov(hv(e).entries),kind:t})}),"Iterator",(function(){var e=fv(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),Bv=function(e){this.entries=[],this.url=null,void 0!==e&&(ev(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Iv(e,0)?Av(e,1):e:tv(e)))};Bv.prototype={type:uv,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,l,s=iv(e);if(s)for(r=(t=ov(e,s)).next;!(n=Up(r,t)).done;){if(i=(o=ov(Zp(n.value))).next,(a=Up(i,o)).done||(l=Up(i,o)).done||!Up(i,o).done)throw Ev("Expected sequence with length 2");xv(this.entries,{key:tv(a.value),value:tv(l.value)})}else for(var u in e)Jp(e,u)&&xv(this.entries,{key:u,value:tv(e[u])})},parseQuery:function(e){if(e)for(var t,r,n=Tv(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=Tv(t,"="),xv(this.entries,{key:Lv(Pv(r)),value:Lv(Rv(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],xv(r,jv(e.key)+"="+jv(e.value));return Rv(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Dv=function(){Xp(this,Vv);var e=arguments.length>0?arguments[0]:void 0;dv(this,new Bv(e))},Vv=Dv.prototype;if(function(e,t,r){for(var n in t)Lp(e,n,t[n],r)}(Vv,{append:function(e,t){av(arguments.length,2);var r=hv(this);xv(r.entries,{key:tv(e),value:tv(t)}),r.updateURL()},delete:function(e){av(arguments.length,1);for(var t=hv(this),r=t.entries,n=tv(e),o=0;o<r.length;)r[o].key===n?kv(r,o,1):o++;t.updateURL()},get:function(e){av(arguments.length,1);for(var t=hv(this).entries,r=tv(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){av(arguments.length,1);for(var t=hv(this).entries,r=tv(e),n=[],o=0;o<t.length;o++)t[o].key===r&&xv(n,t[o].value);return n},has:function(e){av(arguments.length,1);for(var t=hv(this).entries,r=tv(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){av(arguments.length,1);for(var r,n=hv(this),o=n.entries,i=!1,a=tv(e),l=tv(t),s=0;s<o.length;s++)(r=o[s]).key===a&&(i?kv(o,s--,1):(i=!0,r.value=l));i||xv(o,{key:a,value:l}),n.updateURL()},sort:function(){var e=hv(this);lv(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=hv(this).entries,n=Kp(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new $v(this,"keys")},values:function(){return new $v(this,"values")},entries:function(){return new $v(this,"entries")}},{enumerable:!0}),Dp(Vv,sv,Vv.entries,{name:"entries"}),Dp(Vv,"toString",(function(){return hv(this).serialize()}),{enumerable:!0}),Vp(Dv,uv),Mp({global:!0,constructor:!0,forced:!Bp},{URLSearchParams:Dv}),!Bp&&Yp(bv)){var qv=jp(wv.has),Gv=jp(wv.set),Xv=function(e){if(ev(e)){var t,r=e.body;if(Qp(r)===uv)return t=e.headers?new bv(e.headers):new bv,qv(t,"content-type")||Gv(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),rv(e,{body:nv(0,tv(r)),headers:nv(0,t)})}return e};if(Yp(mv)&&Mp({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return mv(e,arguments.length>1?Xv(arguments[1]):{})}}),Yp(gv)){var Yv=function(e){return Xp(this,yv),new gv(e,arguments.length>1?Xv(arguments[1]):{})};yv.constructor=Yv,Yv.prototype=yv,Mp({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Yv})}}var Jv,Kv=ro,Qv=h,Zv=Cf,em=u,tm=Di,rm=O,nm=Qr,om=function(e,t,r){return r.get&&Ef(r.get,t,{getter:!0}),r.set&&Ef(r.set,t,{setter:!0}),Sf.f(e,t,r)},im=Rf,am=Ye,lm=zf,sm=function(e){var t=sp(e),r=dp(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=ap(o,n>2?arguments[2]:void 0));var a,l,s,u,c,d,h=vp(t),f=0;if(!h||this===mp&&cp(h))for(a=hp(t),l=r?new this(a):mp(a);a>f;f++)d=i?o(t[f],f):t[f],fp(l,f,d);else for(c=(u=pp(t,h)).next,l=r?new this:[];!(s=lp(c,u)).done;f++)d=i?up(u,o,[s.value,f],!0):s.value,fp(l,f,d);return l.length=f,l},um=Ci,cm=Yh.codeAt,dm=So,hm=Ui,fm=Fp,pm={URLSearchParams:Dv,getState:hv},vm=Or,mm=vm.set,gm=vm.getterFor("URL"),bm=pm.URLSearchParams,ym=pm.getState,wm=em.URL,Cm=em.TypeError,Em=em.parseInt,Sm=Math.floor,_m=Math.pow,Im=rm("".charAt),Rm=rm(/./.exec),xm=rm([].join),Wm=rm(1..toString),Pm=rm([].pop),km=rm([].push),Tm=rm("".replace),Am=rm([].shift),Hm=rm("".split),Nm=rm("".slice),Om=rm("".toLowerCase),Fm=rm([].unshift),Lm="Invalid scheme",Mm="Invalid host",zm="Invalid port",Um=/[a-z]/i,jm=/[\d+-.a-z]/i,$m=/\d/,Bm=/^0x/i,Dm=/^[0-7]+$/,Vm=/^\d+$/,qm=/^[\da-f]+$/i,Gm=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Xm=/[\0\t\n\r #/:<>?@[\\\]^|]/,Ym=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,Jm=/[\t\n\r]/g,Km=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)Fm(t,e%256),e=Sm(e/256);return xm(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=Wm(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Qm={},Zm=lm({},Qm,{" ":1,'"':1,"<":1,">":1,"`":1}),eg=lm({},Zm,{"#":1,"?":1,"{":1,"}":1}),tg=lm({},eg,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),rg=function(e,t){var r=cm(e,0);return r>32&&r<127&&!am(t,e)?e:encodeURIComponent(e)},ng={ftp:21,file:null,http:80,https:443,ws:80,wss:443},og=function(e,t){var r;return 2==e.length&&Rm(Um,Im(e,0))&&(":"==(r=Im(e,1))||!t&&"|"==r)},ig=function(e){var t;return e.length>1&&og(Nm(e,0,2))&&(2==e.length||"/"===(t=Im(e,2))||"\\"===t||"?"===t||"#"===t)},ag=function(e){return"."===e||"%2e"===Om(e)},lg={},sg={},ug={},cg={},dg={},hg={},fg={},pg={},vg={},mg={},gg={},bg={},yg={},wg={},Cg={},Eg={},Sg={},_g={},Ig={},Rg={},xg={},Wg=function(e,t,r){var n,o,i,a=dm(e);if(t){if(o=this.parse(a))throw Cm(o);this.searchParams=null}else{if(void 0!==r&&(n=new Wg(r,!0)),o=this.parse(a,null,n))throw Cm(o);(i=ym(new bm)).bindURL(this),this.searchParams=i}};Wg.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,l,s=this,u=t||lg,c=0,d="",h=!1,f=!1,p=!1;for(e=dm(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=Tm(e,Ym,"")),e=Tm(e,Jm,""),n=sm(e);c<=n.length;){switch(o=n[c],u){case lg:if(!o||!Rm(Um,o)){if(t)return Lm;u=ug;continue}d+=Om(o),u=sg;break;case sg:if(o&&(Rm(jm,o)||"+"==o||"-"==o||"."==o))d+=Om(o);else{if(":"!=o){if(t)return Lm;d="",u=ug,c=0;continue}if(t&&(s.isSpecial()!=am(ng,d)||"file"==d&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=d,t)return void(s.isSpecial()&&ng[s.scheme]==s.port&&(s.port=null));d="","file"==s.scheme?u=wg:s.isSpecial()&&r&&r.scheme==s.scheme?u=cg:s.isSpecial()?u=pg:"/"==n[c+1]?(u=dg,c++):(s.cannotBeABaseURL=!0,km(s.path,""),u=Ig)}break;case ug:if(!r||r.cannotBeABaseURL&&"#"!=o)return Lm;if(r.cannotBeABaseURL&&"#"==o){s.scheme=r.scheme,s.path=um(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,u=xg;break}u="file"==r.scheme?wg:hg;continue;case cg:if("/"!=o||"/"!=n[c+1]){u=hg;continue}u=vg,c++;break;case dg:if("/"==o){u=mg;break}u=_g;continue;case hg:if(s.scheme=r.scheme,o==Jv)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=um(r.path),s.query=r.query;else if("/"==o||"\\"==o&&s.isSpecial())u=fg;else if("?"==o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=um(r.path),s.query="",u=Rg;else{if("#"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=um(r.path),s.path.length--,u=_g;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=um(r.path),s.query=r.query,s.fragment="",u=xg}break;case fg:if(!s.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,u=_g;continue}u=mg}else u=vg;break;case pg:if(u=vg,"/"!=o||"/"!=Im(d,c+1))continue;c++;break;case vg:if("/"!=o&&"\\"!=o){u=mg;continue}break;case mg:if("@"==o){h&&(d="%40"+d),h=!0,i=sm(d);for(var v=0;v<i.length;v++){var m=i[v];if(":"!=m||p){var g=rg(m,tg);p?s.password+=g:s.username+=g}else p=!0}d=""}else if(o==Jv||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(h&&""==d)return"Invalid authority";c-=sm(d).length+1,d="",u=gg}else d+=o;break;case gg:case bg:if(t&&"file"==s.scheme){u=Eg;continue}if(":"!=o||f){if(o==Jv||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(s.isSpecial()&&""==d)return Mm;if(t&&""==d&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(d))return a;if(d="",u=Sg,t)return;continue}"["==o?f=!0:"]"==o&&(f=!1),d+=o}else{if(""==d)return Mm;if(a=s.parseHost(d))return a;if(d="",u=yg,t==bg)return}break;case yg:if(!Rm($m,o)){if(o==Jv||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()||t){if(""!=d){var b=Em(d,10);if(b>65535)return zm;s.port=s.isSpecial()&&b===ng[s.scheme]?null:b,d=""}if(t)return;u=Sg;continue}return zm}d+=o;break;case wg:if(s.scheme="file","/"==o||"\\"==o)u=Cg;else{if(!r||"file"!=r.scheme){u=_g;continue}if(o==Jv)s.host=r.host,s.path=um(r.path),s.query=r.query;else if("?"==o)s.host=r.host,s.path=um(r.path),s.query="",u=Rg;else{if("#"!=o){ig(xm(um(n,c),""))||(s.host=r.host,s.path=um(r.path),s.shortenPath()),u=_g;continue}s.host=r.host,s.path=um(r.path),s.query=r.query,s.fragment="",u=xg}}break;case Cg:if("/"==o||"\\"==o){u=Eg;break}r&&"file"==r.scheme&&!ig(xm(um(n,c),""))&&(og(r.path[0],!0)?km(s.path,r.path[0]):s.host=r.host),u=_g;continue;case Eg:if(o==Jv||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&og(d))u=_g;else if(""==d){if(s.host="",t)return;u=Sg}else{if(a=s.parseHost(d))return a;if("localhost"==s.host&&(s.host=""),t)return;d="",u=Sg}continue}d+=o;break;case Sg:if(s.isSpecial()){if(u=_g,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=Jv&&(u=_g,"/"!=o))continue}else s.fragment="",u=xg;else s.query="",u=Rg;break;case _g:if(o==Jv||"/"==o||"\\"==o&&s.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(l=Om(l=d))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(s.shortenPath(),"/"==o||"\\"==o&&s.isSpecial()||km(s.path,"")):ag(d)?"/"==o||"\\"==o&&s.isSpecial()||km(s.path,""):("file"==s.scheme&&!s.path.length&&og(d)&&(s.host&&(s.host=""),d=Im(d,0)+":"),km(s.path,d)),d="","file"==s.scheme&&(o==Jv||"?"==o||"#"==o))for(;s.path.length>1&&""===s.path[0];)Am(s.path);"?"==o?(s.query="",u=Rg):"#"==o&&(s.fragment="",u=xg)}else d+=rg(o,eg);break;case Ig:"?"==o?(s.query="",u=Rg):"#"==o?(s.fragment="",u=xg):o!=Jv&&(s.path[0]+=rg(o,Qm));break;case Rg:t||"#"!=o?o!=Jv&&("'"==o&&s.isSpecial()?s.query+="%27":s.query+="#"==o?"%23":rg(o,Qm)):(s.fragment="",u=xg);break;case xg:o!=Jv&&(s.fragment+=rg(o,Zm))}c++}},parseHost:function(e){var t,r,n;if("["==Im(e,0)){if("]"!=Im(e,e.length-1))return Mm;if(!(t=function(e){var t,r,n,o,i,a,l,s=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,h=function(){return Im(e,d)};if(":"==h()){if(":"!=Im(e,1))return;d+=2,c=++u}for(;h();){if(8==u)return;if(":"!=h()){for(t=r=0;r<4&&Rm(qm,h());)t=16*t+Em(h(),16),d++,r++;if("."==h()){if(0==r)return;if(d-=r,u>6)return;for(n=0;h();){if(o=null,n>0){if(!("."==h()&&n<4))return;d++}if(!Rm($m,h()))return;for(;Rm($m,h());){if(i=Em(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;d++}s[u]=256*s[u]+o,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==h()){if(d++,!h())return}else if(h())return;s[u++]=t}else{if(null!==c)return;d++,c=++u}}if(null!==c)for(a=u-c,u=7;0!=u&&a>0;)l=s[u],s[u--]=s[c+a-1],s[c+--a]=l;else if(8!=u)return;return s}(Nm(e,1,-1))))return Mm;this.host=t}else if(this.isSpecial()){if(e=function(e){var t,r,n=[],o=kp(Pp(Tp(e),wp,"."),".");for(t=0;t<o.length;t++)r=o[t],Wp(n,Sp(yp,r)?"xn--"+Np(r):r);return xp(n,".")}(e),Rm(Gm,e))return Mm;if(null===(t=function(e){var t,r,n,o,i,a,l,s=Hm(e,".");if(s.length&&""==s[s.length-1]&&s.length--,(t=s.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=s[n]))return e;if(i=10,o.length>1&&"0"==Im(o,0)&&(i=Rm(Bm,o)?16:8,o=Nm(o,8==i?1:2)),""===o)a=0;else{if(!Rm(10==i?Vm:8==i?Dm:qm,o))return e;a=Em(o,i)}km(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=_m(256,5-t))return null}else if(a>255)return null;for(l=Pm(r),n=0;n<r.length;n++)l+=r[n]*_m(256,3-n);return l}(e)))return Mm;this.host=t}else{if(Rm(Xm,e))return Mm;for(t="",r=sm(e),n=0;n<r.length;n++)t+=rg(r[n],Qm);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return am(ng,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&og(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,l=e.query,s=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=Km(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+xm(a,"/"):"",null!==l&&(u+="?"+l),null!==s&&(u+="#"+s),u},setHref:function(e){var t=this.parse(e);if(t)throw Cm(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Pg(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Km(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(dm(e)+":",lg)},getUsername:function(){return this.username},setUsername:function(e){var t=sm(dm(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=rg(t[r],tg)}},getPassword:function(){return this.password},setPassword:function(e){var t=sm(dm(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=rg(t[r],tg)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Km(e):Km(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,gg)},getHostname:function(){var e=this.host;return null===e?"":Km(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,bg)},getPort:function(){var e=this.port;return null===e?"":dm(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=dm(e))?this.port=null:this.parse(e,yg))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+xm(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Sg))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=dm(e))?this.query=null:("?"==Im(e,0)&&(e=Nm(e,1)),this.query="",this.parse(e,Rg)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=dm(e))?("#"==Im(e,0)&&(e=Nm(e,1)),this.fragment="",this.parse(e,xg)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Pg=function(e){var t=im(this,kg),r=fm(arguments.length,1)>1?arguments[1]:void 0,n=mm(t,new Wg(e,!1,r));Qv||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},kg=Pg.prototype,Tg=function(e,t){return{get:function(){return gm(this)[e]()},set:t&&function(e){return gm(this)[t](e)},configurable:!0,enumerable:!0}};if(Qv&&(om(kg,"href",Tg("serialize","setHref")),om(kg,"origin",Tg("getOrigin")),om(kg,"protocol",Tg("getProtocol","setProtocol")),om(kg,"username",Tg("getUsername","setUsername")),om(kg,"password",Tg("getPassword","setPassword")),om(kg,"host",Tg("getHost","setHost")),om(kg,"hostname",Tg("getHostname","setHostname")),om(kg,"port",Tg("getPort","setPort")),om(kg,"pathname",Tg("getPathname","setPathname")),om(kg,"search",Tg("getSearch","setSearch")),om(kg,"searchParams",Tg("getSearchParams")),om(kg,"hash",Tg("getHash","setHash"))),nm(kg,"toJSON",(function(){return gm(this).serialize()}),{enumerable:!0}),nm(kg,"toString",(function(){return gm(this).serialize()}),{enumerable:!0}),wm){var Ag=wm.createObjectURL,Hg=wm.revokeObjectURL;Ag&&nm(Pg,"createObjectURL",tm(Ag,wm)),Hg&&nm(Pg,"revokeObjectURL",tm(Hg,wm))}hm(Pg,"URL"),Kv({global:!0,constructor:!0,forced:!Zv,sham:!Qv},{URL:Pg});var Ng=O,Og=Qr,Fg=Eu,Lg=d,Mg=dt,zg=Zt,Ug=Mg("species"),jg=RegExp.prototype,$g=Yh.charAt,Bg=O,Dg=qe,Vg=Math.floor,qg=Bg("".charAt),Gg=Bg("".replace),Xg=Bg("".slice),Yg=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Jg=/\$([$&'`]|\d{1,2})/g,Kg=m,Qg=$t,Zg=K,eb=A,tb=Eu,rb=TypeError,nb=Dl,ob=m,ib=O,ab=d,lb=$t,sb=K,ub=j,cb=nn,db=dn,hb=So,fb=D,pb=function(e,t,r){return t+(r?$g(e,t).length:1)},vb=Te,mb=function(e,t,r,n,o,i){var a=r+e.length,l=n.length,s=Jg;return void 0!==o&&(o=Dg(o),s=Yg),Gg(i,s,(function(i,s){var u;switch(qg(s,0)){case"$":return"$";case"&":return e;case"`":return Xg(t,0,r);case"'":return Xg(t,a);case"<":u=o[Xg(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>l){var d=Vg(c/10);return 0===d?i:d<=l?void 0===n[d-1]?qg(s,1):n[d-1]+qg(s,1):i}u=n[c-1]}return void 0===u?"":u}))},gb=function(e,t){var r=e.exec;if(Zg(r)){var n=Kg(r,e,t);return null!==n&&Qg(n),n}if("RegExp"===eb(e))return Kg(tb,e,t);throw rb("RegExp#exec called on incompatible receiver")},bb=dt("replace"),yb=Math.max,wb=Math.min,Cb=ib([].concat),Eb=ib([].push),Sb=ib("".indexOf),_b=ib("".slice),Ib="$0"==="a".replace(/./,"$0"),Rb=!!/./[bb]&&""===/./[bb]("a","$0");!function(e,t,r,n){var o=Mg(e),i=!Lg((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Lg((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Ug]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var l=Ng(/./[o]),s=t(o,""[e],(function(e,t,r,n,o){var a=Ng(e),s=t.exec;return s===Fg||s===jg.exec?i&&!o?{done:!0,value:l(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));Og(String.prototype,e,s[0]),Og(jg,o,s[1])}n&&zg(jg[o],"sham",!0)}("replace",(function(e,t,r){var n=Rb?"$":"$0";return[function(e,r){var n=fb(this),o=ub(e)?void 0:vb(e,bb);return o?ob(o,e,n,r):ob(t,hb(n),e,r)},function(e,o){var i=lb(this),a=hb(e);if("string"==typeof o&&-1===Sb(o,n)&&-1===Sb(o,"$<")){var l=r(t,i,a,o);if(l.done)return l.value}var s=sb(o);s||(o=hb(o));var u=i.global;if(u){var c=i.unicode;i.lastIndex=0}for(var d=[];;){var h=gb(i,a);if(null===h)break;if(Eb(d,h),!u)break;""===hb(h[0])&&(i.lastIndex=pb(a,db(i.lastIndex),c))}for(var f,p="",v=0,m=0;m<d.length;m++){for(var g=hb((h=d[m])[0]),b=yb(wb(cb(h.index),a.length),0),y=[],w=1;w<h.length;w++)Eb(y,void 0===(f=h[w])?f:String(f));var C=h.groups;if(s){var E=Cb([g],y,b,a);void 0!==C&&Eb(E,C);var S=hb(nb(o,void 0,E))}else S=mb(g,a,b,y,C,o);b>=v&&(p+=_b(a,v,b)+S,v=b+g.length)}return p+_b(a,v)}]}),!!ab((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Ib||Rb);var xb=Array.prototype.indexOf,Wb=function(e,t){for(var r=0,n=e.length;r>=0&&r<n;r+=1)if(t(e[r],r,e))return e[r]},Pb=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")},kb=zf;function Tb(){var e=[];return Object.assign(e,Tb.prototype),e.initialize.apply(e,arguments),e}ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==kb},{assign:kb}),Tb.prototype=[],Tb.prototype.initialize=function(e){e=e||{},this.sortColumn=null==e.sortColumn?[]:e.sortColumn},Tb.prototype.add=function(e,t){var r,n;if("splice"in e&&"length"in e)if("number"==typeof t)for(r=0,n=e.length;r<n;r++)this.splice(t++,0,e[r]);else for(r=0,n=e.length;r<n;r++)this.push(e[r]);else"number"==typeof t?this.splice(t,0,e):this.push(e)},Tb.prototype.reset=function(e){this.length=0,e&&this.add(e)},Tb.prototype.filteredCollection=function(e,t){if(e&&t){for(var r,n=new Tb({sortColumn:this.sortColumn}),o=0,i=this.length;o<i;o++)e(r=this[o],t)&&(r.__i=o,n.push(r));return n}return null},Tb.prototype.onComparatorRequired=null,Tb.prototype.onSort=null;var Ab=Tb.prototype.sort;function Hb(e,t){var r=e.column,n=e.comparePath||r;"string"==typeof n&&(n=n.split("."));var o,i=n.length,a=i>1,l=t?1:-1,s=t?-1:1;return function(e,t){var r=e[n[0]],u=t[n[0]];if(a)for(o=1;o<i;o++)r=r&&r[n[o]],u=u&&u[n[o]];return r===u?0:null==r?l:null==u?s:r<u?l:s}}function Nb(){var e=[];return Object.assign(e,Nb.prototype),e.initialize.apply(e,arguments),e}Tb.prototype.sort=function(e){var t;if(this.sortColumn.length){for(var r=[],n=0;n<this.sortColumn.length;n++){t=null;var o=Hb(this.sortColumn[n],this.sortColumn[n].descending);this.onComparatorRequired&&(t=this.onComparatorRequired(this.sortColumn[n].column,this.sortColumn[n].descending,o)),t||(t=o),r.push(t.bind(this))}if(1===r.length)t=r[0],Ab.call(this,t);else{var i,a=r.length;t=function(e,t){for(var n=0;n<a;n++)if(0!==(i=r[n](e,t)))return i;return i},Ab.call(this,t)}e||this.onSort&&this.onSort(t)}return t},Nb.prototype=[],Nb.prototype.initialize=function(){},Nb.prototype.get=function(e){for(var t=0,r=this.length;t<r;t++)if(this[t].name===e)return this[t];return null},Nb.prototype.indexOf=function(e){for(var t=0,r=this.length;t<r;t++)if(this[t].name===e)return t;return-1},Nb.prototype.getByOrder=function(e){for(var t=0,r=this.length;t<r;t++)if(this[t].order===e)return this[t];return null},Nb.prototype.normalizeOrder=function(){var e,t=[];for(e=0;e<this.length;e++)t.push(this[e]);for(t.sort((function(e,t){return e.order<t.order?-1:e.order>t.order?1:0})),e=0;e<t.length;e++)t[e].order=e;return this},Nb.prototype.getColumns=function(){for(var e,t=[],r=0;r<this.length;r++)e=this[r],t.push(e);return t.sort((function(e,t){return e.order<t.order?-1:e.order>t.order?1:0})),t},Nb.prototype.getVisibleColumns=function(){for(var e,t=[],r=0;r<this.length;r++)(e=this[r]).visible&&t.push(e);return t.sort((function(e,t){return e.order<t.order?-1:e.order>t.order?1:0})),t},Nb.prototype.getMaxOrder=function(){for(var e,t=0,r=0;r<this.length;r++)(e=this[r]).order>t&&(t=e.order);return t},Nb.prototype.moveColumn=function(e,t){if(e&&t){var r,n=e.order,o=t.order;if(n<o)for(r=n+1;r<=o;r++)this.getByOrder(r).order--;else for(r=n-1;r>=o;r--)this.getByOrder(r).order++;e.order=o}return this};var Ob=m,Fb=Ye,Lb=ie,Mb=Ds,zb=RegExp.prototype,Ub=ar.PROPER,jb=Qr,$b=$t,Bb=So,Db=d,Vb="toString",qb=RegExp.prototype.toString,Gb=Db((function(){return"/a/b"!=qb.call({source:"a",flags:"b"})})),Xb=Ub&&qb.name!=Vb;(Gb||Xb)&&jb(RegExp.prototype,Vb,(function(){var e=$b(this);return"/"+Bb(e.source)+"/"+Bb(function(e){var t=e.flags;return void 0!==t||"flags"in zb||Fb(e,"flags")||!Lb(zb,e)?t:Ob(Mb,e)}(e))}),{unsafe:!0});var Yb=function(){function e(){o(this,e)}return a(e,null,[{key:"saveSelection",value:function(e){var t=window.getSelection().getRangeAt(0);if(e!==t.commonAncestorContainer&&!function(e,t){for(;(e=e.parentNode)&&e!==t;);return!!e}(t.commonAncestorContainer,e))return null;var r=t.cloneRange();r.selectNodeContents(e),r.setEnd(t.startContainer,t.startOffset);var n=r.toString().length;return{start:n,end:n+t.toString().length}}},{key:"restoreSelection",value:function(e,t){var r,n=0,o=[e],i=!1,a=!1,l=document.createRange();for(l.setStart(e,0),l.collapse(!0);!a&&(r=o.pop());)if(3===r.nodeType){var s=n+r.length;!i&&t.start>=n&&t.start<=s&&(l.setStart(r,t.start-n),i=!0),i&&t.end>=n&&t.end<=s&&(l.setEnd(r,t.end-n),a=!0),n=s}else for(var u=r.childNodes.length;u--;)o.push(r.childNodes[u]);var c=window.getSelection();c.removeAllRanges(),c.addRange(l)}}]),e}(),Jb=K,Kb=ee,Qb=ah,Zb=O(1..valueOf),ey=h,ty=u,ry=O,ny=Xn,oy=Qr,iy=Ye,ay=function(e,t,r){var n,o;return Qb&&Jb(n=t.constructor)&&n!==r&&Kb(o=n.prototype)&&o!==r.prototype&&Qb(e,o),e},ly=ie,sy=Ee,uy=bt,cy=d,dy=Zr.f,hy=c.f,fy=Lt.f,py=Zb,vy=To.trim,my="Number",gy=ty.Number,by=gy.prototype,yy=ty.TypeError,wy=ry("".slice),Cy=ry("".charCodeAt),Ey=function(e){var t=uy(e,"number");return"bigint"==typeof t?t:Sy(t)},Sy=function(e){var t,r,n,o,i,a,l,s,u=uy(e,"number");if(sy(u))throw yy("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=vy(u),43===(t=Cy(u,0))||45===t){if(88===(r=Cy(u,2))||120===r)return NaN}else if(48===t){switch(Cy(u,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+u}for(a=(i=wy(u,2)).length,l=0;l<a;l++)if((s=Cy(i,l))<48||s>o)return NaN;return parseInt(i,n)}return+u};if(ny(my,!gy(" 0o1")||!gy("0b1")||gy("+0x1"))){for(var _y,Iy=function(e){var t=arguments.length<1?0:gy(Ey(e)),r=this;return ly(by,r)&&cy((function(){py(r)}))?ay(Object(t),r,Iy):t},Ry=ey?dy(gy):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),xy=0;Ry.length>xy;xy++)iy(gy,_y=Ry[xy])&&!iy(Iy,_y)&&fy(Iy,_y,hy(gy,_y));Iy.prototype=by,by.constructor=Iy,oy(ty,my,Iy,{constructor:!0})}var Wy=Object.prototype.hasOwnProperty,Py=void 0!==Element.prototype.insertAdjacentElement;function ky(e,t,r){t?!1===Py||e instanceof DocumentFragment?r.insertBefore(e,t):t.insertAdjacentElement("beforebegin",e):r.appendChild(e)}function Ty(e,t,r,n){return e.parentNode!==n?(t||(t=document.createDocumentFragment()),t.appendChild(e)):(t&&t.childNodes.length>0&&(ky(t,r,n),t=null),e.nextSibling!==r&&ky(e,r,n)),t}var Ay=function(){function e(t){var r;o(this,e);var n=this._p={list:t.list||null,hookScrollEvent:void 0===t.hookScrollEvent||!!t.hookScrollEvent,count:t.count||0,virtual:void 0===t.virtual||!!t.virtual,userItemsParent:t.itemsParent||null,setVirtualWrapperWidth:null===(r=t.autoVirtualWrapperWidth)||void 0===r||r,estimatedItemHeight:20,buffer:5,itemHeightEstimatorFn:null,itemElementCreatorFn:Oy,onItemRender:null,onItemUnrender:null,virtualWrapper:null,currentItemsParent:null,cachedItemHeights:[],cachedItemEstimatedHeights:[],cachedItemPositions:[],itemPositionsNeedsUpdate:0,boundRender:this.render.bind(this),existingEls:[]};n.currentItemsParent=n.userItemsParent||n.list,"boolean"==typeof t.hookScrollEvent?this.setHookScrollEvent(t.hookScrollEvent):this._hookEvents(),"number"==typeof t.count&&this.setCount(t.count),"boolean"==typeof t.virtual&&this.setVirtual(t.virtual),"number"==typeof t.estimatedItemHeight&&this.setEstimatedItemHeight(t.estimatedItemHeight),"number"==typeof t.buffer&&this.setBuffer(t.buffer),"function"==typeof t.itemHeightEstimatorFn&&this.setItemHeightEstimatorFn(t.itemHeightEstimatorFn),"function"==typeof t.itemElementCreatorFn&&this.setItemElementCreatorFn(t.itemElementCreatorFn),"function"==typeof t.onItemRender&&this.setOnItemRender(t.onItemRender),"function"==typeof t.onItemUnrender&&this.setOnItemUnrender(t.onItemUnrender)}return a(e,[{key:"destroy",value:function(){this._unhookEvents().invalidate()._destroyElements()}},{key:"setHookScrollEvent",value:function(e){var t=this._p;return e=void 0===e||!!e,t.hookScrollEvent===e||(t.hookScrollEvent=e,this._unhookEvents()._hookEvents()),this}},{key:"isHookScrollEventEnabled",value:function(){return this._p.hookScrollEvent}},{key:"setCount",value:function(e){return this._p.count=e,this.invalidatePositions()}},{key:"getCount",value:function(){return this._p.count}},{key:"setVirtual",value:function(e){var t=this._p;return e=void 0===e||!!e,t.virtual===e||(t.virtual=e,this._hookEvents().invalidate()._destroyElements()),this}},{key:"isVirtual",value:function(){return this._p.virtual}},{key:"setEstimatedItemHeight",value:function(e){return this._p.estimatedItemHeight=Math.abs(("number"==typeof e?e:Number(e))||20),this}},{key:"getEstimatedItemHeight",value:function(){return this._p.estimatedItemHeight}},{key:"setAutoVirtualWrapperWidth",value:function(e){var t=this._p;return t.autoVirtualWrapperWidth=void 0===e||!!e,t.virtualWrapper&&t.autoVirtualWrapperWidth!==t.virtualWrapperWidthWasSet&&(t.virtualWrapper.style.width=t.autoVirtualWrapperWidth?"100%":"",t.virtualWrapperWidthWasSet=t.autoVirtualWrapperWidth),this}},{key:"isAutoVirtualWrapperWidth",value:function(){return this._p.autoVirtualWrapperWidth}},{key:"setBuffer",value:function(e){return this._p.buffer=Math.abs("number"==typeof e?e:Number(e)||5),this}},{key:"getBuffer",value:function(){return this._p.buffer}},{key:"setItemHeightEstimatorFn",value:function(e){return this._p.itemHeightEstimatorFn=e,this}},{key:"setItemElementCreatorFn",value:function(e){return this._p.itemElementCreatorFn=e||Oy,this}},{key:"setOnItemRender",value:function(e){return this._p.onItemRender=e,this}},{key:"setOnItemUnrender",value:function(e){return this._p.onItemUnrender=e,this}},{key:"estimateFullHeight",value:function(){var e=this._p;if(0===e.count)return 0;if(e.virtual)return this._calculateItemPosition(e.count)||0;var t=e.existingEls;if(e.count===t.length){var r=t[0].getBoundingClientRect(),n=t[t.length-1].getBoundingClientRect();return n.top-r.top+n.height}return this._calculateItemPosition(e.count)||0}},{key:"invalidatePositions",value:function(){var e=this._p;return e.itemPositionsNeedsUpdate=0,e.cachedItemHeights=[],e.cachedItemEstimatedHeights=[],e.cachedItemPositions=[],e.cachedItemHeights.length=e.count,e.cachedItemEstimatedHeights.length=e.count,e.cachedItemPositions.length=e.count,this}},{key:"invalidate",value:function(){var e=this._p;this.invalidatePositions();for(var t=e.onItemUnrender,r=e.existingEls,n=0;n<r.length;n++){var o=r[n];void 0!==o[Hy]&&(t&&t(o),delete o[Hy])}return this}},{key:"render",value:function(){var e=this,t=this._p,r=t.list,n=t.virtual,o=t.virtualWrapper,i=t.currentItemsParent,a=r.scrollTop,l=a+r.clientHeight,s=t.count,u=t.buffer,c=t.onItemUnrender,d=t.existingEls,h=d.length;if(n){var f=r.clientWidth;o||((o=t.virtualWrapper=t.userItemsParent)||(o=t.virtualWrapper=document.createElement("div"),r.appendChild(o)),this._resetCurrentItemsParent(),i=t.currentItemsParent,t.autoVirtualWrapperWidth?(o.style.width="100%",t.virtualWrapperWidthWasSet=!0):t.virtualWrapperWidthWasSet=!1);for(var p=0;p<h;p++)d[p][Ny]=!0;this._calculateItemPosition(t.count-1);for(var v=this._getExistingElsRange(),m=Fy(t.cachedItemPositions,a),g=Math.max(0,m-u),b=g,y=this._calculateItemPosition(b),w=u,C=Math.max(b,Fy(t.cachedItemPositions,l-1)+1+u),E=[],S=null,_=o.childNodes[0],I=function(e){var t=void 0;return-1!==v.firstIndex&&e>=v.firstIndex&&e<=v.lastIndex&&(t=d.find((function(t){return t[Hy]===e&&!0===t[Ny]}))),void 0===t&&(t=(v.firstIndex<g||v.firstValidArrayIndex>0?d.find((function(e){return(e[Hy]<g||!1===Wy.call(e,Hy))&&!0===e[Ny]})):void 0)||My(d,(function(e){return!0===e[Ny]}))),void 0!==t&&delete t[Ny],t};b<s&&b<C;b++){var R=I(b);_&&_===R&&(_=_.nextSibling);var x=this._dequeueElementForIndex(R,b,_,!0);E.push([x,b]),S=Ty(x,S,_,i)}S&&S.childNodes.length>0&&ky(S,_,i);for(var W=0,P=E;W<P.length;W++){var k=P[W],T=k[1];this._insertItemAndFlow(k[0],T,!1),y=t.cachedItemPositions[T]+t.cachedItemHeights[T]}if(y<l)for(;(y<l||w-- >0)&&b<s;b++){var A=I(b);_&&_===A&&(_=_.nextSibling),this._dequeueElementForIndex(A,b,_,!1),y=t.cachedItemPositions[b]+t.cachedItemHeights[b]}var H=this.estimateFullHeight();t.virtualWrapper.style.height=H+"px",f!==r.clientWidth&&this.render()}else if(s!==d.length){for(var N=0;N<h;N++)d[N][Ny]=!0;for(var O=i.childNodes[0],F=null,L=function(t){var r=d.find((function(e){return e[Hy]===t&&!0===e[Ny]}));void 0!==r&&delete r[Ny],O&&O===r&&(O=O.nextSibling);var n=e._dequeueElementForIndex(r,t,O,!0);F=Ty(n,F,O,i)},M=0;M<s;M++)L(M);F&&F.childNodes.length>0&&ky(F,O,i)}h=d.length;for(var z=0;z<h;z++){var U=d[z];if(!0===U[Ny]){var j=U.parentNode;j&&j.removeChild(U),c&&void 0!==U[Hy]&&c(U),d.splice(z,1),z--,h--}}}},{key:"addItemsAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if("number"!=typeof e||e<=0)return this;var r=this._p;if((t<-1||t>=r.count)&&(t=r.count),r.count+=e,r.virtual)t>=0&&t<r.count&&this._invalidateItemIndexesAt(t,-1);else{var n=r.existingEls,o=n.length;if(o!==r.count-e)return this;var i=this._getExistingElsRange();if(-1===i.firstValidArrayIndex)return this;var a=r.currentItemsParent,l=i.firstValidArrayIndex+t-i.firstIndex;this._pushItemIndexesAt(t,e);for(var s=n[l-1]?n[l-1].nextSibling:n[0],u=null,c=t,d=t+e;c<d;c++){var h=this._dequeueElementForIndex(void 0,c,s,!0);u=Ty(h,u,s,a)}u&&u.childNodes.length>0&&ky(u,s,a)}return this}},{key:"removeItemsAt",value:function(e,t){var r=this._p;if("number"!=typeof e||"number"!=typeof t||e<=0||t<0||t>=r.count)return this;if(r.count-=Math.min(e,r.count-t),r.virtual)this._invalidateItemIndexesAt(t,-1);else{var n=r.existingEls;if(n.length!==r.count+e)return this;var o=this._getExistingElsRange();if(-1===o.firstValidArrayIndex)return this;this._pushItemIndexesAt(t+e,-e);var i=r.onItemUnrender,a=o.firstValidArrayIndex+t-o.firstIndex;if(a<n.length){for(var l=0;l<e;l++){var s=n[a+l],u=s.parentNode;u&&u.removeChild(s),i&&void 0!==s[Hy]&&i(s)}n.splice(a,e)}}return this}},{key:"refreshItemAt",value:function(e){var t=this._p;if("number"!=typeof e||e<0||e>=t.count)return this;if(t.virtual)this._invalidateItemIndexesAt(e,1);else{var r=t.existingEls;if(r.length!==t.count)return this;var n=this._getExistingElsRange();if(e>=n.firstIndex&&e<=n.lastIndex){var o=r[n.firstValidArrayIndex+e-n.firstIndex];delete o[Hy],this._dequeueElementForIndex(o,e,o.nextSibling,!1)}}return this}},{key:"isItemRendered",value:function(e){var t=this._p;if("number"!=typeof e||e<0||e>=t.count)return!1;var r=this._getExistingElsRange();return e>=r.firstIndex&&e<=r.lastIndex}},{key:"getItemElementAt",value:function(e){var t=this._p;if(!("number"!=typeof e||e<0||e>=t.count)){var r=t.existingEls,n=this._getExistingElsRange();return e>=n.firstIndex&&e<=n.lastIndex?r[n.firstValidArrayIndex+e-n.firstIndex]:void 0}}},{key:"getItemPosition",value:function(e){var t=this._p;if(!("number"!=typeof e||e<0||e>=t.count)){if(t.virtual)return this._calculateItemPosition(e);var n=this.getItemElementAt(e);if(void 0!==n){var o=t.list;return r.getElementOffset(n).top-r.getElementOffset(o).top+o.scrollTop}}}},{key:"getItemIndexFromElement",value:function(e){return e?e[Hy]:void 0}},{key:"getItemSize",value:function(e){var t=this._p;if(!("number"!=typeof e||e<0||e>=t.count)){var r=t.cachedItemHeights[e-1];return void 0===r&&("number"!=typeof(r=t.itemHeightEstimatorFn?t.itemHeightEstimatorFn(e-1):null)&&(r=t.estimatedItemHeight),t.cachedItemEstimatedHeights[e-1]=r),r}}},{key:"getVisibleItemCount",value:function(){var e,t,r=this,n=this._p,o=n.list,i=o.scrollTop,a=o.clientHeight;if(n.virtual)e=Fy(n.cachedItemPositions,i),t=Fy(n.cachedItemPositions,i+a,e);else{var l=function(e){var t=r.getItemPosition(e);return void 0===t&&(t=1/0),t};e=Ly(n.count,l,i),t=Ly(n.count,l,i+a,e)}return this.getItemPosition(t)===i+a&&t--,t-e+1}},{key:"createGhostItemElement",value:function(e,t,r){var n=this._p,o=this._dequeueElementForIndex(null,e,!1,!0);try{t&&n.currentItemsParent.appendChild(o),r(o)}finally{if(t){var i=o.parentNode;i&&i.removeChild(o)}n.onItemUnrender&&n.onItemUnrender(o)}}},{key:"_resetCurrentItemsParent",value:function(){var e,t,r=this._p;r.currentItemsParent=null!==(e=null!==(t=r.virtualWrapper)&&void 0!==t?t:r.userItemsParent)&&void 0!==e?e:r.list}},{key:"_destroyElements",value:function(){for(var e=this._p,t=e.onItemUnrender,r=e.existingEls,n=0;n<r.length;n++){var o=r[n],i=o.parentNode;i&&i.removeChild(o),t&&void 0!==o[Hy]&&t(o)}return r.length=0,e.virtualWrapper&&(e.virtualWrapper!==e.userItemsParent&&e.virtualWrapper.parentNode&&e.virtualWrapper.parentNode.removeChild(e.virtualWrapper),e.virtualWrapper=null,this._resetCurrentItemsParent()),this}},{key:"_invalidateItemIndexesAt",value:function(e,t){var r=this._p;this._setItemPositionsNeedsUpdate(e);var n=r.existingEls,o=n.length,i=this._getExistingElsRange();if(-1!==i.firstValidArrayIndex&&(-1===t&&(t=n.length),e>=i.firstIndex&&e<=i.lastIndex))for(var a=i.firstValidArrayIndex+e-i.firstIndex,l=0;a<o&&l<t;a++,l++)delete n[a][Hy]}},{key:"_pushItemIndexesAt",value:function(e,t){var r=this._p.existingEls,n=r.length,o=this._getExistingElsRange();if(-1!==o.firstValidArrayIndex&&e>=o.firstIndex&&e<=o.lastIndex)for(var i=o.firstValidArrayIndex+e-o.firstIndex;i<n;i++)r[i][Hy]+=t}},{key:"_hookEvents",value:function(){var e=this._p;return this._unhookEvents(),e.virtual&&e.hookScrollEvent&&e.list&&e.list.addEventListener("scroll",e.boundRender),this}},{key:"_unhookEvents",value:function(){var e=this._p;return e.list&&e.list.removeEventListener("scroll",e.boundRender),this}},{key:"_setItemPositionsNeedsUpdate",value:function(e){var t=this._p;e<t.itemPositionsNeedsUpdate&&(t.itemPositionsNeedsUpdate=e)}},{key:"_calculateItemPosition",value:function(e){var t=this._p,r=t.cachedItemPositions;if(e>=t.itemPositionsNeedsUpdate){var n=t.count,o=t.cachedItemHeights,i=t.cachedItemEstimatedHeights,a=t.estimatedItemHeight,l=t.itemHeightEstimatorFn;o.length!==n&&(o.length=n,i.length=n,r.length=n);var s=t.itemPositionsNeedsUpdate,u=Math.min(e,n),c=0;s>0&&(c=r[s-1]);for(var d=s;d<=u;d++)if(0!==d){var h=d-1,f=o[h];void 0===f&&("number"!=typeof(f=l?l(h):null)&&(f=a),i[h]=f),c+=f,r[d]=c}else r[d]=c;t.itemPositionsNeedsUpdate=u+1}if(e>0&&e===t.count){var p=t.cachedItemHeights[e-1];return void 0===p&&("number"!=typeof(p=t.itemHeightEstimatorFn?t.itemHeightEstimatorFn(e-1):null)&&(p=t.estimatedItemHeight),t.cachedItemEstimatedHeights[e-1]=p),r[e-1]+p}return r[e]}},{key:"_dequeueElementForIndex",value:function(e,t,r,n){var o=this._p,i=o.virtualWrapper;o.currentItemsParent;var a=o.existingEls,l=o.onItemRender,s=o.onItemUnrender,u=!e,c=u||t!==e[Hy];if(e?s&&c&&s(e):(e=o.itemElementCreatorFn(),i&&!1!==r&&(e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.right="0")),c&&(e.innerHTML="",l&&l(e,t)),!1!==r){if(r instanceof Node||(r=null),!u){var d=a.indexOf(e);-1!==d&&a.splice(d,1)}var h=r?a.indexOf(r):-1;-1===h?a.push(e):a.splice(h,0,e),n||this._insertItemAndFlow(e,t,r)}return e[Hy]=t,e}},{key:"_insertItemAndFlow",value:function(e,t,r){var n=this._p,o=n.virtualWrapper,i=n.currentItemsParent;if(!1!==r&&(r instanceof Node||(r=null),e.parentNode===i&&e.nextSibling===r||ky(e,r,i)),o){var a=e.getBoundingClientRect().height,l=n.cachedItemHeights[t];l!==a&&(n.cachedItemHeights[t]=a),(void 0!==l&&a!==l||void 0===l&&a!==n.cachedItemEstimatedHeights[t])&&this._setItemPositionsNeedsUpdate(t+1);var s=this._calculateItemPosition(t),u=Uy();!1===u?e.style.top="".concat(s,"px"):e.style[u]="translateY(".concat(s,"px)")}}},{key:"_getExistingElsRange",value:function(){for(var e=this._p.existingEls,t=-1,r=-1,n=0,o=e.length;n<o;n++)if(!1!==Wy.call(e[n],Hy)){t=n;break}for(var i=e.length-1;i>=0;i--)if(!1!==Wy.call(e[i],Hy)){r=i;break}return{firstValidArrayIndex:t,lastValidArrayIndex:r,firstIndex:-1!==t?e[t][Hy]:-1,lastIndex:-1!==r?e[r][Hy]:-1}}}]),e}(),Hy=Symbol("index"),Ny=Symbol("reuse"),Oy=function(){return document.createElement("li")},Fy=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,o=e.length;if(n<0&&(n+=o),n<=r)return n;for(;r<=n;){var i=Math.floor(r+(n-r)/2),a=e[i];if(a===t||a<=t&&i<o&&e[i+1]>t){for(;i>0&&e[i-1]===a;)i--;return i}a<t?r=i+1:n=i-1}return-1===n?0:o-1},Ly=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;if(o<0&&(o+=e),o<=n)return o;for(;n<=o;){var i=Math.floor(n+(o-n)/2),a=t(i);if(a===r||a<=r&&i<e&&t(i+1)>r){for(;i>0&&t(i-1)===a;)i--;return i}a<r?n=i+1:o=i-1}return-1===o?0:t(e-1)},My=function(e,t){for(var r=e.length-1;r>=0;r--)if(t(e[r]))return e[r]},zy=null,Uy=function(){if(null===zy){var e=document.createElement("div");zy=!1;for(var t=0,r=["transform","WebkitTransform","MozTransform","OTransform","msTransform"];t<r.length;t++){var n=r[t];if(e&&void 0!==e.style[n]){zy=n;break}}}return zy};function jy(e,t){var r=t.column,n=null==t.keyword?"":t.keyword.toString();if(!n||!r)return!0;var o=e[r];return null!=o&&(o=o.toString(),t.caseSensitive||(o=o.toLowerCase(),n=n.toLowerCase()),-1!==o.indexOf(n))}var $y=Array.prototype.indexOf,By=e,Dy=navigator.userAgent,Vy=-1!==Dy.indexOf("MSIE ")?parseFloat(Dy.substr(Dy.indexOf("MSIE ")+5)):null,qy=Vy&&Vy<10,Gy=document.createElement.bind(document),Xy=Object.prototype.hasOwnProperty,Yy=Symbol("safe"),Jy=Symbol("hover_in"),Ky=Symbol("hover_out"),Qy=Symbol("row_click");function Zy(e){var t,r;t=["relative","absolute","fixed"],r=e.css("position"),xb.call(t,r)>=0||e.css("position","relative")}var ew,tw,rw=function(e){return/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(e.target.tagName)},nw=function e(){if(!(this instanceof e))return new(Function.prototype.bind.apply(e,[e].concat(Array.prototype.slice.call(arguments,0))));this.initialize.apply(this,arguments)};nw.VERSION="@@VERSION",nw.prototype.VERSION=nw.VERSION,nw.prototype.initialize=function(e){var t=this;e=e||{};var r=t.o={},n=t.p={};n.events={},t.el=e.el&&e.el instanceof Element?e.el:document.createElement("div");var o=t.$el=By(t.el);t.el!==e.el&&o.addClass(e.className||"dgtable-wrapper"),o.data("control",t).data("dgtable",t),o.on("remove",(function(){return t.destroy()})),n.onMouseMoveResizeAreaBound=this._onMouseMoveResizeArea.bind(this),n.onEndDragColumnHeaderBound=this._onEndDragColumnHeader.bind(this),n.onTableScrolledHorizontallyBound=this._onTableScrolledHorizontally.bind(this),this.$el.on("dragend",n.onEndDragColumnHeaderBound),n.tableSkeletonNeedsRendering=!0,r.virtualTable=void 0===e.virtualTable||!!e.virtualTable,r.estimatedRowHeight=e.estimatedRowHeight||void 0,r.rowsBufferSize=e.rowsBufferSize||3,r.minColumnWidth=Math.max(e.minColumnWidth||35,0),r.resizeAreaWidth=e.resizeAreaWidth||8,r.resizableColumns=void 0===e.resizableColumns||!!e.resizableColumns,r.movableColumns=void 0===e.movableColumns||!!e.movableColumns,r.sortableColumns=void 0===e.sortableColumns?1:parseInt(e.sortableColumns,10)||1,r.adjustColumnWidthForSortArrow=void 0===e.adjustColumnWidthForSortArrow||!!e.adjustColumnWidthForSortArrow,r.convertColumnWidthsToRelative=void 0!==e.convertColumnWidthsToRelative&&!!e.convertColumnWidthsToRelative,r.autoFillTableWidth=void 0!==e.autoFillTableWidth&&!!e.autoFillTableWidth,r.cellClasses=void 0===e.cellClasses?"":e.cellClasses,r.resizerClassName=void 0===e.resizerClassName?"dgtable-resize":e.resizerClassName,r.tableClassName=void 0===e.tableClassName?"dgtable":e.tableClassName,r.allowCellPreview=void 0===e.allowCellPreview||e.allowCellPreview,r.allowHeaderCellPreview=void 0===e.allowHeaderCellPreview||e.allowHeaderCellPreview,r.cellPreviewClassName=void 0===e.cellPreviewClassName?"dgtable-cell-preview":e.cellPreviewClassName,r.cellPreviewAutoBackground=void 0===e.cellPreviewAutoBackground||e.cellPreviewAutoBackground,r.onComparatorRequired=void 0===e.onComparatorRequired?null:e.onComparatorRequired,r.onComparatorRequired||"function"!=typeof e.comparatorCallback||(r.onComparatorRequired=e.comparatorCallback),r.width=void 0===e.width?nw.Width.NONE:e.width,r.relativeWidthGrowsToFillWidth=void 0===e.relativeWidthGrowsToFillWidth||!!e.relativeWidthGrowsToFillWidth,r.relativeWidthShrinksToFillWidth=void 0!==e.relativeWidthShrinksToFillWidth&&!!e.relativeWidthShrinksToFillWidth,this.setCellFormatter(e.cellFormatter),this.setHeaderCellFormatter(e.headerCellFormatter),this.setFilter(e.filter),r.height=e.height,t.setColumns(e.columns||[],!1);var i=[];if(e.sortColumn){var a=e.sortColumn;if(a&&!Array.isArray(a)&&(a=[a]),a)for(var l=0,s=a.length;l<s;l++){var u=a[l];"string"==typeof u&&(u={column:u,descending:!1});var c=n.columns.get(u.column);c&&i.push({column:u.column,comparePath:c.comparePath||c.dataPath,descending:u.descending})}}n.rows=new Tb({sortColumn:i}),n.rows.onComparatorRequired=function(e,t,n){if(r.onComparatorRequired)return r.onComparatorRequired(e,t,n)},n.filteredRows=null,this._setupHovers()},nw.prototype._setupHovers=function(){var e=this,t=e.p,r=function(t){var r=t.fromElement||t.relatedTarget;r===this||By.contains(this,r)||this.__previewCell&&(r===this.__previewCell||By.contains(this.__previewCell,r))||e._cellMouseOverEvent.call(e,this)},n=function(t){var r=(t=t||event).toElement||t.relatedTarget;r===this||By.contains(this,r)||this.__previewCell&&(r===this.__previewCell||By.contains(this.__previewCell,r))||e._cellMouseOutEvent.call(e,this)};t._bindCellHoverIn=function(e){e[Jy]||e.addEventListener("mouseover",e[Jy]=r.bind(e))},t._unbindCellHoverIn=function(e){e[Jy]&&(e.removeEventListener("mouseover",e[Jy]),e[Jy]=null)},t._bindCellHoverOut=function(e){return e[Ky]||e.addEventListener("mouseout",e[Ky]=n.bind(e.__cell||e)),this},t._unbindCellHoverOut=function(e){return e[Ky]&&(e.removeEventListener("mouseout",e[Ky]),e[Ky]=null),this}},nw.prototype._setupVirtualTable=function(){var e,t=this,r=this,n=r.p,o=r.o,i=o.tableClassName,a=i+"-row",l=i+"-row-alt",s=i+"-cell",u=n.visibleColumns,c=u.length;n.notifyRendererOfColumnsConfig=function(){u=n.visibleColumns,c=u.length;for(var e,t=0;t<c;t++)(e=u[t])._finalWidth=e.actualWidthConsideringScrollbarWidth||e.actualWidth},n.virtualListHelper=new Ay({list:n.table,itemsParent:n.tbody,autoVirtualWrapperWidth:!1,virtual:o.virtualTable,buffer:o.rowsBufferSize,estimatedItemHeight:o.estimatedRowHeight?o.estimatedRowHeight:n.virtualRowHeight||40,itemElementCreatorFn:function(){return Gy("div")},onItemRender:function(e,i){var d=n.filteredRows||n.rows,h=!!n.filteredRows,f=o.allowCellPreview;e.className=a,i%2==1&&(e.className+=" "+l);var p=d[i],v=h?p.__i:i;e.rowIndex=i,e.physicalRowIndex=v;for(var m=0;m<c;m++){var g=u[m],b=Gy("div");b.columnName=g.name,b.setAttribute("data-column",g.name),b.className=s,b.style.width=g._finalWidth+"px",g.cellClasses&&(b.className+=" "+g.cellClasses),f&&n._bindCellHoverIn(b),b.appendChild(Gy("div")).innerHTML=t._getHtmlForCell(p,g),e.appendChild(b)}e.addEventListener("click",e[Qy]=function(t){r.trigger("rowclick",t,i,v,e,p)}),r.trigger("rowcreate",i,v,e,p)},onItemUnrender:function(e){e[Qy]&&e.removeEventListener("click",e[Qy]),r._unbindCellEventsForRow(e),r.trigger("rowdestroy",e)}}),n.virtualListHelper.setCount((null!==(e=n.filteredRows)&&void 0!==e?e:n.rows).length),n.notifyRendererOfColumnsConfig()},nw.prototype.on=function(e,t){var r=this.p.events;return"function"!=typeof t||(Xy.call(r,e)||(r[e]=[]),r[e].push({cb:t,once:!1})),this},nw.prototype.once=function(e,t){var r=this.p.events;return"function"!=typeof t||(Xy.call(r,e)||(r[e]=[]),r[e].push({cb:t,once:!0})),this},nw.prototype.off=function(e,t){var r=this.p.events;if(!Xy.call(r,e))return this;for(var n=r[e],o=0;o<n.length;o++){var i=n[o];t&&i.cb!==t||n.splice(o--,1)}return this},nw.prototype.trigger=function(e){var t=this.p;if(t){var r=t.events;if(Xy.call(r,e))for(var n=r[e],o=0;o<n.length;o++){var i=n[o];i.once&&n.splice(o--,1),i.cb.apply(this,Array.prototype.slice.call(arguments,1))}return this}},nw.prototype._parseColumnWidth=function(e,t){var r=Math.max(0,parseFloat(e)),n=ow.AUTO;return r>0&&(e===r+"%"?(n=ow.RELATIVE,r/=100):r>0&&r<1?n=ow.RELATIVE:(r<t&&(r=t),n=ow.ABSOLUTE)),{width:r,mode:n}},nw.prototype._initColumnFromData=function(e){var t=this._parseColumnWidth(e.width,e.ignoreMin?0:this.o.minColumnWidth),r={name:e.name,label:void 0===e.label?e.name:e.label,width:t.width,widthMode:t.mode,resizable:void 0===e.resizable||e.resizable,sortable:void 0===e.sortable||e.sortable,movable:void 0===e.movable||e.movable,visible:void 0===e.visible||e.visible,cellClasses:void 0===e.cellClasses?this.o.cellClasses:e.cellClasses,ignoreMin:void 0!==e.ignoreMin&&!!e.ignoreMin};return r.dataPath=void 0===e.dataPath?r.name:e.dataPath,r.comparePath=void 0===e.comparePath?r.dataPath:e.comparePath,"string"==typeof r.dataPath&&(r.dataPath=r.dataPath.split(".")),"string"==typeof r.comparePath&&(r.comparePath=r.comparePath.split(".")),r},nw.prototype.close=nw.prototype.remove=nw.prototype.destroy=function(){var e,t=this,r=t.p||{},n=t.$el;if(t.__removed)return t;if(r.$resizer&&(r.$resizer.remove(),r.$resizer=null),null===(e=r.virtualListHelper)||void 0===e||e.destroy(),r.virtualListHelper=null,this._destroyHeaderCells(),r.virtualListHelper.destroy(),r.$table&&r.$table.empty(),r.$tbody&&r.$tbody.empty(),r.workerListeners){for(var o=0;o<r.workerListeners.length;o++){var i=r.workerListeners[o];i.worker.removeEventListener("message",i.listener,!1)}r.workerListeners.length=0}for(var a in r.rows.length=r.columns.length=0,r._deferredRender&&clearTimeout(r._deferredRender),t)Xy.call(t,a)&&(t[a]=null);return t.__removed=!0,n&&n.remove(),this},nw.prototype._unbindCellEventsForTable=function(){var e=this.p;if(e.headerRow)for(var t=0,r=e.headerRow.childNodes,n=r.length;t<n;t++)for(var o=0,i=r[t].childNodes,a=i.length;o<a;o++)e._unbindCellHoverIn(i[o]);return this},nw.prototype._unbindCellEventsForRow=function(e){for(var t=this.p,r=0,n=e.childNodes,o=n.length;r<o;r++)t._unbindCellHoverIn(n[r]);return this},nw.prototype.render=function(){var e=this,r=this.o,n=this.p;if(!this.el.offsetParent)return n._deferredRender||(n._deferredRender=setTimeout((function(){n._deferredRender=null,!e.__removed&&e.el.offsetParent&&e.render()}))),this;if(!0===n.tableSkeletonNeedsRendering){var o;n.tableSkeletonNeedsRendering=!1,r.width===nw.Width.AUTO&&this._clearSortArrows();var i=n.table&&n.table.parentNode?n.table.scrollTop:NaN,a=n.table&&n.table.parentNode?t.getScrollHorz(n.table):NaN;this._renderSkeletonBase()._renderSkeletonBody().tableWidthChanged(!0,!1)._renderSkeletonHeaderCells(),n.virtualListHelper.setCount((null!==(o=n.filteredRows)&&void 0!==o?o:n.rows).length),this._updateLastCellWidthFromScrollbar(!0),this._updateTableWidth(!0);for(var l=0;l<n.rows.sortColumn.length;l++)this._showSortArrow(n.rows.sortColumn[l].column,n.rows.sortColumn[l].descending);r.adjustColumnWidthForSortArrow&&n.rows.sortColumn.length?this.tableWidthChanged(!0):r.virtualTable||this.tableWidthChanged(),isNaN(i)||(n.table.scrollTop=i),isNaN(a)||(t.setScrollHorz(n.table,a),t.setScrollHorz(n.header,a)),this.trigger("renderskeleton")}return n.virtualListHelper.render(),this.trigger("render"),this},nw.prototype.clearAndRender=function(e){var t,r=this.p;return r.tableSkeletonNeedsRendering=!0,null===(t=r.notifyRendererOfColumnsConfig)||void 0===t||t.call(r),(void 0===e||e)&&this.render(),this},nw.prototype._calculateTbodyWidth=function(){var e,t,n,o=this.p,i=this.o.tableClassName,a=i+"-row",l=i+"-cell",s=o.visibleColumns,u=s.length,c=By("<div>").addClass(a).css("float","left"),d=0;for(t=0;t<u;t++)n=s[t],(e=Gy("div")).className=l,e.style.width=n.actualWidth+"px",n.cellClasses&&(e.className+=" "+n.cellClasses),e.appendChild(Gy("div")),c.append(e),d+=n.actualWidth;var h=By("<div>").addClass(this.el.className).css({"z-index":-1,position:"absolute",left:"0",top:"-9999px",float:"left",width:"1px",overflow:"hidden"}).append(By("<div>").addClass(i).append(By("<div>").addClass(i+"-body").css("width",d+1e4).append(c)));h.appendTo(document.body);var f=By('<div style="border:1.5px solid #000;width:0;height:0;position:absolute;left:0;top:-9999px">').appendTo(document.body),p=parseFloat(f.css("border-width")),v=Math.round(p)!==p;f.remove();var m=r.getElementWidth(c[0],!0,!0,!0);return m-=o.scrollbarWidth||0,v&&m++,h.remove(),m},nw.prototype.setColumns=function(e,t){var r=this.p;e=e||[];for(var n=new Nb,o=0,i=0;o<e.length;o++){var a=e[o],l=this._initColumnFromData(a);void 0!==a.order?(a.order>i&&(i=a.order+1),l.order=a.order):l.order=i++,n.push(l)}return n.normalizeOrder(),r.columns=n,r.visibleColumns=n.getVisibleColumns(),this._ensureVisibleColumns().clearAndRender(t),this},nw.prototype.addColumn=function(e,t,r){var n=this.p,o=n.columns;if(e&&!o.get(e.name)){var i=null;void 0!==t&&(i=o.get(t)||o.getByOrder(t));var a=this._initColumnFromData(e);a.order=i?i.order:o.getMaxOrder()+1;for(var l=o.getMaxOrder(),s=a.order;l>=s;l--){var u=o.getByOrder(l);u&&u.order++}o.push(a),o.normalizeOrder(),n.visibleColumns=o.getVisibleColumns(),this._ensureVisibleColumns().clearAndRender(r),this.trigger("addcolumn",a.name)}return this},nw.prototype.removeColumn=function(e,t){var r=this.p,n=r.columns,o=n.indexOf(e);return o>-1&&(n.splice(o,1),n.normalizeOrder(),r.visibleColumns=n.getVisibleColumns(),this._ensureVisibleColumns().clearAndRender(t),this.trigger("removecolumn",e)),this},nw.prototype.setCellFormatter=function(e){return e||((e=function(e){return"string"==typeof e?Pb(e):e})[Yy]=!0),this.o.cellFormatter=e,this},nw.prototype.setHeaderCellFormatter=function(e){return this.o.headerCellFormatter=e||function(e){return"string"==typeof e?Pb(e):e},this},nw.prototype.setFilter=function(e){return this.o.filter=e,this},nw.prototype.filter=function(e){var t=this.p,r=this.o.filter||jy;"string"==typeof arguments[0]&&"string"==typeof arguments[1]&&(e={column:arguments[0],keyword:arguments[1],caseSensitive:arguments[2]});var o=!!t.filteredRows;return t.filteredRows&&(t.filteredRows=null),t.filterArgs=null==e?null:"object"!==n(e)||Array.isArray(e)?e:By.extend({},e),null!==t.filterArgs?(t.filteredRows=t.rows.filteredCollection(r,t.filterArgs),(o||t.filteredRows)&&(this.clearAndRender(),this.trigger("filter",e))):(t.filterArgs=null,t.filteredRows=null,this.clearAndRender(),this.trigger("filterclear",{})),this},nw.prototype.clearFilter=function(){var e=this.p;return e.filteredRows&&(e.filterArgs=null,e.filteredRows=null,this.clearAndRender(),this.trigger("filterclear",{})),this},nw.prototype._refilter=function(){var e=this.p;if(e.filteredRows&&e.filterArgs){var t=this.o.filter||jy;e.filteredRows=e.rows.filteredCollection(t,e.filterArgs)}return this},nw.prototype.setColumnLabel=function(e,t){var r=this.p.columns.get(e);if(r&&(r.label=void 0===t?r.name:t,r.element))for(var n=0;n<r.element[0].firstChild.childNodes.length;n++){var o=r.element[0].firstChild.childNodes[n];if(3===o.nodeType){o.textContent=r.label;break}}return this},nw.prototype.moveColumn=function(e,t){var r,n,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.o,a=this.p,l=a.columns,s=o?a.visibleColumns:l.getColumns();if("string"==typeof e?r=l.get(e):"number"==typeof e&&(r=s[e]),"string"==typeof t?n=l.get(t):"number"==typeof t&&(n=s[t]),r&&n&&e!==t){var u=r.order,c=n.order,d=l.moveColumn(r,n).getVisibleColumns();if(a.visibleColumns.length!==d.length||a.visibleColumns.some((function(e,t){return e!==d[t]})))if(a.visibleColumns=d,this._ensureVisibleColumns(),i.virtualTable)this.clearAndRender()._updateLastCellWidthFromScrollbar(!0);else{var h=a.$headerRow.find(">div."+i.tableClassName+"-header-cell"),f=u<c?c+1:c,p=u;h[0].parentNode.insertBefore(h[p],h[f]);var v=a.visibleColumns[u];v=(v.actualWidthConsideringScrollbarWidth||v.actualWidth)+"px";var m=a.visibleColumns[c];m=(m.actualWidthConsideringScrollbarWidth||m.actualWidth)+"px";for(var g=a.tbody.childNodes,b=0,y=g.length;b<y;b++){var w=g[b];1===w.nodeType&&(w.insertBefore(w.childNodes[p],w.childNodes[f]),w.childNodes[c].firstChild.style.width=m,w.childNodes[u].firstChild.style.width=v)}}this.trigger("movecolumn",r.name,u,c)}return this},nw.prototype.sort=function(e,t,r){var n,o=this.o,i=this.p,a=i.columns.get(e),l=i.rows.sortColumn;if(a){if(l.length&&l[l.length-1].column===e&&(t=void 0===t?!l[l.length-1].descending:t),r){for(var s=0;s<l.length;s++)if(l[s].column===a.name){s<l.length-1?l.length=0:l.splice(l.length-1,1);break}(o.sortableColumns>0&&l.length>=o.sortableColumns||l.length>=i.visibleColumns.length)&&(l.length=0)}else l.length=0;t=void 0!==t&&t,l.push({column:a.name,comparePath:a.comparePath||a.dataPath,descending:!!t})}else l.length=0;this._clearSortArrows();for(var u=0;u<l.length;u++)this._showSortArrow(l[u].column,l[u].descending);o.adjustColumnWidthForSortArrow&&!i.tableSkeletonNeedsRendering&&this.tableWidthChanged(!0),i.rows.sortColumn=l,l.length&&(n=i.rows.sort(!!i.filteredRows),i.filteredRows&&i.filteredRows.sort(!!i.filteredRows)),i.virtualListHelper.invalidate().render();for(var c=[],d=0;d<l.length;d++)c.push({column:l[d].column,descending:l[d].descending});return this.trigger("sort",c,!0,n),this},nw.prototype.resort=function(){var e=this.p,t=e.columns,r=e.rows.sortColumn;if(r.length){for(var n=0;n<r.length;n++)t.get(r[n].column)||r.splice(n--,1);var o;e.rows.sortColumn=r,r.length&&(o=e.rows.sort(!!e.filteredRows),e.filteredRows&&e.filteredRows.sort(!!e.filteredRows));for(var i=[],a=0;a<r.length;a++)i.push({column:r[a].column,descending:r[a].descending});this.trigger("sort",i,!1,o)}return this},nw.prototype._ensureVisibleColumns=function(){var e=this.p;return 0===e.visibleColumns.length&&e.columns.length&&(e.columns[0].visible=!0,e.visibleColumns.push(e.columns[0]),this.trigger("showcolumn",e.columns[0].name)),this},nw.prototype.setColumnVisible=function(e,t){var r=this.p,n=r.columns.get(e);return t=!!t,n&&!!n.visible!==t&&(n.visible=t,r.visibleColumns=r.columns.getVisibleColumns(),this.trigger(t?"showcolumn":"hidecolumn",e),this._ensureVisibleColumns(),this.clearAndRender()),this},nw.prototype.isColumnVisible=function(e){var t=this.p.columns.get(e);return!!t&&t.visible},nw.prototype.setMinColumnWidth=function(e){var t=this.o;return e=Math.max(e,0),t.minColumnWidth!==e&&(t.minColumnWidth=e,this.tableWidthChanged(!0)),this},nw.prototype.getMinColumnWidth=function(){return this.o.minColumnWidth},nw.prototype.setSortableColumns=function(e){var t=this.p,r=this.o;if(r.sortableColumns!==e&&(r.sortableColumns=e,t.$table))for(var n=t.$headerRow.find(">div."+r.tableClassName+"-header-cell"),o=0;o<n.length;o++)By(n[0])[r.sortableColumns>0&&t.visibleColumns[o].sortable?"addClass":"removeClass"]("sortable");return this},nw.prototype.getSortableColumns=function(){return this.o.sortableColumns},nw.prototype.setMovableColumns=function(e){var t=this.o;return e=void 0===e||!!e,t.movableColumns!==e&&(t.movableColumns=e),this},nw.prototype.getMovableColumns=function(){return this.o.movableColumns},nw.prototype.setResizableColumns=function(e){var t=this.o;return e=void 0===e||!!e,t.resizableColumns!==e&&(t.resizableColumns=e),this},nw.prototype.getResizableColumns=function(){return this.o.resizableColumns},nw.prototype.setComparatorCallback=function(e){var t=this.o;return t.onComparatorRequired!==e&&(t.onComparatorRequired=e),this},nw.prototype.setColumnWidth=function(e,t){var r=this.p.columns.get(e),n=this._parseColumnWidth(t,r.ignoreMin?0:this.o.minColumnWidth);if(r){var o=this._serializeColumnWidth(r);r.width=n.width,r.widthMode=n.mode;var i=this._serializeColumnWidth(r);o!==i&&this.tableWidthChanged(!0),this.trigger("columnwidth",r.name,o,i)}return this},nw.prototype.getColumnWidth=function(e){var t=this.p.columns.get(e);return t?this._serializeColumnWidth(t):null},nw.prototype.getColumnConfig=function(e){var t=this.p.columns.get(e);return t?{order:t.order,width:this._serializeColumnWidth(t),visible:t.visible,label:t.label}:null},nw.prototype.getColumnsConfig=function(){for(var e=this.p,t={},r=0;r<e.columns.length;r++)t[e.columns[r].name]=this.getColumnConfig(e.columns[r].name);return t},nw.prototype.getSortedColumns=function(){for(var e=this.p,t=[],r=0;r<e.rows.sortColumn.length;r++){var n=e.rows.sortColumn[r];t.push({column:n.column,descending:n.descending})}return t},nw.prototype.getHtmlForRowCell=function(e,t){var r=this.p;if(e<0||e>r.rows.length-1)return null;var n=r.columns.get(t);if(!n)return null;var o=r.rows[e];return this._getHtmlForCell(o,n)},nw.prototype.getHtmlForRowDataCell=function(e,t){var r=this.p.columns.get(t);return r?this._getHtmlForCell(e,r):null},nw.prototype._getHtmlForCell=function(e,t){for(var r=t.dataPath,n=e[r[0]],o=1;o<r.length&&null!=n;o++)n=n&&n[r[o]];var i,a=this.o.cellFormatter;if(a[Yy])i=a(n,t.name,e);else try{i=a(n,t.name,e)}catch(e){i="[ERROR]",console.error("Failed to generate content for cell "+t.name,e)}return null==i&&(i=""),i},nw.prototype.getRowYPos=function(e){return this.p.virtualListHelper.getItemPosition(e)||null},nw.prototype.getDataForRow=function(e){var t=this.p;return e<0||e>t.rows.length-1?null:t.rows[e]},nw.prototype.getRowCount=function(){var e=this.p;return e.rows?e.rows.length:0},nw.prototype.getIndexForRow=function(e){return this.p.rows.indexOf(e)},nw.prototype.getFilteredRowCount=function(){var e=this.p;return(e.filteredRows||e.rows).length},nw.prototype.getIndexForFilteredRow=function(e){var t=this.p;return(t.filteredRows||t.rows).indexOf(e)},nw.prototype.getDataForFilteredRow=function(e){var t=this.p;return e<0||e>(t.filteredRows||t.rows).length-1?null:(t.filteredRows||t.rows)[e]},nw.prototype.getHeaderRowElement=function(){return this.p.headerRow},nw.prototype._horizontalPadding=function(e){return(parseFloat(By.css(e,"padding-left"))||0)+(parseFloat(By.css(e,"padding-right"))||0)},nw.prototype._horizontalBorderWidth=function(e){return(parseFloat(By.css(e,"border-left"))||0)+(parseFloat(By.css(e,"border-right"))||0)},nw.prototype._calculateWidthAvailableForColumns=function(){var e,t,n,o=this.o,i=this.p;i.table&&(t=i.table?i.table.scrollTop:0,n=i.table?i.table.scrollLeft:0,o.virtualTable&&(e=i.table.style.display,i.table.style.display="none"));var a=r.getElementWidth(this.$el[0]);i.table&&(o.virtualTable&&(i.table.style.display=e),i.table.scrollTop=t,i.table.scrollLeft=n,i.header.scrollLeft=n);for(var l=o.tableClassName,s=By("<div>").addClass(this.el.className).css({"z-index":-1,position:"absolute",left:"0",top:"-9999px"}),u=By("<div>").addClass(l+"-header").appendTo(s),c=By("<div>").addClass(l+"-header-row").appendTo(u),d=0;d<i.visibleColumns.length;d++)c.append(By("<div><div></div></div>").addClass(l+"-header-cell").addClass(i.visibleColumns[d].cellClasses||""));s.appendTo(document.body),a-=this._horizontalBorderWidth(c[0]);for(var h=c.find(">div."+l+"-header-cell"),f=0;f<h.length;f++){var p=By(h[f]);"border-box"===p.css("boxSizing")||(a-=(parseFloat(p.css("border-right-width"))||0)+(parseFloat(p.css("border-left-width"))||0)+this._horizontalPadding(p[0]))}return s&&s.remove(),Math.max(0,a)},nw.prototype.tableWidthChanged=(ew=function(e){var t,n=this.o.tableClassName,o=By("<div>").addClass(this.$el).append(By("<div>").addClass(n+"-header").append(By("<div>").addClass(n+"-header-row").append(t=By("<div>").addClass(n+"-header-cell").append(By("<div>").text(e))))).css({position:"absolute",top:"-9999px",visibility:"hidden"});o.appendTo(document.body);var i=r.getElementWidth(t[0]);return o.remove(),i},tw=null,function(e,t){var r=this.o,n=this.p,o=this._calculateWidthAvailableForColumns(),i=o,a=0;if(!n.$table)return this;t=void 0===t||t;var l=0;if(n.tbody||(t=!1),t&&(l=parseFloat(n.tbody.style.minWidth)||0),i!==tw||e){var s;tw=o;for(var u=0,c=[],d=0,h=0;h<n.columns.length;h++)n.columns[h].actualWidthConsideringScrollbarWidth=null;for(var f=0;f<n.visibleColumns.length;f++){var p=n.visibleColumns[f];if(p.widthMode===ow.ABSOLUTE){var v=p.width;v+=p.arrowProposedWidth||0,!p.ignoreMin&&v<r.minColumnWidth&&(v=r.minColumnWidth),i-=v,u+=v,v!==p.actualWidth&&(p.actualWidth=v,c.push(f))}else if(p.widthMode===ow.AUTO){var m=ew.call(this,p.label)+20;m+=p.arrowProposedWidth||0,!p.ignoreMin&&m<r.minColumnWidth&&(m=r.minColumnWidth),i-=m,u+=m,m!==p.actualWidth&&(p.actualWidth=m,r.convertColumnWidthsToRelative||c.push(f))}else p.widthMode===ow.RELATIVE&&(d+=p.width,a++)}if(r.convertColumnWidthsToRelative)for(var g=0;g<n.visibleColumns.length;g++){var b=n.visibleColumns[g];b.widthMode===ow.AUTO&&(b.widthMode=ow.RELATIVE,i+=b.actualWidth,b.width=b.actualWidth/u,d+=b.width,a++)}if(a&&(d<1&&r.relativeWidthGrowsToFillWidth||d>1&&r.relativeWidthShrinksToFillWidth))for(var y=0;y<n.visibleColumns.length;y++){var w=n.visibleColumns[y];w.widthMode===ow.RELATIVE&&(w.width/=d)}var C=Math.max(0,i);0===C&&(C=n.table.clientWidth);var E=r.minColumnWidth/C;if(isNaN(E)&&(E=0),E>0){for(var S,_=0,I=0;I<n.visibleColumns.length;I++){var R=n.visibleColumns[I];R.widthMode===ow.RELATIVE&&!R.ignoreMin&&R.width<E&&(_+=E-R.width,R.width=E)}for(var x=0;x<n.visibleColumns.length;x++){var W=n.visibleColumns[x];W.widthMode===ow.RELATIVE&&!W.ignoreMin&&W.width>E&&_>0&&(S=Math.min(_,W.width-E),W.width-=S,_-=S)}}if(r.autoFillTableWidth&&i>0){for(var P=0,k=i,T=0;T<n.visibleColumns.length;T++){var A=n.visibleColumns[T];A.resizable||A.widthMode!==ow.ABSOLUTE||(P+=A.width),A.widthMode===ow.RELATIVE&&(k-=Math.round(C*A.width))}for(var H=(o-P)/(o-k-P)||NaN,N=0;N<n.visibleColumns.length&&k>0;N++){var O=n.visibleColumns[N];if(O.resizable||O.widthMode!==ow.ABSOLUTE)if(O.widthMode===ow.RELATIVE)O.width*=H;else{var F=O.actualWidth*H;O.actualWidth!==F&&(O.actualWidth=F,-1===c.indexOf(N)&&c.push(N))}}}for(var L=0;L<n.visibleColumns.length;L++){var M=n.visibleColumns[L];if(M.widthMode===ow.RELATIVE){var z=Math.round(C*M.width);i-=z,0==--a&&1===i&&(z++,i--),-1===i&&(z--,i++),z!==M.actualWidth&&(M.actualWidth=z,c.push(L))}}if(n.visibleColumns.length&&(n.visibleColumns[n.visibleColumns.length-1].actualWidthConsideringScrollbarWidth=n.visibleColumns[n.visibleColumns.length-1].actualWidth-(n.scrollbarWidth||0)),null===(s=n.notifyRendererOfColumnsConfig)||void 0===s||s.call(n),t){var U=this._calculateTbodyWidth();l<U&&this._updateTableWidth(!1);for(var j=0;j<c.length;j++)this._resizeColumnElements(c[j]);l>U&&this._updateTableWidth(!1)}}return this}),nw.prototype.tableHeightChanged=function(){var e=this,t=e.o,n=e.p;if(!n.$table)return e;var o=r.getElementHeight(e.$el[0],!0)-(parseFloat(n.$table.css("border-top-width"))||0)-(parseFloat(n.$table.css("border-bottom-width"))||0);return o!==t.height&&(t.height=o,n.tbody&&(n.tbody.style.height=Math.max(t.height-r.getElementHeight(n.$headerRow[0],!0,!0,!0),1)+"px"),t.virtualTable&&e.clearAndRender()),e},nw.prototype.addRows=function(e,t,r,n){var o=this.p;return"boolean"==typeof t&&(n=r,r=t,t=-1),"number"!=typeof t&&(t=-1),(t<0||t>o.rows.length)&&(t=o.rows.length),n=void 0===n||!!n,e&&(o.rows.add(e,t),o.filteredRows||r&&o.rows.sortColumn.length?(r&&o.rows.sortColumn.length?this.resort():this._refilter(),o.tableSkeletonNeedsRendering=!0,n&&this.render()):n&&(o.virtualListHelper.addItemsAt(e.length,t),this.o.virtualTable?this._updateVirtualHeight()._updateLastCellWidthFromScrollbar().render()._updateTableWidth(!1):o.tbody&&this.render()._updateLastCellWidthFromScrollbar()._updateTableWidth(!0)),this.trigger("addrows",e.length,!1)),this},nw.prototype.removeRows=function(e,t,r){var n=this.p;return"number"!=typeof t||t<=0||e<0||e>n.rows.length-1||(n.rows.splice(e,t),r=void 0===r||!!r,n.filteredRows?(this._refilter(),n.tableSkeletonNeedsRendering=!0,r&&this.render()):r&&(n.virtualListHelper.removeItemsAt(t,e),this.o.virtualTable?this._updateVirtualHeight()._updateLastCellWidthFromScrollbar().render()._updateTableWidth(!1):this.render()._updateLastCellWidthFromScrollbar()._updateTableWidth(!0))),this},nw.prototype.removeRow=function(e,t){return this.removeRows(e,1,t)},nw.prototype.refreshRow=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this,n=r.p;if(e<0||e>n.rows.length-1)return this;var o=-1;return n.filteredRows&&-1===(o=n.filteredRows.indexOf(n.rows[e]))||(-1===o&&(o=e),n.virtualListHelper.refreshItemAt(o),t&&n.virtualListHelper.render()),this},nw.prototype.getRowElement=function(e){var t=this.p;if(e<0||e>t.rows.length-1)return null;var r=-1;return t.filteredRows&&-1===(r=t.filteredRows.indexOf(t.rows[e]))?this:(-1===r&&(r=e),t.virtualListHelper.getItemElementAt(r)||null)},nw.prototype.refreshAllVirtualRows=function(){return this.p.virtualListHelper.invalidate().render(),this},nw.prototype.setRows=function(e,t){var r=this.p;return r.rows.reset(e),t&&r.rows.sortColumn.length?this.resort():this._refilter(),this.clearAndRender().trigger("addrows",e.length,!0),this},nw.prototype.getUrlForElementContent=function(e){var t,r=document.getElementById(e);if(r){var n=r.textContent;if("function"==typeof Blob)t=new Blob([n]);else{var o=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if(!o)return null;var i=new o;i.append(n),t=i.getBlob()}return(window.URL||window.webkitURL).createObjectURL(t)}return null},nw.prototype.isWorkerSupported=function(){return window.Worker instanceof Function},nw.prototype.createWebWorker=function(e,t,r){if(this.isWorkerSupported()){var n=this,o=n.p,i=new Worker(e),a=function(e){e.data.append?n.addRows(e.data.rows,r):n.setRows(e.data.rows,r)};return i.addEventListener("message",a,!1),o.workerListeners||(o.workerListeners=[]),o.workerListeners.push({worker:i,listener:a}),(t||void 0===t)&&i.postMessage(null),i}return null},nw.prototype.unbindWebWorker=function(e){var t=this.p;if(t.workerListeners)for(var r=0;r<t.workerListeners.length;r++)t.workerListeners[r].worker===e&&(e.removeEventListener("message",t.workerListeners[r].listener,!1),t.workerListeners.splice(r,1),r--);return this},nw.prototype.abortCellPreview=function(){return this.hideCellPreview(),this},nw.prototype.cancelColumnResize=function(){var e=this.p;return e.$resizer&&(e.$resizer.remove(),e.$resizer=null,By(document).off("mousemove.dgtable",e.onMouseMoveResizeAreaBound).off("mouseup.dgtable",e.onEndDragColumnHeaderBound)),this},nw.prototype._onTableScrolledHorizontally=function(){var e=this.p;e.header.scrollLeft=e.table.scrollLeft},nw.prototype._getColumnByResizePosition=function(e){var t=this.o,n=this._isTableRtl(),o=By(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName),i=o[0];i.__cell&&(i=i.__cell,o=By(i));for(var a=o[0].previousSibling;a&&1!==a.nodeType;)a=a.previousSibling;var l=!a,s=((null!=e.pageX?e.pageX:e.originalEvent.pageX)||e.originalEvent.clientX)-o.offset().left;if(n){if(!l&&r.getElementWidth(o[0],!0,!0,!0)-s<=t.resizeAreaWidth/2)return a.columnName;if(s<=t.resizeAreaWidth/2)return i.columnName}else{if(!l&&s<=t.resizeAreaWidth/2)return a.columnName;if(r.getElementWidth(o[0],!0,!0,!0)-s<=t.resizeAreaWidth/2)return i.columnName}return null},nw.prototype._onTouchStartColumnHeader=function(e){var t=this,r=this.p;if(!r.currentTouchId){var n=e.originalEvent.changedTouches[0];r.currentTouchId=n.identifier;var o,i=By(e.currentTarget),a={x:n.pageX,y:n.pageY},l=a,s=function(){r.currentTouchId=null,i.off("touchend").off("touchcancel"),clearTimeout(o)},u=function(t){for(var r=By.Event(t),n=Array.prototype.slice.call(arguments,1),o=0,i=["target","clientX","clientY","offsetX","offsetY","screenX","screenY","pageX","pageY","which"];o<i.length;o++){var a=i[o];r[a]=e[a];for(var l=0;l<n.length;l++)null!=n[l][a]&&(r[a]=n[l][a])}return r};i.trigger(u("mousedown",e.originalEvent.changedTouches[0],{which:1,target:e.target})),o=setTimeout((function(){s(),i.one("touchend",(function(e){rw(e)||e.preventDefault(),i.off("touchend").off("touchcancel")})).one("touchcancel",(function(e){i.off("touchend").off("touchcancel")})),Math.sqrt(Math.pow(Math.abs(l.x-a.x),2)+Math.pow(Math.abs(l.y-a.y),2))<9&&(t.cancelColumnResize(),i.trigger(u("mouseup",e.originalEvent.changedTouches[0],{which:3,target:e.target})))}),500),i.on("touchend",(function(e){var t=Wb(e.originalEvent.changedTouches,(function(e){return e.identifier===r.currentTouchId}));t&&(s(),rw(e)||e.preventDefault(),l={x:t.pageX,y:t.pageY},(Math.sqrt(Math.pow(Math.abs(l.x-a.x),2)+Math.pow(Math.abs(l.y-a.y),2))<9||r.$resizer)&&(i.trigger(u("mouseup",t,{which:1,target:e.target})),i.trigger(u("click",t,{which:1,target:e.target}))))})).on("touchcancel",(function(){s()})).on("touchmove",(function(e){var t=Wb(e.originalEvent.changedTouches,(function(e){return e.identifier===r.currentTouchId}));t&&(l={x:t.pageX,y:t.pageY},r.$resizer&&(e.preventDefault(),i.trigger(u("mousemove",t,{target:e.target}))))}))}},nw.prototype._onMouseDownColumnHeader=function(e){if(1!==e.which)return this;var t=this.o,n=this.p,o=this._getColumnByResizePosition(e);if(o){var i=n.columns.get(o);if(!t.resizableColumns||!i||!i.resizable)return!1;var a=this._isTableRtl();n.$resizer&&By(n.$resizer).remove(),n.$resizer=By("<div></div>").addClass(t.resizerClassName).css({position:"absolute",display:"block","z-index":-1,visibility:"hidden",width:"2px",background:"#000",opacity:.7}).appendTo(this.$el);var l=i.element,s=n.$resizer.parent(),u=l.offset(),c=s.offset();8===Vy&&(u=l.offset()),c.left+=parseFloat(s.css("border-left-width"))||0,c.top+=parseFloat(s.css("border-top-width"))||0,u.left-=c.left,u.top-=c.top,u.top-=parseFloat(l.css("border-top-width"))||0;var d=r.getElementWidth(n.$resizer[0],!0,!0,!0);a?(u.left-=Math.ceil((parseFloat(l.css("border-left-width"))||0)/2),u.left-=Math.ceil(d/2)):(u.left+=r.getElementWidth(l[0],!0,!0,!0),u.left+=Math.ceil((parseFloat(l.css("border-right-width"))||0)/2),u.left-=Math.ceil(d/2)),n.$resizer.css({"z-index":"10",visibility:"visible",left:u.left,top:u.top,height:r.getElementHeight(this.$el[0])})[0].columnName=l[0].columnName;try{n.$resizer[0].style.zIndex=""}catch(e){}By(document).on("mousemove.dgtable",n.onMouseMoveResizeAreaBound),By(document).on("mouseup.dgtable",n.onEndDragColumnHeaderBound),e.preventDefault()}},nw.prototype._onMouseMoveColumnHeader=function(e){var t=this.o,r=this.p;if(t.resizableColumns){var n=this._getColumnByResizePosition(e),o=By(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName)[0];n&&r.columns.get(n).resizable?o.style.cursor="e-resize":o.style.cursor=""}},nw.prototype._onMouseUpColumnHeader=function(e){if(3===e.which){var t=this.o,n=By(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName),o=n.offset();o.width=r.getElementWidth(n[0],!0,!0,!0),o.height=r.getElementHeight(n[0],!0,!0,!0),this.trigger("headercontextmenu",n[0].columnName,e.pageX,e.pageY,o)}return this},nw.prototype._onMouseLeaveColumnHeader=function(e){var t=this.o;By(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName)[0].style.cursor=""},nw.prototype._onClickColumnHeader=function(e){if(!rw(e)&&!this._getColumnByResizePosition(e)){var t=this.o,r=this.p,n=By(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName)[0];if(t.sortableColumns){var o=r.columns.get(n.columnName);o&&o.sortable&&this.sort(n.columnName,void 0,!0).render()}}},nw.prototype._onStartDragColumnHeader=function(e){var t=this.o,r=this.p;if(t.movableColumns){var n=By(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName),o=r.columns.get(n[0].columnName);o&&o.movable?(n[0].style.opacity=.35,r.dragId=161061273*Math.random(),e.originalEvent.dataTransfer.setData("text",JSON.stringify({dragId:r.dragId,column:o.name}))):e.preventDefault()}else e.preventDefault()},nw.prototype._onMouseMoveResizeArea=function(e){var t=this.p,n=t.columns.get(t.$resizer[0].columnName),o=this._isTableRtl(),i=n.element,a=t.$resizer.parent(),l=i.offset(),s=a.offset();s.left+=parseFloat(a.css("border-left-width"))||0,l.left-=s.left;var u=r.getElementWidth(t.$resizer[0],!0,!0,!0),c="border-box"===i.css("box-sizing"),d=e.pageX-s.left,h=l.left;h-=Math.ceil(u/2),o?(h+=r.getElementWidth(i[0],!0,!0,!0),h-=n.ignoreMin?0:this.o.minColumnWidth,c||(h-=Math.ceil((parseFloat(i.css("border-left-width"))||0)/2),h-=this._horizontalPadding(i[0])),d>h&&(d=h)):(h+=n.ignoreMin?0:this.o.minColumnWidth,c||(h+=Math.ceil((parseFloat(i.css("border-right-width"))||0)/2),h+=this._horizontalPadding(i[0])),d<h&&(d=h)),t.$resizer.css("left",d+"px")},nw.prototype._onEndDragColumnHeader=function(e){var t=this.o,n=this.p;if(n.$resizer){By(document).off("mousemove.dgtable",n.onMouseMoveResizeAreaBound).off("mouseup.dgtable",n.onEndDragColumnHeaderBound);var o=n.columns.get(n.$resizer[0].columnName),i=this._isTableRtl(),a=o.element,l=n.$resizer.parent(),s=a.offset(),u=l.offset();u.left+=parseFloat(l.css("border-left-width"))||0,s.left-=u.left;var c=r.getElementWidth(n.$resizer[0],!0,!0,!0),d="border-box"===a.css("box-sizing"),h=e.pageX-u.left,f=s.left,p=s.left,v=0;f-=Math.ceil(c/2),i?(d||(h+=this._horizontalPadding(a[0]),h+=parseFloat(a.css("border-left-width"))||0,h+=parseFloat(a.css("border-right-width"))||0),h>(p=(f+=r.getElementWidth(a[0],!0,!0,!0))-(o.ignoreMin?0:this.o.minColumnWidth))&&(h=p),v=f-h):(d||(h-=this._horizontalPadding(a[0]),h-=parseFloat(a.css("border-left-width"))||0,h-=parseFloat(a.css("border-right-width"))||0),h<(p=f+(o.ignoreMin?0:this.o.minColumnWidth))&&(h=p),v=h-f),n.$resizer.remove(),n.$resizer=null;var m=v;if(o.widthMode===ow.RELATIVE){for(var g=this._calculateWidthAvailableForColumns(),b=0,y=0,w=0;w<n.visibleColumns.length;w++){var C=n.visibleColumns[w];C.name!==o.name&&(C.widthMode===ow.RELATIVE?(b+=C.width,y++):g-=C.actualWidth)}if(m=v/(g=Math.max(1,g)),y>0){var E=m/((1-m)/b);((b+=m)<1&&t.relativeWidthGrowsToFillWidth||b>1&&t.relativeWidthShrinksToFillWidth)&&(m=E)}m*=100,m+="%"}this.setColumnWidth(o.name,m)}else e.target.style.opacity=null},nw.prototype._onDragEnterColumnHeader=function(e){var t=this.o,r=this.p;if(t.movableColumns){var n=e.originalEvent.dataTransfer.getData("text");n=n?JSON.parse(n):null;var o=By(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName);if(!n||r.dragId===n.dragId&&o.columnName!==n.column){var i=r.columns.get(o[0].columnName);i&&(i.movable||i!==r.visibleColumns[0])&&By(o).addClass("drag-over")}}},nw.prototype._onDragOverColumnHeader=function(e){e.preventDefault()},nw.prototype._onDragLeaveColumnHeader=function(e){var t=this.o,r=By(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName);By(r[0].firstChild).has(e.originalEvent.relatedTarget).length||r.removeClass("drag-over")},nw.prototype._onDropColumnHeader=function(e){e.preventDefault();var t=this.o,r=this.p,n=JSON.parse(e.originalEvent.dataTransfer.getData("text")),o=By(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName);if(t.movableColumns&&n.dragId===r.dragId){var i=n.column,a=o[0].columnName,l=r.columns.get(i),s=r.columns.get(a);l&&s&&l.movable&&(s.movable||s!==r.visibleColumns[0])&&this.moveColumn(i,a)}By(o).removeClass("drag-over")},nw.prototype._clearSortArrows=function(){var e=this.p;if(e.$table){var t=this.o.tableClassName,r=e.$headerRow.find(">div."+t+"-header-cell.sorted"),n=r.find(">div>.sort-arrow");n.each((function(t,r){var n=e.columns.get(r.parentNode.parentNode.columnName);n&&(n.arrowProposedWidth=0)})),n.remove(),r.removeClass("sorted").removeClass("desc")}return this},nw.prototype._showSortArrow=function(e,t){var r=this.p.columns.get(e);if(!r)return!1;var n=Gy("span");return n.className="sort-arrow",r.element&&(r.element.addClass(t?"sorted desc":"sorted"),r.element[0].firstChild.insertBefore(n,r.element[0].firstChild.firstChild)),r.widthMode!==ow.RELATIVE&&this.o.adjustColumnWidthForSortArrow&&(r.arrowProposedWidth=n.scrollWidth+(parseFloat(By(n).css("margin-right"))||0)+(parseFloat(By(n).css("margin-left"))||0)),this},nw.prototype._resizeColumnElements=function(e){var t=this.p,r=t.$headerRow.find("div."+this.o.tableClassName+"-header-cell"),n=t.columns.get(r[e].columnName);if(n){r[e].style.width=(n.actualWidthConsideringScrollbarWidth||n.actualWidth)+"px";for(var o=(n.actualWidthConsideringScrollbarWidth||n.actualWidth)+"px",i=t.tbody.childNodes,a=0,l=i.length;a<l;a++){var s=i[a];1===s.nodeType&&(s.childNodes[e].style.width=o)}}return this},nw.prototype._destroyHeaderCells=function(){var e=this.o,t=this.p;return t.$headerRow&&(this.trigger("headerrowdestroy",t.headerRow),t.$headerRow.find("div."+e.tableClassName+"-header-cell").remove(),t.$headerRow=null,t.headerRow=null),this},nw.prototype._renderSkeletonBase=function(){var e,t=this,n=t.p,o=t.o;null===(e=n.virtualListHelper)||void 0===e||e.destroy(),n.virtualListHelper=null,n.$table&&o.virtualTable&&(n.$table.remove(),n.$table=n.table=n.$tbody=n.tbody=null),t._destroyHeaderCells(),n.currentTouchId=null,n.$header&&n.$header.remove();var i=o.tableClassName,a=Gy("div"),l=By(a),s=Gy("div"),u=By(s);return a.className=i+"-header",s.className=i+"-header-row",n.$header=l,n.header=a,n.$headerRow=u,n.headerRow=s,u.appendTo(n.$header),l.prependTo(this.$el),Zy(t.$el),o.width===nw.Width.SCROLL?this.el.style.overflow="hidden":this.el.style.overflow="",!o.height&&o.virtualTable&&(o.height=r.getElementHeight(this.$el[0],!0)),this},nw.prototype._renderSkeletonHeaderCells=function(){var e,t=this,r=t.p,n=t.o,o=n.allowCellPreview,i=n.allowHeaderCellPreview,a=n.tableClassName+"-header-cell",l=r.headerRow;qy&&(e=function(e){return e.preventDefault(),this.dragDrop(),!1});for(var s=function(e){e.preventDefault()},u=0;u<r.visibleColumns.length;u++){var c=r.visibleColumns[u];if(c.visible){var d=Gy("div"),h=By(d);d.draggable=!0,d.className=a,d.style.width=c.actualWidth+"px",n.sortableColumns&&c.sortable&&(d.className+=" sortable"),d.columnName=c.name,d.setAttribute("data-column",c.name);var f=Gy("div");f.innerHTML=n.headerCellFormatter(c.label,c.name),d.appendChild(f),o&&i&&r._bindCellHoverIn(d),l.appendChild(d),r.visibleColumns[u].element=h,h.on("mousedown.dgtable",t._onMouseDownColumnHeader.bind(t)).on("mousemove.dgtable",t._onMouseMoveColumnHeader.bind(t)).on("mouseup.dgtable",t._onMouseUpColumnHeader.bind(t)).on("mouseleave.dgtable",t._onMouseLeaveColumnHeader.bind(t)).on("touchstart.dgtable",t._onTouchStartColumnHeader.bind(t)).on("dragstart.dgtable",t._onStartDragColumnHeader.bind(t)).on("click.dgtable",t._onClickColumnHeader.bind(t)).on("contextmenu.dgtable",s),By(f).on("dragenter.dgtable",t._onDragEnterColumnHeader.bind(t)).on("dragover.dgtable",t._onDragOverColumnHeader.bind(t)).on("dragleave.dgtable",t._onDragLeaveColumnHeader.bind(t)).on("drop.dgtable",t._onDropColumnHeader.bind(t)),qy&&h.on("selectstart.dgtable",e.bind(d)),h.css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","-o-user-select":"none","user-select":"none"})}}return this.trigger("headerrowcreate",l),this},nw.prototype._renderSkeletonBody=function(){var e=this,t=e.p,n=e.o,o=n.tableClassName;if(n.virtualTable&&!t.virtualRowHeight){var i,a=function(){var e=Gy("div"),t=e.appendChild(Gy("div")),r=t.appendChild(Gy("div"));return e.className=o+"-row",t.className=o+"-cell",r.innerHTML="0",e.style.visibility="hidden",e.style.position="absolute",e},l=By("<div>").addClass(e.el.className).css({"z-index":-1,position:"absolute",left:"0",top:"-9999px",width:"1px",overflow:"hidden"}).append(By("<div>").addClass(o).append(i=By("<div>").addClass(o+"-body").css("width",99999)));l.appendTo(document.body);var s=a(),u=a(),c=a();i.append(s,u,c),t.virtualRowHeightFirst=r.getElementHeight(s,!0,!0,!0),t.virtualRowHeight=r.getElementHeight(u,!0,!0,!0),t.virtualRowHeightLast=r.getElementHeight(c,!0,!0,!0),l.remove()}if(!t.$table){var d=document.createDocumentFragment(),h=Gy("div"),f=By(h);h.className=o,n.virtualTable&&(h.className+=" virtual");var p=n.height-r.getElementHeight(t.$headerRow[0],!0,!0,!0);"border-box"!==f.css("box-sizing")&&(p-=parseFloat(f.css("border-top-width"))||0,p-=parseFloat(f.css("border-bottom-width"))||0,p-=parseFloat(f.css("padding-top"))||0,p-=parseFloat(f.css("padding-bottom"))||0),t.visibleHeight=p,h.style.height=n.height?p+"px":"auto",h.style.display="block",h.style.overflowY="auto",h.style.overflowX=n.width===nw.Width.SCROLL?"auto":"hidden",d.appendChild(h);var v=Gy("div"),m=By(v);v.className=n.tableClassName+"-body",v.style.minHeight="1px",t.table=h,t.tbody=v,t.$table=f,t.$tbody=m,Zy(m),Zy(f),h.appendChild(v),e.el.appendChild(d),this._setupVirtualTable()}return this},nw.prototype._renderSkeleton=function(){return this},nw.prototype._updateVirtualHeight=function(){var e=this.o,t=this.p;return t.tbody?(e.virtualTable?t.tbody.style.height=t.virtualListHelper.estimateFullHeight()+"px":t.tbody.style.height="",this):this},nw.prototype._updateLastCellWidthFromScrollbar=function(e){var t=this.p,r=t.table.offsetWidth-t.table.clientWidth;if(r!==t.scrollbarWidth||e){var n;t.scrollbarWidth=r;for(var o=0;o<t.columns.length;o++)t.columns[o].actualWidthConsideringScrollbarWidth=null;if(t.scrollbarWidth>0&&t.visibleColumns.length>0){var i=t.visibleColumns.length-1;t.visibleColumns[i].actualWidthConsideringScrollbarWidth=t.visibleColumns[i].actualWidth-t.scrollbarWidth;for(var a=t.visibleColumns[i].actualWidthConsideringScrollbarWidth+"px",l=t.tbody.childNodes,s=0,u=l.length;s<u;s++){var c=l[s];1===c.nodeType&&(c.childNodes[i].style.width=a)}t.headerRow.childNodes[i].style.width=a}null===(n=t.notifyRendererOfColumnsConfig)||void 0===n||n.call(t)}return this},nw.prototype._updateTableWidth=function(e){var t,n,o=this.o,i=this.p,a=this._calculateTbodyWidth();if(i.tbody.style.minWidth=a+"px",i.headerRow.style.minWidth=a+(i.scrollbarWidth||0)+"px",i.$table.off("scroll",i.onTableScrolledHorizontallyBound),o.width===nw.Width.AUTO)r.setElementWidth(i.$table[0],r.getElementWidth(i.tbody,!0,!0,!0)),r.setElementWidth(this.$el[0],r.getElementWidth(i.$table[0],!0,!0,!0));else if(o.width===nw.Width.SCROLL){if(e){var l=i.table?i.table.scrollTop:0,s=i.table?i.table.scrollLeft:0;n=(t=this.el).style.display,t.style.display="none",t.offsetHeight,t.style.display=n,i.table.scrollTop=l,i.table.scrollLeft=s,i.header.scrollLeft=s}i.$table.on("scroll",i.onTableScrolledHorizontallyBound)}return this},nw.prototype._isTableRtl=function(){return"rtl"===this.p.$table.css("direction")},nw.prototype._serializeColumnWidth=function(e){return e.widthMode===ow.AUTO?"auto":e.widthMode===ow.RELATIVE?100*e.width+"%":e.width},nw.prototype._cellMouseOverEvent=function(e){var t=this,n=this.o,o=this.p,i=e.firstChild;if(i.scrollWidth-i.clientWidth>1||i.scrollHeight-i.clientHeight>1){this.hideCellPreview(),o.abortCellPreview=!1;var a=By(e),l=By(i),s=e.parentNode,u=Gy("div"),c=By(u);u.innerHTML=e.innerHTML,u.className=n.cellPreviewClassName;var d=a.hasClass(n.tableClassName+"-header-cell");d&&(u.className+=" header",a.hasClass("sortable")&&(u.className+=" sortable"),u.draggable=!0,By(u).on("mousedown",this._onMouseDownColumnHeader.bind(this)).on("mousemove",this._onMouseMoveColumnHeader.bind(this)).on("mouseup",this._onMouseUpColumnHeader.bind(this)).on("mouseleave",this._onMouseLeaveColumnHeader.bind(this)).on("touchstart",this._onTouchStartColumnHeader.bind(this)).on("dragstart",this._onStartDragColumnHeader.bind(this)).on("click",this._onClickColumnHeader.bind(this)).on("contextmenu.dgtable",(function(e){e.preventDefault()})),By(u.firstChild).on("dragenter",this._onDragEnterColumnHeader.bind(this)).on("dragover",this._onDragOverColumnHeader.bind(this)).on("dragleave",this._onDragLeaveColumnHeader.bind(this)).on("drop",this._onDropColumnHeader.bind(this)),qy&&By(u).on("selectstart",function(e){return e.preventDefault(),this.dragDrop(),!1}.bind(u)));var h=parseFloat(a.css("padding-left"))||0,f=parseFloat(a.css("padding-right"))||0,p=parseFloat(a.css("padding-top"))||0,v=parseFloat(a.css("padding-bottom"))||0,m=i.scrollWidth+(e.clientWidth-i.offsetWidth),g="border-box"===a.css("box-sizing");if(g?c.css("box-sizing","border-box"):(m-=h+f,c.css("margin-top",parseFloat(By(e).css("border-top-width"))||0)),!o.transparentBgColor1){var b=document.createElement("div");b.style.backgroundColor="transparent",o.transparentBgColor1=By(b).css("background-color"),b.style.backgroundColor="rgba(0,0,0,0)",o.transparentBgColor2=By(b).css("background-color")}var y={"box-sizing":g?"border-box":"content-box",width:m,"min-height":r.getElementHeight(a[0]),"padding-left":h,"padding-right":f,"padding-top":p,"padding-bottom":v,overflow:"hidden",position:"absolute","z-index":"-1",left:"0",top:"0",cursor:a.css("cursor")};if(y){var w=By(e).css("background-color");w!==o.transparentBgColor1&&w!==o.transparentBgColor2||(w=By(s).css("background-color")),w!==o.transparentBgColor1&&w!==o.transparentBgColor2||(w="#fff"),y["background-color"]=w}c.css(y),this.el.appendChild(u),By(u.firstChild).css({direction:l.css("direction"),"white-space":l.css("white-space")}),d&&c.css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","-o-user-select":"none","user-select":"none"}),u.rowIndex=s.rowIndex;var C=u.physicalRowIndex=s.physicalRowIndex;u.columnName=o.visibleColumns[$y.call(s.childNodes,e)].name;try{var E=Yb.saveSelection(e);E&&Yb.restoreSelection(u,E)}catch(e){}if(this.trigger("cellpreview",u.firstChild,null==C?null:C,u.columnName,null==C?null:o.rows[C],e),o.abortCellPreview)return void c.remove();null!=C&&u.addEventListener("click",(function(e){t.trigger("rowclick",e,s.rowIndex,C,s,o.rows[C])}));var S=this.$el,_=S[0]===window?By(document):S,I=a.offset(),R=S.offset(),x="right"===a.css("float"),W=x?"right":"left";if(x){var P=By(window).width();I.right=P-(I.left+r.getElementWidth(a[0],!0,!0,!0)),R.right=P-(R.left+r.getElementWidth(S[0],!0,!0,!0))}I.left-=parseFloat(S.css("border-left-width"))||0,I.right-=parseFloat(S.css("border-right-width"))||0,I.top-=parseFloat(S.css("border-top-width"))||0,I[W]+=parseFloat(By(e).css("border-"+W+"-width"))||0,I.top+=parseFloat(By(e).css("border-top-width"))||parseFloat(By(e).css("border-bottom-width"))||0,I.left-=R.left,I.right-=R.right,I.top-=R.top;var k=S-r.getElementWidth(c[0],!0,!0,!0);I[W]=I[W]<0?0:I[W]>k?k:I[W];var T=r.getElementHeight(a[0],!0,!0,!0),A=_.scrollTop()+r.getElementHeight(S[0],!0)-T;I.top>A&&(I.top=Math.max(0,A));var H={top:I.top,"z-index":9999};H[W]=I[W],c.css(H),u.__cell=e,o.$cellPreviewCell=c,e.__previewCell=u,o._bindCellHoverOut(e),o._bindCellHoverOut(u),c.on("wheel",(function(){t.hideCellPreview()}))}},nw.prototype._cellMouseOutEvent=function(e){this.hideCellPreview()},nw.prototype.hideCellPreview=function(){var e=this.p;if(e.$cellPreviewCell){var t,r=e.$cellPreviewCell[0],n=r.__cell;try{t=Yb.saveSelection(r)}catch(e){}e.$cellPreviewCell.remove(),e._unbindCellHoverOut(n),e._unbindCellHoverOut(r);try{t&&Yb.restoreSelection(n,t)}catch(e){}this.trigger("cellpreviewdestroy",r.firstChild,r.physicalRowIndex,r.columnName,n),n.__previewCell=null,r.__cell=null,e.$cellPreviewCell=null,e.abortCellPreview=!1}else e.abortCellPreview=!0;return this};var ow={AUTO:0,ABSOLUTE:1,RELATIVE:2};return nw.Width={NONE:"none",AUTO:"auto",SCROLL:"scroll"},By.controls||(By.controls={}),By.controls.dgtable=nw,nw}));
6
6
 
7
7
  //# sourceMappingURL=jquery.dgtable.umd.min.js.map