@revolist/revogrid 3.0.96 → 3.0.99
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/custom-element/index.js +147 -56
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/revo-grid.cjs.js +1 -1
- package/dist/cjs/revo-grid_11.cjs.entry.js +115 -49
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +31 -6
- package/dist/collection/components/data/revogr-data-style.css +8 -0
- package/dist/collection/components/header/revogr-header-style.css +8 -0
- package/dist/collection/components/overlay/editors/text.js +1 -1
- package/dist/collection/components/overlay/revogr-edit-style.css +8 -0
- package/dist/collection/components/overlay/revogr-overlay-selection.js +3 -0
- package/dist/collection/components/overlay/revogr-overlay-style.css +8 -0
- package/dist/collection/components/revo-grid/revo-grid-style.css +8 -0
- package/dist/collection/components/revo-grid/revo-grid.js +40 -10
- package/dist/collection/components/revo-grid/viewport.service.js +3 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +8 -0
- package/dist/collection/components/scrollable/revogr-scroll-style.css +8 -0
- package/dist/collection/components/selection-focus/revogr-focus-style.css +8 -0
- package/dist/collection/components/selection-temp-range/revogr-temp-range-style.css +8 -0
- package/dist/collection/plugins/filter/conditions/equal.js +1 -1
- package/dist/collection/plugins/filter/filter.plugin.js +11 -1
- package/dist/collection/plugins/filter/filter.pop.js +54 -7
- package/dist/collection/plugins/filter/filter.style.css +14 -1
- package/dist/collection/plugins/sorting/sorting.plugin.js +70 -32
- package/dist/collection/services/column.data.provider.js +4 -2
- package/dist/collection/services/selection.store.connector.js +4 -0
- package/dist/collection/utilsExternal/generate-data.js +7 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/revo-grid.js +1 -1
- package/dist/esm/revo-grid_11.entry.js +115 -49
- package/dist/esm/revogr-filter-panel.entry.js +31 -6
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/revo-grid.js +1 -1
- package/dist/esm-es5/revo-grid_11.entry.js +1 -1
- package/dist/esm-es5/revogr-filter-panel.entry.js +1 -1
- package/dist/revo-grid/revo-grid.esm.js +1 -1
- package/dist/revo-grid/revo-grid.system.js +1 -1
- package/dist/revo-grid/revo-grid_11.entry.js +1 -1
- package/dist/revo-grid/revo-grid_11.system.entry.js +1 -1
- package/dist/revo-grid/revogr-filter-panel.entry.js +1 -1
- package/dist/revo-grid/revogr-filter-panel.system.entry.js +1 -1
- package/dist/types/components/revo-grid/revo-grid.d.ts +8 -2
- package/dist/types/components/revo-grid/viewport.service.d.ts +1 -0
- package/dist/types/components.d.ts +11 -3
- package/dist/types/interfaces.d.ts +3 -0
- package/dist/types/plugins/filter/filter.plugin.d.ts +12 -0
- package/dist/types/plugins/filter/filter.pop.d.ts +6 -0
- package/dist/types/plugins/sorting/sorting.plugin.d.ts +3 -1
- package/dist/types/services/column.data.provider.d.ts +1 -1
- package/dist/types/services/selection.store.connector.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as t,f as r,h as e,r as n,c as i,H as o,e as s}from"./index-a7f99799.js";import{i as u,F as a,a as c}from"./filter.button-1509c206.js";class l{constructor(){this.defaultRowSize=32}}class h{constructor(){this.defaultRowSize=27}}class f{constructor(){this.defaultRowSize=42}}const d=["default","material","compact","darkMaterial","darkCompact"];class g{constructor(t){this.customRowSize=0,this.customRowSize=t.rowSize,this.register("default")}get theme(){return this.currentTheme}get rowSize(){return this.customRowSize||this.currentTheme.defaultRowSize}set rowSize(t){this.customRowSize=t}register(t){switch(g.getTheme(t)){case"material":case"darkMaterial":this.currentTheme=new f;break;case"compact":case"darkCompact":this.currentTheme=new l;break;default:this.currentTheme=new h}}static getTheme(t){return d.indexOf(t)>-1?t:"default"}}var v=function(t,r,e,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(e=t[++i]);++i<o;)e=r(e,t[i],i,t);return e},p=function(t,r,e){for(var n=-1,i=Object(t),o=e(t),s=o.length;s--;){var u=o[++n];if(!1===r(i[u],u,i))break}return t},C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function w(t,r,e){return t(e={path:r,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},e.exports),e.exports}var L="object"==typeof C&&C&&C.Object===Object&&C,m="object"==typeof self&&self&&self.Object===Object&&self,b=L||m||Function("return this")(),x=b.Symbol,y=Object.prototype,k=y.hasOwnProperty,E=y.toString,S=x?x.toStringTag:void 0,j=Object.prototype.toString,R=x?x.toStringTag:void 0,z=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":R&&R in Object(t)?function(t){var r=k.call(t,S),e=t[S];try{t[S]=void 0;var n=!0}catch(t){}var i=E.call(t);return n&&(r?t[S]=e:delete t[S]),i}(t):function(t){return j.call(t)}(t)},O=function(t){return null!=t&&"object"==typeof t},M=function(t){return O(t)&&"[object Arguments]"==z(t)},F=Object.prototype,_=F.hasOwnProperty,A=F.propertyIsEnumerable,T=M(function(){return arguments}())?M:function(t){return O(t)&&_.call(t,"callee")&&!A.call(t,"callee")},D=Array.isArray,I=function(){return!1},P=w((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,i=n&&n.exports===e?b.Buffer:void 0;t.exports=(i?i.isBuffer:void 0)||I})),$=/^(?:0|[1-9]\d*)$/,U=function(t,r){var e=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==e||"symbol"!=e&&$.test(t))&&t>-1&&t%1==0&&t<r},H=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Z={};Z["[object Float32Array]"]=Z["[object Float64Array]"]=Z["[object Int8Array]"]=Z["[object Int16Array]"]=Z["[object Int32Array]"]=Z["[object Uint8Array]"]=Z["[object Uint8ClampedArray]"]=Z["[object Uint16Array]"]=Z["[object Uint32Array]"]=!0,Z["[object Arguments]"]=Z["[object Array]"]=Z["[object ArrayBuffer]"]=Z["[object Boolean]"]=Z["[object DataView]"]=Z["[object Date]"]=Z["[object Error]"]=Z["[object Function]"]=Z["[object Map]"]=Z["[object Number]"]=Z["[object Object]"]=Z["[object RegExp]"]=Z["[object Set]"]=Z["[object String]"]=Z["[object WeakMap]"]=!1;var B,N=w((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,i=n&&n.exports===e&&L.process,o=function(){try{return n&&n.require&&n.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=o})),W=N&&N.isTypedArray,V=W?(B=W,function(t){return B(t)}):function(t){return O(t)&&H(t.length)&&!!Z[z(t)]},G=Object.prototype.hasOwnProperty,q=function(t,r){var e=D(t),n=!e&&T(t),i=!e&&!n&&P(t),o=!e&&!n&&!i&&V(t),s=e||n||i||o,u=s?function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}(t.length,String):[],a=u.length;for(var c in t)!r&&!G.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||U(c,a))||u.push(c);return u},K=Object.prototype,X=function(t,r){return function(e){return t(r(e))}}(Object.keys,Object),J=Object.prototype.hasOwnProperty,Y=function(t){if((r=t)!==("function"==typeof(e=r&&r.constructor)&&e.prototype||K))return X(t);var r,e,n=[];for(var i in Object(t))J.call(t,i)&&"constructor"!=i&&n.push(i);return n},Q=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)},tt=function(t){if(!Q(t))return!1;var r=z(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},rt=function(t){return null!=t&&H(t.length)&&!tt(t)},et=function(t){return rt(t)?q(t):Y(t)},nt=function(t,r){if(null==t)return t;if(!rt(t))return function(t,r){return t&&p(t,r,et)}(t,r);for(var e=t.length,n=-1,i=Object(t);++n<e&&!1!==r(i[n],n,i););return t},it=function(t,r){return t===r||t!=t&&r!=r},ot=function(t,r){for(var e=t.length;e--;)if(it(t[e][0],r))return e;return-1},st=Array.prototype.splice;function ut(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}ut.prototype.clear=function(){this.__data__=[],this.size=0},ut.prototype.delete=function(t){var r=this.__data__,e=ot(r,t);return!(e<0||(e==r.length-1?r.pop():st.call(r,e,1),--this.size,0))},ut.prototype.get=function(t){var r=this.__data__,e=ot(r,t);return e<0?void 0:r[e][1]},ut.prototype.has=function(t){return ot(this.__data__,t)>-1},ut.prototype.set=function(t,r){var e=this.__data__,n=ot(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};var at,ct=ut,lt=b["__core-js_shared__"],ht=(at=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||""))?"Symbol(src)_1."+at:"",ft=Function.prototype.toString,dt=function(t){if(null!=t){try{return ft.call(t)}catch(t){}try{return t+""}catch(t){}}return""},gt=/^\[object .+?Constructor\]$/,vt=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pt=function(t){return!(!Q(t)||function(t){return!!ht&&ht in t}(t))&&(tt(t)?vt:gt).test(dt(t))},Ct=function(t,r){var e=function(t,r){return null==t?void 0:t[r]}(t,r);return pt(e)?e:void 0},wt=Ct(b,"Map"),Lt=Ct(Object,"create"),mt=Object.prototype.hasOwnProperty,bt=Object.prototype.hasOwnProperty;function xt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}xt.prototype.clear=function(){this.__data__=Lt?Lt(null):{},this.size=0},xt.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},xt.prototype.get=function(t){var r=this.__data__;if(Lt){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return mt.call(r,t)?r[t]:void 0},xt.prototype.has=function(t){var r=this.__data__;return Lt?void 0!==r[t]:bt.call(r,t)},xt.prototype.set=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=Lt&&void 0===r?"__lodash_hash_undefined__":r,this};var yt=xt,kt=function(t,r){var e,n,i=t.__data__;return("string"==(n=typeof(e=r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?i["string"==typeof r?"string":"hash"]:i.map};function Et(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}Et.prototype.clear=function(){this.size=0,this.__data__={hash:new yt,map:new(wt||ct),string:new yt}},Et.prototype.delete=function(t){var r=kt(this,t).delete(t);return this.size-=r?1:0,r},Et.prototype.get=function(t){return kt(this,t).get(t)},Et.prototype.has=function(t){return kt(this,t).has(t)},Et.prototype.set=function(t,r){var e=kt(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this};var St=Et;function jt(t){var r=this.__data__=new ct(t);this.size=r.size}jt.prototype.clear=function(){this.__data__=new ct,this.size=0},jt.prototype.delete=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e},jt.prototype.get=function(t){return this.__data__.get(t)},jt.prototype.has=function(t){return this.__data__.has(t)},jt.prototype.set=function(t,r){var e=this.__data__;if(e instanceof ct){var n=e.__data__;if(!wt||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new St(n)}return e.set(t,r),this.size=e.size,this};var Rt=jt;function zt(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new St;++r<e;)this.add(t[r])}zt.prototype.add=zt.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},zt.prototype.has=function(t){return this.__data__.has(t)};var Ot=zt,Mt=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1},Ft=function(t,r,e,n,i,o){var s=1&e,u=t.length,a=r.length;if(u!=a&&!(s&&a>u))return!1;var c=o.get(t),l=o.get(r);if(c&&l)return c==r&&l==t;var h=-1,f=!0,d=2&e?new Ot:void 0;for(o.set(t,r),o.set(r,t);++h<u;){var g=t[h],v=r[h];if(n)var p=s?n(v,g,h,r,t,o):n(g,v,h,t,r,o);if(void 0!==p){if(p)continue;f=!1;break}if(d){if(!Mt(r,(function(t,r){if(!d.has(r)&&(g===t||i(g,t,e,n,o)))return d.push(r)}))){f=!1;break}}else if(g!==v&&!i(g,v,e,n,o)){f=!1;break}}return o.delete(t),o.delete(r),f},_t=b.Uint8Array,At=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e},Tt=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e},Dt=x?x.prototype:void 0,It=Dt?Dt.valueOf:void 0,Pt=Object.prototype.propertyIsEnumerable,$t=Object.getOwnPropertySymbols,Ut=$t?function(t){return null==t?[]:(t=Object(t),function(t,r){for(var e=-1,n=null==t?0:t.length,i=0,o=[];++e<n;){var s=t[e];r(s,e,t)&&(o[i++]=s)}return o}($t(t),(function(r){return Pt.call(t,r)})))}:function(){return[]},Ht=function(t){return function(t,r,e){var n=r(t);return D(t)?n:function(t,r){for(var e=-1,n=r.length,i=t.length;++e<n;)t[i+e]=r[e];return t}(n,e(t))}(t,et,Ut)},Zt=Object.prototype.hasOwnProperty,Bt=Ct(b,"DataView"),Nt=Ct(b,"Promise"),Wt=Ct(b,"Set"),Vt=Ct(b,"WeakMap"),Gt=dt(Bt),qt=dt(wt),Kt=dt(Nt),Xt=dt(Wt),Jt=dt(Vt),Yt=z;(Bt&&"[object DataView]"!=Yt(new Bt(new ArrayBuffer(1)))||wt&&"[object Map]"!=Yt(new wt)||Nt&&"[object Promise]"!=Yt(Nt.resolve())||Wt&&"[object Set]"!=Yt(new Wt)||Vt&&"[object WeakMap]"!=Yt(new Vt))&&(Yt=function(t){var r=z(t),e="[object Object]"==r?t.constructor:void 0,n=e?dt(e):"";if(n)switch(n){case Gt:return"[object DataView]";case qt:return"[object Map]";case Kt:return"[object Promise]";case Xt:return"[object Set]";case Jt:return"[object WeakMap]"}return r});var Qt=Yt,tr="[object Object]",rr=Object.prototype.hasOwnProperty,er=function(t,r,e,n,i,o){var s=D(t),u=D(r),a=s?"[object Array]":Qt(t),c=u?"[object Array]":Qt(r),l=(a="[object Arguments]"==a?tr:a)==tr,h=(c="[object Arguments]"==c?tr:c)==tr,f=a==c;if(f&&P(t)){if(!P(r))return!1;s=!0,l=!1}if(f&&!l)return o||(o=new Rt),s||V(t)?Ft(t,r,e,n,i,o):function(t,r,e,n,i,o,s){switch(e){case"[object DataView]":if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=r.byteLength||!o(new _t(t),new _t(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return it(+t,+r);case"[object Error]":return t.name==r.name&&t.message==r.message;case"[object RegExp]":case"[object String]":return t==r+"";case"[object Map]":var u=At;case"[object Set]":if(u||(u=Tt),t.size!=r.size&&!(1&n))return!1;var a=s.get(t);if(a)return a==r;n|=2,s.set(t,r);var c=Ft(u(t),u(r),n,i,o,s);return s.delete(t),c;case"[object Symbol]":if(It)return It.call(t)==It.call(r)}return!1}(t,r,a,e,n,i,o);if(!(1&e)){var d=l&&rr.call(t,"__wrapped__"),g=h&&rr.call(r,"__wrapped__");if(d||g){var v=d?t.value():t,p=g?r.value():r;return o||(o=new Rt),i(v,p,e,n,o)}}return!!f&&(o||(o=new Rt),function(t,r,e,n,i,o){var s=1&e,u=Ht(t),a=u.length;if(a!=Ht(r).length&&!s)return!1;for(var c=a;c--;){var l=u[c];if(!(s?l in r:Zt.call(r,l)))return!1}var h=o.get(t),f=o.get(r);if(h&&f)return h==r&&f==t;var d=!0;o.set(t,r),o.set(r,t);for(var g=s;++c<a;){var v=t[l=u[c]],p=r[l];if(n)var C=s?n(p,v,l,r,t,o):n(v,p,l,t,r,o);if(!(void 0===C?v===p||i(v,p,e,n,o):C)){d=!1;break}g||(g="constructor"==l)}if(d&&!g){var w=t.constructor,L=r.constructor;w==L||!("constructor"in t)||!("constructor"in r)||"function"==typeof w&&w instanceof w&&"function"==typeof L&&L instanceof L||(d=!1)}return o.delete(t),o.delete(r),d}(t,r,e,n,i,o))},nr=function t(r,e,n,i,o){return r===e||(null==r||null==e||!O(r)&&!O(e)?r!=r&&e!=e:er(r,e,n,i,t,o))},ir=function(t){return t==t&&!Q(t)},or=function(t,r){return function(e){return null!=e&&e[t]===r&&(void 0!==r||t in Object(e))}},sr=function(t){var r=function(t){for(var r=et(t),e=r.length;e--;){var n=r[e],i=t[n];r[e]=[n,i,ir(i)]}return r}(t);return 1==r.length&&r[0][2]?or(r[0][0],r[0][1]):function(e){return e===t||function(t,r,e,n){var i=e.length,o=i,s=!n;if(null==t)return!o;for(t=Object(t);i--;){var u=e[i];if(s&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<o;){var a=(u=e[i])[0],c=t[a],l=u[1];if(s&&u[2]){if(void 0===c&&!(a in t))return!1}else{var h=new Rt;if(n)var f=n(c,l,a,t,r,h);if(!(void 0===f?nr(l,c,3,n,h):f))return!1}}return!0}(e,t,r)}},ur=function(t){return"symbol"==typeof t||O(t)&&"[object Symbol]"==z(t)},ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cr=/^\w*$/,lr=function(t,r){if(D(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!ur(t))||cr.test(t)||!ar.test(t)||null!=r&&t in Object(r)};function hr(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var e=function(){var n=arguments,i=r?r.apply(this,n):n[0],o=e.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return e.cache=o.set(i,s)||o,s};return e.cache=new(hr.Cache||St),e}hr.Cache=St;var fr,dr,gr,vr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pr=/\\(\\)?/g,Cr=(fr=hr((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(vr,(function(t,e,n,i){r.push(n?i.replace(pr,"$1"):e||t)})),r}),(function(t){return 500===dr.size&&dr.clear(),t})),dr=fr.cache,fr),wr=function(t,r){for(var e=-1,n=null==t?0:t.length,i=Array(n);++e<n;)i[e]=r(t[e],e,t);return i},Lr=x?x.prototype:void 0,mr=Lr?Lr.toString:void 0,br=function t(r){if("string"==typeof r)return r;if(D(r))return wr(r,t)+"";if(ur(r))return mr?mr.call(r):"";var e=r+"";return"0"==e&&1/r==-1/0?"-0":e},xr=function(t){return null==t?"":br(t)},yr=function(t,r){return D(t)?t:lr(t,r)?[t]:Cr(xr(t))},kr=function(t){if("string"==typeof t||ur(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},Er=function(t,r){for(var e=0,n=(r=yr(r,t)).length;null!=t&&e<n;)t=t[kr(r[e++])];return e&&e==n?t:void 0},Sr=function(t,r){return null!=t&&r in Object(t)},jr=function(t,r){return null!=t&&function(t,r,e){for(var n=-1,i=(r=yr(r,t)).length,o=!1;++n<i;){var s=kr(r[n]);if(!(o=null!=t&&e(t,s)))break;t=t[s]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&H(i)&&U(s,i)&&(D(t)||T(t))}(t,r,Sr)},Rr=function(t,r){return lr(t)&&ir(r)?or(kr(t),r):function(e){var n=function(t,r,e){var n=null==t?void 0:Er(t,r);return void 0===n?e:n}(e,t);return void 0===n&&n===r?jr(e,t):nr(r,n,3)}},zr=function(t){return t},Or=function(t){return function(r){return null==r?void 0:r[t]}},Mr=function(t){return lr(t)?Or(kr(t)):function(t){return function(r){return Er(r,t)}}(t)},Fr=function(t){return"function"==typeof t?t:null==t?zr:"object"==typeof t?D(t)?Rr(t[0],t[1]):sr(t):Mr(t)},_r=function(t,r,e,n,i){return i(t,(function(t,i,o){e=n?(n=!1,t):r(e,t,i,o)})),e},Ar=function(t,r,e){var n=D(t)?v:_r,i=arguments.length<3;return n(t,Fr(r),e,i,nt)},Tr=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t},Dr=function(t,r){return(D(t)?Tr:nt)(t,"function"==typeof(e=r)?e:zr);var e},Ir=function(t,r,e,n){for(var i=t.length,o=e+(n?1:-1);n?o--:++o<i;)if(r(t[o],o,t))return o;return-1},Pr=/\s/,$r=/^\s+/,Ur=function(t){return t?t.slice(0,function(t){for(var r=t.length;r--&&Pr.test(t.charAt(r)););return r}(t)+1).replace($r,""):t},Hr=/^[-+]0x[0-9a-f]+$/i,Zr=/^0b[01]+$/i,Br=/^0o[0-7]+$/i,Nr=parseInt,Wr=function(t){if("number"==typeof t)return t;if(ur(t))return NaN;if(Q(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=Q(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=Ur(t);var e=Zr.test(t);return e||Br.test(t)?Nr(t.slice(2),e?2:8):Hr.test(t)?NaN:+t},Vr=function(t){return t?1/0===(t=Wr(t))||-1/0===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},Gr=function(t){var r=Vr(t),e=r%1;return r==r?e?r-e:r:0},qr=Math.max,Kr=function(t,r,e){var n=null==t?0:t.length;if(!n)return-1;var i=null==e?0:Gr(e);return i<0&&(i=qr(n+i,0)),Ir(t,Fr(r),i)},Xr=(gr=Kr,function(t,r,e){var n=Object(t);if(!rt(t)){var i=Fr(r);t=et(t),r=function(t){return i(n[t],t,n)}}var o=gr(t,r,e);return o>-1?n[i?t[o]:o]:void 0});const Jr=t=>!("isConnected"in t)||t.isConnected,Yr=(()=>{let t;return(...r)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let r of t.keys())t.set(r,t.get(r).filter(Jr))})(...r)}),2e3)}})(),Qr=(e,n)=>{const i=((t,r=((t,r)=>t!==r))=>{let e=new Map(Object.entries(null!=t?t:{}));const n={dispose:[],get:[],set:[],reset:[]},i=()=>{e=new Map(Object.entries(null!=t?t:{})),n.reset.forEach((t=>t()))},o=t=>(n.get.forEach((r=>r(t))),e.get(t)),s=(t,i)=>{const o=e.get(t);r(i,o,t)&&(e.set(t,i),n.set.forEach((r=>r(t,i,o))))},u="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,r)=>o(r),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,r)=>e.has(r),set:(t,r,e)=>(s(r,e),!0)}),a=(t,r)=>(n[t].push(r),()=>{((t,r)=>{const e=t.indexOf(r);e>=0&&(t[e]=t[t.length-1],t.length--)})(n[t],r)});return{state:u,get:o,set:s,on:a,onChange:(r,e)=>{const n=a("set",((t,n)=>{t===r&&e(n)})),i=a("reset",(()=>e(t[r])));return()=>{n(),i()}},use:(...t)=>t.forEach((t=>{t.set&&a("set",t.set),t.get&&a("get",t.get),t.reset&&a("reset",t.reset)})),dispose:()=>{n.dispose.forEach((t=>t())),i()},reset:i}})(e,n);return(({on:e})=>{const n=new Map;"function"==typeof t&&(e("dispose",(()=>{n.clear()})),e("get",(r=>{const e=t();e&&((t,r,e)=>{const n=t.get(r);n?n.includes(e)||n.push(e):t.set(r,[e])})(n,r,e)})),e("set",(t=>{const e=n.get(t);e&&n.set(t,e.filter(r)),Yr(n)})),e("reset",(()=>{n.forEach((t=>t.forEach(r))),Yr(n)})))})(i),i};var te=Math.ceil,re=Math.max,ee=function(t,r,e){if(!Q(e))return!1;var n=typeof r;return!!("number"==n?rt(e)&&U(r,e.length):"string"==n&&r in e)&&it(e[r],t)},ne=function(t,r,e){return e&&"number"!=typeof e&&ee(t,r,e)&&(r=e=void 0),t=Vr(t),void 0===r?(r=t,t=0):r=Vr(r),function(t,r,e,n){for(var i=-1,o=re(te((r-t)/(e||1)),0),s=Array(o);o--;)s[n?o:++i]=t,t+=e;return s}(t,r,e=void 0===e?t<r?1:-1:Vr(e),void 0)};function ie(t,r){for(let e in r)t.set(e,r[e])}class oe{constructor(t){const r=this.dataStore=Qr({items:[],proxyItems:[],source:[],groupingDepth:0,groups:{},type:t,trimmed:{}});r.use((t=>({set(r,e){if(!function(t){return"proxyItems"===t}(r))return;const n=t.get("items").reduce(((t,r)=>(t[r]=!0,t)),{}),i=e.reduce(((t,r)=>(n[r]&&t.push(r),t)),[]);t.set("items",i)}}))(r)),r.use((t=>({set(r,e){switch(r){case"trimmed":const r=t.get("proxyItems"),n=function(t){const r={};for(let e in t)for(let n in t[e])r[n]=r[n]||t[e][n];return r}(e),i=r.reduce(((t,r)=>(n[r]||t.push(r),t)),[]);t.set("items",i)}}}))(r))}get store(){return this.dataStore}updateData(t,r,e=!1){e||this.store.set("trimmed",{}),this.store.set("items",[]);const n=ne(0,(null==t?void 0:t.length)||0);ie(this.store,{source:t,proxyItems:[...n]}),this.store.set("items",n),r&&ie(this.store,{groupingDepth:r.depth,groups:r.groups})}addTrimmed(t){let r=this.store.get("trimmed");r=Object.assign(Object.assign({},r),t),ie(this.store,{trimmed:r})}setData(t){const r=Object.assign({},t);ie(this.store,r)}refresh(){const t=this.store.get("source");this.store.set("source",[...t])}}function se(t){const r=t.get("source");return t.get("items").map((t=>r[t]))}function ue(t,r){const e=t.get("items");return t.get("source")[e[r]]}function ae(t,r){const e=t.get("items"),n=t.get("source");for(let t in r)n[e[t]]=r[t];t.set("source",[...n])}function ce(t,r){t.set("items",r)}const le=["rowPinStart","rgRow","rowPinEnd"],he=["colPinStart","rgCol","colPinEnd"];var fe=function(t,r){var e=-1,n=rt(t)?Array(t.length):[];return nt(t,(function(t,i,o){n[++e]=r(t,i,o)})),n},de=function(t,r){return(D(t)?wr:fe)(t,Fr(r))};class ge{constructor(t){this.revogrid=t,this.subscriptions={}}addEventListener(t,r){this.revogrid.addEventListener(t,r),this.subscriptions[t]=r}removeEventListener(t){this.revogrid.removeEventListener(t,this.subscriptions[t]),delete this.subscriptions[t]}emit(t,r){const e=new CustomEvent(t,{detail:r,cancelable:!0});return this.revogrid.dispatchEvent(e),e}clearSubscriptions(){for(let t in this.subscriptions)this.removeEventListener(t)}destroy(){this.clearSubscriptions()}}class ve extends ge{static gatherGroup(t,r,e,n=0){const i=Object.assign(Object.assign({},r),{level:n,ids:[]});for(let r in e.columns){const n=r,o=t.columns[n],s=e.columns[n];D(o)&&D(s)&&(o.push(...s),s.length&&t.columnGrouping[n].push(Object.assign(Object.assign({},i),{ids:de(s,"prop")})))}for(let r in e.columnGrouping)t.columnGrouping[r].push(...e.columnGrouping[r]);return t.maxLevel=Math.max(t.maxLevel,e.maxLevel),t}static isColGrouping(t){return!!t.children}}class pe{constructor(){this.sorting=null,this.dataSources=Ar(he,((t,r)=>(t[r]=new oe(r),t)),{})}get order(){return Ar(this.sorting,((t,r,e)=>(t[e]=r.order,t)),{})}get stores(){return this.dataSources}column(t,r){return this.getColumn(t,r||"rgCol")}getColumn(t,r){return ue(this.dataSources[r].store,t)}getRawColumns(){return Ar(this.dataSources,((t,r,e)=>(t[e]=r.store.get("source"),t)),{rgCol:[],colPinStart:[],colPinEnd:[]})}getColumns(t="all"){return"all"!==t?this.dataSources[t].store.get("source"):he.reduce(((t,r)=>(t.push(...this.dataSources[r].store.get("source")),t)),[])}getColumnIndexByProp(t,r){return function(t,r){const e=t.get("items"),n=t.get("source"),i=Kr(n,{prop:r});return e.indexOf(i)}(this.dataSources[r].store,t)}getColumnByProp(t,r){const e=this.dataSources[r].store.get("source");return Xr(e,{prop:t})}refreshByType(t){this.dataSources[t].refresh()}setColumns(t){return Dr(he,(r=>{this.dataSources[r].updateData(t.columns[r],{depth:t.maxLevel,groups:Ar(t.columnGrouping[r],((t,r)=>(t[r.level]||(t[r.level]=[]),t[r.level].push(r),t)),{})})})),this.sorting=t.sort,t}updateColumns(t){const r=t.reduce(((t,r)=>{const e=pe.getColumnType(r);return t[e]||(t[e]={}),t[e][r.prop]=r,t}),{}),e={};Dr(r,((t,r)=>{const n=this.dataSources[r].store.get("source");e[r]=n.reduce(((r,e,n)=>{const i=t[e.prop];return i&&(r[n]=i),r}),{})})),Dr(e,((t,r)=>ae(this.dataSources[r].store,t)))}updateColumn(t,r){const e=pe.getColumnType(t);ae(this.dataSources[e].store,{[r]:t})}updateColumnSorting(t,r,e){return this.clearSorting(),t.order=e,this.sorting[t.prop]=t,this.updateColumn(t,r),t}clearSorting(){const t=Ar(this.sorting,((t,r)=>(t[pe.getColumnType(r)]=!0,t)),{});Dr(t,((t,r)=>{const e=this.dataSources[r].store.get("source");Dr(e,(t=>t.order=void 0)),this.dataSources[r].setData({source:[...e]})})),this.sorting={}}static getSizes(t){return Ar(t,((t,r,e)=>(r.size&&(t[e]=r.size),t)),{})}static getColumnByProp(t,r){return Xr(t,(t=>ve.isColGrouping(t)?pe.getColumnByProp(t.children,r):t.prop===r))}static getColumns(t,r=0,e){return Ar(t,((t,n)=>{if(ve.isColGrouping(n))return ve.gatherGroup(t,n,pe.getColumns(n.children,r+1,e),r);const i=Object.assign(Object.assign({},n.columnType&&e&&e[n.columnType]),n);return i.pin?t.columns[i.pin].push(i):t.columns.rgCol.push(i),i.order&&(t.sort[i.prop]=i),i.beforeSetup&&i.beforeSetup(i),t}),{columns:{rgCol:[],colPinStart:[],colPinEnd:[]},columnGrouping:{rgCol:[],colPinStart:[],colPinEnd:[]},maxLevel:r,sort:{}})}static getColumnType(t){return t.pin?t.pin:"rgCol"}}class Ce{constructor(t){this.dimensionProvider=t,this.stores=Ar(le,((t,r)=>(t[r]=new oe(r),t)),{})}setData(t,r="rgRow",e,n=!1){return this.stores[r].updateData([...t],e,n),this.dimensionProvider.setData(t,r,"rgRow"!==r),t}getModel(t,r="rgRow"){return ue(this.stores[r].store,t)}setCellData({type:t,rowIndex:r,prop:e,val:n}){const i=this.getModel(r,t);i[e]=n,ae(this.stores[t].store,{[r]:i})}refresh(t="all"){(function(t){return le.indexOf(t)>-1})(t)&&this.refreshItems(t),le.forEach((t=>this.refreshItems(t)))}refreshItems(t="rgRow"){const r=this.stores[t].store.get("items");this.stores[t].setData({items:[...r]})}setGrouping({depth:t},r="rgRow"){this.stores[r].setData({groupingDepth:t})}setTrimmed(t,r="rgRow"){const e=this.stores[r];e.addTrimmed(t),"rgRow"===r&&this.dimensionProvider.setData(se(e.store),r)}}var we,Le=Math.floor,me=Math.min,be=function(t,r,e){var n=0,i=null==t?n:t.length;if("number"==typeof r&&r==r&&i<=2147483647){for(;n<i;){var o=n+i>>>1,s=t[o];null!==s&&!ur(s)&&(e?s<=r:s<r)?n=o+1:i=o}return i}return function(t,r,e,n){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(r=e(r))!=r,u=null===r,a=ur(r),c=void 0===r;i<o;){var l=Le((i+o)/2),h=e(t[l]),f=void 0!==h,d=null===h,g=h==h,v=ur(h);if(s)var p=n||g;else p=c?g&&(n||f):u?g&&f&&(n||!d):a?g&&f&&!d&&(n||!v):!d&&!v&&(n?h<=r:h<r);p?i=l+1:o=l}return me(o,4294967294)}(t,r,zr,e)},xe=function(t,r){return be(t,r)};function ye(t,r){return t<r}function ke(t){const r=t.createElement("div"),e=r.style;e.visibility="hidden",e.overflow="scroll",e.msOverflowStyle="scrollbar",t.body.appendChild(r);const n=t.createElement("div");r.appendChild(n);const i=r.offsetWidth-n.offsetWidth;return r.parentNode.removeChild(r),i}function Ee(t,r,e){return(e[1]-e[0])*(t-r[0])/(r[1]-r[0])+e[0]}async function Se(t=0){await new Promise((r=>{setTimeout((()=>r()),t)}))}function je({indexes:t,positionIndexes:r,originItemSize:e,positionIndexToItem:n},i){const o={itemIndex:0,start:0,end:0},s=t.length?xe(r,i):0;if(!s)return o.itemIndex=Math.floor(i/e),o.start=o.itemIndex*e,o.end=o.start+e,o;const u=n[s-1];if(u.end>i)return u;const a=Math.floor((i-u.end)/e);return o.itemIndex=u.itemIndex+1+a,o.start=u.end+a*e,o.end=o.start+e,o}function Re(t,r){let e={itemIndex:r,start:0,end:0};if(t.indexToItem[r])return t.indexToItem[r];const n=t.indexes.length?xe(t.indexes,r):0;if(!n)return e.start=e.itemIndex*t.originItemSize,e.end=e.start+t.originItemSize,e;const i=t.indexToItem[t.indexes[n-1]];return e.start=i.end+(r-i.itemIndex-1)*t.originItemSize,e.end=e.start+t.originItemSize,e}function ze(){return Object.assign(Object.assign({},{indexes:[],sizes:{},positionIndexToItem:{},indexToItem:{},positionIndexes:[]}),{realSize:0,originItemSize:0,frameOffset:0})}class Oe{constructor(){this.store=Qr(ze())}getCurrentState(){const t=ze(),r=Object.keys(t);return Ar(r,((t,r)=>{const e=this.store.get(r);return t[r]=e,t}),t)}setRealSize(t){let r=0;for(let e=0;e<t;e++)r+=this.store.get("sizes")[e]||this.store.get("originItemSize");ie(this.store,{realSize:r})}setStore(t){ie(this.store,t)}drop(){ie(this.store,{indexes:[],sizes:{},positionIndexToItem:{},indexToItem:{},positionIndexes:[]})}setDimensionSize(t){const r=function(t,r){let e=[];const n={},i={};let o=0;const s=Object.assign(Object.assign({},t.sizes),r);let u=[];Dr(r,((r,e)=>{t.sizes[e]?o+=r-t.sizes[e]:(o+=r-(t.realSize?t.originItemSize:0),u.splice(xe(u,parseInt(e,10)),0,parseInt(e,10)))}));const a=function(t,r,e=ye){const n=[];let i=0,o=0,s=0;for(;s<t.length+r.length;){let u=o>=r.length;i>=t.length||!u&&!e(t[i],r[o])?(n[s]=r[o],o++):(n[s]=t[i],i++),s++}return n}(t.indexes,u);return Ar(a,((r,o,u)=>{const a={itemIndex:o,start:0,end:0};return a.start=r?(o-r.itemIndex-1)*t.originItemSize+r.end:o*t.originItemSize,a.end=a.start+s[o],e.push(a.start),i[o]=n[u]=a,a}),void 0),{indexes:a,positionIndexes:[...e],positionIndexToItem:Object.assign({},n),indexToItem:i,realSize:t.realSize+o,sizes:s}}(this.getCurrentState(),t);return ie(this.store,r),r}}class Me{constructor(t){this.viewports=t,this.stores=Ar([...le,...he],((t,r)=>(t[r]=new Oe,t)),{})}setDimensionSize(t,r){this.stores[t].setDimensionSize(r),this.viewports.stores[t].setViewPortDimension(r)}setRealSize(t,r){this.viewports.stores[r].setViewport({realCount:t}),this.stores[r].setRealSize(t)}setData(t,r,e=!1){this.setRealSize(t.length,r),e&&this.setNoVirtual(r),this.setViewPortCoordinate({coordinate:this.viewports.stores[r].store.get("lastCoordinate"),type:r})}setNoVirtual(t){const r=this.stores[t].getCurrentState();this.viewports.stores[t].setViewport({virtualSize:r.realSize})}drop(){for(let t of he)this.stores[t].drop()}setColumns(t,r,e=!1){this.stores[t].setDimensionSize(r),e&&this.setNoVirtual(t),this.setViewPortCoordinate({coordinate:this.viewports.stores[t].store.get("lastCoordinate"),type:t})}setViewPortCoordinate({coordinate:t,type:r}){const e=this.stores[r].getCurrentState();this.viewports.stores[r].setViewPortCoordinate(t,e)}getViewPortPos(t){return Re(this.stores[t.dimension].getCurrentState(),t.coordinate).start}setSettings(t,r){let e=[];switch(r){case"rgCol":e=he;break;case"rgRow":e=le}for(let r of e)this.stores[r].setStore(t)}}function Fe(t,r,e){t.splice(e.end+1,0,...r),e.start>=e.end&&(e.start!==e.end||0!==e.start)&&(e.start+=r.length),e.end+=r.length}function _e(t,r,e,n,i){const o=Ie(n);return Ae({sizes:i.sizes,start:o.end,startIndex:o.itemIndex+1,origSize:i.originItemSize,maxSize:e-(o.end-t.start),maxCount:r})}function Ae(t,r=0){const e=[];let n=t.startIndex,i=r;for(;i<=t.maxSize&&n<t.maxCount;){const r=Te(n,t.sizes,t.origSize);e.push({start:t.start+i,end:t.start+i+r,itemIndex:n,size:r}),i+=r,n++}return e}function Te(t,r,e=0){return r&&r[t]?r[t]:e}function De(t){return t.items[t.start]}function Ie(t){return t.items[t.end]}class Pe{constructor(){this.store=Qr({items:[],start:0,end:0,virtualSize:0,realCount:0,lastCoordinate:0}),this.store.onChange("realCount",(()=>this.clear()))}setViewPortCoordinate(t,r){let e=this.store.get("virtualSize");if(!e)return;const n=r.frameOffset;e+=2*n*r.originItemSize;let i=e;r.realSize>e&&(i=r.realSize-e);let o={lastCoordinate:t},s=t;s-=n*r.originItemSize,s=s<0?0:s<i?s:i;const u=De(this.getItems()),a=Ie(this.getItems());if(function(t,r){return r&&t>=r.start&&t<=r.end}(s,u)){if(u&&this.store.get("virtualSize")+s>(null==a?void 0:a.end)){const t=_e(u,this.store.get("realCount"),e+s-u.start,this.getItems(),r);if(t.length){const r=[...this.store.get("items")],e={start:this.store.get("start"),end:this.store.get("end")};Fe(r,t,e),o=Object.assign(Object.assign(Object.assign({},o),{items:[...r]}),e),ie(this.store,Object.assign({},o))}}}else o=Object.assign(Object.assign({},o),function(t,r,e,n,i){const o=je(i,t),s=De(r);let u;if(s){let t=o.itemIndex-(s.itemIndex||0);if(t){const s=function(t,r){const e=[...r.items],n=e.length;let i={start:r.start,end:r.end};if(t>n)return null;if(r.positiveDirection){let o=Ie(r),s=i.start;const u=s+t;for(;s<u;s++){const t=o.itemIndex+1,u=Te(t,r.sizes,r.originItemSize);if(o.end+u>r.realSize)break;let a=s%n;if(!e[a])throw new Error("incorrect index");e[a]=o={start:o.end,end:o.end+u,itemIndex:t,size:u},i.start++,i.end=a}}else{let o=De(r);const s=i.end;for(let u=0;u<t;u++){const t=o.itemIndex-1,a=Te(t,r.sizes,r.originItemSize);let c=s-u;if(c=(c<0?n+c:c)%n,!e[c])throw new Error("incorrect index");e[c]=o={start:o.start-a,end:o.start,itemIndex:t,size:a},i.start=c,i.end--}}return Object.assign({items:e},{start:(i.start<0?n+i.start:i.start)%n,end:(i.end<0?n+i.end:i.end)%n})}(Math.abs(t),Object.assign(Object.assign({positiveDirection:t>-1},i),r));if(s&&(u=s),u){const t=_e(o,e,n,u,i);t.length&&Fe(u.items,t,u)}}}if(!u){const t=Ae({start:o.start,startIndex:o.itemIndex,origSize:i.originItemSize,maxSize:n,maxCount:e,sizes:i.sizes});u={items:t,start:0,end:t.length-1}}return u}(s,this.getItems(),this.store.get("realCount"),e,r)),ie(this.store,Object.assign({},o))}setViewPortDimension(t){const r=this.store.get("items"),e=r.length;if(!e)return;let n=0,i=0,o=this.store.get("start");for(;i<e;){const s=r[o];n&&(s.start+=n,s.end+=n);const u=t[s.itemIndex];u&&(n+=u-s.size,s.size=u,s.end=s.start+u),o++,i++,o===e&&(o=0)}ie(this.store,{items:[...r]})}getItems(){return{items:this.store.get("items"),start:this.store.get("start"),end:this.store.get("end")}}setViewport(t){ie(this.store,t)}clear(){this.store.set("items",[])}}class $e{constructor(){this.stores=Ar([...le,...he],((t,r)=>(t[r]=new Pe,t)),{})}setViewport(t,r){this.stores[t].setViewport(r)}}!function(t){t.headerClickAutosize="headerClickAutoSize",t.autoSizeOnTextOverlap="autoSizeOnTextOverlap",t.autoSizeAll="autoSizeAll"}(we||(we={}));class Ue extends ge{constructor(t,r,e){super(t),this.providers=r,this.config=e,this.autoSizeColumns=null,this.dataResolve=null,this.dataReject=null,this.letterBlockSize=(null==e?void 0:e.letterBlockSize)||7,(null==e?void 0:e.preciseSize)&&(this.precsizeCalculationArea=this.initiatePresizeElement(),t.appendChild(this.precsizeCalculationArea));const n=({detail:{source:t}})=>{this.setSource(t)},i=({detail:t})=>{this.afteredit(t)},o=({detail:t})=>{this.afterEditAll(t)},s=({detail:t})=>{const r=pe.getColumnType(t),e=this.getColumnSize(t.index,r);e&&this.providers.dimensionProvider.setDimensionSize(r,{[t.index]:e})};switch(this.addEventListener("beforecolumnsset",(({detail:{columns:t}})=>{this.columnSet(t)})),null==e?void 0:e.mode){case we.autoSizeOnTextOverlap:this.addEventListener("aftersourceset",n),this.addEventListener("afteredit",i);break;case we.autoSizeAll:this.addEventListener("aftersourceset",n),this.addEventListener("afteredit",o);break;default:this.addEventListener("headerdblClick",s)}}async setSource(t){let r=this.autoSizeColumns;if(this.dataReject&&(this.dataReject(),this.clearPromise()),!r){const t=new Promise(((t,r)=>{this.dataResolve=t,this.dataReject=r}));try{r=await t}catch(t){return}}Dr(r,((e,n)=>{const i={};Dr(r[n],(r=>{r.size=i[r.index]=t.reduce(((t,e)=>Math.max(t,this.getLength(e[r.prop]))),0)})),this.providers.dimensionProvider.setDimensionSize(n,i)}))}getLength(t){var r;if(!t)return 0;try{const e=t.toString();return(null===(r=this.config)||void 0===r?void 0:r.preciseSize)?(this.precsizeCalculationArea.innerText=e,this.precsizeCalculationArea.scrollWidth+30):e.length*this.letterBlockSize+30}catch(t){return 0}}afteredit(t){let r;r=this.isRangeEdit(t)?t.data:{0:{[t.prop]:t.val}},Dr(this.autoSizeColumns,((t,e)=>{const n={};Dr(t,(t=>{const e=Ar(r,((r,e)=>void 0===e[t.prop]?r:Math.max(r||0,this.getLength(e[t.prop]))),void 0);e&&t.size<e&&(t.size=n[t.index]=e)})),this.providers.dimensionProvider.setDimensionSize(e,n)}))}afterEditAll(t){const r={};this.isRangeEdit(t)?Dr(t.data,(t=>Dr(t,((t,e)=>r[e]=!0)))):r[t.prop]=!0,Dr(this.autoSizeColumns,((t,e)=>{const n={};Dr(t,(t=>{if(r[t.prop]){const r=this.getColumnSize(t.index,e);r&&(n[t.index]=r)}})),this.providers.dimensionProvider.setDimensionSize(e,n)}))}getColumnSize(t,r){const e=this.autoSizeColumns[r][t];return e?Ar(this.providers.dataProvider.stores,((t,r)=>{const n=Ar(r.store.get("items"),((t,n,i)=>{const o=ue(r.store,i);return Math.max(t||0,this.getLength(o[e.prop]))}),0);return Math.max(t,n)}),e.size||0):0}columnSet(t){var r;for(let e of he){const n=e,i=t[n];for(let t in i)(i[t].autoSize||(null===(r=this.config)||void 0===r?void 0:r.allColumns))&&(this.autoSizeColumns||(this.autoSizeColumns={}),this.autoSizeColumns[n]||(this.autoSizeColumns[n]={}),this.autoSizeColumns[n][t]=Object.assign(Object.assign({},i[t]),{index:parseInt(t,10)}))}this.dataResolve&&(this.dataResolve(this.autoSizeColumns),this.clearPromise())}clearPromise(){this.dataResolve=null,this.dataReject=null}isRangeEdit(t){return!!t.data}initiatePresizeElement(){const t={position:"absolute",fontSize:"14px",height:"0",width:"0",whiteSpace:"nowrap",top:"0",overflowX:"scroll"},r=document.createElement("div");for(let e in t)r.style[e]=t[e];return r.classList.add("revo-test-container"),r}destroy(){var t;super.destroy(),null===(t=this.precsizeCalculationArea)||void 0===t||t.remove()}}const He=(t,r)=>void 0===t||null===t&&!r||("string"!=typeof t&&(t=JSON.stringify(t)),t.toLocaleLowerCase()===r),Ze=(t,r)=>!He(t,r);Ze.extra="input",He.extra="input";const Be=function(t,r){let e;return"number"==typeof t&&(e=parseFloat(null==r?void 0:r.toString()),t>e)};Be.extra="input";const Ne=function(t,r){return He(t,r)||Be(t,r)};Ne.extra="input";const We=function(t,r){let e;return"number"==typeof t&&(e=parseFloat(null==r?void 0:r.toString()),t<e)};We.extra="input";const Ve=function(t,r){return He(t,r)||We(t,r)};Ve.extra="input";const Ge=t=>!(""===t||null==t),qe=(t,r)=>!(!t||r&&("string"!=typeof t&&(t=JSON.stringify(t)),"string"!=typeof r&&(r=JSON.stringify(r)),0!==t.toLocaleLowerCase().indexOf(r.toLocaleLowerCase())));qe.extra="input";const Ke=(t,r)=>!!t&&(!r||("string"!=typeof t&&(t=JSON.stringify(t)),t.toLocaleLowerCase().indexOf(r.toString().toLowerCase())>-1)),Xe=(t,r)=>!Ke(t,r);Xe.extra="input",Ke.extra="input";const Je={none:"None",empty:"Not set",notEmpty:"Set",eq:"Equal",notEq:"Not equal",begins:"Begins with",contains:"Contains",notContains:"Does not contain",eqN:"=",neqN:"!=",gt:">",gte:">=",lt:"<",lte:"<="},Ye={none:()=>!0,empty:t=>!Ge(t),notEmpty:Ge,eq:He,notEq:Ze,begins:qe,contains:Ke,notContains:Xe,eqN:He,neqN:Ze,gt:Be,gte:Ne,lt:We,lte:Ve},Qe={string:["notEmpty","empty","eq","notEq","begins","contains","notContains"],number:["notEmpty","empty","eqN","neqN","gt","gte","lt","lte"]};class tn extends ge{constructor(t,r,n){super(t),this.revogrid=t,this.filterCollection={},this.possibleFilters=Object.assign({},Qe),this.possibleFilterNames=Object.assign({},Je),this.possibleFilterEntities=Object.assign({},Ye),n&&this.initConfig(n),this.addEventListener("headerclick",(t=>this.headerclick(t))),this.addEventListener("aftersourceset",(()=>{Object.keys(this.filterCollection).length&&this.filterByProps(this.filterCollection)})),this.revogrid.registerVNode([e("revogr-filter-panel",{uuid:`filter-${r}`,filterNames:this.possibleFilterNames,filterEntities:this.possibleFilterEntities,onFilterChange:t=>this.onFilterChange(t.detail),ref:t=>this.pop=t})])}initConfig(t){if(t.collection&&(this.filterCollection=Object.assign({},t.collection)),t.customFilters)for(let r in t.customFilters){const e=t.customFilters[r];this.possibleFilters[e.columnFilterType]||(this.possibleFilters[e.columnFilterType]=[]),this.possibleFilters[e.columnFilterType].push(r),this.possibleFilterEntities[r]=e.func,this.possibleFilterNames[r]=e.name}if(t.include){const r={};for(let e in this.possibleFilters){const n=this.possibleFilters[e].filter((r=>t.include.indexOf(r)>-1));n.length&&(r[e]=n)}Object.keys(r).length>0&&(this.possibleFilters=r)}}async headerclick(t){var r;const e=null===(r=t.detail.originalEvent)||void 0===r?void 0:r.target;if(!u(e))return;t.preventDefault();const n=await this.pop.getChanges();if(n&&(null==n?void 0:n.prop)===t.detail.prop)return void this.pop.show();const i=this.revogrid.getBoundingClientRect(),o=e.getBoundingClientRect(),s=t.detail.prop;this.pop.filterTypes=this.getColumnFilter(t.detail.filter),this.pop.show(Object.assign(Object.assign({},this.filterCollection[s]),{x:o.x-i.x,y:o.y-i.y+o.height,prop:s}))}getColumnFilter(t){let r="string";if(!t)return{[r]:this.possibleFilters[r]};if(this.isValidType(t))r=t;else if("object"==typeof t&&t.length)return t.reduce(((t,r)=>(this.isValidType(r)&&(t[r]=this.possibleFilters[r]),t)),{});return{[r]:this.possibleFilters[r]}}isValidType(t){return!("string"!=typeof t||!this.possibleFilters[t])}async onFilterChange(t){this.filterByProps({[t.prop]:t})}async filterByProps(t,r=!1){r&&(this.filterCollection={});for(const r in t){const{type:e,value:n}=t[r];"none"===e?delete this.filterCollection[r]:this.filterCollection[r]={filter:this.possibleFilterEntities[e],value:n,type:e}}await this.runFiltering()}async doFiltering(t,r,e){const n=[];e.forEach((r=>{const e=Object.assign({},r),i=t[e.prop];e[a]&&!i&&(delete e[a],n.push(e)),!e[a]&&i&&(n.push(e),e[a]=!0)}));const i=this.getRowFilter(r,t),{defaultPrevented:o,detail:s}=this.emit("beforefiltertrimmed",{collection:t,itemsToFilter:i,source:r});o||(await this.revogrid.addTrimmed(s.itemsToFilter,"filter")).defaultPrevented||(await this.revogrid.updateColumns(n),this.emit("afterFilterApply"))}async clearFiltering(){this.filterCollection={},await this.runFiltering()}async runFiltering(){const{source:t,columns:r}=await this.getData(),{defaultPrevented:e,detail:n}=this.emit("beforefilterapply",{collection:this.filterCollection,source:t,columns:r});e||this.doFiltering(n.collection,n.source,n.columns)}async getData(){return{source:await this.revogrid.getSource(),columns:await this.revogrid.getColumns()}}getRowFilter(t,r){const e={};return t.forEach(((t,n)=>{for(const i in r){const o=r[i];(0,o.filter)(t[i],o.value)||(e[n]=!0)}})),e}}var rn=function(t){return"string"==typeof t||!D(t)&&O(t)&&"[object String]"==z(t)},en=Or("length"),nn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),on="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",sn="\\ud83c[\\udffb-\\udfff]",un="[^\\ud800-\\udfff]",an="(?:\\ud83c[\\udde6-\\uddff]){2}",cn="[\\ud800-\\udbff][\\udc00-\\udfff]",ln="(?:"+on+"|"+sn+")?",hn="[\\ufe0e\\ufe0f]?"+ln+"(?:\\u200d(?:"+[un,an,cn].join("|")+")[\\ufe0e\\ufe0f]?"+ln+")*",fn="(?:"+[un+on+"?",on,an,cn,"[\\ud800-\\udfff]"].join("|")+")",dn=RegExp(sn+"(?="+sn+")|"+fn+hn,"g"),gn=function(t){return function(t){return nn.test(t)}(t)?function(t){for(var r=dn.lastIndex=0;dn.test(t);)++r;return r}(t):en(t)};class vn extends ge{constructor(t){super(t),this.revogrid=t,this.sorting=null,this.addEventListener("beforesourceset",(({detail:t})=>{if(this.hasSorting&&this.emit("beforesourcesortingapply").defaultPrevented)return;const r=this.setData(t.source,t.type);r&&(t.source=r)})),this.addEventListener("aftercolumnsset",(async({detail:{order:t}})=>this.sort(t))),this.addEventListener("initialHeaderClick",(async t=>{t.defaultPrevented||t.detail.column.sortable&&this.headerclick(t.detail.column,t.detail.index)}))}get hasSorting(){return!!this.sorting}async headerclick(t,r){let e=this.getNextOrder(t.order);const n=this.emit("beforesorting",{column:t,order:e});if(n.defaultPrevented)return;e=n.detail.order;const i=await this.revogrid.updateColumnSorting(n.detail.column,r,e),o=this.emit("beforesortingapply",{column:i,order:e});o.defaultPrevented||(e=o.detail.order,this.sort({[t.prop]:e}))}setData(t,r){if("rgRow"===r&&this.sorting)return this.sortItems(t,this.sorting)}async sort(t){if(!function(t){if(null==t)return 0;if(rt(t))return rn(t)?gn(t):t.length;var r=Qt(t);return"[object Map]"==r||"[object Set]"==r?t.size:Y(t).length}(t))return void(this.sorting=null);this.sorting=t;const r=await this.revogrid.getSourceStore(),e=r.get("source"),n=this.sortIndexByItems([...r.get("proxyItems")],e,this.sorting);ie(r,{proxyItems:n,source:[...e]}),this.emit("afterSortingApply")}keySort(t,r,e){const n="asc"===e?1:-1;return t===r?0:(null==t?void 0:t.toString().toLowerCase())>(null==r?void 0:r.toString().toLowerCase())?1*n:-1*n}sortIndexByItems(t,r,e){for(let r in e)if(void 0===e[r])return[...Array(t.length).keys()];return t.sort(((t,n)=>{let i=0;for(let o in e)i=this.keySort(r[t][o],r[n][o],e[o]);return i}))}sortItems(t,r){return t.sort(((t,e)=>{let n=0;for(let i in r)n=this.keySort(t[i],e[i],r[i]);return n}))}getNextOrder(t){switch(t){case void 0:return"asc";case"asc":return"desc";case"desc":return}}}var pn=function(t,r,e,n){var i=t.length;for((e=Gr(e))<0&&(e=-e>i?0:i+e),(n=void 0===n||n>i?i:Gr(n))<0&&(n+=i),n=e>n?0:function(t){return t?(r=Gr(t),e=0,n=4294967295,r==r&&(void 0!==n&&(r=r<=n?r:n),void 0!==e&&(r=r>=e?r:e)),r):0;var r,e,n}(n);e<n;)t[e++]=r;return t};const Cn="grid-uuid";function wn(t,r,{prevExpanded:e,expandedAll:n}){const i=function(t,r){const e=[],n={};return t.forEach(((t,i)=>{const o=JSON.stringify(r(t));n[o]||(n[o]=new Map,e.push({children:n[o],id:o})),n[o].set(i,t)})),e}(t,r),o=[],s={};let u=0,a=0;const c={},l={};return i.forEach((t=>{const r=bn(t.id);if(!r)return;let i=0,h=!!n,f=h;const d=[];r.reduce(((r,l)=>{r.push(l);const g=r.join(",");if(!s[g]){if(f=n||e&&e[g],o.push(function(t,r,e,n,i=!1){return{"__rvgr-name":t,"__rvgr-depth":e,"__rvgr-id":n,"__rvgr-value":r,"__rvgr-expanded":i}}(l,g,i,t.id,f)),i&&!f&&!h){const t=r.slice(0,r.length-1);e&&t.length&&e[t.join(",")]||(c[u]=!0)}u++,s[g]=d}return i++,a=i,r}),[]),t.children.forEach(((t,r)=>{f||h||(c[u]=!0),o.push(t),l[r]=u,d.push(u),u++}))})),{sourceWithGroups:o,depth:a,trimmed:c,oldNewIndexMap:l,childrenByGroup:s}}function Ln(t){return t&&void 0!==t["__rvgr-name"]}function mn(t){return t&&void 0!==t["__rvgr-column"]}function bn(t){const r=JSON.parse(t);return void 0===r.push?null:r}function xn(t,r,e){const n=bn(e["__rvgr-id"]);if(!n)return!1;const i=function(t,r){const e=t.length;let n=0;for(;n<e;n++)if(t[n]!==r[n])return n;return n}(t,n);return r["__rvgr-depth"]<i}const yn={mime:"text/csv",fileKind:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n",encoding:""},kn=String.fromCharCode(13),En=String.fromCharCode(10),Sn=String.fromCharCode(34),jn=String.fromCharCode(65279),Rn=new RegExp('"',"g");class zn{constructor(t={}){this.options=Object.assign(Object.assign({},yn),t)}doExport({data:t,headers:r,props:e}){let n=this.options.bom?jn:"";return(null==r?void 0:r.length)>0&&r.forEach((t=>{t.length&&(n+=this.prepareHeader(t,this.options.columnDelimiter),n+=this.options.rowDelimiter)})),t.forEach(((t,r)=>{r>0&&(n+=this.options.rowDelimiter),Ln(t)?n+=this.parseCell(function(t){return t&&t["__rvgr-name"]}(t),this.options.columnDelimiter):n+=e.map((r=>this.parseCell(t[r],this.options.columnDelimiter))).join(this.options.columnDelimiter)})),n}prepareHeader(t,r){let e="";return e+=t.map((t=>this.parseCell(t,r,!0))).join(r),e}parseCell(t,r,e=!1){let n=t;return"string"!=typeof t&&(n=JSON.stringify(t)),void 0===n?"":""!==n&&(e||[kn,Sn,En,r].some((t=>n.indexOf(t)>=0)))?`"${n.replace(Rn,'""')}"`:n}}var On;!function(t){t.csv="csv"}(On||(On={}));class Mn extends ge{async exportString(t={},r=On.csv){const e=await this.beforeexport();return e?this.formatter(r,t).doExport(e):null}async exportBlob(t={},r=On.csv){return await this.getBlob(this.formatter(r,t))}async exportFile(t={},r=On.csv){const e=this.formatter(r,t),n=await this.getBlob(e),i=window.URL||window.webkitURL,o=document.createElement("a"),{filename:s,fileKind:u}=e.options,a=`${s}.${u}`,c=i.createObjectURL(n);o.style.display="none",o.setAttribute("href",c),o.setAttribute("download",a),this.revogrid.appendChild(o),o.dispatchEvent(new MouseEvent("click")),this.revogrid.removeChild(o),await Se(120),i.revokeObjectURL(c)}async getBlob(t){const r=`${t.options.mime};charset=${t.options.encoding}`;if("undefined"!=typeof Blob){const e=await this.beforeexport();return e?new Blob([t.doExport(e)],{type:r}):null}return null}async beforeexport(){let t=await this.getData();const r=this.emit("beforeexport",{data:t});return r.defaultPrevented?null:r.detail.data}async getData(){const t=await this.getSource(),r=[],e=[];he.forEach(((t,n)=>{e.push(this.getColPerSource(t).then((t=>r[n]=t)))})),await Promise.all(e);const n={headers:[],props:[]};for(let t of r)t.headers.forEach(((t,r)=>{n.headers[r]||(n.headers[r]=[]),n.headers[r].push(...t)})),n.props.push(...t.props);return Object.assign({data:t},n)}async getColPerSource(t){const r=await this.revogrid.getColumnStore(t),e=r.get("source"),n=r.get("items"),i=r.get("groupingDepth"),o=r.get("groups"),s=[],u=[],a=n.reduce(((t,r,n)=>{const i=e[r].prop;return s.push(e[r].name||""),u.push(i),t[i]=n,t}),{}),c=this.getGroupHeaders(i,o,n,a);return c.push(s),{headers:c,props:u}}getGroupHeaders(t,r,e,n){const i=[],o=(s=new Array(e.length),u="",(l=null==s?0:s.length)?(a&&"number"!=typeof a&&ee(s,u,a)&&(a=0,c=l),pn(s,u,a,c)):[]);var s,u,a,c,l;for(let e=0;e<t;e++){const t=[...o];(i.push(t),r[e])&&r[e].forEach((r=>{const e=this.findGroupStartIndex(r.ids,n);"number"==typeof e&&(t[e]=r.name)}))}return i}findGroupStartIndex(t,r){let e;return t.forEach((t=>{const n=r[t];"number"==typeof n&&("number"!=typeof e||e>n)&&(e=n)})),e}async getSource(){const t=[],r=[];return le.forEach((e=>{const n=[];t.push(n);const i=this.revogrid.getVisibleSource(e).then((t=>n.push(...t)));r.push(i)})),await Promise.all(r),t.reduce(((t,r)=>(t.push(...r),t)),[])}formatter(t,r={}){switch(t){case On.csv:return new zn(r);default:throw new Error("Unknown format")}}}class Fn extends ge{constructor(t,r){super(t),this.revogrid=t,this.providers=r}get hasProps(){var t,r,e;return(null===(t=this.options)||void 0===t?void 0:t.props)&&(null===(e=null===(r=this.options)||void 0===r?void 0:r.props)||void 0===e?void 0:e.length)}get store(){return this.providers.dataProvider.stores.rgRow.store}get rowItems(){return this.store.get("items")}get trimmed(){return this.store.get("trimmed")}onFocus(t){Ln(t.detail.model)&&t.preventDefault()}onExpand({virtualIndex:t}){const{source:r}=this.getSource();let e=this.trimmed.grouping,n=function(t,r){return t.get("items")[r]}(this.store,t);if(r[n]["__rvgr-expanded"]){const{trimmed:t}=function(t,r){const e=r[t],n=e["__rvgr-id"],i={};let o=t+1;const s=r.length;for(;o<s;){const t=r[o];if(Ln(t)){if(n!==t["__rvgr-id"])break;t["__rvgr-expanded"]=!1}i[o++]=!0}return e["__rvgr-expanded"]=!1,{trimmed:i}}(n,r);e=Object.assign(Object.assign({},e),t),this.revogrid.clearFocus()}else{const{trimmed:n,items:i}=function(t,r,e){const n=e[t],i=r[n],o=bn(i["__rvgr-id"]),s={};if(!o)return{trimmed:s};const u=[];i["__rvgr-expanded"]=!0;let a=n+1;const c=r.length;let l=0;for(;a<c;){const t=r[a],e=Ln(t);if(e){if(!xn(o,i,t))break;l||(l=t["__rvgr-depth"])}(!l||e&&l===t["__rvgr-depth"])&&(s[a]=!1,u.push(a)),a++}const h={trimmed:s};if(u.length){const r=[...e];r.splice(t+1,0,...u),h.items=r}return h}(t,r,this.rowItems);e=Object.assign(Object.assign({},e),n),i&&ce(this.store,i)}this.store.set("source",r),this.revogrid.addTrimmed(e,"grouping")}getSource(t=!1){const r=this.store.get("source"),e=this.store.get("proxyItems");let n=0;return e.reduce(((e,i)=>{const o=r[i];return t?(Ln(o)?o["__rvgr-expanded"]&&(e.prevExpanded[o["__rvgr-value"]]=!0):(e.source.push(o),e.oldNewIndexes[i]=n,n++),e):(e.source.push(o),e)}),{source:[],prevExpanded:{},oldNewIndexes:{}})}setColumnGrouping(t){return!!(null==t?void 0:t.length)&&(t[0]["__rvgr-column"]=!0,!0)}setColumns({columns:t}){for(let r of he)if(this.setColumnGrouping(t[r]))break}onDrag(t){const{from:r,to:e}=t.detail,n=e-r>=0,{source:i}=this.getSource(),o=this.rowItems;let s=n?r:e;const u=n?e:r;for(;s<u;s++)if(Ln(i[o[s]]))return void t.preventDefault()}beforeTrimmedApply(t,r){if("filter"===r){const r=this.store.get("source");for(let e in t)t[e]&&Ln(r[e])&&(t[e]=!1)}}subscribe(){this.addEventListener("beforesourceset",(({detail:t})=>this.onDataSet(t))),this.addEventListener("beforecolumnsset",(({detail:t})=>this.setColumns(t))),this.addEventListener("beforetrimmed",(({detail:{trimmed:t,trimmedType:r}})=>this.beforeTrimmedApply(t,r))),this.addEventListener("afterSortingApply",(()=>this.doSourceUpdate())),this.addEventListener("beforecellfocus",(t=>this.onFocus(t))),this.addEventListener("roworderchanged",(t=>this.onDrag(t))),this.addEventListener("groupExpandClick",(({detail:t})=>this.onExpand(t)))}doSourceUpdate(t){if(!this.hasProps)return;const{source:r,prevExpanded:e,oldNewIndexes:n}=this.getSource(!0),{sourceWithGroups:i,depth:o,trimmed:s,oldNewIndexMap:u,childrenByGroup:a}=wn(r,(t=>{var r;return null===(r=this.options)||void 0===r?void 0:r.props.map((r=>t[r]))}),Object.assign({prevExpanded:e},t));this.providers.dataProvider.setData(i,"rgRow",{depth:o},!0),this.updateTrimmed(s,a,n,u)}onDataSet(t){if(!this.hasProps||!(null==t?void 0:t.source)||!t.source.length)return;const r=t.source.filter((t=>!Ln(t))),e=this.revogrid.grouping||{},{sourceWithGroups:n,depth:i,trimmed:o,oldNewIndexMap:s,childrenByGroup:u}=wn(r,(t=>{var r;return null===(r=this.options)||void 0===r?void 0:r.props.map((r=>t[r]))}),Object.assign({},e||{}));t.source=n,this.providers.dataProvider.setGrouping({depth:i}),this.updateTrimmed(o,u,s)}setGrouping(t){if(this.clearSubscriptions(),this.options=t,!t.props||!Object.keys(t.props).length)return void this.clearGrouping();const{source:r}=this.getSource();r.length&&this.doSourceUpdate(Object.assign({},t));for(let t of he)if(this.setColumnGrouping(this.providers.columnProvider.getColumns(t))){this.providers.columnProvider.refreshByType(t);break}this.subscribe()}clearGrouping(){he.forEach((t=>{const r=this.providers.columnProvider.getColumns(t);let e=!1;r.forEach((t=>{mn(t)&&(delete t["__rvgr-column"],e=!0)})),e&&this.providers.columnProvider.refreshByType(t)}));const{source:t,oldNewIndexes:r}=this.getSource(!0);this.providers.dataProvider.setData(t,"rgRow",void 0,!0),this.updateTrimmed(void 0,void 0,r)}updateTrimmed(t={},r={},e,n){const i=function(t,r,e){const n={};for(let i in t){if("grouping"===i)continue;const o=t[i],s={};for(let t in o){let u=r[t];e&&(u=e[u]),o[t]&&(s[u]=!0,u!==parseInt(t,10)&&(n[i]=s))}}return n}(this.trimmed,e,n);for(let t in i)this.revogrid.addTrimmed(i[t],t);this.revogrid.addTrimmed(Object.assign({},t),"grouping")}}class _n{constructor(){this.parentY=0}start(t,{pos:r,text:e,event:n}){var i;const{top:o}=t.getBoundingClientRect();this.parentY=o,this.text&&(this.text.innerText=e),this.move(r),this.moveTip({x:n.x,y:n.y}),null===(i=this.el)||void 0===i||i.classList.remove("hidden")}end(){var t;null===(t=this.el)||void 0===t||t.classList.add("hidden")}move(t){this.moveElement(t.end-this.parentY)}moveTip({x:t,y:r}){this.draggable&&(this.draggable.style.left=`${t}px`,this.draggable.style.top=`${r}px`)}moveElement(t){this.rgRow&&(this.rgRow.style.transform=`translateY(${t}px)`)}}const An=({ref:t})=>{const r=new _n;return t(r),e("div",{class:"draggable-wrapper hidden",ref:t=>r.el=t},e("div",{class:"draggable",ref:t=>r.draggable=t},e("span",{class:"revo-alt-icon"}),e("span",{ref:t=>r.text=t})),e("div",{class:"drag-position",ref:t=>r.rgRow=t}))},Tn=({viewports:t,dimensions:r,orderRef:n,nakedClick:i,registerElement:o,onScroll:s},u)=>{let a;return[e("div",{class:"main-viewport",ref:t=>a=t,onClick:t=>((t,r)=>{r===t.target&&i(t)})(t,a)},e("div",{class:"viewports"},u,e("revogr-scroll-virtual",{class:"vertical",dimension:"rgRow",viewportStore:t.rgRow.store,dimensionStore:r.rgRow.store,ref:t=>o(t,"rowScroll"),onScrollVirtual:t=>s(t.detail)}),e(An,{ref:n}))),e("revogr-scroll-virtual",{class:"horizontal",dimension:"rgCol",viewportStore:t.rgCol.store,dimensionStore:r.rgCol.store,ref:t=>o(t,"colScroll"),onScrollVirtual:t=>s(t.detail)})]};function Dn(t){return t===Un}function In(t,r){const e=Object.assign({},t);let n=["x","y"];for(let r of n)t[r]<0&&(e[r]=0);for(let i of n)t[i]>=r[i]&&(e[i]=r[i]-1);return e}function Pn(t,r){return t&&r?{x:Math.min(t.x,r.x),y:Math.min(t.y,r.y),x1:Math.max(t.x,r.x),y1:Math.max(t.y,r.y)}:null}class $n{constructor(){this.unsubscribe=[],this.store=Qr({range:null,tempRange:null,tempRangeType:null,focus:null,edit:null,lastCell:null}),this.store.on("set",((t,r)=>{"tempRange"!==t||r||this.store.set("tempRangeType",null)}))}onChange(t,r){this.unsubscribe.push(this.store.onChange(t,r))}clearFocus(){ie(this.store,{focus:null,range:null,edit:null,tempRange:null})}setFocus(t,r){ie(this.store,{focus:t,range:Pn(t,r),edit:null,tempRange:null})}setTempArea(t){ie(this.store,{tempRange:null==t?void 0:t.area,tempRangeType:null==t?void 0:t.type,edit:null})}clearTemp(){ie(this.store,{tempRange:null})}setRangeArea(t){ie(this.store,{range:t,edit:null,tempRange:null})}setRange(t,r){this.setRangeArea(Pn(t,r))}setLastCell(t){ie(this.store,{lastCell:t})}setEdit(t){const r=this.store.get("focus");ie(this.store,r&&"string"==typeof t?{edit:{x:r.x,y:r.y,val:t}}:{edit:null})}dispose(){this.unsubscribe.forEach((t=>t())),this.store.dispose()}}const Un=-1;class Hn{constructor(){this.dirty=!1,this.stores={},this.columnStores={},this.rowStores={},this.sections=[]}get focusedStore(){var t;for(let r in this.stores)for(let e in this.stores[r]){const n=null===(t=this.stores[r][e])||void 0===t?void 0:t.store.get("focus");if(n)return{entity:this.stores[r][e],cell:n,position:{x:parseInt(e,10),y:parseInt(r,10)}}}return null}get edit(){var t;return null===(t=this.focusedStore)||void 0===t?void 0:t.entity.store.get("edit")}get focused(){var t;return null===(t=this.focusedStore)||void 0===t?void 0:t.entity.store.get("focus")}registerSection(t){if(!t)return this.sections.length=0,void(this.dirty=!0);-1===this.sections.indexOf(t)&&this.sections.push(t)}beforeUpdate(){if(this.dirty){for(let t in this.stores)for(let r in this.stores[t])this.stores[t][r].dispose();this.dirty=!1}}registerColumn(t){return Dn(t)?new $n:(this.columnStores[t]||(this.columnStores[t]=new $n),this.columnStores[t])}registerRow(t){return Dn(t)?new $n:(this.rowStores[t]||(this.rowStores[t]=new $n),this.rowStores[t])}register({x:t,y:r}){var e,n;return Dn(t)||Dn(r)?new $n:(this.stores[r]||(this.stores[r]={}),this.stores[r][t]||(this.stores[r][t]=new $n,null===(e=this.stores[r][t])||void 0===e||e.onChange("range",(e=>{this.columnStores[t].setRangeArea(e),this.rowStores[r].setRangeArea(e)})),null===(n=this.stores[r][t])||void 0===n||n.store.on("dispose",(()=>{var e,n;null===(e=this.columnStores[t])||void 0===e||e.dispose(),null===(n=this.rowStores[r])||void 0===n||n.dispose(),delete this.rowStores[r],delete this.columnStores[t],this.stores[r]&&delete this.stores[r][t],Object.keys(this.stores[r]||{}).length||delete this.stores[r]}))),this.stores[r][t])}setEditByCell({x:t,y:r},e){this.focus(this.stores[r][t],{focus:e,end:e}),this.setEdit("")}focus(t,{focus:r,end:e}){let n;for(let r in this.stores)for(let e in this.stores[r]){const i=this.stores[r][e];i!==t?i.clearFocus():n={x:parseInt(e,10),y:parseInt(r,10)}}if(!n)return;const i=t.store.get("lastCell"),o=function(t,r){const e={};let n=["x","y"];for(let r of n)if(t[r]<0)return e[r]=t[r],e;for(let i of n)if(t[i]>=r[i])return e[i]=t[i]-r[i],e;return null}(r,i);let s;if(o)for(let t in o){let r,e=t;switch(e){case"x":r=this.getXStores(n.y);break;case"y":r=this.getYStores(n.x)}if(o[e]>=0)s=r[++n[e]];else{s=r[--n[e]];const t=null==s?void 0:s.store.get("lastCell");t&&(o[e]=t[e]+o[e])}}if(s){let t=Object.assign(Object.assign({},r),o);this.focus(s,{focus:t,end:t})}else r=In(r,i),e=In(r,i),t.setFocus(r,e)}clearAll(){var t;for(let r in this.stores)for(let e in this.stores[r])null===(t=this.stores[r][e])||void 0===t||t.clearFocus()}setEdit(t){this.focusedStore&&this.focusedStore.entity.setEdit(t)}getXStores(t){return this.stores[t]}getYStores(t){const r={};for(let e in this.stores)r[e]=this.stores[e][t];return r}}function Zn(t,r){return{x:t.viewports[t.colType].store.get("realCount"),y:t.viewports[r].store.get("realCount")}}var Bn=w((function(t,r){(function(){var e,n="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",s=32,u=128,a=1/0,c=9007199254740991,l=NaN,h=4294967295,f=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",s],["partialRight",64],["rearg",256]],d="[object Arguments]",g="[object Array]",v="[object Boolean]",p="[object Date]",w="[object Error]",L="[object Function]",m="[object GeneratorFunction]",b="[object Map]",x="[object Number]",y="[object Object]",k="[object Promise]",E="[object RegExp]",S="[object Set]",j="[object String]",R="[object Symbol]",z="[object WeakMap]",O="[object ArrayBuffer]",M="[object DataView]",F="[object Float32Array]",_="[object Float64Array]",A="[object Int8Array]",T="[object Int16Array]",D="[object Int32Array]",I="[object Uint8Array]",P="[object Uint8ClampedArray]",$="[object Uint16Array]",U="[object Uint32Array]",H=/\b__p \+= '';/g,Z=/\b(__p \+=) '' \+/g,B=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,V=RegExp(N.source),G=RegExp(W.source),q=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tt=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(tt.source),et=/^\s+/,nt=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,st=/,? & /,ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,at=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ht=/\w*$/,ft=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,gt=/^\[object .+?Constructor\]$/,vt=/^0o[0-7]+$/i,pt=/^(?:0|[1-9]\d*)$/,Ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,Lt=/['\n\r\u2028\u2029\\]/g,mt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",bt="a-z\\xdf-\\xf6\\xf8-\\xff",xt="A-Z\\xc0-\\xd6\\xd8-\\xde",yt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",kt="["+yt+"]",Et="["+mt+"]",St="\\d+",jt="["+bt+"]",Rt="[^\\ud800-\\udfff"+yt+St+"\\u2700-\\u27bf"+bt+xt+"]",zt="\\ud83c[\\udffb-\\udfff]",Ot="[^\\ud800-\\udfff]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ft="[\\ud800-\\udbff][\\udc00-\\udfff]",_t="["+xt+"]",At="(?:"+jt+"|"+Rt+")",Tt="(?:"+_t+"|"+Rt+")",Dt="(?:['’](?:d|ll|m|re|s|t|ve))?",It="(?:['’](?:D|LL|M|RE|S|T|VE))?",Pt="(?:"+Et+"|"+zt+")?",$t="[\\ufe0e\\ufe0f]?",Ut=$t+Pt+"(?:\\u200d(?:"+[Ot,Mt,Ft].join("|")+")"+$t+Pt+")*",Ht="(?:"+["[\\u2700-\\u27bf]",Mt,Ft].join("|")+")"+Ut,Zt="(?:"+[Ot+Et+"?",Et,Mt,Ft,"[\\ud800-\\udfff]"].join("|")+")",Bt=RegExp("['’]","g"),Nt=RegExp(Et,"g"),Wt=RegExp(zt+"(?="+zt+")|"+Zt+Ut,"g"),Vt=RegExp([_t+"?"+jt+"+"+Dt+"(?="+[kt,_t,"$"].join("|")+")",Tt+"+"+It+"(?="+[kt,_t+At,"$"].join("|")+")",_t+"?"+At+"+"+Dt,_t+"+"+It,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",St,Ht].join("|"),"g"),Gt=RegExp("[\\u200d\\ud800-\\udfff"+mt+"\\ufe0e\\ufe0f]"),qt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xt=-1,Jt={};Jt[F]=Jt[_]=Jt[A]=Jt[T]=Jt[D]=Jt[I]=Jt[P]=Jt[$]=Jt[U]=!0,Jt[d]=Jt[g]=Jt[O]=Jt[v]=Jt[M]=Jt[p]=Jt[w]=Jt[L]=Jt[b]=Jt[x]=Jt[y]=Jt[E]=Jt[S]=Jt[j]=Jt[z]=!1;var Yt={};Yt[d]=Yt[g]=Yt[O]=Yt[M]=Yt[v]=Yt[p]=Yt[F]=Yt[_]=Yt[A]=Yt[T]=Yt[D]=Yt[b]=Yt[x]=Yt[y]=Yt[E]=Yt[S]=Yt[j]=Yt[R]=Yt[I]=Yt[P]=Yt[$]=Yt[U]=!0,Yt[w]=Yt[L]=Yt[z]=!1;var Qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tr=parseFloat,rr=parseInt,er="object"==typeof C&&C&&C.Object===Object&&C,nr="object"==typeof self&&self&&self.Object===Object&&self,ir=er||nr||Function("return this")(),or=r&&!r.nodeType&&r,sr=or&&t&&!t.nodeType&&t,ur=sr&&sr.exports===or,ar=ur&&er.process,cr=function(){try{return sr&&sr.require&&sr.require("util").types||ar&&ar.binding&&ar.binding("util")}catch(t){}}(),lr=cr&&cr.isArrayBuffer,hr=cr&&cr.isDate,fr=cr&&cr.isMap,dr=cr&&cr.isRegExp,gr=cr&&cr.isSet,vr=cr&&cr.isTypedArray;function pr(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}function Cr(t,r,e,n){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];r(n,s,e(s),t)}return n}function wr(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t}function Lr(t,r){for(var e=null==t?0:t.length;e--&&!1!==r(t[e],e,t););return t}function mr(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(!r(t[e],e,t))return!1;return!0}function br(t,r){for(var e=-1,n=null==t?0:t.length,i=0,o=[];++e<n;){var s=t[e];r(s,e,t)&&(o[i++]=s)}return o}function xr(t,r){return!(null==t||!t.length)&&Fr(t,r,0)>-1}function yr(t,r,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(r,t[n]))return!0;return!1}function kr(t,r){for(var e=-1,n=null==t?0:t.length,i=Array(n);++e<n;)i[e]=r(t[e],e,t);return i}function Er(t,r){for(var e=-1,n=r.length,i=t.length;++e<n;)t[i+e]=r[e];return t}function Sr(t,r,e,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(e=t[++i]);++i<o;)e=r(e,t[i],i,t);return e}function jr(t,r,e,n){var i=null==t?0:t.length;for(n&&i&&(e=t[--i]);i--;)e=r(e,t[i],i,t);return e}function Rr(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}var zr=Dr("length");function Or(t,r,e){var n;return e(t,(function(t,e,i){if(r(t,e,i))return n=e,!1})),n}function Mr(t,r,e,n){for(var i=t.length,o=e+(n?1:-1);n?o--:++o<i;)if(r(t[o],o,t))return o;return-1}function Fr(t,r,e){return r==r?function(t,r,e){for(var n=e-1,i=t.length;++n<i;)if(t[n]===r)return n;return-1}(t,r,e):Mr(t,Ar,e)}function _r(t,r,e,n){for(var i=e-1,o=t.length;++i<o;)if(n(t[i],r))return i;return-1}function Ar(t){return t!=t}function Tr(t,r){var e=null==t?0:t.length;return e?$r(t,r)/e:l}function Dr(t){return function(r){return null==r?e:r[t]}}function Ir(t){return function(r){return null==t?e:t[r]}}function Pr(t,r,e,n,i){return i(t,(function(t,i,o){e=n?(n=!1,t):r(e,t,i,o)})),e}function $r(t,r){for(var n,i=-1,o=t.length;++i<o;){var s=r(t[i]);s!==e&&(n=n===e?s:n+s)}return n}function Ur(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}function Hr(t){return t?t.slice(0,oe(t)+1).replace(et,""):t}function Zr(t){return function(r){return t(r)}}function Br(t,r){return kr(r,(function(r){return t[r]}))}function Nr(t,r){return t.has(r)}function Wr(t,r){for(var e=-1,n=t.length;++e<n&&Fr(r,t[e],0)>-1;);return e}function Vr(t,r){for(var e=t.length;e--&&Fr(r,t[e],0)>-1;);return e}function Gr(t,r){for(var e=t.length,n=0;e--;)t[e]===r&&++n;return n}var qr=Ir({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Kr=Ir({"&":"&","<":"<",">":">",'"':""","'":"'"});function Xr(t){return"\\"+Qt[t]}function Jr(t){return Gt.test(t)}function Yr(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e}function Qr(t,r){return function(e){return t(r(e))}}function te(t,r){for(var e=-1,n=t.length,i=0,s=[];++e<n;){var u=t[e];u!==r&&u!==o||(t[e]=o,s[i++]=e)}return s}function re(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e}function ee(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=[t,t]})),e}function ne(t){return Jr(t)?function(t){for(var r=Wt.lastIndex=0;Wt.test(t);)++r;return r}(t):zr(t)}function ie(t){return Jr(t)?function(t){return t.match(Wt)||[]}(t):function(t){return t.split("")}(t)}function oe(t){for(var r=t.length;r--&&nt.test(t.charAt(r)););return r}var se=Ir({"&":"&","<":"<",">":">",""":'"',"'":"'"}),ue=function t(r){var C=(r=null==r?ir:ue.defaults(ir.Object(),r,ue.pick(ir,Kt))).Array,nt=r.Date,mt=r.Error,bt=r.Function,xt=r.Math,yt=r.Object,kt=r.RegExp,Et=r.String,St=r.TypeError,jt=C.prototype,Rt=yt.prototype,zt=r["__core-js_shared__"],Ot=bt.prototype.toString,Mt=Rt.hasOwnProperty,Ft=0,_t=function(){var t=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),At=Rt.toString,Tt=Ot.call(yt),Dt=ir._,It=kt("^"+Ot.call(Mt).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pt=ur?r.Buffer:e,$t=r.Symbol,Ut=r.Uint8Array,Ht=Pt?Pt.allocUnsafe:e,Zt=Qr(yt.getPrototypeOf,yt),Wt=yt.create,Gt=Rt.propertyIsEnumerable,Qt=jt.splice,er=$t?$t.isConcatSpreadable:e,nr=$t?$t.iterator:e,or=$t?$t.toStringTag:e,sr=function(){try{var t=uo(yt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ar=r.clearTimeout!==ir.clearTimeout&&r.clearTimeout,cr=nt&&nt.now!==ir.Date.now&&nt.now,zr=r.setTimeout!==ir.setTimeout&&r.setTimeout,Ir=xt.ceil,ae=xt.floor,ce=yt.getOwnPropertySymbols,le=Pt?Pt.isBuffer:e,he=r.isFinite,fe=jt.join,de=Qr(yt.keys,yt),ge=xt.max,ve=xt.min,pe=nt.now,Ce=r.parseInt,we=xt.random,Le=jt.reverse,me=uo(r,"DataView"),be=uo(r,"Map"),xe=uo(r,"Promise"),ye=uo(r,"Set"),ke=uo(r,"WeakMap"),Ee=uo(yt,"create"),Se=ke&&new ke,je={},Re=To(me),ze=To(be),Oe=To(xe),Me=To(ye),Fe=To(ke),_e=$t?$t.prototype:e,Ae=_e?_e.valueOf:e,Te=_e?_e.toString:e;function De(t){if(Ys(t)&&!Hs(t)&&!(t instanceof Ue)){if(t instanceof $e)return t;if(Mt.call(t,"__wrapped__"))return Do(t)}return new $e(t)}var Ie=function(){function t(){}return function(r){if(!Js(r))return{};if(Wt)return Wt(r);t.prototype=r;var n=new t;return t.prototype=e,n}}();function Pe(){}function $e(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=e}function Ue(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function He(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Ze(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Be(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Ne(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new Be;++r<e;)this.add(t[r])}function We(t){var r=this.__data__=new Ze(t);this.size=r.size}function Ve(t,r){var e=Hs(t),n=!e&&Us(t),i=!e&&!n&&Ws(t),o=!e&&!n&&!i&&su(t),s=e||n||i||o,u=s?Ur(t.length,Et):[],a=u.length;for(var c in t)!r&&!Mt.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vo(c,a))||u.push(c);return u}function Ge(t){var r=t.length;return r?t[Nn(0,r-1)]:e}function qe(t,r){return Fo(Ei(t),nn(r,0,t.length))}function Ke(t){return Fo(Ei(t))}function Xe(t,r,n){(n!==e&&!Is(t[r],n)||n===e&&!(r in t))&&rn(t,r,n)}function Je(t,r,n){var i=t[r];Mt.call(t,r)&&Is(i,n)&&(n!==e||r in t)||rn(t,r,n)}function Ye(t,r){for(var e=t.length;e--;)if(Is(t[e][0],r))return e;return-1}function Qe(t,r,e,n){return cn(t,(function(t,i,o){r(n,t,e(t),o)})),n}function tn(t,r){return t&&Si(r,Ru(r),t)}function rn(t,r,e){"__proto__"==r&&sr?sr(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}function en(t,r){for(var n=-1,i=r.length,o=C(i),s=null==t;++n<i;)o[n]=s?e:yu(t,r[n]);return o}function nn(t,r,n){return t==t&&(n!==e&&(t=t<=n?t:n),r!==e&&(t=t>=r?t:r)),t}function on(t,r,n,i,o,s){var u,a=1&r,c=2&r,l=4&r;if(n&&(u=o?n(t,i,o,s):n(t)),u!==e)return u;if(!Js(t))return t;var h=Hs(t);if(h){if(u=function(t){var r=t.length,e=new t.constructor(r);return r&&"string"==typeof t[0]&&Mt.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!a)return Ei(t,u)}else{var f=lo(t),g=f==L||f==m;if(Ws(t))return Li(t,a);if(f==y||f==d||g&&!o){if(u=c||g?{}:fo(t),!a)return c?function(t,r){return Si(t,co(t),r)}(t,function(t,r){return t&&Si(r,zu(r),t)}(u,t)):function(t,r){return Si(t,ao(t),r)}(t,tn(u,t))}else{if(!Yt[f])return o?t:{};u=function(t,r,e){var n=t.constructor;switch(r){case O:return mi(t);case v:case p:return new n(+t);case M:return function(t,r){var e=r?mi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case F:case _:case A:case T:case D:case I:case P:case $:case U:return bi(t,e);case b:return new n;case x:case j:return new n(t);case E:return function(t){var r=new t.constructor(t.source,ht.exec(t));return r.lastIndex=t.lastIndex,r}(t);case S:return new n;case R:return Ae?yt(Ae.call(t)):{}}}(t,f,a)}}s||(s=new We);var C=s.get(t);if(C)return C;s.set(t,u),nu(t)?t.forEach((function(e){u.add(on(e,r,n,e,t,s))})):Qs(t)&&t.forEach((function(e,i){u.set(i,on(e,r,n,i,t,s))}));var w=h?e:(l?c?to:Qi:c?zu:Ru)(t);return wr(w||t,(function(e,i){w&&(e=t[i=e]),Je(u,i,on(e,r,n,i,t,s))})),u}function sn(t,r,n){var i=n.length;if(null==t)return!i;for(t=yt(t);i--;){var o=n[i],s=t[o];if(s===e&&!(o in t)||!(0,r[o])(s))return!1}return!0}function un(t,r,i){if("function"!=typeof t)throw new St(n);return Ro((function(){t.apply(e,i)}),r)}function an(t,r,e,n){var i=-1,o=xr,s=!0,u=t.length,a=[],c=r.length;if(!u)return a;e&&(r=kr(r,Zr(e))),n?(o=yr,s=!1):r.length>=200&&(o=Nr,s=!1,r=new Ne(r));t:for(;++i<u;){var l=t[i],h=null==e?l:e(l);if(l=n||0!==l?l:0,s&&h==h){for(var f=c;f--;)if(r[f]===h)continue t;a.push(l)}else o(r,h,n)||a.push(l)}return a}De.templateSettings={escape:q,evaluate:K,interpolate:X,variable:"",imports:{_:De}},(De.prototype=Pe.prototype).constructor=De,($e.prototype=Ie(Pe.prototype)).constructor=$e,(Ue.prototype=Ie(Pe.prototype)).constructor=Ue,He.prototype.clear=function(){this.__data__=Ee?Ee(null):{},this.size=0},He.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},He.prototype.get=function(t){var r=this.__data__;if(Ee){var n=r[t];return n===i?e:n}return Mt.call(r,t)?r[t]:e},He.prototype.has=function(t){var r=this.__data__;return Ee?r[t]!==e:Mt.call(r,t)},He.prototype.set=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ee&&r===e?i:r,this},Ze.prototype.clear=function(){this.__data__=[],this.size=0},Ze.prototype.delete=function(t){var r=this.__data__,e=Ye(r,t);return!(e<0||(e==r.length-1?r.pop():Qt.call(r,e,1),--this.size,0))},Ze.prototype.get=function(t){var r=this.__data__,n=Ye(r,t);return n<0?e:r[n][1]},Ze.prototype.has=function(t){return Ye(this.__data__,t)>-1},Ze.prototype.set=function(t,r){var e=this.__data__,n=Ye(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this},Be.prototype.clear=function(){this.size=0,this.__data__={hash:new He,map:new(be||Ze),string:new He}},Be.prototype.delete=function(t){var r=oo(this,t).delete(t);return this.size-=r?1:0,r},Be.prototype.get=function(t){return oo(this,t).get(t)},Be.prototype.has=function(t){return oo(this,t).has(t)},Be.prototype.set=function(t,r){var e=oo(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this},Ne.prototype.add=Ne.prototype.push=function(t){return this.__data__.set(t,i),this},Ne.prototype.has=function(t){return this.__data__.has(t)},We.prototype.clear=function(){this.__data__=new Ze,this.size=0},We.prototype.delete=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e},We.prototype.get=function(t){return this.__data__.get(t)},We.prototype.has=function(t){return this.__data__.has(t)},We.prototype.set=function(t,r){var e=this.__data__;if(e instanceof Ze){var n=e.__data__;if(!be||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new Be(n)}return e.set(t,r),this.size=e.size,this};var cn=zi(Cn),ln=zi(wn,!0);function hn(t,r){var e=!0;return cn(t,(function(t,n,i){return e=!!r(t,n,i)})),e}function fn(t,r,n){for(var i=-1,o=t.length;++i<o;){var s=t[i],u=r(s);if(null!=u&&(a===e?u==u&&!ou(u):n(u,a)))var a=u,c=s}return c}function dn(t,r){var e=[];return cn(t,(function(t,n,i){r(t,n,i)&&e.push(t)})),e}function gn(t,r,e,n,i){var o=-1,s=t.length;for(e||(e=go),i||(i=[]);++o<s;){var u=t[o];r>0&&e(u)?r>1?gn(u,r-1,e,n,i):Er(i,u):n||(i[i.length]=u)}return i}var vn=Oi(),pn=Oi(!0);function Cn(t,r){return t&&vn(t,r,Ru)}function wn(t,r){return t&&pn(t,r,Ru)}function Ln(t,r){return br(r,(function(r){return qs(t[r])}))}function mn(t,r){for(var n=0,i=(r=vi(r,t)).length;null!=t&&n<i;)t=t[Ao(r[n++])];return n&&n==i?t:e}function bn(t,r,e){var n=r(t);return Hs(t)?n:Er(n,e(t))}function xn(t){return null==t?t===e?"[object Undefined]":"[object Null]":or&&or in yt(t)?function(t){var r=Mt.call(t,or),n=t[or];try{t[or]=e;var i=!0}catch(t){}var o=At.call(t);return i&&(r?t[or]=n:delete t[or]),o}(t):function(t){return At.call(t)}(t)}function yn(t,r){return t>r}function kn(t,r){return null!=t&&Mt.call(t,r)}function En(t,r){return null!=t&&r in yt(t)}function Sn(t,r,n){for(var i=n?yr:xr,o=t[0].length,s=t.length,u=s,a=C(s),c=1/0,l=[];u--;){var h=t[u];u&&r&&(h=kr(h,Zr(r))),c=ve(h.length,c),a[u]=!n&&(r||o>=120&&h.length>=120)?new Ne(u&&h):e}h=t[0];var f=-1,d=a[0];t:for(;++f<o&&l.length<c;){var g=h[f],v=r?r(g):g;if(g=n||0!==g?g:0,!(d?Nr(d,v):i(l,v,n))){for(u=s;--u;){var p=a[u];if(!(p?Nr(p,v):i(t[u],v,n)))continue t}d&&d.push(v),l.push(g)}}return l}function jn(t,r,n){var i=null==(t=ko(t,r=vi(r,t)))?t:t[Ao(Go(r))];return null==i?e:pr(i,t,n)}function Rn(t){return Ys(t)&&xn(t)==d}function zn(t,r,n,i,o){return t===r||(null==t||null==r||!Ys(t)&&!Ys(r)?t!=t&&r!=r:function(t,r,n,i,o,s){var u=Hs(t),a=Hs(r),c=u?g:lo(t),l=a?g:lo(r),h=(c=c==d?y:c)==y,f=(l=l==d?y:l)==y,C=c==l;if(C&&Ws(t)){if(!Ws(r))return!1;u=!0,h=!1}if(C&&!h)return s||(s=new We),u||su(t)?Ji(t,r,n,i,o,s):function(t,r,e,n,i,o,s){switch(e){case M:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case O:return!(t.byteLength!=r.byteLength||!o(new Ut(t),new Ut(r)));case v:case p:case x:return Is(+t,+r);case w:return t.name==r.name&&t.message==r.message;case E:case j:return t==r+"";case b:var u=Yr;case S:if(u||(u=re),t.size!=r.size&&!(1&n))return!1;var a=s.get(t);if(a)return a==r;n|=2,s.set(t,r);var c=Ji(u(t),u(r),n,i,o,s);return s.delete(t),c;case R:if(Ae)return Ae.call(t)==Ae.call(r)}return!1}(t,r,c,n,i,o,s);if(!(1&n)){var L=h&&Mt.call(t,"__wrapped__"),m=f&&Mt.call(r,"__wrapped__");if(L||m){var k=L?t.value():t,z=m?r.value():r;return s||(s=new We),o(k,z,n,i,s)}}return!!C&&(s||(s=new We),function(t,r,n,i,o,s){var u=1&n,a=Qi(t),c=a.length;if(c!=Qi(r).length&&!u)return!1;for(var l=c;l--;){var h=a[l];if(!(u?h in r:Mt.call(r,h)))return!1}var f=s.get(t),d=s.get(r);if(f&&d)return f==r&&d==t;var g=!0;s.set(t,r),s.set(r,t);for(var v=u;++l<c;){var p=t[h=a[l]],C=r[h];if(i)var w=u?i(C,p,h,r,t,s):i(p,C,h,t,r,s);if(!(w===e?p===C||o(p,C,n,i,s):w)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var L=t.constructor,m=r.constructor;L==m||!("constructor"in t)||!("constructor"in r)||"function"==typeof L&&L instanceof L&&"function"==typeof m&&m instanceof m||(g=!1)}return s.delete(t),s.delete(r),g}(t,r,n,i,o,s))}(t,r,n,i,zn,o))}function On(t,r,n,i){var o=n.length,s=o,u=!i;if(null==t)return!s;for(t=yt(t);o--;){var a=n[o];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<s;){var c=(a=n[o])[0],l=t[c],h=a[1];if(u&&a[2]){if(l===e&&!(c in t))return!1}else{var f=new We;if(i)var d=i(l,h,c,t,r,f);if(!(d===e?zn(h,l,3,i,f):d))return!1}}return!0}function Mn(t){return!(!Js(t)||(r=t,_t&&_t in r))&&(qs(t)?It:gt).test(To(t));var r}function Fn(t){return"function"==typeof t?t:null==t?ta:"object"==typeof t?Hs(t)?In(t[0],t[1]):Dn(t):ca(t)}function _n(t){if(!mo(t))return de(t);var r=[];for(var e in yt(t))Mt.call(t,e)&&"constructor"!=e&&r.push(e);return r}function An(t,r){return t<r}function Tn(t,r){var e=-1,n=Bs(t)?C(t.length):[];return cn(t,(function(t,i,o){n[++e]=r(t,i,o)})),n}function Dn(t){var r=so(t);return 1==r.length&&r[0][2]?xo(r[0][0],r[0][1]):function(e){return e===t||On(e,t,r)}}function In(t,r){return Co(t)&&bo(r)?xo(Ao(t),r):function(n){var i=yu(n,t);return i===e&&i===r?ku(n,t):zn(r,i,3)}}function Pn(t,r,n,i,o){t!==r&&vn(r,(function(s,u){if(o||(o=new We),Js(s))!function(t,r,n,i,o,s,u){var a=So(t,n),c=So(r,n),l=u.get(c);if(l)Xe(t,n,l);else{var h=s?s(a,c,n+"",t,r,u):e,f=h===e;if(f){var d=Hs(c),g=!d&&Ws(c),v=!d&&!g&&su(c);h=c,d||g||v?Hs(a)?h=a:Ns(a)?h=Ei(a):g?(f=!1,h=Li(c,!0)):v?(f=!1,h=bi(c,!0)):h=[]:ru(c)||Us(c)?(h=a,Us(a)?h=gu(a):Js(a)&&!qs(a)||(h=fo(c))):f=!1}f&&(u.set(c,h),o(h,c,i,s,u),u.delete(c)),Xe(t,n,h)}}(t,r,u,n,Pn,i,o);else{var a=i?i(So(t,u),s,u+"",t,r,o):e;a===e&&(a=s),Xe(t,u,a)}}),zu)}function $n(t,r){var n=t.length;if(n)return vo(r+=r<0?n:0,n)?t[r]:e}function Un(t,r,e){r=r.length?kr(r,(function(t){return Hs(t)?function(r){return mn(r,1===t.length?t[0]:t)}:t})):[ta];var n=-1;return r=kr(r,Zr(io())),function(t){var r=t.length;for(t.sort((function(t,r){return function(t,r,e){for(var n=-1,i=t.criteria,o=r.criteria,s=i.length,u=e.length;++n<s;){var a=xi(i[n],o[n]);if(a)return n>=u?a:a*("desc"==e[n]?-1:1)}return t.index-r.index}(t,r,e)}));r--;)t[r]=t[r].value;return t}(Tn(t,(function(t){return{criteria:kr(r,(function(r){return r(t)})),index:++n,value:t}})))}function Hn(t,r,e){for(var n=-1,i=r.length,o={};++n<i;){var s=r[n],u=mn(t,s);e(u,s)&&Kn(o,vi(s,t),u)}return o}function Zn(t,r,e,n){var i=n?_r:Fr,o=-1,s=r.length,u=t;for(t===r&&(r=Ei(r)),e&&(u=kr(t,Zr(e)));++o<s;)for(var a=0,c=r[o],l=e?e(c):c;(a=i(u,l,a,n))>-1;)u!==t&&Qt.call(u,a,1),Qt.call(t,a,1);return t}function Bn(t,r){for(var e=t?r.length:0,n=e-1;e--;){var i=r[e];if(e==n||i!==o){var o=i;vo(i)?Qt.call(t,i,1):ui(t,i)}}return t}function Nn(t,r){return t+ae(we()*(r-t+1))}function Wn(t,r){var e="";if(!t||r<1||r>c)return e;do{r%2&&(e+=t),(r=ae(r/2))&&(t+=t)}while(r);return e}function Vn(t,r){return zo(yo(t,r,ta),t+"")}function Gn(t){return Ge(Iu(t))}function qn(t,r){var e=Iu(t);return Fo(e,nn(r,0,e.length))}function Kn(t,r,n,i){if(!Js(t))return t;for(var o=-1,s=(r=vi(r,t)).length,u=s-1,a=t;null!=a&&++o<s;){var c=Ao(r[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=u){var h=a[c];(l=i?i(h,c,a):e)===e&&(l=Js(h)?h:vo(r[o+1])?[]:{})}Je(a,c,l),a=a[c]}return t}var Xn=Se?function(t,r){return Se.set(t,r),t}:ta,Jn=sr?function(t,r){return sr(t,"toString",{configurable:!0,enumerable:!1,value:Ju(r),writable:!0})}:ta;function Yn(t){return Fo(Iu(t))}function Qn(t,r,e){var n=-1,i=t.length;r<0&&(r=-r>i?0:i+r),(e=e>i?i:e)<0&&(e+=i),i=r>e?0:e-r>>>0,r>>>=0;for(var o=C(i);++n<i;)o[n]=t[n+r];return o}function ti(t,r){var e;return cn(t,(function(t,n,i){return!(e=r(t,n,i))})),!!e}function ri(t,r,e){var n=0,i=null==t?n:t.length;if("number"==typeof r&&r==r&&i<=2147483647){for(;n<i;){var o=n+i>>>1,s=t[o];null!==s&&!ou(s)&&(e?s<=r:s<r)?n=o+1:i=o}return i}return ei(t,r,ta,e)}function ei(t,r,n,i){var o=0,s=null==t?0:t.length;if(0===s)return 0;for(var u=(r=n(r))!=r,a=null===r,c=ou(r),l=r===e;o<s;){var h=ae((o+s)/2),f=n(t[h]),d=f!==e,g=null===f,v=f==f,p=ou(f);if(u)var C=i||v;else C=l?v&&(i||d):a?v&&d&&(i||!g):c?v&&d&&!g&&(i||!p):!g&&!p&&(i?f<=r:f<r);C?o=h+1:s=h}return ve(s,4294967294)}function ni(t,r){for(var e=-1,n=t.length,i=0,o=[];++e<n;){var s=t[e],u=r?r(s):s;if(!e||!Is(u,a)){var a=u;o[i++]=0===s?0:s}}return o}function ii(t){return"number"==typeof t?t:ou(t)?l:+t}function oi(t){if("string"==typeof t)return t;if(Hs(t))return kr(t,oi)+"";if(ou(t))return Te?Te.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}function si(t,r,e){var n=-1,i=xr,o=t.length,s=!0,u=[],a=u;if(e)s=!1,i=yr;else if(o>=200){var c=r?null:Wi(t);if(c)return re(c);s=!1,i=Nr,a=new Ne}else a=r?[]:u;t:for(;++n<o;){var l=t[n],h=r?r(l):l;if(l=e||0!==l?l:0,s&&h==h){for(var f=a.length;f--;)if(a[f]===h)continue t;r&&a.push(h),u.push(l)}else i(a,h,e)||(a!==u&&a.push(h),u.push(l))}return u}function ui(t,r){return null==(t=ko(t,r=vi(r,t)))||delete t[Ao(Go(r))]}function ai(t,r,e,n){return Kn(t,r,e(mn(t,r)),n)}function ci(t,r,e,n){for(var i=t.length,o=n?i:-1;(n?o--:++o<i)&&r(t[o],o,t););return e?Qn(t,n?0:o,n?o+1:i):Qn(t,n?o+1:0,n?i:o)}function li(t,r){var e=t;return e instanceof Ue&&(e=e.value()),Sr(r,(function(t,r){return r.func.apply(r.thisArg,Er([t],r.args))}),e)}function hi(t,r,e){var n=t.length;if(n<2)return n?si(t[0]):[];for(var i=-1,o=C(n);++i<n;)for(var s=t[i],u=-1;++u<n;)u!=i&&(o[i]=an(o[i]||s,t[u],r,e));return si(gn(o,1),r,e)}function fi(t,r,n){for(var i=-1,o=t.length,s=r.length,u={};++i<o;)n(u,t[i],i<s?r[i]:e);return u}function di(t){return Ns(t)?t:[]}function gi(t){return"function"==typeof t?t:ta}function vi(t,r){return Hs(t)?t:Co(t,r)?[t]:_o(vu(t))}var pi=Vn;function Ci(t,r,n){var i=t.length;return n=n===e?i:n,!r&&n>=i?t:Qn(t,r,n)}var wi=ar||function(t){return ir.clearTimeout(t)};function Li(t,r){if(r)return t.slice();var e=t.length,n=Ht?Ht(e):new t.constructor(e);return t.copy(n),n}function mi(t){var r=new t.constructor(t.byteLength);return new Ut(r).set(new Ut(t)),r}function bi(t,r){var e=r?mi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function xi(t,r){if(t!==r){var n=t!==e,i=null===t,o=t==t,s=ou(t),u=r!==e,a=null===r,c=r==r,l=ou(r);if(!a&&!l&&!s&&t>r||s&&u&&c&&!a&&!l||i&&u&&c||!n&&c||!o)return 1;if(!i&&!s&&!l&&t<r||l&&n&&o&&!i&&!s||a&&n&&o||!u&&o||!c)return-1}return 0}function yi(t,r,e,n){for(var i=-1,o=t.length,s=e.length,u=-1,a=r.length,c=ge(o-s,0),l=C(a+c),h=!n;++u<a;)l[u]=r[u];for(;++i<s;)(h||i<o)&&(l[e[i]]=t[i]);for(;c--;)l[u++]=t[i++];return l}function ki(t,r,e,n){for(var i=-1,o=t.length,s=-1,u=e.length,a=-1,c=r.length,l=ge(o-u,0),h=C(l+c),f=!n;++i<l;)h[i]=t[i];for(var d=i;++a<c;)h[d+a]=r[a];for(;++s<u;)(f||i<o)&&(h[d+e[s]]=t[i++]);return h}function Ei(t,r){var e=-1,n=t.length;for(r||(r=C(n));++e<n;)r[e]=t[e];return r}function Si(t,r,n,i){var o=!n;n||(n={});for(var s=-1,u=r.length;++s<u;){var a=r[s],c=i?i(n[a],t[a],a,n,t):e;c===e&&(c=t[a]),o?rn(n,a,c):Je(n,a,c)}return n}function ji(t,r){return function(e,n){var i=Hs(e)?Cr:Qe,o=r?r():{};return i(e,t,io(n,2),o)}}function Ri(t){return Vn((function(r,n){var i=-1,o=n.length,s=o>1?n[o-1]:e,u=o>2?n[2]:e;for(s=t.length>3&&"function"==typeof s?(o--,s):e,u&&po(n[0],n[1],u)&&(s=o<3?e:s,o=1),r=yt(r);++i<o;){var a=n[i];a&&t(r,a,i,s)}return r}))}function zi(t,r){return function(e,n){if(null==e)return e;if(!Bs(e))return t(e,n);for(var i=e.length,o=r?i:-1,s=yt(e);(r?o--:++o<i)&&!1!==n(s[o],o,s););return e}}function Oi(t){return function(r,e,n){for(var i=-1,o=yt(r),s=n(r),u=s.length;u--;){var a=s[t?u:++i];if(!1===e(o[a],a,o))break}return r}}function Mi(t){return function(r){var n=Jr(r=vu(r))?ie(r):e,i=n?n[0]:r.charAt(0),o=n?Ci(n,1).join(""):r.slice(1);return i[t]()+o}}function Fi(t){return function(r){return Sr(qu(Uu(r).replace(Bt,"")),t,"")}}function _i(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var e=Ie(t.prototype),n=t.apply(e,r);return Js(n)?n:e}}function Ai(t){return function(r,n,i){var o=yt(r);if(!Bs(r)){var s=io(n,3);r=Ru(r),n=function(t){return s(o[t],t,o)}}var u=t(r,n,i);return u>-1?o[s?r[u]:u]:e}}function Ti(t){return Yi((function(r){var i=r.length,o=i,s=$e.prototype.thru;for(t&&r.reverse();o--;){var u=r[o];if("function"!=typeof u)throw new St(n);if(s&&!a&&"wrapper"==eo(u))var a=new $e([],!0)}for(o=a?o:i;++o<i;){var c=eo(u=r[o]),l="wrapper"==c?ro(u):e;a=l&&wo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[eo(l[0])].apply(a,l[3]):1==u.length&&wo(u)?a[c]():a.thru(u)}return function(){var t=arguments,e=t[0];if(a&&1==t.length&&Hs(e))return a.plant(e).value();for(var n=0,o=i?r[n].apply(this,t):e;++n<i;)o=r[n].call(this,o);return o}}))}function Di(t,r,n,i,o,s,a,c,l,h){var f=r&u,d=1&r,g=2&r,v=24&r,p=512&r,w=g?e:_i(t);return function e(){for(var u=arguments.length,L=C(u),m=u;m--;)L[m]=arguments[m];if(v)var b=no(e),x=Gr(L,b);if(i&&(L=yi(L,i,o,v)),s&&(L=ki(L,s,a,v)),u-=x,v&&u<h){var y=te(L,b);return Bi(t,r,Di,e.placeholder,n,L,y,c,l,h-u)}var k=d?n:this,E=g?k[t]:t;return u=L.length,c?L=Eo(L,c):p&&u>1&&L.reverse(),f&&l<u&&(L.length=l),this&&this!==ir&&this instanceof e&&(E=w||_i(E)),E.apply(k,L)}}function Ii(t,r){return function(e,n){return function(t,r,e,n){return Cn(t,(function(t,i,o){r(n,e(t),i,o)})),n}(e,t,r(n),{})}}function Pi(t,r){return function(n,i){var o;if(n===e&&i===e)return r;if(n!==e&&(o=n),i!==e){if(o===e)return i;"string"==typeof n||"string"==typeof i?(n=oi(n),i=oi(i)):(n=ii(n),i=ii(i)),o=t(n,i)}return o}}function $i(t){return Yi((function(r){return r=kr(r,Zr(io())),Vn((function(e){var n=this;return t(r,(function(t){return pr(t,n,e)}))}))}))}function Ui(t,r){var n=(r=r===e?" ":oi(r)).length;if(n<2)return n?Wn(r,t):r;var i=Wn(r,Ir(t/ne(r)));return Jr(r)?Ci(ie(i),0,t).join(""):i.slice(0,t)}function Hi(t){return function(r,n,i){return i&&"number"!=typeof i&&po(r,n,i)&&(n=i=e),r=lu(r),n===e?(n=r,r=0):n=lu(n),function(t,r,e,n){for(var i=-1,o=ge(Ir((r-t)/(e||1)),0),s=C(o);o--;)s[n?o:++i]=t,t+=e;return s}(r,n,i=i===e?r<n?1:-1:lu(i),t)}}function Zi(t){return function(r,e){return"string"==typeof r&&"string"==typeof e||(r=du(r),e=du(e)),t(r,e)}}function Bi(t,r,n,i,o,u,a,c,l,h){var f=8&r;r|=f?s:64,4&(r&=~(f?64:s))||(r&=-4);var d=[t,r,o,f?u:e,f?a:e,f?e:u,f?e:a,c,l,h],g=n.apply(e,d);return wo(t)&&jo(g,d),g.placeholder=i,Oo(g,t,r)}function Ni(t){var r=xt[t];return function(t,e){if(t=du(t),(e=null==e?0:ve(hu(e),292))&&he(t)){var n=(vu(t)+"e").split("e");return+((n=(vu(r(n[0]+"e"+(+n[1]+e)))+"e").split("e"))[0]+"e"+(+n[1]-e))}return r(t)}}var Wi=ye&&1/re(new ye([,-0]))[1]==a?function(t){return new ye(t)}:oa;function Vi(t){return function(r){var e=lo(r);return e==b?Yr(r):e==S?ee(r):function(t,r){return kr(r,(function(r){return[r,t[r]]}))}(r,t(r))}}function Gi(t,r,i,a,c,l,h,f){var d=2&r;if(!d&&"function"!=typeof t)throw new St(n);var g=a?a.length:0;if(g||(r&=-97,a=c=e),h=h===e?h:ge(hu(h),0),f=f===e?f:hu(f),g-=c?c.length:0,64&r){var v=a,p=c;a=c=e}var w=d?e:ro(t),L=[t,r,i,a,c,v,p,l,h,f];if(w&&function(t,r){var e=t[1],n=r[1],i=e|n;if(!(i<131||(n==u&&8==e||n==u&&256==e&&t[7].length<=r[8]||384==n&&r[7].length<=r[8]&&8==e)))return t;1&n&&(t[2]=r[2],i|=1&e?0:4);var s=r[3];if(s){var a=t[3];t[3]=a?yi(a,s,r[4]):s,t[4]=a?te(t[3],o):r[4]}(s=r[5])&&(t[5]=(a=t[5])?ki(a,s,r[6]):s,t[6]=a?te(t[5],o):r[6]),(s=r[7])&&(t[7]=s),n&u&&(t[8]=null==t[8]?r[8]:ve(t[8],r[8])),null==t[9]&&(t[9]=r[9]),t[0]=r[0],t[1]=i}(L,w),t=L[0],r=L[1],i=L[2],a=L[3],c=L[4],!(f=L[9]=L[9]===e?d?0:t.length:ge(L[9]-g,0))&&24&r&&(r&=-25),r&&1!=r)m=8==r||16==r?function(t,r,n){var i=_i(t);return function o(){for(var s=arguments.length,u=C(s),a=s,c=no(o);a--;)u[a]=arguments[a];var l=s<3&&u[0]!==c&&u[s-1]!==c?[]:te(u,c);return(s-=l.length)<n?Bi(t,r,Di,o.placeholder,e,u,l,e,e,n-s):pr(this&&this!==ir&&this instanceof o?i:t,this,u)}}(t,r,f):r!=s&&33!=r||c.length?Di.apply(e,L):function(t,r,e,n){var i=1&r,o=_i(t);return function r(){for(var s=-1,u=arguments.length,a=-1,c=n.length,l=C(c+u),h=this&&this!==ir&&this instanceof r?o:t;++a<c;)l[a]=n[a];for(;u--;)l[a++]=arguments[++s];return pr(h,i?e:this,l)}}(t,r,i,a);else var m=function(t,r,e){var n=1&r,i=_i(t);return function r(){return(this&&this!==ir&&this instanceof r?i:t).apply(n?e:this,arguments)}}(t,r,i);return Oo((w?Xn:jo)(m,L),t,r)}function qi(t,r,n,i){return t===e||Is(t,Rt[n])&&!Mt.call(i,n)?r:t}function Ki(t,r,n,i,o,s){return Js(t)&&Js(r)&&(s.set(r,t),Pn(t,r,e,Ki,s),s.delete(r)),t}function Xi(t){return ru(t)?e:t}function Ji(t,r,n,i,o,s){var u=1&n,a=t.length,c=r.length;if(a!=c&&!(u&&c>a))return!1;var l=s.get(t),h=s.get(r);if(l&&h)return l==r&&h==t;var f=-1,d=!0,g=2&n?new Ne:e;for(s.set(t,r),s.set(r,t);++f<a;){var v=t[f],p=r[f];if(i)var C=u?i(p,v,f,r,t,s):i(v,p,f,t,r,s);if(C!==e){if(C)continue;d=!1;break}if(g){if(!Rr(r,(function(t,r){if(!Nr(g,r)&&(v===t||o(v,t,n,i,s)))return g.push(r)}))){d=!1;break}}else if(v!==p&&!o(v,p,n,i,s)){d=!1;break}}return s.delete(t),s.delete(r),d}function Yi(t){return zo(yo(t,e,Zo),t+"")}function Qi(t){return bn(t,Ru,ao)}function to(t){return bn(t,zu,co)}var ro=Se?function(t){return Se.get(t)}:oa;function eo(t){for(var r=t.name+"",e=je[r],n=Mt.call(je,r)?e.length:0;n--;){var i=e[n],o=i.func;if(null==o||o==t)return i.name}return r}function no(t){return(Mt.call(De,"placeholder")?De:t).placeholder}function io(){var t=De.iteratee||ra;return t=t===ra?Fn:t,arguments.length?t(arguments[0],arguments[1]):t}function oo(t,r){var e,n,i=t.__data__;return("string"==(n=typeof(e=r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?i["string"==typeof r?"string":"hash"]:i.map}function so(t){for(var r=Ru(t),e=r.length;e--;){var n=r[e],i=t[n];r[e]=[n,i,bo(i)]}return r}function uo(t,r){var n=function(t,r){return null==t?e:t[r]}(t,r);return Mn(n)?n:e}var ao=ce?function(t){return null==t?[]:(t=yt(t),br(ce(t),(function(r){return Gt.call(t,r)})))}:fa,co=ce?function(t){for(var r=[];t;)Er(r,ao(t)),t=Zt(t);return r}:fa,lo=xn;function ho(t,r,e){for(var n=-1,i=(r=vi(r,t)).length,o=!1;++n<i;){var s=Ao(r[n]);if(!(o=null!=t&&e(t,s)))break;t=t[s]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&Xs(i)&&vo(s,i)&&(Hs(t)||Us(t))}function fo(t){return"function"!=typeof t.constructor||mo(t)?{}:Ie(Zt(t))}function go(t){return Hs(t)||Us(t)||!!(er&&t&&t[er])}function vo(t,r){var e=typeof t;return!!(r=null==r?c:r)&&("number"==e||"symbol"!=e&&pt.test(t))&&t>-1&&t%1==0&&t<r}function po(t,r,e){if(!Js(e))return!1;var n=typeof r;return!!("number"==n?Bs(e)&&vo(r,e.length):"string"==n&&r in e)&&Is(e[r],t)}function Co(t,r){if(Hs(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!ou(t))||Y.test(t)||!J.test(t)||null!=r&&t in yt(r)}function wo(t){var r=eo(t),e=De[r];if("function"!=typeof e||!(r in Ue.prototype))return!1;if(t===e)return!0;var n=ro(e);return!!n&&t===n[0]}(me&&lo(new me(new ArrayBuffer(1)))!=M||be&&lo(new be)!=b||xe&&lo(xe.resolve())!=k||ye&&lo(new ye)!=S||ke&&lo(new ke)!=z)&&(lo=function(t){var r=xn(t),n=r==y?t.constructor:e,i=n?To(n):"";if(i)switch(i){case Re:return M;case ze:return b;case Oe:return k;case Me:return S;case Fe:return z}return r});var Lo=zt?qs:da;function mo(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||Rt)}function bo(t){return t==t&&!Js(t)}function xo(t,r){return function(n){return null!=n&&n[t]===r&&(r!==e||t in yt(n))}}function yo(t,r,n){return r=ge(r===e?t.length-1:r,0),function(){for(var e=arguments,i=-1,o=ge(e.length-r,0),s=C(o);++i<o;)s[i]=e[r+i];i=-1;for(var u=C(r+1);++i<r;)u[i]=e[i];return u[r]=n(s),pr(t,this,u)}}function ko(t,r){return r.length<2?t:mn(t,Qn(r,0,-1))}function Eo(t,r){for(var n=t.length,i=ve(r.length,n),o=Ei(t);i--;){var s=r[i];t[i]=vo(s,n)?o[s]:e}return t}function So(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]}var jo=Mo(Xn),Ro=zr||function(t,r){return ir.setTimeout(t,r)},zo=Mo(Jn);function Oo(t,r,e){var n=r+"";return zo(t,function(t,r){var e=r.length;if(!e)return t;var n=e-1;return r[n]=(e>1?"& ":"")+r[n],r=r.join(e>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+r+"] */\n")}(n,function(t,r){return wr(f,(function(e){var n="_."+e[0];r&e[1]&&!xr(t,n)&&t.push(n)})),t.sort()}(function(t){var r=t.match(ot);return r?r[1].split(st):[]}(n),e)))}function Mo(t){var r=0,n=0;return function(){var i=pe(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(e,arguments)}}function Fo(t,r){var n=-1,i=t.length,o=i-1;for(r=r===e?i:r;++n<r;){var s=Nn(n,o),u=t[s];t[s]=t[n],t[n]=u}return t.length=r,t}var _o=function(){var t=Ms((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(Q,(function(t,e,n,i){r.push(n?i.replace(ct,"$1"):e||t)})),r}),(function(t){return 500===r.size&&r.clear(),t})),r=t.cache;return t}();function Ao(t){if("string"==typeof t||ou(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}function To(t){if(null!=t){try{return Ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Do(t){if(t instanceof Ue)return t.clone();var r=new $e(t.__wrapped__,t.__chain__);return r.__actions__=Ei(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}var Io=Vn((function(t,r){return Ns(t)?an(t,gn(r,1,Ns,!0)):[]})),Po=Vn((function(t,r){var n=Go(r);return Ns(n)&&(n=e),Ns(t)?an(t,gn(r,1,Ns,!0),io(n,2)):[]})),$o=Vn((function(t,r){var n=Go(r);return Ns(n)&&(n=e),Ns(t)?an(t,gn(r,1,Ns,!0),e,n):[]}));function Uo(t,r,e){var n=null==t?0:t.length;if(!n)return-1;var i=null==e?0:hu(e);return i<0&&(i=ge(n+i,0)),Mr(t,io(r,3),i)}function Ho(t,r,n){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return n!==e&&(o=hu(n),o=n<0?ge(i+o,0):ve(o,i-1)),Mr(t,io(r,3),o,!0)}function Zo(t){return null!=t&&t.length?gn(t,1):[]}function Bo(t){return t&&t.length?t[0]:e}var No=Vn((function(t){var r=kr(t,di);return r.length&&r[0]===t[0]?Sn(r):[]})),Wo=Vn((function(t){var r=Go(t),n=kr(t,di);return r===Go(n)?r=e:n.pop(),n.length&&n[0]===t[0]?Sn(n,io(r,2)):[]})),Vo=Vn((function(t){var r=Go(t),n=kr(t,di);return(r="function"==typeof r?r:e)&&n.pop(),n.length&&n[0]===t[0]?Sn(n,e,r):[]}));function Go(t){var r=null==t?0:t.length;return r?t[r-1]:e}var qo=Vn(Ko);function Ko(t,r){return t&&t.length&&r&&r.length?Zn(t,r):t}var Xo=Yi((function(t,r){var e=null==t?0:t.length,n=en(t,r);return Bn(t,kr(r,(function(t){return vo(t,e)?+t:t})).sort(xi)),n}));function Jo(t){return null==t?t:Le.call(t)}var Yo=Vn((function(t){return si(gn(t,1,Ns,!0))})),Qo=Vn((function(t){var r=Go(t);return Ns(r)&&(r=e),si(gn(t,1,Ns,!0),io(r,2))})),ts=Vn((function(t){var r=Go(t);return r="function"==typeof r?r:e,si(gn(t,1,Ns,!0),e,r)}));function rs(t){if(!t||!t.length)return[];var r=0;return t=br(t,(function(t){if(Ns(t))return r=ge(t.length,r),!0})),Ur(r,(function(r){return kr(t,Dr(r))}))}function es(t,r){if(!t||!t.length)return[];var n=rs(t);return null==r?n:kr(n,(function(t){return pr(r,e,t)}))}var ns=Vn((function(t,r){return Ns(t)?an(t,r):[]})),is=Vn((function(t){return hi(br(t,Ns))})),os=Vn((function(t){var r=Go(t);return Ns(r)&&(r=e),hi(br(t,Ns),io(r,2))})),ss=Vn((function(t){var r=Go(t);return r="function"==typeof r?r:e,hi(br(t,Ns),e,r)})),us=Vn(rs),as=Vn((function(t){var r=t.length,n=r>1?t[r-1]:e;return n="function"==typeof n?(t.pop(),n):e,es(t,n)}));function cs(t){var r=De(t);return r.__chain__=!0,r}function ls(t,r){return r(t)}var hs=Yi((function(t){var r=t.length,n=r?t[0]:0,i=this.__wrapped__,o=function(r){return en(r,t)};return!(r>1||this.__actions__.length)&&i instanceof Ue&&vo(n)?((i=i.slice(n,+n+(r?1:0))).__actions__.push({func:ls,args:[o],thisArg:e}),new $e(i,this.__chain__).thru((function(t){return r&&!t.length&&t.push(e),t}))):this.thru(o)})),fs=ji((function(t,r,e){Mt.call(t,e)?++t[e]:rn(t,e,1)})),ds=Ai(Uo),gs=Ai(Ho);function vs(t,r){return(Hs(t)?wr:cn)(t,io(r,3))}function ps(t,r){return(Hs(t)?Lr:ln)(t,io(r,3))}var Cs=ji((function(t,r,e){Mt.call(t,e)?t[e].push(r):rn(t,e,[r])})),ws=Vn((function(t,r,e){var n=-1,i="function"==typeof r,o=Bs(t)?C(t.length):[];return cn(t,(function(t){o[++n]=i?pr(r,t,e):jn(t,r,e)})),o})),Ls=ji((function(t,r,e){rn(t,e,r)}));function ms(t,r){return(Hs(t)?kr:Tn)(t,io(r,3))}var bs=ji((function(t,r,e){t[e?0:1].push(r)}),(function(){return[[],[]]})),xs=Vn((function(t,r){if(null==t)return[];var e=r.length;return e>1&&po(t,r[0],r[1])?r=[]:e>2&&po(r[0],r[1],r[2])&&(r=[r[0]]),Un(t,gn(r,1),[])})),ys=cr||function(){return ir.Date.now()};function ks(t,r,n){return r=n?e:r,Gi(t,u,e,e,e,e,r=t&&null==r?t.length:r)}function Es(t,r){var i;if("function"!=typeof r)throw new St(n);return t=hu(t),function(){return--t>0&&(i=r.apply(this,arguments)),t<=1&&(r=e),i}}var Ss=Vn((function(t,r,e){var n=1;if(e.length){var i=te(e,no(Ss));n|=s}return Gi(t,n,r,e,i)})),js=Vn((function(t,r,e){var n=3;if(e.length){var i=te(e,no(js));n|=s}return Gi(r,n,t,e,i)}));function Rs(t,r,i){var o,s,u,a,c,l,h=0,f=!1,d=!1,g=!0;if("function"!=typeof t)throw new St(n);function v(r){var n=o,i=s;return o=s=e,h=r,a=t.apply(i,n)}function p(t){return h=t,c=Ro(w,r),f?v(t):a}function C(t){var n=t-l;return l===e||n>=r||n<0||d&&t-h>=u}function w(){var t=ys();if(C(t))return L(t);c=Ro(w,function(t){var e=r-(t-l);return d?ve(e,u-(t-h)):e}(t))}function L(t){return c=e,g&&o?v(t):(o=s=e,a)}function m(){var t=ys(),n=C(t);if(o=arguments,s=this,l=t,n){if(c===e)return p(l);if(d)return wi(c),c=Ro(w,r),v(l)}return c===e&&(c=Ro(w,r)),a}return r=du(r)||0,Js(i)&&(f=!!i.leading,u=(d="maxWait"in i)?ge(du(i.maxWait)||0,r):u,g="trailing"in i?!!i.trailing:g),m.cancel=function(){c!==e&&wi(c),h=0,o=l=s=c=e},m.flush=function(){return c===e?a:L(ys())},m}var zs=Vn((function(t,r){return un(t,1,r)})),Os=Vn((function(t,r,e){return un(t,du(r)||0,e)}));function Ms(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new St(n);var e=function(){var n=arguments,i=r?r.apply(this,n):n[0],o=e.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return e.cache=o.set(i,s)||o,s};return e.cache=new(Ms.Cache||Be),e}function Fs(t){if("function"!=typeof t)throw new St(n);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}Ms.Cache=Be;var _s=pi((function(t,r){var e=(r=1==r.length&&Hs(r[0])?kr(r[0],Zr(io())):kr(gn(r,1),Zr(io()))).length;return Vn((function(n){for(var i=-1,o=ve(n.length,e);++i<o;)n[i]=r[i].call(this,n[i]);return pr(t,this,n)}))})),As=Vn((function(t,r){var n=te(r,no(As));return Gi(t,s,e,r,n)})),Ts=Vn((function(t,r){var n=te(r,no(Ts));return Gi(t,64,e,r,n)})),Ds=Yi((function(t,r){return Gi(t,256,e,e,e,r)}));function Is(t,r){return t===r||t!=t&&r!=r}var Ps=Zi(yn),$s=Zi((function(t,r){return t>=r})),Us=Rn(function(){return arguments}())?Rn:function(t){return Ys(t)&&Mt.call(t,"callee")&&!Gt.call(t,"callee")},Hs=C.isArray,Zs=lr?Zr(lr):function(t){return Ys(t)&&xn(t)==O};function Bs(t){return null!=t&&Xs(t.length)&&!qs(t)}function Ns(t){return Ys(t)&&Bs(t)}var Ws=le||da,Vs=hr?Zr(hr):function(t){return Ys(t)&&xn(t)==p};function Gs(t){if(!Ys(t))return!1;var r=xn(t);return r==w||"[object DOMException]"==r||"string"==typeof t.message&&"string"==typeof t.name&&!ru(t)}function qs(t){if(!Js(t))return!1;var r=xn(t);return r==L||r==m||"[object AsyncFunction]"==r||"[object Proxy]"==r}function Ks(t){return"number"==typeof t&&t==hu(t)}function Xs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function Js(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}function Ys(t){return null!=t&&"object"==typeof t}var Qs=fr?Zr(fr):function(t){return Ys(t)&&lo(t)==b};function tu(t){return"number"==typeof t||Ys(t)&&xn(t)==x}function ru(t){if(!Ys(t)||xn(t)!=y)return!1;var r=Zt(t);if(null===r)return!0;var e=Mt.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&Ot.call(e)==Tt}var eu=dr?Zr(dr):function(t){return Ys(t)&&xn(t)==E},nu=gr?Zr(gr):function(t){return Ys(t)&&lo(t)==S};function iu(t){return"string"==typeof t||!Hs(t)&&Ys(t)&&xn(t)==j}function ou(t){return"symbol"==typeof t||Ys(t)&&xn(t)==R}var su=vr?Zr(vr):function(t){return Ys(t)&&Xs(t.length)&&!!Jt[xn(t)]},uu=Zi(An),au=Zi((function(t,r){return t<=r}));function cu(t){if(!t)return[];if(Bs(t))return iu(t)?ie(t):Ei(t);if(nr&&t[nr])return function(t){for(var r,e=[];!(r=t.next()).done;)e.push(r.value);return e}(t[nr]());var r=lo(t);return(r==b?Yr:r==S?re:Iu)(t)}function lu(t){return t?(t=du(t))===a||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function hu(t){var r=lu(t),e=r%1;return r==r?e?r-e:r:0}function fu(t){return t?nn(hu(t),0,h):0}function du(t){if("number"==typeof t)return t;if(ou(t))return l;if(Js(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=Js(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=Hr(t);var e=dt.test(t);return e||vt.test(t)?rr(t.slice(2),e?2:8):ft.test(t)?l:+t}function gu(t){return Si(t,zu(t))}function vu(t){return null==t?"":oi(t)}var pu=Ri((function(t,r){if(mo(r)||Bs(r))Si(r,Ru(r),t);else for(var e in r)Mt.call(r,e)&&Je(t,e,r[e])})),Cu=Ri((function(t,r){Si(r,zu(r),t)})),wu=Ri((function(t,r,e,n){Si(r,zu(r),t,n)})),Lu=Ri((function(t,r,e,n){Si(r,Ru(r),t,n)})),mu=Yi(en),bu=Vn((function(t,r){t=yt(t);var n=-1,i=r.length,o=i>2?r[2]:e;for(o&&po(r[0],r[1],o)&&(i=1);++n<i;)for(var s=r[n],u=zu(s),a=-1,c=u.length;++a<c;){var l=u[a],h=t[l];(h===e||Is(h,Rt[l])&&!Mt.call(t,l))&&(t[l]=s[l])}return t})),xu=Vn((function(t){return t.push(e,Ki),pr(Mu,e,t)}));function yu(t,r,n){var i=null==t?e:mn(t,r);return i===e?n:i}function ku(t,r){return null!=t&&ho(t,r,En)}var Eu=Ii((function(t,r,e){null!=r&&"function"!=typeof r.toString&&(r=At.call(r)),t[r]=e}),Ju(ta)),Su=Ii((function(t,r,e){null!=r&&"function"!=typeof r.toString&&(r=At.call(r)),Mt.call(t,r)?t[r].push(e):t[r]=[e]}),io),ju=Vn(jn);function Ru(t){return Bs(t)?Ve(t):_n(t)}function zu(t){return Bs(t)?Ve(t,!0):function(t){if(!Js(t))return function(t){var r=[];if(null!=t)for(var e in yt(t))r.push(e);return r}(t);var r=mo(t),e=[];for(var n in t)("constructor"!=n||!r&&Mt.call(t,n))&&e.push(n);return e}(t)}var Ou=Ri((function(t,r,e){Pn(t,r,e)})),Mu=Ri((function(t,r,e,n){Pn(t,r,e,n)})),Fu=Yi((function(t,r){var e={};if(null==t)return e;var n=!1;r=kr(r,(function(r){return r=vi(r,t),n||(n=r.length>1),r})),Si(t,to(t),e),n&&(e=on(e,7,Xi));for(var i=r.length;i--;)ui(e,r[i]);return e})),_u=Yi((function(t,r){return null==t?{}:function(t,r){return Hn(t,r,(function(r,e){return ku(t,e)}))}(t,r)}));function Au(t,r){if(null==t)return{};var e=kr(to(t),(function(t){return[t]}));return r=io(r),Hn(t,e,(function(t,e){return r(t,e[0])}))}var Tu=Vi(Ru),Du=Vi(zu);function Iu(t){return null==t?[]:Br(t,Ru(t))}var Pu=Fi((function(t,r,e){return r=r.toLowerCase(),t+(e?$u(r):r)}));function $u(t){return Gu(vu(t).toLowerCase())}function Uu(t){return(t=vu(t))&&t.replace(Ct,qr).replace(Nt,"")}var Hu=Fi((function(t,r,e){return t+(e?"-":"")+r.toLowerCase()})),Zu=Fi((function(t,r,e){return t+(e?" ":"")+r.toLowerCase()})),Bu=Mi("toLowerCase"),Nu=Fi((function(t,r,e){return t+(e?"_":"")+r.toLowerCase()})),Wu=Fi((function(t,r,e){return t+(e?" ":"")+Gu(r)})),Vu=Fi((function(t,r,e){return t+(e?" ":"")+r.toUpperCase()})),Gu=Mi("toUpperCase");function qu(t,r,n){return t=vu(t),(r=n?e:r)===e?function(t){return qt.test(t)}(t)?function(t){return t.match(Vt)||[]}(t):function(t){return t.match(ut)||[]}(t):t.match(r)||[]}var Ku=Vn((function(t,r){try{return pr(t,e,r)}catch(t){return Gs(t)?t:new mt(t)}})),Xu=Yi((function(t,r){return wr(r,(function(r){r=Ao(r),rn(t,r,Ss(t[r],t))})),t}));function Ju(t){return function(){return t}}var Yu=Ti(),Qu=Ti(!0);function ta(t){return t}function ra(t){return Fn("function"==typeof t?t:on(t,1))}var ea=Vn((function(t,r){return function(e){return jn(e,t,r)}})),na=Vn((function(t,r){return function(e){return jn(t,e,r)}}));function ia(t,r,e){var n=Ru(r),i=Ln(r,n);null!=e||Js(r)&&(i.length||!n.length)||(e=r,r=t,t=this,i=Ln(r,Ru(r)));var o=!(Js(e)&&"chain"in e&&!e.chain),s=qs(t);return wr(i,(function(e){var n=r[e];t[e]=n,s&&(t.prototype[e]=function(){var r=this.__chain__;if(o||r){var e=t(this.__wrapped__),i=e.__actions__=Ei(this.__actions__);return i.push({func:n,args:arguments,thisArg:t}),e.__chain__=r,e}return n.apply(t,Er([this.value()],arguments))})})),t}function oa(){}var sa=$i(kr),ua=$i(mr),aa=$i(Rr);function ca(t){return Co(t)?Dr(Ao(t)):function(t){return function(r){return mn(r,t)}}(t)}var la=Hi(),ha=Hi(!0);function fa(){return[]}function da(){return!1}var ga,va=Pi((function(t,r){return t+r}),0),pa=Ni("ceil"),Ca=Pi((function(t,r){return t/r}),1),wa=Ni("floor"),La=Pi((function(t,r){return t*r}),1),ma=Ni("round"),ba=Pi((function(t,r){return t-r}),0);return De.after=function(t,r){if("function"!=typeof r)throw new St(n);return t=hu(t),function(){if(--t<1)return r.apply(this,arguments)}},De.ary=ks,De.assign=pu,De.assignIn=Cu,De.assignInWith=wu,De.assignWith=Lu,De.at=mu,De.before=Es,De.bind=Ss,De.bindAll=Xu,De.bindKey=js,De.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Hs(t)?t:[t]},De.chain=cs,De.chunk=function(t,r,n){r=(n?po(t,r,n):r===e)?1:ge(hu(r),0);var i=null==t?0:t.length;if(!i||r<1)return[];for(var o=0,s=0,u=C(Ir(i/r));o<i;)u[s++]=Qn(t,o,o+=r);return u},De.compact=function(t){for(var r=-1,e=null==t?0:t.length,n=0,i=[];++r<e;){var o=t[r];o&&(i[n++]=o)}return i},De.concat=function(){var t=arguments.length;if(!t)return[];for(var r=C(t-1),e=arguments[0],n=t;n--;)r[n-1]=arguments[n];return Er(Hs(e)?Ei(e):[e],gn(r,1))},De.cond=function(t){var r=null==t?0:t.length,e=io();return t=r?kr(t,(function(t){if("function"!=typeof t[1])throw new St(n);return[e(t[0]),t[1]]})):[],Vn((function(e){for(var n=-1;++n<r;){var i=t[n];if(pr(i[0],this,e))return pr(i[1],this,e)}}))},De.conforms=function(t){return function(t){var r=Ru(t);return function(e){return sn(e,t,r)}}(on(t,1))},De.constant=Ju,De.countBy=fs,De.create=function(t,r){var e=Ie(t);return null==r?e:tn(e,r)},De.curry=function t(r,n,i){var o=Gi(r,8,e,e,e,e,e,n=i?e:n);return o.placeholder=t.placeholder,o},De.curryRight=function t(r,n,i){var o=Gi(r,16,e,e,e,e,e,n=i?e:n);return o.placeholder=t.placeholder,o},De.debounce=Rs,De.defaults=bu,De.defaultsDeep=xu,De.defer=zs,De.delay=Os,De.difference=Io,De.differenceBy=Po,De.differenceWith=$o,De.drop=function(t,r,n){var i=null==t?0:t.length;return i?Qn(t,(r=n||r===e?1:hu(r))<0?0:r,i):[]},De.dropRight=function(t,r,n){var i=null==t?0:t.length;return i?Qn(t,0,(r=i-(r=n||r===e?1:hu(r)))<0?0:r):[]},De.dropRightWhile=function(t,r){return t&&t.length?ci(t,io(r,3),!0,!0):[]},De.dropWhile=function(t,r){return t&&t.length?ci(t,io(r,3),!0):[]},De.fill=function(t,r,n,i){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&po(t,r,n)&&(n=0,i=o),function(t,r,n,i){var o=t.length;for((n=hu(n))<0&&(n=-n>o?0:o+n),(i=i===e||i>o?o:hu(i))<0&&(i+=o),i=n>i?0:fu(i);n<i;)t[n++]=r;return t}(t,r,n,i)):[]},De.filter=function(t,r){return(Hs(t)?br:dn)(t,io(r,3))},De.flatMap=function(t,r){return gn(ms(t,r),1)},De.flatMapDeep=function(t,r){return gn(ms(t,r),a)},De.flatMapDepth=function(t,r,n){return n=n===e?1:hu(n),gn(ms(t,r),n)},De.flatten=Zo,De.flattenDeep=function(t){return null!=t&&t.length?gn(t,a):[]},De.flattenDepth=function(t,r){return null!=t&&t.length?gn(t,r=r===e?1:hu(r)):[]},De.flip=function(t){return Gi(t,512)},De.flow=Yu,De.flowRight=Qu,De.fromPairs=function(t){for(var r=-1,e=null==t?0:t.length,n={};++r<e;){var i=t[r];n[i[0]]=i[1]}return n},De.functions=function(t){return null==t?[]:Ln(t,Ru(t))},De.functionsIn=function(t){return null==t?[]:Ln(t,zu(t))},De.groupBy=Cs,De.initial=function(t){return null!=t&&t.length?Qn(t,0,-1):[]},De.intersection=No,De.intersectionBy=Wo,De.intersectionWith=Vo,De.invert=Eu,De.invertBy=Su,De.invokeMap=ws,De.iteratee=ra,De.keyBy=Ls,De.keys=Ru,De.keysIn=zu,De.map=ms,De.mapKeys=function(t,r){var e={};return r=io(r,3),Cn(t,(function(t,n,i){rn(e,r(t,n,i),t)})),e},De.mapValues=function(t,r){var e={};return r=io(r,3),Cn(t,(function(t,n,i){rn(e,n,r(t,n,i))})),e},De.matches=function(t){return Dn(on(t,1))},De.matchesProperty=function(t,r){return In(t,on(r,1))},De.memoize=Ms,De.merge=Ou,De.mergeWith=Mu,De.method=ea,De.methodOf=na,De.mixin=ia,De.negate=Fs,De.nthArg=function(t){return t=hu(t),Vn((function(r){return $n(r,t)}))},De.omit=Fu,De.omitBy=function(t,r){return Au(t,Fs(io(r)))},De.once=function(t){return Es(2,t)},De.orderBy=function(t,r,n,i){return null==t?[]:(Hs(r)||(r=null==r?[]:[r]),Hs(n=i?e:n)||(n=null==n?[]:[n]),Un(t,r,n))},De.over=sa,De.overArgs=_s,De.overEvery=ua,De.overSome=aa,De.partial=As,De.partialRight=Ts,De.partition=bs,De.pick=_u,De.pickBy=Au,De.property=ca,De.propertyOf=function(t){return function(r){return null==t?e:mn(t,r)}},De.pull=qo,De.pullAll=Ko,De.pullAllBy=function(t,r,e){return t&&t.length&&r&&r.length?Zn(t,r,io(e,2)):t},De.pullAllWith=function(t,r,n){return t&&t.length&&r&&r.length?Zn(t,r,e,n):t},De.pullAt=Xo,De.range=la,De.rangeRight=ha,De.rearg=Ds,De.reject=function(t,r){return(Hs(t)?br:dn)(t,Fs(io(r,3)))},De.remove=function(t,r){var e=[];if(!t||!t.length)return e;var n=-1,i=[],o=t.length;for(r=io(r,3);++n<o;){var s=t[n];r(s,n,t)&&(e.push(s),i.push(n))}return Bn(t,i),e},De.rest=function(t,r){if("function"!=typeof t)throw new St(n);return Vn(t,r=r===e?r:hu(r))},De.reverse=Jo,De.sampleSize=function(t,r,n){return r=(n?po(t,r,n):r===e)?1:hu(r),(Hs(t)?qe:qn)(t,r)},De.set=function(t,r,e){return null==t?t:Kn(t,r,e)},De.setWith=function(t,r,n,i){return i="function"==typeof i?i:e,null==t?t:Kn(t,r,n,i)},De.shuffle=function(t){return(Hs(t)?Ke:Yn)(t)},De.slice=function(t,r,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&po(t,r,n)?(r=0,n=i):(r=null==r?0:hu(r),n=n===e?i:hu(n)),Qn(t,r,n)):[]},De.sortBy=xs,De.sortedUniq=function(t){return t&&t.length?ni(t):[]},De.sortedUniqBy=function(t,r){return t&&t.length?ni(t,io(r,2)):[]},De.split=function(t,r,n){return n&&"number"!=typeof n&&po(t,r,n)&&(r=n=e),(n=n===e?h:n>>>0)?(t=vu(t))&&("string"==typeof r||null!=r&&!eu(r))&&!(r=oi(r))&&Jr(t)?Ci(ie(t),0,n):t.split(r,n):[]},De.spread=function(t,r){if("function"!=typeof t)throw new St(n);return r=null==r?0:ge(hu(r),0),Vn((function(e){var n=e[r],i=Ci(e,0,r);return n&&Er(i,n),pr(t,this,i)}))},De.tail=function(t){var r=null==t?0:t.length;return r?Qn(t,1,r):[]},De.take=function(t,r,n){return t&&t.length?Qn(t,0,(r=n||r===e?1:hu(r))<0?0:r):[]},De.takeRight=function(t,r,n){var i=null==t?0:t.length;return i?Qn(t,(r=i-(r=n||r===e?1:hu(r)))<0?0:r,i):[]},De.takeRightWhile=function(t,r){return t&&t.length?ci(t,io(r,3),!1,!0):[]},De.takeWhile=function(t,r){return t&&t.length?ci(t,io(r,3)):[]},De.tap=function(t,r){return r(t),t},De.throttle=function(t,r,e){var i=!0,o=!0;if("function"!=typeof t)throw new St(n);return Js(e)&&(i="leading"in e?!!e.leading:i,o="trailing"in e?!!e.trailing:o),Rs(t,r,{leading:i,maxWait:r,trailing:o})},De.thru=ls,De.toArray=cu,De.toPairs=Tu,De.toPairsIn=Du,De.toPath=function(t){return Hs(t)?kr(t,Ao):ou(t)?[t]:Ei(_o(vu(t)))},De.toPlainObject=gu,De.transform=function(t,r,e){var n=Hs(t),i=n||Ws(t)||su(t);if(r=io(r,4),null==e){var o=t&&t.constructor;e=i?n?new o:[]:Js(t)&&qs(o)?Ie(Zt(t)):{}}return(i?wr:Cn)(t,(function(t,n,i){return r(e,t,n,i)})),e},De.unary=function(t){return ks(t,1)},De.union=Yo,De.unionBy=Qo,De.unionWith=ts,De.uniq=function(t){return t&&t.length?si(t):[]},De.uniqBy=function(t,r){return t&&t.length?si(t,io(r,2)):[]},De.uniqWith=function(t,r){return r="function"==typeof r?r:e,t&&t.length?si(t,e,r):[]},De.unset=function(t,r){return null==t||ui(t,r)},De.unzip=rs,De.unzipWith=es,De.update=function(t,r,e){return null==t?t:ai(t,r,gi(e))},De.updateWith=function(t,r,n,i){return i="function"==typeof i?i:e,null==t?t:ai(t,r,gi(n),i)},De.values=Iu,De.valuesIn=function(t){return null==t?[]:Br(t,zu(t))},De.without=ns,De.words=qu,De.wrap=function(t,r){return As(gi(r),t)},De.xor=is,De.xorBy=os,De.xorWith=ss,De.zip=us,De.zipObject=function(t,r){return fi(t||[],r||[],Je)},De.zipObjectDeep=function(t,r){return fi(t||[],r||[],Kn)},De.zipWith=as,De.entries=Tu,De.entriesIn=Du,De.extend=Cu,De.extendWith=wu,ia(De,De),De.add=va,De.attempt=Ku,De.camelCase=Pu,De.capitalize=$u,De.ceil=pa,De.clamp=function(t,r,n){return n===e&&(n=r,r=e),n!==e&&(n=(n=du(n))==n?n:0),r!==e&&(r=(r=du(r))==r?r:0),nn(du(t),r,n)},De.clone=function(t){return on(t,4)},De.cloneDeep=function(t){return on(t,5)},De.cloneDeepWith=function(t,r){return on(t,5,r="function"==typeof r?r:e)},De.cloneWith=function(t,r){return on(t,4,r="function"==typeof r?r:e)},De.conformsTo=function(t,r){return null==r||sn(t,r,Ru(r))},De.deburr=Uu,De.defaultTo=function(t,r){return null==t||t!=t?r:t},De.divide=Ca,De.endsWith=function(t,r,n){t=vu(t),r=oi(r);var i=t.length,o=n=n===e?i:nn(hu(n),0,i);return(n-=r.length)>=0&&t.slice(n,o)==r},De.eq=Is,De.escape=function(t){return(t=vu(t))&&G.test(t)?t.replace(W,Kr):t},De.escapeRegExp=function(t){return(t=vu(t))&&rt.test(t)?t.replace(tt,"\\$&"):t},De.every=function(t,r,n){var i=Hs(t)?mr:hn;return n&&po(t,r,n)&&(r=e),i(t,io(r,3))},De.find=ds,De.findIndex=Uo,De.findKey=function(t,r){return Or(t,io(r,3),Cn)},De.findLast=gs,De.findLastIndex=Ho,De.findLastKey=function(t,r){return Or(t,io(r,3),wn)},De.floor=wa,De.forEach=vs,De.forEachRight=ps,De.forIn=function(t,r){return null==t?t:vn(t,io(r,3),zu)},De.forInRight=function(t,r){return null==t?t:pn(t,io(r,3),zu)},De.forOwn=function(t,r){return t&&Cn(t,io(r,3))},De.forOwnRight=function(t,r){return t&&wn(t,io(r,3))},De.get=yu,De.gt=Ps,De.gte=$s,De.has=function(t,r){return null!=t&&ho(t,r,kn)},De.hasIn=ku,De.head=Bo,De.identity=ta,De.includes=function(t,r,e,n){t=Bs(t)?t:Iu(t),e=e&&!n?hu(e):0;var i=t.length;return e<0&&(e=ge(i+e,0)),iu(t)?e<=i&&t.indexOf(r,e)>-1:!!i&&Fr(t,r,e)>-1},De.indexOf=function(t,r,e){var n=null==t?0:t.length;if(!n)return-1;var i=null==e?0:hu(e);return i<0&&(i=ge(n+i,0)),Fr(t,r,i)},De.inRange=function(t,r,n){return r=lu(r),n===e?(n=r,r=0):n=lu(n),function(t,r,e){return t>=ve(r,e)&&t<ge(r,e)}(t=du(t),r,n)},De.invoke=ju,De.isArguments=Us,De.isArray=Hs,De.isArrayBuffer=Zs,De.isArrayLike=Bs,De.isArrayLikeObject=Ns,De.isBoolean=function(t){return!0===t||!1===t||Ys(t)&&xn(t)==v},De.isBuffer=Ws,De.isDate=Vs,De.isElement=function(t){return Ys(t)&&1===t.nodeType&&!ru(t)},De.isEmpty=function(t){if(null==t)return!0;if(Bs(t)&&(Hs(t)||"string"==typeof t||"function"==typeof t.splice||Ws(t)||su(t)||Us(t)))return!t.length;var r=lo(t);if(r==b||r==S)return!t.size;if(mo(t))return!_n(t).length;for(var e in t)if(Mt.call(t,e))return!1;return!0},De.isEqual=function(t,r){return zn(t,r)},De.isEqualWith=function(t,r,n){var i=(n="function"==typeof n?n:e)?n(t,r):e;return i===e?zn(t,r,e,n):!!i},De.isError=Gs,De.isFinite=function(t){return"number"==typeof t&&he(t)},De.isFunction=qs,De.isInteger=Ks,De.isLength=Xs,De.isMap=Qs,De.isMatch=function(t,r){return t===r||On(t,r,so(r))},De.isMatchWith=function(t,r,n){return n="function"==typeof n?n:e,On(t,r,so(r),n)},De.isNaN=function(t){return tu(t)&&t!=+t},De.isNative=function(t){if(Lo(t))throw new mt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mn(t)},De.isNil=function(t){return null==t},De.isNull=function(t){return null===t},De.isNumber=tu,De.isObject=Js,De.isObjectLike=Ys,De.isPlainObject=ru,De.isRegExp=eu,De.isSafeInteger=function(t){return Ks(t)&&t>=-9007199254740991&&t<=c},De.isSet=nu,De.isString=iu,De.isSymbol=ou,De.isTypedArray=su,De.isUndefined=function(t){return t===e},De.isWeakMap=function(t){return Ys(t)&&lo(t)==z},De.isWeakSet=function(t){return Ys(t)&&"[object WeakSet]"==xn(t)},De.join=function(t,r){return null==t?"":fe.call(t,r)},De.kebabCase=Hu,De.last=Go,De.lastIndexOf=function(t,r,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==e&&(o=(o=hu(n))<0?ge(i+o,0):ve(o,i-1)),r==r?function(t,r,e){for(var n=e+1;n--;)if(t[n]===r)return n;return n}(t,r,o):Mr(t,Ar,o,!0)},De.lowerCase=Zu,De.lowerFirst=Bu,De.lt=uu,De.lte=au,De.max=function(t){return t&&t.length?fn(t,ta,yn):e},De.maxBy=function(t,r){return t&&t.length?fn(t,io(r,2),yn):e},De.mean=function(t){return Tr(t,ta)},De.meanBy=function(t,r){return Tr(t,io(r,2))},De.min=function(t){return t&&t.length?fn(t,ta,An):e},De.minBy=function(t,r){return t&&t.length?fn(t,io(r,2),An):e},De.stubArray=fa,De.stubFalse=da,De.stubObject=function(){return{}},De.stubString=function(){return""},De.stubTrue=function(){return!0},De.multiply=La,De.nth=function(t,r){return t&&t.length?$n(t,hu(r)):e},De.noConflict=function(){return ir._===this&&(ir._=Dt),this},De.noop=oa,De.now=ys,De.pad=function(t,r,e){t=vu(t);var n=(r=hu(r))?ne(t):0;if(!r||n>=r)return t;var i=(r-n)/2;return Ui(ae(i),e)+t+Ui(Ir(i),e)},De.padEnd=function(t,r,e){t=vu(t);var n=(r=hu(r))?ne(t):0;return r&&n<r?t+Ui(r-n,e):t},De.padStart=function(t,r,e){t=vu(t);var n=(r=hu(r))?ne(t):0;return r&&n<r?Ui(r-n,e)+t:t},De.parseInt=function(t,r,e){return e||null==r?r=0:r&&(r=+r),Ce(vu(t).replace(et,""),r||0)},De.random=function(t,r,n){if(n&&"boolean"!=typeof n&&po(t,r,n)&&(r=n=e),n===e&&("boolean"==typeof r?(n=r,r=e):"boolean"==typeof t&&(n=t,t=e)),t===e&&r===e?(t=0,r=1):(t=lu(t),r===e?(r=t,t=0):r=lu(r)),t>r){var i=t;t=r,r=i}if(n||t%1||r%1){var o=we();return ve(t+o*(r-t+tr("1e-"+((o+"").length-1))),r)}return Nn(t,r)},De.reduce=function(t,r,e){var n=Hs(t)?Sr:Pr,i=arguments.length<3;return n(t,io(r,4),e,i,cn)},De.reduceRight=function(t,r,e){var n=Hs(t)?jr:Pr,i=arguments.length<3;return n(t,io(r,4),e,i,ln)},De.repeat=function(t,r,n){return r=(n?po(t,r,n):r===e)?1:hu(r),Wn(vu(t),r)},De.replace=function(){var t=arguments,r=vu(t[0]);return t.length<3?r:r.replace(t[1],t[2])},De.result=function(t,r,n){var i=-1,o=(r=vi(r,t)).length;for(o||(o=1,t=e);++i<o;){var s=null==t?e:t[Ao(r[i])];s===e&&(i=o,s=n),t=qs(s)?s.call(t):s}return t},De.round=ma,De.runInContext=t,De.sample=function(t){return(Hs(t)?Ge:Gn)(t)},De.size=function(t){if(null==t)return 0;if(Bs(t))return iu(t)?ne(t):t.length;var r=lo(t);return r==b||r==S?t.size:_n(t).length},De.snakeCase=Nu,De.some=function(t,r,n){var i=Hs(t)?Rr:ti;return n&&po(t,r,n)&&(r=e),i(t,io(r,3))},De.sortedIndex=function(t,r){return ri(t,r)},De.sortedIndexBy=function(t,r,e){return ei(t,r,io(e,2))},De.sortedIndexOf=function(t,r){var e=null==t?0:t.length;if(e){var n=ri(t,r);if(n<e&&Is(t[n],r))return n}return-1},De.sortedLastIndex=function(t,r){return ri(t,r,!0)},De.sortedLastIndexBy=function(t,r,e){return ei(t,r,io(e,2),!0)},De.sortedLastIndexOf=function(t,r){if(null!=t&&t.length){var e=ri(t,r,!0)-1;if(Is(t[e],r))return e}return-1},De.startCase=Wu,De.startsWith=function(t,r,e){return t=vu(t),e=null==e?0:nn(hu(e),0,t.length),r=oi(r),t.slice(e,e+r.length)==r},De.subtract=ba,De.sum=function(t){return t&&t.length?$r(t,ta):0},De.sumBy=function(t,r){return t&&t.length?$r(t,io(r,2)):0},De.template=function(t,r,n){var i=De.templateSettings;n&&po(t,r,n)&&(r=e),t=vu(t),r=wu({},r,i,qi);var o,s,u=wu({},r.imports,i.imports,qi),a=Ru(u),c=Br(u,a),l=0,h=r.interpolate||wt,f="__p += '",d=kt((r.escape||wt).source+"|"+h.source+"|"+(h===X?lt:wt).source+"|"+(r.evaluate||wt).source+"|$","g"),g="//# sourceURL="+(Mt.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xt+"]")+"\n";t.replace(d,(function(r,e,n,i,u,a){return n||(n=i),f+=t.slice(l,a).replace(Lt,Xr),e&&(o=!0,f+="' +\n__e("+e+") +\n'"),u&&(s=!0,f+="';\n"+u+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=a+r.length,r})),f+="';\n";var v=Mt.call(r,"variable")&&r.variable;if(v){if(at.test(v))throw new mt("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(s?f.replace(H,""):f).replace(Z,"$1").replace(B,"$1;"),f="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var p=Ku((function(){return bt(a,g+"return "+f).apply(e,c)}));if(p.source=f,Gs(p))throw p;return p},De.times=function(t,r){if((t=hu(t))<1||t>c)return[];var e=h,n=ve(t,h);r=io(r),t-=h;for(var i=Ur(n,r);++e<t;)r(e);return i},De.toFinite=lu,De.toInteger=hu,De.toLength=fu,De.toLower=function(t){return vu(t).toLowerCase()},De.toNumber=du,De.toSafeInteger=function(t){return t?nn(hu(t),-9007199254740991,c):0===t?t:0},De.toString=vu,De.toUpper=function(t){return vu(t).toUpperCase()},De.trim=function(t,r,n){if((t=vu(t))&&(n||r===e))return Hr(t);if(!t||!(r=oi(r)))return t;var i=ie(t),o=ie(r);return Ci(i,Wr(i,o),Vr(i,o)+1).join("")},De.trimEnd=function(t,r,n){if((t=vu(t))&&(n||r===e))return t.slice(0,oe(t)+1);if(!t||!(r=oi(r)))return t;var i=ie(t);return Ci(i,0,Vr(i,ie(r))+1).join("")},De.trimStart=function(t,r,n){if((t=vu(t))&&(n||r===e))return t.replace(et,"");if(!t||!(r=oi(r)))return t;var i=ie(t);return Ci(i,Wr(i,ie(r))).join("")},De.truncate=function(t,r){var n=30,i="...";if(Js(r)){var o="separator"in r?r.separator:o;n="length"in r?hu(r.length):n,i="omission"in r?oi(r.omission):i}var s=(t=vu(t)).length;if(Jr(t)){var u=ie(t);s=u.length}if(n>=s)return t;var a=n-ne(i);if(a<1)return i;var c=u?Ci(u,0,a).join(""):t.slice(0,a);if(o===e)return c+i;if(u&&(a+=c.length-a),eu(o)){if(t.slice(a).search(o)){var l,h=c;for(o.global||(o=kt(o.source,vu(ht.exec(o))+"g")),o.lastIndex=0;l=o.exec(h);)var f=l.index;c=c.slice(0,f===e?a:f)}}else if(t.indexOf(oi(o),a)!=a){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+i},De.unescape=function(t){return(t=vu(t))&&V.test(t)?t.replace(N,se):t},De.uniqueId=function(t){var r=++Ft;return vu(t)+r},De.upperCase=Vu,De.upperFirst=Gu,De.each=vs,De.eachRight=ps,De.first=Bo,ia(De,(ga={},Cn(De,(function(t,r){Mt.call(De.prototype,r)||(ga[r]=t)})),ga),{chain:!1}),De.VERSION="4.17.21",wr(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){De[t].placeholder=De})),wr(["drop","take"],(function(t,r){Ue.prototype[t]=function(n){n=n===e?1:ge(hu(n),0);var i=this.__filtered__&&!r?new Ue(this):this.clone();return i.__filtered__?i.__takeCount__=ve(n,i.__takeCount__):i.__views__.push({size:ve(n,h),type:t+(i.__dir__<0?"Right":"")}),i},Ue.prototype[t+"Right"]=function(r){return this.reverse()[t](r).reverse()}})),wr(["filter","map","takeWhile"],(function(t,r){var e=r+1,n=1==e||3==e;Ue.prototype[t]=function(t){var r=this.clone();return r.__iteratees__.push({iteratee:io(t,3),type:e}),r.__filtered__=r.__filtered__||n,r}})),wr(["head","last"],(function(t,r){var e="take"+(r?"Right":"");Ue.prototype[t]=function(){return this[e](1).value()[0]}})),wr(["initial","tail"],(function(t,r){var e="drop"+(r?"":"Right");Ue.prototype[t]=function(){return this.__filtered__?new Ue(this):this[e](1)}})),Ue.prototype.compact=function(){return this.filter(ta)},Ue.prototype.find=function(t){return this.filter(t).head()},Ue.prototype.findLast=function(t){return this.reverse().find(t)},Ue.prototype.invokeMap=Vn((function(t,r){return"function"==typeof t?new Ue(this):this.map((function(e){return jn(e,t,r)}))})),Ue.prototype.reject=function(t){return this.filter(Fs(io(t)))},Ue.prototype.slice=function(t,r){t=hu(t);var n=this;return n.__filtered__&&(t>0||r<0)?new Ue(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),r!==e&&(n=(r=hu(r))<0?n.dropRight(-r):n.take(r-t)),n)},Ue.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ue.prototype.toArray=function(){return this.take(h)},Cn(Ue.prototype,(function(t,r){var n=/^(?:filter|find|map|reject)|While$/.test(r),i=/^(?:head|last)$/.test(r),o=De[i?"take"+("last"==r?"Right":""):r],s=i||/^find/.test(r);o&&(De.prototype[r]=function(){var r=this.__wrapped__,u=i?[1]:arguments,a=r instanceof Ue,c=u[0],l=a||Hs(r),h=function(t){var r=o.apply(De,Er([t],u));return i&&f?r[0]:r};l&&n&&"function"==typeof c&&1!=c.length&&(a=l=!1);var f=this.__chain__,d=!!this.__actions__.length,g=s&&!f,v=a&&!d;if(!s&&l){r=v?r:new Ue(this);var p=t.apply(r,u);return p.__actions__.push({func:ls,args:[h],thisArg:e}),new $e(p,f)}return g&&v?t.apply(this,u):(p=this.thru(h),g?i?p.value()[0]:p.value():p)})})),wr(["pop","push","shift","sort","splice","unshift"],(function(t){var r=jt[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);De.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return r.apply(Hs(i)?i:[],t)}return this[e]((function(e){return r.apply(Hs(e)?e:[],t)}))}})),Cn(Ue.prototype,(function(t,r){var e=De[r];if(e){var n=e.name+"";Mt.call(je,n)||(je[n]=[]),je[n].push({name:r,func:e})}})),je[Di(e,2).name]=[{name:"wrapper",func:e}],Ue.prototype.clone=function(){var t=new Ue(this.__wrapped__);return t.__actions__=Ei(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ei(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ei(this.__views__),t},Ue.prototype.reverse=function(){if(this.__filtered__){var t=new Ue(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ue.prototype.value=function(){var t=this.__wrapped__.value(),r=this.__dir__,e=Hs(t),n=r<0,i=e?t.length:0,o=function(t,r,e){for(var n=-1,i=e.length;++n<i;){var o=e[n],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":r-=s;break;case"take":r=ve(r,t+s);break;case"takeRight":t=ge(t,r-s)}}return{start:t,end:r}}(0,i,this.__views__),s=o.start,u=o.end,a=u-s,c=n?u:s-1,l=this.__iteratees__,h=l.length,f=0,d=ve(a,this.__takeCount__);if(!e||!n&&i==a&&d==a)return li(t,this.__actions__);var g=[];t:for(;a--&&f<d;){for(var v=-1,p=t[c+=r];++v<h;){var C=l[v],w=C.type,L=(0,C.iteratee)(p);if(2==w)p=L;else if(!L){if(1==w)continue t;break t}}g[f++]=p}return g},De.prototype.at=hs,De.prototype.chain=function(){return cs(this)},De.prototype.commit=function(){return new $e(this.value(),this.__chain__)},De.prototype.next=function(){this.__values__===e&&(this.__values__=cu(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},De.prototype.plant=function(t){for(var r,n=this;n instanceof Pe;){var i=Do(n);i.__index__=0,i.__values__=e,r?o.__wrapped__=i:r=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,r},De.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Ue){var r=t;return this.__actions__.length&&(r=new Ue(this)),(r=r.reverse()).__actions__.push({func:ls,args:[Jo],thisArg:e}),new $e(r,this.__chain__)}return this.thru(Jo)},De.prototype.toJSON=De.prototype.valueOf=De.prototype.value=function(){return li(this.__wrapped__,this.__actions__)},De.prototype.first=De.prototype.head,nr&&(De.prototype[nr]=function(){return this}),De}();sr?((sr.exports=ue)._=ue,or._=ue):ir._=ue}).call(C)}));class Nn{constructor(t,r){var e,n;this.sv=t,this.storesByType={},this.storesXToType={},this.storesYToType={},null===(e=this.sv.selectionStoreConnector)||void 0===e||e.beforeUpdate(),this.columns=this.getViewportColumnData(r),null===(n=this.sv.scrollingService)||void 0===n||n.unregister()}onColumnResize(t,r,e){var n;null===(n=this.sv.dimensionProvider)||void 0===n||n.setDimensionSize(t,r.detail);const i=Bn.reduce(r.detail||{},((t,r,n)=>{const i=ue(e,parseInt(n,10));return i&&(t[i.prop]=Object.assign(Object.assign({},i),{size:r})),t}),{});this.sv.resize(i)}getViewportColumnData(t){const r=[];let e=0;return he.forEach((n=>{const i=this.sv.columnProvider.stores[n].store;if(!i.get("items").length)return;const o={colType:n,position:{x:e,y:1},contentHeight:t,fixWidth:"rgCol"!==n,uuid:`${this.sv.uuid}-${e}`,viewports:this.sv.viewportProvider.stores,dimensions:this.sv.dimensionProvider.stores,rowStores:this.sv.dataProvider.stores,colStore:i,onHeaderresize:t=>this.onColumnResize(n,t,i)};"rgCol"===n&&(o.onResizeViewport=t=>{var r;return null===(r=this.sv.viewportProvider)||void 0===r?void 0:r.setViewport(t.detail.dimension,{virtualSize:t.detail.size})});const s=this.gatherColumnData(o),u=this.registerCol(s.position.x,n),a=this.dataViewPort(o).reduce(((t,r)=>{const e=this.registerSegment(r.position);e.setLastCell(r.lastCell);const n=this.registerRow(r.position.y,r.type),i=Object.assign(Object.assign({},r),{rowSelectionStore:n,segmentSelectionStore:e.store,ref:t=>this.sv.selectionStoreConnector.registerSection(t),onSetRange:t=>e.setRangeArea(t.detail),onSetTempRange:t=>e.setTempArea(t.detail),onFocusCell:t=>{e.clearFocus(),this.sv.selectionStoreConnector.focus(e,t.detail)}});return t.push(i),t}),[]);r.push(Object.assign(Object.assign({},s),{columnSelectionStore:u,dataPorts:a})),e++})),r}registerSegment(t){return this.sv.selectionStoreConnector.register(t)}registerRow(t,r){return this.storesByType[r]=t,this.storesYToType[t]=r,this.sv.selectionStoreConnector.registerRow(t).store}registerCol(t,r){return this.storesByType[r]=t,this.storesXToType[t]=r,this.sv.selectionStoreConnector.registerColumn(t).store}gatherColumnData(t){const r=t.uuid,e=t.dimensions[t.colType].store.get("realSize"),n={contentWidth:e,class:t.colType,[`${Cn}`]:t.uuid,contentHeight:t.contentHeight,key:t.colType,onResizeViewport:t.onResizeViewport};t.fixWidth&&(n.style={minWidth:`${e}px`});const i={parent:r,colData:se(t.colStore),dimensionCol:t.dimensions[t.colType].store,groups:t.colStore.get("groups"),groupingDepth:t.colStore.get("groupingDepth"),onHeaderresize:t.onHeaderresize};return{prop:n,position:t.position,headerProp:i,parent:r,viewportCol:t.viewports[t.colType].store}}dataViewPort(t){const r={rowPinStart:"header",rgRow:"content",rowPinEnd:"footer"};let e=0;return le.reduce(((n,i)=>{const o=t.viewports[i].store.get("realCount")||"rgRow"===i,s=Object.assign(Object.assign({},t),{position:Object.assign(Object.assign({},t.position),{y:o?e:Un})});return n.push(this.dataPartition(s,i,r[i],"rgRow"!==i)),o&&e++,n}),[])}dataPartition(t,r,e,n){return{colData:t.colStore,viewportCol:t.viewports[t.colType].store,viewportRow:t.viewports[r].store,lastCell:Zn(t,r),slot:e,type:r,canDrag:!n,position:t.position,uuid:`${t.uuid}-${t.position.x}-${t.position.y}`,dataStore:t.rowStores[r].store,dimensionCol:t.dimensions[t.colType].store,dimensionRow:t.dimensions[r].store,style:n?{height:`${t.dimensions[r].store.get("realSize")}px`}:void 0}}scrollToCell(t){for(let r in t)this.sv.scrollingService.onScroll({dimension:"x"===r?"rgCol":"rgRow",coordinate:t[r]})}clearFocused(){this.sv.selectionStoreConnector.clearAll()}clearEdit(){this.sv.selectionStoreConnector.setEdit(!1)}getFocused(){const t=this.sv.selectionStoreConnector.focusedStore;if(!t)return null;const r=this.storesXToType[t.position.x],e=this.sv.columnProvider.getColumn(t.cell.x,r),n=this.storesYToType[t.position.x];return{column:e,model:this.sv.dataProvider.getModel(t.cell.x,n),cell:t.cell,colType:r,rowType:n}}setEdit(t,r,e,n){var i;const o=this.storesByType;null===(i=this.sv.selectionStoreConnector)||void 0===i||i.setEditByCell({x:o[e],y:o[n]},{x:r,y:t})}}const Wn=({resize:t,editors:r,rowClass:n,readonly:i,range:o,columns:s,useClipboard:u,columnFilter:a,registerElement:c,onEdit:l,onScroll:h})=>{const f=[];for(let d of s){const s=[e("revogr-header",Object.assign({viewportCol:d.viewportCol},d.headerProp,{selectionStore:d.columnSelectionStore,slot:"header",columnFilter:a,canResize:t}))];d.dataPorts.forEach(((t,a)=>{const c=d.prop.key+(a+1),h=e("revogr-overlay-selection",Object.assign({},t,{slot:t.slot,selectionStore:t.segmentSelectionStore,editors:r,readonly:i,range:o,useClipboard:u,onSetEdit:({detail:t})=>l(t)}),e("revogr-data",Object.assign({},t,{[Cn]:t.uuid},{key:c,readonly:i,range:o,rowClass:n,rowSelectionStore:t.rowSelectionStore,slot:"data"})),e("revogr-temp-range",{selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}),e("revogr-focus",{selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}));s.push(h)})),f.push(e("revogr-viewport-scroll",Object.assign({},d.prop,{ref:t=>c(t,d.prop.key),onScrollViewport:t=>h(t.detail,d.prop.key)}),s))}return f};class Vn{constructor(t){this.setViewport=t,this.elements={}}async onScroll(t,r){let e;for(let n in this.elements)if(this.isPinnedColumn(r)&&"rgCol"===t.dimension){if(n===r||!t.delta)continue;for(let r of this.elements[n])r.changeScroll&&(e=r.changeScroll(t))}else{if("rgCol"===t.dimension&&"headerRow"===n)continue;for(let r of this.elements[n])r.setScroll(t)}let n=t;e&&(n=await e),this.setViewport(n)}isPinnedColumn(t){return["colPinStart","colPinEnd"].indexOf(t)>-1}registerElements(t){this.elements=t}registerElement(t,r){this.elements[r]||(this.elements[r]=[]),t?this.elements[r].push(t):this.elements[r]&&delete this.elements[r]}unregister(){delete this.elements,this.elements={}}}class Gn extends ge{constructor(t,r){super(t),this.dimensionProvider=r,this.stretchedColumn=null,this.scrollSize=ke(document),this.addEventListener("beforecolumnapplied",(({detail:{columns:t}})=>this.applyStretch(t)))}setScroll({type:t,hasScroll:r}){var e;"rgRow"===t&&this.stretchedColumn&&(null===(e=this.stretchedColumn)||void 0===e?void 0:e.initialSize)===this.stretchedColumn.size&&r&&(this.stretchedColumn.size-=this.scrollSize,this.apply(),this.dropChanges())}activateChanges(){this.addEventListener("scrollchange",(({detail:t})=>this.setScroll(t)))}dropChanges(){this.stretchedColumn=null,this.removeEventListener("scrollchange")}apply(){this.stretchedColumn&&this.dimensionProvider.setDimensionSize("rgCol",{[this.stretchedColumn.index]:this.stretchedColumn.size})}applyStretch(t){this.dropChanges();let r=this.revogrid.clientWidth-1;if(Bn.each(t,((t,e)=>{const n=this.dimensionProvider.stores[e].store.get("realSize");r-=n})),r>0){const e=t.rgCol.length-1,n=t.rgCol[e],i=(null==n?void 0:n.size)||this.revogrid.colSize||0,o=r+i-1;n&&!n.autoSize&&i<o&&(this.stretchedColumn={initialSize:o,index:e,size:o},this.apply(),this.activateChanges())}}}const qn=class{constructor(t){n(this,t),this.beforeedit=i(this,"beforeedit",7),this.beforerangeedit=i(this,"beforerangeedit",7),this.afteredit=i(this,"afteredit",7),this.beforeautofill=i(this,"beforeautofill",7),this.beforeaange=i(this,"beforeaange",7),this.roworderchanged=i(this,"roworderchanged",7),this.beforesourcesortingapply=i(this,"beforesourcesortingapply",7),this.beforesortingapply=i(this,"beforesortingapply",7),this.beforesorting=i(this,"beforesorting",7),this.rowdragstart=i(this,"rowdragstart",7),this.headerclick=i(this,"headerclick",7),this.beforecellfocus=i(this,"beforecellfocus",7),this.beforefocuslost=i(this,"beforefocuslost",7),this.beforesourceset=i(this,"beforesourceset",7),this.aftersourceset=i(this,"aftersourceset",7),this.beforecolumnsset=i(this,"beforecolumnsset",7),this.beforecolumnapplied=i(this,"beforecolumnapplied",7),this.aftercolumnsset=i(this,"aftercolumnsset",7),this.beforefilterapply=i(this,"beforefilterapply",7),this.beforefiltertrimmed=i(this,"beforefiltertrimmed",7),this.beforetrimmed=i(this,"beforetrimmed",7),this.aftertrimmed=i(this,"aftertrimmed",7),this.viewportscroll=i(this,"viewportscroll",7),this.beforeexport=i(this,"beforeexport",7),this.beforeeditstart=i(this,"beforeeditstart",7),this.aftercolumnresize=i(this,"aftercolumnresize",7),this.frameSize=1,this.rowSize=0,this.colSize=100,this.range=!1,this.readonly=!1,this.resize=!1,this.canFocus=!0,this.useClipboard=!0,this.columns=[],this.source=[],this.pinnedTopSource=[],this.pinnedBottomSource=[],this.rowDefinitions=[],this.editors={},this.columnTypes={},this.theme="default",this.rowClass="",this.autoSizeColumn=!1,this.filter=!1,this.trimmedRows={},this.exporting=!1,this.stretch=!0,this.extraElements=[],this.uuid=null,this.viewport=null,this.internalPlugins=[],this.subscribers={}}async refresh(t="all"){this.dataProvider.refresh(t)}async scrollToRow(t=0){const r=this.dimensionProvider.getViewPortPos({coordinate:t,dimension:"rgRow"});await this.scrollToCoordinate({y:r})}async scrollToColumnIndex(t=0){const r=this.dimensionProvider.getViewPortPos({coordinate:t,dimension:"rgCol"});await this.scrollToCoordinate({x:r})}async scrollToColumnProp(t){const r=this.columnProvider.getColumnIndexByProp(t,"rgCol");if(r<0)return;const e=this.dimensionProvider.getViewPortPos({coordinate:r,dimension:"rgCol"});await this.scrollToCoordinate({x:e})}async updateColumns(t){this.columnProvider.updateColumns(t)}async addTrimmed(t,r="external",e="rgRow"){const n=this.beforetrimmed.emit({trimmed:t,trimmedType:r,type:e});return n.defaultPrevented||(this.dataProvider.setTrimmed({[r]:n.detail.trimmed},e),this.aftertrimmed.emit()),n}async scrollToCoordinate(t){var r;null===(r=this.viewport)||void 0===r||r.scrollToCell(t)}async setCellEdit(t,r,e="rgRow"){var n;const i=pe.getColumnByProp(this.columns,r);i&&(await Se(),null===(n=this.viewport)||void 0===n||n.setEdit(t,this.columnProvider.getColumnIndexByProp(r,"rgCol"),i.pin||"rgCol",e))}async registerVNode(t){this.extraElements.push(...t),this.extraElements=[...this.extraElements]}async getSource(t="rgRow"){return this.dataProvider.stores[t].store.get("source")}async getVisibleSource(t="rgRow"){return se(this.dataProvider.stores[t].store)}async getSourceStore(t="rgRow"){return this.dataProvider.stores[t].store}async getColumnStore(t="rgCol"){return this.columnProvider.stores[t].store}async updateColumnSorting(t,r,e){return this.columnProvider.updateColumnSorting(t,r,e)}async clearSorting(){this.columnProvider.clearSorting()}async getColumns(){return this.columnProvider.getColumns()}async clearFocus(){var t;const r=await this.getFocused();this.beforefocuslost.emit(r).defaultPrevented||(this.selectionStoreConnector.clearAll(),null===(t=this.viewport)||void 0===t||t.clearFocused())}async getPlugins(){return[...this.internalPlugins]}async getFocused(){var t;return null===(t=this.viewport)||void 0===t?void 0:t.getFocused()}handleOutsideClick({target:t}){(null==t?void 0:t.closest(`[${Cn}="${this.uuid}"]`))||this.clearFocus()}onRowDragStarted(t){var r;t.cancelBubble=!0;const e=this.rowdragstart.emit(t.detail);e.defaultPrevented?t.preventDefault():null===(r=this.orderService)||void 0===r||r.start(this.element,Object.assign(Object.assign({},t.detail),e.detail))}onRowDragEnd(){var t;null===(t=this.orderService)||void 0===t||t.end()}onRowDrag({detail:t}){var r;null===(r=this.orderService)||void 0===r||r.move(t)}onRowMouseMove(t){var r;t.cancelBubble=!0,null===(r=this.orderService)||void 0===r||r.moveTip(t.detail)}async onBeforeEdit(t){t.cancelBubble=!0;const{defaultPrevented:r,detail:e}=this.beforeedit.emit(t.detail);await Se(),r||(this.dataProvider.setCellData(e),this.afteredit.emit(e))}onBeforeRangeEdit(t){t.cancelBubble=!0;const{defaultPrevented:r}=this.beforerangeedit.emit(t.detail);r?t.preventDefault():this.afteredit.emit(t.detail)}onRangeChanged(t){t.cancelBubble=!0,this.beforeaange.emit(t.detail).defaultPrevented&&t.preventDefault(),this.beforeautofill.emit(t.detail)}onRowDropped(t){t.cancelBubble=!0;const{defaultPrevented:r}=this.roworderchanged.emit(t.detail);r&&t.preventDefault()}onHeaderClick(t){const{defaultPrevented:r}=this.headerclick.emit(Object.assign(Object.assign({},t.detail.column),{originalEvent:t.detail.originalEvent}));r&&t.preventDefault()}onCellFocus(t){t.cancelBubble=!0;const{defaultPrevented:r}=this.beforecellfocus.emit(t.detail);this.canFocus&&!r||t.preventDefault()}columnChanged(t=[]){this.dimensionProvider.drop();const r=pe.getColumns(t,0,this.columnTypes);this.beforecolumnsset.emit(r);for(let t of he){const e=r.columns[t];this.dimensionProvider.setRealSize(e.length,t),this.dimensionProvider.setColumns(t,pe.getSizes(e),"rgCol"!==t)}this.beforecolumnapplied.emit(r);const e=this.columnProvider.setColumns(r);this.aftercolumnsset.emit({columns:e,order:this.columnProvider.order})}themeChanged(t){this.themeService.register(t),this.dimensionProvider.setSettings({originItemSize:this.themeService.rowSize,frameOffset:this.frameSize||0},"rgRow"),this.dimensionProvider.setSettings({originItemSize:this.colSize,frameOffset:this.frameSize||0},"rgCol")}dataChanged(t=[]){let r=[...t];r=this.beforesourceset.emit({type:"rgRow",source:r}).detail.source,r=this.dataProvider.setData(r,"rgRow"),this.aftersourceset.emit({type:"rgRow",source:r})}dataBottomChanged(t=[]){this.dataProvider.setData(t,"rowPinEnd")}dataTopChanged(t=[]){this.dataProvider.setData(t,"rowPinStart")}rowDefChanged(t=[]){if(!t.length)return;const r=Ar(t,((t,r)=>(t[r.type]||(t[r.type]={}),r.size&&(t[r.type].sizes||(t[r.type].sizes={}),t[r.type].sizes[r.index]=r.size),t)),{});Dr(r,((t,r)=>{t.sizes&&this.dimensionProvider.setDimensionSize(r,t.sizes)}))}trimmedRowsChanged(t={}){this.addTrimmed(t)}groupingChanged(t={}){let r;for(let t of this.internalPlugins){const e=t;if(e.setGrouping){r=e;break}}r&&r.setGrouping(t||{})}applyStretch(t){let r=this.internalPlugins.filter((t=>!!t.applyStretch))[0];if(t)r?r.applyStretch(this.columnProvider.getRawColumns()):this.internalPlugins.push(new Gn(this.element,this.dimensionProvider));else if(r){const t=this.internalPlugins.indexOf(r);this.internalPlugins.splice(t,1)}}connectedCallback(){this.viewportProvider=new $e,this.themeService=new g({rowSize:this.rowSize}),this.dimensionProvider=new Me(this.viewportProvider),this.columnProvider=new pe,this.dataProvider=new Ce(this.dimensionProvider),this.uuid=`${(new Date).getTime()}-rvgrid`,this.autoSizeColumn&&this.internalPlugins.push(new Ue(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider,dimensionProvider:this.dimensionProvider},"object"==typeof this.autoSizeColumn?this.autoSizeColumn:void 0)),this.filter&&this.internalPlugins.push(new tn(this.element,this.uuid,"object"==typeof this.filter?this.filter:void 0)),this.exporting&&this.internalPlugins.push(new Mn(this.element)),this.internalPlugins.push(new vn(this.element)),this.plugins&&this.plugins.forEach((t=>{this.internalPlugins.push(new t(this.element))})),this.internalPlugins.push(new Fn(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider})),this.applyStretch(this.stretch),this.themeChanged(this.theme),this.columnChanged(this.columns),this.dataChanged(this.source),this.dataTopChanged(this.pinnedTopSource),this.dataBottomChanged(this.pinnedBottomSource),this.trimmedRowsChanged(this.trimmedRows),this.rowDefChanged(this.rowDefinitions),this.groupingChanged(this.grouping),this.selectionStoreConnector=new Hn,this.scrollingService=new Vn((t=>{this.dimensionProvider.setViewPortCoordinate({coordinate:t.coordinate,type:t.dimension}),this.viewportscroll.emit(t)})),this.subscribers={click:this.handleOutsideClick.bind(this)};for(let t in this.subscribers)document.addEventListener(t,this.subscribers[t])}disconnectedCallback(){Dr(this.internalPlugins,(t=>t.destroy())),this.internalPlugins=[];for(let t in this.subscribers)document.removeEventListener(t,this.subscribers[t]),delete this.subscribers[t]}render(){const t=this.dimensionProvider.stores.rgRow.store.get("realSize");this.viewport=new Nn({columnProvider:this.columnProvider,dataProvider:this.dataProvider,dimensionProvider:this.dimensionProvider,viewportProvider:this.viewportProvider,uuid:this.uuid,scrollingService:this.scrollingService,orderService:this.orderService,selectionStoreConnector:this.selectionStoreConnector,resize:t=>this.aftercolumnresize.emit(t)},t);const r=[];if(this.rowHeaders){const n=this.viewport.columns[0];r.push(e("revogr-row-headers",{height:t,resize:this.resize,dataPorts:n.dataPorts,headerProp:n.headerProp,uiid:n.prop[Cn],rowHeaderColumn:"object"==typeof this.rowHeaders?this.rowHeaders:void 0,onScrollViewport:({detail:t})=>this.scrollingService.onScroll(t,"headerRow"),onElementToScroll:({detail:t})=>this.scrollingService.registerElement(t,"headerRow")}))}return r.push(e(Wn,{columnFilter:!!this.filter,resize:this.resize,readonly:this.readonly,range:this.range,rowClass:this.rowClass,editors:this.editors,useClipboard:this.useClipboard,columns:this.viewport.columns,onEdit:t=>{this.beforeeditstart.emit(t).defaultPrevented||this.selectionStoreConnector.setEdit(!t.isCancel&&t.val)},registerElement:(t,r)=>this.scrollingService.registerElement(t,r),onScroll:t=>this.scrollingService.onScroll(t)})),e(o,Object.assign({},{[`${Cn}`]:this.uuid}),e(Tn,{viewports:this.viewportProvider.stores,dimensions:this.dimensionProvider.stores,orderRef:t=>this.orderService=t,registerElement:(t,r)=>this.scrollingService.registerElement(t,r),nakedClick:()=>this.viewport.clearEdit(),onScroll:t=>this.scrollingService.onScroll(t)},r),this.extraElements)}get element(){return s(this)}static get watchers(){return{columns:["columnChanged"],theme:["themeChanged"],source:["dataChanged"],pinnedBottomSource:["dataBottomChanged"],pinnedTopSource:["dataTopChanged"],rowDefinitions:["rowDefChanged"],trimmedRows:["trimmedRowsChanged"],grouping:["groupingChanged"],stretch:["applyStretch"]}}};qn.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revo-grid[theme=default]{font-size:12px}revo-grid[theme=default] revogr-header{text-align:center;line-height:30px;background-color:#f8f9fa}revo-grid[theme=default] revogr-header .group-rgRow{box-shadow:none}revo-grid[theme=default] revogr-header .header-rgRow,revo-grid[theme=default] revogr-header .group-rgRow{text-transform:uppercase;font-size:12px;color:#61656a}revo-grid[theme=default] revogr-header .header-rgRow{height:30px;box-shadow:0 -1px 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-header .rgHeaderCell{box-shadow:-1px 0 0 0 #c0c0c0, -1px 0 0 0 #c0c0c0 inset, 0 -1px 0 0 #c0c0c0, 0 -1px 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-header .rgHeaderCell.focused-cell{background:rgba(233, 234, 237, 0.5)}revo-grid[theme=default] .rowHeaders{background-color:#f8f9fa}revo-grid[theme=default] .rowHeaders revogr-data .rgCell{color:#61656a;box-shadow:0 -1px 0 0 #c0c0c0 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] .rowHeaders revogr-header{box-shadow:0 -1px 0 0 #c0c0c0 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-viewport-scroll.colPinStart revogr-data .rgRow .rgCell:last-child{box-shadow:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-viewport-scroll.colPinStart .footer-wrapper revogr-data .rgRow:first-child .rgCell{box-shadow:0 1px 0 0 #c0c0c0 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-viewport-scroll.colPinEnd,revo-grid[theme=default] revogr-viewport-scroll.colPinEnd revogr-header{box-shadow:1px 0 0 #c0c0c0 inset}revo-grid[theme=default] .footer-wrapper revogr-data .rgRow:first-child .rgCell{box-shadow:0 1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset, 0 -1px 0 0 #e2e3e3 inset}revo-grid[theme=default] revogr-data{text-align:center}revo-grid[theme=default] revogr-data .rgRow{line-height:27px;box-shadow:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset}revo-grid[theme=default] revogr-data .rgRow.focused-rgRow{background-color:rgba(233, 234, 237, 0.5)}revo-grid[theme=default] revogr-data .rgCell{box-shadow:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset}revo-grid[theme=default] revogr-data .rgCell.disabled{background-color:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset}revo-grid[theme=material]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}revo-grid[theme=material] revogr-header{line-height:50px;font-weight:600;text-align:left}revo-grid[theme=material] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=material] revogr-header .header-rgRow{height:50px}revo-grid[theme=material] revogr-data{text-align:left}revo-grid[theme=material] revogr-data .rgRow{line-height:42px}revo-grid[theme=material] revogr-data .rgCell{padding:0 15px}revo-grid[theme=material] .viewports{width:100%}revo-grid[theme=material] .rowHeaders{background-color:#f7faff}revo-grid[theme=material] .rowHeaders revogr-data .rgCell{color:#757a82}revo-grid[theme=material] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #f1f1f1, 0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-header .rgHeaderCell.sortable:hover{background-color:#f1f1f1}revo-grid[theme=material] revogr-header .rgHeaderCell.focused-cell{background:rgba(233, 234, 237, 0.5)}revo-grid[theme=material] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #f1f1f1}revo-grid[theme=material] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #f1f1f1}revo-grid[theme=material] revogr-data .rgRow{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-data .rgRow.focused-rgRow{background-color:rgba(233, 234, 237, 0.5)}revo-grid[theme=material] revogr-data .rgCell{color:rgba(0, 0, 0, 0.87)}revo-grid[theme=material] revogr-data .rgCell.disabled{background-color:#f7f7f7}revo-grid[theme=material] revogr-data .revo-draggable>.revo-drag-icon{background-color:#d4d4d4}revo-grid[theme=material] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:black}revo-grid[theme=darkMaterial]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#d8d8d8}revo-grid[theme=darkMaterial] revogr-header{line-height:50px;font-weight:600;text-align:left}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=darkMaterial] revogr-header .header-rgRow{height:50px}revo-grid[theme=darkMaterial] revogr-data{text-align:left}revo-grid[theme=darkMaterial] revogr-data .rgRow{line-height:42px}revo-grid[theme=darkMaterial] revogr-data .rgCell{padding:0 15px}revo-grid[theme=darkMaterial] .viewports{width:100%}revo-grid[theme=darkMaterial] .rowHeaders{background-color:rgba(40, 39, 43, 0.8)}revo-grid[theme=darkMaterial] .rowHeaders revogr-data .rgCell{color:rgba(216, 216, 216, 0.8)}revo-grid[theme=darkMaterial] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #404040, 0 -1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell.sortable:hover{background-color:rgba(64, 64, 64, 0.5)}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell.focused-cell{background:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkMaterial] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #404040}revo-grid[theme=darkMaterial] revogr-data .rgCell{color:rgba(216, 216, 216, 0.9)}revo-grid[theme=darkMaterial] revogr-data .rgRow{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-data .rgRow.focused-rgRow{background-color:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkMaterial] revogr-data .revo-draggable>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.5)}revo-grid[theme=darkMaterial] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.7)}revo-grid[theme=darkMaterial] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #404040}revo-grid[theme=darkCompact]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#d8d8d8}revo-grid[theme=darkCompact] revogr-header{line-height:45px;font-weight:600;text-align:left}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=darkCompact] revogr-header .header-rgRow{height:45px}revo-grid[theme=darkCompact] revogr-data{text-align:left}revo-grid[theme=darkCompact] revogr-data .rgRow{line-height:32px}revo-grid[theme=darkCompact] revogr-data .rgCell{padding:0 15px}revo-grid[theme=darkCompact] .viewports{width:100%}revo-grid[theme=darkCompact] .rowHeaders{background-color:rgba(40, 39, 43, 0.8)}revo-grid[theme=darkCompact] .rowHeaders revogr-data .rgCell{color:rgba(216, 216, 216, 0.8)}revo-grid[theme=darkCompact] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #404040, 0 -1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell.sortable:hover{background-color:rgba(64, 64, 64, 0.5)}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell.focused-cell{background:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkCompact] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #404040}revo-grid[theme=darkCompact] revogr-data .rgCell{color:rgba(216, 216, 216, 0.9)}revo-grid[theme=darkCompact] revogr-data .rgRow{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-data .rgRow.focused-rgRow{background-color:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkCompact] revogr-data .revo-draggable>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.5)}revo-grid[theme=darkCompact] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.7)}revo-grid[theme=darkCompact] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #404040}revo-grid[theme=compact]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}revo-grid[theme=compact] revogr-header{line-height:45px;font-weight:600;text-align:left}revo-grid[theme=compact] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=compact] revogr-header .header-rgRow{height:45px}revo-grid[theme=compact] revogr-data{text-align:left}revo-grid[theme=compact] revogr-data .rgRow{line-height:32px}revo-grid[theme=compact] revogr-data .rgCell{padding:0 15px}revo-grid[theme=compact] .viewports{width:100%}revo-grid[theme=compact] .rowHeaders{background-color:#f7faff}revo-grid[theme=compact] .rowHeaders revogr-data .rgCell{color:#757a82}revo-grid[theme=compact] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #f1f1f1, 0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-header .rgHeaderCell.sortable:hover{background-color:#f1f1f1}revo-grid[theme=compact] revogr-header .rgHeaderCell.focused-cell{background:rgba(233, 234, 237, 0.5)}revo-grid[theme=compact] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #f1f1f1}revo-grid[theme=compact] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #f1f1f1}revo-grid[theme=compact] revogr-data .rgRow{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-data .rgRow.focused-rgRow{background-color:rgba(233, 234, 237, 0.5)}revo-grid[theme=compact] revogr-data .rgCell{color:rgba(0, 0, 0, 0.87)}revo-grid[theme=compact] revogr-data .rgCell.disabled{background-color:#f7f7f7}revo-grid[theme=compact] revogr-data .revo-draggable>.revo-drag-icon{background-color:#d4d4d4}revo-grid[theme=compact] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:black}revo-grid[theme=compact] revo-dropdown .rv-dr-root{padding:0px 9px}revo-grid{display:block;height:100%;font-family:Helvetica, Arial, Sans-Serif, serif;font-size:14px;position:relative;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column;width:100%;height:100%}revo-grid .footer-wrapper,revo-grid .header-wrapper{width:100%}revo-grid .footer-wrapper revogr-data,revo-grid .header-wrapper revogr-data{z-index:3}revo-grid revo-dropdown{width:100%}revo-grid revo-dropdown .rv-dr-root{max-height:100%}revo-grid revo-dropdown.shrink label{opacity:0}revo-grid .viewports{max-height:100%;display:flex;flex-direction:row;align-items:flex-start;max-width:100%}revo-grid .main-viewport{flex-grow:1;height:0;display:flex;flex-direction:row}revo-grid .draggable{position:fixed;height:30px;line-height:30px;background:#fff;border-radius:3px;display:block;z-index:100;margin-top:5px;margin-right:-20px;box-shadow:0 4px 20px 0 rgba(0, 0, 0, 0.15);padding-left:20px;padding-right:5px}revo-grid .draggable.hidden{display:none}revo-grid .draggable .revo-alt-icon{background-color:black;position:absolute;left:5px;top:10px}revo-grid .draggable-wrapper.hidden{display:none}revo-grid .drag-position{position:absolute;left:0;right:0;height:1px;z-index:2;background:red}revo-grid .clipboard{position:absolute;left:0;top:0}revo-grid revogr-scroll-virtual{position:relative}revo-grid revogr-scroll-virtual.vertical,revo-grid revogr-scroll-virtual.horizontal{z-index:3}";class Kn{constructor(t,r){this.dataStore=t,this.source=r,this.unsubscribe=[],this.hasGrouping=!1,this.unsubscribe.push(r.onChange("source",(t=>this.checkGrouping(t)))),this.checkGrouping(r.get("source"))}get columns(){return se(this.source)}checkGrouping(t){for(let r of t){if(mn(r))return void(this.hasGrouping=!0);this.hasGrouping=!1}}isReadOnly(t,r){var e;const n=null===(e=this.columns[r])||void 0===e?void 0:e.readonly;return"function"==typeof n?n(this.rowDataModel(t,r)):n}static doMerge(t,r){let e=Object.assign(Object.assign({},r),t);return r.class&&("object"==typeof r.class&&"object"==typeof e.class?e.class=Object.assign(Object.assign({},r.class),e.class):"string"==typeof r.class&&"object"==typeof e.class?e.class[r.class]=!0:"string"==typeof e.class&&(e.class+=" "+r.class)),r.style&&(e.style=Object.assign(Object.assign({},r.style),e.style)),e}mergeProperties(t,r,e){var n;const i={rgCell:!0,disabled:this.isReadOnly(t,r)};let o=Object.assign(Object.assign({},e),{class:i});const s=null===(n=this.columns[r])||void 0===n?void 0:n.cellProperties;if(s){const e=s(this.rowDataModel(t,r));return e?Kn.doMerge(o,e):o}return o}customRenderer(t,r,n){var i;const o=null===(i=this.columns[r])||void 0===i?void 0:i.cellTemplate;if(o)return o(e,n)}getRowClass(t,r){return(ue(this.dataStore,t)||{})[r]||""}getCellData(t,r){const e=this.rowDataModel(t,r);return Kn.getData(e.model[e.prop])}getSaveData(t,r,e){void 0===e&&(e=this.getCellData(t,r));const n=this.rowDataModel(t,r);return{prop:n.prop,rowIndex:t,val:e,model:n.model,type:this.dataStore.get("type")}}getCellEditor(t,r,e){var n;const i=null===(n=this.columns[r])||void 0===n?void 0:n.editor;if(i)return"string"==typeof i?e[i]:i}rowDataModel(t,r){const e=this.columns[r];return{prop:null==e?void 0:e.prop,model:ue(this.dataStore,t)||{},data:this.dataStore.get("source"),column:e,rowIndex:t}}getRangeData(t){const r={},e=t.oldProps.length,n=this.copyRangeArray(t.oldRange,t.oldProps,this.dataStore),i=n.length;for(let o=t.newRange.y,s=0;o<t.newRange.y1+1;o++,s++){const u=n[s%i];for(let n=t.newRange.x,i=0;n<t.newRange.x1+1;n++,i++){if(o>=t.oldRange.y&&o<=t.oldRange.y1&&n>=t.oldRange.x&&n<=t.oldRange.x1)continue;const s=this.columns[n].prop,a=i%e;this.isReadOnly(o,n)||(r[o]||(r[o]={}),r[o][s]=u[a])}}return r}getTransformedDataToApply(t,r){const e={},n=r.length,i=this.columns.length,o=this.dataStore.get("items").length;let s=t.y,u=0;for(let a=0;s<o&&a<n;s++,a++){const o=r[a%n],c=(null==o?void 0:o.length)||0;let l=t.x;for(let t=0;l<i&&t<c;l++,t++){const r=this.columns[l].prop,n=t%i;this.isReadOnly(s,l)||(e[s]||(e[s]={}),e[s][r]=o[n])}u=Math.max(u,l-1)}return{changed:e,range:Pn(t,{y:s-1,x:u})}}applyRangeData(t){const r={};for(let e in t){const n=r[e]=ue(this.dataStore,parseInt(e,10));for(let r in t[e])n[r]=t[e][r]}ae(this.dataStore,r)}getRangeStaticData(t,r){const e={};for(let n=t.y,i=0;n<t.y1+1;n++,i++)for(let i=t.x,o=0;i<t.x1+1;i++,o++){const t=this.columns[i].prop;this.isReadOnly(n,i)||(e[n]||(e[n]={}),e[n][t]=r)}return e}copyRangeArray(t,r,e){const n=[];for(let i=t.y;i<t.y1+1;i++){const t=[];for(let n of r){const r=ue(e,i);t.push(r[n])}n.push(t)}return n}static getData(t){return null==t?"":t.toString()}destroy(){this.unsubscribe.forEach((t=>t()))}}const Xn=({model:t,canDrag:r,onDragStart:n})=>{const i=[];return t.column.rowDrag&&function(t,r){return"function"==typeof t?t(r):!!t}(t.column.rowDrag,t)&&i.push(r?e("span",{class:"revo-draggable",onMouseDown:t=>n(t)},e("span",{class:"revo-drag-icon"})):e("span",{class:"revo-draggable"})),i.push(`${Kn.getData(t.model[t.prop])}`),i},Jn=({rowClass:t,size:r,start:n,style:i,depth:o},s)=>e("div",{class:`rgRow ${t||""}`,style:Object.assign(Object.assign({},i),{height:`${r}px`,transform:`translateY(${n}px)`,paddingLeft:o?10*o+"px":void 0})},s),Yn=t=>{const{model:r,itemIndex:n,hasExpand:i}=t,o=r["__rvgr-name"],s=r["__rvgr-expanded"],u=parseInt(r["__rvgr-depth"],10)||0;return i?e(Jn,Object.assign({},t,{rowClass:"groupingRow",depth:u}),e("button",{class:{"group-expand":!0},onClick:t=>function(t,r,e){const n=new CustomEvent("groupExpandClick",{detail:{model:r,virtualIndex:e},cancelable:!0,bubbles:!0});t.target.dispatchEvent(n)}(t,r,n)},e("svg",{"aria-hidden":"true",style:{transform:`rotate(${s?0:-90}deg)`},focusable:"false",viewBox:"0 0 448 512"},e("path",{fill:"currentColor",d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}))),o):e(Jn,Object.assign({},t,{rowClass:"groupingRow",depth:u}))},Qn=class{constructor(t){n(this,t),this.dragStartCell=i(this,"dragStartCell",7)}onStoreChange(){var t;null===(t=this.columnService)||void 0===t||t.destroy(),this.columnService=new Kn(this.dataStore,this.colData)}connectedCallback(){this.onStoreChange()}disconnectedCallback(){var t;null===(t=this.columnService)||void 0===t||t.destroy()}render(){var t;const r=this.viewportRow.get("items"),n=this.viewportCol.get("items");if(!this.columnService.columns.length||!r.length||!n.length)return"";const i=null===(t=this.rowSelectionStore)||void 0===t?void 0:t.get("range"),o=[],s=this.dataStore.get("groupingDepth");for(let t of r){const r=ue(this.dataStore,t.itemIndex);if(Ln(r)){o.push(e(Yn,Object.assign({},t,{model:r,hasExpand:this.columnService.hasGrouping})));continue}const u=[];let a=this.rowClass?this.columnService.getRowClass(t.itemIndex,this.rowClass):"";i&&t.itemIndex>=i.y&&t.itemIndex<=i.y1&&(a+=" focused-rgRow");for(let r of n)u.push(this.getCellRenderer(t,r,this.canDrag,this.columnService.hasGrouping?s:0));o.push(e(Jn,{rowClass:a,size:t.size,start:t.start},u))}return o}getCellRenderer(t,r,n=!1,i=0){const o=this.columnService.rowDataModel(t.itemIndex,r.itemIndex),s={"data-rgCol":r.itemIndex,"data-rgRow":t.itemIndex,style:{width:`${r.size}px`,transform:`translateX(${r.start}px)`}};i&&!r.itemIndex&&(s.style.paddingLeft=10*i+"px");const u=this.columnService.mergeProperties(t.itemIndex,r.itemIndex,s),a=this.columnService.customRenderer(t.itemIndex,r.itemIndex,o);return void 0!==a?e("div",Object.assign({},u),a):o.column?e("div",Object.assign({},u),e(Xn,{model:o,canDrag:n,onDragStart:t=>this.dragStartCell.emit(t)})):void console.error("Investigate column problem")}get element(){return s(this)}static get watchers(){return{dataStore:["onStoreChange"],colData:["onStoreChange"]}}};var ti,ri;Qn.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-data{display:block;width:100%;position:relative}revogr-data .rgRow{position:absolute;width:100%;left:0}revogr-data .rgRow.groupingRow{font-weight:600}revogr-data .rgRow.groupingRow .group-expand{width:25px;height:100%;max-height:25px;margin-right:2px;background-color:transparent;border-color:transparent}revogr-data .rgRow.groupingRow .group-expand svg{width:7px}revogr-data .revo-draggable{border:none;height:32px;display:inline-flex;outline:0;padding:0;font-size:0.8125rem;box-sizing:border-box;align-items:center;white-space:nowrap;vertical-align:middle;justify-content:center;text-decoration:none;width:24px;height:100%;cursor:pointer}revogr-data .revo-draggable>.revo-drag-icon{vertical-align:middle;display:inline-block;pointer-events:none;transition:background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}revogr-data .rgCell{top:0;position:absolute;box-sizing:border-box;height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}revogr-data .rgCell.align-center{text-align:center}revogr-data .rgCell.align-left{text-align:left}revogr-data .rgCell.align-right{text-align:right}",function(t){t[t.MOUSE_LEFT=1]="MOUSE_LEFT",t[t.MOUSE_RIGHT=3]="MOUSE_RIGHT",t[t.MOUSE_MIDDLE=2]="MOUSE_MIDDLE",t[t.BACKSPACE=8]="BACKSPACE",t[t.COMMA=188]="COMMA",t[t.INSERT=45]="INSERT",t[t.DELETE=46]="DELETE",t[t.END=35]="END",t[t.ENTER=13]="ENTER",t[t.ESCAPE=27]="ESCAPE",t[t.CONTROL=17]="CONTROL",t[t.COMMAND_LEFT=91]="COMMAND_LEFT",t[t.COMMAND_RIGHT=93]="COMMAND_RIGHT",t[t.COMMAND_FIREFOX=224]="COMMAND_FIREFOX",t[t.ALT=18]="ALT",t[t.HOME=36]="HOME",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.PAGE_UP=33]="PAGE_UP",t[t.PERIOD=190]="PERIOD",t[t.SPACE=32]="SPACE",t[t.SHIFT=16]="SHIFT",t[t.CAPS_LOCK=20]="CAPS_LOCK",t[t.TAB=9]="TAB",t[t.ARROW_RIGHT=39]="ARROW_RIGHT",t[t.ARROW_LEFT=37]="ARROW_LEFT",t[t.ARROW_UP=38]="ARROW_UP",t[t.ARROW_DOWN=40]="ARROW_DOWN",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12",t[t.A=65]="A",t[t.C=67]="C",t[t.D=68]="D",t[t.F=70]="F",t[t.L=76]="L",t[t.O=79]="O",t[t.P=80]="P",t[t.S=83]="S",t[t.V=86]="V",t[t.X=88]="X"}(ti||(ti={})),function(t){t.ENTER="Enter",t.ENTER_NUM="NumpadEnter",t.V="KeyV",t.C="KeyC",t.ESCAPE="Escape",t.TAB="Tab",t.BACKSPACE="Backspace",t.DELETE="Delete",t.ARROW_RIGHT="ArrowRight",t.ARROW_LEFT="ArrowLeft",t.ARROW_UP="ArrowUp",t.ARROW_DOWN="ArrowDown",t.SHIFT="Shift"}(ri||(ri={}));const ei=ti;var ni;!function(t){t.mac="Mac"}(ni||(ni={}));const ii=ni;var oi=function(t){return t!=t},si=function(t){return null==t?[]:function(t,r){return wr(r,(function(r){return t[r]}))}(t,et(t))},ui=Math.max,ai=function(t,r,e,n){t=rt(t)?t:si(t),e=e&&!n?Gr(e):0;var i=t.length;return e<0&&(e=ui(i+e,0)),rn(t)?e<=i&&t.indexOf(r,e)>-1:!!i&&function(t,r,e){return r==r?function(t,r,e){for(var n=e-1,i=t.length;++n<i;)if(t[n]===r)return n;return-1}(t,r,e):Ir(t,oi,e)}(t,r,e)>-1};function ci(t,r){return r.includes(ii.mac)?ai([ei.COMMAND_LEFT,ei.COMMAND_RIGHT,ei.COMMAND_FIREFOX],t):ei.CONTROL===t}function li(t){return t===ri.ENTER||t===ri.ENTER_NUM}class hi{constructor(t,r){this.column=t,this.saveCallback=r,this.element=null,this.editCell=null}async componentDidRender(){var t;this.editInput&&(await Se(),null===(t=this.editInput)||void 0===t||t.focus())}onKeyDown(t){const r=li(t.code),e=ri.TAB===t.code;(e||r)&&t.target&&this.saveCallback&&(this.editInput.blur(),this.saveCallback(t.target.value,e))}render(){var t;return e("input",{type:"text",value:(null===(t=this.editCell)||void 0===t?void 0:t.val)||"",ref:t=>{this.editInput=t},onKeyDown:t=>this.onKeyDown(t)})}}const fi=class{constructor(t){n(this,t),this.cellEdit=i(this,"cellEdit",3),this.closeEdit=i(this,"closeEdit",3),this.currentEditor=null}onSave(t,r){this.editCell&&this.cellEdit.emit({rgCol:this.editCell.x,rgRow:this.editCell.y,val:t,preventFocus:r})}componentWillRender(){this.currentEditor||(this.currentEditor=this.editor?new this.editor(this.column,((t,r)=>this.onSave(t,r)),(t=>this.closeEdit.emit(t))):new hi(this.column,((t,r)=>this.onSave(t,r))))}componentDidRender(){this.currentEditor&&(this.currentEditor.element=this.element.firstElementChild,this.currentEditor.componentDidRender&&this.currentEditor.componentDidRender())}disconnectedCallback(){this.currentEditor&&(this.currentEditor.disconnectedCallback&&this.currentEditor.disconnectedCallback(),this.currentEditor.element&&(this.currentEditor.element=null),this.currentEditor=null)}render(){return this.currentEditor?(this.currentEditor.editCell=this.editCell,e(o,{class:"edit-input-wrapper"},this.currentEditor.render(e))):""}get element(){return s(this)}};function di({x:t,y:r},{el:e,rows:n,cols:i}){const{top:o,left:s,height:u,width:a}=e.getBoundingClientRect();let c=r-o;c>=u&&(c=u-1);let l=t-s;l>=a&&(l=a-1);const h=je(n,c),f=je(i,l);return f.itemIndex<0&&(f.itemIndex=0),h.itemIndex<0&&(h.itemIndex=0),{x:f.itemIndex,y:h.itemIndex}}function gi({x:t,y:r},{lastCell:e}){return t>=e.x||r>=e.y}function vi({x:t,y:r,x1:e,y1:n},i,o){const s=Re(i,r).start,u=Re(o,t).start,a=Re(i,n).end,c=Re(o,e).end;return{left:u,right:c,top:s,bottom:a,width:c-u,height:a-s}}function pi(t,r,e){return{left:`${(n=vi(t,r,e)).left}px`,top:`${n.top}px`,width:`${n.width}px`,height:`${n.height}px`};var n}fi.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-edit{display:block;position:absolute;background-color:#fff}revogr-edit input{height:100%;width:100%;box-sizing:border-box}revogr-edit revo-dropdown{height:100%}revogr-edit revo-dropdown.shrink fieldset legend>span{display:none}";const Ci=class{constructor(t){n(this,t)}changed(t){null==t||t.scrollIntoView({block:"nearest",inline:"nearest"})}componentDidRender(){this.el&&this.changed(this.el)}render(){const t=this.selectionStore.get("focus");if(t){const r=pi(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.dimensionRow.state,this.dimensionCol.state);return e(o,{class:"focused-cell",style:r})}}get el(){return s(this)}};Ci.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-focus.focused-cell{box-shadow:-1px 0 0 #0d63e8 inset, 1px 0 0 #0d63e8 inset, 0 -1px 0 #0d63e8 inset, 0 1px 0 #0d63e8 inset;position:absolute;pointer-events:none;z-index:9;display:block}";var wi,Li=function(){try{var t=Ct(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),mi=function(t,r,e,n){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];r(n,s,e(s),t)}return n},bi=function(t,r,e,n){return nt(t,(function(t,i,o){r(n,t,e(t),o)})),n},xi=(wi=function(t,r,e){!function(t,r,e){"__proto__"==r&&Li?Li(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}(t,e,r)},function(t,r){var e={};return(D(t)?mi:bi)(t,wi,Fr(r),e)});const yi=({column:t})=>e("i",{class:t.order});var ki;!function(t){t.start="resize:start",t.move="resize:move",t.end="resize:end"}(ki||(ki={}));const Ei={"resizable-r":{bit:1,cursor:"ew-resize"},"resizable-rb":{bit:3,cursor:"se-resize"},"resizable-b":{bit:2,cursor:"s-resize"},"resizable-lb":{bit:6,cursor:"sw-resize"},"resizable-l":{bit:4,cursor:"w-resize"},"resizable-lt":{bit:12,cursor:"nw-resize"},"resizable-t":{bit:8,cursor:"n-resize"},"resizable-rt":{bit:9,cursor:"ne-resize"}};class Si{constructor(t,r){var e;this.initialProps=t,this.$event=r,this.mouseX=0,this.mouseY=0,this.width=0,this.height=0,this.changeX=0,this.changeY=0,this.disableCalcMap=15,this.props=(e=t,Object.assign(Object.assign({},e),{fitParent:e.fitParent||!1,active:e.active||[],disableAttributes:e.disableAttributes||[],minWidth:e.minWidth||0,minHeight:e.minHeight||0})),this.mouseMoveFunc=this.handleMove.bind(this),this.mouseUpFunc=this.handleUp.bind(this),this.minW=this.props.minWidth,this.minH=this.props.minHeight,this.maxW=this.props.maxWidth,this.maxH=this.props.maxHeight,this.parent={width:0,height:0},this.resizeState=0}set(t){this.$el=t,this.props.disableAttributes.forEach((t=>{switch(t){case"l":this.disableCalcMap&=-2;break;case"t":this.disableCalcMap&=-3;break;case"w":this.disableCalcMap&=-5;break;case"h":this.disableCalcMap&=-9}}))}emitEvent(t,r){this.$event&&this.$event(Object.assign({eventName:t,width:this.width+this.changeX,height:this.height+this.changeY,changedX:this.changeX,changedY:this.changeY},r))}static isTouchEvent(t){var r;return(null===(r=t.touches)||void 0===r?void 0:r.length)>=0}handleMove(t){if(!this.resizeState)return;let r,e;Si.isTouchEvent(t)?(r=t.touches[0].clientY,e=t.touches[0].clientX):(r=t.clientY,e=t.clientX);let n=this.resizeState&Ei["resizable-r"].bit||this.resizeState&Ei["resizable-l"].bit;if((this.resizeState&Ei["resizable-t"].bit||this.resizeState&Ei["resizable-b"].bit)&&8&this.disableCalcMap){let t=this.changeY+(r-this.mouseY);const e=this.height+t;e<this.minH&&(t=-(this.height-this.minH)),this.maxH&&e>this.maxH&&(t=this.maxH-this.height),this.changeY=t,this.mouseY=r,this.activeResizer&&(this.activeResizer.style.bottom=-this.changeY+"px")}if(n&&4&this.disableCalcMap){let t=this.changeX+(e-this.mouseX);const r=this.width+t;r<this.minW&&(t=-(this.width-this.minW)),this.maxW&&r>this.maxW&&(t=this.maxW-this.width),this.changeX=t,this.mouseX=e,this.activeResizer&&(this.activeResizer.style.right=-this.changeX+"px")}this.emitEvent(ki.move)}handleDown(t){if(!t.defaultPrevented){this.dropInitial();for(let r in Ei){const e=t.target;if(this.$el.contains(e)&&(null==e?void 0:e.classList.contains(r))){document.body.style.cursor=Ei[r].cursor,Si.isTouchEvent(t)?this.setInitials(t.touches[0],e):(t.preventDefault&&t.preventDefault(),this.setInitials(t,e)),this.resizeState=Ei[r].bit,this.emitEvent(ki.start);break}}this.bindMove()}}handleUp(t){t.preventDefault(),0!==this.resizeState&&(this.resizeState=0,document.body.style.cursor="",this.emitEvent(ki.end)),this.dropInitial(),this.unbindMove()}setInitials({clientX:t,clientY:r},e){const n=getComputedStyle(this.$el);if(this.$el.classList.add("active"),this.activeResizer=e,4&this.disableCalcMap){this.mouseX=t,this.width=this.$el.clientWidth,this.parent.width=this.$el.parentElement.clientWidth;const r=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight);this.minW=Math.max(r,this.initialProps.minWidth||0),this.initialProps.maxWidth&&(this.maxW=Math.max(this.width,this.initialProps.maxWidth))}if(8&this.disableCalcMap){this.mouseY=r,this.height=this.$el.clientHeight,this.parent.height=this.$el.parentElement.clientHeight;const t=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom);this.minH=Math.max(t,this.initialProps.minHeight||0),this.initialProps.maxHeight&&(this.maxH=Math.max(this.height,this.initialProps.maxHeight))}}dropInitial(){this.changeX=this.changeY=this.minW=this.minH,this.width=this.height=0,this.activeResizer&&this.activeResizer.removeAttribute("style"),this.$el.classList.remove("active"),this.activeResizer=null}bindMove(){document.documentElement.addEventListener("mouseup",this.mouseUpFunc,!0),document.documentElement.addEventListener("touchend",this.mouseUpFunc,!0),document.documentElement.addEventListener("mousemove",this.mouseMoveFunc,!0),document.documentElement.addEventListener("touchmove",this.mouseMoveFunc,!0),document.documentElement.addEventListener("mouseleave",this.mouseUpFunc)}unbindMove(){document.documentElement.removeEventListener("mouseup",this.mouseUpFunc,!0),document.documentElement.removeEventListener("touchend",this.mouseUpFunc,!0),document.documentElement.removeEventListener("mousemove",this.mouseMoveFunc,!0),document.documentElement.removeEventListener("touchmove",this.mouseMoveFunc,!0),document.documentElement.removeEventListener("mouseleave",this.mouseUpFunc)}}const ji=(t,r)=>{const n=[],i=t.canResize&&new Si(t,(r=>{r.eventName===ki.end&&t.onResize&&t.onResize(r)}))||null;if(t.canResize){if(t.active)for(let r in t.active)n.push(e("div",{onClick:t=>t.preventDefault(),onDblClick:r=>{r.preventDefault(),t.onDoubleClick&&t.onDoubleClick()},onMouseDown:t=>null==i?void 0:i.handleDown(t),onTouchStart:t=>null==i?void 0:i.handleDown(t),class:`resizable resizable-${t.active[r]}`}))}else if(t.active)for(let r in t.active)n.push(e("div",{onClick:t=>t.preventDefault(),onDblClick:r=>{r.preventDefault(),t.onDoubleClick&&t.onDoubleClick()},class:`no-resize resizable resizable-${t.active[r]}`}));return e("div",Object.assign({},t,{ref:t=>null==i?void 0:i.set(t)}),r,n)},Ri=({data:t,props:r},n)=>{let i=(null==t?void 0:t.name)||"",o=r;if((null==t?void 0:t.columnTemplate)&&(i=t.columnTemplate(e,t)),null==t?void 0:t.columnProperties){const e=t.columnProperties(t);e&&"object"==typeof e&&(o=Kn.doMerge(r,e))}return e(ji,Object.assign({},o),e("div",{class:"header-content"},i),n)},zi=t=>{var r,n,i,o,s,u;const a={rgHeaderCell:!0,sortable:!!(null===(r=t.data)||void 0===r?void 0:r.sortable)};(null===(n=t.data)||void 0===n?void 0:n.order)&&(a[t.data.order]=!0);const l={"data-rgCol":t.column.itemIndex,canResize:t.canResize,minWidth:(null===(i=t.data)||void 0===i?void 0:i.minSize)||30,maxWidth:null===(o=t.data)||void 0===o?void 0:o.maxSize,active:["r"],class:a,style:{width:`${t.column.size}px`,transform:`translateX(${t.column.start}px)`},onResize:t.onResize,onDoubleClick(r){t.onDoubleClick({column:t.data,index:t.column.itemIndex,originalEvent:r})},onClick(r){!r.defaultPrevented&&t.onClick&&t.onClick({column:t.data,index:t.column.itemIndex,originalEvent:r})}};return t.range&&t.column.itemIndex>=t.range.x&&t.column.itemIndex<=t.range.x1&&"object"==typeof l.class&&(l.class["focused-cell"]=!0),e(Ri,{data:t.data,props:l},(null===(s=t.data)||void 0===s?void 0:s.order)?e(yi,{column:t.data}):"",t.canFilter&&!1!==(null===(u=t.data)||void 0===u?void 0:u.filter)?e(c,{column:t.data}):"")},Oi=t=>e(Ri,{data:t.group,props:{canResize:t.canResize,minWidth:30*t.group.ids.length,maxWidth:0,active:["r"],class:{rgHeaderCell:!0},style:{transform:`translateX(${t.start}px)`,width:t.end-t.start+"px"},onResize:t.onResize}}),Mi=({depth:t,groups:r,visibleProps:n,dimensionCol:i,canResize:o,onResize:s})=>{const u=[];for(let a=0;a<t;a++){if(r[a])for(let t of r[a]){const r=Kr(t.ids,(t=>"number"==typeof n[t]));if(r>-1){const a=n[t.ids[r]]-r,c=a+t.ids.length-1,l=Re(i,a).start,h=Re(i,c).end;u.push(e(Oi,{start:l,end:h,group:t,canResize:o,onResize:t=>s(t.changedX,a,c)}))}}u.push(e("div",{class:"header-rgRow group"}))}return u},Fi=class{constructor(t){n(this,t),this.initialHeaderClick=i(this,"initialHeaderClick",7),this.headerresize=i(this,"headerresize",7),this.headerdblClick=i(this,"headerdblClick",7),this.parent="",this.groupingDepth=0}onResize({width:t},r){this.headerresize.emit({[r]:t||0})}onResizeGroup(t,r,e){const n={},i=xi(this.viewportCol.get("items"),"itemIndex"),o=t/(e-r+1);for(let t=r;t<=e;t++){const r=i[t];r&&(n[t]=r.size+o)}this.headerresize.emit(n)}render(){var t;const r=this.viewportCol.get("items"),n=null===(t=this.selectionStore)||void 0===t?void 0:t.get("range"),i=[],o={};for(let t of r){const r=this.colData[t.itemIndex];i.push(e(zi,{range:n,column:t,data:r,canFilter:!!this.columnFilter,canResize:this.canResize,onResize:r=>this.onResize(r,t.itemIndex),onDoubleClick:t=>this.headerdblClick.emit(t),onClick:t=>this.initialHeaderClick.emit(t)})),o[null==r?void 0:r.prop]=t.itemIndex}return[e("div",{class:"group-rgRow"},e(Mi,{canResize:this.canResize,visibleProps:o,groups:this.groups,dimensionCol:this.dimensionCol.state,depth:this.groupingDepth,onResize:(t,r,e)=>this.onResizeGroup(t,r,e)})),e("div",{class:"header-rgRow actual-rgRow"},i)]}get element(){return s(this)}};Fi.style="@charset \"UTF-8\";.revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-header{position:relative;z-index:5;display:block}revogr-header .rgHeaderCell{display:flex}revogr-header .rgHeaderCell.align-center{text-align:center}revogr-header .rgHeaderCell.align-left{text-align:left}revogr-header .rgHeaderCell.align-right{text-align:right}revogr-header .rgHeaderCell.sortable{cursor:pointer}revogr-header .rgHeaderCell i.asc:after,revogr-header .rgHeaderCell i.desc:after{font-size:13px}revogr-header .rgHeaderCell i.asc:after{content:\"↑\"}revogr-header .rgHeaderCell i.desc:after{content:\"↓\"}revogr-header .rgHeaderCell,revogr-header .grouped-cell{position:absolute;box-sizing:border-box;height:100%;z-index:1}revogr-header .header-rgRow{display:block;position:relative}revogr-header .header-rgRow.group{z-index:0}revogr-header .group-rgRow{position:relative}revogr-header .rgHeaderCell.active{z-index:10}revogr-header .rgHeaderCell.active .resizable{background-color:deepskyblue}revogr-header .rgHeaderCell .header-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1}revogr-header .rgHeaderCell .resizable{display:block;position:absolute;z-index:90;touch-action:none;user-select:none}revogr-header .rgHeaderCell .resizable:hover{background-color:deepskyblue}revogr-header .rgHeaderCell>.resizable-r{cursor:ew-resize;width:6px;right:0;top:0;height:100%}revogr-header .rgHeaderCell>.resizable-rb{cursor:se-resize;width:6px;height:6px;right:0;bottom:0}revogr-header .rgHeaderCell>.resizable-b{cursor:s-resize;height:6px;bottom:0;width:100%;left:0}revogr-header .rgHeaderCell>.resizable-lb{cursor:sw-resize;width:6px;height:6px;left:0;bottom:0}revogr-header .rgHeaderCell>.resizable-l{cursor:w-resize;width:6px;left:0;height:100%;top:0}revogr-header .rgHeaderCell>.resizable-lt{cursor:nw-resize;width:6px;height:6px;left:0;top:0}revogr-header .rgHeaderCell>.resizable-t{cursor:n-resize;height:6px;top:0;width:100%;left:0}revogr-header .rgHeaderCell>.resizable-rt{cursor:ne-resize;width:6px;height:6px;right:0;top:0}revogr-header .rv-filter{visibility:hidden}";var _i=function(){return b.Date.now()},Ai=Math.max,Ti=Math.min,Di=function(t,r,e){var n,i,o,s,u,a,c=0,l=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(r){var e=n,o=i;return n=i=void 0,c=r,s=t.apply(o,e)}function g(t){return c=t,u=setTimeout(p,r),l?d(t):s}function v(t){var e=t-a;return void 0===a||e>=r||e<0||h&&t-c>=o}function p(){var t=_i();if(v(t))return C(t);u=setTimeout(p,function(t){var e=r-(t-a);return h?Ti(e,o-(t-c)):e}(t))}function C(t){return u=void 0,f&&n?d(t):(n=i=void 0,s)}function w(){var t=_i(),e=v(t);if(n=arguments,i=this,a=t,e){if(void 0===u)return g(a);if(h)return clearTimeout(u),u=setTimeout(p,r),d(a)}return void 0===u&&(u=setTimeout(p,r)),s}return r=Wr(r)||0,Q(e)&&(l=!!e.leading,o=(h="maxWait"in e)?Ai(Wr(e.maxWait)||0,r):o,f="trailing"in e?!!e.trailing:f),w.cancel=function(){void 0!==u&&clearTimeout(u),c=0,n=a=i=u=void 0},w.flush=function(){return void 0===u?s:C(_i())},w};class Ii{constructor(t){this.config=t,this.currentCell=null,this.previousRow=null}endOrder(t,r){if(null===this.currentCell)return;const e=this.getCell(t,r);e.y!==this.currentCell.y&&(e.y<0?e.y=0:e.y<this.currentCell.y&&e.y++,this.config.positionChanged(this.currentCell.y,e.y)),this.clear()}startOrder(t,r){return this.currentCell=this.getCell(t,r),this.currentCell}move(t,r){const e=this.getRow(t,r);return this.previousRow===e.itemIndex||e.itemIndex<-1?null:(this.previousRow=e.itemIndex,e)}clear(){this.currentCell=null,this.previousRow=null}getRow(t,{el:r,rows:e}){const{top:n}=r.getBoundingClientRect(),i=je(e,t-n);return{itemIndex:i.itemIndex,start:i.start+n,end:i.end+n}}getCell({x:t,y:r},{el:e,rows:n,cols:i}){const{top:o,left:s}=e.getBoundingClientRect(),u=t-s,a=je(n,r-o);return{x:je(i,u).itemIndex,y:a.itemIndex}}}const Pi=class{constructor(t){n(this,t),this.internalRowDragStart=i(this,"internalRowDragStart",7),this.internalRowDragEnd=i(this,"internalRowDragEnd",7),this.internalRowDrag=i(this,"internalRowDrag",7),this.internalRowMouseMove=i(this,"internalRowMouseMove",7),this.initialRowDropped=i(this,"initialRowDropped",7),this.rowMoveFunc=Di((t=>{const r=this.rowOrderService.move(t,this.getData());null!==r&&this.internalRowDrag.emit(r)}),5)}onMouseOut(){this.clearOrder()}onMouseUp(t){this.endOrder(t)}async dragStart(t){t.preventDefault(),this.moveFunc&&this.clearOrder();const r=this.getData(),e=this.rowOrderService.startOrder(t,r),n=this.rowOrderService.getRow(t.y,r);this.internalRowDragStart.emit({cell:e,text:"Draggable item",pos:n,event:t}).defaultPrevented||(this.moveFunc=t=>this.move(t),document.addEventListener("mousemove",this.moveFunc))}async endOrder(t){this.rowOrderService.endOrder(t,this.getData()),this.clearOrder()}async clearOrder(){this.rowOrderService.clear(),document.removeEventListener("mousemove",this.moveFunc),this.moveFunc=null,this.internalRowDragEnd.emit()}move({x:t,y:r}){this.internalRowMouseMove.emit({x:t,y:r}),this.rowMoveFunc(r)}connectedCallback(){this.rowOrderService=new Ii({positionChanged:(t,r)=>this.onPositionChanged(t,r)})}onPositionChanged(t,r){if(this.initialRowDropped.emit({from:t,to:r}).defaultPrevented)return;const e=[...this.dataStore.get("items")],n=e.splice(t,1);e.splice(r,0,...n),ce(this.dataStore,e)}getData(){return{el:this.parent,rows:this.dimensionRow.state,cols:this.dimensionCol.state}}};class $i{constructor(t,r){this.store=t,this.config=r,this.store=t}get edited(){return this.store.get("edit")}get focused(){return this.store.get("focus")}get ranged(){return this.store.get("range")}changeRange(t){return this.config.changeRange(t)}focus(t,r=!1){if(!t)return!1;let e=t;if(r){let t=this.store.get("focus");if(t)return this.config.changeRange(Pn(t,e))}return this.config.focus(t,e)}}class Ui{constructor(t){this.sv=t,this.ctrlDown=!1}async keyDown(t,r){var e;if(this.sv.selectionStoreService.focused)if(ci(t.keyCode,navigator.platform)&&(this.ctrlDown=!0),ri.TAB!==t.code)if(this.sv.selectionStoreService.edited)switch(t.code){case ri.ESCAPE:this.sv.doEdit(void 0,!0)}else ri.BACKSPACE!==(e=t.code)&&ri.DELETE!==e?li(t.code)?this.sv.doEdit():this.isCopy(t)||(this.isPaste(t)?this.sv.internalPaste():function(t){return 32===t||t>=48&&t<=57||t>=96&&t<=111||t>=186&&t<=192||t>=219&&t<=222||t>=226||t>=65&&t<=90}(t.keyCode)?this.sv.doEdit(t.key):await this.keyChangeSelection(t,r)):this.sv.clearCell();else this.keyChangeSelection(t,r)}async keyChangeSelection(t,r){const e=this.changeDirectionKey(t,r);if(!e)return!1;await Se();const n=this.sv.selectionStore.get("range"),i=this.sv.selectionStore.get("focus");return this.keyPositionChange(e.changes,this.sv.getData(),n,i,e.isMulti)}keyPositionChange(t,r,e,n,i=!1){if(!e||!n)return!1;const o=function(t,r,e,n=!1){const i=i=>{const o={x:t.x,y:t.y},s=n?{x:t.x1,y:t.y1}:o;return(s[i]>r[i]?s:o)[i]+=e[i],{start:o,end:s}};return e.x?i("x"):e.y?i("y"):null}(e,n,t,i);if(!o)return!1;if(i){if(gi(o.end,r)||function({x:t,y:r}){return t<0||r<0}(o.start))return!1;const t=Pn(o.start,o.end);return this.sv.selectionStoreService.changeRange(t)}return this.sv.selectionStoreService.focus(o.start)}keyUp(t){ci(t.keyCode,navigator.platform)&&(this.ctrlDown=!1)}isCopy(t){return this.ctrlDown&&t.code==ri.C}isPaste(t){return this.ctrlDown&&t.code==ri.V}changeDirectionKey(t,r){const e=r&&t.shiftKey;switch(t.code){case ri.TAB:case ri.ARROW_UP:case ri.ARROW_DOWN:case ri.ARROW_LEFT:case ri.ARROW_RIGHT:t.preventDefault()}switch(t.code){case ri.ARROW_UP:return{changes:{y:-1},isMulti:e};case ri.ARROW_DOWN:return{changes:{y:1},isMulti:e};case ri.ARROW_LEFT:return{changes:{x:-1},isMulti:e};case ri.TAB:case ri.ARROW_RIGHT:return{changes:{x:1},isMulti:e}}}}var Hi,Zi=function(t,r,e){var n=null==t?0:t.length;return n?(e&&"number"!=typeof e&&ee(t,r,e)?(r=0,e=n):(r=null==r?0:Gr(r),e=void 0===e?n:Gr(e)),function(t,r,e){var n=-1,i=t.length;r<0&&(r=-r>i?0:i+r),(e=e>i?i:e)<0&&(e+=i),i=r>e?0:e-r>>>0,r>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+r];return o}(t,r,e)):[]};!function(t){t.selection="Selection",t.autoFill="AutoFill"}(Hi||(Hi={}));class Bi{constructor(t){this.sv=t,this.autoFillType=null,this.autoFillInitial=null,this.autoFillStart=null,this.autoFillLast=null}renderAutofill(t,r){let n;return n=vi(t||Object.assign(Object.assign({},r),{x1:r.x,y1:r.y}),this.sv.dimensionRow.state,this.sv.dimensionCol.state),e("div",{class:"autofill-handle",style:{left:`${n.right}px`,top:`${n.bottom}px`},onMouseDown:t=>this.selectionStart(t,this.sv.getData(),Hi.autoFill)})}get isAutoFill(){return!!this.autoFillType}selectionMouseMove(t){this.onMouseMoveAutofill||(this.onMouseMoveAutofill=Di(((t,r)=>this.doAutofillMouseMove(t,r)),5)),this.isAutoFill&&this.onMouseMoveAutofill(t,this.sv.getData())}getFocus(){let t=this.sv.selectionStoreService.focused;const r=this.sv.selectionStoreService.ranged;return r&&(t={x:r.x,y:r.y}),t||r?t:null}doAutofillMouseMove({x:t,y:r},e){if(!this.autoFillInitial)return;let n,i=di({x:t,y:r},e);this.autoFillLast&&(n=function(t,r){const e=["x","y"];for(let n of e)if(t[n]!==r[n])return{[n]:1};return null}(this.autoFillStart,this.autoFillLast)),this.autoFillLast&&n||(n=function(t,r){const e={},n=["x","y"];for(let i of n)e[i]=Math.abs(t[i]-r[i]);return e.x>e.y?{x:1}:e.y>e.x?{y:1}:null}(this.autoFillStart,i),this.autoFillLast||(this.autoFillLast=this.autoFillStart)),n&&(Dr(n,((t,r)=>{t&&(i=Object.assign(Object.assign({},this.autoFillLast),{[r]:i[r]}))})),gi(i,e)||(this.autoFillLast=i,this.sv.setTempRange({area:Pn(this.autoFillInitial,this.autoFillLast),type:this.autoFillType})))}selectionStart(t,r,e=Hi.selection){const{top:n,left:i}=t.target.getBoundingClientRect();this.autoFillInitial=this.getFocus(),this.autoFillType=e,this.autoFillStart=di({x:i,y:n},r),t.preventDefault()}clearAutoFillSelection(){this.autoFillInitial&&(this.autoFillInitial=this.getFocus(),this.autoFillType===Hi.autoFill?this.applyRangeWithData(this.autoFillInitial,this.autoFillLast):this.applyRangeOnly(this.autoFillInitial,this.autoFillLast)),this.autoFillType=null,this.autoFillInitial=null,this.autoFillLast=null,this.autoFillStart=null}onRangeApply(t,r){const e={};for(let r in t)e[r]=ue(this.sv.dataStore,parseInt(r,10));this.sv.internalRangeDataApply({data:t,models:e,type:this.sv.dataStore.get("type")}).defaultPrevented||this.sv.columnService.applyRangeData(t),this.sv.setRange(r)}applyRangeWithData(t,r){if(!t||!r)return;const e=this.sv.selectionStoreService.ranged,n=Pn(t,r),i=[...this.sv.columnService.columns],o={type:this.sv.dataStore.get("type"),newData:{},newRange:n,oldRange:e,newProps:Zi(i,n.x,n.x1+1).map((t=>t.prop)),oldProps:Zi(i,e.x,e.x1+1).map((t=>t.prop))};o.newData=this.sv.columnService.getRangeData(o),this.sv.internalSelectionChanged(o).defaultPrevented?this.sv.setTempRange(null):this.onRangeApply(o.newData,n)}applyRangeOnly(t,r){if(!t||!r)return;const e=Pn(t,r);this.sv.setRange(e)}}class Ni{constructor(t){this.sv=t}onCopy(t){if(this.sv.internalCopy().defaultPrevented)return!1;let r,e=this.sv.selectionStoreService.focused,n=this.sv.selectionStoreService.ranged;if(n||(n=Pn(e,e)),n){const t=[...this.sv.columnService.columns],e=Zi(t,n.x,n.x1+1).map((t=>t.prop));r=this.sv.columnService.copyRangeArray(n,e,this.sv.dataStore)}return this.clipboard.doCopy(t,r),!0}renderClipboard(){return e("revogr-clipboard",{onCopyRegion:t=>this.onCopy(t.detail),ref:t=>this.clipboard=t,onPasteRegion:t=>this.onPaste(t.detail)})}onPaste(t){const r=this.sv.selectionStoreService.focused;if(!r||null!==this.sv.selectionStoreService.edited)return;const{changed:e,range:n}=this.sv.columnService.getTransformedDataToApply(r,t);this.sv.onRangeApply(e,n)}}const Wi=class{constructor(t){n(this,t),this.internalCopy=i(this,"internalCopy",7),this.internalPaste=i(this,"internalPaste",7),this.internalCellEdit=i(this,"internalCellEdit",7),this.internalFocusCell=i(this,"internalFocusCell",7),this.setEdit=i(this,"setEdit",3),this.setRange=i(this,"setRange",7),this.setTempRange=i(this,"setTempRange",7),this.focusCell=i(this,"focusCell",3),this.internalSelectionChanged=i(this,"internalSelectionChanged",7),this.internalRangeDataApply=i(this,"internalRangeDataApply",7),this.keyboardService=null,this.autoFillService=null,this.clipboardService=null}onMouseMove(t){this.selectionStoreService.focused&&this.autoFillService.selectionMouseMove(t)}onMouseOut(){this.autoFillService.clearAutoFillSelection()}onMouseUp(){this.autoFillService.clearAutoFillSelection()}onCellDrag(t){var r;null===(r=this.orderEditor)||void 0===r||r.dragStart(t.detail)}onKeyUp(t){var r;null===(r=this.keyboardService)||void 0===r||r.keyUp(t)}onKeyDown(t){var r;null===(r=this.keyboardService)||void 0===r||r.keyDown(t,this.range)}selectionServiceSet(t){this.selectionStoreService=new $i(t,{changeRange:t=>{var r;return!(null===(r=this.setRange.emit(t))||void 0===r?void 0:r.defaultPrevented)},focus:(t,r)=>{var e;const n={focus:t,end:r},{defaultPrevented:i}=this.internalFocusCell.emit(this.columnService.getSaveData(t.y,t.x));return!i&&!(null===(e=this.focusCell.emit(n))||void 0===e?void 0:e.defaultPrevented)}}),this.keyboardService=new Ui({selectionStoreService:this.selectionStoreService,selectionStore:t,doEdit:(t,r)=>this.doEdit(t,r),clearCell:()=>this.clearCell(),getData:()=>this.getData(),internalPaste:()=>this.internalPaste.emit()}),this.createAutoFillService(),this.createClipboardService()}createAutoFillService(){this.autoFillService=new Bi({selectionStoreService:this.selectionStoreService,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,columnService:this.columnService,dataStore:this.dataStore,setTempRange:t=>this.setTempRange.emit(t),internalSelectionChanged:t=>this.internalSelectionChanged.emit(t),internalRangeDataApply:t=>this.internalRangeDataApply.emit(t),setRange:t=>this.setRange.emit(t),getData:()=>this.getData()})}columnServiceSet(){var t;null===(t=this.columnService)||void 0===t||t.destroy(),this.columnService=new Kn(this.dataStore,this.colData),this.createAutoFillService(),this.createClipboardService()}createClipboardService(){this.clipboardService=new Ni({selectionStoreService:this.selectionStoreService,columnService:this.columnService,dataStore:this.dataStore,onRangeApply:(t,r)=>this.autoFillService.onRangeApply(t,r),internalCopy:()=>this.internalCopy.emit()})}connectedCallback(){this.columnServiceSet(),this.selectionServiceSet(this.selectionStore)}disconnectedCallback(){var t;null===(t=this.columnService)||void 0===t||t.destroy()}renderRange(t){const r=pi(t,this.dimensionRow.state,this.dimensionCol.state);return[e("div",{class:"selection-border-range",style:r})]}renderEditCell(){const t=this.selectionStore.get("edit");if(this.readonly||!t)return;const r=t.val||this.columnService.getCellData(t.y,t.x),n=Object.assign(Object.assign({},t),this.columnService.getSaveData(t.y,t.x,r)),i=pi(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.dimensionRow.state,this.dimensionCol.state);return e("revogr-edit",{onCellEdit:t=>this.onCellEdit(t.detail),onCloseEdit:t=>this.closeEdit(t),editCell:n,column:this.columnService.columns[t.x],editor:this.columnService.getCellEditor(t.y,t.x,this.editors),style:i})}render(){const t=this.selectionStoreService.ranged,r=this.selectionStoreService.focused,n=[];(t||r)&&this.useClipboard&&n.push(this.clipboardService.renderClipboard()),t&&n.push(...this.renderRange(t));const i=this.renderEditCell();return i&&n.push(i),r&&!this.readonly&&!i&&this.range&&n.push(this.autoFillService.renderAutofill(t,r)),this.canDrag&&n.push(e("revogr-order-editor",{ref:t=>this.orderEditor=t,dataStore:this.dataStore,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,parent:this.element,onInternalRowDragStart:t=>this.onRowDragStart(t)})),e(o,{onDblClick:()=>this.doEdit(),onMouseDown:t=>this.onElementMouseDown(t)},n,e("slot",{name:"data"}))}onElementMouseDown(t){if(null==(r=t.target)?void 0:r.closest(".edit-input-wrapper"))return;var r;const e=this.getData();if(t.defaultPrevented)return;const n=di({x:t.x,y:t.y},e);this.selectionStoreService.focus(n,this.range&&t.shiftKey),this.range&&this.autoFillService.selectionStart(t,e)}doEdit(t="",r=!1){var e;if(this.canEdit()){const n=this.selectionStore.get("focus"),i=this.columnService.getSaveData(n.y,n.x);null===(e=this.setEdit)||void 0===e||e.emit(Object.assign(Object.assign({},i),{isCancel:r,val:t}))}}closeEdit(t){this.doEdit(void 0,!0),(null==t?void 0:t.detail)&&this.focusNext()}async focusNext(){await this.keyboardService.keyChangeSelection(new KeyboardEvent("keydown",{code:ri.ARROW_DOWN}),this.range)||this.closeEdit()}clearCell(){if(!this.selectionStoreService.ranged||(t=this.selectionStoreService.ranged).x===t.x1&&t.y===t.y1){if(this.canEdit()){const t=this.selectionStoreService.focused;this.onCellEdit({rgRow:t.y,rgCol:t.x,val:""},!0)}}else{const t=this.columnService.getRangeStaticData(this.selectionStoreService.ranged,"");this.autoFillService.onRangeApply(t,this.selectionStoreService.ranged)}var t}onCellEdit(t,r=!1){const e=this.columnService.getSaveData(t.rgRow,t.rgCol,t.val);this.internalCellEdit.emit(e),r||t.preventFocus||this.focusNext()}onRowDragStart({detail:t}){t.text=this.columnService.getCellData(t.cell.y,t.cell.x)}canEdit(){var t;if(this.readonly)return!1;const r=this.selectionStoreService.focused;return r&&!(null===(t=this.columnService)||void 0===t?void 0:t.isReadOnly(r.y,r.x))}getData(){return{el:this.element,rows:this.dimensionRow.state,cols:this.dimensionCol.state,lastCell:this.lastCell}}get element(){return s(this)}static get watchers(){return{selectionStore:["selectionServiceSet"],dimensionRow:["createAutoFillService"],dimensionCol:["createAutoFillService"],dataStore:["columnServiceSet"],colData:["columnServiceSet"]}}};Wi.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-overlay-selection{display:block;position:relative;width:100%}revogr-overlay-selection .autofill-handle{position:absolute;width:10px;height:10px;background:#0d63e8;margin-left:-9px;margin-top:-9px;border:1px solid white;box-sizing:border-box;z-index:10;cursor:crosshair}revogr-overlay-selection .selection-border-range{position:absolute;pointer-events:none;z-index:9}revogr-overlay-selection .selection-border-range{box-shadow:-1px 0 0 #0d63e8 inset, 1px 0 0 #0d63e8 inset, 0 -1px 0 #0d63e8 inset, 0 1px 0 #0d63e8 inset}revogr-overlay-selection revogr-edit{z-index:10}";const Vi=t=>(r,{rowIndex:e})=>t+e,Gi=class{constructor(t){n(this,t),this.scrollViewport=i(this,"scrollViewport",3),this.elementToScroll=i(this,"elementToScroll",3)}render(){var t;const r=[],n=new Pe;let i=1;for(let t of this.dataPorts){const o=t.dataStore.get("items").length,s=new oe(t.type);s.updateData(t.dataStore.get("source"));const u=new oe("colPinStart"),a=Object.assign({cellTemplate:Vi(i)},this.rowHeaderColumn);u.updateData([a]);const c=Object.assign(Object.assign({},t),{dataStore:s.store,colData:u.store,viewportCol:n.store,readonly:!0,range:!1});r.push(e("revogr-data",Object.assign({},c))),i+=o}const s=(null===(t=this.rowHeaderColumn)||void 0===t?void 0:t.size)||10*(i.toString().length+1);n.setViewport({realCount:1,virtualSize:0,items:[{size:s,start:0,end:s,itemIndex:0}]});const u=`${this.uiid}-rowHeaders`,a={[Cn]:u,contentHeight:this.height,contentWidth:0,style:{minWidth:`${s}px`},ref:t=>this.elementToScroll.emit(t),onScrollViewport:t=>this.scrollViewport.emit(t.detail)},c=Object.assign(Object.assign({},this.headerProp),{colData:"object"==typeof this.rowHeaderColumn?[this.rowHeaderColumn]:[],viewportCol:n.store,canResize:!1,parent:u,slot:"header"});return e(o,{class:"rowHeaders",key:"rowHeaders"},e("revogr-viewport-scroll",Object.assign({},a),e("revogr-header",Object.assign({},c)),r))}},qi={contentSize:0,clientSize:0,virtualSize:0,maxSize:0};class Ki{constructor(t){this.cfg=t,this.preventArtificialScroll={rgRow:null,rgCol:null},this.previousScroll={rgRow:0,rgCol:0},this.params={rgRow:Object.assign({},qi),rgCol:Object.assign({},qi)}}static getVirtualContentSize(t,r,e=0){return t+(e?r-e:0)}setParams(t,r){const e=Ki.getVirtualContentSize(t.contentSize,t.clientSize,t.virtualSize);this.params[r]=Object.assign(Object.assign({},t),{maxSize:e-t.clientSize,virtualContentSize:e})}setScroll(t){this.cancelScroll(t.dimension),this.preventArtificialScroll[t.dimension]=window.requestAnimationFrame((()=>{const r=this.getParams(t.dimension);t.coordinate=Math.ceil(t.coordinate),this.previousScroll[t.dimension]=this.wrapCoordinate(t.coordinate,r),this.preventArtificialScroll[t.dimension]=null,this.cfg.afterScroll(Object.assign(Object.assign({},t),{coordinate:r.virtualSize?this.convert(t.coordinate,r,!1):t.coordinate}))}))}scroll(t,r,e=!1,n){if(this.cancelScroll(r),!e&&this.previousScroll[r]===t)return void(this.previousScroll[r]=0);const i=this.getParams(r);this.cfg.beforeScroll({dimension:r,coordinate:i.virtualSize?this.convert(t,i):t,delta:n})}getParams(t){return this.params[t]}wrapCoordinate(t,r){return t<0?0:t>r.maxSize?r.maxSize:t}cancelScroll(t){return"number"==typeof this.preventArtificialScroll[t]&&(window.cancelAnimationFrame(this.preventArtificialScroll[t]),this.preventArtificialScroll[t]=null,!0)}convert(t,r,e=!0){const n=[0,r.virtualContentSize-r.clientSize],i=[0,r.contentSize-r.virtualSize];return e?Ee(t,n,i):Ee(t,i,n)}}const Xi=class{constructor(t){n(this,t),this.scrollVirtual=i(this,"scrollVirtual",7),this.scrollSize=0,this.isAutoHide=!1,this.autoHideTimeout=0,this.dimension="rgRow"}async setScroll(t){var r;this.dimension===t.dimension&&(null===(r=this.scrollService)||void 0===r||r.setScroll(t))}async changeScroll(t){if(t.delta){switch(t.dimension){case"rgCol":t.coordinate=this.element.scrollLeft+t.delta;break;case"rgRow":t.coordinate=this.element.scrollTop+t.delta}this.setScroll(t)}return t}set size(t){"rgRow"!==this.dimension?this.element.style.minHeight=`${t}px`:this.element.style.minWidth=`${t}px`}get size(){return"rgRow"===this.dimension?this.element.clientHeight:this.element.clientWidth}connectedCallback(){this.scrollService=new Ki({beforeScroll:t=>this.scrollVirtual.emit(t),afterScroll:t=>{this.element["rgRow"===t.dimension?"scrollTop":"scrollLeft"]=t.coordinate}})}disconnectedCallback(){clearTimeout(this.autoHideTimeout)}componentWillLoad(){this.scrollSize=ke(document),this.isAutoHide=!this.scrollSize}componentDidRender(){this.size=this.element["rgRow"===this.dimension?"scrollHeight":"scrollWidth"]>this.size?this.scrollSize:0,this.scrollService.setParams({contentSize:this.dimensionStore.get("realSize"),clientSize:this.size,virtualSize:this.viewportStore.get("virtualSize")},this.dimension)}onScroll(t){var r;let e="scrollLeft";"rgRow"===this.dimension&&(e="scrollTop"),this.isAutoHide&&(this.size=20,this.autoHideTimeout=this.autoHide(this.autoHideTimeout)),null===(r=this.scrollService)||void 0===r||r.scroll(t.target[e]||0,this.dimension)}autoHide(t){return clearTimeout(t),setTimeout((()=>{this.size=0}),6e3)}render(){const t="rgRow"===this.dimension?"height":"width";return e(o,Object.assign({},{"auto-hide":this.isAutoHide},{onScroll:t=>this.onScroll(t)}),e("div",{style:{[t]:`${this.extContentSize(this.viewportStore.get("virtualSize"),this.dimensionStore.get("realSize"))}px`}}))}extContentSize(t,r){return Ki.getVirtualContentSize(r,this.size,t)}get element(){return s(this)}};Xi.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-scroll-virtual[auto-hide]{position:absolute;z-index:100}revogr-scroll-virtual[auto-hide].vertical{right:0;top:0}revogr-scroll-virtual[auto-hide].vertical:hover{min-width:20px}revogr-scroll-virtual[auto-hide].horizontal{bottom:0;left:0}revogr-scroll-virtual[auto-hide].horizontal:hover{min-height:20px}revogr-scroll-virtual.vertical{overflow-y:auto;overflow-x:hidden;height:100%}revogr-scroll-virtual.vertical>div{width:1px}revogr-scroll-virtual.horizontal{overflow-x:auto;overflow-y:hidden;width:100%}revogr-scroll-virtual.horizontal>div{height:1px}";const Ji=class{constructor(t){n(this,t),this.onChange=Bn.throttle((t=>this.doChange(t)),300)}doChange(t){null==t||t.scrollIntoView({block:"nearest",inline:"nearest"})}componentDidRender(){this.el&&this.onChange(this.el)}render(){const t=this.selectionStore.get("tempRange"),r=this.selectionStore.get("tempRangeType");if(!t)return;let n="bottom",i="right";const s=this.getRange();if(!s)return;t.y<s.y&&(n="top"),t.x<s.x&&(i="left");const u=`${i} ${n}`,a=pi(t,this.dimensionRow.state,this.dimensionCol.state);return e(o,{class:{"temp-bg-range":!0,[r||""]:!0},style:a},e("div",{class:u,ref:t=>this.el=t}))}getRange(){const t=this.selectionStore.get("range");if(t)return t;const r=this.selectionStore.get("focus");return r?Object.assign(Object.assign({},r),{x1:r.x,y1:r.y}):null}};Ji.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}.temp-bg-range{display:block;position:absolute;pointer-events:none;z-index:9;border:1px solid #ff5e00;box-sizing:border-box}.temp-bg-range.Selection{border:1px dashed gray}.temp-bg-range>div{width:1px;height:1px;position:absolute}.temp-bg-range>div.top{top:-1px}.temp-bg-range>div.bottom{bottom:-1px}.temp-bg-range>div.left{left:-1px}.temp-bg-range>div.right{right:-1px}";class Yi{constructor(t,r){this.events=r,this.resizeObserver=null,this.resize=function(t,r,e){var n=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Q(e)&&(n="leading"in e?!!e.leading:n,i="trailing"in e?!!e.trailing:i),Di(t,r,{leading:n,maxWait:r,trailing:i})}(((t,r)=>{var e;return null===(e=this.events)||void 0===e?void 0:e.resize(t,r)}),10),this.init(t)}async init(t){var r;await async function(){if(!("ResizeObserver"in window)){const t=await __sc_import_revo_grid("./resize-observer-56b7b34f.js");window.ResizeObserver=t.ResizeObserver}}(),this.resizeObserver=new ResizeObserver(this.resize),null===(r=this.resizeObserver)||void 0===r||r.observe(t)}destroy(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),this.resizeObserver=null}}const Qi=class{constructor(t){n(this,t),this.scrollViewport=i(this,"scrollViewport",3),this.resizeViewport=i(this,"resizeViewport",7),this.scrollchange=i(this,"scrollchange",7),this.scrollThrottling=30,this.contentWidth=0,this.contentHeight=0,this.oldValY=this.contentHeight,this.oldValX=this.contentWidth,this.mouseWheelScroll={rgCol:0,rgRow:0}}async setScroll(t){var r;this.latestScrollUpdate(t.dimension),null===(r=this.scrollService)||void 0===r||r.setScroll(t)}async changeScroll(t){if(t.delta){switch(t.dimension){case"rgCol":t.coordinate=this.horizontalScroll.scrollLeft+t.delta;break;case"rgRow":t.coordinate=this.verticalScroll.scrollTop+t.delta}this.setScroll(t)}return t}connectedCallback(){"ontouchstart"in document.documentElement?this.scrollThrottling=0:(this.verticalMouseWheel=this.onVerticalMouseWheel.bind(this,"rgRow","deltaY"),this.horizontalMouseWheel=this.onHorizontalMouseWheel.bind(this,"rgCol","deltaX")),this.scrollService=new Ki({beforeScroll:t=>this.scrollViewport.emit(t),afterScroll:t=>{switch(t.dimension){case"rgCol":this.horizontalScroll.scrollLeft=t.coordinate;break;case"rgRow":this.verticalScroll.scrollTop=t.coordinate}}})}componentDidLoad(){this.horisontalResize=new Yi(this.horizontalScroll,{resize:t=>{var r,e;let n=(null===(r=t[0])||void 0===r?void 0:r.contentRect.height)||0;n&&(n-=this.header.clientHeight+this.footer.clientHeight);const i={rgRow:{size:n,contentSize:this.contentHeight,scroll:this.verticalScroll.scrollTop},rgCol:{size:(null===(e=t[0])||void 0===e?void 0:e.contentRect.width)||0,contentSize:this.contentWidth,scroll:this.horizontalScroll.scrollLeft}};Dr(i,((t,r)=>{var e;this.resizeViewport.emit({dimension:r,size:t.size}),null===(e=this.scrollService)||void 0===e||e.scroll(t.scroll,r,!0),this.setScrollVisibility(r,t.size,t.contentSize)}))}})}setScrollVisibility(t,r,e){const n=r<e;let i,o;switch(t){case"rgCol":i=this.horizontalScroll,o=this.horizontalMouseWheel;break;case"rgRow":i=this.verticalScroll,o=this.verticalMouseWheel}n?(i.classList.add(`scroll-${t}`),i.addEventListener("mousewheel",o)):(i.classList.remove(`scroll-${t}`),i.removeEventListener("mousewheel",o)),this.scrollchange.emit({type:t,hasScroll:n})}disconnectedCallback(){this.verticalScroll.removeEventListener("mousewheel",this.verticalMouseWheel),this.horizontalScroll.removeEventListener("mousewheel",this.horizontalMouseWheel),this.horisontalResize.destroy()}async componentDidRender(){this.contentHeight<this.oldValY&&this.verticalScroll&&(this.verticalScroll.scrollTop+=this.contentHeight-this.oldValY),this.oldValY=this.contentHeight,this.contentWidth<this.oldValX&&(this.horizontalScroll.scrollLeft+=this.contentWidth-this.oldValX),this.oldValX=this.contentWidth,this.scrollService.setParams({contentSize:this.contentHeight,clientSize:this.verticalScroll.clientHeight,virtualSize:0},"rgRow"),this.scrollService.setParams({contentSize:this.contentWidth,clientSize:this.horizontalScroll.clientWidth,virtualSize:0},"rgCol"),this.setScrollVisibility("rgRow",this.verticalScroll.clientHeight,this.contentHeight),this.setScrollVisibility("rgCol",this.horizontalScroll.clientWidth,this.contentWidth)}render(){return e(o,{onScroll:t=>this.onScroll("rgCol",t)},e("div",{class:"inner-content-table",style:{width:`${this.contentWidth}px`}},e("div",{class:"header-wrapper",ref:t=>this.header=t},e("slot",{name:"header"})),e("div",{class:"vertical-inner",ref:t=>this.verticalScroll=t,onScroll:t=>this.onScroll("rgRow",t)},e("div",{class:"content-wrapper",style:{height:`${this.contentHeight}px`}},e("slot",{name:"content"}))),e("div",{class:"footer-wrapper",ref:t=>this.footer=t},e("slot",{name:"footer"}))))}onScroll(t,r){var e;const n=r.target;let i=0;switch(t){case"rgCol":i=null==n?void 0:n.scrollLeft;break;case"rgRow":i=null==n?void 0:n.scrollTop}(new Date).getTime()-this.mouseWheelScroll[t]>this.scrollThrottling&&(null===(e=this.scrollService)||void 0===e||e.scroll(i,t))}latestScrollUpdate(t){this.mouseWheelScroll[t]=(new Date).getTime()}onVerticalMouseWheel(t,r,e){var n;e.preventDefault(),null===(n=this.scrollService)||void 0===n||n.scroll(this.verticalScroll.scrollTop+e[r],t,void 0,e[r]),this.latestScrollUpdate(t)}onHorizontalMouseWheel(t,r,e){var n;e.preventDefault(),null===(n=this.scrollService)||void 0===n||n.scroll(this.horizontalScroll.scrollLeft+e[r],t,void 0,e[r]),this.latestScrollUpdate(t)}get horizontalScroll(){return s(this)}};Qi.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}.rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}.rowHeaders revogr-data .rgCell{text-align:center}.rowHeaders .rgCell{padding:0 1em !important;min-width:100%}revogr-viewport-scroll{-ms-overflow-style:none;scrollbar-width:none;overflow-x:auto;overflow-y:hidden;position:relative;z-index:1;height:100%}revogr-viewport-scroll::-webkit-scrollbar{display:none;-webkit-appearance:none}revogr-viewport-scroll.colPinStart,revogr-viewport-scroll.colPinEnd{z-index:2}revogr-viewport-scroll.rgCol{flex-grow:1}revogr-viewport-scroll .content-wrapper{overflow:hidden}revogr-viewport-scroll .inner-content-table{display:flex;flex-direction:column;max-height:100%;width:100%;min-width:100%;position:relative;z-index:0}revogr-viewport-scroll .vertical-inner{overflow-y:auto;position:relative;width:100%;flex-grow:1;-ms-overflow-style:none;scrollbar-width:none;}revogr-viewport-scroll .vertical-inner::-webkit-scrollbar{display:none;-webkit-appearance:none}revogr-viewport-scroll .vertical-inner revogr-data,revogr-viewport-scroll .vertical-inner revogr-overlay-selection{height:100%}";export{qn as revo_grid,Qn as revogr_data,fi as revogr_edit,Ci as revogr_focus,Fi as revogr_header,Pi as revogr_order_editor,Wi as revogr_overlay_selection,Gi as revogr_row_headers,Xi as revogr_scroll_virtual,Ji as revogr_temp_range,Qi as revogr_viewport_scroll}
|
|
1
|
+
import{g as t,f as r,h as e,r as n,c as i,H as o,e as s}from"./index-a7f99799.js";import{i as a,F as u,a as c}from"./filter.button-1509c206.js";class l{constructor(){this.defaultRowSize=32}}class h{constructor(){this.defaultRowSize=27}}class f{constructor(){this.defaultRowSize=42}}const d=["default","material","compact","darkMaterial","darkCompact"];class v{constructor(t){this.customRowSize=0,this.customRowSize=t.rowSize,this.register("default")}get theme(){return this.currentTheme}get rowSize(){return this.customRowSize||this.currentTheme.defaultRowSize}set rowSize(t){this.customRowSize=t}register(t){switch(v.getTheme(t)){case"material":case"darkMaterial":this.currentTheme=new f;break;case"compact":case"darkCompact":this.currentTheme=new l;break;default:this.currentTheme=new h}}static getTheme(t){return d.indexOf(t)>-1?t:"default"}}var g=function(t,r,e,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(e=t[++i]);++i<o;)e=r(e,t[i],i,t);return e},p=function(t,r,e){for(var n=-1,i=Object(t),o=e(t),s=o.length;s--;){var a=o[++n];if(!1===r(i[a],a,i))break}return t},C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function w(t,r,e){return t(e={path:r,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},e.exports),e.exports}var L="object"==typeof C&&C&&C.Object===Object&&C,m="object"==typeof self&&self&&self.Object===Object&&self,b=L||m||Function("return this")(),x=b.Symbol,y=Object.prototype,E=y.hasOwnProperty,k=y.toString,S=x?x.toStringTag:void 0,j=Object.prototype.toString,R=x?x.toStringTag:void 0,z=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":R&&R in Object(t)?function(t){var r=E.call(t,S),e=t[S];try{t[S]=void 0;var n=!0}catch(t){}var i=k.call(t);return n&&(r?t[S]=e:delete t[S]),i}(t):function(t){return j.call(t)}(t)},O=function(t){return null!=t&&"object"==typeof t},M=function(t){return O(t)&&"[object Arguments]"==z(t)},F=Object.prototype,_=F.hasOwnProperty,A=F.propertyIsEnumerable,T=M(function(){return arguments}())?M:function(t){return O(t)&&_.call(t,"callee")&&!A.call(t,"callee")},D=Array.isArray,I=function(){return!1},P=w((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,i=n&&n.exports===e?b.Buffer:void 0;t.exports=(i?i.isBuffer:void 0)||I})),$=/^(?:0|[1-9]\d*)$/,U=function(t,r){var e=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==e||"symbol"!=e&&$.test(t))&&t>-1&&t%1==0&&t<r},H=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Z={};Z["[object Float32Array]"]=Z["[object Float64Array]"]=Z["[object Int8Array]"]=Z["[object Int16Array]"]=Z["[object Int32Array]"]=Z["[object Uint8Array]"]=Z["[object Uint8ClampedArray]"]=Z["[object Uint16Array]"]=Z["[object Uint32Array]"]=!0,Z["[object Arguments]"]=Z["[object Array]"]=Z["[object ArrayBuffer]"]=Z["[object Boolean]"]=Z["[object DataView]"]=Z["[object Date]"]=Z["[object Error]"]=Z["[object Function]"]=Z["[object Map]"]=Z["[object Number]"]=Z["[object Object]"]=Z["[object RegExp]"]=Z["[object Set]"]=Z["[object String]"]=Z["[object WeakMap]"]=!1;var B,N=w((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,i=n&&n.exports===e&&L.process,o=function(){try{return n&&n.require&&n.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=o})),W=N&&N.isTypedArray,V=W?(B=W,function(t){return B(t)}):function(t){return O(t)&&H(t.length)&&!!Z[z(t)]},G=Object.prototype.hasOwnProperty,q=function(t,r){var e=D(t),n=!e&&T(t),i=!e&&!n&&P(t),o=!e&&!n&&!i&&V(t),s=e||n||i||o,a=s?function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}(t.length,String):[],u=a.length;for(var c in t)!r&&!G.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||U(c,u))||a.push(c);return a},K=Object.prototype,X=function(t,r){return function(e){return t(r(e))}}(Object.keys,Object),J=Object.prototype.hasOwnProperty,Y=function(t){if((r=t)!==("function"==typeof(e=r&&r.constructor)&&e.prototype||K))return X(t);var r,e,n=[];for(var i in Object(t))J.call(t,i)&&"constructor"!=i&&n.push(i);return n},Q=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)},tt=function(t){if(!Q(t))return!1;var r=z(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},rt=function(t){return null!=t&&H(t.length)&&!tt(t)},et=function(t){return rt(t)?q(t):Y(t)},nt=function(t,r){if(null==t)return t;if(!rt(t))return function(t,r){return t&&p(t,r,et)}(t,r);for(var e=t.length,n=-1,i=Object(t);++n<e&&!1!==r(i[n],n,i););return t},it=function(t,r){return t===r||t!=t&&r!=r},ot=function(t,r){for(var e=t.length;e--;)if(it(t[e][0],r))return e;return-1},st=Array.prototype.splice;function at(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}at.prototype.clear=function(){this.__data__=[],this.size=0},at.prototype.delete=function(t){var r=this.__data__,e=ot(r,t);return!(e<0||(e==r.length-1?r.pop():st.call(r,e,1),--this.size,0))},at.prototype.get=function(t){var r=this.__data__,e=ot(r,t);return e<0?void 0:r[e][1]},at.prototype.has=function(t){return ot(this.__data__,t)>-1},at.prototype.set=function(t,r){var e=this.__data__,n=ot(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};var ut,ct=at,lt=b["__core-js_shared__"],ht=(ut=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||""))?"Symbol(src)_1."+ut:"",ft=Function.prototype.toString,dt=function(t){if(null!=t){try{return ft.call(t)}catch(t){}try{return t+""}catch(t){}}return""},vt=/^\[object .+?Constructor\]$/,gt=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pt=function(t){return!(!Q(t)||function(t){return!!ht&&ht in t}(t))&&(tt(t)?gt:vt).test(dt(t))},Ct=function(t,r){var e=function(t,r){return null==t?void 0:t[r]}(t,r);return pt(e)?e:void 0},wt=Ct(b,"Map"),Lt=Ct(Object,"create"),mt=Object.prototype.hasOwnProperty,bt=Object.prototype.hasOwnProperty;function xt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}xt.prototype.clear=function(){this.__data__=Lt?Lt(null):{},this.size=0},xt.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},xt.prototype.get=function(t){var r=this.__data__;if(Lt){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return mt.call(r,t)?r[t]:void 0},xt.prototype.has=function(t){var r=this.__data__;return Lt?void 0!==r[t]:bt.call(r,t)},xt.prototype.set=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=Lt&&void 0===r?"__lodash_hash_undefined__":r,this};var yt=xt,Et=function(t,r){var e,n,i=t.__data__;return("string"==(n=typeof(e=r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?i["string"==typeof r?"string":"hash"]:i.map};function kt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}kt.prototype.clear=function(){this.size=0,this.__data__={hash:new yt,map:new(wt||ct),string:new yt}},kt.prototype.delete=function(t){var r=Et(this,t).delete(t);return this.size-=r?1:0,r},kt.prototype.get=function(t){return Et(this,t).get(t)},kt.prototype.has=function(t){return Et(this,t).has(t)},kt.prototype.set=function(t,r){var e=Et(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this};var St=kt;function jt(t){var r=this.__data__=new ct(t);this.size=r.size}jt.prototype.clear=function(){this.__data__=new ct,this.size=0},jt.prototype.delete=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e},jt.prototype.get=function(t){return this.__data__.get(t)},jt.prototype.has=function(t){return this.__data__.has(t)},jt.prototype.set=function(t,r){var e=this.__data__;if(e instanceof ct){var n=e.__data__;if(!wt||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new St(n)}return e.set(t,r),this.size=e.size,this};var Rt=jt;function zt(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new St;++r<e;)this.add(t[r])}zt.prototype.add=zt.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},zt.prototype.has=function(t){return this.__data__.has(t)};var Ot=zt,Mt=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1},Ft=function(t,r,e,n,i,o){var s=1&e,a=t.length,u=r.length;if(a!=u&&!(s&&u>a))return!1;var c=o.get(t),l=o.get(r);if(c&&l)return c==r&&l==t;var h=-1,f=!0,d=2&e?new Ot:void 0;for(o.set(t,r),o.set(r,t);++h<a;){var v=t[h],g=r[h];if(n)var p=s?n(g,v,h,r,t,o):n(v,g,h,t,r,o);if(void 0!==p){if(p)continue;f=!1;break}if(d){if(!Mt(r,(function(t,r){if(!d.has(r)&&(v===t||i(v,t,e,n,o)))return d.push(r)}))){f=!1;break}}else if(v!==g&&!i(v,g,e,n,o)){f=!1;break}}return o.delete(t),o.delete(r),f},_t=b.Uint8Array,At=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e},Tt=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e},Dt=x?x.prototype:void 0,It=Dt?Dt.valueOf:void 0,Pt=Object.prototype.propertyIsEnumerable,$t=Object.getOwnPropertySymbols,Ut=$t?function(t){return null==t?[]:(t=Object(t),function(t,r){for(var e=-1,n=null==t?0:t.length,i=0,o=[];++e<n;){var s=t[e];r(s,e,t)&&(o[i++]=s)}return o}($t(t),(function(r){return Pt.call(t,r)})))}:function(){return[]},Ht=function(t){return function(t,r,e){var n=r(t);return D(t)?n:function(t,r){for(var e=-1,n=r.length,i=t.length;++e<n;)t[i+e]=r[e];return t}(n,e(t))}(t,et,Ut)},Zt=Object.prototype.hasOwnProperty,Bt=Ct(b,"DataView"),Nt=Ct(b,"Promise"),Wt=Ct(b,"Set"),Vt=Ct(b,"WeakMap"),Gt=dt(Bt),qt=dt(wt),Kt=dt(Nt),Xt=dt(Wt),Jt=dt(Vt),Yt=z;(Bt&&"[object DataView]"!=Yt(new Bt(new ArrayBuffer(1)))||wt&&"[object Map]"!=Yt(new wt)||Nt&&"[object Promise]"!=Yt(Nt.resolve())||Wt&&"[object Set]"!=Yt(new Wt)||Vt&&"[object WeakMap]"!=Yt(new Vt))&&(Yt=function(t){var r=z(t),e="[object Object]"==r?t.constructor:void 0,n=e?dt(e):"";if(n)switch(n){case Gt:return"[object DataView]";case qt:return"[object Map]";case Kt:return"[object Promise]";case Xt:return"[object Set]";case Jt:return"[object WeakMap]"}return r});var Qt=Yt,tr="[object Object]",rr=Object.prototype.hasOwnProperty,er=function(t,r,e,n,i,o){var s=D(t),a=D(r),u=s?"[object Array]":Qt(t),c=a?"[object Array]":Qt(r),l=(u="[object Arguments]"==u?tr:u)==tr,h=(c="[object Arguments]"==c?tr:c)==tr,f=u==c;if(f&&P(t)){if(!P(r))return!1;s=!0,l=!1}if(f&&!l)return o||(o=new Rt),s||V(t)?Ft(t,r,e,n,i,o):function(t,r,e,n,i,o,s){switch(e){case"[object DataView]":if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=r.byteLength||!o(new _t(t),new _t(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return it(+t,+r);case"[object Error]":return t.name==r.name&&t.message==r.message;case"[object RegExp]":case"[object String]":return t==r+"";case"[object Map]":var a=At;case"[object Set]":if(a||(a=Tt),t.size!=r.size&&!(1&n))return!1;var u=s.get(t);if(u)return u==r;n|=2,s.set(t,r);var c=Ft(a(t),a(r),n,i,o,s);return s.delete(t),c;case"[object Symbol]":if(It)return It.call(t)==It.call(r)}return!1}(t,r,u,e,n,i,o);if(!(1&e)){var d=l&&rr.call(t,"__wrapped__"),v=h&&rr.call(r,"__wrapped__");if(d||v){var g=d?t.value():t,p=v?r.value():r;return o||(o=new Rt),i(g,p,e,n,o)}}return!!f&&(o||(o=new Rt),function(t,r,e,n,i,o){var s=1&e,a=Ht(t),u=a.length;if(u!=Ht(r).length&&!s)return!1;for(var c=u;c--;){var l=a[c];if(!(s?l in r:Zt.call(r,l)))return!1}var h=o.get(t),f=o.get(r);if(h&&f)return h==r&&f==t;var d=!0;o.set(t,r),o.set(r,t);for(var v=s;++c<u;){var g=t[l=a[c]],p=r[l];if(n)var C=s?n(p,g,l,r,t,o):n(g,p,l,t,r,o);if(!(void 0===C?g===p||i(g,p,e,n,o):C)){d=!1;break}v||(v="constructor"==l)}if(d&&!v){var w=t.constructor,L=r.constructor;w==L||!("constructor"in t)||!("constructor"in r)||"function"==typeof w&&w instanceof w&&"function"==typeof L&&L instanceof L||(d=!1)}return o.delete(t),o.delete(r),d}(t,r,e,n,i,o))},nr=function t(r,e,n,i,o){return r===e||(null==r||null==e||!O(r)&&!O(e)?r!=r&&e!=e:er(r,e,n,i,t,o))},ir=function(t){return t==t&&!Q(t)},or=function(t,r){return function(e){return null!=e&&e[t]===r&&(void 0!==r||t in Object(e))}},sr=function(t){var r=function(t){for(var r=et(t),e=r.length;e--;){var n=r[e],i=t[n];r[e]=[n,i,ir(i)]}return r}(t);return 1==r.length&&r[0][2]?or(r[0][0],r[0][1]):function(e){return e===t||function(t,r,e,n){var i=e.length,o=i,s=!n;if(null==t)return!o;for(t=Object(t);i--;){var a=e[i];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){var u=(a=e[i])[0],c=t[u],l=a[1];if(s&&a[2]){if(void 0===c&&!(u in t))return!1}else{var h=new Rt;if(n)var f=n(c,l,u,t,r,h);if(!(void 0===f?nr(l,c,3,n,h):f))return!1}}return!0}(e,t,r)}},ar=function(t){return"symbol"==typeof t||O(t)&&"[object Symbol]"==z(t)},ur=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cr=/^\w*$/,lr=function(t,r){if(D(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!ar(t))||cr.test(t)||!ur.test(t)||null!=r&&t in Object(r)};function hr(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var e=function(){var n=arguments,i=r?r.apply(this,n):n[0],o=e.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return e.cache=o.set(i,s)||o,s};return e.cache=new(hr.Cache||St),e}hr.Cache=St;var fr,dr,vr,gr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pr=/\\(\\)?/g,Cr=(fr=hr((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(gr,(function(t,e,n,i){r.push(n?i.replace(pr,"$1"):e||t)})),r}),(function(t){return 500===dr.size&&dr.clear(),t})),dr=fr.cache,fr),wr=function(t,r){for(var e=-1,n=null==t?0:t.length,i=Array(n);++e<n;)i[e]=r(t[e],e,t);return i},Lr=x?x.prototype:void 0,mr=Lr?Lr.toString:void 0,br=function t(r){if("string"==typeof r)return r;if(D(r))return wr(r,t)+"";if(ar(r))return mr?mr.call(r):"";var e=r+"";return"0"==e&&1/r==-1/0?"-0":e},xr=function(t){return null==t?"":br(t)},yr=function(t,r){return D(t)?t:lr(t,r)?[t]:Cr(xr(t))},Er=function(t){if("string"==typeof t||ar(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},kr=function(t,r){for(var e=0,n=(r=yr(r,t)).length;null!=t&&e<n;)t=t[Er(r[e++])];return e&&e==n?t:void 0},Sr=function(t,r){return null!=t&&r in Object(t)},jr=function(t,r){return null!=t&&function(t,r,e){for(var n=-1,i=(r=yr(r,t)).length,o=!1;++n<i;){var s=Er(r[n]);if(!(o=null!=t&&e(t,s)))break;t=t[s]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&H(i)&&U(s,i)&&(D(t)||T(t))}(t,r,Sr)},Rr=function(t,r){return lr(t)&&ir(r)?or(Er(t),r):function(e){var n=function(t,r,e){var n=null==t?void 0:kr(t,r);return void 0===n?e:n}(e,t);return void 0===n&&n===r?jr(e,t):nr(r,n,3)}},zr=function(t){return t},Or=function(t){return function(r){return null==r?void 0:r[t]}},Mr=function(t){return lr(t)?Or(Er(t)):function(t){return function(r){return kr(r,t)}}(t)},Fr=function(t){return"function"==typeof t?t:null==t?zr:"object"==typeof t?D(t)?Rr(t[0],t[1]):sr(t):Mr(t)},_r=function(t,r,e,n,i){return i(t,(function(t,i,o){e=n?(n=!1,t):r(e,t,i,o)})),e},Ar=function(t,r,e){var n=D(t)?g:_r,i=arguments.length<3;return n(t,Fr(r),e,i,nt)},Tr=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t},Dr=function(t,r){return(D(t)?Tr:nt)(t,"function"==typeof(e=r)?e:zr);var e},Ir=function(t,r,e,n){for(var i=t.length,o=e+(n?1:-1);n?o--:++o<i;)if(r(t[o],o,t))return o;return-1},Pr=/\s/,$r=/^\s+/,Ur=function(t){return t?t.slice(0,function(t){for(var r=t.length;r--&&Pr.test(t.charAt(r)););return r}(t)+1).replace($r,""):t},Hr=/^[-+]0x[0-9a-f]+$/i,Zr=/^0b[01]+$/i,Br=/^0o[0-7]+$/i,Nr=parseInt,Wr=function(t){if("number"==typeof t)return t;if(ar(t))return NaN;if(Q(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=Q(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=Ur(t);var e=Zr.test(t);return e||Br.test(t)?Nr(t.slice(2),e?2:8):Hr.test(t)?NaN:+t},Vr=function(t){return t?1/0===(t=Wr(t))||-1/0===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},Gr=function(t){var r=Vr(t),e=r%1;return r==r?e?r-e:r:0},qr=Math.max,Kr=function(t,r,e){var n=null==t?0:t.length;if(!n)return-1;var i=null==e?0:Gr(e);return i<0&&(i=qr(n+i,0)),Ir(t,Fr(r),i)},Xr=(vr=Kr,function(t,r,e){var n=Object(t);if(!rt(t)){var i=Fr(r);t=et(t),r=function(t){return i(n[t],t,n)}}var o=vr(t,r,e);return o>-1?n[i?t[o]:o]:void 0});const Jr=t=>!("isConnected"in t)||t.isConnected,Yr=(()=>{let t;return(...r)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let r of t.keys())t.set(r,t.get(r).filter(Jr))})(...r)}),2e3)}})(),Qr=(e,n)=>{const i=((t,r=((t,r)=>t!==r))=>{let e=new Map(Object.entries(null!=t?t:{}));const n={dispose:[],get:[],set:[],reset:[]},i=()=>{e=new Map(Object.entries(null!=t?t:{})),n.reset.forEach((t=>t()))},o=t=>(n.get.forEach((r=>r(t))),e.get(t)),s=(t,i)=>{const o=e.get(t);r(i,o,t)&&(e.set(t,i),n.set.forEach((r=>r(t,i,o))))},a="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,r)=>o(r),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,r)=>e.has(r),set:(t,r,e)=>(s(r,e),!0)}),u=(t,r)=>(n[t].push(r),()=>{((t,r)=>{const e=t.indexOf(r);e>=0&&(t[e]=t[t.length-1],t.length--)})(n[t],r)});return{state:a,get:o,set:s,on:u,onChange:(r,e)=>{const n=u("set",((t,n)=>{t===r&&e(n)})),i=u("reset",(()=>e(t[r])));return()=>{n(),i()}},use:(...t)=>t.forEach((t=>{t.set&&u("set",t.set),t.get&&u("get",t.get),t.reset&&u("reset",t.reset)})),dispose:()=>{n.dispose.forEach((t=>t())),i()},reset:i}})(e,n);return(({on:e})=>{const n=new Map;"function"==typeof t&&(e("dispose",(()=>{n.clear()})),e("get",(r=>{const e=t();e&&((t,r,e)=>{const n=t.get(r);n?n.includes(e)||n.push(e):t.set(r,[e])})(n,r,e)})),e("set",(t=>{const e=n.get(t);e&&n.set(t,e.filter(r)),Yr(n)})),e("reset",(()=>{n.forEach((t=>t.forEach(r))),Yr(n)})))})(i),i};var te=Math.ceil,re=Math.max,ee=function(t,r,e){if(!Q(e))return!1;var n=typeof r;return!!("number"==n?rt(e)&&U(r,e.length):"string"==n&&r in e)&&it(e[r],t)},ne=function(t,r,e){return e&&"number"!=typeof e&&ee(t,r,e)&&(r=e=void 0),t=Vr(t),void 0===r?(r=t,t=0):r=Vr(r),function(t,r,e,n){for(var i=-1,o=re(te((r-t)/(e||1)),0),s=Array(o);o--;)s[n?o:++i]=t,t+=e;return s}(t,r,e=void 0===e?t<r?1:-1:Vr(e),void 0)};function ie(t,r){for(let e in r)t.set(e,r[e])}class oe{constructor(t){const r=this.dataStore=Qr({items:[],proxyItems:[],source:[],groupingDepth:0,groups:{},type:t,trimmed:{}});r.use((t=>({set(r,e){if(!function(t){return"proxyItems"===t}(r))return;const n=t.get("items").reduce(((t,r)=>(t[r]=!0,t)),{}),i=e.reduce(((t,r)=>(n[r]&&t.push(r),t)),[]);t.set("items",i)}}))(r)),r.use((t=>({set(r,e){switch(r){case"trimmed":const r=t.get("proxyItems"),n=function(t){const r={};for(let e in t)for(let n in t[e])r[n]=r[n]||t[e][n];return r}(e),i=r.reduce(((t,r)=>(n[r]||t.push(r),t)),[]);t.set("items",i)}}}))(r))}get store(){return this.dataStore}updateData(t,r,e=!1){e||this.store.set("trimmed",{}),this.store.set("items",[]);const n=ne(0,(null==t?void 0:t.length)||0);ie(this.store,{source:t,proxyItems:[...n]}),this.store.set("items",n),r&&ie(this.store,{groupingDepth:r.depth,groups:r.groups})}addTrimmed(t){let r=this.store.get("trimmed");r=Object.assign(Object.assign({},r),t),ie(this.store,{trimmed:r})}setData(t){const r=Object.assign({},t);ie(this.store,r)}refresh(){const t=this.store.get("source");this.store.set("source",[...t])}}function se(t){const r=t.get("source");return t.get("items").map((t=>r[t]))}function ae(t,r){const e=t.get("items");return t.get("source")[e[r]]}function ue(t,r){const e=t.get("items"),n=t.get("source");for(let t in r)n[e[t]]=r[t];t.set("source",[...n])}function ce(t,r){t.set("items",r)}const le=["rowPinStart","rgRow","rowPinEnd"],he=["colPinStart","rgCol","colPinEnd"];var fe=function(t,r){var e=-1,n=rt(t)?Array(t.length):[];return nt(t,(function(t,i,o){n[++e]=r(t,i,o)})),n},de=function(t,r){return(D(t)?wr:fe)(t,Fr(r))};class ve{constructor(t){this.revogrid=t,this.subscriptions={}}addEventListener(t,r){this.revogrid.addEventListener(t,r),this.subscriptions[t]=r}removeEventListener(t){this.revogrid.removeEventListener(t,this.subscriptions[t]),delete this.subscriptions[t]}emit(t,r){const e=new CustomEvent(t,{detail:r,cancelable:!0});return this.revogrid.dispatchEvent(e),e}clearSubscriptions(){for(let t in this.subscriptions)this.removeEventListener(t)}destroy(){this.clearSubscriptions()}}class ge extends ve{static gatherGroup(t,r,e,n=0){const i=Object.assign(Object.assign({},r),{level:n,ids:[]});for(let r in e.columns){const n=r,o=t.columns[n],s=e.columns[n];D(o)&&D(s)&&(o.push(...s),s.length&&t.columnGrouping[n].push(Object.assign(Object.assign({},i),{ids:de(s,"prop")})))}for(let r in e.columnGrouping)t.columnGrouping[r].push(...e.columnGrouping[r]);return t.maxLevel=Math.max(t.maxLevel,e.maxLevel),t}static isColGrouping(t){return!!t.children}}class pe{constructor(){this.sorting=null,this.dataSources=Ar(he,((t,r)=>(t[r]=new oe(r),t)),{})}get order(){return Ar(this.sorting,((t,r,e)=>(t[e]=r.order,t)),{})}get stores(){return this.dataSources}column(t,r){return this.getColumn(t,r||"rgCol")}getColumn(t,r){return ae(this.dataSources[r].store,t)}getRawColumns(){return Ar(this.dataSources,((t,r,e)=>(t[e]=r.store.get("source"),t)),{rgCol:[],colPinStart:[],colPinEnd:[]})}getColumns(t="all"){return"all"!==t?this.dataSources[t].store.get("source"):he.reduce(((t,r)=>(t.push(...this.dataSources[r].store.get("source")),t)),[])}getColumnIndexByProp(t,r){return function(t,r){const e=t.get("items"),n=t.get("source"),i=Kr(n,{prop:r});return e.indexOf(i)}(this.dataSources[r].store,t)}getColumnByProp(t,r){const e=this.dataSources[r].store.get("source");return Xr(e,{prop:t})}refreshByType(t){this.dataSources[t].refresh()}setColumns(t){return Dr(he,(r=>{this.dataSources[r].updateData(t.columns[r],{depth:t.maxLevel,groups:Ar(t.columnGrouping[r],((t,r)=>(t[r.level]||(t[r.level]=[]),t[r.level].push(r),t)),{})})})),this.sorting=t.sort,t}updateColumns(t){const r=t.reduce(((t,r)=>{const e=pe.getColumnType(r);return t[e]||(t[e]={}),t[e][r.prop]=r,t}),{}),e={};Dr(r,((t,r)=>{const n=this.dataSources[r].store.get("source");e[r]=n.reduce(((r,e,n)=>{const i=t[e.prop];return i&&(r[n]=i),r}),{})})),Dr(e,((t,r)=>ue(this.dataSources[r].store,t)))}updateColumn(t,r){const e=pe.getColumnType(t);ue(this.dataSources[e].store,{[r]:t})}updateColumnSorting(t,r,e,n){return n||this.clearSorting(),t.order=e,this.sorting[t.prop]=t,this.updateColumn(t,r),t}clearSorting(){const t=Ar(this.sorting,((t,r)=>(t[pe.getColumnType(r)]=!0,t)),{});Dr(t,((t,r)=>{const e=this.dataSources[r].store.get("source");Dr(e,(t=>t.order=void 0)),this.dataSources[r].setData({source:[...e]})})),this.sorting={}}static getSizes(t){return Ar(t,((t,r,e)=>(r.size&&(t[e]=r.size),t)),{})}static getColumnByProp(t,r){return Xr(t,(t=>ge.isColGrouping(t)?pe.getColumnByProp(t.children,r):t.prop===r))}static getColumns(t,r=0,e){return Ar(t,((t,n)=>{if(ge.isColGrouping(n))return ge.gatherGroup(t,n,pe.getColumns(n.children,r+1,e),r);const i=Object.assign(Object.assign({},n.columnType&&e&&e[n.columnType]),n);return i.pin?t.columns[i.pin].push(i):t.columns.rgCol.push(i),i.order&&(t.sort[i.prop]=i),i.beforeSetup&&i.beforeSetup(i),t}),{columns:{rgCol:[],colPinStart:[],colPinEnd:[]},columnGrouping:{rgCol:[],colPinStart:[],colPinEnd:[]},maxLevel:r,sort:{}})}static getColumnType(t){return t.pin?t.pin:"rgCol"}}class Ce{constructor(t){this.dimensionProvider=t,this.stores=Ar(le,((t,r)=>(t[r]=new oe(r),t)),{})}setData(t,r="rgRow",e,n=!1){return this.stores[r].updateData([...t],e,n),this.dimensionProvider.setData(t,r,"rgRow"!==r),t}getModel(t,r="rgRow"){return ae(this.stores[r].store,t)}setCellData({type:t,rowIndex:r,prop:e,val:n}){const i=this.getModel(r,t);i[e]=n,ue(this.stores[t].store,{[r]:i})}refresh(t="all"){(function(t){return le.indexOf(t)>-1})(t)&&this.refreshItems(t),le.forEach((t=>this.refreshItems(t)))}refreshItems(t="rgRow"){const r=this.stores[t].store.get("items");this.stores[t].setData({items:[...r]})}setGrouping({depth:t},r="rgRow"){this.stores[r].setData({groupingDepth:t})}setTrimmed(t,r="rgRow"){const e=this.stores[r];e.addTrimmed(t),"rgRow"===r&&this.dimensionProvider.setData(se(e.store),r)}}var we,Le=Math.floor,me=Math.min,be=function(t,r,e){var n=0,i=null==t?n:t.length;if("number"==typeof r&&r==r&&i<=2147483647){for(;n<i;){var o=n+i>>>1,s=t[o];null!==s&&!ar(s)&&(e?s<=r:s<r)?n=o+1:i=o}return i}return function(t,r,e,n){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(r=e(r))!=r,a=null===r,u=ar(r),c=void 0===r;i<o;){var l=Le((i+o)/2),h=e(t[l]),f=void 0!==h,d=null===h,v=h==h,g=ar(h);if(s)var p=n||v;else p=c?v&&(n||f):a?v&&f&&(n||!d):u?v&&f&&!d&&(n||!g):!d&&!g&&(n?h<=r:h<r);p?i=l+1:o=l}return me(o,4294967294)}(t,r,zr,e)},xe=function(t,r){return be(t,r)};function ye(t,r){return t<r}function Ee(t){const r=t.createElement("div"),e=r.style;e.visibility="hidden",e.overflow="scroll",e.msOverflowStyle="scrollbar",t.body.appendChild(r);const n=t.createElement("div");r.appendChild(n);const i=r.offsetWidth-n.offsetWidth;return r.parentNode.removeChild(r),i}function ke(t,r,e){return(e[1]-e[0])*(t-r[0])/(r[1]-r[0])+e[0]}async function Se(t=0){await new Promise((r=>{setTimeout((()=>r()),t)}))}function je({indexes:t,positionIndexes:r,originItemSize:e,positionIndexToItem:n},i){const o={itemIndex:0,start:0,end:0},s=t.length?xe(r,i):0;if(!s)return o.itemIndex=Math.floor(i/e),o.start=o.itemIndex*e,o.end=o.start+e,o;const a=n[s-1];if(a.end>i)return a;const u=Math.floor((i-a.end)/e);return o.itemIndex=a.itemIndex+1+u,o.start=a.end+u*e,o.end=o.start+e,o}function Re(t,r){let e={itemIndex:r,start:0,end:0};if(t.indexToItem[r])return t.indexToItem[r];const n=t.indexes.length?xe(t.indexes,r):0;if(!n)return e.start=e.itemIndex*t.originItemSize,e.end=e.start+t.originItemSize,e;const i=t.indexToItem[t.indexes[n-1]];return e.start=i.end+(r-i.itemIndex-1)*t.originItemSize,e.end=e.start+t.originItemSize,e}function ze(){return Object.assign(Object.assign({},{indexes:[],sizes:{},positionIndexToItem:{},indexToItem:{},positionIndexes:[]}),{realSize:0,originItemSize:0,frameOffset:0})}class Oe{constructor(){this.store=Qr(ze())}getCurrentState(){const t=ze(),r=Object.keys(t);return Ar(r,((t,r)=>{const e=this.store.get(r);return t[r]=e,t}),t)}setRealSize(t){let r=0;for(let e=0;e<t;e++)r+=this.store.get("sizes")[e]||this.store.get("originItemSize");ie(this.store,{realSize:r})}setStore(t){ie(this.store,t)}drop(){ie(this.store,{indexes:[],sizes:{},positionIndexToItem:{},indexToItem:{},positionIndexes:[]})}setDimensionSize(t){const r=function(t,r){let e=[];const n={},i={};let o=0;const s=Object.assign(Object.assign({},t.sizes),r);let a=[];Dr(r,((r,e)=>{t.sizes[e]?o+=r-t.sizes[e]:(o+=r-(t.realSize?t.originItemSize:0),a.splice(xe(a,parseInt(e,10)),0,parseInt(e,10)))}));const u=function(t,r,e=ye){const n=[];let i=0,o=0,s=0;for(;s<t.length+r.length;){let a=o>=r.length;i>=t.length||!a&&!e(t[i],r[o])?(n[s]=r[o],o++):(n[s]=t[i],i++),s++}return n}(t.indexes,a);return Ar(u,((r,o,a)=>{const u={itemIndex:o,start:0,end:0};return u.start=r?(o-r.itemIndex-1)*t.originItemSize+r.end:o*t.originItemSize,u.end=u.start+s[o],e.push(u.start),i[o]=n[a]=u,u}),void 0),{indexes:u,positionIndexes:[...e],positionIndexToItem:Object.assign({},n),indexToItem:i,realSize:t.realSize+o,sizes:s}}(this.getCurrentState(),t);return ie(this.store,r),r}}class Me{constructor(t){this.viewports=t,this.stores=Ar([...le,...he],((t,r)=>(t[r]=new Oe,t)),{})}setDimensionSize(t,r){this.stores[t].setDimensionSize(r),this.viewports.stores[t].setViewPortDimension(r)}setRealSize(t,r){this.viewports.stores[r].setViewport({realCount:t}),this.stores[r].setRealSize(t)}setData(t,r,e=!1){this.setRealSize(t.length,r),e&&this.setNoVirtual(r),this.setViewPortCoordinate({coordinate:this.viewports.stores[r].store.get("lastCoordinate"),type:r})}setNoVirtual(t){const r=this.stores[t].getCurrentState();this.viewports.stores[t].setViewport({virtualSize:r.realSize})}drop(){for(let t of he)this.stores[t].drop()}setColumns(t,r,e=!1){this.stores[t].setDimensionSize(r),e&&this.setNoVirtual(t),this.setViewPortCoordinate({coordinate:this.viewports.stores[t].store.get("lastCoordinate"),type:t})}setViewPortCoordinate({coordinate:t,type:r}){const e=this.stores[r].getCurrentState();this.viewports.stores[r].setViewPortCoordinate(t,e)}getViewPortPos(t){return Re(this.stores[t.dimension].getCurrentState(),t.coordinate).start}setSettings(t,r){let e=[];switch(r){case"rgCol":e=he;break;case"rgRow":e=le}for(let r of e)this.stores[r].setStore(t)}}function Fe(t,r,e){t.splice(e.end+1,0,...r),e.start>=e.end&&(e.start!==e.end||0!==e.start)&&(e.start+=r.length),e.end+=r.length}function _e(t,r,e,n,i){const o=Ie(n);return Ae({sizes:i.sizes,start:o.end,startIndex:o.itemIndex+1,origSize:i.originItemSize,maxSize:e-(o.end-t.start),maxCount:r})}function Ae(t,r=0){const e=[];let n=t.startIndex,i=r;for(;i<=t.maxSize&&n<t.maxCount;){const r=Te(n,t.sizes,t.origSize);e.push({start:t.start+i,end:t.start+i+r,itemIndex:n,size:r}),i+=r,n++}return e}function Te(t,r,e=0){return r&&r[t]?r[t]:e}function De(t){return t.items[t.start]}function Ie(t){return t.items[t.end]}class Pe{constructor(){this.store=Qr({items:[],start:0,end:0,virtualSize:0,realCount:0,lastCoordinate:0}),this.store.onChange("realCount",(()=>this.clear()))}setViewPortCoordinate(t,r){let e=this.store.get("virtualSize");if(!e)return;const n=r.frameOffset;e+=2*n*r.originItemSize;let i=e;r.realSize>e&&(i=r.realSize-e);let o={lastCoordinate:t},s=t;s-=n*r.originItemSize,s=s<0?0:s<i?s:i;const a=De(this.getItems()),u=Ie(this.getItems());if(function(t,r){return r&&t>=r.start&&t<=r.end}(s,a)){if(a&&this.store.get("virtualSize")+s>(null==u?void 0:u.end)){const t=_e(a,this.store.get("realCount"),e+s-a.start,this.getItems(),r);if(t.length){const r=[...this.store.get("items")],e={start:this.store.get("start"),end:this.store.get("end")};Fe(r,t,e),o=Object.assign(Object.assign(Object.assign({},o),{items:[...r]}),e),ie(this.store,Object.assign({},o))}}}else o=Object.assign(Object.assign({},o),function(t,r,e,n,i){const o=je(i,t),s=De(r);let a;if(s){let t=o.itemIndex-(s.itemIndex||0);if(t){const s=function(t,r){const e=[...r.items],n=e.length;let i={start:r.start,end:r.end};if(t>n)return null;if(r.positiveDirection){let o=Ie(r),s=i.start;const a=s+t;for(;s<a;s++){const t=o.itemIndex+1,a=Te(t,r.sizes,r.originItemSize);if(o.end+a>r.realSize)break;let u=s%n;if(!e[u])throw new Error("incorrect index");e[u]=o={start:o.end,end:o.end+a,itemIndex:t,size:a},i.start++,i.end=u}}else{let o=De(r);const s=i.end;for(let a=0;a<t;a++){const t=o.itemIndex-1,u=Te(t,r.sizes,r.originItemSize);let c=s-a;if(c=(c<0?n+c:c)%n,!e[c])throw new Error("incorrect index");e[c]=o={start:o.start-u,end:o.start,itemIndex:t,size:u},i.start=c,i.end--}}return Object.assign({items:e},{start:(i.start<0?n+i.start:i.start)%n,end:(i.end<0?n+i.end:i.end)%n})}(Math.abs(t),Object.assign(Object.assign({positiveDirection:t>-1},i),r));if(s&&(a=s),a){const t=_e(o,e,n,a,i);t.length&&Fe(a.items,t,a)}}}if(!a){const t=Ae({start:o.start,startIndex:o.itemIndex,origSize:i.originItemSize,maxSize:n,maxCount:e,sizes:i.sizes});a={items:t,start:0,end:t.length-1}}return a}(s,this.getItems(),this.store.get("realCount"),e,r)),ie(this.store,Object.assign({},o))}setViewPortDimension(t){const r=this.store.get("items"),e=r.length;if(!e)return;let n=0,i=0,o=this.store.get("start");for(;i<e;){const s=r[o];n&&(s.start+=n,s.end+=n);const a=t[s.itemIndex];a&&(n+=a-s.size,s.size=a,s.end=s.start+a),o++,i++,o===e&&(o=0)}ie(this.store,{items:[...r]})}getItems(){return{items:this.store.get("items"),start:this.store.get("start"),end:this.store.get("end")}}setViewport(t){ie(this.store,t)}clear(){this.store.set("items",[])}}class $e{constructor(){this.stores=Ar([...le,...he],((t,r)=>(t[r]=new Pe,t)),{})}setViewport(t,r){this.stores[t].setViewport(r)}}!function(t){t.headerClickAutosize="headerClickAutoSize",t.autoSizeOnTextOverlap="autoSizeOnTextOverlap",t.autoSizeAll="autoSizeAll"}(we||(we={}));class Ue extends ve{constructor(t,r,e){super(t),this.providers=r,this.config=e,this.autoSizeColumns=null,this.dataResolve=null,this.dataReject=null,this.letterBlockSize=(null==e?void 0:e.letterBlockSize)||7,(null==e?void 0:e.preciseSize)&&(this.precsizeCalculationArea=this.initiatePresizeElement(),t.appendChild(this.precsizeCalculationArea));const n=({detail:{source:t}})=>{this.setSource(t)},i=({detail:t})=>{this.afteredit(t)},o=({detail:t})=>{this.afterEditAll(t)},s=({detail:t})=>{const r=pe.getColumnType(t),e=this.getColumnSize(t.index,r);e&&this.providers.dimensionProvider.setDimensionSize(r,{[t.index]:e})};switch(this.addEventListener("beforecolumnsset",(({detail:{columns:t}})=>{this.columnSet(t)})),null==e?void 0:e.mode){case we.autoSizeOnTextOverlap:this.addEventListener("aftersourceset",n),this.addEventListener("afteredit",i);break;case we.autoSizeAll:this.addEventListener("aftersourceset",n),this.addEventListener("afteredit",o);break;default:this.addEventListener("headerdblClick",s)}}async setSource(t){let r=this.autoSizeColumns;if(this.dataReject&&(this.dataReject(),this.clearPromise()),!r){const t=new Promise(((t,r)=>{this.dataResolve=t,this.dataReject=r}));try{r=await t}catch(t){return}}Dr(r,((e,n)=>{const i={};Dr(r[n],(r=>{r.size=i[r.index]=t.reduce(((t,e)=>Math.max(t,this.getLength(e[r.prop]))),0)})),this.providers.dimensionProvider.setDimensionSize(n,i)}))}getLength(t){var r;if(!t)return 0;try{const e=t.toString();return(null===(r=this.config)||void 0===r?void 0:r.preciseSize)?(this.precsizeCalculationArea.innerText=e,this.precsizeCalculationArea.scrollWidth+30):e.length*this.letterBlockSize+30}catch(t){return 0}}afteredit(t){let r;r=this.isRangeEdit(t)?t.data:{0:{[t.prop]:t.val}},Dr(this.autoSizeColumns,((t,e)=>{const n={};Dr(t,(t=>{const e=Ar(r,((r,e)=>void 0===e[t.prop]?r:Math.max(r||0,this.getLength(e[t.prop]))),void 0);e&&t.size<e&&(t.size=n[t.index]=e)})),this.providers.dimensionProvider.setDimensionSize(e,n)}))}afterEditAll(t){const r={};this.isRangeEdit(t)?Dr(t.data,(t=>Dr(t,((t,e)=>r[e]=!0)))):r[t.prop]=!0,Dr(this.autoSizeColumns,((t,e)=>{const n={};Dr(t,(t=>{if(r[t.prop]){const r=this.getColumnSize(t.index,e);r&&(n[t.index]=r)}})),this.providers.dimensionProvider.setDimensionSize(e,n)}))}getColumnSize(t,r){const e=this.autoSizeColumns[r][t];return e?Ar(this.providers.dataProvider.stores,((t,r)=>{const n=Ar(r.store.get("items"),((t,n,i)=>{const o=ae(r.store,i);return Math.max(t||0,this.getLength(o[e.prop]))}),0);return Math.max(t,n)}),e.size||0):0}columnSet(t){var r;for(let e of he){const n=e,i=t[n];for(let t in i)(i[t].autoSize||(null===(r=this.config)||void 0===r?void 0:r.allColumns))&&(this.autoSizeColumns||(this.autoSizeColumns={}),this.autoSizeColumns[n]||(this.autoSizeColumns[n]={}),this.autoSizeColumns[n][t]=Object.assign(Object.assign({},i[t]),{index:parseInt(t,10)}))}this.dataResolve&&(this.dataResolve(this.autoSizeColumns),this.clearPromise())}clearPromise(){this.dataResolve=null,this.dataReject=null}isRangeEdit(t){return!!t.data}initiatePresizeElement(){const t={position:"absolute",fontSize:"14px",height:"0",width:"0",whiteSpace:"nowrap",top:"0",overflowX:"scroll"},r=document.createElement("div");for(let e in t)r.style[e]=t[e];return r.classList.add("revo-test-container"),r}destroy(){var t;super.destroy(),null===(t=this.precsizeCalculationArea)||void 0===t||t.remove()}}const He=(t,r)=>void 0===t||null===t&&!r||("string"!=typeof t&&(t=JSON.stringify(t)),t.toLocaleLowerCase()===r.toString().toLocaleLowerCase()),Ze=(t,r)=>!He(t,r);Ze.extra="input",He.extra="input";const Be=function(t,r){let e;return"number"==typeof t&&(e=parseFloat(null==r?void 0:r.toString()),t>e)};Be.extra="input";const Ne=function(t,r){return He(t,r)||Be(t,r)};Ne.extra="input";const We=function(t,r){let e;return"number"==typeof t&&(e=parseFloat(null==r?void 0:r.toString()),t<e)};We.extra="input";const Ve=function(t,r){return He(t,r)||We(t,r)};Ve.extra="input";const Ge=t=>!(""===t||null==t),qe=(t,r)=>!(!t||r&&("string"!=typeof t&&(t=JSON.stringify(t)),"string"!=typeof r&&(r=JSON.stringify(r)),0!==t.toLocaleLowerCase().indexOf(r.toLocaleLowerCase())));qe.extra="input";const Ke=(t,r)=>!!t&&(!r||("string"!=typeof t&&(t=JSON.stringify(t)),t.toLocaleLowerCase().indexOf(r.toString().toLowerCase())>-1)),Xe=(t,r)=>!Ke(t,r);Xe.extra="input",Ke.extra="input";const Je={none:"None",empty:"Not set",notEmpty:"Set",eq:"Equal",notEq:"Not equal",begins:"Begins with",contains:"Contains",notContains:"Does not contain",eqN:"=",neqN:"!=",gt:">",gte:">=",lt:"<",lte:"<="},Ye={none:()=>!0,empty:t=>!Ge(t),notEmpty:Ge,eq:He,notEq:Ze,begins:qe,contains:Ke,notContains:Xe,eqN:He,neqN:Ze,gt:Be,gte:Ne,lt:We,lte:Ve},Qe={string:["notEmpty","empty","eq","notEq","begins","contains","notContains"],number:["notEmpty","empty","eqN","neqN","gt","gte","lt","lte"]};class tn extends ve{constructor(t,r,n){var i;super(t),this.revogrid=t,this.filterCollection={},this.possibleFilters=Object.assign({},Qe),this.possibleFilterNames=Object.assign({},Je),this.possibleFilterEntities=Object.assign({},Ye),n&&this.initConfig(n),this.addEventListener("headerclick",(t=>this.headerclick(t))),this.addEventListener("aftersourceset",(()=>{Object.keys(this.filterCollection).length&&this.filterByProps(this.filterCollection)})),this.revogrid.registerVNode([e("revogr-filter-panel",{uuid:`filter-${r}`,filterNames:this.possibleFilterNames,filterEntities:this.possibleFilterEntities,filterCaptions:null===(i=n.localization)||void 0===i?void 0:i.captions,onFilterChange:t=>this.onFilterChange(t.detail),ref:t=>this.pop=t})])}initConfig(t){if(t.collection&&(this.filterCollection=Object.assign({},t.collection)),t.customFilters)for(let r in t.customFilters){const e=t.customFilters[r];this.possibleFilters[e.columnFilterType]||(this.possibleFilters[e.columnFilterType]=[]),this.possibleFilters[e.columnFilterType].push(r),this.possibleFilterEntities[r]=e.func,this.possibleFilterNames[r]=e.name}if(t.include){const r={};for(let e in this.possibleFilters){const n=this.possibleFilters[e].filter((r=>t.include.indexOf(r)>-1));n.length&&(r[e]=n)}Object.keys(r).length>0&&(this.possibleFilters=r)}t.localization&&t.localization.filterNames&&Object.entries(t.localization.filterNames).forEach((([t,r])=>{null!=this.possibleFilterNames[t]&&(this.possibleFilterNames[t]=r)}))}async headerclick(t){var r;const e=null===(r=t.detail.originalEvent)||void 0===r?void 0:r.target;if(!a(e))return;t.preventDefault();const n=await this.pop.getChanges();if(n&&(null==n?void 0:n.prop)===t.detail.prop)return void this.pop.show();const i=this.revogrid.getBoundingClientRect(),o=e.getBoundingClientRect(),s=t.detail.prop;this.pop.filterTypes=this.getColumnFilter(t.detail.filter),this.pop.show(Object.assign(Object.assign({},this.filterCollection[s]),{x:o.x-i.x,y:o.y-i.y+o.height,prop:s}))}getColumnFilter(t){let r="string";if(!t)return{[r]:this.possibleFilters[r]};if(this.isValidType(t))r=t;else if("object"==typeof t&&t.length)return t.reduce(((t,r)=>(this.isValidType(r)&&(t[r]=this.possibleFilters[r]),t)),{});return{[r]:this.possibleFilters[r]}}isValidType(t){return!("string"!=typeof t||!this.possibleFilters[t])}async onFilterChange(t){this.filterByProps({[t.prop]:t})}async filterByProps(t,r=!1){r&&(this.filterCollection={});for(const r in t){const{type:e,value:n}=t[r];"none"===e?delete this.filterCollection[r]:this.filterCollection[r]={filter:this.possibleFilterEntities[e],value:n,type:e}}await this.runFiltering()}async doFiltering(t,r,e){const n=[];e.forEach((r=>{const e=Object.assign({},r),i=t[e.prop];e[u]&&!i&&(delete e[u],n.push(e)),!e[u]&&i&&(n.push(e),e[u]=!0)}));const i=this.getRowFilter(r,t),{defaultPrevented:o,detail:s}=this.emit("beforefiltertrimmed",{collection:t,itemsToFilter:i,source:r});o||(await this.revogrid.addTrimmed(s.itemsToFilter,"filter")).defaultPrevented||(await this.revogrid.updateColumns(n),this.emit("afterFilterApply"))}async clearFiltering(){this.filterCollection={},await this.runFiltering()}async runFiltering(){const{source:t,columns:r}=await this.getData(),{defaultPrevented:e,detail:n}=this.emit("beforefilterapply",{collection:this.filterCollection,source:t,columns:r});e||this.doFiltering(n.collection,n.source,n.columns)}async getData(){return{source:await this.revogrid.getSource(),columns:await this.revogrid.getColumns()}}getRowFilter(t,r){const e={};return t.forEach(((t,n)=>{for(const i in r){const o=r[i];(0,o.filter)(t[i],o.value)||(e[n]=!0)}})),e}}var rn=function(t){return"string"==typeof t||!D(t)&&O(t)&&"[object String]"==z(t)},en=Or("length"),nn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),on="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",sn="\\ud83c[\\udffb-\\udfff]",an="[^\\ud800-\\udfff]",un="(?:\\ud83c[\\udde6-\\uddff]){2}",cn="[\\ud800-\\udbff][\\udc00-\\udfff]",ln="(?:"+on+"|"+sn+")?",hn="[\\ufe0e\\ufe0f]?"+ln+"(?:\\u200d(?:"+[an,un,cn].join("|")+")[\\ufe0e\\ufe0f]?"+ln+")*",fn="(?:"+[an+on+"?",on,un,cn,"[\\ud800-\\udfff]"].join("|")+")",dn=RegExp(sn+"(?="+sn+")|"+fn+hn,"g"),vn=function(t){return function(t){return nn.test(t)}(t)?function(t){for(var r=dn.lastIndex=0;dn.test(t);)++r;return r}(t):en(t)},gn=function(t){if(null==t)return 0;if(rt(t))return rn(t)?vn(t):t.length;var r=Qt(t);return"[object Map]"==r||"[object Set]"==r?t.size:Y(t).length};class pn extends ve{constructor(t){super(t),this.revogrid=t,this.sorting=null,this.sortingFunc=null,this.addEventListener("beforesourceset",(({detail:t})=>{if(this.hasSorting&&this.emit("beforesourcesortingapply").defaultPrevented)return;const r=this.setData(t.source,t.type);r&&(t.source=r)})),this.addEventListener("aftercolumnsset",(async({detail:{order:t}})=>{const r=await this.revogrid.getColumns(),e={};for(let n in t){const i=pe.getColumnByProp(r,n),o=(null==i?void 0:i.cellCompare)||this.defaultCellCompare;e[n]="desc"==t[n]?this.descCellCompare(o):o}this.sort(t,e)})),this.addEventListener("initialHeaderClick",(async t=>{var r,e;t.defaultPrevented||t.detail.column.sortable&&this.headerclick(t.detail.column,t.detail.index,null===(e=null===(r=t.detail)||void 0===r?void 0:r.originalEvent)||void 0===e?void 0:e.shiftKey)}))}get hasSorting(){return!!this.sorting}async headerclick(t,r,e){let n=this.getNextOrder(t.order);const i=this.emit("beforesorting",{column:t,order:n,additive:e});if(i.defaultPrevented)return;n=i.detail.order;const o=await this.revogrid.updateColumnSorting(i.detail.column,r,n,e),s=this.emit("beforesortingapply",{column:o,order:n,additive:e});if(s.defaultPrevented)return;n=s.detail.order;const a=(null==t?void 0:t.cellCompare)||this.defaultCellCompare,u="asc"==n?a:"desc"==n?this.descCellCompare(a):void 0;if(e&&this.sorting){const r={},e={};Object.assign(r,this.sorting),Object.assign(e,this.sortingFunc),t.prop in r&&gn(r)>1&&void 0===n?(delete r[t.prop],delete e[t.prop]):(r[t.prop]=n,e[t.prop]=u),this.sort(r,e)}else this.sort({[t.prop]:n},{[t.prop]:u})}setData(t,r){if("rgRow"===r&&this.sortingFunc)return this.sortItems(t,this.sortingFunc)}async sort(t,r){if(!gn(t))return this.sorting=null,void(this.sortingFunc=null);this.sorting=t,this.sortingFunc=r;const e=await this.revogrid.getSourceStore(),n=e.get("source"),i=this.sortIndexByItems([...e.get("proxyItems")],n,this.sortingFunc);ie(e,{proxyItems:i,source:[...n]}),this.emit("afterSortingApply")}defaultCellCompare(t,r,e){var n,i;const o=null===(n=r[t])||void 0===n?void 0:n.toString().toLowerCase(),s=null===(i=e[t])||void 0===i?void 0:i.toString().toLowerCase();return o==s?0:o>s?1:-1}descCellCompare(t){return(r,e,n)=>-1*t(r,e,n)}sortIndexByItems(t,r,e){for(let r in e)if(void 0===e[r])return[...Array(t.length).keys()];return t.sort(((t,n)=>{let i=0;for(let o in e)if(i=(0,e[o])(o,r[t],r[n]),i)break;return i}))}sortItems(t,r){return t.sort(((t,e)=>{let n=0;for(let i in r)if(n=(0,r[i])(i,t,e),n)break;return n}))}getNextOrder(t){switch(t){case void 0:return"asc";case"asc":return"desc";case"desc":return}}}var Cn=function(t,r,e,n){var i=t.length;for((e=Gr(e))<0&&(e=-e>i?0:i+e),(n=void 0===n||n>i?i:Gr(n))<0&&(n+=i),n=e>n?0:function(t){return t?(r=Gr(t),e=0,n=4294967295,r==r&&(void 0!==n&&(r=r<=n?r:n),void 0!==e&&(r=r>=e?r:e)),r):0;var r,e,n}(n);e<n;)t[e++]=r;return t};const wn="grid-uuid";function Ln(t,r,{prevExpanded:e,expandedAll:n}){const i=function(t,r){const e=[],n={};return t.forEach(((t,i)=>{const o=JSON.stringify(r(t));n[o]||(n[o]=new Map,e.push({children:n[o],id:o})),n[o].set(i,t)})),e}(t,r),o=[],s={};let a=0,u=0;const c={},l={};return i.forEach((t=>{const r=xn(t.id);if(!r)return;let i=0,h=!!n,f=h;const d=[];r.reduce(((r,l)=>{r.push(l);const v=r.join(",");if(!s[v]){if(f=n||e&&e[v],o.push(function(t,r,e,n,i=!1){return{"__rvgr-name":t,"__rvgr-depth":e,"__rvgr-id":n,"__rvgr-value":r,"__rvgr-expanded":i}}(l,v,i,t.id,f)),i&&!f&&!h){const t=r.slice(0,r.length-1);e&&t.length&&e[t.join(",")]||(c[a]=!0)}a++,s[v]=d}return i++,u=i,r}),[]),t.children.forEach(((t,r)=>{f||h||(c[a]=!0),o.push(t),l[r]=a,d.push(a),a++}))})),{sourceWithGroups:o,depth:u,trimmed:c,oldNewIndexMap:l,childrenByGroup:s}}function mn(t){return t&&void 0!==t["__rvgr-name"]}function bn(t){return t&&void 0!==t["__rvgr-column"]}function xn(t){const r=JSON.parse(t);return void 0===r.push?null:r}function yn(t,r,e){const n=xn(e["__rvgr-id"]);if(!n)return!1;const i=function(t,r){const e=t.length;let n=0;for(;n<e;n++)if(t[n]!==r[n])return n;return n}(t,n);return r["__rvgr-depth"]<i}const En={mime:"text/csv",fileKind:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n",encoding:""},kn=String.fromCharCode(13),Sn=String.fromCharCode(10),jn=String.fromCharCode(34),Rn=String.fromCharCode(65279),zn=new RegExp('"',"g");class On{constructor(t={}){this.options=Object.assign(Object.assign({},En),t)}doExport({data:t,headers:r,props:e}){let n=this.options.bom?Rn:"";return(null==r?void 0:r.length)>0&&r.forEach((t=>{t.length&&(n+=this.prepareHeader(t,this.options.columnDelimiter),n+=this.options.rowDelimiter)})),t.forEach(((t,r)=>{r>0&&(n+=this.options.rowDelimiter),mn(t)?n+=this.parseCell(function(t){return t&&t["__rvgr-name"]}(t),this.options.columnDelimiter):n+=e.map((r=>this.parseCell(t[r],this.options.columnDelimiter))).join(this.options.columnDelimiter)})),n}prepareHeader(t,r){let e="";return e+=t.map((t=>this.parseCell(t,r,!0))).join(r),e}parseCell(t,r,e=!1){let n=t;return"string"!=typeof t&&(n=JSON.stringify(t)),void 0===n?"":""!==n&&(e||[kn,jn,Sn,r].some((t=>n.indexOf(t)>=0)))?`"${n.replace(zn,'""')}"`:n}}var Mn;!function(t){t.csv="csv"}(Mn||(Mn={}));class Fn extends ve{async exportString(t={},r=Mn.csv){const e=await this.beforeexport();return e?this.formatter(r,t).doExport(e):null}async exportBlob(t={},r=Mn.csv){return await this.getBlob(this.formatter(r,t))}async exportFile(t={},r=Mn.csv){const e=this.formatter(r,t),n=await this.getBlob(e),i=window.URL||window.webkitURL,o=document.createElement("a"),{filename:s,fileKind:a}=e.options,u=`${s}.${a}`,c=i.createObjectURL(n);o.style.display="none",o.setAttribute("href",c),o.setAttribute("download",u),this.revogrid.appendChild(o),o.dispatchEvent(new MouseEvent("click")),this.revogrid.removeChild(o),await Se(120),i.revokeObjectURL(c)}async getBlob(t){const r=`${t.options.mime};charset=${t.options.encoding}`;if("undefined"!=typeof Blob){const e=await this.beforeexport();return e?new Blob([t.doExport(e)],{type:r}):null}return null}async beforeexport(){let t=await this.getData();const r=this.emit("beforeexport",{data:t});return r.defaultPrevented?null:r.detail.data}async getData(){const t=await this.getSource(),r=[],e=[];he.forEach(((t,n)=>{e.push(this.getColPerSource(t).then((t=>r[n]=t)))})),await Promise.all(e);const n={headers:[],props:[]};for(let t of r)t.headers.forEach(((t,r)=>{n.headers[r]||(n.headers[r]=[]),n.headers[r].push(...t)})),n.props.push(...t.props);return Object.assign({data:t},n)}async getColPerSource(t){const r=await this.revogrid.getColumnStore(t),e=r.get("source"),n=r.get("items"),i=r.get("groupingDepth"),o=r.get("groups"),s=[],a=[],u=n.reduce(((t,r,n)=>{const i=e[r].prop;return s.push(e[r].name||""),a.push(i),t[i]=n,t}),{}),c=this.getGroupHeaders(i,o,n,u);return c.push(s),{headers:c,props:a}}getGroupHeaders(t,r,e,n){const i=[],o=(s=new Array(e.length),a="",(l=null==s?0:s.length)?(u&&"number"!=typeof u&&ee(s,a,u)&&(u=0,c=l),Cn(s,a,u,c)):[]);var s,a,u,c,l;for(let e=0;e<t;e++){const t=[...o];(i.push(t),r[e])&&r[e].forEach((r=>{const e=this.findGroupStartIndex(r.ids,n);"number"==typeof e&&(t[e]=r.name)}))}return i}findGroupStartIndex(t,r){let e;return t.forEach((t=>{const n=r[t];"number"==typeof n&&("number"!=typeof e||e>n)&&(e=n)})),e}async getSource(){const t=[],r=[];return le.forEach((e=>{const n=[];t.push(n);const i=this.revogrid.getVisibleSource(e).then((t=>n.push(...t)));r.push(i)})),await Promise.all(r),t.reduce(((t,r)=>(t.push(...r),t)),[])}formatter(t,r={}){switch(t){case Mn.csv:return new On(r);default:throw new Error("Unknown format")}}}class _n extends ve{constructor(t,r){super(t),this.revogrid=t,this.providers=r}get hasProps(){var t,r,e;return(null===(t=this.options)||void 0===t?void 0:t.props)&&(null===(e=null===(r=this.options)||void 0===r?void 0:r.props)||void 0===e?void 0:e.length)}get store(){return this.providers.dataProvider.stores.rgRow.store}get rowItems(){return this.store.get("items")}get trimmed(){return this.store.get("trimmed")}onFocus(t){mn(t.detail.model)&&t.preventDefault()}onExpand({virtualIndex:t}){const{source:r}=this.getSource();let e=this.trimmed.grouping,n=function(t,r){return t.get("items")[r]}(this.store,t);if(r[n]["__rvgr-expanded"]){const{trimmed:t}=function(t,r){const e=r[t],n=e["__rvgr-id"],i={};let o=t+1;const s=r.length;for(;o<s;){const t=r[o];if(mn(t)){if(n!==t["__rvgr-id"])break;t["__rvgr-expanded"]=!1}i[o++]=!0}return e["__rvgr-expanded"]=!1,{trimmed:i}}(n,r);e=Object.assign(Object.assign({},e),t),this.revogrid.clearFocus()}else{const{trimmed:n,items:i}=function(t,r,e){const n=e[t],i=r[n],o=xn(i["__rvgr-id"]),s={};if(!o)return{trimmed:s};const a=[];i["__rvgr-expanded"]=!0;let u=n+1;const c=r.length;let l=0;for(;u<c;){const t=r[u],e=mn(t);if(e){if(!yn(o,i,t))break;l||(l=t["__rvgr-depth"])}(!l||e&&l===t["__rvgr-depth"])&&(s[u]=!1,a.push(u)),u++}const h={trimmed:s};if(a.length){const r=[...e];r.splice(t+1,0,...a),h.items=r}return h}(t,r,this.rowItems);e=Object.assign(Object.assign({},e),n),i&&ce(this.store,i)}this.store.set("source",r),this.revogrid.addTrimmed(e,"grouping")}getSource(t=!1){const r=this.store.get("source"),e=this.store.get("proxyItems");let n=0;return e.reduce(((e,i)=>{const o=r[i];return t?(mn(o)?o["__rvgr-expanded"]&&(e.prevExpanded[o["__rvgr-value"]]=!0):(e.source.push(o),e.oldNewIndexes[i]=n,n++),e):(e.source.push(o),e)}),{source:[],prevExpanded:{},oldNewIndexes:{}})}setColumnGrouping(t){return!!(null==t?void 0:t.length)&&(t[0]["__rvgr-column"]=!0,!0)}setColumns({columns:t}){for(let r of he)if(this.setColumnGrouping(t[r]))break}onDrag(t){const{from:r,to:e}=t.detail,n=e-r>=0,{source:i}=this.getSource(),o=this.rowItems;let s=n?r:e;const a=n?e:r;for(;s<a;s++)if(mn(i[o[s]]))return void t.preventDefault()}beforeTrimmedApply(t,r){if("filter"===r){const r=this.store.get("source");for(let e in t)t[e]&&mn(r[e])&&(t[e]=!1)}}subscribe(){this.addEventListener("beforesourceset",(({detail:t})=>this.onDataSet(t))),this.addEventListener("beforecolumnsset",(({detail:t})=>this.setColumns(t))),this.addEventListener("beforetrimmed",(({detail:{trimmed:t,trimmedType:r}})=>this.beforeTrimmedApply(t,r))),this.addEventListener("afterSortingApply",(()=>this.doSourceUpdate())),this.addEventListener("beforecellfocus",(t=>this.onFocus(t))),this.addEventListener("roworderchanged",(t=>this.onDrag(t))),this.addEventListener("groupExpandClick",(({detail:t})=>this.onExpand(t)))}doSourceUpdate(t){if(!this.hasProps)return;const{source:r,prevExpanded:e,oldNewIndexes:n}=this.getSource(!0),{sourceWithGroups:i,depth:o,trimmed:s,oldNewIndexMap:a,childrenByGroup:u}=Ln(r,(t=>{var r;return null===(r=this.options)||void 0===r?void 0:r.props.map((r=>t[r]))}),Object.assign({prevExpanded:e},t));this.providers.dataProvider.setData(i,"rgRow",{depth:o},!0),this.updateTrimmed(s,u,n,a)}onDataSet(t){if(!this.hasProps||!(null==t?void 0:t.source)||!t.source.length)return;const r=t.source.filter((t=>!mn(t))),e=this.revogrid.grouping||{},{sourceWithGroups:n,depth:i,trimmed:o,oldNewIndexMap:s,childrenByGroup:a}=Ln(r,(t=>{var r;return null===(r=this.options)||void 0===r?void 0:r.props.map((r=>t[r]))}),Object.assign({},e||{}));t.source=n,this.providers.dataProvider.setGrouping({depth:i}),this.updateTrimmed(o,a,s)}setGrouping(t){if(this.clearSubscriptions(),this.options=t,!t.props||!Object.keys(t.props).length)return void this.clearGrouping();const{source:r}=this.getSource();r.length&&this.doSourceUpdate(Object.assign({},t));for(let t of he)if(this.setColumnGrouping(this.providers.columnProvider.getColumns(t))){this.providers.columnProvider.refreshByType(t);break}this.subscribe()}clearGrouping(){he.forEach((t=>{const r=this.providers.columnProvider.getColumns(t);let e=!1;r.forEach((t=>{bn(t)&&(delete t["__rvgr-column"],e=!0)})),e&&this.providers.columnProvider.refreshByType(t)}));const{source:t,oldNewIndexes:r}=this.getSource(!0);this.providers.dataProvider.setData(t,"rgRow",void 0,!0),this.updateTrimmed(void 0,void 0,r)}updateTrimmed(t={},r={},e,n){const i=function(t,r,e){const n={};for(let i in t){if("grouping"===i)continue;const o=t[i],s={};for(let t in o){let a=r[t];e&&(a=e[a]),o[t]&&(s[a]=!0,a!==parseInt(t,10)&&(n[i]=s))}}return n}(this.trimmed,e,n);for(let t in i)this.revogrid.addTrimmed(i[t],t);this.revogrid.addTrimmed(Object.assign({},t),"grouping")}}class An{constructor(){this.parentY=0}start(t,{pos:r,text:e,event:n}){var i;const{top:o}=t.getBoundingClientRect();this.parentY=o,this.text&&(this.text.innerText=e),this.move(r),this.moveTip({x:n.x,y:n.y}),null===(i=this.el)||void 0===i||i.classList.remove("hidden")}end(){var t;null===(t=this.el)||void 0===t||t.classList.add("hidden")}move(t){this.moveElement(t.end-this.parentY)}moveTip({x:t,y:r}){this.draggable&&(this.draggable.style.left=`${t}px`,this.draggable.style.top=`${r}px`)}moveElement(t){this.rgRow&&(this.rgRow.style.transform=`translateY(${t}px)`)}}const Tn=({ref:t})=>{const r=new An;return t(r),e("div",{class:"draggable-wrapper hidden",ref:t=>r.el=t},e("div",{class:"draggable",ref:t=>r.draggable=t},e("span",{class:"revo-alt-icon"}),e("span",{ref:t=>r.text=t})),e("div",{class:"drag-position",ref:t=>r.rgRow=t}))},Dn=({viewports:t,dimensions:r,orderRef:n,nakedClick:i,registerElement:o,onScroll:s},a)=>{let u;return[e("div",{class:"main-viewport",ref:t=>u=t,onClick:t=>((t,r)=>{r===t.target&&i(t)})(t,u)},e("div",{class:"viewports"},a,e("revogr-scroll-virtual",{class:"vertical",dimension:"rgRow",viewportStore:t.rgRow.store,dimensionStore:r.rgRow.store,ref:t=>o(t,"rowScroll"),onScrollVirtual:t=>s(t.detail)}),e(Tn,{ref:n}))),e("revogr-scroll-virtual",{class:"horizontal",dimension:"rgCol",viewportStore:t.rgCol.store,dimensionStore:r.rgCol.store,ref:t=>o(t,"colScroll"),onScrollVirtual:t=>s(t.detail)})]};function In(t){return t===Hn}function Pn(t,r){const e=Object.assign({},t);let n=["x","y"];for(let r of n)t[r]<0&&(e[r]=0);for(let i of n)t[i]>=r[i]&&(e[i]=r[i]-1);return e}function $n(t,r){return t&&r?{x:Math.min(t.x,r.x),y:Math.min(t.y,r.y),x1:Math.max(t.x,r.x),y1:Math.max(t.y,r.y)}:null}class Un{constructor(){this.unsubscribe=[],this.store=Qr({range:null,tempRange:null,tempRangeType:null,focus:null,edit:null,lastCell:null}),this.store.on("set",((t,r)=>{"tempRange"!==t||r||this.store.set("tempRangeType",null)}))}onChange(t,r){this.unsubscribe.push(this.store.onChange(t,r))}clearFocus(){ie(this.store,{focus:null,range:null,edit:null,tempRange:null})}setFocus(t,r){ie(this.store,{focus:t,range:$n(t,r),edit:null,tempRange:null})}setTempArea(t){ie(this.store,{tempRange:null==t?void 0:t.area,tempRangeType:null==t?void 0:t.type,edit:null})}clearTemp(){ie(this.store,{tempRange:null})}setRangeArea(t){ie(this.store,{range:t,edit:null,tempRange:null})}setRange(t,r){this.setRangeArea($n(t,r))}setLastCell(t){ie(this.store,{lastCell:t})}setEdit(t){const r=this.store.get("focus");ie(this.store,r&&"string"==typeof t?{edit:{x:r.x,y:r.y,val:t}}:{edit:null})}dispose(){this.unsubscribe.forEach((t=>t())),this.store.dispose()}}const Hn=-1;class Zn{constructor(){this.dirty=!1,this.stores={},this.columnStores={},this.rowStores={},this.sections=[]}get focusedStore(){var t;for(let r in this.stores)for(let e in this.stores[r]){const n=null===(t=this.stores[r][e])||void 0===t?void 0:t.store.get("focus");if(n)return{entity:this.stores[r][e],cell:n,position:{x:parseInt(e,10),y:parseInt(r,10)}}}return null}get edit(){var t;return null===(t=this.focusedStore)||void 0===t?void 0:t.entity.store.get("edit")}get focused(){var t;return null===(t=this.focusedStore)||void 0===t?void 0:t.entity.store.get("focus")}get selectedRange(){var t;return null===(t=this.focusedStore)||void 0===t?void 0:t.entity.store.get("range")}registerSection(t){if(!t)return this.sections.length=0,void(this.dirty=!0);-1===this.sections.indexOf(t)&&this.sections.push(t)}beforeUpdate(){if(this.dirty){for(let t in this.stores)for(let r in this.stores[t])this.stores[t][r].dispose();this.dirty=!1}}registerColumn(t){return In(t)?new Un:(this.columnStores[t]||(this.columnStores[t]=new Un),this.columnStores[t])}registerRow(t){return In(t)?new Un:(this.rowStores[t]||(this.rowStores[t]=new Un),this.rowStores[t])}register({x:t,y:r}){var e,n;return In(t)||In(r)?new Un:(this.stores[r]||(this.stores[r]={}),this.stores[r][t]||(this.stores[r][t]=new Un,null===(e=this.stores[r][t])||void 0===e||e.onChange("range",(e=>{this.columnStores[t].setRangeArea(e),this.rowStores[r].setRangeArea(e)})),null===(n=this.stores[r][t])||void 0===n||n.store.on("dispose",(()=>{var e,n;null===(e=this.columnStores[t])||void 0===e||e.dispose(),null===(n=this.rowStores[r])||void 0===n||n.dispose(),delete this.rowStores[r],delete this.columnStores[t],this.stores[r]&&delete this.stores[r][t],Object.keys(this.stores[r]||{}).length||delete this.stores[r]}))),this.stores[r][t])}setEditByCell({x:t,y:r},e){this.focus(this.stores[r][t],{focus:e,end:e}),this.setEdit("")}focus(t,{focus:r,end:e}){let n;for(let r in this.stores)for(let e in this.stores[r]){const i=this.stores[r][e];i!==t?i.clearFocus():n={x:parseInt(e,10),y:parseInt(r,10)}}if(!n)return;const i=t.store.get("lastCell"),o=function(t,r){const e={};let n=["x","y"];for(let r of n)if(t[r]<0)return e[r]=t[r],e;for(let i of n)if(t[i]>=r[i])return e[i]=t[i]-r[i],e;return null}(r,i);let s;if(o)for(let t in o){let r,e=t;switch(e){case"x":r=this.getXStores(n.y);break;case"y":r=this.getYStores(n.x)}if(o[e]>=0)s=r[++n[e]];else{s=r[--n[e]];const t=null==s?void 0:s.store.get("lastCell");t&&(o[e]=t[e]+o[e])}}if(s){let t=Object.assign(Object.assign({},r),o);this.focus(s,{focus:t,end:t})}else r=Pn(r,i),e=Pn(r,i),t.setFocus(r,e)}clearAll(){var t;for(let r in this.stores)for(let e in this.stores[r])null===(t=this.stores[r][e])||void 0===t||t.clearFocus()}setEdit(t){this.focusedStore&&this.focusedStore.entity.setEdit(t)}getXStores(t){return this.stores[t]}getYStores(t){const r={};for(let e in this.stores)r[e]=this.stores[e][t];return r}}function Bn(t,r){return{x:t.viewports[t.colType].store.get("realCount"),y:t.viewports[r].store.get("realCount")}}var Nn=w((function(t,r){(function(){var e,n="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",s=32,a=128,u=1/0,c=9007199254740991,l=NaN,h=4294967295,f=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",s],["partialRight",64],["rearg",256]],d="[object Arguments]",v="[object Array]",g="[object Boolean]",p="[object Date]",w="[object Error]",L="[object Function]",m="[object GeneratorFunction]",b="[object Map]",x="[object Number]",y="[object Object]",E="[object Promise]",k="[object RegExp]",S="[object Set]",j="[object String]",R="[object Symbol]",z="[object WeakMap]",O="[object ArrayBuffer]",M="[object DataView]",F="[object Float32Array]",_="[object Float64Array]",A="[object Int8Array]",T="[object Int16Array]",D="[object Int32Array]",I="[object Uint8Array]",P="[object Uint8ClampedArray]",$="[object Uint16Array]",U="[object Uint32Array]",H=/\b__p \+= '';/g,Z=/\b(__p \+=) '' \+/g,B=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,V=RegExp(N.source),G=RegExp(W.source),q=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tt=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(tt.source),et=/^\s+/,nt=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,st=/,? & /,at=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ut=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ht=/\w*$/,ft=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,vt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,pt=/^(?:0|[1-9]\d*)$/,Ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,Lt=/['\n\r\u2028\u2029\\]/g,mt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",bt="a-z\\xdf-\\xf6\\xf8-\\xff",xt="A-Z\\xc0-\\xd6\\xd8-\\xde",yt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Et="["+yt+"]",kt="["+mt+"]",St="\\d+",jt="["+bt+"]",Rt="[^\\ud800-\\udfff"+yt+St+"\\u2700-\\u27bf"+bt+xt+"]",zt="\\ud83c[\\udffb-\\udfff]",Ot="[^\\ud800-\\udfff]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ft="[\\ud800-\\udbff][\\udc00-\\udfff]",_t="["+xt+"]",At="(?:"+jt+"|"+Rt+")",Tt="(?:"+_t+"|"+Rt+")",Dt="(?:['’](?:d|ll|m|re|s|t|ve))?",It="(?:['’](?:D|LL|M|RE|S|T|VE))?",Pt="(?:"+kt+"|"+zt+")?",$t="[\\ufe0e\\ufe0f]?",Ut=$t+Pt+"(?:\\u200d(?:"+[Ot,Mt,Ft].join("|")+")"+$t+Pt+")*",Ht="(?:"+["[\\u2700-\\u27bf]",Mt,Ft].join("|")+")"+Ut,Zt="(?:"+[Ot+kt+"?",kt,Mt,Ft,"[\\ud800-\\udfff]"].join("|")+")",Bt=RegExp("['’]","g"),Nt=RegExp(kt,"g"),Wt=RegExp(zt+"(?="+zt+")|"+Zt+Ut,"g"),Vt=RegExp([_t+"?"+jt+"+"+Dt+"(?="+[Et,_t,"$"].join("|")+")",Tt+"+"+It+"(?="+[Et,_t+At,"$"].join("|")+")",_t+"?"+At+"+"+Dt,_t+"+"+It,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",St,Ht].join("|"),"g"),Gt=RegExp("[\\u200d\\ud800-\\udfff"+mt+"\\ufe0e\\ufe0f]"),qt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xt=-1,Jt={};Jt[F]=Jt[_]=Jt[A]=Jt[T]=Jt[D]=Jt[I]=Jt[P]=Jt[$]=Jt[U]=!0,Jt[d]=Jt[v]=Jt[O]=Jt[g]=Jt[M]=Jt[p]=Jt[w]=Jt[L]=Jt[b]=Jt[x]=Jt[y]=Jt[k]=Jt[S]=Jt[j]=Jt[z]=!1;var Yt={};Yt[d]=Yt[v]=Yt[O]=Yt[M]=Yt[g]=Yt[p]=Yt[F]=Yt[_]=Yt[A]=Yt[T]=Yt[D]=Yt[b]=Yt[x]=Yt[y]=Yt[k]=Yt[S]=Yt[j]=Yt[R]=Yt[I]=Yt[P]=Yt[$]=Yt[U]=!0,Yt[w]=Yt[L]=Yt[z]=!1;var Qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tr=parseFloat,rr=parseInt,er="object"==typeof C&&C&&C.Object===Object&&C,nr="object"==typeof self&&self&&self.Object===Object&&self,ir=er||nr||Function("return this")(),or=r&&!r.nodeType&&r,sr=or&&t&&!t.nodeType&&t,ar=sr&&sr.exports===or,ur=ar&&er.process,cr=function(){try{return sr&&sr.require&&sr.require("util").types||ur&&ur.binding&&ur.binding("util")}catch(t){}}(),lr=cr&&cr.isArrayBuffer,hr=cr&&cr.isDate,fr=cr&&cr.isMap,dr=cr&&cr.isRegExp,vr=cr&&cr.isSet,gr=cr&&cr.isTypedArray;function pr(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}function Cr(t,r,e,n){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];r(n,s,e(s),t)}return n}function wr(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t}function Lr(t,r){for(var e=null==t?0:t.length;e--&&!1!==r(t[e],e,t););return t}function mr(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(!r(t[e],e,t))return!1;return!0}function br(t,r){for(var e=-1,n=null==t?0:t.length,i=0,o=[];++e<n;){var s=t[e];r(s,e,t)&&(o[i++]=s)}return o}function xr(t,r){return!(null==t||!t.length)&&Fr(t,r,0)>-1}function yr(t,r,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(r,t[n]))return!0;return!1}function Er(t,r){for(var e=-1,n=null==t?0:t.length,i=Array(n);++e<n;)i[e]=r(t[e],e,t);return i}function kr(t,r){for(var e=-1,n=r.length,i=t.length;++e<n;)t[i+e]=r[e];return t}function Sr(t,r,e,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(e=t[++i]);++i<o;)e=r(e,t[i],i,t);return e}function jr(t,r,e,n){var i=null==t?0:t.length;for(n&&i&&(e=t[--i]);i--;)e=r(e,t[i],i,t);return e}function Rr(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}var zr=Dr("length");function Or(t,r,e){var n;return e(t,(function(t,e,i){if(r(t,e,i))return n=e,!1})),n}function Mr(t,r,e,n){for(var i=t.length,o=e+(n?1:-1);n?o--:++o<i;)if(r(t[o],o,t))return o;return-1}function Fr(t,r,e){return r==r?function(t,r,e){for(var n=e-1,i=t.length;++n<i;)if(t[n]===r)return n;return-1}(t,r,e):Mr(t,Ar,e)}function _r(t,r,e,n){for(var i=e-1,o=t.length;++i<o;)if(n(t[i],r))return i;return-1}function Ar(t){return t!=t}function Tr(t,r){var e=null==t?0:t.length;return e?$r(t,r)/e:l}function Dr(t){return function(r){return null==r?e:r[t]}}function Ir(t){return function(r){return null==t?e:t[r]}}function Pr(t,r,e,n,i){return i(t,(function(t,i,o){e=n?(n=!1,t):r(e,t,i,o)})),e}function $r(t,r){for(var n,i=-1,o=t.length;++i<o;){var s=r(t[i]);s!==e&&(n=n===e?s:n+s)}return n}function Ur(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}function Hr(t){return t?t.slice(0,oe(t)+1).replace(et,""):t}function Zr(t){return function(r){return t(r)}}function Br(t,r){return Er(r,(function(r){return t[r]}))}function Nr(t,r){return t.has(r)}function Wr(t,r){for(var e=-1,n=t.length;++e<n&&Fr(r,t[e],0)>-1;);return e}function Vr(t,r){for(var e=t.length;e--&&Fr(r,t[e],0)>-1;);return e}function Gr(t,r){for(var e=t.length,n=0;e--;)t[e]===r&&++n;return n}var qr=Ir({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Kr=Ir({"&":"&","<":"<",">":">",'"':""","'":"'"});function Xr(t){return"\\"+Qt[t]}function Jr(t){return Gt.test(t)}function Yr(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e}function Qr(t,r){return function(e){return t(r(e))}}function te(t,r){for(var e=-1,n=t.length,i=0,s=[];++e<n;){var a=t[e];a!==r&&a!==o||(t[e]=o,s[i++]=e)}return s}function re(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e}function ee(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=[t,t]})),e}function ne(t){return Jr(t)?function(t){for(var r=Wt.lastIndex=0;Wt.test(t);)++r;return r}(t):zr(t)}function ie(t){return Jr(t)?function(t){return t.match(Wt)||[]}(t):function(t){return t.split("")}(t)}function oe(t){for(var r=t.length;r--&&nt.test(t.charAt(r)););return r}var se=Ir({"&":"&","<":"<",">":">",""":'"',"'":"'"}),ae=function t(r){var C=(r=null==r?ir:ae.defaults(ir.Object(),r,ae.pick(ir,Kt))).Array,nt=r.Date,mt=r.Error,bt=r.Function,xt=r.Math,yt=r.Object,Et=r.RegExp,kt=r.String,St=r.TypeError,jt=C.prototype,Rt=yt.prototype,zt=r["__core-js_shared__"],Ot=bt.prototype.toString,Mt=Rt.hasOwnProperty,Ft=0,_t=function(){var t=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),At=Rt.toString,Tt=Ot.call(yt),Dt=ir._,It=Et("^"+Ot.call(Mt).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pt=ar?r.Buffer:e,$t=r.Symbol,Ut=r.Uint8Array,Ht=Pt?Pt.allocUnsafe:e,Zt=Qr(yt.getPrototypeOf,yt),Wt=yt.create,Gt=Rt.propertyIsEnumerable,Qt=jt.splice,er=$t?$t.isConcatSpreadable:e,nr=$t?$t.iterator:e,or=$t?$t.toStringTag:e,sr=function(){try{var t=ao(yt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ur=r.clearTimeout!==ir.clearTimeout&&r.clearTimeout,cr=nt&&nt.now!==ir.Date.now&&nt.now,zr=r.setTimeout!==ir.setTimeout&&r.setTimeout,Ir=xt.ceil,ue=xt.floor,ce=yt.getOwnPropertySymbols,le=Pt?Pt.isBuffer:e,he=r.isFinite,fe=jt.join,de=Qr(yt.keys,yt),ve=xt.max,ge=xt.min,pe=nt.now,Ce=r.parseInt,we=xt.random,Le=jt.reverse,me=ao(r,"DataView"),be=ao(r,"Map"),xe=ao(r,"Promise"),ye=ao(r,"Set"),Ee=ao(r,"WeakMap"),ke=ao(yt,"create"),Se=Ee&&new Ee,je={},Re=To(me),ze=To(be),Oe=To(xe),Me=To(ye),Fe=To(Ee),_e=$t?$t.prototype:e,Ae=_e?_e.valueOf:e,Te=_e?_e.toString:e;function De(t){if(Ys(t)&&!Hs(t)&&!(t instanceof Ue)){if(t instanceof $e)return t;if(Mt.call(t,"__wrapped__"))return Do(t)}return new $e(t)}var Ie=function(){function t(){}return function(r){if(!Js(r))return{};if(Wt)return Wt(r);t.prototype=r;var n=new t;return t.prototype=e,n}}();function Pe(){}function $e(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=e}function Ue(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function He(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Ze(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Be(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Ne(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new Be;++r<e;)this.add(t[r])}function We(t){var r=this.__data__=new Ze(t);this.size=r.size}function Ve(t,r){var e=Hs(t),n=!e&&Us(t),i=!e&&!n&&Ws(t),o=!e&&!n&&!i&&sa(t),s=e||n||i||o,a=s?Ur(t.length,kt):[],u=a.length;for(var c in t)!r&&!Mt.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||go(c,u))||a.push(c);return a}function Ge(t){var r=t.length;return r?t[Nn(0,r-1)]:e}function qe(t,r){return Fo(ki(t),nn(r,0,t.length))}function Ke(t){return Fo(ki(t))}function Xe(t,r,n){(n!==e&&!Is(t[r],n)||n===e&&!(r in t))&&rn(t,r,n)}function Je(t,r,n){var i=t[r];Mt.call(t,r)&&Is(i,n)&&(n!==e||r in t)||rn(t,r,n)}function Ye(t,r){for(var e=t.length;e--;)if(Is(t[e][0],r))return e;return-1}function Qe(t,r,e,n){return cn(t,(function(t,i,o){r(n,t,e(t),o)})),n}function tn(t,r){return t&&Si(r,Ra(r),t)}function rn(t,r,e){"__proto__"==r&&sr?sr(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}function en(t,r){for(var n=-1,i=r.length,o=C(i),s=null==t;++n<i;)o[n]=s?e:ya(t,r[n]);return o}function nn(t,r,n){return t==t&&(n!==e&&(t=t<=n?t:n),r!==e&&(t=t>=r?t:r)),t}function on(t,r,n,i,o,s){var a,u=1&r,c=2&r,l=4&r;if(n&&(a=o?n(t,i,o,s):n(t)),a!==e)return a;if(!Js(t))return t;var h=Hs(t);if(h){if(a=function(t){var r=t.length,e=new t.constructor(r);return r&&"string"==typeof t[0]&&Mt.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!u)return ki(t,a)}else{var f=lo(t),v=f==L||f==m;if(Ws(t))return Li(t,u);if(f==y||f==d||v&&!o){if(a=c||v?{}:fo(t),!u)return c?function(t,r){return Si(t,co(t),r)}(t,function(t,r){return t&&Si(r,za(r),t)}(a,t)):function(t,r){return Si(t,uo(t),r)}(t,tn(a,t))}else{if(!Yt[f])return o?t:{};a=function(t,r,e){var n=t.constructor;switch(r){case O:return mi(t);case g:case p:return new n(+t);case M:return function(t,r){var e=r?mi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case F:case _:case A:case T:case D:case I:case P:case $:case U:return bi(t,e);case b:return new n;case x:case j:return new n(t);case k:return function(t){var r=new t.constructor(t.source,ht.exec(t));return r.lastIndex=t.lastIndex,r}(t);case S:return new n;case R:return Ae?yt(Ae.call(t)):{}}}(t,f,u)}}s||(s=new We);var C=s.get(t);if(C)return C;s.set(t,a),na(t)?t.forEach((function(e){a.add(on(e,r,n,e,t,s))})):Qs(t)&&t.forEach((function(e,i){a.set(i,on(e,r,n,i,t,s))}));var w=h?e:(l?c?to:Qi:c?za:Ra)(t);return wr(w||t,(function(e,i){w&&(e=t[i=e]),Je(a,i,on(e,r,n,i,t,s))})),a}function sn(t,r,n){var i=n.length;if(null==t)return!i;for(t=yt(t);i--;){var o=n[i],s=t[o];if(s===e&&!(o in t)||!(0,r[o])(s))return!1}return!0}function an(t,r,i){if("function"!=typeof t)throw new St(n);return Ro((function(){t.apply(e,i)}),r)}function un(t,r,e,n){var i=-1,o=xr,s=!0,a=t.length,u=[],c=r.length;if(!a)return u;e&&(r=Er(r,Zr(e))),n?(o=yr,s=!1):r.length>=200&&(o=Nr,s=!1,r=new Ne(r));t:for(;++i<a;){var l=t[i],h=null==e?l:e(l);if(l=n||0!==l?l:0,s&&h==h){for(var f=c;f--;)if(r[f]===h)continue t;u.push(l)}else o(r,h,n)||u.push(l)}return u}De.templateSettings={escape:q,evaluate:K,interpolate:X,variable:"",imports:{_:De}},(De.prototype=Pe.prototype).constructor=De,($e.prototype=Ie(Pe.prototype)).constructor=$e,(Ue.prototype=Ie(Pe.prototype)).constructor=Ue,He.prototype.clear=function(){this.__data__=ke?ke(null):{},this.size=0},He.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},He.prototype.get=function(t){var r=this.__data__;if(ke){var n=r[t];return n===i?e:n}return Mt.call(r,t)?r[t]:e},He.prototype.has=function(t){var r=this.__data__;return ke?r[t]!==e:Mt.call(r,t)},He.prototype.set=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ke&&r===e?i:r,this},Ze.prototype.clear=function(){this.__data__=[],this.size=0},Ze.prototype.delete=function(t){var r=this.__data__,e=Ye(r,t);return!(e<0||(e==r.length-1?r.pop():Qt.call(r,e,1),--this.size,0))},Ze.prototype.get=function(t){var r=this.__data__,n=Ye(r,t);return n<0?e:r[n][1]},Ze.prototype.has=function(t){return Ye(this.__data__,t)>-1},Ze.prototype.set=function(t,r){var e=this.__data__,n=Ye(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this},Be.prototype.clear=function(){this.size=0,this.__data__={hash:new He,map:new(be||Ze),string:new He}},Be.prototype.delete=function(t){var r=oo(this,t).delete(t);return this.size-=r?1:0,r},Be.prototype.get=function(t){return oo(this,t).get(t)},Be.prototype.has=function(t){return oo(this,t).has(t)},Be.prototype.set=function(t,r){var e=oo(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this},Ne.prototype.add=Ne.prototype.push=function(t){return this.__data__.set(t,i),this},Ne.prototype.has=function(t){return this.__data__.has(t)},We.prototype.clear=function(){this.__data__=new Ze,this.size=0},We.prototype.delete=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e},We.prototype.get=function(t){return this.__data__.get(t)},We.prototype.has=function(t){return this.__data__.has(t)},We.prototype.set=function(t,r){var e=this.__data__;if(e instanceof Ze){var n=e.__data__;if(!be||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new Be(n)}return e.set(t,r),this.size=e.size,this};var cn=zi(Cn),ln=zi(wn,!0);function hn(t,r){var e=!0;return cn(t,(function(t,n,i){return e=!!r(t,n,i)})),e}function fn(t,r,n){for(var i=-1,o=t.length;++i<o;){var s=t[i],a=r(s);if(null!=a&&(u===e?a==a&&!oa(a):n(a,u)))var u=a,c=s}return c}function dn(t,r){var e=[];return cn(t,(function(t,n,i){r(t,n,i)&&e.push(t)})),e}function vn(t,r,e,n,i){var o=-1,s=t.length;for(e||(e=vo),i||(i=[]);++o<s;){var a=t[o];r>0&&e(a)?r>1?vn(a,r-1,e,n,i):kr(i,a):n||(i[i.length]=a)}return i}var gn=Oi(),pn=Oi(!0);function Cn(t,r){return t&&gn(t,r,Ra)}function wn(t,r){return t&&pn(t,r,Ra)}function Ln(t,r){return br(r,(function(r){return qs(t[r])}))}function mn(t,r){for(var n=0,i=(r=gi(r,t)).length;null!=t&&n<i;)t=t[Ao(r[n++])];return n&&n==i?t:e}function bn(t,r,e){var n=r(t);return Hs(t)?n:kr(n,e(t))}function xn(t){return null==t?t===e?"[object Undefined]":"[object Null]":or&&or in yt(t)?function(t){var r=Mt.call(t,or),n=t[or];try{t[or]=e;var i=!0}catch(t){}var o=At.call(t);return i&&(r?t[or]=n:delete t[or]),o}(t):function(t){return At.call(t)}(t)}function yn(t,r){return t>r}function En(t,r){return null!=t&&Mt.call(t,r)}function kn(t,r){return null!=t&&r in yt(t)}function Sn(t,r,n){for(var i=n?yr:xr,o=t[0].length,s=t.length,a=s,u=C(s),c=1/0,l=[];a--;){var h=t[a];a&&r&&(h=Er(h,Zr(r))),c=ge(h.length,c),u[a]=!n&&(r||o>=120&&h.length>=120)?new Ne(a&&h):e}h=t[0];var f=-1,d=u[0];t:for(;++f<o&&l.length<c;){var v=h[f],g=r?r(v):v;if(v=n||0!==v?v:0,!(d?Nr(d,g):i(l,g,n))){for(a=s;--a;){var p=u[a];if(!(p?Nr(p,g):i(t[a],g,n)))continue t}d&&d.push(g),l.push(v)}}return l}function jn(t,r,n){var i=null==(t=Eo(t,r=gi(r,t)))?t:t[Ao(Go(r))];return null==i?e:pr(i,t,n)}function Rn(t){return Ys(t)&&xn(t)==d}function zn(t,r,n,i,o){return t===r||(null==t||null==r||!Ys(t)&&!Ys(r)?t!=t&&r!=r:function(t,r,n,i,o,s){var a=Hs(t),u=Hs(r),c=a?v:lo(t),l=u?v:lo(r),h=(c=c==d?y:c)==y,f=(l=l==d?y:l)==y,C=c==l;if(C&&Ws(t)){if(!Ws(r))return!1;a=!0,h=!1}if(C&&!h)return s||(s=new We),a||sa(t)?Ji(t,r,n,i,o,s):function(t,r,e,n,i,o,s){switch(e){case M:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case O:return!(t.byteLength!=r.byteLength||!o(new Ut(t),new Ut(r)));case g:case p:case x:return Is(+t,+r);case w:return t.name==r.name&&t.message==r.message;case k:case j:return t==r+"";case b:var a=Yr;case S:if(a||(a=re),t.size!=r.size&&!(1&n))return!1;var u=s.get(t);if(u)return u==r;n|=2,s.set(t,r);var c=Ji(a(t),a(r),n,i,o,s);return s.delete(t),c;case R:if(Ae)return Ae.call(t)==Ae.call(r)}return!1}(t,r,c,n,i,o,s);if(!(1&n)){var L=h&&Mt.call(t,"__wrapped__"),m=f&&Mt.call(r,"__wrapped__");if(L||m){var E=L?t.value():t,z=m?r.value():r;return s||(s=new We),o(E,z,n,i,s)}}return!!C&&(s||(s=new We),function(t,r,n,i,o,s){var a=1&n,u=Qi(t),c=u.length;if(c!=Qi(r).length&&!a)return!1;for(var l=c;l--;){var h=u[l];if(!(a?h in r:Mt.call(r,h)))return!1}var f=s.get(t),d=s.get(r);if(f&&d)return f==r&&d==t;var v=!0;s.set(t,r),s.set(r,t);for(var g=a;++l<c;){var p=t[h=u[l]],C=r[h];if(i)var w=a?i(C,p,h,r,t,s):i(p,C,h,t,r,s);if(!(w===e?p===C||o(p,C,n,i,s):w)){v=!1;break}g||(g="constructor"==h)}if(v&&!g){var L=t.constructor,m=r.constructor;L==m||!("constructor"in t)||!("constructor"in r)||"function"==typeof L&&L instanceof L&&"function"==typeof m&&m instanceof m||(v=!1)}return s.delete(t),s.delete(r),v}(t,r,n,i,o,s))}(t,r,n,i,zn,o))}function On(t,r,n,i){var o=n.length,s=o,a=!i;if(null==t)return!s;for(t=yt(t);o--;){var u=n[o];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<s;){var c=(u=n[o])[0],l=t[c],h=u[1];if(a&&u[2]){if(l===e&&!(c in t))return!1}else{var f=new We;if(i)var d=i(l,h,c,t,r,f);if(!(d===e?zn(h,l,3,i,f):d))return!1}}return!0}function Mn(t){return!(!Js(t)||(r=t,_t&&_t in r))&&(qs(t)?It:vt).test(To(t));var r}function Fn(t){return"function"==typeof t?t:null==t?tu:"object"==typeof t?Hs(t)?In(t[0],t[1]):Dn(t):cu(t)}function _n(t){if(!mo(t))return de(t);var r=[];for(var e in yt(t))Mt.call(t,e)&&"constructor"!=e&&r.push(e);return r}function An(t,r){return t<r}function Tn(t,r){var e=-1,n=Bs(t)?C(t.length):[];return cn(t,(function(t,i,o){n[++e]=r(t,i,o)})),n}function Dn(t){var r=so(t);return 1==r.length&&r[0][2]?xo(r[0][0],r[0][1]):function(e){return e===t||On(e,t,r)}}function In(t,r){return Co(t)&&bo(r)?xo(Ao(t),r):function(n){var i=ya(n,t);return i===e&&i===r?Ea(n,t):zn(r,i,3)}}function Pn(t,r,n,i,o){t!==r&&gn(r,(function(s,a){if(o||(o=new We),Js(s))!function(t,r,n,i,o,s,a){var u=So(t,n),c=So(r,n),l=a.get(c);if(l)Xe(t,n,l);else{var h=s?s(u,c,n+"",t,r,a):e,f=h===e;if(f){var d=Hs(c),v=!d&&Ws(c),g=!d&&!v&&sa(c);h=c,d||v||g?Hs(u)?h=u:Ns(u)?h=ki(u):v?(f=!1,h=Li(c,!0)):g?(f=!1,h=bi(c,!0)):h=[]:ra(c)||Us(c)?(h=u,Us(u)?h=va(u):Js(u)&&!qs(u)||(h=fo(c))):f=!1}f&&(a.set(c,h),o(h,c,i,s,a),a.delete(c)),Xe(t,n,h)}}(t,r,a,n,Pn,i,o);else{var u=i?i(So(t,a),s,a+"",t,r,o):e;u===e&&(u=s),Xe(t,a,u)}}),za)}function $n(t,r){var n=t.length;if(n)return go(r+=r<0?n:0,n)?t[r]:e}function Un(t,r,e){r=r.length?Er(r,(function(t){return Hs(t)?function(r){return mn(r,1===t.length?t[0]:t)}:t})):[tu];var n=-1;return r=Er(r,Zr(io())),function(t){var r=t.length;for(t.sort((function(t,r){return function(t,r,e){for(var n=-1,i=t.criteria,o=r.criteria,s=i.length,a=e.length;++n<s;){var u=xi(i[n],o[n]);if(u)return n>=a?u:u*("desc"==e[n]?-1:1)}return t.index-r.index}(t,r,e)}));r--;)t[r]=t[r].value;return t}(Tn(t,(function(t){return{criteria:Er(r,(function(r){return r(t)})),index:++n,value:t}})))}function Hn(t,r,e){for(var n=-1,i=r.length,o={};++n<i;){var s=r[n],a=mn(t,s);e(a,s)&&Kn(o,gi(s,t),a)}return o}function Zn(t,r,e,n){var i=n?_r:Fr,o=-1,s=r.length,a=t;for(t===r&&(r=ki(r)),e&&(a=Er(t,Zr(e)));++o<s;)for(var u=0,c=r[o],l=e?e(c):c;(u=i(a,l,u,n))>-1;)a!==t&&Qt.call(a,u,1),Qt.call(t,u,1);return t}function Bn(t,r){for(var e=t?r.length:0,n=e-1;e--;){var i=r[e];if(e==n||i!==o){var o=i;go(i)?Qt.call(t,i,1):ai(t,i)}}return t}function Nn(t,r){return t+ue(we()*(r-t+1))}function Wn(t,r){var e="";if(!t||r<1||r>c)return e;do{r%2&&(e+=t),(r=ue(r/2))&&(t+=t)}while(r);return e}function Vn(t,r){return zo(yo(t,r,tu),t+"")}function Gn(t){return Ge(Ia(t))}function qn(t,r){var e=Ia(t);return Fo(e,nn(r,0,e.length))}function Kn(t,r,n,i){if(!Js(t))return t;for(var o=-1,s=(r=gi(r,t)).length,a=s-1,u=t;null!=u&&++o<s;){var c=Ao(r[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=a){var h=u[c];(l=i?i(h,c,u):e)===e&&(l=Js(h)?h:go(r[o+1])?[]:{})}Je(u,c,l),u=u[c]}return t}var Xn=Se?function(t,r){return Se.set(t,r),t}:tu,Jn=sr?function(t,r){return sr(t,"toString",{configurable:!0,enumerable:!1,value:Ja(r),writable:!0})}:tu;function Yn(t){return Fo(Ia(t))}function Qn(t,r,e){var n=-1,i=t.length;r<0&&(r=-r>i?0:i+r),(e=e>i?i:e)<0&&(e+=i),i=r>e?0:e-r>>>0,r>>>=0;for(var o=C(i);++n<i;)o[n]=t[n+r];return o}function ti(t,r){var e;return cn(t,(function(t,n,i){return!(e=r(t,n,i))})),!!e}function ri(t,r,e){var n=0,i=null==t?n:t.length;if("number"==typeof r&&r==r&&i<=2147483647){for(;n<i;){var o=n+i>>>1,s=t[o];null!==s&&!oa(s)&&(e?s<=r:s<r)?n=o+1:i=o}return i}return ei(t,r,tu,e)}function ei(t,r,n,i){var o=0,s=null==t?0:t.length;if(0===s)return 0;for(var a=(r=n(r))!=r,u=null===r,c=oa(r),l=r===e;o<s;){var h=ue((o+s)/2),f=n(t[h]),d=f!==e,v=null===f,g=f==f,p=oa(f);if(a)var C=i||g;else C=l?g&&(i||d):u?g&&d&&(i||!v):c?g&&d&&!v&&(i||!p):!v&&!p&&(i?f<=r:f<r);C?o=h+1:s=h}return ge(s,4294967294)}function ni(t,r){for(var e=-1,n=t.length,i=0,o=[];++e<n;){var s=t[e],a=r?r(s):s;if(!e||!Is(a,u)){var u=a;o[i++]=0===s?0:s}}return o}function ii(t){return"number"==typeof t?t:oa(t)?l:+t}function oi(t){if("string"==typeof t)return t;if(Hs(t))return Er(t,oi)+"";if(oa(t))return Te?Te.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}function si(t,r,e){var n=-1,i=xr,o=t.length,s=!0,a=[],u=a;if(e)s=!1,i=yr;else if(o>=200){var c=r?null:Wi(t);if(c)return re(c);s=!1,i=Nr,u=new Ne}else u=r?[]:a;t:for(;++n<o;){var l=t[n],h=r?r(l):l;if(l=e||0!==l?l:0,s&&h==h){for(var f=u.length;f--;)if(u[f]===h)continue t;r&&u.push(h),a.push(l)}else i(u,h,e)||(u!==a&&u.push(h),a.push(l))}return a}function ai(t,r){return null==(t=Eo(t,r=gi(r,t)))||delete t[Ao(Go(r))]}function ui(t,r,e,n){return Kn(t,r,e(mn(t,r)),n)}function ci(t,r,e,n){for(var i=t.length,o=n?i:-1;(n?o--:++o<i)&&r(t[o],o,t););return e?Qn(t,n?0:o,n?o+1:i):Qn(t,n?o+1:0,n?i:o)}function li(t,r){var e=t;return e instanceof Ue&&(e=e.value()),Sr(r,(function(t,r){return r.func.apply(r.thisArg,kr([t],r.args))}),e)}function hi(t,r,e){var n=t.length;if(n<2)return n?si(t[0]):[];for(var i=-1,o=C(n);++i<n;)for(var s=t[i],a=-1;++a<n;)a!=i&&(o[i]=un(o[i]||s,t[a],r,e));return si(vn(o,1),r,e)}function fi(t,r,n){for(var i=-1,o=t.length,s=r.length,a={};++i<o;)n(a,t[i],i<s?r[i]:e);return a}function di(t){return Ns(t)?t:[]}function vi(t){return"function"==typeof t?t:tu}function gi(t,r){return Hs(t)?t:Co(t,r)?[t]:_o(ga(t))}var pi=Vn;function Ci(t,r,n){var i=t.length;return n=n===e?i:n,!r&&n>=i?t:Qn(t,r,n)}var wi=ur||function(t){return ir.clearTimeout(t)};function Li(t,r){if(r)return t.slice();var e=t.length,n=Ht?Ht(e):new t.constructor(e);return t.copy(n),n}function mi(t){var r=new t.constructor(t.byteLength);return new Ut(r).set(new Ut(t)),r}function bi(t,r){var e=r?mi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function xi(t,r){if(t!==r){var n=t!==e,i=null===t,o=t==t,s=oa(t),a=r!==e,u=null===r,c=r==r,l=oa(r);if(!u&&!l&&!s&&t>r||s&&a&&c&&!u&&!l||i&&a&&c||!n&&c||!o)return 1;if(!i&&!s&&!l&&t<r||l&&n&&o&&!i&&!s||u&&n&&o||!a&&o||!c)return-1}return 0}function yi(t,r,e,n){for(var i=-1,o=t.length,s=e.length,a=-1,u=r.length,c=ve(o-s,0),l=C(u+c),h=!n;++a<u;)l[a]=r[a];for(;++i<s;)(h||i<o)&&(l[e[i]]=t[i]);for(;c--;)l[a++]=t[i++];return l}function Ei(t,r,e,n){for(var i=-1,o=t.length,s=-1,a=e.length,u=-1,c=r.length,l=ve(o-a,0),h=C(l+c),f=!n;++i<l;)h[i]=t[i];for(var d=i;++u<c;)h[d+u]=r[u];for(;++s<a;)(f||i<o)&&(h[d+e[s]]=t[i++]);return h}function ki(t,r){var e=-1,n=t.length;for(r||(r=C(n));++e<n;)r[e]=t[e];return r}function Si(t,r,n,i){var o=!n;n||(n={});for(var s=-1,a=r.length;++s<a;){var u=r[s],c=i?i(n[u],t[u],u,n,t):e;c===e&&(c=t[u]),o?rn(n,u,c):Je(n,u,c)}return n}function ji(t,r){return function(e,n){var i=Hs(e)?Cr:Qe,o=r?r():{};return i(e,t,io(n,2),o)}}function Ri(t){return Vn((function(r,n){var i=-1,o=n.length,s=o>1?n[o-1]:e,a=o>2?n[2]:e;for(s=t.length>3&&"function"==typeof s?(o--,s):e,a&&po(n[0],n[1],a)&&(s=o<3?e:s,o=1),r=yt(r);++i<o;){var u=n[i];u&&t(r,u,i,s)}return r}))}function zi(t,r){return function(e,n){if(null==e)return e;if(!Bs(e))return t(e,n);for(var i=e.length,o=r?i:-1,s=yt(e);(r?o--:++o<i)&&!1!==n(s[o],o,s););return e}}function Oi(t){return function(r,e,n){for(var i=-1,o=yt(r),s=n(r),a=s.length;a--;){var u=s[t?a:++i];if(!1===e(o[u],u,o))break}return r}}function Mi(t){return function(r){var n=Jr(r=ga(r))?ie(r):e,i=n?n[0]:r.charAt(0),o=n?Ci(n,1).join(""):r.slice(1);return i[t]()+o}}function Fi(t){return function(r){return Sr(qa(Ua(r).replace(Bt,"")),t,"")}}function _i(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var e=Ie(t.prototype),n=t.apply(e,r);return Js(n)?n:e}}function Ai(t){return function(r,n,i){var o=yt(r);if(!Bs(r)){var s=io(n,3);r=Ra(r),n=function(t){return s(o[t],t,o)}}var a=t(r,n,i);return a>-1?o[s?r[a]:a]:e}}function Ti(t){return Yi((function(r){var i=r.length,o=i,s=$e.prototype.thru;for(t&&r.reverse();o--;){var a=r[o];if("function"!=typeof a)throw new St(n);if(s&&!u&&"wrapper"==eo(a))var u=new $e([],!0)}for(o=u?o:i;++o<i;){var c=eo(a=r[o]),l="wrapper"==c?ro(a):e;u=l&&wo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[eo(l[0])].apply(u,l[3]):1==a.length&&wo(a)?u[c]():u.thru(a)}return function(){var t=arguments,e=t[0];if(u&&1==t.length&&Hs(e))return u.plant(e).value();for(var n=0,o=i?r[n].apply(this,t):e;++n<i;)o=r[n].call(this,o);return o}}))}function Di(t,r,n,i,o,s,u,c,l,h){var f=r&a,d=1&r,v=2&r,g=24&r,p=512&r,w=v?e:_i(t);return function e(){for(var a=arguments.length,L=C(a),m=a;m--;)L[m]=arguments[m];if(g)var b=no(e),x=Gr(L,b);if(i&&(L=yi(L,i,o,g)),s&&(L=Ei(L,s,u,g)),a-=x,g&&a<h){var y=te(L,b);return Bi(t,r,Di,e.placeholder,n,L,y,c,l,h-a)}var E=d?n:this,k=v?E[t]:t;return a=L.length,c?L=ko(L,c):p&&a>1&&L.reverse(),f&&l<a&&(L.length=l),this&&this!==ir&&this instanceof e&&(k=w||_i(k)),k.apply(E,L)}}function Ii(t,r){return function(e,n){return function(t,r,e,n){return Cn(t,(function(t,i,o){r(n,e(t),i,o)})),n}(e,t,r(n),{})}}function Pi(t,r){return function(n,i){var o;if(n===e&&i===e)return r;if(n!==e&&(o=n),i!==e){if(o===e)return i;"string"==typeof n||"string"==typeof i?(n=oi(n),i=oi(i)):(n=ii(n),i=ii(i)),o=t(n,i)}return o}}function $i(t){return Yi((function(r){return r=Er(r,Zr(io())),Vn((function(e){var n=this;return t(r,(function(t){return pr(t,n,e)}))}))}))}function Ui(t,r){var n=(r=r===e?" ":oi(r)).length;if(n<2)return n?Wn(r,t):r;var i=Wn(r,Ir(t/ne(r)));return Jr(r)?Ci(ie(i),0,t).join(""):i.slice(0,t)}function Hi(t){return function(r,n,i){return i&&"number"!=typeof i&&po(r,n,i)&&(n=i=e),r=la(r),n===e?(n=r,r=0):n=la(n),function(t,r,e,n){for(var i=-1,o=ve(Ir((r-t)/(e||1)),0),s=C(o);o--;)s[n?o:++i]=t,t+=e;return s}(r,n,i=i===e?r<n?1:-1:la(i),t)}}function Zi(t){return function(r,e){return"string"==typeof r&&"string"==typeof e||(r=da(r),e=da(e)),t(r,e)}}function Bi(t,r,n,i,o,a,u,c,l,h){var f=8&r;r|=f?s:64,4&(r&=~(f?64:s))||(r&=-4);var d=[t,r,o,f?a:e,f?u:e,f?e:a,f?e:u,c,l,h],v=n.apply(e,d);return wo(t)&&jo(v,d),v.placeholder=i,Oo(v,t,r)}function Ni(t){var r=xt[t];return function(t,e){if(t=da(t),(e=null==e?0:ge(ha(e),292))&&he(t)){var n=(ga(t)+"e").split("e");return+((n=(ga(r(n[0]+"e"+(+n[1]+e)))+"e").split("e"))[0]+"e"+(+n[1]-e))}return r(t)}}var Wi=ye&&1/re(new ye([,-0]))[1]==u?function(t){return new ye(t)}:ou;function Vi(t){return function(r){var e=lo(r);return e==b?Yr(r):e==S?ee(r):function(t,r){return Er(r,(function(r){return[r,t[r]]}))}(r,t(r))}}function Gi(t,r,i,u,c,l,h,f){var d=2&r;if(!d&&"function"!=typeof t)throw new St(n);var v=u?u.length:0;if(v||(r&=-97,u=c=e),h=h===e?h:ve(ha(h),0),f=f===e?f:ha(f),v-=c?c.length:0,64&r){var g=u,p=c;u=c=e}var w=d?e:ro(t),L=[t,r,i,u,c,g,p,l,h,f];if(w&&function(t,r){var e=t[1],n=r[1],i=e|n;if(!(i<131||(n==a&&8==e||n==a&&256==e&&t[7].length<=r[8]||384==n&&r[7].length<=r[8]&&8==e)))return t;1&n&&(t[2]=r[2],i|=1&e?0:4);var s=r[3];if(s){var u=t[3];t[3]=u?yi(u,s,r[4]):s,t[4]=u?te(t[3],o):r[4]}(s=r[5])&&(t[5]=(u=t[5])?Ei(u,s,r[6]):s,t[6]=u?te(t[5],o):r[6]),(s=r[7])&&(t[7]=s),n&a&&(t[8]=null==t[8]?r[8]:ge(t[8],r[8])),null==t[9]&&(t[9]=r[9]),t[0]=r[0],t[1]=i}(L,w),t=L[0],r=L[1],i=L[2],u=L[3],c=L[4],!(f=L[9]=L[9]===e?d?0:t.length:ve(L[9]-v,0))&&24&r&&(r&=-25),r&&1!=r)m=8==r||16==r?function(t,r,n){var i=_i(t);return function o(){for(var s=arguments.length,a=C(s),u=s,c=no(o);u--;)a[u]=arguments[u];var l=s<3&&a[0]!==c&&a[s-1]!==c?[]:te(a,c);return(s-=l.length)<n?Bi(t,r,Di,o.placeholder,e,a,l,e,e,n-s):pr(this&&this!==ir&&this instanceof o?i:t,this,a)}}(t,r,f):r!=s&&33!=r||c.length?Di.apply(e,L):function(t,r,e,n){var i=1&r,o=_i(t);return function r(){for(var s=-1,a=arguments.length,u=-1,c=n.length,l=C(c+a),h=this&&this!==ir&&this instanceof r?o:t;++u<c;)l[u]=n[u];for(;a--;)l[u++]=arguments[++s];return pr(h,i?e:this,l)}}(t,r,i,u);else var m=function(t,r,e){var n=1&r,i=_i(t);return function r(){return(this&&this!==ir&&this instanceof r?i:t).apply(n?e:this,arguments)}}(t,r,i);return Oo((w?Xn:jo)(m,L),t,r)}function qi(t,r,n,i){return t===e||Is(t,Rt[n])&&!Mt.call(i,n)?r:t}function Ki(t,r,n,i,o,s){return Js(t)&&Js(r)&&(s.set(r,t),Pn(t,r,e,Ki,s),s.delete(r)),t}function Xi(t){return ra(t)?e:t}function Ji(t,r,n,i,o,s){var a=1&n,u=t.length,c=r.length;if(u!=c&&!(a&&c>u))return!1;var l=s.get(t),h=s.get(r);if(l&&h)return l==r&&h==t;var f=-1,d=!0,v=2&n?new Ne:e;for(s.set(t,r),s.set(r,t);++f<u;){var g=t[f],p=r[f];if(i)var C=a?i(p,g,f,r,t,s):i(g,p,f,t,r,s);if(C!==e){if(C)continue;d=!1;break}if(v){if(!Rr(r,(function(t,r){if(!Nr(v,r)&&(g===t||o(g,t,n,i,s)))return v.push(r)}))){d=!1;break}}else if(g!==p&&!o(g,p,n,i,s)){d=!1;break}}return s.delete(t),s.delete(r),d}function Yi(t){return zo(yo(t,e,Zo),t+"")}function Qi(t){return bn(t,Ra,uo)}function to(t){return bn(t,za,co)}var ro=Se?function(t){return Se.get(t)}:ou;function eo(t){for(var r=t.name+"",e=je[r],n=Mt.call(je,r)?e.length:0;n--;){var i=e[n],o=i.func;if(null==o||o==t)return i.name}return r}function no(t){return(Mt.call(De,"placeholder")?De:t).placeholder}function io(){var t=De.iteratee||ru;return t=t===ru?Fn:t,arguments.length?t(arguments[0],arguments[1]):t}function oo(t,r){var e,n,i=t.__data__;return("string"==(n=typeof(e=r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?i["string"==typeof r?"string":"hash"]:i.map}function so(t){for(var r=Ra(t),e=r.length;e--;){var n=r[e],i=t[n];r[e]=[n,i,bo(i)]}return r}function ao(t,r){var n=function(t,r){return null==t?e:t[r]}(t,r);return Mn(n)?n:e}var uo=ce?function(t){return null==t?[]:(t=yt(t),br(ce(t),(function(r){return Gt.call(t,r)})))}:fu,co=ce?function(t){for(var r=[];t;)kr(r,uo(t)),t=Zt(t);return r}:fu,lo=xn;function ho(t,r,e){for(var n=-1,i=(r=gi(r,t)).length,o=!1;++n<i;){var s=Ao(r[n]);if(!(o=null!=t&&e(t,s)))break;t=t[s]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&Xs(i)&&go(s,i)&&(Hs(t)||Us(t))}function fo(t){return"function"!=typeof t.constructor||mo(t)?{}:Ie(Zt(t))}function vo(t){return Hs(t)||Us(t)||!!(er&&t&&t[er])}function go(t,r){var e=typeof t;return!!(r=null==r?c:r)&&("number"==e||"symbol"!=e&&pt.test(t))&&t>-1&&t%1==0&&t<r}function po(t,r,e){if(!Js(e))return!1;var n=typeof r;return!!("number"==n?Bs(e)&&go(r,e.length):"string"==n&&r in e)&&Is(e[r],t)}function Co(t,r){if(Hs(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!oa(t))||Y.test(t)||!J.test(t)||null!=r&&t in yt(r)}function wo(t){var r=eo(t),e=De[r];if("function"!=typeof e||!(r in Ue.prototype))return!1;if(t===e)return!0;var n=ro(e);return!!n&&t===n[0]}(me&&lo(new me(new ArrayBuffer(1)))!=M||be&&lo(new be)!=b||xe&&lo(xe.resolve())!=E||ye&&lo(new ye)!=S||Ee&&lo(new Ee)!=z)&&(lo=function(t){var r=xn(t),n=r==y?t.constructor:e,i=n?To(n):"";if(i)switch(i){case Re:return M;case ze:return b;case Oe:return E;case Me:return S;case Fe:return z}return r});var Lo=zt?qs:du;function mo(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||Rt)}function bo(t){return t==t&&!Js(t)}function xo(t,r){return function(n){return null!=n&&n[t]===r&&(r!==e||t in yt(n))}}function yo(t,r,n){return r=ve(r===e?t.length-1:r,0),function(){for(var e=arguments,i=-1,o=ve(e.length-r,0),s=C(o);++i<o;)s[i]=e[r+i];i=-1;for(var a=C(r+1);++i<r;)a[i]=e[i];return a[r]=n(s),pr(t,this,a)}}function Eo(t,r){return r.length<2?t:mn(t,Qn(r,0,-1))}function ko(t,r){for(var n=t.length,i=ge(r.length,n),o=ki(t);i--;){var s=r[i];t[i]=go(s,n)?o[s]:e}return t}function So(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]}var jo=Mo(Xn),Ro=zr||function(t,r){return ir.setTimeout(t,r)},zo=Mo(Jn);function Oo(t,r,e){var n=r+"";return zo(t,function(t,r){var e=r.length;if(!e)return t;var n=e-1;return r[n]=(e>1?"& ":"")+r[n],r=r.join(e>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+r+"] */\n")}(n,function(t,r){return wr(f,(function(e){var n="_."+e[0];r&e[1]&&!xr(t,n)&&t.push(n)})),t.sort()}(function(t){var r=t.match(ot);return r?r[1].split(st):[]}(n),e)))}function Mo(t){var r=0,n=0;return function(){var i=pe(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(e,arguments)}}function Fo(t,r){var n=-1,i=t.length,o=i-1;for(r=r===e?i:r;++n<r;){var s=Nn(n,o),a=t[s];t[s]=t[n],t[n]=a}return t.length=r,t}var _o=function(){var t=Ms((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(Q,(function(t,e,n,i){r.push(n?i.replace(ct,"$1"):e||t)})),r}),(function(t){return 500===r.size&&r.clear(),t})),r=t.cache;return t}();function Ao(t){if("string"==typeof t||oa(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}function To(t){if(null!=t){try{return Ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Do(t){if(t instanceof Ue)return t.clone();var r=new $e(t.__wrapped__,t.__chain__);return r.__actions__=ki(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}var Io=Vn((function(t,r){return Ns(t)?un(t,vn(r,1,Ns,!0)):[]})),Po=Vn((function(t,r){var n=Go(r);return Ns(n)&&(n=e),Ns(t)?un(t,vn(r,1,Ns,!0),io(n,2)):[]})),$o=Vn((function(t,r){var n=Go(r);return Ns(n)&&(n=e),Ns(t)?un(t,vn(r,1,Ns,!0),e,n):[]}));function Uo(t,r,e){var n=null==t?0:t.length;if(!n)return-1;var i=null==e?0:ha(e);return i<0&&(i=ve(n+i,0)),Mr(t,io(r,3),i)}function Ho(t,r,n){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return n!==e&&(o=ha(n),o=n<0?ve(i+o,0):ge(o,i-1)),Mr(t,io(r,3),o,!0)}function Zo(t){return null!=t&&t.length?vn(t,1):[]}function Bo(t){return t&&t.length?t[0]:e}var No=Vn((function(t){var r=Er(t,di);return r.length&&r[0]===t[0]?Sn(r):[]})),Wo=Vn((function(t){var r=Go(t),n=Er(t,di);return r===Go(n)?r=e:n.pop(),n.length&&n[0]===t[0]?Sn(n,io(r,2)):[]})),Vo=Vn((function(t){var r=Go(t),n=Er(t,di);return(r="function"==typeof r?r:e)&&n.pop(),n.length&&n[0]===t[0]?Sn(n,e,r):[]}));function Go(t){var r=null==t?0:t.length;return r?t[r-1]:e}var qo=Vn(Ko);function Ko(t,r){return t&&t.length&&r&&r.length?Zn(t,r):t}var Xo=Yi((function(t,r){var e=null==t?0:t.length,n=en(t,r);return Bn(t,Er(r,(function(t){return go(t,e)?+t:t})).sort(xi)),n}));function Jo(t){return null==t?t:Le.call(t)}var Yo=Vn((function(t){return si(vn(t,1,Ns,!0))})),Qo=Vn((function(t){var r=Go(t);return Ns(r)&&(r=e),si(vn(t,1,Ns,!0),io(r,2))})),ts=Vn((function(t){var r=Go(t);return r="function"==typeof r?r:e,si(vn(t,1,Ns,!0),e,r)}));function rs(t){if(!t||!t.length)return[];var r=0;return t=br(t,(function(t){if(Ns(t))return r=ve(t.length,r),!0})),Ur(r,(function(r){return Er(t,Dr(r))}))}function es(t,r){if(!t||!t.length)return[];var n=rs(t);return null==r?n:Er(n,(function(t){return pr(r,e,t)}))}var ns=Vn((function(t,r){return Ns(t)?un(t,r):[]})),is=Vn((function(t){return hi(br(t,Ns))})),os=Vn((function(t){var r=Go(t);return Ns(r)&&(r=e),hi(br(t,Ns),io(r,2))})),ss=Vn((function(t){var r=Go(t);return r="function"==typeof r?r:e,hi(br(t,Ns),e,r)})),as=Vn(rs),us=Vn((function(t){var r=t.length,n=r>1?t[r-1]:e;return n="function"==typeof n?(t.pop(),n):e,es(t,n)}));function cs(t){var r=De(t);return r.__chain__=!0,r}function ls(t,r){return r(t)}var hs=Yi((function(t){var r=t.length,n=r?t[0]:0,i=this.__wrapped__,o=function(r){return en(r,t)};return!(r>1||this.__actions__.length)&&i instanceof Ue&&go(n)?((i=i.slice(n,+n+(r?1:0))).__actions__.push({func:ls,args:[o],thisArg:e}),new $e(i,this.__chain__).thru((function(t){return r&&!t.length&&t.push(e),t}))):this.thru(o)})),fs=ji((function(t,r,e){Mt.call(t,e)?++t[e]:rn(t,e,1)})),ds=Ai(Uo),vs=Ai(Ho);function gs(t,r){return(Hs(t)?wr:cn)(t,io(r,3))}function ps(t,r){return(Hs(t)?Lr:ln)(t,io(r,3))}var Cs=ji((function(t,r,e){Mt.call(t,e)?t[e].push(r):rn(t,e,[r])})),ws=Vn((function(t,r,e){var n=-1,i="function"==typeof r,o=Bs(t)?C(t.length):[];return cn(t,(function(t){o[++n]=i?pr(r,t,e):jn(t,r,e)})),o})),Ls=ji((function(t,r,e){rn(t,e,r)}));function ms(t,r){return(Hs(t)?Er:Tn)(t,io(r,3))}var bs=ji((function(t,r,e){t[e?0:1].push(r)}),(function(){return[[],[]]})),xs=Vn((function(t,r){if(null==t)return[];var e=r.length;return e>1&&po(t,r[0],r[1])?r=[]:e>2&&po(r[0],r[1],r[2])&&(r=[r[0]]),Un(t,vn(r,1),[])})),ys=cr||function(){return ir.Date.now()};function Es(t,r,n){return r=n?e:r,Gi(t,a,e,e,e,e,r=t&&null==r?t.length:r)}function ks(t,r){var i;if("function"!=typeof r)throw new St(n);return t=ha(t),function(){return--t>0&&(i=r.apply(this,arguments)),t<=1&&(r=e),i}}var Ss=Vn((function(t,r,e){var n=1;if(e.length){var i=te(e,no(Ss));n|=s}return Gi(t,n,r,e,i)})),js=Vn((function(t,r,e){var n=3;if(e.length){var i=te(e,no(js));n|=s}return Gi(r,n,t,e,i)}));function Rs(t,r,i){var o,s,a,u,c,l,h=0,f=!1,d=!1,v=!0;if("function"!=typeof t)throw new St(n);function g(r){var n=o,i=s;return o=s=e,h=r,u=t.apply(i,n)}function p(t){return h=t,c=Ro(w,r),f?g(t):u}function C(t){var n=t-l;return l===e||n>=r||n<0||d&&t-h>=a}function w(){var t=ys();if(C(t))return L(t);c=Ro(w,function(t){var e=r-(t-l);return d?ge(e,a-(t-h)):e}(t))}function L(t){return c=e,v&&o?g(t):(o=s=e,u)}function m(){var t=ys(),n=C(t);if(o=arguments,s=this,l=t,n){if(c===e)return p(l);if(d)return wi(c),c=Ro(w,r),g(l)}return c===e&&(c=Ro(w,r)),u}return r=da(r)||0,Js(i)&&(f=!!i.leading,a=(d="maxWait"in i)?ve(da(i.maxWait)||0,r):a,v="trailing"in i?!!i.trailing:v),m.cancel=function(){c!==e&&wi(c),h=0,o=l=s=c=e},m.flush=function(){return c===e?u:L(ys())},m}var zs=Vn((function(t,r){return an(t,1,r)})),Os=Vn((function(t,r,e){return an(t,da(r)||0,e)}));function Ms(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new St(n);var e=function(){var n=arguments,i=r?r.apply(this,n):n[0],o=e.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return e.cache=o.set(i,s)||o,s};return e.cache=new(Ms.Cache||Be),e}function Fs(t){if("function"!=typeof t)throw new St(n);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}Ms.Cache=Be;var _s=pi((function(t,r){var e=(r=1==r.length&&Hs(r[0])?Er(r[0],Zr(io())):Er(vn(r,1),Zr(io()))).length;return Vn((function(n){for(var i=-1,o=ge(n.length,e);++i<o;)n[i]=r[i].call(this,n[i]);return pr(t,this,n)}))})),As=Vn((function(t,r){var n=te(r,no(As));return Gi(t,s,e,r,n)})),Ts=Vn((function(t,r){var n=te(r,no(Ts));return Gi(t,64,e,r,n)})),Ds=Yi((function(t,r){return Gi(t,256,e,e,e,r)}));function Is(t,r){return t===r||t!=t&&r!=r}var Ps=Zi(yn),$s=Zi((function(t,r){return t>=r})),Us=Rn(function(){return arguments}())?Rn:function(t){return Ys(t)&&Mt.call(t,"callee")&&!Gt.call(t,"callee")},Hs=C.isArray,Zs=lr?Zr(lr):function(t){return Ys(t)&&xn(t)==O};function Bs(t){return null!=t&&Xs(t.length)&&!qs(t)}function Ns(t){return Ys(t)&&Bs(t)}var Ws=le||du,Vs=hr?Zr(hr):function(t){return Ys(t)&&xn(t)==p};function Gs(t){if(!Ys(t))return!1;var r=xn(t);return r==w||"[object DOMException]"==r||"string"==typeof t.message&&"string"==typeof t.name&&!ra(t)}function qs(t){if(!Js(t))return!1;var r=xn(t);return r==L||r==m||"[object AsyncFunction]"==r||"[object Proxy]"==r}function Ks(t){return"number"==typeof t&&t==ha(t)}function Xs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function Js(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}function Ys(t){return null!=t&&"object"==typeof t}var Qs=fr?Zr(fr):function(t){return Ys(t)&&lo(t)==b};function ta(t){return"number"==typeof t||Ys(t)&&xn(t)==x}function ra(t){if(!Ys(t)||xn(t)!=y)return!1;var r=Zt(t);if(null===r)return!0;var e=Mt.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&Ot.call(e)==Tt}var ea=dr?Zr(dr):function(t){return Ys(t)&&xn(t)==k},na=vr?Zr(vr):function(t){return Ys(t)&&lo(t)==S};function ia(t){return"string"==typeof t||!Hs(t)&&Ys(t)&&xn(t)==j}function oa(t){return"symbol"==typeof t||Ys(t)&&xn(t)==R}var sa=gr?Zr(gr):function(t){return Ys(t)&&Xs(t.length)&&!!Jt[xn(t)]},aa=Zi(An),ua=Zi((function(t,r){return t<=r}));function ca(t){if(!t)return[];if(Bs(t))return ia(t)?ie(t):ki(t);if(nr&&t[nr])return function(t){for(var r,e=[];!(r=t.next()).done;)e.push(r.value);return e}(t[nr]());var r=lo(t);return(r==b?Yr:r==S?re:Ia)(t)}function la(t){return t?(t=da(t))===u||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ha(t){var r=la(t),e=r%1;return r==r?e?r-e:r:0}function fa(t){return t?nn(ha(t),0,h):0}function da(t){if("number"==typeof t)return t;if(oa(t))return l;if(Js(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=Js(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=Hr(t);var e=dt.test(t);return e||gt.test(t)?rr(t.slice(2),e?2:8):ft.test(t)?l:+t}function va(t){return Si(t,za(t))}function ga(t){return null==t?"":oi(t)}var pa=Ri((function(t,r){if(mo(r)||Bs(r))Si(r,Ra(r),t);else for(var e in r)Mt.call(r,e)&&Je(t,e,r[e])})),Ca=Ri((function(t,r){Si(r,za(r),t)})),wa=Ri((function(t,r,e,n){Si(r,za(r),t,n)})),La=Ri((function(t,r,e,n){Si(r,Ra(r),t,n)})),ma=Yi(en),ba=Vn((function(t,r){t=yt(t);var n=-1,i=r.length,o=i>2?r[2]:e;for(o&&po(r[0],r[1],o)&&(i=1);++n<i;)for(var s=r[n],a=za(s),u=-1,c=a.length;++u<c;){var l=a[u],h=t[l];(h===e||Is(h,Rt[l])&&!Mt.call(t,l))&&(t[l]=s[l])}return t})),xa=Vn((function(t){return t.push(e,Ki),pr(Ma,e,t)}));function ya(t,r,n){var i=null==t?e:mn(t,r);return i===e?n:i}function Ea(t,r){return null!=t&&ho(t,r,kn)}var ka=Ii((function(t,r,e){null!=r&&"function"!=typeof r.toString&&(r=At.call(r)),t[r]=e}),Ja(tu)),Sa=Ii((function(t,r,e){null!=r&&"function"!=typeof r.toString&&(r=At.call(r)),Mt.call(t,r)?t[r].push(e):t[r]=[e]}),io),ja=Vn(jn);function Ra(t){return Bs(t)?Ve(t):_n(t)}function za(t){return Bs(t)?Ve(t,!0):function(t){if(!Js(t))return function(t){var r=[];if(null!=t)for(var e in yt(t))r.push(e);return r}(t);var r=mo(t),e=[];for(var n in t)("constructor"!=n||!r&&Mt.call(t,n))&&e.push(n);return e}(t)}var Oa=Ri((function(t,r,e){Pn(t,r,e)})),Ma=Ri((function(t,r,e,n){Pn(t,r,e,n)})),Fa=Yi((function(t,r){var e={};if(null==t)return e;var n=!1;r=Er(r,(function(r){return r=gi(r,t),n||(n=r.length>1),r})),Si(t,to(t),e),n&&(e=on(e,7,Xi));for(var i=r.length;i--;)ai(e,r[i]);return e})),_a=Yi((function(t,r){return null==t?{}:function(t,r){return Hn(t,r,(function(r,e){return Ea(t,e)}))}(t,r)}));function Aa(t,r){if(null==t)return{};var e=Er(to(t),(function(t){return[t]}));return r=io(r),Hn(t,e,(function(t,e){return r(t,e[0])}))}var Ta=Vi(Ra),Da=Vi(za);function Ia(t){return null==t?[]:Br(t,Ra(t))}var Pa=Fi((function(t,r,e){return r=r.toLowerCase(),t+(e?$a(r):r)}));function $a(t){return Ga(ga(t).toLowerCase())}function Ua(t){return(t=ga(t))&&t.replace(Ct,qr).replace(Nt,"")}var Ha=Fi((function(t,r,e){return t+(e?"-":"")+r.toLowerCase()})),Za=Fi((function(t,r,e){return t+(e?" ":"")+r.toLowerCase()})),Ba=Mi("toLowerCase"),Na=Fi((function(t,r,e){return t+(e?"_":"")+r.toLowerCase()})),Wa=Fi((function(t,r,e){return t+(e?" ":"")+Ga(r)})),Va=Fi((function(t,r,e){return t+(e?" ":"")+r.toUpperCase()})),Ga=Mi("toUpperCase");function qa(t,r,n){return t=ga(t),(r=n?e:r)===e?function(t){return qt.test(t)}(t)?function(t){return t.match(Vt)||[]}(t):function(t){return t.match(at)||[]}(t):t.match(r)||[]}var Ka=Vn((function(t,r){try{return pr(t,e,r)}catch(t){return Gs(t)?t:new mt(t)}})),Xa=Yi((function(t,r){return wr(r,(function(r){r=Ao(r),rn(t,r,Ss(t[r],t))})),t}));function Ja(t){return function(){return t}}var Ya=Ti(),Qa=Ti(!0);function tu(t){return t}function ru(t){return Fn("function"==typeof t?t:on(t,1))}var eu=Vn((function(t,r){return function(e){return jn(e,t,r)}})),nu=Vn((function(t,r){return function(e){return jn(t,e,r)}}));function iu(t,r,e){var n=Ra(r),i=Ln(r,n);null!=e||Js(r)&&(i.length||!n.length)||(e=r,r=t,t=this,i=Ln(r,Ra(r)));var o=!(Js(e)&&"chain"in e&&!e.chain),s=qs(t);return wr(i,(function(e){var n=r[e];t[e]=n,s&&(t.prototype[e]=function(){var r=this.__chain__;if(o||r){var e=t(this.__wrapped__),i=e.__actions__=ki(this.__actions__);return i.push({func:n,args:arguments,thisArg:t}),e.__chain__=r,e}return n.apply(t,kr([this.value()],arguments))})})),t}function ou(){}var su=$i(Er),au=$i(mr),uu=$i(Rr);function cu(t){return Co(t)?Dr(Ao(t)):function(t){return function(r){return mn(r,t)}}(t)}var lu=Hi(),hu=Hi(!0);function fu(){return[]}function du(){return!1}var vu,gu=Pi((function(t,r){return t+r}),0),pu=Ni("ceil"),Cu=Pi((function(t,r){return t/r}),1),wu=Ni("floor"),Lu=Pi((function(t,r){return t*r}),1),mu=Ni("round"),bu=Pi((function(t,r){return t-r}),0);return De.after=function(t,r){if("function"!=typeof r)throw new St(n);return t=ha(t),function(){if(--t<1)return r.apply(this,arguments)}},De.ary=Es,De.assign=pa,De.assignIn=Ca,De.assignInWith=wa,De.assignWith=La,De.at=ma,De.before=ks,De.bind=Ss,De.bindAll=Xa,De.bindKey=js,De.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Hs(t)?t:[t]},De.chain=cs,De.chunk=function(t,r,n){r=(n?po(t,r,n):r===e)?1:ve(ha(r),0);var i=null==t?0:t.length;if(!i||r<1)return[];for(var o=0,s=0,a=C(Ir(i/r));o<i;)a[s++]=Qn(t,o,o+=r);return a},De.compact=function(t){for(var r=-1,e=null==t?0:t.length,n=0,i=[];++r<e;){var o=t[r];o&&(i[n++]=o)}return i},De.concat=function(){var t=arguments.length;if(!t)return[];for(var r=C(t-1),e=arguments[0],n=t;n--;)r[n-1]=arguments[n];return kr(Hs(e)?ki(e):[e],vn(r,1))},De.cond=function(t){var r=null==t?0:t.length,e=io();return t=r?Er(t,(function(t){if("function"!=typeof t[1])throw new St(n);return[e(t[0]),t[1]]})):[],Vn((function(e){for(var n=-1;++n<r;){var i=t[n];if(pr(i[0],this,e))return pr(i[1],this,e)}}))},De.conforms=function(t){return function(t){var r=Ra(t);return function(e){return sn(e,t,r)}}(on(t,1))},De.constant=Ja,De.countBy=fs,De.create=function(t,r){var e=Ie(t);return null==r?e:tn(e,r)},De.curry=function t(r,n,i){var o=Gi(r,8,e,e,e,e,e,n=i?e:n);return o.placeholder=t.placeholder,o},De.curryRight=function t(r,n,i){var o=Gi(r,16,e,e,e,e,e,n=i?e:n);return o.placeholder=t.placeholder,o},De.debounce=Rs,De.defaults=ba,De.defaultsDeep=xa,De.defer=zs,De.delay=Os,De.difference=Io,De.differenceBy=Po,De.differenceWith=$o,De.drop=function(t,r,n){var i=null==t?0:t.length;return i?Qn(t,(r=n||r===e?1:ha(r))<0?0:r,i):[]},De.dropRight=function(t,r,n){var i=null==t?0:t.length;return i?Qn(t,0,(r=i-(r=n||r===e?1:ha(r)))<0?0:r):[]},De.dropRightWhile=function(t,r){return t&&t.length?ci(t,io(r,3),!0,!0):[]},De.dropWhile=function(t,r){return t&&t.length?ci(t,io(r,3),!0):[]},De.fill=function(t,r,n,i){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&po(t,r,n)&&(n=0,i=o),function(t,r,n,i){var o=t.length;for((n=ha(n))<0&&(n=-n>o?0:o+n),(i=i===e||i>o?o:ha(i))<0&&(i+=o),i=n>i?0:fa(i);n<i;)t[n++]=r;return t}(t,r,n,i)):[]},De.filter=function(t,r){return(Hs(t)?br:dn)(t,io(r,3))},De.flatMap=function(t,r){return vn(ms(t,r),1)},De.flatMapDeep=function(t,r){return vn(ms(t,r),u)},De.flatMapDepth=function(t,r,n){return n=n===e?1:ha(n),vn(ms(t,r),n)},De.flatten=Zo,De.flattenDeep=function(t){return null!=t&&t.length?vn(t,u):[]},De.flattenDepth=function(t,r){return null!=t&&t.length?vn(t,r=r===e?1:ha(r)):[]},De.flip=function(t){return Gi(t,512)},De.flow=Ya,De.flowRight=Qa,De.fromPairs=function(t){for(var r=-1,e=null==t?0:t.length,n={};++r<e;){var i=t[r];n[i[0]]=i[1]}return n},De.functions=function(t){return null==t?[]:Ln(t,Ra(t))},De.functionsIn=function(t){return null==t?[]:Ln(t,za(t))},De.groupBy=Cs,De.initial=function(t){return null!=t&&t.length?Qn(t,0,-1):[]},De.intersection=No,De.intersectionBy=Wo,De.intersectionWith=Vo,De.invert=ka,De.invertBy=Sa,De.invokeMap=ws,De.iteratee=ru,De.keyBy=Ls,De.keys=Ra,De.keysIn=za,De.map=ms,De.mapKeys=function(t,r){var e={};return r=io(r,3),Cn(t,(function(t,n,i){rn(e,r(t,n,i),t)})),e},De.mapValues=function(t,r){var e={};return r=io(r,3),Cn(t,(function(t,n,i){rn(e,n,r(t,n,i))})),e},De.matches=function(t){return Dn(on(t,1))},De.matchesProperty=function(t,r){return In(t,on(r,1))},De.memoize=Ms,De.merge=Oa,De.mergeWith=Ma,De.method=eu,De.methodOf=nu,De.mixin=iu,De.negate=Fs,De.nthArg=function(t){return t=ha(t),Vn((function(r){return $n(r,t)}))},De.omit=Fa,De.omitBy=function(t,r){return Aa(t,Fs(io(r)))},De.once=function(t){return ks(2,t)},De.orderBy=function(t,r,n,i){return null==t?[]:(Hs(r)||(r=null==r?[]:[r]),Hs(n=i?e:n)||(n=null==n?[]:[n]),Un(t,r,n))},De.over=su,De.overArgs=_s,De.overEvery=au,De.overSome=uu,De.partial=As,De.partialRight=Ts,De.partition=bs,De.pick=_a,De.pickBy=Aa,De.property=cu,De.propertyOf=function(t){return function(r){return null==t?e:mn(t,r)}},De.pull=qo,De.pullAll=Ko,De.pullAllBy=function(t,r,e){return t&&t.length&&r&&r.length?Zn(t,r,io(e,2)):t},De.pullAllWith=function(t,r,n){return t&&t.length&&r&&r.length?Zn(t,r,e,n):t},De.pullAt=Xo,De.range=lu,De.rangeRight=hu,De.rearg=Ds,De.reject=function(t,r){return(Hs(t)?br:dn)(t,Fs(io(r,3)))},De.remove=function(t,r){var e=[];if(!t||!t.length)return e;var n=-1,i=[],o=t.length;for(r=io(r,3);++n<o;){var s=t[n];r(s,n,t)&&(e.push(s),i.push(n))}return Bn(t,i),e},De.rest=function(t,r){if("function"!=typeof t)throw new St(n);return Vn(t,r=r===e?r:ha(r))},De.reverse=Jo,De.sampleSize=function(t,r,n){return r=(n?po(t,r,n):r===e)?1:ha(r),(Hs(t)?qe:qn)(t,r)},De.set=function(t,r,e){return null==t?t:Kn(t,r,e)},De.setWith=function(t,r,n,i){return i="function"==typeof i?i:e,null==t?t:Kn(t,r,n,i)},De.shuffle=function(t){return(Hs(t)?Ke:Yn)(t)},De.slice=function(t,r,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&po(t,r,n)?(r=0,n=i):(r=null==r?0:ha(r),n=n===e?i:ha(n)),Qn(t,r,n)):[]},De.sortBy=xs,De.sortedUniq=function(t){return t&&t.length?ni(t):[]},De.sortedUniqBy=function(t,r){return t&&t.length?ni(t,io(r,2)):[]},De.split=function(t,r,n){return n&&"number"!=typeof n&&po(t,r,n)&&(r=n=e),(n=n===e?h:n>>>0)?(t=ga(t))&&("string"==typeof r||null!=r&&!ea(r))&&!(r=oi(r))&&Jr(t)?Ci(ie(t),0,n):t.split(r,n):[]},De.spread=function(t,r){if("function"!=typeof t)throw new St(n);return r=null==r?0:ve(ha(r),0),Vn((function(e){var n=e[r],i=Ci(e,0,r);return n&&kr(i,n),pr(t,this,i)}))},De.tail=function(t){var r=null==t?0:t.length;return r?Qn(t,1,r):[]},De.take=function(t,r,n){return t&&t.length?Qn(t,0,(r=n||r===e?1:ha(r))<0?0:r):[]},De.takeRight=function(t,r,n){var i=null==t?0:t.length;return i?Qn(t,(r=i-(r=n||r===e?1:ha(r)))<0?0:r,i):[]},De.takeRightWhile=function(t,r){return t&&t.length?ci(t,io(r,3),!1,!0):[]},De.takeWhile=function(t,r){return t&&t.length?ci(t,io(r,3)):[]},De.tap=function(t,r){return r(t),t},De.throttle=function(t,r,e){var i=!0,o=!0;if("function"!=typeof t)throw new St(n);return Js(e)&&(i="leading"in e?!!e.leading:i,o="trailing"in e?!!e.trailing:o),Rs(t,r,{leading:i,maxWait:r,trailing:o})},De.thru=ls,De.toArray=ca,De.toPairs=Ta,De.toPairsIn=Da,De.toPath=function(t){return Hs(t)?Er(t,Ao):oa(t)?[t]:ki(_o(ga(t)))},De.toPlainObject=va,De.transform=function(t,r,e){var n=Hs(t),i=n||Ws(t)||sa(t);if(r=io(r,4),null==e){var o=t&&t.constructor;e=i?n?new o:[]:Js(t)&&qs(o)?Ie(Zt(t)):{}}return(i?wr:Cn)(t,(function(t,n,i){return r(e,t,n,i)})),e},De.unary=function(t){return Es(t,1)},De.union=Yo,De.unionBy=Qo,De.unionWith=ts,De.uniq=function(t){return t&&t.length?si(t):[]},De.uniqBy=function(t,r){return t&&t.length?si(t,io(r,2)):[]},De.uniqWith=function(t,r){return r="function"==typeof r?r:e,t&&t.length?si(t,e,r):[]},De.unset=function(t,r){return null==t||ai(t,r)},De.unzip=rs,De.unzipWith=es,De.update=function(t,r,e){return null==t?t:ui(t,r,vi(e))},De.updateWith=function(t,r,n,i){return i="function"==typeof i?i:e,null==t?t:ui(t,r,vi(n),i)},De.values=Ia,De.valuesIn=function(t){return null==t?[]:Br(t,za(t))},De.without=ns,De.words=qa,De.wrap=function(t,r){return As(vi(r),t)},De.xor=is,De.xorBy=os,De.xorWith=ss,De.zip=as,De.zipObject=function(t,r){return fi(t||[],r||[],Je)},De.zipObjectDeep=function(t,r){return fi(t||[],r||[],Kn)},De.zipWith=us,De.entries=Ta,De.entriesIn=Da,De.extend=Ca,De.extendWith=wa,iu(De,De),De.add=gu,De.attempt=Ka,De.camelCase=Pa,De.capitalize=$a,De.ceil=pu,De.clamp=function(t,r,n){return n===e&&(n=r,r=e),n!==e&&(n=(n=da(n))==n?n:0),r!==e&&(r=(r=da(r))==r?r:0),nn(da(t),r,n)},De.clone=function(t){return on(t,4)},De.cloneDeep=function(t){return on(t,5)},De.cloneDeepWith=function(t,r){return on(t,5,r="function"==typeof r?r:e)},De.cloneWith=function(t,r){return on(t,4,r="function"==typeof r?r:e)},De.conformsTo=function(t,r){return null==r||sn(t,r,Ra(r))},De.deburr=Ua,De.defaultTo=function(t,r){return null==t||t!=t?r:t},De.divide=Cu,De.endsWith=function(t,r,n){t=ga(t),r=oi(r);var i=t.length,o=n=n===e?i:nn(ha(n),0,i);return(n-=r.length)>=0&&t.slice(n,o)==r},De.eq=Is,De.escape=function(t){return(t=ga(t))&&G.test(t)?t.replace(W,Kr):t},De.escapeRegExp=function(t){return(t=ga(t))&&rt.test(t)?t.replace(tt,"\\$&"):t},De.every=function(t,r,n){var i=Hs(t)?mr:hn;return n&&po(t,r,n)&&(r=e),i(t,io(r,3))},De.find=ds,De.findIndex=Uo,De.findKey=function(t,r){return Or(t,io(r,3),Cn)},De.findLast=vs,De.findLastIndex=Ho,De.findLastKey=function(t,r){return Or(t,io(r,3),wn)},De.floor=wu,De.forEach=gs,De.forEachRight=ps,De.forIn=function(t,r){return null==t?t:gn(t,io(r,3),za)},De.forInRight=function(t,r){return null==t?t:pn(t,io(r,3),za)},De.forOwn=function(t,r){return t&&Cn(t,io(r,3))},De.forOwnRight=function(t,r){return t&&wn(t,io(r,3))},De.get=ya,De.gt=Ps,De.gte=$s,De.has=function(t,r){return null!=t&&ho(t,r,En)},De.hasIn=Ea,De.head=Bo,De.identity=tu,De.includes=function(t,r,e,n){t=Bs(t)?t:Ia(t),e=e&&!n?ha(e):0;var i=t.length;return e<0&&(e=ve(i+e,0)),ia(t)?e<=i&&t.indexOf(r,e)>-1:!!i&&Fr(t,r,e)>-1},De.indexOf=function(t,r,e){var n=null==t?0:t.length;if(!n)return-1;var i=null==e?0:ha(e);return i<0&&(i=ve(n+i,0)),Fr(t,r,i)},De.inRange=function(t,r,n){return r=la(r),n===e?(n=r,r=0):n=la(n),function(t,r,e){return t>=ge(r,e)&&t<ve(r,e)}(t=da(t),r,n)},De.invoke=ja,De.isArguments=Us,De.isArray=Hs,De.isArrayBuffer=Zs,De.isArrayLike=Bs,De.isArrayLikeObject=Ns,De.isBoolean=function(t){return!0===t||!1===t||Ys(t)&&xn(t)==g},De.isBuffer=Ws,De.isDate=Vs,De.isElement=function(t){return Ys(t)&&1===t.nodeType&&!ra(t)},De.isEmpty=function(t){if(null==t)return!0;if(Bs(t)&&(Hs(t)||"string"==typeof t||"function"==typeof t.splice||Ws(t)||sa(t)||Us(t)))return!t.length;var r=lo(t);if(r==b||r==S)return!t.size;if(mo(t))return!_n(t).length;for(var e in t)if(Mt.call(t,e))return!1;return!0},De.isEqual=function(t,r){return zn(t,r)},De.isEqualWith=function(t,r,n){var i=(n="function"==typeof n?n:e)?n(t,r):e;return i===e?zn(t,r,e,n):!!i},De.isError=Gs,De.isFinite=function(t){return"number"==typeof t&&he(t)},De.isFunction=qs,De.isInteger=Ks,De.isLength=Xs,De.isMap=Qs,De.isMatch=function(t,r){return t===r||On(t,r,so(r))},De.isMatchWith=function(t,r,n){return n="function"==typeof n?n:e,On(t,r,so(r),n)},De.isNaN=function(t){return ta(t)&&t!=+t},De.isNative=function(t){if(Lo(t))throw new mt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mn(t)},De.isNil=function(t){return null==t},De.isNull=function(t){return null===t},De.isNumber=ta,De.isObject=Js,De.isObjectLike=Ys,De.isPlainObject=ra,De.isRegExp=ea,De.isSafeInteger=function(t){return Ks(t)&&t>=-9007199254740991&&t<=c},De.isSet=na,De.isString=ia,De.isSymbol=oa,De.isTypedArray=sa,De.isUndefined=function(t){return t===e},De.isWeakMap=function(t){return Ys(t)&&lo(t)==z},De.isWeakSet=function(t){return Ys(t)&&"[object WeakSet]"==xn(t)},De.join=function(t,r){return null==t?"":fe.call(t,r)},De.kebabCase=Ha,De.last=Go,De.lastIndexOf=function(t,r,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==e&&(o=(o=ha(n))<0?ve(i+o,0):ge(o,i-1)),r==r?function(t,r,e){for(var n=e+1;n--;)if(t[n]===r)return n;return n}(t,r,o):Mr(t,Ar,o,!0)},De.lowerCase=Za,De.lowerFirst=Ba,De.lt=aa,De.lte=ua,De.max=function(t){return t&&t.length?fn(t,tu,yn):e},De.maxBy=function(t,r){return t&&t.length?fn(t,io(r,2),yn):e},De.mean=function(t){return Tr(t,tu)},De.meanBy=function(t,r){return Tr(t,io(r,2))},De.min=function(t){return t&&t.length?fn(t,tu,An):e},De.minBy=function(t,r){return t&&t.length?fn(t,io(r,2),An):e},De.stubArray=fu,De.stubFalse=du,De.stubObject=function(){return{}},De.stubString=function(){return""},De.stubTrue=function(){return!0},De.multiply=Lu,De.nth=function(t,r){return t&&t.length?$n(t,ha(r)):e},De.noConflict=function(){return ir._===this&&(ir._=Dt),this},De.noop=ou,De.now=ys,De.pad=function(t,r,e){t=ga(t);var n=(r=ha(r))?ne(t):0;if(!r||n>=r)return t;var i=(r-n)/2;return Ui(ue(i),e)+t+Ui(Ir(i),e)},De.padEnd=function(t,r,e){t=ga(t);var n=(r=ha(r))?ne(t):0;return r&&n<r?t+Ui(r-n,e):t},De.padStart=function(t,r,e){t=ga(t);var n=(r=ha(r))?ne(t):0;return r&&n<r?Ui(r-n,e)+t:t},De.parseInt=function(t,r,e){return e||null==r?r=0:r&&(r=+r),Ce(ga(t).replace(et,""),r||0)},De.random=function(t,r,n){if(n&&"boolean"!=typeof n&&po(t,r,n)&&(r=n=e),n===e&&("boolean"==typeof r?(n=r,r=e):"boolean"==typeof t&&(n=t,t=e)),t===e&&r===e?(t=0,r=1):(t=la(t),r===e?(r=t,t=0):r=la(r)),t>r){var i=t;t=r,r=i}if(n||t%1||r%1){var o=we();return ge(t+o*(r-t+tr("1e-"+((o+"").length-1))),r)}return Nn(t,r)},De.reduce=function(t,r,e){var n=Hs(t)?Sr:Pr,i=arguments.length<3;return n(t,io(r,4),e,i,cn)},De.reduceRight=function(t,r,e){var n=Hs(t)?jr:Pr,i=arguments.length<3;return n(t,io(r,4),e,i,ln)},De.repeat=function(t,r,n){return r=(n?po(t,r,n):r===e)?1:ha(r),Wn(ga(t),r)},De.replace=function(){var t=arguments,r=ga(t[0]);return t.length<3?r:r.replace(t[1],t[2])},De.result=function(t,r,n){var i=-1,o=(r=gi(r,t)).length;for(o||(o=1,t=e);++i<o;){var s=null==t?e:t[Ao(r[i])];s===e&&(i=o,s=n),t=qs(s)?s.call(t):s}return t},De.round=mu,De.runInContext=t,De.sample=function(t){return(Hs(t)?Ge:Gn)(t)},De.size=function(t){if(null==t)return 0;if(Bs(t))return ia(t)?ne(t):t.length;var r=lo(t);return r==b||r==S?t.size:_n(t).length},De.snakeCase=Na,De.some=function(t,r,n){var i=Hs(t)?Rr:ti;return n&&po(t,r,n)&&(r=e),i(t,io(r,3))},De.sortedIndex=function(t,r){return ri(t,r)},De.sortedIndexBy=function(t,r,e){return ei(t,r,io(e,2))},De.sortedIndexOf=function(t,r){var e=null==t?0:t.length;if(e){var n=ri(t,r);if(n<e&&Is(t[n],r))return n}return-1},De.sortedLastIndex=function(t,r){return ri(t,r,!0)},De.sortedLastIndexBy=function(t,r,e){return ei(t,r,io(e,2),!0)},De.sortedLastIndexOf=function(t,r){if(null!=t&&t.length){var e=ri(t,r,!0)-1;if(Is(t[e],r))return e}return-1},De.startCase=Wa,De.startsWith=function(t,r,e){return t=ga(t),e=null==e?0:nn(ha(e),0,t.length),r=oi(r),t.slice(e,e+r.length)==r},De.subtract=bu,De.sum=function(t){return t&&t.length?$r(t,tu):0},De.sumBy=function(t,r){return t&&t.length?$r(t,io(r,2)):0},De.template=function(t,r,n){var i=De.templateSettings;n&&po(t,r,n)&&(r=e),t=ga(t),r=wa({},r,i,qi);var o,s,a=wa({},r.imports,i.imports,qi),u=Ra(a),c=Br(a,u),l=0,h=r.interpolate||wt,f="__p += '",d=Et((r.escape||wt).source+"|"+h.source+"|"+(h===X?lt:wt).source+"|"+(r.evaluate||wt).source+"|$","g"),v="//# sourceURL="+(Mt.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xt+"]")+"\n";t.replace(d,(function(r,e,n,i,a,u){return n||(n=i),f+=t.slice(l,u).replace(Lt,Xr),e&&(o=!0,f+="' +\n__e("+e+") +\n'"),a&&(s=!0,f+="';\n"+a+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=u+r.length,r})),f+="';\n";var g=Mt.call(r,"variable")&&r.variable;if(g){if(ut.test(g))throw new mt("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(s?f.replace(H,""):f).replace(Z,"$1").replace(B,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var p=Ka((function(){return bt(u,v+"return "+f).apply(e,c)}));if(p.source=f,Gs(p))throw p;return p},De.times=function(t,r){if((t=ha(t))<1||t>c)return[];var e=h,n=ge(t,h);r=io(r),t-=h;for(var i=Ur(n,r);++e<t;)r(e);return i},De.toFinite=la,De.toInteger=ha,De.toLength=fa,De.toLower=function(t){return ga(t).toLowerCase()},De.toNumber=da,De.toSafeInteger=function(t){return t?nn(ha(t),-9007199254740991,c):0===t?t:0},De.toString=ga,De.toUpper=function(t){return ga(t).toUpperCase()},De.trim=function(t,r,n){if((t=ga(t))&&(n||r===e))return Hr(t);if(!t||!(r=oi(r)))return t;var i=ie(t),o=ie(r);return Ci(i,Wr(i,o),Vr(i,o)+1).join("")},De.trimEnd=function(t,r,n){if((t=ga(t))&&(n||r===e))return t.slice(0,oe(t)+1);if(!t||!(r=oi(r)))return t;var i=ie(t);return Ci(i,0,Vr(i,ie(r))+1).join("")},De.trimStart=function(t,r,n){if((t=ga(t))&&(n||r===e))return t.replace(et,"");if(!t||!(r=oi(r)))return t;var i=ie(t);return Ci(i,Wr(i,ie(r))).join("")},De.truncate=function(t,r){var n=30,i="...";if(Js(r)){var o="separator"in r?r.separator:o;n="length"in r?ha(r.length):n,i="omission"in r?oi(r.omission):i}var s=(t=ga(t)).length;if(Jr(t)){var a=ie(t);s=a.length}if(n>=s)return t;var u=n-ne(i);if(u<1)return i;var c=a?Ci(a,0,u).join(""):t.slice(0,u);if(o===e)return c+i;if(a&&(u+=c.length-u),ea(o)){if(t.slice(u).search(o)){var l,h=c;for(o.global||(o=Et(o.source,ga(ht.exec(o))+"g")),o.lastIndex=0;l=o.exec(h);)var f=l.index;c=c.slice(0,f===e?u:f)}}else if(t.indexOf(oi(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+i},De.unescape=function(t){return(t=ga(t))&&V.test(t)?t.replace(N,se):t},De.uniqueId=function(t){var r=++Ft;return ga(t)+r},De.upperCase=Va,De.upperFirst=Ga,De.each=gs,De.eachRight=ps,De.first=Bo,iu(De,(vu={},Cn(De,(function(t,r){Mt.call(De.prototype,r)||(vu[r]=t)})),vu),{chain:!1}),De.VERSION="4.17.21",wr(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){De[t].placeholder=De})),wr(["drop","take"],(function(t,r){Ue.prototype[t]=function(n){n=n===e?1:ve(ha(n),0);var i=this.__filtered__&&!r?new Ue(this):this.clone();return i.__filtered__?i.__takeCount__=ge(n,i.__takeCount__):i.__views__.push({size:ge(n,h),type:t+(i.__dir__<0?"Right":"")}),i},Ue.prototype[t+"Right"]=function(r){return this.reverse()[t](r).reverse()}})),wr(["filter","map","takeWhile"],(function(t,r){var e=r+1,n=1==e||3==e;Ue.prototype[t]=function(t){var r=this.clone();return r.__iteratees__.push({iteratee:io(t,3),type:e}),r.__filtered__=r.__filtered__||n,r}})),wr(["head","last"],(function(t,r){var e="take"+(r?"Right":"");Ue.prototype[t]=function(){return this[e](1).value()[0]}})),wr(["initial","tail"],(function(t,r){var e="drop"+(r?"":"Right");Ue.prototype[t]=function(){return this.__filtered__?new Ue(this):this[e](1)}})),Ue.prototype.compact=function(){return this.filter(tu)},Ue.prototype.find=function(t){return this.filter(t).head()},Ue.prototype.findLast=function(t){return this.reverse().find(t)},Ue.prototype.invokeMap=Vn((function(t,r){return"function"==typeof t?new Ue(this):this.map((function(e){return jn(e,t,r)}))})),Ue.prototype.reject=function(t){return this.filter(Fs(io(t)))},Ue.prototype.slice=function(t,r){t=ha(t);var n=this;return n.__filtered__&&(t>0||r<0)?new Ue(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),r!==e&&(n=(r=ha(r))<0?n.dropRight(-r):n.take(r-t)),n)},Ue.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ue.prototype.toArray=function(){return this.take(h)},Cn(Ue.prototype,(function(t,r){var n=/^(?:filter|find|map|reject)|While$/.test(r),i=/^(?:head|last)$/.test(r),o=De[i?"take"+("last"==r?"Right":""):r],s=i||/^find/.test(r);o&&(De.prototype[r]=function(){var r=this.__wrapped__,a=i?[1]:arguments,u=r instanceof Ue,c=a[0],l=u||Hs(r),h=function(t){var r=o.apply(De,kr([t],a));return i&&f?r[0]:r};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,d=!!this.__actions__.length,v=s&&!f,g=u&&!d;if(!s&&l){r=g?r:new Ue(this);var p=t.apply(r,a);return p.__actions__.push({func:ls,args:[h],thisArg:e}),new $e(p,f)}return v&&g?t.apply(this,a):(p=this.thru(h),v?i?p.value()[0]:p.value():p)})})),wr(["pop","push","shift","sort","splice","unshift"],(function(t){var r=jt[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);De.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return r.apply(Hs(i)?i:[],t)}return this[e]((function(e){return r.apply(Hs(e)?e:[],t)}))}})),Cn(Ue.prototype,(function(t,r){var e=De[r];if(e){var n=e.name+"";Mt.call(je,n)||(je[n]=[]),je[n].push({name:r,func:e})}})),je[Di(e,2).name]=[{name:"wrapper",func:e}],Ue.prototype.clone=function(){var t=new Ue(this.__wrapped__);return t.__actions__=ki(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ki(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ki(this.__views__),t},Ue.prototype.reverse=function(){if(this.__filtered__){var t=new Ue(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ue.prototype.value=function(){var t=this.__wrapped__.value(),r=this.__dir__,e=Hs(t),n=r<0,i=e?t.length:0,o=function(t,r,e){for(var n=-1,i=e.length;++n<i;){var o=e[n],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":r-=s;break;case"take":r=ge(r,t+s);break;case"takeRight":t=ve(t,r-s)}}return{start:t,end:r}}(0,i,this.__views__),s=o.start,a=o.end,u=a-s,c=n?a:s-1,l=this.__iteratees__,h=l.length,f=0,d=ge(u,this.__takeCount__);if(!e||!n&&i==u&&d==u)return li(t,this.__actions__);var v=[];t:for(;u--&&f<d;){for(var g=-1,p=t[c+=r];++g<h;){var C=l[g],w=C.type,L=(0,C.iteratee)(p);if(2==w)p=L;else if(!L){if(1==w)continue t;break t}}v[f++]=p}return v},De.prototype.at=hs,De.prototype.chain=function(){return cs(this)},De.prototype.commit=function(){return new $e(this.value(),this.__chain__)},De.prototype.next=function(){this.__values__===e&&(this.__values__=ca(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},De.prototype.plant=function(t){for(var r,n=this;n instanceof Pe;){var i=Do(n);i.__index__=0,i.__values__=e,r?o.__wrapped__=i:r=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,r},De.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Ue){var r=t;return this.__actions__.length&&(r=new Ue(this)),(r=r.reverse()).__actions__.push({func:ls,args:[Jo],thisArg:e}),new $e(r,this.__chain__)}return this.thru(Jo)},De.prototype.toJSON=De.prototype.valueOf=De.prototype.value=function(){return li(this.__wrapped__,this.__actions__)},De.prototype.first=De.prototype.head,nr&&(De.prototype[nr]=function(){return this}),De}();sr?((sr.exports=ae)._=ae,or._=ae):ir._=ae}).call(C)}));class Wn{constructor(t,r){var e,n;this.sv=t,this.storesByType={},this.storesXToType={},this.storesYToType={},null===(e=this.sv.selectionStoreConnector)||void 0===e||e.beforeUpdate(),this.columns=this.getViewportColumnData(r),null===(n=this.sv.scrollingService)||void 0===n||n.unregister()}onColumnResize(t,r,e){var n;null===(n=this.sv.dimensionProvider)||void 0===n||n.setDimensionSize(t,r.detail);const i=Nn.reduce(r.detail||{},((t,r,n)=>{const i=ae(e,parseInt(n,10));return i&&(t[i.prop]=Object.assign(Object.assign({},i),{size:r})),t}),{});this.sv.resize(i)}getViewportColumnData(t){const r=[];let e=0;return he.forEach((n=>{const i=this.sv.columnProvider.stores[n].store;if(!i.get("items").length)return;const o={colType:n,position:{x:e,y:1},contentHeight:t,fixWidth:"rgCol"!==n,uuid:`${this.sv.uuid}-${e}`,viewports:this.sv.viewportProvider.stores,dimensions:this.sv.dimensionProvider.stores,rowStores:this.sv.dataProvider.stores,colStore:i,onHeaderresize:t=>this.onColumnResize(n,t,i)};"rgCol"===n&&(o.onResizeViewport=t=>{var r;return null===(r=this.sv.viewportProvider)||void 0===r?void 0:r.setViewport(t.detail.dimension,{virtualSize:t.detail.size})});const s=this.gatherColumnData(o),a=this.registerCol(s.position.x,n),u=this.dataViewPort(o).reduce(((t,r)=>{const e=this.registerSegment(r.position);e.setLastCell(r.lastCell);const n=this.registerRow(r.position.y,r.type),i=Object.assign(Object.assign({},r),{rowSelectionStore:n,segmentSelectionStore:e.store,ref:t=>this.sv.selectionStoreConnector.registerSection(t),onSetRange:t=>e.setRangeArea(t.detail),onSetTempRange:t=>e.setTempArea(t.detail),onFocusCell:t=>{e.clearFocus(),this.sv.selectionStoreConnector.focus(e,t.detail)}});return t.push(i),t}),[]);r.push(Object.assign(Object.assign({},s),{columnSelectionStore:a,dataPorts:u})),e++})),r}registerSegment(t){return this.sv.selectionStoreConnector.register(t)}registerRow(t,r){return this.storesByType[r]=t,this.storesYToType[t]=r,this.sv.selectionStoreConnector.registerRow(t).store}registerCol(t,r){return this.storesByType[r]=t,this.storesXToType[t]=r,this.sv.selectionStoreConnector.registerColumn(t).store}gatherColumnData(t){const r=t.uuid,e=t.dimensions[t.colType].store.get("realSize"),n={contentWidth:e,class:t.colType,[`${wn}`]:t.uuid,contentHeight:t.contentHeight,key:t.colType,onResizeViewport:t.onResizeViewport};t.fixWidth&&(n.style={minWidth:`${e}px`});const i={parent:r,colData:se(t.colStore),dimensionCol:t.dimensions[t.colType].store,groups:t.colStore.get("groups"),groupingDepth:t.colStore.get("groupingDepth"),onHeaderresize:t.onHeaderresize};return{prop:n,position:t.position,headerProp:i,parent:r,viewportCol:t.viewports[t.colType].store}}dataViewPort(t){const r={rowPinStart:"header",rgRow:"content",rowPinEnd:"footer"};let e=0;return le.reduce(((n,i)=>{const o=t.viewports[i].store.get("realCount")||"rgRow"===i,s=Object.assign(Object.assign({},t),{position:Object.assign(Object.assign({},t.position),{y:o?e:Hn})});return n.push(this.dataPartition(s,i,r[i],"rgRow"!==i)),o&&e++,n}),[])}dataPartition(t,r,e,n){return{colData:t.colStore,viewportCol:t.viewports[t.colType].store,viewportRow:t.viewports[r].store,lastCell:Bn(t,r),slot:e,type:r,canDrag:!n,position:t.position,uuid:`${t.uuid}-${t.position.x}-${t.position.y}`,dataStore:t.rowStores[r].store,dimensionCol:t.dimensions[t.colType].store,dimensionRow:t.dimensions[r].store,style:n?{height:`${t.dimensions[r].store.get("realSize")}px`}:void 0}}scrollToCell(t){for(let r in t)this.sv.scrollingService.onScroll({dimension:"x"===r?"rgCol":"rgRow",coordinate:t[r]})}clearFocused(){this.sv.selectionStoreConnector.clearAll()}clearEdit(){this.sv.selectionStoreConnector.setEdit(!1)}getFocused(){const t=this.sv.selectionStoreConnector.focusedStore;if(!t)return null;const r=this.storesXToType[t.position.x],e=this.sv.columnProvider.getColumn(t.cell.x,r),n=this.storesYToType[t.position.x];return{column:e,model:this.sv.dataProvider.getModel(t.cell.x,n),cell:t.cell,colType:r,rowType:n}}getSelectedRange(){return this.sv.selectionStoreConnector.selectedRange}setEdit(t,r,e,n){var i;const o=this.storesByType;null===(i=this.sv.selectionStoreConnector)||void 0===i||i.setEditByCell({x:o[e],y:o[n]},{x:r,y:t})}}const Vn=({resize:t,editors:r,rowClass:n,readonly:i,range:o,columns:s,useClipboard:a,columnFilter:u,registerElement:c,onEdit:l,onScroll:h})=>{const f=[];for(let d of s){const s=[e("revogr-header",Object.assign({viewportCol:d.viewportCol},d.headerProp,{selectionStore:d.columnSelectionStore,slot:"header",columnFilter:u,canResize:t}))];d.dataPorts.forEach(((t,u)=>{const c=d.prop.key+(u+1),h=e("revogr-overlay-selection",Object.assign({},t,{slot:t.slot,selectionStore:t.segmentSelectionStore,editors:r,readonly:i,range:o,useClipboard:a,onSetEdit:({detail:t})=>l(t)}),e("revogr-data",Object.assign({},t,{[wn]:t.uuid},{key:c,readonly:i,range:o,rowClass:n,rowSelectionStore:t.rowSelectionStore,slot:"data"})),e("revogr-temp-range",{selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}),e("revogr-focus",{selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}));s.push(h)})),f.push(e("revogr-viewport-scroll",Object.assign({},d.prop,{ref:t=>c(t,d.prop.key),onScrollViewport:t=>h(t.detail,d.prop.key)}),s))}return f};class Gn{constructor(t){this.setViewport=t,this.elements={}}async onScroll(t,r){let e;for(let n in this.elements)if(this.isPinnedColumn(r)&&"rgCol"===t.dimension){if(n===r||!t.delta)continue;for(let r of this.elements[n])r.changeScroll&&(e=r.changeScroll(t))}else{if("rgCol"===t.dimension&&"headerRow"===n)continue;for(let r of this.elements[n])r.setScroll(t)}let n=t;e&&(n=await e),this.setViewport(n)}isPinnedColumn(t){return["colPinStart","colPinEnd"].indexOf(t)>-1}registerElements(t){this.elements=t}registerElement(t,r){this.elements[r]||(this.elements[r]=[]),t?this.elements[r].push(t):this.elements[r]&&delete this.elements[r]}unregister(){delete this.elements,this.elements={}}}class qn extends ve{constructor(t,r){super(t),this.dimensionProvider=r,this.stretchedColumn=null,this.scrollSize=Ee(document),this.addEventListener("beforecolumnapplied",(({detail:{columns:t}})=>this.applyStretch(t)))}setScroll({type:t,hasScroll:r}){var e;"rgRow"===t&&this.stretchedColumn&&(null===(e=this.stretchedColumn)||void 0===e?void 0:e.initialSize)===this.stretchedColumn.size&&r&&(this.stretchedColumn.size-=this.scrollSize,this.apply(),this.dropChanges())}activateChanges(){this.addEventListener("scrollchange",(({detail:t})=>this.setScroll(t)))}dropChanges(){this.stretchedColumn=null,this.removeEventListener("scrollchange")}apply(){this.stretchedColumn&&this.dimensionProvider.setDimensionSize("rgCol",{[this.stretchedColumn.index]:this.stretchedColumn.size})}applyStretch(t){this.dropChanges();let r=this.revogrid.clientWidth-1;if(Nn.each(t,((t,e)=>{const n=this.dimensionProvider.stores[e].store.get("realSize");r-=n})),r>0){const e=t.rgCol.length-1,n=t.rgCol[e],i=(null==n?void 0:n.size)||this.revogrid.colSize||0,o=r+i-1;n&&!n.autoSize&&i<o&&(this.stretchedColumn={initialSize:o,index:e,size:o},this.apply(),this.activateChanges())}}}const Kn=class{constructor(t){n(this,t),this.beforeedit=i(this,"beforeedit",7),this.beforerangeedit=i(this,"beforerangeedit",7),this.afteredit=i(this,"afteredit",7),this.beforeautofill=i(this,"beforeautofill",7),this.beforeaange=i(this,"beforeaange",7),this.roworderchanged=i(this,"roworderchanged",7),this.beforesourcesortingapply=i(this,"beforesourcesortingapply",7),this.beforesortingapply=i(this,"beforesortingapply",7),this.beforesorting=i(this,"beforesorting",7),this.rowdragstart=i(this,"rowdragstart",7),this.headerclick=i(this,"headerclick",7),this.beforecellfocus=i(this,"beforecellfocus",7),this.beforefocuslost=i(this,"beforefocuslost",7),this.beforesourceset=i(this,"beforesourceset",7),this.aftersourceset=i(this,"aftersourceset",7),this.beforecolumnsset=i(this,"beforecolumnsset",7),this.beforecolumnapplied=i(this,"beforecolumnapplied",7),this.aftercolumnsset=i(this,"aftercolumnsset",7),this.beforefilterapply=i(this,"beforefilterapply",7),this.beforefiltertrimmed=i(this,"beforefiltertrimmed",7),this.beforetrimmed=i(this,"beforetrimmed",7),this.aftertrimmed=i(this,"aftertrimmed",7),this.viewportscroll=i(this,"viewportscroll",7),this.beforeexport=i(this,"beforeexport",7),this.beforeeditstart=i(this,"beforeeditstart",7),this.aftercolumnresize=i(this,"aftercolumnresize",7),this.frameSize=1,this.rowSize=0,this.colSize=100,this.range=!1,this.readonly=!1,this.resize=!1,this.canFocus=!0,this.useClipboard=!0,this.columns=[],this.source=[],this.pinnedTopSource=[],this.pinnedBottomSource=[],this.rowDefinitions=[],this.editors={},this.columnTypes={},this.theme="default",this.rowClass="",this.autoSizeColumn=!1,this.filter=!1,this.trimmedRows={},this.exporting=!1,this.stretch=!0,this.extraElements=[],this.uuid=null,this.viewport=null,this.internalPlugins=[],this.subscribers={}}async refresh(t="all"){this.dataProvider.refresh(t)}async scrollToRow(t=0){const r=this.dimensionProvider.getViewPortPos({coordinate:t,dimension:"rgRow"});await this.scrollToCoordinate({y:r})}async scrollToColumnIndex(t=0){const r=this.dimensionProvider.getViewPortPos({coordinate:t,dimension:"rgCol"});await this.scrollToCoordinate({x:r})}async scrollToColumnProp(t){const r=this.columnProvider.getColumnIndexByProp(t,"rgCol");if(r<0)return;const e=this.dimensionProvider.getViewPortPos({coordinate:r,dimension:"rgCol"});await this.scrollToCoordinate({x:e})}async updateColumns(t){this.columnProvider.updateColumns(t)}async addTrimmed(t,r="external",e="rgRow"){const n=this.beforetrimmed.emit({trimmed:t,trimmedType:r,type:e});return n.defaultPrevented||(this.dataProvider.setTrimmed({[r]:n.detail.trimmed},e),this.aftertrimmed.emit()),n}async scrollToCoordinate(t){var r;null===(r=this.viewport)||void 0===r||r.scrollToCell(t)}async setCellEdit(t,r,e="rgRow"){var n;const i=pe.getColumnByProp(this.columns,r);i&&(await Se(),null===(n=this.viewport)||void 0===n||n.setEdit(t,this.columnProvider.getColumnIndexByProp(r,"rgCol"),i.pin||"rgCol",e))}async registerVNode(t){this.extraElements.push(...t),this.extraElements=[...this.extraElements]}async getSource(t="rgRow"){return this.dataProvider.stores[t].store.get("source")}async getVisibleSource(t="rgRow"){return se(this.dataProvider.stores[t].store)}async getSourceStore(t="rgRow"){return this.dataProvider.stores[t].store}async getColumnStore(t="rgCol"){return this.columnProvider.stores[t].store}async updateColumnSorting(t,r,e,n){return this.columnProvider.updateColumnSorting(t,r,e,n)}async clearSorting(){this.columnProvider.clearSorting()}async getColumns(){return this.columnProvider.getColumns()}async clearFocus(){var t;const r=await this.getFocused();this.beforefocuslost.emit(r).defaultPrevented||(this.selectionStoreConnector.clearAll(),null===(t=this.viewport)||void 0===t||t.clearFocused())}async getPlugins(){return[...this.internalPlugins]}async getFocused(){var t;return null===(t=this.viewport)||void 0===t?void 0:t.getFocused()}async getSelectedRange(){var t;return null===(t=this.viewport)||void 0===t?void 0:t.getSelectedRange()}handleOutsideClick({target:t}){(null==t?void 0:t.closest(`[${wn}="${this.uuid}"]`))||this.clearFocus()}onRowDragStarted(t){var r;t.cancelBubble=!0;const e=this.rowdragstart.emit(t.detail);e.defaultPrevented?t.preventDefault():null===(r=this.orderService)||void 0===r||r.start(this.element,Object.assign(Object.assign({},t.detail),e.detail))}onRowDragEnd(){var t;null===(t=this.orderService)||void 0===t||t.end()}onRowDrag({detail:t}){var r;null===(r=this.orderService)||void 0===r||r.move(t)}onRowMouseMove(t){var r;t.cancelBubble=!0,null===(r=this.orderService)||void 0===r||r.moveTip(t.detail)}async onBeforeEdit(t){t.cancelBubble=!0;const{defaultPrevented:r,detail:e}=this.beforeedit.emit(t.detail);await Se(),r||(this.dataProvider.setCellData(e),this.afteredit.emit(e))}onBeforeRangeEdit(t){t.cancelBubble=!0;const{defaultPrevented:r}=this.beforerangeedit.emit(t.detail);r?t.preventDefault():this.afteredit.emit(t.detail)}onRangeChanged(t){t.cancelBubble=!0,this.beforeaange.emit(t.detail).defaultPrevented&&t.preventDefault(),this.beforeautofill.emit(t.detail)}onRowDropped(t){t.cancelBubble=!0;const{defaultPrevented:r}=this.roworderchanged.emit(t.detail);r&&t.preventDefault()}onHeaderClick(t){const{defaultPrevented:r}=this.headerclick.emit(Object.assign(Object.assign({},t.detail.column),{originalEvent:t.detail.originalEvent}));r&&t.preventDefault()}onCellFocus(t){t.cancelBubble=!0;const{defaultPrevented:r}=this.beforecellfocus.emit(t.detail);this.canFocus&&!r||t.preventDefault()}columnChanged(t=[]){this.dimensionProvider.drop();const r=pe.getColumns(t,0,this.columnTypes);this.beforecolumnsset.emit(r);for(let t of he){const e=r.columns[t];this.dimensionProvider.setRealSize(e.length,t),this.dimensionProvider.setColumns(t,pe.getSizes(e),"rgCol"!==t)}this.beforecolumnapplied.emit(r);const e=this.columnProvider.setColumns(r);this.aftercolumnsset.emit({columns:e,order:this.columnProvider.order})}themeChanged(t){this.themeService.register(t),this.dimensionProvider.setSettings({originItemSize:this.themeService.rowSize,frameOffset:this.frameSize||0},"rgRow"),this.dimensionProvider.setSettings({originItemSize:this.colSize,frameOffset:this.frameSize||0},"rgCol")}dataChanged(t=[]){let r=[...t];r=this.beforesourceset.emit({type:"rgRow",source:r}).detail.source,r=this.dataProvider.setData(r,"rgRow"),this.aftersourceset.emit({type:"rgRow",source:r})}dataBottomChanged(t=[]){this.dataProvider.setData(t,"rowPinEnd")}dataTopChanged(t=[]){this.dataProvider.setData(t,"rowPinStart")}rowDefChanged(t=[]){if(!t.length)return;const r=Ar(t,((t,r)=>(t[r.type]||(t[r.type]={}),r.size&&(t[r.type].sizes||(t[r.type].sizes={}),t[r.type].sizes[r.index]=r.size),t)),{});Dr(r,((t,r)=>{t.sizes&&this.dimensionProvider.setDimensionSize(r,t.sizes)}))}trimmedRowsChanged(t={}){this.addTrimmed(t)}groupingChanged(t={}){let r;for(let t of this.internalPlugins){const e=t;if(e.setGrouping){r=e;break}}r&&r.setGrouping(t||{})}applyStretch(t){let r=this.internalPlugins.filter((t=>!!t.applyStretch))[0];if(t)r?r.applyStretch(this.columnProvider.getRawColumns()):this.internalPlugins.push(new qn(this.element,this.dimensionProvider));else if(r){const t=this.internalPlugins.indexOf(r);this.internalPlugins.splice(t,1)}}connectedCallback(){this.viewportProvider=new $e,this.themeService=new v({rowSize:this.rowSize}),this.dimensionProvider=new Me(this.viewportProvider),this.columnProvider=new pe,this.dataProvider=new Ce(this.dimensionProvider),this.uuid=`${(new Date).getTime()}-rvgrid`,this.autoSizeColumn&&this.internalPlugins.push(new Ue(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider,dimensionProvider:this.dimensionProvider},"object"==typeof this.autoSizeColumn?this.autoSizeColumn:void 0)),this.filter&&this.internalPlugins.push(new tn(this.element,this.uuid,"object"==typeof this.filter?this.filter:void 0)),this.exporting&&this.internalPlugins.push(new Fn(this.element)),this.internalPlugins.push(new pn(this.element)),this.plugins&&this.plugins.forEach((t=>{this.internalPlugins.push(new t(this.element))})),this.internalPlugins.push(new _n(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider})),this.applyStretch(this.stretch),this.themeChanged(this.theme),this.columnChanged(this.columns),this.dataChanged(this.source),this.dataTopChanged(this.pinnedTopSource),this.dataBottomChanged(this.pinnedBottomSource),this.trimmedRowsChanged(this.trimmedRows),this.rowDefChanged(this.rowDefinitions),this.groupingChanged(this.grouping),this.selectionStoreConnector=new Zn,this.scrollingService=new Gn((t=>{this.dimensionProvider.setViewPortCoordinate({coordinate:t.coordinate,type:t.dimension}),this.viewportscroll.emit(t)})),this.subscribers={click:this.handleOutsideClick.bind(this)};for(let t in this.subscribers)document.addEventListener(t,this.subscribers[t])}disconnectedCallback(){Dr(this.internalPlugins,(t=>t.destroy())),this.internalPlugins=[];for(let t in this.subscribers)document.removeEventListener(t,this.subscribers[t]),delete this.subscribers[t]}render(){const t=this.dimensionProvider.stores.rgRow.store.get("realSize");this.viewport=new Wn({columnProvider:this.columnProvider,dataProvider:this.dataProvider,dimensionProvider:this.dimensionProvider,viewportProvider:this.viewportProvider,uuid:this.uuid,scrollingService:this.scrollingService,orderService:this.orderService,selectionStoreConnector:this.selectionStoreConnector,resize:t=>this.aftercolumnresize.emit(t)},t);const r=[];if(this.rowHeaders){const n=this.viewport.columns[0];r.push(e("revogr-row-headers",{height:t,resize:this.resize,dataPorts:n.dataPorts,headerProp:n.headerProp,uiid:n.prop[wn],rowHeaderColumn:"object"==typeof this.rowHeaders?this.rowHeaders:void 0,onScrollViewport:({detail:t})=>this.scrollingService.onScroll(t,"headerRow"),onElementToScroll:({detail:t})=>this.scrollingService.registerElement(t,"headerRow")}))}return r.push(e(Vn,{columnFilter:!!this.filter,resize:this.resize,readonly:this.readonly,range:this.range,rowClass:this.rowClass,editors:this.editors,useClipboard:this.useClipboard,columns:this.viewport.columns,onEdit:t=>{this.beforeeditstart.emit(t).defaultPrevented||this.selectionStoreConnector.setEdit(!t.isCancel&&t.val)},registerElement:(t,r)=>this.scrollingService.registerElement(t,r),onScroll:t=>this.scrollingService.onScroll(t)})),e(o,Object.assign({},{[`${wn}`]:this.uuid}),e(Dn,{viewports:this.viewportProvider.stores,dimensions:this.dimensionProvider.stores,orderRef:t=>this.orderService=t,registerElement:(t,r)=>this.scrollingService.registerElement(t,r),nakedClick:()=>this.viewport.clearEdit(),onScroll:t=>this.scrollingService.onScroll(t)},r),this.extraElements)}get element(){return s(this)}static get watchers(){return{columns:["columnChanged"],theme:["themeChanged"],source:["dataChanged"],pinnedBottomSource:["dataBottomChanged"],pinnedTopSource:["dataTopChanged"],rowDefinitions:["rowDefChanged"],trimmedRows:["trimmedRowsChanged"],grouping:["groupingChanged"],stretch:["applyStretch"]}}};Kn.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revo-grid[theme=default]{font-size:12px}revo-grid[theme=default] revogr-header{text-align:center;line-height:30px;background-color:#f8f9fa}revo-grid[theme=default] revogr-header .group-rgRow{box-shadow:none}revo-grid[theme=default] revogr-header .header-rgRow,revo-grid[theme=default] revogr-header .group-rgRow{text-transform:uppercase;font-size:12px;color:#61656a}revo-grid[theme=default] revogr-header .header-rgRow{height:30px;box-shadow:0 -1px 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-header .rgHeaderCell{box-shadow:-1px 0 0 0 #c0c0c0, -1px 0 0 0 #c0c0c0 inset, 0 -1px 0 0 #c0c0c0, 0 -1px 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-header .rgHeaderCell.focused-cell{background:rgba(233, 234, 237, 0.5)}revo-grid[theme=default] .rowHeaders{background-color:#f8f9fa}revo-grid[theme=default] .rowHeaders revogr-data .rgCell{color:#61656a;box-shadow:0 -1px 0 0 #c0c0c0 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] .rowHeaders revogr-header{box-shadow:0 -1px 0 0 #c0c0c0 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-viewport-scroll.colPinStart revogr-data .rgRow .rgCell:last-child{box-shadow:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-viewport-scroll.colPinStart .footer-wrapper revogr-data .rgRow:first-child .rgCell{box-shadow:0 1px 0 0 #c0c0c0 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-viewport-scroll.colPinEnd,revo-grid[theme=default] revogr-viewport-scroll.colPinEnd revogr-header{box-shadow:1px 0 0 #c0c0c0 inset}revo-grid[theme=default] .footer-wrapper revogr-data .rgRow:first-child .rgCell{box-shadow:0 1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset, 0 -1px 0 0 #e2e3e3 inset}revo-grid[theme=default] revogr-data{text-align:center}revo-grid[theme=default] revogr-data .rgRow{line-height:27px;box-shadow:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset}revo-grid[theme=default] revogr-data .rgRow.focused-rgRow{background-color:rgba(233, 234, 237, 0.5)}revo-grid[theme=default] revogr-data .rgCell{box-shadow:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset}revo-grid[theme=default] revogr-data .rgCell.disabled{background-color:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset}revo-grid[theme=material]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}revo-grid[theme=material] revogr-header{line-height:50px;font-weight:600;text-align:left}revo-grid[theme=material] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=material] revogr-header .header-rgRow{height:50px}revo-grid[theme=material] revogr-data{text-align:left}revo-grid[theme=material] revogr-data .rgRow{line-height:42px}revo-grid[theme=material] revogr-data .rgCell{padding:0 15px}revo-grid[theme=material] .viewports{width:100%}revo-grid[theme=material] .rowHeaders{background-color:#f7faff}revo-grid[theme=material] .rowHeaders revogr-data .rgCell{color:#757a82}revo-grid[theme=material] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #f1f1f1, 0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-header .rgHeaderCell.sortable:hover{background-color:#f1f1f1}revo-grid[theme=material] revogr-header .rgHeaderCell.focused-cell{background:rgba(233, 234, 237, 0.5)}revo-grid[theme=material] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #f1f1f1}revo-grid[theme=material] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #f1f1f1}revo-grid[theme=material] revogr-data .rgRow{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-data .rgRow.focused-rgRow{background-color:rgba(233, 234, 237, 0.5)}revo-grid[theme=material] revogr-data .rgCell{color:rgba(0, 0, 0, 0.87)}revo-grid[theme=material] revogr-data .rgCell.disabled{background-color:#f7f7f7}revo-grid[theme=material] revogr-data .revo-draggable>.revo-drag-icon{background-color:#d4d4d4}revo-grid[theme=material] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:black}revo-grid[theme=darkMaterial]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#d8d8d8}revo-grid[theme=darkMaterial] revogr-header{line-height:50px;font-weight:600;text-align:left}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=darkMaterial] revogr-header .header-rgRow{height:50px}revo-grid[theme=darkMaterial] revogr-data{text-align:left}revo-grid[theme=darkMaterial] revogr-data .rgRow{line-height:42px}revo-grid[theme=darkMaterial] revogr-data .rgCell{padding:0 15px}revo-grid[theme=darkMaterial] .viewports{width:100%}revo-grid[theme=darkMaterial] .rowHeaders{background-color:rgba(40, 39, 43, 0.8)}revo-grid[theme=darkMaterial] .rowHeaders revogr-data .rgCell{color:rgba(216, 216, 216, 0.8)}revo-grid[theme=darkMaterial] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #404040, 0 -1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell.sortable:hover{background-color:rgba(64, 64, 64, 0.5)}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell.focused-cell{background:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkMaterial] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #404040}revo-grid[theme=darkMaterial] revogr-data .rgCell{color:rgba(216, 216, 216, 0.9)}revo-grid[theme=darkMaterial] revogr-data .rgRow{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-data .rgRow.focused-rgRow{background-color:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkMaterial] revogr-data .revo-draggable>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.5)}revo-grid[theme=darkMaterial] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.7)}revo-grid[theme=darkMaterial] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #404040}revo-grid[theme=darkCompact]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#d8d8d8}revo-grid[theme=darkCompact] revogr-header{line-height:45px;font-weight:600;text-align:left}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=darkCompact] revogr-header .header-rgRow{height:45px}revo-grid[theme=darkCompact] revogr-data{text-align:left}revo-grid[theme=darkCompact] revogr-data .rgRow{line-height:32px}revo-grid[theme=darkCompact] revogr-data .rgCell{padding:0 15px}revo-grid[theme=darkCompact] .viewports{width:100%}revo-grid[theme=darkCompact] .rowHeaders{background-color:rgba(40, 39, 43, 0.8)}revo-grid[theme=darkCompact] .rowHeaders revogr-data .rgCell{color:rgba(216, 216, 216, 0.8)}revo-grid[theme=darkCompact] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #404040, 0 -1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell.sortable:hover{background-color:rgba(64, 64, 64, 0.5)}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell.focused-cell{background:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkCompact] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #404040}revo-grid[theme=darkCompact] revogr-data .rgCell{color:rgba(216, 216, 216, 0.9)}revo-grid[theme=darkCompact] revogr-data .rgRow{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-data .rgRow.focused-rgRow{background-color:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkCompact] revogr-data .revo-draggable>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.5)}revo-grid[theme=darkCompact] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.7)}revo-grid[theme=darkCompact] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #404040}revo-grid[theme=compact]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}revo-grid[theme=compact] revogr-header{line-height:45px;font-weight:600;text-align:left}revo-grid[theme=compact] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=compact] revogr-header .header-rgRow{height:45px}revo-grid[theme=compact] revogr-data{text-align:left}revo-grid[theme=compact] revogr-data .rgRow{line-height:32px}revo-grid[theme=compact] revogr-data .rgCell{padding:0 15px}revo-grid[theme=compact] .viewports{width:100%}revo-grid[theme=compact] .rowHeaders{background-color:#f7faff}revo-grid[theme=compact] .rowHeaders revogr-data .rgCell{color:#757a82}revo-grid[theme=compact] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #f1f1f1, 0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-header .rgHeaderCell.sortable:hover{background-color:#f1f1f1}revo-grid[theme=compact] revogr-header .rgHeaderCell.focused-cell{background:rgba(233, 234, 237, 0.5)}revo-grid[theme=compact] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #f1f1f1}revo-grid[theme=compact] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #f1f1f1}revo-grid[theme=compact] revogr-data .rgRow{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-data .rgRow.focused-rgRow{background-color:rgba(233, 234, 237, 0.5)}revo-grid[theme=compact] revogr-data .rgCell{color:rgba(0, 0, 0, 0.87)}revo-grid[theme=compact] revogr-data .rgCell.disabled{background-color:#f7f7f7}revo-grid[theme=compact] revogr-data .revo-draggable>.revo-drag-icon{background-color:#d4d4d4}revo-grid[theme=compact] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:black}revo-grid[theme=compact] revo-dropdown .rv-dr-root{padding:0px 9px}revo-grid{display:block;height:100%;font-family:Helvetica, Arial, Sans-Serif, serif;font-size:14px;position:relative;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column;width:100%;height:100%}revo-grid .footer-wrapper,revo-grid .header-wrapper{width:100%}revo-grid .footer-wrapper revogr-data,revo-grid .header-wrapper revogr-data{z-index:3}revo-grid revo-dropdown{width:100%}revo-grid revo-dropdown .rv-dr-root{max-height:100%}revo-grid revo-dropdown.shrink label{opacity:0}revo-grid .viewports{max-height:100%;display:flex;flex-direction:row;align-items:flex-start;max-width:100%}revo-grid .main-viewport{flex-grow:1;height:0;display:flex;flex-direction:row}revo-grid .draggable{position:fixed;height:30px;line-height:30px;background:#fff;border-radius:3px;display:block;z-index:100;margin-top:5px;margin-right:-20px;box-shadow:0 4px 20px 0 rgba(0, 0, 0, 0.15);padding-left:20px;padding-right:5px}revo-grid .draggable.hidden{display:none}revo-grid .draggable .revo-alt-icon{background-color:black;position:absolute;left:5px;top:10px}revo-grid .draggable-wrapper.hidden{display:none}revo-grid .drag-position{position:absolute;left:0;right:0;height:1px;z-index:2;background:red}revo-grid .clipboard{position:absolute;left:0;top:0}revo-grid revogr-scroll-virtual{position:relative}revo-grid revogr-scroll-virtual.vertical,revo-grid revogr-scroll-virtual.horizontal{z-index:3}";class Xn{constructor(t,r){this.dataStore=t,this.source=r,this.unsubscribe=[],this.hasGrouping=!1,this.unsubscribe.push(r.onChange("source",(t=>this.checkGrouping(t)))),this.checkGrouping(r.get("source"))}get columns(){return se(this.source)}checkGrouping(t){for(let r of t){if(bn(r))return void(this.hasGrouping=!0);this.hasGrouping=!1}}isReadOnly(t,r){var e;const n=null===(e=this.columns[r])||void 0===e?void 0:e.readonly;return"function"==typeof n?n(this.rowDataModel(t,r)):n}static doMerge(t,r){let e=Object.assign(Object.assign({},r),t);return r.class&&("object"==typeof r.class&&"object"==typeof e.class?e.class=Object.assign(Object.assign({},r.class),e.class):"string"==typeof r.class&&"object"==typeof e.class?e.class[r.class]=!0:"string"==typeof e.class&&(e.class+=" "+r.class)),r.style&&(e.style=Object.assign(Object.assign({},r.style),e.style)),e}mergeProperties(t,r,e){var n;const i={rgCell:!0,disabled:this.isReadOnly(t,r)};let o=Object.assign(Object.assign({},e),{class:i});const s=null===(n=this.columns[r])||void 0===n?void 0:n.cellProperties;if(s){const e=s(this.rowDataModel(t,r));return e?Xn.doMerge(o,e):o}return o}customRenderer(t,r,n){var i;const o=null===(i=this.columns[r])||void 0===i?void 0:i.cellTemplate;if(o)return o(e,n)}getRowClass(t,r){return(ae(this.dataStore,t)||{})[r]||""}getCellData(t,r){const e=this.rowDataModel(t,r);return Xn.getData(e.model[e.prop])}getSaveData(t,r,e){void 0===e&&(e=this.getCellData(t,r));const n=this.rowDataModel(t,r);return{prop:n.prop,rowIndex:t,val:e,model:n.model,type:this.dataStore.get("type")}}getCellEditor(t,r,e){var n;const i=null===(n=this.columns[r])||void 0===n?void 0:n.editor;if(i)return"string"==typeof i?e[i]:i}rowDataModel(t,r){const e=this.columns[r];return{prop:null==e?void 0:e.prop,model:ae(this.dataStore,t)||{},data:this.dataStore.get("source"),column:e,rowIndex:t}}getRangeData(t){const r={},e=t.oldProps.length,n=this.copyRangeArray(t.oldRange,t.oldProps,this.dataStore),i=n.length;for(let o=t.newRange.y,s=0;o<t.newRange.y1+1;o++,s++){const a=n[s%i];for(let n=t.newRange.x,i=0;n<t.newRange.x1+1;n++,i++){if(o>=t.oldRange.y&&o<=t.oldRange.y1&&n>=t.oldRange.x&&n<=t.oldRange.x1)continue;const s=this.columns[n].prop,u=i%e;this.isReadOnly(o,n)||(r[o]||(r[o]={}),r[o][s]=a[u])}}return r}getTransformedDataToApply(t,r){const e={},n=r.length,i=this.columns.length,o=this.dataStore.get("items").length;let s=t.y,a=0;for(let u=0;s<o&&u<n;s++,u++){const o=r[u%n],c=(null==o?void 0:o.length)||0;let l=t.x;for(let t=0;l<i&&t<c;l++,t++){const r=this.columns[l].prop,n=t%i;this.isReadOnly(s,l)||(e[s]||(e[s]={}),e[s][r]=o[n])}a=Math.max(a,l-1)}return{changed:e,range:$n(t,{y:s-1,x:a})}}applyRangeData(t){const r={};for(let e in t){const n=r[e]=ae(this.dataStore,parseInt(e,10));for(let r in t[e])n[r]=t[e][r]}ue(this.dataStore,r)}getRangeStaticData(t,r){const e={};for(let n=t.y,i=0;n<t.y1+1;n++,i++)for(let i=t.x,o=0;i<t.x1+1;i++,o++){const t=this.columns[i].prop;this.isReadOnly(n,i)||(e[n]||(e[n]={}),e[n][t]=r)}return e}copyRangeArray(t,r,e){const n=[];for(let i=t.y;i<t.y1+1;i++){const t=[];for(let n of r){const r=ae(e,i);t.push(r[n])}n.push(t)}return n}static getData(t){return null==t?"":t.toString()}destroy(){this.unsubscribe.forEach((t=>t()))}}const Jn=({model:t,canDrag:r,onDragStart:n})=>{const i=[];return t.column.rowDrag&&function(t,r){return"function"==typeof t?t(r):!!t}(t.column.rowDrag,t)&&i.push(r?e("span",{class:"revo-draggable",onMouseDown:t=>n(t)},e("span",{class:"revo-drag-icon"})):e("span",{class:"revo-draggable"})),i.push(`${Xn.getData(t.model[t.prop])}`),i},Yn=({rowClass:t,size:r,start:n,style:i,depth:o},s)=>e("div",{class:`rgRow ${t||""}`,style:Object.assign(Object.assign({},i),{height:`${r}px`,transform:`translateY(${n}px)`,paddingLeft:o?10*o+"px":void 0})},s),Qn=t=>{const{model:r,itemIndex:n,hasExpand:i}=t,o=r["__rvgr-name"],s=r["__rvgr-expanded"],a=parseInt(r["__rvgr-depth"],10)||0;return i?e(Yn,Object.assign({},t,{rowClass:"groupingRow",depth:a}),e("button",{class:{"group-expand":!0},onClick:t=>function(t,r,e){const n=new CustomEvent("groupExpandClick",{detail:{model:r,virtualIndex:e},cancelable:!0,bubbles:!0});t.target.dispatchEvent(n)}(t,r,n)},e("svg",{"aria-hidden":"true",style:{transform:`rotate(${s?0:-90}deg)`},focusable:"false",viewBox:"0 0 448 512"},e("path",{fill:"currentColor",d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}))),o):e(Yn,Object.assign({},t,{rowClass:"groupingRow",depth:a}))},ti=class{constructor(t){n(this,t),this.dragStartCell=i(this,"dragStartCell",7)}onStoreChange(){var t;null===(t=this.columnService)||void 0===t||t.destroy(),this.columnService=new Xn(this.dataStore,this.colData)}connectedCallback(){this.onStoreChange()}disconnectedCallback(){var t;null===(t=this.columnService)||void 0===t||t.destroy()}render(){var t;const r=this.viewportRow.get("items"),n=this.viewportCol.get("items");if(!this.columnService.columns.length||!r.length||!n.length)return"";const i=null===(t=this.rowSelectionStore)||void 0===t?void 0:t.get("range"),o=[],s=this.dataStore.get("groupingDepth");for(let t of r){const r=ae(this.dataStore,t.itemIndex);if(mn(r)){o.push(e(Qn,Object.assign({},t,{model:r,hasExpand:this.columnService.hasGrouping})));continue}const a=[];let u=this.rowClass?this.columnService.getRowClass(t.itemIndex,this.rowClass):"";i&&t.itemIndex>=i.y&&t.itemIndex<=i.y1&&(u+=" focused-rgRow");for(let r of n)a.push(this.getCellRenderer(t,r,this.canDrag,this.columnService.hasGrouping?s:0));o.push(e(Yn,{rowClass:u,size:t.size,start:t.start},a))}return o}getCellRenderer(t,r,n=!1,i=0){const o=this.columnService.rowDataModel(t.itemIndex,r.itemIndex),s={"data-rgCol":r.itemIndex,"data-rgRow":t.itemIndex,style:{width:`${r.size}px`,transform:`translateX(${r.start}px)`}};i&&!r.itemIndex&&(s.style.paddingLeft=10*i+"px");const a=this.columnService.mergeProperties(t.itemIndex,r.itemIndex,s),u=this.columnService.customRenderer(t.itemIndex,r.itemIndex,o);return void 0!==u?e("div",Object.assign({},a),u):o.column?e("div",Object.assign({},a),e(Jn,{model:o,canDrag:n,onDragStart:t=>this.dragStartCell.emit(t)})):void console.error("Investigate column problem")}get element(){return s(this)}static get watchers(){return{dataStore:["onStoreChange"],colData:["onStoreChange"]}}};var ri,ei;ti.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-data{display:block;width:100%;position:relative}revogr-data .rgRow{position:absolute;width:100%;left:0}revogr-data .rgRow.groupingRow{font-weight:600}revogr-data .rgRow.groupingRow .group-expand{width:25px;height:100%;max-height:25px;margin-right:2px;background-color:transparent;border-color:transparent}revogr-data .rgRow.groupingRow .group-expand svg{width:7px}revogr-data .revo-draggable{border:none;height:32px;display:inline-flex;outline:0;padding:0;font-size:0.8125rem;box-sizing:border-box;align-items:center;white-space:nowrap;vertical-align:middle;justify-content:center;text-decoration:none;width:24px;height:100%;cursor:pointer}revogr-data .revo-draggable>.revo-drag-icon{vertical-align:middle;display:inline-block;pointer-events:none;transition:background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}revogr-data .rgCell{top:0;position:absolute;box-sizing:border-box;height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}revogr-data .rgCell.align-center{text-align:center}revogr-data .rgCell.align-left{text-align:left}revogr-data .rgCell.align-right{text-align:right}",function(t){t[t.MOUSE_LEFT=1]="MOUSE_LEFT",t[t.MOUSE_RIGHT=3]="MOUSE_RIGHT",t[t.MOUSE_MIDDLE=2]="MOUSE_MIDDLE",t[t.BACKSPACE=8]="BACKSPACE",t[t.COMMA=188]="COMMA",t[t.INSERT=45]="INSERT",t[t.DELETE=46]="DELETE",t[t.END=35]="END",t[t.ENTER=13]="ENTER",t[t.ESCAPE=27]="ESCAPE",t[t.CONTROL=17]="CONTROL",t[t.COMMAND_LEFT=91]="COMMAND_LEFT",t[t.COMMAND_RIGHT=93]="COMMAND_RIGHT",t[t.COMMAND_FIREFOX=224]="COMMAND_FIREFOX",t[t.ALT=18]="ALT",t[t.HOME=36]="HOME",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.PAGE_UP=33]="PAGE_UP",t[t.PERIOD=190]="PERIOD",t[t.SPACE=32]="SPACE",t[t.SHIFT=16]="SHIFT",t[t.CAPS_LOCK=20]="CAPS_LOCK",t[t.TAB=9]="TAB",t[t.ARROW_RIGHT=39]="ARROW_RIGHT",t[t.ARROW_LEFT=37]="ARROW_LEFT",t[t.ARROW_UP=38]="ARROW_UP",t[t.ARROW_DOWN=40]="ARROW_DOWN",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12",t[t.A=65]="A",t[t.C=67]="C",t[t.D=68]="D",t[t.F=70]="F",t[t.L=76]="L",t[t.O=79]="O",t[t.P=80]="P",t[t.S=83]="S",t[t.V=86]="V",t[t.X=88]="X"}(ri||(ri={})),function(t){t.ENTER="Enter",t.ENTER_NUM="NumpadEnter",t.V="KeyV",t.C="KeyC",t.ESCAPE="Escape",t.TAB="Tab",t.BACKSPACE="Backspace",t.DELETE="Delete",t.ARROW_RIGHT="ArrowRight",t.ARROW_LEFT="ArrowLeft",t.ARROW_UP="ArrowUp",t.ARROW_DOWN="ArrowDown",t.SHIFT="Shift"}(ei||(ei={}));const ni=ri;var ii;!function(t){t.mac="Mac"}(ii||(ii={}));const oi=ii;var si=function(t){return t!=t},ai=function(t){return null==t?[]:function(t,r){return wr(r,(function(r){return t[r]}))}(t,et(t))},ui=Math.max,ci=function(t,r,e,n){t=rt(t)?t:ai(t),e=e&&!n?Gr(e):0;var i=t.length;return e<0&&(e=ui(i+e,0)),rn(t)?e<=i&&t.indexOf(r,e)>-1:!!i&&function(t,r,e){return r==r?function(t,r,e){for(var n=e-1,i=t.length;++n<i;)if(t[n]===r)return n;return-1}(t,r,e):Ir(t,si,e)}(t,r,e)>-1};function li(t,r){return r.includes(oi.mac)?ci([ni.COMMAND_LEFT,ni.COMMAND_RIGHT,ni.COMMAND_FIREFOX],t):ni.CONTROL===t}function hi(t){return t===ei.ENTER||t===ei.ENTER_NUM}class fi{constructor(t,r){this.column=t,this.saveCallback=r,this.element=null,this.editCell=null}async componentDidRender(){var t;this.editInput&&(await Se(),null===(t=this.editInput)||void 0===t||t.focus())}onKeyDown(t){const r=hi(t.code),e=ei.TAB===t.code;(e||r)&&t.target&&this.saveCallback&&!t.isComposing&&(this.editInput.blur(),this.saveCallback(t.target.value,e))}render(){var t;return e("input",{type:"text",value:(null===(t=this.editCell)||void 0===t?void 0:t.val)||"",ref:t=>{this.editInput=t},onKeyDown:t=>this.onKeyDown(t)})}}const di=class{constructor(t){n(this,t),this.cellEdit=i(this,"cellEdit",3),this.closeEdit=i(this,"closeEdit",3),this.currentEditor=null}onSave(t,r){this.editCell&&this.cellEdit.emit({rgCol:this.editCell.x,rgRow:this.editCell.y,val:t,preventFocus:r})}componentWillRender(){this.currentEditor||(this.currentEditor=this.editor?new this.editor(this.column,((t,r)=>this.onSave(t,r)),(t=>this.closeEdit.emit(t))):new fi(this.column,((t,r)=>this.onSave(t,r))))}componentDidRender(){this.currentEditor&&(this.currentEditor.element=this.element.firstElementChild,this.currentEditor.componentDidRender&&this.currentEditor.componentDidRender())}disconnectedCallback(){this.currentEditor&&(this.currentEditor.disconnectedCallback&&this.currentEditor.disconnectedCallback(),this.currentEditor.element&&(this.currentEditor.element=null),this.currentEditor=null)}render(){return this.currentEditor?(this.currentEditor.editCell=this.editCell,e(o,{class:"edit-input-wrapper"},this.currentEditor.render(e))):""}get element(){return s(this)}};function vi({x:t,y:r},{el:e,rows:n,cols:i}){const{top:o,left:s,height:a,width:u}=e.getBoundingClientRect();let c=r-o;c>=a&&(c=a-1);let l=t-s;l>=u&&(l=u-1);const h=je(n,c),f=je(i,l);return f.itemIndex<0&&(f.itemIndex=0),h.itemIndex<0&&(h.itemIndex=0),{x:f.itemIndex,y:h.itemIndex}}function gi({x:t,y:r},{lastCell:e}){return t>=e.x||r>=e.y}function pi({x:t,y:r,x1:e,y1:n},i,o){const s=Re(i,r).start,a=Re(o,t).start,u=Re(i,n).end,c=Re(o,e).end;return{left:a,right:c,top:s,bottom:u,width:c-a,height:u-s}}function Ci(t,r,e){return{left:`${(n=pi(t,r,e)).left}px`,top:`${n.top}px`,width:`${n.width}px`,height:`${n.height}px`};var n}di.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-edit{display:block;position:absolute;background-color:#fff}revogr-edit input{height:100%;width:100%;box-sizing:border-box}revogr-edit revo-dropdown{height:100%}revogr-edit revo-dropdown.shrink fieldset legend>span{display:none}";const wi=class{constructor(t){n(this,t)}changed(t){null==t||t.scrollIntoView({block:"nearest",inline:"nearest"})}componentDidRender(){this.el&&this.changed(this.el)}render(){const t=this.selectionStore.get("focus");if(t){const r=Ci(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.dimensionRow.state,this.dimensionCol.state);return e(o,{class:"focused-cell",style:r})}}get el(){return s(this)}};wi.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-focus.focused-cell{box-shadow:-1px 0 0 #0d63e8 inset, 1px 0 0 #0d63e8 inset, 0 -1px 0 #0d63e8 inset, 0 1px 0 #0d63e8 inset;position:absolute;pointer-events:none;z-index:9;display:block}";var Li,mi=function(){try{var t=Ct(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),bi=function(t,r,e,n){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];r(n,s,e(s),t)}return n},xi=function(t,r,e,n){return nt(t,(function(t,i,o){r(n,t,e(t),o)})),n},yi=(Li=function(t,r,e){!function(t,r,e){"__proto__"==r&&mi?mi(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}(t,e,r)},function(t,r){var e={};return(D(t)?bi:xi)(t,Li,Fr(r),e)});const Ei=({column:t})=>e("i",{class:t.order});var ki;!function(t){t.start="resize:start",t.move="resize:move",t.end="resize:end"}(ki||(ki={}));const Si={"resizable-r":{bit:1,cursor:"ew-resize"},"resizable-rb":{bit:3,cursor:"se-resize"},"resizable-b":{bit:2,cursor:"s-resize"},"resizable-lb":{bit:6,cursor:"sw-resize"},"resizable-l":{bit:4,cursor:"w-resize"},"resizable-lt":{bit:12,cursor:"nw-resize"},"resizable-t":{bit:8,cursor:"n-resize"},"resizable-rt":{bit:9,cursor:"ne-resize"}};class ji{constructor(t,r){var e;this.initialProps=t,this.$event=r,this.mouseX=0,this.mouseY=0,this.width=0,this.height=0,this.changeX=0,this.changeY=0,this.disableCalcMap=15,this.props=(e=t,Object.assign(Object.assign({},e),{fitParent:e.fitParent||!1,active:e.active||[],disableAttributes:e.disableAttributes||[],minWidth:e.minWidth||0,minHeight:e.minHeight||0})),this.mouseMoveFunc=this.handleMove.bind(this),this.mouseUpFunc=this.handleUp.bind(this),this.minW=this.props.minWidth,this.minH=this.props.minHeight,this.maxW=this.props.maxWidth,this.maxH=this.props.maxHeight,this.parent={width:0,height:0},this.resizeState=0}set(t){this.$el=t,this.props.disableAttributes.forEach((t=>{switch(t){case"l":this.disableCalcMap&=-2;break;case"t":this.disableCalcMap&=-3;break;case"w":this.disableCalcMap&=-5;break;case"h":this.disableCalcMap&=-9}}))}emitEvent(t,r){this.$event&&this.$event(Object.assign({eventName:t,width:this.width+this.changeX,height:this.height+this.changeY,changedX:this.changeX,changedY:this.changeY},r))}static isTouchEvent(t){var r;return(null===(r=t.touches)||void 0===r?void 0:r.length)>=0}handleMove(t){if(!this.resizeState)return;let r,e;ji.isTouchEvent(t)?(r=t.touches[0].clientY,e=t.touches[0].clientX):(r=t.clientY,e=t.clientX);let n=this.resizeState&Si["resizable-r"].bit||this.resizeState&Si["resizable-l"].bit;if((this.resizeState&Si["resizable-t"].bit||this.resizeState&Si["resizable-b"].bit)&&8&this.disableCalcMap){let t=this.changeY+(r-this.mouseY);const e=this.height+t;e<this.minH&&(t=-(this.height-this.minH)),this.maxH&&e>this.maxH&&(t=this.maxH-this.height),this.changeY=t,this.mouseY=r,this.activeResizer&&(this.activeResizer.style.bottom=-this.changeY+"px")}if(n&&4&this.disableCalcMap){let t=this.changeX+(e-this.mouseX);const r=this.width+t;r<this.minW&&(t=-(this.width-this.minW)),this.maxW&&r>this.maxW&&(t=this.maxW-this.width),this.changeX=t,this.mouseX=e,this.activeResizer&&(this.activeResizer.style.right=-this.changeX+"px")}this.emitEvent(ki.move)}handleDown(t){if(!t.defaultPrevented){this.dropInitial();for(let r in Si){const e=t.target;if(this.$el.contains(e)&&(null==e?void 0:e.classList.contains(r))){document.body.style.cursor=Si[r].cursor,ji.isTouchEvent(t)?this.setInitials(t.touches[0],e):(t.preventDefault&&t.preventDefault(),this.setInitials(t,e)),this.resizeState=Si[r].bit,this.emitEvent(ki.start);break}}this.bindMove()}}handleUp(t){t.preventDefault(),0!==this.resizeState&&(this.resizeState=0,document.body.style.cursor="",this.emitEvent(ki.end)),this.dropInitial(),this.unbindMove()}setInitials({clientX:t,clientY:r},e){const n=getComputedStyle(this.$el);if(this.$el.classList.add("active"),this.activeResizer=e,4&this.disableCalcMap){this.mouseX=t,this.width=this.$el.clientWidth,this.parent.width=this.$el.parentElement.clientWidth;const r=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight);this.minW=Math.max(r,this.initialProps.minWidth||0),this.initialProps.maxWidth&&(this.maxW=Math.max(this.width,this.initialProps.maxWidth))}if(8&this.disableCalcMap){this.mouseY=r,this.height=this.$el.clientHeight,this.parent.height=this.$el.parentElement.clientHeight;const t=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom);this.minH=Math.max(t,this.initialProps.minHeight||0),this.initialProps.maxHeight&&(this.maxH=Math.max(this.height,this.initialProps.maxHeight))}}dropInitial(){this.changeX=this.changeY=this.minW=this.minH,this.width=this.height=0,this.activeResizer&&this.activeResizer.removeAttribute("style"),this.$el.classList.remove("active"),this.activeResizer=null}bindMove(){document.documentElement.addEventListener("mouseup",this.mouseUpFunc,!0),document.documentElement.addEventListener("touchend",this.mouseUpFunc,!0),document.documentElement.addEventListener("mousemove",this.mouseMoveFunc,!0),document.documentElement.addEventListener("touchmove",this.mouseMoveFunc,!0),document.documentElement.addEventListener("mouseleave",this.mouseUpFunc)}unbindMove(){document.documentElement.removeEventListener("mouseup",this.mouseUpFunc,!0),document.documentElement.removeEventListener("touchend",this.mouseUpFunc,!0),document.documentElement.removeEventListener("mousemove",this.mouseMoveFunc,!0),document.documentElement.removeEventListener("touchmove",this.mouseMoveFunc,!0),document.documentElement.removeEventListener("mouseleave",this.mouseUpFunc)}}const Ri=(t,r)=>{const n=[],i=t.canResize&&new ji(t,(r=>{r.eventName===ki.end&&t.onResize&&t.onResize(r)}))||null;if(t.canResize){if(t.active)for(let r in t.active)n.push(e("div",{onClick:t=>t.preventDefault(),onDblClick:r=>{r.preventDefault(),t.onDoubleClick&&t.onDoubleClick()},onMouseDown:t=>null==i?void 0:i.handleDown(t),onTouchStart:t=>null==i?void 0:i.handleDown(t),class:`resizable resizable-${t.active[r]}`}))}else if(t.active)for(let r in t.active)n.push(e("div",{onClick:t=>t.preventDefault(),onDblClick:r=>{r.preventDefault(),t.onDoubleClick&&t.onDoubleClick()},class:`no-resize resizable resizable-${t.active[r]}`}));return e("div",Object.assign({},t,{ref:t=>null==i?void 0:i.set(t)}),r,n)},zi=({data:t,props:r},n)=>{let i=(null==t?void 0:t.name)||"",o=r;if((null==t?void 0:t.columnTemplate)&&(i=t.columnTemplate(e,t)),null==t?void 0:t.columnProperties){const e=t.columnProperties(t);e&&"object"==typeof e&&(o=Xn.doMerge(r,e))}return e(Ri,Object.assign({},o),e("div",{class:"header-content"},i),n)},Oi=t=>{var r,n,i,o,s,a;const u={rgHeaderCell:!0,sortable:!!(null===(r=t.data)||void 0===r?void 0:r.sortable)};(null===(n=t.data)||void 0===n?void 0:n.order)&&(u[t.data.order]=!0);const l={"data-rgCol":t.column.itemIndex,canResize:t.canResize,minWidth:(null===(i=t.data)||void 0===i?void 0:i.minSize)||30,maxWidth:null===(o=t.data)||void 0===o?void 0:o.maxSize,active:["r"],class:u,style:{width:`${t.column.size}px`,transform:`translateX(${t.column.start}px)`},onResize:t.onResize,onDoubleClick(r){t.onDoubleClick({column:t.data,index:t.column.itemIndex,originalEvent:r})},onClick(r){!r.defaultPrevented&&t.onClick&&t.onClick({column:t.data,index:t.column.itemIndex,originalEvent:r})}};return t.range&&t.column.itemIndex>=t.range.x&&t.column.itemIndex<=t.range.x1&&"object"==typeof l.class&&(l.class["focused-cell"]=!0),e(zi,{data:t.data,props:l},(null===(s=t.data)||void 0===s?void 0:s.order)?e(Ei,{column:t.data}):"",t.canFilter&&!1!==(null===(a=t.data)||void 0===a?void 0:a.filter)?e(c,{column:t.data}):"")},Mi=t=>e(zi,{data:t.group,props:{canResize:t.canResize,minWidth:30*t.group.ids.length,maxWidth:0,active:["r"],class:{rgHeaderCell:!0},style:{transform:`translateX(${t.start}px)`,width:t.end-t.start+"px"},onResize:t.onResize}}),Fi=({depth:t,groups:r,visibleProps:n,dimensionCol:i,canResize:o,onResize:s})=>{const a=[];for(let u=0;u<t;u++){if(r[u])for(let t of r[u]){const r=Kr(t.ids,(t=>"number"==typeof n[t]));if(r>-1){const u=n[t.ids[r]]-r,c=u+t.ids.length-1,l=Re(i,u).start,h=Re(i,c).end;a.push(e(Mi,{start:l,end:h,group:t,canResize:o,onResize:t=>s(t.changedX,u,c)}))}}a.push(e("div",{class:"header-rgRow group"}))}return a},_i=class{constructor(t){n(this,t),this.initialHeaderClick=i(this,"initialHeaderClick",7),this.headerresize=i(this,"headerresize",7),this.headerdblClick=i(this,"headerdblClick",7),this.parent="",this.groupingDepth=0}onResize({width:t},r){this.headerresize.emit({[r]:t||0})}onResizeGroup(t,r,e){const n={},i=yi(this.viewportCol.get("items"),"itemIndex"),o=t/(e-r+1);for(let t=r;t<=e;t++){const r=i[t];r&&(n[t]=r.size+o)}this.headerresize.emit(n)}render(){var t;const r=this.viewportCol.get("items"),n=null===(t=this.selectionStore)||void 0===t?void 0:t.get("range"),i=[],o={};for(let t of r){const r=this.colData[t.itemIndex];i.push(e(Oi,{range:n,column:t,data:r,canFilter:!!this.columnFilter,canResize:this.canResize,onResize:r=>this.onResize(r,t.itemIndex),onDoubleClick:t=>this.headerdblClick.emit(t),onClick:t=>this.initialHeaderClick.emit(t)})),o[null==r?void 0:r.prop]=t.itemIndex}return[e("div",{class:"group-rgRow"},e(Fi,{canResize:this.canResize,visibleProps:o,groups:this.groups,dimensionCol:this.dimensionCol.state,depth:this.groupingDepth,onResize:(t,r,e)=>this.onResizeGroup(t,r,e)})),e("div",{class:"header-rgRow actual-rgRow"},i)]}get element(){return s(this)}};_i.style="@charset \"UTF-8\";.revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-header{position:relative;z-index:5;display:block}revogr-header .rgHeaderCell{display:flex}revogr-header .rgHeaderCell.align-center{text-align:center}revogr-header .rgHeaderCell.align-left{text-align:left}revogr-header .rgHeaderCell.align-right{text-align:right}revogr-header .rgHeaderCell.sortable{cursor:pointer}revogr-header .rgHeaderCell i.asc:after,revogr-header .rgHeaderCell i.desc:after{font-size:13px}revogr-header .rgHeaderCell i.asc:after{content:\"↑\"}revogr-header .rgHeaderCell i.desc:after{content:\"↓\"}revogr-header .rgHeaderCell,revogr-header .grouped-cell{position:absolute;box-sizing:border-box;height:100%;z-index:1}revogr-header .header-rgRow{display:block;position:relative}revogr-header .header-rgRow.group{z-index:0}revogr-header .group-rgRow{position:relative}revogr-header .rgHeaderCell.active{z-index:10}revogr-header .rgHeaderCell.active .resizable{background-color:deepskyblue}revogr-header .rgHeaderCell .header-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1}revogr-header .rgHeaderCell .resizable{display:block;position:absolute;z-index:90;touch-action:none;user-select:none}revogr-header .rgHeaderCell .resizable:hover{background-color:deepskyblue}revogr-header .rgHeaderCell>.resizable-r{cursor:ew-resize;width:6px;right:0;top:0;height:100%}revogr-header .rgHeaderCell>.resizable-rb{cursor:se-resize;width:6px;height:6px;right:0;bottom:0}revogr-header .rgHeaderCell>.resizable-b{cursor:s-resize;height:6px;bottom:0;width:100%;left:0}revogr-header .rgHeaderCell>.resizable-lb{cursor:sw-resize;width:6px;height:6px;left:0;bottom:0}revogr-header .rgHeaderCell>.resizable-l{cursor:w-resize;width:6px;left:0;height:100%;top:0}revogr-header .rgHeaderCell>.resizable-lt{cursor:nw-resize;width:6px;height:6px;left:0;top:0}revogr-header .rgHeaderCell>.resizable-t{cursor:n-resize;height:6px;top:0;width:100%;left:0}revogr-header .rgHeaderCell>.resizable-rt{cursor:ne-resize;width:6px;height:6px;right:0;top:0}revogr-header .rv-filter{visibility:hidden}";var Ai=function(){return b.Date.now()},Ti=Math.max,Di=Math.min,Ii=function(t,r,e){var n,i,o,s,a,u,c=0,l=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(r){var e=n,o=i;return n=i=void 0,c=r,s=t.apply(o,e)}function v(t){return c=t,a=setTimeout(p,r),l?d(t):s}function g(t){var e=t-u;return void 0===u||e>=r||e<0||h&&t-c>=o}function p(){var t=Ai();if(g(t))return C(t);a=setTimeout(p,function(t){var e=r-(t-u);return h?Di(e,o-(t-c)):e}(t))}function C(t){return a=void 0,f&&n?d(t):(n=i=void 0,s)}function w(){var t=Ai(),e=g(t);if(n=arguments,i=this,u=t,e){if(void 0===a)return v(u);if(h)return clearTimeout(a),a=setTimeout(p,r),d(u)}return void 0===a&&(a=setTimeout(p,r)),s}return r=Wr(r)||0,Q(e)&&(l=!!e.leading,o=(h="maxWait"in e)?Ti(Wr(e.maxWait)||0,r):o,f="trailing"in e?!!e.trailing:f),w.cancel=function(){void 0!==a&&clearTimeout(a),c=0,n=u=i=a=void 0},w.flush=function(){return void 0===a?s:C(Ai())},w};class Pi{constructor(t){this.config=t,this.currentCell=null,this.previousRow=null}endOrder(t,r){if(null===this.currentCell)return;const e=this.getCell(t,r);e.y!==this.currentCell.y&&(e.y<0?e.y=0:e.y<this.currentCell.y&&e.y++,this.config.positionChanged(this.currentCell.y,e.y)),this.clear()}startOrder(t,r){return this.currentCell=this.getCell(t,r),this.currentCell}move(t,r){const e=this.getRow(t,r);return this.previousRow===e.itemIndex||e.itemIndex<-1?null:(this.previousRow=e.itemIndex,e)}clear(){this.currentCell=null,this.previousRow=null}getRow(t,{el:r,rows:e}){const{top:n}=r.getBoundingClientRect(),i=je(e,t-n);return{itemIndex:i.itemIndex,start:i.start+n,end:i.end+n}}getCell({x:t,y:r},{el:e,rows:n,cols:i}){const{top:o,left:s}=e.getBoundingClientRect(),a=t-s,u=je(n,r-o);return{x:je(i,a).itemIndex,y:u.itemIndex}}}const $i=class{constructor(t){n(this,t),this.internalRowDragStart=i(this,"internalRowDragStart",7),this.internalRowDragEnd=i(this,"internalRowDragEnd",7),this.internalRowDrag=i(this,"internalRowDrag",7),this.internalRowMouseMove=i(this,"internalRowMouseMove",7),this.initialRowDropped=i(this,"initialRowDropped",7),this.rowMoveFunc=Ii((t=>{const r=this.rowOrderService.move(t,this.getData());null!==r&&this.internalRowDrag.emit(r)}),5)}onMouseOut(){this.clearOrder()}onMouseUp(t){this.endOrder(t)}async dragStart(t){t.preventDefault(),this.moveFunc&&this.clearOrder();const r=this.getData(),e=this.rowOrderService.startOrder(t,r),n=this.rowOrderService.getRow(t.y,r);this.internalRowDragStart.emit({cell:e,text:"Draggable item",pos:n,event:t}).defaultPrevented||(this.moveFunc=t=>this.move(t),document.addEventListener("mousemove",this.moveFunc))}async endOrder(t){this.rowOrderService.endOrder(t,this.getData()),this.clearOrder()}async clearOrder(){this.rowOrderService.clear(),document.removeEventListener("mousemove",this.moveFunc),this.moveFunc=null,this.internalRowDragEnd.emit()}move({x:t,y:r}){this.internalRowMouseMove.emit({x:t,y:r}),this.rowMoveFunc(r)}connectedCallback(){this.rowOrderService=new Pi({positionChanged:(t,r)=>this.onPositionChanged(t,r)})}onPositionChanged(t,r){if(this.initialRowDropped.emit({from:t,to:r}).defaultPrevented)return;const e=[...this.dataStore.get("items")],n=e.splice(t,1);e.splice(r,0,...n),ce(this.dataStore,e)}getData(){return{el:this.parent,rows:this.dimensionRow.state,cols:this.dimensionCol.state}}};class Ui{constructor(t,r){this.store=t,this.config=r,this.store=t}get edited(){return this.store.get("edit")}get focused(){return this.store.get("focus")}get ranged(){return this.store.get("range")}changeRange(t){return this.config.changeRange(t)}focus(t,r=!1){if(!t)return!1;let e=t;if(r){let t=this.store.get("focus");if(t)return this.config.changeRange($n(t,e))}return this.config.focus(t,e)}}class Hi{constructor(t){this.sv=t,this.ctrlDown=!1}async keyDown(t,r){var e;if(this.sv.selectionStoreService.focused)if(li(t.keyCode,navigator.platform)&&(this.ctrlDown=!0),ei.TAB!==t.code)if(this.sv.selectionStoreService.edited)switch(t.code){case ei.ESCAPE:this.sv.doEdit(void 0,!0)}else ei.BACKSPACE!==(e=t.code)&&ei.DELETE!==e?hi(t.code)?this.sv.doEdit():this.isCopy(t)||(this.isPaste(t)?this.sv.internalPaste():function(t){return 32===t||t>=48&&t<=57||t>=96&&t<=111||t>=186&&t<=192||t>=219&&t<=222||t>=226||t>=65&&t<=90}(t.keyCode)?this.sv.doEdit(t.key):await this.keyChangeSelection(t,r)):this.sv.clearCell();else this.keyChangeSelection(t,r)}async keyChangeSelection(t,r){const e=this.changeDirectionKey(t,r);if(!e)return!1;await Se();const n=this.sv.selectionStore.get("range"),i=this.sv.selectionStore.get("focus");return this.keyPositionChange(e.changes,this.sv.getData(),n,i,e.isMulti)}keyPositionChange(t,r,e,n,i=!1){if(!e||!n)return!1;const o=function(t,r,e,n=!1){const i=i=>{const o={x:t.x,y:t.y},s=n?{x:t.x1,y:t.y1}:o;return(s[i]>r[i]?s:o)[i]+=e[i],{start:o,end:s}};return e.x?i("x"):e.y?i("y"):null}(e,n,t,i);if(!o)return!1;if(i){if(gi(o.end,r)||function({x:t,y:r}){return t<0||r<0}(o.start))return!1;const t=$n(o.start,o.end);return this.sv.selectionStoreService.changeRange(t)}return this.sv.selectionStoreService.focus(o.start)}keyUp(t){li(t.keyCode,navigator.platform)&&(this.ctrlDown=!1)}isCopy(t){return this.ctrlDown&&t.code==ei.C}isPaste(t){return this.ctrlDown&&t.code==ei.V}changeDirectionKey(t,r){const e=r&&t.shiftKey;switch(t.code){case ei.TAB:case ei.ARROW_UP:case ei.ARROW_DOWN:case ei.ARROW_LEFT:case ei.ARROW_RIGHT:t.preventDefault()}switch(t.code){case ei.ARROW_UP:return{changes:{y:-1},isMulti:e};case ei.ARROW_DOWN:return{changes:{y:1},isMulti:e};case ei.ARROW_LEFT:return{changes:{x:-1},isMulti:e};case ei.TAB:case ei.ARROW_RIGHT:return{changes:{x:1},isMulti:e}}}}var Zi,Bi=function(t,r,e){var n=null==t?0:t.length;return n?(e&&"number"!=typeof e&&ee(t,r,e)?(r=0,e=n):(r=null==r?0:Gr(r),e=void 0===e?n:Gr(e)),function(t,r,e){var n=-1,i=t.length;r<0&&(r=-r>i?0:i+r),(e=e>i?i:e)<0&&(e+=i),i=r>e?0:e-r>>>0,r>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+r];return o}(t,r,e)):[]};!function(t){t.selection="Selection",t.autoFill="AutoFill"}(Zi||(Zi={}));class Ni{constructor(t){this.sv=t,this.autoFillType=null,this.autoFillInitial=null,this.autoFillStart=null,this.autoFillLast=null}renderAutofill(t,r){let n;return n=pi(t||Object.assign(Object.assign({},r),{x1:r.x,y1:r.y}),this.sv.dimensionRow.state,this.sv.dimensionCol.state),e("div",{class:"autofill-handle",style:{left:`${n.right}px`,top:`${n.bottom}px`},onMouseDown:t=>this.selectionStart(t,this.sv.getData(),Zi.autoFill)})}get isAutoFill(){return!!this.autoFillType}selectionMouseMove(t){this.onMouseMoveAutofill||(this.onMouseMoveAutofill=Ii(((t,r)=>this.doAutofillMouseMove(t,r)),5)),this.isAutoFill&&this.onMouseMoveAutofill(t,this.sv.getData())}getFocus(){let t=this.sv.selectionStoreService.focused;const r=this.sv.selectionStoreService.ranged;return r&&(t={x:r.x,y:r.y}),t||r?t:null}doAutofillMouseMove({x:t,y:r},e){if(!this.autoFillInitial)return;let n,i=vi({x:t,y:r},e);this.autoFillLast&&(n=function(t,r){const e=["x","y"];for(let n of e)if(t[n]!==r[n])return{[n]:1};return null}(this.autoFillStart,this.autoFillLast)),this.autoFillLast&&n||(n=function(t,r){const e={},n=["x","y"];for(let i of n)e[i]=Math.abs(t[i]-r[i]);return e.x>e.y?{x:1}:e.y>e.x?{y:1}:null}(this.autoFillStart,i),this.autoFillLast||(this.autoFillLast=this.autoFillStart)),n&&(Dr(n,((t,r)=>{t&&(i=Object.assign(Object.assign({},this.autoFillLast),{[r]:i[r]}))})),gi(i,e)||(this.autoFillLast=i,this.sv.setTempRange({area:$n(this.autoFillInitial,this.autoFillLast),type:this.autoFillType})))}selectionStart(t,r,e=Zi.selection){const{top:n,left:i}=t.target.getBoundingClientRect();this.autoFillInitial=this.getFocus(),this.autoFillType=e,this.autoFillStart=vi({x:i,y:n},r),t.preventDefault()}clearAutoFillSelection(){this.autoFillInitial&&(this.autoFillInitial=this.getFocus(),this.autoFillType===Zi.autoFill?this.applyRangeWithData(this.autoFillInitial,this.autoFillLast):this.applyRangeOnly(this.autoFillInitial,this.autoFillLast)),this.autoFillType=null,this.autoFillInitial=null,this.autoFillLast=null,this.autoFillStart=null}onRangeApply(t,r){const e={};for(let r in t)e[r]=ae(this.sv.dataStore,parseInt(r,10));this.sv.internalRangeDataApply({data:t,models:e,type:this.sv.dataStore.get("type")}).defaultPrevented||this.sv.columnService.applyRangeData(t),this.sv.setRange(r)}applyRangeWithData(t,r){if(!t||!r)return;const e=this.sv.selectionStoreService.ranged,n=$n(t,r),i=[...this.sv.columnService.columns],o={type:this.sv.dataStore.get("type"),newData:{},newRange:n,oldRange:e,newProps:Bi(i,n.x,n.x1+1).map((t=>t.prop)),oldProps:Bi(i,e.x,e.x1+1).map((t=>t.prop))};o.newData=this.sv.columnService.getRangeData(o),this.sv.internalSelectionChanged(o).defaultPrevented?this.sv.setTempRange(null):this.onRangeApply(o.newData,n)}applyRangeOnly(t,r){if(!t||!r)return;const e=$n(t,r);this.sv.setRange(e)}}class Wi{constructor(t){this.sv=t}onCopy(t){if(this.sv.internalCopy().defaultPrevented)return!1;let r,e=this.sv.selectionStoreService.focused,n=this.sv.selectionStoreService.ranged;if(n||(n=$n(e,e)),n){const t=[...this.sv.columnService.columns],e=Bi(t,n.x,n.x1+1).map((t=>t.prop));r=this.sv.columnService.copyRangeArray(n,e,this.sv.dataStore)}return this.clipboard.doCopy(t,r),!0}renderClipboard(){return e("revogr-clipboard",{onCopyRegion:t=>this.onCopy(t.detail),ref:t=>this.clipboard=t,onPasteRegion:t=>this.onPaste(t.detail)})}onPaste(t){const r=this.sv.selectionStoreService.focused;if(!r||null!==this.sv.selectionStoreService.edited)return;const{changed:e,range:n}=this.sv.columnService.getTransformedDataToApply(r,t);this.sv.onRangeApply(e,n)}}const Vi=class{constructor(t){n(this,t),this.internalCopy=i(this,"internalCopy",7),this.internalPaste=i(this,"internalPaste",7),this.internalCellEdit=i(this,"internalCellEdit",7),this.internalFocusCell=i(this,"internalFocusCell",7),this.setEdit=i(this,"setEdit",3),this.setRange=i(this,"setRange",7),this.setTempRange=i(this,"setTempRange",7),this.focusCell=i(this,"focusCell",3),this.internalSelectionChanged=i(this,"internalSelectionChanged",7),this.internalRangeDataApply=i(this,"internalRangeDataApply",7),this.keyboardService=null,this.autoFillService=null,this.clipboardService=null}onMouseMove(t){this.selectionStoreService.focused&&this.autoFillService.selectionMouseMove(t)}onMouseOut(){this.autoFillService.clearAutoFillSelection()}onMouseUp(){this.autoFillService.clearAutoFillSelection()}onCellDrag(t){var r;null===(r=this.orderEditor)||void 0===r||r.dragStart(t.detail)}onKeyUp(t){var r;null===(r=this.keyboardService)||void 0===r||r.keyUp(t)}onKeyDown(t){var r;t.defaultPrevented||null===(r=this.keyboardService)||void 0===r||r.keyDown(t,this.range)}selectionServiceSet(t){this.selectionStoreService=new Ui(t,{changeRange:t=>{var r;return!(null===(r=this.setRange.emit(t))||void 0===r?void 0:r.defaultPrevented)},focus:(t,r)=>{var e;const n={focus:t,end:r},{defaultPrevented:i}=this.internalFocusCell.emit(this.columnService.getSaveData(t.y,t.x));return!i&&!(null===(e=this.focusCell.emit(n))||void 0===e?void 0:e.defaultPrevented)}}),this.keyboardService=new Hi({selectionStoreService:this.selectionStoreService,selectionStore:t,doEdit:(t,r)=>this.doEdit(t,r),clearCell:()=>this.clearCell(),getData:()=>this.getData(),internalPaste:()=>this.internalPaste.emit()}),this.createAutoFillService(),this.createClipboardService()}createAutoFillService(){this.autoFillService=new Ni({selectionStoreService:this.selectionStoreService,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,columnService:this.columnService,dataStore:this.dataStore,setTempRange:t=>this.setTempRange.emit(t),internalSelectionChanged:t=>this.internalSelectionChanged.emit(t),internalRangeDataApply:t=>this.internalRangeDataApply.emit(t),setRange:t=>this.setRange.emit(t),getData:()=>this.getData()})}columnServiceSet(){var t;null===(t=this.columnService)||void 0===t||t.destroy(),this.columnService=new Xn(this.dataStore,this.colData),this.createAutoFillService(),this.createClipboardService()}createClipboardService(){this.clipboardService=new Wi({selectionStoreService:this.selectionStoreService,columnService:this.columnService,dataStore:this.dataStore,onRangeApply:(t,r)=>this.autoFillService.onRangeApply(t,r),internalCopy:()=>this.internalCopy.emit()})}connectedCallback(){this.columnServiceSet(),this.selectionServiceSet(this.selectionStore)}disconnectedCallback(){var t;null===(t=this.columnService)||void 0===t||t.destroy()}renderRange(t){const r=Ci(t,this.dimensionRow.state,this.dimensionCol.state);return[e("div",{class:"selection-border-range",style:r})]}renderEditCell(){const t=this.selectionStore.get("edit");if(this.readonly||!t)return;const r=t.val||this.columnService.getCellData(t.y,t.x),n=Object.assign(Object.assign({},t),this.columnService.getSaveData(t.y,t.x,r)),i=Ci(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.dimensionRow.state,this.dimensionCol.state);return e("revogr-edit",{onCellEdit:t=>this.onCellEdit(t.detail),onCloseEdit:t=>this.closeEdit(t),editCell:n,column:this.columnService.columns[t.x],editor:this.columnService.getCellEditor(t.y,t.x,this.editors),style:i})}render(){const t=this.selectionStoreService.ranged,r=this.selectionStoreService.focused,n=[];(t||r)&&this.useClipboard&&n.push(this.clipboardService.renderClipboard()),t&&n.push(...this.renderRange(t));const i=this.renderEditCell();return i&&n.push(i),r&&!this.readonly&&!i&&this.range&&n.push(this.autoFillService.renderAutofill(t,r)),this.canDrag&&n.push(e("revogr-order-editor",{ref:t=>this.orderEditor=t,dataStore:this.dataStore,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,parent:this.element,onInternalRowDragStart:t=>this.onRowDragStart(t)})),e(o,{onDblClick:()=>this.doEdit(),onMouseDown:t=>this.onElementMouseDown(t)},n,e("slot",{name:"data"}))}onElementMouseDown(t){if(null==(r=t.target)?void 0:r.closest(".edit-input-wrapper"))return;var r;const e=this.getData();if(t.defaultPrevented)return;const n=vi({x:t.x,y:t.y},e);this.selectionStoreService.focus(n,this.range&&t.shiftKey),this.range&&this.autoFillService.selectionStart(t,e)}doEdit(t="",r=!1){var e;if(this.canEdit()){const n=this.selectionStore.get("focus"),i=this.columnService.getSaveData(n.y,n.x);null===(e=this.setEdit)||void 0===e||e.emit(Object.assign(Object.assign({},i),{isCancel:r,val:t}))}}closeEdit(t){this.doEdit(void 0,!0),(null==t?void 0:t.detail)&&this.focusNext()}async focusNext(){await this.keyboardService.keyChangeSelection(new KeyboardEvent("keydown",{code:ei.ARROW_DOWN}),this.range)||this.closeEdit()}clearCell(){if(!this.selectionStoreService.ranged||(t=this.selectionStoreService.ranged).x===t.x1&&t.y===t.y1){if(this.canEdit()){const t=this.selectionStoreService.focused;this.onCellEdit({rgRow:t.y,rgCol:t.x,val:""},!0)}}else{const t=this.columnService.getRangeStaticData(this.selectionStoreService.ranged,"");this.autoFillService.onRangeApply(t,this.selectionStoreService.ranged)}var t}onCellEdit(t,r=!1){const e=this.columnService.getSaveData(t.rgRow,t.rgCol,t.val);this.internalCellEdit.emit(e),r||t.preventFocus||this.focusNext()}onRowDragStart({detail:t}){t.text=this.columnService.getCellData(t.cell.y,t.cell.x)}canEdit(){var t;if(this.readonly)return!1;const r=this.selectionStoreService.focused;return r&&!(null===(t=this.columnService)||void 0===t?void 0:t.isReadOnly(r.y,r.x))}getData(){return{el:this.element,rows:this.dimensionRow.state,cols:this.dimensionCol.state,lastCell:this.lastCell}}get element(){return s(this)}static get watchers(){return{selectionStore:["selectionServiceSet"],dimensionRow:["createAutoFillService"],dimensionCol:["createAutoFillService"],dataStore:["columnServiceSet"],colData:["columnServiceSet"]}}};Vi.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-overlay-selection{display:block;position:relative;width:100%}revogr-overlay-selection .autofill-handle{position:absolute;width:10px;height:10px;background:#0d63e8;margin-left:-9px;margin-top:-9px;border:1px solid white;box-sizing:border-box;z-index:10;cursor:crosshair}revogr-overlay-selection .selection-border-range{position:absolute;pointer-events:none;z-index:9}revogr-overlay-selection .selection-border-range{box-shadow:-1px 0 0 #0d63e8 inset, 1px 0 0 #0d63e8 inset, 0 -1px 0 #0d63e8 inset, 0 1px 0 #0d63e8 inset}revogr-overlay-selection revogr-edit{z-index:10}";const Gi=t=>(r,{rowIndex:e})=>t+e,qi=class{constructor(t){n(this,t),this.scrollViewport=i(this,"scrollViewport",3),this.elementToScroll=i(this,"elementToScroll",3)}render(){var t;const r=[],n=new Pe;let i=1;for(let t of this.dataPorts){const o=t.dataStore.get("items").length,s=new oe(t.type);s.updateData(t.dataStore.get("source"));const a=new oe("colPinStart"),u=Object.assign({cellTemplate:Gi(i)},this.rowHeaderColumn);a.updateData([u]);const c=Object.assign(Object.assign({},t),{dataStore:s.store,colData:a.store,viewportCol:n.store,readonly:!0,range:!1});r.push(e("revogr-data",Object.assign({},c))),i+=o}const s=(null===(t=this.rowHeaderColumn)||void 0===t?void 0:t.size)||10*(i.toString().length+1);n.setViewport({realCount:1,virtualSize:0,items:[{size:s,start:0,end:s,itemIndex:0}]});const a=`${this.uiid}-rowHeaders`,u={[wn]:a,contentHeight:this.height,contentWidth:0,style:{minWidth:`${s}px`},ref:t=>this.elementToScroll.emit(t),onScrollViewport:t=>this.scrollViewport.emit(t.detail)},c=Object.assign(Object.assign({},this.headerProp),{colData:"object"==typeof this.rowHeaderColumn?[this.rowHeaderColumn]:[],viewportCol:n.store,canResize:!1,parent:a,slot:"header"});return e(o,{class:"rowHeaders",key:"rowHeaders"},e("revogr-viewport-scroll",Object.assign({},u),e("revogr-header",Object.assign({},c)),r))}},Ki={contentSize:0,clientSize:0,virtualSize:0,maxSize:0};class Xi{constructor(t){this.cfg=t,this.preventArtificialScroll={rgRow:null,rgCol:null},this.previousScroll={rgRow:0,rgCol:0},this.params={rgRow:Object.assign({},Ki),rgCol:Object.assign({},Ki)}}static getVirtualContentSize(t,r,e=0){return t+(e?r-e:0)}setParams(t,r){const e=Xi.getVirtualContentSize(t.contentSize,t.clientSize,t.virtualSize);this.params[r]=Object.assign(Object.assign({},t),{maxSize:e-t.clientSize,virtualContentSize:e})}setScroll(t){this.cancelScroll(t.dimension),this.preventArtificialScroll[t.dimension]=window.requestAnimationFrame((()=>{const r=this.getParams(t.dimension);t.coordinate=Math.ceil(t.coordinate),this.previousScroll[t.dimension]=this.wrapCoordinate(t.coordinate,r),this.preventArtificialScroll[t.dimension]=null,this.cfg.afterScroll(Object.assign(Object.assign({},t),{coordinate:r.virtualSize?this.convert(t.coordinate,r,!1):t.coordinate}))}))}scroll(t,r,e=!1,n){if(this.cancelScroll(r),!e&&this.previousScroll[r]===t)return void(this.previousScroll[r]=0);const i=this.getParams(r);this.cfg.beforeScroll({dimension:r,coordinate:i.virtualSize?this.convert(t,i):t,delta:n})}getParams(t){return this.params[t]}wrapCoordinate(t,r){return t<0?0:t>r.maxSize?r.maxSize:t}cancelScroll(t){return"number"==typeof this.preventArtificialScroll[t]&&(window.cancelAnimationFrame(this.preventArtificialScroll[t]),this.preventArtificialScroll[t]=null,!0)}convert(t,r,e=!0){const n=[0,r.virtualContentSize-r.clientSize],i=[0,r.contentSize-r.virtualSize];return e?ke(t,n,i):ke(t,i,n)}}const Ji=class{constructor(t){n(this,t),this.scrollVirtual=i(this,"scrollVirtual",7),this.scrollSize=0,this.isAutoHide=!1,this.autoHideTimeout=0,this.dimension="rgRow"}async setScroll(t){var r;this.dimension===t.dimension&&(null===(r=this.scrollService)||void 0===r||r.setScroll(t))}async changeScroll(t){if(t.delta){switch(t.dimension){case"rgCol":t.coordinate=this.element.scrollLeft+t.delta;break;case"rgRow":t.coordinate=this.element.scrollTop+t.delta}this.setScroll(t)}return t}set size(t){"rgRow"!==this.dimension?this.element.style.minHeight=`${t}px`:this.element.style.minWidth=`${t}px`}get size(){return"rgRow"===this.dimension?this.element.clientHeight:this.element.clientWidth}connectedCallback(){this.scrollService=new Xi({beforeScroll:t=>this.scrollVirtual.emit(t),afterScroll:t=>{this.element["rgRow"===t.dimension?"scrollTop":"scrollLeft"]=t.coordinate}})}disconnectedCallback(){clearTimeout(this.autoHideTimeout)}componentWillLoad(){this.scrollSize=Ee(document),this.isAutoHide=!this.scrollSize}componentDidRender(){this.size=this.element["rgRow"===this.dimension?"scrollHeight":"scrollWidth"]>this.size?this.scrollSize:0,this.scrollService.setParams({contentSize:this.dimensionStore.get("realSize"),clientSize:this.size,virtualSize:this.viewportStore.get("virtualSize")},this.dimension)}onScroll(t){var r;let e="scrollLeft";"rgRow"===this.dimension&&(e="scrollTop"),this.isAutoHide&&(this.size=20,this.autoHideTimeout=this.autoHide(this.autoHideTimeout)),null===(r=this.scrollService)||void 0===r||r.scroll(t.target[e]||0,this.dimension)}autoHide(t){return clearTimeout(t),setTimeout((()=>{this.size=0}),6e3)}render(){const t="rgRow"===this.dimension?"height":"width";return e(o,Object.assign({},{"auto-hide":this.isAutoHide},{onScroll:t=>this.onScroll(t)}),e("div",{style:{[t]:`${this.extContentSize(this.viewportStore.get("virtualSize"),this.dimensionStore.get("realSize"))}px`}}))}extContentSize(t,r){return Xi.getVirtualContentSize(r,this.size,t)}get element(){return s(this)}};Ji.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-scroll-virtual[auto-hide]{position:absolute;z-index:100}revogr-scroll-virtual[auto-hide].vertical{right:0;top:0}revogr-scroll-virtual[auto-hide].vertical:hover{min-width:20px}revogr-scroll-virtual[auto-hide].horizontal{bottom:0;left:0}revogr-scroll-virtual[auto-hide].horizontal:hover{min-height:20px}revogr-scroll-virtual.vertical{overflow-y:auto;overflow-x:hidden;height:100%}revogr-scroll-virtual.vertical>div{width:1px}revogr-scroll-virtual.horizontal{overflow-x:auto;overflow-y:hidden;width:100%}revogr-scroll-virtual.horizontal>div{height:1px}";const Yi=class{constructor(t){n(this,t),this.onChange=Nn.throttle((t=>this.doChange(t)),300)}doChange(t){null==t||t.scrollIntoView({block:"nearest",inline:"nearest"})}componentDidRender(){this.el&&this.onChange(this.el)}render(){const t=this.selectionStore.get("tempRange"),r=this.selectionStore.get("tempRangeType");if(!t)return;let n="bottom",i="right";const s=this.getRange();if(!s)return;t.y<s.y&&(n="top"),t.x<s.x&&(i="left");const a=`${i} ${n}`,u=Ci(t,this.dimensionRow.state,this.dimensionCol.state);return e(o,{class:{"temp-bg-range":!0,[r||""]:!0},style:u},e("div",{class:a,ref:t=>this.el=t}))}getRange(){const t=this.selectionStore.get("range");if(t)return t;const r=this.selectionStore.get("focus");return r?Object.assign(Object.assign({},r),{x1:r.x,y1:r.y}):null}};Yi.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}.temp-bg-range{display:block;position:absolute;pointer-events:none;z-index:9;border:1px solid #ff5e00;box-sizing:border-box}.temp-bg-range.Selection{border:1px dashed gray}.temp-bg-range>div{width:1px;height:1px;position:absolute}.temp-bg-range>div.top{top:-1px}.temp-bg-range>div.bottom{bottom:-1px}.temp-bg-range>div.left{left:-1px}.temp-bg-range>div.right{right:-1px}";class Qi{constructor(t,r){this.events=r,this.resizeObserver=null,this.resize=function(t,r,e){var n=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Q(e)&&(n="leading"in e?!!e.leading:n,i="trailing"in e?!!e.trailing:i),Ii(t,r,{leading:n,maxWait:r,trailing:i})}(((t,r)=>{var e;return null===(e=this.events)||void 0===e?void 0:e.resize(t,r)}),10),this.init(t)}async init(t){var r;await async function(){if(!("ResizeObserver"in window)){const t=await __sc_import_revo_grid("./resize-observer-56b7b34f.js");window.ResizeObserver=t.ResizeObserver}}(),this.resizeObserver=new ResizeObserver(this.resize),null===(r=this.resizeObserver)||void 0===r||r.observe(t)}destroy(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),this.resizeObserver=null}}const to=class{constructor(t){n(this,t),this.scrollViewport=i(this,"scrollViewport",3),this.resizeViewport=i(this,"resizeViewport",7),this.scrollchange=i(this,"scrollchange",7),this.scrollThrottling=30,this.contentWidth=0,this.contentHeight=0,this.oldValY=this.contentHeight,this.oldValX=this.contentWidth,this.mouseWheelScroll={rgCol:0,rgRow:0}}async setScroll(t){var r;this.latestScrollUpdate(t.dimension),null===(r=this.scrollService)||void 0===r||r.setScroll(t)}async changeScroll(t){if(t.delta){switch(t.dimension){case"rgCol":t.coordinate=this.horizontalScroll.scrollLeft+t.delta;break;case"rgRow":t.coordinate=this.verticalScroll.scrollTop+t.delta}this.setScroll(t)}return t}connectedCallback(){"ontouchstart"in document.documentElement?this.scrollThrottling=0:(this.verticalMouseWheel=this.onVerticalMouseWheel.bind(this,"rgRow","deltaY"),this.horizontalMouseWheel=this.onHorizontalMouseWheel.bind(this,"rgCol","deltaX")),this.scrollService=new Xi({beforeScroll:t=>this.scrollViewport.emit(t),afterScroll:t=>{switch(t.dimension){case"rgCol":this.horizontalScroll.scrollLeft=t.coordinate;break;case"rgRow":this.verticalScroll.scrollTop=t.coordinate}}})}componentDidLoad(){this.horisontalResize=new Qi(this.horizontalScroll,{resize:t=>{var r,e;let n=(null===(r=t[0])||void 0===r?void 0:r.contentRect.height)||0;n&&(n-=this.header.clientHeight+this.footer.clientHeight);const i={rgRow:{size:n,contentSize:this.contentHeight,scroll:this.verticalScroll.scrollTop},rgCol:{size:(null===(e=t[0])||void 0===e?void 0:e.contentRect.width)||0,contentSize:this.contentWidth,scroll:this.horizontalScroll.scrollLeft}};Dr(i,((t,r)=>{var e;this.resizeViewport.emit({dimension:r,size:t.size}),null===(e=this.scrollService)||void 0===e||e.scroll(t.scroll,r,!0),this.setScrollVisibility(r,t.size,t.contentSize)}))}})}setScrollVisibility(t,r,e){const n=r<e;let i,o;switch(t){case"rgCol":i=this.horizontalScroll,o=this.horizontalMouseWheel;break;case"rgRow":i=this.verticalScroll,o=this.verticalMouseWheel}n?(i.classList.add(`scroll-${t}`),i.addEventListener("mousewheel",o)):(i.classList.remove(`scroll-${t}`),i.removeEventListener("mousewheel",o)),this.scrollchange.emit({type:t,hasScroll:n})}disconnectedCallback(){this.verticalScroll.removeEventListener("mousewheel",this.verticalMouseWheel),this.horizontalScroll.removeEventListener("mousewheel",this.horizontalMouseWheel),this.horisontalResize.destroy()}async componentDidRender(){this.contentHeight<this.oldValY&&this.verticalScroll&&(this.verticalScroll.scrollTop+=this.contentHeight-this.oldValY),this.oldValY=this.contentHeight,this.contentWidth<this.oldValX&&(this.horizontalScroll.scrollLeft+=this.contentWidth-this.oldValX),this.oldValX=this.contentWidth,this.scrollService.setParams({contentSize:this.contentHeight,clientSize:this.verticalScroll.clientHeight,virtualSize:0},"rgRow"),this.scrollService.setParams({contentSize:this.contentWidth,clientSize:this.horizontalScroll.clientWidth,virtualSize:0},"rgCol"),this.setScrollVisibility("rgRow",this.verticalScroll.clientHeight,this.contentHeight),this.setScrollVisibility("rgCol",this.horizontalScroll.clientWidth,this.contentWidth)}render(){return e(o,{onScroll:t=>this.onScroll("rgCol",t)},e("div",{class:"inner-content-table",style:{width:`${this.contentWidth}px`}},e("div",{class:"header-wrapper",ref:t=>this.header=t},e("slot",{name:"header"})),e("div",{class:"vertical-inner",ref:t=>this.verticalScroll=t,onScroll:t=>this.onScroll("rgRow",t)},e("div",{class:"content-wrapper",style:{height:`${this.contentHeight}px`}},e("slot",{name:"content"}))),e("div",{class:"footer-wrapper",ref:t=>this.footer=t},e("slot",{name:"footer"}))))}onScroll(t,r){var e;const n=r.target;let i=0;switch(t){case"rgCol":i=null==n?void 0:n.scrollLeft;break;case"rgRow":i=null==n?void 0:n.scrollTop}(new Date).getTime()-this.mouseWheelScroll[t]>this.scrollThrottling&&(null===(e=this.scrollService)||void 0===e||e.scroll(i,t))}latestScrollUpdate(t){this.mouseWheelScroll[t]=(new Date).getTime()}onVerticalMouseWheel(t,r,e){var n;e.preventDefault(),null===(n=this.scrollService)||void 0===n||n.scroll(this.verticalScroll.scrollTop+e[r],t,void 0,e[r]),this.latestScrollUpdate(t)}onHorizontalMouseWheel(t,r,e){var n;e.preventDefault(),null===(n=this.scrollService)||void 0===n||n.scroll(this.horizontalScroll.scrollLeft+e[r],t,void 0,e[r]),this.latestScrollUpdate(t)}get horizontalScroll(){return s(this)}};to.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}.rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}.rowHeaders revogr-data .rgCell{text-align:center}.rowHeaders .rgCell{padding:0 1em !important;min-width:100%}revogr-viewport-scroll{-ms-overflow-style:none;scrollbar-width:none;overflow-x:auto;overflow-y:hidden;position:relative;z-index:1;height:100%}revogr-viewport-scroll::-webkit-scrollbar{display:none;-webkit-appearance:none}revogr-viewport-scroll.colPinStart,revogr-viewport-scroll.colPinEnd{z-index:2}revogr-viewport-scroll.rgCol{flex-grow:1}revogr-viewport-scroll .content-wrapper{overflow:hidden}revogr-viewport-scroll .inner-content-table{display:flex;flex-direction:column;max-height:100%;width:100%;min-width:100%;position:relative;z-index:0}revogr-viewport-scroll .vertical-inner{overflow-y:auto;position:relative;width:100%;flex-grow:1;-ms-overflow-style:none;scrollbar-width:none;}revogr-viewport-scroll .vertical-inner::-webkit-scrollbar{display:none;-webkit-appearance:none}revogr-viewport-scroll .vertical-inner revogr-data,revogr-viewport-scroll .vertical-inner revogr-overlay-selection{height:100%}";export{Kn as revo_grid,ti as revogr_data,di as revogr_edit,wi as revogr_focus,_i as revogr_header,$i as revogr_order_editor,Vi as revogr_overlay_selection,qi as revogr_row_headers,Ji as revogr_scroll_virtual,Yi as revogr_temp_range,to as revogr_viewport_scroll}
|