jquery.dgtable 2.0.12 → 2.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.cjs.js +1 -1
- package/dist/lib.cjs.js.map +1 -1
- package/dist/lib.cjs.min.js +1 -1
- package/dist/lib.cjs.min.js.map +1 -1
- package/dist/lib.es6.js +1 -1
- package/dist/lib.es6.js.map +1 -1
- package/dist/lib.es6.min.js +1 -1
- package/dist/lib.es6.min.js.map +1 -1
- package/dist/lib.umd.js +1 -1
- package/dist/lib.umd.js.map +1 -1
- package/dist/lib.umd.min.js +1 -1
- package/dist/lib.umd.min.js.map +1 -1
- package/package.json +2 -2
package/dist/lib.es6.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import e from"jquery";var t,r,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i={};function o(){if(r)return t;r=1;var e=function(e){return e&&e.Math===Math&&e};return t=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")()}var l,s,a,u,c,d,f,h,p={};function v(){return s?l:(s=1,l=function(e){try{return!!e()}catch(e){return!0}})}function m(){if(u)return a;u=1;var e=v();return a=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function g(){if(d)return c;d=1;var e=v();return c=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function b(){if(h)return f;h=1;var e=g(),t=Function.prototype.call;return f=e?t.bind(t):function(){return t.apply(t,arguments)},f}var y,w,C,S,x,_,R,I,P,E,W,k,N,O,L,T,A,F,H,M,j,z,U,B,q,D,V,$,G,X,Y,J,K,Q,Z,ee,te,re,ne,ie,oe,le={};function se(){return C?w:(C=1,w=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function ae(){if(x)return S;x=1;var e=g(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return S=e?n:function(e){return function(){return r.apply(e,arguments)}},S}function ue(){if(R)return _;R=1;var e=ae(),t=e({}.toString),r=e("".slice);return _=function(e){return r(t(e),8,-1)},_}function ce(){return W||(W=1,E=function(e){return null==e}),E}function de(){if(N)return k;N=1;var e=ce(),t=TypeError;return k=function(r){if(e(r))throw new t("Can't call method on "+r);return r},k}function fe(){if(L)return O;L=1;var e=function(){if(P)return I;P=1;var e=ae(),t=v(),r=ue(),n=Object,i=e("".split);return I=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?i(e,""):n(e)}:n,I}(),t=de();return O=function(r){return e(t(r))},O}function he(){if(A)return T;A=1;var e="object"==typeof document&&document.all;return T=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function pe(){if(H)return F;H=1;var e=he();return F=function(t){return"object"==typeof t?null!==t:e(t)},F}function ve(){if(j)return M;j=1;var e=o(),t=he();return M=function(r,n){return arguments.length<2?(i=e[r],t(i)?i:void 0):e[r]&&e[r][n];var i},M}function me(){if(U)return z;U=1;var e=ae();return z=e({}.isPrototypeOf)}function ge(){if(q)return B;q=1;var e=o().navigator,t=e&&e.userAgent;return B=t?String(t):""}function be(){if(V)return D;V=1;var e,t,r=o(),n=ge(),i=r.process,l=r.Deno,s=i&&i.versions||l&&l.version,a=s&&s.v8;return a&&(t=(e=a.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]),D=t}function ye(){if(G)return $;G=1;var e=be(),t=v(),r=o().String;return $=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function we(){if(Y)return X;Y=1;var e=ye();return X=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Ce(){if(K)return J;K=1;var e=ve(),t=he(),r=me(),n=we(),i=Object;return J=n?function(e){return"symbol"==typeof e}:function(n){var o=e("Symbol");return t(o)&&r(o.prototype,i(n))},J}function Se(){if(Z)return Q;Z=1;var e=String;return Q=function(t){try{return e(t)}catch(e){return"Object"}}}function xe(){if(te)return ee;te=1;var e=he(),t=Se(),r=TypeError;return ee=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function _e(){if(ne)return re;ne=1;var e=xe(),t=ce();return re=function(r,n){var i=r[n];return t(i)?void 0:e(i)},re}function Re(){if(oe)return ie;oe=1;var e=b(),t=he(),r=pe(),n=TypeError;return ie=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,Pe,Ee,We,ke,Ne,Oe,Le,Te,Ae,Fe,He,Me,je,ze,Ue,Be,qe,De,Ve,$e,Ge,Xe,Ye,Je={exports:{}};function Ke(){if(We)return Ee;We=1;var e=o(),t=Object.defineProperty;return Ee=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function Qe(){if(ke)return Je.exports;ke=1;var e=Pe?Ie:(Pe=1,Ie=!1),t=o(),r=Ke(),n="__core-js_shared__",i=Je.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"}),Je.exports}function Ze(){if(Oe)return Ne;Oe=1;var e=Qe();return Ne=function(t,r){return e[t]||(e[t]=r||{})}}function et(){if(Te)return Le;Te=1;var e=de(),t=Object;return Le=function(r){return t(e(r))}}function tt(){if(Fe)return Ae;Fe=1;var e=ae(),t=et(),r=e({}.hasOwnProperty);return Ae=Object.hasOwn||function(e,n){return r(t(e),n)},Ae}function rt(){if(Me)return He;Me=1;var e=ae(),t=0,r=Math.random(),n=e(1.1.toString);return He=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function nt(){if(ze)return je;ze=1;var e=o(),t=Ze(),r=tt(),n=rt(),i=ye(),l=we(),s=e.Symbol,a=t("wks"),u=l?s.for||s:s&&s.withoutSetter||n;return je=function(e){return r(a,e)||(a[e]=i&&r(s,e)?s[e]:u("Symbol."+e)),a[e]}}function it(){if(Be)return Ue;Be=1;var e=b(),t=pe(),r=Ce(),n=_e(),i=Re(),o=nt(),l=TypeError,s=o("toPrimitive");return Ue=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 ot(){if(De)return qe;De=1;var e=it(),t=Ce();return qe=function(r){var n=e(r,"string");return t(n)?n:n+""}}function lt(){if(Xe)return Ge;Xe=1;var e=m(),t=v(),r=function(){if($e)return Ve;$e=1;var e=o(),t=pe(),r=e.document,n=t(r)&&t(r.createElement);return Ve=function(e){return n?r.createElement(e):{}},Ve}();return Ge=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function st(){if(Ye)return p;Ye=1;var e=m(),t=b(),r=function(){if(y)return le;y=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return le.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,le}(),n=se(),i=fe(),o=ot(),l=tt(),s=lt(),a=Object.getOwnPropertyDescriptor;return p.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])},p}var at,ut,ct,dt,ft,ht,pt,vt={};function mt(){if(dt)return ct;dt=1;var e=pe(),t=String,r=TypeError;return ct=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function gt(){if(ft)return vt;ft=1;var e=m(),t=lt(),r=function(){if(ut)return at;ut=1;var e=m(),t=v();return at=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}(),n=mt(),i=ot(),o=TypeError,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a="enumerable",u="configurable",c="writable";return vt.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},vt}function bt(){if(pt)return ht;pt=1;var e=m(),t=gt(),r=se();return ht=e?function(e,n,i){return t.f(e,n,r(1,i))}:function(e,t,r){return e[t]=r,e}}var yt,wt,Ct,St,xt,_t,Rt,It,Pt,Et,Wt,kt,Nt,Ot,Lt,Tt={exports:{}};function At(){if(St)return Ct;St=1;var e=ae(),t=he(),r=Qe(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),Ct=r.inspectSource}function Ft(){if(It)return Rt;It=1;var e=Ze(),t=rt(),r=e("keys");return Rt=function(e){return r[e]||(r[e]=t(e))}}function Ht(){return Et?Pt:(Et=1,Pt={})}function Mt(){if(Nt)return Tt.exports;Nt=1;var e=ae(),t=v(),r=he(),n=tt(),i=m(),l=function(){if(wt)return yt;wt=1;var e=m(),t=tt(),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 yt={EXISTS:i,PROPER:o,CONFIGURABLE:l}}().CONFIGURABLE,s=At(),a=function(){if(kt)return Wt;kt=1;var e,t,r,n=function(){if(_t)return xt;_t=1;var e=o(),t=he(),r=e.WeakMap;return xt=t(r)&&/native code/.test(String(r))}(),i=o(),l=pe(),s=bt(),a=tt(),u=Qe(),c=Ft(),d=Ht(),f="Object already initialized",h=i.TypeError,p=i.WeakMap;if(n||u.state){var v=u.state||(u.state=new p);v.get=v.get,v.has=v.has,v.set=v.set,e=function(e,t){if(v.has(e))throw new h(f);return t.facade=e,v.set(e,t),t},t=function(e){return v.get(e)||{}},r=function(e){return v.has(e)}}else{var m=c("state");d[m]=!0,e=function(e,t){if(a(e,m))throw new h(f);return t.facade=e,s(e,m,t),t},t=function(e){return a(e,m)?e[m]:{}},r=function(e){return a(e,m)}}return Wt={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(!l(r)||(n=t(r)).type!==e)throw new h("Incompatible receiver, "+e+" required");return n}}},Wt}(),u=a.enforce,c=a.get,d=String,f=Object.defineProperty,h=e("".slice),p=e("".replace),g=e([].join),b=i&&!t(function(){return 8!==f(function(){},"length",{value:8}).length}),y=String(String).split("String"),w=Tt.exports=function(e,t,r){"Symbol("===h(d(t),0,7)&&(t="["+p(d(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!n(e,"name")||l&&e.name!==t)&&(i?f(e,"name",{value:t,configurable:!0}):e.name=t),b&&r&&n(r,"arity")&&e.length!==r.arity&&f(e,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?i&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=u(e);return n(o,"source")||(o.source=g(y,"string"==typeof t?t:"")),e};return Function.prototype.toString=w(function(){return r(this)&&c(this).source||s(this)},"toString"),Tt.exports}function jt(){if(Lt)return Ot;Lt=1;var e=he(),t=gt(),r=Mt(),n=Ke();return Ot=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},Ot}var zt,Ut,Bt,qt,Dt,Vt,$t,Gt,Xt,Yt,Jt,Kt,Qt,Zt,er,tr,rr,nr={};function ir(){if(qt)return Bt;qt=1;var e=function(){if(Ut)return zt;Ut=1;var e=Math.ceil,t=Math.floor;return zt=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)},zt}();return Bt=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function or(){if(Vt)return Dt;Vt=1;var e=ir(),t=Math.max,r=Math.min;return Dt=function(n,i){var o=e(n);return o<0?t(o+i,0):r(o,i)}}function lr(){if(Gt)return $t;Gt=1;var e=ir(),t=Math.min;return $t=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function sr(){if(Yt)return Xt;Yt=1;var e=lr();return Xt=function(t){return e(t.length)}}var ar,ur,cr,dr,fr,hr,pr,vr,mr,gr,br,yr,wr,Cr,Sr,xr,_r,Rr,Ir={};function Pr(){if(cr)return ur;cr=1;var e=ve(),t=ae(),r=function(){if(rr)return nr;rr=1;var e=function(){if(Zt)return Qt;Zt=1;var e=ae(),t=tt(),r=fe(),n=function(){if(Kt)return Jt;Kt=1;var e=fe(),t=or(),r=sr(),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 Jt={includes:n(!0),indexOf:n(!1)}}().indexOf,i=Ht(),o=e([].push);return Qt=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},Qt}(),t=(tr?er:(tr=1,er=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])).concat("length","prototype");return nr.f=Object.getOwnPropertyNames||function(r){return e(r,t)},nr}(),n=(ar||(ar=1,Ir.f=Object.getOwnPropertySymbols),Ir),i=mt(),o=t([].concat);return ur=e("Reflect","ownKeys")||function(e){var t=r.f(i(e)),l=n.f;return l?o(t,l(e)):t},ur}function Er(){if(fr)return dr;fr=1;var e=tt(),t=Pr(),r=st(),n=gt();return dr=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 Wr(){if(mr)return vr;mr=1;var e=o(),t=st().f,r=bt(),n=jt(),i=Ke(),l=Er(),s=function(){if(pr)return hr;pr=1;var e=v(),t=he(),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 hr=n}();return vr=function(o,a){var u,c,d,f,h,p=o.target,v=o.global,m=o.stat;if(u=v?e:m?e[p]||i(p,{}):e[p]&&e[p].prototype)for(c in a){if(f=a[c],d=o.dontCallGetSet?(h=t(u,c))&&h.value:u[c],!s(v?c:p+(m?".":"#")+c,o.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(o.sham||d&&d.sham)&&r(f,"sham",!0),n(u,c,f,o)}}}function kr(){if(wr)return yr;wr=1;var e=function(){if(br)return gr;br=1;var e={};return e[nt()("toStringTag")]="z",gr="[object z]"===String(e)}(),t=he(),r=ue(),n=nt()("toStringTag"),i=Object,o="Arguments"===r(function(){return arguments}());return yr=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},yr}function Nr(){if(Sr)return Cr;Sr=1;var e=kr(),t=String;return Cr=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function Or(){if(_r)return xr;_r=1;var e=Mt(),t=gt();return xr=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(){if(Rr)return i;Rr=1;var e=Wr(),t=m(),r=o(),n=ae(),l=tt(),s=he(),a=me(),u=Nr(),c=Or(),d=Er(),f=r.Symbol,h=f&&f.prototype;if(t&&s(f)&&(!("description"in h)||void 0!==f().description)){var p={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=a(h,this)?new f(e):void 0===e?f():f(e);return""===e&&(p[t]=!0),t};d(v,f),v.prototype=h,h.constructor=v;var g="Symbol(description detection)"===String(f("description detection")),b=n(h.valueOf),y=n(h.toString),w=/^Symbol\((.*)\)[^)]+$/,C=n("".replace),S=n("".slice);c(h,"description",{configurable:!0,get:function(){var e=b(this);if(l(p,e))return"";var t=y(e),r=g?S(t,7,-1):C(t,w,"$1");return""===r?void 0:r}}),e({global:!0,constructor:!0,forced:!0},{Symbol:v})}}();var Lr,Tr,Ar,Fr,Hr,Mr,jr,zr,Ur,Br,qr,Dr,Vr,$r,Gr,Xr={};function Yr(){if(Tr)return Lr;Tr=1;var e=Se(),t=TypeError;return Lr=function(r,n){if(!delete r[n])throw new t("Cannot delete property "+e(n)+" of "+e(r))},Lr}function Jr(){if(Fr)return Ar;Fr=1;var e=ae();return Ar=e([].slice)}function Kr(){if(zr)return jr;zr=1;var e=v();return jr=function(t,r){var n=[][t];return!!n&&e(function(){n.call(null,r||function(){return 1},1)})}}!function(){if(Gr)return Xr;Gr=1;var e=Wr(),t=ae(),r=xe(),n=et(),i=sr(),o=Yr(),l=Nr(),s=v(),a=function(){if(Mr)return Hr;Mr=1;var e=Jr(),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),f=c.length,h=d.length,p=0,v=0;p<f||v<h;)n[p+v]=p<f&&v<h?i(c[p],d[v])<=0?c[p++]:d[v++]:p<f?c[p++]:d[v++];return n};return Hr=r}(),u=Kr(),c=function(){if(Br)return Ur;Br=1;var e=ge().match(/firefox\/(\d+)/i);return Ur=!!e&&+e[1]}(),d=function(){if(Dr)return qr;Dr=1;var e=ge();return qr=/MSIE|Trident/.test(e)}(),f=be(),h=function(){if($r)return Vr;$r=1;var e=ge().match(/AppleWebKit\/(\d+)\./);return Vr=!!e&&+e[1]}(),p=[],m=t(p.sort),g=t(p.push),b=s(function(){p.sort(void 0)}),y=s(function(){p.sort(null)}),w=u("sort"),C=!s(function(){if(f)return f<70;if(!(c&&c>3)){if(d)return!0;if(h)return h<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)p.push({k:t+n,v:r})}for(p.sort(function(e,t){return t.v-e.v}),n=0;n<p.length;n++)t=p[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});e({target:"Array",proto:!0,forced:b||!y||!w||!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 Qr,Zr,en,tn,rn,nn={};!function(){if(rn)return nn;rn=1;var e=m(),t=Or(),r=function(){if(Zr)return Qr;Zr=1;var e=o(),t=v(),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 Qr={correct:n}}(),n=function(){if(tn)return en;tn=1;var e=mt();return en=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}}();e&&!r.correct&&(t(RegExp.prototype,"flags",{configurable:!0,get:n}),r.correct=!0)}();var on,ln,sn={};let an;ln||(ln=1,function(){if(on)return sn;on=1;var e=Wr(),t=o();e({global:!0,forced:t.globalThis!==t},{globalThis:t})}());const un=()=>{const e=document.createElement("div");e.dir="rtl",Object.assign(e.style,{direction:"rtl",fontSize:"14px",width:"1px",height:"1px",position:"absolute",top:"-1000px",overflow:"scroll"}),e.textContent="A",document.body.appendChild(e);let t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=1,0===Math.floor(e.scrollLeft)&&(t="negative")),e.parentNode.removeChild(e),t};function cn(e,t){if(void 0===t&&(t="rtl"===getComputedStyle(e).direction),!0===t&&void 0===an&&(an=un()),!t)return e.scrollLeft;switch(an){case"negative":return e.scrollLeft+e.scrollWidth-e.clientWidth;case"reverse":return e.scrollWidth-e.scrollLeft-e.clientWidth;default:return e.scrollLeft}}function dn(e,t,r){e.scrollLeft=function(e,t,r){return void 0===r&&(r="rtl"===getComputedStyle(e).direction),function(e,t,r){if(void 0===r&&(r="rtl"===getComputedStyle(e).direction),!0===r&&void 0===an&&(an=un()),!r)return t;switch(an){case"negative":return t-e.scrollWidth+e.clientWidth;case"reverse":return e.scrollWidth-t-e.clientWidth;default:return t}}(e,r?e.scrollWidth-e.clientWidth-t:t,r)}(e,t,r)}const fn=function(e,t){for(let[r,n]of Object.entries(t))e.style[r]=null==n?"":String(n)},hn=function(e,t,r,n,i){return(...o)=>{let l,s,a,u,c=o[0];if(e?(l=o[1],s=!!o[2],a=!!o[3],u=!!o[4]):(s=!!o[1],a=!!o[2],u=!!o[3]),c===window)return c.document.documentElement[`client${r}`];if(9===c.nodeType){const e=c.documentElement,t=c.body;return Math.max(t[`scroll${r}`],e[`scroll${r}`],t[`offset${r}`],e[`offset${r}`],e[`client${r}`])}{let o,d,f=!1,h=!1;if(!e&&"getBoundingClientRect"in c&&(o=c.getBoundingClientRect()[t],f=!0,h=!0),(void 0===o||u||f!==s||h!==a)&&(d=e?getComputedStyle(c,l):getComputedStyle(c)),void 0===o){let e=d[t];"auto"===e?(o=c[`client${r}`],f=!0):o=parseFloat(e),"border-box"===d.boxSizing&&(f=!0,h=!0)}if(s!==f){let e=parseFloat(d[`padding-${n}`]||0)+parseFloat(d[`padding-${i}`]||0);s?o+=e:o-=e}if(a!==h){let e=parseFloat(d[`border-${n}-width`]||0)+parseFloat(d[`border-${i}-width`]||0);a?o+=e:o-=e}return o<0&&(o=0),u&&(o+=parseFloat(d[`margin-${n}`]||0)+parseFloat(d[`margin-${i}`]||0)),o}}},pn=hn(!1,"width","Width","left","right"),vn=hn(!1,"height","Height","top","bottom"),mn=(gn="left",bn="right",(e,t,r=!1,n=!1,i=!1)=>{if(e===window)return;if(9===e.nodeType)return;const o=getComputedStyle(e);let l=!1;if("border-box"===o.boxSizing&&(l=!0),r=!!r,n=!!n,(i=!!i)&&(t-=(parseFloat(o[`margin-${gn}`])||0)+(parseFloat(o[`margin-${bn}`])||0)),r!==l){let e=parseFloat(o[`padding-${gn}`]||0)+parseFloat(o[`padding-${bn}`]||0);r?t-=e:t+=e}if(n!==l){let e=(parseFloat(o[`border-${gn}-width`])||0)+(parseFloat(o[`border-${bn}-width`])||0);n?t-=e:t+=e}t<0&&(t=0),e.style.width=t+"px"});var gn,bn;const yn=e=>{if(!e.getClientRects().length)return{top:0,left:0};let t=e.getBoundingClientRect(),r=e.ownerDocument.defaultView;return{top:t.top+r.pageYOffset,left:t.left+r.pageXOffset}};let wn=null;const Cn=function(e,t){if(null===wn&&(()=>{try{document.createElement("div").querySelector(":scope > div"),wn=!0}catch(e){wn=!1}})(),!0===wn)return e.querySelectorAll(t.replace(/((?:^|,)\s*)/g,"$1:scope "));{let r=e.id;const n="ID_"+Date.now();e.id=n,t=t.replace(/((?:^|,)\s*)/g,"$1#"+n);try{return e.querySelectorAll(t)}finally{this.id=r}}};class Sn{constructor(){this._events=[]}add(e,t,r,n){let i=t.split("."),o=i[0],l=i[1];e.addEventListener(o,r,n||!1);let s=!0===n||"object"==typeof n&&!0===n.capture;return this._events.push({el:e,name:o,namespace:l,handler:r,useCapture:s}),this}remove(e,t,r,n){let i=t?t.split("."):"",o=i[0],l=i[1],s=!0===n||"object"==typeof n&&!0===n.capture,a=[],u=[];if(e||o||l||r||void 0!==n)for(let t of this._events)e&&t.el!==e||o&&t.name!==o||l&&t.namespace!==l||r&&t.handler!==r||void 0!==n&&t.useCapture!==s?a.push(t):u.push(t);else u=this._events;this._events=a;for(let e of u)e.el.removeEventListener(e.name,e.handler,e.useCapture);return this}}const xn=Object.prototype.hasOwnProperty,_n=void 0!==Element.prototype.insertAdjacentElement;function Rn(e,t,r){t?!1===_n||e instanceof DocumentFragment?r.insertBefore(e,t):t.insertAdjacentElement("beforebegin",e):r.appendChild(e)}function In(e,t,r,n){return e.parentNode!==n?(t||(t=document.createDocumentFragment()),t.appendChild(e)):(t&&t.childNodes.length>0&&(Rn(t,r,n),t=null),e.nextSibling!==r&&Rn(e,r,n)),t}class Pn{constructor(e){var t;const r=this._p={list:e.list||null,hookScrollEvent:void 0===e.hookScrollEvent||!!e.hookScrollEvent,count:e.count||0,virtual:void 0===e.virtual||!!e.virtual,userItemsParent:e.itemsParent||null,setVirtualWrapperWidth:null===(t=e.autoVirtualWrapperWidth)||void 0===t||t,estimatedItemHeight:20,buffer:5,itemHeightEstimatorFn:null,itemElementCreatorFn:kn,onItemRender:null,onItemUnrender:null,onScrollHeightChange:null,virtualWrapper:null,currentItemsParent:null,cachedItemHeights:[],cachedItemEstimatedHeights:[],cachedItemPositions:[],itemPositionsNeedsUpdate:0,boundRender:this.render.bind(this),existingEls:[]};r.currentItemsParent=r.userItemsParent||r.list,this._hookEvents(),"number"==typeof e.count&&this.setCount(e.count),"boolean"==typeof e.virtual&&this.setVirtual(e.virtual),"number"==typeof e.estimatedItemHeight&&this.setEstimatedItemHeight(e.estimatedItemHeight),"number"==typeof e.buffer&&this.setBuffer(e.buffer),"function"==typeof e.itemHeightEstimatorFn&&this.setItemHeightEstimatorFn(e.itemHeightEstimatorFn),"function"==typeof e.itemElementCreatorFn&&this.setItemElementCreatorFn(e.itemElementCreatorFn),"function"==typeof e.onItemRender&&this.setOnItemRender(e.onItemRender),"function"==typeof e.onItemUnrender&&this.setOnItemUnrender(e.onItemUnrender),"function"==typeof e.onScrollHeightChange&&this.setOnScrollHeightChange(e.onScrollHeightChange)}destroy(){this._unhookEvents().invalidate()._destroyElements()}setHookScrollEvent(e){const t=this._p;return e=void 0===e||!!e,t.hookScrollEvent===e||(t.hookScrollEvent=e,this._unhookEvents()._hookEvents()),this}isHookScrollEventEnabled(){return this._p.hookScrollEvent}setCount(e){return this._p.count=e,this.invalidate()}getCount(){return this._p.count}setVirtual(e){const t=this._p;return e=void 0===e||!!e,t.virtual===e||(t.virtual=e,this._hookEvents().invalidate()._destroyElements()),this}isVirtual(){return this._p.virtual}setEstimatedItemHeight(e){return this._p.estimatedItemHeight=Math.abs(("number"==typeof e?e:Number(e))||20),this}getEstimatedItemHeight(){return this._p.estimatedItemHeight}setAutoVirtualWrapperWidth(e){const t=this._p;return t.autoVirtualWrapperWidth=void 0===e||!!e,t.virtualWrapper&&t.autoVirtualWrapperWidth!==t.virtualWrapperWidthWasSet&&(t.virtualWrapper.style.width=t.autoVirtualWrapperWidth?"100%":"",t.virtualWrapperWidthWasSet=t.autoVirtualWrapperWidth),this}isAutoVirtualWrapperWidth(){return this._p.autoVirtualWrapperWidth}setBuffer(e){return this._p.buffer=Math.abs("number"==typeof e?e:Number(e)||5),this}getBuffer(){return this._p.buffer}setItemHeightEstimatorFn(e){return this._p.itemHeightEstimatorFn=e,this}setItemElementCreatorFn(e){return this._p.itemElementCreatorFn=e||kn,this}setOnItemRender(e){return this._p.onItemRender=e,this}setOnItemUnrender(e){return this._p.onItemUnrender=e,this}setOnScrollHeightChange(e){return this._p.onScrollHeightChange=e,this}estimateFullHeight(){const e=this._p;if(0===e.count)return 0;if(e.virtual)return this._calculateItemPosition(e.count)||0;{const t=e.existingEls;if(e.count===t.length){let e=t[0].getBoundingClientRect(),r=t[t.length-1].getBoundingClientRect();return r.top-e.top+r.height}return this._calculateItemPosition(e.count)||0}}invalidatePositions(){const e=this._p;return e.itemPositionsNeedsUpdate=0,e.cachedItemHeights=[],e.cachedItemEstimatedHeights=[],e.cachedItemPositions=[],e.cachedItemHeights.length=e.count,e.cachedItemEstimatedHeights.length=e.count,e.cachedItemPositions.length=e.count,this}invalidate(){const e=this._p;this.invalidatePositions(),e.virtual||this._destroyElements();for(let t of e.existingEls)delete t[En];return this}render(){const e=this._p,t=e.list,r=e.virtual;let n=e.virtualWrapper,i=e.currentItemsParent,o=t.scrollTop,l=o+t.clientHeight,s=e.count,a=e.buffer,u=e.onItemUnrender,c=e.existingEls,d=c.length;if(r){const r=t.clientWidth;n||(n=e.virtualWrapper=e.userItemsParent,n||(n=e.virtualWrapper=document.createElement("div"),t.appendChild(n)),this._resetCurrentItemsParent(),i=e.currentItemsParent,e.autoVirtualWrapperWidth?(n.style.width="100%",e.virtualWrapperWidthWasSet=!0):e.virtualWrapperWidthWasSet=!1);for(let e=0;e<d;e++)c[e][Wn]=!0;this._calculateItemPosition(e.count-1);let u=this._getExistingElsRange(),h=Nn(e.cachedItemPositions,o),p=Math.max(0,h-a),v=p,m=this._calculateItemPosition(v),g=a,b=Math.max(v,Nn(e.cachedItemPositions,l-1)+1+a),y=[],w=null,C=n.childNodes[0];const S=function(e){let t;return-1!==u.firstIndex&&e>=u.firstIndex&&e<=u.lastIndex&&(t=c.find(t=>t[En]===e&&!0===t[Wn])),void 0===t&&(t=(u.firstIndex<p||u.firstValidArrayIndex>0?c.find(e=>(e[En]<p||!1===xn.call(e,En))&&!0===e[Wn]):void 0)||Ln(c,e=>!0===e[Wn])),void 0!==t&&delete t[Wn],t};for(;v<s&&v<b;v++){let e=S(v);C&&C===e&&(C=C.nextSibling);const t=this._dequeueElementForIndex(e,v,C,!0);y.push([t,v]),w=In(t,w,C,i)}w&&w.childNodes.length>0&&Rn(w,C,i);for(let t of y){const r=t[1];this._insertItemAndFlow(t[0],r,!1),m=e.cachedItemPositions[r]+e.cachedItemHeights[r]}if(m<l)for(;(m<l||g-- >0)&&v<s;v++){let t=S(v);C&&C===t&&(C=C.nextSibling),this._dequeueElementForIndex(t,v,C,!1),m=e.cachedItemPositions[v]+e.cachedItemHeights[v]}let x=this.estimateFullHeight(),_=x+"px";var f;n.style.height!==_&&(e.virtualWrapper.style.height=_,null===(f=e.onScrollHeightChange)||void 0===f||f.call(e,x)),r!==t.clientWidth&&this.render()}else if(s!==c.length){for(let e=0;e<d;e++)c[e][Wn]=!0;let e=i.childNodes[0],t=null;for(let r=0;r<s;r++){let n=c.find(e=>e[En]===r&&!0===e[Wn]);void 0!==n&&delete n[Wn],e&&e===n&&(e=e.nextSibling),t=In(this._dequeueElementForIndex(n,r,e,!0),t,e,i)}t&&t.childNodes.length>0&&Rn(t,e,i)}d=c.length;for(let e=0;e<d;e++){const t=c[e];if(!0!==t[Wn])continue;let r=t.parentNode;r&&r.removeChild(t),u&&void 0!==t[En]&&u(t),c.splice(e,1),e--,d--}}addItemsAt(e,t=-1){if("number"!=typeof e||e<=0)return this;const r=this._p;if((t<0||t>=r.count)&&(t=r.count),r.count+=e,r.virtual)t>=0&&t<r.count&&this._invalidateItemIndexesAt(t,-1);else{let n=r.existingEls;if(n.length!==r.count-e)return this;let i=this._getExistingElsRange();if(-1===i.firstValidArrayIndex)return this;const o=r.currentItemsParent;let l=i.firstValidArrayIndex+t-i.firstIndex;this._pushItemIndexesAt(t,e);let s=n[l-1]?n[l-1].nextSibling:n[0],a=null;for(let r=t,n=t+e;r<n;r++)a=In(this._dequeueElementForIndex(void 0,r,s,!0),a,s,o);a&&a.childNodes.length>0&&Rn(a,s,o)}return this}removeItemsAt(e,t){const r=this._p;if("number"!=typeof e||"number"!=typeof t||e<=0||t<0||t>=r.count)return this;if(r.count-=Math.min(e,r.count-t),r.virtual)this._invalidateItemIndexesAt(t,-1);else{let n=r.existingEls;if(n.length!==r.count+e)return this;let i=this._getExistingElsRange();if(-1===i.firstValidArrayIndex)return this;this._pushItemIndexesAt(t+e,-e);const o=r.onItemUnrender;let l=i.firstValidArrayIndex+t-i.firstIndex;if(l<n.length){for(let t=0;t<e;t++){let e=n[l+t],r=e.parentNode;r&&r.removeChild(e),o&&void 0!==e[En]&&o(e)}n.splice(l,e)}}return this}refreshItemAt(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return this;if(t.virtual)this._invalidateItemIndexesAt(e,1);else{let r=t.existingEls;if(r.length!==t.count)return this;let n=this._getExistingElsRange();if(e>=n.firstIndex&&e<=n.lastIndex){let t=r[n.firstValidArrayIndex+e-n.firstIndex];delete t[En],this._dequeueElementForIndex(t,e,t.nextSibling,!1)}}return this}isItemRendered(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return!1;let r=this._getExistingElsRange();return e>=r.firstIndex&&e<=r.lastIndex}getItemElementAt(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return;let r=t.existingEls,n=this._getExistingElsRange();return e>=n.firstIndex&&e<=n.lastIndex?r[n.firstValidArrayIndex+e-n.firstIndex]:void 0}getItemPosition(e){const t=this._p;if(!("number"!=typeof e||e<0||e>=t.count)){if(t.virtual)return this._calculateItemPosition(e);{let r=this.getItemElementAt(e);if(void 0===r)return;const n=t.list;return yn(r).top-yn(n).top+n.scrollTop}}}getItemIndexFromElement(e){return e?e[En]:void 0}getItemSize(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return;let r=t.cachedItemHeights[e-1];return void 0===r&&(r=t.itemHeightEstimatorFn?t.itemHeightEstimatorFn(e-1):null,"number"!=typeof r&&(r=t.estimatedItemHeight),t.cachedItemEstimatedHeights[e-1]=r),r}getVisibleItemCount(){const e=this._p,t=e.list;let r,n,i=t.scrollTop,o=t.clientHeight;if(e.virtual)r=Nn(e.cachedItemPositions,i),n=Nn(e.cachedItemPositions,i+o,r);else{const t=e=>{let t=this.getItemPosition(e);return void 0===t&&(t=1/0),t};r=On(e.count,t,i),n=On(e.count,t,i+o,r)}return this.getItemPosition(n)===i+o&&n--,n-r+1}createGhostItemElement(e,t,r){const n=this._p;let i=this._dequeueElementForIndex(null,e,!1,!0);try{t&&n.currentItemsParent.appendChild(i),r(i)}finally{if(t){let e=i.parentNode;e&&e.removeChild(i)}n.onItemUnrender&&n.onItemUnrender(i)}}_resetCurrentItemsParent(){var e,t;const r=this._p;r.currentItemsParent=null!==(e=null!==(t=r.virtualWrapper)&&void 0!==t?t:r.userItemsParent)&&void 0!==e?e:r.list}_destroyElements(){const e=this._p,t=e.onItemUnrender,r=e.existingEls;for(let e=0;e<r.length;e++){const n=r[e];let i=n.parentNode;i&&i.removeChild(n),t&&void 0!==n[En]&&t(n)}return r.length=0,e.virtualWrapper&&(e.virtualWrapper!==e.userItemsParent&&e.virtualWrapper.parentNode&&e.virtualWrapper.parentNode.removeChild(e.virtualWrapper),e.virtualWrapper=null,this._resetCurrentItemsParent()),this}_invalidateItemIndexesAt(e,t){const r=this._p;this._setItemPositionsNeedsUpdate(e);let n=r.existingEls,i=n.length,o=this._getExistingElsRange();if(-1!==o.firstValidArrayIndex&&(-1===t&&(t=n.length),e>=o.firstIndex&&e<=o.lastIndex))for(let r=o.firstValidArrayIndex+e-o.firstIndex,l=0;r<i&&l<t;r++,l++)delete n[r][En]}_pushItemIndexesAt(e,t){let r=this._p.existingEls,n=r.length,i=this._getExistingElsRange();if(-1!==i.firstValidArrayIndex&&e>=i.firstIndex&&e<=i.lastIndex)for(let o=i.firstValidArrayIndex+e-i.firstIndex;o<n;o++)r[o][En]+=t}_hookEvents(){const e=this._p;return this._unhookEvents(),e.virtual&&e.hookScrollEvent&&e.list&&e.list.addEventListener("scroll",e.boundRender),this}_unhookEvents(){const e=this._p;return e.list&&e.list.removeEventListener("scroll",e.boundRender),this}_setItemPositionsNeedsUpdate(e){const t=this._p;e<t.itemPositionsNeedsUpdate&&(t.itemPositionsNeedsUpdate=e)}_calculateItemPosition(e){const t=this._p,r=t.cachedItemPositions;if(e>=t.itemPositionsNeedsUpdate){const n=t.count,i=t.cachedItemHeights,o=t.cachedItemEstimatedHeights,l=t.estimatedItemHeight,s=t.itemHeightEstimatorFn;i.length!==n&&(i.length=n,o.length=n,r.length=n);let a=t.itemPositionsNeedsUpdate,u=Math.min(e,n),c=0;a>0&&(c=r[a-1]);for(let e=a;e<=u;e++){if(0===e){r[e]=c;continue}const t=e-1;let n=i[t];void 0===n&&(n=s?s(t):null,"number"!=typeof n&&(n=l),o[t]=n),c+=n,r[e]=c}t.itemPositionsNeedsUpdate=u+1}if(e>0&&e===t.count){let n=t.cachedItemHeights[e-1];return void 0===n&&(n=t.itemHeightEstimatorFn?t.itemHeightEstimatorFn(e-1):null,"number"!=typeof n&&(n=t.estimatedItemHeight),t.cachedItemEstimatedHeights[e-1]=n),r[e-1]+n}return r[e]}_dequeueElementForIndex(e,t,r,n){const i=this._p,o=i.virtualWrapper;i.currentItemsParent;const l=i.existingEls,s=i.onItemRender,a=i.onItemUnrender,u=!e,c=u||t!==e[En];if(e?a&&c&&a(e):(e=i.itemElementCreatorFn(),o&&!1!==r&&(e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.right="0")),c&&(e.innerHTML="",s&&s(e,t)),!1!==r){if(r instanceof Node||(r=null),!u){let t=l.indexOf(e);-1!==t&&l.splice(t,1)}let i=r?l.indexOf(r):-1;-1===i?l.push(e):l.splice(i,0,e),n||this._insertItemAndFlow(e,t,r)}return e[En]=t,e}_insertItemAndFlow(e,t,r){const n=this._p,i=n.virtualWrapper,o=n.currentItemsParent;if(!1!==r&&(r instanceof Node||(r=null),e.parentNode===o&&e.nextSibling===r||Rn(e,r,o)),i){let r=e.getBoundingClientRect().height,i=n.cachedItemHeights[t];i!==r&&(n.cachedItemHeights[t]=r),(void 0!==i&&r!==i||void 0===i&&r!==n.cachedItemEstimatedHeights[t])&&this._setItemPositionsNeedsUpdate(t+1);let o=this._calculateItemPosition(t);const l=An();!1===l?e.style.top=`${o}px`:e.style[l]=`translateY(${o}px)`}}_getExistingElsRange(){const e=this._p.existingEls;let t=-1,r=-1;for(let r=0,n=e.length;r<n;r++)if(!1!==xn.call(e[r],En)){t=r;break}for(let t=e.length-1;t>=0;t--)if(!1!==xn.call(e[t],En)){r=t;break}return{firstValidArrayIndex:t,lastValidArrayIndex:r,firstIndex:-1!==t?e[t][En]:-1,lastIndex:-1!==r?e[r][En]:-1}}}const En=Symbol("index"),Wn=Symbol("reuse"),kn=()=>document.createElement("li"),Nn=(e,t,r=0,n=-1)=>{let i=e.length;if(n<0&&(n+=i),n<=r)return n;for(;r<=n;){let o=Math.floor(r+(n-r)/2),l=e[o];if(l===t||l<=t&&o<i&&e[o+1]>t){for(;o>0&&e[o-1]===l;)o--;return o}l<t?r=o+1:n=o-1}return-1===n?0:i-1},On=(e,t,r,n=0,i=-1)=>{if(i<0&&(i+=e),i<=n)return i;for(;n<=i;){let o=Math.floor(n+(i-n)/2),l=t(o);if(l===r||l<=r&&o<e&&t(o+1)>r){for(;o>0&&t(o-1)===l;)o--;return o}l<r?n=o+1:i=o-1}return-1===i?0:t(e-1)},Ln=(e,t)=>{for(let r=e.length-1;r>=0;r--)if(t(e[r]))return e[r]};let Tn=null;const An=()=>{if(null===Tn){let e=["transform","WebkitTransform","MozTransform","OTransform","msTransform"],t=document.createElement("div");Tn=!1;for(let r of e)if(t&&void 0!==t.style[r]){Tn=r;break}}return Tn};var Fn,Hn,Mn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},jn={};function zn(){if(Hn)return Fn;Hn=1;var e=function(e){return e&&e.Math===Math&&e};return Fn=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof Mn&&Mn)||e("object"==typeof Fn&&Fn)||function(){return this}()||Function("return this")()}var Un,Bn,qn,Dn,Vn,$n,Gn,Xn,Yn={};function Jn(){return Bn?Un:(Bn=1,Un=function(e){try{return!!e()}catch(e){return!0}})}function Kn(){if(Dn)return qn;Dn=1;var e=Jn();return qn=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function Qn(){if($n)return Vn;$n=1;var e=Jn();return Vn=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function Zn(){if(Xn)return Gn;Xn=1;var e=Qn(),t=Function.prototype.call;return Gn=e?t.bind(t):function(){return t.apply(t,arguments)},Gn}var ei,ti,ri,ni,ii,oi,li,si,ai,ui,ci,di,fi,hi,pi,vi,mi,gi,bi,yi,wi,Ci,Si,xi,_i,Ri,Ii,Pi,Ei,Wi,ki,Ni,Oi,Li,Ti,Ai,Fi,Hi,Mi,ji,zi,Ui={};function Bi(){if(ei)return Ui;ei=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return Ui.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,Ui}function qi(){return ri?ti:(ri=1,ti=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Di(){if(ii)return ni;ii=1;var e=Qn(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return ni=e?n:function(e){return function(){return r.apply(e,arguments)}},ni}function Vi(){if(li)return oi;li=1;var e=Di(),t=e({}.toString),r=e("".slice);return oi=function(e){return r(t(e),8,-1)}}function $i(){if(ai)return si;ai=1;var e=Di(),t=Jn(),r=Vi(),n=Object,i=e("".split);return si=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?i(e,""):n(e)}:n}function Gi(){return ci?ui:(ci=1,ui=function(e){return null==e})}function Xi(){if(fi)return di;fi=1;var e=Gi(),t=TypeError;return di=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function Yi(){if(pi)return hi;pi=1;var e=$i(),t=Xi();return hi=function(r){return e(t(r))}}function Ji(){if(mi)return vi;mi=1;var e="object"==typeof document&&document.all;return vi=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function Ki(){if(bi)return gi;bi=1;var e=Ji();return gi=function(t){return"object"==typeof t?null!==t:e(t)}}function Qi(){if(wi)return yi;wi=1;var e=zn(),t=Ji();return yi=function(r,n){return arguments.length<2?(i=e[r],t(i)?i:void 0):e[r]&&e[r][n];var i},yi}function Zi(){if(Si)return Ci;Si=1;var e=Di();return Ci=e({}.isPrototypeOf)}function eo(){if(_i)return xi;_i=1;var e=zn().navigator,t=e&&e.userAgent;return xi=t?String(t):""}function to(){if(Ii)return Ri;Ii=1;var e,t,r=zn(),n=eo(),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]),Ri=t}function ro(){if(Ei)return Pi;Ei=1;var e=to(),t=Jn(),r=zn().String;return Pi=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function no(){if(ki)return Wi;ki=1;var e=ro();return Wi=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function io(){if(Oi)return Ni;Oi=1;var e=Qi(),t=Ji(),r=Zi(),n=no(),i=Object;return Ni=n?function(e){return"symbol"==typeof e}:function(n){var o=e("Symbol");return t(o)&&r(o.prototype,i(n))}}function oo(){if(Ti)return Li;Ti=1;var e=String;return Li=function(t){try{return e(t)}catch(e){return"Object"}}}function lo(){if(Fi)return Ai;Fi=1;var e=Ji(),t=oo(),r=TypeError;return Ai=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function so(){if(Mi)return Hi;Mi=1;var e=lo(),t=Gi();return Hi=function(r,n){var i=r[n];return t(i)?void 0:e(i)}}var ao,uo,co,fo,ho,po,vo,mo,go,bo,yo,wo,Co,So,xo,_o,Ro,Io,Po,Eo,Wo,ko,No,Oo,Lo={exports:{}};function To(){return uo?ao:(uo=1,ao=!1)}function Ao(){if(fo)return co;fo=1;var e=zn(),t=Object.defineProperty;return co=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function Fo(){if(ho)return Lo.exports;ho=1;var e=To(),t=zn(),r=Ao(),n="__core-js_shared__",i=Lo.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"}),Lo.exports}function Ho(){if(vo)return po;vo=1;var e=Fo();return po=function(t,r){return e[t]||(e[t]=r||{})}}function Mo(){if(go)return mo;go=1;var e=Xi(),t=Object;return mo=function(r){return t(e(r))}}function jo(){if(yo)return bo;yo=1;var e=Di(),t=Mo(),r=e({}.hasOwnProperty);return bo=Object.hasOwn||function(e,n){return r(t(e),n)}}function zo(){if(Co)return wo;Co=1;var e=Di(),t=0,r=Math.random(),n=e(1.1.toString);return wo=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function Uo(){if(xo)return So;xo=1;var e=zn(),t=Ho(),r=jo(),n=zo(),i=ro(),o=no(),l=e.Symbol,s=t("wks"),a=o?l.for||l:l&&l.withoutSetter||n;return So=function(e){return r(s,e)||(s[e]=i&&r(l,e)?l[e]:a("Symbol."+e)),s[e]}}function Bo(){if(Po)return Io;Po=1;var e=function(){if(Ro)return _o;Ro=1;var e=Zn(),t=Ki(),r=io(),n=so(),i=function(){if(zi)return ji;zi=1;var e=Zn(),t=Ji(),r=Ki(),n=TypeError;return ji=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")}}(),o=Uo(),l=TypeError,s=o("toPrimitive");return _o=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)}}(),t=io();return Io=function(r){var n=e(r,"string");return t(n)?n:n+""}}function qo(){if(Wo)return Eo;Wo=1;var e=zn(),t=Ki(),r=e.document,n=t(r)&&t(r.createElement);return Eo=function(e){return n?r.createElement(e):{}}}function Do(){if(No)return ko;No=1;var e=Kn(),t=Jn(),r=qo();return ko=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function Vo(){if(Oo)return Yn;Oo=1;var e=Kn(),t=Zn(),r=Bi(),n=qi(),i=Yi(),o=Bo(),l=jo(),s=Do(),a=Object.getOwnPropertyDescriptor;return Yn.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])},Yn}var $o,Go,Xo,Yo,Jo,Ko,Qo,Zo={};function el(){if(Go)return $o;Go=1;var e=Kn(),t=Jn();return $o=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function tl(){if(Yo)return Xo;Yo=1;var e=Ki(),t=String,r=TypeError;return Xo=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function rl(){if(Jo)return Zo;Jo=1;var e=Kn(),t=Do(),r=el(),n=tl(),i=Bo(),o=TypeError,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a="enumerable",u="configurable",c="writable";return Zo.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},Zo}function nl(){if(Qo)return Ko;Qo=1;var e=Kn(),t=rl(),r=qi();return Ko=e?function(e,n,i){return t.f(e,n,r(1,i))}:function(e,t,r){return e[t]=r,e}}var il,ol,ll,sl,al,ul,cl,dl,fl,hl,pl,vl,ml,gl,bl,yl={exports:{}};function wl(){if(ol)return il;ol=1;var e=Kn(),t=jo(),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 il={EXISTS:i,PROPER:o,CONFIGURABLE:l}}function Cl(){if(sl)return ll;sl=1;var e=Di(),t=Ji(),r=Fo(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),ll=r.inspectSource}function Sl(){if(dl)return cl;dl=1;var e=Ho(),t=zo(),r=e("keys");return cl=function(e){return r[e]||(r[e]=t(e))}}function xl(){return hl?fl:(hl=1,fl={})}function _l(){if(vl)return pl;vl=1;var e,t,r,n=function(){if(ul)return al;ul=1;var e=zn(),t=Ji(),r=e.WeakMap;return al=t(r)&&/native code/.test(String(r))}(),i=zn(),o=Ki(),l=nl(),s=jo(),a=Fo(),u=Sl(),c=xl(),d="Object already initialized",f=i.TypeError,h=i.WeakMap;if(n||a.state){var p=a.state||(a.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new f(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 v=u("state");c[v]=!0,e=function(e,t){if(s(e,v))throw new f(d);return t.facade=e,l(e,v,t),t},t=function(e){return s(e,v)?e[v]:{}},r=function(e){return s(e,v)}}return pl={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!o(r)||(n=t(r)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}}function Rl(){if(ml)return yl.exports;ml=1;var e=Di(),t=Jn(),r=Ji(),n=jo(),i=Kn(),o=wl().CONFIGURABLE,l=Cl(),s=_l(),a=s.enforce,u=s.get,c=String,d=Object.defineProperty,f=e("".slice),h=e("".replace),p=e([].join),v=i&&!t(function(){return 8!==d(function(){},"length",{value:8}).length}),m=String(String).split("String"),g=yl.exports=function(e,t,r){"Symbol("===f(c(t),0,7)&&(t="["+h(c(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!n(e,"name")||o&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&n(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var l=a(e);return n(l,"source")||(l.source=p(m,"string"==typeof t?t:"")),e};return Function.prototype.toString=g(function(){return r(this)&&u(this).source||l(this)},"toString"),yl.exports}function Il(){if(bl)return gl;bl=1;var e=Ji(),t=rl(),r=Rl(),n=Ao();return gl=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 Pl,El,Wl,kl,Nl,Ol,Ll,Tl,Al,Fl,Hl,Ml,jl,zl,Ul,Bl,ql,Dl={};function Vl(){if(kl)return Wl;kl=1;var e=function(){if(El)return Pl;El=1;var e=Math.ceil,t=Math.floor;return Pl=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)}}();return Wl=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function $l(){if(Ol)return Nl;Ol=1;var e=Vl(),t=Math.max,r=Math.min;return Nl=function(n,i){var o=e(n);return o<0?t(o+i,0):r(o,i)}}function Gl(){if(Tl)return Ll;Tl=1;var e=Vl(),t=Math.min;return Ll=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function Xl(){if(Fl)return Al;Fl=1;var e=Gl();return Al=function(t){return e(t.length)}}function Yl(){if(zl)return jl;zl=1;var e=Di(),t=jo(),r=Yi(),n=function(){if(Ml)return Hl;Ml=1;var e=Yi(),t=$l(),r=Xl(),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 Hl={includes:n(!0),indexOf:n(!1)}}().indexOf,i=xl(),o=e([].push);return jl=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 Jl(){return Bl?Ul:(Bl=1,Ul=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Kl,Ql,Zl,es,ts,rs,ns,is,os,ls,ss,as,us,cs,ds,fs,hs,ps,vs,ms,gs,bs,ys,ws,Cs,Ss,xs,_s,Rs,Is,Ps={};function Es(){return Kl||(Kl=1,Ps.f=Object.getOwnPropertySymbols),Ps}function Ws(){if(ts)return es;ts=1;var e=jo(),t=function(){if(Zl)return Ql;Zl=1;var e=Qi(),t=Di(),r=function(){if(ql)return Dl;ql=1;var e=Yl(),t=Jl().concat("length","prototype");return Dl.f=Object.getOwnPropertyNames||function(r){return e(r,t)},Dl}(),n=Es(),i=tl(),o=t([].concat);return Ql=e("Reflect","ownKeys")||function(e){var t=r.f(i(e)),l=n.f;return l?o(t,l(e)):t}}(),r=Vo(),n=rl();return es=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 ks(){if(os)return is;os=1;var e=zn(),t=Vo().f,r=nl(),n=Il(),i=Ao(),o=Ws(),l=function(){if(ns)return rs;ns=1;var e=Jn(),t=Ji(),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 rs=n}();return is=function(s,a){var u,c,d,f,h,p=s.target,v=s.global,m=s.stat;if(u=v?e:m?e[p]||i(p,{}):e[p]&&e[p].prototype)for(c in a){if(f=a[c],d=s.dontCallGetSet?(h=t(u,c))&&h.value:u[c],!l(v?c:p+(m?".":"#")+c,s.forced)&&void 0!==d){if(typeof f==typeof d)continue;o(f,d)}(s.sham||d&&d.sham)&&r(f,"sham",!0),n(u,c,f,s)}}}function Ns(){if(ds)return cs;ds=1;var e=function(){if(us)return as;us=1;var e={};return e[Uo()("toStringTag")]="z",as="[object z]"===String(e)}(),t=Ji(),r=Vi(),n=Uo()("toStringTag"),i=Object,o="Arguments"===r(function(){return arguments}());return cs=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 Os(){if(hs)return fs;hs=1;var e=Ns(),t=String;return fs=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function Ls(){if(vs)return ps;vs=1;var e=Di();return ps=e([].slice)}function Ts(){if(gs)return ms;gs=1;var e=Ls(),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),f=c.length,h=d.length,p=0,v=0;p<f||v<h;)n[p+v]=p<f&&v<h?i(c[p],d[v])<=0?c[p++]:d[v++]:p<f?c[p++]:d[v++];return n};return ms=r}!function(){if(Is)return jn;Is=1;var e=ks(),t=Di(),r=lo(),n=Mo(),i=Xl(),o=function(){if(ss)return ls;ss=1;var e=oo(),t=TypeError;return ls=function(r,n){if(!delete r[n])throw new t("Cannot delete property "+e(n)+" of "+e(r))}}(),l=Os(),s=Jn(),a=Ts(),u=function(){if(ys)return bs;ys=1;var e=Jn();return bs=function(t,r){var n=[][t];return!!n&&e(function(){n.call(null,r||function(){return 1},1)})}}(),c=function(){if(Cs)return ws;Cs=1;var e=eo().match(/firefox\/(\d+)/i);return ws=!!e&&+e[1]}(),d=function(){if(xs)return Ss;xs=1;var e=eo();return Ss=/MSIE|Trident/.test(e)}(),f=to(),h=function(){if(Rs)return _s;Rs=1;var e=eo().match(/AppleWebKit\/(\d+)\./);return _s=!!e&&+e[1]}(),p=[],v=t(p.sort),m=t(p.push),g=s(function(){p.sort(void 0)}),b=s(function(){p.sort(null)}),y=u("sort"),w=!s(function(){if(f)return f<70;if(!(c&&c>3)){if(d)return!0;if(h)return h<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:g||!b||!y||!w},{sort:function(e){void 0!==e&&r(e);var t=n(this);if(w)return void 0===e?v(t):v(t,e);var s,u,c=[],d=i(t);for(u=0;u<d;u++)u in t&&m(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 As,Fs,Hs,Ms,js,zs,Us,Bs,qs,Ds,Vs,$s,Gs,Xs,Ys,Js,Ks,Qs,Zs,ea,ta,ra,na,ia,oa,la,sa,aa,ua,ca,da,fa,ha,pa,va,ma,ga,ba,ya,wa,Ca={},Sa={};function xa(){if(zs)return js;zs=1;var e=Yl(),t=Jl();return js=Object.keys||function(r){return e(r,t)}}function _a(){if(Vs)return Ds;Vs=1;var e,t=tl(),r=function(){if(Us)return Sa;Us=1;var e=Kn(),t=el(),r=rl(),n=tl(),i=Yi(),o=xa();return Sa.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},Sa}(),n=Jl(),i=xl(),o=function(){if(qs)return Bs;qs=1;var e=Qi();return Bs=e("document","documentElement")}(),l=qo(),s=Sl(),a="prototype",u="script",c=s("IE_PROTO"),d=function(){},f=function(e){return"<"+u+">"+e+"</"+u+">"},h=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,r,i;p="undefined"!=typeof document?document.domain&&e?h(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(f("document.F=Object")),t.close(),t.F):h(e);for(var s=n.length;s--;)delete p[a][n[s]];return p()};return i[c]=!0,Ds=Object.create||function(e,n){var i;return null!==e?(d[a]=t(e),i=new d,d[a]=null,i[c]=e):i=p(),void 0===n?i:r.f(i,n)}}function Ra(){return Ys?Xs:(Ys=1,Xs={})}function Ia(){if(Zs)return Qs;Zs=1;var e=jo(),t=Ji(),r=Mo(),n=Sl(),i=function(){if(Ks)return Js;Ks=1;var e=Jn();return Js=!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 Qs=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 Pa(){if(ta)return ea;ta=1;var e,t,r,n=Jn(),i=Ji(),o=Ki(),l=_a(),s=Ia(),a=Il(),u=Uo(),c=To(),d=u("iterator"),f=!1;return[].keys&&("next"in(r=[].keys())?(t=s(s(r)))!==Object.prototype&&(e=t):f=!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}),ea={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:f}}function Ea(){if(na)return ra;na=1;var e=rl().f,t=jo(),r=Uo()("toStringTag");return ra=function(n,i,o){n&&!o&&(n=n.prototype),n&&!t(n,r)&&e(n,r,{configurable:!0,value:i})}}function Wa(){if(oa)return ia;oa=1;var e=Pa().IteratorPrototype,t=_a(),r=qi(),n=Ea(),i=Ra(),o=function(){return this};return ia=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 ka(){if(va)return pa;va=1;var e=ks(),t=Zn(),r=To(),n=wl(),i=Ji(),o=Wa(),l=Ia(),s=function(){if(ha)return fa;ha=1;var e=function(){if(sa)return la;sa=1;var e=Di(),t=lo();return la=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch(e){}}}(),t=Ki(),r=Xi(),n=function(){if(da)return ca;da=1;var e=function(){if(ua)return aa;ua=1;var e=Ki();return aa=function(t){return e(t)||null===t}}(),t=String,r=TypeError;return ca=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}();return fa=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=Ea(),u=nl(),c=Il(),d=Uo(),f=Ra(),h=Pa(),p=n.PROPER,v=n.CONFIGURABLE,m=h.IteratorPrototype,g=h.BUGGY_SAFARI_ITERATORS,b=d("iterator"),y="keys",w="values",C="entries",S=function(){return this};return pa=function(n,d,h,x,_,R,I){o(h,d,x);var P,E,W,k=function(e){if(e===_&&A)return A;if(!g&&e&&e in L)return L[e];switch(e){case y:case w:case C:return function(){return new h(this,e)}}return function(){return new h(this)}},N=d+" Iterator",O=!1,L=n.prototype,T=L[b]||L["@@iterator"]||_&&L[_],A=!g&&T||k(_),F="Array"===d&&L.entries||T;if(F&&(P=l(F.call(new n)))!==Object.prototype&&P.next&&(r||l(P)===m||(s?s(P,m):i(P[b])||c(P,b,S)),a(P,N,!0,!0),r&&(f[N]=S)),p&&_===w&&T&&T.name!==w&&(!r&&v?u(L,"name",w):(O=!0,A=function(){return t(T,this)})),_)if(E={values:k(w),keys:R?A:k(y),entries:k(C)},I)for(W in E)(g||O||!(W in L))&&c(L,W,E[W]);else e({target:d,proto:!0,forced:g||O},E);return r&&!I||L[b]===A||c(L,b,A,{name:_}),f[d]=A,E}}function Na(){return ga?ma:(ga=1,ma=function(e,t){return{value:e,done:t}})}function Oa(){if(ya)return ba;ya=1;var e=Yi(),t=function(){if(Gs)return $s;Gs=1;var e=Uo(),t=_a(),r=rl().f,n=e("unscopables"),i=Array.prototype;return void 0===i[n]&&r(i,n,{configurable:!0,value:t(null)}),$s=function(e){i[n][e]=!0}}(),r=Ra(),n=_l(),i=rl().f,o=ka(),l=Na(),s=To(),a=Kn(),u="Array Iterator",c=n.set,d=n.getterFor(u);ba=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 f=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!s&&a&&"values"!==f.name)try{i(f,"name",{value:"values"})}catch(e){}return ba}!function(){if(wa)return Ca;wa=1;var e=zn(),t=Fs?As:(Fs=1,As={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(Ms)return Hs;Ms=1;var e=qo()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return Hs=t===Object.prototype?void 0:t}(),n=Oa(),i=nl(),o=Ea(),l=Uo()("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 La,Ta,Aa,Fa,Ha,Ma,ja,za,Ua,Ba,qa,Da,Va,$a,Ga,Xa,Ya,Ja,Ka,Qa,Za,eu,tu,ru,nu,iu,ou,lu,su,au,uu,cu,du,fu,hu,pu,vu,mu,gu,bu={},yu={};function wu(){if(Ta)return La;Ta=1;var e=Di(),t=Vl(),r=Os(),n=Xi(),i=e("".charAt),o=e("".charCodeAt),l=e("".slice),s=function(e){return function(s,a){var u,c,d=r(n(s)),f=t(a),h=d.length;return f<0||f>=h?e?"":void 0:(u=o(d,f))<55296||u>56319||f+1===h||(c=o(d,f+1))<56320||c>57343?e?i(d,f):u:e?l(d,f,f+2):c-56320+(u-55296<<10)+65536}};return La={codeAt:s(!1),charAt:s(!0)}}function Cu(){if(Ha)return Fa;Ha=1;var e=Jn(),t=Uo(),r=Kn(),n=To(),i=t("iterator");return Fa=!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 Su(){if(Ua)return za;Ua=1;var e=function(){if(ja)return Ma;ja=1;var e=Vi(),t=Di();return Ma=function(r){if("Function"===e(r))return t(r)}}(),t=lo(),r=Qn(),n=e(e.bind);return za=function(e,i){return t(e),void 0===i?e:r?n(e,i):function(){return e.apply(i,arguments)}},za}function xu(){if(qa)return Ba;qa=1;var e=Rl(),t=rl();return Ba=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 _u(){if(Va)return Da;Va=1;var e=Zi(),t=TypeError;return Da=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")}}function Ru(){if(uu)return au;uu=1;var e=Ns(),t=so(),r=Gi(),n=Ra(),i=Uo()("iterator");return au=function(o){if(!r(o))return t(o,i)||t(o,"@@iterator")||n[e(o)]}}function Iu(){if(du)return cu;du=1;var e=Zn(),t=lo(),r=tl(),n=oo(),i=Ru(),o=TypeError;return cu=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")},cu}function Pu(){if(hu)return fu;hu=1;var e=Su(),t=Zn(),r=Mo(),n=function(){if(Ka)return Ja;Ka=1;var e=tl(),t=function(){if(Ya)return Xa;Ya=1;var e=Zn(),t=tl(),r=so();return Xa=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}}();return Ja=function(r,n,i,o){try{return o?n(e(i)[0],i[1]):n(i)}catch(e){t(r,"throw",e)}}}(),i=function(){if(Za)return Qa;Za=1;var e=Uo(),t=Ra(),r=e("iterator"),n=Array.prototype;return Qa=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}(),o=function(){if(tu)return eu;tu=1;var e=Di(),t=Jn(),r=Ji(),n=Ns(),i=Qi(),o=Cl(),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}},f=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 f.sham=!0,eu=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?f:d}(),l=Xl(),s=function(){if(nu)return ru;nu=1;var e=Kn(),t=rl(),r=qi();return ru=function(n,i,o){e?t.f(n,i,r(0,o)):n[i]=o}}(),a=function(){if(su)return lu;su=1;var e=Kn(),t=function(){if(ou)return iu;ou=1;var e=Vi();return iu=Array.isArray||function(t){return"Array"===e(t)}}(),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 lu=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=Iu(),c=Ru(),d=Array;return fu=function(f){var h=r(f),p=o(this),v=arguments.length,m=v>1?arguments[1]:void 0,g=void 0!==m;g&&(m=e(m,v>2?arguments[2]:void 0));var b,y,w,C,S,x,_=c(h),R=0;if(!_||this===d&&i(_))for(b=l(h),y=p?new this(b):d(b);b>R;R++)x=g?m(h[R],R):h[R],s(y,R,x);else for(y=p?new this:[],S=(C=u(h,_)).next;!(w=t(S,C)).done;R++)x=g?n(C,m,[w.value,R],!0):w.value,s(y,R,x);return a(y,R),y},fu}function Eu(){if(gu)return mu;gu=1;var e=TypeError;return mu=function(t,r){if(t<r)throw new e("Not enough arguments");return t}}var Wu,ku,Nu,Ou,Lu,Tu,Au,Fu,Hu,Mu={};function ju(){if(Au)return Tu;Au=1,Oa(),function(){if(Wu)return Mu;Wu=1;var e=ks(),t=Di(),r=$l(),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=ks(),t=zn(),r=function(){if(Nu)return ku;Nu=1;var e=zn(),t=Kn(),r=Object.getOwnPropertyDescriptor;return ku=function(n){if(!t)return e[n];var i=r(e,n);return i&&i.value}}(),n=Qi(),i=Zn(),o=Di(),l=Kn(),s=Cu(),a=Il(),u=xu(),c=function(){if(Lu)return Ou;Lu=1;var e=Il();return Ou=function(t,r,n){for(var i in r)e(t,i,r[i],n);return t}}(),d=Ea(),f=Wa(),h=_l(),p=_u(),v=Ji(),m=jo(),g=Su(),b=Ns(),y=tl(),w=Ki(),C=Os(),S=_a(),x=qi(),_=Iu(),R=Ru(),I=Na(),P=Eu(),E=Uo(),W=Ts(),k=E("iterator"),N="URLSearchParams",O=N+"Iterator",L=h.set,T=h.getterFor(N),A=h.getterFor(O),F=r("fetch"),H=r("Request"),M=r("Headers"),j=H&&H.prototype,z=M&&M.prototype,U=t.TypeError,B=t.encodeURIComponent,q=String.fromCharCode,D=n("String","fromCodePoint"),V=parseInt,$=o("".charAt),G=o([].join),X=o([].push),Y=o("".replace),J=o([].shift),K=o([].splice),Q=o("".split),Z=o("".slice),ee=o(/./.exec),te=/\+/g,re=/^[0-9a-f]+$/i,ne=function(e,t){var r=Z(e,t,t+2);return ee(re,r)?V(r,16):NaN},ie=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},oe=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},le=function(e){for(var t=(e=Y(e,te," ")).length,r="",n=0;n<t;){var i=$(e,n);if("%"===i){if("%"===$(e,n+1)||n+3>t){r+="%",n++;continue}var o=ne(e,n+1);if(o!=o){r+=i,n++;continue}n+=2;var l=ie(o);if(0===l)i=q(o);else{if(1===l||l>4){r+="�",n++;continue}for(var s=[o],a=1;a<l&&!(3+ ++n>t||"%"!==$(e,n));){var u=ne(e,n+1);if(u!=u){n+=3;break}if(u>191||u<128)break;X(s,u),n+=2,a++}if(s.length!==l){r+="�";continue}var c=oe(s);null===c?r+="�":i=D(c)}}r+=i,n++}return r},se=/[!'()~]|%20/g,ae={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ue=function(e){return ae[e]},ce=function(e){return Y(B(e),se,ue)},de=f(function(e,t){L(this,{type:O,target:T(e).entries,index:0,kind:t})},N,function(){var e=A(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,I(void 0,!0);var n=t[r];switch(e.kind){case"keys":return I(n.key,!1);case"values":return I(n.value,!1)}return I([n.key,n.value],!1)},!0),fe=function(e){this.entries=[],this.url=null,void 0!==e&&(w(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===$(e,0)?Z(e,1):e:C(e)))};fe.prototype={type:N,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,l,s,a,u=this.entries,c=R(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 U("Expected sequence with length 2");X(u,{key:C(s.value),value:C(a.value)})}else for(var d in e)m(e,d)&&X(u,{key:d,value:C(e[d])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=Q(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(r=Q(t,"="),X(n,{key:le(J(r)),value:le(G(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],X(r,ce(e.key)+"="+ce(e.value));return G(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var he=function(){p(this,pe);var e=L(this,new fe(arguments.length>0?arguments[0]:void 0));l||(this.size=e.entries.length)},pe=he.prototype;if(c(pe,{append:function(e,t){var r=T(this);P(arguments.length,2),X(r.entries,{key:C(e),value:C(t)}),l||this.size++,r.updateURL()},delete:function(e){for(var t=T(this),r=P(arguments.length,1),n=t.entries,i=C(e),o=r<2?void 0:arguments[1],s=void 0===o?o:C(o),a=0;a<n.length;){var u=n[a];if(u.key!==i||void 0!==s&&u.value!==s)a++;else if(K(n,a,1),void 0!==s)break}l||(this.size=n.length),t.updateURL()},get:function(e){var t=T(this).entries;P(arguments.length,1);for(var r=C(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=T(this).entries;P(arguments.length,1);for(var r=C(e),n=[],i=0;i<t.length;i++)t[i].key===r&&X(n,t[i].value);return n},has:function(e){for(var t=T(this).entries,r=P(arguments.length,1),n=C(e),i=r<2?void 0:arguments[1],o=void 0===i?i:C(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=T(this);P(arguments.length,1);for(var n,i=r.entries,o=!1,s=C(e),a=C(t),u=0;u<i.length;u++)(n=i[u]).key===s&&(o?K(i,u--,1):(o=!0,n.value=a));o||X(i,{key:s,value:a}),l||(this.size=i.length),r.updateURL()},sort:function(){var e=T(this);W(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=T(this).entries,n=g(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 de(this,"keys")},values:function(){return new de(this,"values")},entries:function(){return new de(this,"entries")}},{enumerable:!0}),a(pe,k,pe.entries,{name:"entries"}),a(pe,"toString",function(){return T(this).serialize()},{enumerable:!0}),l&&u(pe,"size",{get:function(){return T(this).entries.length},configurable:!0,enumerable:!0}),d(he,N),e({global:!0,constructor:!0,forced:!s},{URLSearchParams:he}),!s&&v(M)){var ve=o(z.has),me=o(z.set),ge=function(e){if(w(e)){var t,r=e.body;if(b(r)===N)return t=e.headers?new M(e.headers):new M,ve(t,"content-type")||me(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),S(e,{body:x(0,C(r)),headers:x(0,t)})}return e};if(v(F)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return F(e,arguments.length>1?ge(arguments[1]):{})}}),v(H)){var be=function(e){return p(this,j),new H(e,arguments.length>1?ge(arguments[1]):{})};j.constructor=be,be.prototype=j,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:be})}}return Tu={URLSearchParams:he,getState:T}}Hu||(Hu=1,function(){if(Fu)return bu;Fu=1,function(){if(Aa)return yu;Aa=1;var e=wu().charAt,t=Os(),r=_l(),n=ka(),i=Na(),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=ks(),r=Kn(),n=Cu(),i=zn(),o=Su(),l=Di(),s=Il(),a=xu(),u=_u(),c=jo(),d=function(){if(Ga)return $a;Ga=1;var e=Kn(),t=Di(),r=Zn(),n=Jn(),i=xa(),o=Es(),l=Bi(),s=Mo(),a=$i(),u=Object.assign,c=Object.defineProperty,d=t([].concat);return $a=!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,f=1,h=o.f,p=l.f;c>f;)for(var v,m=a(arguments[f++]),g=h?d(i(m),h(m)):i(m),b=g.length,y=0;b>y;)v=g[y++],e&&!r(p,m,v)||(u[v]=m[v]);return u}:u,$a}(),f=Pu(),h=Ls(),p=wu().codeAt,v=function(){if(vu)return pu;vu=1;var e=Di(),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),f=e("".replace),h=e("".split),p=e("".toLowerCase),v=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,f=e.length,h=128,p=0,g=72;for(n=0;n<e.length;n++)(l=e[n])<128&&d(r,a(l));var b=r.length,y=b;for(b&&d(r,"-");y<f;){var w=t;for(n=0;n<e.length;n++)(l=e[n])>=h&&l<w&&(w=l);var C=y+1;if(w-h>s((t-p)/C))throw new o(i);for(p+=(w-h)*C,h=w,n=0;n<e.length;n++){if((l=e[n])<h&&++p>t)throw new o(i);if(l===h){for(var S=p,x=36;;){var _=x<=g?1:x>=g+26?26:x-g;if(S<_)break;var R=S-_,I=36-_;d(r,a(v(_+R%I))),S=s(R/I),x+=36}d(r,a(v(S))),g=m(p,C,y===b),p=0,y++}}p++,h++}return c(r,"")};return pu=function(e){var t,i,o=[],s=h(f(p(e),n,"."),".");for(t=0;t<s.length;t++)i=s[t],d(o,l(r,i)?"xn--"+g(i):i);return c(o,".")}}(),m=Os(),g=Ea(),b=Eu(),y=ju(),w=_l(),C=w.set,S=w.getterFor("URL"),x=y.URLSearchParams,_=y.getState,R=i.URL,I=i.TypeError,P=i.parseInt,E=Math.floor,W=Math.pow,k=l("".charAt),N=l(/./.exec),O=l([].join),L=l(1.1.toString),T=l([].pop),A=l([].push),F=l("".replace),H=l([].shift),M=l("".split),j=l("".slice),z=l("".toLowerCase),U=l([].unshift),B="Invalid scheme",q="Invalid host",D="Invalid port",V=/[a-z]/i,$=/[\d+-.a-z]/i,G=/\d/,X=/^0x/i,Y=/^[0-7]+$/,J=/^\d+$/,K=/^[\da-f]+$/i,Q=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Z=/[\0\t\n\r #/:<>?@[\\\]^|]/,ee=/^[\u0000-\u0020]+/,te=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,re=/[\t\n\r]/g,ne=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)U(t,e%256),e=E(e/256);return O(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+=L(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ie={},oe=d({},ie,{" ":1,'"':1,"<":1,">":1,"`":1}),le=d({},oe,{"#":1,"?":1,"{":1,"}":1}),se=d({},le,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ae=function(e,t){var r=p(e,0);return r>32&&r<127&&!c(t,e)?e:encodeURIComponent(e)},ue={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ce=function(e,t){var r;return 2===e.length&&N(V,k(e,0))&&(":"===(r=k(e,1))||!t&&"|"===r)},de=function(e){var t;return e.length>1&&ce(j(e,0,2))&&(2===e.length||"/"===(t=k(e,2))||"\\"===t||"?"===t||"#"===t)},fe=function(e){return"."===e||"%2e"===z(e)},he=function(e){return".."===(e=z(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},pe={},ve={},me={},ge={},be={},ye={},we={},Ce={},Se={},xe={},_e={},Re={},Ie={},Pe={},Ee={},We={},ke={},Ne={},Oe={},Le={},Te={},Ae=function(e,t,r){var n,i,o,l=m(e);if(t){if(i=this.parse(l))throw new I(i);this.searchParams=null}else{if(void 0!==r&&(n=new Ae(r,!0)),i=this.parse(l,null,n))throw new I(i);(o=_(new x)).bindURL(this),this.searchParams=o}};Ae.prototype={type:"URL",parse:function(t,r,n){var i,o,l,s,a=this,u=r||pe,d=0,p="",v=!1,g=!1,b=!1;for(t=m(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=F(t,ee,""),t=F(t,te,"$1")),t=F(t,re,""),i=f(t);d<=i.length;){switch(o=i[d],u){case pe:if(!o||!N(V,o)){if(r)return B;u=me;continue}p+=z(o),u=ve;break;case ve:if(o&&(N($,o)||"+"===o||"-"===o||"."===o))p+=z(o);else{if(":"!==o){if(r)return B;p="",u=me,d=0;continue}if(r&&(a.isSpecial()!==c(ue,p)||"file"===p&&(a.includesCredentials()||null!==a.port)||"file"===a.scheme&&!a.host))return;if(a.scheme=p,r)return void(a.isSpecial()&&ue[a.scheme]===a.port&&(a.port=null));p="","file"===a.scheme?u=Pe:a.isSpecial()&&n&&n.scheme===a.scheme?u=ge:a.isSpecial()?u=Ce:"/"===i[d+1]?(u=be,d++):(a.cannotBeABaseURL=!0,A(a.path,""),u=Oe)}break;case me:if(!n||n.cannotBeABaseURL&&"#"!==o)return B;if(n.cannotBeABaseURL&&"#"===o){a.scheme=n.scheme,a.path=h(n.path),a.query=n.query,a.fragment="",a.cannotBeABaseURL=!0,u=Te;break}u="file"===n.scheme?Pe:ye;continue;case ge:if("/"!==o||"/"!==i[d+1]){u=ye;continue}u=Se,d++;break;case be:if("/"===o){u=xe;break}u=Ne;continue;case ye: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=h(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=h(n.path),a.query="",u=Le;else{if("#"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=h(n.path),a.path.length--,u=Ne;continue}a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=h(n.path),a.query=n.query,a.fragment="",u=Te}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=Ne;continue}u=xe}else u=Se;break;case Ce:if(u=Se,"/"!==o||"/"!==k(p,d+1))continue;d++;break;case Se:if("/"!==o&&"\\"!==o){u=xe;continue}break;case xe:if("@"===o){v&&(p="%40"+p),v=!0,l=f(p);for(var y=0;y<l.length;y++){var w=l[y];if(":"!==w||b){var C=ae(w,se);b?a.password+=C:a.username+=C}else b=!0}p=""}else if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(v&&""===p)return"Invalid authority";d-=f(p).length+1,p="",u=_e}else p+=o;break;case _e:case Re:if(r&&"file"===a.scheme){u=We;continue}if(":"!==o||g){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(a.isSpecial()&&""===p)return q;if(r&&""===p&&(a.includesCredentials()||null!==a.port))return;if(s=a.parseHost(p))return s;if(p="",u=ke,r)return;continue}"["===o?g=!0:"]"===o&&(g=!1),p+=o}else{if(""===p)return q;if(s=a.parseHost(p))return s;if(p="",u=Ie,r===Re)return}break;case Ie:if(!N(G,o)){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()||r){if(""!==p){var S=P(p,10);if(S>65535)return D;a.port=a.isSpecial()&&S===ue[a.scheme]?null:S,p=""}if(r)return;u=ke;continue}return D}p+=o;break;case Pe:if(a.scheme="file","/"===o||"\\"===o)u=Ee;else{if(!n||"file"!==n.scheme){u=Ne;continue}switch(o){case e:a.host=n.host,a.path=h(n.path),a.query=n.query;break;case"?":a.host=n.host,a.path=h(n.path),a.query="",u=Le;break;case"#":a.host=n.host,a.path=h(n.path),a.query=n.query,a.fragment="",u=Te;break;default:de(O(h(i,d),""))||(a.host=n.host,a.path=h(n.path),a.shortenPath()),u=Ne;continue}}break;case Ee:if("/"===o||"\\"===o){u=We;break}n&&"file"===n.scheme&&!de(O(h(i,d),""))&&(ce(n.path[0],!0)?A(a.path,n.path[0]):a.host=n.host),u=Ne;continue;case We:if(o===e||"/"===o||"\\"===o||"?"===o||"#"===o){if(!r&&ce(p))u=Ne;else if(""===p){if(a.host="",r)return;u=ke}else{if(s=a.parseHost(p))return s;if("localhost"===a.host&&(a.host=""),r)return;p="",u=ke}continue}p+=o;break;case ke:if(a.isSpecial()){if(u=Ne,"/"!==o&&"\\"!==o)continue}else if(r||"?"!==o)if(r||"#"!==o){if(o!==e&&(u=Ne,"/"!==o))continue}else a.fragment="",u=Te;else a.query="",u=Le;break;case Ne:if(o===e||"/"===o||"\\"===o&&a.isSpecial()||!r&&("?"===o||"#"===o)){if(he(p)?(a.shortenPath(),"/"===o||"\\"===o&&a.isSpecial()||A(a.path,"")):fe(p)?"/"===o||"\\"===o&&a.isSpecial()||A(a.path,""):("file"===a.scheme&&!a.path.length&&ce(p)&&(a.host&&(a.host=""),p=k(p,0)+":"),A(a.path,p)),p="","file"===a.scheme&&(o===e||"?"===o||"#"===o))for(;a.path.length>1&&""===a.path[0];)H(a.path);"?"===o?(a.query="",u=Le):"#"===o&&(a.fragment="",u=Te)}else p+=ae(o,le);break;case Oe:"?"===o?(a.query="",u=Le):"#"===o?(a.fragment="",u=Te):o!==e&&(a.path[0]+=ae(o,ie));break;case Le:r||"#"!==o?o!==e&&("'"===o&&a.isSpecial()?a.query+="%27":a.query+="#"===o?"%23":ae(o,ie)):(a.fragment="",u=Te);break;case Te:o!==e&&(a.fragment+=ae(o,oe))}d++}},parseHost:function(e){var t,r,n;if("["===k(e,0)){if("]"!==k(e,e.length-1))return q;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,f=function(){return k(e,d)};if(":"===f()){if(":"!==k(e,1))return;d+=2,c=++u}for(;f();){if(8===u)return;if(":"!==f()){for(t=r=0;r<4&&N(K,f());)t=16*t+P(f(),16),d++,r++;if("."===f()){if(0===r)return;if(d-=r,u>6)return;for(n=0;f();){if(i=null,n>0){if(!("."===f()&&n<4))return;d++}if(!N(G,f()))return;for(;N(G,f());){if(o=P(f(),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(":"===f()){if(d++,!f())return}else if(f())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}(j(e,1,-1)),!t)return q;this.host=t}else if(this.isSpecial()){if(e=v(e),N(Q,e))return q;if(t=function(e){var t,r,n,i,o,l,s,a=M(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"===k(i,0)&&(o=N(X,i)?16:8,i=j(i,8===o?1:2)),""===i)l=0;else{if(!N(10===o?J:8===o?Y:K,i))return e;l=P(i,o)}A(r,l)}for(n=0;n<t;n++)if(l=r[n],n===t-1){if(l>=W(256,5-t))return null}else if(l>255)return null;for(s=T(r),n=0;n<r.length;n++)s+=r[n]*W(256,3-n);return s}(e),null===t)return q;this.host=t}else{if(N(Z,e))return q;for(t="",r=f(e),n=0;n<r.length;n++)t+=ae(r[n],ie);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return c(ue,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ce(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+=ne(i),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?l[0]:l.length?"/"+O(l,"/"):"",null!==s&&(u+="?"+s),null!==a&&(u+="#"+a),u},setHref:function(e){var t=this.parse(e);if(t)throw new I(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Fe(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ne(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(m(e)+":",pe)},getUsername:function(){return this.username},setUsername:function(e){var t=f(m(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=ae(t[r],se)}},getPassword:function(){return this.password},setPassword:function(e){var t=f(m(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=ae(t[r],se)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ne(e):ne(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,_e)},getHostname:function(){var e=this.host;return null===e?"":ne(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Re)},getPort:function(){var e=this.port;return null===e?"":m(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=m(e))?this.port=null:this.parse(e,Ie))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+O(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,ke))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=m(e))?this.query=null:("?"===k(e,0)&&(e=j(e,1)),this.query="",this.parse(e,Le)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=m(e))?("#"===k(e,0)&&(e=j(e,1)),this.fragment="",this.parse(e,Te)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Fe=function(e){var t=u(this,He),n=b(arguments.length,1)>1?arguments[1]:void 0,i=C(t,new Ae(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())},He=Fe.prototype,Me=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(r&&(a(He,"href",Me("serialize","setHref")),a(He,"origin",Me("getOrigin")),a(He,"protocol",Me("getProtocol","setProtocol")),a(He,"username",Me("getUsername","setUsername")),a(He,"password",Me("getPassword","setPassword")),a(He,"host",Me("getHost","setHost")),a(He,"hostname",Me("getHostname","setHostname")),a(He,"port",Me("getPort","setPort")),a(He,"pathname",Me("getPathname","setPathname")),a(He,"search",Me("getSearch","setSearch")),a(He,"searchParams",Me("getSearchParams")),a(He,"hash",Me("getHash","setHash"))),s(He,"toJSON",function(){return S(this).serialize()},{enumerable:!0}),s(He,"toString",function(){return S(this).serialize()},{enumerable:!0}),R){var je=R.createObjectURL,ze=R.revokeObjectURL;je&&s(Fe,"createObjectURL",o(je,R)),ze&&s(Fe,"revokeObjectURL",o(ze,R))}g(Fe,"URL"),t({global:!0,constructor:!0,forced:!n,sham:!r},{URL:Fe})}());var zu,Uu,Bu={};!function(){if(zu)return Bu;zu=1;var e=ks(),t=Zn();e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})}(),Uu||(Uu=1,ju());var qu,Du,Vu,$u,Gu,Xu,Yu,Ju,Ku,Qu,Zu,ec={};function tc(){if(Du)return qu;Du=1;var e=tl();return qu=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 rc(){if(Qu)return Ku;Qu=1;var e,t,r=Zn(),n=Di(),i=Os(),o=tc(),l=function(){if($u)return Vu;$u=1;var e=Jn(),t=zn().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 Vu={BROKEN_CARET:i,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),s=Ho(),a=_a(),u=_l().get,c=function(){if(Xu)return Gu;Xu=1;var e=Jn(),t=zn().RegExp;return Gu=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})}(),d=function(){if(Ju)return Yu;Ju=1;var e=Jn(),t=zn().RegExp;return Yu=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})}(),f=s("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,p=h,v=n("".charAt),m=n("".indexOf),g=n("".replace),b=n("".slice),y=(t=/b*/g,r(h,e=/a/,"a"),r(h,t,"a"),0!==e.lastIndex||0!==t.lastIndex),w=l.BROKEN_CARET,C=void 0!==/()??/.exec("")[1];return(y||C||w||c||d)&&(p=function(e){var t,n,l,s,c,d,S,x=this,_=u(x),R=i(e),I=_.raw;if(I)return I.lastIndex=x.lastIndex,t=r(p,I,R),x.lastIndex=I.lastIndex,t;var P=_.groups,E=w&&x.sticky,W=r(o,x),k=x.source,N=0,O=R;if(E&&(W=g(W,"y",""),-1===m(W,"g")&&(W+="g"),O=b(R,x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&"\n"!==v(R,x.lastIndex-1))&&(k="(?: "+k+")",O=" "+O,N++),n=new RegExp("^(?:"+k+")",W)),C&&(n=new RegExp("^"+k+"$(?!\\s)",W)),y&&(l=x.lastIndex),s=r(h,E?n:x,O),E?s?(s.input=b(s.input,N),s[0]=b(s[0],N),s.index=x.lastIndex,x.lastIndex+=s[0].length):x.lastIndex=0:y&&s&&(x.lastIndex=x.global?s.index+s[0].length:l),C&&s&&s.length>1&&r(f,s[0],n,function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(s[c]=void 0)}),s&&P)for(s.groups=d=a(null),c=0;c<P.length;c++)d[(S=P[c])[0]]=s[S[1]];return s}),Ku=p}function nc(){if(Zu)return ec;Zu=1;var e=ks(),t=rc();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),ec}nc();var ic,oc,lc,sc,ac,uc,cc,dc,fc,hc,pc,vc,mc,gc,bc,yc={};function wc(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 Cc(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}!function(){if(bc)return yc;bc=1;var e=function(){if(oc)return ic;oc=1;var e=Qn(),t=Function.prototype,r=t.apply,n=t.call;return ic="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),ic}(),t=Zn(),r=Di(),n=function(){if(sc)return lc;sc=1,nc();var e=Zn(),t=Il(),r=rc(),n=Jn(),i=Uo(),o=nl(),l=i("species"),s=RegExp.prototype;return lc=function(a,u,c,d){var f=i(a),h=!n(function(){var e={};return e[f]=function(){return 7},7!==""[a](e)}),p=h&&!n(function(){var e=!1,t=/a/;if("split"===a){var r={};r[l]=function(){return t},(t={constructor:r,flags:""})[f]=/./[f]}return t.exec=function(){return e=!0,null},t[f](""),!e});if(!h||!p||c){var v=/./[f],m=u(f,""[a],function(t,n,i,o,l){var a=n.exec;return a===r||a===s.exec?h&&!l?{done:!0,value:e(v,n,i,o)}:{done:!0,value:e(t,i,n,o)}:{done:!1}});t(String.prototype,a,m[0]),t(s,f,m[1])}d&&o(s[f],"sham",!0)}}(),i=Jn(),o=tl(),l=Ji(),s=Ki(),a=Vl(),u=Gl(),c=Os(),d=Xi(),f=function(){if(uc)return ac;uc=1;var e=wu().charAt;return ac=function(t,r,n){return r+(n?e(t,r).length:1)}}(),h=so(),p=function(){if(dc)return cc;dc=1;var e=Di(),t=Mo(),r=Math.floor,n=e("".charAt),i=e("".replace),o=e("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return cc=function(e,a,u,c,d,f){var h=u+e.length,p=c.length,v=s;return void 0!==d&&(d=t(d),v=l),i(f,v,function(t,i){var l;switch(n(i,0)){case"$":return"$";case"&":return e;case"`":return o(a,0,u);case"'":return o(a,h);case"<":l=d[o(i,1,-1)];break;default:var s=+i;if(0===s)return t;if(s>p){var f=r(s/10);return 0===f?t:f<=p?void 0===c[f-1]?n(i,1):c[f-1]+n(i,1):t}l=c[s-1]}return void 0===l?"":l})}}(),v=function(){if(vc)return pc;vc=1;var e=Zn(),t=jo(),r=Zi(),n=function(){if(hc)return fc;hc=1;var e=zn(),t=Jn(),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 fc={correct:n}}(),i=tc(),o=RegExp.prototype;return pc=n.correct?function(e){return e.flags}:function(l){return n.correct||!r(o,l)||t(l,"flags")?l.flags:e(i,l)}}(),m=function(){if(gc)return mc;gc=1;var e=Zn(),t=tl(),r=Ji(),n=Vi(),i=rc(),o=TypeError;return mc=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")}}(),g=Uo()("replace"),b=Math.max,y=Math.min,w=r([].concat),C=r([].push),S=r("".indexOf),x=r("".slice),_=function(e){return void 0===e?e:String(e)},R="$0"==="a".replace(/./,"$0"),I=!!/./[g]&&""===/./[g]("a","$0");n("replace",function(r,n,i){var R=I?"$":"$0";return[function(e,r){var i=d(this),o=s(e)?h(e,g):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===S(r,R)&&-1===S(r,"$<")){var h=i(n,s,d,r);if(h.done)return h.value}var g=l(r);g||(r=c(r));var I,P=c(v(s)),E=-1!==S(P,"g");E&&(I=-1!==S(P,"u"),s.lastIndex=0);for(var W,k=[];null!==(W=m(s,d))&&(C(k,W),E);)""===c(W[0])&&(s.lastIndex=f(d,u(s.lastIndex),I));for(var N="",O=0,L=0;L<k.length;L++){for(var T,A=c((W=k[L])[0]),F=b(y(a(W.index),d.length),0),H=[],M=1;M<W.length;M++)C(H,_(W[M]));var j=W.groups;if(g){var z=w([A],H,F,d);void 0!==j&&C(z,j),T=c(e(r,void 0,z))}else T=p(A,d,F,H,j,r);F>=O&&(N+=x(d,O,F)+T,O=F+A.length)}return N+x(d,O)}]},!!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!R||I)}();var Sc,xc={};!function(){if(Sc)return xc;Sc=1;var e=ks(),t=Kn(),r=zn(),n=Di(),i=jo(),o=Ji(),l=Zi(),s=Os(),a=xu(),u=Ws(),c=r.Symbol,d=c&&c.prototype;if(t&&o(c)&&(!("description"in d)||void 0!==c().description)){var f={},h=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&&(f[t]=!0),t};u(h,c),h.prototype=d,d.constructor=h;var p="Symbol(description detection)"===String(c("description detection")),v=n(d.valueOf),m=n(d.toString),g=/^Symbol\((.*)\)[^)]+$/,b=n("".replace),y=n("".slice);a(d,"description",{configurable:!0,get:function(){var e=v(this);if(i(f,e))return"";var t=m(e),r=p?y(t,7,-1):b(t,g,"$1");return""===r?void 0:r}}),e({global:!0,constructor:!0,forced:!0},{Symbol:h})}}();const _c=Symbol("safe"),Rc=Symbol("hover_in"),Ic=Symbol("hover_out"),Pc=Symbol("row_click"),Ec=Symbol("preview_cell"),Wc=Symbol("cell"),kc=Symbol("related_touch"),Nc=Symbol("original_row_index"),Oc=Symbol("destroyed");class Lc 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 Lc({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[Nc]=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=Tc(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 Tc(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 Ac 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 Fc(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 Hc={NONE:"none",AUTO:"auto",SCROLL:"scroll"},Mc=document.createElement.bind(document);function jc(e){["relative","absolute","fixed"].includes(getComputedStyle(e).position)||(e.style.position="relative")}function zc(e){const t=e.target;return/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(t.tagName)}function Uc(e){const t=getComputedStyle(e);return(parseFloat(t.paddingLeft)||0)+(parseFloat(t.paddingRight)||0)}function Bc(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 qc(e,t){const r=e._o.tableClassName,n=Mc("div");n.className=e.el.className;const i=Mc("div");i.className=r+"-header";const o=Mc("div");o.className=r+"-header-row";const l=Mc("div");l.className=r+"-header-cell";const s=Mc("div");s.textContent=t,l.appendChild(s),o.appendChild(l),i.appendChild(o),n.appendChild(i),fn(n,{position:"absolute",top:"-9999px",visibility:"hidden"}),document.body.appendChild(n);const a=pn(l);return n.remove(),a}function Dc(e){const t=e._o,r=e._p;let n,i=0,o=0;r.table&&(i=r.table?r.table.scrollTop:0,o=r.table?r.table.scrollLeft:0,t.virtualTable&&(n=r.table.style.display,r.table.style.display="none"));let l=pn(e.el);r.table&&(t.virtualTable&&void 0!==n&&(r.table.style.display=n),r.table.scrollTop=i,r.table.scrollLeft=o,r.header&&(r.header.scrollLeft=o));const s=t.tableClassName,a=Mc("div");a.className=e.el.className,fn(a,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px"});const u=Mc("div");u.className="".concat(s,"-header"),a.appendChild(u);const c=Mc("div");c.index=null,c.vIndex=null,c.className="".concat(s,"-header-row"),u.appendChild(c);for(let e=0;e<r.visibleColumns.length;e++){const t=r.visibleColumns[e],n=Mc("div");n.className="".concat(s,"-header-cell ").concat(t.cellClasses||""),n.columnName=t.name,n.appendChild(Mc("div")),c.appendChild(n)}document.body.appendChild(a),l-=function(e){const t=getComputedStyle(e);return(parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0)}(c);const d=c.querySelectorAll("div.".concat(s,"-header-cell"));for(const e of d){const t=getComputedStyle(e);if("border-box"!==t.boxSizing){l-=(parseFloat(t.borderRightWidth)||0)+(parseFloat(t.borderLeftWidth)||0)+Uc(e);const n=e.columnName,i=r.columns.get(n);i&&(l-=i.arrowProposedWidth||0)}}return a.remove(),Math.max(0,l)}function Vc(e){const t=e._p,r=e._o.tableClassName,n=r+"-row",i=r+"-cell",o=t.visibleColumns,l=o.length,s=Mc("div");s.className=n,s.style.float="left";let a=0;for(let e=0;e<l;e++){var u,c;const t=o[e],r=Mc("div");r.className=i,r.style.width=(null!==(u=t.actualWidth)&&void 0!==u?u:0)+"px",t.cellClasses&&(r.className+=" "+t.cellClasses),r.appendChild(Mc("div")),s.appendChild(r),a+=null!==(c=t.actualWidth)&&void 0!==c?c:0}const d=Mc("div");d.className=e.el.className,fn(d,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",float:"left",width:"1px",overflow:"hidden"});const f=Mc("div");f.className=r,d.appendChild(f);const h=Mc("div");h.className=r+"-body",h.style.width=a+1e4+"px",f.appendChild(h),h.appendChild(s),document.body.appendChild(d);const p=Mc("div");fn(p,{border:"1.5px solid #000",width:"0",height:"0",position:"absolute",left:"0",top:"-9999px"}),document.body.appendChild(p);const v=parseFloat(getComputedStyle(p).borderWidth),m=Math.round(v)!==v;p.remove();let g=pn(s,!0,!0,!0);return g-=t.scrollbarWidth||0,m&&g++,d.remove(),g}function $c(e){const t=e._p;return!!t.table&&"rtl"===getComputedStyle(t.table).direction}function Gc(e){return 0===e.widthMode?"auto":2===e.widthMode?100*e.width+"%":e.width}class Xc{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 Yc=document.createElement.bind(document);function Jc(e,t){var r,n,i;const o=e._o,l=$c(e);let s=t.target.closest("div.".concat(o.tableClassName,"-header-cell,div.").concat(o.cellPreviewClassName));if(!s)return null;s[Wc]&&(s=s[Wc]);let a=s.previousSibling;for(;a&&1!==a.nodeType;)a=a.previousSibling;const u=!a,c=t,d=null!==(r=null!==(n=t[kc])&&void 0!==n?n:null===(i=c.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:t,f=(d.pageX||d.clientX||0)-yn(s).left;if(l){var h,p,v;if(!u&&pn(s,!0,!0,!0)-f<=o.resizeAreaWidth/2)return null!==(h=null===(p=a)||void 0===p?void 0:p.columnName)&&void 0!==h?h:null;if(f<=o.resizeAreaWidth/2)return null!==(v=s.columnName)&&void 0!==v?v:null}else{var m,g,b;if(!u&&f<=o.resizeAreaWidth/2)return null!==(m=null===(g=a)||void 0===g?void 0:g.columnName)&&void 0!==m?m:null;if(pn(s,!0,!0,!0)-f<=o.resizeAreaWidth/2)return null!==(b=s.columnName)&&void 0!==b?b:null}return null}function Kc(e){const t=e._p;return t.resizer&&(t.resizer.remove(),t.resizer=null,t.eventsSink.remove(document,".colresize")),e}function Qc(e,t){const r=t;if("mousedown"===t.type&&0!==r.button)return;const n=e._o,i=e._p,o=Jc(e,t);if(o){const r=i.columns.get(o);if(!n.resizableColumns||!r||!r.resizable)return!1;const l=$c(e);i.resizer&&i.resizer.remove(),i.resizer=Yc("div"),i.resizer.className=n.resizerClassName,fn(i.resizer,{position:"absolute",display:"block",zIndex:"-1",visibility:"hidden",width:"2px",background:"#000",opacity:"0.7"}),e.el.appendChild(i.resizer);const s=r.element,a=i.resizer.parentNode,u=getComputedStyle(a),c=getComputedStyle(s),d=yn(s),f=yn(a);f.left+=parseFloat(u.borderLeftWidth)||0,f.top+=parseFloat(u.borderTopWidth)||0,d.left-=f.left,d.top-=f.top,d.top-=parseFloat(c.borderTopWidth)||0;const h=pn(i.resizer,!0,!0,!0);l?(d.left-=Math.ceil((parseFloat(c.borderLeftWidth)||0)/2),d.left-=Math.ceil(h/2)):(d.left+=pn(s,!0,!0,!0),d.left+=Math.ceil((parseFloat(c.borderRightWidth)||0)/2),d.left-=Math.ceil(h/2)),fn(i.resizer,{"z-index":"10",visibility:"visible",left:d.left+"px",top:d.top+"px",height:vn(e.el,!1,!1,!1)+"px"}),i.resizer.columnName=s.columnName;try{i.resizer.style.zIndex=""}catch(e){}i.eventsSink.add(document,"mousemove.colresize",t=>Zc(e,t)).add(document,"touchmove.colresize",t=>Zc(e,t)).add(document,"mouseup.colresize",t=>ed(e,t)).add(document,"touchend.colresize",t=>ed(e,t)),t.preventDefault()}}function Zc(e,t){var r,n,i;const o=e._p;if(!o.resizer)return;const l=o.columns.get(o.resizer.columnName);if(!l)return;const s=$c(e),a=l.element,u=o.resizer.parentNode,c=getComputedStyle(u),d=getComputedStyle(a),f=yn(a),h=yn(u);h.left+=parseFloat(c.borderLeftWidth)||0,f.left-=h.left;const p=pn(o.resizer,!0,!0,!0),v="border-box"===d.boxSizing,m=t;let g=(null!==(r=null!==(n=t[kc])&&void 0!==n?n:null===(i=m.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:t).pageX-h.left,b=f.left;b-=Math.ceil(p/2),s?(b+=pn(a,!0,!0,!0),b-=l.ignoreMin?0:e._o.minColumnWidth,v||(b-=Math.ceil((parseFloat(d.borderLeftWidth)||0)/2),b-=Uc(a)),g>b&&(g=b)):(b+=l.ignoreMin?0:e._o.minColumnWidth,v||(b+=Math.ceil((parseFloat(d.borderRightWidth)||0)/2),b+=Uc(a)),g<b&&(g=b)),o.resizer.style.left=g+"px"}function ed(e,t){var r,n,i;const o=e._o,l=e._p;if(!l.resizer)return;l.eventsSink.remove(document,".colresize");const s=l.columns.get(l.resizer.columnName);if(!s)return l.resizer.remove(),void(l.resizer=null);const a=$c(e),u=s.element,c=u.firstChild,d=l.resizer.parentNode,f=getComputedStyle(d),h=getComputedStyle(u),p=yn(u),v=yn(d);v.left+=parseFloat(f.borderLeftWidth)||0,p.left-=v.left;const m=pn(l.resizer,!0,!0,!0),g="border-box"===h.boxSizing,b=t;let y=(null!==(r=null!==(n=t[kc])&&void 0!==n?n:null===(i=b.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:t).pageX-v.left,w=p.left,C=0;if(w-=Math.ceil(m/2),a){if(!g){y+=Uc(u);const e=getComputedStyle(c||u);y+=parseFloat(e.borderLeftWidth)||0,y+=parseFloat(e.borderRightWidth)||0,y+=s.arrowProposedWidth||0}w+=pn(u,!0,!0,!0);const t=w-(s.ignoreMin?0:e._o.minColumnWidth);y>t&&(y=t),C=w-y}else{if(!g){y-=Uc(u);const e=getComputedStyle(c||u);y-=parseFloat(e.borderLeftWidth)||0,y-=parseFloat(e.borderRightWidth)||0,y-=s.arrowProposedWidth||0}const t=w+(s.ignoreMin?0:e._o.minColumnWidth);y<t&&(y=t),C=y-w}l.resizer.remove(),l.resizer=null;let S=C;if(2===s.widthMode){let t=Dc(e),r=0,n=0;for(let e=0;e<l.visibleColumns.length;e++){const i=l.visibleColumns[e];var x;i.name!==s.name&&(2===i.widthMode?(r+=i.width,n++):t-=null!==(x=i.actualWidth)&&void 0!==x?x:0)}if(t=Math.max(1,t),1===t&&l.table&&(t=l.table.clientWidth),S=C/t,n>0){const e=S/((1-S)/r);r+=S,(r<1&&o.relativeWidthGrowsToFillWidth||r>1&&o.relativeWidthShrinksToFillWidth)&&(S=e)}S*=100,S+="%"}e.setColumnWidth(s.name,S)}function td(e,t){var r;const n=e._o,i=e._p;if(!n.resizableColumns)return;const o=Jc(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 rd(e,t){var r,n,i;const o=e._o,l=t,s=t,a=null!==(r=null!==(n=t[kc])&&void 0!==n?n:null===(i=l.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:{pageX:s.pageX,pageY:s.pageY},u=t.target.closest("div.".concat(o.tableClassName,"-header-cell,div.").concat(o.cellPreviewClassName));if(!u)return;const c=yn(u);c.width=pn(u,!0,!0,!0),c.height=vn(u,!0,!0,!0),e.emit("headercontextmenu",{columnName:u.columnName,pageX:a.pageX,pageY:a.pageY,bounds:c})}function nd(e,t){if(zc(t))return;if(Jc(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 id=Array.prototype.indexOf,od=document.createElement.bind(document);function ld(e){const t=e._p;return t.headerRow&&(t.headerRow=void 0),e}function sd(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 ad(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}cd(e),null===(i=r.notifyRendererOfColumnsConfig)||void 0===i||i.call(r)}return e}function ud(e,t){const r=e._o,n=e._p;if(!n.tbody||!n.table||!n.headerRow)return e;const i=Vc(e);if(n.tbody.style.minWidth=i+"px",n.headerRow.style.minWidth=i+(n.scrollbarWidth||0)+"px",n.eventsSink.remove(n.table,"scroll"),r.width===Hc.AUTO)mn(n.table,pn(n.tbody,!0,!0,!0)),mn(e.el,pn(n.table,!0,!0,!0));else if(r.width===Hc.SCROLL){if(t){const t=n.table?n.table.scrollTop:0,r=n.table?n.table.scrollLeft:0;!function(e){const t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}(e.el),n.table.scrollTop=t,n.table.scrollLeft=r,n.header&&(n.header.scrollLeft=r)}const r=()=>function(e){const t=e._p;t.header.scrollLeft=t.table.scrollLeft,dd(e)}(e);n.eventsSink.add(n.table,"scroll",r)}return e}function cd(e){var t;const r=e._p,n=e._o;if(!r.headerRow)return;const i=n.tableClassName+"-sticky",o=r.headerRow,l=$c(e);r.lastIsRtl=l;const s=null!==(t=r.scrollbarWidth)&&void 0!==t?t:0;let a=0,u=0,c=null;const d=[],f=[];let h=null,p=[];for(let e=o.firstElementChild;e;e=e.nextElementSibling){const t=e.getAttribute("data-column");if(!t)continue;const n=r.columns.get(t);if(n)if("start"===n.sticky||"end"===n.sticky){var v;e.className+=" "+i,e.style.position="sticky";let t=null!==(v=n.actualWidth)&&void 0!==v?v:0,r=null;if(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){const r=n.stickyPos={direction:"start",absDirection:l?"right":"left",offset:a};e.style[r.absDirection]=a+"px",a+=t,p.length=0,h=[e],d.push(h)}else{const r=n.stickyPos={direction:"end",absDirection:l?"left":"right",offset:u};e.style[r.absDirection]=u+s+"px",u+=t,f.push([e,...p]),p.length=0}}else{var m;delete n.stickyPos,null===(m=h)||void 0===m||m.push(e),null==p||p.push(e),"sticky"===e.style.position&&(e.classList.remove(i),e.style.position="",e.style.left="",e.style.right="")}}r.stickiesStart=d,r.stickiesEnd=f,dd(e)}function dd(e){const t=e._p;if(!t.table||!t.headerRow||!t.tbody)return;const r=t.stickiesStart,n=t.stickiesEnd,i=t.stickiesSetStart,o=t.stickiesSetEnd,l=t.stickiesSetStart=new Set,s=t.stickiesSetEnd=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=t.lastIsRtl,u=(e,t,r)=>{if(e&&e.length)for(const n of e){const e=n[0],l=n.slice(1),s=l[0],u=l[l.length-1];if(!e||!e.getBoundingClientRect)continue;const c=e.getBoundingClientRect(),d=t!==a;let f=!1;if(s&&u){const e=s.getBoundingClientRect(),r=u.getBoundingClientRect();f=t?a?c.right-o>r.left&&c.left+o<e.right:c.right-o>e.left&&c.left+o<r.right:a?c.left+o<e.right&&c.right-o>r.left:c.left+o<r.right&&c.right-o>e.left}e.classList.toggle(d?"is-sticky-left":"is-sticky-right",f),f&&r.add(id.call(i,e))}};u(r,!0,l),u(n,!1,s)}const a=[],u=[];for(const e of l)null!=i&&i.has(e)||a.push({index:e,start:!0});for(const e of s)null!=o&&o.has(e)||a.push({index:e,start:!1});if(i)for(const e of i)l.has(e)||u.push({index:e,start:!0});if(o)for(const e of o)s.has(e)||u.push({index:e,start:!1});if(!a.length&&!u.length)return;let c=t.tbody.firstElementChild;for(;c;){const e=c.children;for(const r of u){var d;null===(d=e[r.index])||void 0===d||d.classList.remove(r.start!==t.lastIsRtl?"is-sticky-left":"is-sticky-right")}for(const r of a){var f;null===(f=e[r.index])||void 0===f||f.classList.add(r.start!==t.lastIsRtl?"is-sticky-left":"is-sticky-right")}c=c.nextElementSibling}t.isStickyColumns=new Map;for(const e of l)t.isStickyColumns.set(e,"start");for(const e of s)t.isStickyColumns.set(e,"end")}function fd(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 hd(e){const t=e._p,r=e._o;if(t.table&&t.headerRow){const e=r.tableClassName,i=Cn(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 pd(e,t,r){const n=e._p,i=e._o,o=n.columns.get(t);if(!o)return!1;const l=od("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 vd(e,t){const r=t.firstChild;t.addEventListener("mousedown",t=>Qc(e,t)),t.addEventListener("mousemove",t=>td(e,t)),t.addEventListener("mouseup",t=>function(e,t){2===t.button&&rd(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[kc]=t.changedTouches[0],Qc(e,t),l=setTimeout(()=>{a(),r.eventsSink.add(i,"touchend.colheader",e=>{zc(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&&(Kc(e),rd(e,t))},500),r.eventsSink.add(i,"touchend.colheader",t=>{const n=t,i=wc(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(a(),zc(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[kc]=i,nd(e,n)))}).add(i,"touchcancel.colheader",a).add(i,"touchmove.colheader",t=>{const n=t,i=wc(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(s={x:i.pageX,y:i.pageY},r.resizer&&(t.preventDefault(),n[kc]=i,td(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=>nd(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 md(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 gd(e,t){let r=md(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 bd(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 yd(e){const t=e._p;if(t.filteredRows&&t.filterArgs){let r=e._o.filter||Fc;t.filteredRows=t.rows.filteredCollection(r,t.filterArgs)}}function wd(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[_c])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 Cd=Array.prototype.indexOf,Sd=document.createElement.bind(document);function xd(e){const t=e._p;if(t.cellPreviewCell){var r;const n=t.cellPreviewCell,i=n[Wc];let o;try{o=Xc.saveSelection(n)}catch(e){}t.cellPreviewCell.remove(),i&&t._unbindCellHoverOut(i),t._unbindCellHoverOut(n);try{o&&i&&Xc.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[Ec],delete n[Wc],t.cellPreviewCell=null,t.abortCellPreview=!1}else t.abortCellPreview=!0;return e}const _d=Object.prototype.hasOwnProperty;class Rd{constructor(e){this.VERSION=Rd.VERSION;const t=this._o={},r=this._p={eventsSink:new Sn,mitt:{all:n=n||new Map,on:function(e,t){var r=n.get(e);r?r.push(t):n.set(e,[t])},off:function(e,t){var r=n.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):n.set(e,[]))},emit:function(e,t){var r=n.get(e);r&&r.slice().map(function(e){e(t)}),(r=n.get("*"))&&r.slice().map(function(r){r(e,t)})}},tableSkeletonNeedsRendering:!0};var n;this.el=e.el&&e.el instanceof HTMLElement?e.el:document.createElement("div"),this.el!==e.el&&this.el.classList.add(e.className||"dgtable-wrapper"),r.eventsSink.add(this.el,"dragend.colresize",e=>{return t=e,void(this._p.resizer||(t.target.style.opacity=""));var t}),t.virtualTable=void 0===e.virtualTable||!!e.virtualTable,t.estimatedRowHeight=e.estimatedRowHeight||void 0,t.rowsBufferSize=e.rowsBufferSize||3,t.minColumnWidth=Math.max(e.minColumnWidth||35,0),t.resizeAreaWidth=e.resizeAreaWidth||8,t.resizableColumns=void 0===e.resizableColumns||!!e.resizableColumns,t.movableColumns=void 0===e.movableColumns||!!e.movableColumns,t.sortableColumns=void 0===e.sortableColumns?1:parseInt(String(e.sortableColumns),10)||1,t.adjustColumnWidthForSortArrow=void 0===e.adjustColumnWidthForSortArrow||!!e.adjustColumnWidthForSortArrow,t.convertColumnWidthsToRelative=void 0!==e.convertColumnWidthsToRelative&&!!e.convertColumnWidthsToRelative,t.autoFillTableWidth=void 0!==e.autoFillTableWidth&&!!e.autoFillTableWidth,t.allowCancelSort=void 0===e.allowCancelSort||!!e.allowCancelSort,t.cellClasses=void 0===e.cellClasses?"":e.cellClasses,t.resizerClassName=void 0===e.resizerClassName?"dgtable-resize":e.resizerClassName,t.tableClassName=void 0===e.tableClassName?"dgtable":e.tableClassName,t.allowCellPreview=void 0===e.allowCellPreview||e.allowCellPreview,t.allowHeaderCellPreview=void 0===e.allowHeaderCellPreview||e.allowHeaderCellPreview,t.cellPreviewClassName=void 0===e.cellPreviewClassName?"dgtable-cell-preview":e.cellPreviewClassName,t.cellPreviewAutoBackground=void 0===e.cellPreviewAutoBackground||e.cellPreviewAutoBackground,t.onComparatorRequired=void 0===e.onComparatorRequired?null:e.onComparatorRequired,t.customSortingProvider=void 0===e.customSortingProvider?null:e.customSortingProvider,t.width=void 0===e.width?Hc.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 i=[];if(e.sortColumn){let t=Array.isArray(e.sortColumn)?e.sortColumn:[e.sortColumn];for(let e=0,n=t.length;e<n;e++){var o;let n=t[e];"string"==typeof n&&(n={column:n,descending:!1});let l=r.columns.get(n.column);l&&i.push({column:n.column,comparePath:l.comparePath||l.dataPath,descending:null!==(o=n.descending)&&void 0!==o&&o})}}r.rows=new Lc({sortColumn:i}),r.rows.onComparatorRequired=(e,r,n)=>{if(t.onComparatorRequired)return t.onComparatorRequired(e,r,n)},r.rows.customSortingProvider=(e,r)=>t.customSortingProvider?t.customSortingProvider(e,r):r(e),r.filteredRows=null,r.scrollbarWidth=0,r._lastVirtualScrollHeight=0,function(e){const t=e._p,r=t=>{let r=t.currentTarget,n=t.relatedTarget;n===r||r.contains(n)||r[Ec]&&(n===r[Ec]||r[Ec].contains(n))||function(e,t){var r,n;const i=e._o,o=e._p,l=t.firstElementChild;if(!l)return;if(!(l.scrollWidth-l.clientWidth>1||l.scrollHeight-l.clientHeight>1))return;xd(e),o.abortCellPreview=!1;const s=t.parentElement;if(!s)return;const a=Sd("div");a.innerHTML=t.innerHTML,a.className=i.cellPreviewClassName;const u=t.classList.contains("".concat(i.tableClassName,"-header-cell"));u&&(a.classList.add("header"),t.classList.contains("sortable")&&a.classList.add("sortable"),a.draggable=!0,vd(e,a));const c=getComputedStyle(t),d=getComputedStyle(l),f="right"===c.float,h=f?"right":"left",p=parseFloat(c.paddingLeft)||0,v=parseFloat(c.paddingRight)||0,m=parseFloat(c.paddingTop)||0,g=parseFloat(c.paddingBottom)||0;let b=l.scrollWidth+(t.clientWidth-l.offsetWidth);const y="border-box"===c.boxSizing;if(y?a.style.boxSizing="border-box":(b-=p+v,a.style.marginTop=(parseFloat(c.borderTopWidth)||0)+"px"),!o.transparentBgColor1){const e=document.createElement("div");document.body.appendChild(e),e.style.backgroundColor="transparent",o.transparentBgColor1=getComputedStyle(e).backgroundColor,e.style.backgroundColor="rgba(0,0,0,0)",o.transparentBgColor2=getComputedStyle(e).backgroundColor,e.remove()}const w={"box-sizing":y?"border-box":"content-box",width:b,"min-height":Math.max(vn(t),/%/.test(c.minHeight)?0:parseFloat(c.minHeight)||0)+"px","padding-left":p,"padding-right":v,"padding-top":m,"padding-bottom":g,overflow:"hidden",position:"absolute","z-index":"-1",[h]:"0",top:"0",cursor:c.cursor};let C=c.backgroundColor;C!==o.transparentBgColor1&&C!==o.transparentBgColor2||(C=getComputedStyle(s).backgroundColor),C!==o.transparentBgColor1&&C!==o.transparentBgColor2||(C="#fff"),w["background-color"]=C,fn(a,w),a.firstChild&&fn(a.firstChild,{direction:d.direction,"white-space":d.whiteSpace,"min-height":d.minHeight,"line-height":d.lineHeight,font:d.font}),e.el.appendChild(a),u&&Bc(a),a.rowVIndex=s.vIndex;const S=a.rowIndex=s.index;a.columnName=null===(r=o.visibleColumns[Cd.call(s.childNodes,t)])||void 0===r?void 0:r.name;try{const e=Xc.saveSelection(t);e&&Xc.restoreSelection(a,e)}catch(e){}if(e.emit("cellpreview",{el:a.firstElementChild,name:a.columnName,rowIndex:null!=S?S:null,rowData:null==S?null:o.rows[S],cell:t,cellEl:l}),o.abortCellPreview)return void a.remove();null!=S&&a.addEventListener("click",t=>{e.emit("rowclick",{event:t,filteredRowIndex:s.vIndex,rowIndex:S,rowEl:s,rowData:o.rows[S]})});const x=e.el,_=x===window?document:x,R=getComputedStyle(x),I=yn(t),P=yn(x);if(f){const e=window.innerWidth;I.right=e-(I.left+pn(t,!0,!0,!0)),P.right=e-(P.left+pn(x,!0,!0,!0))}I.left-=parseFloat(R.borderLeftWidth)||0,"right"===h&&void 0!==I.right&&void 0!==P.right&&(I.right-=parseFloat(R.borderRightWidth)||0),I.top-=parseFloat(R.borderTopWidth)||0,"left"===h?I.left+=parseFloat(c.borderLeftWidth)||0:void 0!==I.right&&(I.right+=parseFloat(c.borderRightWidth)||0),I.top+=parseFloat(c.borderTopWidth)||parseFloat(c.borderBottomWidth)||0,I.left-=P.left,"right"===h&&void 0!==I.right&&void 0!==P.right&&(I.right-=P.right),I.top-=P.top;const E=pn(x,!1,!1,!1)-pn(a,!0,!0,!0),W="left"===h?I.left:null!==(n=I.right)&&void 0!==n?n:0,k=W<0?0:W>E?E:W;"left"===h?I.left=k:I.right=k;const N=vn(t,!0,!0,!0),O=("scrollTop"in _?_.scrollTop:0)+vn(x,!0)-N;I.top>O&&(I.top=Math.max(0,O));const L={top:I.top+"px","z-index":9999};L[h]=("left"===h?I.left:I.right)+"px",fn(a,L),a[Wc]=t,o.cellPreviewCell=a,t[Ec]=a,o._bindCellHoverOut(t),o._bindCellHoverOut(a),a.addEventListener("wheel",()=>{xd(e)})}(e,r)},n=t=>{let r=t.currentTarget[Wc]||t.currentTarget,n=t.relatedTarget;n===e.el||r.contains(n)||r[Ec]&&(n===r[Ec]||r[Ec].contains(n))||function(e){xd(e)}(e)};t._bindCellHoverIn=e=>{e[Rc]||e.addEventListener("mouseover",e[Rc]=r)},t._unbindCellHoverIn=e=>{e[Rc]&&(e.removeEventListener("mouseover",e[Rc]),e[Rc]=null)},t._bindCellHoverOut=e=>{e[Ic]||e.addEventListener("mouseout",e[Ic]=n)},t._unbindCellHoverOut=e=>{e[Ic]&&(e.removeEventListener("mouseout",e[Ic]),e[Ic]=null)}}(this)}on(e,t){return this[Oc]||this._p.mitt.on(e,t),this}once(e,t){if(this[Oc])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[Oc]||(e||t?this._p.mitt.off(e,t):this._p.mitt.all.clear()),this}emit(e,t){return this[Oc]||this._p.mitt.emit(e,t),this}destroy(){var e,t,r;const n=this._p,i=this.el;if(this[Oc]||!n)return this;if(n.resizer&&(n.resizer.remove(),n.resizer=null),null===(e=n.virtualListHelper)||void 0===e||e.destroy(),n.virtualListHelper=null,ld(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)_d.call(this,e)&&(this[e]=null);return this[Oc]=!0,i&&i.remove(),this}close(){this.destroy()}remove(){this.destroy()}render(){const e=this._o,t=this._p;if(!this.el.offsetParent)return t._deferredRender||(t._deferredRender=setTimeout(()=>{t._deferredRender=null,!this[Oc]&&this.el.offsetParent&&this.render()})),this;if(!0===t.tableSkeletonNeedsRendering){var r;t.tableSkeletonNeedsRendering=!1,e.width===Hc.AUTO&&hd(this);let n=t.table&&t.table.parentNode?t.table.scrollTop:NaN,i=t.table&&t.table.parentNode?function(e,t){return void 0===t&&(t="rtl"===getComputedStyle(e).direction),t?e.scrollWidth-e.clientWidth-cn(e,t):cn(e,t)}(t.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),ld(e),r.currentTouchId=null,r.header&&r.header.remove();const i=n.tableClassName,o=od("div"),l=od("div");o.className="".concat(i,"-header"),l.className="".concat(i,"-header-row"),r.header=o,r.headerRow=l,o.appendChild(l),e.el.prepend(o),jc(e.el),n.width===Hc.SCROLL?e.el.style.overflow="hidden":e.el.style.overflow="",!n.height&&n.virtualTable&&(n.height=vn(e.el,!0))}(this),function(e){const t=e._p,r=e._o,n=r.tableClassName;if(r.virtualTable&&!t.virtualRowHeight){const r=()=>{const e=od("div"),t=e.appendChild(od("div")),r=t.appendChild(od("div"));return e.className="".concat(n,"-row"),t.className="".concat(n,"-cell"),r.innerHTML="0",e.style.visibility="hidden",e.style.position="absolute",e},i=od("div");i.className=e.el.className,fn(i,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",width:"1px",overflow:"hidden"});const o=od("div");o.className=n,i.appendChild(o);const l=od("div");l.className="".concat(n,"-body"),l.style.width="99999px",o.appendChild(l),document.body.appendChild(i);const s=r(),a=r(),u=r();l.appendChild(s),l.appendChild(a),l.appendChild(u),t.virtualRowHeight=vn(a,!0,!0,!0),i.remove()}if(!t.table){var i;const o=document.createDocumentFragment(),l=od("div");l.className=n,r.virtualTable&&(l.className+=" virtual");const s=getComputedStyle(l);let a=(null!==(i=r.height)&&void 0!==i?i:0)-vn(t.header,!0,!0,!0);"border-box"!==s.boxSizing&&(a-=parseFloat(s.borderTopWidth)||0,a-=parseFloat(s.borderBottomWidth)||0,a-=parseFloat(s.paddingTop)||0,a-=parseFloat(s.paddingBottom)||0),fn(l,{height:r.height?a+"px":"auto",display:"block",overflowY:"auto",overflowX:r.width===Hc.SCROLL?"auto":"hidden"}),o.appendChild(l);const u=od("div");u.className=r.tableClassName+"-body",u.style.minHeight="1px",t.table=l,t.tbody=u,jc(u),jc(l),l.appendChild(u),e.el.appendChild(o),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 u=r.visibleColumns,c=u.length;r.notifyRendererOfColumnsConfig=()=>{u=r.visibleColumns,c=u.length;for(let e=0;e<c;e++){const t=u[e];t._finalWidth=t.actualWidthConsideringScrollbarWidth||t.actualWidth}},r.virtualListHelper=new Pn({list:r.table,itemsParent:r.tbody,autoVirtualWrapperWidth:!1,virtual:n.virtualTable,buffer:n.rowsBufferSize,estimatedItemHeight:n.estimatedRowHeight?n.estimatedRowHeight:r.virtualRowHeight||40,itemElementCreatorFn:()=>od("div"),onItemRender:(t,i)=>{const d=r.filteredRows||r.rows,f=!!r.filteredRows,h=n.allowCellPreview,p=r.isStickyColumns;t.className=o,i%2==1&&(t.className+=" "+l);const v=d[i],m=f?v[Nc]:i;t.vIndex=i,t.index=m;for(let e=0;e<c;e++){var g;const i=u[e],o=od("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.absDirection]=i.stickyPos.offset+"px";const t=null==p?void 0:p.get(e);"start"===t&&!r.lastIsRtl||"end"===t&&r.lastIsRtl?o.classList.add("is-sticky-left"):("start"===t&&r.lastIsRtl||"end"===t&&!r.lastIsRtl)&&o.classList.add("is-sticky-right")}h&&r._bindCellHoverIn(o),o.appendChild(od("div")).innerHTML=wd(n,v,i),t.appendChild(o)}t.addEventListener("click",t[Pc]=r=>{e.emit("rowclick",{event:r,filteredRowIndex:i,rowIndex:m,rowEl:t,rowData:v})}),e.emit("rowcreate",{filteredRowIndex:i,rowIndex:m,rowEl:t,rowData:v})},onItemUnrender:t=>{t[Pc]&&t.removeEventListener("click",t[Pc]),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&&ad(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=od("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=od("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,vd(e,c),Bc(c)}}cd(e),e.emit("headerrowcreate",l)}(this),t.virtualListHelper.setCount((null!==(r=t.filteredRows)&&void 0!==r?r:t.rows).length),sd(this),ad(this,!0),ud(this,!0);for(let e=0;e<t.rows.sortColumn.length;e++)pd(this,t.rows.sortColumn[e].column,t.rows.sortColumn[e].descending);e.adjustColumnWidthForSortArrow&&t.rows.sortColumn.length?this.tableWidthChanged(!0):e.virtualTable||this.tableWidthChanged(),isNaN(n)||(t.table.scrollTop=n),isNaN(i)||(dn(t.table,i),dn(t.header,i)),this.emit("renderskeleton")}return t.virtualListHelper.render(),this.emit("render"),this}clearAndRender(e){var t;let r=this._p;return r.tableSkeletonNeedsRendering=!0,null===(t=r.notifyRendererOfColumnsConfig)||void 0===t||t.call(r),(void 0===e||e)&&this.render(),this}setColumns(e,t){const r=this._p;e=e||[];let n=new Ac;for(let t=0,r=0;t<e.length;t++){let i=e[t],o=gd(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(),bd(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=gd(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(),bd(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(),bd(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,s=i.columns,a=r?i.visibleColumns:s.getColumns();if("string"==typeof e?o=s.get(e):"number"==typeof e&&(o=a[e]),"string"==typeof t?l=s.get(t):"number"==typeof t&&(l=a[t]),o&&l&&e!==t){let e=o.order,t=l.order,r=s.moveColumn(o,l).getVisibleColumns();if(i.visibleColumns.length!==r.length||i.visibleColumns.some((e,t)=>e!==r[t]))if(i.visibleColumns=r,bd(this),n.virtualTable)this.clearAndRender();else{var u,c;const r=Cn(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 s=i.visibleColumns[e],a=(null!==(u=s.actualWidthConsideringScrollbarWidth||s.actualWidth)&&void 0!==u?u:0)+"px",d=i.visibleColumns[t],f=(null!==(c=d.actualWidthConsideringScrollbarWidth||d.actualWidth)&&void 0!==c?c:0)+"px",h=i.tbody.childNodes;for(let r=0,n=h.length;r<n;r++){let n=h[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=a)}}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),bd(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=md(t,r.ignoreMin?0:this._o.minColumnWidth);if(r){let e=Gc(r);r.width=n.width,r.widthMode=n.mode;let t=Gc(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?Gc(t):null}getColumnConfig(e){let t=this._p.columns.get(e);return t?{order:t.order,width:Gc(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}setMaxColumnSortCount(e){const t=this._p,r=this._o;if(r.sortableColumns!==e&&(r.sortableColumns=e,t.table)){const e=Cn(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}getMaxColumnSortCount(){return this._o.sortableColumns}setSortableColumns(e){return this.setMaxColumnSortCount(e)}getSortableColumns(){return this.getMaxColumnSortCount()}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._p;let i=n.columns.get(e),o=n.rows.sortColumn.map(e=>({column:e.column,descending:e.descending}));if(i){if(r){for(let e=0;e<o.length;e++)if(o[e].column===i.name){e<o.length-1?o.length=0:(t=o[o.length-1].descending,o.splice(o.length-1,1));break}}else o.length=0;t=void 0!==t&&t,o.push({column:i.name,descending:!!t})}else o.length=0;return this.setSortedColumns(o)}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}setSortedColumns(e){const t=this._o,r=this._p;let n=r.columns,i=e.filter(e=>n.get(e.column)).map(e=>{let t=n.get(e.column);return{column:t.name,comparePath:t.comparePath||t.dataPath,descending:!!e.descending}});(t.sortableColumns>0&&i.length>=t.sortableColumns||i.length>=r.visibleColumns.length)&&(i.length=0),hd(this);for(let e=0;e<i.length;e++)pd(this,i[e].column,i[e].descending);t.adjustColumnWidthForSortArrow&&!r.tableSkeletonNeedsRendering&&this.tableWidthChanged(!0),r.rows.sortColumn=i,i.length&&(r.rows.sort(),r.filteredRows&&r.filteredRows.sort()),r.virtualListHelper&&r.virtualListHelper.invalidate().render();let o=[];for(let e=0;e<i.length;e++)o.push({column:i[e].column,descending:i[e].descending});return this.emit("sort",{sorts:o}),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?Cc(e):e;t[_c]=!0,e=t}return this._o.cellFormatter=e,this}setHeaderCellFormatter(e){return this._o.headerCellFormatter=e||function(e){return"string"==typeof e?Cc(e):e},this}setFilter(e){return this._o.filter=e,this}filter(e){const t=this._p;let r=this._o.filter||Fc;"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 wd(this._o,i,n)}getHtmlForRowDataCell(e,t){let r=this._p.columns.get(t);return r?wd(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():yd(this),i.tableSkeletonNeedsRendering=!0,n&&this.render()):n&&(i.virtualListHelper.addItemsAt(o,t),this._o.virtualTable?(sd(this),ad(this),this.render(),ud(this,!1)):i.tbody&&(this.render(),ad(this),ud(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?(yd(this),n.tableSkeletonNeedsRendering=!0,r&&this.render()):r&&(n.virtualListHelper.removeItemsAt(t,e),this._o.virtualTable?(sd(this),ad(this),this.render(),ud(this,!1)):(this.render(),ad(this),ud(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():yd(this),this.clearAndRender().emit("addrows",{count:e.length,clear:!0}),this}tableWidthChanged(e,t){let r=this._o,n=this._p,i=Dc(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=qc(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 f=r.minColumnWidth/d;if(isNaN(f)&&(f=0),f>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<f&&(t+=f-r.width,r.width=f)}for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];2===i.widthMode&&!i.ignoreMin&&i.width>f&&t>0&&(e=Math.min(t,i.width-f),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=Vc(this);s<e&&ud(this,!1);for(let e=0;e<u.length;e++)fd(this,u[e]);s>e&&ud(this,!1)}}return this}tableHeightChanged(){let e=this._o,t=this._p;if(!t.table)return this;const r=getComputedStyle(t.table);let n=vn(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-vn(t.header,!0,!0,!0),1)+"px"),e.virtualTable&&this.clearAndRender()),this}hideCellPreview(){return xd(this),this}abortCellPreview(){return this.hideCellPreview(),this}cancelColumnResize(){return Kc(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}}Rd.VERSION="@@VERSION",Rd.Width=Hc;class Id extends Rd{constructor(t){super(t),this.$el=e(this.el).data("dgtable",this).on("remove",()=>this.destroy()),this.on("headerrowdestroy",()=>{var t;const r=null===(t=this._p)||void 0===t?void 0:t.headerRow;r&&e(r).find(`div.${this._o.tableClassName}-header-cell`).remove()})}destroy(){var t,r;return null!==(t=this._p)&&void 0!==t&&t.table&&e(this._p.table).empty(),null!==(r=this._p)&&void 0!==r&&r.tbody&&e(this._p.tbody).empty(),super.destroy()}}export{Id as default};
|
|
1
|
+
import e from"jquery";var t,r,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i={};function o(){if(r)return t;r=1;var e=function(e){return e&&e.Math===Math&&e};return t=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")()}var l,s,a,u,c,d,f,h,p={};function m(){return s?l:(s=1,l=function(e){try{return!!e()}catch(e){return!0}})}function v(){if(u)return a;u=1;var e=m();return a=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function g(){if(d)return c;d=1;var e=m();return c=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function b(){if(h)return f;h=1;var e=g(),t=Function.prototype.call;return f=e?t.bind(t):function(){return t.apply(t,arguments)},f}var y,w,C,S,x,_,R,I,P,E,W,k,N,O,L,T,A,F,H,M,z,j,U,B,q,D,V,$,G,X,Y,J,K,Q,Z,ee,te,re,ne,ie,oe,le={};function se(){return C?w:(C=1,w=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function ae(){if(x)return S;x=1;var e=g(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return S=e?n:function(e){return function(){return r.apply(e,arguments)}},S}function ue(){if(R)return _;R=1;var e=ae(),t=e({}.toString),r=e("".slice);return _=function(e){return r(t(e),8,-1)},_}function ce(){return W||(W=1,E=function(e){return null==e}),E}function de(){if(N)return k;N=1;var e=ce(),t=TypeError;return k=function(r){if(e(r))throw new t("Can't call method on "+r);return r},k}function fe(){if(L)return O;L=1;var e=function(){if(P)return I;P=1;var e=ae(),t=m(),r=ue(),n=Object,i=e("".split);return I=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?i(e,""):n(e)}:n,I}(),t=de();return O=function(r){return e(t(r))},O}function he(){if(A)return T;A=1;var e="object"==typeof document&&document.all;return T=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function pe(){if(H)return F;H=1;var e=he();return F=function(t){return"object"==typeof t?null!==t:e(t)},F}function me(){if(z)return M;z=1;var e=o(),t=he();return M=function(r,n){return arguments.length<2?(i=e[r],t(i)?i:void 0):e[r]&&e[r][n];var i},M}function ve(){if(U)return j;U=1;var e=ae();return j=e({}.isPrototypeOf)}function ge(){if(q)return B;q=1;var e=o().navigator,t=e&&e.userAgent;return B=t?String(t):""}function be(){if(V)return D;V=1;var e,t,r=o(),n=ge(),i=r.process,l=r.Deno,s=i&&i.versions||l&&l.version,a=s&&s.v8;return a&&(t=(e=a.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]),D=t}function ye(){if(G)return $;G=1;var e=be(),t=m(),r=o().String;return $=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function we(){if(Y)return X;Y=1;var e=ye();return X=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Ce(){if(K)return J;K=1;var e=me(),t=he(),r=ve(),n=we(),i=Object;return J=n?function(e){return"symbol"==typeof e}:function(n){var o=e("Symbol");return t(o)&&r(o.prototype,i(n))},J}function Se(){if(Z)return Q;Z=1;var e=String;return Q=function(t){try{return e(t)}catch(e){return"Object"}}}function xe(){if(te)return ee;te=1;var e=he(),t=Se(),r=TypeError;return ee=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function _e(){if(ne)return re;ne=1;var e=xe(),t=ce();return re=function(r,n){var i=r[n];return t(i)?void 0:e(i)},re}function Re(){if(oe)return ie;oe=1;var e=b(),t=he(),r=pe(),n=TypeError;return ie=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,Pe,Ee,We,ke,Ne,Oe,Le,Te,Ae,Fe,He,Me,ze,je,Ue,Be,qe,De,Ve,$e,Ge,Xe,Ye,Je={exports:{}};function Ke(){if(We)return Ee;We=1;var e=o(),t=Object.defineProperty;return Ee=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function Qe(){if(ke)return Je.exports;ke=1;var e=Pe?Ie:(Pe=1,Ie=!1),t=o(),r=Ke(),n="__core-js_shared__",i=Je.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"}),Je.exports}function Ze(){if(Oe)return Ne;Oe=1;var e=Qe();return Ne=function(t,r){return e[t]||(e[t]=r||{})}}function et(){if(Te)return Le;Te=1;var e=de(),t=Object;return Le=function(r){return t(e(r))}}function tt(){if(Fe)return Ae;Fe=1;var e=ae(),t=et(),r=e({}.hasOwnProperty);return Ae=Object.hasOwn||function(e,n){return r(t(e),n)},Ae}function rt(){if(Me)return He;Me=1;var e=ae(),t=0,r=Math.random(),n=e(1.1.toString);return He=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function nt(){if(je)return ze;je=1;var e=o(),t=Ze(),r=tt(),n=rt(),i=ye(),l=we(),s=e.Symbol,a=t("wks"),u=l?s.for||s:s&&s.withoutSetter||n;return ze=function(e){return r(a,e)||(a[e]=i&&r(s,e)?s[e]:u("Symbol."+e)),a[e]}}function it(){if(Be)return Ue;Be=1;var e=b(),t=pe(),r=Ce(),n=_e(),i=Re(),o=nt(),l=TypeError,s=o("toPrimitive");return Ue=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 ot(){if(De)return qe;De=1;var e=it(),t=Ce();return qe=function(r){var n=e(r,"string");return t(n)?n:n+""}}function lt(){if(Xe)return Ge;Xe=1;var e=v(),t=m(),r=function(){if($e)return Ve;$e=1;var e=o(),t=pe(),r=e.document,n=t(r)&&t(r.createElement);return Ve=function(e){return n?r.createElement(e):{}},Ve}();return Ge=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function st(){if(Ye)return p;Ye=1;var e=v(),t=b(),r=function(){if(y)return le;y=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return le.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,le}(),n=se(),i=fe(),o=ot(),l=tt(),s=lt(),a=Object.getOwnPropertyDescriptor;return p.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])},p}var at,ut,ct,dt,ft,ht,pt,mt={};function vt(){if(dt)return ct;dt=1;var e=pe(),t=String,r=TypeError;return ct=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function gt(){if(ft)return mt;ft=1;var e=v(),t=lt(),r=function(){if(ut)return at;ut=1;var e=v(),t=m();return at=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}(),n=vt(),i=ot(),o=TypeError,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a="enumerable",u="configurable",c="writable";return mt.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},mt}function bt(){if(pt)return ht;pt=1;var e=v(),t=gt(),r=se();return ht=e?function(e,n,i){return t.f(e,n,r(1,i))}:function(e,t,r){return e[t]=r,e}}var yt,wt,Ct,St,xt,_t,Rt,It,Pt,Et,Wt,kt,Nt,Ot,Lt,Tt={exports:{}};function At(){if(St)return Ct;St=1;var e=ae(),t=he(),r=Qe(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),Ct=r.inspectSource}function Ft(){if(It)return Rt;It=1;var e=Ze(),t=rt(),r=e("keys");return Rt=function(e){return r[e]||(r[e]=t(e))}}function Ht(){return Et?Pt:(Et=1,Pt={})}function Mt(){if(Nt)return Tt.exports;Nt=1;var e=ae(),t=m(),r=he(),n=tt(),i=v(),l=function(){if(wt)return yt;wt=1;var e=v(),t=tt(),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 yt={EXISTS:i,PROPER:o,CONFIGURABLE:l}}().CONFIGURABLE,s=At(),a=function(){if(kt)return Wt;kt=1;var e,t,r,n=function(){if(_t)return xt;_t=1;var e=o(),t=he(),r=e.WeakMap;return xt=t(r)&&/native code/.test(String(r))}(),i=o(),l=pe(),s=bt(),a=tt(),u=Qe(),c=Ft(),d=Ht(),f="Object already initialized",h=i.TypeError,p=i.WeakMap;if(n||u.state){var m=u.state||(u.state=new p);m.get=m.get,m.has=m.has,m.set=m.set,e=function(e,t){if(m.has(e))throw new h(f);return t.facade=e,m.set(e,t),t},t=function(e){return m.get(e)||{}},r=function(e){return m.has(e)}}else{var v=c("state");d[v]=!0,e=function(e,t){if(a(e,v))throw new h(f);return t.facade=e,s(e,v,t),t},t=function(e){return a(e,v)?e[v]:{}},r=function(e){return a(e,v)}}return Wt={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(!l(r)||(n=t(r)).type!==e)throw new h("Incompatible receiver, "+e+" required");return n}}},Wt}(),u=a.enforce,c=a.get,d=String,f=Object.defineProperty,h=e("".slice),p=e("".replace),g=e([].join),b=i&&!t(function(){return 8!==f(function(){},"length",{value:8}).length}),y=String(String).split("String"),w=Tt.exports=function(e,t,r){"Symbol("===h(d(t),0,7)&&(t="["+p(d(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!n(e,"name")||l&&e.name!==t)&&(i?f(e,"name",{value:t,configurable:!0}):e.name=t),b&&r&&n(r,"arity")&&e.length!==r.arity&&f(e,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?i&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=u(e);return n(o,"source")||(o.source=g(y,"string"==typeof t?t:"")),e};return Function.prototype.toString=w(function(){return r(this)&&c(this).source||s(this)},"toString"),Tt.exports}function zt(){if(Lt)return Ot;Lt=1;var e=he(),t=gt(),r=Mt(),n=Ke();return Ot=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},Ot}var jt,Ut,Bt,qt,Dt,Vt,$t,Gt,Xt,Yt,Jt,Kt,Qt,Zt,er,tr,rr,nr={};function ir(){if(qt)return Bt;qt=1;var e=function(){if(Ut)return jt;Ut=1;var e=Math.ceil,t=Math.floor;return jt=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)},jt}();return Bt=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function or(){if(Vt)return Dt;Vt=1;var e=ir(),t=Math.max,r=Math.min;return Dt=function(n,i){var o=e(n);return o<0?t(o+i,0):r(o,i)}}function lr(){if(Gt)return $t;Gt=1;var e=ir(),t=Math.min;return $t=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function sr(){if(Yt)return Xt;Yt=1;var e=lr();return Xt=function(t){return e(t.length)}}var ar,ur,cr,dr,fr,hr,pr,mr,vr,gr,br,yr,wr,Cr,Sr,xr,_r,Rr,Ir={};function Pr(){if(cr)return ur;cr=1;var e=me(),t=ae(),r=function(){if(rr)return nr;rr=1;var e=function(){if(Zt)return Qt;Zt=1;var e=ae(),t=tt(),r=fe(),n=function(){if(Kt)return Jt;Kt=1;var e=fe(),t=or(),r=sr(),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 Jt={includes:n(!0),indexOf:n(!1)}}().indexOf,i=Ht(),o=e([].push);return Qt=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},Qt}(),t=(tr?er:(tr=1,er=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])).concat("length","prototype");return nr.f=Object.getOwnPropertyNames||function(r){return e(r,t)},nr}(),n=(ar||(ar=1,Ir.f=Object.getOwnPropertySymbols),Ir),i=vt(),o=t([].concat);return ur=e("Reflect","ownKeys")||function(e){var t=r.f(i(e)),l=n.f;return l?o(t,l(e)):t},ur}function Er(){if(fr)return dr;fr=1;var e=tt(),t=Pr(),r=st(),n=gt();return dr=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 Wr(){if(vr)return mr;vr=1;var e=o(),t=st().f,r=bt(),n=zt(),i=Ke(),l=Er(),s=function(){if(pr)return hr;pr=1;var e=m(),t=he(),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 hr=n}();return mr=function(o,a){var u,c,d,f,h,p=o.target,m=o.global,v=o.stat;if(u=m?e:v?e[p]||i(p,{}):e[p]&&e[p].prototype)for(c in a){if(f=a[c],d=o.dontCallGetSet?(h=t(u,c))&&h.value:u[c],!s(m?c:p+(v?".":"#")+c,o.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(o.sham||d&&d.sham)&&r(f,"sham",!0),n(u,c,f,o)}}}function kr(){if(wr)return yr;wr=1;var e=function(){if(br)return gr;br=1;var e={};return e[nt()("toStringTag")]="z",gr="[object z]"===String(e)}(),t=he(),r=ue(),n=nt()("toStringTag"),i=Object,o="Arguments"===r(function(){return arguments}());return yr=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},yr}function Nr(){if(Sr)return Cr;Sr=1;var e=kr(),t=String;return Cr=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function Or(){if(_r)return xr;_r=1;var e=Mt(),t=gt();return xr=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(){if(Rr)return i;Rr=1;var e=Wr(),t=v(),r=o(),n=ae(),l=tt(),s=he(),a=ve(),u=Nr(),c=Or(),d=Er(),f=r.Symbol,h=f&&f.prototype;if(t&&s(f)&&(!("description"in h)||void 0!==f().description)){var p={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=a(h,this)?new f(e):void 0===e?f():f(e);return""===e&&(p[t]=!0),t};d(m,f),m.prototype=h,h.constructor=m;var g="Symbol(description detection)"===String(f("description detection")),b=n(h.valueOf),y=n(h.toString),w=/^Symbol\((.*)\)[^)]+$/,C=n("".replace),S=n("".slice);c(h,"description",{configurable:!0,get:function(){var e=b(this);if(l(p,e))return"";var t=y(e),r=g?S(t,7,-1):C(t,w,"$1");return""===r?void 0:r}}),e({global:!0,constructor:!0,forced:!0},{Symbol:m})}}();var Lr,Tr,Ar,Fr,Hr,Mr,zr,jr,Ur,Br,qr,Dr,Vr,$r,Gr,Xr={};function Yr(){if(Tr)return Lr;Tr=1;var e=Se(),t=TypeError;return Lr=function(r,n){if(!delete r[n])throw new t("Cannot delete property "+e(n)+" of "+e(r))},Lr}function Jr(){if(Fr)return Ar;Fr=1;var e=ae();return Ar=e([].slice)}function Kr(){if(jr)return zr;jr=1;var e=m();return zr=function(t,r){var n=[][t];return!!n&&e(function(){n.call(null,r||function(){return 1},1)})}}!function(){if(Gr)return Xr;Gr=1;var e=Wr(),t=ae(),r=xe(),n=et(),i=sr(),o=Yr(),l=Nr(),s=m(),a=function(){if(Mr)return Hr;Mr=1;var e=Jr(),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),f=c.length,h=d.length,p=0,m=0;p<f||m<h;)n[p+m]=p<f&&m<h?i(c[p],d[m])<=0?c[p++]:d[m++]:p<f?c[p++]:d[m++];return n};return Hr=r}(),u=Kr(),c=function(){if(Br)return Ur;Br=1;var e=ge().match(/firefox\/(\d+)/i);return Ur=!!e&&+e[1]}(),d=function(){if(Dr)return qr;Dr=1;var e=ge();return qr=/MSIE|Trident/.test(e)}(),f=be(),h=function(){if($r)return Vr;$r=1;var e=ge().match(/AppleWebKit\/(\d+)\./);return Vr=!!e&&+e[1]}(),p=[],v=t(p.sort),g=t(p.push),b=s(function(){p.sort(void 0)}),y=s(function(){p.sort(null)}),w=u("sort"),C=!s(function(){if(f)return f<70;if(!(c&&c>3)){if(d)return!0;if(h)return h<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)p.push({k:t+n,v:r})}for(p.sort(function(e,t){return t.v-e.v}),n=0;n<p.length;n++)t=p[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});e({target:"Array",proto:!0,forced:b||!y||!w||!C},{sort:function(e){void 0!==e&&r(e);var t=n(this);if(C)return void 0===e?v(t):v(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 Qr,Zr,en,tn,rn,nn={};!function(){if(rn)return nn;rn=1;var e=v(),t=Or(),r=function(){if(Zr)return Qr;Zr=1;var e=o(),t=m(),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 Qr={correct:n}}(),n=function(){if(tn)return en;tn=1;var e=vt();return en=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}}();e&&!r.correct&&(t(RegExp.prototype,"flags",{configurable:!0,get:n}),r.correct=!0)}();var on,ln,sn={};let an;ln||(ln=1,function(){if(on)return sn;on=1;var e=Wr(),t=o();e({global:!0,forced:t.globalThis!==t},{globalThis:t})}());const un=()=>{const e=document.createElement("div");e.dir="rtl",Object.assign(e.style,{direction:"rtl",fontSize:"14px",width:"1px",height:"1px",position:"absolute",top:"-1000px",overflow:"scroll"}),e.textContent="A",document.body.appendChild(e);let t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=1,0===Math.floor(e.scrollLeft)&&(t="negative")),e.parentNode.removeChild(e),t};function cn(e,t){if(void 0===t&&(t="rtl"===getComputedStyle(e).direction),!0===t&&void 0===an&&(an=un()),!t)return e.scrollLeft;switch(an){case"negative":return e.scrollLeft+e.scrollWidth-e.clientWidth;case"reverse":return e.scrollWidth-e.scrollLeft-e.clientWidth;default:return e.scrollLeft}}function dn(e,t,r){e.scrollLeft=function(e,t,r){return void 0===r&&(r="rtl"===getComputedStyle(e).direction),function(e,t,r){if(void 0===r&&(r="rtl"===getComputedStyle(e).direction),!0===r&&void 0===an&&(an=un()),!r)return t;switch(an){case"negative":return t-e.scrollWidth+e.clientWidth;case"reverse":return e.scrollWidth-t-e.clientWidth;default:return t}}(e,r?e.scrollWidth-e.clientWidth-t:t,r)}(e,t,r)}const fn=function(e,t){for(let[r,n]of Object.entries(t))e.style[r]=null==n?"":String(n)},hn=function(e,t,r,n,i){return(...o)=>{let l,s,a,u,c=o[0];if(e?(l=o[1],s=!!o[2],a=!!o[3],u=!!o[4]):(s=!!o[1],a=!!o[2],u=!!o[3]),c===window)return c.document.documentElement[`client${r}`];if(9===c.nodeType){const e=c.documentElement,t=c.body;return Math.max(t[`scroll${r}`],e[`scroll${r}`],t[`offset${r}`],e[`offset${r}`],e[`client${r}`])}{let o,d,f=!1,h=!1;if(!e&&"getBoundingClientRect"in c&&(o=c.getBoundingClientRect()[t],f=!0,h=!0),(void 0===o||u||f!==s||h!==a)&&(d=e?getComputedStyle(c,l):getComputedStyle(c)),void 0===o){let e=d[t];"auto"===e?(o=c[`client${r}`],f=!0):o=parseFloat(e),"border-box"===d.boxSizing&&(f=!0,h=!0)}if(s!==f){let e=parseFloat(d[`padding-${n}`]||0)+parseFloat(d[`padding-${i}`]||0);s?o+=e:o-=e}if(a!==h){let e=parseFloat(d[`border-${n}-width`]||0)+parseFloat(d[`border-${i}-width`]||0);a?o+=e:o-=e}return o<0&&(o=0),u&&(o+=parseFloat(d[`margin-${n}`]||0)+parseFloat(d[`margin-${i}`]||0)),o}}},pn=hn(!1,"width","Width","left","right"),mn=hn(!1,"height","Height","top","bottom"),vn=(gn="left",bn="right",(e,t,r=!1,n=!1,i=!1)=>{if(e===window)return;if(9===e.nodeType)return;const o=getComputedStyle(e);let l=!1;if("border-box"===o.boxSizing&&(l=!0),r=!!r,n=!!n,(i=!!i)&&(t-=(parseFloat(o[`margin-${gn}`])||0)+(parseFloat(o[`margin-${bn}`])||0)),r!==l){let e=parseFloat(o[`padding-${gn}`]||0)+parseFloat(o[`padding-${bn}`]||0);r?t-=e:t+=e}if(n!==l){let e=(parseFloat(o[`border-${gn}-width`])||0)+(parseFloat(o[`border-${bn}-width`])||0);n?t-=e:t+=e}t<0&&(t=0),e.style.width=t+"px"});var gn,bn;const yn=e=>{if(!e.getClientRects().length)return{top:0,left:0};let t=e.getBoundingClientRect(),r=e.ownerDocument.defaultView;return{top:t.top+r.pageYOffset,left:t.left+r.pageXOffset}};let wn=null;const Cn=function(e,t){if(null===wn&&(()=>{try{document.createElement("div").querySelector(":scope > div"),wn=!0}catch(e){wn=!1}})(),!0===wn)return e.querySelectorAll(t.replace(/((?:^|,)\s*)/g,"$1:scope "));{let r=e.id;const n="ID_"+Date.now();e.id=n,t=t.replace(/((?:^|,)\s*)/g,"$1#"+n);try{return e.querySelectorAll(t)}finally{this.id=r}}};class Sn{constructor(){this._events=[]}add(e,t,r,n){let i=t.split("."),o=i[0],l=i[1];e.addEventListener(o,r,n||!1);let s=!0===n||"object"==typeof n&&!0===n.capture;return this._events.push({el:e,name:o,namespace:l,handler:r,useCapture:s}),this}remove(e,t,r,n){let i=t?t.split("."):"",o=i[0],l=i[1],s=!0===n||"object"==typeof n&&!0===n.capture,a=[],u=[];if(e||o||l||r||void 0!==n)for(let t of this._events)e&&t.el!==e||o&&t.name!==o||l&&t.namespace!==l||r&&t.handler!==r||void 0!==n&&t.useCapture!==s?a.push(t):u.push(t);else u=this._events;this._events=a;for(let e of u)e.el.removeEventListener(e.name,e.handler,e.useCapture);return this}}const xn=Object.prototype.hasOwnProperty,_n=void 0!==Element.prototype.insertAdjacentElement;function Rn(e,t,r){t?!1===_n||e instanceof DocumentFragment?r.insertBefore(e,t):t.insertAdjacentElement("beforebegin",e):r.appendChild(e)}function In(e,t,r,n){return e.parentNode!==n?(t||(t=document.createDocumentFragment()),t.appendChild(e)):(t&&t.childNodes.length>0&&(Rn(t,r,n),t=null),e.nextSibling!==r&&Rn(e,r,n)),t}class Pn{constructor(e){var t;const r=this._p={list:e.list||null,hookScrollEvent:void 0===e.hookScrollEvent||!!e.hookScrollEvent,count:e.count||0,virtual:void 0===e.virtual||!!e.virtual,userItemsParent:e.itemsParent||null,setVirtualWrapperWidth:null===(t=e.autoVirtualWrapperWidth)||void 0===t||t,estimatedItemHeight:20,buffer:5,itemHeightEstimatorFn:null,itemElementCreatorFn:kn,onItemRender:null,onItemUnrender:null,onScrollHeightChange:null,virtualWrapper:null,currentItemsParent:null,cachedItemHeights:[],cachedItemEstimatedHeights:[],cachedItemPositions:[],itemPositionsNeedsUpdate:0,boundRender:this.render.bind(this),existingEls:[]};r.currentItemsParent=r.userItemsParent||r.list,this._hookEvents(),"number"==typeof e.count&&this.setCount(e.count),"boolean"==typeof e.virtual&&this.setVirtual(e.virtual),"number"==typeof e.estimatedItemHeight&&this.setEstimatedItemHeight(e.estimatedItemHeight),"number"==typeof e.buffer&&this.setBuffer(e.buffer),"function"==typeof e.itemHeightEstimatorFn&&this.setItemHeightEstimatorFn(e.itemHeightEstimatorFn),"function"==typeof e.itemElementCreatorFn&&this.setItemElementCreatorFn(e.itemElementCreatorFn),"function"==typeof e.onItemRender&&this.setOnItemRender(e.onItemRender),"function"==typeof e.onItemUnrender&&this.setOnItemUnrender(e.onItemUnrender),"function"==typeof e.onScrollHeightChange&&this.setOnScrollHeightChange(e.onScrollHeightChange)}destroy(){this._unhookEvents().invalidate()._destroyElements()}setHookScrollEvent(e){const t=this._p;return e=void 0===e||!!e,t.hookScrollEvent===e||(t.hookScrollEvent=e,this._unhookEvents()._hookEvents()),this}isHookScrollEventEnabled(){return this._p.hookScrollEvent}setCount(e){return this._p.count=e,this.invalidate()}getCount(){return this._p.count}setVirtual(e){const t=this._p;return e=void 0===e||!!e,t.virtual===e||(t.virtual=e,this._hookEvents().invalidate()._destroyElements()),this}isVirtual(){return this._p.virtual}setEstimatedItemHeight(e){return this._p.estimatedItemHeight=Math.abs(("number"==typeof e?e:Number(e))||20),this}getEstimatedItemHeight(){return this._p.estimatedItemHeight}setAutoVirtualWrapperWidth(e){const t=this._p;return t.autoVirtualWrapperWidth=void 0===e||!!e,t.virtualWrapper&&t.autoVirtualWrapperWidth!==t.virtualWrapperWidthWasSet&&(t.virtualWrapper.style.width=t.autoVirtualWrapperWidth?"100%":"",t.virtualWrapperWidthWasSet=t.autoVirtualWrapperWidth),this}isAutoVirtualWrapperWidth(){return this._p.autoVirtualWrapperWidth}setBuffer(e){return this._p.buffer=Math.abs("number"==typeof e?e:Number(e)||5),this}getBuffer(){return this._p.buffer}setItemHeightEstimatorFn(e){return this._p.itemHeightEstimatorFn=e,this}setItemElementCreatorFn(e){return this._p.itemElementCreatorFn=e||kn,this}setOnItemRender(e){return this._p.onItemRender=e,this}setOnItemUnrender(e){return this._p.onItemUnrender=e,this}setOnScrollHeightChange(e){return this._p.onScrollHeightChange=e,this}estimateFullHeight(){const e=this._p;if(0===e.count)return 0;if(e.virtual)return this._calculateItemPosition(e.count)||0;{const t=e.existingEls;if(e.count===t.length){let e=t[0].getBoundingClientRect(),r=t[t.length-1].getBoundingClientRect();return r.top-e.top+r.height}return this._calculateItemPosition(e.count)||0}}invalidatePositions(){const e=this._p;return e.itemPositionsNeedsUpdate=0,e.cachedItemHeights=[],e.cachedItemEstimatedHeights=[],e.cachedItemPositions=[],e.cachedItemHeights.length=e.count,e.cachedItemEstimatedHeights.length=e.count,e.cachedItemPositions.length=e.count,this}invalidate(){const e=this._p;this.invalidatePositions(),e.virtual||this._destroyElements();for(let t of e.existingEls)delete t[En];return this}render(){const e=this._p,t=e.list,r=e.virtual;let n=e.virtualWrapper,i=e.currentItemsParent,o=t.scrollTop,l=o+t.clientHeight,s=e.count,a=e.buffer,u=e.onItemUnrender,c=e.existingEls,d=c.length;if(r){const r=t.clientWidth;n||(n=e.virtualWrapper=e.userItemsParent,n||(n=e.virtualWrapper=document.createElement("div"),t.appendChild(n)),this._resetCurrentItemsParent(),i=e.currentItemsParent,e.autoVirtualWrapperWidth?(n.style.width="100%",e.virtualWrapperWidthWasSet=!0):e.virtualWrapperWidthWasSet=!1);for(let e=0;e<d;e++)c[e][Wn]=!0;this._calculateItemPosition(e.count-1);let u=this._getExistingElsRange(),h=Nn(e.cachedItemPositions,o),p=Math.max(0,h-a),m=p,v=this._calculateItemPosition(m),g=a,b=Math.max(m,Nn(e.cachedItemPositions,l-1)+1+a),y=[],w=null,C=n.childNodes[0];const S=function(e){let t;return-1!==u.firstIndex&&e>=u.firstIndex&&e<=u.lastIndex&&(t=c.find(t=>t[En]===e&&!0===t[Wn])),void 0===t&&(t=(u.firstIndex<p||u.firstValidArrayIndex>0?c.find(e=>(e[En]<p||!1===xn.call(e,En))&&!0===e[Wn]):void 0)||Ln(c,e=>!0===e[Wn])),void 0!==t&&delete t[Wn],t};for(;m<s&&m<b;m++){let e=S(m);C&&C===e&&(C=C.nextSibling);const t=this._dequeueElementForIndex(e,m,C,!0);y.push([t,m]),w=In(t,w,C,i)}w&&w.childNodes.length>0&&Rn(w,C,i);for(let t of y){const r=t[1];this._insertItemAndFlow(t[0],r,!1),v=e.cachedItemPositions[r]+e.cachedItemHeights[r]}if(v<l)for(;(v<l||g-- >0)&&m<s;m++){let t=S(m);C&&C===t&&(C=C.nextSibling),this._dequeueElementForIndex(t,m,C,!1),v=e.cachedItemPositions[m]+e.cachedItemHeights[m]}let x=this.estimateFullHeight(),_=x+"px";var f;n.style.height!==_&&(e.virtualWrapper.style.height=_,null===(f=e.onScrollHeightChange)||void 0===f||f.call(e,x)),r!==t.clientWidth&&this.render()}else if(s!==c.length){for(let e=0;e<d;e++)c[e][Wn]=!0;let e=i.childNodes[0],t=null;for(let r=0;r<s;r++){let n=c.find(e=>e[En]===r&&!0===e[Wn]);void 0!==n&&delete n[Wn],e&&e===n&&(e=e.nextSibling),t=In(this._dequeueElementForIndex(n,r,e,!0),t,e,i)}t&&t.childNodes.length>0&&Rn(t,e,i)}d=c.length;for(let e=0;e<d;e++){const t=c[e];if(!0!==t[Wn])continue;let r=t.parentNode;r&&r.removeChild(t),u&&void 0!==t[En]&&u(t),c.splice(e,1),e--,d--}}addItemsAt(e,t=-1){if("number"!=typeof e||e<=0)return this;const r=this._p;if((t<0||t>=r.count)&&(t=r.count),r.count+=e,r.virtual)t>=0&&t<r.count&&this._invalidateItemIndexesAt(t,-1);else{let n=r.existingEls;if(n.length!==r.count-e)return this;let i=this._getExistingElsRange();if(-1===i.firstValidArrayIndex)return this;const o=r.currentItemsParent;let l=i.firstValidArrayIndex+t-i.firstIndex;this._pushItemIndexesAt(t,e);let s=n[l-1]?n[l-1].nextSibling:n[0],a=null;for(let r=t,n=t+e;r<n;r++)a=In(this._dequeueElementForIndex(void 0,r,s,!0),a,s,o);a&&a.childNodes.length>0&&Rn(a,s,o)}return this}removeItemsAt(e,t){const r=this._p;if("number"!=typeof e||"number"!=typeof t||e<=0||t<0||t>=r.count)return this;if(r.count-=Math.min(e,r.count-t),r.virtual)this._invalidateItemIndexesAt(t,-1);else{let n=r.existingEls;if(n.length!==r.count+e)return this;let i=this._getExistingElsRange();if(-1===i.firstValidArrayIndex)return this;this._pushItemIndexesAt(t+e,-e);const o=r.onItemUnrender;let l=i.firstValidArrayIndex+t-i.firstIndex;if(l<n.length){for(let t=0;t<e;t++){let e=n[l+t],r=e.parentNode;r&&r.removeChild(e),o&&void 0!==e[En]&&o(e)}n.splice(l,e)}}return this}refreshItemAt(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return this;if(t.virtual)this._invalidateItemIndexesAt(e,1);else{let r=t.existingEls;if(r.length!==t.count)return this;let n=this._getExistingElsRange();if(e>=n.firstIndex&&e<=n.lastIndex){let t=r[n.firstValidArrayIndex+e-n.firstIndex];delete t[En],this._dequeueElementForIndex(t,e,t.nextSibling,!1)}}return this}isItemRendered(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return!1;let r=this._getExistingElsRange();return e>=r.firstIndex&&e<=r.lastIndex}getItemElementAt(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return;let r=t.existingEls,n=this._getExistingElsRange();return e>=n.firstIndex&&e<=n.lastIndex?r[n.firstValidArrayIndex+e-n.firstIndex]:void 0}getItemPosition(e){const t=this._p;if(!("number"!=typeof e||e<0||e>=t.count)){if(t.virtual)return this._calculateItemPosition(e);{let r=this.getItemElementAt(e);if(void 0===r)return;const n=t.list;return yn(r).top-yn(n).top+n.scrollTop}}}getItemIndexFromElement(e){return e?e[En]:void 0}getItemSize(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return;let r=t.cachedItemHeights[e-1];return void 0===r&&(r=t.itemHeightEstimatorFn?t.itemHeightEstimatorFn(e-1):null,"number"!=typeof r&&(r=t.estimatedItemHeight),t.cachedItemEstimatedHeights[e-1]=r),r}getVisibleItemCount(){const e=this._p,t=e.list;let r,n,i=t.scrollTop,o=t.clientHeight;if(e.virtual)r=Nn(e.cachedItemPositions,i),n=Nn(e.cachedItemPositions,i+o,r);else{const t=e=>{let t=this.getItemPosition(e);return void 0===t&&(t=1/0),t};r=On(e.count,t,i),n=On(e.count,t,i+o,r)}return this.getItemPosition(n)===i+o&&n--,n-r+1}createGhostItemElement(e,t,r){const n=this._p;let i=this._dequeueElementForIndex(null,e,!1,!0);try{t&&n.currentItemsParent.appendChild(i),r(i)}finally{if(t){let e=i.parentNode;e&&e.removeChild(i)}n.onItemUnrender&&n.onItemUnrender(i)}}_resetCurrentItemsParent(){var e,t;const r=this._p;r.currentItemsParent=null!==(e=null!==(t=r.virtualWrapper)&&void 0!==t?t:r.userItemsParent)&&void 0!==e?e:r.list}_destroyElements(){const e=this._p,t=e.onItemUnrender,r=e.existingEls;for(let e=0;e<r.length;e++){const n=r[e];let i=n.parentNode;i&&i.removeChild(n),t&&void 0!==n[En]&&t(n)}return r.length=0,e.virtualWrapper&&(e.virtualWrapper!==e.userItemsParent&&e.virtualWrapper.parentNode&&e.virtualWrapper.parentNode.removeChild(e.virtualWrapper),e.virtualWrapper=null,this._resetCurrentItemsParent()),this}_invalidateItemIndexesAt(e,t){const r=this._p;this._setItemPositionsNeedsUpdate(e);let n=r.existingEls,i=n.length,o=this._getExistingElsRange();if(-1!==o.firstValidArrayIndex&&(-1===t&&(t=n.length),e>=o.firstIndex&&e<=o.lastIndex))for(let r=o.firstValidArrayIndex+e-o.firstIndex,l=0;r<i&&l<t;r++,l++)delete n[r][En]}_pushItemIndexesAt(e,t){let r=this._p.existingEls,n=r.length,i=this._getExistingElsRange();if(-1!==i.firstValidArrayIndex&&e>=i.firstIndex&&e<=i.lastIndex)for(let o=i.firstValidArrayIndex+e-i.firstIndex;o<n;o++)r[o][En]+=t}_hookEvents(){const e=this._p;return this._unhookEvents(),e.virtual&&e.hookScrollEvent&&e.list&&e.list.addEventListener("scroll",e.boundRender),this}_unhookEvents(){const e=this._p;return e.list&&e.list.removeEventListener("scroll",e.boundRender),this}_setItemPositionsNeedsUpdate(e){const t=this._p;e<t.itemPositionsNeedsUpdate&&(t.itemPositionsNeedsUpdate=e)}_calculateItemPosition(e){const t=this._p,r=t.cachedItemPositions;if(e>=t.itemPositionsNeedsUpdate){const n=t.count,i=t.cachedItemHeights,o=t.cachedItemEstimatedHeights,l=t.estimatedItemHeight,s=t.itemHeightEstimatorFn;i.length!==n&&(i.length=n,o.length=n,r.length=n);let a=t.itemPositionsNeedsUpdate,u=Math.min(e,n),c=0;a>0&&(c=r[a-1]);for(let e=a;e<=u;e++){if(0===e){r[e]=c;continue}const t=e-1;let n=i[t];void 0===n&&(n=s?s(t):null,"number"!=typeof n&&(n=l),o[t]=n),c+=n,r[e]=c}t.itemPositionsNeedsUpdate=u+1}if(e>0&&e===t.count){let n=t.cachedItemHeights[e-1];return void 0===n&&(n=t.itemHeightEstimatorFn?t.itemHeightEstimatorFn(e-1):null,"number"!=typeof n&&(n=t.estimatedItemHeight),t.cachedItemEstimatedHeights[e-1]=n),r[e-1]+n}return r[e]}_dequeueElementForIndex(e,t,r,n){const i=this._p,o=i.virtualWrapper;i.currentItemsParent;const l=i.existingEls,s=i.onItemRender,a=i.onItemUnrender,u=!e,c=u||t!==e[En];if(e?a&&c&&a(e):(e=i.itemElementCreatorFn(),o&&!1!==r&&(e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.right="0")),c&&(e.innerHTML="",s&&s(e,t)),!1!==r){if(r instanceof Node||(r=null),!u){let t=l.indexOf(e);-1!==t&&l.splice(t,1)}let i=r?l.indexOf(r):-1;-1===i?l.push(e):l.splice(i,0,e),n||this._insertItemAndFlow(e,t,r)}return e[En]=t,e}_insertItemAndFlow(e,t,r){const n=this._p,i=n.virtualWrapper,o=n.currentItemsParent;if(!1!==r&&(r instanceof Node||(r=null),e.parentNode===o&&e.nextSibling===r||Rn(e,r,o)),i){let r=e.getBoundingClientRect().height,i=n.cachedItemHeights[t];i!==r&&(n.cachedItemHeights[t]=r),(void 0!==i&&r!==i||void 0===i&&r!==n.cachedItemEstimatedHeights[t])&&this._setItemPositionsNeedsUpdate(t+1);let o=this._calculateItemPosition(t);const l=An();!1===l?e.style.top=`${o}px`:e.style[l]=`translateY(${o}px)`}}_getExistingElsRange(){const e=this._p.existingEls;let t=-1,r=-1;for(let r=0,n=e.length;r<n;r++)if(!1!==xn.call(e[r],En)){t=r;break}for(let t=e.length-1;t>=0;t--)if(!1!==xn.call(e[t],En)){r=t;break}return{firstValidArrayIndex:t,lastValidArrayIndex:r,firstIndex:-1!==t?e[t][En]:-1,lastIndex:-1!==r?e[r][En]:-1}}}const En=Symbol("index"),Wn=Symbol("reuse"),kn=()=>document.createElement("li"),Nn=(e,t,r=0,n=-1)=>{let i=e.length;if(n<0&&(n+=i),n<=r)return n;for(;r<=n;){let o=Math.floor(r+(n-r)/2),l=e[o];if(l===t||l<=t&&o<i&&e[o+1]>t){for(;o>0&&e[o-1]===l;)o--;return o}l<t?r=o+1:n=o-1}return-1===n?0:i-1},On=(e,t,r,n=0,i=-1)=>{if(i<0&&(i+=e),i<=n)return i;for(;n<=i;){let o=Math.floor(n+(i-n)/2),l=t(o);if(l===r||l<=r&&o<e&&t(o+1)>r){for(;o>0&&t(o-1)===l;)o--;return o}l<r?n=o+1:i=o-1}return-1===i?0:t(e-1)},Ln=(e,t)=>{for(let r=e.length-1;r>=0;r--)if(t(e[r]))return e[r]};let Tn=null;const An=()=>{if(null===Tn){let e=["transform","WebkitTransform","MozTransform","OTransform","msTransform"],t=document.createElement("div");Tn=!1;for(let r of e)if(t&&void 0!==t.style[r]){Tn=r;break}}return Tn};var Fn,Hn,Mn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},zn={};function jn(){if(Hn)return Fn;Hn=1;var e=function(e){return e&&e.Math===Math&&e};return Fn=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof Mn&&Mn)||e("object"==typeof Fn&&Fn)||function(){return this}()||Function("return this")()}var Un,Bn,qn,Dn,Vn,$n,Gn,Xn,Yn={};function Jn(){return Bn?Un:(Bn=1,Un=function(e){try{return!!e()}catch(e){return!0}})}function Kn(){if(Dn)return qn;Dn=1;var e=Jn();return qn=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function Qn(){if($n)return Vn;$n=1;var e=Jn();return Vn=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function Zn(){if(Xn)return Gn;Xn=1;var e=Qn(),t=Function.prototype.call;return Gn=e?t.bind(t):function(){return t.apply(t,arguments)},Gn}var ei,ti,ri,ni,ii,oi,li,si,ai,ui,ci,di,fi,hi,pi,mi,vi,gi,bi,yi,wi,Ci,Si,xi,_i,Ri,Ii,Pi,Ei,Wi,ki,Ni,Oi,Li,Ti,Ai,Fi,Hi,Mi,zi,ji,Ui={};function Bi(){if(ei)return Ui;ei=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return Ui.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,Ui}function qi(){return ri?ti:(ri=1,ti=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Di(){if(ii)return ni;ii=1;var e=Qn(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return ni=e?n:function(e){return function(){return r.apply(e,arguments)}},ni}function Vi(){if(li)return oi;li=1;var e=Di(),t=e({}.toString),r=e("".slice);return oi=function(e){return r(t(e),8,-1)}}function $i(){if(ai)return si;ai=1;var e=Di(),t=Jn(),r=Vi(),n=Object,i=e("".split);return si=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?i(e,""):n(e)}:n}function Gi(){return ci?ui:(ci=1,ui=function(e){return null==e})}function Xi(){if(fi)return di;fi=1;var e=Gi(),t=TypeError;return di=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function Yi(){if(pi)return hi;pi=1;var e=$i(),t=Xi();return hi=function(r){return e(t(r))}}function Ji(){if(vi)return mi;vi=1;var e="object"==typeof document&&document.all;return mi=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function Ki(){if(bi)return gi;bi=1;var e=Ji();return gi=function(t){return"object"==typeof t?null!==t:e(t)}}function Qi(){if(wi)return yi;wi=1;var e=jn(),t=Ji();return yi=function(r,n){return arguments.length<2?(i=e[r],t(i)?i:void 0):e[r]&&e[r][n];var i},yi}function Zi(){if(Si)return Ci;Si=1;var e=Di();return Ci=e({}.isPrototypeOf)}function eo(){if(_i)return xi;_i=1;var e=jn().navigator,t=e&&e.userAgent;return xi=t?String(t):""}function to(){if(Ii)return Ri;Ii=1;var e,t,r=jn(),n=eo(),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]),Ri=t}function ro(){if(Ei)return Pi;Ei=1;var e=to(),t=Jn(),r=jn().String;return Pi=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function no(){if(ki)return Wi;ki=1;var e=ro();return Wi=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function io(){if(Oi)return Ni;Oi=1;var e=Qi(),t=Ji(),r=Zi(),n=no(),i=Object;return Ni=n?function(e){return"symbol"==typeof e}:function(n){var o=e("Symbol");return t(o)&&r(o.prototype,i(n))}}function oo(){if(Ti)return Li;Ti=1;var e=String;return Li=function(t){try{return e(t)}catch(e){return"Object"}}}function lo(){if(Fi)return Ai;Fi=1;var e=Ji(),t=oo(),r=TypeError;return Ai=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function so(){if(Mi)return Hi;Mi=1;var e=lo(),t=Gi();return Hi=function(r,n){var i=r[n];return t(i)?void 0:e(i)}}var ao,uo,co,fo,ho,po,mo,vo,go,bo,yo,wo,Co,So,xo,_o,Ro,Io,Po,Eo,Wo,ko,No,Oo,Lo={exports:{}};function To(){return uo?ao:(uo=1,ao=!1)}function Ao(){if(fo)return co;fo=1;var e=jn(),t=Object.defineProperty;return co=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function Fo(){if(ho)return Lo.exports;ho=1;var e=To(),t=jn(),r=Ao(),n="__core-js_shared__",i=Lo.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"}),Lo.exports}function Ho(){if(mo)return po;mo=1;var e=Fo();return po=function(t,r){return e[t]||(e[t]=r||{})}}function Mo(){if(go)return vo;go=1;var e=Xi(),t=Object;return vo=function(r){return t(e(r))}}function zo(){if(yo)return bo;yo=1;var e=Di(),t=Mo(),r=e({}.hasOwnProperty);return bo=Object.hasOwn||function(e,n){return r(t(e),n)}}function jo(){if(Co)return wo;Co=1;var e=Di(),t=0,r=Math.random(),n=e(1.1.toString);return wo=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function Uo(){if(xo)return So;xo=1;var e=jn(),t=Ho(),r=zo(),n=jo(),i=ro(),o=no(),l=e.Symbol,s=t("wks"),a=o?l.for||l:l&&l.withoutSetter||n;return So=function(e){return r(s,e)||(s[e]=i&&r(l,e)?l[e]:a("Symbol."+e)),s[e]}}function Bo(){if(Po)return Io;Po=1;var e=function(){if(Ro)return _o;Ro=1;var e=Zn(),t=Ki(),r=io(),n=so(),i=function(){if(ji)return zi;ji=1;var e=Zn(),t=Ji(),r=Ki(),n=TypeError;return zi=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")}}(),o=Uo(),l=TypeError,s=o("toPrimitive");return _o=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)}}(),t=io();return Io=function(r){var n=e(r,"string");return t(n)?n:n+""}}function qo(){if(Wo)return Eo;Wo=1;var e=jn(),t=Ki(),r=e.document,n=t(r)&&t(r.createElement);return Eo=function(e){return n?r.createElement(e):{}}}function Do(){if(No)return ko;No=1;var e=Kn(),t=Jn(),r=qo();return ko=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function Vo(){if(Oo)return Yn;Oo=1;var e=Kn(),t=Zn(),r=Bi(),n=qi(),i=Yi(),o=Bo(),l=zo(),s=Do(),a=Object.getOwnPropertyDescriptor;return Yn.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])},Yn}var $o,Go,Xo,Yo,Jo,Ko,Qo,Zo={};function el(){if(Go)return $o;Go=1;var e=Kn(),t=Jn();return $o=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function tl(){if(Yo)return Xo;Yo=1;var e=Ki(),t=String,r=TypeError;return Xo=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function rl(){if(Jo)return Zo;Jo=1;var e=Kn(),t=Do(),r=el(),n=tl(),i=Bo(),o=TypeError,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a="enumerable",u="configurable",c="writable";return Zo.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},Zo}function nl(){if(Qo)return Ko;Qo=1;var e=Kn(),t=rl(),r=qi();return Ko=e?function(e,n,i){return t.f(e,n,r(1,i))}:function(e,t,r){return e[t]=r,e}}var il,ol,ll,sl,al,ul,cl,dl,fl,hl,pl,ml,vl,gl,bl,yl={exports:{}};function wl(){if(ol)return il;ol=1;var e=Kn(),t=zo(),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 il={EXISTS:i,PROPER:o,CONFIGURABLE:l}}function Cl(){if(sl)return ll;sl=1;var e=Di(),t=Ji(),r=Fo(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),ll=r.inspectSource}function Sl(){if(dl)return cl;dl=1;var e=Ho(),t=jo(),r=e("keys");return cl=function(e){return r[e]||(r[e]=t(e))}}function xl(){return hl?fl:(hl=1,fl={})}function _l(){if(ml)return pl;ml=1;var e,t,r,n=function(){if(ul)return al;ul=1;var e=jn(),t=Ji(),r=e.WeakMap;return al=t(r)&&/native code/.test(String(r))}(),i=jn(),o=Ki(),l=nl(),s=zo(),a=Fo(),u=Sl(),c=xl(),d="Object already initialized",f=i.TypeError,h=i.WeakMap;if(n||a.state){var p=a.state||(a.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new f(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 f(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 pl={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!o(r)||(n=t(r)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}}function Rl(){if(vl)return yl.exports;vl=1;var e=Di(),t=Jn(),r=Ji(),n=zo(),i=Kn(),o=wl().CONFIGURABLE,l=Cl(),s=_l(),a=s.enforce,u=s.get,c=String,d=Object.defineProperty,f=e("".slice),h=e("".replace),p=e([].join),m=i&&!t(function(){return 8!==d(function(){},"length",{value:8}).length}),v=String(String).split("String"),g=yl.exports=function(e,t,r){"Symbol("===f(c(t),0,7)&&(t="["+h(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),m&&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=p(v,"string"==typeof t?t:"")),e};return Function.prototype.toString=g(function(){return r(this)&&u(this).source||l(this)},"toString"),yl.exports}function Il(){if(bl)return gl;bl=1;var e=Ji(),t=rl(),r=Rl(),n=Ao();return gl=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 Pl,El,Wl,kl,Nl,Ol,Ll,Tl,Al,Fl,Hl,Ml,zl,jl,Ul,Bl,ql,Dl={};function Vl(){if(kl)return Wl;kl=1;var e=function(){if(El)return Pl;El=1;var e=Math.ceil,t=Math.floor;return Pl=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)}}();return Wl=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function $l(){if(Ol)return Nl;Ol=1;var e=Vl(),t=Math.max,r=Math.min;return Nl=function(n,i){var o=e(n);return o<0?t(o+i,0):r(o,i)}}function Gl(){if(Tl)return Ll;Tl=1;var e=Vl(),t=Math.min;return Ll=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function Xl(){if(Fl)return Al;Fl=1;var e=Gl();return Al=function(t){return e(t.length)}}function Yl(){if(jl)return zl;jl=1;var e=Di(),t=zo(),r=Yi(),n=function(){if(Ml)return Hl;Ml=1;var e=Yi(),t=$l(),r=Xl(),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 Hl={includes:n(!0),indexOf:n(!1)}}().indexOf,i=xl(),o=e([].push);return zl=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 Jl(){return Bl?Ul:(Bl=1,Ul=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Kl,Ql,Zl,es,ts,rs,ns,is,os,ls,ss,as,us,cs,ds,fs,hs,ps,ms,vs,gs,bs,ys,ws,Cs,Ss,xs,_s,Rs,Is,Ps={};function Es(){return Kl||(Kl=1,Ps.f=Object.getOwnPropertySymbols),Ps}function Ws(){if(ts)return es;ts=1;var e=zo(),t=function(){if(Zl)return Ql;Zl=1;var e=Qi(),t=Di(),r=function(){if(ql)return Dl;ql=1;var e=Yl(),t=Jl().concat("length","prototype");return Dl.f=Object.getOwnPropertyNames||function(r){return e(r,t)},Dl}(),n=Es(),i=tl(),o=t([].concat);return Ql=e("Reflect","ownKeys")||function(e){var t=r.f(i(e)),l=n.f;return l?o(t,l(e)):t}}(),r=Vo(),n=rl();return es=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 ks(){if(os)return is;os=1;var e=jn(),t=Vo().f,r=nl(),n=Il(),i=Ao(),o=Ws(),l=function(){if(ns)return rs;ns=1;var e=Jn(),t=Ji(),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 rs=n}();return is=function(s,a){var u,c,d,f,h,p=s.target,m=s.global,v=s.stat;if(u=m?e:v?e[p]||i(p,{}):e[p]&&e[p].prototype)for(c in a){if(f=a[c],d=s.dontCallGetSet?(h=t(u,c))&&h.value:u[c],!l(m?c:p+(v?".":"#")+c,s.forced)&&void 0!==d){if(typeof f==typeof d)continue;o(f,d)}(s.sham||d&&d.sham)&&r(f,"sham",!0),n(u,c,f,s)}}}function Ns(){if(ds)return cs;ds=1;var e=function(){if(us)return as;us=1;var e={};return e[Uo()("toStringTag")]="z",as="[object z]"===String(e)}(),t=Ji(),r=Vi(),n=Uo()("toStringTag"),i=Object,o="Arguments"===r(function(){return arguments}());return cs=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 Os(){if(hs)return fs;hs=1;var e=Ns(),t=String;return fs=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function Ls(){if(ms)return ps;ms=1;var e=Di();return ps=e([].slice)}function Ts(){if(gs)return vs;gs=1;var e=Ls(),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),f=c.length,h=d.length,p=0,m=0;p<f||m<h;)n[p+m]=p<f&&m<h?i(c[p],d[m])<=0?c[p++]:d[m++]:p<f?c[p++]:d[m++];return n};return vs=r}!function(){if(Is)return zn;Is=1;var e=ks(),t=Di(),r=lo(),n=Mo(),i=Xl(),o=function(){if(ss)return ls;ss=1;var e=oo(),t=TypeError;return ls=function(r,n){if(!delete r[n])throw new t("Cannot delete property "+e(n)+" of "+e(r))}}(),l=Os(),s=Jn(),a=Ts(),u=function(){if(ys)return bs;ys=1;var e=Jn();return bs=function(t,r){var n=[][t];return!!n&&e(function(){n.call(null,r||function(){return 1},1)})}}(),c=function(){if(Cs)return ws;Cs=1;var e=eo().match(/firefox\/(\d+)/i);return ws=!!e&&+e[1]}(),d=function(){if(xs)return Ss;xs=1;var e=eo();return Ss=/MSIE|Trident/.test(e)}(),f=to(),h=function(){if(Rs)return _s;Rs=1;var e=eo().match(/AppleWebKit\/(\d+)\./);return _s=!!e&&+e[1]}(),p=[],m=t(p.sort),v=t(p.push),g=s(function(){p.sort(void 0)}),b=s(function(){p.sort(null)}),y=u("sort"),w=!s(function(){if(f)return f<70;if(!(c&&c>3)){if(d)return!0;if(h)return h<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:g||!b||!y||!w},{sort:function(e){void 0!==e&&r(e);var t=n(this);if(w)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&&v(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 As,Fs,Hs,Ms,zs,js,Us,Bs,qs,Ds,Vs,$s,Gs,Xs,Ys,Js,Ks,Qs,Zs,ea,ta,ra,na,ia,oa,la,sa,aa,ua,ca,da,fa,ha,pa,ma,va,ga,ba,ya,wa,Ca={},Sa={};function xa(){if(js)return zs;js=1;var e=Yl(),t=Jl();return zs=Object.keys||function(r){return e(r,t)}}function _a(){if(Vs)return Ds;Vs=1;var e,t=tl(),r=function(){if(Us)return Sa;Us=1;var e=Kn(),t=el(),r=rl(),n=tl(),i=Yi(),o=xa();return Sa.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},Sa}(),n=Jl(),i=xl(),o=function(){if(qs)return Bs;qs=1;var e=Qi();return Bs=e("document","documentElement")}(),l=qo(),s=Sl(),a="prototype",u="script",c=s("IE_PROTO"),d=function(){},f=function(e){return"<"+u+">"+e+"</"+u+">"},h=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,r,i;p="undefined"!=typeof document?document.domain&&e?h(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(f("document.F=Object")),t.close(),t.F):h(e);for(var s=n.length;s--;)delete p[a][n[s]];return p()};return i[c]=!0,Ds=Object.create||function(e,n){var i;return null!==e?(d[a]=t(e),i=new d,d[a]=null,i[c]=e):i=p(),void 0===n?i:r.f(i,n)}}function Ra(){return Ys?Xs:(Ys=1,Xs={})}function Ia(){if(Zs)return Qs;Zs=1;var e=zo(),t=Ji(),r=Mo(),n=Sl(),i=function(){if(Ks)return Js;Ks=1;var e=Jn();return Js=!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 Qs=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 Pa(){if(ta)return ea;ta=1;var e,t,r,n=Jn(),i=Ji(),o=Ki(),l=_a(),s=Ia(),a=Il(),u=Uo(),c=To(),d=u("iterator"),f=!1;return[].keys&&("next"in(r=[].keys())?(t=s(s(r)))!==Object.prototype&&(e=t):f=!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}),ea={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:f}}function Ea(){if(na)return ra;na=1;var e=rl().f,t=zo(),r=Uo()("toStringTag");return ra=function(n,i,o){n&&!o&&(n=n.prototype),n&&!t(n,r)&&e(n,r,{configurable:!0,value:i})}}function Wa(){if(oa)return ia;oa=1;var e=Pa().IteratorPrototype,t=_a(),r=qi(),n=Ea(),i=Ra(),o=function(){return this};return ia=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 ka(){if(ma)return pa;ma=1;var e=ks(),t=Zn(),r=To(),n=wl(),i=Ji(),o=Wa(),l=Ia(),s=function(){if(ha)return fa;ha=1;var e=function(){if(sa)return la;sa=1;var e=Di(),t=lo();return la=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch(e){}}}(),t=Ki(),r=Xi(),n=function(){if(da)return ca;da=1;var e=function(){if(ua)return aa;ua=1;var e=Ki();return aa=function(t){return e(t)||null===t}}(),t=String,r=TypeError;return ca=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}();return fa=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=Ea(),u=nl(),c=Il(),d=Uo(),f=Ra(),h=Pa(),p=n.PROPER,m=n.CONFIGURABLE,v=h.IteratorPrototype,g=h.BUGGY_SAFARI_ITERATORS,b=d("iterator"),y="keys",w="values",C="entries",S=function(){return this};return pa=function(n,d,h,x,_,R,I){o(h,d,x);var P,E,W,k=function(e){if(e===_&&A)return A;if(!g&&e&&e in L)return L[e];switch(e){case y:case w:case C:return function(){return new h(this,e)}}return function(){return new h(this)}},N=d+" Iterator",O=!1,L=n.prototype,T=L[b]||L["@@iterator"]||_&&L[_],A=!g&&T||k(_),F="Array"===d&&L.entries||T;if(F&&(P=l(F.call(new n)))!==Object.prototype&&P.next&&(r||l(P)===v||(s?s(P,v):i(P[b])||c(P,b,S)),a(P,N,!0,!0),r&&(f[N]=S)),p&&_===w&&T&&T.name!==w&&(!r&&m?u(L,"name",w):(O=!0,A=function(){return t(T,this)})),_)if(E={values:k(w),keys:R?A:k(y),entries:k(C)},I)for(W in E)(g||O||!(W in L))&&c(L,W,E[W]);else e({target:d,proto:!0,forced:g||O},E);return r&&!I||L[b]===A||c(L,b,A,{name:_}),f[d]=A,E}}function Na(){return ga?va:(ga=1,va=function(e,t){return{value:e,done:t}})}function Oa(){if(ya)return ba;ya=1;var e=Yi(),t=function(){if(Gs)return $s;Gs=1;var e=Uo(),t=_a(),r=rl().f,n=e("unscopables"),i=Array.prototype;return void 0===i[n]&&r(i,n,{configurable:!0,value:t(null)}),$s=function(e){i[n][e]=!0}}(),r=Ra(),n=_l(),i=rl().f,o=ka(),l=Na(),s=To(),a=Kn(),u="Array Iterator",c=n.set,d=n.getterFor(u);ba=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 f=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!s&&a&&"values"!==f.name)try{i(f,"name",{value:"values"})}catch(e){}return ba}!function(){if(wa)return Ca;wa=1;var e=jn(),t=Fs?As:(Fs=1,As={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(Ms)return Hs;Ms=1;var e=qo()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return Hs=t===Object.prototype?void 0:t}(),n=Oa(),i=nl(),o=Ea(),l=Uo()("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 La,Ta,Aa,Fa,Ha,Ma,za,ja,Ua,Ba,qa,Da,Va,$a,Ga,Xa,Ya,Ja,Ka,Qa,Za,eu,tu,ru,nu,iu,ou,lu,su,au,uu,cu,du,fu,hu,pu,mu,vu,gu,bu={},yu={};function wu(){if(Ta)return La;Ta=1;var e=Di(),t=Vl(),r=Os(),n=Xi(),i=e("".charAt),o=e("".charCodeAt),l=e("".slice),s=function(e){return function(s,a){var u,c,d=r(n(s)),f=t(a),h=d.length;return f<0||f>=h?e?"":void 0:(u=o(d,f))<55296||u>56319||f+1===h||(c=o(d,f+1))<56320||c>57343?e?i(d,f):u:e?l(d,f,f+2):c-56320+(u-55296<<10)+65536}};return La={codeAt:s(!1),charAt:s(!0)}}function Cu(){if(Ha)return Fa;Ha=1;var e=Jn(),t=Uo(),r=Kn(),n=To(),i=t("iterator");return Fa=!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 Su(){if(Ua)return ja;Ua=1;var e=function(){if(za)return Ma;za=1;var e=Vi(),t=Di();return Ma=function(r){if("Function"===e(r))return t(r)}}(),t=lo(),r=Qn(),n=e(e.bind);return ja=function(e,i){return t(e),void 0===i?e:r?n(e,i):function(){return e.apply(i,arguments)}},ja}function xu(){if(qa)return Ba;qa=1;var e=Rl(),t=rl();return Ba=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 _u(){if(Va)return Da;Va=1;var e=Zi(),t=TypeError;return Da=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")}}function Ru(){if(uu)return au;uu=1;var e=Ns(),t=so(),r=Gi(),n=Ra(),i=Uo()("iterator");return au=function(o){if(!r(o))return t(o,i)||t(o,"@@iterator")||n[e(o)]}}function Iu(){if(du)return cu;du=1;var e=Zn(),t=lo(),r=tl(),n=oo(),i=Ru(),o=TypeError;return cu=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")},cu}function Pu(){if(hu)return fu;hu=1;var e=Su(),t=Zn(),r=Mo(),n=function(){if(Ka)return Ja;Ka=1;var e=tl(),t=function(){if(Ya)return Xa;Ya=1;var e=Zn(),t=tl(),r=so();return Xa=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}}();return Ja=function(r,n,i,o){try{return o?n(e(i)[0],i[1]):n(i)}catch(e){t(r,"throw",e)}}}(),i=function(){if(Za)return Qa;Za=1;var e=Uo(),t=Ra(),r=e("iterator"),n=Array.prototype;return Qa=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}(),o=function(){if(tu)return eu;tu=1;var e=Di(),t=Jn(),r=Ji(),n=Ns(),i=Qi(),o=Cl(),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}},f=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 f.sham=!0,eu=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?f:d}(),l=Xl(),s=function(){if(nu)return ru;nu=1;var e=Kn(),t=rl(),r=qi();return ru=function(n,i,o){e?t.f(n,i,r(0,o)):n[i]=o}}(),a=function(){if(su)return lu;su=1;var e=Kn(),t=function(){if(ou)return iu;ou=1;var e=Vi();return iu=Array.isArray||function(t){return"Array"===e(t)}}(),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 lu=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=Iu(),c=Ru(),d=Array;return fu=function(f){var h=r(f),p=o(this),m=arguments.length,v=m>1?arguments[1]:void 0,g=void 0!==v;g&&(v=e(v,m>2?arguments[2]:void 0));var b,y,w,C,S,x,_=c(h),R=0;if(!_||this===d&&i(_))for(b=l(h),y=p?new this(b):d(b);b>R;R++)x=g?v(h[R],R):h[R],s(y,R,x);else for(y=p?new this:[],S=(C=u(h,_)).next;!(w=t(S,C)).done;R++)x=g?n(C,v,[w.value,R],!0):w.value,s(y,R,x);return a(y,R),y},fu}function Eu(){if(gu)return vu;gu=1;var e=TypeError;return vu=function(t,r){if(t<r)throw new e("Not enough arguments");return t}}var Wu,ku,Nu,Ou,Lu,Tu,Au,Fu,Hu,Mu={};function zu(){if(Au)return Tu;Au=1,Oa(),function(){if(Wu)return Mu;Wu=1;var e=ks(),t=Di(),r=$l(),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=ks(),t=jn(),r=function(){if(Nu)return ku;Nu=1;var e=jn(),t=Kn(),r=Object.getOwnPropertyDescriptor;return ku=function(n){if(!t)return e[n];var i=r(e,n);return i&&i.value}}(),n=Qi(),i=Zn(),o=Di(),l=Kn(),s=Cu(),a=Il(),u=xu(),c=function(){if(Lu)return Ou;Lu=1;var e=Il();return Ou=function(t,r,n){for(var i in r)e(t,i,r[i],n);return t}}(),d=Ea(),f=Wa(),h=_l(),p=_u(),m=Ji(),v=zo(),g=Su(),b=Ns(),y=tl(),w=Ki(),C=Os(),S=_a(),x=qi(),_=Iu(),R=Ru(),I=Na(),P=Eu(),E=Uo(),W=Ts(),k=E("iterator"),N="URLSearchParams",O=N+"Iterator",L=h.set,T=h.getterFor(N),A=h.getterFor(O),F=r("fetch"),H=r("Request"),M=r("Headers"),z=H&&H.prototype,j=M&&M.prototype,U=t.TypeError,B=t.encodeURIComponent,q=String.fromCharCode,D=n("String","fromCodePoint"),V=parseInt,$=o("".charAt),G=o([].join),X=o([].push),Y=o("".replace),J=o([].shift),K=o([].splice),Q=o("".split),Z=o("".slice),ee=o(/./.exec),te=/\+/g,re=/^[0-9a-f]+$/i,ne=function(e,t){var r=Z(e,t,t+2);return ee(re,r)?V(r,16):NaN},ie=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},oe=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},le=function(e){for(var t=(e=Y(e,te," ")).length,r="",n=0;n<t;){var i=$(e,n);if("%"===i){if("%"===$(e,n+1)||n+3>t){r+="%",n++;continue}var o=ne(e,n+1);if(o!=o){r+=i,n++;continue}n+=2;var l=ie(o);if(0===l)i=q(o);else{if(1===l||l>4){r+="�",n++;continue}for(var s=[o],a=1;a<l&&!(3+ ++n>t||"%"!==$(e,n));){var u=ne(e,n+1);if(u!=u){n+=3;break}if(u>191||u<128)break;X(s,u),n+=2,a++}if(s.length!==l){r+="�";continue}var c=oe(s);null===c?r+="�":i=D(c)}}r+=i,n++}return r},se=/[!'()~]|%20/g,ae={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ue=function(e){return ae[e]},ce=function(e){return Y(B(e),se,ue)},de=f(function(e,t){L(this,{type:O,target:T(e).entries,index:0,kind:t})},N,function(){var e=A(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,I(void 0,!0);var n=t[r];switch(e.kind){case"keys":return I(n.key,!1);case"values":return I(n.value,!1)}return I([n.key,n.value],!1)},!0),fe=function(e){this.entries=[],this.url=null,void 0!==e&&(w(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===$(e,0)?Z(e,1):e:C(e)))};fe.prototype={type:N,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,l,s,a,u=this.entries,c=R(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 U("Expected sequence with length 2");X(u,{key:C(s.value),value:C(a.value)})}else for(var d in e)v(e,d)&&X(u,{key:d,value:C(e[d])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=Q(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(r=Q(t,"="),X(n,{key:le(J(r)),value:le(G(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],X(r,ce(e.key)+"="+ce(e.value));return G(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var he=function(){p(this,pe);var e=L(this,new fe(arguments.length>0?arguments[0]:void 0));l||(this.size=e.entries.length)},pe=he.prototype;if(c(pe,{append:function(e,t){var r=T(this);P(arguments.length,2),X(r.entries,{key:C(e),value:C(t)}),l||this.size++,r.updateURL()},delete:function(e){for(var t=T(this),r=P(arguments.length,1),n=t.entries,i=C(e),o=r<2?void 0:arguments[1],s=void 0===o?o:C(o),a=0;a<n.length;){var u=n[a];if(u.key!==i||void 0!==s&&u.value!==s)a++;else if(K(n,a,1),void 0!==s)break}l||(this.size=n.length),t.updateURL()},get:function(e){var t=T(this).entries;P(arguments.length,1);for(var r=C(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=T(this).entries;P(arguments.length,1);for(var r=C(e),n=[],i=0;i<t.length;i++)t[i].key===r&&X(n,t[i].value);return n},has:function(e){for(var t=T(this).entries,r=P(arguments.length,1),n=C(e),i=r<2?void 0:arguments[1],o=void 0===i?i:C(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=T(this);P(arguments.length,1);for(var n,i=r.entries,o=!1,s=C(e),a=C(t),u=0;u<i.length;u++)(n=i[u]).key===s&&(o?K(i,u--,1):(o=!0,n.value=a));o||X(i,{key:s,value:a}),l||(this.size=i.length),r.updateURL()},sort:function(){var e=T(this);W(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=T(this).entries,n=g(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 de(this,"keys")},values:function(){return new de(this,"values")},entries:function(){return new de(this,"entries")}},{enumerable:!0}),a(pe,k,pe.entries,{name:"entries"}),a(pe,"toString",function(){return T(this).serialize()},{enumerable:!0}),l&&u(pe,"size",{get:function(){return T(this).entries.length},configurable:!0,enumerable:!0}),d(he,N),e({global:!0,constructor:!0,forced:!s},{URLSearchParams:he}),!s&&m(M)){var me=o(j.has),ve=o(j.set),ge=function(e){if(w(e)){var t,r=e.body;if(b(r)===N)return t=e.headers?new M(e.headers):new M,me(t,"content-type")||ve(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),S(e,{body:x(0,C(r)),headers:x(0,t)})}return e};if(m(F)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return F(e,arguments.length>1?ge(arguments[1]):{})}}),m(H)){var be=function(e){return p(this,z),new H(e,arguments.length>1?ge(arguments[1]):{})};z.constructor=be,be.prototype=z,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:be})}}return Tu={URLSearchParams:he,getState:T}}Hu||(Hu=1,function(){if(Fu)return bu;Fu=1,function(){if(Aa)return yu;Aa=1;var e=wu().charAt,t=Os(),r=_l(),n=ka(),i=Na(),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=ks(),r=Kn(),n=Cu(),i=jn(),o=Su(),l=Di(),s=Il(),a=xu(),u=_u(),c=zo(),d=function(){if(Ga)return $a;Ga=1;var e=Kn(),t=Di(),r=Zn(),n=Jn(),i=xa(),o=Es(),l=Bi(),s=Mo(),a=$i(),u=Object.assign,c=Object.defineProperty,d=t([].concat);return $a=!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,f=1,h=o.f,p=l.f;c>f;)for(var m,v=a(arguments[f++]),g=h?d(i(v),h(v)):i(v),b=g.length,y=0;b>y;)m=g[y++],e&&!r(p,v,m)||(u[m]=v[m]);return u}:u,$a}(),f=Pu(),h=Ls(),p=wu().codeAt,m=function(){if(mu)return pu;mu=1;var e=Di(),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),f=e("".replace),h=e("".split),p=e("".toLowerCase),m=function(e){return e+22+75*(e<26)},v=function(e,t,r){var n=0;for(e=r?s(e/700):e>>1,e+=s(e/t);e>455;)e=s(e/35),n+=36;return s(n+36*e/(e+38))},g=function(e){var r=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=u(e,r++);if(i>=55296&&i<=56319&&r<n){var o=u(e,r++);56320==(64512&o)?d(t,((1023&i)<<10)+(1023&o)+65536):(d(t,i),r--)}else d(t,i)}return t}(e);var n,l,f=e.length,h=128,p=0,g=72;for(n=0;n<e.length;n++)(l=e[n])<128&&d(r,a(l));var b=r.length,y=b;for(b&&d(r,"-");y<f;){var w=t;for(n=0;n<e.length;n++)(l=e[n])>=h&&l<w&&(w=l);var C=y+1;if(w-h>s((t-p)/C))throw new o(i);for(p+=(w-h)*C,h=w,n=0;n<e.length;n++){if((l=e[n])<h&&++p>t)throw new o(i);if(l===h){for(var S=p,x=36;;){var _=x<=g?1:x>=g+26?26:x-g;if(S<_)break;var R=S-_,I=36-_;d(r,a(m(_+R%I))),S=s(R/I),x+=36}d(r,a(m(S))),g=v(p,C,y===b),p=0,y++}}p++,h++}return c(r,"")};return pu=function(e){var t,i,o=[],s=h(f(p(e),n,"."),".");for(t=0;t<s.length;t++)i=s[t],d(o,l(r,i)?"xn--"+g(i):i);return c(o,".")}}(),v=Os(),g=Ea(),b=Eu(),y=zu(),w=_l(),C=w.set,S=w.getterFor("URL"),x=y.URLSearchParams,_=y.getState,R=i.URL,I=i.TypeError,P=i.parseInt,E=Math.floor,W=Math.pow,k=l("".charAt),N=l(/./.exec),O=l([].join),L=l(1.1.toString),T=l([].pop),A=l([].push),F=l("".replace),H=l([].shift),M=l("".split),z=l("".slice),j=l("".toLowerCase),U=l([].unshift),B="Invalid scheme",q="Invalid host",D="Invalid port",V=/[a-z]/i,$=/[\d+-.a-z]/i,G=/\d/,X=/^0x/i,Y=/^[0-7]+$/,J=/^\d+$/,K=/^[\da-f]+$/i,Q=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Z=/[\0\t\n\r #/:<>?@[\\\]^|]/,ee=/^[\u0000-\u0020]+/,te=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,re=/[\t\n\r]/g,ne=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)U(t,e%256),e=E(e/256);return O(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+=L(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ie={},oe=d({},ie,{" ":1,'"':1,"<":1,">":1,"`":1}),le=d({},oe,{"#":1,"?":1,"{":1,"}":1}),se=d({},le,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ae=function(e,t){var r=p(e,0);return r>32&&r<127&&!c(t,e)?e:encodeURIComponent(e)},ue={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ce=function(e,t){var r;return 2===e.length&&N(V,k(e,0))&&(":"===(r=k(e,1))||!t&&"|"===r)},de=function(e){var t;return e.length>1&&ce(z(e,0,2))&&(2===e.length||"/"===(t=k(e,2))||"\\"===t||"?"===t||"#"===t)},fe=function(e){return"."===e||"%2e"===j(e)},he=function(e){return".."===(e=j(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},pe={},me={},ve={},ge={},be={},ye={},we={},Ce={},Se={},xe={},_e={},Re={},Ie={},Pe={},Ee={},We={},ke={},Ne={},Oe={},Le={},Te={},Ae=function(e,t,r){var n,i,o,l=v(e);if(t){if(i=this.parse(l))throw new I(i);this.searchParams=null}else{if(void 0!==r&&(n=new Ae(r,!0)),i=this.parse(l,null,n))throw new I(i);(o=_(new x)).bindURL(this),this.searchParams=o}};Ae.prototype={type:"URL",parse:function(t,r,n){var i,o,l,s,a=this,u=r||pe,d=0,p="",m=!1,g=!1,b=!1;for(t=v(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=F(t,ee,""),t=F(t,te,"$1")),t=F(t,re,""),i=f(t);d<=i.length;){switch(o=i[d],u){case pe:if(!o||!N(V,o)){if(r)return B;u=ve;continue}p+=j(o),u=me;break;case me:if(o&&(N($,o)||"+"===o||"-"===o||"."===o))p+=j(o);else{if(":"!==o){if(r)return B;p="",u=ve,d=0;continue}if(r&&(a.isSpecial()!==c(ue,p)||"file"===p&&(a.includesCredentials()||null!==a.port)||"file"===a.scheme&&!a.host))return;if(a.scheme=p,r)return void(a.isSpecial()&&ue[a.scheme]===a.port&&(a.port=null));p="","file"===a.scheme?u=Pe:a.isSpecial()&&n&&n.scheme===a.scheme?u=ge:a.isSpecial()?u=Ce:"/"===i[d+1]?(u=be,d++):(a.cannotBeABaseURL=!0,A(a.path,""),u=Oe)}break;case ve:if(!n||n.cannotBeABaseURL&&"#"!==o)return B;if(n.cannotBeABaseURL&&"#"===o){a.scheme=n.scheme,a.path=h(n.path),a.query=n.query,a.fragment="",a.cannotBeABaseURL=!0,u=Te;break}u="file"===n.scheme?Pe:ye;continue;case ge:if("/"!==o||"/"!==i[d+1]){u=ye;continue}u=Se,d++;break;case be:if("/"===o){u=xe;break}u=Ne;continue;case ye: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=h(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=h(n.path),a.query="",u=Le;else{if("#"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=h(n.path),a.path.length--,u=Ne;continue}a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=h(n.path),a.query=n.query,a.fragment="",u=Te}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=Ne;continue}u=xe}else u=Se;break;case Ce:if(u=Se,"/"!==o||"/"!==k(p,d+1))continue;d++;break;case Se:if("/"!==o&&"\\"!==o){u=xe;continue}break;case xe:if("@"===o){m&&(p="%40"+p),m=!0,l=f(p);for(var y=0;y<l.length;y++){var w=l[y];if(":"!==w||b){var C=ae(w,se);b?a.password+=C:a.username+=C}else b=!0}p=""}else if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(m&&""===p)return"Invalid authority";d-=f(p).length+1,p="",u=_e}else p+=o;break;case _e:case Re:if(r&&"file"===a.scheme){u=We;continue}if(":"!==o||g){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(a.isSpecial()&&""===p)return q;if(r&&""===p&&(a.includesCredentials()||null!==a.port))return;if(s=a.parseHost(p))return s;if(p="",u=ke,r)return;continue}"["===o?g=!0:"]"===o&&(g=!1),p+=o}else{if(""===p)return q;if(s=a.parseHost(p))return s;if(p="",u=Ie,r===Re)return}break;case Ie:if(!N(G,o)){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()||r){if(""!==p){var S=P(p,10);if(S>65535)return D;a.port=a.isSpecial()&&S===ue[a.scheme]?null:S,p=""}if(r)return;u=ke;continue}return D}p+=o;break;case Pe:if(a.scheme="file","/"===o||"\\"===o)u=Ee;else{if(!n||"file"!==n.scheme){u=Ne;continue}switch(o){case e:a.host=n.host,a.path=h(n.path),a.query=n.query;break;case"?":a.host=n.host,a.path=h(n.path),a.query="",u=Le;break;case"#":a.host=n.host,a.path=h(n.path),a.query=n.query,a.fragment="",u=Te;break;default:de(O(h(i,d),""))||(a.host=n.host,a.path=h(n.path),a.shortenPath()),u=Ne;continue}}break;case Ee:if("/"===o||"\\"===o){u=We;break}n&&"file"===n.scheme&&!de(O(h(i,d),""))&&(ce(n.path[0],!0)?A(a.path,n.path[0]):a.host=n.host),u=Ne;continue;case We:if(o===e||"/"===o||"\\"===o||"?"===o||"#"===o){if(!r&&ce(p))u=Ne;else if(""===p){if(a.host="",r)return;u=ke}else{if(s=a.parseHost(p))return s;if("localhost"===a.host&&(a.host=""),r)return;p="",u=ke}continue}p+=o;break;case ke:if(a.isSpecial()){if(u=Ne,"/"!==o&&"\\"!==o)continue}else if(r||"?"!==o)if(r||"#"!==o){if(o!==e&&(u=Ne,"/"!==o))continue}else a.fragment="",u=Te;else a.query="",u=Le;break;case Ne:if(o===e||"/"===o||"\\"===o&&a.isSpecial()||!r&&("?"===o||"#"===o)){if(he(p)?(a.shortenPath(),"/"===o||"\\"===o&&a.isSpecial()||A(a.path,"")):fe(p)?"/"===o||"\\"===o&&a.isSpecial()||A(a.path,""):("file"===a.scheme&&!a.path.length&&ce(p)&&(a.host&&(a.host=""),p=k(p,0)+":"),A(a.path,p)),p="","file"===a.scheme&&(o===e||"?"===o||"#"===o))for(;a.path.length>1&&""===a.path[0];)H(a.path);"?"===o?(a.query="",u=Le):"#"===o&&(a.fragment="",u=Te)}else p+=ae(o,le);break;case Oe:"?"===o?(a.query="",u=Le):"#"===o?(a.fragment="",u=Te):o!==e&&(a.path[0]+=ae(o,ie));break;case Le:r||"#"!==o?o!==e&&("'"===o&&a.isSpecial()?a.query+="%27":a.query+="#"===o?"%23":ae(o,ie)):(a.fragment="",u=Te);break;case Te:o!==e&&(a.fragment+=ae(o,oe))}d++}},parseHost:function(e){var t,r,n;if("["===k(e,0)){if("]"!==k(e,e.length-1))return q;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,f=function(){return k(e,d)};if(":"===f()){if(":"!==k(e,1))return;d+=2,c=++u}for(;f();){if(8===u)return;if(":"!==f()){for(t=r=0;r<4&&N(K,f());)t=16*t+P(f(),16),d++,r++;if("."===f()){if(0===r)return;if(d-=r,u>6)return;for(n=0;f();){if(i=null,n>0){if(!("."===f()&&n<4))return;d++}if(!N(G,f()))return;for(;N(G,f());){if(o=P(f(),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(":"===f()){if(d++,!f())return}else if(f())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}(z(e,1,-1)),!t)return q;this.host=t}else if(this.isSpecial()){if(e=m(e),N(Q,e))return q;if(t=function(e){var t,r,n,i,o,l,s,a=M(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"===k(i,0)&&(o=N(X,i)?16:8,i=z(i,8===o?1:2)),""===i)l=0;else{if(!N(10===o?J:8===o?Y:K,i))return e;l=P(i,o)}A(r,l)}for(n=0;n<t;n++)if(l=r[n],n===t-1){if(l>=W(256,5-t))return null}else if(l>255)return null;for(s=T(r),n=0;n<r.length;n++)s+=r[n]*W(256,3-n);return s}(e),null===t)return q;this.host=t}else{if(N(Z,e))return q;for(t="",r=f(e),n=0;n<r.length;n++)t+=ae(r[n],ie);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return c(ue,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ce(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+=ne(i),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?l[0]:l.length?"/"+O(l,"/"):"",null!==s&&(u+="?"+s),null!==a&&(u+="#"+a),u},setHref:function(e){var t=this.parse(e);if(t)throw new I(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Fe(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ne(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(v(e)+":",pe)},getUsername:function(){return this.username},setUsername:function(e){var t=f(v(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=ae(t[r],se)}},getPassword:function(){return this.password},setPassword:function(e){var t=f(v(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=ae(t[r],se)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ne(e):ne(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,_e)},getHostname:function(){var e=this.host;return null===e?"":ne(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Re)},getPort:function(){var e=this.port;return null===e?"":v(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=v(e))?this.port=null:this.parse(e,Ie))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+O(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,ke))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=v(e))?this.query=null:("?"===k(e,0)&&(e=z(e,1)),this.query="",this.parse(e,Le)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=v(e))?("#"===k(e,0)&&(e=z(e,1)),this.fragment="",this.parse(e,Te)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Fe=function(e){var t=u(this,He),n=b(arguments.length,1)>1?arguments[1]:void 0,i=C(t,new Ae(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())},He=Fe.prototype,Me=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(r&&(a(He,"href",Me("serialize","setHref")),a(He,"origin",Me("getOrigin")),a(He,"protocol",Me("getProtocol","setProtocol")),a(He,"username",Me("getUsername","setUsername")),a(He,"password",Me("getPassword","setPassword")),a(He,"host",Me("getHost","setHost")),a(He,"hostname",Me("getHostname","setHostname")),a(He,"port",Me("getPort","setPort")),a(He,"pathname",Me("getPathname","setPathname")),a(He,"search",Me("getSearch","setSearch")),a(He,"searchParams",Me("getSearchParams")),a(He,"hash",Me("getHash","setHash"))),s(He,"toJSON",function(){return S(this).serialize()},{enumerable:!0}),s(He,"toString",function(){return S(this).serialize()},{enumerable:!0}),R){var ze=R.createObjectURL,je=R.revokeObjectURL;ze&&s(Fe,"createObjectURL",o(ze,R)),je&&s(Fe,"revokeObjectURL",o(je,R))}g(Fe,"URL"),t({global:!0,constructor:!0,forced:!n,sham:!r},{URL:Fe})}());var ju,Uu,Bu={};!function(){if(ju)return Bu;ju=1;var e=ks(),t=Zn();e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})}(),Uu||(Uu=1,zu());var qu,Du,Vu,$u,Gu,Xu,Yu,Ju,Ku,Qu,Zu,ec={};function tc(){if(Du)return qu;Du=1;var e=tl();return qu=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 rc(){if(Qu)return Ku;Qu=1;var e,t,r=Zn(),n=Di(),i=Os(),o=tc(),l=function(){if($u)return Vu;$u=1;var e=Jn(),t=jn().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 Vu={BROKEN_CARET:i,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),s=Ho(),a=_a(),u=_l().get,c=function(){if(Xu)return Gu;Xu=1;var e=Jn(),t=jn().RegExp;return Gu=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})}(),d=function(){if(Ju)return Yu;Ju=1;var e=Jn(),t=jn().RegExp;return Yu=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})}(),f=s("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,p=h,m=n("".charAt),v=n("".indexOf),g=n("".replace),b=n("".slice),y=(t=/b*/g,r(h,e=/a/,"a"),r(h,t,"a"),0!==e.lastIndex||0!==t.lastIndex),w=l.BROKEN_CARET,C=void 0!==/()??/.exec("")[1];return(y||C||w||c||d)&&(p=function(e){var t,n,l,s,c,d,S,x=this,_=u(x),R=i(e),I=_.raw;if(I)return I.lastIndex=x.lastIndex,t=r(p,I,R),x.lastIndex=I.lastIndex,t;var P=_.groups,E=w&&x.sticky,W=r(o,x),k=x.source,N=0,O=R;if(E&&(W=g(W,"y",""),-1===v(W,"g")&&(W+="g"),O=b(R,x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&"\n"!==m(R,x.lastIndex-1))&&(k="(?: "+k+")",O=" "+O,N++),n=new RegExp("^(?:"+k+")",W)),C&&(n=new RegExp("^"+k+"$(?!\\s)",W)),y&&(l=x.lastIndex),s=r(h,E?n:x,O),E?s?(s.input=b(s.input,N),s[0]=b(s[0],N),s.index=x.lastIndex,x.lastIndex+=s[0].length):x.lastIndex=0:y&&s&&(x.lastIndex=x.global?s.index+s[0].length:l),C&&s&&s.length>1&&r(f,s[0],n,function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(s[c]=void 0)}),s&&P)for(s.groups=d=a(null),c=0;c<P.length;c++)d[(S=P[c])[0]]=s[S[1]];return s}),Ku=p}function nc(){if(Zu)return ec;Zu=1;var e=ks(),t=rc();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),ec}nc();var ic,oc,lc,sc,ac,uc,cc,dc,fc,hc,pc,mc,vc,gc,bc,yc={};function wc(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 Cc(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}!function(){if(bc)return yc;bc=1;var e=function(){if(oc)return ic;oc=1;var e=Qn(),t=Function.prototype,r=t.apply,n=t.call;return ic="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),ic}(),t=Zn(),r=Di(),n=function(){if(sc)return lc;sc=1,nc();var e=Zn(),t=Il(),r=rc(),n=Jn(),i=Uo(),o=nl(),l=i("species"),s=RegExp.prototype;return lc=function(a,u,c,d){var f=i(a),h=!n(function(){var e={};return e[f]=function(){return 7},7!==""[a](e)}),p=h&&!n(function(){var e=!1,t=/a/;if("split"===a){var r={};r[l]=function(){return t},(t={constructor:r,flags:""})[f]=/./[f]}return t.exec=function(){return e=!0,null},t[f](""),!e});if(!h||!p||c){var m=/./[f],v=u(f,""[a],function(t,n,i,o,l){var a=n.exec;return a===r||a===s.exec?h&&!l?{done:!0,value:e(m,n,i,o)}:{done:!0,value:e(t,i,n,o)}:{done:!1}});t(String.prototype,a,v[0]),t(s,f,v[1])}d&&o(s[f],"sham",!0)}}(),i=Jn(),o=tl(),l=Ji(),s=Ki(),a=Vl(),u=Gl(),c=Os(),d=Xi(),f=function(){if(uc)return ac;uc=1;var e=wu().charAt;return ac=function(t,r,n){return r+(n?e(t,r).length:1)}}(),h=so(),p=function(){if(dc)return cc;dc=1;var e=Di(),t=Mo(),r=Math.floor,n=e("".charAt),i=e("".replace),o=e("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return cc=function(e,a,u,c,d,f){var h=u+e.length,p=c.length,m=s;return void 0!==d&&(d=t(d),m=l),i(f,m,function(t,i){var l;switch(n(i,0)){case"$":return"$";case"&":return e;case"`":return o(a,0,u);case"'":return o(a,h);case"<":l=d[o(i,1,-1)];break;default:var s=+i;if(0===s)return t;if(s>p){var f=r(s/10);return 0===f?t:f<=p?void 0===c[f-1]?n(i,1):c[f-1]+n(i,1):t}l=c[s-1]}return void 0===l?"":l})}}(),m=function(){if(mc)return pc;mc=1;var e=Zn(),t=zo(),r=Zi(),n=function(){if(hc)return fc;hc=1;var e=jn(),t=Jn(),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 fc={correct:n}}(),i=tc(),o=RegExp.prototype;return pc=n.correct?function(e){return e.flags}:function(l){return n.correct||!r(o,l)||t(l,"flags")?l.flags:e(i,l)}}(),v=function(){if(gc)return vc;gc=1;var e=Zn(),t=tl(),r=Ji(),n=Vi(),i=rc(),o=TypeError;return vc=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")}}(),g=Uo()("replace"),b=Math.max,y=Math.min,w=r([].concat),C=r([].push),S=r("".indexOf),x=r("".slice),_=function(e){return void 0===e?e:String(e)},R="$0"==="a".replace(/./,"$0"),I=!!/./[g]&&""===/./[g]("a","$0");n("replace",function(r,n,i){var R=I?"$":"$0";return[function(e,r){var i=d(this),o=s(e)?h(e,g):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===S(r,R)&&-1===S(r,"$<")){var h=i(n,s,d,r);if(h.done)return h.value}var g=l(r);g||(r=c(r));var I,P=c(m(s)),E=-1!==S(P,"g");E&&(I=-1!==S(P,"u"),s.lastIndex=0);for(var W,k=[];null!==(W=v(s,d))&&(C(k,W),E);)""===c(W[0])&&(s.lastIndex=f(d,u(s.lastIndex),I));for(var N="",O=0,L=0;L<k.length;L++){for(var T,A=c((W=k[L])[0]),F=b(y(a(W.index),d.length),0),H=[],M=1;M<W.length;M++)C(H,_(W[M]));var z=W.groups;if(g){var j=w([A],H,F,d);void 0!==z&&C(j,z),T=c(e(r,void 0,j))}else T=p(A,d,F,H,z,r);F>=O&&(N+=x(d,O,F)+T,O=F+A.length)}return N+x(d,O)}]},!!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!R||I)}();var Sc,xc={};!function(){if(Sc)return xc;Sc=1;var e=ks(),t=Kn(),r=jn(),n=Di(),i=zo(),o=Ji(),l=Zi(),s=Os(),a=xu(),u=Ws(),c=r.Symbol,d=c&&c.prototype;if(t&&o(c)&&(!("description"in d)||void 0!==c().description)){var f={},h=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&&(f[t]=!0),t};u(h,c),h.prototype=d,d.constructor=h;var p="Symbol(description detection)"===String(c("description detection")),m=n(d.valueOf),v=n(d.toString),g=/^Symbol\((.*)\)[^)]+$/,b=n("".replace),y=n("".slice);a(d,"description",{configurable:!0,get:function(){var e=m(this);if(i(f,e))return"";var t=v(e),r=p?y(t,7,-1):b(t,g,"$1");return""===r?void 0:r}}),e({global:!0,constructor:!0,forced:!0},{Symbol:h})}}();const _c=Symbol("safe"),Rc=Symbol("hover_in"),Ic=Symbol("hover_out"),Pc=Symbol("row_click"),Ec=Symbol("preview_cell"),Wc=Symbol("cell"),kc=Symbol("related_touch"),Nc=Symbol("original_row_index"),Oc=Symbol("destroyed");class Lc 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 Lc({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[Nc]=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=Tc(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 Tc(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 Ac 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 Fc(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 Hc={NONE:"none",AUTO:"auto",SCROLL:"scroll"},Mc=document.createElement.bind(document);function zc(e){["relative","absolute","fixed"].includes(getComputedStyle(e).position)||(e.style.position="relative")}function jc(e){const t=e.target;return/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(t.tagName)}function Uc(e){const t=getComputedStyle(e);return(parseFloat(t.paddingLeft)||0)+(parseFloat(t.paddingRight)||0)}function Bc(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 qc(e,t){const r=e._o.tableClassName,n=Mc("div");n.className=e.el.className;const i=Mc("div");i.className=r+"-header";const o=Mc("div");o.className=r+"-header-row";const l=Mc("div");l.className=r+"-header-cell";const s=Mc("div");s.textContent=t,l.appendChild(s),o.appendChild(l),i.appendChild(o),n.appendChild(i),fn(n,{position:"absolute",top:"-9999px",visibility:"hidden"}),document.body.appendChild(n);const a=pn(l);return n.remove(),a}function Dc(e){const t=e._o,r=e._p;let n,i=0,o=0;r.table&&(i=r.table?r.table.scrollTop:0,o=r.table?r.table.scrollLeft:0,t.virtualTable&&(n=r.table.style.display,r.table.style.display="none"));let l=pn(e.el);r.table&&(t.virtualTable&&void 0!==n&&(r.table.style.display=n),r.table.scrollTop=i,r.table.scrollLeft=o,r.header&&(r.header.scrollLeft=o));const s=t.tableClassName,a=Mc("div");a.className=e.el.className,fn(a,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px"});const u=Mc("div");u.className="".concat(s,"-header"),a.appendChild(u);const c=Mc("div");c.index=null,c.vIndex=null,c.className="".concat(s,"-header-row"),u.appendChild(c);for(let e=0;e<r.visibleColumns.length;e++){const t=r.visibleColumns[e],n=Mc("div");n.className="".concat(s,"-header-cell ").concat(t.cellClasses||""),n.columnName=t.name,n.appendChild(Mc("div")),c.appendChild(n)}document.body.appendChild(a),l-=function(e){const t=getComputedStyle(e);return(parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0)}(c);const d=c.querySelectorAll("div.".concat(s,"-header-cell"));for(const e of d){const t=getComputedStyle(e);if("border-box"!==t.boxSizing){l-=(parseFloat(t.borderRightWidth)||0)+(parseFloat(t.borderLeftWidth)||0)+Uc(e);const n=e.columnName,i=r.columns.get(n);i&&(l-=i.arrowProposedWidth||0)}}return a.remove(),Math.max(0,l)}function Vc(e){const t=e._p,r=e._o.tableClassName,n=r+"-row",i=r+"-cell",o=t.visibleColumns,l=o.length,s=Mc("div");s.className=n,s.style.float="left";let a=0;for(let e=0;e<l;e++){var u,c;const t=o[e],r=Mc("div");r.className=i,r.style.width=(null!==(u=t.actualWidth)&&void 0!==u?u:0)+"px",t.cellClasses&&(r.className+=" "+t.cellClasses),r.appendChild(Mc("div")),s.appendChild(r),a+=null!==(c=t.actualWidth)&&void 0!==c?c:0}const d=Mc("div");d.className=e.el.className,fn(d,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",float:"left",width:"1px",overflow:"hidden"});const f=Mc("div");f.className=r,d.appendChild(f);const h=Mc("div");h.className=r+"-body",h.style.width=a+1e4+"px",f.appendChild(h),h.appendChild(s),document.body.appendChild(d);const p=Mc("div");fn(p,{border:"1.5px solid #000",width:"0",height:"0",position:"absolute",left:"0",top:"-9999px"}),document.body.appendChild(p);const m=parseFloat(getComputedStyle(p).borderWidth),v=Math.round(m)!==m;p.remove();let g=pn(s,!0,!0,!0);return g-=t.scrollbarWidth||0,v&&g++,d.remove(),g}function $c(e){const t=e._p;return!!t.table&&"rtl"===getComputedStyle(t.table).direction}function Gc(e){return 0===e.widthMode?"auto":2===e.widthMode?100*e.width+"%":e.width}class Xc{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 Yc=document.createElement.bind(document);function Jc(e,t){var r,n,i;const o=e._o,l=$c(e);let s=t.target.closest("div.".concat(o.tableClassName,"-header-cell,div.").concat(o.cellPreviewClassName));if(!s)return null;s[Wc]&&(s=s[Wc]);let a=s.previousSibling;for(;a&&1!==a.nodeType;)a=a.previousSibling;const u=!a,c=t,d=null!==(r=null!==(n=t[kc])&&void 0!==n?n:null===(i=c.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:t,f=(d.pageX||d.clientX||0)-yn(s).left;if(l){var h,p,m;if(!u&&pn(s,!0,!0,!0)-f<=o.resizeAreaWidth/2)return null!==(h=null===(p=a)||void 0===p?void 0:p.columnName)&&void 0!==h?h:null;if(f<=o.resizeAreaWidth/2)return null!==(m=s.columnName)&&void 0!==m?m:null}else{var v,g,b;if(!u&&f<=o.resizeAreaWidth/2)return null!==(v=null===(g=a)||void 0===g?void 0:g.columnName)&&void 0!==v?v:null;if(pn(s,!0,!0,!0)-f<=o.resizeAreaWidth/2)return null!==(b=s.columnName)&&void 0!==b?b:null}return null}function Kc(e){const t=e._p;return t.resizer&&(t.resizer.remove(),t.resizer=null,t.eventsSink.remove(document,".colresize")),e}function Qc(e,t){const r=t;if("mousedown"===t.type&&0!==r.button)return;const n=e._o,i=e._p,o=Jc(e,t);if(o){const r=i.columns.get(o);if(!n.resizableColumns||!r||!r.resizable)return!1;const l=$c(e);i.resizer&&i.resizer.remove(),i.resizer=Yc("div"),i.resizer.className=n.resizerClassName,fn(i.resizer,{position:"absolute",display:"block",zIndex:"-1",visibility:"hidden",width:"2px",background:"#000",opacity:"0.7"}),e.el.appendChild(i.resizer);const s=r.element,a=i.resizer.parentNode,u=getComputedStyle(a),c=getComputedStyle(s),d=yn(s),f=yn(a);f.left+=parseFloat(u.borderLeftWidth)||0,f.top+=parseFloat(u.borderTopWidth)||0,d.left-=f.left,d.top-=f.top,d.top-=parseFloat(c.borderTopWidth)||0;const h=pn(i.resizer,!0,!0,!0);l?(d.left-=Math.ceil((parseFloat(c.borderLeftWidth)||0)/2),d.left-=Math.ceil(h/2)):(d.left+=pn(s,!0,!0,!0),d.left+=Math.ceil((parseFloat(c.borderRightWidth)||0)/2),d.left-=Math.ceil(h/2)),fn(i.resizer,{"z-index":"10",visibility:"visible",left:d.left+"px",top:d.top+"px",height:mn(e.el,!1,!1,!1)+"px"}),i.resizer.columnName=s.columnName;try{i.resizer.style.zIndex=""}catch(e){}i.eventsSink.add(document,"mousemove.colresize",t=>Zc(e,t)).add(document,"touchmove.colresize",t=>Zc(e,t)).add(document,"mouseup.colresize",t=>ed(e,t)).add(document,"touchend.colresize",t=>ed(e,t)),t.preventDefault()}}function Zc(e,t){var r,n,i;const o=e._p;if(!o.resizer)return;const l=o.columns.get(o.resizer.columnName);if(!l)return;const s=$c(e),a=l.element,u=o.resizer.parentNode,c=getComputedStyle(u),d=getComputedStyle(a),f=yn(a),h=yn(u);h.left+=parseFloat(c.borderLeftWidth)||0,f.left-=h.left;const p=pn(o.resizer,!0,!0,!0),m="border-box"===d.boxSizing,v=t;let g=(null!==(r=null!==(n=t[kc])&&void 0!==n?n:null===(i=v.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:t).pageX-h.left,b=f.left;b-=Math.ceil(p/2),s?(b+=pn(a,!0,!0,!0),b-=l.ignoreMin?0:e._o.minColumnWidth,m||(b-=Math.ceil((parseFloat(d.borderLeftWidth)||0)/2),b-=Uc(a)),g>b&&(g=b)):(b+=l.ignoreMin?0:e._o.minColumnWidth,m||(b+=Math.ceil((parseFloat(d.borderRightWidth)||0)/2),b+=Uc(a)),g<b&&(g=b)),o.resizer.style.left=g+"px"}function ed(e,t){var r,n,i;const o=e._o,l=e._p;if(!l.resizer)return;l.eventsSink.remove(document,".colresize");const s=l.columns.get(l.resizer.columnName);if(!s)return l.resizer.remove(),void(l.resizer=null);const a=$c(e),u=s.element,c=u.firstChild,d=l.resizer.parentNode,f=getComputedStyle(d),h=getComputedStyle(u),p=yn(u),m=yn(d);m.left+=parseFloat(f.borderLeftWidth)||0,p.left-=m.left;const v=pn(l.resizer,!0,!0,!0),g="border-box"===h.boxSizing,b=t;let y=(null!==(r=null!==(n=t[kc])&&void 0!==n?n:null===(i=b.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:t).pageX-m.left,w=p.left,C=0;if(w-=Math.ceil(v/2),a){if(!g){y+=Uc(u);const e=getComputedStyle(c||u);y+=parseFloat(e.borderLeftWidth)||0,y+=parseFloat(e.borderRightWidth)||0,y+=s.arrowProposedWidth||0}w+=pn(u,!0,!0,!0);const t=w-(s.ignoreMin?0:e._o.minColumnWidth);y>t&&(y=t),C=w-y}else{if(!g){y-=Uc(u);const e=getComputedStyle(c||u);y-=parseFloat(e.borderLeftWidth)||0,y-=parseFloat(e.borderRightWidth)||0,y-=s.arrowProposedWidth||0}const t=w+(s.ignoreMin?0:e._o.minColumnWidth);y<t&&(y=t),C=y-w}l.resizer.remove(),l.resizer=null;let S=C;if(2===s.widthMode){let t=Dc(e),r=0,n=0;for(let e=0;e<l.visibleColumns.length;e++){const i=l.visibleColumns[e];var x;i.name!==s.name&&(2===i.widthMode?(r+=i.width,n++):t-=null!==(x=i.actualWidth)&&void 0!==x?x:0)}if(t=Math.max(1,t),1===t&&l.table&&(t=l.table.clientWidth),S=C/t,n>0){const e=S/((1-S)/r);r+=S,(r<1&&o.relativeWidthGrowsToFillWidth||r>1&&o.relativeWidthShrinksToFillWidth)&&(S=e)}S*=100,S+="%"}e.setColumnWidth(s.name,S)}function td(e,t){var r;const n=e._o,i=e._p;if(!n.resizableColumns)return;const o=Jc(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 rd(e,t){var r,n,i;const o=e._o,l=t,s=t,a=null!==(r=null!==(n=t[kc])&&void 0!==n?n:null===(i=l.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:{pageX:s.pageX,pageY:s.pageY},u=t.target.closest("div.".concat(o.tableClassName,"-header-cell,div.").concat(o.cellPreviewClassName));if(!u)return;const c=yn(u);c.width=pn(u,!0,!0,!0),c.height=mn(u,!0,!0,!0),e.emit("headercontextmenu",{columnName:u.columnName,pageX:a.pageX,pageY:a.pageY,bounds:c})}function nd(e,t){if(jc(t))return;if(Jc(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 id=Array.prototype.indexOf,od=document.createElement.bind(document);function ld(e){const t=e._p;return t.headerRow&&(t.headerRow=void 0),e}function sd(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 ad(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}cd(e),null===(i=r.notifyRendererOfColumnsConfig)||void 0===i||i.call(r)}return e}function ud(e,t){const r=e._o,n=e._p;if(!n.tbody||!n.table||!n.headerRow)return e;const i=Vc(e);if(n.tbody.style.minWidth=i+"px",n.headerRow.style.minWidth=i+(n.scrollbarWidth||0)+"px",n.eventsSink.remove(n.table,"scroll"),r.width===Hc.AUTO)vn(n.table,pn(n.tbody,!0,!0,!0)),vn(e.el,pn(n.table,!0,!0,!0));else if(r.width===Hc.SCROLL){if(t){const t=n.table?n.table.scrollTop:0,r=n.table?n.table.scrollLeft:0;!function(e){const t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}(e.el),n.table.scrollTop=t,n.table.scrollLeft=r,n.header&&(n.header.scrollLeft=r)}const r=()=>function(e){const t=e._p;t.header.scrollLeft=t.table.scrollLeft,dd(e)}(e);n.eventsSink.add(n.table,"scroll",r)}return e}function cd(e){var t;const r=e._p,n=e._o;if(!r.headerRow)return;const i=n.tableClassName+"-sticky",o=r.headerRow,l=$c(e);r.lastIsRtl=l;const s=null!==(t=r.scrollbarWidth)&&void 0!==t?t:0;let a=0,u=0,c=null;const d=[],f=[];let h=null,p=[];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 m;e.className+=" "+i,e.style.position="sticky";let t=null!==(m=n.actualWidth)&&void 0!==m?m:0,r=null;if(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){const r=n.stickyPos={direction:"start",absDirection:l?"right":"left",offset:a};e.style[r.absDirection]=a+"px",a+=t,p.length=0,h=[e],d.push(h)}else{const r=n.stickyPos={direction:"end",absDirection:l?"left":"right",offset:u};e.style[r.absDirection]=u+s+"px",u+=t,f.push([e,...p]),p.length=0}}else{var v;delete n.stickyPos,null===(v=h)||void 0===v||v.push(e),null==p||p.push(e),"sticky"===e.style.position&&(e.classList.remove(i),e.style.position="",e.style.left="",e.style.right="")}}r.stickiesStart=d,r.stickiesEnd=f,dd(e)}function dd(e){const t=e._p;if(!t.table||!t.headerRow||!t.tbody)return;const r=t.stickiesStart,n=t.stickiesEnd,i=t.stickiesSetStart,o=t.stickiesSetEnd,l=t.stickiesSetStart=new Set,s=t.stickiesSetEnd=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=t.lastIsRtl,u=(e,t,r)=>{if(e&&e.length)for(const n of e){const e=n[0],l=n.slice(1),s=l[0],u=l[l.length-1];if(!e||!e.getBoundingClientRect)continue;const c=e.getBoundingClientRect(),d=t!==a;let f=!1;if(s&&u){const e=s.getBoundingClientRect(),r=u.getBoundingClientRect();f=t?a?c.right-o>r.left&&c.left+o<e.right:c.right-o>e.left&&c.left+o<r.right:a?c.left+o<e.right&&c.right-o>r.left:c.left+o<r.right&&c.right-o>e.left}e.classList.toggle(d?"is-sticky-left":"is-sticky-right",f),f&&r.add(id.call(i,e))}};u(r,!0,l),u(n,!1,s)}const a=[],u=[];for(const e of l)null!=i&&i.has(e)||a.push({index:e,start:!0});for(const e of s)null!=o&&o.has(e)||a.push({index:e,start:!1});if(i)for(const e of i)l.has(e)||u.push({index:e,start:!0});if(o)for(const e of o)s.has(e)||u.push({index:e,start:!1});if(!a.length&&!u.length)return;let c=t.tbody.firstElementChild;for(;c;){const e=c.children;for(const r of u){var d;null===(d=e[r.index])||void 0===d||d.classList.remove(r.start!==t.lastIsRtl?"is-sticky-left":"is-sticky-right")}for(const r of a){var f;null===(f=e[r.index])||void 0===f||f.classList.add(r.start!==t.lastIsRtl?"is-sticky-left":"is-sticky-right")}c=c.nextElementSibling}t.isStickyColumns=new Map;for(const e of l)t.isStickyColumns.set(e,"start");for(const e of s)t.isStickyColumns.set(e,"end")}function fd(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 hd(e){const t=e._p,r=e._o;if(t.table&&t.headerRow){const e=r.tableClassName,i=Cn(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 pd(e,t,r){const n=e._p,i=e._o,o=n.columns.get(t);if(!o)return!1;const l=od("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 md(e,t){const r=t.firstChild;t.addEventListener("mousedown",t=>Qc(e,t)),t.addEventListener("mousemove",t=>td(e,t)),t.addEventListener("mouseup",t=>function(e,t){2===t.button&&rd(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[kc]=t.changedTouches[0],Qc(e,t),l=setTimeout(()=>{a(),r.eventsSink.add(i,"touchend.colheader",e=>{jc(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&&(Kc(e),rd(e,t))},500),r.eventsSink.add(i,"touchend.colheader",t=>{const n=t,i=wc(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(a(),jc(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[kc]=i,nd(e,n)))}).add(i,"touchcancel.colheader",a).add(i,"touchmove.colheader",t=>{const n=t,i=wc(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(s={x:i.pageX,y:i.pageY},r.resizer&&(t.preventDefault(),n[kc]=i,td(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=>nd(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 vd(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 gd(e,t){let r=vd(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 bd(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 yd(e){const t=e._p;if(t.filteredRows&&t.filterArgs){let r=e._o.filter||Fc;t.filteredRows=t.rows.filteredCollection(r,t.filterArgs)}}function wd(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[_c])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 Cd=Array.prototype.indexOf,Sd=document.createElement.bind(document);function xd(e){const t=e._p;if(t.cellPreviewCell){var r;const n=t.cellPreviewCell,i=n[Wc];let o;try{o=Xc.saveSelection(n)}catch(e){}t.cellPreviewCell.remove(),i&&t._unbindCellHoverOut(i),t._unbindCellHoverOut(n);try{o&&i&&Xc.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[Ec],delete n[Wc],t.cellPreviewCell=null,t.abortCellPreview=!1}else t.abortCellPreview=!0;return e}const _d=Object.prototype.hasOwnProperty;class Rd{constructor(e){this.VERSION=Rd.VERSION;const t=this._o={},r=this._p={eventsSink:new Sn,mitt:{all:n=n||new Map,on:function(e,t){var r=n.get(e);r?r.push(t):n.set(e,[t])},off:function(e,t){var r=n.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):n.set(e,[]))},emit:function(e,t){var r=n.get(e);r&&r.slice().map(function(e){e(t)}),(r=n.get("*"))&&r.slice().map(function(r){r(e,t)})}},tableSkeletonNeedsRendering:!0};var n;this.el=e.el&&e.el instanceof HTMLElement?e.el:document.createElement("div"),this.el!==e.el&&this.el.classList.add(e.className||"dgtable-wrapper"),r.eventsSink.add(this.el,"dragend.colresize",e=>{return t=e,void(this._p.resizer||(t.target.style.opacity=""));var t}),t.virtualTable=void 0===e.virtualTable||!!e.virtualTable,t.estimatedRowHeight=e.estimatedRowHeight||void 0,t.rowsBufferSize=e.rowsBufferSize||3,t.minColumnWidth=Math.max(e.minColumnWidth||35,0),t.resizeAreaWidth=e.resizeAreaWidth||8,t.resizableColumns=void 0===e.resizableColumns||!!e.resizableColumns,t.movableColumns=void 0===e.movableColumns||!!e.movableColumns,t.sortableColumns=void 0===e.sortableColumns?1:parseInt(String(e.sortableColumns),10)||1,t.adjustColumnWidthForSortArrow=void 0===e.adjustColumnWidthForSortArrow||!!e.adjustColumnWidthForSortArrow,t.convertColumnWidthsToRelative=void 0!==e.convertColumnWidthsToRelative&&!!e.convertColumnWidthsToRelative,t.autoFillTableWidth=void 0!==e.autoFillTableWidth&&!!e.autoFillTableWidth,t.allowCancelSort=void 0===e.allowCancelSort||!!e.allowCancelSort,t.cellClasses=void 0===e.cellClasses?"":e.cellClasses,t.resizerClassName=void 0===e.resizerClassName?"dgtable-resize":e.resizerClassName,t.tableClassName=void 0===e.tableClassName?"dgtable":e.tableClassName,t.allowCellPreview=void 0===e.allowCellPreview||e.allowCellPreview,t.allowHeaderCellPreview=void 0===e.allowHeaderCellPreview||e.allowHeaderCellPreview,t.cellPreviewClassName=void 0===e.cellPreviewClassName?"dgtable-cell-preview":e.cellPreviewClassName,t.cellPreviewAutoBackground=void 0===e.cellPreviewAutoBackground||e.cellPreviewAutoBackground,t.onComparatorRequired=void 0===e.onComparatorRequired?null:e.onComparatorRequired,t.customSortingProvider=void 0===e.customSortingProvider?null:e.customSortingProvider,t.width=void 0===e.width?Hc.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 i=[];if(e.sortColumn){let t=Array.isArray(e.sortColumn)?e.sortColumn:[e.sortColumn];for(let e=0,n=t.length;e<n;e++){var o;let n=t[e];"string"==typeof n&&(n={column:n,descending:!1});let l=r.columns.get(n.column);l&&i.push({column:n.column,comparePath:l.comparePath||l.dataPath,descending:null!==(o=n.descending)&&void 0!==o&&o})}}r.rows=new Lc({sortColumn:i}),r.rows.onComparatorRequired=(e,r,n)=>{if(t.onComparatorRequired)return t.onComparatorRequired(e,r,n)},r.rows.customSortingProvider=(e,r)=>t.customSortingProvider?t.customSortingProvider(e,r):r(e),r.filteredRows=null,r.scrollbarWidth=0,r._lastVirtualScrollHeight=0,function(e){const t=e._p,r=t=>{let r=t.currentTarget,n=t.relatedTarget;n===r||r.contains(n)||r[Ec]&&(n===r[Ec]||r[Ec].contains(n))||function(e,t){var r,n;const i=e._o,o=e._p,l=t.firstElementChild;if(!l)return;if(!(l.scrollWidth-l.clientWidth>1||l.scrollHeight-l.clientHeight>1))return;xd(e),o.abortCellPreview=!1;const s=t.parentElement;if(!s)return;const a=Sd("div");a.innerHTML=t.innerHTML,a.className=i.cellPreviewClassName;const u=t.classList.contains("".concat(i.tableClassName,"-header-cell"));u&&(a.classList.add("header"),t.classList.contains("sortable")&&a.classList.add("sortable"),a.draggable=!0,md(e,a));const c=getComputedStyle(t),d=getComputedStyle(l),f="right"===c.float,h=f?"right":"left",p=parseFloat(c.paddingLeft)||0,m=parseFloat(c.paddingRight)||0,v=parseFloat(c.paddingTop)||0,g=parseFloat(c.paddingBottom)||0;let b=l.scrollWidth+(t.clientWidth-l.offsetWidth);const y="border-box"===c.boxSizing;if(y?a.style.boxSizing="border-box":(b-=p+m,a.style.marginTop=(parseFloat(c.borderTopWidth)||0)+"px"),!o.transparentBgColor1){const e=document.createElement("div");document.body.appendChild(e),e.style.backgroundColor="transparent",o.transparentBgColor1=getComputedStyle(e).backgroundColor,e.style.backgroundColor="rgba(0,0,0,0)",o.transparentBgColor2=getComputedStyle(e).backgroundColor,e.remove()}const w={"box-sizing":y?"border-box":"content-box",width:b,"min-height":Math.max(mn(t),/%/.test(c.minHeight)?0:parseFloat(c.minHeight)||0)+"px","padding-left":p,"padding-right":m,"padding-top":v,"padding-bottom":g,overflow:"hidden",position:"absolute","z-index":"-1",[h]:"0",top:"0",cursor:c.cursor};let C=c.backgroundColor;C!==o.transparentBgColor1&&C!==o.transparentBgColor2||(C=getComputedStyle(s).backgroundColor),C!==o.transparentBgColor1&&C!==o.transparentBgColor2||(C="#fff"),w["background-color"]=C,fn(a,w),a.firstChild&&fn(a.firstChild,{direction:d.direction,"white-space":d.whiteSpace,"min-height":d.minHeight,"line-height":d.lineHeight,font:d.font}),e.el.appendChild(a),u&&Bc(a),a.rowVIndex=s.vIndex;const S=a.rowIndex=s.index;a.columnName=null===(r=o.visibleColumns[Cd.call(s.childNodes,t)])||void 0===r?void 0:r.name;try{const e=Xc.saveSelection(t);e&&Xc.restoreSelection(a,e)}catch(e){}if(e.emit("cellpreview",{el:a.firstElementChild,name:a.columnName,rowIndex:null!=S?S:null,rowData:null==S?null:o.rows[S],cell:t,cellEl:l}),o.abortCellPreview)return void a.remove();null!=S&&a.addEventListener("click",t=>{e.emit("rowclick",{event:t,filteredRowIndex:s.vIndex,rowIndex:S,rowEl:s,rowData:o.rows[S]})});const x=e.el,_=x===window?document:x,R=getComputedStyle(x),I=yn(t),P=yn(x);if(f){const e=window.innerWidth;I.right=e-(I.left+pn(t,!0,!0,!0)),P.right=e-(P.left+pn(x,!0,!0,!0))}I.left-=parseFloat(R.borderLeftWidth)||0,"right"===h&&void 0!==I.right&&void 0!==P.right&&(I.right-=parseFloat(R.borderRightWidth)||0),I.top-=parseFloat(R.borderTopWidth)||0,"left"===h?I.left+=parseFloat(c.borderLeftWidth)||0:void 0!==I.right&&(I.right+=parseFloat(c.borderRightWidth)||0),I.top+=parseFloat(c.borderTopWidth)||parseFloat(c.borderBottomWidth)||0,I.left-=P.left,"right"===h&&void 0!==I.right&&void 0!==P.right&&(I.right-=P.right),I.top-=P.top;const E=pn(x,!1,!1,!1)-pn(a,!0,!0,!0),W="left"===h?I.left:null!==(n=I.right)&&void 0!==n?n:0,k=W<0?0:W>E?E:W;"left"===h?I.left=k:I.right=k;const N=mn(t,!0,!0,!0),O=("scrollTop"in _?_.scrollTop:0)+mn(x,!0)-N;I.top>O&&(I.top=Math.max(0,O));const L={top:I.top+"px","z-index":9999};L[h]=("left"===h?I.left:I.right)+"px",fn(a,L),a[Wc]=t,o.cellPreviewCell=a,t[Ec]=a,o._bindCellHoverOut(t),o._bindCellHoverOut(a),a.addEventListener("wheel",()=>{xd(e)})}(e,r)},n=t=>{let r=t.currentTarget[Wc]||t.currentTarget,n=t.relatedTarget;n===e.el||r.contains(n)||r[Ec]&&(n===r[Ec]||r[Ec].contains(n))||function(e){xd(e)}(e)};t._bindCellHoverIn=e=>{e[Rc]||e.addEventListener("mouseover",e[Rc]=r)},t._unbindCellHoverIn=e=>{e[Rc]&&(e.removeEventListener("mouseover",e[Rc]),e[Rc]=null)},t._bindCellHoverOut=e=>{e[Ic]||e.addEventListener("mouseout",e[Ic]=n)},t._unbindCellHoverOut=e=>{e[Ic]&&(e.removeEventListener("mouseout",e[Ic]),e[Ic]=null)}}(this)}on(e,t){return this[Oc]||this._p.mitt.on(e,t),this}once(e,t){if(this[Oc])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[Oc]||(e||t?this._p.mitt.off(e,t):this._p.mitt.all.clear()),this}emit(e,t){return this[Oc]||this._p.mitt.emit(e,t),this}destroy(){var e,t,r;const n=this._p,i=this.el;if(this[Oc]||!n)return this;if(n.resizer&&(n.resizer.remove(),n.resizer=null),null===(e=n.virtualListHelper)||void 0===e||e.destroy(),n.virtualListHelper=null,ld(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)_d.call(this,e)&&(this[e]=null);return this[Oc]=!0,i&&i.remove(),this}close(){this.destroy()}remove(){this.destroy()}render(){const e=this._o,t=this._p;if(!this.el.offsetParent)return t._deferredRender||(t._deferredRender=setTimeout(()=>{t._deferredRender=null,!this[Oc]&&this.el.offsetParent&&this.render()})),this;if(!0===t.tableSkeletonNeedsRendering){var r;t.tableSkeletonNeedsRendering=!1,e.width===Hc.AUTO&&hd(this);let n=t.table&&t.table.parentNode?t.table.scrollTop:NaN,i=t.table&&t.table.parentNode?function(e,t){return void 0===t&&(t="rtl"===getComputedStyle(e).direction),t?e.scrollWidth-e.clientWidth-cn(e,t):cn(e,t)}(t.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),ld(e),r.currentTouchId=null,r.header&&r.header.remove();const i=n.tableClassName,o=od("div"),l=od("div");o.className="".concat(i,"-header"),l.className="".concat(i,"-header-row"),r.header=o,r.headerRow=l,o.appendChild(l),e.el.prepend(o),zc(e.el),n.width===Hc.SCROLL?e.el.style.overflow="hidden":e.el.style.overflow="",!n.height&&n.virtualTable&&(n.height=mn(e.el,!0))}(this),function(e){const t=e._p,r=e._o,n=r.tableClassName;if(r.virtualTable&&!t.virtualRowHeight){const r=()=>{const e=od("div"),t=e.appendChild(od("div")),r=t.appendChild(od("div"));return e.className="".concat(n,"-row"),t.className="".concat(n,"-cell"),r.innerHTML="0",e.style.visibility="hidden",e.style.position="absolute",e},i=od("div");i.className=e.el.className,fn(i,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",width:"1px",overflow:"hidden"});const o=od("div");o.className=n,i.appendChild(o);const l=od("div");l.className="".concat(n,"-body"),l.style.width="99999px",o.appendChild(l),document.body.appendChild(i);const s=r(),a=r(),u=r();l.appendChild(s),l.appendChild(a),l.appendChild(u),t.virtualRowHeight=mn(a,!0,!0,!0),i.remove()}if(!t.table){var i;const o=document.createDocumentFragment(),l=od("div");l.className=n,r.virtualTable&&(l.className+=" virtual");const s=getComputedStyle(l);let a=(null!==(i=r.height)&&void 0!==i?i:0)-mn(t.header,!0,!0,!0);"border-box"!==s.boxSizing&&(a-=parseFloat(s.borderTopWidth)||0,a-=parseFloat(s.borderBottomWidth)||0,a-=parseFloat(s.paddingTop)||0,a-=parseFloat(s.paddingBottom)||0),fn(l,{height:r.height?a+"px":"auto",display:"block",overflowY:"auto",overflowX:r.width===Hc.SCROLL?"auto":"hidden"}),o.appendChild(l);const u=od("div");u.className=r.tableClassName+"-body",u.style.minHeight="1px",t.table=l,t.tbody=u,zc(u),zc(l),l.appendChild(u),e.el.appendChild(o),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 u=r.visibleColumns,c=u.length;r.notifyRendererOfColumnsConfig=()=>{u=r.visibleColumns,c=u.length;for(let e=0;e<c;e++){const t=u[e];t._finalWidth=t.actualWidthConsideringScrollbarWidth||t.actualWidth}},r.virtualListHelper=new Pn({list:r.table,itemsParent:r.tbody,autoVirtualWrapperWidth:!1,virtual:n.virtualTable,buffer:n.rowsBufferSize,estimatedItemHeight:n.estimatedRowHeight?n.estimatedRowHeight:r.virtualRowHeight||40,itemElementCreatorFn:()=>od("div"),onItemRender:(t,i)=>{const d=r.filteredRows||r.rows,f=!!r.filteredRows,h=n.allowCellPreview,p=r.isStickyColumns;t.className=o,i%2==1&&(t.className+=" "+l);const m=d[i],v=f?m[Nc]:i;t.vIndex=i,t.index=v;for(let e=0;e<c;e++){var g;const i=u[e],o=od("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.absDirection]=i.stickyPos.offset+"px";const t=null==p?void 0:p.get(e);"start"===t&&!r.lastIsRtl||"end"===t&&r.lastIsRtl?o.classList.add("is-sticky-left"):("start"===t&&r.lastIsRtl||"end"===t&&!r.lastIsRtl)&&o.classList.add("is-sticky-right")}h&&r._bindCellHoverIn(o),o.appendChild(od("div")).innerHTML=wd(n,m,i),t.appendChild(o)}t.addEventListener("click",t[Pc]=r=>{e.emit("rowclick",{event:r,filteredRowIndex:i,rowIndex:v,rowEl:t,rowData:m})}),e.emit("rowcreate",{filteredRowIndex:i,rowIndex:v,rowEl:t,rowData:m})},onItemUnrender:t=>{t[Pc]&&t.removeEventListener("click",t[Pc]),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&&ad(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=od("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=od("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,md(e,c),Bc(c)}}cd(e),e.emit("headerrowcreate",l)}(this),t.virtualListHelper.setCount((null!==(r=t.filteredRows)&&void 0!==r?r:t.rows).length),sd(this),ad(this,!0),ud(this,!0);for(let e=0;e<t.rows.sortColumn.length;e++)pd(this,t.rows.sortColumn[e].column,t.rows.sortColumn[e].descending);e.adjustColumnWidthForSortArrow&&t.rows.sortColumn.length?this.tableWidthChanged(!0):e.virtualTable||this.tableWidthChanged(),isNaN(n)||(t.table.scrollTop=n),isNaN(i)||(dn(t.table,i),dn(t.header,i)),this.emit("renderskeleton")}return t.virtualListHelper.render(),this.emit("render"),this}clearAndRender(e){var t;let r=this._p;return r.tableSkeletonNeedsRendering=!0,null===(t=r.notifyRendererOfColumnsConfig)||void 0===t||t.call(r),(void 0===e||e)&&this.render(),this}setColumns(e,t){const r=this._p;e=e||[];let n=new Ac;for(let t=0,r=0;t<e.length;t++){let i=e[t],o=gd(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(),bd(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=gd(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(),bd(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(),bd(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,s=i.columns,a=r?i.visibleColumns:s.getColumns();if("string"==typeof e?o=s.get(e):"number"==typeof e&&(o=a[e]),"string"==typeof t?l=s.get(t):"number"==typeof t&&(l=a[t]),o&&l&&e!==t){let e=o.order,t=l.order,r=s.moveColumn(o,l).getVisibleColumns();if(i.visibleColumns.length!==r.length||i.visibleColumns.some((e,t)=>e!==r[t]))if(i.visibleColumns=r,bd(this),n.virtualTable)this.clearAndRender();else{var u,c;const r=Cn(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 s=i.visibleColumns[e],a=(null!==(u=s.actualWidthConsideringScrollbarWidth||s.actualWidth)&&void 0!==u?u:0)+"px",d=i.visibleColumns[t],f=(null!==(c=d.actualWidthConsideringScrollbarWidth||d.actualWidth)&&void 0!==c?c:0)+"px",h=i.tbody.childNodes;for(let r=0,n=h.length;r<n;r++){let n=h[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=a)}}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),bd(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=vd(t,r.ignoreMin?0:this._o.minColumnWidth);if(r){let e=Gc(r);r.width=n.width,r.widthMode=n.mode;let t=Gc(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?Gc(t):null}getColumnConfig(e){let t=this._p.columns.get(e);return t?{name:t.name,label:t.label,width:Gc(t),dataPath:t.dataPath,comparePath:t.comparePath,resizable:t.resizable,movable:t.movable,sortable:t.sortable,visible:t.visible,cellClasses:t.cellClasses,ignoreMin:t.ignoreMin,sticky:t.sticky,order:t.order}: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}setMaxColumnSortCount(e){const t=this._p,r=this._o;if(r.sortableColumns!==e&&(r.sortableColumns=e,t.table)){const e=Cn(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}getMaxColumnSortCount(){return this._o.sortableColumns}setSortableColumns(e){return this.setMaxColumnSortCount(e)}getSortableColumns(){return this.getMaxColumnSortCount()}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._p;let i=n.columns.get(e),o=n.rows.sortColumn.map(e=>({column:e.column,descending:e.descending}));if(i){if(r){for(let e=0;e<o.length;e++)if(o[e].column===i.name){e<o.length-1?o.length=0:(t=o[o.length-1].descending,o.splice(o.length-1,1));break}}else o.length=0;t=void 0!==t&&t,o.push({column:i.name,descending:!!t})}else o.length=0;return this.setSortedColumns(o)}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}setSortedColumns(e){const t=this._o,r=this._p;let n=r.columns,i=e.filter(e=>n.get(e.column)).map(e=>{let t=n.get(e.column);return{column:t.name,comparePath:t.comparePath||t.dataPath,descending:!!e.descending}});(t.sortableColumns>0&&i.length>=t.sortableColumns||i.length>=r.visibleColumns.length)&&(i.length=0),hd(this);for(let e=0;e<i.length;e++)pd(this,i[e].column,i[e].descending);t.adjustColumnWidthForSortArrow&&!r.tableSkeletonNeedsRendering&&this.tableWidthChanged(!0),r.rows.sortColumn=i,i.length&&(r.rows.sort(),r.filteredRows&&r.filteredRows.sort()),r.virtualListHelper&&r.virtualListHelper.invalidate().render();let o=[];for(let e=0;e<i.length;e++)o.push({column:i[e].column,descending:i[e].descending});return this.emit("sort",{sorts:o}),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?Cc(e):e;t[_c]=!0,e=t}return this._o.cellFormatter=e,this}setHeaderCellFormatter(e){return this._o.headerCellFormatter=e||function(e){return"string"==typeof e?Cc(e):e},this}setFilter(e){return this._o.filter=e,this}filter(e){const t=this._p;let r=this._o.filter||Fc;"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 wd(this._o,i,n)}getHtmlForRowDataCell(e,t){let r=this._p.columns.get(t);return r?wd(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():yd(this),i.tableSkeletonNeedsRendering=!0,n&&this.render()):n&&(i.virtualListHelper.addItemsAt(o,t),this._o.virtualTable?(sd(this),ad(this),this.render(),ud(this,!1)):i.tbody&&(this.render(),ad(this),ud(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?(yd(this),n.tableSkeletonNeedsRendering=!0,r&&this.render()):r&&(n.virtualListHelper.removeItemsAt(t,e),this._o.virtualTable?(sd(this),ad(this),this.render(),ud(this,!1)):(this.render(),ad(this),ud(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():yd(this),this.clearAndRender().emit("addrows",{count:e.length,clear:!0}),this}tableWidthChanged(e,t){let r=this._o,n=this._p,i=Dc(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=qc(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 f=r.minColumnWidth/d;if(isNaN(f)&&(f=0),f>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<f&&(t+=f-r.width,r.width=f)}for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];2===i.widthMode&&!i.ignoreMin&&i.width>f&&t>0&&(e=Math.min(t,i.width-f),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=Vc(this);s<e&&ud(this,!1);for(let e=0;e<u.length;e++)fd(this,u[e]);s>e&&ud(this,!1)}}return this}tableHeightChanged(){let e=this._o,t=this._p;if(!t.table)return this;const r=getComputedStyle(t.table);let n=mn(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-mn(t.header,!0,!0,!0),1)+"px"),e.virtualTable&&this.clearAndRender()),this}hideCellPreview(){return xd(this),this}abortCellPreview(){return this.hideCellPreview(),this}cancelColumnResize(){return Kc(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}}Rd.VERSION="@@VERSION",Rd.Width=Hc;class Id extends Rd{constructor(t){super(t),this.$el=e(this.el).data("dgtable",this).on("remove",()=>this.destroy()),this.on("headerrowdestroy",()=>{var t;const r=null===(t=this._p)||void 0===t?void 0:t.headerRow;r&&e(r).find(`div.${this._o.tableClassName}-header-cell`).remove()})}destroy(){var t,r;return null!==(t=this._p)&&void 0!==t&&t.table&&e(this._p.table).empty(),null!==(r=this._p)&&void 0!==r&&r.tbody&&e(this._p.tbody).empty(),super.destroy()}}export{Id as default};
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=lib.es6.min.js.map
|