jquery.dgtable 0.5.59 → 0.6.0

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.5.59
2
+ * jquery.dgtable 0.6.0
3
3
  * git://github.com/danielgindi/jquery.dgtable.git
4
4
  */
5
- import e from"jquery";import{getScrollHorz as t,setScrollHorz as o}from"@danielgindi/dom-utils/lib/ScrollHelper";import{getElementWidth as r,getElementHeight as l,setElementWidth as i}from"@danielgindi/dom-utils/lib/Css";var n="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},a=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof n&&n)||function(){return this}()||Function("return this")(),d={},u=function(e){try{return!!e()}catch(e){return!0}},h=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!u((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),p=c,f=Function.prototype.call,m=p?f.bind(f):function(){return f.apply(f,arguments)},g={},b={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,C=v&&!b.call({1:2},1);g.f=C?function(e){var t=v(this,e);return!!t&&t.enumerable}:b;var w,y,_=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},R=c,W=Function.prototype,T=W.call,S=R&&W.bind.bind(T,T),N=function(e){return R?S(e):function(){return T.apply(e,arguments)}},M=N,E=M({}.toString),F=M("".slice),z=function(e){return F(E(e),8,-1)},O=z,x=N,H=function(e){if("Function"===O(e))return x(e)},A=u,P=z,$=Object,L=H("".split),k=A((function(){return!$("z").propertyIsEnumerable(0)}))?function(e){return"String"==P(e)?L(e,""):$(e)}:$,I=function(e){return null==e},B=I,D=TypeError,j=function(e){if(B(e))throw D("Can't call method on "+e);return e},V=k,U=j,q=function(e){return V(U(e))},X="object"==typeof document&&document.all,Y={all:X,IS_HTMLDDA:void 0===X&&void 0!==X},G=Y.all,J=Y.IS_HTMLDDA?function(e){return"function"==typeof e||e===G}:function(e){return"function"==typeof e},K=J,Q=Y.all,Z=Y.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:K(e)||e===Q}:function(e){return"object"==typeof e?null!==e:K(e)},ee=a,te=J,oe=function(e){return te(e)?e:void 0},re=function(e,t){return arguments.length<2?oe(ee[e]):ee[e]&&ee[e][t]},le=H({}.isPrototypeOf),ie=re("navigator","userAgent")||"",ne=a,se=ie,ae=ne.process,de=ne.Deno,ue=ae&&ae.versions||de&&de.version,he=ue&&ue.v8;he&&(y=(w=he.split("."))[0]>0&&w[0]<4?1:+(w[0]+w[1])),!y&&se&&(!(w=se.match(/Edge\/(\d+)/))||w[1]>=74)&&(w=se.match(/Chrome\/(\d+)/))&&(y=+w[1]);var ce=y,pe=ce,fe=u,me=!!Object.getOwnPropertySymbols&&!fe((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=re,ve=J,Ce=le,we=Object,ye=ge?function(e){return"symbol"==typeof e}:function(e){var t=be("Symbol");return ve(t)&&Ce(t.prototype,we(e))},_e=String,Re=function(e){try{return _e(e)}catch(e){return"Object"}},We=J,Te=Re,Se=TypeError,Ne=function(e){if(We(e))return e;throw Se(Te(e)+" is not a function")},Me=Ne,Ee=I,Fe=m,ze=J,Oe=Z,xe=TypeError,He={exports:{}},Ae=a,Pe=Object.defineProperty,$e=function(e,t){try{Pe(Ae,e,{value:t,configurable:!0,writable:!0})}catch(o){Ae[e]=t}return t},Le=$e,ke=a["__core-js_shared__"]||Le("__core-js_shared__",{}),Ie=ke;(He.exports=function(e,t){return Ie[e]||(Ie[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var Be=j,De=Object,je=function(e){return De(Be(e))},Ve=je,Ue=H({}.hasOwnProperty),qe=Object.hasOwn||function(e,t){return Ue(Ve(e),t)},Xe=H,Ye=0,Ge=Math.random(),Je=Xe(1..toString),Ke=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Je(++Ye+Ge,36)},Qe=a,Ze=He.exports,et=qe,tt=Ke,ot=me,rt=ge,lt=Ze("wks"),it=Qe.Symbol,nt=it&&it.for,st=rt?it:it&&it.withoutSetter||tt,at=function(e){if(!et(lt,e)||!ot&&"string"!=typeof lt[e]){var t="Symbol."+e;ot&&et(it,e)?lt[e]=it[e]:lt[e]=rt&&nt?nt(t):st(t)}return lt[e]},dt=m,ut=Z,ht=ye,ct=TypeError,pt=at("toPrimitive"),ft=function(e,t){if(!ut(e)||ht(e))return e;var o,r,l=(r=e[pt],Ee(r)?void 0:Me(r));if(l){if(void 0===t&&(t="default"),o=dt(l,e,t),!ut(o)||ht(o))return o;throw ct("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var o,r;if("string"===t&&ze(o=e.toString)&&!Oe(r=Fe(o,e)))return r;if(ze(o=e.valueOf)&&!Oe(r=Fe(o,e)))return r;if("string"!==t&&ze(o=e.toString)&&!Oe(r=Fe(o,e)))return r;throw xe("Can't convert object to primitive value")}(e,t)},mt=ye,gt=function(e){var t=ft(e,"string");return mt(t)?t:t+""},bt=Z,vt=a.document,Ct=bt(vt)&&bt(vt.createElement),wt=!h&&!u((function(){return 7!=Object.defineProperty((e="div",Ct?vt.createElement(e):{}),"a",{get:function(){return 7}}).a;var e})),yt=h,_t=m,Rt=g,Wt=_,Tt=q,St=gt,Nt=qe,Mt=wt,Et=Object.getOwnPropertyDescriptor;d.f=yt?Et:function(e,t){if(e=Tt(e),t=St(t),Mt)try{return Et(e,t)}catch(e){}if(Nt(e,t))return Wt(!_t(Rt.f,e,t),e[t])};var Ft={},zt=h&&u((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ot=Z,xt=String,Ht=TypeError,At=function(e){if(Ot(e))return e;throw Ht(xt(e)+" is not an object")},Pt=h,$t=wt,Lt=zt,kt=At,It=gt,Bt=TypeError,Dt=Object.defineProperty,jt=Object.getOwnPropertyDescriptor;Ft.f=Pt?Lt?function(e,t,o){if(kt(e),t=It(t),kt(o),"function"==typeof e&&"prototype"===t&&"value"in o&&"writable"in o&&!o.writable){var r=jt(e,t);r&&r.writable&&(e[t]=o.value,o={configurable:"configurable"in o?o.configurable:r.configurable,enumerable:"enumerable"in o?o.enumerable:r.enumerable,writable:!1})}return Dt(e,t,o)}:Dt:function(e,t,o){if(kt(e),t=It(t),kt(o),$t)try{return Dt(e,t,o)}catch(e){}if("get"in o||"set"in o)throw Bt("Accessors not supported");return"value"in o&&(e[t]=o.value),e};var Vt=Ft,Ut=_,qt=h?function(e,t,o){return Vt.f(e,t,Ut(1,o))}:function(e,t,o){return e[t]=o,e},Xt={exports:{}},Yt=h,Gt=qe,Jt=Function.prototype,Kt=Yt&&Object.getOwnPropertyDescriptor,Qt=Gt(Jt,"name"),Zt={EXISTS:Qt,PROPER:Qt&&"something"===function(){}.name,CONFIGURABLE:Qt&&(!Yt||Yt&&Kt(Jt,"name").configurable)},eo=J,to=ke,oo=H(Function.toString);eo(to.inspectSource)||(to.inspectSource=function(e){return oo(e)});var ro,lo,io,no,so=to.inspectSource,ao=J,uo=a.WeakMap,ho=ao(uo)&&/native code/.test(String(uo)),co=He.exports,po=Ke,fo=co("keys"),mo={},go=ho,bo=a,vo=Z,Co=qt,wo=qe,yo=ke,_o=mo,Ro=bo.TypeError,Wo=bo.WeakMap;if(go||yo.state){var To=yo.state||(yo.state=new Wo);To.get=To.get,To.has=To.has,To.set=To.set,ro=function(e,t){if(To.has(e))throw Ro("Object already initialized");return t.facade=e,To.set(e,t),t},lo=function(e){return To.get(e)||{}},io=function(e){return To.has(e)}}else{var So=fo[no="state"]||(fo[no]=po(no));_o[So]=!0,ro=function(e,t){if(wo(e,So))throw Ro("Object already initialized");return t.facade=e,Co(e,So,t),t},lo=function(e){return wo(e,So)?e[So]:{}},io=function(e){return wo(e,So)}}var No={set:ro,get:lo,has:io,enforce:function(e){return io(e)?lo(e):ro(e,{})},getterFor:function(e){return function(t){var o;if(!vo(t)||(o=lo(t)).type!==e)throw Ro("Incompatible receiver, "+e+" required");return o}}},Mo=u,Eo=J,Fo=qe,zo=h,Oo=Zt.CONFIGURABLE,xo=so,Ho=No.enforce,Ao=No.get,Po=Object.defineProperty,$o=zo&&!Mo((function(){return 8!==Po((function(){}),"length",{value:8}).length})),Lo=String(String).split("String"),ko=Xt.exports=function(e,t,o){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),o&&o.getter&&(t="get "+t),o&&o.setter&&(t="set "+t),(!Fo(e,"name")||Oo&&e.name!==t)&&(zo?Po(e,"name",{value:t,configurable:!0}):e.name=t),$o&&o&&Fo(o,"arity")&&e.length!==o.arity&&Po(e,"length",{value:o.arity});try{o&&Fo(o,"constructor")&&o.constructor?zo&&Po(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=Ho(e);return Fo(r,"source")||(r.source=Lo.join("string"==typeof t?t:"")),e};Function.prototype.toString=ko((function(){return Eo(this)&&Ao(this).source||xo(this)}),"toString");var Io=J,Bo=Ft,Do=Xt.exports,jo=$e,Vo={},Uo=Math.ceil,qo=Math.floor,Xo=Math.trunc||function(e){var t=+e;return(t>0?qo:Uo)(t)},Yo=function(e){var t=+e;return t!=t||0===t?0:Xo(t)},Go=Yo,Jo=Math.max,Ko=Math.min,Qo=function(e,t){var o=Go(e);return o<0?Jo(o+t,0):Ko(o,t)},Zo=Yo,er=Math.min,tr=function(e){return(t=e.length)>0?er(Zo(t),9007199254740991):0;var t},or=q,rr=Qo,lr=tr,ir=function(e){return function(t,o,r){var l,i=or(t),n=lr(i),s=rr(r,n);if(e&&o!=o){for(;n>s;)if((l=i[s++])!=l)return!0}else for(;n>s;s++)if((e||s in i)&&i[s]===o)return e||s||0;return!e&&-1}},nr={includes:ir(!0),indexOf:ir(!1)},sr=qe,ar=q,dr=nr.indexOf,ur=mo,hr=H([].push),cr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");Vo.f=Object.getOwnPropertyNames||function(e){return function(e,t){var o,r=ar(e),l=0,i=[];for(o in r)!sr(ur,o)&&sr(r,o)&&hr(i,o);for(;t.length>l;)sr(r,o=t[l++])&&(~dr(i,o)||hr(i,o));return i}(e,cr)};var pr={};pr.f=Object.getOwnPropertySymbols;var fr=re,mr=Vo,gr=pr,br=At,vr=H([].concat),Cr=fr("Reflect","ownKeys")||function(e){var t=mr.f(br(e)),o=gr.f;return o?vr(t,o(e)):t},wr=qe,yr=Cr,_r=d,Rr=Ft,Wr=u,Tr=J,Sr=/#|\.prototype\./,Nr=function(e,t){var o=Er[Mr(e)];return o==zr||o!=Fr&&(Tr(t)?Wr(t):!!t)},Mr=Nr.normalize=function(e){return String(e).replace(Sr,".").toLowerCase()},Er=Nr.data={},Fr=Nr.NATIVE="N",zr=Nr.POLYFILL="P",Or=Nr,xr=a,Hr=d.f,Ar=qt,Pr=function(e,t,o,r){r||(r={});var l=r.enumerable,i=void 0!==r.name?r.name:t;if(Io(o)&&Do(o,i,r),r.global)l?e[t]=o:jo(t,o);else{try{r.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=o:Bo.f(e,t,{value:o,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},$r=$e,Lr=function(e,t,o){for(var r=yr(t),l=Rr.f,i=_r.f,n=0;n<r.length;n++){var s=r[n];wr(e,s)||o&&wr(o,s)||l(e,s,i(t,s))}},kr=Or,Ir=Re,Br=TypeError,Dr={};Dr[at("toStringTag")]="z";var jr,Vr,Ur="[object z]"===String(Dr),qr=J,Xr=z,Yr=at("toStringTag"),Gr=Object,Jr="Arguments"==Xr(function(){return arguments}()),Kr=Ur?Xr:function(e){var t,o,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=function(e,t){try{return e[t]}catch(e){}}(t=Gr(e),Yr))?o:Jr?Xr(t):"Object"==(r=Xr(t))&&qr(t.callee)?"Arguments":r},Qr=String,Zr=gt,el=Ft,tl=_,ol=Qo,rl=tr,ll=function(e,t,o){var r=Zr(t);r in e?el.f(e,r,tl(0,o)):e[r]=o},il=Array,nl=Math.max,sl=function(e,t,o){for(var r=rl(e),l=ol(t,r),i=ol(void 0===o?r:o,r),n=il(nl(i-l,0)),s=0;l<i;l++,s++)ll(n,s,e[l]);return n.length=s,n},al=Math.floor,dl=function(e,t){var o=e.length,r=al(o/2);return o<8?ul(e,t):hl(e,dl(sl(e,0,r),t),dl(sl(e,r),t),t)},ul=function(e,t){for(var o,r,l=e.length,i=1;i<l;){for(r=i,o=e[i];r&&t(e[r-1],o)>0;)e[r]=e[--r];r!==i++&&(e[r]=o)}return e},hl=function(e,t,o,r){for(var l=t.length,i=o.length,n=0,s=0;n<l||s<i;)e[n+s]=n<l&&s<i?r(t[n],o[s])<=0?t[n++]:o[s++]:n<l?t[n++]:o[s++];return e},cl=dl,pl=u,fl=ie.match(/firefox\/(\d+)/i),ml=!!fl&&+fl[1],gl=/MSIE|Trident/.test(ie),bl=ie.match(/AppleWebKit\/(\d+)\./),vl=!!bl&&+bl[1],Cl=H,wl=Ne,yl=je,_l=tr,Rl=function(e,t){if(!delete e[t])throw Br("Cannot delete property "+Ir(t)+" of "+Ir(e))},Wl=function(e){if("Symbol"===Kr(e))throw TypeError("Cannot convert a Symbol value to a string");return Qr(e)},Tl=u,Sl=cl,Nl=ml,Ml=gl,El=ce,Fl=vl,zl=[],Ol=Cl(zl.sort),xl=Cl(zl.push),Hl=Tl((function(){zl.sort(void 0)})),Al=Tl((function(){zl.sort(null)})),Pl=!!(Vr=[]["sort"])&&pl((function(){Vr.call(null,jr||function(){return 1},1)})),$l=!Tl((function(){if(El)return El<70;if(!(Nl&&Nl>3)){if(Ml)return!0;if(Fl)return Fl<603;var e,t,o,r,l="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:o=3;break;case 68:case 71:o=4;break;default:o=2}for(r=0;r<47;r++)zl.push({k:t+r,v:o})}for(zl.sort((function(e,t){return t.v-e.v})),r=0;r<zl.length;r++)t=zl[r].k.charAt(0),l.charAt(l.length-1)!==t&&(l+=t);return"DGBEFHACIJK"!==l}}));!function(e,t){var o,r,l,i,n,s=e.target,a=e.global,d=e.stat;if(o=a?xr:d?xr[s]||$r(s,{}):(xr[s]||{}).prototype)for(r in t){if(i=t[r],l=e.dontCallGetSet?(n=Hr(o,r))&&n.value:o[r],!kr(a?r:s+(d?".":"#")+r,e.forced)&&void 0!==l){if(typeof i==typeof l)continue;Lr(i,l)}(e.sham||l&&l.sham)&&Ar(i,"sham",!0),Pr(o,r,i,e)}}({target:"Array",proto:!0,forced:Hl||!Al||!Pl||!$l},{sort:function(e){void 0!==e&&wl(e);var t=yl(this);if($l)return void 0===e?Ol(t):Ol(t,e);var o,r,l=[],i=_l(t);for(r=0;r<i;r++)r in t&&xl(l,t[r]);for(Sl(l,function(e){return function(t,o){return void 0===o?-1:void 0===t?1:void 0!==e?+e(t,o)||0:Wl(t)>Wl(o)?1:-1}}(e)),o=_l(l),r=0;r<o;)t[r]=l[r++];for(;r<i;)Rl(t,r++);return t}});const Ll=Array.prototype.indexOf,kl=function(e,t){for(let o=0,r=e.length;o>=0&&o<r;o+=1)if(t(e[o],o,e))return e[o]},Il=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")};function Bl(){let e=[];return Object.assign(e,Bl.prototype),e.initialize.apply(e,arguments),e}Bl.prototype=[],Bl.prototype.initialize=function(e){e=e||{},this.sortColumn=null==e.sortColumn?[]:e.sortColumn},Bl.prototype.add=function(e,t){let o,r;if("splice"in e&&"length"in e)if("number"==typeof t)for(o=0,r=e.length;o<r;o++)this.splice(t++,0,e[o]);else for(o=0,r=e.length;o<r;o++)this.push(e[o]);else"number"==typeof t?this.splice(t,0,e):this.push(e)},Bl.prototype.reset=function(e){this.length=0,e&&this.add(e)},Bl.prototype.filteredCollection=function(e,t){if(e&&t){let o=new Bl({sortColumn:this.sortColumn});for(let r,l=0,i=this.length;l<i;l++)r=this[l],e(r,t)&&(r.__i=l,o.push(r));return o}return null},Bl.prototype.onComparatorRequired=null,Bl.prototype.onSort=null;let Dl=Bl.prototype.sort;function jl(e,t){let o=e.column,r=e.comparePath||o;"string"==typeof r&&(r=r.split("."));let l,i=r.length,n=i>1,s=t?1:-1,a=t?-1:1;return function(e,t){let o=e[r[0]],d=t[r[0]];if(n)for(l=1;l<i;l++)o=o&&o[r[l]],d=d&&d[r[l]];return o===d?0:null==o?s:null==d?a:o<d?s:a}}function Vl(){let e=[];return Object.assign(e,Vl.prototype),e.initialize.apply(e,arguments),e}Bl.prototype.sort=function(e){let t;if(this.sortColumn.length){let o=[];for(let e=0;e<this.sortColumn.length;e++){t=null;const r=jl(this.sortColumn[e],this.sortColumn[e].descending);this.onComparatorRequired&&(t=this.onComparatorRequired(this.sortColumn[e].column,this.sortColumn[e].descending,r)),t||(t=r),o.push(t.bind(this))}if(1===o.length)t=o[0],Dl.call(this,t);else{let e,r=o.length;t=function(t,l){for(let i=0;i<r;i++)if(e=o[i](t,l),0!==e)return e;return e},Dl.call(this,t)}e||this.onSort&&this.onSort(t)}return t},Vl.prototype=[],Vl.prototype.initialize=function(){},Vl.prototype.get=function(e){for(let t=0,o=this.length;t<o;t++)if(this[t].name==e)return this[t];return null},Vl.prototype.indexOf=function(e){for(let t=0,o=this.length;t<o;t++)if(this[t].name==e)return t;return-1},Vl.prototype.getByOrder=function(e){for(let t=0,o=this.length;t<o;t++)if(this[t].order==e)return this[t];return null},Vl.prototype.normalizeOrder=function(){let 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},Vl.prototype.getColumns=function(){let e=[];for(let t,o=0;o<this.length;o++)t=this[o],e.push(t);return e.sort(((e,t)=>e.order<t.order?-1:e.order>t.order?1:0)),e},Vl.prototype.getVisibleColumns=function(){let e=[];for(let t,o=0;o<this.length;o++)t=this[o],t.visible&&e.push(t);return e.sort(((e,t)=>e.order<t.order?-1:e.order>t.order?1:0)),e},Vl.prototype.getMaxOrder=function(){let e=0;for(let t,o=0;o<this.length;o++)t=this[o],t.order>e&&(e=t.order);return e},Vl.prototype.moveColumn=function(e,t){if(e&&t){let o,r,l=e.order,i=t.order;if(l<i)for(o=l+1;o<=i;o++)r=this.getByOrder(o),r.order--;else for(o=l-1;o>=i;o--)r=this.getByOrder(o),r.order++;e.order=i}return this};const Ul={};let ql=null;Ul.getSupportedTransform=()=>{if(null===ql){let e=["transform","WebkitTransform","MozTransform","OTransform","msTransform"],t=document.createElement("div");ql=!1;for(let o of e)if(t&&void 0!==t.style[o]){ql=o;break}}return ql};class Xl{static saveSelection(e){let 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;let o=t.cloneRange();o.selectNodeContents(e),o.setEnd(t.startContainer,t.startOffset);let r=o.toString().length;return{start:r,end:r+t.toString().length}}static restoreSelection(e,t){let o,r=0,l=[e],i=!1,n=!1,s=document.createRange();for(s.setStart(e,0),s.collapse(!0);!n&&(o=l.pop());)if(3===o.nodeType){let e=r+o.length;!i&&t.start>=r&&t.start<=e&&(s.setStart(o,t.start-r),i=!0),i&&t.end>=r&&t.end<=e&&(s.setEnd(o,t.end-r),n=!0),r=e}else{let e=o.childNodes.length;for(;e--;)l.push(o.childNodes[e])}let a=window.getSelection();a.removeAllRanges(),a.addRange(s)}}function Yl(e,t){let o=t.column,r=null==t.keyword?"":t.keyword.toString();if(!r||!o)return!0;let l=e[o];return null!=l&&(l=l.toString(),t.caseSensitive||(l=l.toLowerCase(),r=r.toLowerCase()),-1!==l.indexOf(r))}const Gl=Array.prototype.indexOf,Jl=e;let Kl=navigator.userAgent,Ql=-1!==Kl.indexOf("MSIE ")?parseFloat(Kl.substr(Kl.indexOf("MSIE ")+5)):null,Zl=Ql&&Ql<10,ei=document.createElement.bind(document);const ti=Object.prototype.hasOwnProperty;function oi(e){var t,o;t=["relative","absolute","fixed"],o=e.css("position"),Ll.call(t,o)>=0||e.css("position","relative")}const ri=e=>/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(e.target.tagName);let li=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)};li.VERSION="@@VERSION",li.prototype.VERSION=li.VERSION,li.prototype.initialize=function(e){let t=this;e=e||{};let o=t.o={},r=t.p={};r.events={},t.el=e.el&&e.el instanceof Element?e.el:document.createElement("div");let l=t.$el=Jl(t.el);t.el!==e.el&&l.addClass(e.className||"dgtable-wrapper"),l.data("control",t).data("dgtable",t),l.on("remove",(function(){t.destroy()})),r.onMouseMoveResizeAreaBound=this._onMouseMoveResizeArea.bind(this),r.onEndDragColumnHeaderBound=this._onEndDragColumnHeader.bind(this),r.onTableScrolledHorizontallyBound=this._onTableScrolledHorizontally.bind(this),this.$el.on("dragend",r.onEndDragColumnHeaderBound),r.tableSkeletonNeedsRendering=!0,o.virtualTable=void 0===e.virtualTable||!!e.virtualTable,o.rowsBufferSize=e.rowsBufferSize||3,o.minColumnWidth=Math.max(e.minColumnWidth||35,0),o.resizeAreaWidth=e.resizeAreaWidth||8,o.resizableColumns=void 0===e.resizableColumns||!!e.resizableColumns,o.movableColumns=void 0===e.movableColumns||!!e.movableColumns,o.sortableColumns=void 0===e.sortableColumns?1:parseInt(e.sortableColumns,10)||1,o.adjustColumnWidthForSortArrow=void 0===e.adjustColumnWidthForSortArrow||!!e.adjustColumnWidthForSortArrow,o.convertColumnWidthsToRelative=void 0!==e.convertColumnWidthsToRelative&&!!e.convertColumnWidthsToRelative,o.autoFillTableWidth=void 0!==e.autoFillTableWidth&&!!e.autoFillTableWidth,o.cellClasses=void 0===e.cellClasses?"":e.cellClasses,o.resizerClassName=void 0===e.resizerClassName?"dgtable-resize":e.resizerClassName,o.tableClassName=void 0===e.tableClassName?"dgtable":e.tableClassName,o.allowCellPreview=void 0===e.allowCellPreview||e.allowCellPreview,o.allowHeaderCellPreview=void 0===e.allowHeaderCellPreview||e.allowHeaderCellPreview,o.cellPreviewClassName=void 0===e.cellPreviewClassName?"dgtable-cell-preview":e.cellPreviewClassName,o.cellPreviewAutoBackground=void 0===e.cellPreviewAutoBackground||e.cellPreviewAutoBackground,o.onComparatorRequired=void 0===e.onComparatorRequired?null:e.onComparatorRequired,o.onComparatorRequired||"function"!=typeof e.comparatorCallback||(o.onComparatorRequired=e.comparatorCallback),o.width=void 0===e.width?li.Width.NONE:e.width,o.relativeWidthGrowsToFillWidth=void 0===e.relativeWidthGrowsToFillWidth||!!e.relativeWidthGrowsToFillWidth,o.relativeWidthShrinksToFillWidth=void 0!==e.relativeWidthShrinksToFillWidth&&!!e.relativeWidthShrinksToFillWidth,this.setCellFormatter(e.cellFormatter),this.setHeaderCellFormatter(e.headerCellFormatter),this.setFilter(e.filter),o.height=e.height,t.setColumns(e.columns||[],!1);let i=[];if(e.sortColumn){let t=e.sortColumn;if(t&&!Array.isArray(t)&&(t=[t]),t)for(let e=0,o=t.length;e<o;e++){let o=t[e];"string"==typeof o&&(o={column:o,descending:!1});let l=r.columns.get(o.column);l&&i.push({column:o.column,comparePath:l.comparePath||l.dataPath,descending:o.descending})}}r.rows=new Bl({sortColumn:i}),r.rows.onComparatorRequired=(e,t,r)=>{if(o.onComparatorRequired)return o.onComparatorRequired(e,t,r)},r.filteredRows=null;let n=function(e){let o=(e=e||event).fromElement||e.relatedTarget;o===this||Jl.contains(this,o)||this.__previewCell&&(o===this.__previewCell||Jl.contains(this.__previewCell,o))||t._cellMouseOverEvent.call(t,this)},s=function(e){let o=(e=e||event).toElement||e.relatedTarget;o===this||Jl.contains(this,o)||this.__previewCell&&(o===this.__previewCell||Jl.contains(this.__previewCell,o))||t._cellMouseOutEvent.call(t,this)};"addEventListener"in window?(r._bindCellHoverIn=function(e){e.__hoverIn||e.addEventListener("mouseover",e.__hoverIn=n.bind(e))},r._unbindCellHoverIn=function(e){e.__hoverIn&&(e.removeEventListener("mouseover",e.__hoverIn),e.__hoverIn=null)},r._bindCellHoverOut=function(e){return e.__hoverOut||e.addEventListener("mouseout",e.__hoverOut=s.bind(e.__cell||e)),this},r._unbindCellHoverOut=function(e){return e.__hoverOut&&(e.removeEventListener("mouseout",e.__hoverOut),e.__hoverOut=null),this}):(r._bindCellHoverIn=function(e){e.__hoverIn||e.attachEvent("mouseover",e.__hoverIn=n.bind(e))},r._unbindCellHoverIn=function(e){e.__hoverIn&&(e.detachEvent("mouseover",e.__hoverIn),e.__hoverIn=null)},r._bindCellHoverOut=function(e){e.__hoverOut||e.attachEvent("mouseout",e.__hoverOut=s.bind(e.__cell||e))},r._unbindCellHoverOut=function(e){return e.__hoverOut&&(e.detachEvent("mouseout",e.__hoverOut),e.__hoverOut=null),this})},li.prototype.on=function(e,t){let o=this.p.events;return"function"!=typeof t||(ti.call(o,e)||(o[e]=[]),o[e].push({cb:t,once:!1})),this},li.prototype.once=function(e,t){let o=this.p.events;return"function"!=typeof t||(ti.call(o,e)||(o[e]=[]),o[e].push({cb:t,once:!0})),this},li.prototype.off=function(e,t){let o=this.p.events;if(!ti.call(o,e))return this;let r=o[e];for(let e=0;e<r.length;e++){let o=r[e];t&&o.cb!==t||r.splice(e--,1)}return this},li.prototype.trigger=function(e){const t=this.p;if(!t)return;let o=t.events;if(ti.call(o,e)){let t=o[e];for(let e=0;e<t.length;e++){let o=t[e];o.once&&t.splice(e--,1),o.cb.apply(this,Array.prototype.slice.call(arguments,1))}}return this},li.prototype._parseColumnWidth=function(e,t){let o=Math.max(0,parseFloat(e)),r=ii.AUTO;return o>0&&(e===o+"%"?(r=ii.RELATIVE,o/=100):o>0&&o<1?r=ii.RELATIVE:(o<t&&(o=t),r=ii.ABSOLUTE)),{width:o,mode:r}},li.prototype._initColumnFromData=function(e){let t=this._parseColumnWidth(e.width,e.ignoreMin?0:this.o.minColumnWidth),o={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 o.dataPath=void 0===e.dataPath?o.name:e.dataPath,o.comparePath=void 0===e.comparePath?o.dataPath:e.comparePath,"string"==typeof o.dataPath&&(o.dataPath=o.dataPath.split(".")),"string"==typeof o.comparePath&&(o.comparePath=o.comparePath.split(".")),o},li.prototype.close=li.prototype.remove=li.prototype.destroy=function(){let e=this,t=e.p||{},o=e.$el;if(e.__removed)return e;if(t.$resizer&&(t.$resizer.remove(),t.$resizer=null),t.$tbody){let o=t.$tbody[0].childNodes;for(let t=0,r=o.length;t<r;t++)e.trigger("rowdestroy",o[t])}if(this._destroyHeaderCells()._unbindCellEventsForTable(),t.$table&&t.$table.empty(),t.$tbody&&t.$tbody.empty(),t.workerListeners){for(let e=0;e<t.workerListeners.length;e++){let o=t.workerListeners[e];o.worker.removeEventListener("message",o.listener,!1)}t.workerListeners.length=0}t.rows.length=t.columns.length=0,t._deferredRender&&clearTimeout(t._deferredRender);for(let t in e)ti.call(e,t)&&(e[t]=null);return e.__removed=!0,o&&o.remove(),this},li.prototype._unbindCellEventsForTable=function(){const e=this.p;if(e.headerRow)for(let t=0,o=e.headerRow.childNodes,r=o.length;t<r;t++)for(let r=0,l=o[t].childNodes,i=l.length;r<i;r++)e._unbindCellHoverIn(l[r]);if(e.tbody)for(let t=0,o=e.tbody.childNodes,r=o.length;t<r;t++)this._unbindCellEventsForRow(o[t]);return this},li.prototype._unbindCellEventsForRow=function(e){const t=this.p;for(let o=0,r=e.childNodes,l=r.length;o<l;o++)t._unbindCellHoverIn(r[o]);return this},li.prototype.render=function(){const e=this.o,r=this.p;if(!this.el.offsetParent)return r._deferredRender||(r._deferredRender=setTimeout((()=>{r._deferredRender=null,!this.__removed&&this.el.offsetParent&&this.render()}))),this;let l,i;if(!0===r.tableSkeletonNeedsRendering){r.tableSkeletonNeedsRendering=!1,e.width===li.Width.AUTO&&this._clearSortArrows();let n=r.table&&r.table.parentNode?r.table.scrollTop:NaN,s=r.table&&r.table.parentNode?t(r.table):NaN;this._renderSkeletonBase()._renderSkeletonBody().tableWidthChanged(!0,!1)._renderSkeletonHeaderCells(),e.virtualTable||(i=(r.filteredRows||r.rows).length,l=this.renderRows(0,i-1),r.$tbody.html("").append(l)),this._updateLastCellWidthFromScrollbar(!0),this._updateTableWidth(!0);for(let e=0;e<r.rows.sortColumn.length;e++)this._showSortArrow(r.rows.sortColumn[e].column,r.rows.sortColumn[e].descending);e.adjustColumnWidthForSortArrow&&r.rows.sortColumn.length?this.tableWidthChanged(!0):e.virtualTable||this.tableWidthChanged(),isNaN(n)||(r.table.scrollTop=n),isNaN(s)||(o(r.table,s),o(r.header,s)),this.trigger("renderskeleton"),e.virtualTable&&(r.$table.on("scroll",this._onVirtualTableScrolled.bind(this)),this.render())}else if(e.virtualTable){i=(r.filteredRows||r.rows).length;let t=r.table.scrollTop,o=Math.floor((t-r.virtualRowHeightFirst)/r.virtualRowHeight)+1-e.rowsBufferSize,n=Math.ceil((t-r.virtualRowHeightFirst+r.visibleHeight)/r.virtualRowHeight)+e.rowsBufferSize;o<0&&(o=0),n>=i&&(n=i-1);let s,a=-1,d=-1,u=r.tbody.childNodes;if(u.length&&(a=u[0].rowIndex,d=u[u.length-1].rowIndex),-1!==a&&a<o){s=Math.min(d+1,o)-a;for(let e=0;e<s;e++)this.trigger("rowdestroy",u[0]),this._unbindCellEventsForRow(u[0]),r.tbody.removeChild(u[0]);a+=s,a>d&&(a=d=-1)}else if(-1!==d&&d>n){s=d-Math.max(a-1,n);for(let e=0;e<s;e++)this.trigger("rowdestroy",u[u.length-1]),this._unbindCellEventsForRow(u[u.length-1]),r.tbody.removeChild(u[u.length-1]);d<a&&(a=d=-1)}o<a&&(l=this.renderRows(o,Math.min(n,a-1)),r.$tbody.prepend(l)),(n>d||-1===d)&&(l=this.renderRows(-1===d?o:d+1,n),r.$tbody.append(l))}return this.trigger("render"),this},li.prototype.clearAndRender=function(e){return this.p.tableSkeletonNeedsRendering=!0,(void 0===e||e)&&this.render(),this},li.prototype.renderRows=function(e,t){const o=this.o,r=this.p;let l,i=o.tableClassName,n=i+"-row",s=i+"-row-alt",a=i+"-cell",d=r.filteredRows||r.rows,u=!!r.filteredRows,h=o.allowCellPreview,c=r.visibleColumns,p=o.virtualTable,f=r.virtualRowHeightFirst,m=r.virtualRowHeight,g=c.length;for(let e,t=0;t<g;t++)e=c[t],e._finalWidth=e.actualWidthConsideringScrollbarWidth||e.actualWidth;let b=document.createDocumentFragment(),v=this._isTableRtl()?"right":"left";const C=Ul.getSupportedTransform();for(let o=e,i=d.length;o<i&&o<=t;o++){let e=d[o],t=u?e.__i:o,i=ei("div");i.className=n,o%2==1&&(i.className+=" "+s),i.rowIndex=o,i.physicalRowIndex=t;for(let t=0;t<g;t++){let o=c[t],l=ei("div");l.columnName=o.name,l.setAttribute("data-column",o.name),l.className=a,l.style.width=o._finalWidth+"px",o.cellClasses&&(l.className+=" "+o.cellClasses),h&&r._bindCellHoverIn(l),l.appendChild(ei("div")).innerHTML=this._getHtmlForCell(e,o),i.appendChild(l)}p&&(l=o>0?f+(o-1)*m:0,i.style.position="absolute",i.style[v]=0,!1===C?i.style.top=`${l}px`:(i.style.top="0px",i.style[C]=`translateY(${l}px)`)),b.appendChild(i),this.trigger("rowcreate",o,t,i,e);let w=o;i.addEventListener("click",(o=>{this.trigger("rowclick",o,w,t,i,e)}))}return b},li.prototype._calculateVirtualHeight=function(){let e=this.p;if(e.tbody){let t=(e.filteredRows||e.rows).length,o=e.virtualRowHeight*t;t&&(o+=e.virtualRowHeightFirst-e.virtualRowHeight,o+=e.virtualRowHeightLast-e.virtualRowHeight),o<1&&(o=1),e.tbody.style.height=o+"px"}return this},li.prototype._calculateTbodyWidth=function(){const e=this.p;let t,o,l,i=this.o.tableClassName,n=i+"-row",s=i+"-cell",a=e.visibleColumns,d=a.length,u=Jl("<div>").addClass(n).css("float","left"),h=0;for(o=0;o<d;o++)l=a[o],t=ei("div"),t.className=s,t.style.width=l.actualWidth+"px",l.cellClasses&&(t.className+=" "+l.cellClasses),t.appendChild(ei("div")),u.append(t),h+=l.actualWidth;let c=Jl("<div>").addClass(this.el.className).css({"z-index":-1,position:"absolute",left:"0",top:"-9999px",float:"left",width:"1px",overflow:"hidden"}).append(Jl("<div>").addClass(i).append(Jl("<div>").addClass(i+"-body").css("width",h+1e4).append(u)));c.appendTo(document.body);let p=Jl('<div style="border:1.5px solid #000;width:0;height:0;position:absolute;left:0;top:-9999px">').appendTo(document.body),f=parseFloat(p.css("border-width")),m=Math.round(f)!==f;p.remove();let g=r(u[0],!0,!0,!0);return g-=e.scrollbarWidth||0,m&&g++,c.remove(),g},li.prototype.setColumns=function(e,t){const o=this.p;e=e||[];let r=new Vl;for(let t=0,o=0;t<e.length;t++){let l=e[t],i=this._initColumnFromData(l);void 0!==l.order?(l.order>o&&(o=l.order+1),i.order=l.order):i.order=o++,r.push(i)}return r.normalizeOrder(),o.columns=r,o.visibleColumns=r.getVisibleColumns(),this._ensureVisibleColumns().clearAndRender(t),this},li.prototype.addColumn=function(e,t,o){const r=this.p;let l=r.columns;if(e&&!l.get(e.name)){let i=null;void 0!==t&&(i=l.get(t)||l.getByOrder(t));let n=this._initColumnFromData(e);n.order=i?i.order:l.getMaxOrder()+1;for(let e=l.getMaxOrder(),t=n.order;e>=t;e--){let t=l.getByOrder(e);t&&t.order++}l.push(n),l.normalizeOrder(),r.visibleColumns=l.getVisibleColumns(),this._ensureVisibleColumns().clearAndRender(o),this.trigger("addcolumn",n.name)}return this},li.prototype.removeColumn=function(e,t){const o=this.p;let r=o.columns,l=r.indexOf(e);return l>-1&&(r.splice(l,1),r.normalizeOrder(),o.visibleColumns=r.getVisibleColumns(),this._ensureVisibleColumns().clearAndRender(t),this.trigger("removecolumn",e)),this},li.prototype.setCellFormatter=function(e){return e||((e=e=>"string"==typeof e?Il(e):e).safe=!0),this.o.cellFormatter=e,this},li.prototype.setHeaderCellFormatter=function(e){return this.o.headerCellFormatter=e||function(e){return"string"==typeof e?Il(e):e},this},li.prototype.setFilter=function(e){return this.o.filter=e,this},li.prototype.filter=function(e){const t=this.p;let o=this.o.filter||Yl;"string"==typeof arguments[0]&&"string"==typeof arguments[1]&&(e={column:arguments[0],keyword:arguments[1],caseSensitive:arguments[2]});let r=!!t.filteredRows;return t.filteredRows&&(t.filteredRows=null),t.filterArgs=null==e?null:"object"!=typeof e||Array.isArray(e)?e:Jl.extend({},e),null!==t.filterArgs?(t.filteredRows=t.rows.filteredCollection(o,t.filterArgs),(r||t.filteredRows)&&(this.clearAndRender(),this.trigger("filter",e))):(t.filterArgs=null,t.filteredRows=null,this.clearAndRender(),this.trigger("filterclear",{})),this},li.prototype.clearFilter=function(){const e=this.p;return e.filteredRows&&(e.filterArgs=null,e.filteredRows=null,this.clearAndRender(),this.trigger("filterclear",{})),this},li.prototype._refilter=function(){const e=this.p;if(e.filteredRows&&e.filterArgs){let t=this.o.filter||Yl;e.filteredRows=e.rows.filteredCollection(t,e.filterArgs)}return this},li.prototype.setColumnLabel=function(e,t){let o=this.p.columns.get(e);if(o&&(o.label=void 0===t?o.name:t,o.element))for(let e=0;e<o.element[0].firstChild.childNodes.length;e++){let t=o.element[0].firstChild.childNodes[e];if(3===t.nodeType){t.textContent=o.label;break}}return this},li.prototype.moveColumn=function(e,t,o=!0){const r=this.o,l=this.p;let i,n,s=l.columns,a=o?l.visibleColumns:s.getColumns();if("string"==typeof e?i=s.get(e):"number"==typeof e&&(i=a[e]),"string"==typeof t?n=s.get(t):"number"==typeof t&&(n=a[t]),i&&n&&e!==t){let e=i.order,t=n.order,o=s.moveColumn(i,n).getVisibleColumns();if(l.visibleColumns.length!==o.length||l.visibleColumns.some(((e,t)=>e!==o[t])))if(l.visibleColumns=o,this._ensureVisibleColumns(),r.virtualTable)this.clearAndRender()._updateLastCellWidthFromScrollbar(!0);else{let o=l.$headerRow.find(">div."+r.tableClassName+"-header-cell"),i=e<t?t+1:t,n=e;o[0].parentNode.insertBefore(o[n],o[i]);let s=l.visibleColumns[e];s=(s.actualWidthConsideringScrollbarWidth||s.actualWidth)+"px";let a=l.visibleColumns[t];a=(a.actualWidthConsideringScrollbarWidth||a.actualWidth)+"px";let d=l.$tbody[0].childNodes;for(let o=0,r=d.length;o<r;o++){let r=d[o];1===r.nodeType&&(r.insertBefore(r.childNodes[n],r.childNodes[i]),r.childNodes[t].firstChild.style.width=a,r.childNodes[e].firstChild.style.width=s)}}this.trigger("movecolumn",i.name,e,t)}return this},li.prototype.sort=function(e,t,o){const r=this.o,l=this.p;let i,n=l.columns.get(e),s=l.rows.sortColumn;if(n){if(s.length&&s[s.length-1].column===e&&(t=void 0===t?!s[s.length-1].descending:t),o){for(let e=0;e<s.length;e++)if(s[e].column===n.name){e<s.length-1?s.length=0:s.splice(s.length-1,1);break}(r.sortableColumns>0&&s.length>=r.sortableColumns||s.length>=l.visibleColumns.length)&&(s.length=0)}else s.length=0;t=void 0!==t&&t,s.push({column:n.name,comparePath:n.comparePath||n.dataPath,descending:!!t})}else s.length=0;this._clearSortArrows();for(let e=0;e<s.length;e++)this._showSortArrow(s[e].column,s[e].descending);if(r.adjustColumnWidthForSortArrow&&!r._tableSkeletonNeedsRendering&&this.tableWidthChanged(!0),r.virtualTable)for(;l.tbody&&l.tbody.firstChild;)this.trigger("rowdestroy",l.tbody.firstChild),this._unbindCellEventsForRow(l.tbody.firstChild),l.tbody.removeChild(l.tbody.firstChild);else l.tableSkeletonNeedsRendering=!0;l.rows.sortColumn=s,s.length&&(i=l.rows.sort(!!l.filteredRows),l.filteredRows&&l.filteredRows.sort(!!l.filteredRows));let a=[];for(let e=0;e<s.length;e++)a.push({column:s[e].column,descending:s[e].descending});return this.trigger("sort",a,!0,i),this},li.prototype.resort=function(){const e=this.p;let t=e.columns,o=e.rows.sortColumn;if(o.length){for(let e=0;e<o.length;e++)t.get(o[e].column)||o.splice(e--,1);let r;e.rows.sortColumn=o,o.length&&(r=e.rows.sort(!!e.filteredRows),e.filteredRows&&e.filteredRows.sort(!!e.filteredRows));let l=[];for(let e=0;e<o.length;e++)l.push({column:o[e].column,descending:o[e].descending});this.trigger("sort",l,!1,r)}return this},li.prototype._ensureVisibleColumns=function(){const 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},li.prototype.setColumnVisible=function(e,t){const o=this.p;let r=o.columns.get(e);return t=!!t,r&&!!r.visible!==t&&(r.visible=t,o.visibleColumns=o.columns.getVisibleColumns(),this.trigger(t?"showcolumn":"hidecolumn",e),this._ensureVisibleColumns(),this.clearAndRender()),this},li.prototype.isColumnVisible=function(e){let t=this.p.columns.get(e);return!!t&&t.visible},li.prototype.setMinColumnWidth=function(e){let t=this.o;return e=Math.max(e,0),t.minColumnWidth!==e&&(t.minColumnWidth=e,this.tableWidthChanged(!0)),this},li.prototype.getMinColumnWidth=function(){return this.o.minColumnWidth},li.prototype.setSortableColumns=function(e){const t=this.p,o=this.o;if(o.sortableColumns!==e&&(o.sortableColumns=e,t.$table)){let e=t.$headerRow.find(">div."+o.tableClassName+"-header-cell");for(let r=0;r<e.length;r++)Jl(e[0])[o.sortableColumns>0&&t.visibleColumns[r].sortable?"addClass":"removeClass"]("sortable")}return this},li.prototype.getSortableColumns=function(){return this.o.sortableColumns},li.prototype.setMovableColumns=function(e){let t=this.o;return e=void 0===e||!!e,t.movableColumns!==e&&(t.movableColumns=e),this},li.prototype.getMovableColumns=function(){return this.o.movableColumns},li.prototype.setResizableColumns=function(e){let t=this.o;return e=void 0===e||!!e,t.resizableColumns!==e&&(t.resizableColumns=e),this},li.prototype.getResizableColumns=function(){return this.o.resizableColumns},li.prototype.setComparatorCallback=function(e){let t=this.o;return t.onComparatorRequired!==e&&(t.onComparatorRequired=e),this},li.prototype.setColumnWidth=function(e,t){let o=this.p.columns.get(e),r=this._parseColumnWidth(t,o.ignoreMin?0:this.o.minColumnWidth);if(o){let e=this._serializeColumnWidth(o);o.width=r.width,o.widthMode=r.mode;let t=this._serializeColumnWidth(o);e!==t&&this.tableWidthChanged(!0),this.trigger("columnwidth",o.name,e,t)}return this},li.prototype.getColumnWidth=function(e){let t=this.p.columns.get(e);return t?this._serializeColumnWidth(t):null},li.prototype.getColumnConfig=function(e){let t=this.p.columns.get(e);return t?{order:t.order,width:this._serializeColumnWidth(t),visible:t.visible,label:t.label}:null},li.prototype.getColumnsConfig=function(){const e=this.p;let t={};for(let o=0;o<e.columns.length;o++)t[e.columns[o].name]=this.getColumnConfig(e.columns[o].name);return t},li.prototype.getSortedColumns=function(){const e=this.p;let t=[];for(let o=0;o<e.rows.sortColumn.length;o++){let r=e.rows.sortColumn[o];t.push({column:r.column,descending:r.descending})}return t},li.prototype.getHtmlForRowCell=function(e,t){const o=this.p;if(e<0||e>o.rows.length-1)return null;let r=o.columns.get(t);if(!r)return null;let l=o.rows[e];return this._getHtmlForCell(l,r)},li.prototype.getHtmlForRowDataCell=function(e,t){let o=this.p.columns.get(t);return o?this._getHtmlForCell(e,o):null},li.prototype._getHtmlForCell=function(e,t){let o=t.dataPath,r=e[o[0]];for(let e=1;e<o.length&&null!=r;e++)r=r&&r[o[e]];const l=this.o.cellFormatter;let i;if(l.safe)i=l(r,t.name,e);else try{i=l(r,t.name,e)}catch(e){i="[ERROR]",console.error("Failed to generate content for cell "+t.name,e)}return null==i&&(i=""),i},li.prototype.getRowYPos=function(e){const t=this.p;if(this.o.virtualTable)return e>0?t.virtualRowHeightFirst+(e-1)*t.virtualRowHeight:0;{let o=t.tbody.childNodes[e];return o?o.offsetTop:null}},li.prototype.getDataForRow=function(e){const t=this.p;return e<0||e>t.rows.length-1?null:t.rows[e]},li.prototype.getRowCount=function(){const e=this.p;return e.rows?e.rows.length:0},li.prototype.getIndexForRow=function(e){return this.p.rows.indexOf(e)},li.prototype.getFilteredRowCount=function(){const e=this.p;return(e.filteredRows||e.rows).length},li.prototype.getIndexForFilteredRow=function(e){const t=this.p;return(t.filteredRows||t.rows).indexOf(e)},li.prototype.getDataForFilteredRow=function(e){const t=this.p;return e<0||e>(t.filteredRows||t.rows).length-1?null:(t.filteredRows||t.rows)[e]},li.prototype.getHeaderRowElement=function(){return this.p.headerRow},li.prototype._horizontalPadding=function(e){return(parseFloat(Jl.css(e,"padding-left"))||0)+(parseFloat(Jl.css(e,"padding-right"))||0)},li.prototype._horizontalBorderWidth=function(e){return(parseFloat(Jl.css(e,"border-left"))||0)+(parseFloat(Jl.css(e,"border-right"))||0)},li.prototype._calculateWidthAvailableForColumns=function(){const e=this.o,t=this.p;let o,l,i;t.$table&&(l=t.table?t.table.scrollTop:0,i=t.table?t.table.scrollLeft:0,e.virtualTable&&(o=t.$table[0].style.display,t.$table[0].style.display="none"));let n=r(this.$el[0]);t.$table&&(e.virtualTable&&(t.$table[0].style.display=o),t.table.scrollTop=l,t.table.scrollLeft=i,t.header.scrollLeft=i);let s=e.tableClassName,a=Jl("<div>").addClass(this.el.className).css({"z-index":-1,position:"absolute",left:"0",top:"-9999px"}),d=Jl("<div>").addClass(s+"-header").appendTo(a),u=Jl("<div>").addClass(s+"-header-row").appendTo(d);for(let e=0;e<t.visibleColumns.length;e++)u.append(Jl("<div><div></div></div>").addClass(s+"-header-cell").addClass(t.visibleColumns[e].cellClasses||""));a.appendTo(document.body),n-=this._horizontalBorderWidth(u[0]);let h=u.find(">div."+s+"-header-cell");for(let e=0;e<h.length;e++){let t=Jl(h[e]);"border-box"===t.css("boxSizing")||(n-=(parseFloat(t.css("border-right-width"))||0)+(parseFloat(t.css("border-left-width"))||0)+this._horizontalPadding(t[0]))}return a&&a.remove(),Math.max(0,n)},li.prototype.tableWidthChanged=function(){let e=function(e){let t,o=this.o.tableClassName,l=Jl("<div>").addClass(this.$el).append(Jl("<div>").addClass(o+"-header").append(Jl("<div>").addClass(o+"-header-row").append(t=Jl("<div>").addClass(o+"-header-cell").append(Jl("<div>").text(e))))).css({position:"absolute",top:"-9999px",visibility:"hidden"});l.appendTo(document.body);let i=r(t[0]);return l.remove(),i},t=null;return function(o,r){let l=this.o,i=this.p,n=this._calculateWidthAvailableForColumns(),s=n,a=0;if(!i.$table)return this;r=void 0===r||r;let d=0;if(i.tbody||(r=!1),r&&(d=parseFloat(i.tbody.style.minWidth)||0),s!==t||o){t=n;let o=0,u=[],h=0;for(let e=0;e<i.columns.length;e++)i.columns[e].actualWidthConsideringScrollbarWidth=null;for(let t=0;t<i.visibleColumns.length;t++){let r=i.visibleColumns[t];if(r.widthMode===ii.ABSOLUTE){let e=r.width;e+=r.arrowProposedWidth||0,!r.ignoreMin&&e<l.minColumnWidth&&(e=l.minColumnWidth),s-=e,o+=e,e!==r.actualWidth&&(r.actualWidth=e,u.push(t))}else if(r.widthMode===ii.AUTO){let i=e.call(this,r.label)+20;i+=r.arrowProposedWidth||0,!r.ignoreMin&&i<l.minColumnWidth&&(i=l.minColumnWidth),s-=i,o+=i,i!==r.actualWidth&&(r.actualWidth=i,l.convertColumnWidthsToRelative||u.push(t))}else r.widthMode===ii.RELATIVE&&(h+=r.width,a++)}if(l.convertColumnWidthsToRelative)for(let e=0;e<i.visibleColumns.length;e++){let t=i.visibleColumns[e];t.widthMode===ii.AUTO&&(t.widthMode=ii.RELATIVE,s+=t.actualWidth,t.width=t.actualWidth/o,h+=t.width,a++)}if(a&&(h<1&&l.relativeWidthGrowsToFillWidth||h>1&&l.relativeWidthShrinksToFillWidth))for(let e=0;e<i.visibleColumns.length;e++){let t=i.visibleColumns[e];t.widthMode===ii.RELATIVE&&(t.width/=h)}let c=Math.max(0,s);0===c&&(c=i.table.clientWidth);let p=l.minColumnWidth/c;if(isNaN(p)&&(p=0),p>0){let e,t=0;for(let e=0;e<i.visibleColumns.length;e++){let o=i.visibleColumns[e];o.widthMode===ii.RELATIVE&&!o.ignoreMin&&o.width<p&&(t+=p-o.width,o.width=p)}for(let o=0;o<i.visibleColumns.length;o++){let r=i.visibleColumns[o];r.widthMode===ii.RELATIVE&&!r.ignoreMin&&r.width>p&&t>0&&(e=Math.min(t,r.width-p),r.width-=e,t-=e)}}if(l.autoFillTableWidth&&s>0){let e=0,t=s;for(let o=0;o<i.visibleColumns.length;o++){let r=i.visibleColumns[o];r.resizable||r.widthMode!==ii.ABSOLUTE||(e+=r.width),r.widthMode===ii.RELATIVE&&(t-=Math.round(c*r.width))}let o=(n-e)/(n-t-e)||NaN;for(let e=0;e<i.visibleColumns.length&&t>0;e++){let t=i.visibleColumns[e];if(t.resizable||t.widthMode!==ii.ABSOLUTE)if(t.widthMode===ii.RELATIVE)t.width*=o;else{let r=t.actualWidth*o;t.actualWidth!==r&&(t.actualWidth=r,-1===u.indexOf(e)&&u.push(e))}}}for(let e=0;e<i.visibleColumns.length;e++){let t=i.visibleColumns[e];if(t.widthMode===ii.RELATIVE){let o=Math.round(c*t.width);s-=o,a--,0===a&&1===s&&(o++,s--),-1===s&&(o--,s++),o!==t.actualWidth&&(t.actualWidth=o,u.push(e))}}if(i.visibleColumns.length&&(i.visibleColumns[i.visibleColumns.length-1].actualWidthConsideringScrollbarWidth=i.visibleColumns[i.visibleColumns.length-1].actualWidth-(i.scrollbarWidth||0)),r){let e=this._calculateTbodyWidth();d<e&&this._updateTableWidth(!1);for(let e=0;e<u.length;e++)this._resizeColumnElements(u[e]);d>e&&this._updateTableWidth(!1)}}return this}}(),li.prototype.tableHeightChanged=function(){let e=this,t=e.o,o=e.p;if(!o.$table)return e;let r=l(e.$el[0],!0)-(parseFloat(o.$table.css("border-top-width"))||0)-(parseFloat(o.$table.css("border-bottom-width"))||0);return r!==t.height&&(t.height=r,o.tbody&&(o.tbody.style.height=Math.max(t.height-l(o.$headerRow[0],!0,!0,!0),1)+"px"),t.virtualTable&&e.clearAndRender()),e},li.prototype.addRows=function(e,t,o,r){let l=this,i=l.p;if("boolean"==typeof t&&(r=o,o=t,t=-1),"number"!=typeof t&&(t=-1),(t<0||t>i.rows.length)&&(t=i.rows.length),r=void 0===r||!!r,e){if(i.rows.add(e,t),i.filteredRows||o&&i.rows.sortColumn.length)o&&i.rows.sortColumn.length?this.resort():this._refilter(),i.tableSkeletonNeedsRendering=!0,r&&this.render();else if(r){let o=i.tbody.childNodes;if(l.o.virtualTable){for(;i.tbody.firstChild;)this.trigger("rowdestroy",i.tbody.firstChild),this._unbindCellEventsForRow(i.tbody.firstChild),i.tbody.removeChild(i.tbody.firstChild);this._calculateVirtualHeight()._updateLastCellWidthFromScrollbar().render()._updateTableWidth(!1)}else if(i.$tbody){let r=t,n=t+e.length-1,s=l.renderRows(r,n);i.tbody.insertBefore(s,o[t]||null);for(let t=n+1;t<o.length;t++){let r=o[t];r.rowIndex+=e.length,r.physicalRowIndex+=e.length}this.render()._updateLastCellWidthFromScrollbar()._updateTableWidth(!0)}}this.trigger("addrows",e.length,!1)}return this},li.prototype.removeRows=function(e,t,o){let r=this.p;if("number"!=typeof t||t<=0)return this;if(e<0||e>r.rows.length-1)return this;if(r.rows.splice(e,t),o=void 0===o||!!o,r.filteredRows)this._refilter(),r.tableSkeletonNeedsRendering=!0,o&&this.render();else if(o){let o=r.tbody.childNodes;if(this.o.virtualTable){for(;r.tbody.firstChild;)this.trigger("rowdestroy",r.tbody.firstChild),this._unbindCellEventsForRow(r.tbody.firstChild),r.tbody.removeChild(r.tbody.firstChild);this._calculateVirtualHeight()._updateLastCellWidthFromScrollbar().render()._updateTableWidth(!1)}else{let l=e+t-1;for(let i=0;i<o.length;i++){let n=o[i],s=n.physicalRowIndex;s>=e?s<=l?(this.trigger("rowdestroy",n),this._unbindCellEventsForRow(n),r.tbody.removeChild(n),i--):n.physicalRowIndex-=t:n.rowIndex=i}this.render()._updateLastCellWidthFromScrollbar()._updateTableWidth(!0)}}return this},li.prototype.removeRow=function(e,t){return this.removeRows(e,1,t)},li.prototype.refreshRow=function(e){let t=this.p;if(e<0||e>t.rows.length-1)return this;let o=-1;if(t.filteredRows&&-1===(o=t.filteredRows.indexOf(t.rows[e])))return this;-1===o&&(o=e);let r=t.tbody.childNodes;if(this.o.virtualTable){let l=!1,i=0;for(;i<r.length;i++)if(r[i].physicalRowIndex===e){l=!0,this.trigger("rowdestroy",r[i]),this._unbindCellEventsForRow(r[i]),t.tbody.removeChild(r[i]);break}if(l){let e=this.renderRows(o,o);t.tbody.insertBefore(e,r[i]||null)}}else{this.trigger("rowdestroy",r[o]),this._unbindCellEventsForRow(r[o]),t.tbody.removeChild(r[o]);let e=this.renderRows(o,o);t.tbody.insertBefore(e,r[o]||null)}return this},li.prototype.getRowElement=function(e){let t=this.p;if(e<0||e>t.rows.length-1)return null;let o=-1;if(t.filteredRows&&-1===(o=t.filteredRows.indexOf(t.rows[e])))return this;-1===o&&(o=e);let r=t.tbody.childNodes;if(!this.o.virtualTable)return r[o];for(let t=0;t<r.length;t++)if(r[t].physicalRowIndex===e)return r[t];return null},li.prototype.refreshAllVirtualRows=function(){const e=this.p;if(this.o.virtualTable){let t=[],o=e.tbody.childNodes;for(let r=0,l=o.length;r<l;r++)t.push(o[r].physicalRowIndex),this.trigger("rowdestroy",o[r]),this._unbindCellEventsForRow(o[r]),e.tbody.removeChild(o[r]),r--,l--;for(let o=0;o<t.length;o++){let r=this.renderRows(t[o],t[o]);e.tbody.appendChild(r)}}return this},li.prototype.setRows=function(e,t){let o=this.p;return o.rows.reset(e),t&&o.rows.sortColumn.length?this.resort():this._refilter(),this.clearAndRender().trigger("addrows",e.length,!0),this},li.prototype.getUrlForElementContent=function(e){let t,o=document.getElementById(e);if(o){let e=o.textContent;if("function"==typeof Blob)t=new Blob([e]);else{let o=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if(!o)return null;let r=new o;r.append(e),t=r.getBlob()}return(window.URL||window.webkitURL).createObjectURL(t)}return null},li.prototype.isWorkerSupported=function(){return window.Worker instanceof Function},li.prototype.createWebWorker=function(e,t,o){if(this.isWorkerSupported()){let r=this,l=r.p,i=new Worker(e),n=function(e){e.data.append?r.addRows(e.data.rows,o):r.setRows(e.data.rows,o)};return i.addEventListener("message",n,!1),l.workerListeners||(l.workerListeners=[]),l.workerListeners.push({worker:i,listener:n}),(t||void 0===t)&&i.postMessage(null),i}return null},li.prototype.unbindWebWorker=function(e){let t=this.p;if(t.workerListeners)for(let o=0;o<t.workerListeners.length;o++)t.workerListeners[o].worker===e&&(e.removeEventListener("message",t.workerListeners[o].listener,!1),t.workerListeners.splice(o,1),o--);return this},li.prototype.abortCellPreview=function(){return this.hideCellPreview(),this},li.prototype.cancelColumnResize=function(){const e=this.p;return e.$resizer&&(e.$resizer.remove(),e.$resizer=null,Jl(document).off("mousemove.dgtable",e.onMouseMoveResizeAreaBound).off("mouseup.dgtable",e.onEndDragColumnHeaderBound)),this},li.prototype._onVirtualTableScrolled=function(){this.render()},li.prototype._onTableScrolledHorizontally=function(){const e=this.p;e.header.scrollLeft=e.table.scrollLeft},li.prototype._getColumnByResizePosition=function(e){let t=this.o,o=this._isTableRtl(),l=Jl(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName),i=l[0];i.__cell&&(i=i.__cell,l=Jl(i));let n=l[0].previousSibling;for(;n&&1!==n.nodeType;)n=n.previousSibling;let s=!n,a=((null!=e.pageX?e.pageX:e.originalEvent.pageX)||e.originalEvent.clientX)-l.offset().left;if(o){if(!s&&r(l[0],!0,!0,!0)-a<=t.resizeAreaWidth/2)return n.columnName;if(a<=t.resizeAreaWidth/2)return i.columnName}else{if(!s&&a<=t.resizeAreaWidth/2)return n.columnName;if(r(l[0],!0,!0,!0)-a<=t.resizeAreaWidth/2)return i.columnName}return null},li.prototype._onTouchStartColumnHeader=function(e){const t=this.p;if(t.currentTouchId)return;let o=e.originalEvent.changedTouches[0];t.currentTouchId=o.identifier;let r,l=Jl(e.currentTarget),i={x:o.pageX,y:o.pageY},n=i,s=function(){t.currentTouchId=null,l.off("touchend").off("touchcancel"),clearTimeout(r)},a=function(t){let o=Jl.Event(t),r=Array.prototype.slice.call(arguments,1);for(let t of["target","clientX","clientY","offsetX","offsetY","screenX","screenY","pageX","pageY","which"]){o[t]=e[t];for(let e=0;e<r.length;e++)null!=r[e][t]&&(o[t]=r[e][t])}return o};l.trigger(a("mousedown",e.originalEvent.changedTouches[0],{which:1,target:e.target})),r=setTimeout((()=>{s(),l.one("touchend",(e=>{ri(e)||e.preventDefault(),l.off("touchend").off("touchcancel")})).one("touchcancel",(e=>{l.off("touchend").off("touchcancel")})),Math.sqrt(Math.pow(Math.abs(n.x-i.x),2)+Math.pow(Math.abs(n.y-i.y),2))<9&&(this.cancelColumnResize(),l.trigger(a("mouseup",e.originalEvent.changedTouches[0],{which:3,target:e.target})))}),500),l.on("touchend",(e=>{let o=kl(e.originalEvent.changedTouches,(e=>e.identifier===t.currentTouchId));o&&(s(),ri(e)||e.preventDefault(),n={x:o.pageX,y:o.pageY},(Math.sqrt(Math.pow(Math.abs(n.x-i.x),2)+Math.pow(Math.abs(n.y-i.y),2))<9||t.$resizer)&&(l.trigger(a("mouseup",o,{which:1,target:e.target})),l.trigger(a("click",o,{which:1,target:e.target}))))})).on("touchcancel",(()=>{s()})).on("touchmove",(e=>{let o=kl(e.originalEvent.changedTouches,(e=>e.identifier===t.currentTouchId));o&&(n={x:o.pageX,y:o.pageY},t.$resizer&&(e.preventDefault(),l.trigger(a("mousemove",o,{target:e.target}))))}))},li.prototype._onMouseDownColumnHeader=function(e){if(1!==e.which)return this;let t=this.o,o=this.p,i=this._getColumnByResizePosition(e);if(i){let n=o.columns.get(i);if(!t.resizableColumns||!n||!n.resizable)return!1;let s=this._isTableRtl();o.$resizer&&Jl(o.$resizer).remove(),o.$resizer=Jl("<div></div>").addClass(t.resizerClassName).css({position:"absolute",display:"block","z-index":-1,visibility:"hidden",width:"2px",background:"#000",opacity:.7}).appendTo(this.$el);let a=n.element,d=o.$resizer.parent(),u=a.offset(),h=d.offset();8===Ql&&(u=a.offset()),h.left+=parseFloat(d.css("border-left-width"))||0,h.top+=parseFloat(d.css("border-top-width"))||0,u.left-=h.left,u.top-=h.top,u.top-=parseFloat(a.css("border-top-width"))||0;let c=r(o.$resizer[0],!0,!0,!0);s?(u.left-=Math.ceil((parseFloat(a.css("border-left-width"))||0)/2),u.left-=Math.ceil(c/2)):(u.left+=r(a[0],!0,!0,!0),u.left+=Math.ceil((parseFloat(a.css("border-right-width"))||0)/2),u.left-=Math.ceil(c/2)),o.$resizer.css({"z-index":"10",visibility:"visible",left:u.left,top:u.top,height:l(this.$el[0])})[0].columnName=a[0].columnName;try{o.$resizer[0].style.zIndex=""}catch(e){}Jl(document).on("mousemove.dgtable",o.onMouseMoveResizeAreaBound),Jl(document).on("mouseup.dgtable",o.onEndDragColumnHeaderBound),e.preventDefault()}},li.prototype._onMouseMoveColumnHeader=function(e){let t=this.o,o=this.p;if(t.resizableColumns){let r=this._getColumnByResizePosition(e),l=Jl(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName)[0];r&&o.columns.get(r).resizable?l.style.cursor="e-resize":l.style.cursor=""}},li.prototype._onMouseUpColumnHeader=function(e){if(3===e.which){let t=this.o,o=Jl(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName),i=o.offset();i.width=r(o[0],!0,!0,!0),i.height=l(o[0],!0,!0,!0),this.trigger("headercontextmenu",o[0].columnName,e.pageX,e.pageY,i)}return this},li.prototype._onMouseLeaveColumnHeader=function(e){let t=this.o;Jl(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName)[0].style.cursor=""},li.prototype._onClickColumnHeader=function(e){if(!ri(e)&&!this._getColumnByResizePosition(e)){let t=this,o=t.o,r=t.p,l=Jl(e.target).closest("div."+o.tableClassName+"-header-cell,div."+o.cellPreviewClassName)[0];if(o.sortableColumns){let e=r.columns.get(l.columnName);e&&e.sortable&&this.sort(l.columnName,void 0,!0).render()}}},li.prototype._onStartDragColumnHeader=function(e){let t=this.o,o=this.p;if(t.movableColumns){let r=Jl(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName),l=o.columns.get(r[0].columnName);l&&l.movable?(r[0].style.opacity=.35,o.dragId=161061273*Math.random(),e.originalEvent.dataTransfer.setData("text",JSON.stringify({dragId:o.dragId,column:l.name}))):e.preventDefault()}else e.preventDefault()},li.prototype._onMouseMoveResizeArea=function(e){let t=this.p,o=t.columns.get(t.$resizer[0].columnName),l=this._isTableRtl(),i=o.element,n=t.$resizer.parent(),s=i.offset(),a=n.offset();a.left+=parseFloat(n.css("border-left-width"))||0,s.left-=a.left;let d=r(t.$resizer[0],!0,!0,!0),u="border-box"===i.css("box-sizing"),h=e.pageX-a.left,c=s.left;c-=Math.ceil(d/2),l?(c+=r(i[0],!0,!0,!0),c-=o.ignoreMin?0:this.o.minColumnWidth,u||(c-=Math.ceil((parseFloat(i.css("border-left-width"))||0)/2),c-=this._horizontalPadding(i[0])),h>c&&(h=c)):(c+=o.ignoreMin?0:this.o.minColumnWidth,u||(c+=Math.ceil((parseFloat(i.css("border-right-width"))||0)/2),c+=this._horizontalPadding(i[0])),h<c&&(h=c)),t.$resizer.css("left",h+"px")},li.prototype._onEndDragColumnHeader=function(e){let t=this.o,o=this.p;if(o.$resizer){Jl(document).off("mousemove.dgtable",o.onMouseMoveResizeAreaBound).off("mouseup.dgtable",o.onEndDragColumnHeaderBound);let l=o.columns.get(o.$resizer[0].columnName),i=this._isTableRtl(),n=l.element,s=o.$resizer.parent(),a=n.offset(),d=s.offset();d.left+=parseFloat(s.css("border-left-width"))||0,a.left-=d.left;let u=r(o.$resizer[0],!0,!0,!0),h="border-box"===n.css("box-sizing"),c=e.pageX-d.left,p=a.left,f=a.left,m=0;p-=Math.ceil(u/2),i?(h||(c+=this._horizontalPadding(n[0]),c+=parseFloat(n.css("border-left-width"))||0,c+=parseFloat(n.css("border-right-width"))||0),p+=r(n[0],!0,!0,!0),f=p-(l.ignoreMin?0:this.o.minColumnWidth),c>f&&(c=f),m=p-c):(h||(c-=this._horizontalPadding(n[0]),c-=parseFloat(n.css("border-left-width"))||0,c-=parseFloat(n.css("border-right-width"))||0),f=p+(l.ignoreMin?0:this.o.minColumnWidth),c<f&&(c=f),m=c-p),o.$resizer.remove(),o.$resizer=null;let g=m;if(l.widthMode===ii.RELATIVE){let e=this._calculateWidthAvailableForColumns(),r=0,i=0;for(let t=0;t<o.visibleColumns.length;t++){let n=o.visibleColumns[t];n.name!==l.name&&(n.widthMode===ii.RELATIVE?(r+=n.width,i++):e-=n.actualWidth)}if(e=Math.max(1,e),g=m/e,i>0){let e=g/((1-g)/r);r+=g,(r<1&&t.relativeWidthGrowsToFillWidth||r>1&&t.relativeWidthShrinksToFillWidth)&&(g=e)}g*=100,g+="%"}this.setColumnWidth(l.name,g)}else e.target.style.opacity=null},li.prototype._onDragEnterColumnHeader=function(e){let t=this.o,o=this.p;if(t.movableColumns){let r=e.originalEvent.dataTransfer.getData("text");r=r?JSON.parse(r):null;let l=Jl(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName);if(!r||o.dragId===r.dragId&&l.columnName!==r.column){let e=o.columns.get(l[0].columnName);e&&(e.movable||e!==o.visibleColumns[0])&&Jl(l).addClass("drag-over")}}},li.prototype._onDragOverColumnHeader=function(e){e.preventDefault()},li.prototype._onDragLeaveColumnHeader=function(e){let t=this.o,o=Jl(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName);Jl(o[0].firstChild).has(e.originalEvent.relatedTarget).length||o.removeClass("drag-over")},li.prototype._onDropColumnHeader=function(e){e.preventDefault();let t=this.o,o=this.p,r=JSON.parse(e.originalEvent.dataTransfer.getData("text")),l=Jl(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName);if(t.movableColumns&&r.dragId===o.dragId){let e=r.column,t=l[0].columnName,i=o.columns.get(e),n=o.columns.get(t);i&&n&&i.movable&&(n.movable||n!==o.visibleColumns[0])&&this.moveColumn(e,t)}Jl(l).removeClass("drag-over")},li.prototype._clearSortArrows=function(){let e=this.p;if(e.$table){let t=this.o.tableClassName,o=e.$headerRow.find(">div."+t+"-header-cell.sorted"),r=o.find(">div>.sort-arrow");for(let t of r){let o=e.columns.get(t.parentNode.parentNode.columnName);o&&(o.arrowProposedWidth=0)}r.remove(),o.removeClass("sorted").removeClass("desc")}return this},li.prototype._showSortArrow=function(e,t){let o=this.p.columns.get(e);if(!o)return!1;let r=ei("span");return r.className="sort-arrow",o.element&&(o.element.addClass(t?"sorted desc":"sorted"),o.element[0].firstChild.insertBefore(r,o.element[0].firstChild.firstChild)),o.widthMode!==ii.RELATIVE&&this.o.adjustColumnWidthForSortArrow&&(o.arrowProposedWidth=r.scrollWidth+(parseFloat(Jl(r).css("margin-right"))||0)+(parseFloat(Jl(r).css("margin-left"))||0)),this},li.prototype._resizeColumnElements=function(e){let t=this.p,o=t.$headerRow.find("div."+this.o.tableClassName+"-header-cell"),r=t.columns.get(o[e].columnName);if(r){o[e].style.width=(r.actualWidthConsideringScrollbarWidth||r.actualWidth)+"px";let l=(r.actualWidthConsideringScrollbarWidth||r.actualWidth)+"px",i=t.$tbody[0].childNodes;for(let t=0,o=i.length;t<o;t++){let o=i[t];1===o.nodeType&&(o.childNodes[e].style.width=l)}}return this},li.prototype._destroyHeaderCells=function(){let 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},li.prototype._renderSkeletonBase=function(){let e=this,t=e.p,o=e.o;if(t.$table&&o.virtualTable){if(t.$table.remove(),t.$tbody){let o=t.$tbody[0].childNodes;for(let t=0,r=o.length;t<r;t++)e.trigger("rowdestroy",o[t]),e._unbindCellEventsForRow(o[t])}t.$table=t.table=t.$tbody=t.tbody=null}e._destroyHeaderCells(),t.currentTouchId=null,t.$header&&t.$header.remove();let r=o.tableClassName,i=ei("div"),n=Jl(i),s=ei("div"),a=Jl(s);return i.className=r+"-header",s.className=r+"-header-row",t.$header=n,t.header=i,t.$headerRow=a,t.headerRow=s,a.appendTo(t.$header),n.prependTo(this.$el),oi(e.$el),o.width===li.Width.SCROLL?this.el.style.overflow="hidden":this.el.style.overflow="",!o.height&&o.virtualTable&&(o.height=l(this.$el[0],!0)),this},li.prototype._renderSkeletonHeaderCells=function(){let e,t=this,o=t.p,r=t.o,l=r.allowCellPreview,i=r.allowHeaderCellPreview,n=r.tableClassName+"-header-cell",s=o.headerRow;Zl&&(e=function(e){return e.preventDefault(),this.dragDrop(),!1});let a=function(e){e.preventDefault()};for(let d=0;d<o.visibleColumns.length;d++){let u=o.visibleColumns[d];if(u.visible){let h=ei("div"),c=Jl(h);h.draggable=!0,h.className=n,h.style.width=u.actualWidth+"px",r.sortableColumns&&u.sortable&&(h.className+=" sortable"),h.columnName=u.name,h.setAttribute("data-column",u.name);let p=ei("div");p.innerHTML=r.headerCellFormatter(u.label,u.name),h.appendChild(p),l&&i&&o._bindCellHoverIn(h),s.appendChild(h),o.visibleColumns[d].element=c,c.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",a),Jl(p).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)),Zl&&c.on("selectstart.dgtable",e.bind(h)),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"})}}return this.trigger("headerrowcreate",s),this},li.prototype._renderSkeletonBody=function(){let e=this,t=e.p,o=e.o,r=o.tableClassName;if(o.virtualTable&&!t.virtualRowHeight){let o,i=function(){let e=ei("div"),t=e.appendChild(ei("div")),o=t.appendChild(ei("div"));return e.className=r+"-row",t.className=r+"-cell",o.innerHTML="0",e.style.visibility="hidden",e.style.position="absolute",e},n=Jl("<div>").addClass(e.el.className).css({"z-index":-1,position:"absolute",left:"0",top:"-9999px",width:"1px",overflow:"hidden"}).append(Jl("<div>").addClass(r).append(o=Jl("<div>").addClass(r+"-body").css("width",99999)));n.appendTo(document.body);let s=i(),a=i(),d=i();o.append(s,a,d),t.virtualRowHeightFirst=l(s,!0,!0,!0),t.virtualRowHeight=l(a,!0,!0,!0),t.virtualRowHeightLast=l(d,!0,!0,!0),t.virtualRowHeightMin=Math.min(Math.min(t.virtualRowHeightFirst,t.virtualRowHeight),t.virtualRowHeightLast),t.virtualRowHeightMax=Math.max(Math.max(t.virtualRowHeightFirst,t.virtualRowHeight),t.virtualRowHeightLast),n.remove()}if(!t.$table){let i=document.createDocumentFragment(),n=ei("div"),s=Jl(n);n.className=r,o.virtualTable&&(n.className+=" virtual");let a=o.height-l(t.$headerRow[0],!0,!0,!0);"border-box"!==s.css("box-sizing")&&(a-=parseFloat(s.css("border-top-width"))||0,a-=parseFloat(s.css("border-bottom-width"))||0,a-=parseFloat(s.css("padding-top"))||0,a-=parseFloat(s.css("padding-bottom"))||0),t.visibleHeight=a,n.style.height=o.height?a+"px":"auto",n.style.display="block",n.style.overflowY="auto",n.style.overflowX=o.width===li.Width.SCROLL?"auto":"hidden",i.appendChild(n);let d=ei("div"),u=Jl(d);d.className=o.tableClassName+"-body",t.table=n,t.tbody=d,t.$table=s,t.$tbody=u,o.virtualTable&&(t.virtualVisibleRows=Math.ceil(t.visibleHeight/t.virtualRowHeightMin)),e._calculateVirtualHeight(),oi(u),oi(s),n.appendChild(d),e.el.appendChild(i)}return this},li.prototype._renderSkeleton=function(){return this},li.prototype._updateLastCellWidthFromScrollbar=function(e){const t=this.p;let o=t.table.offsetWidth-t.table.clientWidth;if(o!==t.scrollbarWidth||e){t.scrollbarWidth=o;for(let e=0;e<t.columns.length;e++)t.columns[e].actualWidthConsideringScrollbarWidth=null;if(t.scrollbarWidth>0&&t.visibleColumns.length>0){let e=t.visibleColumns.length-1;t.visibleColumns[e].actualWidthConsideringScrollbarWidth=t.visibleColumns[e].actualWidth-t.scrollbarWidth;let o=t.visibleColumns[e].actualWidthConsideringScrollbarWidth+"px",r=t.tbody.childNodes;for(let t=0,l=r.length;t<l;t++){let l=r[t];1===l.nodeType&&(l.childNodes[e].style.width=o)}t.headerRow.childNodes[e].style.width=o}}return this},li.prototype._updateTableWidth=function(e){const t=this.o,o=this.p;let l=this._calculateTbodyWidth();if(o.tbody.style.minWidth=l+"px",o.headerRow.style.minWidth=l+(o.scrollbarWidth||0)+"px",o.$table.off("scroll",o.onTableScrolledHorizontallyBound),t.width===li.Width.AUTO)i(o.$table[0],r(o.$tbody[0],!0,!0,!0)),i(this.$el[0],r(o.$table[0],!0,!0,!0));else if(t.width===li.Width.SCROLL){if(e){let e=o.table?o.table.scrollTop:0,t=o.table?o.table.scrollLeft:0;!function(e){let t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}(this.el),o.table.scrollTop=e,o.table.scrollLeft=t,o.header.scrollLeft=t}o.$table.on("scroll",o.onTableScrolledHorizontallyBound)}return this},li.prototype._isTableRtl=function(){return"rtl"===this.p.$table.css("direction")},li.prototype._serializeColumnWidth=function(e){return e.widthMode===ii.AUTO?"auto":e.widthMode===ii.RELATIVE?100*e.width+"%":e.width},li.prototype._cellMouseOverEvent=function(e){const t=this.o,o=this.p;let i=e.firstChild;if(i.scrollWidth-i.clientWidth>1||i.scrollHeight-i.clientHeight>1){this.hideCellPreview(),o.abortCellPreview=!1;let n=Jl(e),s=Jl(i);const a=e.parentNode;let d=ei("div"),u=Jl(d);d.innerHTML=e.innerHTML,d.className=t.cellPreviewClassName;let h=n.hasClass(t.tableClassName+"-header-cell");h&&(d.className+=" header",n.hasClass("sortable")&&(d.className+=" sortable"),d.draggable=!0,Jl(d).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()})),Jl(d.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)),Zl&&Jl(d).on("selectstart",function(e){return e.preventDefault(),this.dragDrop(),!1}.bind(d)));let c=parseFloat(n.css("padding-left"))||0,p=parseFloat(n.css("padding-right"))||0,f=parseFloat(n.css("padding-top"))||0,m=parseFloat(n.css("padding-bottom"))||0,g=i.scrollWidth+(e.clientWidth-i.offsetWidth),b="border-box"===n.css("box-sizing");if(b?u.css("box-sizing","border-box"):(g-=c+p,u.css("margin-top",parseFloat(Jl(e).css("border-top-width"))||0)),!o.transparentBgColor1){let e=document.createElement("div");e.style.backgroundColor="transparent",o.transparentBgColor1=Jl(e).css("background-color"),e.style.backgroundColor="rgba(0,0,0,0)",o.transparentBgColor2=Jl(e).css("background-color")}let v={"box-sizing":b?"border-box":"content-box",width:g,"min-height":l(n[0]),"padding-left":c,"padding-right":p,"padding-top":f,"padding-bottom":m,overflow:"hidden",position:"absolute","z-index":"-1",left:"0",top:"0",cursor:n.css("cursor")};if(v){let t=Jl(e).css("background-color");t!==o.transparentBgColor1&&t!==o.transparentBgColor2||(t=Jl(a).css("background-color")),t!==o.transparentBgColor1&&t!==o.transparentBgColor2||(t="#fff"),v["background-color"]=t}u.css(v),this.el.appendChild(d),Jl(d.firstChild).css({direction:s.css("direction"),"white-space":s.css("white-space")}),h&&u.css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","-o-user-select":"none","user-select":"none"}),d.rowIndex=a.rowIndex;let C=d.physicalRowIndex=a.physicalRowIndex;d.columnName=o.visibleColumns[Gl.call(a.childNodes,e)].name;try{let t=Xl.saveSelection(e);t&&Xl.restoreSelection(d,t)}catch(e){}if(this.trigger("cellpreview",d.firstChild,null==C?null:C,d.columnName,null==C?null:o.rows[C],e),o.abortCellPreview)return void u.remove();null!=C&&d.addEventListener("click",(e=>{this.trigger("rowclick",e,a.rowIndex,C,a,o.rows[C])}));let w=this.$el,y=w[0]===window?Jl(document):w,_=n.offset(),R=w.offset(),W="right"===n.css("float"),T=W?"right":"left";if(W){let e=Jl(window).width();_.right=e-(_.left+r(n[0],!0,!0,!0)),R.right=e-(R.left+r(w[0],!0,!0,!0))}_.left-=parseFloat(w.css("border-left-width"))||0,_.right-=parseFloat(w.css("border-right-width"))||0,_.top-=parseFloat(w.css("border-top-width"))||0,_[T]+=parseFloat(Jl(e).css("border-"+T+"-width"))||0,_.top+=parseFloat(Jl(e).css("border-top-width"))||parseFloat(Jl(e).css("border-bottom-width"))||0,_.left-=R.left,_.right-=R.right,_.top-=R.top;let S=0,N=w-r(u[0],!0,!0,!0);_[T]=_[T]<S?S:_[T]>N?N:_[T];let M=l(n[0],!0,!0,!0),E=y.scrollTop()+l(w[0],!0)-M;_.top>E&&(_.top=Math.max(0,E));let F={top:_.top,"z-index":9999};F[T]=_[T],u.css(F),d.__cell=e,o.$cellPreviewCell=u,e.__previewCell=d,o._bindCellHoverOut(e),o._bindCellHoverOut(d),u.on("wheel",(()=>{this.hideCellPreview()}))}},li.prototype._cellMouseOutEvent=function(e){this.hideCellPreview()},li.prototype.hideCellPreview=function(){const e=this.p;if(e.$cellPreviewCell){let t,o=e.$cellPreviewCell[0],r=o.__cell;try{t=Xl.saveSelection(o)}catch(e){}e.$cellPreviewCell.remove(),e._unbindCellHoverOut(r),e._unbindCellHoverOut(o);try{t&&Xl.restoreSelection(r,t)}catch(e){}this.trigger("cellpreviewdestroy",o.firstChild,o.physicalRowIndex,o.columnName,r),r.__previewCell=null,o.__cell=null,e.$cellPreviewCell=null,e.abortCellPreview=!1}else e.abortCellPreview=!0;return this};const ii={AUTO:0,ABSOLUTE:1,RELATIVE:2};li.Width={NONE:"none",AUTO:"auto",SCROLL:"scroll"},Jl.controls||(Jl.controls={}),Jl.controls.dgtable=li;export{li as default};
5
+ import e from"jquery";import{getScrollHorz as t,setScrollHorz as r}from"@danielgindi/dom-utils/lib/ScrollHelper";import{getElementOffset as o,getElementWidth as i,getElementHeight as n,setElementWidth as l}from"@danielgindi/dom-utils/lib/Css";var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=function(e){return e&&e.Math==Math&&e},d=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof s&&s)||function(){return this}()||Function("return this")(),u={},h=function(e){try{return!!e()}catch(e){return!0}},c=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),p=!h((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),m=p,f=Function.prototype.call,g=m?f.bind(f):function(){return f.apply(f,arguments)},b={},v={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,y=C&&!v.call({1:2},1);b.f=y?function(e){var t=C(this,e);return!!t&&t.enumerable}:v;var w,_,W=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},I=p,E=Function.prototype,R=E.call,S=I&&E.bind.bind(R,R),x=I?S:function(e){return function(){return R.apply(e,arguments)}},N=x,T=N({}.toString),H=N("".slice),P=function(e){return H(T(e),8,-1)},F=P,A=x,M=function(e){if("Function"===F(e))return A(e)},O=h,z=P,k=Object,L=M("".split),$=O((function(){return!k("z").propertyIsEnumerable(0)}))?function(e){return"String"==z(e)?L(e,""):k(e)}:k,B=function(e){return null==e},V=B,D=TypeError,j=function(e){if(V(e))throw D("Can't call method on "+e);return e},U=$,q=j,X=function(e){return U(q(e))},Y="object"==typeof document&&document.all,G={all:Y,IS_HTMLDDA:void 0===Y&&void 0!==Y},J=G.all,K=G.IS_HTMLDDA?function(e){return"function"==typeof e||e===J}:function(e){return"function"==typeof e},Q=K,Z=G.all,ee=G.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=d,re=K,oe=function(e){return re(e)?e:void 0},ie=function(e,t){return arguments.length<2?oe(te[e]):te[e]&&te[e][t]},ne=M({}.isPrototypeOf),le=ie("navigator","userAgent")||"",se=d,ae=le,de=se.process,ue=se.Deno,he=de&&de.versions||ue&&ue.version,ce=he&&he.v8;ce&&(_=(w=ce.split("."))[0]>0&&w[0]<4?1:+(w[0]+w[1])),!_&&ae&&(!(w=ae.match(/Edge\/(\d+)/))||w[1]>=74)&&(w=ae.match(/Chrome\/(\d+)/))&&(_=+w[1]);var pe=_,me=pe,fe=h,ge=!!Object.getOwnPropertySymbols&&!fe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&me&&me<41})),be=ge&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ve=ie,Ce=K,ye=ne,we=Object,_e=be?function(e){return"symbol"==typeof e}:function(e){var t=ve("Symbol");return Ce(t)&&ye(t.prototype,we(e))},We=String,Ie=function(e){try{return We(e)}catch(e){return"Object"}},Ee=K,Re=Ie,Se=TypeError,xe=function(e){if(Ee(e))return e;throw Se(Re(e)+" is not a function")},Ne=xe,Te=B,He=g,Pe=K,Fe=ee,Ae=TypeError,Me={exports:{}},Oe=d,ze=Object.defineProperty,ke=function(e,t){try{ze(Oe,e,{value:t,configurable:!0,writable:!0})}catch(r){Oe[e]=t}return t},Le=ke,$e=d["__core-js_shared__"]||Le("__core-js_shared__",{}),Be=$e;(Me.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 Ve=j,De=Object,je=function(e){return De(Ve(e))},Ue=je,qe=M({}.hasOwnProperty),Xe=Object.hasOwn||function(e,t){return qe(Ue(e),t)},Ye=M,Ge=0,Je=Math.random(),Ke=Ye(1..toString),Qe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ke(++Ge+Je,36)},Ze=d,et=Me.exports,tt=Xe,rt=Qe,ot=ge,it=be,nt=et("wks"),lt=Ze.Symbol,st=lt&&lt.for,at=it?lt:lt&&lt.withoutSetter||rt,dt=function(e){if(!tt(nt,e)||!ot&&"string"!=typeof nt[e]){var t="Symbol."+e;ot&&tt(lt,e)?nt[e]=lt[e]:nt[e]=it&&st?st(t):at(t)}return nt[e]},ut=g,ht=ee,ct=_e,pt=TypeError,mt=dt("toPrimitive"),ft=function(e,t){if(!ht(e)||ct(e))return e;var r,o,i=(o=e[mt],Te(o)?void 0:Ne(o));if(i){if(void 0===t&&(t="default"),r=ut(i,e,t),!ht(r)||ct(r))return r;throw pt("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,o;if("string"===t&&Pe(r=e.toString)&&!Fe(o=He(r,e)))return o;if(Pe(r=e.valueOf)&&!Fe(o=He(r,e)))return o;if("string"!==t&&Pe(r=e.toString)&&!Fe(o=He(r,e)))return o;throw Ae("Can't convert object to primitive value")}(e,t)},gt=_e,bt=function(e){var t=ft(e,"string");return gt(t)?t:t+""},vt=ee,Ct=d.document,yt=vt(Ct)&&vt(Ct.createElement),wt=!c&&!h((function(){return 7!=Object.defineProperty((e="div",yt?Ct.createElement(e):{}),"a",{get:function(){return 7}}).a;var e})),_t=c,Wt=g,It=b,Et=W,Rt=X,St=bt,xt=Xe,Nt=wt,Tt=Object.getOwnPropertyDescriptor;u.f=_t?Tt:function(e,t){if(e=Rt(e),t=St(t),Nt)try{return Tt(e,t)}catch(e){}if(xt(e,t))return Et(!Wt(It.f,e,t),e[t])};var Ht={},Pt=c&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ft=ee,At=String,Mt=TypeError,Ot=function(e){if(Ft(e))return e;throw Mt(At(e)+" is not an object")},zt=c,kt=wt,Lt=Pt,$t=Ot,Bt=bt,Vt=TypeError,Dt=Object.defineProperty,jt=Object.getOwnPropertyDescriptor;Ht.f=zt?Lt?function(e,t,r){if($t(e),t=Bt(t),$t(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var o=jt(e,t);o&&o.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:o.configurable,enumerable:"enumerable"in r?r.enumerable:o.enumerable,writable:!1})}return Dt(e,t,r)}:Dt:function(e,t,r){if($t(e),t=Bt(t),$t(r),kt)try{return Dt(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Vt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Ut=Ht,qt=W,Xt=c?function(e,t,r){return Ut.f(e,t,qt(1,r))}:function(e,t,r){return e[t]=r,e},Yt={exports:{}},Gt=c,Jt=Xe,Kt=Function.prototype,Qt=Gt&&Object.getOwnPropertyDescriptor,Zt=Jt(Kt,"name"),er={EXISTS:Zt,PROPER:Zt&&"something"===function(){}.name,CONFIGURABLE:Zt&&(!Gt||Gt&&Qt(Kt,"name").configurable)},tr=K,rr=$e,or=M(Function.toString);tr(rr.inspectSource)||(rr.inspectSource=function(e){return or(e)});var ir,nr,lr,sr,ar=rr.inspectSource,dr=K,ur=d.WeakMap,hr=dr(ur)&&/native code/.test(String(ur)),cr=Me.exports,pr=Qe,mr=cr("keys"),fr={},gr=hr,br=d,vr=ee,Cr=Xt,yr=Xe,wr=$e,_r=fr,Wr=br.TypeError,Ir=br.WeakMap;if(gr||wr.state){var Er=wr.state||(wr.state=new Ir);Er.get=Er.get,Er.has=Er.has,Er.set=Er.set,ir=function(e,t){if(Er.has(e))throw Wr("Object already initialized");return t.facade=e,Er.set(e,t),t},nr=function(e){return Er.get(e)||{}},lr=function(e){return Er.has(e)}}else{var Rr=mr[sr="state"]||(mr[sr]=pr(sr));_r[Rr]=!0,ir=function(e,t){if(yr(e,Rr))throw Wr("Object already initialized");return t.facade=e,Cr(e,Rr,t),t},nr=function(e){return yr(e,Rr)?e[Rr]:{}},lr=function(e){return yr(e,Rr)}}var Sr={set:ir,get:nr,has:lr,enforce:function(e){return lr(e)?nr(e):ir(e,{})},getterFor:function(e){return function(t){var r;if(!vr(t)||(r=nr(t)).type!==e)throw Wr("Incompatible receiver, "+e+" required");return r}}},xr=h,Nr=K,Tr=Xe,Hr=c,Pr=er.CONFIGURABLE,Fr=ar,Ar=Sr.enforce,Mr=Sr.get,Or=Object.defineProperty,zr=Hr&&!xr((function(){return 8!==Or((function(){}),"length",{value:8}).length})),kr=String(String).split("String"),Lr=Yt.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),(!Tr(e,"name")||Pr&&e.name!==t)&&(Hr?Or(e,"name",{value:t,configurable:!0}):e.name=t),zr&&r&&Tr(r,"arity")&&e.length!==r.arity&&Or(e,"length",{value:r.arity});try{r&&Tr(r,"constructor")&&r.constructor?Hr&&Or(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=Ar(e);return Tr(o,"source")||(o.source=kr.join("string"==typeof t?t:"")),e};Function.prototype.toString=Lr((function(){return Nr(this)&&Mr(this).source||Fr(this)}),"toString");var $r=K,Br=Ht,Vr=Yt.exports,Dr=ke,jr={},Ur=Math.ceil,qr=Math.floor,Xr=Math.trunc||function(e){var t=+e;return(t>0?qr:Ur)(t)},Yr=function(e){var t=+e;return t!=t||0===t?0:Xr(t)},Gr=Yr,Jr=Math.max,Kr=Math.min,Qr=function(e,t){var r=Gr(e);return r<0?Jr(r+t,0):Kr(r,t)},Zr=Yr,eo=Math.min,to=function(e){return(t=e.length)>0?eo(Zr(t),9007199254740991):0;var t},ro=X,oo=Qr,io=to,no=function(e){return function(t,r,o){var i,n=ro(t),l=io(n),s=oo(o,l);if(e&&r!=r){for(;l>s;)if((i=n[s++])!=i)return!0}else for(;l>s;s++)if((e||s in n)&&n[s]===r)return e||s||0;return!e&&-1}},lo={includes:no(!0),indexOf:no(!1)},so=Xe,ao=X,uo=lo.indexOf,ho=fr,co=M([].push),po=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");jr.f=Object.getOwnPropertyNames||function(e){return function(e,t){var r,o=ao(e),i=0,n=[];for(r in o)!so(ho,r)&&so(o,r)&&co(n,r);for(;t.length>i;)so(o,r=t[i++])&&(~uo(n,r)||co(n,r));return n}(e,po)};var mo={};mo.f=Object.getOwnPropertySymbols;var fo=ie,go=jr,bo=mo,vo=Ot,Co=M([].concat),yo=fo("Reflect","ownKeys")||function(e){var t=go.f(vo(e)),r=bo.f;return r?Co(t,r(e)):t},wo=Xe,_o=yo,Wo=u,Io=Ht,Eo=function(e,t,r){for(var o=_o(t),i=Io.f,n=Wo.f,l=0;l<o.length;l++){var s=o[l];wo(e,s)||r&&wo(r,s)||i(e,s,n(t,s))}},Ro=h,So=K,xo=/#|\.prototype\./,No=function(e,t){var r=Ho[To(e)];return r==Fo||r!=Po&&(So(t)?Ro(t):!!t)},To=No.normalize=function(e){return String(e).replace(xo,".").toLowerCase()},Ho=No.data={},Po=No.NATIVE="N",Fo=No.POLYFILL="P",Ao=No,Mo=d,Oo=u.f,zo=Xt,ko=function(e,t,r,o){o||(o={});var i=o.enumerable,n=void 0!==o.name?o.name:t;if($r(r)&&Vr(r,n,o),o.global)i?e[t]=r:Dr(t,r);else{try{o.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=r:Br.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e},Lo=ke,$o=Eo,Bo=Ao,Vo=function(e,t){var r,o,i,n,l,s=e.target,a=e.global,d=e.stat;if(r=a?Mo:d?Mo[s]||Lo(s,{}):(Mo[s]||{}).prototype)for(o in t){if(n=t[o],i=e.dontCallGetSet?(l=Oo(r,o))&&l.value:r[o],!Bo(a?o:s+(d?".":"#")+o,e.forced)&&void 0!==i){if(typeof n==typeof i)continue;$o(n,i)}(e.sham||i&&i.sham)&&zo(n,"sham",!0),ko(r,o,n,e)}},Do={};Do[dt("toStringTag")]="z";var jo="[object z]"===String(Do),Uo=K,qo=P,Xo=dt("toStringTag"),Yo=Object,Go="Arguments"==qo(function(){return arguments}()),Jo=jo?qo:function(e){var t,r,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Yo(e),Xo))?r:Go?qo(t):"Object"==(o=qo(t))&&Uo(t.callee)?"Arguments":o},Ko=String,Qo=function(e){if("Symbol"===Jo(e))throw TypeError("Cannot convert a Symbol value to a string");return Ko(e)},Zo=Vo,ei=c,ti=d,ri=M,oi=Xe,ii=K,ni=ne,li=Qo,si=Ht.f,ai=Eo,di=ti.Symbol,ui=di&&di.prototype;if(ei&&ii(di)&&(!("description"in ui)||void 0!==di().description)){var hi={},ci=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:li(arguments[0]),t=ni(ui,this)?new di(e):void 0===e?di():di(e);return""===e&&(hi[t]=!0),t};ai(ci,di),ci.prototype=ui,ui.constructor=ci;var pi="Symbol(test)"==String(di("test")),mi=ri(ui.valueOf),fi=ri(ui.toString),gi=/^Symbol\((.*)\)[^)]+$/,bi=ri("".replace),vi=ri("".slice);si(ui,"description",{configurable:!0,get:function(){var e=mi(this);if(oi(hi,e))return"";var t=fi(e),r=pi?vi(t,7,-1):bi(t,gi,"$1");return""===r?void 0:r}}),Zo({global:!0,constructor:!0,forced:!0},{Symbol:ci})}var Ci,yi,wi=Ie,_i=TypeError,Wi=bt,Ii=Ht,Ei=W,Ri=Qr,Si=to,xi=function(e,t,r){var o=Wi(t);o in e?Ii.f(e,o,Ei(0,r)):e[o]=r},Ni=Array,Ti=Math.max,Hi=function(e,t,r){for(var o=Si(e),i=Ri(t,o),n=Ri(void 0===r?o:r,o),l=Ni(Ti(n-i,0)),s=0;i<n;i++,s++)xi(l,s,e[i]);return l.length=s,l},Pi=Math.floor,Fi=function(e,t){var r=e.length,o=Pi(r/2);return r<8?Ai(e,t):Mi(e,Fi(Hi(e,0,o),t),Fi(Hi(e,o),t),t)},Ai=function(e,t){for(var r,o,i=e.length,n=1;n<i;){for(o=n,r=e[n];o&&t(e[o-1],r)>0;)e[o]=e[--o];o!==n++&&(e[o]=r)}return e},Mi=function(e,t,r,o){for(var i=t.length,n=r.length,l=0,s=0;l<i||s<n;)e[l+s]=l<i&&s<n?o(t[l],r[s])<=0?t[l++]:r[s++]:l<i?t[l++]:r[s++];return e},Oi=Fi,zi=h,ki=le.match(/firefox\/(\d+)/i),Li=!!ki&&+ki[1],$i=/MSIE|Trident/.test(le),Bi=le.match(/AppleWebKit\/(\d+)\./),Vi=!!Bi&&+Bi[1],Di=Vo,ji=M,Ui=xe,qi=je,Xi=to,Yi=function(e,t){if(!delete e[t])throw _i("Cannot delete property "+wi(t)+" of "+wi(e))},Gi=Qo,Ji=h,Ki=Oi,Qi=Li,Zi=$i,en=pe,tn=Vi,rn=[],on=ji(rn.sort),nn=ji(rn.push),ln=Ji((function(){rn.sort(void 0)})),sn=Ji((function(){rn.sort(null)})),an=!!(yi=[]["sort"])&&zi((function(){yi.call(null,Ci||function(){return 1},1)})),dn=!Ji((function(){if(en)return en<70;if(!(Qi&&Qi>3)){if(Zi)return!0;if(tn)return tn<603;var e,t,r,o,i="";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(o=0;o<47;o++)rn.push({k:t+o,v:r})}for(rn.sort((function(e,t){return t.v-e.v})),o=0;o<rn.length;o++)t=rn[o].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));Di({target:"Array",proto:!0,forced:ln||!sn||!an||!dn},{sort:function(e){void 0!==e&&Ui(e);var t=qi(this);if(dn)return void 0===e?on(t):on(t,e);var r,o,i=[],n=Xi(t);for(o=0;o<n;o++)o in t&&nn(i,t[o]);for(Ki(i,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:Gi(t)>Gi(r)?1:-1}}(e)),r=Xi(i),o=0;o<r;)t[o]=i[o++];for(;o<n;)Yi(t,o++);return t}});const un=Array.prototype.indexOf,hn=function(e,t){for(let r=0,o=e.length;r>=0&&r<o;r+=1)if(t(e[r],r,e))return e[r]},cn=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")};function pn(){let e=[];return Object.assign(e,pn.prototype),e.initialize.apply(e,arguments),e}pn.prototype=[],pn.prototype.initialize=function(e){e=e||{},this.sortColumn=null==e.sortColumn?[]:e.sortColumn},pn.prototype.add=function(e,t){let r,o;if("splice"in e&&"length"in e)if("number"==typeof t)for(r=0,o=e.length;r<o;r++)this.splice(t++,0,e[r]);else for(r=0,o=e.length;r<o;r++)this.push(e[r]);else"number"==typeof t?this.splice(t,0,e):this.push(e)},pn.prototype.reset=function(e){this.length=0,e&&this.add(e)},pn.prototype.filteredCollection=function(e,t){if(e&&t){let r=new pn({sortColumn:this.sortColumn});for(let o,i=0,n=this.length;i<n;i++)o=this[i],e(o,t)&&(o.__i=i,r.push(o));return r}return null},pn.prototype.onComparatorRequired=null,pn.prototype.onSort=null;let mn=pn.prototype.sort;function fn(e,t){let r=e.column,o=e.comparePath||r;"string"==typeof o&&(o=o.split("."));let i,n=o.length,l=n>1,s=t?1:-1,a=t?-1:1;return function(e,t){let r=e[o[0]],d=t[o[0]];if(l)for(i=1;i<n;i++)r=r&&r[o[i]],d=d&&d[o[i]];return r===d?0:null==r?s:null==d?a:r<d?s:a}}function gn(){let e=[];return Object.assign(e,gn.prototype),e.initialize.apply(e,arguments),e}pn.prototype.sort=function(e){let t;if(this.sortColumn.length){let r=[];for(let e=0;e<this.sortColumn.length;e++){t=null;const o=fn(this.sortColumn[e],this.sortColumn[e].descending);this.onComparatorRequired&&(t=this.onComparatorRequired(this.sortColumn[e].column,this.sortColumn[e].descending,o)),t||(t=o),r.push(t.bind(this))}if(1===r.length)t=r[0],mn.call(this,t);else{let e,o=r.length;t=function(t,i){for(let n=0;n<o;n++)if(e=r[n](t,i),0!==e)return e;return e},mn.call(this,t)}e||this.onSort&&this.onSort(t)}return t},gn.prototype=[],gn.prototype.initialize=function(){},gn.prototype.get=function(e){for(let t=0,r=this.length;t<r;t++)if(this[t].name===e)return this[t];return null},gn.prototype.indexOf=function(e){for(let t=0,r=this.length;t<r;t++)if(this[t].name===e)return t;return-1},gn.prototype.getByOrder=function(e){for(let t=0,r=this.length;t<r;t++)if(this[t].order===e)return this[t];return null},gn.prototype.normalizeOrder=function(){let 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},gn.prototype.getColumns=function(){let e=[];for(let t,r=0;r<this.length;r++)t=this[r],e.push(t);return e.sort(((e,t)=>e.order<t.order?-1:e.order>t.order?1:0)),e},gn.prototype.getVisibleColumns=function(){let e=[];for(let t,r=0;r<this.length;r++)t=this[r],t.visible&&e.push(t);return e.sort(((e,t)=>e.order<t.order?-1:e.order>t.order?1:0)),e},gn.prototype.getMaxOrder=function(){let e=0;for(let t,r=0;r<this.length;r++)t=this[r],t.order>e&&(e=t.order);return e},gn.prototype.moveColumn=function(e,t){if(e&&t){let r,o,i=e.order,n=t.order;if(i<n)for(r=i+1;r<=n;r++)o=this.getByOrder(r),o.order--;else for(r=i-1;r>=n;r--)o=this.getByOrder(r),o.order++;e.order=n}return this};class bn{static saveSelection(e){let 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;let r=t.cloneRange();r.selectNodeContents(e),r.setEnd(t.startContainer,t.startOffset);let o=r.toString().length;return{start:o,end:o+t.toString().length}}static restoreSelection(e,t){let r,o=0,i=[e],n=!1,l=!1,s=document.createRange();for(s.setStart(e,0),s.collapse(!0);!l&&(r=i.pop());)if(3===r.nodeType){let e=o+r.length;!n&&t.start>=o&&t.start<=e&&(s.setStart(r,t.start-o),n=!0),n&&t.end>=o&&t.end<=e&&(s.setEnd(r,t.end-o),l=!0),o=e}else{let e=r.childNodes.length;for(;e--;)i.push(r.childNodes[e])}let a=window.getSelection();a.removeAllRanges(),a.addRange(s)}}const vn=Object.prototype.hasOwnProperty;class Cn{constructor(e){var t;const r=this._p={list:e.list||null,hookScrollEvent:void 0===e.hookScrollEvent||!!e.hookScrollEvent,count:e.count||0,virtual:void 0===e.virtual||!!e.virtual,userItemsParent:e.itemsParent||null,setVirtualWrapperWidth:null===(t=e.autoVirtualWrapperWidth)||void 0===t||t,estimatedItemHeight:20,buffer:5,itemHeightEstimatorFn:null,itemElementCreatorFn:_n,onItemRender:null,onItemUnrender:null,virtualWrapper:null,currentItemsParent:null,cachedItemHeights:[],cachedItemEstimatedHeights:[],cachedItemPositions:[],itemPositionsNeedsUpdate:0,boundRender:this.render.bind(this),existingEls:[]};r.currentItemsParent=r.userItemsParent||r.list,"boolean"==typeof e.hookScrollEvent?this.setHookScrollEvent(e.hookScrollEvent):this._hookEvents(),"number"==typeof e.count&&this.setCount(e.count),"boolean"==typeof e.virtual&&this.setVirtual(e.virtual),"number"==typeof e.estimatedItemHeight&&this.setEstimatedItemHeight(e.estimatedItemHeight),"number"==typeof e.buffer&&this.setBuffer(e.buffer),"function"==typeof e.itemHeightEstimatorFn&&this.setItemHeightEstimatorFn(e.itemHeightEstimatorFn),"function"==typeof e.itemElementCreatorFn&&this.setItemElementCreatorFn(e.itemElementCreatorFn),"function"==typeof e.onItemRender&&this.setOnItemRender(e.onItemRender),"function"==typeof e.onItemUnrender&&this.setOnItemUnrender(e.onItemUnrender)}destroy(){this._unhookEvents().invalidate()._destroyElements()}setHookScrollEvent(e){const t=this._p;return e=void 0===e||!!e,t.hookScrollEvent===e||(t.hookScrollEvent=e,this._unhookEvents()._hookEvents()),this}isHookScrollEventEnabled(){return this._p.hookScrollEvent}setCount(e){return this._p.count=e,this.invalidatePositions()}getCount(){return this._p.count}setVirtual(e){const t=this._p;return e=void 0===e||!!e,t.virtual===e||(t.virtual=e,this._hookEvents().invalidate()._destroyElements()),this}isVirtual(){return this._p.virtual}setEstimatedItemHeight(e){return this._p.estimatedItemHeight=Math.abs(("number"==typeof e?e:Number(e))||20),this}getEstimatedItemHeight(){return this._p.estimatedItemHeight}setAutoVirtualWrapperWidth(e){const 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}isAutoVirtualWrapperWidth(){return this._p.autoVirtualWrapperWidth}setBuffer(e){return this._p.buffer=Math.abs("number"==typeof e?e:Number(e)||5),this}getBuffer(){return this._p.buffer}setItemHeightEstimatorFn(e){return this._p.itemHeightEstimatorFn=e,this}setItemElementCreatorFn(e){return this._p.itemElementCreatorFn=e||_n,this}setOnItemRender(e){return this._p.onItemRender=e,this}setOnItemUnrender(e){return this._p.onItemUnrender=e,this}estimateFullHeight(){const e=this._p;if(0===e.count)return 0;if(e.virtual)return this._calculateItemPosition(e.count)||0;{const t=e.existingEls;if(e.count===t.length){let e=t[0].getBoundingClientRect(),r=t[t.length-1].getBoundingClientRect();return r.top-e.top+r.height}return this._calculateItemPosition(e.count)||0}}invalidatePositions(){const 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}invalidate(){const e=this._p;this.invalidatePositions();const t=e.onItemUnrender,r=e.existingEls;for(let e=0;e<r.length;e++){const o=r[e];void 0!==o[yn]&&(t&&t(o),delete o[yn])}return this}render(){const e=this._p,t=e.list,r=e.virtual;let o=e.virtualWrapper,i=t.scrollTop,n=i+t.clientHeight,l=e.count,s=e.buffer,a=e.onItemUnrender,d=e.existingEls,u=d.length;if(r){const r=t.clientWidth;o||(o=e.virtualWrapper=e.userItemsParent,o||(o=e.virtualWrapper=document.createElement("div"),t.appendChild(o)),this._resetCurrentItemsParent(),e.autoVirtualWrapperWidth?(o.style.width="100%",e.virtualWrapperWidthWasSet=!0):e.virtualWrapperWidthWasSet=!1);for(let e=0;e<u;e++)d[e][wn]=!0;this._calculateItemPosition(e.count-1);let a,h=this._getExistingElsRange(),c=Wn(e.cachedItemPositions,i),p=Math.max(0,c-s),m=p,f=this._calculateItemPosition(m),g=s;for(;(f<n||g-- >0)&&m<l;){let t;-1!==h.firstIndex&&m>=h.firstIndex&&m<=h.lastIndex&&(t=d.find((e=>e[yn]===m&&!0===e[wn]))),void 0===t&&(t=(h.firstIndex<p||h.firstValidArrayIndex>0?d.find((e=>(e[yn]<p||!1===vn.call(e,yn))&&!0===e[wn])):void 0)||En(d,(e=>!0===e[wn]))),void 0!==t&&delete t[wn];let r=a?a.nextSibling:o.childNodes[0];r&&r===t&&(r=r.nextSibling),a=this._dequeueElementForIndex(t,m,r),f=e.cachedItemPositions[m]+e.cachedItemHeights[m],m++}let b=this.estimateFullHeight();e.virtualWrapper.style.height=b+"px",r!==t.clientWidth&&this.render()}else if(l!==d.length){for(let e=0;e<u;e++)d[e][wn]=!0;let e;for(let r=0;r<l;r++){let o=d.find((e=>e[yn]===r&&!0===e[wn]));void 0!==o&&delete o[wn];let i=e?e.nextSibling:t.childNodes[0];i&&i===o&&(i=i.nextSibling),e=this._dequeueElementForIndex(o,r,i)}}u=d.length;for(let e=0;e<u;e++){const t=d[e];if(!0!==t[wn])continue;let r=t.parentNode;r&&r.removeChild(t),a&&void 0!==t[yn]&&a(t),d.splice(e,1),e--,u--}}addItemsAt(e,t=-1){if("number"!=typeof e||e<=0)return this;const 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{let o=r.existingEls;if(o.length!==r.count-e)return this;let i=this._getExistingElsRange();if(-1===i.firstValidArrayIndex)return this;let n=i.firstValidArrayIndex+t-i.firstIndex;this._pushItemIndexesAt(t,e);let l=o[n-1];for(let r=t,i=t+e;r<i;r++){let e=l?l.nextSibling:o[0];l=this._dequeueElementForIndex(void 0,r,e)}}return this}removeItemsAt(e,t){const 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{let o=r.existingEls;if(o.length!==r.count+e)return this;let i=this._getExistingElsRange();if(-1===i.firstValidArrayIndex)return this;this._pushItemIndexesAt(t+e,-e);const n=r.onItemUnrender;let l=i.firstValidArrayIndex+t-i.firstIndex;if(l<o.length){for(let t=0;t<e;t++){let e=o[l+t],r=e.parentNode;r&&r.removeChild(e),n&&void 0!==e[yn]&&n(e)}o.splice(l,e)}}return this}refreshItemAt(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return this;if(t.virtual)this._invalidateItemIndexesAt(e,1);else{let r=t.existingEls;if(r.length!==t.count)return this;let o=this._getExistingElsRange();if(e>=o.firstIndex&&e<=o.lastIndex){let t=r[o.firstValidArrayIndex+e-o.firstIndex];delete t[yn],this._dequeueElementForIndex(t,e,t.nextSibling)}}return this}isItemRendered(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return!1;let r=this._getExistingElsRange();return e>=r.firstIndex&&e<=r.lastIndex}getItemElementAt(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return;let r=t.existingEls,o=this._getExistingElsRange();return e>=o.firstIndex&&e<=o.lastIndex?r[o.firstValidArrayIndex+e-o.firstIndex]:void 0}getItemPosition(e){const t=this._p;if(!("number"!=typeof e||e<0||e>=t.count)){if(t.virtual)return this._calculateItemPosition(e);{let r=this.getItemElementAt(e);if(void 0===r)return;const i=t.list;return o(r).top-o(i).top+i.scrollTop}}}getItemIndexFromElement(e){return e?e[yn]:void 0}getItemSize(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return;let r=t.cachedItemHeights[e-1];return void 0===r&&(r=t.itemHeightEstimatorFn?t.itemHeightEstimatorFn(e-1):null,"number"!=typeof r&&(r=t.estimatedItemHeight),t.cachedItemEstimatedHeights[e-1]=r),r}getVisibleItemCount(){const e=this._p,t=e.list;let r,o,i=t.scrollTop,n=t.clientHeight;if(e.virtual)r=Wn(e.cachedItemPositions,i),o=Wn(e.cachedItemPositions,i+n,r);else{const t=e=>{let t=this.getItemPosition(e);return void 0===t&&(t=1/0),t};r=In(e.count,t,i),o=In(e.count,t,i+n,r)}return this.getItemPosition(o)===i+n&&o--,o-r+1}createGhostItemElement(e,t,r){const o=this._p;let i=this._dequeueElementForIndex(null,e,!1);try{t&&o.currentItemsParent.appendChild(i),r(i)}finally{if(t){let e=i.parentNode;e&&e.removeChild(i)}o.onItemUnrender&&o.onItemUnrender(i)}}_resetCurrentItemsParent(){var e,t;const r=this._p;r.currentItemsParent=null!==(e=null!==(t=r.virtualWrapper)&&void 0!==t?t:r.userItemsParent)&&void 0!==e?e:r.list}_destroyElements(){const e=this._p,t=e.onItemUnrender,r=e.existingEls;for(let e=0;e<r.length;e++){const o=r[e];let i=o.parentNode;i&&i.removeChild(o),t&&void 0!==o[yn]&&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}_invalidateItemIndexesAt(e,t){const r=this._p;this._setItemPositionsNeedsUpdate(e);let o=r.existingEls,i=o.length,n=this._getExistingElsRange();if(-1!==n.firstValidArrayIndex&&(-1===t&&(t=o.length),e>=n.firstIndex&&e<=n.lastIndex))for(let r=n.firstValidArrayIndex+e-n.firstIndex,l=0;r<i&&l<t;r++,l++)delete o[r][yn]}_pushItemIndexesAt(e,t){let r=this._p.existingEls,o=r.length,i=this._getExistingElsRange();if(-1!==i.firstValidArrayIndex&&e>=i.firstIndex&&e<=i.lastIndex)for(let n=i.firstValidArrayIndex+e-i.firstIndex;n<o;n++)r[n][yn]+=t}_hookEvents(){const e=this._p;return this._unhookEvents(),e.virtual&&e.hookScrollEvent&&e.list&&e.list.addEventListener("scroll",e.boundRender),this}_unhookEvents(){const e=this._p;return e.list&&e.list.removeEventListener("scroll",e.boundRender),this}_setItemPositionsNeedsUpdate(e){const t=this._p;e<t.itemPositionsNeedsUpdate&&(t.itemPositionsNeedsUpdate=e)}_calculateItemPosition(e){const t=this._p,r=t.cachedItemPositions;if(e>=t.itemPositionsNeedsUpdate){const o=t.count,i=t.cachedItemHeights,n=t.cachedItemEstimatedHeights,l=t.estimatedItemHeight,s=t.itemHeightEstimatorFn;i.length!==o&&(i.length=o,n.length=o,r.length=o);let a=t.itemPositionsNeedsUpdate,d=Math.min(e,o),u=0;a>0&&(u=r[a-1]);for(let e=a;e<=d;e++){if(0===e){r[e]=u;continue}const t=e-1;let o=i[t];void 0===o&&(o=s?s(t):null,"number"!=typeof o&&(o=l),n[t]=o),u+=o,r[e]=u}t.itemPositionsNeedsUpdate=d+1}if(e>0&&e===t.count){let o=t.cachedItemHeights[e-1];return void 0===o&&(o=t.itemHeightEstimatorFn?t.itemHeightEstimatorFn(e-1):null,"number"!=typeof o&&(o=t.estimatedItemHeight),t.cachedItemEstimatedHeights[e-1]=o),r[e-1]+o}return r[e]}_dequeueElementForIndex(e,t,r){const o=this._p,i=o.virtualWrapper,n=o.currentItemsParent,l=o.existingEls,s=o.onItemRender,a=o.onItemUnrender,d=!e,u=d||t!==e[yn];if(e?a&&u&&a(e):(e=o.itemElementCreatorFn(),i&&!1!==r&&(e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.right="0")),u&&(e.innerHTML="",s&&s(e,t)),!1!==r){if(r instanceof Node||(r=null),e.parentNode===n&&e.nextSibling===r||n.insertBefore(e,r),!d){let t=l.indexOf(e);-1!==t&&l.splice(t,1)}let s=r?l.indexOf(r):-1;if(-1===s?l.push(e):l.splice(s,0,e),i){let r=e.getBoundingClientRect().height,i=o.cachedItemHeights[t];i!==r&&(o.cachedItemHeights[t]=r),(void 0!==i&&r!==i||void 0===i&&r!==o.cachedItemEstimatedHeights[t])&&this._setItemPositionsNeedsUpdate(t+1);let n=this._calculateItemPosition(t);const l=Sn();!1===l?e.style.top=`${n}px`:e.style[l]=`translateY(${n}px)`}}return e[yn]=t,e}_getExistingElsRange(){const e=this._p.existingEls;let t=-1,r=-1;for(let r=0,o=e.length;r<o;r++)if(!1!==vn.call(e[r],yn)){t=r;break}for(let t=e.length-1;t>=0;t--)if(!1!==vn.call(e[t],yn)){r=t;break}return{firstValidArrayIndex:t,lastValidArrayIndex:r,firstIndex:-1!==t?e[t][yn]:-1,lastIndex:-1!==r?e[r][yn]:-1}}}const yn=Symbol("index"),wn=Symbol("reuse"),_n=()=>document.createElement("li"),Wn=(e,t,r=0,o=-1)=>{let i=e.length;if(o<0&&(o+=i),o<=r)return o;for(;r<=o;){let n=Math.floor(r+(o-r)/2),l=e[n];if(l===t||l<=t&&n<i&&e[n+1]>t){for(;n>0&&e[n-1]===l;)n--;return n}l<t?r=n+1:o=n-1}return-1===o?0:i-1},In=(e,t,r,o=0,i=-1)=>{if(i<0&&(i+=e),i<=o)return i;for(;o<=i;){let n=Math.floor(o+(i-o)/2),l=t(n);if(l===r||l<=r&&n<e&&t(n+1)>r){for(;n>0&&t(n-1)===l;)n--;return n}l<r?o=n+1:i=n-1}return-1===i?0:t(e-1)},En=(e,t)=>{for(let r=e.length-1;r>=0;r--)if(t(e[r]))return e[r]};let Rn=null;const Sn=()=>{if(null===Rn){let e=["transform","WebkitTransform","MozTransform","OTransform","msTransform"],t=document.createElement("div");Rn=!1;for(let r of e)if(t&&void 0!==t.style[r]){Rn=r;break}}return Rn};function xn(e,t){let r=t.column,o=null==t.keyword?"":t.keyword.toString();if(!o||!r)return!0;let i=e[r];return null!=i&&(i=i.toString(),t.caseSensitive||(i=i.toLowerCase(),o=o.toLowerCase()),-1!==i.indexOf(o))}const Nn=Array.prototype.indexOf,Tn=e;let Hn=navigator.userAgent,Pn=-1!==Hn.indexOf("MSIE ")?parseFloat(Hn.substr(Hn.indexOf("MSIE ")+5)):null,Fn=Pn&&Pn<10,An=document.createElement.bind(document);const Mn=Object.prototype.hasOwnProperty,On=Symbol("safe"),zn=Symbol("hover_in"),kn=Symbol("hover_out"),Ln=Symbol("row_click");function $n(e){var t,r;t=["relative","absolute","fixed"],r=e.css("position"),un.call(t,r)>=0||e.css("position","relative")}const Bn=e=>/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(e.target.tagName);let Vn=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)};Vn.VERSION="@@VERSION",Vn.prototype.VERSION=Vn.VERSION,Vn.prototype.initialize=function(e){let t=this;e=e||{};let r=t.o={},o=t.p={};o.events={},t.el=e.el&&e.el instanceof Element?e.el:document.createElement("div");let i=t.$el=Tn(t.el);t.el!==e.el&&i.addClass(e.className||"dgtable-wrapper"),i.data("control",t).data("dgtable",t),i.on("remove",(()=>t.destroy())),o.onMouseMoveResizeAreaBound=this._onMouseMoveResizeArea.bind(this),o.onEndDragColumnHeaderBound=this._onEndDragColumnHeader.bind(this),o.onTableScrolledHorizontallyBound=this._onTableScrolledHorizontally.bind(this),this.$el.on("dragend",o.onEndDragColumnHeaderBound),o.tableSkeletonNeedsRendering=!0,r.virtualTable=void 0===e.virtualTable||!!e.virtualTable,r.estimatedRowHeight=void 0===e.estimatedRowHeight?40:e.estimatedRowHeight,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?Vn.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);let n=[];if(e.sortColumn){let t=e.sortColumn;if(t&&!Array.isArray(t)&&(t=[t]),t)for(let e=0,r=t.length;e<r;e++){let r=t[e];"string"==typeof r&&(r={column:r,descending:!1});let i=o.columns.get(r.column);i&&n.push({column:r.column,comparePath:i.comparePath||i.dataPath,descending:r.descending})}}o.rows=new pn({sortColumn:n}),o.rows.onComparatorRequired=(e,t,o)=>{if(r.onComparatorRequired)return r.onComparatorRequired(e,t,o)},o.filteredRows=null,this._setupHovers()},Vn.prototype._setupHovers=function(){const e=this,t=e.p;let r=function(t){let r=t.fromElement||t.relatedTarget;r===this||Tn.contains(this,r)||this.__previewCell&&(r===this.__previewCell||Tn.contains(this.__previewCell,r))||e._cellMouseOverEvent.call(e,this)},o=function(t){let r=(t=t||event).toElement||t.relatedTarget;r===this||Tn.contains(this,r)||this.__previewCell&&(r===this.__previewCell||Tn.contains(this.__previewCell,r))||e._cellMouseOutEvent.call(e,this)};t._bindCellHoverIn=function(e){e[zn]||e.addEventListener("mouseover",e[zn]=r.bind(e))},t._unbindCellHoverIn=function(e){e[zn]&&(e.removeEventListener("mouseover",e[zn]),e[zn]=null)},t._bindCellHoverOut=function(e){return e[kn]||e.addEventListener("mouseout",e[kn]=o.bind(e.__cell||e)),this},t._unbindCellHoverOut=function(e){return e[kn]&&(e.removeEventListener("mouseout",e[kn]),e[kn]=null),this}},Vn.prototype._setupVirtualTable=function(){const e=this,t=e.p,r=e.o,o=r.tableClassName,i=o+"-row",n=o+"-row-alt",l=o+"-cell";let s=t.visibleColumns,a=s.length;t.notifyRendererOfColumnsConfig=()=>{s=t.visibleColumns,a=s.length;for(let e,t=0;t<a;t++)e=s[t],e._finalWidth=e.actualWidthConsideringScrollbarWidth||e.actualWidth},t.virtualListHelper=new Cn({list:t.table,itemsParent:t.tbody,autoVirtualWrapperWidth:!1,virtual:!0,buffer:r.rowsBufferSize,estimatedItemHeight:r.estimatedRowHeight||40,itemElementCreatorFn:()=>An("div"),onItemRender:(r,o)=>{const d=t.filteredRows||t.rows,u=!!t.filteredRows,h=t.allowCellPreview;r.className=i,o%2==1&&(r.className+=" "+n);let c=d[o],p=u?c.__i:o;r.rowIndex=o,r.physicalRowIndex=p;for(let e=0;e<a;e++){let o=s[e],i=An("div");i.columnName=o.name,i.setAttribute("data-column",o.name),i.className=l,i.style.width=o._finalWidth+"px",o.cellClasses&&(i.className+=" "+o.cellClasses),h&&t._bindCellHoverIn(i),i.appendChild(An("div")).innerHTML=this._getHtmlForCell(c,o),r.appendChild(i)}r.addEventListener("click",r[Ln]=t=>{e.trigger("rowclick",t,o,p,r,c)}),e.trigger("rowcreate",o,p,r,c)},onItemUnrender:t=>{t[Ln]&&t.removeEventListener("click",t[Ln]),e._unbindCellEventsForRow(t),e.trigger("rowdestroy",t)}}),t.virtualListHelper.setCount(t.rows.length),t.notifyRendererOfColumnsConfig()},Vn.prototype.on=function(e,t){let r=this.p.events;return"function"!=typeof t||(Mn.call(r,e)||(r[e]=[]),r[e].push({cb:t,once:!1})),this},Vn.prototype.once=function(e,t){let r=this.p.events;return"function"!=typeof t||(Mn.call(r,e)||(r[e]=[]),r[e].push({cb:t,once:!0})),this},Vn.prototype.off=function(e,t){let r=this.p.events;if(!Mn.call(r,e))return this;let o=r[e];for(let e=0;e<o.length;e++){let r=o[e];t&&r.cb!==t||o.splice(e--,1)}return this},Vn.prototype.trigger=function(e){const t=this.p;if(!t)return;let r=t.events;if(Mn.call(r,e)){let t=r[e];for(let e=0;e<t.length;e++){let r=t[e];r.once&&t.splice(e--,1),r.cb.apply(this,Array.prototype.slice.call(arguments,1))}}return this},Vn.prototype._parseColumnWidth=function(e,t){let r=Math.max(0,parseFloat(e)),o=Dn.AUTO;return r>0&&(e===r+"%"?(o=Dn.RELATIVE,r/=100):r>0&&r<1?o=Dn.RELATIVE:(r<t&&(r=t),o=Dn.ABSOLUTE)),{width:r,mode:o}},Vn.prototype._initColumnFromData=function(e){let 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},Vn.prototype.close=Vn.prototype.remove=Vn.prototype.destroy=function(){var e;let t=this,r=t.p||{},o=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(let e=0;e<r.workerListeners.length;e++){let t=r.workerListeners[e];t.worker.removeEventListener("message",t.listener,!1)}r.workerListeners.length=0}r.rows.length=r.columns.length=0,r._deferredRender&&clearTimeout(r._deferredRender);for(let e in t)Mn.call(t,e)&&(t[e]=null);return t.__removed=!0,o&&o.remove(),this},Vn.prototype._unbindCellEventsForTable=function(){const e=this.p;if(e.headerRow)for(let t=0,r=e.headerRow.childNodes,o=r.length;t<o;t++)for(let o=0,i=r[t].childNodes,n=i.length;o<n;o++)e._unbindCellHoverIn(i[o]);return this},Vn.prototype._unbindCellEventsForRow=function(e){const t=this.p;for(let r=0,o=e.childNodes,i=o.length;r<i;r++)t._unbindCellHoverIn(o[r]);return this},Vn.prototype.render=function(){const e=this.o,o=this.p;if(!this.el.offsetParent)return o._deferredRender||(o._deferredRender=setTimeout((()=>{o._deferredRender=null,!this.__removed&&this.el.offsetParent&&this.render()}))),this;if(!0===o.tableSkeletonNeedsRendering){o.tableSkeletonNeedsRendering=!1,e.width===Vn.Width.AUTO&&this._clearSortArrows();let i=o.table&&o.table.parentNode?o.table.scrollTop:NaN,n=o.table&&o.table.parentNode?t(o.table):NaN;this._renderSkeletonBase()._renderSkeletonBody().tableWidthChanged(!0,!1)._renderSkeletonHeaderCells(),o.virtualListHelper.invalidate(),this._updateLastCellWidthFromScrollbar(!0),this._updateTableWidth(!0);for(let e=0;e<o.rows.sortColumn.length;e++)this._showSortArrow(o.rows.sortColumn[e].column,o.rows.sortColumn[e].descending);e.adjustColumnWidthForSortArrow&&o.rows.sortColumn.length?this.tableWidthChanged(!0):e.virtualTable||this.tableWidthChanged(),isNaN(i)||(o.table.scrollTop=i),isNaN(n)||(r(o.table,n),r(o.header,n)),this.trigger("renderskeleton")}return o.virtualListHelper.render(),this.trigger("render"),this},Vn.prototype.clearAndRender=function(e){var t;let r=this.p;return r.tableSkeletonNeedsRendering=!0,null===(t=r.notifyRendererOfColumnsConfig)||void 0===t||t.call(r),(void 0===e||e)&&this.render(),this},Vn.prototype._calculateTbodyWidth=function(){const e=this.p;let t,r,o,n=this.o.tableClassName,l=n+"-row",s=n+"-cell",a=e.visibleColumns,d=a.length,u=Tn("<div>").addClass(l).css("float","left"),h=0;for(r=0;r<d;r++)o=a[r],t=An("div"),t.className=s,t.style.width=o.actualWidth+"px",o.cellClasses&&(t.className+=" "+o.cellClasses),t.appendChild(An("div")),u.append(t),h+=o.actualWidth;let c=Tn("<div>").addClass(this.el.className).css({"z-index":-1,position:"absolute",left:"0",top:"-9999px",float:"left",width:"1px",overflow:"hidden"}).append(Tn("<div>").addClass(n).append(Tn("<div>").addClass(n+"-body").css("width",h+1e4).append(u)));c.appendTo(document.body);let p=Tn('<div style="border:1.5px solid #000;width:0;height:0;position:absolute;left:0;top:-9999px">').appendTo(document.body),m=parseFloat(p.css("border-width")),f=Math.round(m)!==m;p.remove();let g=i(u[0],!0,!0,!0);return g-=e.scrollbarWidth||0,f&&g++,c.remove(),g},Vn.prototype.setColumns=function(e,t){const r=this.p;e=e||[];let o=new gn;for(let t=0,r=0;t<e.length;t++){let i=e[t],n=this._initColumnFromData(i);void 0!==i.order?(i.order>r&&(r=i.order+1),n.order=i.order):n.order=r++,o.push(n)}return o.normalizeOrder(),r.columns=o,r.visibleColumns=o.getVisibleColumns(),this._ensureVisibleColumns().clearAndRender(t),this},Vn.prototype.addColumn=function(e,t,r){const o=this.p;let i=o.columns;if(e&&!i.get(e.name)){let n=null;void 0!==t&&(n=i.get(t)||i.getByOrder(t));let l=this._initColumnFromData(e);l.order=n?n.order:i.getMaxOrder()+1;for(let e=i.getMaxOrder(),t=l.order;e>=t;e--){let t=i.getByOrder(e);t&&t.order++}i.push(l),i.normalizeOrder(),o.visibleColumns=i.getVisibleColumns(),this._ensureVisibleColumns().clearAndRender(r),this.trigger("addcolumn",l.name)}return this},Vn.prototype.removeColumn=function(e,t){const r=this.p;let o=r.columns,i=o.indexOf(e);return i>-1&&(o.splice(i,1),o.normalizeOrder(),r.visibleColumns=o.getVisibleColumns(),this._ensureVisibleColumns().clearAndRender(t),this.trigger("removecolumn",e)),this},Vn.prototype.setCellFormatter=function(e){return e||((e=e=>"string"==typeof e?cn(e):e)[On]=!0),this.o.cellFormatter=e,this},Vn.prototype.setHeaderCellFormatter=function(e){return this.o.headerCellFormatter=e||function(e){return"string"==typeof e?cn(e):e},this},Vn.prototype.setFilter=function(e){return this.o.filter=e,this},Vn.prototype.filter=function(e){const t=this.p;let r=this.o.filter||xn;"string"==typeof arguments[0]&&"string"==typeof arguments[1]&&(e={column:arguments[0],keyword:arguments[1],caseSensitive:arguments[2]});let o=!!t.filteredRows;return t.filteredRows&&(t.filteredRows=null),t.filterArgs=null==e?null:"object"!=typeof e||Array.isArray(e)?e:Tn.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},Vn.prototype.clearFilter=function(){const e=this.p;return e.filteredRows&&(e.filterArgs=null,e.filteredRows=null,this.clearAndRender(),this.trigger("filterclear",{})),this},Vn.prototype._refilter=function(){const e=this.p;if(e.filteredRows&&e.filterArgs){let t=this.o.filter||xn;e.filteredRows=e.rows.filteredCollection(t,e.filterArgs)}return this},Vn.prototype.setColumnLabel=function(e,t){let r=this.p.columns.get(e);if(r&&(r.label=void 0===t?r.name:t,r.element))for(let e=0;e<r.element[0].firstChild.childNodes.length;e++){let t=r.element[0].firstChild.childNodes[e];if(3===t.nodeType){t.textContent=r.label;break}}return this},Vn.prototype.moveColumn=function(e,t,r=!0){const o=this.o,i=this.p;let n,l,s=i.columns,a=r?i.visibleColumns:s.getColumns();if("string"==typeof e?n=s.get(e):"number"==typeof e&&(n=a[e]),"string"==typeof t?l=s.get(t):"number"==typeof t&&(l=a[t]),n&&l&&e!==t){let e=n.order,t=l.order,r=s.moveColumn(n,l).getVisibleColumns();if(i.visibleColumns.length!==r.length||i.visibleColumns.some(((e,t)=>e!==r[t])))if(i.visibleColumns=r,this._ensureVisibleColumns(),o.virtualTable)this.clearAndRender()._updateLastCellWidthFromScrollbar(!0);else{let r=i.$headerRow.find(">div."+o.tableClassName+"-header-cell"),n=e<t?t+1:t,l=e;r[0].parentNode.insertBefore(r[l],r[n]);let s=i.visibleColumns[e];s=(s.actualWidthConsideringScrollbarWidth||s.actualWidth)+"px";let a=i.visibleColumns[t];a=(a.actualWidthConsideringScrollbarWidth||a.actualWidth)+"px";let d=i.tbody.childNodes;for(let r=0,o=d.length;r<o;r++){let o=d[r];1===o.nodeType&&(o.insertBefore(o.childNodes[l],o.childNodes[n]),o.childNodes[t].firstChild.style.width=a,o.childNodes[e].firstChild.style.width=s)}}this.trigger("movecolumn",n.name,e,t)}return this},Vn.prototype.sort=function(e,t,r){const o=this.o,i=this.p;let n,l=i.columns.get(e),s=i.rows.sortColumn;if(l){if(s.length&&s[s.length-1].column===e&&(t=void 0===t?!s[s.length-1].descending:t),r){for(let e=0;e<s.length;e++)if(s[e].column===l.name){e<s.length-1?s.length=0:s.splice(s.length-1,1);break}(o.sortableColumns>0&&s.length>=o.sortableColumns||s.length>=i.visibleColumns.length)&&(s.length=0)}else s.length=0;t=void 0!==t&&t,s.push({column:l.name,comparePath:l.comparePath||l.dataPath,descending:!!t})}else s.length=0;this._clearSortArrows();for(let e=0;e<s.length;e++)this._showSortArrow(s[e].column,s[e].descending);o.adjustColumnWidthForSortArrow&&!i.tableSkeletonNeedsRendering&&this.tableWidthChanged(!0),i.rows.sortColumn=s,s.length&&(n=i.rows.sort(!!i.filteredRows),i.filteredRows&&i.filteredRows.sort(!!i.filteredRows)),i.virtualListHelper.invalidate().render();let a=[];for(let e=0;e<s.length;e++)a.push({column:s[e].column,descending:s[e].descending});return this.trigger("sort",a,!0,n),this},Vn.prototype.resort=function(){const e=this.p;let t=e.columns,r=e.rows.sortColumn;if(r.length){for(let e=0;e<r.length;e++)t.get(r[e].column)||r.splice(e--,1);let o;e.rows.sortColumn=r,r.length&&(o=e.rows.sort(!!e.filteredRows),e.filteredRows&&e.filteredRows.sort(!!e.filteredRows));let i=[];for(let e=0;e<r.length;e++)i.push({column:r[e].column,descending:r[e].descending});this.trigger("sort",i,!1,o)}return this},Vn.prototype._ensureVisibleColumns=function(){const 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},Vn.prototype.setColumnVisible=function(e,t){const r=this.p;let o=r.columns.get(e);return t=!!t,o&&!!o.visible!==t&&(o.visible=t,r.visibleColumns=r.columns.getVisibleColumns(),this.trigger(t?"showcolumn":"hidecolumn",e),this._ensureVisibleColumns(),this.clearAndRender()),this},Vn.prototype.isColumnVisible=function(e){let t=this.p.columns.get(e);return!!t&&t.visible},Vn.prototype.setMinColumnWidth=function(e){let t=this.o;return e=Math.max(e,0),t.minColumnWidth!==e&&(t.minColumnWidth=e,this.tableWidthChanged(!0)),this},Vn.prototype.getMinColumnWidth=function(){return this.o.minColumnWidth},Vn.prototype.setSortableColumns=function(e){const t=this.p,r=this.o;if(r.sortableColumns!==e&&(r.sortableColumns=e,t.$table)){let e=t.$headerRow.find(">div."+r.tableClassName+"-header-cell");for(let o=0;o<e.length;o++)Tn(e[0])[r.sortableColumns>0&&t.visibleColumns[o].sortable?"addClass":"removeClass"]("sortable")}return this},Vn.prototype.getSortableColumns=function(){return this.o.sortableColumns},Vn.prototype.setMovableColumns=function(e){let t=this.o;return e=void 0===e||!!e,t.movableColumns!==e&&(t.movableColumns=e),this},Vn.prototype.getMovableColumns=function(){return this.o.movableColumns},Vn.prototype.setResizableColumns=function(e){let t=this.o;return e=void 0===e||!!e,t.resizableColumns!==e&&(t.resizableColumns=e),this},Vn.prototype.getResizableColumns=function(){return this.o.resizableColumns},Vn.prototype.setComparatorCallback=function(e){let t=this.o;return t.onComparatorRequired!==e&&(t.onComparatorRequired=e),this},Vn.prototype.setColumnWidth=function(e,t){let r=this.p.columns.get(e),o=this._parseColumnWidth(t,r.ignoreMin?0:this.o.minColumnWidth);if(r){let e=this._serializeColumnWidth(r);r.width=o.width,r.widthMode=o.mode;let t=this._serializeColumnWidth(r);e!==t&&this.tableWidthChanged(!0),this.trigger("columnwidth",r.name,e,t)}return this},Vn.prototype.getColumnWidth=function(e){let t=this.p.columns.get(e);return t?this._serializeColumnWidth(t):null},Vn.prototype.getColumnConfig=function(e){let t=this.p.columns.get(e);return t?{order:t.order,width:this._serializeColumnWidth(t),visible:t.visible,label:t.label}:null},Vn.prototype.getColumnsConfig=function(){const e=this.p;let t={};for(let r=0;r<e.columns.length;r++)t[e.columns[r].name]=this.getColumnConfig(e.columns[r].name);return t},Vn.prototype.getSortedColumns=function(){const e=this.p;let t=[];for(let r=0;r<e.rows.sortColumn.length;r++){let o=e.rows.sortColumn[r];t.push({column:o.column,descending:o.descending})}return t},Vn.prototype.getHtmlForRowCell=function(e,t){const r=this.p;if(e<0||e>r.rows.length-1)return null;let o=r.columns.get(t);if(!o)return null;let i=r.rows[e];return this._getHtmlForCell(i,o)},Vn.prototype.getHtmlForRowDataCell=function(e,t){let r=this.p.columns.get(t);return r?this._getHtmlForCell(e,r):null},Vn.prototype._getHtmlForCell=function(e,t){let r=t.dataPath,o=e[r[0]];for(let e=1;e<r.length&&null!=o;e++)o=o&&o[r[e]];const i=this.o.cellFormatter;let n;if(i[On])n=i(o,t.name,e);else try{n=i(o,t.name,e)}catch(e){n="[ERROR]",console.error("Failed to generate content for cell "+t.name,e)}return null==n&&(n=""),n},Vn.prototype.getRowYPos=function(e){return this.p.virtualListHelper.getItemPosition(e)||null},Vn.prototype.getDataForRow=function(e){const t=this.p;return e<0||e>t.rows.length-1?null:t.rows[e]},Vn.prototype.getRowCount=function(){const e=this.p;return e.rows?e.rows.length:0},Vn.prototype.getIndexForRow=function(e){return this.p.rows.indexOf(e)},Vn.prototype.getFilteredRowCount=function(){const e=this.p;return(e.filteredRows||e.rows).length},Vn.prototype.getIndexForFilteredRow=function(e){const t=this.p;return(t.filteredRows||t.rows).indexOf(e)},Vn.prototype.getDataForFilteredRow=function(e){const t=this.p;return e<0||e>(t.filteredRows||t.rows).length-1?null:(t.filteredRows||t.rows)[e]},Vn.prototype.getHeaderRowElement=function(){return this.p.headerRow},Vn.prototype._horizontalPadding=function(e){return(parseFloat(Tn.css(e,"padding-left"))||0)+(parseFloat(Tn.css(e,"padding-right"))||0)},Vn.prototype._horizontalBorderWidth=function(e){return(parseFloat(Tn.css(e,"border-left"))||0)+(parseFloat(Tn.css(e,"border-right"))||0)},Vn.prototype._calculateWidthAvailableForColumns=function(){const e=this.o,t=this.p;let r,o,n;t.table&&(o=t.table?t.table.scrollTop:0,n=t.table?t.table.scrollLeft:0,e.virtualTable&&(r=t.table.style.display,t.table.style.display="none"));let l=i(this.$el[0]);t.table&&(e.virtualTable&&(t.table.style.display=r),t.table.scrollTop=o,t.table.scrollLeft=n,t.header.scrollLeft=n);let s=e.tableClassName,a=Tn("<div>").addClass(this.el.className).css({"z-index":-1,position:"absolute",left:"0",top:"-9999px"}),d=Tn("<div>").addClass(s+"-header").appendTo(a),u=Tn("<div>").addClass(s+"-header-row").appendTo(d);for(let e=0;e<t.visibleColumns.length;e++)u.append(Tn("<div><div></div></div>").addClass(s+"-header-cell").addClass(t.visibleColumns[e].cellClasses||""));a.appendTo(document.body),l-=this._horizontalBorderWidth(u[0]);let h=u.find(">div."+s+"-header-cell");for(let e=0;e<h.length;e++){let t=Tn(h[e]);"border-box"===t.css("boxSizing")||(l-=(parseFloat(t.css("border-right-width"))||0)+(parseFloat(t.css("border-left-width"))||0)+this._horizontalPadding(t[0]))}return a&&a.remove(),Math.max(0,l)},Vn.prototype.tableWidthChanged=function(){let e=function(e){let t,r=this.o.tableClassName,o=Tn("<div>").addClass(this.$el).append(Tn("<div>").addClass(r+"-header").append(Tn("<div>").addClass(r+"-header-row").append(t=Tn("<div>").addClass(r+"-header-cell").append(Tn("<div>").text(e))))).css({position:"absolute",top:"-9999px",visibility:"hidden"});o.appendTo(document.body);let n=i(t[0]);return o.remove(),n},t=null;return function(r,o){let i=this.o,n=this.p,l=this._calculateWidthAvailableForColumns(),s=l,a=0;if(!n.$table)return this;o=void 0===o||o;let d=0;if(n.tbody||(o=!1),o&&(d=parseFloat(n.tbody.style.minWidth)||0),s!==t||r){var u;t=l;let r=0,h=[],c=0;for(let e=0;e<n.columns.length;e++)n.columns[e].actualWidthConsideringScrollbarWidth=null;for(let t=0;t<n.visibleColumns.length;t++){let o=n.visibleColumns[t];if(o.widthMode===Dn.ABSOLUTE){let e=o.width;e+=o.arrowProposedWidth||0,!o.ignoreMin&&e<i.minColumnWidth&&(e=i.minColumnWidth),s-=e,r+=e,e!==o.actualWidth&&(o.actualWidth=e,h.push(t))}else if(o.widthMode===Dn.AUTO){let n=e.call(this,o.label)+20;n+=o.arrowProposedWidth||0,!o.ignoreMin&&n<i.minColumnWidth&&(n=i.minColumnWidth),s-=n,r+=n,n!==o.actualWidth&&(o.actualWidth=n,i.convertColumnWidthsToRelative||h.push(t))}else o.widthMode===Dn.RELATIVE&&(c+=o.width,a++)}if(i.convertColumnWidthsToRelative)for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];t.widthMode===Dn.AUTO&&(t.widthMode=Dn.RELATIVE,s+=t.actualWidth,t.width=t.actualWidth/r,c+=t.width,a++)}if(a&&(c<1&&i.relativeWidthGrowsToFillWidth||c>1&&i.relativeWidthShrinksToFillWidth))for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];t.widthMode===Dn.RELATIVE&&(t.width/=c)}let p=Math.max(0,s);0===p&&(p=n.table.clientWidth);let m=i.minColumnWidth/p;if(isNaN(m)&&(m=0),m>0){let e,t=0;for(let e=0;e<n.visibleColumns.length;e++){let r=n.visibleColumns[e];r.widthMode===Dn.RELATIVE&&!r.ignoreMin&&r.width<m&&(t+=m-r.width,r.width=m)}for(let r=0;r<n.visibleColumns.length;r++){let o=n.visibleColumns[r];o.widthMode===Dn.RELATIVE&&!o.ignoreMin&&o.width>m&&t>0&&(e=Math.min(t,o.width-m),o.width-=e,t-=e)}}if(i.autoFillTableWidth&&s>0){let e=0,t=s;for(let r=0;r<n.visibleColumns.length;r++){let o=n.visibleColumns[r];o.resizable||o.widthMode!==Dn.ABSOLUTE||(e+=o.width),o.widthMode===Dn.RELATIVE&&(t-=Math.round(p*o.width))}let r=(l-e)/(l-t-e)||NaN;for(let e=0;e<n.visibleColumns.length&&t>0;e++){let t=n.visibleColumns[e];if(t.resizable||t.widthMode!==Dn.ABSOLUTE)if(t.widthMode===Dn.RELATIVE)t.width*=r;else{let o=t.actualWidth*r;t.actualWidth!==o&&(t.actualWidth=o,-1===h.indexOf(e)&&h.push(e))}}}for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];if(t.widthMode===Dn.RELATIVE){let r=Math.round(p*t.width);s-=r,a--,0===a&&1===s&&(r++,s--),-1===s&&(r--,s++),r!==t.actualWidth&&(t.actualWidth=r,h.push(e))}}if(n.visibleColumns.length&&(n.visibleColumns[n.visibleColumns.length-1].actualWidthConsideringScrollbarWidth=n.visibleColumns[n.visibleColumns.length-1].actualWidth-(n.scrollbarWidth||0)),null===(u=n.notifyRendererOfColumnsConfig)||void 0===u||u.call(n),o){let e=this._calculateTbodyWidth();d<e&&this._updateTableWidth(!1);for(let e=0;e<h.length;e++)this._resizeColumnElements(h[e]);d>e&&this._updateTableWidth(!1)}}return this}}(),Vn.prototype.tableHeightChanged=function(){let e=this,t=e.o,r=e.p;if(!r.$table)return e;let o=n(e.$el[0],!0)-(parseFloat(r.$table.css("border-top-width"))||0)-(parseFloat(r.$table.css("border-bottom-width"))||0);return o!==t.height&&(t.height=o,r.tbody&&(r.tbody.style.height=Math.max(t.height-n(r.$headerRow[0],!0,!0,!0),1)+"px"),t.virtualTable&&e.clearAndRender()),e},Vn.prototype.addRows=function(e,t,r,o){let i=this.p;return"boolean"==typeof t&&(o=r,r=t,t=-1),"number"!=typeof t&&(t=-1),(t<0||t>i.rows.length)&&(t=i.rows.length),o=void 0===o||!!o,e&&(i.rows.add(e,t),i.filteredRows||r&&i.rows.sortColumn.length?(r&&i.rows.sortColumn.length?this.resort():this._refilter(),i.tableSkeletonNeedsRendering=!0,o&&this.render()):o&&(i.virtualListHelper.addItemsAt(e.length,t),this.o.virtualTable?this._updateVirtualHeight()._updateLastCellWidthFromScrollbar().render()._updateTableWidth(!1):i.tbody&&this.render()._updateLastCellWidthFromScrollbar()._updateTableWidth(!0)),this.trigger("addrows",e.length,!1)),this},Vn.prototype.removeRows=function(e,t,r){let o=this.p;return"number"!=typeof t||t<=0||e<0||e>o.rows.length-1||(o.rows.splice(e,t),r=void 0===r||!!r,o.filteredRows?(this._refilter(),o.tableSkeletonNeedsRendering=!0,r&&this.render()):r&&(o.virtualListHelper.removeItemsAt(t,e),this.o.virtualTable?this._updateVirtualHeight()._updateLastCellWidthFromScrollbar().render()._updateTableWidth(!1):this.render()._updateLastCellWidthFromScrollbar()._updateTableWidth(!0))),this},Vn.prototype.removeRow=function(e,t){return this.removeRows(e,1,t)},Vn.prototype.refreshRow=function(e){let t=this.p;if(e<0||e>t.rows.length-1)return this;let r=-1;return t.filteredRows&&-1===(r=t.filteredRows.indexOf(t.rows[e]))||(-1===r&&(r=e),t.virtualListHelper.refreshItemAt(r)),this},Vn.prototype.getRowElement=function(e){let t=this.p;if(e<0||e>t.rows.length-1)return null;let r=-1;return t.filteredRows&&-1===(r=t.filteredRows.indexOf(t.rows[e]))?this:(-1===r&&(r=e),t.virtualListHelper.getItemElementAt(r)||null)},Vn.prototype.refreshAllVirtualRows=function(){return this.p.virtualListHelper.invalidate().render(),this},Vn.prototype.setRows=function(e,t){let 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},Vn.prototype.getUrlForElementContent=function(e){let t,r=document.getElementById(e);if(r){let e=r.textContent;if("function"==typeof Blob)t=new Blob([e]);else{let r=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if(!r)return null;let o=new r;o.append(e),t=o.getBlob()}return(window.URL||window.webkitURL).createObjectURL(t)}return null},Vn.prototype.isWorkerSupported=function(){return window.Worker instanceof Function},Vn.prototype.createWebWorker=function(e,t,r){if(this.isWorkerSupported()){let o=this,i=o.p,n=new Worker(e),l=function(e){e.data.append?o.addRows(e.data.rows,r):o.setRows(e.data.rows,r)};return n.addEventListener("message",l,!1),i.workerListeners||(i.workerListeners=[]),i.workerListeners.push({worker:n,listener:l}),(t||void 0===t)&&n.postMessage(null),n}return null},Vn.prototype.unbindWebWorker=function(e){let t=this.p;if(t.workerListeners)for(let 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},Vn.prototype.abortCellPreview=function(){return this.hideCellPreview(),this},Vn.prototype.cancelColumnResize=function(){const e=this.p;return e.$resizer&&(e.$resizer.remove(),e.$resizer=null,Tn(document).off("mousemove.dgtable",e.onMouseMoveResizeAreaBound).off("mouseup.dgtable",e.onEndDragColumnHeaderBound)),this},Vn.prototype._onTableScrolledHorizontally=function(){const e=this.p;e.header.scrollLeft=e.table.scrollLeft},Vn.prototype._getColumnByResizePosition=function(e){let t=this.o,r=this._isTableRtl(),o=Tn(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName),n=o[0];n.__cell&&(n=n.__cell,o=Tn(n));let l=o[0].previousSibling;for(;l&&1!==l.nodeType;)l=l.previousSibling;let s=!l,a=((null!=e.pageX?e.pageX:e.originalEvent.pageX)||e.originalEvent.clientX)-o.offset().left;if(r){if(!s&&i(o[0],!0,!0,!0)-a<=t.resizeAreaWidth/2)return l.columnName;if(a<=t.resizeAreaWidth/2)return n.columnName}else{if(!s&&a<=t.resizeAreaWidth/2)return l.columnName;if(i(o[0],!0,!0,!0)-a<=t.resizeAreaWidth/2)return n.columnName}return null},Vn.prototype._onTouchStartColumnHeader=function(e){const t=this.p;if(t.currentTouchId)return;let r=e.originalEvent.changedTouches[0];t.currentTouchId=r.identifier;let o,i=Tn(e.currentTarget),n={x:r.pageX,y:r.pageY},l=n,s=function(){t.currentTouchId=null,i.off("touchend").off("touchcancel"),clearTimeout(o)},a=function(t){let r=Tn.Event(t),o=Array.prototype.slice.call(arguments,1);for(let t of["target","clientX","clientY","offsetX","offsetY","screenX","screenY","pageX","pageY","which"]){r[t]=e[t];for(let e=0;e<o.length;e++)null!=o[e][t]&&(r[t]=o[e][t])}return r};i.trigger(a("mousedown",e.originalEvent.changedTouches[0],{which:1,target:e.target})),o=setTimeout((()=>{s(),i.one("touchend",(e=>{Bn(e)||e.preventDefault(),i.off("touchend").off("touchcancel")})).one("touchcancel",(e=>{i.off("touchend").off("touchcancel")})),Math.sqrt(Math.pow(Math.abs(l.x-n.x),2)+Math.pow(Math.abs(l.y-n.y),2))<9&&(this.cancelColumnResize(),i.trigger(a("mouseup",e.originalEvent.changedTouches[0],{which:3,target:e.target})))}),500),i.on("touchend",(e=>{let r=hn(e.originalEvent.changedTouches,(e=>e.identifier===t.currentTouchId));r&&(s(),Bn(e)||e.preventDefault(),l={x:r.pageX,y:r.pageY},(Math.sqrt(Math.pow(Math.abs(l.x-n.x),2)+Math.pow(Math.abs(l.y-n.y),2))<9||t.$resizer)&&(i.trigger(a("mouseup",r,{which:1,target:e.target})),i.trigger(a("click",r,{which:1,target:e.target}))))})).on("touchcancel",(()=>{s()})).on("touchmove",(e=>{let r=hn(e.originalEvent.changedTouches,(e=>e.identifier===t.currentTouchId));r&&(l={x:r.pageX,y:r.pageY},t.$resizer&&(e.preventDefault(),i.trigger(a("mousemove",r,{target:e.target}))))}))},Vn.prototype._onMouseDownColumnHeader=function(e){if(1!==e.which)return this;let t=this.o,r=this.p,o=this._getColumnByResizePosition(e);if(o){let l=r.columns.get(o);if(!t.resizableColumns||!l||!l.resizable)return!1;let s=this._isTableRtl();r.$resizer&&Tn(r.$resizer).remove(),r.$resizer=Tn("<div></div>").addClass(t.resizerClassName).css({position:"absolute",display:"block","z-index":-1,visibility:"hidden",width:"2px",background:"#000",opacity:.7}).appendTo(this.$el);let a=l.element,d=r.$resizer.parent(),u=a.offset(),h=d.offset();8===Pn&&(u=a.offset()),h.left+=parseFloat(d.css("border-left-width"))||0,h.top+=parseFloat(d.css("border-top-width"))||0,u.left-=h.left,u.top-=h.top,u.top-=parseFloat(a.css("border-top-width"))||0;let c=i(r.$resizer[0],!0,!0,!0);s?(u.left-=Math.ceil((parseFloat(a.css("border-left-width"))||0)/2),u.left-=Math.ceil(c/2)):(u.left+=i(a[0],!0,!0,!0),u.left+=Math.ceil((parseFloat(a.css("border-right-width"))||0)/2),u.left-=Math.ceil(c/2)),r.$resizer.css({"z-index":"10",visibility:"visible",left:u.left,top:u.top,height:n(this.$el[0])})[0].columnName=a[0].columnName;try{r.$resizer[0].style.zIndex=""}catch(e){}Tn(document).on("mousemove.dgtable",r.onMouseMoveResizeAreaBound),Tn(document).on("mouseup.dgtable",r.onEndDragColumnHeaderBound),e.preventDefault()}},Vn.prototype._onMouseMoveColumnHeader=function(e){let t=this.o,r=this.p;if(t.resizableColumns){let o=this._getColumnByResizePosition(e),i=Tn(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName)[0];o&&r.columns.get(o).resizable?i.style.cursor="e-resize":i.style.cursor=""}},Vn.prototype._onMouseUpColumnHeader=function(e){if(3===e.which){let t=this.o,r=Tn(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName),o=r.offset();o.width=i(r[0],!0,!0,!0),o.height=n(r[0],!0,!0,!0),this.trigger("headercontextmenu",r[0].columnName,e.pageX,e.pageY,o)}return this},Vn.prototype._onMouseLeaveColumnHeader=function(e){let t=this.o;Tn(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName)[0].style.cursor=""},Vn.prototype._onClickColumnHeader=function(e){if(!Bn(e)&&!this._getColumnByResizePosition(e)){let t=this,r=t.o,o=t.p,i=Tn(e.target).closest("div."+r.tableClassName+"-header-cell,div."+r.cellPreviewClassName)[0];if(r.sortableColumns){let e=o.columns.get(i.columnName);e&&e.sortable&&this.sort(i.columnName,void 0,!0).render()}}},Vn.prototype._onStartDragColumnHeader=function(e){let t=this.o,r=this.p;if(t.movableColumns){let o=Tn(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName),i=r.columns.get(o[0].columnName);i&&i.movable?(o[0].style.opacity=.35,r.dragId=161061273*Math.random(),e.originalEvent.dataTransfer.setData("text",JSON.stringify({dragId:r.dragId,column:i.name}))):e.preventDefault()}else e.preventDefault()},Vn.prototype._onMouseMoveResizeArea=function(e){let t=this.p,r=t.columns.get(t.$resizer[0].columnName),o=this._isTableRtl(),n=r.element,l=t.$resizer.parent(),s=n.offset(),a=l.offset();a.left+=parseFloat(l.css("border-left-width"))||0,s.left-=a.left;let d=i(t.$resizer[0],!0,!0,!0),u="border-box"===n.css("box-sizing"),h=e.pageX-a.left,c=s.left;c-=Math.ceil(d/2),o?(c+=i(n[0],!0,!0,!0),c-=r.ignoreMin?0:this.o.minColumnWidth,u||(c-=Math.ceil((parseFloat(n.css("border-left-width"))||0)/2),c-=this._horizontalPadding(n[0])),h>c&&(h=c)):(c+=r.ignoreMin?0:this.o.minColumnWidth,u||(c+=Math.ceil((parseFloat(n.css("border-right-width"))||0)/2),c+=this._horizontalPadding(n[0])),h<c&&(h=c)),t.$resizer.css("left",h+"px")},Vn.prototype._onEndDragColumnHeader=function(e){let t=this.o,r=this.p;if(r.$resizer){Tn(document).off("mousemove.dgtable",r.onMouseMoveResizeAreaBound).off("mouseup.dgtable",r.onEndDragColumnHeaderBound);let o=r.columns.get(r.$resizer[0].columnName),n=this._isTableRtl(),l=o.element,s=r.$resizer.parent(),a=l.offset(),d=s.offset();d.left+=parseFloat(s.css("border-left-width"))||0,a.left-=d.left;let u=i(r.$resizer[0],!0,!0,!0),h="border-box"===l.css("box-sizing"),c=e.pageX-d.left,p=a.left,m=a.left,f=0;p-=Math.ceil(u/2),n?(h||(c+=this._horizontalPadding(l[0]),c+=parseFloat(l.css("border-left-width"))||0,c+=parseFloat(l.css("border-right-width"))||0),p+=i(l[0],!0,!0,!0),m=p-(o.ignoreMin?0:this.o.minColumnWidth),c>m&&(c=m),f=p-c):(h||(c-=this._horizontalPadding(l[0]),c-=parseFloat(l.css("border-left-width"))||0,c-=parseFloat(l.css("border-right-width"))||0),m=p+(o.ignoreMin?0:this.o.minColumnWidth),c<m&&(c=m),f=c-p),r.$resizer.remove(),r.$resizer=null;let g=f;if(o.widthMode===Dn.RELATIVE){let e=this._calculateWidthAvailableForColumns(),i=0,n=0;for(let t=0;t<r.visibleColumns.length;t++){let l=r.visibleColumns[t];l.name!==o.name&&(l.widthMode===Dn.RELATIVE?(i+=l.width,n++):e-=l.actualWidth)}if(e=Math.max(1,e),g=f/e,n>0){let e=g/((1-g)/i);i+=g,(i<1&&t.relativeWidthGrowsToFillWidth||i>1&&t.relativeWidthShrinksToFillWidth)&&(g=e)}g*=100,g+="%"}this.setColumnWidth(o.name,g)}else e.target.style.opacity=null},Vn.prototype._onDragEnterColumnHeader=function(e){let t=this.o,r=this.p;if(t.movableColumns){let o=e.originalEvent.dataTransfer.getData("text");o=o?JSON.parse(o):null;let i=Tn(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName);if(!o||r.dragId===o.dragId&&i.columnName!==o.column){let e=r.columns.get(i[0].columnName);e&&(e.movable||e!==r.visibleColumns[0])&&Tn(i).addClass("drag-over")}}},Vn.prototype._onDragOverColumnHeader=function(e){e.preventDefault()},Vn.prototype._onDragLeaveColumnHeader=function(e){let t=this.o,r=Tn(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName);Tn(r[0].firstChild).has(e.originalEvent.relatedTarget).length||r.removeClass("drag-over")},Vn.prototype._onDropColumnHeader=function(e){e.preventDefault();let t=this.o,r=this.p,o=JSON.parse(e.originalEvent.dataTransfer.getData("text")),i=Tn(e.target).closest("div."+t.tableClassName+"-header-cell,div."+t.cellPreviewClassName);if(t.movableColumns&&o.dragId===r.dragId){let e=o.column,t=i[0].columnName,n=r.columns.get(e),l=r.columns.get(t);n&&l&&n.movable&&(l.movable||l!==r.visibleColumns[0])&&this.moveColumn(e,t)}Tn(i).removeClass("drag-over")},Vn.prototype._clearSortArrows=function(){let e=this.p;if(e.$table){let t=this.o.tableClassName,r=e.$headerRow.find(">div."+t+"-header-cell.sorted"),o=r.find(">div>.sort-arrow");o.each(((t,r)=>{let o=e.columns.get(r.parentNode.parentNode.columnName);o&&(o.arrowProposedWidth=0)})),o.remove(),r.removeClass("sorted").removeClass("desc")}return this},Vn.prototype._showSortArrow=function(e,t){let r=this.p.columns.get(e);if(!r)return!1;let o=An("span");return o.className="sort-arrow",r.element&&(r.element.addClass(t?"sorted desc":"sorted"),r.element[0].firstChild.insertBefore(o,r.element[0].firstChild.firstChild)),r.widthMode!==Dn.RELATIVE&&this.o.adjustColumnWidthForSortArrow&&(r.arrowProposedWidth=o.scrollWidth+(parseFloat(Tn(o).css("margin-right"))||0)+(parseFloat(Tn(o).css("margin-left"))||0)),this},Vn.prototype._resizeColumnElements=function(e){let t=this.p,r=t.$headerRow.find("div."+this.o.tableClassName+"-header-cell"),o=t.columns.get(r[e].columnName);if(o){r[e].style.width=(o.actualWidthConsideringScrollbarWidth||o.actualWidth)+"px";let i=(o.actualWidthConsideringScrollbarWidth||o.actualWidth)+"px",n=t.tbody.childNodes;for(let t=0,r=n.length;t<r;t++){let r=n[t];1===r.nodeType&&(r.childNodes[e].style.width=i)}}return this},Vn.prototype._destroyHeaderCells=function(){let 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},Vn.prototype._renderSkeletonBase=function(){var e;let t=this,r=t.p,o=t.o;null===(e=r.virtualListHelper)||void 0===e||e.destroy(),r.virtualListHelper=null,r.$table&&o.virtualTable&&(r.$table.remove(),r.$table=r.table=r.$tbody=r.tbody=null),t._destroyHeaderCells(),r.currentTouchId=null,r.$header&&r.$header.remove();let i=o.tableClassName,l=An("div"),s=Tn(l),a=An("div"),d=Tn(a);return l.className=i+"-header",a.className=i+"-header-row",r.$header=s,r.header=l,r.$headerRow=d,r.headerRow=a,d.appendTo(r.$header),s.prependTo(this.$el),$n(t.$el),o.width===Vn.Width.SCROLL?this.el.style.overflow="hidden":this.el.style.overflow="",!o.height&&o.virtualTable&&(o.height=n(this.$el[0],!0)),this},Vn.prototype._renderSkeletonHeaderCells=function(){let e,t=this,r=t.p,o=t.o,i=o.allowCellPreview,n=o.allowHeaderCellPreview,l=o.tableClassName+"-header-cell",s=r.headerRow;Fn&&(e=function(e){return e.preventDefault(),this.dragDrop(),!1});let a=function(e){e.preventDefault()};for(let d=0;d<r.visibleColumns.length;d++){let u=r.visibleColumns[d];if(u.visible){let h=An("div"),c=Tn(h);h.draggable=!0,h.className=l,h.style.width=u.actualWidth+"px",o.sortableColumns&&u.sortable&&(h.className+=" sortable"),h.columnName=u.name,h.setAttribute("data-column",u.name);let p=An("div");p.innerHTML=o.headerCellFormatter(u.label,u.name),h.appendChild(p),i&&n&&r._bindCellHoverIn(h),s.appendChild(h),r.visibleColumns[d].element=c,c.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",a),Tn(p).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)),Fn&&c.on("selectstart.dgtable",e.bind(h)),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"})}}return this.trigger("headerrowcreate",s),this},Vn.prototype._renderSkeletonBody=function(){let e=this,t=e.p,r=e.o,o=r.tableClassName;if(!t.$table){let i=document.createDocumentFragment(),l=An("div"),s=Tn(l);l.className=o,r.virtualTable&&(l.className+=" virtual");let a=r.height-n(t.$headerRow[0],!0,!0,!0);"border-box"!==s.css("box-sizing")&&(a-=parseFloat(s.css("border-top-width"))||0,a-=parseFloat(s.css("border-bottom-width"))||0,a-=parseFloat(s.css("padding-top"))||0,a-=parseFloat(s.css("padding-bottom"))||0),t.visibleHeight=a,l.style.height=r.height?a+"px":"auto",l.style.display="block",l.style.overflowY="auto",l.style.overflowX=r.width===Vn.Width.SCROLL?"auto":"hidden",i.appendChild(l);let d=An("div"),u=Tn(d);d.className=r.tableClassName+"-body",d.style.minHeight="1px",t.table=l,t.tbody=d,t.$table=s,t.$tbody=u,$n(u),$n(s),l.appendChild(d),e.el.appendChild(i),this._setupVirtualTable()}return this},Vn.prototype._renderSkeleton=function(){return this},Vn.prototype._updateVirtualHeight=function(){const 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},Vn.prototype._updateLastCellWidthFromScrollbar=function(e){const t=this.p;let r=t.table.offsetWidth-t.table.clientWidth;if(r!==t.scrollbarWidth||e){var o;t.scrollbarWidth=r;for(let e=0;e<t.columns.length;e++)t.columns[e].actualWidthConsideringScrollbarWidth=null;if(t.scrollbarWidth>0&&t.visibleColumns.length>0){let e=t.visibleColumns.length-1;t.visibleColumns[e].actualWidthConsideringScrollbarWidth=t.visibleColumns[e].actualWidth-t.scrollbarWidth;let r=t.visibleColumns[e].actualWidthConsideringScrollbarWidth+"px",o=t.tbody.childNodes;for(let t=0,i=o.length;t<i;t++){let i=o[t];1===i.nodeType&&(i.childNodes[e].style.width=r)}t.headerRow.childNodes[e].style.width=r}null===(o=t.notifyRendererOfColumnsConfig)||void 0===o||o.call(t)}return this},Vn.prototype._updateTableWidth=function(e){const t=this.o,r=this.p;let o=this._calculateTbodyWidth();if(r.tbody.style.minWidth=o+"px",r.headerRow.style.minWidth=o+(r.scrollbarWidth||0)+"px",r.$table.off("scroll",r.onTableScrolledHorizontallyBound),t.width===Vn.Width.AUTO)l(r.$table[0],i(r.tbody,!0,!0,!0)),l(this.$el[0],i(r.$table[0],!0,!0,!0));else if(t.width===Vn.Width.SCROLL){if(e){let e=r.table?r.table.scrollTop:0,t=r.table?r.table.scrollLeft:0;!function(e){let t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}(this.el),r.table.scrollTop=e,r.table.scrollLeft=t,r.header.scrollLeft=t}r.$table.on("scroll",r.onTableScrolledHorizontallyBound)}return this},Vn.prototype._isTableRtl=function(){return"rtl"===this.p.$table.css("direction")},Vn.prototype._serializeColumnWidth=function(e){return e.widthMode===Dn.AUTO?"auto":e.widthMode===Dn.RELATIVE?100*e.width+"%":e.width},Vn.prototype._cellMouseOverEvent=function(e){const t=this.o,r=this.p;let o=e.firstChild;if(o.scrollWidth-o.clientWidth>1||o.scrollHeight-o.clientHeight>1){this.hideCellPreview(),r.abortCellPreview=!1;let l=Tn(e),s=Tn(o);const a=e.parentNode;let d=An("div"),u=Tn(d);d.innerHTML=e.innerHTML,d.className=t.cellPreviewClassName;let h=l.hasClass(t.tableClassName+"-header-cell");h&&(d.className+=" header",l.hasClass("sortable")&&(d.className+=" sortable"),d.draggable=!0,Tn(d).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()})),Tn(d.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)),Fn&&Tn(d).on("selectstart",function(e){return e.preventDefault(),this.dragDrop(),!1}.bind(d)));let c=parseFloat(l.css("padding-left"))||0,p=parseFloat(l.css("padding-right"))||0,m=parseFloat(l.css("padding-top"))||0,f=parseFloat(l.css("padding-bottom"))||0,g=o.scrollWidth+(e.clientWidth-o.offsetWidth),b="border-box"===l.css("box-sizing");if(b?u.css("box-sizing","border-box"):(g-=c+p,u.css("margin-top",parseFloat(Tn(e).css("border-top-width"))||0)),!r.transparentBgColor1){let e=document.createElement("div");e.style.backgroundColor="transparent",r.transparentBgColor1=Tn(e).css("background-color"),e.style.backgroundColor="rgba(0,0,0,0)",r.transparentBgColor2=Tn(e).css("background-color")}let v={"box-sizing":b?"border-box":"content-box",width:g,"min-height":n(l[0]),"padding-left":c,"padding-right":p,"padding-top":m,"padding-bottom":f,overflow:"hidden",position:"absolute","z-index":"-1",left:"0",top:"0",cursor:l.css("cursor")};if(v){let t=Tn(e).css("background-color");t!==r.transparentBgColor1&&t!==r.transparentBgColor2||(t=Tn(a).css("background-color")),t!==r.transparentBgColor1&&t!==r.transparentBgColor2||(t="#fff"),v["background-color"]=t}u.css(v),this.el.appendChild(d),Tn(d.firstChild).css({direction:s.css("direction"),"white-space":s.css("white-space")}),h&&u.css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","-o-user-select":"none","user-select":"none"}),d.rowIndex=a.rowIndex;let C=d.physicalRowIndex=a.physicalRowIndex;d.columnName=r.visibleColumns[Nn.call(a.childNodes,e)].name;try{let t=bn.saveSelection(e);t&&bn.restoreSelection(d,t)}catch(e){}if(this.trigger("cellpreview",d.firstChild,null==C?null:C,d.columnName,null==C?null:r.rows[C],e),r.abortCellPreview)return void u.remove();null!=C&&d.addEventListener("click",(e=>{this.trigger("rowclick",e,a.rowIndex,C,a,r.rows[C])}));let y=this.$el,w=y[0]===window?Tn(document):y,_=l.offset(),W=y.offset(),I="right"===l.css("float"),E=I?"right":"left";if(I){let e=Tn(window).width();_.right=e-(_.left+i(l[0],!0,!0,!0)),W.right=e-(W.left+i(y[0],!0,!0,!0))}_.left-=parseFloat(y.css("border-left-width"))||0,_.right-=parseFloat(y.css("border-right-width"))||0,_.top-=parseFloat(y.css("border-top-width"))||0,_[E]+=parseFloat(Tn(e).css("border-"+E+"-width"))||0,_.top+=parseFloat(Tn(e).css("border-top-width"))||parseFloat(Tn(e).css("border-bottom-width"))||0,_.left-=W.left,_.right-=W.right,_.top-=W.top;let R=0,S=y-i(u[0],!0,!0,!0);_[E]=_[E]<R?R:_[E]>S?S:_[E];let x=n(l[0],!0,!0,!0),N=w.scrollTop()+n(y[0],!0)-x;_.top>N&&(_.top=Math.max(0,N));let T={top:_.top,"z-index":9999};T[E]=_[E],u.css(T),d.__cell=e,r.$cellPreviewCell=u,e.__previewCell=d,r._bindCellHoverOut(e),r._bindCellHoverOut(d),u.on("wheel",(()=>{this.hideCellPreview()}))}},Vn.prototype._cellMouseOutEvent=function(e){this.hideCellPreview()},Vn.prototype.hideCellPreview=function(){const e=this.p;if(e.$cellPreviewCell){let t,r=e.$cellPreviewCell[0],o=r.__cell;try{t=bn.saveSelection(r)}catch(e){}e.$cellPreviewCell.remove(),e._unbindCellHoverOut(o),e._unbindCellHoverOut(r);try{t&&bn.restoreSelection(o,t)}catch(e){}this.trigger("cellpreviewdestroy",r.firstChild,r.physicalRowIndex,r.columnName,o),o.__previewCell=null,r.__cell=null,e.$cellPreviewCell=null,e.abortCellPreview=!1}else e.abortCellPreview=!0;return this};const Dn={AUTO:0,ABSOLUTE:1,RELATIVE:2};Vn.Width={NONE:"none",AUTO:"auto",SCROLL:"scroll"},Tn.controls||(Tn.controls={}),Tn.controls.dgtable=Vn;export{Vn as default};
6
6
 
7
7
  //# sourceMappingURL=jquery.dgtable.es6.min.js.map