@danielgindi/dgtable.js 2.0.8 → 2.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * @danielgindi/dgtable.js 2.0.8
2
+ * @danielgindi/dgtable.js 2.0.10
3
3
  * git://github.com/danielgindi/dgtable.js.git
4
4
  */
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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;").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};
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 k(){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 W(){if(S)return C;S=1;var e=k(),t=Function.prototype.call;return C=e?t.bind(t):function(){return t.apply(t,arguments)},C}var _,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(_)return pe;_=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=k(),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 ke(){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 We(){if(J)return Y;J=1;var e=be();return Y=e({}.isPrototypeOf)}function _e(){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=_e(),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=ke(),t=xe(),r=We(),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=W(),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=W(),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=W(),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,kt,Wt,_t={};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 _t;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 _t.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},_t}function Tt(){if(Wt)return kt;Wt=1;var e=L(),t=Ot(),r=ge();return kt=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 kr,Wr,_r,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 kr||(kr=1,rn.f=Object.getOwnPropertySymbols),rn}function on(){if(_r)return Wr;_r=1;var e=ke(),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 Wr=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=_e().match(/firefox\/(\d+)/i);return Yr=!!e&&+e[1]}(),d=function(){if(Qr)return Kr;Qr=1;var e=_e();return Kr=/MSIE|Trident/.test(e)}(),h=Pe(),v=function(){if(en)return Zr;en=1;var e=_e().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,kn,Wn,_n,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=ke();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(kn)return Ln;kn=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 _n?Wn:(_n=1,Wn={})}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=W(),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,k){o(f,d,R);var 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&&(W=l(z.call(new n)))!==Object.prototype&&W.next&&(r||l(W)===m||(s?s(W,m):i(W[b])||c(W,b,S)),a(W,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(_={values:N(y),keys:L?F:N(w),entries:N(C)},k)for(P in _)(g||T||!(P in A))&&c(A,P,_[P]);else e({target:d,proto:!0,forced:g||T},_);return r&&!k||A[b]===F||c(A,b,F,{name:x}),h[d]=F,_}}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,ki,Wi,_i,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=k(),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(ki)return Li;ki=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(_i)return Wi;_i=1;var e=We(),t=TypeError;return Wi=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")}}function ao(){if(Ti)return Oi;Ti=1;var e=W(),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=ke(),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=W(),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=W(),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,ko,Wo,_o={};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 _o;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=ke(),i=W(),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(),k=mo(),_=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=_(e);if(c)for(r=(t=k(e,c)).next;!(n=i(r,t)).done;){if(l=(o=k(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}}Wo||(Wo=1,function(){if(ko)return to;ko=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=W(),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,k=36-x;d(r,a(p(x+L%k))),S=s(L/k),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"),k=y.URLSearchParams,_=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={},ke={},We={},_e={},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=_(new k)).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=_e:"/"===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:ke;continue;case xe:if("/"!==o||"/"!==i[d+1]){u=ke;continue}u=Pe,d++;break;case Le:if("/"===o){u=Ne;break}u=Me;continue;case ke: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=We;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 We: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 _e: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=W();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=W(),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),k=x.raw;if(k)return k.lastIndex=R.lastIndex,t=r(p,k,L),R.lastIndex=k.lastIndex,t;var W=x.groups,_=C&&R.sticky,P=r(o,R),N=R.source,O=0,T=L;if(_&&(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,_?n:R,T),_?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&&W)for(s.groups=d=a(null),c=0;c<W.length;c++)d[(v=W[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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}!function(){if(cl)return dl;cl=1;var e=function(){if(Ko)return Jo;Ko=1;var e=k(),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=W(),r=be(),n=function(){if(Zo)return Qo;Zo=1,Yo();var e=W(),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=W(),t=ft(),r=We(),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=W(),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),_=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,k=c(m(s)),W=-1!==R(k,"g");W&&(x=-1!==R(k,"u"),s.lastIndex=0);for(var P,N=[];null!==(P=g(s,d))&&(S(N,P),W);)""===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,_(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=We(),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"),kl=Symbol("destroyed");class Wl 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 Wl({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=_l(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 _l(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 Pl 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 Nl(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 Ol={NONE:"none",AUTO:"auto",SCROLL:"scroll"},Tl=document.createElement.bind(document);function Al(e){["relative","absolute","fixed"].includes(getComputedStyle(e).position)||(e.style.position="relative")}function El(e){const t=e.target;return/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(t.tagName)}function Fl(e){const t=getComputedStyle(e);return(parseFloat(t.paddingLeft)||0)+(parseFloat(t.paddingRight)||0)}function zl(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 Il(e,t){const i=e._o.tableClassName,o=Tl("div");o.className=e.el.className;const l=Tl("div");l.className=i+"-header";const s=Tl("div");s.className=i+"-header-row";const a=Tl("div");a.className=i+"-header-cell";const u=Tl("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 Ml(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=Tl("div");c.className=e.el.className,n(c,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px"});const d=Tl("div");d.className="".concat(u,"-header"),c.appendChild(d);const h=Tl("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=Tl("div");r.className="".concat(u,"-header-cell ").concat(t.cellClasses||""),r.columnName=t.name,r.appendChild(Tl("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)+Fl(e);const r=e.columnName,n=i.columns.get(r);n&&(a-=n.arrowProposedWidth||0)}}return c.remove(),Math.max(0,a)}function Hl(e){const t=e._p,i=e._o.tableClassName,o=i+"-row",l=i+"-cell",s=t.visibleColumns,a=s.length,u=Tl("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=Tl("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(Tl("div")),u.appendChild(r),c+=null!==(h=t.actualWidth)&&void 0!==h?h:0}const f=Tl("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=Tl("div");v.className=i,f.appendChild(v);const p=Tl("div");p.className=i+"-body",p.style.width=c+1e4+"px",v.appendChild(p),p.appendChild(u),document.body.appendChild(f);const m=Tl("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 jl(e){const t=e._p;return!!t.table&&"rtl"===getComputedStyle(t.table).direction}function Bl(e){return 0===e.widthMode?"auto":2===e.widthMode?100*e.width+"%":e.width}class Ul{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 ql=document.createElement.bind(document);function Dl(e,t){var n,o,l;const s=e._o,a=jl(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 Vl(e){const t=e._p;return t.resizer&&(t.resizer.remove(),t.resizer=null,t.eventsSink.remove(document,".colresize")),e}function $l(e,t){const l=t;if("mousedown"===t.type&&0!==l.button)return;const s=e._o,a=e._p,u=Dl(e,t);if(u){const l=a.columns.get(u);if(!s.resizableColumns||!l||!l.resizable)return!1;const c=jl(e);a.resizer&&a.resizer.remove(),a.resizer=ql("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=>Gl(e,t)).add(document,"touchmove.colresize",t=>Gl(e,t)).add(document,"mouseup.colresize",t=>Xl(e,t)).add(document,"touchend.colresize",t=>Xl(e,t)),t.preventDefault()}}function Gl(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=jl(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-=Fl(c)),w>y&&(w=y)):(y+=a.ignoreMin?0:e._o.minColumnWidth,g||(y+=Math.ceil((parseFloat(f.borderRightWidth)||0)/2),y+=Fl(c)),w<y&&(w=y)),s.resizer.style.left=w+"px"}function Xl(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=jl(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+=Fl(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-=Fl(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=Ml(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 Yl(e,t){var r;const n=e._o,i=e._p;if(!n.resizableColumns)return;const o=Dl(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 Jl(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 Kl(e,t){if(El(t))return;if(Dl(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 Ql=Array.prototype.indexOf,Zl=document.createElement.bind(document);function es(e){const t=e._p;return t.headerRow&&(t.headerRow=void 0),e}function ts(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 rs(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}is(e),null===(i=r.notifyRendererOfColumnsConfig)||void 0===i||i.call(r)}return e}function ns(e,t){const n=e._o,i=e._p;if(!i.tbody||!i.table||!i.headerRow)return e;const o=Hl(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===Ol.AUTO)l(i.table,r(i.tbody,!0,!0,!0)),l(e.el,r(i.table,!0,!0,!0));else if(n.width===Ol.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,os(e)}(e);i.eventsSink.add(i.table,"scroll",r)}return e}function is(e){var t;const r=e._p,n=e._o;if(!r.headerRow)return;const i=n.tableClassName+"-sticky",o=r.headerRow,l=jl(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,os(e)}function os(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(Ql.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 ls(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 ss(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 as(e,t,r){const n=e._p,i=e._o,o=n.columns.get(t);if(!o)return!1;const l=Zl("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 us(e,t){const r=t.firstChild;t.addEventListener("mousedown",t=>$l(e,t)),t.addEventListener("mousemove",t=>Yl(e,t)),t.addEventListener("mouseup",t=>function(e,t){2===t.button&&Jl(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],$l(e,t),l=setTimeout(()=>{a(),r.eventsSink.add(i,"touchend.colheader",e=>{El(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&&(Vl(e),Jl(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(),El(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,Kl(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,Yl(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=>Kl(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 cs(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 ds(e,t){let r=cs(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 hs(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 fs(e){const t=e._p;if(t.filteredRows&&t.filterArgs){let r=e._o.filter||Nl;t.filteredRows=t.rows.filteredCollection(r,t.filterArgs)}}function vs(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 ps=Array.prototype.indexOf,ms=document.createElement.bind(document);function gs(e){const t=e._p;if(t.cellPreviewCell){var r;const n=t.cellPreviewCell,i=n[Rl];let o;try{o=Ul.saveSelection(n)}catch(e){}t.cellPreviewCell.remove(),i&&t._unbindCellHoverOut(i),t._unbindCellHoverOut(n);try{o&&i&&Ul.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 bs=Object.prototype.hasOwnProperty;class ws{constructor(e){this.VERSION=ws.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?Ol.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 Wl({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;gs(e),u.abortCellPreview=!1;const d=t.parentElement;if(!d)return;const h=ms("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,us(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&&zl(h),h.rowVIndex=d.vIndex;const k=h.rowIndex=d.index;h.columnName=null===(l=u.visibleColumns[ps.call(d.childNodes,t)])||void 0===l?void 0:l.name;try{const e=Ul.saveSelection(t);e&&Ul.restoreSelection(h,e)}catch(e){}if(e.emit("cellpreview",{el:h.firstElementChild,name:h.columnName,rowIndex:null!=k?k:null,rowData:null==k?null:u.rows[k],cell:t,cellEl:c}),u.abortCellPreview)return void h.remove();null!=k&&h.addEventListener("click",t=>{e.emit("rowclick",{event:t,filteredRowIndex:d.vIndex,rowIndex:k,rowEl:d,rowData:u.rows[k]})});const W=e.el,_=W===window?document:W,P=getComputedStyle(W),N=i(t),O=i(W);if(m){const e=window.innerWidth;N.right=e-(N.left+r(t,!0,!0,!0)),O.right=e-(O.left+r(W,!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(W,!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 _?_.scrollTop:0)+o(W,!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",()=>{gs(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){gs(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[kl]||this._p.mitt.on(e,t),this}once(e,t){if(this[kl])return this;const r=n=>{this._p.mitt.off(e,r),t(n)};return this._p.mitt.on(e,r),this}off(e,t){return this[kl]||(e||t?this._p.mitt.off(e,t):this._p.mitt.all.clear()),this}emit(e,t){return this[kl]||this._p.mitt.emit(e,t),this}destroy(){var e,t,r;const n=this._p,i=this.el;if(this[kl]||!n)return this;if(n.resizer&&(n.resizer.remove(),n.resizer=null),null===(e=n.virtualListHelper)||void 0===e||e.destroy(),n.virtualListHelper=null,es(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)bs.call(this,e)&&(this[e]=null);return this[kl]=!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[kl]&&this.el.offsetParent&&this.render()})),this;if(!0===i.tableSkeletonNeedsRendering){var l;i.tableSkeletonNeedsRendering=!1,r.width===Ol.AUTO&&ss(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),es(e),r.currentTouchId=null,r.header&&r.header.remove();const i=n.tableClassName,l=Zl("div"),s=Zl("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),Al(e.el),n.width===Ol.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=Zl("div"),t=e.appendChild(Zl("div")),r=t.appendChild(Zl("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=Zl("div");l.className=e.el.className,n(l,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",width:"1px",overflow:"hidden"});const s=Zl("div");s.className=i,l.appendChild(s);const a=Zl("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=Zl("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===Ol.SCROLL?"auto":"hidden"}),s.appendChild(a);const h=Zl("div");h.className=r.tableClassName+"-body",h.style.minHeight="1px",t.table=a,t.tbody=h,Al(h),Al(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:()=>Zl("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=Zl("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(Zl("div")).innerHTML=vs(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&&rs(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=Zl("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=Zl("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,us(e,c),zl(c)}}is(e),e.emit("headerrowcreate",l)}(this),i.virtualListHelper.setCount((null!==(l=i.filteredRows)&&void 0!==l?l:i.rows).length),ts(this),rs(this,!0),ns(this,!0);for(let e=0;e<i.rows.sortColumn.length;e++)as(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 Pl;for(let t=0,r=0;t<e.length;t++){let i=e[t],o=ds(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(),hs(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=ds(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(),hs(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(),hs(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,hs(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),hs(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=cs(t,r.ignoreMin?0:this._o.minColumnWidth);if(r){let e=Bl(r);r.width=n.width,r.widthMode=n.mode;let t=Bl(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?Bl(t):null}getColumnConfig(e){let t=this._p.columns.get(e);return t?{order:t.order,width:Bl(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;ss(this);for(let e=0;e<l.length;e++)as(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||Nl;"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 vs(this._o,i,n)}getHtmlForRowDataCell(e,t){let r=this._p.columns.get(t);return r?vs(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():fs(this),i.tableSkeletonNeedsRendering=!0,n&&this.render()):n&&(i.virtualListHelper.addItemsAt(o,t),this._o.virtualTable?(ts(this),rs(this),this.render(),ns(this,!1)):i.tbody&&(this.render(),rs(this),ns(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?(fs(this),n.tableSkeletonNeedsRendering=!0,r&&this.render()):r&&(n.virtualListHelper.removeItemsAt(t,e),this._o.virtualTable?(ts(this),rs(this),this.render(),ns(this,!1)):(this.render(),rs(this),ns(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():fs(this),this.clearAndRender().emit("addrows",{count:e.length,clear:!0}),this}tableWidthChanged(e,t){let r=this._o,n=this._p,i=Ml(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=Il(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=Hl(this);s<e&&ns(this,!1);for(let e=0;e<u.length;e++)ls(this,u[e]);s>e&&ns(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 gs(this),this}abortCellPreview(){return this.hideCellPreview(),this}cancelColumnResize(){return Vl(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}}ws.VERSION="@@VERSION",ws.Width=Ol;export{ws as default};
6
6
 
7
7
  //# sourceMappingURL=lib.es6.min.js.map