@danielgindi/dgtable.js 2.0.8 → 2.0.9
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.
- package/dist/lib.cjs.js +1 -1
- package/dist/lib.cjs.min.js +1 -1
- package/dist/lib.es6.js +2 -2
- package/dist/lib.es6.min.js +1 -1
- package/dist/lib.umd.js +1 -1
- package/dist/lib.umd.min.js +1 -1
- package/package.json +10 -1
- package/src/index.ts +4 -4
package/dist/lib.cjs.js
CHANGED
package/dist/lib.cjs.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/dgtable.js 2.0.
|
|
2
|
+
* @danielgindi/dgtable.js 2.0.9
|
|
3
3
|
* git://github.com/danielgindi/dgtable.js.git
|
|
4
4
|
*/
|
|
5
5
|
"use strict";var e,t,r=require("@danielgindi/dom-utils/lib/ScrollHelper.js"),n=require("@danielgindi/dom-utils/lib/Css.js"),i=require("@danielgindi/dom-utils/lib/DomCompat.js"),o=require("@danielgindi/dom-utils/lib/DomEventsSink.js"),l=require("@danielgindi/virtual-list-helper"),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a={};function u(){if(t)return e;t=1;var r=function(e){return e&&e.Math===Math&&e};return e=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof s&&s)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}var c,d,h,f,m,v,p,g,b={};function w(){return d?c:(d=1,c=function(e){try{return!!e()}catch(e){return!0}})}function y(){if(f)return h;f=1;var e=w();return h=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function C(){if(v)return m;v=1;var e=w();return m=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function S(){if(g)return p;g=1;var e=C(),t=Function.prototype.call;return p=e?t.bind(t):function(){return t.apply(t,arguments)},p}var R,x,W,L,P,_,k,N,E,O,T,A,F,z,I,M,H,j,B,U,q,D,V,$,G,X,Y,J,K,Q,Z,ee,te,re,ne,ie,oe,le,se,ae,ue,ce={};function de(){if(R)return ce;R=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return ce.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,ce}function he(){return W?x:(W=1,x=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function fe(){if(P)return L;P=1;var e=C(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return L=e?n:function(e){return function(){return r.apply(e,arguments)}},L}function me(){if(k)return _;k=1;var e=fe(),t=e({}.toString),r=e("".slice);return _=function(e){return r(t(e),8,-1)}}function ve(){if(E)return N;E=1;var e=fe(),t=w(),r=me(),n=Object,i=e("".split);return N=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?i(e,""):n(e)}:n}function pe(){return T?O:(T=1,O=function(e){return null==e})}function ge(){if(F)return A;F=1;var e=pe(),t=TypeError;return A=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function be(){if(I)return z;I=1;var e=ve(),t=ge();return z=function(r){return e(t(r))}}function we(){if(H)return M;H=1;var e="object"==typeof document&&document.all;return M=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function ye(){if(B)return j;B=1;var e=we();return j=function(t){return"object"==typeof t?null!==t:e(t)}}function Ce(){if(q)return U;q=1;var e=u(),t=we();return U=function(r,n){return arguments.length<2?(i=e[r],t(i)?i:void 0):e[r]&&e[r][n];var i},U}function Se(){if(V)return D;V=1;var e=fe();return D=e({}.isPrototypeOf)}function Re(){if(G)return $;G=1;var e=u().navigator,t=e&&e.userAgent;return $=t?String(t):""}function xe(){if(Y)return X;Y=1;var e,t,r=u(),n=Re(),i=r.process,o=r.Deno,l=i&&i.versions||o&&o.version,s=l&&l.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=+e[1]),X=t}function We(){if(K)return J;K=1;var e=xe(),t=w(),r=u().String;return J=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function Le(){if(Z)return Q;Z=1;var e=We();return Q=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Pe(){if(te)return ee;te=1;var e=Ce(),t=we(),r=Se(),n=Le(),i=Object;return ee=n?function(e){return"symbol"==typeof e}:function(n){var o=e("Symbol");return t(o)&&r(o.prototype,i(n))}}function _e(){if(ne)return re;ne=1;var e=String;return re=function(t){try{return e(t)}catch(e){return"Object"}}}function ke(){if(oe)return ie;oe=1;var e=we(),t=_e(),r=TypeError;return ie=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function Ne(){if(se)return le;se=1;var e=ke(),t=pe();return le=function(r,n){var i=r[n];return t(i)?void 0:e(i)}}function Ee(){if(ue)return ae;ue=1;var e=S(),t=we(),r=ye(),n=TypeError;return ae=function(i,o){var l,s;if("string"===o&&t(l=i.toString)&&!r(s=e(l,i)))return s;if(t(l=i.valueOf)&&!r(s=e(l,i)))return s;if("string"!==o&&t(l=i.toString)&&!r(s=e(l,i)))return s;throw new n("Can't convert object to primitive value")}}var Oe,Te,Ae,Fe,ze,Ie,Me,He,je,Be,Ue,qe,De,Ve,$e,Ge,Xe,Ye,Je,Ke,Qe,Ze,et,tt,rt={exports:{}};function nt(){return Te?Oe:(Te=1,Oe=!1)}function it(){if(Fe)return Ae;Fe=1;var e=u(),t=Object.defineProperty;return Ae=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function ot(){if(ze)return rt.exports;ze=1;var e=nt(),t=u(),r=it(),n="__core-js_shared__",i=rt.exports=t[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.48.0",mode:e?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"}),rt.exports}function lt(){if(Me)return Ie;Me=1;var e=ot();return Ie=function(t,r){return e[t]||(e[t]=r||{})}}function st(){if(je)return He;je=1;var e=ge(),t=Object;return He=function(r){return t(e(r))}}function at(){if(Ue)return Be;Ue=1;var e=fe(),t=st(),r=e({}.hasOwnProperty);return Be=Object.hasOwn||function(e,n){return r(t(e),n)}}function ut(){if(De)return qe;De=1;var e=fe(),t=0,r=Math.random(),n=e(1.1.toString);return qe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function ct(){if($e)return Ve;$e=1;var e=u(),t=lt(),r=at(),n=ut(),i=We(),o=Le(),l=e.Symbol,s=t("wks"),a=o?l.for||l:l&&l.withoutSetter||n;return Ve=function(e){return r(s,e)||(s[e]=i&&r(l,e)?l[e]:a("Symbol."+e)),s[e]}}function dt(){if(Xe)return Ge;Xe=1;var e=S(),t=ye(),r=Pe(),n=Ne(),i=Ee(),o=ct(),l=TypeError,s=o("toPrimitive");return Ge=function(o,a){if(!t(o)||r(o))return o;var u,c=n(o,s);if(c){if(void 0===a&&(a="default"),u=e(c,o,a),!t(u)||r(u))return u;throw new l("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(o,a)}}function ht(){if(Je)return Ye;Je=1;var e=dt(),t=Pe();return Ye=function(r){var n=e(r,"string");return t(n)?n:n+""}}function ft(){if(Qe)return Ke;Qe=1;var e=u(),t=ye(),r=e.document,n=t(r)&&t(r.createElement);return Ke=function(e){return n?r.createElement(e):{}}}function mt(){if(et)return Ze;et=1;var e=y(),t=w(),r=ft();return Ze=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function vt(){if(tt)return b;tt=1;var e=y(),t=S(),r=de(),n=he(),i=be(),o=ht(),l=at(),s=mt(),a=Object.getOwnPropertyDescriptor;return b.f=e?a:function(e,u){if(e=i(e),u=o(u),s)try{return a(e,u)}catch(e){}if(l(e,u))return n(!t(r.f,e,u),e[u])},b}var pt,gt,bt,wt,yt,Ct,St,Rt={};function xt(){if(gt)return pt;gt=1;var e=y(),t=w();return pt=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Wt(){if(wt)return bt;wt=1;var e=ye(),t=String,r=TypeError;return bt=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function Lt(){if(yt)return Rt;yt=1;var e=y(),t=mt(),r=xt(),n=Wt(),i=ht(),o=TypeError,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a="enumerable",u="configurable",c="writable";return Rt.f=e?r?function(e,t,r){if(n(e),t=i(t),n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&c in r&&!r[c]){var o=s(e,t);o&&o[c]&&(e[t]=r.value,r={configurable:u in r?r[u]:o[u],enumerable:a in r?r[a]:o[a],writable:!1})}return l(e,t,r)}:l:function(e,r,s){if(n(e),r=i(r),n(s),t)try{return l(e,r,s)}catch(e){}if("get"in s||"set"in s)throw new o("Accessors not supported");return"value"in s&&(e[r]=s.value),e},Rt}function Pt(){if(St)return Ct;St=1;var e=y(),t=Lt(),r=he();return Ct=e?function(e,n,i){return t.f(e,n,r(1,i))}:function(e,t,r){return e[t]=r,e}}var _t,kt,Nt,Et,Ot,Tt,At,Ft,zt,It,Mt,Ht,jt,Bt,Ut,qt={exports:{}};function Dt(){if(kt)return _t;kt=1;var e=y(),t=at(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,i=t(r,"name"),o=i&&"something"===function(){}.name,l=i&&(!e||e&&n(r,"name").configurable);return _t={EXISTS:i,PROPER:o,CONFIGURABLE:l}}function Vt(){if(Et)return Nt;Et=1;var e=fe(),t=we(),r=ot(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),Nt=r.inspectSource}function $t(){if(Ft)return At;Ft=1;var e=lt(),t=ut(),r=e("keys");return At=function(e){return r[e]||(r[e]=t(e))}}function Gt(){return It?zt:(It=1,zt={})}function Xt(){if(Ht)return Mt;Ht=1;var e,t,r,n=function(){if(Tt)return Ot;Tt=1;var e=u(),t=we(),r=e.WeakMap;return Ot=t(r)&&/native code/.test(String(r))}(),i=u(),o=ye(),l=Pt(),s=at(),a=ot(),c=$t(),d=Gt(),h="Object already initialized",f=i.TypeError,m=i.WeakMap;if(n||a.state){var v=a.state||(a.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,e=function(e,t){if(v.has(e))throw new f(h);return t.facade=e,v.set(e,t),t},t=function(e){return v.get(e)||{}},r=function(e){return v.has(e)}}else{var p=c("state");d[p]=!0,e=function(e,t){if(s(e,p))throw new f(h);return t.facade=e,l(e,p,t),t},t=function(e){return s(e,p)?e[p]:{}},r=function(e){return s(e,p)}}return Mt={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!o(r)||(n=t(r)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}}function Yt(){if(jt)return qt.exports;jt=1;var e=fe(),t=w(),r=we(),n=at(),i=y(),o=Dt().CONFIGURABLE,l=Vt(),s=Xt(),a=s.enforce,u=s.get,c=String,d=Object.defineProperty,h=e("".slice),f=e("".replace),m=e([].join),v=i&&!t(function(){return 8!==d(function(){},"length",{value:8}).length}),p=String(String).split("String"),g=qt.exports=function(e,t,r){"Symbol("===h(c(t),0,7)&&(t="["+f(c(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!n(e,"name")||o&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&n(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var l=a(e);return n(l,"source")||(l.source=m(p,"string"==typeof t?t:"")),e};return Function.prototype.toString=g(function(){return r(this)&&u(this).source||l(this)},"toString"),qt.exports}function Jt(){if(Ut)return Bt;Ut=1;var e=we(),t=Lt(),r=Yt(),n=it();return Bt=function(i,o,l,s){s||(s={});var a=s.enumerable,u=void 0!==s.name?s.name:o;if(e(l)&&r(l,u,s),s.global)a?i[o]=l:n(o,l);else{try{s.unsafe?i[o]&&(a=!0):delete i[o]}catch(e){}a?i[o]=l:t.f(i,o,{value:l,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return i}}var Kt,Qt,Zt,er,tr,rr,nr,ir,or,lr,sr,ar,ur,cr,dr,hr,fr,mr={};function vr(){if(er)return Zt;er=1;var e=function(){if(Qt)return Kt;Qt=1;var e=Math.ceil,t=Math.floor;return Kt=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)}}();return Zt=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function pr(){if(rr)return tr;rr=1;var e=vr(),t=Math.max,r=Math.min;return tr=function(n,i){var o=e(n);return o<0?t(o+i,0):r(o,i)}}function gr(){if(ir)return nr;ir=1;var e=vr(),t=Math.min;return nr=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function br(){if(lr)return or;lr=1;var e=gr();return or=function(t){return e(t.length)}}function wr(){if(cr)return ur;cr=1;var e=fe(),t=at(),r=be(),n=function(){if(ar)return sr;ar=1;var e=be(),t=pr(),r=br(),n=function(n){return function(i,o,l){var s=e(i),a=r(s);if(0===a)return!n&&-1;var u,c=t(l,a);if(n&&o!=o){for(;a>c;)if((u=s[c++])!=u)return!0}else for(;a>c;c++)if((n||c in s)&&s[c]===o)return n||c||0;return!n&&-1}};return sr={includes:n(!0),indexOf:n(!1)}}().indexOf,i=Gt(),o=e([].push);return ur=function(e,l){var s,a=r(e),u=0,c=[];for(s in a)!t(i,s)&&t(a,s)&&o(c,s);for(;l.length>u;)t(a,s=l[u++])&&(~n(c,s)||o(c,s));return c}}function yr(){return hr?dr:(hr=1,dr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Cr,Sr,Rr,xr,Wr,Lr,Pr,_r,kr,Nr,Er,Or,Tr,Ar,Fr,zr,Ir,Mr,Hr,jr,Br,Ur,qr,Dr,Vr,$r,Gr,Xr,Yr,Jr,Kr={};function Qr(){return Cr||(Cr=1,Kr.f=Object.getOwnPropertySymbols),Kr}function Zr(){if(Rr)return Sr;Rr=1;var e=Ce(),t=fe(),r=function(){if(fr)return mr;fr=1;var e=wr(),t=yr().concat("length","prototype");return mr.f=Object.getOwnPropertyNames||function(r){return e(r,t)},mr}(),n=Qr(),i=Wt(),o=t([].concat);return Sr=e("Reflect","ownKeys")||function(e){var t=r.f(i(e)),l=n.f;return l?o(t,l(e)):t}}function en(){if(Wr)return xr;Wr=1;var e=at(),t=Zr(),r=vt(),n=Lt();return xr=function(i,o,l){for(var s=t(o),a=n.f,u=r.f,c=0;c<s.length;c++){var d=s[c];e(i,d)||l&&e(l,d)||a(i,d,u(o,d))}}}function tn(){if(kr)return _r;kr=1;var e=u(),t=vt().f,r=Pt(),n=Jt(),i=it(),o=en(),l=function(){if(Pr)return Lr;Pr=1;var e=w(),t=we(),r=/#|\.prototype\./,n=function(r,n){var a=o[i(r)];return a===s||a!==l&&(t(n)?e(n):!!n)},i=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},o=n.data={},l=n.NATIVE="N",s=n.POLYFILL="P";return Lr=n}();return _r=function(s,a){var u,c,d,h,f,m=s.target,v=s.global,p=s.stat;if(u=v?e:p?e[m]||i(m,{}):e[m]&&e[m].prototype)for(c in a){if(h=a[c],d=s.dontCallGetSet?(f=t(u,c))&&f.value:u[c],!l(v?c:m+(p?".":"#")+c,s.forced)&&void 0!==d){if(typeof h==typeof d)continue;o(h,d)}(s.sham||d&&d.sham)&&r(h,"sham",!0),n(u,c,h,s)}}}function rn(){if(Er)return Nr;Er=1;var e=_e(),t=TypeError;return Nr=function(r,n){if(!delete r[n])throw new t("Cannot delete property "+e(n)+" of "+e(r))}}function nn(){if(Fr)return Ar;Fr=1;var e=function(){if(Tr)return Or;Tr=1;var e={};return e[ct()("toStringTag")]="z",Or="[object z]"===String(e)}(),t=we(),r=me(),n=ct()("toStringTag"),i=Object,o="Arguments"===r(function(){return arguments}());return Ar=e?r:function(e){var l,s,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(l=i(e),n))?s:o?r(l):"Object"===(a=r(l))&&t(l.callee)?"Arguments":a}}function on(){if(Ir)return zr;Ir=1;var e=nn(),t=String;return zr=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function ln(){if(Hr)return Mr;Hr=1;var e=fe();return Mr=e([].slice)}function sn(){if(Br)return jr;Br=1;var e=ln(),t=Math.floor,r=function(n,i){var o=n.length;if(o<8)for(var l,s,a=1;a<o;){for(s=a,l=n[a];s&&i(n[s-1],l)>0;)n[s]=n[--s];s!==a++&&(n[s]=l)}else for(var u=t(o/2),c=r(e(n,0,u),i),d=r(e(n,u),i),h=c.length,f=d.length,m=0,v=0;m<h||v<f;)n[m+v]=m<h&&v<f?i(c[m],d[v])<=0?c[m++]:d[v++]:m<h?c[m++]:d[v++];return n};return jr=r}function an(){if(qr)return Ur;qr=1;var e=w();return Ur=function(t,r){var n=[][t];return!!n&&e(function(){n.call(null,r||function(){return 1},1)})}}!function(){if(Jr)return a;Jr=1;var e=tn(),t=fe(),r=ke(),n=st(),i=br(),o=rn(),l=on(),s=w(),u=sn(),c=an(),d=function(){if(Vr)return Dr;Vr=1;var e=Re().match(/firefox\/(\d+)/i);return Dr=!!e&&+e[1]}(),h=function(){if(Gr)return $r;Gr=1;var e=Re();return $r=/MSIE|Trident/.test(e)}(),f=xe(),m=function(){if(Yr)return Xr;Yr=1;var e=Re().match(/AppleWebKit\/(\d+)\./);return Xr=!!e&&+e[1]}(),v=[],p=t(v.sort),g=t(v.push),b=s(function(){v.sort(void 0)}),y=s(function(){v.sort(null)}),C=c("sort"),S=!s(function(){if(f)return f<70;if(!(d&&d>3)){if(h)return!0;if(m)return m<603;var e,t,r,n,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(n=0;n<47;n++)v.push({k:t+n,v:r})}for(v.sort(function(e,t){return t.v-e.v}),n=0;n<v.length;n++)t=v[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});e({target:"Array",proto:!0,forced:b||!y||!C||!S},{sort:function(e){void 0!==e&&r(e);var t=n(this);if(S)return void 0===e?p(t):p(t,e);var s,a,c=[],d=i(t);for(a=0;a<d;a++)a in t&&g(c,t[a]);for(u(c,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:l(t)>l(r)?1:-1}}(e)),s=i(c),a=0;a<s;)t[a]=c[a++];for(;a<d;)o(t,a++);return t}})}();var un,cn,dn,hn,fn,mn,vn,pn,gn,bn,wn,yn,Cn,Sn,Rn,xn,Wn,Ln,Pn,_n,kn,Nn,En,On,Tn,An,Fn,zn,In,Mn,Hn,jn,Bn,Un,qn,Dn,Vn,$n,Gn,Xn,Yn={},Jn={};function Kn(){if(mn)return fn;mn=1;var e=wr(),t=yr();return fn=Object.keys||function(r){return e(r,t)}}function Qn(){if(gn)return pn;gn=1;var e=Ce();return pn=e("document","documentElement")}function Zn(){if(wn)return bn;wn=1;var e,t=Wt(),r=function(){if(vn)return Jn;vn=1;var e=y(),t=xt(),r=Lt(),n=Wt(),i=be(),o=Kn();return Jn.f=e&&!t?Object.defineProperties:function(e,t){n(e);for(var l,s=i(t),a=o(t),u=a.length,c=0;u>c;)r.f(e,l=a[c++],s[l]);return e},Jn}(),n=yr(),i=Gt(),o=Qn(),l=ft(),s=$t(),a="prototype",u="script",c=s("IE_PROTO"),d=function(){},h=function(e){return"<"+u+">"+e+"</"+u+">"},f=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,r,i;m="undefined"!=typeof document?document.domain&&e?f(e):(r=l("iframe"),i="java"+u+":",r.style.display="none",o.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):f(e);for(var s=n.length;s--;)delete m[a][n[s]];return m()};return i[c]=!0,bn=Object.create||function(e,n){var i;return null!==e?(d[a]=t(e),i=new d,d[a]=null,i[c]=e):i=m(),void 0===n?i:r.f(i,n)}}function ei(){if(Cn)return yn;Cn=1;var e=ct(),t=Zn(),r=Lt().f,n=e("unscopables"),i=Array.prototype;return void 0===i[n]&&r(i,n,{configurable:!0,value:t(null)}),yn=function(e){i[n][e]=!0}}function ti(){return Rn?Sn:(Rn=1,Sn={})}function ri(){if(Pn)return Ln;Pn=1;var e=at(),t=we(),r=st(),n=$t(),i=function(){if(Wn)return xn;Wn=1;var e=w();return xn=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}(),o=n("IE_PROTO"),l=Object,s=l.prototype;return Ln=i?l.getPrototypeOf:function(n){var i=r(n);if(e(i,o))return i[o];var a=i.constructor;return t(a)&&i instanceof a?a.prototype:i instanceof l?s:null}}function ni(){if(kn)return _n;kn=1;var e,t,r,n=w(),i=we(),o=ye(),l=Zn(),s=ri(),a=Jt(),u=ct(),c=nt(),d=u("iterator"),h=!1;return[].keys&&("next"in(r=[].keys())?(t=s(s(r)))!==Object.prototype&&(e=t):h=!0),!o(e)||n(function(){var t={};return e[d].call(t)!==t})?e={}:c&&(e=l(e)),i(e[d])||a(e,d,function(){return this}),_n={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}}function ii(){if(En)return Nn;En=1;var e=Lt().f,t=at(),r=ct()("toStringTag");return Nn=function(n,i,o){n&&!o&&(n=n.prototype),n&&!t(n,r)&&e(n,r,{configurable:!0,value:i})}}function oi(){if(Tn)return On;Tn=1;var e=ni().IteratorPrototype,t=Zn(),r=he(),n=ii(),i=ti(),o=function(){return this};return On=function(l,s,a,u){var c=s+" Iterator";return l.prototype=t(e,{next:r(+!u,a)}),n(l,c,!1,!0),i[c]=o,l}}function li(){if(In)return zn;In=1;var e=ye();return zn=function(t){return e(t)||null===t}}function si(){if(Hn)return Mn;Hn=1;var e=li(),t=String,r=TypeError;return Mn=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function ai(){if(qn)return Un;qn=1;var e=tn(),t=S(),r=nt(),n=Dt(),i=we(),o=oi(),l=ri(),s=function(){if(Bn)return jn;Bn=1;var e=function(){if(Fn)return An;Fn=1;var e=fe(),t=ke();return An=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch(e){}}}(),t=ye(),r=ge(),n=si();return jn=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,l={};try{(i=e(Object.prototype,"__proto__","set"))(l,[]),o=l instanceof Array}catch(e){}return function(e,l){return r(e),n(l),t(e)?(o?i(e,l):e.__proto__=l,e):e}}():void 0)}(),a=ii(),u=Pt(),c=Jt(),d=ct(),h=ti(),f=ni(),m=n.PROPER,v=n.CONFIGURABLE,p=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,b=d("iterator"),w="keys",y="values",C="entries",R=function(){return this};return Un=function(n,d,f,S,x,W,L){o(f,d,S);var P,_,k,N=function(e){if(e===x&&F)return F;if(!g&&e&&e in T)return T[e];switch(e){case w:case y:case C:return function(){return new f(this,e)}}return function(){return new f(this)}},E=d+" Iterator",O=!1,T=n.prototype,A=T[b]||T["@@iterator"]||x&&T[x],F=!g&&A||N(x),z="Array"===d&&T.entries||A;if(z&&(P=l(z.call(new n)))!==Object.prototype&&P.next&&(r||l(P)===p||(s?s(P,p):i(P[b])||c(P,b,R)),a(P,E,!0,!0),r&&(h[E]=R)),m&&x===y&&A&&A.name!==y&&(!r&&v?u(T,"name",y):(O=!0,F=function(){return t(A,this)})),x)if(_={values:N(y),keys:W?F:N(w),entries:N(C)},L)for(k in _)(g||O||!(k in T))&&c(T,k,_[k]);else e({target:d,proto:!0,forced:g||O},_);return r&&!L||T[b]===F||c(T,b,F,{name:x}),h[d]=F,_}}function ui(){return Vn?Dn:(Vn=1,Dn=function(e,t){return{value:e,done:t}})}function ci(){if(Gn)return $n;Gn=1;var e=be(),t=ei(),r=ti(),n=Xt(),i=Lt().f,o=ai(),l=ui(),s=nt(),a=y(),u="Array Iterator",c=n.set,d=n.getterFor(u);$n=o(Array,"Array",function(t,r){c(this,{type:u,target:e(t),index:0,kind:r})},function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(r,!1);case"values":return l(t[r],!1)}return l([r,t[r]],!1)},"values");var h=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!s&&a&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(e){}return $n}!function(){if(Xn)return Yn;Xn=1;var e=u(),t=cn?un:(cn=1,un={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),r=function(){if(hn)return dn;hn=1;var e=ft()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return dn=t===Object.prototype?void 0:t}(),n=ci(),i=Pt(),o=ii(),l=ct()("iterator"),s=n.values,a=function(e,r){if(e){if(e[l]!==s)try{i(e,l,s)}catch(t){e[l]=s}if(o(e,r,!0),t[r])for(var a in n)if(e[a]!==n[a])try{i(e,a,n[a])}catch(t){e[a]=n[a]}}};for(var c in t)a(e[c]&&e[c].prototype,c);a(r,"DOMTokenList")}();var di,hi,fi,mi,vi,pi,gi,bi,wi,yi,Ci,Si,Ri,xi,Wi,Li,Pi,_i,ki,Ni,Ei,Oi,Ti,Ai,Fi,zi,Ii,Mi,Hi,ji,Bi,Ui,qi,Di,Vi,$i,Gi,Xi,Yi,Ji={},Ki={};function Qi(){if(hi)return di;hi=1;var e=fe(),t=vr(),r=on(),n=ge(),i=e("".charAt),o=e("".charCodeAt),l=e("".slice),s=function(e){return function(s,a){var u,c,d=r(n(s)),h=t(a),f=d.length;return h<0||h>=f?e?"":void 0:(u=o(d,h))<55296||u>56319||h+1===f||(c=o(d,h+1))<56320||c>57343?e?i(d,h):u:e?l(d,h,h+2):c-56320+(u-55296<<10)+65536}};return di={codeAt:s(!1),charAt:s(!0)}}function Zi(){if(vi)return mi;vi=1;var e=w(),t=ct(),r=y(),n=nt(),i=t("iterator");return mi=!e(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,o=new URLSearchParams("a=1&a=2&b=3"),l="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),l+=r+e}),o.delete("a",2),o.delete("b",void 0),n&&(!e.toJSON||!o.has("a",1)||o.has("a",2)||!o.has("a",void 0)||o.has("b"))||!t.size&&(n||!r)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==l||"x"!==new URL("https://x",void 0).host})}function eo(){if(wi)return bi;wi=1;var e=function(){if(gi)return pi;gi=1;var e=me(),t=fe();return pi=function(r){if("Function"===e(r))return t(r)}}(),t=ke(),r=C(),n=e(e.bind);return bi=function(e,i){return t(e),void 0===i?e:r?n(e,i):function(){return e.apply(i,arguments)}},bi}function to(){if(Ci)return yi;Ci=1;var e=Yt(),t=Lt();return yi=function(r,n,i){return i.get&&e(i.get,n,{getter:!0}),i.set&&e(i.set,n,{setter:!0}),t.f(r,n,i)}}function ro(){if(Ri)return Si;Ri=1;var e=Se(),t=TypeError;return Si=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")}}function no(){if(Pi)return Li;Pi=1;var e=S(),t=Wt(),r=Ne();return Li=function(n,i,o){var l,s;t(n);try{if(!(l=r(n,"return"))){if("throw"===i)throw o;return o}l=e(l,n)}catch(e){s=!0,l=e}if("throw"===i)throw o;if(s)throw l;return t(l),o}}function io(){if(ki)return _i;ki=1;var e=Wt(),t=no();return _i=function(r,n,i,o){try{return o?n(e(i)[0],i[1]):n(i)}catch(e){t(r,"throw",e)}}}function oo(){if(Ei)return Ni;Ei=1;var e=ct(),t=ti(),r=e("iterator"),n=Array.prototype;return Ni=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}function lo(){if(Ti)return Oi;Ti=1;var e=fe(),t=w(),r=we(),n=nn(),i=Ce(),o=Vt(),l=function(){},s=i("Reflect","construct"),a=/^\s*(?:class|function)\b/,u=e(a.exec),c=!a.test(l),d=function(e){if(!r(e))return!1;try{return s(l,[],e),!0}catch(e){return!1}},h=function(e){if(!r(e))return!1;switch(n(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!u(a,o(e))}catch(e){return!0}};return h.sham=!0,Oi=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?h:d}function so(){if(Fi)return Ai;Fi=1;var e=y(),t=Lt(),r=he();return Ai=function(n,i,o){e?t.f(n,i,r(0,o)):n[i]=o}}function ao(){if(Ii)return zi;Ii=1;var e=me();return zi=Array.isArray||function(t){return"Array"===e(t)}}function uo(){if(Bi)return ji;Bi=1;var e=nn(),t=Ne(),r=pe(),n=ti(),i=ct()("iterator");return ji=function(o){if(!r(o))return t(o,i)||t(o,"@@iterator")||n[e(o)]}}function co(){if(qi)return Ui;qi=1;var e=S(),t=ke(),r=Wt(),n=_e(),i=uo(),o=TypeError;return Ui=function(l,s){var a=arguments.length<2?i(l):s;if(t(a))return r(e(a,l));throw new o(n(l)+" is not iterable")},Ui}function ho(){if(Vi)return Di;Vi=1;var e=eo(),t=S(),r=st(),n=io(),i=oo(),o=lo(),l=br(),s=so(),a=function(){if(Hi)return Mi;Hi=1;var e=y(),t=ao(),r=TypeError,n=Object.getOwnPropertyDescriptor,i=e&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();return Mi=i?function(e,i){if(t(e)&&!n(e,"length").writable)throw new r("Cannot set read only .length");return e.length=i}:function(e,t){return e.length=t}}(),u=co(),c=uo(),d=Array;return Di=function(h){var f=r(h),m=o(this),v=arguments.length,p=v>1?arguments[1]:void 0,g=void 0!==p;g&&(p=e(p,v>2?arguments[2]:void 0));var b,w,y,C,S,R,x=c(f),W=0;if(!x||this===d&&i(x))for(b=l(f),w=m?new this(b):d(b);b>W;W++)R=g?p(f[W],W):f[W],s(w,W,R);else for(w=m?new this:[],S=(C=u(f,x)).next;!(y=t(S,C)).done;W++)R=g?n(C,p,[y.value,W],!0):y.value,s(w,W,R);return a(w,W),w},Di}function fo(){if(Yi)return Xi;Yi=1;var e=TypeError;return Xi=function(t,r){if(t<r)throw new e("Not enough arguments");return t}}var mo,vo,po,go,bo,wo,yo,Co,So,Ro={};function xo(){if(po)return vo;po=1;var e=u(),t=y(),r=Object.getOwnPropertyDescriptor;return vo=function(n){if(!t)return e[n];var i=r(e,n);return i&&i.value}}function Wo(){if(bo)return go;bo=1;var e=Jt();return go=function(t,r,n){for(var i in r)e(t,i,r[i],n);return t}}function Lo(){if(yo)return wo;yo=1,ci(),function(){if(mo)return Ro;mo=1;var e=tn(),t=fe(),r=pr(),n=RangeError,i=String.fromCharCode,o=String.fromCodePoint,l=t([].join);e({target:"String",stat:!0,arity:1,forced:!!o&&1!==o.length},{fromCodePoint:function(e){for(var t,o=[],s=arguments.length,a=0;s>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw new n(t+" is not a valid code point");o[a]=t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320)}return l(o,"")}})}();var e=tn(),t=u(),r=xo(),n=Ce(),i=S(),o=fe(),l=y(),s=Zi(),a=Jt(),c=to(),d=Wo(),h=ii(),f=oi(),m=Xt(),v=ro(),p=we(),g=at(),b=eo(),w=nn(),C=Wt(),R=ye(),x=on(),W=Zn(),L=he(),P=co(),_=uo(),k=ui(),N=fo(),E=ct(),O=sn(),T=E("iterator"),A="URLSearchParams",F=A+"Iterator",z=m.set,I=m.getterFor(A),M=m.getterFor(F),H=r("fetch"),j=r("Request"),B=r("Headers"),U=j&&j.prototype,q=B&&B.prototype,D=t.TypeError,V=t.encodeURIComponent,$=String.fromCharCode,G=n("String","fromCodePoint"),X=parseInt,Y=o("".charAt),J=o([].join),K=o([].push),Q=o("".replace),Z=o([].shift),ee=o([].splice),te=o("".split),re=o("".slice),ne=o(/./.exec),ie=/\+/g,oe=/^[0-9a-f]+$/i,le=function(e,t){var r=re(e,t,t+2);return ne(oe,r)?X(r,16):NaN},se=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},ae=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},ue=function(e){for(var t=(e=Q(e,ie," ")).length,r="",n=0;n<t;){var i=Y(e,n);if("%"===i){if("%"===Y(e,n+1)||n+3>t){r+="%",n++;continue}var o=le(e,n+1);if(o!=o){r+=i,n++;continue}n+=2;var l=se(o);if(0===l)i=$(o);else{if(1===l||l>4){r+="�",n++;continue}for(var s=[o],a=1;a<l&&!(3+ ++n>t||"%"!==Y(e,n));){var u=le(e,n+1);if(u!=u){n+=3;break}if(u>191||u<128)break;K(s,u),n+=2,a++}if(s.length!==l){r+="�";continue}var c=ae(s);null===c?r+="�":i=G(c)}}r+=i,n++}return r},ce=/[!'()~]|%20/g,de={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},me=function(e){return de[e]},ve=function(e){return Q(V(e),ce,me)},pe=f(function(e,t){z(this,{type:F,target:I(e).entries,index:0,kind:t})},A,function(){var e=M(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,k(void 0,!0);var n=t[r];switch(e.kind){case"keys":return k(n.key,!1);case"values":return k(n.value,!1)}return k([n.key,n.value],!1)},!0),ge=function(e){this.entries=[],this.url=null,void 0!==e&&(R(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?re(e,1):e:x(e)))};ge.prototype={type:A,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,l,s,a,u=this.entries,c=_(e);if(c)for(r=(t=P(e,c)).next;!(n=i(r,t)).done;){if(l=(o=P(C(n.value))).next,(s=i(l,o)).done||(a=i(l,o)).done||!i(l,o).done)throw new D("Expected sequence with length 2");K(u,{key:x(s.value),value:x(a.value)})}else for(var d in e)g(e,d)&&K(u,{key:d,value:x(e[d])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=te(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(r=te(t,"="),K(n,{key:ue(Z(r)),value:ue(J(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],K(r,ve(e.key)+"="+ve(e.value));return J(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var be=function(){v(this,Se);var e=z(this,new ge(arguments.length>0?arguments[0]:void 0));l||(this.size=e.entries.length)},Se=be.prototype;if(d(Se,{append:function(e,t){var r=I(this);N(arguments.length,2),K(r.entries,{key:x(e),value:x(t)}),l||this.size++,r.updateURL()},delete:function(e){for(var t=I(this),r=N(arguments.length,1),n=t.entries,i=x(e),o=r<2?void 0:arguments[1],s=void 0===o?o:x(o),a=0;a<n.length;){var u=n[a];if(u.key!==i||void 0!==s&&u.value!==s)a++;else if(ee(n,a,1),void 0!==s)break}l||(this.size=n.length),t.updateURL()},get:function(e){var t=I(this).entries;N(arguments.length,1);for(var r=x(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=I(this).entries;N(arguments.length,1);for(var r=x(e),n=[],i=0;i<t.length;i++)t[i].key===r&&K(n,t[i].value);return n},has:function(e){for(var t=I(this).entries,r=N(arguments.length,1),n=x(e),i=r<2?void 0:arguments[1],o=void 0===i?i:x(i),l=0;l<t.length;){var s=t[l++];if(s.key===n&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var r=I(this);N(arguments.length,1);for(var n,i=r.entries,o=!1,s=x(e),a=x(t),u=0;u<i.length;u++)(n=i[u]).key===s&&(o?ee(i,u--,1):(o=!0,n.value=a));o||K(i,{key:s,value:a}),l||(this.size=i.length),r.updateURL()},sort:function(){var e=I(this);O(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=I(this).entries,n=b(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new pe(this,"keys")},values:function(){return new pe(this,"values")},entries:function(){return new pe(this,"entries")}},{enumerable:!0}),a(Se,T,Se.entries,{name:"entries"}),a(Se,"toString",function(){return I(this).serialize()},{enumerable:!0}),l&&c(Se,"size",{get:function(){return I(this).entries.length},configurable:!0,enumerable:!0}),h(be,A),e({global:!0,constructor:!0,forced:!s},{URLSearchParams:be}),!s&&p(B)){var Re=o(q.has),xe=o(q.set),We=function(e){if(R(e)){var t,r=e.body;if(w(r)===A)return t=e.headers?new B(e.headers):new B,Re(t,"content-type")||xe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),W(e,{body:L(0,x(r)),headers:L(0,t)})}return e};if(p(H)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return H(e,arguments.length>1?We(arguments[1]):{})}}),p(j)){var Le=function(e){return v(this,U),new j(e,arguments.length>1?We(arguments[1]):{})};U.constructor=Le,Le.prototype=U,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Le})}}return wo={URLSearchParams:be,getState:I}}So||(So=1,function(){if(Co)return Ji;Co=1,function(){if(fi)return Ki;fi=1;var e=Qi().charAt,t=on(),r=Xt(),n=ai(),i=ui(),o="String Iterator",l=r.set,s=r.getterFor(o);n(String,"String",function(e){l(this,{type:o,string:t(e),index:0})},function(){var t,r=s(this),n=r.string,o=r.index;return o>=n.length?i(void 0,!0):(t=e(n,o),r.index+=t.length,i(t,!1))})}();var e,t=tn(),r=y(),n=Zi(),i=u(),o=eo(),l=fe(),s=Jt(),a=to(),c=ro(),d=at(),h=function(){if(Wi)return xi;Wi=1;var e=y(),t=fe(),r=S(),n=w(),i=Kn(),o=Qr(),l=de(),s=st(),a=ve(),u=Object.assign,c=Object.defineProperty,d=t([].concat);return xi=!u||n(function(){if(e&&1!==u({b:1},u(c({},"a",{enumerable:!0,get:function(){c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach(function(e){r[e]=e}),7!==u({},t)[n]||i(u({},r)).join("")!==o})?function(t,n){for(var u=s(t),c=arguments.length,h=1,f=o.f,m=l.f;c>h;)for(var v,p=a(arguments[h++]),g=f?d(i(p),f(p)):i(p),b=g.length,w=0;b>w;)v=g[w++],e&&!r(m,p,v)||(u[v]=p[v]);return u}:u,xi}(),f=ho(),m=ln(),v=Qi().codeAt,p=function(){if(Gi)return $i;Gi=1;var e=fe(),t=2147483647,r=/[^\0-\u007E]/,n=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",o=RangeError,l=e(n.exec),s=Math.floor,a=String.fromCharCode,u=e("".charCodeAt),c=e([].join),d=e([].push),h=e("".replace),f=e("".split),m=e("".toLowerCase),v=function(e){return e+22+75*(e<26)},p=function(e,t,r){var n=0;for(e=r?s(e/700):e>>1,e+=s(e/t);e>455;)e=s(e/35),n+=36;return s(n+36*e/(e+38))},g=function(e){var r=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=u(e,r++);if(i>=55296&&i<=56319&&r<n){var o=u(e,r++);56320==(64512&o)?d(t,((1023&i)<<10)+(1023&o)+65536):(d(t,i),r--)}else d(t,i)}return t}(e);var n,l,h=e.length,f=128,m=0,g=72;for(n=0;n<e.length;n++)(l=e[n])<128&&d(r,a(l));var b=r.length,w=b;for(b&&d(r,"-");w<h;){var y=t;for(n=0;n<e.length;n++)(l=e[n])>=f&&l<y&&(y=l);var C=w+1;if(y-f>s((t-m)/C))throw new o(i);for(m+=(y-f)*C,f=y,n=0;n<e.length;n++){if((l=e[n])<f&&++m>t)throw new o(i);if(l===f){for(var S=m,R=36;;){var x=R<=g?1:R>=g+26?26:R-g;if(S<x)break;var W=S-x,L=36-x;d(r,a(v(x+W%L))),S=s(W/L),R+=36}d(r,a(v(S))),g=p(m,C,w===b),m=0,w++}}m++,f++}return c(r,"")};return $i=function(e){var t,i,o=[],s=f(h(m(e),n,"."),".");for(t=0;t<s.length;t++)i=s[t],d(o,l(r,i)?"xn--"+g(i):i);return c(o,".")}}(),g=on(),b=ii(),C=fo(),R=Lo(),x=Xt(),W=x.set,L=x.getterFor("URL"),P=R.URLSearchParams,_=R.getState,k=i.URL,N=i.TypeError,E=i.parseInt,O=Math.floor,T=Math.pow,A=l("".charAt),F=l(/./.exec),z=l([].join),I=l(1.1.toString),M=l([].pop),H=l([].push),j=l("".replace),B=l([].shift),U=l("".split),q=l("".slice),D=l("".toLowerCase),V=l([].unshift),$="Invalid scheme",G="Invalid host",X="Invalid port",Y=/[a-z]/i,J=/[\d+-.a-z]/i,K=/\d/,Q=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,le=/[\t\n\r]/g,se=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)V(t,e%256),e=O(e/256);return z(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r?n:t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=I(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ae={},ue=h({},ae,{" ":1,'"':1,"<":1,">":1,"`":1}),ce=h({},ue,{"#":1,"?":1,"{":1,"}":1}),he=h({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),me=function(e,t){var r=v(e,0);return r>32&&r<127&&!d(t,e)?e:encodeURIComponent(e)},pe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ge=function(e,t){var r;return 2===e.length&&F(Y,A(e,0))&&(":"===(r=A(e,1))||!t&&"|"===r)},be=function(e){var t;return e.length>1&&ge(q(e,0,2))&&(2===e.length||"/"===(t=A(e,2))||"\\"===t||"?"===t||"#"===t)},we=function(e){return"."===e||"%2e"===D(e)},ye=function(e){return".."===(e=D(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},Ce={},Se={},Re={},xe={},We={},Le={},Pe={},_e={},ke={},Ne={},Ee={},Oe={},Te={},Ae={},Fe={},ze={},Ie={},Me={},He={},je={},Be={},Ue=function(e,t,r){var n,i,o,l=g(e);if(t){if(i=this.parse(l))throw new N(i);this.searchParams=null}else{if(void 0!==r&&(n=new Ue(r,!0)),i=this.parse(l,null,n))throw new N(i);(o=_(new P)).bindURL(this),this.searchParams=o}};Ue.prototype={type:"URL",parse:function(t,r,n){var i,o,l,s,a=this,u=r||Ce,c=0,h="",v=!1,p=!1,b=!1;for(t=g(t),r||(a.scheme="",a.username="",a.password="",a.host=null,a.port=null,a.path=[],a.query=null,a.fragment=null,a.cannotBeABaseURL=!1,t=j(t,ie,""),t=j(t,oe,"$1")),t=j(t,le,""),i=f(t);c<=i.length;){switch(o=i[c],u){case Ce:if(!o||!F(Y,o)){if(r)return $;u=Re;continue}h+=D(o),u=Se;break;case Se:if(o&&(F(J,o)||"+"===o||"-"===o||"."===o))h+=D(o);else{if(":"!==o){if(r)return $;h="",u=Re,c=0;continue}if(r&&(a.isSpecial()!==d(pe,h)||"file"===h&&(a.includesCredentials()||null!==a.port)||"file"===a.scheme&&!a.host))return;if(a.scheme=h,r)return void(a.isSpecial()&&pe[a.scheme]===a.port&&(a.port=null));h="","file"===a.scheme?u=Ae:a.isSpecial()&&n&&n.scheme===a.scheme?u=xe:a.isSpecial()?u=_e:"/"===i[c+1]?(u=We,c++):(a.cannotBeABaseURL=!0,H(a.path,""),u=He)}break;case Re:if(!n||n.cannotBeABaseURL&&"#"!==o)return $;if(n.cannotBeABaseURL&&"#"===o){a.scheme=n.scheme,a.path=m(n.path),a.query=n.query,a.fragment="",a.cannotBeABaseURL=!0,u=Be;break}u="file"===n.scheme?Ae:Le;continue;case xe:if("/"!==o||"/"!==i[c+1]){u=Le;continue}u=ke,c++;break;case We:if("/"===o){u=Ne;break}u=Me;continue;case Le:if(a.scheme=n.scheme,o===e)a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query=n.query;else if("/"===o||"\\"===o&&a.isSpecial())u=Pe;else if("?"===o)a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query="",u=je;else{if("#"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.path.length--,u=Me;continue}a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query=n.query,a.fragment="",u=Be}break;case Pe:if(!a.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,u=Me;continue}u=Ne}else u=ke;break;case _e:if(u=ke,"/"!==o||"/"!==A(h,c+1))continue;c++;break;case ke:if("/"!==o&&"\\"!==o){u=Ne;continue}break;case Ne:if("@"===o){v&&(h="%40"+h),v=!0,l=f(h);for(var w=0;w<l.length;w++){var y=l[w];if(":"!==y||b){var C=me(y,he);b?a.password+=C:a.username+=C}else b=!0}h=""}else if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(v&&""===h)return"Invalid authority";c-=f(h).length+1,h="",u=Ee}else h+=o;break;case Ee:case Oe:if(r&&"file"===a.scheme){u=ze;continue}if(":"!==o||p){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(a.isSpecial()&&""===h)return G;if(r&&""===h&&(a.includesCredentials()||null!==a.port))return;if(s=a.parseHost(h))return s;if(h="",u=Ie,r)return;continue}"["===o?p=!0:"]"===o&&(p=!1),h+=o}else{if(""===h)return G;if(s=a.parseHost(h))return s;if(h="",u=Te,r===Oe)return}break;case Te:if(!F(K,o)){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()||r){if(""!==h){var S=E(h,10);if(S>65535)return X;a.port=a.isSpecial()&&S===pe[a.scheme]?null:S,h=""}if(r)return;u=Ie;continue}return X}h+=o;break;case Ae:if(a.scheme="file","/"===o||"\\"===o)u=Fe;else{if(!n||"file"!==n.scheme){u=Me;continue}switch(o){case e:a.host=n.host,a.path=m(n.path),a.query=n.query;break;case"?":a.host=n.host,a.path=m(n.path),a.query="",u=je;break;case"#":a.host=n.host,a.path=m(n.path),a.query=n.query,a.fragment="",u=Be;break;default:be(z(m(i,c),""))||(a.host=n.host,a.path=m(n.path),a.shortenPath()),u=Me;continue}}break;case Fe:if("/"===o||"\\"===o){u=ze;break}n&&"file"===n.scheme&&!be(z(m(i,c),""))&&(ge(n.path[0],!0)?H(a.path,n.path[0]):a.host=n.host),u=Me;continue;case ze:if(o===e||"/"===o||"\\"===o||"?"===o||"#"===o){if(!r&&ge(h))u=Me;else if(""===h){if(a.host="",r)return;u=Ie}else{if(s=a.parseHost(h))return s;if("localhost"===a.host&&(a.host=""),r)return;h="",u=Ie}continue}h+=o;break;case Ie:if(a.isSpecial()){if(u=Me,"/"!==o&&"\\"!==o)continue}else if(r||"?"!==o)if(r||"#"!==o){if(o!==e&&(u=Me,"/"!==o))continue}else a.fragment="",u=Be;else a.query="",u=je;break;case Me:if(o===e||"/"===o||"\\"===o&&a.isSpecial()||!r&&("?"===o||"#"===o)){if(ye(h)?(a.shortenPath(),"/"===o||"\\"===o&&a.isSpecial()||H(a.path,"")):we(h)?"/"===o||"\\"===o&&a.isSpecial()||H(a.path,""):("file"===a.scheme&&!a.path.length&&ge(h)&&(a.host&&(a.host=""),h=A(h,0)+":"),H(a.path,h)),h="","file"===a.scheme&&(o===e||"?"===o||"#"===o))for(;a.path.length>1&&""===a.path[0];)B(a.path);"?"===o?(a.query="",u=je):"#"===o&&(a.fragment="",u=Be)}else h+=me(o,ce);break;case He:"?"===o?(a.query="",u=je):"#"===o?(a.fragment="",u=Be):o!==e&&(a.path[0]+=me(o,ae));break;case je:r||"#"!==o?o!==e&&("'"===o&&a.isSpecial()?a.query+="%27":a.query+="#"===o?"%23":me(o,ae)):(a.fragment="",u=Be);break;case Be:o!==e&&(a.fragment+=me(o,ue))}c++}},parseHost:function(e){var t,r,n;if("["===A(e,0)){if("]"!==A(e,e.length-1))return G;if(t=function(e){var t,r,n,i,o,l,s,a=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,h=function(){return A(e,d)};if(":"===h()){if(":"!==A(e,1))return;d+=2,c=++u}for(;h();){if(8===u)return;if(":"!==h()){for(t=r=0;r<4&&F(te,h());)t=16*t+E(h(),16),d++,r++;if("."===h()){if(0===r)return;if(d-=r,u>6)return;for(n=0;h();){if(i=null,n>0){if(!("."===h()&&n<4))return;d++}if(!F(K,h()))return;for(;F(K,h());){if(o=E(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}a[u]=256*a[u]+i,2!==++n&&4!==n||u++}if(4!==n)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;a[u++]=t}else{if(null!==c)return;d++,c=++u}}if(null!==c)for(l=u-c,u=7;0!==u&&l>0;)s=a[u],a[u--]=a[c+l-1],a[c+--l]=s;else if(8!==u)return;return a}(q(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=p(e),F(re,e))return G;if(t=function(e){var t,r,n,i,o,l,s,a=U(e,".");if(a.length&&""===a[a.length-1]&&a.length--,(t=a.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(i=a[n]))return e;if(o=10,i.length>1&&"0"===A(i,0)&&(o=F(Q,i)?16:8,i=q(i,8===o?1:2)),""===i)l=0;else{if(!F(10===o?ee:8===o?Z:te,i))return e;l=E(i,o)}H(r,l)}for(n=0;n<t;n++)if(l=r[n],n===t-1){if(l>=T(256,5-t))return null}else if(l>255)return null;for(s=M(r),n=0;n<r.length;n++)s+=r[n]*T(256,3-n);return s}(e),null===t)return G;this.host=t}else{if(F(ne,e))return G;for(t="",r=f(e),n=0;n<r.length;n++)t+=me(r[n],ae);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return d(pe,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ge(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,l=e.path,s=e.query,a=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=se(i),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?l[0]:l.length?"/"+z(l,"/"):"",null!==s&&(u+="?"+s),null!==a&&(u+="#"+a),u},setHref:function(e){var t=this.parse(e);if(t)throw new N(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new qe(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+se(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(g(e)+":",Ce)},getUsername:function(){return this.username},setUsername:function(e){var t=f(g(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=me(t[r],he)}},getPassword:function(){return this.password},setPassword:function(e){var t=f(g(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=me(t[r],he)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?se(e):se(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ee)},getHostname:function(){var e=this.host;return null===e?"":se(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Oe)},getPort:function(){var e=this.port;return null===e?"":g(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=g(e))?this.port=null:this.parse(e,Te))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+z(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ie))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=g(e))?this.query=null:("?"===A(e,0)&&(e=q(e,1)),this.query="",this.parse(e,je)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=g(e))?("#"===A(e,0)&&(e=q(e,1)),this.fragment="",this.parse(e,Be)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var qe=function(e){var t=c(this,De),n=C(arguments.length,1)>1?arguments[1]:void 0,i=W(t,new Ue(e,!1,n));r||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},De=qe.prototype,Ve=function(e,t){return{get:function(){return L(this)[e]()},set:t&&function(e){return L(this)[t](e)},configurable:!0,enumerable:!0}};if(r&&(a(De,"href",Ve("serialize","setHref")),a(De,"origin",Ve("getOrigin")),a(De,"protocol",Ve("getProtocol","setProtocol")),a(De,"username",Ve("getUsername","setUsername")),a(De,"password",Ve("getPassword","setPassword")),a(De,"host",Ve("getHost","setHost")),a(De,"hostname",Ve("getHostname","setHostname")),a(De,"port",Ve("getPort","setPort")),a(De,"pathname",Ve("getPathname","setPathname")),a(De,"search",Ve("getSearch","setSearch")),a(De,"searchParams",Ve("getSearchParams")),a(De,"hash",Ve("getHash","setHash"))),s(De,"toJSON",function(){return L(this).serialize()},{enumerable:!0}),s(De,"toString",function(){return L(this).serialize()},{enumerable:!0}),k){var $e=k.createObjectURL,Ge=k.revokeObjectURL;$e&&s(qe,"createObjectURL",o($e,k)),Ge&&s(qe,"revokeObjectURL",o(Ge,k))}b(qe,"URL"),t({global:!0,constructor:!0,forced:!n,sham:!r},{URL:qe})}());var Po,_o,ko={};!function(){if(Po)return ko;Po=1;var e=tn(),t=S();e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})}(),_o||(_o=1,Lo());var No,Eo,Oo,To,Ao,Fo,zo,Io,Mo,Ho,jo,Bo={};function Uo(){if(Eo)return No;Eo=1;var e=Wt();return No=function(){var t=e(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r}}function qo(){if(Ho)return Mo;Ho=1;var e,t,r=S(),n=fe(),i=on(),o=Uo(),l=function(){if(To)return Oo;To=1;var e=w(),t=u().RegExp,r=e(function(){var e=t("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),n=r||e(function(){return!t("a","y").sticky}),i=r||e(function(){var e=t("^r","gy");return e.lastIndex=2,null!==e.exec("str")});return Oo={BROKEN_CARET:i,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),s=lt(),a=Zn(),c=Xt().get,d=function(){if(Fo)return Ao;Fo=1;var e=w(),t=u().RegExp;return Ao=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})}(),h=function(){if(Io)return zo;Io=1;var e=w(),t=u().RegExp;return zo=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})}(),f=s("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,p=n("".charAt),g=n("".indexOf),b=n("".replace),y=n("".slice),C=(t=/b*/g,r(m,e=/a/,"a"),r(m,t,"a"),0!==e.lastIndex||0!==t.lastIndex),R=l.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];return(C||x||R||d||h)&&(v=function(e){var t,n,l,s,u,d,h,w=this,S=c(w),W=i(e),L=S.raw;if(L)return L.lastIndex=w.lastIndex,t=r(v,L,W),w.lastIndex=L.lastIndex,t;var P=S.groups,_=R&&w.sticky,k=r(o,w),N=w.source,E=0,O=W;if(_&&(k=b(k,"y",""),-1===g(k,"g")&&(k+="g"),O=y(W,w.lastIndex),w.lastIndex>0&&(!w.multiline||w.multiline&&"\n"!==p(W,w.lastIndex-1))&&(N="(?: "+N+")",O=" "+O,E++),n=new RegExp("^(?:"+N+")",k)),x&&(n=new RegExp("^"+N+"$(?!\\s)",k)),C&&(l=w.lastIndex),s=r(m,_?n:w,O),_?s?(s.input=y(s.input,E),s[0]=y(s[0],E),s.index=w.lastIndex,w.lastIndex+=s[0].length):w.lastIndex=0:C&&s&&(w.lastIndex=w.global?s.index+s[0].length:l),x&&s&&s.length>1&&r(f,s[0],n,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)}),s&&P)for(s.groups=d=a(null),u=0;u<P.length;u++)d[(h=P[u])[0]]=s[h[1]];return s}),Mo=v}function Do(){if(jo)return Bo;jo=1;var e=tn(),t=qo();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),Bo}Do();var Vo,$o,Go,Xo,Yo,Jo,Ko,Qo,Zo,el,tl,rl,nl,il,ol,ll={};function sl(){if(Jo)return Yo;Jo=1;var e=Qi().charAt;return Yo=function(t,r,n){return r+(n?e(t,r).length:1)}}function al(){if(Qo)return Ko;Qo=1;var e=fe(),t=st(),r=Math.floor,n=e("".charAt),i=e("".replace),o=e("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return Ko=function(e,a,u,c,d,h){var f=u+e.length,m=c.length,v=s;return void 0!==d&&(d=t(d),v=l),i(h,v,function(t,i){var l;switch(n(i,0)){case"$":return"$";case"&":return e;case"`":return o(a,0,u);case"'":return o(a,f);case"<":l=d[o(i,1,-1)];break;default:var s=+i;if(0===s)return t;if(s>m){var h=r(s/10);return 0===h?t:h<=m?void 0===c[h-1]?n(i,1):c[h-1]+n(i,1):t}l=c[s-1]}return void 0===l?"":l})}}function ul(e,t){for(let r=0,n=e.length;r>=0&&r<n;r+=1)if(t(e[r],r,e))return e[r]}function cl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}!function(){if(ol)return ll;ol=1;var e=function(){if($o)return Vo;$o=1;var e=C(),t=Function.prototype,r=t.apply,n=t.call;return Vo="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),Vo}(),t=S(),r=fe(),n=function(){if(Xo)return Go;Xo=1,Do();var e=S(),t=Jt(),r=qo(),n=w(),i=ct(),o=Pt(),l=i("species"),s=RegExp.prototype;return Go=function(a,u,c,d){var h=i(a),f=!n(function(){var e={};return e[h]=function(){return 7},7!==""[a](e)}),m=f&&!n(function(){var e=!1,t=/a/;if("split"===a){var r={};r[l]=function(){return t},(t={constructor:r,flags:""})[h]=/./[h]}return t.exec=function(){return e=!0,null},t[h](""),!e});if(!f||!m||c){var v=/./[h],p=u(h,""[a],function(t,n,i,o,l){var a=n.exec;return a===r||a===s.exec?f&&!l?{done:!0,value:e(v,n,i,o)}:{done:!0,value:e(t,i,n,o)}:{done:!1}});t(String.prototype,a,p[0]),t(s,h,p[1])}d&&o(s[h],"sham",!0)}}(),i=w(),o=Wt(),l=we(),s=ye(),a=vr(),c=gr(),d=on(),h=ge(),f=sl(),m=Ne(),v=al(),p=function(){if(rl)return tl;rl=1;var e=S(),t=at(),r=Se(),n=function(){if(el)return Zo;el=1;var e=u(),t=w(),r=e.RegExp,n=!t(function(){var e=!0;try{r(".","d")}catch(t){e=!1}var t={},n="",i=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(l.hasIndices="d"),l)o(s,l[s]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(t)!==i||n!==i});return Zo={correct:n}}(),i=Uo(),o=RegExp.prototype;return tl=n.correct?function(e){return e.flags}:function(l){return n.correct||!r(o,l)||t(l,"flags")?l.flags:e(i,l)}}(),g=function(){if(il)return nl;il=1;var e=S(),t=Wt(),r=we(),n=me(),i=qo(),o=TypeError;return nl=function(l,s){var a=l.exec;if(r(a)){var u=e(a,l,s);return null!==u&&t(u),u}if("RegExp"===n(l))return e(i,l,s);throw new o("RegExp#exec called on incompatible receiver")}}(),b=ct()("replace"),y=Math.max,R=Math.min,x=r([].concat),W=r([].push),L=r("".indexOf),P=r("".slice),_=function(e){return void 0===e?e:String(e)},k="$0"==="a".replace(/./,"$0"),N=!!/./[b]&&""===/./[b]("a","$0");n("replace",function(r,n,i){var u=N?"$":"$0";return[function(e,r){var i=h(this),o=s(e)?m(e,b):void 0;return o?t(o,e,i,r):t(n,d(i),e,r)},function(t,r){var s=o(this),h=d(t);if("string"==typeof r&&-1===L(r,u)&&-1===L(r,"$<")){var m=i(n,s,h,r);if(m.done)return m.value}var b=l(r);b||(r=d(r));var w,C=d(p(s)),S=-1!==L(C,"g");S&&(w=-1!==L(C,"u"),s.lastIndex=0);for(var k,N=[];null!==(k=g(s,h))&&(W(N,k),S);)""===d(k[0])&&(s.lastIndex=f(h,c(s.lastIndex),w));for(var E="",O=0,T=0;T<N.length;T++){for(var A,F=d((k=N[T])[0]),z=y(R(a(k.index),h.length),0),I=[],M=1;M<k.length;M++)W(I,_(k[M]));var H=k.groups;if(b){var j=x([F],I,z,h);void 0!==H&&W(j,H),A=d(e(r,void 0,j))}else A=v(F,h,z,I,H,r);z>=O&&(E+=P(h,O,z)+A,O=z+F.length)}return E+P(h,O)}]},!!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!k||N)}();var dl,hl={};!function(){if(dl)return hl;dl=1;var e=tn(),t=y(),r=u(),n=fe(),i=at(),o=we(),l=Se(),s=on(),a=to(),c=en(),d=r.Symbol,h=d&&d.prototype;if(t&&o(d)&&(!("description"in h)||void 0!==d().description)){var f={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),t=l(h,this)?new d(e):void 0===e?d():d(e);return""===e&&(f[t]=!0),t};c(m,d),m.prototype=h,h.constructor=m;var v="Symbol(description detection)"===String(d("description detection")),p=n(h.valueOf),g=n(h.toString),b=/^Symbol\((.*)\)[^)]+$/,w=n("".replace),C=n("".slice);a(h,"description",{configurable:!0,get:function(){var e=p(this);if(i(f,e))return"";var t=g(e),r=v?C(t,7,-1):w(t,b,"$1");return""===r?void 0:r}}),e({global:!0,constructor:!0,forced:!0},{Symbol:m})}}();const fl=Symbol("safe"),ml=Symbol("hover_in"),vl=Symbol("hover_out"),pl=Symbol("row_click"),gl=Symbol("preview_cell"),bl=Symbol("cell"),wl=Symbol("related_touch"),yl=Symbol("original_row_index");class Cl extends Array{constructor(e){var t,r,n;super(),this.onComparatorRequired=null,this.customSortingProvider=null,e=e||{},this.sortColumn=null!==(t=e.sortColumn)&&void 0!==t?t:[],this.onComparatorRequired=null!==(r=e.onComparatorRequired)&&void 0!==r?r:null,this.customSortingProvider=null!==(n=e.customSortingProvider)&&void 0!==n?n:null}add(e,t){if(Array.isArray(e)){const r=e;if("number"==typeof t)for(let e=0,n=r.length;e<n;e++)this.splice(t++,0,r[e]);else for(let e=0,t=r.length;e<t;e++)this.push(r[e])}else{const r=e;"number"==typeof t?this.splice(t,0,r):this.push(r)}}reset(e){this.length=0,e&&this.add(e)}filteredCollection(e,t){if(e&&t){const r=new Cl({sortColumn:this.sortColumn,onComparatorRequired:this.onComparatorRequired,customSortingProvider:this.customSortingProvider});for(let n=0,i=this.length;n<i;n++){const i=this[n];e(i,t)&&(i[yl]=n,r.push(i))}return r}return null}sort(e){let t;if("function"==typeof e)return super.sort(e);if(this.sortColumn.length){const e=[];for(let t=0;t<this.sortColumn.length;t++){const r=Sl(this.sortColumn[t],this.sortColumn[t].descending);let n=null;this.onComparatorRequired&&(n=this.onComparatorRequired(this.sortColumn[t].column,this.sortColumn[t].descending,r)),n||(n=r),e.push(n.bind(this))}if(1===e.length)t=e[0];else{const r=e.length;t=(t,n)=>{let i=0;for(let o=0;o<r;o++)if(i=e[o](t,n),0!==i)return i;return i}}const r=e=>(e.sort(t),e);if(this.customSortingProvider){const e=this.customSortingProvider(this,r);e!==this&&this.splice(0,this.length,...e)}else r(this)}return this}}function Sl(e,t){let r=e.comparePath;"string"==typeof r&&(r=r.split("."));const n=r.length,i=n>1,o=t?1:-1,l=t?-1:1;return function(e,t){let s=e[r[0]],a=t[r[0]];if(i)for(let e=1;e<n;e++)s=s&&s[r[e]],a=a&&a[r[e]];return s===a?0:null==s?o:null==a?l:s<a?o:l}}class Rl extends Array{constructor(){super()}get(e){for(let t=0,r=this.length;t<r;t++)if(this[t].name===e)return this[t];return null}indexOf(e){const t="string"==typeof e?e:e.name;for(let e=0,r=this.length;e<r;e++)if(this[e].name===t)return e;return-1}getByOrder(e){for(let t=0,r=this.length;t<r;t++)if(this[t].order===e)return this[t];return null}normalizeOrder(){const e=[];for(let t=0;t<this.length;t++)e.push(this[t]);e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0);for(let t=0;t<e.length;t++)e[t].order=t;return this}getColumns(){const e=[];for(let t=0;t<this.length;t++)e.push(this[t]);return e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0),e}getVisibleColumns(){const e=[];for(let t=0;t<this.length;t++){const r=this[t];r.visible&&e.push(r)}return e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0),e}getMaxOrder(){let e=0;for(let t=0;t<this.length;t++){const r=this[t];r.order>e&&(e=r.order)}return e}moveColumn(e,t){if(e&&t){const r=e.order,n=t.order;if(r<n)for(let e=r+1;e<=n;e++){const t=this.getByOrder(e);t&&t.order--}else for(let e=r-1;e>=n;e--){const t=this.getByOrder(e);t&&t.order++}e.order=n}return this}}function xl(e,t){const r=t.column,n=null==t.keyword?"":t.keyword.toString();if(!n||!r)return!0;let i=e[r];if(null==i)return!1;let o=i.toString(),l=n;return t.caseSensitive||(o=o.toLowerCase(),l=l.toLowerCase()),-1!==o.indexOf(l)}const Wl={NONE:"none",AUTO:"auto",SCROLL:"scroll"},Ll=document.createElement.bind(document);function Pl(e){["relative","absolute","fixed"].includes(getComputedStyle(e).position)||(e.style.position="relative")}function _l(e){const t=e.target;return/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(t.tagName)}function kl(e){const t=getComputedStyle(e);return(parseFloat(t.paddingLeft)||0)+(parseFloat(t.paddingRight)||0)}function Nl(e){const t=e.style;t["-webkit-touch-callout"]="none",t["-webkit-user-select"]="none",t["-moz-user-select"]="none",t["-ms-user-select"]="none",t["-o-user-select"]="none",t["user-select"]="none"}function El(e,t){const r=e._o.tableClassName,i=Ll("div");i.className=e.el.className;const o=Ll("div");o.className=r+"-header";const l=Ll("div");l.className=r+"-header-row";const s=Ll("div");s.className=r+"-header-cell";const a=Ll("div");a.textContent=t,s.appendChild(a),l.appendChild(s),o.appendChild(l),i.appendChild(o),n.setCssProps(i,{position:"absolute",top:"-9999px",visibility:"hidden"}),document.body.appendChild(i);const u=n.getElementWidth(s);return i.remove(),u}function Ol(e){const t=e._o,r=e._p;let i,o=0,l=0;r.table&&(o=r.table?r.table.scrollTop:0,l=r.table?r.table.scrollLeft:0,t.virtualTable&&(i=r.table.style.display,r.table.style.display="none"));let s=n.getElementWidth(e.el);r.table&&(t.virtualTable&&void 0!==i&&(r.table.style.display=i),r.table.scrollTop=o,r.table.scrollLeft=l,r.header&&(r.header.scrollLeft=l));const a=t.tableClassName,u=Ll("div");u.className=e.el.className,n.setCssProps(u,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px"});const c=Ll("div");c.className="".concat(a,"-header"),u.appendChild(c);const d=Ll("div");d.index=null,d.vIndex=null,d.className="".concat(a,"-header-row"),c.appendChild(d);for(let e=0;e<r.visibleColumns.length;e++){const t=r.visibleColumns[e],n=Ll("div");n.className="".concat(a,"-header-cell ").concat(t.cellClasses||""),n.columnName=t.name,n.appendChild(Ll("div")),d.appendChild(n)}document.body.appendChild(u),s-=function(e){const t=getComputedStyle(e);return(parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0)}(d);const h=d.querySelectorAll("div.".concat(a,"-header-cell"));for(const e of h){const t=getComputedStyle(e);if("border-box"!==t.boxSizing){s-=(parseFloat(t.borderRightWidth)||0)+(parseFloat(t.borderLeftWidth)||0)+kl(e);const n=e.columnName,i=r.columns.get(n);i&&(s-=i.arrowProposedWidth||0)}}return u.remove(),Math.max(0,s)}function Tl(e){const t=e._p,r=e._o.tableClassName,i=r+"-row",o=r+"-cell",l=t.visibleColumns,s=l.length,a=Ll("div");a.className=i,a.style.float="left";let u=0;for(let e=0;e<s;e++){var c,d;const t=l[e],r=Ll("div");r.className=o,r.style.width=(null!==(c=t.actualWidth)&&void 0!==c?c:0)+"px",t.cellClasses&&(r.className+=" "+t.cellClasses),r.appendChild(Ll("div")),a.appendChild(r),u+=null!==(d=t.actualWidth)&&void 0!==d?d:0}const h=Ll("div");h.className=e.el.className,n.setCssProps(h,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",float:"left",width:"1px",overflow:"hidden"});const f=Ll("div");f.className=r,h.appendChild(f);const m=Ll("div");m.className=r+"-body",m.style.width=u+1e4+"px",f.appendChild(m),m.appendChild(a),document.body.appendChild(h);const v=Ll("div");n.setCssProps(v,{border:"1.5px solid #000",width:"0",height:"0",position:"absolute",left:"0",top:"-9999px"}),document.body.appendChild(v);const p=parseFloat(getComputedStyle(v).borderWidth),g=Math.round(p)!==p;v.remove();let b=n.getElementWidth(a,!0,!0,!0);return b-=t.scrollbarWidth||0,g&&b++,h.remove(),b}function Al(e){const t=e._p;return!!t.table&&"rtl"===getComputedStyle(t.table).direction}function Fl(e){return 0===e.widthMode?"auto":2===e.widthMode?100*e.width+"%":e.width}class zl{static saveSelection(e){const t=window.getSelection();if(!t||0===t.rangeCount)return null;const r=t.getRangeAt(0);if(e!==r.commonAncestorContainer&&!function(e,t){let r=e;for(;(r=null!==(n=null===(i=r)||void 0===i?void 0:i.parentNode)&&void 0!==n?n:null)&&r!==t;)var n,i;return!!r}(r.commonAncestorContainer,e))return null;const n=r.cloneRange();n.selectNodeContents(e),n.setEnd(r.startContainer,r.startOffset);const i=n.toString().length;return{start:i,end:i+r.toString().length}}static restoreSelection(e,t){let r=0;const n=[e];let i,o=!1,l=!1;const s=document.createRange();for(s.setStart(e,0),s.collapse(!0);!l&&(i=n.pop());)if(i.nodeType===Node.TEXT_NODE){const e=r+i.length;!o&&t.start>=r&&t.start<=e&&(s.setStart(i,t.start-r),o=!0),o&&t.end>=r&&t.end<=e&&(s.setEnd(i,t.end-r),l=!0),r=e}else{let e=i.childNodes.length;for(;e--;)n.push(i.childNodes[e])}const a=window.getSelection();a&&(a.removeAllRanges(),a.addRange(s))}}const Il=document.createElement.bind(document);function Ml(e,t){var r,i,o;const l=e._o,s=Al(e);let a=t.target.closest("div.".concat(l.tableClassName,"-header-cell,div.").concat(l.cellPreviewClassName));if(!a)return null;a[bl]&&(a=a[bl]);let u=a.previousSibling;for(;u&&1!==u.nodeType;)u=u.previousSibling;const c=!u,d=t,h=null!==(r=null!==(i=t[wl])&&void 0!==i?i:null===(o=d.changedTouches)||void 0===o?void 0:o[0])&&void 0!==r?r:t,f=(h.pageX||h.clientX||0)-n.getElementOffset(a).left;if(s){var m,v,p;if(!c&&n.getElementWidth(a,!0,!0,!0)-f<=l.resizeAreaWidth/2)return null!==(m=null===(v=u)||void 0===v?void 0:v.columnName)&&void 0!==m?m:null;if(f<=l.resizeAreaWidth/2)return null!==(p=a.columnName)&&void 0!==p?p:null}else{var g,b,w;if(!c&&f<=l.resizeAreaWidth/2)return null!==(g=null===(b=u)||void 0===b?void 0:b.columnName)&&void 0!==g?g:null;if(n.getElementWidth(a,!0,!0,!0)-f<=l.resizeAreaWidth/2)return null!==(w=a.columnName)&&void 0!==w?w:null}return null}function Hl(e){const t=e._p;return t.resizer&&(t.resizer.remove(),t.resizer=null,t.eventsSink.remove(document,".colresize")),e}function jl(e,t){const r=t;if("mousedown"===t.type&&0!==r.button)return;const i=e._o,o=e._p,l=Ml(e,t);if(l){const r=o.columns.get(l);if(!i.resizableColumns||!r||!r.resizable)return!1;const s=Al(e);o.resizer&&o.resizer.remove(),o.resizer=Il("div"),o.resizer.className=i.resizerClassName,n.setCssProps(o.resizer,{position:"absolute",display:"block",zIndex:"-1",visibility:"hidden",width:"2px",background:"#000",opacity:"0.7"}),e.el.appendChild(o.resizer);const a=r.element,u=o.resizer.parentNode,c=getComputedStyle(u),d=getComputedStyle(a),h=n.getElementOffset(a),f=n.getElementOffset(u);f.left+=parseFloat(c.borderLeftWidth)||0,f.top+=parseFloat(c.borderTopWidth)||0,h.left-=f.left,h.top-=f.top,h.top-=parseFloat(d.borderTopWidth)||0;const m=n.getElementWidth(o.resizer,!0,!0,!0);s?(h.left-=Math.ceil((parseFloat(d.borderLeftWidth)||0)/2),h.left-=Math.ceil(m/2)):(h.left+=n.getElementWidth(a,!0,!0,!0),h.left+=Math.ceil((parseFloat(d.borderRightWidth)||0)/2),h.left-=Math.ceil(m/2)),n.setCssProps(o.resizer,{"z-index":"10",visibility:"visible",left:h.left+"px",top:h.top+"px",height:n.getElementHeight(e.el,!1,!1,!1)+"px"}),o.resizer.columnName=a.columnName;try{o.resizer.style.zIndex=""}catch(e){}o.eventsSink.add(document,"mousemove.colresize",t=>Bl(e,t)).add(document,"touchmove.colresize",t=>Bl(e,t)).add(document,"mouseup.colresize",t=>Ul(e,t)).add(document,"touchend.colresize",t=>Ul(e,t)),t.preventDefault()}}function Bl(e,t){var r,i,o;const l=e._p;if(!l.resizer)return;const s=l.columns.get(l.resizer.columnName);if(!s)return;const a=Al(e),u=s.element,c=l.resizer.parentNode,d=getComputedStyle(c),h=getComputedStyle(u),f=n.getElementOffset(u),m=n.getElementOffset(c);m.left+=parseFloat(d.borderLeftWidth)||0,f.left-=m.left;const v=n.getElementWidth(l.resizer,!0,!0,!0),p="border-box"===h.boxSizing,g=t;let b=(null!==(r=null!==(i=t[wl])&&void 0!==i?i:null===(o=g.changedTouches)||void 0===o?void 0:o[0])&&void 0!==r?r:t).pageX-m.left,w=f.left;w-=Math.ceil(v/2),a?(w+=n.getElementWidth(u,!0,!0,!0),w-=s.ignoreMin?0:e._o.minColumnWidth,p||(w-=Math.ceil((parseFloat(h.borderLeftWidth)||0)/2),w-=kl(u)),b>w&&(b=w)):(w+=s.ignoreMin?0:e._o.minColumnWidth,p||(w+=Math.ceil((parseFloat(h.borderRightWidth)||0)/2),w+=kl(u)),b<w&&(b=w)),l.resizer.style.left=b+"px"}function Ul(e,t){var r,i,o;const l=e._o,s=e._p;if(!s.resizer)return;s.eventsSink.remove(document,".colresize");const a=s.columns.get(s.resizer.columnName);if(!a)return s.resizer.remove(),void(s.resizer=null);const u=Al(e),c=a.element,d=c.firstChild,h=s.resizer.parentNode,f=getComputedStyle(h),m=getComputedStyle(c),v=n.getElementOffset(c),p=n.getElementOffset(h);p.left+=parseFloat(f.borderLeftWidth)||0,v.left-=p.left;const g=n.getElementWidth(s.resizer,!0,!0,!0),b="border-box"===m.boxSizing,w=t;let y=(null!==(r=null!==(i=t[wl])&&void 0!==i?i:null===(o=w.changedTouches)||void 0===o?void 0:o[0])&&void 0!==r?r:t).pageX-p.left,C=v.left,S=0;if(C-=Math.ceil(g/2),u){if(!b){y+=kl(c);const e=getComputedStyle(d||c);y+=parseFloat(e.borderLeftWidth)||0,y+=parseFloat(e.borderRightWidth)||0,y+=a.arrowProposedWidth||0}C+=n.getElementWidth(c,!0,!0,!0);const t=C-(a.ignoreMin?0:e._o.minColumnWidth);y>t&&(y=t),S=C-y}else{if(!b){y-=kl(c);const e=getComputedStyle(d||c);y-=parseFloat(e.borderLeftWidth)||0,y-=parseFloat(e.borderRightWidth)||0,y-=a.arrowProposedWidth||0}const t=C+(a.ignoreMin?0:e._o.minColumnWidth);y<t&&(y=t),S=y-C}s.resizer.remove(),s.resizer=null;let R=S;if(2===a.widthMode){let t=Ol(e),r=0,n=0;for(let e=0;e<s.visibleColumns.length;e++){const i=s.visibleColumns[e];var x;i.name!==a.name&&(2===i.widthMode?(r+=i.width,n++):t-=null!==(x=i.actualWidth)&&void 0!==x?x:0)}if(t=Math.max(1,t),1===t&&s.table&&(t=s.table.clientWidth),R=S/t,n>0){const e=R/((1-R)/r);r+=R,(r<1&&l.relativeWidthGrowsToFillWidth||r>1&&l.relativeWidthShrinksToFillWidth)&&(R=e)}R*=100,R+="%"}e.setColumnWidth(a.name,R)}function ql(e,t){var r;const n=e._o,i=e._p;if(!n.resizableColumns)return;const o=Ml(e,t),l=t.target.closest("div.".concat(n.tableClassName,"-header-cell,div.").concat(n.cellPreviewClassName));l&&(o&&null!==(r=i.columns.get(o))&&void 0!==r&&r.resizable?l.style.cursor="e-resize":l.style.cursor="")}function Dl(e,t){var r,i,o;const l=e._o,s=t,a=t,u=null!==(r=null!==(i=t[wl])&&void 0!==i?i:null===(o=s.changedTouches)||void 0===o?void 0:o[0])&&void 0!==r?r:{pageX:a.pageX,pageY:a.pageY},c=t.target.closest("div.".concat(l.tableClassName,"-header-cell,div.").concat(l.cellPreviewClassName));if(!c)return;const d=n.getElementOffset(c);d.width=n.getElementWidth(c,!0,!0,!0),d.height=n.getElementHeight(c,!0,!0,!0),e.emit("headercontextmenu",{columnName:c.columnName,pageX:u.pageX,pageY:u.pageY,bounds:d})}function Vl(e,t){if(_l(t))return;if(Ml(e,t))return;const r=e._o,n=e._p,i=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!i)return;if(!r.sortableColumns)return;const o=n.columns.get(i.columnName),l=n.rows.sortColumn;if(o&&o.sortable){let t=!0;const n=l.length?l[l.length-1]:null;n&&n.column===o.name&&(n.descending&&r.allowCancelSort?(t=!1,l.splice(l.length-1,1)):n.descending=!n.descending);const i=e;t?i.sort(o.name,void 0,!0).render():i.sort()}}const $l=Array.prototype.indexOf,Gl=document.createElement.bind(document);function Xl(e){const t=e._p;return t.headerRow&&(t.headerRow=void 0),e}function Yl(e){const t=e._o,r=e._p;if(!r.tbody)return e;if(t.virtualTable&&r.virtualListHelper){const e=r.virtualListHelper.estimateFullHeight();r._lastVirtualScrollHeight=e,r.tbody.style.height=e+"px"}else r.tbody.style.height="";return e}function Jl(e,t){const r=e._p;if(!r.table)return e;const n=r.table.offsetWidth-r.table.clientWidth;if(n!==r.scrollbarWidth||t){var i;r.scrollbarWidth=n;for(let e=0;e<r.columns.length;e++)r.columns[e].actualWidthConsideringScrollbarWidth=null;if(r.scrollbarWidth>0&&r.visibleColumns.length>0&&r.tbody&&r.headerRow){var o;const e=r.visibleColumns.length-1;r.visibleColumns[e].actualWidthConsideringScrollbarWidth=(null!==(o=r.visibleColumns[e].actualWidth)&&void 0!==o?o:0)-r.scrollbarWidth;const t=r.visibleColumns[e].actualWidthConsideringScrollbarWidth+"px",n=r.tbody.childNodes;for(let r=0,i=n.length;r<i;r++){const i=n[r];1===i.nodeType&&(i.childNodes[e].style.width=t)}r.headerRow.childNodes[e].style.width=t}Ql(e),null===(i=r.notifyRendererOfColumnsConfig)||void 0===i||i.call(r)}return e}function Kl(e,t){const r=e._o,i=e._p;if(!i.tbody||!i.table||!i.headerRow)return e;const o=Tl(e);if(i.tbody.style.minWidth=o+"px",i.headerRow.style.minWidth=o+(i.scrollbarWidth||0)+"px",i.eventsSink.remove(i.table,"scroll"),r.width===Wl.AUTO)n.setElementWidth(i.table,n.getElementWidth(i.tbody,!0,!0,!0)),n.setElementWidth(e.el,n.getElementWidth(i.table,!0,!0,!0));else if(r.width===Wl.SCROLL){if(t){const t=i.table?i.table.scrollTop:0,r=i.table?i.table.scrollLeft:0;!function(e){const t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}(e.el),i.table.scrollTop=t,i.table.scrollLeft=r,i.header&&(i.header.scrollLeft=r)}const r=()=>function(e){const t=e._p;t.header.scrollLeft=t.table.scrollLeft,Zl(e)}(e);i.eventsSink.add(i.table,"scroll",r)}return e}function Ql(e){var t;const r=e._p,n=e._o;if(!r.headerRow)return;const i=n.tableClassName+"-sticky",o=r.headerRow,l=Al(e),s=null!==(t=r.scrollbarWidth)&&void 0!==t?t:0;let a=0,u=0,c=null;const d=[],h=[];let f=null,m=[];for(let e=o.firstElementChild;e;e=e.nextElementSibling){const t=e.getAttribute("data-column");if(!t)continue;const n=r.columns.get(t);if(n)if("start"===n.sticky||"end"===n.sticky){var v;e.className+=" "+i,e.style.position="sticky";let t=null!==(v=n.actualWidth)&&void 0!==v?v:0,r=null;null===c&&(r=getComputedStyle(e),c=r.boxSizing),"content-box"===c&&(null===r&&(r=getComputedStyle(e)),t+=(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0)+(parseFloat(r.borderLeftWidth)||0)+(parseFloat(r.borderRightWidth)||0)),"start"===n.sticky&&!l||"end"===n.sticky&&l?(n.stickyPos={direction:"left",offset:a},e.style.left=a+"px",a+=t,m.length=0,f=[e],d.push(f)):(n.stickyPos={direction:"right",offset:u},e.style.right=u+s+"px",u+=t,h.push([e,...m]),m.length=0)}else{var p;delete n.stickyPos,null===(p=f)||void 0===p||p.push(e),null==m||m.push(e),"sticky"===e.style.position&&(e.classList.remove(i),e.style.position="",e.style.left="",e.style.right="")}}r.stickiesLeft=d,r.stickiesRight=h,Zl(e)}function Zl(e){const t=e._p;if(!t.table||!t.headerRow||!t.tbody)return;const r=t.stickiesLeft,n=t.stickiesRight,i=t.stickiesSetLeft,o=t.stickiesSetRight,l=t.stickiesSetLeft=new Set,s=t.stickiesSetRight=new Set;if(null!=r&&r.length||null==n||!n.length){const e=t.table.scrollLeft;if(e===t.lastStickyScrollLeft)return;t.lastStickyScrollLeft=e;const i=t.headerRow.children,o=1.5,a=(e,t,r)=>{if(e&&e.length)for(const n of e){const e=n[0],l=n.slice(1),s=l[0],a=l[l.length-1];if(!e||!e.getBoundingClientRect)continue;const u=e.getBoundingClientRect();let c=!1;if(s&&a){const e=s.getBoundingClientRect(),r=a.getBoundingClientRect();c=t?u.right-o>e.left&&u.left+o<r.right:u.left+o<r.right&&u.right-o>e.left}e.classList.toggle(t?"is-sticky-left":"is-sticky-right",c),c&&r.add($l.call(i,e))}};a(r,!0,l),a(n,!1,s)}const a=[],u=[];for(const e of l)null!=i&&i.has(e)||a.push({index:e,left:!0});for(const e of s)null!=o&&o.has(e)||a.push({index:e,right:!0});if(i)for(const e of i)l.has(e)||u.push({index:e,left:!0});if(o)for(const e of o)s.has(e)||u.push({index:e,right:!0});if(!a.length&&!u.length)return;let c=t.tbody.firstElementChild;for(;c;){const e=c.children;for(const t of u){var d;null===(d=e[t.index])||void 0===d||d.classList.remove(t.left?"is-sticky-left":"is-sticky-right")}for(const t of a){var h;null===(h=e[t.index])||void 0===h||h.classList.add(t.left?"is-sticky-left":"is-sticky-right")}c=c.nextElementSibling}t.isStickyColumns=new Map;for(const e of l)t.isStickyColumns.set(e,"left");for(const e of s)t.isStickyColumns.set(e,"right")}function es(e,t){const r=e._p,n=e._o;if(!r.headerRow||!r.tbody)return e;const i=r.headerRow.querySelectorAll("div.".concat(n.tableClassName,"-header-cell"))[t];if(!i)return e;const o=r.columns.get(i.columnName);if(o){i.style.width=(o.actualWidthConsideringScrollbarWidth||o.actualWidth||0)+"px";const e=(o.actualWidthConsideringScrollbarWidth||o.actualWidth||0)+"px",n=r.tbody.childNodes;for(let r=0,i=n.length;r<i;r++){const i=n[r];1===i.nodeType&&(i.childNodes[t].style.width=e)}}return e}function ts(e){const t=e._p,r=e._o;if(t.table&&t.headerRow){const e=r.tableClassName,o=i.scopedSelectorAll(t.headerRow,">div.".concat(e,"-header-cell.sorted")),l=Array.prototype.slice.call(o,0).map(e=>e.querySelector(":scope>div>.sort-arrow")).filter(e=>!!e);for(const e of l){var n;const r=null===(n=e.parentNode)||void 0===n?void 0:n.parentNode;if(r){const e=t.columns.get(r.columnName);e&&(e.arrowProposedWidth=0)}e.remove()}for(const e of o)e.classList.remove("sorted","desc")}return e}function rs(e,t,r){const n=e._p,i=e._o,o=n.columns.get(t);if(!o)return!1;const l=Gl("span");var s;return l.className="sort-arrow",o.element&&(o.element.className+=r?" sorted desc":" sorted",null===(s=o.element.firstChild)||void 0===s||s.insertBefore(l,o.element.firstChild.firstChild)),2!==o.widthMode&&i.adjustColumnWidthForSortArrow&&(o.arrowProposedWidth=l.scrollWidth+(parseFloat(getComputedStyle(l).marginRight)||0)+(parseFloat(getComputedStyle(l).marginLeft)||0)),!0}function ns(e,t){const r=t.firstChild;t.addEventListener("mousedown",t=>jl(e,t)),t.addEventListener("mousemove",t=>ql(e,t)),t.addEventListener("mouseup",t=>function(e,t){2===t.button&&Dl(e,t)}(e,t)),t.addEventListener("mouseleave",t=>function(e,t){const r=e._o,n=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));n&&(n.style.cursor="")}(e,t)),t.addEventListener("touchstart",t=>function(e,t){const r=e._p;if(r.currentTouchId)return;const n=t.changedTouches[0];r.currentTouchId=n.identifier;const i=t.currentTarget,o={x:n.pageX,y:n.pageY};let l,s=o;const a=function(){r.currentTouchId=null,r.eventsSink.remove(i,".colheader"),clearTimeout(l)};t[wl]=t.changedTouches[0],jl(e,t),l=setTimeout(()=>{a(),r.eventsSink.add(i,"touchend.colheader",e=>{_l(e)||e.preventDefault(),r.eventsSink.remove(i,".colheader")},{once:!0}).add(i,"touchcancel.colheader",e=>{r.eventsSink.remove(i,".colheader")},{once:!0}),Math.sqrt(Math.pow(Math.abs(s.x-o.x),2)+Math.pow(Math.abs(s.y-o.y),2))<9&&(Hl(e),Dl(e,t))},500),r.eventsSink.add(i,"touchend.colheader",t=>{const n=t,i=ul(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(a(),_l(t)||t.preventDefault(),s={x:i.pageX,y:i.pageY},(Math.sqrt(Math.pow(Math.abs(s.x-o.x),2)+Math.pow(Math.abs(s.y-o.y),2))<9||r.resizer)&&(n[wl]=i,Vl(e,n)))}).add(i,"touchcancel.colheader",a).add(i,"touchmove.colheader",t=>{const n=t,i=ul(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(s={x:i.pageX,y:i.pageY},r.resizer&&(t.preventDefault(),n[wl]=i,ql(e,n)))})}(e,t)),t.addEventListener("dragstart",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){const e=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!e)return void t.preventDefault();const o=n.columns.get(e.columnName);var i;o&&o.movable?(e.style.opacity="0.35",n.dragId=161061273*Math.random(),null===(i=t.dataTransfer)||void 0===i||i.setData("text",JSON.stringify({dragId:n.dragId,column:o.name}))):t.preventDefault()}else t.preventDefault()}(e,t)),t.addEventListener("click",t=>Vl(e,t)),t.addEventListener("contextmenu",e=>e.preventDefault()),r.addEventListener("dragenter",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){var i;let e=null;const o=null===(i=t.dataTransfer)||void 0===i?void 0:i.getData("text");if(o)try{e=JSON.parse(o)}catch(t){e=null}const l=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!l)return;if(!e||n.dragId===e.dragId&&l.columnName!==e.column){const e=n.columns.get(l.columnName);e&&(e.movable||e!==n.visibleColumns[0])&&l.classList.add("drag-over")}}}(e,t)),r.addEventListener("dragover",e=>{e.preventDefault()}),r.addEventListener("dragleave",t=>function(e,t){const r=e._o,n=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!n)return;const i=t.relatedTarget;null!=i&&i.contains(n.firstChild)||n.classList.remove("drag-over")}(e,t)),r.addEventListener("drop",t=>function(e,t){var r;t.preventDefault();const n=e._o,i=e._p,o=null===(r=t.dataTransfer)||void 0===r?void 0:r.getData("text");if(!o)return;let l;try{l=JSON.parse(o)}catch(e){return}const s=t.target.closest("div.".concat(n.tableClassName,"-header-cell,div.").concat(n.cellPreviewClassName));if(s){if(n.movableColumns&&l.dragId===i.dragId){const t=l.column,r=s.columnName,n=i.columns.get(t),o=i.columns.get(r);n&&o&&n.movable&&(o.movable||o!==i.visibleColumns[0])&&e.moveColumn(t,r)}s.classList.remove("drag-over")}}(e,t))}function is(e,t){let r=Math.max(0,parseFloat(e)||0),n=0;return r>0&&(e===r+"%"?(n=2,r/=100):r>0&&r<1?n=2:(r<t&&(r=t),n=1)),{width:r,mode:n}}function os(e,t){let r=is(t.width,t.ignoreMin?0:e.minColumnWidth),n={name:t.name,label:void 0===t.label?t.name:t.label,width:r.width,widthMode:r.mode,resizable:void 0===t.resizable||t.resizable,sortable:void 0===t.sortable||t.sortable,movable:void 0===t.movable||t.movable,visible:void 0===t.visible||t.visible,cellClasses:void 0===t.cellClasses?e.cellClasses:t.cellClasses,ignoreMin:void 0!==t.ignoreMin&&!!t.ignoreMin,sticky:void 0===t.sticky?null:t.sticky||null,dataPath:[],comparePath:[],order:0};const i=void 0===t.dataPath?[n.name]:t.dataPath;n.dataPath="string"==typeof i?i.split("."):i;const o=void 0===t.comparePath?n.dataPath:t.comparePath;return n.comparePath="string"==typeof o?o.split("."):o,n}function ls(e){const t=e._p;0===t.visibleColumns.length&&t.columns.length&&(t.columns[0].visible=!0,t.visibleColumns.push(t.columns[0]),e.emit("showcolumn",t.columns[0].name))}function ss(e){const t=e._p;if(t.filteredRows&&t.filterArgs){let r=e._o.filter||xl;t.filteredRows=t.rows.filteredCollection(r,t.filterArgs)}}function as(e,t,r){let n=r.dataPath,i=t[n[0]];for(let e=1;e<n.length&&null!=i;e++)i=i&&i[n[e]];const o=e.cellFormatter;let l;if(o[fl])l=o(i,r.name,t);else try{l=o(i,r.name,t)}catch(e){l="[ERROR]",console.error("Failed to generate content for cell "+r.name,e)}return null==l&&(l=""),l}const us=Array.prototype.indexOf,cs=document.createElement.bind(document);function ds(e){const t=e._p;if(t.cellPreviewCell){var r;const n=t.cellPreviewCell,i=n[bl];let o;try{o=zl.saveSelection(n)}catch(e){}t.cellPreviewCell.remove(),i&&t._unbindCellHoverOut(i),t._unbindCellHoverOut(n);try{o&&i&&zl.restoreSelection(i,o)}catch(e){}e.emit("cellpreviewdestroy",{el:n.firstChild,name:n.columnName,rowIndex:null!==(r=n.rowIndex)&&void 0!==r?r:null,rowData:null==n.rowIndex?null:t.rows[n.rowIndex],cell:i,cellEl:null==i?void 0:i.firstChild}),i&&delete i[gl],delete n[bl],t.cellPreviewCell=null,t.abortCellPreview=!1}else t.abortCellPreview=!0;return e}const hs=Object.prototype.hasOwnProperty;class fs{constructor(e){this.VERSION=fs.VERSION;const t=this._o={},r=this._p={eventsSink:new o,mitt:{all:i=i||new Map,on:function(e,t){var r=i.get(e);r?r.push(t):i.set(e,[t])},off:function(e,t){var r=i.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):i.set(e,[]))},emit:function(e,t){var r=i.get(e);r&&r.slice().map(function(e){e(t)}),(r=i.get("*"))&&r.slice().map(function(r){r(e,t)})}},tableSkeletonNeedsRendering:!0};var i;this.el=e.el&&e.el instanceof HTMLElement?e.el:document.createElement("div"),this.el!==e.el&&this.el.classList.add(e.className||"dgtable-wrapper"),r.eventsSink.add(this.el,"dragend.colresize",e=>{return t=e,void(this._p.resizer||(t.target.style.opacity=""));var t}),t.virtualTable=void 0===e.virtualTable||!!e.virtualTable,t.estimatedRowHeight=e.estimatedRowHeight||void 0,t.rowsBufferSize=e.rowsBufferSize||3,t.minColumnWidth=Math.max(e.minColumnWidth||35,0),t.resizeAreaWidth=e.resizeAreaWidth||8,t.resizableColumns=void 0===e.resizableColumns||!!e.resizableColumns,t.movableColumns=void 0===e.movableColumns||!!e.movableColumns,t.sortableColumns=void 0===e.sortableColumns?1:parseInt(String(e.sortableColumns),10)||1,t.adjustColumnWidthForSortArrow=void 0===e.adjustColumnWidthForSortArrow||!!e.adjustColumnWidthForSortArrow,t.convertColumnWidthsToRelative=void 0!==e.convertColumnWidthsToRelative&&!!e.convertColumnWidthsToRelative,t.autoFillTableWidth=void 0!==e.autoFillTableWidth&&!!e.autoFillTableWidth,t.allowCancelSort=void 0===e.allowCancelSort||!!e.allowCancelSort,t.cellClasses=void 0===e.cellClasses?"":e.cellClasses,t.resizerClassName=void 0===e.resizerClassName?"dgtable-resize":e.resizerClassName,t.tableClassName=void 0===e.tableClassName?"dgtable":e.tableClassName,t.allowCellPreview=void 0===e.allowCellPreview||e.allowCellPreview,t.allowHeaderCellPreview=void 0===e.allowHeaderCellPreview||e.allowHeaderCellPreview,t.cellPreviewClassName=void 0===e.cellPreviewClassName?"dgtable-cell-preview":e.cellPreviewClassName,t.cellPreviewAutoBackground=void 0===e.cellPreviewAutoBackground||e.cellPreviewAutoBackground,t.onComparatorRequired=void 0===e.onComparatorRequired?null:e.onComparatorRequired,t.customSortingProvider=void 0===e.customSortingProvider?null:e.customSortingProvider,t.width=void 0===e.width?Wl.NONE:e.width,t.relativeWidthGrowsToFillWidth=void 0===e.relativeWidthGrowsToFillWidth||!!e.relativeWidthGrowsToFillWidth,t.relativeWidthShrinksToFillWidth=void 0!==e.relativeWidthShrinksToFillWidth&&!!e.relativeWidthShrinksToFillWidth,this.setCellFormatter(e.cellFormatter),this.setHeaderCellFormatter(e.headerCellFormatter),this.setFilter(e.filter),t.height=e.height,this.setColumns(e.columns||[],!1);let l=[];if(e.sortColumn){let t=Array.isArray(e.sortColumn)?e.sortColumn:[e.sortColumn];for(let e=0,n=t.length;e<n;e++){var s;let n=t[e];"string"==typeof n&&(n={column:n,descending:!1});let i=r.columns.get(n.column);i&&l.push({column:n.column,comparePath:i.comparePath||i.dataPath,descending:null!==(s=n.descending)&&void 0!==s&&s})}}r.rows=new Cl({sortColumn:l}),r.rows.onComparatorRequired=(e,r,n)=>{if(t.onComparatorRequired)return t.onComparatorRequired(e,r,n)},r.rows.customSortingProvider=(e,r)=>t.customSortingProvider?t.customSortingProvider(e,r):r(e),r.filteredRows=null,r.scrollbarWidth=0,r._lastVirtualScrollHeight=0,function(e){const t=e._p,r=t=>{let r=t.currentTarget,i=t.relatedTarget;i===r||r.contains(i)||r[gl]&&(i===r[gl]||r[gl].contains(i))||function(e,t){var r,i;const o=e._o,l=e._p,s=t.firstElementChild;if(!s)return;if(!(s.scrollWidth-s.clientWidth>1||s.scrollHeight-s.clientHeight>1))return;ds(e),l.abortCellPreview=!1;const a=t.parentElement;if(!a)return;const u=cs("div");u.innerHTML=t.innerHTML,u.className=o.cellPreviewClassName;const c=t.classList.contains("".concat(o.tableClassName,"-header-cell"));c&&(u.classList.add("header"),t.classList.contains("sortable")&&u.classList.add("sortable"),u.draggable=!0,ns(e,u));const d=getComputedStyle(t),h=getComputedStyle(s),f="right"===d.float,m=f?"right":"left",v=parseFloat(d.paddingLeft)||0,p=parseFloat(d.paddingRight)||0,g=parseFloat(d.paddingTop)||0,b=parseFloat(d.paddingBottom)||0;let w=s.scrollWidth+(t.clientWidth-s.offsetWidth);const y="border-box"===d.boxSizing;if(y?u.style.boxSizing="border-box":(w-=v+p,u.style.marginTop=(parseFloat(d.borderTopWidth)||0)+"px"),!l.transparentBgColor1){const e=document.createElement("div");document.body.appendChild(e),e.style.backgroundColor="transparent",l.transparentBgColor1=getComputedStyle(e).backgroundColor,e.style.backgroundColor="rgba(0,0,0,0)",l.transparentBgColor2=getComputedStyle(e).backgroundColor,e.remove()}const C={"box-sizing":y?"border-box":"content-box",width:w,"min-height":Math.max(n.getElementHeight(t),/%/.test(d.minHeight)?0:parseFloat(d.minHeight)||0)+"px","padding-left":v,"padding-right":p,"padding-top":g,"padding-bottom":b,overflow:"hidden",position:"absolute","z-index":"-1",[m]:"0",top:"0",cursor:d.cursor};let S=d.backgroundColor;S!==l.transparentBgColor1&&S!==l.transparentBgColor2||(S=getComputedStyle(a).backgroundColor),S!==l.transparentBgColor1&&S!==l.transparentBgColor2||(S="#fff"),C["background-color"]=S,n.setCssProps(u,C),u.firstChild&&n.setCssProps(u.firstChild,{direction:h.direction,"white-space":h.whiteSpace,"min-height":h.minHeight,"line-height":h.lineHeight,font:h.font}),e.el.appendChild(u),c&&Nl(u),u.rowVIndex=a.vIndex;const R=u.rowIndex=a.index;u.columnName=null===(r=l.visibleColumns[us.call(a.childNodes,t)])||void 0===r?void 0:r.name;try{const e=zl.saveSelection(t);e&&zl.restoreSelection(u,e)}catch(e){}if(e.emit("cellpreview",{el:u.firstElementChild,name:u.columnName,rowIndex:null!=R?R:null,rowData:null==R?null:l.rows[R],cell:t,cellEl:s}),l.abortCellPreview)return void u.remove();null!=R&&u.addEventListener("click",t=>{e.emit("rowclick",{event:t,filteredRowIndex:a.vIndex,rowIndex:R,rowEl:a,rowData:l.rows[R]})});const x=e.el,W=x===window?document:x,L=getComputedStyle(x),P=n.getElementOffset(t),_=n.getElementOffset(x);if(f){const e=window.innerWidth;P.right=e-(P.left+n.getElementWidth(t,!0,!0,!0)),_.right=e-(_.left+n.getElementWidth(x,!0,!0,!0))}P.left-=parseFloat(L.borderLeftWidth)||0,"right"===m&&void 0!==P.right&&void 0!==_.right&&(P.right-=parseFloat(L.borderRightWidth)||0),P.top-=parseFloat(L.borderTopWidth)||0,"left"===m?P.left+=parseFloat(d.borderLeftWidth)||0:void 0!==P.right&&(P.right+=parseFloat(d.borderRightWidth)||0),P.top+=parseFloat(d.borderTopWidth)||parseFloat(d.borderBottomWidth)||0,P.left-=_.left,"right"===m&&void 0!==P.right&&void 0!==_.right&&(P.right-=_.right),P.top-=_.top;const k=n.getElementWidth(x,!1,!1,!1)-n.getElementWidth(u,!0,!0,!0),N="left"===m?P.left:null!==(i=P.right)&&void 0!==i?i:0,E=N<0?0:N>k?k:N;"left"===m?P.left=E:P.right=E;const O=n.getElementHeight(t,!0,!0,!0),T=("scrollTop"in W?W.scrollTop:0)+n.getElementHeight(x,!0)-O;P.top>T&&(P.top=Math.max(0,T));const A={top:P.top+"px","z-index":9999};A[m]=("left"===m?P.left:P.right)+"px",n.setCssProps(u,A),u[bl]=t,l.cellPreviewCell=u,t[gl]=u,l._bindCellHoverOut(t),l._bindCellHoverOut(u),u.addEventListener("wheel",()=>{ds(e)})}(e,r)},i=t=>{let r=t.currentTarget[bl]||t.currentTarget,n=t.relatedTarget;n===e.el||r.contains(n)||r[gl]&&(n===r[gl]||r[gl].contains(n))||function(e){ds(e)}(e)};t._bindCellHoverIn=e=>{e[ml]||e.addEventListener("mouseover",e[ml]=r)},t._unbindCellHoverIn=e=>{e[ml]&&(e.removeEventListener("mouseover",e[ml]),e[ml]=null)},t._bindCellHoverOut=e=>{e[vl]||e.addEventListener("mouseout",e[vl]=i)},t._unbindCellHoverOut=e=>{e[vl]&&(e.removeEventListener("mouseout",e[vl]),e[vl]=null)}}(this)}on(e,t){return this._p.mitt.on(e,t),this}once(e,t){const r=n=>{this._p.mitt.off(e,r),t(n)};return this._p.mitt.on(e,r),this}off(e,t){return e||t?this._p.mitt.off(e,t):this._p.mitt.all.clear(),this}emit(e,t){return this._p.mitt.emit(e,t),this}destroy(){var e,t,r;const n=this._p,i=this.el;if(this.__removed||!n)return this;if(n.resizer&&(n.resizer.remove(),n.resizer=null),null===(e=n.virtualListHelper)||void 0===e||e.destroy(),n.virtualListHelper=null,Xl(this),null===(t=n.table)||void 0===t||t.remove(),null===(r=n.tbody)||void 0===r||r.remove(),n.workerListeners){for(let e=0;e<n.workerListeners.length;e++){let t=n.workerListeners[e];t.worker.removeEventListener("message",t.listener,!1)}n.workerListeners.length=0}n.rows.length=n.columns.length=0,n._deferredRender&&clearTimeout(n._deferredRender);for(let e in this)hs.call(this,e)&&(this[e]=null);return this.__removed=!0,i&&i.remove(),this}close(){this.destroy()}remove(){this.destroy()}render(){const e=this._o,t=this._p;if(!this.el.offsetParent)return t._deferredRender||(t._deferredRender=setTimeout(()=>{t._deferredRender=null,!this.__removed&&this.el.offsetParent&&this.render()})),this;if(!0===t.tableSkeletonNeedsRendering){var i;t.tableSkeletonNeedsRendering=!1,e.width===Wl.AUTO&&ts(this);let o=t.table&&t.table.parentNode?t.table.scrollTop:NaN,s=t.table&&t.table.parentNode?r.getScrollHorz(t.table):NaN;!function(e){var t;const r=e._p,i=e._o;null===(t=r.virtualListHelper)||void 0===t||t.destroy(),r.virtualListHelper=null,r.table&&i.virtualTable&&(r.table.remove(),r.table=void 0,r.tbody=void 0),Xl(e),r.currentTouchId=null,r.header&&r.header.remove();const o=i.tableClassName,l=Gl("div"),s=Gl("div");l.className="".concat(o,"-header"),s.className="".concat(o,"-header-row"),r.header=l,r.headerRow=s,l.appendChild(s),e.el.prepend(l),Pl(e.el),i.width===Wl.SCROLL?e.el.style.overflow="hidden":e.el.style.overflow="",!i.height&&i.virtualTable&&(i.height=n.getElementHeight(e.el,!0))}(this),function(e){const t=e._p,r=e._o,i=r.tableClassName;if(r.virtualTable&&!t.virtualRowHeight){const r=()=>{const e=Gl("div"),t=e.appendChild(Gl("div")),r=t.appendChild(Gl("div"));return e.className="".concat(i,"-row"),t.className="".concat(i,"-cell"),r.innerHTML="0",e.style.visibility="hidden",e.style.position="absolute",e},o=Gl("div");o.className=e.el.className,n.setCssProps(o,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",width:"1px",overflow:"hidden"});const l=Gl("div");l.className=i,o.appendChild(l);const s=Gl("div");s.className="".concat(i,"-body"),s.style.width="99999px",l.appendChild(s),document.body.appendChild(o);const a=r(),u=r(),c=r();s.appendChild(a),s.appendChild(u),s.appendChild(c),t.virtualRowHeight=n.getElementHeight(u,!0,!0,!0),o.remove()}if(!t.table){var o;const s=document.createDocumentFragment(),a=Gl("div");a.className=i,r.virtualTable&&(a.className+=" virtual");const u=getComputedStyle(a);let c=(null!==(o=r.height)&&void 0!==o?o:0)-n.getElementHeight(t.header,!0,!0,!0);"border-box"!==u.boxSizing&&(c-=parseFloat(u.borderTopWidth)||0,c-=parseFloat(u.borderBottomWidth)||0,c-=parseFloat(u.paddingTop)||0,c-=parseFloat(u.paddingBottom)||0),n.setCssProps(a,{height:r.height?c+"px":"auto",display:"block",overflowY:"auto",overflowX:r.width===Wl.SCROLL?"auto":"hidden"}),s.appendChild(a);const d=Gl("div");d.className=r.tableClassName+"-body",d.style.minHeight="1px",t.table=a,t.tbody=d,Pl(d),Pl(a),a.appendChild(d),e.el.appendChild(s),function(e){var t;const r=e._p,n=e._o,i=n.tableClassName,o=i+"-row",s=i+"-row-alt",a=i+"-cell",u=i+"-sticky";let c=r.visibleColumns,d=c.length;r.notifyRendererOfColumnsConfig=()=>{c=r.visibleColumns,d=c.length;for(let e=0;e<d;e++){const t=c[e];t._finalWidth=t.actualWidthConsideringScrollbarWidth||t.actualWidth}},r.virtualListHelper=new l({list:r.table,itemsParent:r.tbody,autoVirtualWrapperWidth:!1,virtual:n.virtualTable,buffer:n.rowsBufferSize,estimatedItemHeight:n.estimatedRowHeight?n.estimatedRowHeight:r.virtualRowHeight||40,itemElementCreatorFn:()=>Gl("div"),onItemRender:(t,i)=>{const l=r.filteredRows||r.rows,h=!!r.filteredRows,f=n.allowCellPreview,m=r.isStickyColumns;t.className=o,i%2==1&&(t.className+=" "+s);const v=l[i],p=h?v[yl]:i;t.vIndex=i,t.index=p;for(let e=0;e<d;e++){var g;const i=c[e],o=Gl("div");if(o.columnName=i.name,o.setAttribute("data-column",i.name),o.className=a,o.style.width=(null!==(g=i._finalWidth)&&void 0!==g?g:0)+"px",i.cellClasses&&(o.className+=" "+i.cellClasses),i.stickyPos){o.className+=" "+u,o.style.position="sticky",o.style[i.stickyPos.direction]=i.stickyPos.offset+"px";const t=null==m?void 0:m.get(e);"left"===t?o.classList.add("is-sticky-left"):"right"===t&&o.classList.add("is-sticky-right")}f&&r._bindCellHoverIn(o),o.appendChild(Gl("div")).innerHTML=as(n,v,i),t.appendChild(o)}t.addEventListener("click",t[pl]=r=>{e.emit("rowclick",{event:r,filteredRowIndex:i,rowIndex:p,rowEl:t,rowData:v})}),e.emit("rowcreate",{filteredRowIndex:i,rowIndex:p,rowEl:t,rowData:v})},onItemUnrender:t=>{t[pl]&&t.removeEventListener("click",t[pl]),function(e,t){const r=e._p;for(let e=0,n=t.childNodes,i=n.length;e<i;e++)r._unbindCellHoverIn(n[e])}(e,t),e.emit("rowdestroy",t)},onScrollHeightChange:t=>{t>r._lastVirtualScrollHeight&&!r.scrollbarWidth&&Jl(e),r._lastVirtualScrollHeight=t}}),r.virtualListHelper.setCount((null!==(t=r.filteredRows)&&void 0!==t?t:r.rows).length),r.notifyRendererOfColumnsConfig()}(e)}}(this),this.tableWidthChanged(!0,!1),function(e){const t=e._p,r=e._o,n=r.allowCellPreview,i=r.allowHeaderCellPreview,o=r.tableClassName+"-header-cell",l=t.headerRow;for(let a=0;a<t.visibleColumns.length;a++){const u=t.visibleColumns[a];if(u.visible){var s;const c=Gl("div");c.draggable=!0,c.className=o,c.style.width=(null!==(s=u.actualWidth)&&void 0!==s?s:0)+"px",r.sortableColumns&&u.sortable&&(c.className+=" sortable"),c.columnName=u.name,c.setAttribute("data-column",u.name);const d=Gl("div");d.innerHTML=r.headerCellFormatter(u.label,u.name),c.appendChild(d),n&&i&&t._bindCellHoverIn(c),l.appendChild(c),t.visibleColumns[a].element=c,ns(e,c),Nl(c)}}Ql(e),e.emit("headerrowcreate",l)}(this),t.virtualListHelper.setCount((null!==(i=t.filteredRows)&&void 0!==i?i:t.rows).length),Yl(this),Jl(this,!0),Kl(this,!0);for(let e=0;e<t.rows.sortColumn.length;e++)rs(this,t.rows.sortColumn[e].column,t.rows.sortColumn[e].descending);e.adjustColumnWidthForSortArrow&&t.rows.sortColumn.length?this.tableWidthChanged(!0):e.virtualTable||this.tableWidthChanged(),isNaN(o)||(t.table.scrollTop=o),isNaN(s)||(r.setScrollHorz(t.table,s),r.setScrollHorz(t.header,s)),this.emit("renderskeleton")}return t.virtualListHelper.render(),this.emit("render"),this}clearAndRender(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}setColumns(e,t){const r=this._p;e=e||[];let n=new Rl;for(let t=0,r=0;t<e.length;t++){let i=e[t],o=os(this._o,i);void 0!==i.order?(i.order>r&&(r=i.order+1),o.order=i.order):o.order=r++,n.push(o)}return n.normalizeOrder(),r.columns=n,r.visibleColumns=n.getVisibleColumns(),ls(this),this.clearAndRender(t),this}addColumn(e,t,r){const n=this._p;let i=n.columns;if(e&&!i.get(e.name)){let o=null;void 0!==t&&(o="string"==typeof t?i.get(t):i.getByOrder(t));let l=os(this._o,e);l.order=o?o.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(),n.visibleColumns=i.getVisibleColumns(),ls(this),this.clearAndRender(r),this.emit("addcolumn",l.name)}return this}removeColumn(e,t){const r=this._p;let n=r.columns,i=n.indexOf(e);return i>-1&&(n.splice(i,1),n.normalizeOrder(),r.visibleColumns=n.getVisibleColumns(),ls(this),this.clearAndRender(t),this.emit("removecolumn",e)),this}setColumnLabel(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.firstChild.childNodes.length;e++){let t=r.element.firstChild.childNodes[e];if(3===t.nodeType){t.textContent=r.label;break}}return this}moveColumn(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=this._o,o=this._p;let l,s,a=o.columns,u=r?o.visibleColumns:a.getColumns();if("string"==typeof e?l=a.get(e):"number"==typeof e&&(l=u[e]),"string"==typeof t?s=a.get(t):"number"==typeof t&&(s=u[t]),l&&s&&e!==t){let e=l.order,t=s.order,r=a.moveColumn(l,s).getVisibleColumns();if(o.visibleColumns.length!==r.length||o.visibleColumns.some((e,t)=>e!==r[t]))if(o.visibleColumns=r,ls(this),n.virtualTable)this.clearAndRender();else{var c,d;const r=i.scopedSelectorAll(o.headerRow,">div.".concat(n.tableClassName,"-header-cell"));let l=e<t?t+1:t,s=e;r[0].parentNode.insertBefore(r[s],r[l]);let a=o.visibleColumns[e],u=(null!==(c=a.actualWidthConsideringScrollbarWidth||a.actualWidth)&&void 0!==c?c:0)+"px",h=o.visibleColumns[t],f=(null!==(d=h.actualWidthConsideringScrollbarWidth||h.actualWidth)&&void 0!==d?d:0)+"px",m=o.tbody.childNodes;for(let r=0,n=m.length;r<n;r++){let n=m[r];1===n.nodeType&&(n.insertBefore(n.childNodes[s],n.childNodes[l]),n.childNodes[t].firstChild.style.width=f,n.childNodes[e].firstChild.style.width=u)}}this.emit("movecolumn",{name:l.name,src:e,dest:t})}return this}setColumnVisible(e,t){const r=this._p;let n=r.columns.get(e);return t=!!t,n&&!!n.visible!==t&&(n.visible=t,r.visibleColumns=r.columns.getVisibleColumns(),this.emit(t?"showcolumn":"hidecolumn",e),ls(this),this.clearAndRender()),this}isColumnVisible(e){let t=this._p.columns.get(e);return!!t&&t.visible}setMinColumnWidth(e){let t=this._o;return e=Math.max(e,0),t.minColumnWidth!==e&&(t.minColumnWidth=e,this.tableWidthChanged(!0)),this}getMinColumnWidth(){return this._o.minColumnWidth}setColumnWidth(e,t){let r=this._p.columns.get(e),n=is(t,r.ignoreMin?0:this._o.minColumnWidth);if(r){let e=Fl(r);r.width=n.width,r.widthMode=n.mode;let t=Fl(r);e!==t&&this.tableWidthChanged(!0),this.emit("columnwidth",{name:r.name,width:t,oldWidth:e})}return this}getColumnWidth(e){let t=this._p.columns.get(e);return t?Fl(t):null}getColumnConfig(e){let t=this._p.columns.get(e);return t?{order:t.order,width:Fl(t),visible:t.visible,label:t.label}:null}getColumnsConfig(){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}setSortableColumns(e){const t=this._p,r=this._o;if(r.sortableColumns!==e&&(r.sortableColumns=e,t.table)){const e=i.scopedSelectorAll(t.headerRow,">div.".concat(r.tableClassName,"-header-cell"));for(let n=0,i=e.length;n<i;n++)e[n].classList[r.sortableColumns>0&&t.visibleColumns[n].sortable?"add":"remove"]("sortable")}return this}getSortableColumns(){return this._o.sortableColumns}setMovableColumns(e){let t=this._o;return e=void 0===e||!!e,t.movableColumns!==e&&(t.movableColumns=e),this}getMovableColumns(){return this._o.movableColumns}setResizableColumns(e){let t=this._o;return e=void 0===e||!!e,t.resizableColumns!==e&&(t.resizableColumns=e),this}getResizableColumns(){return this._o.resizableColumns}setOnComparatorRequired(e){let t=this._o;return t.onComparatorRequired!==e&&(t.onComparatorRequired=e),this}setCustomSortingProvider(e){let t=this._o;return t.customSortingProvider!==e&&(t.customSortingProvider=e),this}sort(e,t,r){const n=this._o,i=this._p;let o=i.columns.get(e),l=i.rows.sortColumn;if(o){if(r){for(let e=0;e<l.length;e++)if(l[e].column===o.name){e<l.length-1?l.length=0:(t=l[l.length-1].descending,l.splice(l.length-1,1));break}(n.sortableColumns>0&&l.length>=n.sortableColumns||l.length>=i.visibleColumns.length)&&(l.length=0)}else l.length=0;t=void 0!==t&&t,l.push({column:o.name,comparePath:o.comparePath||o.dataPath,descending:!!t})}else l.length=0;ts(this);for(let e=0;e<l.length;e++)rs(this,l[e].column,l[e].descending);n.adjustColumnWidthForSortArrow&&!i.tableSkeletonNeedsRendering&&this.tableWidthChanged(!0),i.rows.sortColumn=l,l.length&&(i.rows.sort(),i.filteredRows&&i.filteredRows.sort()),i.virtualListHelper&&i.virtualListHelper.invalidate().render();let s=[];for(let e=0;e<l.length;e++)s.push({column:l[e].column,descending:l[e].descending});return this.emit("sort",{sorts:s}),this}resort(){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);e.rows.sortColumn=r,r.length&&(e.rows.sort(),e.filteredRows&&e.filteredRows.sort());let n=[];for(let e=0;e<r.length;e++)n.push({column:r[e].column,descending:r[e].descending});this.emit("sort",{sorts:n,resort:!0})}return this}getSortedColumns(){const e=this._p;let t=[];for(let r=0;r<e.rows.sortColumn.length;r++){let n=e.rows.sortColumn[r];t.push({column:n.column,descending:n.descending})}return t}setCellFormatter(e){if(!e){const t=e=>"string"==typeof e?cl(e):e;t[fl]=!0,e=t}return this._o.cellFormatter=e,this}setHeaderCellFormatter(e){return this._o.headerCellFormatter=e||function(e){return"string"==typeof e?cl(e):e},this}setFilter(e){return this._o.filter=e,this}filter(e){const t=this._p;let r=this._o.filter||xl;"string"==typeof arguments[0]&&"string"==typeof arguments[1]&&(e={column:arguments[0],keyword:arguments[1],caseSensitive:arguments[2]});let n=!!t.filteredRows;return t.filteredRows&&(t.filteredRows=null),t.filterArgs=null==e?null:"object"!=typeof e||Array.isArray(e)?e:Object.assign({},e),null!==t.filterArgs?(t.filteredRows=t.rows.filteredCollection(r,t.filterArgs),(n||t.filteredRows)&&(this.clearAndRender(),this.emit("filter",e))):(t.filterArgs=null,t.filteredRows=null,this.clearAndRender(),this.emit("filterclear",{})),this}clearFilter(){const e=this._p;return e.filteredRows&&(e.filterArgs=null,e.filteredRows=null,this.clearAndRender(),this.emit("filterclear",{})),this}getHtmlForRowCell(e,t){const r=this._p;if(e<0||e>r.rows.length-1)return null;let n=r.columns.get(t);if(!n)return null;let i=r.rows[e];return as(this._o,i,n)}getHtmlForRowDataCell(e,t){let r=this._p.columns.get(t);return r?as(this._o,e,r):null}getRowYPos(e){return this._p.virtualListHelper.getItemPosition(e)||null}getDataForRow(e){const t=this._p;return e<0||e>t.rows.length-1?null:t.rows[e]}getRowCount(){const e=this._p;return e.rows?e.rows.length:0}getIndexForRow(e){return this._p.rows.indexOf(e)}getFilteredRowCount(){const e=this._p;return(e.filteredRows||e.rows).length}getIndexForFilteredRow(e){const t=this._p;return(t.filteredRows||t.rows).indexOf(e)}getDataForFilteredRow(e){const t=this._p;return e<0||e>(t.filteredRows||t.rows).length-1?null:(t.filteredRows||t.rows)[e]}getHeaderRowElement(){return this._p.headerRow}addRows(e,t,r,n){let i=this._p;"boolean"==typeof t&&(n=r,r=t,t=-1),"number"!=typeof t&&(t=-1),(t<0||t>i.rows.length)&&(t=i.rows.length),n=void 0===n||!!n;const o=(Array.isArray(e)?e:[e]).length;return e&&(i.rows.add(e,t),i.filteredRows||r&&i.rows.sortColumn.length?(r&&i.rows.sortColumn.length?this.resort():ss(this),i.tableSkeletonNeedsRendering=!0,n&&this.render()):n&&(i.virtualListHelper.addItemsAt(o,t),this._o.virtualTable?(Yl(this),Jl(this),this.render(),Kl(this,!1)):i.tbody&&(this.render(),Jl(this),Kl(this,!0))),this.emit("addrows",{count:o,clear:!1})),this}removeRows(e,t,r){let n=this._p;return"number"!=typeof t||t<=0||e<0||e>n.rows.length-1||(n.rows.splice(e,t),r=void 0===r||!!r,n.filteredRows?(ss(this),n.tableSkeletonNeedsRendering=!0,r&&this.render()):r&&(n.virtualListHelper.removeItemsAt(t,e),this._o.virtualTable?(Yl(this),Jl(this),this.render(),Kl(this,!1)):(this.render(),Jl(this),Kl(this,!0)))),this}removeRow(e,t){return this.removeRows(e,1,t)}refreshRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this._p;if(e<0||e>r.rows.length-1)return this;let n=-1;return r.filteredRows&&-1===(n=r.filteredRows.indexOf(r.rows[e]))||(-1===n&&(n=e),r.virtualListHelper.refreshItemAt(n),t&&r.virtualListHelper.render()),this}getRowElement(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]))?null:(-1===r&&(r=e),t.virtualListHelper.getItemElementAt(r)||null)}refreshAllVirtualRows(){return this._p.virtualListHelper.invalidate().render(),this}setRows(e,t){let r=this._p;return r.rows.reset(e),t&&r.rows.sortColumn.length?this.resort():ss(this),this.clearAndRender().emit("addrows",{count:e.length,clear:!0}),this}tableWidthChanged(e,t){let r=this._o,n=this._p,i=Ol(this),o=i,l=0;if(!n.table)return this;t=void 0===t||t;let s=0;if(n.tbody||(t=!1),t&&(s=parseFloat(n.tbody.style.minWidth)||0),o!==n.lastDetectedWidth||e){var a;n.lastDetectedWidth=i;let e=0,u=[],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 i=n.visibleColumns[t];if(1===i.widthMode){let n=i.width;n+=i.arrowProposedWidth||0,!i.ignoreMin&&n<r.minColumnWidth&&(n=r.minColumnWidth),o-=n,e+=n,n!==i.actualWidth&&(i.actualWidth=n,u.push(t))}else if(0===i.widthMode){let n=El(this,i.label)+20;n+=i.arrowProposedWidth||0,!i.ignoreMin&&n<r.minColumnWidth&&(n=r.minColumnWidth),o-=n,e+=n,n!==i.actualWidth&&(i.actualWidth=n,r.convertColumnWidthsToRelative||u.push(t))}else 2===i.widthMode&&(c+=i.width,l++)}if(r.convertColumnWidthsToRelative)for(let t=0;t<n.visibleColumns.length;t++){let r=n.visibleColumns[t];0===r.widthMode&&(r.widthMode=2,o+=r.actualWidth,r.width=r.actualWidth/e,c+=r.width,l++)}if(l&&(c<1&&r.relativeWidthGrowsToFillWidth||c>1&&r.relativeWidthShrinksToFillWidth))for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];2===t.widthMode&&(t.width/=c)}let d=Math.max(0,o);0===d&&(d=n.table.clientWidth);let h=r.minColumnWidth/d;if(isNaN(h)&&(h=0),h>0){let e,t=0;for(let e=0;e<n.visibleColumns.length;e++){let r=n.visibleColumns[e];2===r.widthMode&&!r.ignoreMin&&r.width<h&&(t+=h-r.width,r.width=h)}for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];2===i.widthMode&&!i.ignoreMin&&i.width>h&&t>0&&(e=Math.min(t,i.width-h),i.width-=e,t-=e)}}if(r.autoFillTableWidth&&o>0){let e=0,t=o;for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];i.resizable||1!==i.widthMode||(e+=i.width),2===i.widthMode&&(t-=Math.round(d*i.width))}let r=(i-e)/(i-t-e)||NaN;for(let e=0;e<n.visibleColumns.length&&t>0;e++){let t=n.visibleColumns[e];if(t.resizable||1!==t.widthMode)if(2===t.widthMode)t.width*=r;else{let n=t.actualWidth*r;t.actualWidth!==n&&(t.actualWidth=n,-1===u.indexOf(e)&&u.push(e))}}}for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];if(2===t.widthMode){let r=Math.round(d*t.width);o-=r,l--,0===l&&1===o&&(r++,o--),-1===o&&(r--,o++),r!==t.actualWidth&&(t.actualWidth=r,u.push(e))}}if(n.visibleColumns.length&&(n.visibleColumns[n.visibleColumns.length-1].actualWidthConsideringScrollbarWidth=n.visibleColumns[n.visibleColumns.length-1].actualWidth-(n.scrollbarWidth||0)),null===(a=n.notifyRendererOfColumnsConfig)||void 0===a||a.call(n),t){let e=Tl(this);s<e&&Kl(this,!1);for(let e=0;e<u.length;e++)es(this,u[e]);s>e&&Kl(this,!1)}}return this}tableHeightChanged(){let e=this._o,t=this._p;if(!t.table)return this;const r=getComputedStyle(t.table);let i=n.getElementHeight(this.el,!0)-(parseFloat(r.borderTopWidth)||0)-(parseFloat(r.borderBottomWidth)||0);return i!==e.height&&(e.height=i,t.tbody&&(t.tbody.style.height=Math.max(e.height-n.getElementHeight(t.header,!0,!0,!0),1)+"px"),e.virtualTable&&this.clearAndRender()),this}hideCellPreview(){return ds(this),this}abortCellPreview(){return this.hideCellPreview(),this}cancelColumnResize(){return Hl(this),this}getUrlForElementContent(e){let t,r=document.getElementById(e);if(r){let e=r.textContent;if("function"==typeof Blob)t=new Blob([e||""]);else{const r=window,n=r.BlobBuilder||r.WebKitBlobBuilder||r.MozBlobBuilder||r.MSBlobBuilder;if(!n)return null;const i=new n;i.append(e||""),t=i.getBlob()}return(window.URL||window.webkitURL).createObjectURL(t)}return null}isWorkerSupported(){return window.Worker instanceof Function}createWebWorker(e,t,r){if(this.isWorkerSupported()){let n=this._p,i=new Worker(e),o=e=>{e.data.append?this.addRows(e.data.rows,r):this.setRows(e.data.rows,r)};return i.addEventListener("message",o,!1),n.workerListeners||(n.workerListeners=[]),n.workerListeners.push({worker:i,listener:o}),(t||void 0===t)&&i.postMessage(null),i}return null}unbindWebWorker(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}}fs.VERSION="@@VERSION",fs.Width=Wl,module.exports=fs;
|
package/dist/lib.es6.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/dgtable.js 2.0.
|
|
2
|
+
* @danielgindi/dgtable.js 2.0.9
|
|
3
3
|
* git://github.com/danielgindi/dgtable.js.git
|
|
4
4
|
*/
|
|
5
5
|
import { getScrollHorz, setScrollHorz } from '@danielgindi/dom-utils/lib/ScrollHelper.js';
|
|
@@ -9252,6 +9252,6 @@ class DGTable {
|
|
|
9252
9252
|
DGTable.VERSION = '@@VERSION';
|
|
9253
9253
|
DGTable.Width = Width;
|
|
9254
9254
|
|
|
9255
|
-
export { DGTable as default };
|
|
9255
|
+
export { DGTable, DGTable as default };
|
|
9256
9256
|
|
|
9257
9257
|
//# sourceMappingURL=lib.es6.js.map
|
package/dist/lib.es6.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/dgtable.js 2.0.
|
|
2
|
+
* @danielgindi/dgtable.js 2.0.9
|
|
3
3
|
* git://github.com/danielgindi/dgtable.js.git
|
|
4
4
|
*/
|
|
5
5
|
import{getScrollHorz as e,setScrollHorz as t}from"@danielgindi/dom-utils/lib/ScrollHelper.js";import{getElementWidth as r,setCssProps as n,getElementOffset as i,getElementHeight as o,setElementWidth as l}from"@danielgindi/dom-utils/lib/Css.js";import{scopedSelectorAll as s}from"@danielgindi/dom-utils/lib/DomCompat.js";import a from"@danielgindi/dom-utils/lib/DomEventsSink.js";import u from"@danielgindi/virtual-list-helper";var c,d,h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},f={};function v(){if(d)return c;d=1;var e=function(e){return e&&e.Math===Math&&e};return c=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof h&&h)||e("object"==typeof c&&c)||function(){return this}()||Function("return this")()}var p,m,g,b,w,y,C,S,R={};function x(){return m?p:(m=1,p=function(e){try{return!!e()}catch(e){return!0}})}function L(){if(b)return g;b=1;var e=x();return g=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function _(){if(y)return w;y=1;var e=x();return w=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function k(){if(S)return C;S=1;var e=_(),t=Function.prototype.call;return C=e?t.bind(t):function(){return t.apply(t,arguments)},C}var W,P,N,O,T,A,E,F,z,I,M,H,j,B,U,q,D,V,$,G,X,Y,J,K,Q,Z,ee,te,re,ne,ie,oe,le,se,ae,ue,ce,de,he,fe,ve,pe={};function me(){if(W)return pe;W=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return pe.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,pe}function ge(){return N?P:(N=1,P=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function be(){if(T)return O;T=1;var e=_(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return O=e?n:function(e){return function(){return r.apply(e,arguments)}},O}function we(){if(E)return A;E=1;var e=be(),t=e({}.toString),r=e("".slice);return A=function(e){return r(t(e),8,-1)}}function ye(){if(z)return F;z=1;var e=be(),t=x(),r=we(),n=Object,i=e("".split);return F=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?i(e,""):n(e)}:n}function Ce(){return M?I:(M=1,I=function(e){return null==e})}function Se(){if(j)return H;j=1;var e=Ce(),t=TypeError;return H=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function Re(){if(U)return B;U=1;var e=ye(),t=Se();return B=function(r){return e(t(r))}}function xe(){if(D)return q;D=1;var e="object"==typeof document&&document.all;return q=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function Le(){if($)return V;$=1;var e=xe();return V=function(t){return"object"==typeof t?null!==t:e(t)}}function _e(){if(X)return G;X=1;var e=v(),t=xe();return G=function(r,n){return arguments.length<2?(i=e[r],t(i)?i:void 0):e[r]&&e[r][n];var i},G}function ke(){if(J)return Y;J=1;var e=be();return Y=e({}.isPrototypeOf)}function We(){if(Q)return K;Q=1;var e=v().navigator,t=e&&e.userAgent;return K=t?String(t):""}function Pe(){if(ee)return Z;ee=1;var e,t,r=v(),n=We(),i=r.process,o=r.Deno,l=i&&i.versions||o&&o.version,s=l&&l.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=+e[1]),Z=t}function Ne(){if(re)return te;re=1;var e=Pe(),t=x(),r=v().String;return te=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function Oe(){if(ie)return ne;ie=1;var e=Ne();return ne=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Te(){if(le)return oe;le=1;var e=_e(),t=xe(),r=ke(),n=Oe(),i=Object;return oe=n?function(e){return"symbol"==typeof e}:function(n){var o=e("Symbol");return t(o)&&r(o.prototype,i(n))}}function Ae(){if(ae)return se;ae=1;var e=String;return se=function(t){try{return e(t)}catch(e){return"Object"}}}function Ee(){if(ce)return ue;ce=1;var e=xe(),t=Ae(),r=TypeError;return ue=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function Fe(){if(he)return de;he=1;var e=Ee(),t=Ce();return de=function(r,n){var i=r[n];return t(i)?void 0:e(i)}}function ze(){if(ve)return fe;ve=1;var e=k(),t=xe(),r=Le(),n=TypeError;return fe=function(i,o){var l,s;if("string"===o&&t(l=i.toString)&&!r(s=e(l,i)))return s;if(t(l=i.valueOf)&&!r(s=e(l,i)))return s;if("string"!==o&&t(l=i.toString)&&!r(s=e(l,i)))return s;throw new n("Can't convert object to primitive value")}}var Ie,Me,He,je,Be,Ue,qe,De,Ve,$e,Ge,Xe,Ye,Je,Ke,Qe,Ze,et,tt,rt,nt,it,ot,lt,st={exports:{}};function at(){return Me?Ie:(Me=1,Ie=!1)}function ut(){if(je)return He;je=1;var e=v(),t=Object.defineProperty;return He=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function ct(){if(Be)return st.exports;Be=1;var e=at(),t=v(),r=ut(),n="__core-js_shared__",i=st.exports=t[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.48.0",mode:e?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"}),st.exports}function dt(){if(qe)return Ue;qe=1;var e=ct();return Ue=function(t,r){return e[t]||(e[t]=r||{})}}function ht(){if(Ve)return De;Ve=1;var e=Se(),t=Object;return De=function(r){return t(e(r))}}function ft(){if(Ge)return $e;Ge=1;var e=be(),t=ht(),r=e({}.hasOwnProperty);return $e=Object.hasOwn||function(e,n){return r(t(e),n)}}function vt(){if(Ye)return Xe;Ye=1;var e=be(),t=0,r=Math.random(),n=e(1.1.toString);return Xe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function pt(){if(Ke)return Je;Ke=1;var e=v(),t=dt(),r=ft(),n=vt(),i=Ne(),o=Oe(),l=e.Symbol,s=t("wks"),a=o?l.for||l:l&&l.withoutSetter||n;return Je=function(e){return r(s,e)||(s[e]=i&&r(l,e)?l[e]:a("Symbol."+e)),s[e]}}function mt(){if(Ze)return Qe;Ze=1;var e=k(),t=Le(),r=Te(),n=Fe(),i=ze(),o=pt(),l=TypeError,s=o("toPrimitive");return Qe=function(o,a){if(!t(o)||r(o))return o;var u,c=n(o,s);if(c){if(void 0===a&&(a="default"),u=e(c,o,a),!t(u)||r(u))return u;throw new l("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(o,a)}}function gt(){if(tt)return et;tt=1;var e=mt(),t=Te();return et=function(r){var n=e(r,"string");return t(n)?n:n+""}}function bt(){if(nt)return rt;nt=1;var e=v(),t=Le(),r=e.document,n=t(r)&&t(r.createElement);return rt=function(e){return n?r.createElement(e):{}}}function wt(){if(ot)return it;ot=1;var e=L(),t=x(),r=bt();return it=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function yt(){if(lt)return R;lt=1;var e=L(),t=k(),r=me(),n=ge(),i=Re(),o=gt(),l=ft(),s=wt(),a=Object.getOwnPropertyDescriptor;return R.f=e?a:function(e,u){if(e=i(e),u=o(u),s)try{return a(e,u)}catch(e){}if(l(e,u))return n(!t(r.f,e,u),e[u])},R}var Ct,St,Rt,xt,Lt,_t,kt,Wt={};function Pt(){if(St)return Ct;St=1;var e=L(),t=x();return Ct=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Nt(){if(xt)return Rt;xt=1;var e=Le(),t=String,r=TypeError;return Rt=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function Ot(){if(Lt)return Wt;Lt=1;var e=L(),t=wt(),r=Pt(),n=Nt(),i=gt(),o=TypeError,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a="enumerable",u="configurable",c="writable";return Wt.f=e?r?function(e,t,r){if(n(e),t=i(t),n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&c in r&&!r[c]){var o=s(e,t);o&&o[c]&&(e[t]=r.value,r={configurable:u in r?r[u]:o[u],enumerable:a in r?r[a]:o[a],writable:!1})}return l(e,t,r)}:l:function(e,r,s){if(n(e),r=i(r),n(s),t)try{return l(e,r,s)}catch(e){}if("get"in s||"set"in s)throw new o("Accessors not supported");return"value"in s&&(e[r]=s.value),e},Wt}function Tt(){if(kt)return _t;kt=1;var e=L(),t=Ot(),r=ge();return _t=e?function(e,n,i){return t.f(e,n,r(1,i))}:function(e,t,r){return e[t]=r,e}}var At,Et,Ft,zt,It,Mt,Ht,jt,Bt,Ut,qt,Dt,Vt,$t,Gt,Xt={exports:{}};function Yt(){if(Et)return At;Et=1;var e=L(),t=ft(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,i=t(r,"name"),o=i&&"something"===function(){}.name,l=i&&(!e||e&&n(r,"name").configurable);return At={EXISTS:i,PROPER:o,CONFIGURABLE:l}}function Jt(){if(zt)return Ft;zt=1;var e=be(),t=xe(),r=ct(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),Ft=r.inspectSource}function Kt(){if(jt)return Ht;jt=1;var e=dt(),t=vt(),r=e("keys");return Ht=function(e){return r[e]||(r[e]=t(e))}}function Qt(){return Ut?Bt:(Ut=1,Bt={})}function Zt(){if(Dt)return qt;Dt=1;var e,t,r,n=function(){if(Mt)return It;Mt=1;var e=v(),t=xe(),r=e.WeakMap;return It=t(r)&&/native code/.test(String(r))}(),i=v(),o=Le(),l=Tt(),s=ft(),a=ct(),u=Kt(),c=Qt(),d="Object already initialized",h=i.TypeError,f=i.WeakMap;if(n||a.state){var p=a.state||(a.state=new f);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new h(d);return t.facade=e,p.set(e,t),t},t=function(e){return p.get(e)||{}},r=function(e){return p.has(e)}}else{var m=u("state");c[m]=!0,e=function(e,t){if(s(e,m))throw new h(d);return t.facade=e,l(e,m,t),t},t=function(e){return s(e,m)?e[m]:{}},r=function(e){return s(e,m)}}return qt={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!o(r)||(n=t(r)).type!==e)throw new h("Incompatible receiver, "+e+" required");return n}}}}function er(){if(Vt)return Xt.exports;Vt=1;var e=be(),t=x(),r=xe(),n=ft(),i=L(),o=Yt().CONFIGURABLE,l=Jt(),s=Zt(),a=s.enforce,u=s.get,c=String,d=Object.defineProperty,h=e("".slice),f=e("".replace),v=e([].join),p=i&&!t(function(){return 8!==d(function(){},"length",{value:8}).length}),m=String(String).split("String"),g=Xt.exports=function(e,t,r){"Symbol("===h(c(t),0,7)&&(t="["+f(c(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!n(e,"name")||o&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),p&&r&&n(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var l=a(e);return n(l,"source")||(l.source=v(m,"string"==typeof t?t:"")),e};return Function.prototype.toString=g(function(){return r(this)&&u(this).source||l(this)},"toString"),Xt.exports}function tr(){if(Gt)return $t;Gt=1;var e=xe(),t=Ot(),r=er(),n=ut();return $t=function(i,o,l,s){s||(s={});var a=s.enumerable,u=void 0!==s.name?s.name:o;if(e(l)&&r(l,u,s),s.global)a?i[o]=l:n(o,l);else{try{s.unsafe?i[o]&&(a=!0):delete i[o]}catch(e){}a?i[o]=l:t.f(i,o,{value:l,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return i}}var rr,nr,ir,or,lr,sr,ar,ur,cr,dr,hr,fr,vr,pr,mr,gr,br,wr={};function yr(){if(or)return ir;or=1;var e=function(){if(nr)return rr;nr=1;var e=Math.ceil,t=Math.floor;return rr=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)}}();return ir=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function Cr(){if(sr)return lr;sr=1;var e=yr(),t=Math.max,r=Math.min;return lr=function(n,i){var o=e(n);return o<0?t(o+i,0):r(o,i)}}function Sr(){if(ur)return ar;ur=1;var e=yr(),t=Math.min;return ar=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function Rr(){if(dr)return cr;dr=1;var e=Sr();return cr=function(t){return e(t.length)}}function xr(){if(pr)return vr;pr=1;var e=be(),t=ft(),r=Re(),n=function(){if(fr)return hr;fr=1;var e=Re(),t=Cr(),r=Rr(),n=function(n){return function(i,o,l){var s=e(i),a=r(s);if(0===a)return!n&&-1;var u,c=t(l,a);if(n&&o!=o){for(;a>c;)if((u=s[c++])!=u)return!0}else for(;a>c;c++)if((n||c in s)&&s[c]===o)return n||c||0;return!n&&-1}};return hr={includes:n(!0),indexOf:n(!1)}}().indexOf,i=Qt(),o=e([].push);return vr=function(e,l){var s,a=r(e),u=0,c=[];for(s in a)!t(i,s)&&t(a,s)&&o(c,s);for(;l.length>u;)t(a,s=l[u++])&&(~n(c,s)||o(c,s));return c}}function Lr(){return gr?mr:(gr=1,mr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var _r,kr,Wr,Pr,Nr,Or,Tr,Ar,Er,Fr,zr,Ir,Mr,Hr,jr,Br,Ur,qr,Dr,Vr,$r,Gr,Xr,Yr,Jr,Kr,Qr,Zr,en,tn,rn={};function nn(){return _r||(_r=1,rn.f=Object.getOwnPropertySymbols),rn}function on(){if(Wr)return kr;Wr=1;var e=_e(),t=be(),r=function(){if(br)return wr;br=1;var e=xr(),t=Lr().concat("length","prototype");return wr.f=Object.getOwnPropertyNames||function(r){return e(r,t)},wr}(),n=nn(),i=Nt(),o=t([].concat);return kr=e("Reflect","ownKeys")||function(e){var t=r.f(i(e)),l=n.f;return l?o(t,l(e)):t}}function ln(){if(Nr)return Pr;Nr=1;var e=ft(),t=on(),r=yt(),n=Ot();return Pr=function(i,o,l){for(var s=t(o),a=n.f,u=r.f,c=0;c<s.length;c++){var d=s[c];e(i,d)||l&&e(l,d)||a(i,d,u(o,d))}}}function sn(){if(Er)return Ar;Er=1;var e=v(),t=yt().f,r=Tt(),n=tr(),i=ut(),o=ln(),l=function(){if(Tr)return Or;Tr=1;var e=x(),t=xe(),r=/#|\.prototype\./,n=function(r,n){var a=o[i(r)];return a===s||a!==l&&(t(n)?e(n):!!n)},i=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},o=n.data={},l=n.NATIVE="N",s=n.POLYFILL="P";return Or=n}();return Ar=function(s,a){var u,c,d,h,f,v=s.target,p=s.global,m=s.stat;if(u=p?e:m?e[v]||i(v,{}):e[v]&&e[v].prototype)for(c in a){if(h=a[c],d=s.dontCallGetSet?(f=t(u,c))&&f.value:u[c],!l(p?c:v+(m?".":"#")+c,s.forced)&&void 0!==d){if(typeof h==typeof d)continue;o(h,d)}(s.sham||d&&d.sham)&&r(h,"sham",!0),n(u,c,h,s)}}}function an(){if(zr)return Fr;zr=1;var e=Ae(),t=TypeError;return Fr=function(r,n){if(!delete r[n])throw new t("Cannot delete property "+e(n)+" of "+e(r))}}function un(){if(jr)return Hr;jr=1;var e=function(){if(Mr)return Ir;Mr=1;var e={};return e[pt()("toStringTag")]="z",Ir="[object z]"===String(e)}(),t=xe(),r=we(),n=pt()("toStringTag"),i=Object,o="Arguments"===r(function(){return arguments}());return Hr=e?r:function(e){var l,s,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(l=i(e),n))?s:o?r(l):"Object"===(a=r(l))&&t(l.callee)?"Arguments":a}}function cn(){if(Ur)return Br;Ur=1;var e=un(),t=String;return Br=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function dn(){if(Dr)return qr;Dr=1;var e=be();return qr=e([].slice)}function hn(){if($r)return Vr;$r=1;var e=dn(),t=Math.floor,r=function(n,i){var o=n.length;if(o<8)for(var l,s,a=1;a<o;){for(s=a,l=n[a];s&&i(n[s-1],l)>0;)n[s]=n[--s];s!==a++&&(n[s]=l)}else for(var u=t(o/2),c=r(e(n,0,u),i),d=r(e(n,u),i),h=c.length,f=d.length,v=0,p=0;v<h||p<f;)n[v+p]=v<h&&p<f?i(c[v],d[p])<=0?c[v++]:d[p++]:v<h?c[v++]:d[p++];return n};return Vr=r}function fn(){if(Xr)return Gr;Xr=1;var e=x();return Gr=function(t,r){var n=[][t];return!!n&&e(function(){n.call(null,r||function(){return 1},1)})}}!function(){if(tn)return f;tn=1;var e=sn(),t=be(),r=Ee(),n=ht(),i=Rr(),o=an(),l=cn(),s=x(),a=hn(),u=fn(),c=function(){if(Jr)return Yr;Jr=1;var e=We().match(/firefox\/(\d+)/i);return Yr=!!e&&+e[1]}(),d=function(){if(Qr)return Kr;Qr=1;var e=We();return Kr=/MSIE|Trident/.test(e)}(),h=Pe(),v=function(){if(en)return Zr;en=1;var e=We().match(/AppleWebKit\/(\d+)\./);return Zr=!!e&&+e[1]}(),p=[],m=t(p.sort),g=t(p.push),b=s(function(){p.sort(void 0)}),w=s(function(){p.sort(null)}),y=u("sort"),C=!s(function(){if(h)return h<70;if(!(c&&c>3)){if(d)return!0;if(v)return v<603;var e,t,r,n,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(n=0;n<47;n++)p.push({k:t+n,v:r})}for(p.sort(function(e,t){return t.v-e.v}),n=0;n<p.length;n++)t=p[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});e({target:"Array",proto:!0,forced:b||!w||!y||!C},{sort:function(e){void 0!==e&&r(e);var t=n(this);if(C)return void 0===e?m(t):m(t,e);var s,u,c=[],d=i(t);for(u=0;u<d;u++)u in t&&g(c,t[u]);for(a(c,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:l(t)>l(r)?1:-1}}(e)),s=i(c),u=0;u<s;)t[u]=c[u++];for(;u<d;)o(t,u++);return t}})}();var vn,pn,mn,gn,bn,wn,yn,Cn,Sn,Rn,xn,Ln,_n,kn,Wn,Pn,Nn,On,Tn,An,En,Fn,zn,In,Mn,Hn,jn,Bn,Un,qn,Dn,Vn,$n,Gn,Xn,Yn,Jn,Kn,Qn,Zn,ei={},ti={};function ri(){if(wn)return bn;wn=1;var e=xr(),t=Lr();return bn=Object.keys||function(r){return e(r,t)}}function ni(){if(Sn)return Cn;Sn=1;var e=_e();return Cn=e("document","documentElement")}function ii(){if(xn)return Rn;xn=1;var e,t=Nt(),r=function(){if(yn)return ti;yn=1;var e=L(),t=Pt(),r=Ot(),n=Nt(),i=Re(),o=ri();return ti.f=e&&!t?Object.defineProperties:function(e,t){n(e);for(var l,s=i(t),a=o(t),u=a.length,c=0;u>c;)r.f(e,l=a[c++],s[l]);return e},ti}(),n=Lr(),i=Qt(),o=ni(),l=bt(),s=Kt(),a="prototype",u="script",c=s("IE_PROTO"),d=function(){},h=function(e){return"<"+u+">"+e+"</"+u+">"},f=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,r,i;v="undefined"!=typeof document?document.domain&&e?f(e):(r=l("iframe"),i="java"+u+":",r.style.display="none",o.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):f(e);for(var s=n.length;s--;)delete v[a][n[s]];return v()};return i[c]=!0,Rn=Object.create||function(e,n){var i;return null!==e?(d[a]=t(e),i=new d,d[a]=null,i[c]=e):i=v(),void 0===n?i:r.f(i,n)}}function oi(){if(_n)return Ln;_n=1;var e=pt(),t=ii(),r=Ot().f,n=e("unscopables"),i=Array.prototype;return void 0===i[n]&&r(i,n,{configurable:!0,value:t(null)}),Ln=function(e){i[n][e]=!0}}function li(){return Wn?kn:(Wn=1,kn={})}function si(){if(Tn)return On;Tn=1;var e=ft(),t=xe(),r=ht(),n=Kt(),i=function(){if(Nn)return Pn;Nn=1;var e=x();return Pn=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}(),o=n("IE_PROTO"),l=Object,s=l.prototype;return On=i?l.getPrototypeOf:function(n){var i=r(n);if(e(i,o))return i[o];var a=i.constructor;return t(a)&&i instanceof a?a.prototype:i instanceof l?s:null}}function ai(){if(En)return An;En=1;var e,t,r,n=x(),i=xe(),o=Le(),l=ii(),s=si(),a=tr(),u=pt(),c=at(),d=u("iterator"),h=!1;return[].keys&&("next"in(r=[].keys())?(t=s(s(r)))!==Object.prototype&&(e=t):h=!0),!o(e)||n(function(){var t={};return e[d].call(t)!==t})?e={}:c&&(e=l(e)),i(e[d])||a(e,d,function(){return this}),An={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}}function ui(){if(zn)return Fn;zn=1;var e=Ot().f,t=ft(),r=pt()("toStringTag");return Fn=function(n,i,o){n&&!o&&(n=n.prototype),n&&!t(n,r)&&e(n,r,{configurable:!0,value:i})}}function ci(){if(Mn)return In;Mn=1;var e=ai().IteratorPrototype,t=ii(),r=ge(),n=ui(),i=li(),o=function(){return this};return In=function(l,s,a,u){var c=s+" Iterator";return l.prototype=t(e,{next:r(+!u,a)}),n(l,c,!1,!0),i[c]=o,l}}function di(){if(Un)return Bn;Un=1;var e=Le();return Bn=function(t){return e(t)||null===t}}function hi(){if(Dn)return qn;Dn=1;var e=di(),t=String,r=TypeError;return qn=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function fi(){if(Xn)return Gn;Xn=1;var e=sn(),t=k(),r=at(),n=Yt(),i=xe(),o=ci(),l=si(),s=function(){if($n)return Vn;$n=1;var e=function(){if(jn)return Hn;jn=1;var e=be(),t=Ee();return Hn=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch(e){}}}(),t=Le(),r=Se(),n=hi();return Vn=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,l={};try{(i=e(Object.prototype,"__proto__","set"))(l,[]),o=l instanceof Array}catch(e){}return function(e,l){return r(e),n(l),t(e)?(o?i(e,l):e.__proto__=l,e):e}}():void 0)}(),a=ui(),u=Tt(),c=tr(),d=pt(),h=li(),f=ai(),v=n.PROPER,p=n.CONFIGURABLE,m=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,b=d("iterator"),w="keys",y="values",C="entries",S=function(){return this};return Gn=function(n,d,f,R,x,L,_){o(f,d,R);var k,W,P,N=function(e){if(e===x&&F)return F;if(!g&&e&&e in A)return A[e];switch(e){case w:case y:case C:return function(){return new f(this,e)}}return function(){return new f(this)}},O=d+" Iterator",T=!1,A=n.prototype,E=A[b]||A["@@iterator"]||x&&A[x],F=!g&&E||N(x),z="Array"===d&&A.entries||E;if(z&&(k=l(z.call(new n)))!==Object.prototype&&k.next&&(r||l(k)===m||(s?s(k,m):i(k[b])||c(k,b,S)),a(k,O,!0,!0),r&&(h[O]=S)),v&&x===y&&E&&E.name!==y&&(!r&&p?u(A,"name",y):(T=!0,F=function(){return t(E,this)})),x)if(W={values:N(y),keys:L?F:N(w),entries:N(C)},_)for(P in W)(g||T||!(P in A))&&c(A,P,W[P]);else e({target:d,proto:!0,forced:g||T},W);return r&&!_||A[b]===F||c(A,b,F,{name:x}),h[d]=F,W}}function vi(){return Jn?Yn:(Jn=1,Yn=function(e,t){return{value:e,done:t}})}function pi(){if(Qn)return Kn;Qn=1;var e=Re(),t=oi(),r=li(),n=Zt(),i=Ot().f,o=fi(),l=vi(),s=at(),a=L(),u="Array Iterator",c=n.set,d=n.getterFor(u);Kn=o(Array,"Array",function(t,r){c(this,{type:u,target:e(t),index:0,kind:r})},function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(r,!1);case"values":return l(t[r],!1)}return l([r,t[r]],!1)},"values");var h=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!s&&a&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(e){}return Kn}!function(){if(Zn)return ei;Zn=1;var e=v(),t=pn?vn:(pn=1,vn={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),r=function(){if(gn)return mn;gn=1;var e=bt()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return mn=t===Object.prototype?void 0:t}(),n=pi(),i=Tt(),o=ui(),l=pt()("iterator"),s=n.values,a=function(e,r){if(e){if(e[l]!==s)try{i(e,l,s)}catch(t){e[l]=s}if(o(e,r,!0),t[r])for(var a in n)if(e[a]!==n[a])try{i(e,a,n[a])}catch(t){e[a]=n[a]}}};for(var u in t)a(e[u]&&e[u].prototype,u);a(r,"DOMTokenList")}();var mi,gi,bi,wi,yi,Ci,Si,Ri,xi,Li,_i,ki,Wi,Pi,Ni,Oi,Ti,Ai,Ei,Fi,zi,Ii,Mi,Hi,ji,Bi,Ui,qi,Di,Vi,$i,Gi,Xi,Yi,Ji,Ki,Qi,Zi,eo,to={},ro={};function no(){if(gi)return mi;gi=1;var e=be(),t=yr(),r=cn(),n=Se(),i=e("".charAt),o=e("".charCodeAt),l=e("".slice),s=function(e){return function(s,a){var u,c,d=r(n(s)),h=t(a),f=d.length;return h<0||h>=f?e?"":void 0:(u=o(d,h))<55296||u>56319||h+1===f||(c=o(d,h+1))<56320||c>57343?e?i(d,h):u:e?l(d,h,h+2):c-56320+(u-55296<<10)+65536}};return mi={codeAt:s(!1),charAt:s(!0)}}function io(){if(yi)return wi;yi=1;var e=x(),t=pt(),r=L(),n=at(),i=t("iterator");return wi=!e(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,o=new URLSearchParams("a=1&a=2&b=3"),l="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),l+=r+e}),o.delete("a",2),o.delete("b",void 0),n&&(!e.toJSON||!o.has("a",1)||o.has("a",2)||!o.has("a",void 0)||o.has("b"))||!t.size&&(n||!r)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==l||"x"!==new URL("https://x",void 0).host})}function oo(){if(xi)return Ri;xi=1;var e=function(){if(Si)return Ci;Si=1;var e=we(),t=be();return Ci=function(r){if("Function"===e(r))return t(r)}}(),t=Ee(),r=_(),n=e(e.bind);return Ri=function(e,i){return t(e),void 0===i?e:r?n(e,i):function(){return e.apply(i,arguments)}},Ri}function lo(){if(_i)return Li;_i=1;var e=er(),t=Ot();return Li=function(r,n,i){return i.get&&e(i.get,n,{getter:!0}),i.set&&e(i.set,n,{setter:!0}),t.f(r,n,i)}}function so(){if(Wi)return ki;Wi=1;var e=ke(),t=TypeError;return ki=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")}}function ao(){if(Ti)return Oi;Ti=1;var e=k(),t=Nt(),r=Fe();return Oi=function(n,i,o){var l,s;t(n);try{if(!(l=r(n,"return"))){if("throw"===i)throw o;return o}l=e(l,n)}catch(e){s=!0,l=e}if("throw"===i)throw o;if(s)throw l;return t(l),o}}function uo(){if(Ei)return Ai;Ei=1;var e=Nt(),t=ao();return Ai=function(r,n,i,o){try{return o?n(e(i)[0],i[1]):n(i)}catch(e){t(r,"throw",e)}}}function co(){if(zi)return Fi;zi=1;var e=pt(),t=li(),r=e("iterator"),n=Array.prototype;return Fi=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}function ho(){if(Mi)return Ii;Mi=1;var e=be(),t=x(),r=xe(),n=un(),i=_e(),o=Jt(),l=function(){},s=i("Reflect","construct"),a=/^\s*(?:class|function)\b/,u=e(a.exec),c=!a.test(l),d=function(e){if(!r(e))return!1;try{return s(l,[],e),!0}catch(e){return!1}},h=function(e){if(!r(e))return!1;switch(n(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!u(a,o(e))}catch(e){return!0}};return h.sham=!0,Ii=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?h:d}function fo(){if(ji)return Hi;ji=1;var e=L(),t=Ot(),r=ge();return Hi=function(n,i,o){e?t.f(n,i,r(0,o)):n[i]=o}}function vo(){if(Ui)return Bi;Ui=1;var e=we();return Bi=Array.isArray||function(t){return"Array"===e(t)}}function po(){if($i)return Vi;$i=1;var e=un(),t=Fe(),r=Ce(),n=li(),i=pt()("iterator");return Vi=function(o){if(!r(o))return t(o,i)||t(o,"@@iterator")||n[e(o)]}}function mo(){if(Xi)return Gi;Xi=1;var e=k(),t=Ee(),r=Nt(),n=Ae(),i=po(),o=TypeError;return Gi=function(l,s){var a=arguments.length<2?i(l):s;if(t(a))return r(e(a,l));throw new o(n(l)+" is not iterable")},Gi}function go(){if(Ji)return Yi;Ji=1;var e=oo(),t=k(),r=ht(),n=uo(),i=co(),o=ho(),l=Rr(),s=fo(),a=function(){if(Di)return qi;Di=1;var e=L(),t=vo(),r=TypeError,n=Object.getOwnPropertyDescriptor,i=e&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();return qi=i?function(e,i){if(t(e)&&!n(e,"length").writable)throw new r("Cannot set read only .length");return e.length=i}:function(e,t){return e.length=t}}(),u=mo(),c=po(),d=Array;return Yi=function(h){var f=r(h),v=o(this),p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m;g&&(m=e(m,p>2?arguments[2]:void 0));var b,w,y,C,S,R,x=c(f),L=0;if(!x||this===d&&i(x))for(b=l(f),w=v?new this(b):d(b);b>L;L++)R=g?m(f[L],L):f[L],s(w,L,R);else for(w=v?new this:[],S=(C=u(f,x)).next;!(y=t(S,C)).done;L++)R=g?n(C,m,[y.value,L],!0):y.value,s(w,L,R);return a(w,L),w},Yi}function bo(){if(eo)return Zi;eo=1;var e=TypeError;return Zi=function(t,r){if(t<r)throw new e("Not enough arguments");return t}}var wo,yo,Co,So,Ro,xo,Lo,_o,ko,Wo={};function Po(){if(Co)return yo;Co=1;var e=v(),t=L(),r=Object.getOwnPropertyDescriptor;return yo=function(n){if(!t)return e[n];var i=r(e,n);return i&&i.value}}function No(){if(Ro)return So;Ro=1;var e=tr();return So=function(t,r,n){for(var i in r)e(t,i,r[i],n);return t}}function Oo(){if(Lo)return xo;Lo=1,pi(),function(){if(wo)return Wo;wo=1;var e=sn(),t=be(),r=Cr(),n=RangeError,i=String.fromCharCode,o=String.fromCodePoint,l=t([].join);e({target:"String",stat:!0,arity:1,forced:!!o&&1!==o.length},{fromCodePoint:function(e){for(var t,o=[],s=arguments.length,a=0;s>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw new n(t+" is not a valid code point");o[a]=t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320)}return l(o,"")}})}();var e=sn(),t=v(),r=Po(),n=_e(),i=k(),o=be(),l=L(),s=io(),a=tr(),u=lo(),c=No(),d=ui(),h=ci(),f=Zt(),p=so(),m=xe(),g=ft(),b=oo(),w=un(),y=Nt(),C=Le(),S=cn(),R=ii(),x=ge(),_=mo(),W=po(),P=vi(),N=bo(),O=pt(),T=hn(),A=O("iterator"),E="URLSearchParams",F=E+"Iterator",z=f.set,I=f.getterFor(E),M=f.getterFor(F),H=r("fetch"),j=r("Request"),B=r("Headers"),U=j&&j.prototype,q=B&&B.prototype,D=t.TypeError,V=t.encodeURIComponent,$=String.fromCharCode,G=n("String","fromCodePoint"),X=parseInt,Y=o("".charAt),J=o([].join),K=o([].push),Q=o("".replace),Z=o([].shift),ee=o([].splice),te=o("".split),re=o("".slice),ne=o(/./.exec),ie=/\+/g,oe=/^[0-9a-f]+$/i,le=function(e,t){var r=re(e,t,t+2);return ne(oe,r)?X(r,16):NaN},se=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},ae=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},ue=function(e){for(var t=(e=Q(e,ie," ")).length,r="",n=0;n<t;){var i=Y(e,n);if("%"===i){if("%"===Y(e,n+1)||n+3>t){r+="%",n++;continue}var o=le(e,n+1);if(o!=o){r+=i,n++;continue}n+=2;var l=se(o);if(0===l)i=$(o);else{if(1===l||l>4){r+="�",n++;continue}for(var s=[o],a=1;a<l&&!(3+ ++n>t||"%"!==Y(e,n));){var u=le(e,n+1);if(u!=u){n+=3;break}if(u>191||u<128)break;K(s,u),n+=2,a++}if(s.length!==l){r+="�";continue}var c=ae(s);null===c?r+="�":i=G(c)}}r+=i,n++}return r},ce=/[!'()~]|%20/g,de={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},he=function(e){return de[e]},fe=function(e){return Q(V(e),ce,he)},ve=h(function(e,t){z(this,{type:F,target:I(e).entries,index:0,kind:t})},E,function(){var e=M(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,P(void 0,!0);var n=t[r];switch(e.kind){case"keys":return P(n.key,!1);case"values":return P(n.value,!1)}return P([n.key,n.value],!1)},!0),pe=function(e){this.entries=[],this.url=null,void 0!==e&&(C(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?re(e,1):e:S(e)))};pe.prototype={type:E,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,l,s,a,u=this.entries,c=W(e);if(c)for(r=(t=_(e,c)).next;!(n=i(r,t)).done;){if(l=(o=_(y(n.value))).next,(s=i(l,o)).done||(a=i(l,o)).done||!i(l,o).done)throw new D("Expected sequence with length 2");K(u,{key:S(s.value),value:S(a.value)})}else for(var d in e)g(e,d)&&K(u,{key:d,value:S(e[d])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=te(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(r=te(t,"="),K(n,{key:ue(Z(r)),value:ue(J(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],K(r,fe(e.key)+"="+fe(e.value));return J(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var me=function(){p(this,we);var e=z(this,new pe(arguments.length>0?arguments[0]:void 0));l||(this.size=e.entries.length)},we=me.prototype;if(c(we,{append:function(e,t){var r=I(this);N(arguments.length,2),K(r.entries,{key:S(e),value:S(t)}),l||this.size++,r.updateURL()},delete:function(e){for(var t=I(this),r=N(arguments.length,1),n=t.entries,i=S(e),o=r<2?void 0:arguments[1],s=void 0===o?o:S(o),a=0;a<n.length;){var u=n[a];if(u.key!==i||void 0!==s&&u.value!==s)a++;else if(ee(n,a,1),void 0!==s)break}l||(this.size=n.length),t.updateURL()},get:function(e){var t=I(this).entries;N(arguments.length,1);for(var r=S(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=I(this).entries;N(arguments.length,1);for(var r=S(e),n=[],i=0;i<t.length;i++)t[i].key===r&&K(n,t[i].value);return n},has:function(e){for(var t=I(this).entries,r=N(arguments.length,1),n=S(e),i=r<2?void 0:arguments[1],o=void 0===i?i:S(i),l=0;l<t.length;){var s=t[l++];if(s.key===n&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var r=I(this);N(arguments.length,1);for(var n,i=r.entries,o=!1,s=S(e),a=S(t),u=0;u<i.length;u++)(n=i[u]).key===s&&(o?ee(i,u--,1):(o=!0,n.value=a));o||K(i,{key:s,value:a}),l||(this.size=i.length),r.updateURL()},sort:function(){var e=I(this);T(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=I(this).entries,n=b(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new ve(this,"keys")},values:function(){return new ve(this,"values")},entries:function(){return new ve(this,"entries")}},{enumerable:!0}),a(we,A,we.entries,{name:"entries"}),a(we,"toString",function(){return I(this).serialize()},{enumerable:!0}),l&&u(we,"size",{get:function(){return I(this).entries.length},configurable:!0,enumerable:!0}),d(me,E),e({global:!0,constructor:!0,forced:!s},{URLSearchParams:me}),!s&&m(B)){var ye=o(q.has),Ce=o(q.set),Se=function(e){if(C(e)){var t,r=e.body;if(w(r)===E)return t=e.headers?new B(e.headers):new B,ye(t,"content-type")||Ce(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),R(e,{body:x(0,S(r)),headers:x(0,t)})}return e};if(m(H)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return H(e,arguments.length>1?Se(arguments[1]):{})}}),m(j)){var Re=function(e){return p(this,U),new j(e,arguments.length>1?Se(arguments[1]):{})};U.constructor=Re,Re.prototype=U,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Re})}}return xo={URLSearchParams:me,getState:I}}ko||(ko=1,function(){if(_o)return to;_o=1,function(){if(bi)return ro;bi=1;var e=no().charAt,t=cn(),r=Zt(),n=fi(),i=vi(),o="String Iterator",l=r.set,s=r.getterFor(o);n(String,"String",function(e){l(this,{type:o,string:t(e),index:0})},function(){var t,r=s(this),n=r.string,o=r.index;return o>=n.length?i(void 0,!0):(t=e(n,o),r.index+=t.length,i(t,!1))})}();var e,t=sn(),r=L(),n=io(),i=v(),o=oo(),l=be(),s=tr(),a=lo(),u=so(),c=ft(),d=function(){if(Ni)return Pi;Ni=1;var e=L(),t=be(),r=k(),n=x(),i=ri(),o=nn(),l=me(),s=ht(),a=ye(),u=Object.assign,c=Object.defineProperty,d=t([].concat);return Pi=!u||n(function(){if(e&&1!==u({b:1},u(c({},"a",{enumerable:!0,get:function(){c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach(function(e){r[e]=e}),7!==u({},t)[n]||i(u({},r)).join("")!==o})?function(t,n){for(var u=s(t),c=arguments.length,h=1,f=o.f,v=l.f;c>h;)for(var p,m=a(arguments[h++]),g=f?d(i(m),f(m)):i(m),b=g.length,w=0;b>w;)p=g[w++],e&&!r(v,m,p)||(u[p]=m[p]);return u}:u,Pi}(),h=go(),f=dn(),p=no().codeAt,m=function(){if(Qi)return Ki;Qi=1;var e=be(),t=2147483647,r=/[^\0-\u007E]/,n=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",o=RangeError,l=e(n.exec),s=Math.floor,a=String.fromCharCode,u=e("".charCodeAt),c=e([].join),d=e([].push),h=e("".replace),f=e("".split),v=e("".toLowerCase),p=function(e){return e+22+75*(e<26)},m=function(e,t,r){var n=0;for(e=r?s(e/700):e>>1,e+=s(e/t);e>455;)e=s(e/35),n+=36;return s(n+36*e/(e+38))},g=function(e){var r=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=u(e,r++);if(i>=55296&&i<=56319&&r<n){var o=u(e,r++);56320==(64512&o)?d(t,((1023&i)<<10)+(1023&o)+65536):(d(t,i),r--)}else d(t,i)}return t}(e);var n,l,h=e.length,f=128,v=0,g=72;for(n=0;n<e.length;n++)(l=e[n])<128&&d(r,a(l));var b=r.length,w=b;for(b&&d(r,"-");w<h;){var y=t;for(n=0;n<e.length;n++)(l=e[n])>=f&&l<y&&(y=l);var C=w+1;if(y-f>s((t-v)/C))throw new o(i);for(v+=(y-f)*C,f=y,n=0;n<e.length;n++){if((l=e[n])<f&&++v>t)throw new o(i);if(l===f){for(var S=v,R=36;;){var x=R<=g?1:R>=g+26?26:R-g;if(S<x)break;var L=S-x,_=36-x;d(r,a(p(x+L%_))),S=s(L/_),R+=36}d(r,a(p(S))),g=m(v,C,w===b),v=0,w++}}v++,f++}return c(r,"")};return Ki=function(e){var t,i,o=[],s=f(h(v(e),n,"."),".");for(t=0;t<s.length;t++)i=s[t],d(o,l(r,i)?"xn--"+g(i):i);return c(o,".")}}(),g=cn(),b=ui(),w=bo(),y=Oo(),C=Zt(),S=C.set,R=C.getterFor("URL"),_=y.URLSearchParams,W=y.getState,P=i.URL,N=i.TypeError,O=i.parseInt,T=Math.floor,A=Math.pow,E=l("".charAt),F=l(/./.exec),z=l([].join),I=l(1.1.toString),M=l([].pop),H=l([].push),j=l("".replace),B=l([].shift),U=l("".split),q=l("".slice),D=l("".toLowerCase),V=l([].unshift),$="Invalid scheme",G="Invalid host",X="Invalid port",Y=/[a-z]/i,J=/[\d+-.a-z]/i,K=/\d/,Q=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,le=/[\t\n\r]/g,se=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)V(t,e%256),e=T(e/256);return z(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r?n:t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=I(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ae={},ue=d({},ae,{" ":1,'"':1,"<":1,">":1,"`":1}),ce=d({},ue,{"#":1,"?":1,"{":1,"}":1}),de=d({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),he=function(e,t){var r=p(e,0);return r>32&&r<127&&!c(t,e)?e:encodeURIComponent(e)},fe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ve=function(e,t){var r;return 2===e.length&&F(Y,E(e,0))&&(":"===(r=E(e,1))||!t&&"|"===r)},pe=function(e){var t;return e.length>1&&ve(q(e,0,2))&&(2===e.length||"/"===(t=E(e,2))||"\\"===t||"?"===t||"#"===t)},ge=function(e){return"."===e||"%2e"===D(e)},we=function(e){return".."===(e=D(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},Ce={},Se={},Re={},xe={},Le={},_e={},ke={},We={},Pe={},Ne={},Oe={},Te={},Ae={},Ee={},Fe={},ze={},Ie={},Me={},He={},je={},Be={},Ue=function(e,t,r){var n,i,o,l=g(e);if(t){if(i=this.parse(l))throw new N(i);this.searchParams=null}else{if(void 0!==r&&(n=new Ue(r,!0)),i=this.parse(l,null,n))throw new N(i);(o=W(new _)).bindURL(this),this.searchParams=o}};Ue.prototype={type:"URL",parse:function(t,r,n){var i,o,l,s,a=this,u=r||Ce,d=0,v="",p=!1,m=!1,b=!1;for(t=g(t),r||(a.scheme="",a.username="",a.password="",a.host=null,a.port=null,a.path=[],a.query=null,a.fragment=null,a.cannotBeABaseURL=!1,t=j(t,ie,""),t=j(t,oe,"$1")),t=j(t,le,""),i=h(t);d<=i.length;){switch(o=i[d],u){case Ce:if(!o||!F(Y,o)){if(r)return $;u=Re;continue}v+=D(o),u=Se;break;case Se:if(o&&(F(J,o)||"+"===o||"-"===o||"."===o))v+=D(o);else{if(":"!==o){if(r)return $;v="",u=Re,d=0;continue}if(r&&(a.isSpecial()!==c(fe,v)||"file"===v&&(a.includesCredentials()||null!==a.port)||"file"===a.scheme&&!a.host))return;if(a.scheme=v,r)return void(a.isSpecial()&&fe[a.scheme]===a.port&&(a.port=null));v="","file"===a.scheme?u=Ee:a.isSpecial()&&n&&n.scheme===a.scheme?u=xe:a.isSpecial()?u=We:"/"===i[d+1]?(u=Le,d++):(a.cannotBeABaseURL=!0,H(a.path,""),u=He)}break;case Re:if(!n||n.cannotBeABaseURL&&"#"!==o)return $;if(n.cannotBeABaseURL&&"#"===o){a.scheme=n.scheme,a.path=f(n.path),a.query=n.query,a.fragment="",a.cannotBeABaseURL=!0,u=Be;break}u="file"===n.scheme?Ee:_e;continue;case xe:if("/"!==o||"/"!==i[d+1]){u=_e;continue}u=Pe,d++;break;case Le:if("/"===o){u=Ne;break}u=Me;continue;case _e:if(a.scheme=n.scheme,o===e)a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=f(n.path),a.query=n.query;else if("/"===o||"\\"===o&&a.isSpecial())u=ke;else if("?"===o)a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=f(n.path),a.query="",u=je;else{if("#"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=f(n.path),a.path.length--,u=Me;continue}a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=f(n.path),a.query=n.query,a.fragment="",u=Be}break;case ke:if(!a.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,u=Me;continue}u=Ne}else u=Pe;break;case We:if(u=Pe,"/"!==o||"/"!==E(v,d+1))continue;d++;break;case Pe:if("/"!==o&&"\\"!==o){u=Ne;continue}break;case Ne:if("@"===o){p&&(v="%40"+v),p=!0,l=h(v);for(var w=0;w<l.length;w++){var y=l[w];if(":"!==y||b){var C=he(y,de);b?a.password+=C:a.username+=C}else b=!0}v=""}else if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(p&&""===v)return"Invalid authority";d-=h(v).length+1,v="",u=Oe}else v+=o;break;case Oe:case Te:if(r&&"file"===a.scheme){u=ze;continue}if(":"!==o||m){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(a.isSpecial()&&""===v)return G;if(r&&""===v&&(a.includesCredentials()||null!==a.port))return;if(s=a.parseHost(v))return s;if(v="",u=Ie,r)return;continue}"["===o?m=!0:"]"===o&&(m=!1),v+=o}else{if(""===v)return G;if(s=a.parseHost(v))return s;if(v="",u=Ae,r===Te)return}break;case Ae:if(!F(K,o)){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()||r){if(""!==v){var S=O(v,10);if(S>65535)return X;a.port=a.isSpecial()&&S===fe[a.scheme]?null:S,v=""}if(r)return;u=Ie;continue}return X}v+=o;break;case Ee:if(a.scheme="file","/"===o||"\\"===o)u=Fe;else{if(!n||"file"!==n.scheme){u=Me;continue}switch(o){case e:a.host=n.host,a.path=f(n.path),a.query=n.query;break;case"?":a.host=n.host,a.path=f(n.path),a.query="",u=je;break;case"#":a.host=n.host,a.path=f(n.path),a.query=n.query,a.fragment="",u=Be;break;default:pe(z(f(i,d),""))||(a.host=n.host,a.path=f(n.path),a.shortenPath()),u=Me;continue}}break;case Fe:if("/"===o||"\\"===o){u=ze;break}n&&"file"===n.scheme&&!pe(z(f(i,d),""))&&(ve(n.path[0],!0)?H(a.path,n.path[0]):a.host=n.host),u=Me;continue;case ze:if(o===e||"/"===o||"\\"===o||"?"===o||"#"===o){if(!r&&ve(v))u=Me;else if(""===v){if(a.host="",r)return;u=Ie}else{if(s=a.parseHost(v))return s;if("localhost"===a.host&&(a.host=""),r)return;v="",u=Ie}continue}v+=o;break;case Ie:if(a.isSpecial()){if(u=Me,"/"!==o&&"\\"!==o)continue}else if(r||"?"!==o)if(r||"#"!==o){if(o!==e&&(u=Me,"/"!==o))continue}else a.fragment="",u=Be;else a.query="",u=je;break;case Me:if(o===e||"/"===o||"\\"===o&&a.isSpecial()||!r&&("?"===o||"#"===o)){if(we(v)?(a.shortenPath(),"/"===o||"\\"===o&&a.isSpecial()||H(a.path,"")):ge(v)?"/"===o||"\\"===o&&a.isSpecial()||H(a.path,""):("file"===a.scheme&&!a.path.length&&ve(v)&&(a.host&&(a.host=""),v=E(v,0)+":"),H(a.path,v)),v="","file"===a.scheme&&(o===e||"?"===o||"#"===o))for(;a.path.length>1&&""===a.path[0];)B(a.path);"?"===o?(a.query="",u=je):"#"===o&&(a.fragment="",u=Be)}else v+=he(o,ce);break;case He:"?"===o?(a.query="",u=je):"#"===o?(a.fragment="",u=Be):o!==e&&(a.path[0]+=he(o,ae));break;case je:r||"#"!==o?o!==e&&("'"===o&&a.isSpecial()?a.query+="%27":a.query+="#"===o?"%23":he(o,ae)):(a.fragment="",u=Be);break;case Be:o!==e&&(a.fragment+=he(o,ue))}d++}},parseHost:function(e){var t,r,n;if("["===E(e,0)){if("]"!==E(e,e.length-1))return G;if(t=function(e){var t,r,n,i,o,l,s,a=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,h=function(){return E(e,d)};if(":"===h()){if(":"!==E(e,1))return;d+=2,c=++u}for(;h();){if(8===u)return;if(":"!==h()){for(t=r=0;r<4&&F(te,h());)t=16*t+O(h(),16),d++,r++;if("."===h()){if(0===r)return;if(d-=r,u>6)return;for(n=0;h();){if(i=null,n>0){if(!("."===h()&&n<4))return;d++}if(!F(K,h()))return;for(;F(K,h());){if(o=O(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}a[u]=256*a[u]+i,2!==++n&&4!==n||u++}if(4!==n)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;a[u++]=t}else{if(null!==c)return;d++,c=++u}}if(null!==c)for(l=u-c,u=7;0!==u&&l>0;)s=a[u],a[u--]=a[c+l-1],a[c+--l]=s;else if(8!==u)return;return a}(q(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=m(e),F(re,e))return G;if(t=function(e){var t,r,n,i,o,l,s,a=U(e,".");if(a.length&&""===a[a.length-1]&&a.length--,(t=a.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(i=a[n]))return e;if(o=10,i.length>1&&"0"===E(i,0)&&(o=F(Q,i)?16:8,i=q(i,8===o?1:2)),""===i)l=0;else{if(!F(10===o?ee:8===o?Z:te,i))return e;l=O(i,o)}H(r,l)}for(n=0;n<t;n++)if(l=r[n],n===t-1){if(l>=A(256,5-t))return null}else if(l>255)return null;for(s=M(r),n=0;n<r.length;n++)s+=r[n]*A(256,3-n);return s}(e),null===t)return G;this.host=t}else{if(F(ne,e))return G;for(t="",r=h(e),n=0;n<r.length;n++)t+=he(r[n],ae);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return c(fe,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ve(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,l=e.path,s=e.query,a=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=se(i),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?l[0]:l.length?"/"+z(l,"/"):"",null!==s&&(u+="?"+s),null!==a&&(u+="#"+a),u},setHref:function(e){var t=this.parse(e);if(t)throw new N(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new qe(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+se(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(g(e)+":",Ce)},getUsername:function(){return this.username},setUsername:function(e){var t=h(g(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=he(t[r],de)}},getPassword:function(){return this.password},setPassword:function(e){var t=h(g(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=he(t[r],de)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?se(e):se(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Oe)},getHostname:function(){var e=this.host;return null===e?"":se(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Te)},getPort:function(){var e=this.port;return null===e?"":g(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=g(e))?this.port=null:this.parse(e,Ae))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+z(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ie))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=g(e))?this.query=null:("?"===E(e,0)&&(e=q(e,1)),this.query="",this.parse(e,je)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=g(e))?("#"===E(e,0)&&(e=q(e,1)),this.fragment="",this.parse(e,Be)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var qe=function(e){var t=u(this,De),n=w(arguments.length,1)>1?arguments[1]:void 0,i=S(t,new Ue(e,!1,n));r||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},De=qe.prototype,Ve=function(e,t){return{get:function(){return R(this)[e]()},set:t&&function(e){return R(this)[t](e)},configurable:!0,enumerable:!0}};if(r&&(a(De,"href",Ve("serialize","setHref")),a(De,"origin",Ve("getOrigin")),a(De,"protocol",Ve("getProtocol","setProtocol")),a(De,"username",Ve("getUsername","setUsername")),a(De,"password",Ve("getPassword","setPassword")),a(De,"host",Ve("getHost","setHost")),a(De,"hostname",Ve("getHostname","setHostname")),a(De,"port",Ve("getPort","setPort")),a(De,"pathname",Ve("getPathname","setPathname")),a(De,"search",Ve("getSearch","setSearch")),a(De,"searchParams",Ve("getSearchParams")),a(De,"hash",Ve("getHash","setHash"))),s(De,"toJSON",function(){return R(this).serialize()},{enumerable:!0}),s(De,"toString",function(){return R(this).serialize()},{enumerable:!0}),P){var $e=P.createObjectURL,Ge=P.revokeObjectURL;$e&&s(qe,"createObjectURL",o($e,P)),Ge&&s(qe,"revokeObjectURL",o(Ge,P))}b(qe,"URL"),t({global:!0,constructor:!0,forced:!n,sham:!r},{URL:qe})}());var To,Ao,Eo={};!function(){if(To)return Eo;To=1;var e=sn(),t=k();e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})}(),Ao||(Ao=1,Oo());var Fo,zo,Io,Mo,Ho,jo,Bo,Uo,qo,Do,Vo,$o={};function Go(){if(zo)return Fo;zo=1;var e=Nt();return Fo=function(){var t=e(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r}}function Xo(){if(Do)return qo;Do=1;var e,t,r=k(),n=be(),i=cn(),o=Go(),l=function(){if(Mo)return Io;Mo=1;var e=x(),t=v().RegExp,r=e(function(){var e=t("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),n=r||e(function(){return!t("a","y").sticky}),i=r||e(function(){var e=t("^r","gy");return e.lastIndex=2,null!==e.exec("str")});return Io={BROKEN_CARET:i,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),s=dt(),a=ii(),u=Zt().get,c=function(){if(jo)return Ho;jo=1;var e=x(),t=v().RegExp;return Ho=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})}(),d=function(){if(Uo)return Bo;Uo=1;var e=x(),t=v().RegExp;return Bo=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})}(),h=s("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,p=f,m=n("".charAt),g=n("".indexOf),b=n("".replace),w=n("".slice),y=(t=/b*/g,r(f,e=/a/,"a"),r(f,t,"a"),0!==e.lastIndex||0!==t.lastIndex),C=l.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];return(y||S||C||c||d)&&(p=function(e){var t,n,l,s,c,d,v,R=this,x=u(R),L=i(e),_=x.raw;if(_)return _.lastIndex=R.lastIndex,t=r(p,_,L),R.lastIndex=_.lastIndex,t;var k=x.groups,W=C&&R.sticky,P=r(o,R),N=R.source,O=0,T=L;if(W&&(P=b(P,"y",""),-1===g(P,"g")&&(P+="g"),T=w(L,R.lastIndex),R.lastIndex>0&&(!R.multiline||R.multiline&&"\n"!==m(L,R.lastIndex-1))&&(N="(?: "+N+")",T=" "+T,O++),n=new RegExp("^(?:"+N+")",P)),S&&(n=new RegExp("^"+N+"$(?!\\s)",P)),y&&(l=R.lastIndex),s=r(f,W?n:R,T),W?s?(s.input=w(s.input,O),s[0]=w(s[0],O),s.index=R.lastIndex,R.lastIndex+=s[0].length):R.lastIndex=0:y&&s&&(R.lastIndex=R.global?s.index+s[0].length:l),S&&s&&s.length>1&&r(h,s[0],n,function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(s[c]=void 0)}),s&&k)for(s.groups=d=a(null),c=0;c<k.length;c++)d[(v=k[c])[0]]=s[v[1]];return s}),qo=p}function Yo(){if(Vo)return $o;Vo=1;var e=sn(),t=Xo();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),$o}Yo();var Jo,Ko,Qo,Zo,el,tl,rl,nl,il,ol,ll,sl,al,ul,cl,dl={};function hl(){if(tl)return el;tl=1;var e=no().charAt;return el=function(t,r,n){return r+(n?e(t,r).length:1)}}function fl(){if(nl)return rl;nl=1;var e=be(),t=ht(),r=Math.floor,n=e("".charAt),i=e("".replace),o=e("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return rl=function(e,a,u,c,d,h){var f=u+e.length,v=c.length,p=s;return void 0!==d&&(d=t(d),p=l),i(h,p,function(t,i){var l;switch(n(i,0)){case"$":return"$";case"&":return e;case"`":return o(a,0,u);case"'":return o(a,f);case"<":l=d[o(i,1,-1)];break;default:var s=+i;if(0===s)return t;if(s>v){var h=r(s/10);return 0===h?t:h<=v?void 0===c[h-1]?n(i,1):c[h-1]+n(i,1):t}l=c[s-1]}return void 0===l?"":l})}}function vl(e,t){for(let r=0,n=e.length;r>=0&&r<n;r+=1)if(t(e[r],r,e))return e[r]}function pl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}!function(){if(cl)return dl;cl=1;var e=function(){if(Ko)return Jo;Ko=1;var e=_(),t=Function.prototype,r=t.apply,n=t.call;return Jo="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),Jo}(),t=k(),r=be(),n=function(){if(Zo)return Qo;Zo=1,Yo();var e=k(),t=tr(),r=Xo(),n=x(),i=pt(),o=Tt(),l=i("species"),s=RegExp.prototype;return Qo=function(a,u,c,d){var h=i(a),f=!n(function(){var e={};return e[h]=function(){return 7},7!==""[a](e)}),v=f&&!n(function(){var e=!1,t=/a/;if("split"===a){var r={};r[l]=function(){return t},(t={constructor:r,flags:""})[h]=/./[h]}return t.exec=function(){return e=!0,null},t[h](""),!e});if(!f||!v||c){var p=/./[h],m=u(h,""[a],function(t,n,i,o,l){var a=n.exec;return a===r||a===s.exec?f&&!l?{done:!0,value:e(p,n,i,o)}:{done:!0,value:e(t,i,n,o)}:{done:!1}});t(String.prototype,a,m[0]),t(s,h,m[1])}d&&o(s[h],"sham",!0)}}(),i=x(),o=Nt(),l=xe(),s=Le(),a=yr(),u=Sr(),c=cn(),d=Se(),h=hl(),f=Fe(),p=fl(),m=function(){if(sl)return ll;sl=1;var e=k(),t=ft(),r=ke(),n=function(){if(ol)return il;ol=1;var e=v(),t=x(),r=e.RegExp,n=!t(function(){var e=!0;try{r(".","d")}catch(t){e=!1}var t={},n="",i=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(l.hasIndices="d"),l)o(s,l[s]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(t)!==i||n!==i});return il={correct:n}}(),i=Go(),o=RegExp.prototype;return ll=n.correct?function(e){return e.flags}:function(l){return n.correct||!r(o,l)||t(l,"flags")?l.flags:e(i,l)}}(),g=function(){if(ul)return al;ul=1;var e=k(),t=Nt(),r=xe(),n=we(),i=Xo(),o=TypeError;return al=function(l,s){var a=l.exec;if(r(a)){var u=e(a,l,s);return null!==u&&t(u),u}if("RegExp"===n(l))return e(i,l,s);throw new o("RegExp#exec called on incompatible receiver")}}(),b=pt()("replace"),w=Math.max,y=Math.min,C=r([].concat),S=r([].push),R=r("".indexOf),L=r("".slice),W=function(e){return void 0===e?e:String(e)},P="$0"==="a".replace(/./,"$0"),N=!!/./[b]&&""===/./[b]("a","$0");n("replace",function(r,n,i){var v=N?"$":"$0";return[function(e,r){var i=d(this),o=s(e)?f(e,b):void 0;return o?t(o,e,i,r):t(n,c(i),e,r)},function(t,r){var s=o(this),d=c(t);if("string"==typeof r&&-1===R(r,v)&&-1===R(r,"$<")){var f=i(n,s,d,r);if(f.done)return f.value}var b=l(r);b||(r=c(r));var x,_=c(m(s)),k=-1!==R(_,"g");k&&(x=-1!==R(_,"u"),s.lastIndex=0);for(var P,N=[];null!==(P=g(s,d))&&(S(N,P),k);)""===c(P[0])&&(s.lastIndex=h(d,u(s.lastIndex),x));for(var O="",T=0,A=0;A<N.length;A++){for(var E,F=c((P=N[A])[0]),z=w(y(a(P.index),d.length),0),I=[],M=1;M<P.length;M++)S(I,W(P[M]));var H=P.groups;if(b){var j=C([F],I,z,d);void 0!==H&&S(j,H),E=c(e(r,void 0,j))}else E=p(F,d,z,I,H,r);z>=T&&(O+=L(d,T,z)+E,T=z+F.length)}return O+L(d,T)}]},!!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!P||N)}();var ml,gl={};!function(){if(ml)return gl;ml=1;var e=sn(),t=L(),r=v(),n=be(),i=ft(),o=xe(),l=ke(),s=cn(),a=lo(),u=ln(),c=r.Symbol,d=c&&c.prototype;if(t&&o(c)&&(!("description"in d)||void 0!==c().description)){var h={},f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),t=l(d,this)?new c(e):void 0===e?c():c(e);return""===e&&(h[t]=!0),t};u(f,c),f.prototype=d,d.constructor=f;var p="Symbol(description detection)"===String(c("description detection")),m=n(d.valueOf),g=n(d.toString),b=/^Symbol\((.*)\)[^)]+$/,w=n("".replace),y=n("".slice);a(d,"description",{configurable:!0,get:function(){var e=m(this);if(i(h,e))return"";var t=g(e),r=p?y(t,7,-1):w(t,b,"$1");return""===r?void 0:r}}),e({global:!0,constructor:!0,forced:!0},{Symbol:f})}}();const bl=Symbol("safe"),wl=Symbol("hover_in"),yl=Symbol("hover_out"),Cl=Symbol("row_click"),Sl=Symbol("preview_cell"),Rl=Symbol("cell"),xl=Symbol("related_touch"),Ll=Symbol("original_row_index");class _l extends Array{constructor(e){var t,r,n;super(),this.onComparatorRequired=null,this.customSortingProvider=null,e=e||{},this.sortColumn=null!==(t=e.sortColumn)&&void 0!==t?t:[],this.onComparatorRequired=null!==(r=e.onComparatorRequired)&&void 0!==r?r:null,this.customSortingProvider=null!==(n=e.customSortingProvider)&&void 0!==n?n:null}add(e,t){if(Array.isArray(e)){const r=e;if("number"==typeof t)for(let e=0,n=r.length;e<n;e++)this.splice(t++,0,r[e]);else for(let e=0,t=r.length;e<t;e++)this.push(r[e])}else{const r=e;"number"==typeof t?this.splice(t,0,r):this.push(r)}}reset(e){this.length=0,e&&this.add(e)}filteredCollection(e,t){if(e&&t){const r=new _l({sortColumn:this.sortColumn,onComparatorRequired:this.onComparatorRequired,customSortingProvider:this.customSortingProvider});for(let n=0,i=this.length;n<i;n++){const i=this[n];e(i,t)&&(i[Ll]=n,r.push(i))}return r}return null}sort(e){let t;if("function"==typeof e)return super.sort(e);if(this.sortColumn.length){const e=[];for(let t=0;t<this.sortColumn.length;t++){const r=kl(this.sortColumn[t],this.sortColumn[t].descending);let n=null;this.onComparatorRequired&&(n=this.onComparatorRequired(this.sortColumn[t].column,this.sortColumn[t].descending,r)),n||(n=r),e.push(n.bind(this))}if(1===e.length)t=e[0];else{const r=e.length;t=(t,n)=>{let i=0;for(let o=0;o<r;o++)if(i=e[o](t,n),0!==i)return i;return i}}const r=e=>(e.sort(t),e);if(this.customSortingProvider){const e=this.customSortingProvider(this,r);e!==this&&this.splice(0,this.length,...e)}else r(this)}return this}}function kl(e,t){let r=e.comparePath;"string"==typeof r&&(r=r.split("."));const n=r.length,i=n>1,o=t?1:-1,l=t?-1:1;return function(e,t){let s=e[r[0]],a=t[r[0]];if(i)for(let e=1;e<n;e++)s=s&&s[r[e]],a=a&&a[r[e]];return s===a?0:null==s?o:null==a?l:s<a?o:l}}class Wl extends Array{constructor(){super()}get(e){for(let t=0,r=this.length;t<r;t++)if(this[t].name===e)return this[t];return null}indexOf(e){const t="string"==typeof e?e:e.name;for(let e=0,r=this.length;e<r;e++)if(this[e].name===t)return e;return-1}getByOrder(e){for(let t=0,r=this.length;t<r;t++)if(this[t].order===e)return this[t];return null}normalizeOrder(){const e=[];for(let t=0;t<this.length;t++)e.push(this[t]);e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0);for(let t=0;t<e.length;t++)e[t].order=t;return this}getColumns(){const e=[];for(let t=0;t<this.length;t++)e.push(this[t]);return e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0),e}getVisibleColumns(){const e=[];for(let t=0;t<this.length;t++){const r=this[t];r.visible&&e.push(r)}return e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0),e}getMaxOrder(){let e=0;for(let t=0;t<this.length;t++){const r=this[t];r.order>e&&(e=r.order)}return e}moveColumn(e,t){if(e&&t){const r=e.order,n=t.order;if(r<n)for(let e=r+1;e<=n;e++){const t=this.getByOrder(e);t&&t.order--}else for(let e=r-1;e>=n;e--){const t=this.getByOrder(e);t&&t.order++}e.order=n}return this}}function Pl(e,t){const r=t.column,n=null==t.keyword?"":t.keyword.toString();if(!n||!r)return!0;let i=e[r];if(null==i)return!1;let o=i.toString(),l=n;return t.caseSensitive||(o=o.toLowerCase(),l=l.toLowerCase()),-1!==o.indexOf(l)}const Nl={NONE:"none",AUTO:"auto",SCROLL:"scroll"},Ol=document.createElement.bind(document);function Tl(e){["relative","absolute","fixed"].includes(getComputedStyle(e).position)||(e.style.position="relative")}function Al(e){const t=e.target;return/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(t.tagName)}function El(e){const t=getComputedStyle(e);return(parseFloat(t.paddingLeft)||0)+(parseFloat(t.paddingRight)||0)}function Fl(e){const t=e.style;t["-webkit-touch-callout"]="none",t["-webkit-user-select"]="none",t["-moz-user-select"]="none",t["-ms-user-select"]="none",t["-o-user-select"]="none",t["user-select"]="none"}function zl(e,t){const i=e._o.tableClassName,o=Ol("div");o.className=e.el.className;const l=Ol("div");l.className=i+"-header";const s=Ol("div");s.className=i+"-header-row";const a=Ol("div");a.className=i+"-header-cell";const u=Ol("div");u.textContent=t,a.appendChild(u),s.appendChild(a),l.appendChild(s),o.appendChild(l),n(o,{position:"absolute",top:"-9999px",visibility:"hidden"}),document.body.appendChild(o);const c=r(a);return o.remove(),c}function Il(e){const t=e._o,i=e._p;let o,l=0,s=0;i.table&&(l=i.table?i.table.scrollTop:0,s=i.table?i.table.scrollLeft:0,t.virtualTable&&(o=i.table.style.display,i.table.style.display="none"));let a=r(e.el);i.table&&(t.virtualTable&&void 0!==o&&(i.table.style.display=o),i.table.scrollTop=l,i.table.scrollLeft=s,i.header&&(i.header.scrollLeft=s));const u=t.tableClassName,c=Ol("div");c.className=e.el.className,n(c,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px"});const d=Ol("div");d.className="".concat(u,"-header"),c.appendChild(d);const h=Ol("div");h.index=null,h.vIndex=null,h.className="".concat(u,"-header-row"),d.appendChild(h);for(let e=0;e<i.visibleColumns.length;e++){const t=i.visibleColumns[e],r=Ol("div");r.className="".concat(u,"-header-cell ").concat(t.cellClasses||""),r.columnName=t.name,r.appendChild(Ol("div")),h.appendChild(r)}document.body.appendChild(c),a-=function(e){const t=getComputedStyle(e);return(parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0)}(h);const f=h.querySelectorAll("div.".concat(u,"-header-cell"));for(const e of f){const t=getComputedStyle(e);if("border-box"!==t.boxSizing){a-=(parseFloat(t.borderRightWidth)||0)+(parseFloat(t.borderLeftWidth)||0)+El(e);const r=e.columnName,n=i.columns.get(r);n&&(a-=n.arrowProposedWidth||0)}}return c.remove(),Math.max(0,a)}function Ml(e){const t=e._p,i=e._o.tableClassName,o=i+"-row",l=i+"-cell",s=t.visibleColumns,a=s.length,u=Ol("div");u.className=o,u.style.float="left";let c=0;for(let e=0;e<a;e++){var d,h;const t=s[e],r=Ol("div");r.className=l,r.style.width=(null!==(d=t.actualWidth)&&void 0!==d?d:0)+"px",t.cellClasses&&(r.className+=" "+t.cellClasses),r.appendChild(Ol("div")),u.appendChild(r),c+=null!==(h=t.actualWidth)&&void 0!==h?h:0}const f=Ol("div");f.className=e.el.className,n(f,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",float:"left",width:"1px",overflow:"hidden"});const v=Ol("div");v.className=i,f.appendChild(v);const p=Ol("div");p.className=i+"-body",p.style.width=c+1e4+"px",v.appendChild(p),p.appendChild(u),document.body.appendChild(f);const m=Ol("div");n(m,{border:"1.5px solid #000",width:"0",height:"0",position:"absolute",left:"0",top:"-9999px"}),document.body.appendChild(m);const g=parseFloat(getComputedStyle(m).borderWidth),b=Math.round(g)!==g;m.remove();let w=r(u,!0,!0,!0);return w-=t.scrollbarWidth||0,b&&w++,f.remove(),w}function Hl(e){const t=e._p;return!!t.table&&"rtl"===getComputedStyle(t.table).direction}function jl(e){return 0===e.widthMode?"auto":2===e.widthMode?100*e.width+"%":e.width}class Bl{static saveSelection(e){const t=window.getSelection();if(!t||0===t.rangeCount)return null;const r=t.getRangeAt(0);if(e!==r.commonAncestorContainer&&!function(e,t){let r=e;for(;(r=null!==(n=null===(i=r)||void 0===i?void 0:i.parentNode)&&void 0!==n?n:null)&&r!==t;)var n,i;return!!r}(r.commonAncestorContainer,e))return null;const n=r.cloneRange();n.selectNodeContents(e),n.setEnd(r.startContainer,r.startOffset);const i=n.toString().length;return{start:i,end:i+r.toString().length}}static restoreSelection(e,t){let r=0;const n=[e];let i,o=!1,l=!1;const s=document.createRange();for(s.setStart(e,0),s.collapse(!0);!l&&(i=n.pop());)if(i.nodeType===Node.TEXT_NODE){const e=r+i.length;!o&&t.start>=r&&t.start<=e&&(s.setStart(i,t.start-r),o=!0),o&&t.end>=r&&t.end<=e&&(s.setEnd(i,t.end-r),l=!0),r=e}else{let e=i.childNodes.length;for(;e--;)n.push(i.childNodes[e])}const a=window.getSelection();a&&(a.removeAllRanges(),a.addRange(s))}}const Ul=document.createElement.bind(document);function ql(e,t){var n,o,l;const s=e._o,a=Hl(e);let u=t.target.closest("div.".concat(s.tableClassName,"-header-cell,div.").concat(s.cellPreviewClassName));if(!u)return null;u[Rl]&&(u=u[Rl]);let c=u.previousSibling;for(;c&&1!==c.nodeType;)c=c.previousSibling;const d=!c,h=t,f=null!==(n=null!==(o=t[xl])&&void 0!==o?o:null===(l=h.changedTouches)||void 0===l?void 0:l[0])&&void 0!==n?n:t,v=(f.pageX||f.clientX||0)-i(u).left;if(a){var p,m,g;if(!d&&r(u,!0,!0,!0)-v<=s.resizeAreaWidth/2)return null!==(p=null===(m=c)||void 0===m?void 0:m.columnName)&&void 0!==p?p:null;if(v<=s.resizeAreaWidth/2)return null!==(g=u.columnName)&&void 0!==g?g:null}else{var b,w,y;if(!d&&v<=s.resizeAreaWidth/2)return null!==(b=null===(w=c)||void 0===w?void 0:w.columnName)&&void 0!==b?b:null;if(r(u,!0,!0,!0)-v<=s.resizeAreaWidth/2)return null!==(y=u.columnName)&&void 0!==y?y:null}return null}function Dl(e){const t=e._p;return t.resizer&&(t.resizer.remove(),t.resizer=null,t.eventsSink.remove(document,".colresize")),e}function Vl(e,t){const l=t;if("mousedown"===t.type&&0!==l.button)return;const s=e._o,a=e._p,u=ql(e,t);if(u){const l=a.columns.get(u);if(!s.resizableColumns||!l||!l.resizable)return!1;const c=Hl(e);a.resizer&&a.resizer.remove(),a.resizer=Ul("div"),a.resizer.className=s.resizerClassName,n(a.resizer,{position:"absolute",display:"block",zIndex:"-1",visibility:"hidden",width:"2px",background:"#000",opacity:"0.7"}),e.el.appendChild(a.resizer);const d=l.element,h=a.resizer.parentNode,f=getComputedStyle(h),v=getComputedStyle(d),p=i(d),m=i(h);m.left+=parseFloat(f.borderLeftWidth)||0,m.top+=parseFloat(f.borderTopWidth)||0,p.left-=m.left,p.top-=m.top,p.top-=parseFloat(v.borderTopWidth)||0;const g=r(a.resizer,!0,!0,!0);c?(p.left-=Math.ceil((parseFloat(v.borderLeftWidth)||0)/2),p.left-=Math.ceil(g/2)):(p.left+=r(d,!0,!0,!0),p.left+=Math.ceil((parseFloat(v.borderRightWidth)||0)/2),p.left-=Math.ceil(g/2)),n(a.resizer,{"z-index":"10",visibility:"visible",left:p.left+"px",top:p.top+"px",height:o(e.el,!1,!1,!1)+"px"}),a.resizer.columnName=d.columnName;try{a.resizer.style.zIndex=""}catch(e){}a.eventsSink.add(document,"mousemove.colresize",t=>$l(e,t)).add(document,"touchmove.colresize",t=>$l(e,t)).add(document,"mouseup.colresize",t=>Gl(e,t)).add(document,"touchend.colresize",t=>Gl(e,t)),t.preventDefault()}}function $l(e,t){var n,o,l;const s=e._p;if(!s.resizer)return;const a=s.columns.get(s.resizer.columnName);if(!a)return;const u=Hl(e),c=a.element,d=s.resizer.parentNode,h=getComputedStyle(d),f=getComputedStyle(c),v=i(c),p=i(d);p.left+=parseFloat(h.borderLeftWidth)||0,v.left-=p.left;const m=r(s.resizer,!0,!0,!0),g="border-box"===f.boxSizing,b=t;let w=(null!==(n=null!==(o=t[xl])&&void 0!==o?o:null===(l=b.changedTouches)||void 0===l?void 0:l[0])&&void 0!==n?n:t).pageX-p.left,y=v.left;y-=Math.ceil(m/2),u?(y+=r(c,!0,!0,!0),y-=a.ignoreMin?0:e._o.minColumnWidth,g||(y-=Math.ceil((parseFloat(f.borderLeftWidth)||0)/2),y-=El(c)),w>y&&(w=y)):(y+=a.ignoreMin?0:e._o.minColumnWidth,g||(y+=Math.ceil((parseFloat(f.borderRightWidth)||0)/2),y+=El(c)),w<y&&(w=y)),s.resizer.style.left=w+"px"}function Gl(e,t){var n,o,l;const s=e._o,a=e._p;if(!a.resizer)return;a.eventsSink.remove(document,".colresize");const u=a.columns.get(a.resizer.columnName);if(!u)return a.resizer.remove(),void(a.resizer=null);const c=Hl(e),d=u.element,h=d.firstChild,f=a.resizer.parentNode,v=getComputedStyle(f),p=getComputedStyle(d),m=i(d),g=i(f);g.left+=parseFloat(v.borderLeftWidth)||0,m.left-=g.left;const b=r(a.resizer,!0,!0,!0),w="border-box"===p.boxSizing,y=t;let C=(null!==(n=null!==(o=t[xl])&&void 0!==o?o:null===(l=y.changedTouches)||void 0===l?void 0:l[0])&&void 0!==n?n:t).pageX-g.left,S=m.left,R=0;if(S-=Math.ceil(b/2),c){if(!w){C+=El(d);const e=getComputedStyle(h||d);C+=parseFloat(e.borderLeftWidth)||0,C+=parseFloat(e.borderRightWidth)||0,C+=u.arrowProposedWidth||0}S+=r(d,!0,!0,!0);const t=S-(u.ignoreMin?0:e._o.minColumnWidth);C>t&&(C=t),R=S-C}else{if(!w){C-=El(d);const e=getComputedStyle(h||d);C-=parseFloat(e.borderLeftWidth)||0,C-=parseFloat(e.borderRightWidth)||0,C-=u.arrowProposedWidth||0}const t=S+(u.ignoreMin?0:e._o.minColumnWidth);C<t&&(C=t),R=C-S}a.resizer.remove(),a.resizer=null;let x=R;if(2===u.widthMode){let t=Il(e),r=0,n=0;for(let e=0;e<a.visibleColumns.length;e++){const i=a.visibleColumns[e];var L;i.name!==u.name&&(2===i.widthMode?(r+=i.width,n++):t-=null!==(L=i.actualWidth)&&void 0!==L?L:0)}if(t=Math.max(1,t),1===t&&a.table&&(t=a.table.clientWidth),x=R/t,n>0){const e=x/((1-x)/r);r+=x,(r<1&&s.relativeWidthGrowsToFillWidth||r>1&&s.relativeWidthShrinksToFillWidth)&&(x=e)}x*=100,x+="%"}e.setColumnWidth(u.name,x)}function Xl(e,t){var r;const n=e._o,i=e._p;if(!n.resizableColumns)return;const o=ql(e,t),l=t.target.closest("div.".concat(n.tableClassName,"-header-cell,div.").concat(n.cellPreviewClassName));l&&(o&&null!==(r=i.columns.get(o))&&void 0!==r&&r.resizable?l.style.cursor="e-resize":l.style.cursor="")}function Yl(e,t){var n,l,s;const a=e._o,u=t,c=t,d=null!==(n=null!==(l=t[xl])&&void 0!==l?l:null===(s=u.changedTouches)||void 0===s?void 0:s[0])&&void 0!==n?n:{pageX:c.pageX,pageY:c.pageY},h=t.target.closest("div.".concat(a.tableClassName,"-header-cell,div.").concat(a.cellPreviewClassName));if(!h)return;const f=i(h);f.width=r(h,!0,!0,!0),f.height=o(h,!0,!0,!0),e.emit("headercontextmenu",{columnName:h.columnName,pageX:d.pageX,pageY:d.pageY,bounds:f})}function Jl(e,t){if(Al(t))return;if(ql(e,t))return;const r=e._o,n=e._p,i=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!i)return;if(!r.sortableColumns)return;const o=n.columns.get(i.columnName),l=n.rows.sortColumn;if(o&&o.sortable){let t=!0;const n=l.length?l[l.length-1]:null;n&&n.column===o.name&&(n.descending&&r.allowCancelSort?(t=!1,l.splice(l.length-1,1)):n.descending=!n.descending);const i=e;t?i.sort(o.name,void 0,!0).render():i.sort()}}const Kl=Array.prototype.indexOf,Ql=document.createElement.bind(document);function Zl(e){const t=e._p;return t.headerRow&&(t.headerRow=void 0),e}function es(e){const t=e._o,r=e._p;if(!r.tbody)return e;if(t.virtualTable&&r.virtualListHelper){const e=r.virtualListHelper.estimateFullHeight();r._lastVirtualScrollHeight=e,r.tbody.style.height=e+"px"}else r.tbody.style.height="";return e}function ts(e,t){const r=e._p;if(!r.table)return e;const n=r.table.offsetWidth-r.table.clientWidth;if(n!==r.scrollbarWidth||t){var i;r.scrollbarWidth=n;for(let e=0;e<r.columns.length;e++)r.columns[e].actualWidthConsideringScrollbarWidth=null;if(r.scrollbarWidth>0&&r.visibleColumns.length>0&&r.tbody&&r.headerRow){var o;const e=r.visibleColumns.length-1;r.visibleColumns[e].actualWidthConsideringScrollbarWidth=(null!==(o=r.visibleColumns[e].actualWidth)&&void 0!==o?o:0)-r.scrollbarWidth;const t=r.visibleColumns[e].actualWidthConsideringScrollbarWidth+"px",n=r.tbody.childNodes;for(let r=0,i=n.length;r<i;r++){const i=n[r];1===i.nodeType&&(i.childNodes[e].style.width=t)}r.headerRow.childNodes[e].style.width=t}ns(e),null===(i=r.notifyRendererOfColumnsConfig)||void 0===i||i.call(r)}return e}function rs(e,t){const n=e._o,i=e._p;if(!i.tbody||!i.table||!i.headerRow)return e;const o=Ml(e);if(i.tbody.style.minWidth=o+"px",i.headerRow.style.minWidth=o+(i.scrollbarWidth||0)+"px",i.eventsSink.remove(i.table,"scroll"),n.width===Nl.AUTO)l(i.table,r(i.tbody,!0,!0,!0)),l(e.el,r(i.table,!0,!0,!0));else if(n.width===Nl.SCROLL){if(t){const t=i.table?i.table.scrollTop:0,r=i.table?i.table.scrollLeft:0;!function(e){const t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}(e.el),i.table.scrollTop=t,i.table.scrollLeft=r,i.header&&(i.header.scrollLeft=r)}const r=()=>function(e){const t=e._p;t.header.scrollLeft=t.table.scrollLeft,is(e)}(e);i.eventsSink.add(i.table,"scroll",r)}return e}function ns(e){var t;const r=e._p,n=e._o;if(!r.headerRow)return;const i=n.tableClassName+"-sticky",o=r.headerRow,l=Hl(e),s=null!==(t=r.scrollbarWidth)&&void 0!==t?t:0;let a=0,u=0,c=null;const d=[],h=[];let f=null,v=[];for(let e=o.firstElementChild;e;e=e.nextElementSibling){const t=e.getAttribute("data-column");if(!t)continue;const n=r.columns.get(t);if(n)if("start"===n.sticky||"end"===n.sticky){var p;e.className+=" "+i,e.style.position="sticky";let t=null!==(p=n.actualWidth)&&void 0!==p?p:0,r=null;null===c&&(r=getComputedStyle(e),c=r.boxSizing),"content-box"===c&&(null===r&&(r=getComputedStyle(e)),t+=(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0)+(parseFloat(r.borderLeftWidth)||0)+(parseFloat(r.borderRightWidth)||0)),"start"===n.sticky&&!l||"end"===n.sticky&&l?(n.stickyPos={direction:"left",offset:a},e.style.left=a+"px",a+=t,v.length=0,f=[e],d.push(f)):(n.stickyPos={direction:"right",offset:u},e.style.right=u+s+"px",u+=t,h.push([e,...v]),v.length=0)}else{var m;delete n.stickyPos,null===(m=f)||void 0===m||m.push(e),null==v||v.push(e),"sticky"===e.style.position&&(e.classList.remove(i),e.style.position="",e.style.left="",e.style.right="")}}r.stickiesLeft=d,r.stickiesRight=h,is(e)}function is(e){const t=e._p;if(!t.table||!t.headerRow||!t.tbody)return;const r=t.stickiesLeft,n=t.stickiesRight,i=t.stickiesSetLeft,o=t.stickiesSetRight,l=t.stickiesSetLeft=new Set,s=t.stickiesSetRight=new Set;if(null!=r&&r.length||null==n||!n.length){const e=t.table.scrollLeft;if(e===t.lastStickyScrollLeft)return;t.lastStickyScrollLeft=e;const i=t.headerRow.children,o=1.5,a=(e,t,r)=>{if(e&&e.length)for(const n of e){const e=n[0],l=n.slice(1),s=l[0],a=l[l.length-1];if(!e||!e.getBoundingClientRect)continue;const u=e.getBoundingClientRect();let c=!1;if(s&&a){const e=s.getBoundingClientRect(),r=a.getBoundingClientRect();c=t?u.right-o>e.left&&u.left+o<r.right:u.left+o<r.right&&u.right-o>e.left}e.classList.toggle(t?"is-sticky-left":"is-sticky-right",c),c&&r.add(Kl.call(i,e))}};a(r,!0,l),a(n,!1,s)}const a=[],u=[];for(const e of l)null!=i&&i.has(e)||a.push({index:e,left:!0});for(const e of s)null!=o&&o.has(e)||a.push({index:e,right:!0});if(i)for(const e of i)l.has(e)||u.push({index:e,left:!0});if(o)for(const e of o)s.has(e)||u.push({index:e,right:!0});if(!a.length&&!u.length)return;let c=t.tbody.firstElementChild;for(;c;){const e=c.children;for(const t of u){var d;null===(d=e[t.index])||void 0===d||d.classList.remove(t.left?"is-sticky-left":"is-sticky-right")}for(const t of a){var h;null===(h=e[t.index])||void 0===h||h.classList.add(t.left?"is-sticky-left":"is-sticky-right")}c=c.nextElementSibling}t.isStickyColumns=new Map;for(const e of l)t.isStickyColumns.set(e,"left");for(const e of s)t.isStickyColumns.set(e,"right")}function os(e,t){const r=e._p,n=e._o;if(!r.headerRow||!r.tbody)return e;const i=r.headerRow.querySelectorAll("div.".concat(n.tableClassName,"-header-cell"))[t];if(!i)return e;const o=r.columns.get(i.columnName);if(o){i.style.width=(o.actualWidthConsideringScrollbarWidth||o.actualWidth||0)+"px";const e=(o.actualWidthConsideringScrollbarWidth||o.actualWidth||0)+"px",n=r.tbody.childNodes;for(let r=0,i=n.length;r<i;r++){const i=n[r];1===i.nodeType&&(i.childNodes[t].style.width=e)}}return e}function ls(e){const t=e._p,r=e._o;if(t.table&&t.headerRow){const e=r.tableClassName,i=s(t.headerRow,">div.".concat(e,"-header-cell.sorted")),o=Array.prototype.slice.call(i,0).map(e=>e.querySelector(":scope>div>.sort-arrow")).filter(e=>!!e);for(const e of o){var n;const r=null===(n=e.parentNode)||void 0===n?void 0:n.parentNode;if(r){const e=t.columns.get(r.columnName);e&&(e.arrowProposedWidth=0)}e.remove()}for(const e of i)e.classList.remove("sorted","desc")}return e}function ss(e,t,r){const n=e._p,i=e._o,o=n.columns.get(t);if(!o)return!1;const l=Ql("span");var s;return l.className="sort-arrow",o.element&&(o.element.className+=r?" sorted desc":" sorted",null===(s=o.element.firstChild)||void 0===s||s.insertBefore(l,o.element.firstChild.firstChild)),2!==o.widthMode&&i.adjustColumnWidthForSortArrow&&(o.arrowProposedWidth=l.scrollWidth+(parseFloat(getComputedStyle(l).marginRight)||0)+(parseFloat(getComputedStyle(l).marginLeft)||0)),!0}function as(e,t){const r=t.firstChild;t.addEventListener("mousedown",t=>Vl(e,t)),t.addEventListener("mousemove",t=>Xl(e,t)),t.addEventListener("mouseup",t=>function(e,t){2===t.button&&Yl(e,t)}(e,t)),t.addEventListener("mouseleave",t=>function(e,t){const r=e._o,n=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));n&&(n.style.cursor="")}(e,t)),t.addEventListener("touchstart",t=>function(e,t){const r=e._p;if(r.currentTouchId)return;const n=t.changedTouches[0];r.currentTouchId=n.identifier;const i=t.currentTarget,o={x:n.pageX,y:n.pageY};let l,s=o;const a=function(){r.currentTouchId=null,r.eventsSink.remove(i,".colheader"),clearTimeout(l)};t[xl]=t.changedTouches[0],Vl(e,t),l=setTimeout(()=>{a(),r.eventsSink.add(i,"touchend.colheader",e=>{Al(e)||e.preventDefault(),r.eventsSink.remove(i,".colheader")},{once:!0}).add(i,"touchcancel.colheader",e=>{r.eventsSink.remove(i,".colheader")},{once:!0}),Math.sqrt(Math.pow(Math.abs(s.x-o.x),2)+Math.pow(Math.abs(s.y-o.y),2))<9&&(Dl(e),Yl(e,t))},500),r.eventsSink.add(i,"touchend.colheader",t=>{const n=t,i=vl(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(a(),Al(t)||t.preventDefault(),s={x:i.pageX,y:i.pageY},(Math.sqrt(Math.pow(Math.abs(s.x-o.x),2)+Math.pow(Math.abs(s.y-o.y),2))<9||r.resizer)&&(n[xl]=i,Jl(e,n)))}).add(i,"touchcancel.colheader",a).add(i,"touchmove.colheader",t=>{const n=t,i=vl(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(s={x:i.pageX,y:i.pageY},r.resizer&&(t.preventDefault(),n[xl]=i,Xl(e,n)))})}(e,t)),t.addEventListener("dragstart",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){const e=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!e)return void t.preventDefault();const o=n.columns.get(e.columnName);var i;o&&o.movable?(e.style.opacity="0.35",n.dragId=161061273*Math.random(),null===(i=t.dataTransfer)||void 0===i||i.setData("text",JSON.stringify({dragId:n.dragId,column:o.name}))):t.preventDefault()}else t.preventDefault()}(e,t)),t.addEventListener("click",t=>Jl(e,t)),t.addEventListener("contextmenu",e=>e.preventDefault()),r.addEventListener("dragenter",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){var i;let e=null;const o=null===(i=t.dataTransfer)||void 0===i?void 0:i.getData("text");if(o)try{e=JSON.parse(o)}catch(t){e=null}const l=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!l)return;if(!e||n.dragId===e.dragId&&l.columnName!==e.column){const e=n.columns.get(l.columnName);e&&(e.movable||e!==n.visibleColumns[0])&&l.classList.add("drag-over")}}}(e,t)),r.addEventListener("dragover",e=>{e.preventDefault()}),r.addEventListener("dragleave",t=>function(e,t){const r=e._o,n=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!n)return;const i=t.relatedTarget;null!=i&&i.contains(n.firstChild)||n.classList.remove("drag-over")}(e,t)),r.addEventListener("drop",t=>function(e,t){var r;t.preventDefault();const n=e._o,i=e._p,o=null===(r=t.dataTransfer)||void 0===r?void 0:r.getData("text");if(!o)return;let l;try{l=JSON.parse(o)}catch(e){return}const s=t.target.closest("div.".concat(n.tableClassName,"-header-cell,div.").concat(n.cellPreviewClassName));if(s){if(n.movableColumns&&l.dragId===i.dragId){const t=l.column,r=s.columnName,n=i.columns.get(t),o=i.columns.get(r);n&&o&&n.movable&&(o.movable||o!==i.visibleColumns[0])&&e.moveColumn(t,r)}s.classList.remove("drag-over")}}(e,t))}function us(e,t){let r=Math.max(0,parseFloat(e)||0),n=0;return r>0&&(e===r+"%"?(n=2,r/=100):r>0&&r<1?n=2:(r<t&&(r=t),n=1)),{width:r,mode:n}}function cs(e,t){let r=us(t.width,t.ignoreMin?0:e.minColumnWidth),n={name:t.name,label:void 0===t.label?t.name:t.label,width:r.width,widthMode:r.mode,resizable:void 0===t.resizable||t.resizable,sortable:void 0===t.sortable||t.sortable,movable:void 0===t.movable||t.movable,visible:void 0===t.visible||t.visible,cellClasses:void 0===t.cellClasses?e.cellClasses:t.cellClasses,ignoreMin:void 0!==t.ignoreMin&&!!t.ignoreMin,sticky:void 0===t.sticky?null:t.sticky||null,dataPath:[],comparePath:[],order:0};const i=void 0===t.dataPath?[n.name]:t.dataPath;n.dataPath="string"==typeof i?i.split("."):i;const o=void 0===t.comparePath?n.dataPath:t.comparePath;return n.comparePath="string"==typeof o?o.split("."):o,n}function ds(e){const t=e._p;0===t.visibleColumns.length&&t.columns.length&&(t.columns[0].visible=!0,t.visibleColumns.push(t.columns[0]),e.emit("showcolumn",t.columns[0].name))}function hs(e){const t=e._p;if(t.filteredRows&&t.filterArgs){let r=e._o.filter||Pl;t.filteredRows=t.rows.filteredCollection(r,t.filterArgs)}}function fs(e,t,r){let n=r.dataPath,i=t[n[0]];for(let e=1;e<n.length&&null!=i;e++)i=i&&i[n[e]];const o=e.cellFormatter;let l;if(o[bl])l=o(i,r.name,t);else try{l=o(i,r.name,t)}catch(e){l="[ERROR]",console.error("Failed to generate content for cell "+r.name,e)}return null==l&&(l=""),l}const vs=Array.prototype.indexOf,ps=document.createElement.bind(document);function ms(e){const t=e._p;if(t.cellPreviewCell){var r;const n=t.cellPreviewCell,i=n[Rl];let o;try{o=Bl.saveSelection(n)}catch(e){}t.cellPreviewCell.remove(),i&&t._unbindCellHoverOut(i),t._unbindCellHoverOut(n);try{o&&i&&Bl.restoreSelection(i,o)}catch(e){}e.emit("cellpreviewdestroy",{el:n.firstChild,name:n.columnName,rowIndex:null!==(r=n.rowIndex)&&void 0!==r?r:null,rowData:null==n.rowIndex?null:t.rows[n.rowIndex],cell:i,cellEl:null==i?void 0:i.firstChild}),i&&delete i[Sl],delete n[Rl],t.cellPreviewCell=null,t.abortCellPreview=!1}else t.abortCellPreview=!0;return e}const gs=Object.prototype.hasOwnProperty;class bs{constructor(e){this.VERSION=bs.VERSION;const t=this._o={},l=this._p={eventsSink:new a,mitt:{all:s=s||new Map,on:function(e,t){var r=s.get(e);r?r.push(t):s.set(e,[t])},off:function(e,t){var r=s.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):s.set(e,[]))},emit:function(e,t){var r=s.get(e);r&&r.slice().map(function(e){e(t)}),(r=s.get("*"))&&r.slice().map(function(r){r(e,t)})}},tableSkeletonNeedsRendering:!0};var s;this.el=e.el&&e.el instanceof HTMLElement?e.el:document.createElement("div"),this.el!==e.el&&this.el.classList.add(e.className||"dgtable-wrapper"),l.eventsSink.add(this.el,"dragend.colresize",e=>{return t=e,void(this._p.resizer||(t.target.style.opacity=""));var t}),t.virtualTable=void 0===e.virtualTable||!!e.virtualTable,t.estimatedRowHeight=e.estimatedRowHeight||void 0,t.rowsBufferSize=e.rowsBufferSize||3,t.minColumnWidth=Math.max(e.minColumnWidth||35,0),t.resizeAreaWidth=e.resizeAreaWidth||8,t.resizableColumns=void 0===e.resizableColumns||!!e.resizableColumns,t.movableColumns=void 0===e.movableColumns||!!e.movableColumns,t.sortableColumns=void 0===e.sortableColumns?1:parseInt(String(e.sortableColumns),10)||1,t.adjustColumnWidthForSortArrow=void 0===e.adjustColumnWidthForSortArrow||!!e.adjustColumnWidthForSortArrow,t.convertColumnWidthsToRelative=void 0!==e.convertColumnWidthsToRelative&&!!e.convertColumnWidthsToRelative,t.autoFillTableWidth=void 0!==e.autoFillTableWidth&&!!e.autoFillTableWidth,t.allowCancelSort=void 0===e.allowCancelSort||!!e.allowCancelSort,t.cellClasses=void 0===e.cellClasses?"":e.cellClasses,t.resizerClassName=void 0===e.resizerClassName?"dgtable-resize":e.resizerClassName,t.tableClassName=void 0===e.tableClassName?"dgtable":e.tableClassName,t.allowCellPreview=void 0===e.allowCellPreview||e.allowCellPreview,t.allowHeaderCellPreview=void 0===e.allowHeaderCellPreview||e.allowHeaderCellPreview,t.cellPreviewClassName=void 0===e.cellPreviewClassName?"dgtable-cell-preview":e.cellPreviewClassName,t.cellPreviewAutoBackground=void 0===e.cellPreviewAutoBackground||e.cellPreviewAutoBackground,t.onComparatorRequired=void 0===e.onComparatorRequired?null:e.onComparatorRequired,t.customSortingProvider=void 0===e.customSortingProvider?null:e.customSortingProvider,t.width=void 0===e.width?Nl.NONE:e.width,t.relativeWidthGrowsToFillWidth=void 0===e.relativeWidthGrowsToFillWidth||!!e.relativeWidthGrowsToFillWidth,t.relativeWidthShrinksToFillWidth=void 0!==e.relativeWidthShrinksToFillWidth&&!!e.relativeWidthShrinksToFillWidth,this.setCellFormatter(e.cellFormatter),this.setHeaderCellFormatter(e.headerCellFormatter),this.setFilter(e.filter),t.height=e.height,this.setColumns(e.columns||[],!1);let u=[];if(e.sortColumn){let t=Array.isArray(e.sortColumn)?e.sortColumn:[e.sortColumn];for(let e=0,r=t.length;e<r;e++){var c;let r=t[e];"string"==typeof r&&(r={column:r,descending:!1});let n=l.columns.get(r.column);n&&u.push({column:r.column,comparePath:n.comparePath||n.dataPath,descending:null!==(c=r.descending)&&void 0!==c&&c})}}l.rows=new _l({sortColumn:u}),l.rows.onComparatorRequired=(e,r,n)=>{if(t.onComparatorRequired)return t.onComparatorRequired(e,r,n)},l.rows.customSortingProvider=(e,r)=>t.customSortingProvider?t.customSortingProvider(e,r):r(e),l.filteredRows=null,l.scrollbarWidth=0,l._lastVirtualScrollHeight=0,function(e){const t=e._p,l=t=>{let l=t.currentTarget,s=t.relatedTarget;s===l||l.contains(s)||l[Sl]&&(s===l[Sl]||l[Sl].contains(s))||function(e,t){var l,s;const a=e._o,u=e._p,c=t.firstElementChild;if(!c)return;if(!(c.scrollWidth-c.clientWidth>1||c.scrollHeight-c.clientHeight>1))return;ms(e),u.abortCellPreview=!1;const d=t.parentElement;if(!d)return;const h=ps("div");h.innerHTML=t.innerHTML,h.className=a.cellPreviewClassName;const f=t.classList.contains("".concat(a.tableClassName,"-header-cell"));f&&(h.classList.add("header"),t.classList.contains("sortable")&&h.classList.add("sortable"),h.draggable=!0,as(e,h));const v=getComputedStyle(t),p=getComputedStyle(c),m="right"===v.float,g=m?"right":"left",b=parseFloat(v.paddingLeft)||0,w=parseFloat(v.paddingRight)||0,y=parseFloat(v.paddingTop)||0,C=parseFloat(v.paddingBottom)||0;let S=c.scrollWidth+(t.clientWidth-c.offsetWidth);const R="border-box"===v.boxSizing;if(R?h.style.boxSizing="border-box":(S-=b+w,h.style.marginTop=(parseFloat(v.borderTopWidth)||0)+"px"),!u.transparentBgColor1){const e=document.createElement("div");document.body.appendChild(e),e.style.backgroundColor="transparent",u.transparentBgColor1=getComputedStyle(e).backgroundColor,e.style.backgroundColor="rgba(0,0,0,0)",u.transparentBgColor2=getComputedStyle(e).backgroundColor,e.remove()}const x={"box-sizing":R?"border-box":"content-box",width:S,"min-height":Math.max(o(t),/%/.test(v.minHeight)?0:parseFloat(v.minHeight)||0)+"px","padding-left":b,"padding-right":w,"padding-top":y,"padding-bottom":C,overflow:"hidden",position:"absolute","z-index":"-1",[g]:"0",top:"0",cursor:v.cursor};let L=v.backgroundColor;L!==u.transparentBgColor1&&L!==u.transparentBgColor2||(L=getComputedStyle(d).backgroundColor),L!==u.transparentBgColor1&&L!==u.transparentBgColor2||(L="#fff"),x["background-color"]=L,n(h,x),h.firstChild&&n(h.firstChild,{direction:p.direction,"white-space":p.whiteSpace,"min-height":p.minHeight,"line-height":p.lineHeight,font:p.font}),e.el.appendChild(h),f&&Fl(h),h.rowVIndex=d.vIndex;const _=h.rowIndex=d.index;h.columnName=null===(l=u.visibleColumns[vs.call(d.childNodes,t)])||void 0===l?void 0:l.name;try{const e=Bl.saveSelection(t);e&&Bl.restoreSelection(h,e)}catch(e){}if(e.emit("cellpreview",{el:h.firstElementChild,name:h.columnName,rowIndex:null!=_?_:null,rowData:null==_?null:u.rows[_],cell:t,cellEl:c}),u.abortCellPreview)return void h.remove();null!=_&&h.addEventListener("click",t=>{e.emit("rowclick",{event:t,filteredRowIndex:d.vIndex,rowIndex:_,rowEl:d,rowData:u.rows[_]})});const k=e.el,W=k===window?document:k,P=getComputedStyle(k),N=i(t),O=i(k);if(m){const e=window.innerWidth;N.right=e-(N.left+r(t,!0,!0,!0)),O.right=e-(O.left+r(k,!0,!0,!0))}N.left-=parseFloat(P.borderLeftWidth)||0,"right"===g&&void 0!==N.right&&void 0!==O.right&&(N.right-=parseFloat(P.borderRightWidth)||0),N.top-=parseFloat(P.borderTopWidth)||0,"left"===g?N.left+=parseFloat(v.borderLeftWidth)||0:void 0!==N.right&&(N.right+=parseFloat(v.borderRightWidth)||0),N.top+=parseFloat(v.borderTopWidth)||parseFloat(v.borderBottomWidth)||0,N.left-=O.left,"right"===g&&void 0!==N.right&&void 0!==O.right&&(N.right-=O.right),N.top-=O.top;const T=r(k,!1,!1,!1)-r(h,!0,!0,!0),A="left"===g?N.left:null!==(s=N.right)&&void 0!==s?s:0,E=A<0?0:A>T?T:A;"left"===g?N.left=E:N.right=E;const F=o(t,!0,!0,!0),z=("scrollTop"in W?W.scrollTop:0)+o(k,!0)-F;N.top>z&&(N.top=Math.max(0,z));const I={top:N.top+"px","z-index":9999};I[g]=("left"===g?N.left:N.right)+"px",n(h,I),h[Rl]=t,u.cellPreviewCell=h,t[Sl]=h,u._bindCellHoverOut(t),u._bindCellHoverOut(h),h.addEventListener("wheel",()=>{ms(e)})}(e,l)},s=t=>{let r=t.currentTarget[Rl]||t.currentTarget,n=t.relatedTarget;n===e.el||r.contains(n)||r[Sl]&&(n===r[Sl]||r[Sl].contains(n))||function(e){ms(e)}(e)};t._bindCellHoverIn=e=>{e[wl]||e.addEventListener("mouseover",e[wl]=l)},t._unbindCellHoverIn=e=>{e[wl]&&(e.removeEventListener("mouseover",e[wl]),e[wl]=null)},t._bindCellHoverOut=e=>{e[yl]||e.addEventListener("mouseout",e[yl]=s)},t._unbindCellHoverOut=e=>{e[yl]&&(e.removeEventListener("mouseout",e[yl]),e[yl]=null)}}(this)}on(e,t){return this._p.mitt.on(e,t),this}once(e,t){const r=n=>{this._p.mitt.off(e,r),t(n)};return this._p.mitt.on(e,r),this}off(e,t){return e||t?this._p.mitt.off(e,t):this._p.mitt.all.clear(),this}emit(e,t){return this._p.mitt.emit(e,t),this}destroy(){var e,t,r;const n=this._p,i=this.el;if(this.__removed||!n)return this;if(n.resizer&&(n.resizer.remove(),n.resizer=null),null===(e=n.virtualListHelper)||void 0===e||e.destroy(),n.virtualListHelper=null,Zl(this),null===(t=n.table)||void 0===t||t.remove(),null===(r=n.tbody)||void 0===r||r.remove(),n.workerListeners){for(let e=0;e<n.workerListeners.length;e++){let t=n.workerListeners[e];t.worker.removeEventListener("message",t.listener,!1)}n.workerListeners.length=0}n.rows.length=n.columns.length=0,n._deferredRender&&clearTimeout(n._deferredRender);for(let e in this)gs.call(this,e)&&(this[e]=null);return this.__removed=!0,i&&i.remove(),this}close(){this.destroy()}remove(){this.destroy()}render(){const r=this._o,i=this._p;if(!this.el.offsetParent)return i._deferredRender||(i._deferredRender=setTimeout(()=>{i._deferredRender=null,!this.__removed&&this.el.offsetParent&&this.render()})),this;if(!0===i.tableSkeletonNeedsRendering){var l;i.tableSkeletonNeedsRendering=!1,r.width===Nl.AUTO&&ls(this);let s=i.table&&i.table.parentNode?i.table.scrollTop:NaN,a=i.table&&i.table.parentNode?e(i.table):NaN;!function(e){var t;const r=e._p,n=e._o;null===(t=r.virtualListHelper)||void 0===t||t.destroy(),r.virtualListHelper=null,r.table&&n.virtualTable&&(r.table.remove(),r.table=void 0,r.tbody=void 0),Zl(e),r.currentTouchId=null,r.header&&r.header.remove();const i=n.tableClassName,l=Ql("div"),s=Ql("div");l.className="".concat(i,"-header"),s.className="".concat(i,"-header-row"),r.header=l,r.headerRow=s,l.appendChild(s),e.el.prepend(l),Tl(e.el),n.width===Nl.SCROLL?e.el.style.overflow="hidden":e.el.style.overflow="",!n.height&&n.virtualTable&&(n.height=o(e.el,!0))}(this),function(e){const t=e._p,r=e._o,i=r.tableClassName;if(r.virtualTable&&!t.virtualRowHeight){const r=()=>{const e=Ql("div"),t=e.appendChild(Ql("div")),r=t.appendChild(Ql("div"));return e.className="".concat(i,"-row"),t.className="".concat(i,"-cell"),r.innerHTML="0",e.style.visibility="hidden",e.style.position="absolute",e},l=Ql("div");l.className=e.el.className,n(l,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",width:"1px",overflow:"hidden"});const s=Ql("div");s.className=i,l.appendChild(s);const a=Ql("div");a.className="".concat(i,"-body"),a.style.width="99999px",s.appendChild(a),document.body.appendChild(l);const u=r(),c=r(),d=r();a.appendChild(u),a.appendChild(c),a.appendChild(d),t.virtualRowHeight=o(c,!0,!0,!0),l.remove()}if(!t.table){var l;const s=document.createDocumentFragment(),a=Ql("div");a.className=i,r.virtualTable&&(a.className+=" virtual");const c=getComputedStyle(a);let d=(null!==(l=r.height)&&void 0!==l?l:0)-o(t.header,!0,!0,!0);"border-box"!==c.boxSizing&&(d-=parseFloat(c.borderTopWidth)||0,d-=parseFloat(c.borderBottomWidth)||0,d-=parseFloat(c.paddingTop)||0,d-=parseFloat(c.paddingBottom)||0),n(a,{height:r.height?d+"px":"auto",display:"block",overflowY:"auto",overflowX:r.width===Nl.SCROLL?"auto":"hidden"}),s.appendChild(a);const h=Ql("div");h.className=r.tableClassName+"-body",h.style.minHeight="1px",t.table=a,t.tbody=h,Tl(h),Tl(a),a.appendChild(h),e.el.appendChild(s),function(e){var t;const r=e._p,n=e._o,i=n.tableClassName,o=i+"-row",l=i+"-row-alt",s=i+"-cell",a=i+"-sticky";let c=r.visibleColumns,d=c.length;r.notifyRendererOfColumnsConfig=()=>{c=r.visibleColumns,d=c.length;for(let e=0;e<d;e++){const t=c[e];t._finalWidth=t.actualWidthConsideringScrollbarWidth||t.actualWidth}},r.virtualListHelper=new u({list:r.table,itemsParent:r.tbody,autoVirtualWrapperWidth:!1,virtual:n.virtualTable,buffer:n.rowsBufferSize,estimatedItemHeight:n.estimatedRowHeight?n.estimatedRowHeight:r.virtualRowHeight||40,itemElementCreatorFn:()=>Ql("div"),onItemRender:(t,i)=>{const u=r.filteredRows||r.rows,h=!!r.filteredRows,f=n.allowCellPreview,v=r.isStickyColumns;t.className=o,i%2==1&&(t.className+=" "+l);const p=u[i],m=h?p[Ll]:i;t.vIndex=i,t.index=m;for(let e=0;e<d;e++){var g;const i=c[e],o=Ql("div");if(o.columnName=i.name,o.setAttribute("data-column",i.name),o.className=s,o.style.width=(null!==(g=i._finalWidth)&&void 0!==g?g:0)+"px",i.cellClasses&&(o.className+=" "+i.cellClasses),i.stickyPos){o.className+=" "+a,o.style.position="sticky",o.style[i.stickyPos.direction]=i.stickyPos.offset+"px";const t=null==v?void 0:v.get(e);"left"===t?o.classList.add("is-sticky-left"):"right"===t&&o.classList.add("is-sticky-right")}f&&r._bindCellHoverIn(o),o.appendChild(Ql("div")).innerHTML=fs(n,p,i),t.appendChild(o)}t.addEventListener("click",t[Cl]=r=>{e.emit("rowclick",{event:r,filteredRowIndex:i,rowIndex:m,rowEl:t,rowData:p})}),e.emit("rowcreate",{filteredRowIndex:i,rowIndex:m,rowEl:t,rowData:p})},onItemUnrender:t=>{t[Cl]&&t.removeEventListener("click",t[Cl]),function(e,t){const r=e._p;for(let e=0,n=t.childNodes,i=n.length;e<i;e++)r._unbindCellHoverIn(n[e])}(e,t),e.emit("rowdestroy",t)},onScrollHeightChange:t=>{t>r._lastVirtualScrollHeight&&!r.scrollbarWidth&&ts(e),r._lastVirtualScrollHeight=t}}),r.virtualListHelper.setCount((null!==(t=r.filteredRows)&&void 0!==t?t:r.rows).length),r.notifyRendererOfColumnsConfig()}(e)}}(this),this.tableWidthChanged(!0,!1),function(e){const t=e._p,r=e._o,n=r.allowCellPreview,i=r.allowHeaderCellPreview,o=r.tableClassName+"-header-cell",l=t.headerRow;for(let a=0;a<t.visibleColumns.length;a++){const u=t.visibleColumns[a];if(u.visible){var s;const c=Ql("div");c.draggable=!0,c.className=o,c.style.width=(null!==(s=u.actualWidth)&&void 0!==s?s:0)+"px",r.sortableColumns&&u.sortable&&(c.className+=" sortable"),c.columnName=u.name,c.setAttribute("data-column",u.name);const d=Ql("div");d.innerHTML=r.headerCellFormatter(u.label,u.name),c.appendChild(d),n&&i&&t._bindCellHoverIn(c),l.appendChild(c),t.visibleColumns[a].element=c,as(e,c),Fl(c)}}ns(e),e.emit("headerrowcreate",l)}(this),i.virtualListHelper.setCount((null!==(l=i.filteredRows)&&void 0!==l?l:i.rows).length),es(this),ts(this,!0),rs(this,!0);for(let e=0;e<i.rows.sortColumn.length;e++)ss(this,i.rows.sortColumn[e].column,i.rows.sortColumn[e].descending);r.adjustColumnWidthForSortArrow&&i.rows.sortColumn.length?this.tableWidthChanged(!0):r.virtualTable||this.tableWidthChanged(),isNaN(s)||(i.table.scrollTop=s),isNaN(a)||(t(i.table,a),t(i.header,a)),this.emit("renderskeleton")}return i.virtualListHelper.render(),this.emit("render"),this}clearAndRender(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}setColumns(e,t){const r=this._p;e=e||[];let n=new Wl;for(let t=0,r=0;t<e.length;t++){let i=e[t],o=cs(this._o,i);void 0!==i.order?(i.order>r&&(r=i.order+1),o.order=i.order):o.order=r++,n.push(o)}return n.normalizeOrder(),r.columns=n,r.visibleColumns=n.getVisibleColumns(),ds(this),this.clearAndRender(t),this}addColumn(e,t,r){const n=this._p;let i=n.columns;if(e&&!i.get(e.name)){let o=null;void 0!==t&&(o="string"==typeof t?i.get(t):i.getByOrder(t));let l=cs(this._o,e);l.order=o?o.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(),n.visibleColumns=i.getVisibleColumns(),ds(this),this.clearAndRender(r),this.emit("addcolumn",l.name)}return this}removeColumn(e,t){const r=this._p;let n=r.columns,i=n.indexOf(e);return i>-1&&(n.splice(i,1),n.normalizeOrder(),r.visibleColumns=n.getVisibleColumns(),ds(this),this.clearAndRender(t),this.emit("removecolumn",e)),this}setColumnLabel(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.firstChild.childNodes.length;e++){let t=r.element.firstChild.childNodes[e];if(3===t.nodeType){t.textContent=r.label;break}}return this}moveColumn(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=this._o,i=this._p;let o,l,a=i.columns,u=r?i.visibleColumns:a.getColumns();if("string"==typeof e?o=a.get(e):"number"==typeof e&&(o=u[e]),"string"==typeof t?l=a.get(t):"number"==typeof t&&(l=u[t]),o&&l&&e!==t){let e=o.order,t=l.order,r=a.moveColumn(o,l).getVisibleColumns();if(i.visibleColumns.length!==r.length||i.visibleColumns.some((e,t)=>e!==r[t]))if(i.visibleColumns=r,ds(this),n.virtualTable)this.clearAndRender();else{var c,d;const r=s(i.headerRow,">div.".concat(n.tableClassName,"-header-cell"));let o=e<t?t+1:t,l=e;r[0].parentNode.insertBefore(r[l],r[o]);let a=i.visibleColumns[e],u=(null!==(c=a.actualWidthConsideringScrollbarWidth||a.actualWidth)&&void 0!==c?c:0)+"px",h=i.visibleColumns[t],f=(null!==(d=h.actualWidthConsideringScrollbarWidth||h.actualWidth)&&void 0!==d?d:0)+"px",v=i.tbody.childNodes;for(let r=0,n=v.length;r<n;r++){let n=v[r];1===n.nodeType&&(n.insertBefore(n.childNodes[l],n.childNodes[o]),n.childNodes[t].firstChild.style.width=f,n.childNodes[e].firstChild.style.width=u)}}this.emit("movecolumn",{name:o.name,src:e,dest:t})}return this}setColumnVisible(e,t){const r=this._p;let n=r.columns.get(e);return t=!!t,n&&!!n.visible!==t&&(n.visible=t,r.visibleColumns=r.columns.getVisibleColumns(),this.emit(t?"showcolumn":"hidecolumn",e),ds(this),this.clearAndRender()),this}isColumnVisible(e){let t=this._p.columns.get(e);return!!t&&t.visible}setMinColumnWidth(e){let t=this._o;return e=Math.max(e,0),t.minColumnWidth!==e&&(t.minColumnWidth=e,this.tableWidthChanged(!0)),this}getMinColumnWidth(){return this._o.minColumnWidth}setColumnWidth(e,t){let r=this._p.columns.get(e),n=us(t,r.ignoreMin?0:this._o.minColumnWidth);if(r){let e=jl(r);r.width=n.width,r.widthMode=n.mode;let t=jl(r);e!==t&&this.tableWidthChanged(!0),this.emit("columnwidth",{name:r.name,width:t,oldWidth:e})}return this}getColumnWidth(e){let t=this._p.columns.get(e);return t?jl(t):null}getColumnConfig(e){let t=this._p.columns.get(e);return t?{order:t.order,width:jl(t),visible:t.visible,label:t.label}:null}getColumnsConfig(){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}setSortableColumns(e){const t=this._p,r=this._o;if(r.sortableColumns!==e&&(r.sortableColumns=e,t.table)){const e=s(t.headerRow,">div.".concat(r.tableClassName,"-header-cell"));for(let n=0,i=e.length;n<i;n++)e[n].classList[r.sortableColumns>0&&t.visibleColumns[n].sortable?"add":"remove"]("sortable")}return this}getSortableColumns(){return this._o.sortableColumns}setMovableColumns(e){let t=this._o;return e=void 0===e||!!e,t.movableColumns!==e&&(t.movableColumns=e),this}getMovableColumns(){return this._o.movableColumns}setResizableColumns(e){let t=this._o;return e=void 0===e||!!e,t.resizableColumns!==e&&(t.resizableColumns=e),this}getResizableColumns(){return this._o.resizableColumns}setOnComparatorRequired(e){let t=this._o;return t.onComparatorRequired!==e&&(t.onComparatorRequired=e),this}setCustomSortingProvider(e){let t=this._o;return t.customSortingProvider!==e&&(t.customSortingProvider=e),this}sort(e,t,r){const n=this._o,i=this._p;let o=i.columns.get(e),l=i.rows.sortColumn;if(o){if(r){for(let e=0;e<l.length;e++)if(l[e].column===o.name){e<l.length-1?l.length=0:(t=l[l.length-1].descending,l.splice(l.length-1,1));break}(n.sortableColumns>0&&l.length>=n.sortableColumns||l.length>=i.visibleColumns.length)&&(l.length=0)}else l.length=0;t=void 0!==t&&t,l.push({column:o.name,comparePath:o.comparePath||o.dataPath,descending:!!t})}else l.length=0;ls(this);for(let e=0;e<l.length;e++)ss(this,l[e].column,l[e].descending);n.adjustColumnWidthForSortArrow&&!i.tableSkeletonNeedsRendering&&this.tableWidthChanged(!0),i.rows.sortColumn=l,l.length&&(i.rows.sort(),i.filteredRows&&i.filteredRows.sort()),i.virtualListHelper&&i.virtualListHelper.invalidate().render();let s=[];for(let e=0;e<l.length;e++)s.push({column:l[e].column,descending:l[e].descending});return this.emit("sort",{sorts:s}),this}resort(){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);e.rows.sortColumn=r,r.length&&(e.rows.sort(),e.filteredRows&&e.filteredRows.sort());let n=[];for(let e=0;e<r.length;e++)n.push({column:r[e].column,descending:r[e].descending});this.emit("sort",{sorts:n,resort:!0})}return this}getSortedColumns(){const e=this._p;let t=[];for(let r=0;r<e.rows.sortColumn.length;r++){let n=e.rows.sortColumn[r];t.push({column:n.column,descending:n.descending})}return t}setCellFormatter(e){if(!e){const t=e=>"string"==typeof e?pl(e):e;t[bl]=!0,e=t}return this._o.cellFormatter=e,this}setHeaderCellFormatter(e){return this._o.headerCellFormatter=e||function(e){return"string"==typeof e?pl(e):e},this}setFilter(e){return this._o.filter=e,this}filter(e){const t=this._p;let r=this._o.filter||Pl;"string"==typeof arguments[0]&&"string"==typeof arguments[1]&&(e={column:arguments[0],keyword:arguments[1],caseSensitive:arguments[2]});let n=!!t.filteredRows;return t.filteredRows&&(t.filteredRows=null),t.filterArgs=null==e?null:"object"!=typeof e||Array.isArray(e)?e:Object.assign({},e),null!==t.filterArgs?(t.filteredRows=t.rows.filteredCollection(r,t.filterArgs),(n||t.filteredRows)&&(this.clearAndRender(),this.emit("filter",e))):(t.filterArgs=null,t.filteredRows=null,this.clearAndRender(),this.emit("filterclear",{})),this}clearFilter(){const e=this._p;return e.filteredRows&&(e.filterArgs=null,e.filteredRows=null,this.clearAndRender(),this.emit("filterclear",{})),this}getHtmlForRowCell(e,t){const r=this._p;if(e<0||e>r.rows.length-1)return null;let n=r.columns.get(t);if(!n)return null;let i=r.rows[e];return fs(this._o,i,n)}getHtmlForRowDataCell(e,t){let r=this._p.columns.get(t);return r?fs(this._o,e,r):null}getRowYPos(e){return this._p.virtualListHelper.getItemPosition(e)||null}getDataForRow(e){const t=this._p;return e<0||e>t.rows.length-1?null:t.rows[e]}getRowCount(){const e=this._p;return e.rows?e.rows.length:0}getIndexForRow(e){return this._p.rows.indexOf(e)}getFilteredRowCount(){const e=this._p;return(e.filteredRows||e.rows).length}getIndexForFilteredRow(e){const t=this._p;return(t.filteredRows||t.rows).indexOf(e)}getDataForFilteredRow(e){const t=this._p;return e<0||e>(t.filteredRows||t.rows).length-1?null:(t.filteredRows||t.rows)[e]}getHeaderRowElement(){return this._p.headerRow}addRows(e,t,r,n){let i=this._p;"boolean"==typeof t&&(n=r,r=t,t=-1),"number"!=typeof t&&(t=-1),(t<0||t>i.rows.length)&&(t=i.rows.length),n=void 0===n||!!n;const o=(Array.isArray(e)?e:[e]).length;return e&&(i.rows.add(e,t),i.filteredRows||r&&i.rows.sortColumn.length?(r&&i.rows.sortColumn.length?this.resort():hs(this),i.tableSkeletonNeedsRendering=!0,n&&this.render()):n&&(i.virtualListHelper.addItemsAt(o,t),this._o.virtualTable?(es(this),ts(this),this.render(),rs(this,!1)):i.tbody&&(this.render(),ts(this),rs(this,!0))),this.emit("addrows",{count:o,clear:!1})),this}removeRows(e,t,r){let n=this._p;return"number"!=typeof t||t<=0||e<0||e>n.rows.length-1||(n.rows.splice(e,t),r=void 0===r||!!r,n.filteredRows?(hs(this),n.tableSkeletonNeedsRendering=!0,r&&this.render()):r&&(n.virtualListHelper.removeItemsAt(t,e),this._o.virtualTable?(es(this),ts(this),this.render(),rs(this,!1)):(this.render(),ts(this),rs(this,!0)))),this}removeRow(e,t){return this.removeRows(e,1,t)}refreshRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this._p;if(e<0||e>r.rows.length-1)return this;let n=-1;return r.filteredRows&&-1===(n=r.filteredRows.indexOf(r.rows[e]))||(-1===n&&(n=e),r.virtualListHelper.refreshItemAt(n),t&&r.virtualListHelper.render()),this}getRowElement(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]))?null:(-1===r&&(r=e),t.virtualListHelper.getItemElementAt(r)||null)}refreshAllVirtualRows(){return this._p.virtualListHelper.invalidate().render(),this}setRows(e,t){let r=this._p;return r.rows.reset(e),t&&r.rows.sortColumn.length?this.resort():hs(this),this.clearAndRender().emit("addrows",{count:e.length,clear:!0}),this}tableWidthChanged(e,t){let r=this._o,n=this._p,i=Il(this),o=i,l=0;if(!n.table)return this;t=void 0===t||t;let s=0;if(n.tbody||(t=!1),t&&(s=parseFloat(n.tbody.style.minWidth)||0),o!==n.lastDetectedWidth||e){var a;n.lastDetectedWidth=i;let e=0,u=[],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 i=n.visibleColumns[t];if(1===i.widthMode){let n=i.width;n+=i.arrowProposedWidth||0,!i.ignoreMin&&n<r.minColumnWidth&&(n=r.minColumnWidth),o-=n,e+=n,n!==i.actualWidth&&(i.actualWidth=n,u.push(t))}else if(0===i.widthMode){let n=zl(this,i.label)+20;n+=i.arrowProposedWidth||0,!i.ignoreMin&&n<r.minColumnWidth&&(n=r.minColumnWidth),o-=n,e+=n,n!==i.actualWidth&&(i.actualWidth=n,r.convertColumnWidthsToRelative||u.push(t))}else 2===i.widthMode&&(c+=i.width,l++)}if(r.convertColumnWidthsToRelative)for(let t=0;t<n.visibleColumns.length;t++){let r=n.visibleColumns[t];0===r.widthMode&&(r.widthMode=2,o+=r.actualWidth,r.width=r.actualWidth/e,c+=r.width,l++)}if(l&&(c<1&&r.relativeWidthGrowsToFillWidth||c>1&&r.relativeWidthShrinksToFillWidth))for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];2===t.widthMode&&(t.width/=c)}let d=Math.max(0,o);0===d&&(d=n.table.clientWidth);let h=r.minColumnWidth/d;if(isNaN(h)&&(h=0),h>0){let e,t=0;for(let e=0;e<n.visibleColumns.length;e++){let r=n.visibleColumns[e];2===r.widthMode&&!r.ignoreMin&&r.width<h&&(t+=h-r.width,r.width=h)}for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];2===i.widthMode&&!i.ignoreMin&&i.width>h&&t>0&&(e=Math.min(t,i.width-h),i.width-=e,t-=e)}}if(r.autoFillTableWidth&&o>0){let e=0,t=o;for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];i.resizable||1!==i.widthMode||(e+=i.width),2===i.widthMode&&(t-=Math.round(d*i.width))}let r=(i-e)/(i-t-e)||NaN;for(let e=0;e<n.visibleColumns.length&&t>0;e++){let t=n.visibleColumns[e];if(t.resizable||1!==t.widthMode)if(2===t.widthMode)t.width*=r;else{let n=t.actualWidth*r;t.actualWidth!==n&&(t.actualWidth=n,-1===u.indexOf(e)&&u.push(e))}}}for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];if(2===t.widthMode){let r=Math.round(d*t.width);o-=r,l--,0===l&&1===o&&(r++,o--),-1===o&&(r--,o++),r!==t.actualWidth&&(t.actualWidth=r,u.push(e))}}if(n.visibleColumns.length&&(n.visibleColumns[n.visibleColumns.length-1].actualWidthConsideringScrollbarWidth=n.visibleColumns[n.visibleColumns.length-1].actualWidth-(n.scrollbarWidth||0)),null===(a=n.notifyRendererOfColumnsConfig)||void 0===a||a.call(n),t){let e=Ml(this);s<e&&rs(this,!1);for(let e=0;e<u.length;e++)os(this,u[e]);s>e&&rs(this,!1)}}return this}tableHeightChanged(){let e=this._o,t=this._p;if(!t.table)return this;const r=getComputedStyle(t.table);let n=o(this.el,!0)-(parseFloat(r.borderTopWidth)||0)-(parseFloat(r.borderBottomWidth)||0);return n!==e.height&&(e.height=n,t.tbody&&(t.tbody.style.height=Math.max(e.height-o(t.header,!0,!0,!0),1)+"px"),e.virtualTable&&this.clearAndRender()),this}hideCellPreview(){return ms(this),this}abortCellPreview(){return this.hideCellPreview(),this}cancelColumnResize(){return Dl(this),this}getUrlForElementContent(e){let t,r=document.getElementById(e);if(r){let e=r.textContent;if("function"==typeof Blob)t=new Blob([e||""]);else{const r=window,n=r.BlobBuilder||r.WebKitBlobBuilder||r.MozBlobBuilder||r.MSBlobBuilder;if(!n)return null;const i=new n;i.append(e||""),t=i.getBlob()}return(window.URL||window.webkitURL).createObjectURL(t)}return null}isWorkerSupported(){return window.Worker instanceof Function}createWebWorker(e,t,r){if(this.isWorkerSupported()){let n=this._p,i=new Worker(e),o=e=>{e.data.append?this.addRows(e.data.rows,r):this.setRows(e.data.rows,r)};return i.addEventListener("message",o,!1),n.workerListeners||(n.workerListeners=[]),n.workerListeners.push({worker:i,listener:o}),(t||void 0===t)&&i.postMessage(null),i}return null}unbindWebWorker(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}}bs.VERSION="@@VERSION",bs.Width=Nl;export{bs as default};
|
package/dist/lib.umd.js
CHANGED
package/dist/lib.umd.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/dgtable.js 2.0.
|
|
2
|
+
* @danielgindi/dgtable.js 2.0.9
|
|
3
3
|
* git://github.com/danielgindi/dgtable.js.git
|
|
4
4
|
*/
|
|
5
5
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@danielgindi/dom-utils/lib/ScrollHelper.js"),require("@danielgindi/dom-utils/lib/Css.js"),require("@danielgindi/dom-utils/lib/DomCompat.js"),require("@danielgindi/dom-utils/lib/DomEventsSink.js"),require("@danielgindi/virtual-list-helper")):"function"==typeof define&&define.amd?define(["@danielgindi/dom-utils/lib/ScrollHelper.js","@danielgindi/dom-utils/lib/Css.js","@danielgindi/dom-utils/lib/DomCompat.js","@danielgindi/dom-utils/lib/DomEventsSink.js","@danielgindi/virtual-list-helper"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).DGTable=t(e.domUtilsScrollHelper,e.domUtilsCss,e.domUtilsDomCompat,e.domUtilsDomEventsSink,e.VirtualListHelper)}(this,function(e,t,r,n,i){"use strict";var o,l,s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a={};function u(){if(l)return o;l=1;var e=function(e){return e&&e.Math===Math&&e};return o=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof s&&s)||e("object"==typeof o&&o)||function(){return this}()||Function("return this")()}var c,d,h,f,m,p,v,g,b={};function w(){return d?c:(d=1,c=function(e){try{return!!e()}catch(e){return!0}})}function y(){if(f)return h;f=1;var e=w();return h=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function C(){if(p)return m;p=1;var e=w();return m=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function S(){if(g)return v;g=1;var e=C(),t=Function.prototype.call;return v=e?t.bind(t):function(){return t.apply(t,arguments)},v}var R,x,W,L,P,_,k,N,E,O,T,A,F,z,H,I,M,j,U,B,q,D,V,$,G,X,Y,J,K,Q,Z,ee,te,re,ne,ie,oe,le,se,ae,ue,ce={};function de(){if(R)return ce;R=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return ce.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,ce}function he(){return W?x:(W=1,x=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function fe(){if(P)return L;P=1;var e=C(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return L=e?n:function(e){return function(){return r.apply(e,arguments)}},L}function me(){if(k)return _;k=1;var e=fe(),t=e({}.toString),r=e("".slice);return _=function(e){return r(t(e),8,-1)}}function pe(){if(E)return N;E=1;var e=fe(),t=w(),r=me(),n=Object,i=e("".split);return N=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?i(e,""):n(e)}:n}function ve(){return T?O:(T=1,O=function(e){return null==e})}function ge(){if(F)return A;F=1;var e=ve(),t=TypeError;return A=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function be(){if(H)return z;H=1;var e=pe(),t=ge();return z=function(r){return e(t(r))}}function we(){if(M)return I;M=1;var e="object"==typeof document&&document.all;return I=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function ye(){if(U)return j;U=1;var e=we();return j=function(t){return"object"==typeof t?null!==t:e(t)}}function Ce(){if(q)return B;q=1;var e=u(),t=we();return B=function(r,n){return arguments.length<2?(i=e[r],t(i)?i:void 0):e[r]&&e[r][n];var i},B}function Se(){if(V)return D;V=1;var e=fe();return D=e({}.isPrototypeOf)}function Re(){if(G)return $;G=1;var e=u().navigator,t=e&&e.userAgent;return $=t?String(t):""}function xe(){if(Y)return X;Y=1;var e,t,r=u(),n=Re(),i=r.process,o=r.Deno,l=i&&i.versions||o&&o.version,s=l&&l.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=+e[1]),X=t}function We(){if(K)return J;K=1;var e=xe(),t=w(),r=u().String;return J=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function Le(){if(Z)return Q;Z=1;var e=We();return Q=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Pe(){if(te)return ee;te=1;var e=Ce(),t=we(),r=Se(),n=Le(),i=Object;return ee=n?function(e){return"symbol"==typeof e}:function(n){var o=e("Symbol");return t(o)&&r(o.prototype,i(n))}}function _e(){if(ne)return re;ne=1;var e=String;return re=function(t){try{return e(t)}catch(e){return"Object"}}}function ke(){if(oe)return ie;oe=1;var e=we(),t=_e(),r=TypeError;return ie=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function Ne(){if(se)return le;se=1;var e=ke(),t=ve();return le=function(r,n){var i=r[n];return t(i)?void 0:e(i)}}function Ee(){if(ue)return ae;ue=1;var e=S(),t=we(),r=ye(),n=TypeError;return ae=function(i,o){var l,s;if("string"===o&&t(l=i.toString)&&!r(s=e(l,i)))return s;if(t(l=i.valueOf)&&!r(s=e(l,i)))return s;if("string"!==o&&t(l=i.toString)&&!r(s=e(l,i)))return s;throw new n("Can't convert object to primitive value")}}var Oe,Te,Ae,Fe,ze,He,Ie,Me,je,Ue,Be,qe,De,Ve,$e,Ge,Xe,Ye,Je,Ke,Qe,Ze,et,tt,rt={exports:{}};function nt(){return Te?Oe:(Te=1,Oe=!1)}function it(){if(Fe)return Ae;Fe=1;var e=u(),t=Object.defineProperty;return Ae=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function ot(){if(ze)return rt.exports;ze=1;var e=nt(),t=u(),r=it(),n="__core-js_shared__",i=rt.exports=t[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.48.0",mode:e?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"}),rt.exports}function lt(){if(Ie)return He;Ie=1;var e=ot();return He=function(t,r){return e[t]||(e[t]=r||{})}}function st(){if(je)return Me;je=1;var e=ge(),t=Object;return Me=function(r){return t(e(r))}}function at(){if(Be)return Ue;Be=1;var e=fe(),t=st(),r=e({}.hasOwnProperty);return Ue=Object.hasOwn||function(e,n){return r(t(e),n)}}function ut(){if(De)return qe;De=1;var e=fe(),t=0,r=Math.random(),n=e(1.1.toString);return qe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function ct(){if($e)return Ve;$e=1;var e=u(),t=lt(),r=at(),n=ut(),i=We(),o=Le(),l=e.Symbol,s=t("wks"),a=o?l.for||l:l&&l.withoutSetter||n;return Ve=function(e){return r(s,e)||(s[e]=i&&r(l,e)?l[e]:a("Symbol."+e)),s[e]}}function dt(){if(Xe)return Ge;Xe=1;var e=S(),t=ye(),r=Pe(),n=Ne(),i=Ee(),o=ct(),l=TypeError,s=o("toPrimitive");return Ge=function(o,a){if(!t(o)||r(o))return o;var u,c=n(o,s);if(c){if(void 0===a&&(a="default"),u=e(c,o,a),!t(u)||r(u))return u;throw new l("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(o,a)}}function ht(){if(Je)return Ye;Je=1;var e=dt(),t=Pe();return Ye=function(r){var n=e(r,"string");return t(n)?n:n+""}}function ft(){if(Qe)return Ke;Qe=1;var e=u(),t=ye(),r=e.document,n=t(r)&&t(r.createElement);return Ke=function(e){return n?r.createElement(e):{}}}function mt(){if(et)return Ze;et=1;var e=y(),t=w(),r=ft();return Ze=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function pt(){if(tt)return b;tt=1;var e=y(),t=S(),r=de(),n=he(),i=be(),o=ht(),l=at(),s=mt(),a=Object.getOwnPropertyDescriptor;return b.f=e?a:function(e,u){if(e=i(e),u=o(u),s)try{return a(e,u)}catch(e){}if(l(e,u))return n(!t(r.f,e,u),e[u])},b}var vt,gt,bt,wt,yt,Ct,St,Rt={};function xt(){if(gt)return vt;gt=1;var e=y(),t=w();return vt=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Wt(){if(wt)return bt;wt=1;var e=ye(),t=String,r=TypeError;return bt=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function Lt(){if(yt)return Rt;yt=1;var e=y(),t=mt(),r=xt(),n=Wt(),i=ht(),o=TypeError,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a="enumerable",u="configurable",c="writable";return Rt.f=e?r?function(e,t,r){if(n(e),t=i(t),n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&c in r&&!r[c]){var o=s(e,t);o&&o[c]&&(e[t]=r.value,r={configurable:u in r?r[u]:o[u],enumerable:a in r?r[a]:o[a],writable:!1})}return l(e,t,r)}:l:function(e,r,s){if(n(e),r=i(r),n(s),t)try{return l(e,r,s)}catch(e){}if("get"in s||"set"in s)throw new o("Accessors not supported");return"value"in s&&(e[r]=s.value),e},Rt}function Pt(){if(St)return Ct;St=1;var e=y(),t=Lt(),r=he();return Ct=e?function(e,n,i){return t.f(e,n,r(1,i))}:function(e,t,r){return e[t]=r,e}}var _t,kt,Nt,Et,Ot,Tt,At,Ft,zt,Ht,It,Mt,jt,Ut,Bt,qt={exports:{}};function Dt(){if(kt)return _t;kt=1;var e=y(),t=at(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,i=t(r,"name"),o=i&&"something"===function(){}.name,l=i&&(!e||e&&n(r,"name").configurable);return _t={EXISTS:i,PROPER:o,CONFIGURABLE:l}}function Vt(){if(Et)return Nt;Et=1;var e=fe(),t=we(),r=ot(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),Nt=r.inspectSource}function $t(){if(Ft)return At;Ft=1;var e=lt(),t=ut(),r=e("keys");return At=function(e){return r[e]||(r[e]=t(e))}}function Gt(){return Ht?zt:(Ht=1,zt={})}function Xt(){if(Mt)return It;Mt=1;var e,t,r,n=function(){if(Tt)return Ot;Tt=1;var e=u(),t=we(),r=e.WeakMap;return Ot=t(r)&&/native code/.test(String(r))}(),i=u(),o=ye(),l=Pt(),s=at(),a=ot(),c=$t(),d=Gt(),h="Object already initialized",f=i.TypeError,m=i.WeakMap;if(n||a.state){var p=a.state||(a.state=new m);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new f(h);return t.facade=e,p.set(e,t),t},t=function(e){return p.get(e)||{}},r=function(e){return p.has(e)}}else{var v=c("state");d[v]=!0,e=function(e,t){if(s(e,v))throw new f(h);return t.facade=e,l(e,v,t),t},t=function(e){return s(e,v)?e[v]:{}},r=function(e){return s(e,v)}}return It={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!o(r)||(n=t(r)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}}function Yt(){if(jt)return qt.exports;jt=1;var e=fe(),t=w(),r=we(),n=at(),i=y(),o=Dt().CONFIGURABLE,l=Vt(),s=Xt(),a=s.enforce,u=s.get,c=String,d=Object.defineProperty,h=e("".slice),f=e("".replace),m=e([].join),p=i&&!t(function(){return 8!==d(function(){},"length",{value:8}).length}),v=String(String).split("String"),g=qt.exports=function(e,t,r){"Symbol("===h(c(t),0,7)&&(t="["+f(c(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!n(e,"name")||o&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),p&&r&&n(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var l=a(e);return n(l,"source")||(l.source=m(v,"string"==typeof t?t:"")),e};return Function.prototype.toString=g(function(){return r(this)&&u(this).source||l(this)},"toString"),qt.exports}function Jt(){if(Bt)return Ut;Bt=1;var e=we(),t=Lt(),r=Yt(),n=it();return Ut=function(i,o,l,s){s||(s={});var a=s.enumerable,u=void 0!==s.name?s.name:o;if(e(l)&&r(l,u,s),s.global)a?i[o]=l:n(o,l);else{try{s.unsafe?i[o]&&(a=!0):delete i[o]}catch(e){}a?i[o]=l:t.f(i,o,{value:l,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return i}}var Kt,Qt,Zt,er,tr,rr,nr,ir,or,lr,sr,ar,ur,cr,dr,hr,fr,mr={};function pr(){if(er)return Zt;er=1;var e=function(){if(Qt)return Kt;Qt=1;var e=Math.ceil,t=Math.floor;return Kt=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)}}();return Zt=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function vr(){if(rr)return tr;rr=1;var e=pr(),t=Math.max,r=Math.min;return tr=function(n,i){var o=e(n);return o<0?t(o+i,0):r(o,i)}}function gr(){if(ir)return nr;ir=1;var e=pr(),t=Math.min;return nr=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function br(){if(lr)return or;lr=1;var e=gr();return or=function(t){return e(t.length)}}function wr(){if(cr)return ur;cr=1;var e=fe(),t=at(),r=be(),n=function(){if(ar)return sr;ar=1;var e=be(),t=vr(),r=br(),n=function(n){return function(i,o,l){var s=e(i),a=r(s);if(0===a)return!n&&-1;var u,c=t(l,a);if(n&&o!=o){for(;a>c;)if((u=s[c++])!=u)return!0}else for(;a>c;c++)if((n||c in s)&&s[c]===o)return n||c||0;return!n&&-1}};return sr={includes:n(!0),indexOf:n(!1)}}().indexOf,i=Gt(),o=e([].push);return ur=function(e,l){var s,a=r(e),u=0,c=[];for(s in a)!t(i,s)&&t(a,s)&&o(c,s);for(;l.length>u;)t(a,s=l[u++])&&(~n(c,s)||o(c,s));return c}}function yr(){return hr?dr:(hr=1,dr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Cr,Sr,Rr,xr,Wr,Lr,Pr,_r,kr,Nr,Er,Or,Tr,Ar,Fr,zr,Hr,Ir,Mr,jr,Ur,Br,qr,Dr,Vr,$r,Gr,Xr,Yr,Jr,Kr={};function Qr(){return Cr||(Cr=1,Kr.f=Object.getOwnPropertySymbols),Kr}function Zr(){if(Rr)return Sr;Rr=1;var e=Ce(),t=fe(),r=function(){if(fr)return mr;fr=1;var e=wr(),t=yr().concat("length","prototype");return mr.f=Object.getOwnPropertyNames||function(r){return e(r,t)},mr}(),n=Qr(),i=Wt(),o=t([].concat);return Sr=e("Reflect","ownKeys")||function(e){var t=r.f(i(e)),l=n.f;return l?o(t,l(e)):t}}function en(){if(Wr)return xr;Wr=1;var e=at(),t=Zr(),r=pt(),n=Lt();return xr=function(i,o,l){for(var s=t(o),a=n.f,u=r.f,c=0;c<s.length;c++){var d=s[c];e(i,d)||l&&e(l,d)||a(i,d,u(o,d))}}}function tn(){if(kr)return _r;kr=1;var e=u(),t=pt().f,r=Pt(),n=Jt(),i=it(),o=en(),l=function(){if(Pr)return Lr;Pr=1;var e=w(),t=we(),r=/#|\.prototype\./,n=function(r,n){var a=o[i(r)];return a===s||a!==l&&(t(n)?e(n):!!n)},i=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},o=n.data={},l=n.NATIVE="N",s=n.POLYFILL="P";return Lr=n}();return _r=function(s,a){var u,c,d,h,f,m=s.target,p=s.global,v=s.stat;if(u=p?e:v?e[m]||i(m,{}):e[m]&&e[m].prototype)for(c in a){if(h=a[c],d=s.dontCallGetSet?(f=t(u,c))&&f.value:u[c],!l(p?c:m+(v?".":"#")+c,s.forced)&&void 0!==d){if(typeof h==typeof d)continue;o(h,d)}(s.sham||d&&d.sham)&&r(h,"sham",!0),n(u,c,h,s)}}}function rn(){if(Er)return Nr;Er=1;var e=_e(),t=TypeError;return Nr=function(r,n){if(!delete r[n])throw new t("Cannot delete property "+e(n)+" of "+e(r))}}function nn(){if(Fr)return Ar;Fr=1;var e=function(){if(Tr)return Or;Tr=1;var e={};return e[ct()("toStringTag")]="z",Or="[object z]"===String(e)}(),t=we(),r=me(),n=ct()("toStringTag"),i=Object,o="Arguments"===r(function(){return arguments}());return Ar=e?r:function(e){var l,s,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(l=i(e),n))?s:o?r(l):"Object"===(a=r(l))&&t(l.callee)?"Arguments":a}}function on(){if(Hr)return zr;Hr=1;var e=nn(),t=String;return zr=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function ln(){if(Mr)return Ir;Mr=1;var e=fe();return Ir=e([].slice)}function sn(){if(Ur)return jr;Ur=1;var e=ln(),t=Math.floor,r=function(n,i){var o=n.length;if(o<8)for(var l,s,a=1;a<o;){for(s=a,l=n[a];s&&i(n[s-1],l)>0;)n[s]=n[--s];s!==a++&&(n[s]=l)}else for(var u=t(o/2),c=r(e(n,0,u),i),d=r(e(n,u),i),h=c.length,f=d.length,m=0,p=0;m<h||p<f;)n[m+p]=m<h&&p<f?i(c[m],d[p])<=0?c[m++]:d[p++]:m<h?c[m++]:d[p++];return n};return jr=r}function an(){if(qr)return Br;qr=1;var e=w();return Br=function(t,r){var n=[][t];return!!n&&e(function(){n.call(null,r||function(){return 1},1)})}}!function(){if(Jr)return a;Jr=1;var e=tn(),t=fe(),r=ke(),n=st(),i=br(),o=rn(),l=on(),s=w(),u=sn(),c=an(),d=function(){if(Vr)return Dr;Vr=1;var e=Re().match(/firefox\/(\d+)/i);return Dr=!!e&&+e[1]}(),h=function(){if(Gr)return $r;Gr=1;var e=Re();return $r=/MSIE|Trident/.test(e)}(),f=xe(),m=function(){if(Yr)return Xr;Yr=1;var e=Re().match(/AppleWebKit\/(\d+)\./);return Xr=!!e&&+e[1]}(),p=[],v=t(p.sort),g=t(p.push),b=s(function(){p.sort(void 0)}),y=s(function(){p.sort(null)}),C=c("sort"),S=!s(function(){if(f)return f<70;if(!(d&&d>3)){if(h)return!0;if(m)return m<603;var e,t,r,n,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(n=0;n<47;n++)p.push({k:t+n,v:r})}for(p.sort(function(e,t){return t.v-e.v}),n=0;n<p.length;n++)t=p[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});e({target:"Array",proto:!0,forced:b||!y||!C||!S},{sort:function(e){void 0!==e&&r(e);var t=n(this);if(S)return void 0===e?v(t):v(t,e);var s,a,c=[],d=i(t);for(a=0;a<d;a++)a in t&&g(c,t[a]);for(u(c,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:l(t)>l(r)?1:-1}}(e)),s=i(c),a=0;a<s;)t[a]=c[a++];for(;a<d;)o(t,a++);return t}})}();var un,cn,dn,hn,fn,mn,pn,vn,gn,bn,wn,yn,Cn,Sn,Rn,xn,Wn,Ln,Pn,_n,kn,Nn,En,On,Tn,An,Fn,zn,Hn,In,Mn,jn,Un,Bn,qn,Dn,Vn,$n,Gn,Xn,Yn={},Jn={};function Kn(){if(mn)return fn;mn=1;var e=wr(),t=yr();return fn=Object.keys||function(r){return e(r,t)}}function Qn(){if(gn)return vn;gn=1;var e=Ce();return vn=e("document","documentElement")}function Zn(){if(wn)return bn;wn=1;var e,t=Wt(),r=function(){if(pn)return Jn;pn=1;var e=y(),t=xt(),r=Lt(),n=Wt(),i=be(),o=Kn();return Jn.f=e&&!t?Object.defineProperties:function(e,t){n(e);for(var l,s=i(t),a=o(t),u=a.length,c=0;u>c;)r.f(e,l=a[c++],s[l]);return e},Jn}(),n=yr(),i=Gt(),o=Qn(),l=ft(),s=$t(),a="prototype",u="script",c=s("IE_PROTO"),d=function(){},h=function(e){return"<"+u+">"+e+"</"+u+">"},f=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,r,i;m="undefined"!=typeof document?document.domain&&e?f(e):(r=l("iframe"),i="java"+u+":",r.style.display="none",o.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):f(e);for(var s=n.length;s--;)delete m[a][n[s]];return m()};return i[c]=!0,bn=Object.create||function(e,n){var i;return null!==e?(d[a]=t(e),i=new d,d[a]=null,i[c]=e):i=m(),void 0===n?i:r.f(i,n)}}function ei(){if(Cn)return yn;Cn=1;var e=ct(),t=Zn(),r=Lt().f,n=e("unscopables"),i=Array.prototype;return void 0===i[n]&&r(i,n,{configurable:!0,value:t(null)}),yn=function(e){i[n][e]=!0}}function ti(){return Rn?Sn:(Rn=1,Sn={})}function ri(){if(Pn)return Ln;Pn=1;var e=at(),t=we(),r=st(),n=$t(),i=function(){if(Wn)return xn;Wn=1;var e=w();return xn=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}(),o=n("IE_PROTO"),l=Object,s=l.prototype;return Ln=i?l.getPrototypeOf:function(n){var i=r(n);if(e(i,o))return i[o];var a=i.constructor;return t(a)&&i instanceof a?a.prototype:i instanceof l?s:null}}function ni(){if(kn)return _n;kn=1;var e,t,r,n=w(),i=we(),o=ye(),l=Zn(),s=ri(),a=Jt(),u=ct(),c=nt(),d=u("iterator"),h=!1;return[].keys&&("next"in(r=[].keys())?(t=s(s(r)))!==Object.prototype&&(e=t):h=!0),!o(e)||n(function(){var t={};return e[d].call(t)!==t})?e={}:c&&(e=l(e)),i(e[d])||a(e,d,function(){return this}),_n={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}}function ii(){if(En)return Nn;En=1;var e=Lt().f,t=at(),r=ct()("toStringTag");return Nn=function(n,i,o){n&&!o&&(n=n.prototype),n&&!t(n,r)&&e(n,r,{configurable:!0,value:i})}}function oi(){if(Tn)return On;Tn=1;var e=ni().IteratorPrototype,t=Zn(),r=he(),n=ii(),i=ti(),o=function(){return this};return On=function(l,s,a,u){var c=s+" Iterator";return l.prototype=t(e,{next:r(+!u,a)}),n(l,c,!1,!0),i[c]=o,l}}function li(){if(Hn)return zn;Hn=1;var e=ye();return zn=function(t){return e(t)||null===t}}function si(){if(Mn)return In;Mn=1;var e=li(),t=String,r=TypeError;return In=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function ai(){if(qn)return Bn;qn=1;var e=tn(),t=S(),r=nt(),n=Dt(),i=we(),o=oi(),l=ri(),s=function(){if(Un)return jn;Un=1;var e=function(){if(Fn)return An;Fn=1;var e=fe(),t=ke();return An=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch(e){}}}(),t=ye(),r=ge(),n=si();return jn=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,l={};try{(i=e(Object.prototype,"__proto__","set"))(l,[]),o=l instanceof Array}catch(e){}return function(e,l){return r(e),n(l),t(e)?(o?i(e,l):e.__proto__=l,e):e}}():void 0)}(),a=ii(),u=Pt(),c=Jt(),d=ct(),h=ti(),f=ni(),m=n.PROPER,p=n.CONFIGURABLE,v=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,b=d("iterator"),w="keys",y="values",C="entries",R=function(){return this};return Bn=function(n,d,f,S,x,W,L){o(f,d,S);var P,_,k,N=function(e){if(e===x&&F)return F;if(!g&&e&&e in T)return T[e];switch(e){case w:case y:case C:return function(){return new f(this,e)}}return function(){return new f(this)}},E=d+" Iterator",O=!1,T=n.prototype,A=T[b]||T["@@iterator"]||x&&T[x],F=!g&&A||N(x),z="Array"===d&&T.entries||A;if(z&&(P=l(z.call(new n)))!==Object.prototype&&P.next&&(r||l(P)===v||(s?s(P,v):i(P[b])||c(P,b,R)),a(P,E,!0,!0),r&&(h[E]=R)),m&&x===y&&A&&A.name!==y&&(!r&&p?u(T,"name",y):(O=!0,F=function(){return t(A,this)})),x)if(_={values:N(y),keys:W?F:N(w),entries:N(C)},L)for(k in _)(g||O||!(k in T))&&c(T,k,_[k]);else e({target:d,proto:!0,forced:g||O},_);return r&&!L||T[b]===F||c(T,b,F,{name:x}),h[d]=F,_}}function ui(){return Vn?Dn:(Vn=1,Dn=function(e,t){return{value:e,done:t}})}function ci(){if(Gn)return $n;Gn=1;var e=be(),t=ei(),r=ti(),n=Xt(),i=Lt().f,o=ai(),l=ui(),s=nt(),a=y(),u="Array Iterator",c=n.set,d=n.getterFor(u);$n=o(Array,"Array",function(t,r){c(this,{type:u,target:e(t),index:0,kind:r})},function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(r,!1);case"values":return l(t[r],!1)}return l([r,t[r]],!1)},"values");var h=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!s&&a&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(e){}return $n}!function(){if(Xn)return Yn;Xn=1;var e=u(),t=cn?un:(cn=1,un={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),r=function(){if(hn)return dn;hn=1;var e=ft()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return dn=t===Object.prototype?void 0:t}(),n=ci(),i=Pt(),o=ii(),l=ct()("iterator"),s=n.values,a=function(e,r){if(e){if(e[l]!==s)try{i(e,l,s)}catch(t){e[l]=s}if(o(e,r,!0),t[r])for(var a in n)if(e[a]!==n[a])try{i(e,a,n[a])}catch(t){e[a]=n[a]}}};for(var c in t)a(e[c]&&e[c].prototype,c);a(r,"DOMTokenList")}();var di,hi,fi,mi,pi,vi,gi,bi,wi,yi,Ci,Si,Ri,xi,Wi,Li,Pi,_i,ki,Ni,Ei,Oi,Ti,Ai,Fi,zi,Hi,Ii,Mi,ji,Ui,Bi,qi,Di,Vi,$i,Gi,Xi,Yi,Ji={},Ki={};function Qi(){if(hi)return di;hi=1;var e=fe(),t=pr(),r=on(),n=ge(),i=e("".charAt),o=e("".charCodeAt),l=e("".slice),s=function(e){return function(s,a){var u,c,d=r(n(s)),h=t(a),f=d.length;return h<0||h>=f?e?"":void 0:(u=o(d,h))<55296||u>56319||h+1===f||(c=o(d,h+1))<56320||c>57343?e?i(d,h):u:e?l(d,h,h+2):c-56320+(u-55296<<10)+65536}};return di={codeAt:s(!1),charAt:s(!0)}}function Zi(){if(pi)return mi;pi=1;var e=w(),t=ct(),r=y(),n=nt(),i=t("iterator");return mi=!e(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,o=new URLSearchParams("a=1&a=2&b=3"),l="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),l+=r+e}),o.delete("a",2),o.delete("b",void 0),n&&(!e.toJSON||!o.has("a",1)||o.has("a",2)||!o.has("a",void 0)||o.has("b"))||!t.size&&(n||!r)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==l||"x"!==new URL("https://x",void 0).host})}function eo(){if(wi)return bi;wi=1;var e=function(){if(gi)return vi;gi=1;var e=me(),t=fe();return vi=function(r){if("Function"===e(r))return t(r)}}(),t=ke(),r=C(),n=e(e.bind);return bi=function(e,i){return t(e),void 0===i?e:r?n(e,i):function(){return e.apply(i,arguments)}},bi}function to(){if(Ci)return yi;Ci=1;var e=Yt(),t=Lt();return yi=function(r,n,i){return i.get&&e(i.get,n,{getter:!0}),i.set&&e(i.set,n,{setter:!0}),t.f(r,n,i)}}function ro(){if(Ri)return Si;Ri=1;var e=Se(),t=TypeError;return Si=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")}}function no(){if(Pi)return Li;Pi=1;var e=S(),t=Wt(),r=Ne();return Li=function(n,i,o){var l,s;t(n);try{if(!(l=r(n,"return"))){if("throw"===i)throw o;return o}l=e(l,n)}catch(e){s=!0,l=e}if("throw"===i)throw o;if(s)throw l;return t(l),o}}function io(){if(ki)return _i;ki=1;var e=Wt(),t=no();return _i=function(r,n,i,o){try{return o?n(e(i)[0],i[1]):n(i)}catch(e){t(r,"throw",e)}}}function oo(){if(Ei)return Ni;Ei=1;var e=ct(),t=ti(),r=e("iterator"),n=Array.prototype;return Ni=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}function lo(){if(Ti)return Oi;Ti=1;var e=fe(),t=w(),r=we(),n=nn(),i=Ce(),o=Vt(),l=function(){},s=i("Reflect","construct"),a=/^\s*(?:class|function)\b/,u=e(a.exec),c=!a.test(l),d=function(e){if(!r(e))return!1;try{return s(l,[],e),!0}catch(e){return!1}},h=function(e){if(!r(e))return!1;switch(n(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!u(a,o(e))}catch(e){return!0}};return h.sham=!0,Oi=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?h:d}function so(){if(Fi)return Ai;Fi=1;var e=y(),t=Lt(),r=he();return Ai=function(n,i,o){e?t.f(n,i,r(0,o)):n[i]=o}}function ao(){if(Hi)return zi;Hi=1;var e=me();return zi=Array.isArray||function(t){return"Array"===e(t)}}function uo(){if(Ui)return ji;Ui=1;var e=nn(),t=Ne(),r=ve(),n=ti(),i=ct()("iterator");return ji=function(o){if(!r(o))return t(o,i)||t(o,"@@iterator")||n[e(o)]}}function co(){if(qi)return Bi;qi=1;var e=S(),t=ke(),r=Wt(),n=_e(),i=uo(),o=TypeError;return Bi=function(l,s){var a=arguments.length<2?i(l):s;if(t(a))return r(e(a,l));throw new o(n(l)+" is not iterable")},Bi}function ho(){if(Vi)return Di;Vi=1;var e=eo(),t=S(),r=st(),n=io(),i=oo(),o=lo(),l=br(),s=so(),a=function(){if(Mi)return Ii;Mi=1;var e=y(),t=ao(),r=TypeError,n=Object.getOwnPropertyDescriptor,i=e&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();return Ii=i?function(e,i){if(t(e)&&!n(e,"length").writable)throw new r("Cannot set read only .length");return e.length=i}:function(e,t){return e.length=t}}(),u=co(),c=uo(),d=Array;return Di=function(h){var f=r(h),m=o(this),p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v;g&&(v=e(v,p>2?arguments[2]:void 0));var b,w,y,C,S,R,x=c(f),W=0;if(!x||this===d&&i(x))for(b=l(f),w=m?new this(b):d(b);b>W;W++)R=g?v(f[W],W):f[W],s(w,W,R);else for(w=m?new this:[],S=(C=u(f,x)).next;!(y=t(S,C)).done;W++)R=g?n(C,v,[y.value,W],!0):y.value,s(w,W,R);return a(w,W),w},Di}function fo(){if(Yi)return Xi;Yi=1;var e=TypeError;return Xi=function(t,r){if(t<r)throw new e("Not enough arguments");return t}}var mo,po,vo,go,bo,wo,yo,Co,So,Ro={};function xo(){if(vo)return po;vo=1;var e=u(),t=y(),r=Object.getOwnPropertyDescriptor;return po=function(n){if(!t)return e[n];var i=r(e,n);return i&&i.value}}function Wo(){if(bo)return go;bo=1;var e=Jt();return go=function(t,r,n){for(var i in r)e(t,i,r[i],n);return t}}function Lo(){if(yo)return wo;yo=1,ci(),function(){if(mo)return Ro;mo=1;var e=tn(),t=fe(),r=vr(),n=RangeError,i=String.fromCharCode,o=String.fromCodePoint,l=t([].join);e({target:"String",stat:!0,arity:1,forced:!!o&&1!==o.length},{fromCodePoint:function(e){for(var t,o=[],s=arguments.length,a=0;s>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw new n(t+" is not a valid code point");o[a]=t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320)}return l(o,"")}})}();var e=tn(),t=u(),r=xo(),n=Ce(),i=S(),o=fe(),l=y(),s=Zi(),a=Jt(),c=to(),d=Wo(),h=ii(),f=oi(),m=Xt(),p=ro(),v=we(),g=at(),b=eo(),w=nn(),C=Wt(),R=ye(),x=on(),W=Zn(),L=he(),P=co(),_=uo(),k=ui(),N=fo(),E=ct(),O=sn(),T=E("iterator"),A="URLSearchParams",F=A+"Iterator",z=m.set,H=m.getterFor(A),I=m.getterFor(F),M=r("fetch"),j=r("Request"),U=r("Headers"),B=j&&j.prototype,q=U&&U.prototype,D=t.TypeError,V=t.encodeURIComponent,$=String.fromCharCode,G=n("String","fromCodePoint"),X=parseInt,Y=o("".charAt),J=o([].join),K=o([].push),Q=o("".replace),Z=o([].shift),ee=o([].splice),te=o("".split),re=o("".slice),ne=o(/./.exec),ie=/\+/g,oe=/^[0-9a-f]+$/i,le=function(e,t){var r=re(e,t,t+2);return ne(oe,r)?X(r,16):NaN},se=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},ae=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},ue=function(e){for(var t=(e=Q(e,ie," ")).length,r="",n=0;n<t;){var i=Y(e,n);if("%"===i){if("%"===Y(e,n+1)||n+3>t){r+="%",n++;continue}var o=le(e,n+1);if(o!=o){r+=i,n++;continue}n+=2;var l=se(o);if(0===l)i=$(o);else{if(1===l||l>4){r+="�",n++;continue}for(var s=[o],a=1;a<l&&!(3+ ++n>t||"%"!==Y(e,n));){var u=le(e,n+1);if(u!=u){n+=3;break}if(u>191||u<128)break;K(s,u),n+=2,a++}if(s.length!==l){r+="�";continue}var c=ae(s);null===c?r+="�":i=G(c)}}r+=i,n++}return r},ce=/[!'()~]|%20/g,de={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},me=function(e){return de[e]},pe=function(e){return Q(V(e),ce,me)},ve=f(function(e,t){z(this,{type:F,target:H(e).entries,index:0,kind:t})},A,function(){var e=I(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,k(void 0,!0);var n=t[r];switch(e.kind){case"keys":return k(n.key,!1);case"values":return k(n.value,!1)}return k([n.key,n.value],!1)},!0),ge=function(e){this.entries=[],this.url=null,void 0!==e&&(R(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?re(e,1):e:x(e)))};ge.prototype={type:A,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,l,s,a,u=this.entries,c=_(e);if(c)for(r=(t=P(e,c)).next;!(n=i(r,t)).done;){if(l=(o=P(C(n.value))).next,(s=i(l,o)).done||(a=i(l,o)).done||!i(l,o).done)throw new D("Expected sequence with length 2");K(u,{key:x(s.value),value:x(a.value)})}else for(var d in e)g(e,d)&&K(u,{key:d,value:x(e[d])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=te(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(r=te(t,"="),K(n,{key:ue(Z(r)),value:ue(J(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],K(r,pe(e.key)+"="+pe(e.value));return J(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var be=function(){p(this,Se);var e=z(this,new ge(arguments.length>0?arguments[0]:void 0));l||(this.size=e.entries.length)},Se=be.prototype;if(d(Se,{append:function(e,t){var r=H(this);N(arguments.length,2),K(r.entries,{key:x(e),value:x(t)}),l||this.size++,r.updateURL()},delete:function(e){for(var t=H(this),r=N(arguments.length,1),n=t.entries,i=x(e),o=r<2?void 0:arguments[1],s=void 0===o?o:x(o),a=0;a<n.length;){var u=n[a];if(u.key!==i||void 0!==s&&u.value!==s)a++;else if(ee(n,a,1),void 0!==s)break}l||(this.size=n.length),t.updateURL()},get:function(e){var t=H(this).entries;N(arguments.length,1);for(var r=x(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=H(this).entries;N(arguments.length,1);for(var r=x(e),n=[],i=0;i<t.length;i++)t[i].key===r&&K(n,t[i].value);return n},has:function(e){for(var t=H(this).entries,r=N(arguments.length,1),n=x(e),i=r<2?void 0:arguments[1],o=void 0===i?i:x(i),l=0;l<t.length;){var s=t[l++];if(s.key===n&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var r=H(this);N(arguments.length,1);for(var n,i=r.entries,o=!1,s=x(e),a=x(t),u=0;u<i.length;u++)(n=i[u]).key===s&&(o?ee(i,u--,1):(o=!0,n.value=a));o||K(i,{key:s,value:a}),l||(this.size=i.length),r.updateURL()},sort:function(){var e=H(this);O(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=H(this).entries,n=b(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new ve(this,"keys")},values:function(){return new ve(this,"values")},entries:function(){return new ve(this,"entries")}},{enumerable:!0}),a(Se,T,Se.entries,{name:"entries"}),a(Se,"toString",function(){return H(this).serialize()},{enumerable:!0}),l&&c(Se,"size",{get:function(){return H(this).entries.length},configurable:!0,enumerable:!0}),h(be,A),e({global:!0,constructor:!0,forced:!s},{URLSearchParams:be}),!s&&v(U)){var Re=o(q.has),xe=o(q.set),We=function(e){if(R(e)){var t,r=e.body;if(w(r)===A)return t=e.headers?new U(e.headers):new U,Re(t,"content-type")||xe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),W(e,{body:L(0,x(r)),headers:L(0,t)})}return e};if(v(M)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return M(e,arguments.length>1?We(arguments[1]):{})}}),v(j)){var Le=function(e){return p(this,B),new j(e,arguments.length>1?We(arguments[1]):{})};B.constructor=Le,Le.prototype=B,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Le})}}return wo={URLSearchParams:be,getState:H}}So||(So=1,function(){if(Co)return Ji;Co=1,function(){if(fi)return Ki;fi=1;var e=Qi().charAt,t=on(),r=Xt(),n=ai(),i=ui(),o="String Iterator",l=r.set,s=r.getterFor(o);n(String,"String",function(e){l(this,{type:o,string:t(e),index:0})},function(){var t,r=s(this),n=r.string,o=r.index;return o>=n.length?i(void 0,!0):(t=e(n,o),r.index+=t.length,i(t,!1))})}();var e,t=tn(),r=y(),n=Zi(),i=u(),o=eo(),l=fe(),s=Jt(),a=to(),c=ro(),d=at(),h=function(){if(Wi)return xi;Wi=1;var e=y(),t=fe(),r=S(),n=w(),i=Kn(),o=Qr(),l=de(),s=st(),a=pe(),u=Object.assign,c=Object.defineProperty,d=t([].concat);return xi=!u||n(function(){if(e&&1!==u({b:1},u(c({},"a",{enumerable:!0,get:function(){c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach(function(e){r[e]=e}),7!==u({},t)[n]||i(u({},r)).join("")!==o})?function(t,n){for(var u=s(t),c=arguments.length,h=1,f=o.f,m=l.f;c>h;)for(var p,v=a(arguments[h++]),g=f?d(i(v),f(v)):i(v),b=g.length,w=0;b>w;)p=g[w++],e&&!r(m,v,p)||(u[p]=v[p]);return u}:u,xi}(),f=ho(),m=ln(),p=Qi().codeAt,v=function(){if(Gi)return $i;Gi=1;var e=fe(),t=2147483647,r=/[^\0-\u007E]/,n=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",o=RangeError,l=e(n.exec),s=Math.floor,a=String.fromCharCode,u=e("".charCodeAt),c=e([].join),d=e([].push),h=e("".replace),f=e("".split),m=e("".toLowerCase),p=function(e){return e+22+75*(e<26)},v=function(e,t,r){var n=0;for(e=r?s(e/700):e>>1,e+=s(e/t);e>455;)e=s(e/35),n+=36;return s(n+36*e/(e+38))},g=function(e){var r=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=u(e,r++);if(i>=55296&&i<=56319&&r<n){var o=u(e,r++);56320==(64512&o)?d(t,((1023&i)<<10)+(1023&o)+65536):(d(t,i),r--)}else d(t,i)}return t}(e);var n,l,h=e.length,f=128,m=0,g=72;for(n=0;n<e.length;n++)(l=e[n])<128&&d(r,a(l));var b=r.length,w=b;for(b&&d(r,"-");w<h;){var y=t;for(n=0;n<e.length;n++)(l=e[n])>=f&&l<y&&(y=l);var C=w+1;if(y-f>s((t-m)/C))throw new o(i);for(m+=(y-f)*C,f=y,n=0;n<e.length;n++){if((l=e[n])<f&&++m>t)throw new o(i);if(l===f){for(var S=m,R=36;;){var x=R<=g?1:R>=g+26?26:R-g;if(S<x)break;var W=S-x,L=36-x;d(r,a(p(x+W%L))),S=s(W/L),R+=36}d(r,a(p(S))),g=v(m,C,w===b),m=0,w++}}m++,f++}return c(r,"")};return $i=function(e){var t,i,o=[],s=f(h(m(e),n,"."),".");for(t=0;t<s.length;t++)i=s[t],d(o,l(r,i)?"xn--"+g(i):i);return c(o,".")}}(),g=on(),b=ii(),C=fo(),R=Lo(),x=Xt(),W=x.set,L=x.getterFor("URL"),P=R.URLSearchParams,_=R.getState,k=i.URL,N=i.TypeError,E=i.parseInt,O=Math.floor,T=Math.pow,A=l("".charAt),F=l(/./.exec),z=l([].join),H=l(1.1.toString),I=l([].pop),M=l([].push),j=l("".replace),U=l([].shift),B=l("".split),q=l("".slice),D=l("".toLowerCase),V=l([].unshift),$="Invalid scheme",G="Invalid host",X="Invalid port",Y=/[a-z]/i,J=/[\d+-.a-z]/i,K=/\d/,Q=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,le=/[\t\n\r]/g,se=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)V(t,e%256),e=O(e/256);return z(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r?n:t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=H(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ae={},ue=h({},ae,{" ":1,'"':1,"<":1,">":1,"`":1}),ce=h({},ue,{"#":1,"?":1,"{":1,"}":1}),he=h({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),me=function(e,t){var r=p(e,0);return r>32&&r<127&&!d(t,e)?e:encodeURIComponent(e)},ve={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ge=function(e,t){var r;return 2===e.length&&F(Y,A(e,0))&&(":"===(r=A(e,1))||!t&&"|"===r)},be=function(e){var t;return e.length>1&&ge(q(e,0,2))&&(2===e.length||"/"===(t=A(e,2))||"\\"===t||"?"===t||"#"===t)},we=function(e){return"."===e||"%2e"===D(e)},ye=function(e){return".."===(e=D(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},Ce={},Se={},Re={},xe={},We={},Le={},Pe={},_e={},ke={},Ne={},Ee={},Oe={},Te={},Ae={},Fe={},ze={},He={},Ie={},Me={},je={},Ue={},Be=function(e,t,r){var n,i,o,l=g(e);if(t){if(i=this.parse(l))throw new N(i);this.searchParams=null}else{if(void 0!==r&&(n=new Be(r,!0)),i=this.parse(l,null,n))throw new N(i);(o=_(new P)).bindURL(this),this.searchParams=o}};Be.prototype={type:"URL",parse:function(t,r,n){var i,o,l,s,a=this,u=r||Ce,c=0,h="",p=!1,v=!1,b=!1;for(t=g(t),r||(a.scheme="",a.username="",a.password="",a.host=null,a.port=null,a.path=[],a.query=null,a.fragment=null,a.cannotBeABaseURL=!1,t=j(t,ie,""),t=j(t,oe,"$1")),t=j(t,le,""),i=f(t);c<=i.length;){switch(o=i[c],u){case Ce:if(!o||!F(Y,o)){if(r)return $;u=Re;continue}h+=D(o),u=Se;break;case Se:if(o&&(F(J,o)||"+"===o||"-"===o||"."===o))h+=D(o);else{if(":"!==o){if(r)return $;h="",u=Re,c=0;continue}if(r&&(a.isSpecial()!==d(ve,h)||"file"===h&&(a.includesCredentials()||null!==a.port)||"file"===a.scheme&&!a.host))return;if(a.scheme=h,r)return void(a.isSpecial()&&ve[a.scheme]===a.port&&(a.port=null));h="","file"===a.scheme?u=Ae:a.isSpecial()&&n&&n.scheme===a.scheme?u=xe:a.isSpecial()?u=_e:"/"===i[c+1]?(u=We,c++):(a.cannotBeABaseURL=!0,M(a.path,""),u=Me)}break;case Re:if(!n||n.cannotBeABaseURL&&"#"!==o)return $;if(n.cannotBeABaseURL&&"#"===o){a.scheme=n.scheme,a.path=m(n.path),a.query=n.query,a.fragment="",a.cannotBeABaseURL=!0,u=Ue;break}u="file"===n.scheme?Ae:Le;continue;case xe:if("/"!==o||"/"!==i[c+1]){u=Le;continue}u=ke,c++;break;case We:if("/"===o){u=Ne;break}u=Ie;continue;case Le:if(a.scheme=n.scheme,o===e)a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query=n.query;else if("/"===o||"\\"===o&&a.isSpecial())u=Pe;else if("?"===o)a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query="",u=je;else{if("#"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.path.length--,u=Ie;continue}a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query=n.query,a.fragment="",u=Ue}break;case Pe:if(!a.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,u=Ie;continue}u=Ne}else u=ke;break;case _e:if(u=ke,"/"!==o||"/"!==A(h,c+1))continue;c++;break;case ke:if("/"!==o&&"\\"!==o){u=Ne;continue}break;case Ne:if("@"===o){p&&(h="%40"+h),p=!0,l=f(h);for(var w=0;w<l.length;w++){var y=l[w];if(":"!==y||b){var C=me(y,he);b?a.password+=C:a.username+=C}else b=!0}h=""}else if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(p&&""===h)return"Invalid authority";c-=f(h).length+1,h="",u=Ee}else h+=o;break;case Ee:case Oe:if(r&&"file"===a.scheme){u=ze;continue}if(":"!==o||v){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(a.isSpecial()&&""===h)return G;if(r&&""===h&&(a.includesCredentials()||null!==a.port))return;if(s=a.parseHost(h))return s;if(h="",u=He,r)return;continue}"["===o?v=!0:"]"===o&&(v=!1),h+=o}else{if(""===h)return G;if(s=a.parseHost(h))return s;if(h="",u=Te,r===Oe)return}break;case Te:if(!F(K,o)){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()||r){if(""!==h){var S=E(h,10);if(S>65535)return X;a.port=a.isSpecial()&&S===ve[a.scheme]?null:S,h=""}if(r)return;u=He;continue}return X}h+=o;break;case Ae:if(a.scheme="file","/"===o||"\\"===o)u=Fe;else{if(!n||"file"!==n.scheme){u=Ie;continue}switch(o){case e:a.host=n.host,a.path=m(n.path),a.query=n.query;break;case"?":a.host=n.host,a.path=m(n.path),a.query="",u=je;break;case"#":a.host=n.host,a.path=m(n.path),a.query=n.query,a.fragment="",u=Ue;break;default:be(z(m(i,c),""))||(a.host=n.host,a.path=m(n.path),a.shortenPath()),u=Ie;continue}}break;case Fe:if("/"===o||"\\"===o){u=ze;break}n&&"file"===n.scheme&&!be(z(m(i,c),""))&&(ge(n.path[0],!0)?M(a.path,n.path[0]):a.host=n.host),u=Ie;continue;case ze:if(o===e||"/"===o||"\\"===o||"?"===o||"#"===o){if(!r&&ge(h))u=Ie;else if(""===h){if(a.host="",r)return;u=He}else{if(s=a.parseHost(h))return s;if("localhost"===a.host&&(a.host=""),r)return;h="",u=He}continue}h+=o;break;case He:if(a.isSpecial()){if(u=Ie,"/"!==o&&"\\"!==o)continue}else if(r||"?"!==o)if(r||"#"!==o){if(o!==e&&(u=Ie,"/"!==o))continue}else a.fragment="",u=Ue;else a.query="",u=je;break;case Ie:if(o===e||"/"===o||"\\"===o&&a.isSpecial()||!r&&("?"===o||"#"===o)){if(ye(h)?(a.shortenPath(),"/"===o||"\\"===o&&a.isSpecial()||M(a.path,"")):we(h)?"/"===o||"\\"===o&&a.isSpecial()||M(a.path,""):("file"===a.scheme&&!a.path.length&&ge(h)&&(a.host&&(a.host=""),h=A(h,0)+":"),M(a.path,h)),h="","file"===a.scheme&&(o===e||"?"===o||"#"===o))for(;a.path.length>1&&""===a.path[0];)U(a.path);"?"===o?(a.query="",u=je):"#"===o&&(a.fragment="",u=Ue)}else h+=me(o,ce);break;case Me:"?"===o?(a.query="",u=je):"#"===o?(a.fragment="",u=Ue):o!==e&&(a.path[0]+=me(o,ae));break;case je:r||"#"!==o?o!==e&&("'"===o&&a.isSpecial()?a.query+="%27":a.query+="#"===o?"%23":me(o,ae)):(a.fragment="",u=Ue);break;case Ue:o!==e&&(a.fragment+=me(o,ue))}c++}},parseHost:function(e){var t,r,n;if("["===A(e,0)){if("]"!==A(e,e.length-1))return G;if(t=function(e){var t,r,n,i,o,l,s,a=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,h=function(){return A(e,d)};if(":"===h()){if(":"!==A(e,1))return;d+=2,c=++u}for(;h();){if(8===u)return;if(":"!==h()){for(t=r=0;r<4&&F(te,h());)t=16*t+E(h(),16),d++,r++;if("."===h()){if(0===r)return;if(d-=r,u>6)return;for(n=0;h();){if(i=null,n>0){if(!("."===h()&&n<4))return;d++}if(!F(K,h()))return;for(;F(K,h());){if(o=E(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}a[u]=256*a[u]+i,2!==++n&&4!==n||u++}if(4!==n)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;a[u++]=t}else{if(null!==c)return;d++,c=++u}}if(null!==c)for(l=u-c,u=7;0!==u&&l>0;)s=a[u],a[u--]=a[c+l-1],a[c+--l]=s;else if(8!==u)return;return a}(q(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=v(e),F(re,e))return G;if(t=function(e){var t,r,n,i,o,l,s,a=B(e,".");if(a.length&&""===a[a.length-1]&&a.length--,(t=a.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(i=a[n]))return e;if(o=10,i.length>1&&"0"===A(i,0)&&(o=F(Q,i)?16:8,i=q(i,8===o?1:2)),""===i)l=0;else{if(!F(10===o?ee:8===o?Z:te,i))return e;l=E(i,o)}M(r,l)}for(n=0;n<t;n++)if(l=r[n],n===t-1){if(l>=T(256,5-t))return null}else if(l>255)return null;for(s=I(r),n=0;n<r.length;n++)s+=r[n]*T(256,3-n);return s}(e),null===t)return G;this.host=t}else{if(F(ne,e))return G;for(t="",r=f(e),n=0;n<r.length;n++)t+=me(r[n],ae);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return d(ve,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ge(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,l=e.path,s=e.query,a=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=se(i),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?l[0]:l.length?"/"+z(l,"/"):"",null!==s&&(u+="?"+s),null!==a&&(u+="#"+a),u},setHref:function(e){var t=this.parse(e);if(t)throw new N(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new qe(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+se(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(g(e)+":",Ce)},getUsername:function(){return this.username},setUsername:function(e){var t=f(g(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=me(t[r],he)}},getPassword:function(){return this.password},setPassword:function(e){var t=f(g(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=me(t[r],he)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?se(e):se(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ee)},getHostname:function(){var e=this.host;return null===e?"":se(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Oe)},getPort:function(){var e=this.port;return null===e?"":g(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=g(e))?this.port=null:this.parse(e,Te))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+z(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,He))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=g(e))?this.query=null:("?"===A(e,0)&&(e=q(e,1)),this.query="",this.parse(e,je)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=g(e))?("#"===A(e,0)&&(e=q(e,1)),this.fragment="",this.parse(e,Ue)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var qe=function(e){var t=c(this,De),n=C(arguments.length,1)>1?arguments[1]:void 0,i=W(t,new Be(e,!1,n));r||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},De=qe.prototype,Ve=function(e,t){return{get:function(){return L(this)[e]()},set:t&&function(e){return L(this)[t](e)},configurable:!0,enumerable:!0}};if(r&&(a(De,"href",Ve("serialize","setHref")),a(De,"origin",Ve("getOrigin")),a(De,"protocol",Ve("getProtocol","setProtocol")),a(De,"username",Ve("getUsername","setUsername")),a(De,"password",Ve("getPassword","setPassword")),a(De,"host",Ve("getHost","setHost")),a(De,"hostname",Ve("getHostname","setHostname")),a(De,"port",Ve("getPort","setPort")),a(De,"pathname",Ve("getPathname","setPathname")),a(De,"search",Ve("getSearch","setSearch")),a(De,"searchParams",Ve("getSearchParams")),a(De,"hash",Ve("getHash","setHash"))),s(De,"toJSON",function(){return L(this).serialize()},{enumerable:!0}),s(De,"toString",function(){return L(this).serialize()},{enumerable:!0}),k){var $e=k.createObjectURL,Ge=k.revokeObjectURL;$e&&s(qe,"createObjectURL",o($e,k)),Ge&&s(qe,"revokeObjectURL",o(Ge,k))}b(qe,"URL"),t({global:!0,constructor:!0,forced:!n,sham:!r},{URL:qe})}());var Po,_o,ko={};!function(){if(Po)return ko;Po=1;var e=tn(),t=S();e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})}(),_o||(_o=1,Lo());var No,Eo,Oo,To,Ao,Fo,zo,Ho,Io,Mo,jo,Uo={};function Bo(){if(Eo)return No;Eo=1;var e=Wt();return No=function(){var t=e(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r}}function qo(){if(Mo)return Io;Mo=1;var e,t,r=S(),n=fe(),i=on(),o=Bo(),l=function(){if(To)return Oo;To=1;var e=w(),t=u().RegExp,r=e(function(){var e=t("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),n=r||e(function(){return!t("a","y").sticky}),i=r||e(function(){var e=t("^r","gy");return e.lastIndex=2,null!==e.exec("str")});return Oo={BROKEN_CARET:i,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),s=lt(),a=Zn(),c=Xt().get,d=function(){if(Fo)return Ao;Fo=1;var e=w(),t=u().RegExp;return Ao=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})}(),h=function(){if(Ho)return zo;Ho=1;var e=w(),t=u().RegExp;return zo=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})}(),f=s("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,p=m,v=n("".charAt),g=n("".indexOf),b=n("".replace),y=n("".slice),C=(t=/b*/g,r(m,e=/a/,"a"),r(m,t,"a"),0!==e.lastIndex||0!==t.lastIndex),R=l.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];return(C||x||R||d||h)&&(p=function(e){var t,n,l,s,u,d,h,w=this,S=c(w),W=i(e),L=S.raw;if(L)return L.lastIndex=w.lastIndex,t=r(p,L,W),w.lastIndex=L.lastIndex,t;var P=S.groups,_=R&&w.sticky,k=r(o,w),N=w.source,E=0,O=W;if(_&&(k=b(k,"y",""),-1===g(k,"g")&&(k+="g"),O=y(W,w.lastIndex),w.lastIndex>0&&(!w.multiline||w.multiline&&"\n"!==v(W,w.lastIndex-1))&&(N="(?: "+N+")",O=" "+O,E++),n=new RegExp("^(?:"+N+")",k)),x&&(n=new RegExp("^"+N+"$(?!\\s)",k)),C&&(l=w.lastIndex),s=r(m,_?n:w,O),_?s?(s.input=y(s.input,E),s[0]=y(s[0],E),s.index=w.lastIndex,w.lastIndex+=s[0].length):w.lastIndex=0:C&&s&&(w.lastIndex=w.global?s.index+s[0].length:l),x&&s&&s.length>1&&r(f,s[0],n,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)}),s&&P)for(s.groups=d=a(null),u=0;u<P.length;u++)d[(h=P[u])[0]]=s[h[1]];return s}),Io=p}function Do(){if(jo)return Uo;jo=1;var e=tn(),t=qo();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),Uo}Do();var Vo,$o,Go,Xo,Yo,Jo,Ko,Qo,Zo,el,tl,rl,nl,il,ol,ll={};function sl(){if(Jo)return Yo;Jo=1;var e=Qi().charAt;return Yo=function(t,r,n){return r+(n?e(t,r).length:1)}}function al(){if(Qo)return Ko;Qo=1;var e=fe(),t=st(),r=Math.floor,n=e("".charAt),i=e("".replace),o=e("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return Ko=function(e,a,u,c,d,h){var f=u+e.length,m=c.length,p=s;return void 0!==d&&(d=t(d),p=l),i(h,p,function(t,i){var l;switch(n(i,0)){case"$":return"$";case"&":return e;case"`":return o(a,0,u);case"'":return o(a,f);case"<":l=d[o(i,1,-1)];break;default:var s=+i;if(0===s)return t;if(s>m){var h=r(s/10);return 0===h?t:h<=m?void 0===c[h-1]?n(i,1):c[h-1]+n(i,1):t}l=c[s-1]}return void 0===l?"":l})}}function ul(e,t){for(let r=0,n=e.length;r>=0&&r<n;r+=1)if(t(e[r],r,e))return e[r]}function cl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}!function(){if(ol)return ll;ol=1;var e=function(){if($o)return Vo;$o=1;var e=C(),t=Function.prototype,r=t.apply,n=t.call;return Vo="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),Vo}(),t=S(),r=fe(),n=function(){if(Xo)return Go;Xo=1,Do();var e=S(),t=Jt(),r=qo(),n=w(),i=ct(),o=Pt(),l=i("species"),s=RegExp.prototype;return Go=function(a,u,c,d){var h=i(a),f=!n(function(){var e={};return e[h]=function(){return 7},7!==""[a](e)}),m=f&&!n(function(){var e=!1,t=/a/;if("split"===a){var r={};r[l]=function(){return t},(t={constructor:r,flags:""})[h]=/./[h]}return t.exec=function(){return e=!0,null},t[h](""),!e});if(!f||!m||c){var p=/./[h],v=u(h,""[a],function(t,n,i,o,l){var a=n.exec;return a===r||a===s.exec?f&&!l?{done:!0,value:e(p,n,i,o)}:{done:!0,value:e(t,i,n,o)}:{done:!1}});t(String.prototype,a,v[0]),t(s,h,v[1])}d&&o(s[h],"sham",!0)}}(),i=w(),o=Wt(),l=we(),s=ye(),a=pr(),c=gr(),d=on(),h=ge(),f=sl(),m=Ne(),p=al(),v=function(){if(rl)return tl;rl=1;var e=S(),t=at(),r=Se(),n=function(){if(el)return Zo;el=1;var e=u(),t=w(),r=e.RegExp,n=!t(function(){var e=!0;try{r(".","d")}catch(t){e=!1}var t={},n="",i=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(l.hasIndices="d"),l)o(s,l[s]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(t)!==i||n!==i});return Zo={correct:n}}(),i=Bo(),o=RegExp.prototype;return tl=n.correct?function(e){return e.flags}:function(l){return n.correct||!r(o,l)||t(l,"flags")?l.flags:e(i,l)}}(),g=function(){if(il)return nl;il=1;var e=S(),t=Wt(),r=we(),n=me(),i=qo(),o=TypeError;return nl=function(l,s){var a=l.exec;if(r(a)){var u=e(a,l,s);return null!==u&&t(u),u}if("RegExp"===n(l))return e(i,l,s);throw new o("RegExp#exec called on incompatible receiver")}}(),b=ct()("replace"),y=Math.max,R=Math.min,x=r([].concat),W=r([].push),L=r("".indexOf),P=r("".slice),_=function(e){return void 0===e?e:String(e)},k="$0"==="a".replace(/./,"$0"),N=!!/./[b]&&""===/./[b]("a","$0");n("replace",function(r,n,i){var u=N?"$":"$0";return[function(e,r){var i=h(this),o=s(e)?m(e,b):void 0;return o?t(o,e,i,r):t(n,d(i),e,r)},function(t,r){var s=o(this),h=d(t);if("string"==typeof r&&-1===L(r,u)&&-1===L(r,"$<")){var m=i(n,s,h,r);if(m.done)return m.value}var b=l(r);b||(r=d(r));var w,C=d(v(s)),S=-1!==L(C,"g");S&&(w=-1!==L(C,"u"),s.lastIndex=0);for(var k,N=[];null!==(k=g(s,h))&&(W(N,k),S);)""===d(k[0])&&(s.lastIndex=f(h,c(s.lastIndex),w));for(var E="",O=0,T=0;T<N.length;T++){for(var A,F=d((k=N[T])[0]),z=y(R(a(k.index),h.length),0),H=[],I=1;I<k.length;I++)W(H,_(k[I]));var M=k.groups;if(b){var j=x([F],H,z,h);void 0!==M&&W(j,M),A=d(e(r,void 0,j))}else A=p(F,h,z,H,M,r);z>=O&&(E+=P(h,O,z)+A,O=z+F.length)}return E+P(h,O)}]},!!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!k||N)}();var dl,hl={};!function(){if(dl)return hl;dl=1;var e=tn(),t=y(),r=u(),n=fe(),i=at(),o=we(),l=Se(),s=on(),a=to(),c=en(),d=r.Symbol,h=d&&d.prototype;if(t&&o(d)&&(!("description"in h)||void 0!==d().description)){var f={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),t=l(h,this)?new d(e):void 0===e?d():d(e);return""===e&&(f[t]=!0),t};c(m,d),m.prototype=h,h.constructor=m;var p="Symbol(description detection)"===String(d("description detection")),v=n(h.valueOf),g=n(h.toString),b=/^Symbol\((.*)\)[^)]+$/,w=n("".replace),C=n("".slice);a(h,"description",{configurable:!0,get:function(){var e=v(this);if(i(f,e))return"";var t=g(e),r=p?C(t,7,-1):w(t,b,"$1");return""===r?void 0:r}}),e({global:!0,constructor:!0,forced:!0},{Symbol:m})}}();const fl=Symbol("safe"),ml=Symbol("hover_in"),pl=Symbol("hover_out"),vl=Symbol("row_click"),gl=Symbol("preview_cell"),bl=Symbol("cell"),wl=Symbol("related_touch"),yl=Symbol("original_row_index");class Cl extends Array{constructor(e){var t,r,n;super(),this.onComparatorRequired=null,this.customSortingProvider=null,e=e||{},this.sortColumn=null!==(t=e.sortColumn)&&void 0!==t?t:[],this.onComparatorRequired=null!==(r=e.onComparatorRequired)&&void 0!==r?r:null,this.customSortingProvider=null!==(n=e.customSortingProvider)&&void 0!==n?n:null}add(e,t){if(Array.isArray(e)){const r=e;if("number"==typeof t)for(let e=0,n=r.length;e<n;e++)this.splice(t++,0,r[e]);else for(let e=0,t=r.length;e<t;e++)this.push(r[e])}else{const r=e;"number"==typeof t?this.splice(t,0,r):this.push(r)}}reset(e){this.length=0,e&&this.add(e)}filteredCollection(e,t){if(e&&t){const r=new Cl({sortColumn:this.sortColumn,onComparatorRequired:this.onComparatorRequired,customSortingProvider:this.customSortingProvider});for(let n=0,i=this.length;n<i;n++){const i=this[n];e(i,t)&&(i[yl]=n,r.push(i))}return r}return null}sort(e){let t;if("function"==typeof e)return super.sort(e);if(this.sortColumn.length){const e=[];for(let t=0;t<this.sortColumn.length;t++){const r=Sl(this.sortColumn[t],this.sortColumn[t].descending);let n=null;this.onComparatorRequired&&(n=this.onComparatorRequired(this.sortColumn[t].column,this.sortColumn[t].descending,r)),n||(n=r),e.push(n.bind(this))}if(1===e.length)t=e[0];else{const r=e.length;t=(t,n)=>{let i=0;for(let o=0;o<r;o++)if(i=e[o](t,n),0!==i)return i;return i}}const r=e=>(e.sort(t),e);if(this.customSortingProvider){const e=this.customSortingProvider(this,r);e!==this&&this.splice(0,this.length,...e)}else r(this)}return this}}function Sl(e,t){let r=e.comparePath;"string"==typeof r&&(r=r.split("."));const n=r.length,i=n>1,o=t?1:-1,l=t?-1:1;return function(e,t){let s=e[r[0]],a=t[r[0]];if(i)for(let e=1;e<n;e++)s=s&&s[r[e]],a=a&&a[r[e]];return s===a?0:null==s?o:null==a?l:s<a?o:l}}class Rl extends Array{constructor(){super()}get(e){for(let t=0,r=this.length;t<r;t++)if(this[t].name===e)return this[t];return null}indexOf(e){const t="string"==typeof e?e:e.name;for(let e=0,r=this.length;e<r;e++)if(this[e].name===t)return e;return-1}getByOrder(e){for(let t=0,r=this.length;t<r;t++)if(this[t].order===e)return this[t];return null}normalizeOrder(){const e=[];for(let t=0;t<this.length;t++)e.push(this[t]);e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0);for(let t=0;t<e.length;t++)e[t].order=t;return this}getColumns(){const e=[];for(let t=0;t<this.length;t++)e.push(this[t]);return e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0),e}getVisibleColumns(){const e=[];for(let t=0;t<this.length;t++){const r=this[t];r.visible&&e.push(r)}return e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0),e}getMaxOrder(){let e=0;for(let t=0;t<this.length;t++){const r=this[t];r.order>e&&(e=r.order)}return e}moveColumn(e,t){if(e&&t){const r=e.order,n=t.order;if(r<n)for(let e=r+1;e<=n;e++){const t=this.getByOrder(e);t&&t.order--}else for(let e=r-1;e>=n;e--){const t=this.getByOrder(e);t&&t.order++}e.order=n}return this}}function xl(e,t){const r=t.column,n=null==t.keyword?"":t.keyword.toString();if(!n||!r)return!0;let i=e[r];if(null==i)return!1;let o=i.toString(),l=n;return t.caseSensitive||(o=o.toLowerCase(),l=l.toLowerCase()),-1!==o.indexOf(l)}const Wl={NONE:"none",AUTO:"auto",SCROLL:"scroll"},Ll=document.createElement.bind(document);function Pl(e){["relative","absolute","fixed"].includes(getComputedStyle(e).position)||(e.style.position="relative")}function _l(e){const t=e.target;return/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(t.tagName)}function kl(e){const t=getComputedStyle(e);return(parseFloat(t.paddingLeft)||0)+(parseFloat(t.paddingRight)||0)}function Nl(e){const t=e.style;t["-webkit-touch-callout"]="none",t["-webkit-user-select"]="none",t["-moz-user-select"]="none",t["-ms-user-select"]="none",t["-o-user-select"]="none",t["user-select"]="none"}function El(e,r){const n=e._o.tableClassName,i=Ll("div");i.className=e.el.className;const o=Ll("div");o.className=n+"-header";const l=Ll("div");l.className=n+"-header-row";const s=Ll("div");s.className=n+"-header-cell";const a=Ll("div");a.textContent=r,s.appendChild(a),l.appendChild(s),o.appendChild(l),i.appendChild(o),t.setCssProps(i,{position:"absolute",top:"-9999px",visibility:"hidden"}),document.body.appendChild(i);const u=t.getElementWidth(s);return i.remove(),u}function Ol(e){const r=e._o,n=e._p;let i,o=0,l=0;n.table&&(o=n.table?n.table.scrollTop:0,l=n.table?n.table.scrollLeft:0,r.virtualTable&&(i=n.table.style.display,n.table.style.display="none"));let s=t.getElementWidth(e.el);n.table&&(r.virtualTable&&void 0!==i&&(n.table.style.display=i),n.table.scrollTop=o,n.table.scrollLeft=l,n.header&&(n.header.scrollLeft=l));const a=r.tableClassName,u=Ll("div");u.className=e.el.className,t.setCssProps(u,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px"});const c=Ll("div");c.className="".concat(a,"-header"),u.appendChild(c);const d=Ll("div");d.index=null,d.vIndex=null,d.className="".concat(a,"-header-row"),c.appendChild(d);for(let e=0;e<n.visibleColumns.length;e++){const t=n.visibleColumns[e],r=Ll("div");r.className="".concat(a,"-header-cell ").concat(t.cellClasses||""),r.columnName=t.name,r.appendChild(Ll("div")),d.appendChild(r)}document.body.appendChild(u),s-=function(e){const t=getComputedStyle(e);return(parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0)}(d);const h=d.querySelectorAll("div.".concat(a,"-header-cell"));for(const e of h){const t=getComputedStyle(e);if("border-box"!==t.boxSizing){s-=(parseFloat(t.borderRightWidth)||0)+(parseFloat(t.borderLeftWidth)||0)+kl(e);const r=e.columnName,i=n.columns.get(r);i&&(s-=i.arrowProposedWidth||0)}}return u.remove(),Math.max(0,s)}function Tl(e){const r=e._p,n=e._o.tableClassName,i=n+"-row",o=n+"-cell",l=r.visibleColumns,s=l.length,a=Ll("div");a.className=i,a.style.float="left";let u=0;for(let e=0;e<s;e++){var c,d;const t=l[e],r=Ll("div");r.className=o,r.style.width=(null!==(c=t.actualWidth)&&void 0!==c?c:0)+"px",t.cellClasses&&(r.className+=" "+t.cellClasses),r.appendChild(Ll("div")),a.appendChild(r),u+=null!==(d=t.actualWidth)&&void 0!==d?d:0}const h=Ll("div");h.className=e.el.className,t.setCssProps(h,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",float:"left",width:"1px",overflow:"hidden"});const f=Ll("div");f.className=n,h.appendChild(f);const m=Ll("div");m.className=n+"-body",m.style.width=u+1e4+"px",f.appendChild(m),m.appendChild(a),document.body.appendChild(h);const p=Ll("div");t.setCssProps(p,{border:"1.5px solid #000",width:"0",height:"0",position:"absolute",left:"0",top:"-9999px"}),document.body.appendChild(p);const v=parseFloat(getComputedStyle(p).borderWidth),g=Math.round(v)!==v;p.remove();let b=t.getElementWidth(a,!0,!0,!0);return b-=r.scrollbarWidth||0,g&&b++,h.remove(),b}function Al(e){const t=e._p;return!!t.table&&"rtl"===getComputedStyle(t.table).direction}function Fl(e){return 0===e.widthMode?"auto":2===e.widthMode?100*e.width+"%":e.width}class zl{static saveSelection(e){const t=window.getSelection();if(!t||0===t.rangeCount)return null;const r=t.getRangeAt(0);if(e!==r.commonAncestorContainer&&!function(e,t){let r=e;for(;(r=null!==(n=null===(i=r)||void 0===i?void 0:i.parentNode)&&void 0!==n?n:null)&&r!==t;)var n,i;return!!r}(r.commonAncestorContainer,e))return null;const n=r.cloneRange();n.selectNodeContents(e),n.setEnd(r.startContainer,r.startOffset);const i=n.toString().length;return{start:i,end:i+r.toString().length}}static restoreSelection(e,t){let r=0;const n=[e];let i,o=!1,l=!1;const s=document.createRange();for(s.setStart(e,0),s.collapse(!0);!l&&(i=n.pop());)if(i.nodeType===Node.TEXT_NODE){const e=r+i.length;!o&&t.start>=r&&t.start<=e&&(s.setStart(i,t.start-r),o=!0),o&&t.end>=r&&t.end<=e&&(s.setEnd(i,t.end-r),l=!0),r=e}else{let e=i.childNodes.length;for(;e--;)n.push(i.childNodes[e])}const a=window.getSelection();a&&(a.removeAllRanges(),a.addRange(s))}}const Hl=document.createElement.bind(document);function Il(e,r){var n,i,o;const l=e._o,s=Al(e);let a=r.target.closest("div.".concat(l.tableClassName,"-header-cell,div.").concat(l.cellPreviewClassName));if(!a)return null;a[bl]&&(a=a[bl]);let u=a.previousSibling;for(;u&&1!==u.nodeType;)u=u.previousSibling;const c=!u,d=r,h=null!==(n=null!==(i=r[wl])&&void 0!==i?i:null===(o=d.changedTouches)||void 0===o?void 0:o[0])&&void 0!==n?n:r,f=(h.pageX||h.clientX||0)-t.getElementOffset(a).left;if(s){var m,p,v;if(!c&&t.getElementWidth(a,!0,!0,!0)-f<=l.resizeAreaWidth/2)return null!==(m=null===(p=u)||void 0===p?void 0:p.columnName)&&void 0!==m?m:null;if(f<=l.resizeAreaWidth/2)return null!==(v=a.columnName)&&void 0!==v?v:null}else{var g,b,w;if(!c&&f<=l.resizeAreaWidth/2)return null!==(g=null===(b=u)||void 0===b?void 0:b.columnName)&&void 0!==g?g:null;if(t.getElementWidth(a,!0,!0,!0)-f<=l.resizeAreaWidth/2)return null!==(w=a.columnName)&&void 0!==w?w:null}return null}function Ml(e){const t=e._p;return t.resizer&&(t.resizer.remove(),t.resizer=null,t.eventsSink.remove(document,".colresize")),e}function jl(e,r){const n=r;if("mousedown"===r.type&&0!==n.button)return;const i=e._o,o=e._p,l=Il(e,r);if(l){const n=o.columns.get(l);if(!i.resizableColumns||!n||!n.resizable)return!1;const s=Al(e);o.resizer&&o.resizer.remove(),o.resizer=Hl("div"),o.resizer.className=i.resizerClassName,t.setCssProps(o.resizer,{position:"absolute",display:"block",zIndex:"-1",visibility:"hidden",width:"2px",background:"#000",opacity:"0.7"}),e.el.appendChild(o.resizer);const a=n.element,u=o.resizer.parentNode,c=getComputedStyle(u),d=getComputedStyle(a),h=t.getElementOffset(a),f=t.getElementOffset(u);f.left+=parseFloat(c.borderLeftWidth)||0,f.top+=parseFloat(c.borderTopWidth)||0,h.left-=f.left,h.top-=f.top,h.top-=parseFloat(d.borderTopWidth)||0;const m=t.getElementWidth(o.resizer,!0,!0,!0);s?(h.left-=Math.ceil((parseFloat(d.borderLeftWidth)||0)/2),h.left-=Math.ceil(m/2)):(h.left+=t.getElementWidth(a,!0,!0,!0),h.left+=Math.ceil((parseFloat(d.borderRightWidth)||0)/2),h.left-=Math.ceil(m/2)),t.setCssProps(o.resizer,{"z-index":"10",visibility:"visible",left:h.left+"px",top:h.top+"px",height:t.getElementHeight(e.el,!1,!1,!1)+"px"}),o.resizer.columnName=a.columnName;try{o.resizer.style.zIndex=""}catch(e){}o.eventsSink.add(document,"mousemove.colresize",t=>Ul(e,t)).add(document,"touchmove.colresize",t=>Ul(e,t)).add(document,"mouseup.colresize",t=>Bl(e,t)).add(document,"touchend.colresize",t=>Bl(e,t)),r.preventDefault()}}function Ul(e,r){var n,i,o;const l=e._p;if(!l.resizer)return;const s=l.columns.get(l.resizer.columnName);if(!s)return;const a=Al(e),u=s.element,c=l.resizer.parentNode,d=getComputedStyle(c),h=getComputedStyle(u),f=t.getElementOffset(u),m=t.getElementOffset(c);m.left+=parseFloat(d.borderLeftWidth)||0,f.left-=m.left;const p=t.getElementWidth(l.resizer,!0,!0,!0),v="border-box"===h.boxSizing,g=r;let b=(null!==(n=null!==(i=r[wl])&&void 0!==i?i:null===(o=g.changedTouches)||void 0===o?void 0:o[0])&&void 0!==n?n:r).pageX-m.left,w=f.left;w-=Math.ceil(p/2),a?(w+=t.getElementWidth(u,!0,!0,!0),w-=s.ignoreMin?0:e._o.minColumnWidth,v||(w-=Math.ceil((parseFloat(h.borderLeftWidth)||0)/2),w-=kl(u)),b>w&&(b=w)):(w+=s.ignoreMin?0:e._o.minColumnWidth,v||(w+=Math.ceil((parseFloat(h.borderRightWidth)||0)/2),w+=kl(u)),b<w&&(b=w)),l.resizer.style.left=b+"px"}function Bl(e,r){var n,i,o;const l=e._o,s=e._p;if(!s.resizer)return;s.eventsSink.remove(document,".colresize");const a=s.columns.get(s.resizer.columnName);if(!a)return s.resizer.remove(),void(s.resizer=null);const u=Al(e),c=a.element,d=c.firstChild,h=s.resizer.parentNode,f=getComputedStyle(h),m=getComputedStyle(c),p=t.getElementOffset(c),v=t.getElementOffset(h);v.left+=parseFloat(f.borderLeftWidth)||0,p.left-=v.left;const g=t.getElementWidth(s.resizer,!0,!0,!0),b="border-box"===m.boxSizing,w=r;let y=(null!==(n=null!==(i=r[wl])&&void 0!==i?i:null===(o=w.changedTouches)||void 0===o?void 0:o[0])&&void 0!==n?n:r).pageX-v.left,C=p.left,S=0;if(C-=Math.ceil(g/2),u){if(!b){y+=kl(c);const e=getComputedStyle(d||c);y+=parseFloat(e.borderLeftWidth)||0,y+=parseFloat(e.borderRightWidth)||0,y+=a.arrowProposedWidth||0}C+=t.getElementWidth(c,!0,!0,!0);const r=C-(a.ignoreMin?0:e._o.minColumnWidth);y>r&&(y=r),S=C-y}else{if(!b){y-=kl(c);const e=getComputedStyle(d||c);y-=parseFloat(e.borderLeftWidth)||0,y-=parseFloat(e.borderRightWidth)||0,y-=a.arrowProposedWidth||0}const t=C+(a.ignoreMin?0:e._o.minColumnWidth);y<t&&(y=t),S=y-C}s.resizer.remove(),s.resizer=null;let R=S;if(2===a.widthMode){let t=Ol(e),r=0,n=0;for(let e=0;e<s.visibleColumns.length;e++){const i=s.visibleColumns[e];var x;i.name!==a.name&&(2===i.widthMode?(r+=i.width,n++):t-=null!==(x=i.actualWidth)&&void 0!==x?x:0)}if(t=Math.max(1,t),1===t&&s.table&&(t=s.table.clientWidth),R=S/t,n>0){const e=R/((1-R)/r);r+=R,(r<1&&l.relativeWidthGrowsToFillWidth||r>1&&l.relativeWidthShrinksToFillWidth)&&(R=e)}R*=100,R+="%"}e.setColumnWidth(a.name,R)}function ql(e,t){var r;const n=e._o,i=e._p;if(!n.resizableColumns)return;const o=Il(e,t),l=t.target.closest("div.".concat(n.tableClassName,"-header-cell,div.").concat(n.cellPreviewClassName));l&&(o&&null!==(r=i.columns.get(o))&&void 0!==r&&r.resizable?l.style.cursor="e-resize":l.style.cursor="")}function Dl(e,r){var n,i,o;const l=e._o,s=r,a=r,u=null!==(n=null!==(i=r[wl])&&void 0!==i?i:null===(o=s.changedTouches)||void 0===o?void 0:o[0])&&void 0!==n?n:{pageX:a.pageX,pageY:a.pageY},c=r.target.closest("div.".concat(l.tableClassName,"-header-cell,div.").concat(l.cellPreviewClassName));if(!c)return;const d=t.getElementOffset(c);d.width=t.getElementWidth(c,!0,!0,!0),d.height=t.getElementHeight(c,!0,!0,!0),e.emit("headercontextmenu",{columnName:c.columnName,pageX:u.pageX,pageY:u.pageY,bounds:d})}function Vl(e,t){if(_l(t))return;if(Il(e,t))return;const r=e._o,n=e._p,i=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!i)return;if(!r.sortableColumns)return;const o=n.columns.get(i.columnName),l=n.rows.sortColumn;if(o&&o.sortable){let t=!0;const n=l.length?l[l.length-1]:null;n&&n.column===o.name&&(n.descending&&r.allowCancelSort?(t=!1,l.splice(l.length-1,1)):n.descending=!n.descending);const i=e;t?i.sort(o.name,void 0,!0).render():i.sort()}}const $l=Array.prototype.indexOf,Gl=document.createElement.bind(document);function Xl(e){const t=e._p;return t.headerRow&&(t.headerRow=void 0),e}function Yl(e){const t=e._o,r=e._p;if(!r.tbody)return e;if(t.virtualTable&&r.virtualListHelper){const e=r.virtualListHelper.estimateFullHeight();r._lastVirtualScrollHeight=e,r.tbody.style.height=e+"px"}else r.tbody.style.height="";return e}function Jl(e,t){const r=e._p;if(!r.table)return e;const n=r.table.offsetWidth-r.table.clientWidth;if(n!==r.scrollbarWidth||t){var i;r.scrollbarWidth=n;for(let e=0;e<r.columns.length;e++)r.columns[e].actualWidthConsideringScrollbarWidth=null;if(r.scrollbarWidth>0&&r.visibleColumns.length>0&&r.tbody&&r.headerRow){var o;const e=r.visibleColumns.length-1;r.visibleColumns[e].actualWidthConsideringScrollbarWidth=(null!==(o=r.visibleColumns[e].actualWidth)&&void 0!==o?o:0)-r.scrollbarWidth;const t=r.visibleColumns[e].actualWidthConsideringScrollbarWidth+"px",n=r.tbody.childNodes;for(let r=0,i=n.length;r<i;r++){const i=n[r];1===i.nodeType&&(i.childNodes[e].style.width=t)}r.headerRow.childNodes[e].style.width=t}Ql(e),null===(i=r.notifyRendererOfColumnsConfig)||void 0===i||i.call(r)}return e}function Kl(e,r){const n=e._o,i=e._p;if(!i.tbody||!i.table||!i.headerRow)return e;const o=Tl(e);if(i.tbody.style.minWidth=o+"px",i.headerRow.style.minWidth=o+(i.scrollbarWidth||0)+"px",i.eventsSink.remove(i.table,"scroll"),n.width===Wl.AUTO)t.setElementWidth(i.table,t.getElementWidth(i.tbody,!0,!0,!0)),t.setElementWidth(e.el,t.getElementWidth(i.table,!0,!0,!0));else if(n.width===Wl.SCROLL){if(r){const t=i.table?i.table.scrollTop:0,r=i.table?i.table.scrollLeft:0;!function(e){const t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}(e.el),i.table.scrollTop=t,i.table.scrollLeft=r,i.header&&(i.header.scrollLeft=r)}const t=()=>function(e){const t=e._p;t.header.scrollLeft=t.table.scrollLeft,Zl(e)}(e);i.eventsSink.add(i.table,"scroll",t)}return e}function Ql(e){var t;const r=e._p,n=e._o;if(!r.headerRow)return;const i=n.tableClassName+"-sticky",o=r.headerRow,l=Al(e),s=null!==(t=r.scrollbarWidth)&&void 0!==t?t:0;let a=0,u=0,c=null;const d=[],h=[];let f=null,m=[];for(let e=o.firstElementChild;e;e=e.nextElementSibling){const t=e.getAttribute("data-column");if(!t)continue;const n=r.columns.get(t);if(n)if("start"===n.sticky||"end"===n.sticky){var p;e.className+=" "+i,e.style.position="sticky";let t=null!==(p=n.actualWidth)&&void 0!==p?p:0,r=null;null===c&&(r=getComputedStyle(e),c=r.boxSizing),"content-box"===c&&(null===r&&(r=getComputedStyle(e)),t+=(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0)+(parseFloat(r.borderLeftWidth)||0)+(parseFloat(r.borderRightWidth)||0)),"start"===n.sticky&&!l||"end"===n.sticky&&l?(n.stickyPos={direction:"left",offset:a},e.style.left=a+"px",a+=t,m.length=0,f=[e],d.push(f)):(n.stickyPos={direction:"right",offset:u},e.style.right=u+s+"px",u+=t,h.push([e,...m]),m.length=0)}else{var v;delete n.stickyPos,null===(v=f)||void 0===v||v.push(e),null==m||m.push(e),"sticky"===e.style.position&&(e.classList.remove(i),e.style.position="",e.style.left="",e.style.right="")}}r.stickiesLeft=d,r.stickiesRight=h,Zl(e)}function Zl(e){const t=e._p;if(!t.table||!t.headerRow||!t.tbody)return;const r=t.stickiesLeft,n=t.stickiesRight,i=t.stickiesSetLeft,o=t.stickiesSetRight,l=t.stickiesSetLeft=new Set,s=t.stickiesSetRight=new Set;if(null!=r&&r.length||null==n||!n.length){const e=t.table.scrollLeft;if(e===t.lastStickyScrollLeft)return;t.lastStickyScrollLeft=e;const i=t.headerRow.children,o=1.5,a=(e,t,r)=>{if(e&&e.length)for(const n of e){const e=n[0],l=n.slice(1),s=l[0],a=l[l.length-1];if(!e||!e.getBoundingClientRect)continue;const u=e.getBoundingClientRect();let c=!1;if(s&&a){const e=s.getBoundingClientRect(),r=a.getBoundingClientRect();c=t?u.right-o>e.left&&u.left+o<r.right:u.left+o<r.right&&u.right-o>e.left}e.classList.toggle(t?"is-sticky-left":"is-sticky-right",c),c&&r.add($l.call(i,e))}};a(r,!0,l),a(n,!1,s)}const a=[],u=[];for(const e of l)null!=i&&i.has(e)||a.push({index:e,left:!0});for(const e of s)null!=o&&o.has(e)||a.push({index:e,right:!0});if(i)for(const e of i)l.has(e)||u.push({index:e,left:!0});if(o)for(const e of o)s.has(e)||u.push({index:e,right:!0});if(!a.length&&!u.length)return;let c=t.tbody.firstElementChild;for(;c;){const e=c.children;for(const t of u){var d;null===(d=e[t.index])||void 0===d||d.classList.remove(t.left?"is-sticky-left":"is-sticky-right")}for(const t of a){var h;null===(h=e[t.index])||void 0===h||h.classList.add(t.left?"is-sticky-left":"is-sticky-right")}c=c.nextElementSibling}t.isStickyColumns=new Map;for(const e of l)t.isStickyColumns.set(e,"left");for(const e of s)t.isStickyColumns.set(e,"right")}function es(e,t){const r=e._p,n=e._o;if(!r.headerRow||!r.tbody)return e;const i=r.headerRow.querySelectorAll("div.".concat(n.tableClassName,"-header-cell"))[t];if(!i)return e;const o=r.columns.get(i.columnName);if(o){i.style.width=(o.actualWidthConsideringScrollbarWidth||o.actualWidth||0)+"px";const e=(o.actualWidthConsideringScrollbarWidth||o.actualWidth||0)+"px",n=r.tbody.childNodes;for(let r=0,i=n.length;r<i;r++){const i=n[r];1===i.nodeType&&(i.childNodes[t].style.width=e)}}return e}function ts(e){const t=e._p,n=e._o;if(t.table&&t.headerRow){const e=n.tableClassName,o=r.scopedSelectorAll(t.headerRow,">div.".concat(e,"-header-cell.sorted")),l=Array.prototype.slice.call(o,0).map(e=>e.querySelector(":scope>div>.sort-arrow")).filter(e=>!!e);for(const e of l){var i;const r=null===(i=e.parentNode)||void 0===i?void 0:i.parentNode;if(r){const e=t.columns.get(r.columnName);e&&(e.arrowProposedWidth=0)}e.remove()}for(const e of o)e.classList.remove("sorted","desc")}return e}function rs(e,t,r){const n=e._p,i=e._o,o=n.columns.get(t);if(!o)return!1;const l=Gl("span");var s;return l.className="sort-arrow",o.element&&(o.element.className+=r?" sorted desc":" sorted",null===(s=o.element.firstChild)||void 0===s||s.insertBefore(l,o.element.firstChild.firstChild)),2!==o.widthMode&&i.adjustColumnWidthForSortArrow&&(o.arrowProposedWidth=l.scrollWidth+(parseFloat(getComputedStyle(l).marginRight)||0)+(parseFloat(getComputedStyle(l).marginLeft)||0)),!0}function ns(e,t){const r=t.firstChild;t.addEventListener("mousedown",t=>jl(e,t)),t.addEventListener("mousemove",t=>ql(e,t)),t.addEventListener("mouseup",t=>function(e,t){2===t.button&&Dl(e,t)}(e,t)),t.addEventListener("mouseleave",t=>function(e,t){const r=e._o,n=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));n&&(n.style.cursor="")}(e,t)),t.addEventListener("touchstart",t=>function(e,t){const r=e._p;if(r.currentTouchId)return;const n=t.changedTouches[0];r.currentTouchId=n.identifier;const i=t.currentTarget,o={x:n.pageX,y:n.pageY};let l,s=o;const a=function(){r.currentTouchId=null,r.eventsSink.remove(i,".colheader"),clearTimeout(l)};t[wl]=t.changedTouches[0],jl(e,t),l=setTimeout(()=>{a(),r.eventsSink.add(i,"touchend.colheader",e=>{_l(e)||e.preventDefault(),r.eventsSink.remove(i,".colheader")},{once:!0}).add(i,"touchcancel.colheader",e=>{r.eventsSink.remove(i,".colheader")},{once:!0}),Math.sqrt(Math.pow(Math.abs(s.x-o.x),2)+Math.pow(Math.abs(s.y-o.y),2))<9&&(Ml(e),Dl(e,t))},500),r.eventsSink.add(i,"touchend.colheader",t=>{const n=t,i=ul(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(a(),_l(t)||t.preventDefault(),s={x:i.pageX,y:i.pageY},(Math.sqrt(Math.pow(Math.abs(s.x-o.x),2)+Math.pow(Math.abs(s.y-o.y),2))<9||r.resizer)&&(n[wl]=i,Vl(e,n)))}).add(i,"touchcancel.colheader",a).add(i,"touchmove.colheader",t=>{const n=t,i=ul(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(s={x:i.pageX,y:i.pageY},r.resizer&&(t.preventDefault(),n[wl]=i,ql(e,n)))})}(e,t)),t.addEventListener("dragstart",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){const e=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!e)return void t.preventDefault();const o=n.columns.get(e.columnName);var i;o&&o.movable?(e.style.opacity="0.35",n.dragId=161061273*Math.random(),null===(i=t.dataTransfer)||void 0===i||i.setData("text",JSON.stringify({dragId:n.dragId,column:o.name}))):t.preventDefault()}else t.preventDefault()}(e,t)),t.addEventListener("click",t=>Vl(e,t)),t.addEventListener("contextmenu",e=>e.preventDefault()),r.addEventListener("dragenter",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){var i;let e=null;const o=null===(i=t.dataTransfer)||void 0===i?void 0:i.getData("text");if(o)try{e=JSON.parse(o)}catch(t){e=null}const l=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!l)return;if(!e||n.dragId===e.dragId&&l.columnName!==e.column){const e=n.columns.get(l.columnName);e&&(e.movable||e!==n.visibleColumns[0])&&l.classList.add("drag-over")}}}(e,t)),r.addEventListener("dragover",e=>{e.preventDefault()}),r.addEventListener("dragleave",t=>function(e,t){const r=e._o,n=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!n)return;const i=t.relatedTarget;null!=i&&i.contains(n.firstChild)||n.classList.remove("drag-over")}(e,t)),r.addEventListener("drop",t=>function(e,t){var r;t.preventDefault();const n=e._o,i=e._p,o=null===(r=t.dataTransfer)||void 0===r?void 0:r.getData("text");if(!o)return;let l;try{l=JSON.parse(o)}catch(e){return}const s=t.target.closest("div.".concat(n.tableClassName,"-header-cell,div.").concat(n.cellPreviewClassName));if(s){if(n.movableColumns&&l.dragId===i.dragId){const t=l.column,r=s.columnName,n=i.columns.get(t),o=i.columns.get(r);n&&o&&n.movable&&(o.movable||o!==i.visibleColumns[0])&&e.moveColumn(t,r)}s.classList.remove("drag-over")}}(e,t))}function is(e,t){let r=Math.max(0,parseFloat(e)||0),n=0;return r>0&&(e===r+"%"?(n=2,r/=100):r>0&&r<1?n=2:(r<t&&(r=t),n=1)),{width:r,mode:n}}function os(e,t){let r=is(t.width,t.ignoreMin?0:e.minColumnWidth),n={name:t.name,label:void 0===t.label?t.name:t.label,width:r.width,widthMode:r.mode,resizable:void 0===t.resizable||t.resizable,sortable:void 0===t.sortable||t.sortable,movable:void 0===t.movable||t.movable,visible:void 0===t.visible||t.visible,cellClasses:void 0===t.cellClasses?e.cellClasses:t.cellClasses,ignoreMin:void 0!==t.ignoreMin&&!!t.ignoreMin,sticky:void 0===t.sticky?null:t.sticky||null,dataPath:[],comparePath:[],order:0};const i=void 0===t.dataPath?[n.name]:t.dataPath;n.dataPath="string"==typeof i?i.split("."):i;const o=void 0===t.comparePath?n.dataPath:t.comparePath;return n.comparePath="string"==typeof o?o.split("."):o,n}function ls(e){const t=e._p;0===t.visibleColumns.length&&t.columns.length&&(t.columns[0].visible=!0,t.visibleColumns.push(t.columns[0]),e.emit("showcolumn",t.columns[0].name))}function ss(e){const t=e._p;if(t.filteredRows&&t.filterArgs){let r=e._o.filter||xl;t.filteredRows=t.rows.filteredCollection(r,t.filterArgs)}}function as(e,t,r){let n=r.dataPath,i=t[n[0]];for(let e=1;e<n.length&&null!=i;e++)i=i&&i[n[e]];const o=e.cellFormatter;let l;if(o[fl])l=o(i,r.name,t);else try{l=o(i,r.name,t)}catch(e){l="[ERROR]",console.error("Failed to generate content for cell "+r.name,e)}return null==l&&(l=""),l}const us=Array.prototype.indexOf,cs=document.createElement.bind(document);function ds(e){const t=e._p;if(t.cellPreviewCell){var r;const n=t.cellPreviewCell,i=n[bl];let o;try{o=zl.saveSelection(n)}catch(e){}t.cellPreviewCell.remove(),i&&t._unbindCellHoverOut(i),t._unbindCellHoverOut(n);try{o&&i&&zl.restoreSelection(i,o)}catch(e){}e.emit("cellpreviewdestroy",{el:n.firstChild,name:n.columnName,rowIndex:null!==(r=n.rowIndex)&&void 0!==r?r:null,rowData:null==n.rowIndex?null:t.rows[n.rowIndex],cell:i,cellEl:null==i?void 0:i.firstChild}),i&&delete i[gl],delete n[bl],t.cellPreviewCell=null,t.abortCellPreview=!1}else t.abortCellPreview=!0;return e}const hs=Object.prototype.hasOwnProperty;class fs{constructor(e){this.VERSION=fs.VERSION;const r=this._o={},i=this._p={eventsSink:new n,mitt:{all:o=o||new Map,on:function(e,t){var r=o.get(e);r?r.push(t):o.set(e,[t])},off:function(e,t){var r=o.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):o.set(e,[]))},emit:function(e,t){var r=o.get(e);r&&r.slice().map(function(e){e(t)}),(r=o.get("*"))&&r.slice().map(function(r){r(e,t)})}},tableSkeletonNeedsRendering:!0};var o;this.el=e.el&&e.el instanceof HTMLElement?e.el:document.createElement("div"),this.el!==e.el&&this.el.classList.add(e.className||"dgtable-wrapper"),i.eventsSink.add(this.el,"dragend.colresize",e=>{return t=e,void(this._p.resizer||(t.target.style.opacity=""));var t}),r.virtualTable=void 0===e.virtualTable||!!e.virtualTable,r.estimatedRowHeight=e.estimatedRowHeight||void 0,r.rowsBufferSize=e.rowsBufferSize||3,r.minColumnWidth=Math.max(e.minColumnWidth||35,0),r.resizeAreaWidth=e.resizeAreaWidth||8,r.resizableColumns=void 0===e.resizableColumns||!!e.resizableColumns,r.movableColumns=void 0===e.movableColumns||!!e.movableColumns,r.sortableColumns=void 0===e.sortableColumns?1:parseInt(String(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.allowCancelSort=void 0===e.allowCancelSort||!!e.allowCancelSort,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.customSortingProvider=void 0===e.customSortingProvider?null:e.customSortingProvider,r.width=void 0===e.width?Wl.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,this.setColumns(e.columns||[],!1);let l=[];if(e.sortColumn){let t=Array.isArray(e.sortColumn)?e.sortColumn:[e.sortColumn];for(let e=0,r=t.length;e<r;e++){var s;let r=t[e];"string"==typeof r&&(r={column:r,descending:!1});let n=i.columns.get(r.column);n&&l.push({column:r.column,comparePath:n.comparePath||n.dataPath,descending:null!==(s=r.descending)&&void 0!==s&&s})}}i.rows=new Cl({sortColumn:l}),i.rows.onComparatorRequired=(e,t,n)=>{if(r.onComparatorRequired)return r.onComparatorRequired(e,t,n)},i.rows.customSortingProvider=(e,t)=>r.customSortingProvider?r.customSortingProvider(e,t):t(e),i.filteredRows=null,i.scrollbarWidth=0,i._lastVirtualScrollHeight=0,function(e){const r=e._p,n=r=>{let n=r.currentTarget,i=r.relatedTarget;i===n||n.contains(i)||n[gl]&&(i===n[gl]||n[gl].contains(i))||function(e,r){var n,i;const o=e._o,l=e._p,s=r.firstElementChild;if(!s)return;if(!(s.scrollWidth-s.clientWidth>1||s.scrollHeight-s.clientHeight>1))return;ds(e),l.abortCellPreview=!1;const a=r.parentElement;if(!a)return;const u=cs("div");u.innerHTML=r.innerHTML,u.className=o.cellPreviewClassName;const c=r.classList.contains("".concat(o.tableClassName,"-header-cell"));c&&(u.classList.add("header"),r.classList.contains("sortable")&&u.classList.add("sortable"),u.draggable=!0,ns(e,u));const d=getComputedStyle(r),h=getComputedStyle(s),f="right"===d.float,m=f?"right":"left",p=parseFloat(d.paddingLeft)||0,v=parseFloat(d.paddingRight)||0,g=parseFloat(d.paddingTop)||0,b=parseFloat(d.paddingBottom)||0;let w=s.scrollWidth+(r.clientWidth-s.offsetWidth);const y="border-box"===d.boxSizing;if(y?u.style.boxSizing="border-box":(w-=p+v,u.style.marginTop=(parseFloat(d.borderTopWidth)||0)+"px"),!l.transparentBgColor1){const e=document.createElement("div");document.body.appendChild(e),e.style.backgroundColor="transparent",l.transparentBgColor1=getComputedStyle(e).backgroundColor,e.style.backgroundColor="rgba(0,0,0,0)",l.transparentBgColor2=getComputedStyle(e).backgroundColor,e.remove()}const C={"box-sizing":y?"border-box":"content-box",width:w,"min-height":Math.max(t.getElementHeight(r),/%/.test(d.minHeight)?0:parseFloat(d.minHeight)||0)+"px","padding-left":p,"padding-right":v,"padding-top":g,"padding-bottom":b,overflow:"hidden",position:"absolute","z-index":"-1",[m]:"0",top:"0",cursor:d.cursor};let S=d.backgroundColor;S!==l.transparentBgColor1&&S!==l.transparentBgColor2||(S=getComputedStyle(a).backgroundColor),S!==l.transparentBgColor1&&S!==l.transparentBgColor2||(S="#fff"),C["background-color"]=S,t.setCssProps(u,C),u.firstChild&&t.setCssProps(u.firstChild,{direction:h.direction,"white-space":h.whiteSpace,"min-height":h.minHeight,"line-height":h.lineHeight,font:h.font}),e.el.appendChild(u),c&&Nl(u),u.rowVIndex=a.vIndex;const R=u.rowIndex=a.index;u.columnName=null===(n=l.visibleColumns[us.call(a.childNodes,r)])||void 0===n?void 0:n.name;try{const e=zl.saveSelection(r);e&&zl.restoreSelection(u,e)}catch(e){}if(e.emit("cellpreview",{el:u.firstElementChild,name:u.columnName,rowIndex:null!=R?R:null,rowData:null==R?null:l.rows[R],cell:r,cellEl:s}),l.abortCellPreview)return void u.remove();null!=R&&u.addEventListener("click",t=>{e.emit("rowclick",{event:t,filteredRowIndex:a.vIndex,rowIndex:R,rowEl:a,rowData:l.rows[R]})});const x=e.el,W=x===window?document:x,L=getComputedStyle(x),P=t.getElementOffset(r),_=t.getElementOffset(x);if(f){const e=window.innerWidth;P.right=e-(P.left+t.getElementWidth(r,!0,!0,!0)),_.right=e-(_.left+t.getElementWidth(x,!0,!0,!0))}P.left-=parseFloat(L.borderLeftWidth)||0,"right"===m&&void 0!==P.right&&void 0!==_.right&&(P.right-=parseFloat(L.borderRightWidth)||0),P.top-=parseFloat(L.borderTopWidth)||0,"left"===m?P.left+=parseFloat(d.borderLeftWidth)||0:void 0!==P.right&&(P.right+=parseFloat(d.borderRightWidth)||0),P.top+=parseFloat(d.borderTopWidth)||parseFloat(d.borderBottomWidth)||0,P.left-=_.left,"right"===m&&void 0!==P.right&&void 0!==_.right&&(P.right-=_.right),P.top-=_.top;const k=t.getElementWidth(x,!1,!1,!1)-t.getElementWidth(u,!0,!0,!0),N="left"===m?P.left:null!==(i=P.right)&&void 0!==i?i:0,E=N<0?0:N>k?k:N;"left"===m?P.left=E:P.right=E;const O=t.getElementHeight(r,!0,!0,!0),T=("scrollTop"in W?W.scrollTop:0)+t.getElementHeight(x,!0)-O;P.top>T&&(P.top=Math.max(0,T));const A={top:P.top+"px","z-index":9999};A[m]=("left"===m?P.left:P.right)+"px",t.setCssProps(u,A),u[bl]=r,l.cellPreviewCell=u,r[gl]=u,l._bindCellHoverOut(r),l._bindCellHoverOut(u),u.addEventListener("wheel",()=>{ds(e)})}(e,n)},i=t=>{let r=t.currentTarget[bl]||t.currentTarget,n=t.relatedTarget;n===e.el||r.contains(n)||r[gl]&&(n===r[gl]||r[gl].contains(n))||function(e){ds(e)}(e)};r._bindCellHoverIn=e=>{e[ml]||e.addEventListener("mouseover",e[ml]=n)},r._unbindCellHoverIn=e=>{e[ml]&&(e.removeEventListener("mouseover",e[ml]),e[ml]=null)},r._bindCellHoverOut=e=>{e[pl]||e.addEventListener("mouseout",e[pl]=i)},r._unbindCellHoverOut=e=>{e[pl]&&(e.removeEventListener("mouseout",e[pl]),e[pl]=null)}}(this)}on(e,t){return this._p.mitt.on(e,t),this}once(e,t){const r=n=>{this._p.mitt.off(e,r),t(n)};return this._p.mitt.on(e,r),this}off(e,t){return e||t?this._p.mitt.off(e,t):this._p.mitt.all.clear(),this}emit(e,t){return this._p.mitt.emit(e,t),this}destroy(){var e,t,r;const n=this._p,i=this.el;if(this.__removed||!n)return this;if(n.resizer&&(n.resizer.remove(),n.resizer=null),null===(e=n.virtualListHelper)||void 0===e||e.destroy(),n.virtualListHelper=null,Xl(this),null===(t=n.table)||void 0===t||t.remove(),null===(r=n.tbody)||void 0===r||r.remove(),n.workerListeners){for(let e=0;e<n.workerListeners.length;e++){let t=n.workerListeners[e];t.worker.removeEventListener("message",t.listener,!1)}n.workerListeners.length=0}n.rows.length=n.columns.length=0,n._deferredRender&&clearTimeout(n._deferredRender);for(let e in this)hs.call(this,e)&&(this[e]=null);return this.__removed=!0,i&&i.remove(),this}close(){this.destroy()}remove(){this.destroy()}render(){const r=this._o,n=this._p;if(!this.el.offsetParent)return n._deferredRender||(n._deferredRender=setTimeout(()=>{n._deferredRender=null,!this.__removed&&this.el.offsetParent&&this.render()})),this;if(!0===n.tableSkeletonNeedsRendering){var o;n.tableSkeletonNeedsRendering=!1,r.width===Wl.AUTO&&ts(this);let l=n.table&&n.table.parentNode?n.table.scrollTop:NaN,s=n.table&&n.table.parentNode?e.getScrollHorz(n.table):NaN;!function(e){var r;const n=e._p,i=e._o;null===(r=n.virtualListHelper)||void 0===r||r.destroy(),n.virtualListHelper=null,n.table&&i.virtualTable&&(n.table.remove(),n.table=void 0,n.tbody=void 0),Xl(e),n.currentTouchId=null,n.header&&n.header.remove();const o=i.tableClassName,l=Gl("div"),s=Gl("div");l.className="".concat(o,"-header"),s.className="".concat(o,"-header-row"),n.header=l,n.headerRow=s,l.appendChild(s),e.el.prepend(l),Pl(e.el),i.width===Wl.SCROLL?e.el.style.overflow="hidden":e.el.style.overflow="",!i.height&&i.virtualTable&&(i.height=t.getElementHeight(e.el,!0))}(this),function(e){const r=e._p,n=e._o,o=n.tableClassName;if(n.virtualTable&&!r.virtualRowHeight){const n=()=>{const e=Gl("div"),t=e.appendChild(Gl("div")),r=t.appendChild(Gl("div"));return e.className="".concat(o,"-row"),t.className="".concat(o,"-cell"),r.innerHTML="0",e.style.visibility="hidden",e.style.position="absolute",e},i=Gl("div");i.className=e.el.className,t.setCssProps(i,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",width:"1px",overflow:"hidden"});const l=Gl("div");l.className=o,i.appendChild(l);const s=Gl("div");s.className="".concat(o,"-body"),s.style.width="99999px",l.appendChild(s),document.body.appendChild(i);const a=n(),u=n(),c=n();s.appendChild(a),s.appendChild(u),s.appendChild(c),r.virtualRowHeight=t.getElementHeight(u,!0,!0,!0),i.remove()}if(!r.table){var l;const s=document.createDocumentFragment(),a=Gl("div");a.className=o,n.virtualTable&&(a.className+=" virtual");const u=getComputedStyle(a);let c=(null!==(l=n.height)&&void 0!==l?l:0)-t.getElementHeight(r.header,!0,!0,!0);"border-box"!==u.boxSizing&&(c-=parseFloat(u.borderTopWidth)||0,c-=parseFloat(u.borderBottomWidth)||0,c-=parseFloat(u.paddingTop)||0,c-=parseFloat(u.paddingBottom)||0),t.setCssProps(a,{height:n.height?c+"px":"auto",display:"block",overflowY:"auto",overflowX:n.width===Wl.SCROLL?"auto":"hidden"}),s.appendChild(a);const d=Gl("div");d.className=n.tableClassName+"-body",d.style.minHeight="1px",r.table=a,r.tbody=d,Pl(d),Pl(a),a.appendChild(d),e.el.appendChild(s),function(e){var t;const r=e._p,n=e._o,o=n.tableClassName,l=o+"-row",s=o+"-row-alt",a=o+"-cell",u=o+"-sticky";let c=r.visibleColumns,d=c.length;r.notifyRendererOfColumnsConfig=()=>{c=r.visibleColumns,d=c.length;for(let e=0;e<d;e++){const t=c[e];t._finalWidth=t.actualWidthConsideringScrollbarWidth||t.actualWidth}},r.virtualListHelper=new i({list:r.table,itemsParent:r.tbody,autoVirtualWrapperWidth:!1,virtual:n.virtualTable,buffer:n.rowsBufferSize,estimatedItemHeight:n.estimatedRowHeight?n.estimatedRowHeight:r.virtualRowHeight||40,itemElementCreatorFn:()=>Gl("div"),onItemRender:(t,i)=>{const o=r.filteredRows||r.rows,h=!!r.filteredRows,f=n.allowCellPreview,m=r.isStickyColumns;t.className=l,i%2==1&&(t.className+=" "+s);const p=o[i],v=h?p[yl]:i;t.vIndex=i,t.index=v;for(let e=0;e<d;e++){var g;const i=c[e],o=Gl("div");if(o.columnName=i.name,o.setAttribute("data-column",i.name),o.className=a,o.style.width=(null!==(g=i._finalWidth)&&void 0!==g?g:0)+"px",i.cellClasses&&(o.className+=" "+i.cellClasses),i.stickyPos){o.className+=" "+u,o.style.position="sticky",o.style[i.stickyPos.direction]=i.stickyPos.offset+"px";const t=null==m?void 0:m.get(e);"left"===t?o.classList.add("is-sticky-left"):"right"===t&&o.classList.add("is-sticky-right")}f&&r._bindCellHoverIn(o),o.appendChild(Gl("div")).innerHTML=as(n,p,i),t.appendChild(o)}t.addEventListener("click",t[vl]=r=>{e.emit("rowclick",{event:r,filteredRowIndex:i,rowIndex:v,rowEl:t,rowData:p})}),e.emit("rowcreate",{filteredRowIndex:i,rowIndex:v,rowEl:t,rowData:p})},onItemUnrender:t=>{t[vl]&&t.removeEventListener("click",t[vl]),function(e,t){const r=e._p;for(let e=0,n=t.childNodes,i=n.length;e<i;e++)r._unbindCellHoverIn(n[e])}(e,t),e.emit("rowdestroy",t)},onScrollHeightChange:t=>{t>r._lastVirtualScrollHeight&&!r.scrollbarWidth&&Jl(e),r._lastVirtualScrollHeight=t}}),r.virtualListHelper.setCount((null!==(t=r.filteredRows)&&void 0!==t?t:r.rows).length),r.notifyRendererOfColumnsConfig()}(e)}}(this),this.tableWidthChanged(!0,!1),function(e){const t=e._p,r=e._o,n=r.allowCellPreview,i=r.allowHeaderCellPreview,o=r.tableClassName+"-header-cell",l=t.headerRow;for(let a=0;a<t.visibleColumns.length;a++){const u=t.visibleColumns[a];if(u.visible){var s;const c=Gl("div");c.draggable=!0,c.className=o,c.style.width=(null!==(s=u.actualWidth)&&void 0!==s?s:0)+"px",r.sortableColumns&&u.sortable&&(c.className+=" sortable"),c.columnName=u.name,c.setAttribute("data-column",u.name);const d=Gl("div");d.innerHTML=r.headerCellFormatter(u.label,u.name),c.appendChild(d),n&&i&&t._bindCellHoverIn(c),l.appendChild(c),t.visibleColumns[a].element=c,ns(e,c),Nl(c)}}Ql(e),e.emit("headerrowcreate",l)}(this),n.virtualListHelper.setCount((null!==(o=n.filteredRows)&&void 0!==o?o:n.rows).length),Yl(this),Jl(this,!0),Kl(this,!0);for(let e=0;e<n.rows.sortColumn.length;e++)rs(this,n.rows.sortColumn[e].column,n.rows.sortColumn[e].descending);r.adjustColumnWidthForSortArrow&&n.rows.sortColumn.length?this.tableWidthChanged(!0):r.virtualTable||this.tableWidthChanged(),isNaN(l)||(n.table.scrollTop=l),isNaN(s)||(e.setScrollHorz(n.table,s),e.setScrollHorz(n.header,s)),this.emit("renderskeleton")}return n.virtualListHelper.render(),this.emit("render"),this}clearAndRender(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}setColumns(e,t){const r=this._p;e=e||[];let n=new Rl;for(let t=0,r=0;t<e.length;t++){let i=e[t],o=os(this._o,i);void 0!==i.order?(i.order>r&&(r=i.order+1),o.order=i.order):o.order=r++,n.push(o)}return n.normalizeOrder(),r.columns=n,r.visibleColumns=n.getVisibleColumns(),ls(this),this.clearAndRender(t),this}addColumn(e,t,r){const n=this._p;let i=n.columns;if(e&&!i.get(e.name)){let o=null;void 0!==t&&(o="string"==typeof t?i.get(t):i.getByOrder(t));let l=os(this._o,e);l.order=o?o.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(),n.visibleColumns=i.getVisibleColumns(),ls(this),this.clearAndRender(r),this.emit("addcolumn",l.name)}return this}removeColumn(e,t){const r=this._p;let n=r.columns,i=n.indexOf(e);return i>-1&&(n.splice(i,1),n.normalizeOrder(),r.visibleColumns=n.getVisibleColumns(),ls(this),this.clearAndRender(t),this.emit("removecolumn",e)),this}setColumnLabel(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.firstChild.childNodes.length;e++){let t=r.element.firstChild.childNodes[e];if(3===t.nodeType){t.textContent=r.label;break}}return this}moveColumn(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=this._o,o=this._p;let l,s,a=o.columns,u=n?o.visibleColumns:a.getColumns();if("string"==typeof e?l=a.get(e):"number"==typeof e&&(l=u[e]),"string"==typeof t?s=a.get(t):"number"==typeof t&&(s=u[t]),l&&s&&e!==t){let e=l.order,t=s.order,n=a.moveColumn(l,s).getVisibleColumns();if(o.visibleColumns.length!==n.length||o.visibleColumns.some((e,t)=>e!==n[t]))if(o.visibleColumns=n,ls(this),i.virtualTable)this.clearAndRender();else{var c,d;const n=r.scopedSelectorAll(o.headerRow,">div.".concat(i.tableClassName,"-header-cell"));let l=e<t?t+1:t,s=e;n[0].parentNode.insertBefore(n[s],n[l]);let a=o.visibleColumns[e],u=(null!==(c=a.actualWidthConsideringScrollbarWidth||a.actualWidth)&&void 0!==c?c:0)+"px",h=o.visibleColumns[t],f=(null!==(d=h.actualWidthConsideringScrollbarWidth||h.actualWidth)&&void 0!==d?d:0)+"px",m=o.tbody.childNodes;for(let r=0,n=m.length;r<n;r++){let n=m[r];1===n.nodeType&&(n.insertBefore(n.childNodes[s],n.childNodes[l]),n.childNodes[t].firstChild.style.width=f,n.childNodes[e].firstChild.style.width=u)}}this.emit("movecolumn",{name:l.name,src:e,dest:t})}return this}setColumnVisible(e,t){const r=this._p;let n=r.columns.get(e);return t=!!t,n&&!!n.visible!==t&&(n.visible=t,r.visibleColumns=r.columns.getVisibleColumns(),this.emit(t?"showcolumn":"hidecolumn",e),ls(this),this.clearAndRender()),this}isColumnVisible(e){let t=this._p.columns.get(e);return!!t&&t.visible}setMinColumnWidth(e){let t=this._o;return e=Math.max(e,0),t.minColumnWidth!==e&&(t.minColumnWidth=e,this.tableWidthChanged(!0)),this}getMinColumnWidth(){return this._o.minColumnWidth}setColumnWidth(e,t){let r=this._p.columns.get(e),n=is(t,r.ignoreMin?0:this._o.minColumnWidth);if(r){let e=Fl(r);r.width=n.width,r.widthMode=n.mode;let t=Fl(r);e!==t&&this.tableWidthChanged(!0),this.emit("columnwidth",{name:r.name,width:t,oldWidth:e})}return this}getColumnWidth(e){let t=this._p.columns.get(e);return t?Fl(t):null}getColumnConfig(e){let t=this._p.columns.get(e);return t?{order:t.order,width:Fl(t),visible:t.visible,label:t.label}:null}getColumnsConfig(){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}setSortableColumns(e){const t=this._p,n=this._o;if(n.sortableColumns!==e&&(n.sortableColumns=e,t.table)){const e=r.scopedSelectorAll(t.headerRow,">div.".concat(n.tableClassName,"-header-cell"));for(let r=0,i=e.length;r<i;r++)e[r].classList[n.sortableColumns>0&&t.visibleColumns[r].sortable?"add":"remove"]("sortable")}return this}getSortableColumns(){return this._o.sortableColumns}setMovableColumns(e){let t=this._o;return e=void 0===e||!!e,t.movableColumns!==e&&(t.movableColumns=e),this}getMovableColumns(){return this._o.movableColumns}setResizableColumns(e){let t=this._o;return e=void 0===e||!!e,t.resizableColumns!==e&&(t.resizableColumns=e),this}getResizableColumns(){return this._o.resizableColumns}setOnComparatorRequired(e){let t=this._o;return t.onComparatorRequired!==e&&(t.onComparatorRequired=e),this}setCustomSortingProvider(e){let t=this._o;return t.customSortingProvider!==e&&(t.customSortingProvider=e),this}sort(e,t,r){const n=this._o,i=this._p;let o=i.columns.get(e),l=i.rows.sortColumn;if(o){if(r){for(let e=0;e<l.length;e++)if(l[e].column===o.name){e<l.length-1?l.length=0:(t=l[l.length-1].descending,l.splice(l.length-1,1));break}(n.sortableColumns>0&&l.length>=n.sortableColumns||l.length>=i.visibleColumns.length)&&(l.length=0)}else l.length=0;t=void 0!==t&&t,l.push({column:o.name,comparePath:o.comparePath||o.dataPath,descending:!!t})}else l.length=0;ts(this);for(let e=0;e<l.length;e++)rs(this,l[e].column,l[e].descending);n.adjustColumnWidthForSortArrow&&!i.tableSkeletonNeedsRendering&&this.tableWidthChanged(!0),i.rows.sortColumn=l,l.length&&(i.rows.sort(),i.filteredRows&&i.filteredRows.sort()),i.virtualListHelper&&i.virtualListHelper.invalidate().render();let s=[];for(let e=0;e<l.length;e++)s.push({column:l[e].column,descending:l[e].descending});return this.emit("sort",{sorts:s}),this}resort(){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);e.rows.sortColumn=r,r.length&&(e.rows.sort(),e.filteredRows&&e.filteredRows.sort());let n=[];for(let e=0;e<r.length;e++)n.push({column:r[e].column,descending:r[e].descending});this.emit("sort",{sorts:n,resort:!0})}return this}getSortedColumns(){const e=this._p;let t=[];for(let r=0;r<e.rows.sortColumn.length;r++){let n=e.rows.sortColumn[r];t.push({column:n.column,descending:n.descending})}return t}setCellFormatter(e){if(!e){const t=e=>"string"==typeof e?cl(e):e;t[fl]=!0,e=t}return this._o.cellFormatter=e,this}setHeaderCellFormatter(e){return this._o.headerCellFormatter=e||function(e){return"string"==typeof e?cl(e):e},this}setFilter(e){return this._o.filter=e,this}filter(e){const t=this._p;let r=this._o.filter||xl;"string"==typeof arguments[0]&&"string"==typeof arguments[1]&&(e={column:arguments[0],keyword:arguments[1],caseSensitive:arguments[2]});let n=!!t.filteredRows;return t.filteredRows&&(t.filteredRows=null),t.filterArgs=null==e?null:"object"!=typeof e||Array.isArray(e)?e:Object.assign({},e),null!==t.filterArgs?(t.filteredRows=t.rows.filteredCollection(r,t.filterArgs),(n||t.filteredRows)&&(this.clearAndRender(),this.emit("filter",e))):(t.filterArgs=null,t.filteredRows=null,this.clearAndRender(),this.emit("filterclear",{})),this}clearFilter(){const e=this._p;return e.filteredRows&&(e.filterArgs=null,e.filteredRows=null,this.clearAndRender(),this.emit("filterclear",{})),this}getHtmlForRowCell(e,t){const r=this._p;if(e<0||e>r.rows.length-1)return null;let n=r.columns.get(t);if(!n)return null;let i=r.rows[e];return as(this._o,i,n)}getHtmlForRowDataCell(e,t){let r=this._p.columns.get(t);return r?as(this._o,e,r):null}getRowYPos(e){return this._p.virtualListHelper.getItemPosition(e)||null}getDataForRow(e){const t=this._p;return e<0||e>t.rows.length-1?null:t.rows[e]}getRowCount(){const e=this._p;return e.rows?e.rows.length:0}getIndexForRow(e){return this._p.rows.indexOf(e)}getFilteredRowCount(){const e=this._p;return(e.filteredRows||e.rows).length}getIndexForFilteredRow(e){const t=this._p;return(t.filteredRows||t.rows).indexOf(e)}getDataForFilteredRow(e){const t=this._p;return e<0||e>(t.filteredRows||t.rows).length-1?null:(t.filteredRows||t.rows)[e]}getHeaderRowElement(){return this._p.headerRow}addRows(e,t,r,n){let i=this._p;"boolean"==typeof t&&(n=r,r=t,t=-1),"number"!=typeof t&&(t=-1),(t<0||t>i.rows.length)&&(t=i.rows.length),n=void 0===n||!!n;const o=(Array.isArray(e)?e:[e]).length;return e&&(i.rows.add(e,t),i.filteredRows||r&&i.rows.sortColumn.length?(r&&i.rows.sortColumn.length?this.resort():ss(this),i.tableSkeletonNeedsRendering=!0,n&&this.render()):n&&(i.virtualListHelper.addItemsAt(o,t),this._o.virtualTable?(Yl(this),Jl(this),this.render(),Kl(this,!1)):i.tbody&&(this.render(),Jl(this),Kl(this,!0))),this.emit("addrows",{count:o,clear:!1})),this}removeRows(e,t,r){let n=this._p;return"number"!=typeof t||t<=0||e<0||e>n.rows.length-1||(n.rows.splice(e,t),r=void 0===r||!!r,n.filteredRows?(ss(this),n.tableSkeletonNeedsRendering=!0,r&&this.render()):r&&(n.virtualListHelper.removeItemsAt(t,e),this._o.virtualTable?(Yl(this),Jl(this),this.render(),Kl(this,!1)):(this.render(),Jl(this),Kl(this,!0)))),this}removeRow(e,t){return this.removeRows(e,1,t)}refreshRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this._p;if(e<0||e>r.rows.length-1)return this;let n=-1;return r.filteredRows&&-1===(n=r.filteredRows.indexOf(r.rows[e]))||(-1===n&&(n=e),r.virtualListHelper.refreshItemAt(n),t&&r.virtualListHelper.render()),this}getRowElement(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]))?null:(-1===r&&(r=e),t.virtualListHelper.getItemElementAt(r)||null)}refreshAllVirtualRows(){return this._p.virtualListHelper.invalidate().render(),this}setRows(e,t){let r=this._p;return r.rows.reset(e),t&&r.rows.sortColumn.length?this.resort():ss(this),this.clearAndRender().emit("addrows",{count:e.length,clear:!0}),this}tableWidthChanged(e,t){let r=this._o,n=this._p,i=Ol(this),o=i,l=0;if(!n.table)return this;t=void 0===t||t;let s=0;if(n.tbody||(t=!1),t&&(s=parseFloat(n.tbody.style.minWidth)||0),o!==n.lastDetectedWidth||e){var a;n.lastDetectedWidth=i;let e=0,u=[],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 i=n.visibleColumns[t];if(1===i.widthMode){let n=i.width;n+=i.arrowProposedWidth||0,!i.ignoreMin&&n<r.minColumnWidth&&(n=r.minColumnWidth),o-=n,e+=n,n!==i.actualWidth&&(i.actualWidth=n,u.push(t))}else if(0===i.widthMode){let n=El(this,i.label)+20;n+=i.arrowProposedWidth||0,!i.ignoreMin&&n<r.minColumnWidth&&(n=r.minColumnWidth),o-=n,e+=n,n!==i.actualWidth&&(i.actualWidth=n,r.convertColumnWidthsToRelative||u.push(t))}else 2===i.widthMode&&(c+=i.width,l++)}if(r.convertColumnWidthsToRelative)for(let t=0;t<n.visibleColumns.length;t++){let r=n.visibleColumns[t];0===r.widthMode&&(r.widthMode=2,o+=r.actualWidth,r.width=r.actualWidth/e,c+=r.width,l++)}if(l&&(c<1&&r.relativeWidthGrowsToFillWidth||c>1&&r.relativeWidthShrinksToFillWidth))for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];2===t.widthMode&&(t.width/=c)}let d=Math.max(0,o);0===d&&(d=n.table.clientWidth);let h=r.minColumnWidth/d;if(isNaN(h)&&(h=0),h>0){let e,t=0;for(let e=0;e<n.visibleColumns.length;e++){let r=n.visibleColumns[e];2===r.widthMode&&!r.ignoreMin&&r.width<h&&(t+=h-r.width,r.width=h)}for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];2===i.widthMode&&!i.ignoreMin&&i.width>h&&t>0&&(e=Math.min(t,i.width-h),i.width-=e,t-=e)}}if(r.autoFillTableWidth&&o>0){let e=0,t=o;for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];i.resizable||1!==i.widthMode||(e+=i.width),2===i.widthMode&&(t-=Math.round(d*i.width))}let r=(i-e)/(i-t-e)||NaN;for(let e=0;e<n.visibleColumns.length&&t>0;e++){let t=n.visibleColumns[e];if(t.resizable||1!==t.widthMode)if(2===t.widthMode)t.width*=r;else{let n=t.actualWidth*r;t.actualWidth!==n&&(t.actualWidth=n,-1===u.indexOf(e)&&u.push(e))}}}for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];if(2===t.widthMode){let r=Math.round(d*t.width);o-=r,l--,0===l&&1===o&&(r++,o--),-1===o&&(r--,o++),r!==t.actualWidth&&(t.actualWidth=r,u.push(e))}}if(n.visibleColumns.length&&(n.visibleColumns[n.visibleColumns.length-1].actualWidthConsideringScrollbarWidth=n.visibleColumns[n.visibleColumns.length-1].actualWidth-(n.scrollbarWidth||0)),null===(a=n.notifyRendererOfColumnsConfig)||void 0===a||a.call(n),t){let e=Tl(this);s<e&&Kl(this,!1);for(let e=0;e<u.length;e++)es(this,u[e]);s>e&&Kl(this,!1)}}return this}tableHeightChanged(){let e=this._o,r=this._p;if(!r.table)return this;const n=getComputedStyle(r.table);let i=t.getElementHeight(this.el,!0)-(parseFloat(n.borderTopWidth)||0)-(parseFloat(n.borderBottomWidth)||0);return i!==e.height&&(e.height=i,r.tbody&&(r.tbody.style.height=Math.max(e.height-t.getElementHeight(r.header,!0,!0,!0),1)+"px"),e.virtualTable&&this.clearAndRender()),this}hideCellPreview(){return ds(this),this}abortCellPreview(){return this.hideCellPreview(),this}cancelColumnResize(){return Ml(this),this}getUrlForElementContent(e){let t,r=document.getElementById(e);if(r){let e=r.textContent;if("function"==typeof Blob)t=new Blob([e||""]);else{const r=window,n=r.BlobBuilder||r.WebKitBlobBuilder||r.MozBlobBuilder||r.MSBlobBuilder;if(!n)return null;const i=new n;i.append(e||""),t=i.getBlob()}return(window.URL||window.webkitURL).createObjectURL(t)}return null}isWorkerSupported(){return window.Worker instanceof Function}createWebWorker(e,t,r){if(this.isWorkerSupported()){let n=this._p,i=new Worker(e),o=e=>{e.data.append?this.addRows(e.data.rows,r):this.setRows(e.data.rows,r)};return i.addEventListener("message",o,!1),n.workerListeners||(n.workerListeners=[]),n.workerListeners.push({worker:i,listener:o}),(t||void 0===t)&&i.postMessage(null),i}return null}unbindWebWorker(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}}return fs.VERSION="@@VERSION",fs.Width=Wl,fs});
|
package/package.json
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielgindi/dgtable.js",
|
|
3
3
|
"description": "High-performance table View for vanilla JS",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.9",
|
|
5
5
|
"main": "dist/lib.cjs.min.js",
|
|
6
6
|
"module": "dist/lib.es6.min.js",
|
|
7
7
|
"browser": "dist/lib.umd.min.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"type": "module",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/lib.es6.min.js",
|
|
14
|
+
"require": "./dist/lib.cjs.min.js",
|
|
15
|
+
"default": "./dist/lib.es6.min.js"
|
|
16
|
+
},
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
10
19
|
"author": {
|
|
11
20
|
"name": "Daniel Cohen Gindi",
|
|
12
21
|
"email": "danielgindi@gmail.com"
|
package/src/index.ts
CHANGED
|
@@ -218,7 +218,7 @@ class DGTable {
|
|
|
218
218
|
// PUBLIC API - Events
|
|
219
219
|
// =========================================================================
|
|
220
220
|
|
|
221
|
-
/**
|
|
221
|
+
/**
|
|
222
222
|
* Register an event handler.
|
|
223
223
|
* Built-in events have typed handlers. Custom events use `unknown` data type.
|
|
224
224
|
*/
|
|
@@ -229,7 +229,7 @@ class DGTable {
|
|
|
229
229
|
return this;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
/**
|
|
232
|
+
/**
|
|
233
233
|
* Register a one-time event handler.
|
|
234
234
|
* Built-in events have typed handlers. Custom events use `unknown` data type.
|
|
235
235
|
*/
|
|
@@ -244,7 +244,7 @@ class DGTable {
|
|
|
244
244
|
return this;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
/**
|
|
247
|
+
/**
|
|
248
248
|
* Remove a handler for an event, all handlers for an event, or all handlers completely.
|
|
249
249
|
* Built-in events have typed handlers. Custom events use `unknown` data type.
|
|
250
250
|
*/
|
|
@@ -259,7 +259,7 @@ class DGTable {
|
|
|
259
259
|
return this;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
/**
|
|
262
|
+
/**
|
|
263
263
|
* Emit an event.
|
|
264
264
|
* Built-in events have typed data. Custom events accept any data type.
|
|
265
265
|
*/
|