@revolist/revogrid 4.9.37 → 4.9.38

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.
Files changed (158) hide show
  1. package/dist/cjs/{column.drag.plugin-ffe1918f.js → column.drag.plugin-f08cae65.js} +18 -18
  2. package/dist/cjs/column.drag.plugin-f08cae65.js.map +1 -0
  3. package/dist/cjs/{index-947f3534.js → column.service-163f9bb6.js} +1257 -469
  4. package/dist/cjs/column.service-163f9bb6.js.map +1 -0
  5. package/dist/cjs/{edit.utils-68a4f1c4.js → edit.utils-179c0800.js} +2 -2
  6. package/dist/cjs/{edit.utils-68a4f1c4.js.map → edit.utils-179c0800.js.map} +1 -1
  7. package/dist/cjs/{header-cell-renderer-57fb8f18.js → header-cell-renderer-7b8588ea.js} +2 -2
  8. package/dist/cjs/{header-cell-renderer-57fb8f18.js.map → header-cell-renderer-7b8588ea.js.map} +1 -1
  9. package/dist/cjs/index-3ab26ab9.js +513 -0
  10. package/dist/cjs/index-3ab26ab9.js.map +1 -0
  11. package/dist/cjs/index.cjs.js +21 -20
  12. package/dist/cjs/index.cjs.js.map +1 -1
  13. package/dist/cjs/{key.utils-da2ead49.js → key.utils-f49d7bee.js} +2 -2
  14. package/dist/cjs/{key.utils-da2ead49.js.map → key.utils-f49d7bee.js.map} +1 -1
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/cjs/revo-grid.cjs.entry.js +87 -55
  17. package/dist/cjs/revo-grid.cjs.entry.js.map +1 -1
  18. package/dist/cjs/revo-grid.cjs.js +1 -1
  19. package/dist/cjs/revogr-attribution_7.cjs.entry.js +13 -13
  20. package/dist/cjs/revogr-attribution_7.cjs.entry.js.map +1 -1
  21. package/dist/cjs/revogr-clipboard_3.cjs.entry.js +21 -18
  22. package/dist/cjs/revogr-clipboard_3.cjs.entry.js.map +1 -1
  23. package/dist/cjs/revogr-data_4.cjs.entry.js +9 -9
  24. package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -1
  25. package/dist/cjs/{row-header-utils-fe2264e7.js → row-header-utils-4c24a341.js} +6 -5
  26. package/dist/cjs/row-header-utils-4c24a341.js.map +1 -0
  27. package/dist/cjs/{text-editor-55511a6a.js → text-editor-b756d6b3.js} +3 -3
  28. package/dist/cjs/{text-editor-55511a6a.js.map → text-editor-b756d6b3.js.map} +1 -1
  29. package/dist/cjs/{throttle-2ae258fb.js → throttle-a57f51f9.js} +2 -2
  30. package/dist/cjs/{throttle-2ae258fb.js.map → throttle-a57f51f9.js.map} +1 -1
  31. package/dist/collection/components/order/revogr-order-editor.js +99 -27
  32. package/dist/collection/components/order/revogr-order-editor.js.map +1 -1
  33. package/dist/collection/components/overlay/revogr-overlay-selection.js +2 -2
  34. package/dist/collection/components/overlay/revogr-overlay-selection.js.map +1 -1
  35. package/dist/collection/components/revoGrid/revo-grid.js +10 -0
  36. package/dist/collection/components/revoGrid/revo-grid.js.map +1 -1
  37. package/dist/collection/plugins/sorting/sorting.plugin.js +25 -26
  38. package/dist/collection/plugins/sorting/sorting.plugin.js.map +1 -1
  39. package/dist/collection/services/data.provider.js +12 -5
  40. package/dist/collection/services/data.provider.js.map +1 -1
  41. package/dist/collection/services/dimension.provider.js +22 -0
  42. package/dist/collection/services/dimension.provider.js.map +1 -1
  43. package/dist/collection/store/dataSource/data.proxy.js +19 -6
  44. package/dist/collection/store/dataSource/data.proxy.js.map +1 -1
  45. package/dist/collection/store/dataSource/data.store.js +3 -0
  46. package/dist/collection/store/dataSource/data.store.js.map +1 -1
  47. package/dist/collection/types/events.js +1 -0
  48. package/dist/collection/types/events.js.map +1 -1
  49. package/dist/esm/{column.drag.plugin-bbd79520.js → column.drag.plugin-fa4c692b.js} +6 -6
  50. package/dist/esm/{column.drag.plugin-bbd79520.js.map → column.drag.plugin-fa4c692b.js.map} +1 -1
  51. package/dist/esm/{index-8eeaa30d.js → column.service-264bf729.js} +1216 -427
  52. package/dist/esm/column.service-264bf729.js.map +1 -0
  53. package/dist/esm/{debounce-7b511afc.js → debounce-72878ced.js} +2 -2
  54. package/dist/esm/{debounce-7b511afc.js.map → debounce-72878ced.js.map} +1 -1
  55. package/dist/esm/{edit.utils-aeb2dc7c.js → edit.utils-6fc686b9.js} +2 -2
  56. package/dist/esm/{edit.utils-aeb2dc7c.js.map → edit.utils-6fc686b9.js.map} +1 -1
  57. package/dist/esm/{header-cell-renderer-1aec2328.js → header-cell-renderer-f0bc7088.js} +2 -2
  58. package/dist/esm/{header-cell-renderer-1aec2328.js.map → header-cell-renderer-f0bc7088.js.map} +1 -1
  59. package/dist/esm/index-1dcad6ef.js +476 -0
  60. package/dist/esm/index-1dcad6ef.js.map +1 -0
  61. package/dist/esm/index.js +9 -8
  62. package/dist/esm/index.js.map +1 -1
  63. package/dist/esm/{key.utils-9ee5fa40.js → key.utils-17273f42.js} +2 -2
  64. package/dist/esm/{key.utils-9ee5fa40.js.map → key.utils-17273f42.js.map} +1 -1
  65. package/dist/esm/loader.js +1 -1
  66. package/dist/esm/revo-grid.entry.js +67 -35
  67. package/dist/esm/revo-grid.entry.js.map +1 -1
  68. package/dist/esm/revo-grid.js +1 -1
  69. package/dist/esm/revogr-attribution_7.entry.js +9 -9
  70. package/dist/esm/revogr-attribution_7.entry.js.map +1 -1
  71. package/dist/esm/revogr-clipboard_3.entry.js +22 -19
  72. package/dist/esm/revogr-clipboard_3.entry.js.map +1 -1
  73. package/dist/esm/revogr-data_4.entry.js +5 -5
  74. package/dist/esm/revogr-filter-panel.entry.js +1 -1
  75. package/dist/esm/{row-header-utils-3220f80d.js → row-header-utils-01e63cba.js} +3 -2
  76. package/dist/esm/row-header-utils-01e63cba.js.map +1 -0
  77. package/dist/esm/{text-editor-d9dcf56d.js → text-editor-901c3eb8.js} +3 -3
  78. package/dist/esm/{text-editor-d9dcf56d.js.map → text-editor-901c3eb8.js.map} +1 -1
  79. package/dist/esm/{throttle-ce8e57c9.js → throttle-138d69c3.js} +3 -3
  80. package/dist/esm/{throttle-ce8e57c9.js.map → throttle-138d69c3.js.map} +1 -1
  81. package/dist/revo-grid/column.drag.plugin-fa4c692b.js +5 -0
  82. package/dist/revo-grid/{column.drag.plugin-bbd79520.js.map → column.drag.plugin-fa4c692b.js.map} +1 -1
  83. package/dist/revo-grid/column.service-264bf729.js +5 -0
  84. package/dist/revo-grid/column.service-264bf729.js.map +1 -0
  85. package/dist/revo-grid/{debounce-7b511afc.js → debounce-72878ced.js} +2 -2
  86. package/dist/revo-grid/{edit.utils-aeb2dc7c.js → edit.utils-6fc686b9.js} +2 -2
  87. package/dist/revo-grid/{header-cell-renderer-1aec2328.js → header-cell-renderer-f0bc7088.js} +2 -2
  88. package/dist/revo-grid/index-1dcad6ef.js +5 -0
  89. package/dist/revo-grid/index-1dcad6ef.js.map +1 -0
  90. package/dist/revo-grid/index.esm.js +1 -1
  91. package/dist/revo-grid/index.esm.js.map +1 -1
  92. package/dist/revo-grid/key.utils-17273f42.js +5 -0
  93. package/dist/revo-grid/{key.utils-9ee5fa40.js.map → key.utils-17273f42.js.map} +1 -1
  94. package/dist/revo-grid/revo-grid.entry.js +1 -1
  95. package/dist/revo-grid/revo-grid.entry.js.map +1 -1
  96. package/dist/revo-grid/revo-grid.esm.js +1 -1
  97. package/dist/revo-grid/revo-grid.esm.js.map +1 -1
  98. package/dist/revo-grid/revogr-attribution_7.entry.js +1 -1
  99. package/dist/revo-grid/revogr-attribution_7.entry.js.map +1 -1
  100. package/dist/revo-grid/revogr-clipboard_3.entry.js +1 -1
  101. package/dist/revo-grid/revogr-clipboard_3.entry.js.map +1 -1
  102. package/dist/revo-grid/revogr-data_4.entry.js +1 -1
  103. package/dist/revo-grid/revogr-data_4.entry.js.map +1 -1
  104. package/dist/revo-grid/revogr-filter-panel.entry.js +1 -1
  105. package/dist/revo-grid/row-header-utils-01e63cba.js +5 -0
  106. package/dist/revo-grid/{row-header-utils-3220f80d.js.map → row-header-utils-01e63cba.js.map} +1 -1
  107. package/dist/revo-grid/text-editor-901c3eb8.js +5 -0
  108. package/dist/revo-grid/{throttle-ce8e57c9.js → throttle-138d69c3.js} +2 -2
  109. package/dist/types/components/order/revogr-order-editor.d.ts +18 -4
  110. package/dist/types/components/overlay/revogr-overlay-selection.d.ts +2 -4
  111. package/dist/types/components/revoGrid/revo-grid.d.ts +1 -0
  112. package/dist/types/components.d.ts +25 -6
  113. package/dist/types/plugins/sorting/sorting.plugin.d.ts +4 -4
  114. package/dist/types/services/data.provider.d.ts +5 -0
  115. package/dist/types/services/dimension.provider.d.ts +1 -0
  116. package/dist/types/store/dataSource/data.proxy.d.ts +9 -3
  117. package/dist/types/store/dataSource/data.store.d.ts +1 -0
  118. package/dist/types/types/events.d.ts +1 -1
  119. package/hydrate/index.js +127 -75
  120. package/hydrate/index.mjs +127 -75
  121. package/package.json +1 -1
  122. package/standalone/column.service.js +1 -1
  123. package/standalone/data.store.js +28 -31
  124. package/standalone/data.store.js.map +1 -1
  125. package/standalone/dimension.helpers.js +1 -1
  126. package/standalone/identity.js +26 -0
  127. package/standalone/identity.js.map +1 -0
  128. package/standalone/index.js +2 -1
  129. package/standalone/index.js.map +1 -1
  130. package/standalone/revo-grid.js +64 -31
  131. package/standalone/revo-grid.js.map +1 -1
  132. package/standalone/revogr-header2.js +1 -1
  133. package/standalone/revogr-order-editor2.js +18 -15
  134. package/standalone/revogr-order-editor2.js.map +1 -1
  135. package/standalone/revogr-overlay-selection2.js +2 -2
  136. package/standalone/revogr-overlay-selection2.js.map +1 -1
  137. package/dist/cjs/column.drag.plugin-ffe1918f.js.map +0 -1
  138. package/dist/cjs/column.service-e9ab1aa3.js +0 -1286
  139. package/dist/cjs/column.service-e9ab1aa3.js.map +0 -1
  140. package/dist/cjs/index-947f3534.js.map +0 -1
  141. package/dist/cjs/row-header-utils-fe2264e7.js.map +0 -1
  142. package/dist/esm/column.service-397b7249.js +0 -1249
  143. package/dist/esm/column.service-397b7249.js.map +0 -1
  144. package/dist/esm/index-8eeaa30d.js.map +0 -1
  145. package/dist/esm/row-header-utils-3220f80d.js.map +0 -1
  146. package/dist/revo-grid/column.drag.plugin-bbd79520.js +0 -5
  147. package/dist/revo-grid/column.service-397b7249.js +0 -5
  148. package/dist/revo-grid/column.service-397b7249.js.map +0 -1
  149. package/dist/revo-grid/index-8eeaa30d.js +0 -5
  150. package/dist/revo-grid/index-8eeaa30d.js.map +0 -1
  151. package/dist/revo-grid/key.utils-9ee5fa40.js +0 -5
  152. package/dist/revo-grid/row-header-utils-3220f80d.js +0 -5
  153. package/dist/revo-grid/text-editor-d9dcf56d.js +0 -5
  154. /package/dist/revo-grid/{debounce-7b511afc.js.map → debounce-72878ced.js.map} +0 -0
  155. /package/dist/revo-grid/{edit.utils-aeb2dc7c.js.map → edit.utils-6fc686b9.js.map} +0 -0
  156. /package/dist/revo-grid/{header-cell-renderer-1aec2328.js.map → header-cell-renderer-f0bc7088.js.map} +0 -0
  157. /package/dist/revo-grid/{text-editor-d9dcf56d.js.map → text-editor-901c3eb8.js.map} +0 -0
  158. /package/dist/revo-grid/{throttle-ce8e57c9.js.map → throttle-138d69c3.js.map} +0 -0
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * Built by Revolist OU ❤️
3
+ */
4
+ import{a as t,b as n,r as e,S as r,c as i,f as o,i as s,t as u}from"./debounce-72878ced.js";import{z as c,G as f,C as a,h as l}from"./index-1dcad6ef.js";import{g as h,f as v}from"./index-a61f225b.js";const d=t=>({set(n,e){if(!p(n)){return}const r=t.get("items").reduce(((t,n)=>{t.add(n);return t}),new Set);const i=e.reduce(((t,n)=>{if(r.has(n)){t.push(n)}return t}),[]);t.set("items",i)}});function p(t){return t==="proxyItems"}function b(t,n,e,r){var i=t.length,o=e+(r?1:-1);while(r?o--:++o<i){if(n(t[o],o,t)){return o}}return-1}function y(){this.__data__=[];this.size=0}function j(t,n){return t===n||t!==t&&n!==n}function g(t,n){var e=t.length;while(e--){if(j(t[e][0],n)){return e}}return-1}var m=Array.prototype;var w=m.splice;function O(t){var n=this.__data__,e=g(n,t);if(e<0){return false}var r=n.length-1;if(e==r){n.pop()}else{w.call(n,e,1)}--this.size;return true}function x(t){var n=this.__data__,e=g(n,t);return e<0?undefined:n[e][1]}function A(t){return g(this.__data__,t)>-1}function _(t,n){var e=this.__data__,r=g(e,t);if(r<0){++this.size;e.push([t,n])}else{e[r][1]=n}return this}function C(t){var n=-1,e=t==null?0:t.length;this.clear();while(++n<e){var r=t[n];this.set(r[0],r[1])}}C.prototype.clear=y;C.prototype["delete"]=O;C.prototype.get=x;C.prototype.has=A;C.prototype.set=_;function R(){this.__data__=new C;this.size=0}function S(t){var n=this.__data__,e=n["delete"](t);this.size=n.size;return e}function M(t){return this.__data__.get(t)}function I(t){return this.__data__.has(t)}var D="[object AsyncFunction]",$="[object Function]",P="[object GeneratorFunction]",T="[object Proxy]";function k(e){if(!t(e)){return false}var r=n(e);return r==$||r==P||r==D||r==T}var E=e["__core-js_shared__"];const F=E;var B=function(){var t=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function N(t){return!!B&&B in t}var G=Function.prototype;var U=G.toString;function V(t){if(t!=null){try{return U.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var W=/[\\^$.*+?()[\]{}|]/g;var L=/^\[object .+?Constructor\]$/;var J=Function.prototype,z=Object.prototype;var K=J.toString;var X=z.hasOwnProperty;var Y=RegExp("^"+K.call(X).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function q(n){if(!t(n)||N(n)){return false}var e=k(n)?Y:L;return e.test(V(n))}function H(t,n){return t==null?undefined:t[n]}function Q(t,n){var e=H(t,n);return q(e)?e:undefined}var Z=Q(e,"Map");const tt=Z;var nt=Q(Object,"create");const et=nt;function rt(){this.__data__=et?et(null):{};this.size=0}function it(t){var n=this.has(t)&&delete this.__data__[t];this.size-=n?1:0;return n}var ot="__lodash_hash_undefined__";var st=Object.prototype;var ut=st.hasOwnProperty;function ct(t){var n=this.__data__;if(et){var e=n[t];return e===ot?undefined:e}return ut.call(n,t)?n[t]:undefined}var ft=Object.prototype;var at=ft.hasOwnProperty;function lt(t){var n=this.__data__;return et?n[t]!==undefined:at.call(n,t)}var ht="__lodash_hash_undefined__";function vt(t,n){var e=this.__data__;this.size+=this.has(t)?0:1;e[t]=et&&n===undefined?ht:n;return this}function dt(t){var n=-1,e=t==null?0:t.length;this.clear();while(++n<e){var r=t[n];this.set(r[0],r[1])}}dt.prototype.clear=rt;dt.prototype["delete"]=it;dt.prototype.get=ct;dt.prototype.has=lt;dt.prototype.set=vt;function pt(){this.size=0;this.__data__={hash:new dt,map:new(tt||C),string:new dt}}function bt(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}function yt(t,n){var e=t.__data__;return bt(n)?e[typeof n=="string"?"string":"hash"]:e.map}function jt(t){var n=yt(this,t)["delete"](t);this.size-=n?1:0;return n}function gt(t){return yt(this,t).get(t)}function mt(t){return yt(this,t).has(t)}function wt(t,n){var e=yt(this,t),r=e.size;e.set(t,n);this.size+=e.size==r?0:1;return this}function Ot(t){var n=-1,e=t==null?0:t.length;this.clear();while(++n<e){var r=t[n];this.set(r[0],r[1])}}Ot.prototype.clear=pt;Ot.prototype["delete"]=jt;Ot.prototype.get=gt;Ot.prototype.has=mt;Ot.prototype.set=wt;var xt=200;function At(t,n){var e=this.__data__;if(e instanceof C){var r=e.__data__;if(!tt||r.length<xt-1){r.push([t,n]);this.size=++e.size;return this}e=this.__data__=new Ot(r)}e.set(t,n);this.size=e.size;return this}function _t(t){var n=this.__data__=new C(t);this.size=n.size}_t.prototype.clear=R;_t.prototype["delete"]=S;_t.prototype.get=M;_t.prototype.has=I;_t.prototype.set=At;var Ct="__lodash_hash_undefined__";function Rt(t){this.__data__.set(t,Ct);return this}function St(t){return this.__data__.has(t)}function Mt(t){var n=-1,e=t==null?0:t.length;this.__data__=new Ot;while(++n<e){this.add(t[n])}}Mt.prototype.add=Mt.prototype.push=Rt;Mt.prototype.has=St;function It(t,n){var e=-1,r=t==null?0:t.length;while(++e<r){if(n(t[e],e,t)){return true}}return false}function Dt(t,n){return t.has(n)}var $t=1,Pt=2;function Tt(t,n,e,r,i,o){var s=e&$t,u=t.length,c=n.length;if(u!=c&&!(s&&c>u)){return false}var f=o.get(t);var a=o.get(n);if(f&&a){return f==n&&a==t}var l=-1,h=true,v=e&Pt?new Mt:undefined;o.set(t,n);o.set(n,t);while(++l<u){var d=t[l],p=n[l];if(r){var b=s?r(p,d,l,n,t,o):r(d,p,l,t,n,o)}if(b!==undefined){if(b){continue}h=false;break}if(v){if(!It(n,(function(t,n){if(!Dt(v,n)&&(d===t||i(d,t,e,r,o))){return v.push(n)}}))){h=false;break}}else if(!(d===p||i(d,p,e,r,o))){h=false;break}}o["delete"](t);o["delete"](n);return h}var kt=e.Uint8Array;const Et=kt;function Ft(t){var n=-1,e=Array(t.size);t.forEach((function(t,r){e[++n]=[r,t]}));return e}function Bt(t){var n=-1,e=Array(t.size);t.forEach((function(t){e[++n]=t}));return e}var Nt=1,Gt=2;var Ut="[object Boolean]",Vt="[object Date]",Wt="[object Error]",Lt="[object Map]",Jt="[object Number]",zt="[object RegExp]",Kt="[object Set]",Xt="[object String]",Yt="[object Symbol]";var qt="[object ArrayBuffer]",Ht="[object DataView]";var Qt=r?r.prototype:undefined,Zt=Qt?Qt.valueOf:undefined;function tn(t,n,e,r,i,o,s){switch(e){case Ht:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset){return false}t=t.buffer;n=n.buffer;case qt:if(t.byteLength!=n.byteLength||!o(new Et(t),new Et(n))){return false}return true;case Ut:case Vt:case Jt:return j(+t,+n);case Wt:return t.name==n.name&&t.message==n.message;case zt:case Xt:return t==n+"";case Lt:var u=Ft;case Kt:var c=r&Nt;u||(u=Bt);if(t.size!=n.size&&!c){return false}var f=s.get(t);if(f){return f==n}r|=Gt;s.set(t,n);var a=Tt(u(t),u(n),r,i,o,s);s["delete"](t);return a;case Yt:if(Zt){return Zt.call(t)==Zt.call(n)}}return false}function nn(t,n){var e=-1,r=n.length,i=t.length;while(++e<r){t[i+e]=n[e]}return t}var en=Array.isArray;const rn=en;function on(t,n,e){var r=n(t);return rn(t)?r:nn(r,e(t))}function sn(t,n){var e=-1,r=t==null?0:t.length,i=0,o=[];while(++e<r){var s=t[e];if(n(s,e,t)){o[i++]=s}}return o}function un(){return[]}var cn=Object.prototype;var fn=cn.propertyIsEnumerable;var an=Object.getOwnPropertySymbols;var ln=!an?un:function(t){if(t==null){return[]}t=Object(t);return sn(an(t),(function(n){return fn.call(t,n)}))};const hn=ln;function vn(t,n){var e=-1,r=Array(t);while(++e<t){r[e]=n(e)}return r}var dn="[object Arguments]";function pn(t){return i(t)&&n(t)==dn}var bn=Object.prototype;var yn=bn.hasOwnProperty;var jn=bn.propertyIsEnumerable;var gn=pn(function(){return arguments}())?pn:function(t){return i(t)&&yn.call(t,"callee")&&!jn.call(t,"callee")};const mn=gn;function wn(){return false}var On=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var xn=On&&typeof module=="object"&&module&&!module.nodeType&&module;var An=xn&&xn.exports===On;var _n=An?e.Buffer:undefined;var Cn=_n?_n.isBuffer:undefined;var Rn=Cn||wn;const Sn=Rn;var Mn=9007199254740991;var In=/^(?:0|[1-9]\d*)$/;function Dn(t,n){var e=typeof t;n=n==null?Mn:n;return!!n&&(e=="number"||e!="symbol"&&In.test(t))&&(t>-1&&t%1==0&&t<n)}var $n=9007199254740991;function Pn(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=$n}var Tn="[object Arguments]",kn="[object Array]",En="[object Boolean]",Fn="[object Date]",Bn="[object Error]",Nn="[object Function]",Gn="[object Map]",Un="[object Number]",Vn="[object Object]",Wn="[object RegExp]",Ln="[object Set]",Jn="[object String]",zn="[object WeakMap]";var Kn="[object ArrayBuffer]",Xn="[object DataView]",Yn="[object Float32Array]",qn="[object Float64Array]",Hn="[object Int8Array]",Qn="[object Int16Array]",Zn="[object Int32Array]",te="[object Uint8Array]",ne="[object Uint8ClampedArray]",ee="[object Uint16Array]",re="[object Uint32Array]";var ie={};ie[Yn]=ie[qn]=ie[Hn]=ie[Qn]=ie[Zn]=ie[te]=ie[ne]=ie[ee]=ie[re]=true;ie[Tn]=ie[kn]=ie[Kn]=ie[En]=ie[Xn]=ie[Fn]=ie[Bn]=ie[Nn]=ie[Gn]=ie[Un]=ie[Vn]=ie[Wn]=ie[Ln]=ie[Jn]=ie[zn]=false;function oe(t){return i(t)&&Pn(t.length)&&!!ie[n(t)]}function se(t){return function(n){return t(n)}}var ue=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var ce=ue&&typeof module=="object"&&module&&!module.nodeType&&module;var fe=ce&&ce.exports===ue;var ae=fe&&o.process;var le=function(){try{var t=ce&&ce.require&&ce.require("util").types;if(t){return t}return ae&&ae.binding&&ae.binding("util")}catch(t){}}();const he=le;var ve=he&&he.isTypedArray;var de=ve?se(ve):oe;const pe=de;var be=Object.prototype;var ye=be.hasOwnProperty;function je(t,n){var e=rn(t),r=!e&&mn(t),i=!e&&!r&&Sn(t),o=!e&&!r&&!i&&pe(t),s=e||r||i||o,u=s?vn(t.length,String):[],c=u.length;for(var f in t){if((n||ye.call(t,f))&&!(s&&(f=="length"||i&&(f=="offset"||f=="parent")||o&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Dn(f,c)))){u.push(f)}}return u}var ge=Object.prototype;function me(t){var n=t&&t.constructor,e=typeof n=="function"&&n.prototype||ge;return t===e}function we(t,n){return function(e){return t(n(e))}}var Oe=we(Object.keys,Object);const xe=Oe;var Ae=Object.prototype;var _e=Ae.hasOwnProperty;function Ce(t){if(!me(t)){return xe(t)}var n=[];for(var e in Object(t)){if(_e.call(t,e)&&e!="constructor"){n.push(e)}}return n}function Re(t){return t!=null&&Pn(t.length)&&!k(t)}function Se(t){return Re(t)?je(t):Ce(t)}function Me(t){return on(t,Se,hn)}var Ie=1;var De=Object.prototype;var $e=De.hasOwnProperty;function Pe(t,n,e,r,i,o){var s=e&Ie,u=Me(t),c=u.length,f=Me(n),a=f.length;if(c!=a&&!s){return false}var l=c;while(l--){var h=u[l];if(!(s?h in n:$e.call(n,h))){return false}}var v=o.get(t);var d=o.get(n);if(v&&d){return v==n&&d==t}var p=true;o.set(t,n);o.set(n,t);var b=s;while(++l<c){h=u[l];var y=t[h],j=n[h];if(r){var g=s?r(j,y,h,n,t,o):r(y,j,h,t,n,o)}if(!(g===undefined?y===j||i(y,j,e,r,o):g)){p=false;break}b||(b=h=="constructor")}if(p&&!b){var m=t.constructor,w=n.constructor;if(m!=w&&("constructor"in t&&"constructor"in n)&&!(typeof m=="function"&&m instanceof m&&typeof w=="function"&&w instanceof w)){p=false}}o["delete"](t);o["delete"](n);return p}var Te=Q(e,"DataView");const ke=Te;var Ee=Q(e,"Promise");const Fe=Ee;var Be=Q(e,"Set");const Ne=Be;var Ge=Q(e,"WeakMap");const Ue=Ge;var Ve="[object Map]",We="[object Object]",Le="[object Promise]",Je="[object Set]",ze="[object WeakMap]";var Ke="[object DataView]";var Xe=V(ke),Ye=V(tt),qe=V(Fe),He=V(Ne),Qe=V(Ue);var Ze=n;if(ke&&Ze(new ke(new ArrayBuffer(1)))!=Ke||tt&&Ze(new tt)!=Ve||Fe&&Ze(Fe.resolve())!=Le||Ne&&Ze(new Ne)!=Je||Ue&&Ze(new Ue)!=ze){Ze=function(t){var e=n(t),r=e==We?t.constructor:undefined,i=r?V(r):"";if(i){switch(i){case Xe:return Ke;case Ye:return Ve;case qe:return Le;case He:return Je;case Qe:return ze}}return e}}const tr=Ze;var nr=1;var er="[object Arguments]",rr="[object Array]",ir="[object Object]";var or=Object.prototype;var sr=or.hasOwnProperty;function ur(t,n,e,r,i,o){var s=rn(t),u=rn(n),c=s?rr:tr(t),f=u?rr:tr(n);c=c==er?ir:c;f=f==er?ir:f;var a=c==ir,l=f==ir,h=c==f;if(h&&Sn(t)){if(!Sn(n)){return false}s=true;a=false}if(h&&!a){o||(o=new _t);return s||pe(t)?Tt(t,n,e,r,i,o):tn(t,n,c,e,r,i,o)}if(!(e&nr)){var v=a&&sr.call(t,"__wrapped__"),d=l&&sr.call(n,"__wrapped__");if(v||d){var p=v?t.value():t,b=d?n.value():n;o||(o=new _t);return i(p,b,e,r,o)}}if(!h){return false}o||(o=new _t);return Pe(t,n,e,r,i,o)}function cr(t,n,e,r,o){if(t===n){return true}if(t==null||n==null||!i(t)&&!i(n)){return t!==t&&n!==n}return ur(t,n,e,r,cr,o)}var fr=1,ar=2;function lr(t,n,e,r){var i=e.length,o=i,s=!r;if(t==null){return!o}t=Object(t);while(i--){var u=e[i];if(s&&u[2]?u[1]!==t[u[0]]:!(u[0]in t)){return false}}while(++i<o){u=e[i];var c=u[0],f=t[c],a=u[1];if(s&&u[2]){if(f===undefined&&!(c in t)){return false}}else{var l=new _t;if(r){var h=r(f,a,c,t,n,l)}if(!(h===undefined?cr(a,f,fr|ar,r,l):h)){return false}}}return true}function hr(n){return n===n&&!t(n)}function vr(t){var n=Se(t),e=n.length;while(e--){var r=n[e],i=t[r];n[e]=[r,i,hr(i)]}return n}function dr(t,n){return function(e){if(e==null){return false}return e[t]===n&&(n!==undefined||t in Object(e))}}function pr(t){var n=vr(t);if(n.length==1&&n[0][2]){return dr(n[0][0],n[0][1])}return function(e){return e===t||lr(e,t,n)}}var br=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yr=/^\w*$/;function jr(t,n){if(rn(t)){return false}var e=typeof t;if(e=="number"||e=="symbol"||e=="boolean"||t==null||s(t)){return true}return yr.test(t)||!br.test(t)||n!=null&&t in Object(n)}var gr="Expected a function";function mr(t,n){if(typeof t!="function"||n!=null&&typeof n!="function"){throw new TypeError(gr)}var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i)){return o.get(i)}var s=t.apply(this,r);e.cache=o.set(i,s)||o;return s};e.cache=new(mr.Cache||Ot);return e}mr.Cache=Ot;var wr=500;function Or(t){var n=mr(t,(function(t){if(e.size===wr){e.clear()}return t}));var e=n.cache;return n}var xr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var Ar=/\\(\\)?/g;var _r=Or((function(t){var n=[];if(t.charCodeAt(0)===46){n.push("")}t.replace(xr,(function(t,e,r,i){n.push(r?i.replace(Ar,"$1"):e||t)}));return n}));const Cr=_r;function Rr(t,n){var e=-1,r=t==null?0:t.length,i=Array(r);while(++e<r){i[e]=n(t[e],e,t)}return i}var Sr=1/0;var Mr=r?r.prototype:undefined,Ir=Mr?Mr.toString:undefined;function Dr(t){if(typeof t=="string"){return t}if(rn(t)){return Rr(t,Dr)+""}if(s(t)){return Ir?Ir.call(t):""}var n=t+"";return n=="0"&&1/t==-Sr?"-0":n}function $r(t){return t==null?"":Dr(t)}function Pr(t,n){if(rn(t)){return t}return jr(t,n)?[t]:Cr($r(t))}var Tr=1/0;function kr(t){if(typeof t=="string"||s(t)){return t}var n=t+"";return n=="0"&&1/t==-Tr?"-0":n}function Er(t,n){n=Pr(n,t);var e=0,r=n.length;while(t!=null&&e<r){t=t[kr(n[e++])]}return e&&e==r?t:undefined}function Fr(t,n,e){var r=t==null?undefined:Er(t,n);return r===undefined?e:r}function Br(t,n){return t!=null&&n in Object(t)}function Nr(t,n,e){n=Pr(n,t);var r=-1,i=n.length,o=false;while(++r<i){var s=kr(n[r]);if(!(o=t!=null&&e(t,s))){break}t=t[s]}if(o||++r!=i){return o}i=t==null?0:t.length;return!!i&&Pn(i)&&Dn(s,i)&&(rn(t)||mn(t))}function Gr(t,n){return t!=null&&Nr(t,n,Br)}var Ur=1,Vr=2;function Wr(t,n){if(jr(t)&&hr(n)){return dr(kr(t),n)}return function(e){var r=Fr(e,t);return r===undefined&&r===n?Gr(e,t):cr(n,r,Ur|Vr)}}function Lr(t){return function(n){return n==null?undefined:n[t]}}function Jr(t){return function(n){return Er(n,t)}}function zr(t){return jr(t)?Lr(kr(t)):Jr(t)}function Kr(t){if(typeof t=="function"){return t}if(t==null){return c}if(typeof t=="object"){return rn(t)?Wr(t[0],t[1]):pr(t)}return zr(t)}var Xr=1/0,Yr=17976931348623157e292;function qr(t){if(!t){return t===0?t:0}t=u(t);if(t===Xr||t===-Xr){var n=t<0?-1:1;return n*Yr}return t===t?t:0}function Hr(t){var n=qr(t),e=n%1;return n===n?e?n-e:n:0}var Qr=Math.max;function Zr(t,n,e){var r=t==null?0:t.length;if(!r){return-1}var i=e==null?0:Hr(e);if(i<0){i=Qr(r+i,0)}return b(t,Kr(n),i)}var ti=Math.ceil,ni=Math.max;function ei(t,n,e,r){var i=-1,o=ni(ti((n-t)/(e||1)),0),s=Array(o);while(o--){s[r?o:++i]=t;t+=e}return s}function ri(n,e,r){if(!t(r)){return false}var i=typeof e;if(i=="number"?Re(r)&&Dn(e,r.length):i=="string"&&e in r){return j(r[e],n)}return false}function ii(t){return function(n,e,r){if(r&&typeof r!="number"&&ri(n,e,r)){e=r=undefined}n=qr(n);if(e===undefined){e=n;n=0}else{e=qr(e)}r=r===undefined?n<e?1:-1:qr(r);return ei(n,e,r,t)}}var oi=ii();const si=oi;const ui=(t,n,e)=>{const r=t.get(n);if(!r){t.set(n,[e])}else if(!r.includes(e)){r.push(e)}};const ci=(t,n)=>{let e;return(...r)=>{if(e){clearTimeout(e)}e=setTimeout((()=>{e=0;t(...r)}),n)}};const fi=t=>!("isConnected"in t)||t.isConnected;const ai=ci((t=>{for(let n of t.keys()){t.set(n,t.get(n).filter(fi))}}),2e3);const li=()=>{if(typeof h!=="function"){return{}}const t=new Map;return{dispose:()=>t.clear(),get:n=>{const e=h();if(e){ui(t,n,e)}},set:n=>{const e=t.get(n);if(e){t.set(n,e.filter(v))}ai(t)},reset:()=>{t.forEach((t=>t.forEach(v)));ai(t)}}};const hi=t=>typeof t==="function"?t():t;const vi=(t,n=((t,n)=>t!==n))=>{const e=hi(t);let r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));const i={dispose:[],get:[],set:[],reset:[]};const o=()=>{var n;r=new Map(Object.entries((n=hi(t))!==null&&n!==void 0?n:{}));i.reset.forEach((t=>t()))};const s=()=>{i.dispose.forEach((t=>t()));o()};const u=t=>{i.get.forEach((n=>n(t)));return r.get(t)};const c=(t,e)=>{const o=r.get(t);if(n(e,o,t)){r.set(t,e);i.set.forEach((n=>n(t,e,o)))}};const f=typeof Proxy==="undefined"?{}:new Proxy(e,{get(t,n){return u(n)},ownKeys(t){return Array.from(r.keys())},getOwnPropertyDescriptor(){return{enumerable:true,configurable:true}},has(t,n){return r.has(n)},set(t,n,e){c(n,e);return true}});const a=(t,n)=>{i[t].push(n);return()=>{di(i[t],n)}};const l=(n,e)=>{const r=a("set",((t,r)=>{if(t===n){e(r)}}));const i=a("reset",(()=>e(hi(t)[n])));return()=>{r();i()}};const h=(...t)=>{const n=t.reduce(((t,n)=>{if(n.set){t.push(a("set",n.set))}if(n.get){t.push(a("get",n.get))}if(n.reset){t.push(a("reset",n.reset))}if(n.dispose){t.push(a("dispose",n.dispose))}return t}),[]);return()=>n.forEach((t=>t()))};const v=t=>{const n=r.get(t);i.set.forEach((e=>e(t,n,n)))};return{state:f,get:u,set:c,on:a,onChange:l,use:h,dispose:s,reset:o,forceUpdate:v}};const di=(t,n)=>{const e=t.indexOf(n);if(e>=0){t[e]=t[t.length-1];t.length--}};const pi=(t,n)=>{const e=vi(t,n);e.use(li());return e};const bi=t=>({set(n,e){switch(n){case"trimmed":const n=t.get("proxyItems");const r=yi(e);const i=n.reduce(((t,n)=>{if(!r[n]){t.push(n)}return t}),[]);t.set("items",i);break}}});function yi(t){const n={};for(let e in t){for(let r in t[e]){n[r]=n[r]||t[e][r]}}return n}function ji(t,n){Object.entries(n).forEach((([n,e])=>{t.set(n,e)}))}class gi{get store(){return this.dataStore}constructor(t,n){const e=this.dataStore=pi(Object.assign({items:[],proxyItems:[],source:[],groupingDepth:0,groups:{},type:t,trimmed:{},groupingCustomRenderer:undefined},n));e.use(d(e));e.use(bi(e))}updateData(t,n,e=false){if(!e){this.store.set("trimmed",{})}this.store.set("items",[]);const r=si(0,(t===null||t===void 0?void 0:t.length)||0);ji(this.store,{source:t,proxyItems:[...r]});this.store.set("items",r);if(n){ji(this.store,{groupingDepth:n.depth,groups:n.groups,groupingCustomRenderer:n.customRenderer})}}addTrimmed(t){let n=this.store.get("trimmed");n=Object.assign(Object.assign({},n),t);ji(this.store,{trimmed:n})}setSourceData(t,n=true){Ai(this.store,t,n)}setData(t){const n=Object.assign({},t);ji(this.store,n)}refresh(){const t=this.store.get("source");this.store.set("source",[...t])}}function mi(t,n){const e=t.get("items");return e[n]}function wi(t){const n=t.get("source");return t.get("items").map((t=>n[t]))}const Oi=(t,n)=>{const e=t.get("source");return e[xi(t,n)]};const xi=(t,n)=>{const e=t.get("items");return e[n]};function Ai(t,n,e=true){const r=t.get("items");const i=t.get("source");for(let t in n){const e=r[t];const o=n[t];i[e]=o}if(e){t.set("source",[...i])}}function _i(t,n,e=true){const r=t.get("source");for(let t in n){r[t]=n[t]}if(e){t.set("source",[...r])}}function Ci(t,n){t.set("items",n)}function Ri(t,n){const e=t.get("items");const r=t.get("source");const i=Zr(r,{prop:n});return e.indexOf(i)}function Si(t,n,e,r){var i=-1,o=t==null?0:t.length;if(r&&o){e=t[++i]}while(++i<o){e=n(e,t[i],i,t)}return e}function Mi(t){return function(n,e,r){var i=-1,o=Object(n),s=r(n),u=s.length;while(u--){var c=s[t?u:++i];if(e(o[c],c,o)===false){break}}return n}}var Ii=Mi();const Di=Ii;function $i(t,n){return t&&Di(t,n,Se)}function Pi(t,n){return function(e,r){if(e==null){return e}if(!Re(e)){return t(e,r)}var i=e.length,o=n?i:-1,s=Object(e);while(n?o--:++o<i){if(r(s[o],o,s)===false){break}}return e}}var Ti=Pi($i);const ki=Ti;function Ei(t,n,e,r,i){i(t,(function(t,i,o){e=r?(r=false,t):n(e,t,i,o)}));return e}function Fi(t,n,e){var r=rn(t)?Si:Ei,i=arguments.length<3;return r(t,Kr(n),e,i,ki)}function Bi(){return{range:null,tempRange:null,tempRangeType:null,focus:null,edit:null,lastCell:null,nextFocus:null}}class Ni{constructor(){this.unsubscribe=[];this.store=pi(Bi());this.store.on("set",((t,n)=>{if(t==="tempRange"&&!n){this.store.set("tempRangeType",null)}}))}onChange(t,n){this.unsubscribe.push(this.store.onChange(t,n))}clearFocus(){ji(this.store,{focus:null,range:null,edit:null,tempRange:null})}setFocus(t,n){if(!n){ji(this.store,{focus:t})}else{ji(this.store,{focus:t,range:Ji(t,n),edit:null,tempRange:null})}}setNextFocus(t){ji(this.store,{nextFocus:t})}setTempArea(t){ji(this.store,{tempRange:t===null||t===void 0?void 0:t.area,tempRangeType:t===null||t===void 0?void 0:t.type,edit:null})}clearTemp(){ji(this.store,{tempRange:null})}setRangeArea(t){ji(this.store,{range:t,edit:null,tempRange:null})}setRange(t,n){const e=Ji(t,n);this.setRangeArea(e)}setLastCell(t){ji(this.store,{lastCell:t})}setEdit(t){const n=this.store.get("focus");if(n&&typeof t==="string"){ji(this.store,{edit:{x:n.x,y:n.y,val:t}});return}ji(this.store,{edit:null})}dispose(){this.unsubscribe.forEach((t=>t()));this.store.dispose()}}const Gi=-1;class Ui{constructor(){this.dirty=false;this.stores={};this.columnStores={};this.rowStores={};this.storesByType={};this.storesXToType={};this.storesYToType={};this.sections=[]}get focusedStore(){var t;for(let n in this.stores){for(let e in this.stores[n]){const r=(t=this.stores[n][e])===null||t===void 0?void 0:t.store.get("focus");if(r){return{entity:this.stores[n][e],cell:r,position:{x:parseInt(e,10),y:parseInt(n,10)}}}}}return null}get edit(){var t;return(t=this.focusedStore)===null||t===void 0?void 0:t.entity.store.get("edit")}get focused(){var t;return(t=this.focusedStore)===null||t===void 0?void 0:t.entity.store.get("focus")}get selectedRange(){var t;return(t=this.focusedStore)===null||t===void 0?void 0:t.entity.store.get("range")}registerSection(t){if(!t){this.sections.length=0;this.dirty=true;return}if(this.sections.indexOf(t)===-1){this.sections.push(t)}}beforeUpdate(){if(this.dirty){for(let t in this.stores){for(let n in this.stores[t]){this.stores[t][n].dispose()}}this.dirty=false}}registerColumn(t,n){if(Vi(t)){return new Ni}if(this.columnStores[t]){return this.columnStores[t]}this.columnStores[t]=new Ni;this.storesByType[n]=t;this.storesXToType[t]=n;return this.columnStores[t]}registerRow(t,n){if(Vi(t)){return new Ni}if(this.rowStores[t]){return this.rowStores[t]}this.rowStores[t]=new Ni;this.storesByType[n]=t;this.storesYToType[t]=n;return this.rowStores[t]}register({x:t,y:n}){var e,r;if(Vi(t)||Vi(n)){return new Ni}if(!this.stores[n]){this.stores[n]={}}if(this.stores[n][t]){return this.stores[n][t]}this.stores[n][t]=new Ni;(e=this.stores[n][t])===null||e===void 0?void 0:e.onChange("range",(e=>{this.columnStores[t].setRangeArea(e);this.rowStores[n].setRangeArea(e)}));(r=this.stores[n][t])===null||r===void 0?void 0:r.store.on("dispose",(()=>this.destroy(t,n)));return this.stores[n][t]}destroy(t,n){var e,r;(e=this.columnStores[t])===null||e===void 0?void 0:e.dispose();(r=this.rowStores[n])===null||r===void 0?void 0:r.dispose();delete this.rowStores[n];delete this.columnStores[t];if(this.storesXToType[t]){const n=this.storesXToType[t];delete this.storesXToType[t];delete this.storesByType[n]}if(this.storesYToType[n]){const t=this.storesYToType[n];delete this.storesYToType[n];delete this.storesByType[t]}if(this.stores[n]){delete this.stores[n][t]}if(!Object.keys(this.stores[n]||{}).length){delete this.stores[n]}}setEditByCell(t,n){this.focusByCell(t,n,n);this.setEdit("")}beforeNextFocusCell(t){var n;if(!this.focusedStore){return}const e=this.focusedStore.entity.store.get("lastCell");const r=e&&this.getNextStore(t,this.focusedStore.position,e);(n=r===null||r===void 0?void 0:r.store)===null||n===void 0?void 0:n.setNextFocus(Object.assign(Object.assign({},t),r.item))}focusByCell(t,n,e){const r=this.stores[t.y][t.x];this.focus(r,{focus:n,end:e})}focus(t,{focus:n,end:e}){const r=this.getCurrentStorePointer(t);if(!r){return null}const i=t.store.get("lastCell");const o=i&&this.getNextStore(n,r,i);if(o===null||o===void 0?void 0:o.store){const t=Object.assign(Object.assign({},n),o.item);this.focus(o.store,{focus:t,end:t});return null}if(i){n=Li(n,i);e=Li(e,i)}t.setFocus(n,e);return n}getCurrentStorePointer(t){let n;for(let e in this.stores){for(let r in this.stores[e]){const i=this.stores[e][r];if(i!==t){i.clearFocus()}else{n={x:parseInt(r,10),y:parseInt(e,10)}}}}return n}getNextStore(t,n,e){const r=Wi(t,e);let i;if(r){Object.entries(r).forEach((([t,e])=>{let o;switch(t){case"x":o=this.getXStores(n.y);break;case"y":o=this.getYStores(n.x);break}if(e>=0){i=o[++n[t]]}else{i=o[--n[t]];const s=i===null||i===void 0?void 0:i.store.get("lastCell");if(s){r[t]=s[t]+e}}}))}return{store:i,item:r}}clearAll(){var t;for(let n in this.stores){for(let e in this.stores[n]){(t=this.stores[n][e])===null||t===void 0?void 0:t.clearFocus()}}}setEdit(t){if(!this.focusedStore){return}this.focusedStore.entity.setEdit(t)}selectAll(){for(let t in this.stores){for(let n in this.stores[t]){const e=this.stores[t][n];if(!e){continue}const r=e.store.get("lastCell");if(r){e.setRange({x:0,y:0},{x:r.x-1,y:r.y-1})}}}}getXStores(t){return this.stores[t]}getYStores(t){const n={};for(let e in this.stores){n[e]=this.stores[e][t]}return n}}function Vi(t){return t===Gi}function Wi(t,n){const e={};let r=["x","y"];for(let n of r){if(t[n]<0){e[n]=t[n];return e}}for(let i of r){if(t[i]>=n[i]){e[i]=t[i]-n[i];return e}}return null}function Li(t,n){const e=Object.assign({},t);const r=["x","y"];for(const i of r){if(t[i]<0){e[i]=0}else if(t[i]>=n[i]){e[i]=n[i]-1}}return e}function Ji(t,n){return t&&n?{x:Math.min(t.x,n.x),y:Math.min(t.y,n.y),x1:Math.max(t.x,n.x),y1:Math.max(t.y,n.y)}:null}function zi(t){return t.x===t.x1&&t.y===t.y1}function Ki(t){if(typeof t==="undefined"||t===null){return""}return t}function Xi(t,n){const e=n.cellParser?n.cellParser(t,n):t[n.prop];return Ki(e)}function Yi(t){if(t.pin){return t.pin}return"rgCol"}function qi(t){const n={};for(const[e,r]of t.entries()){if(r.size){n[e]=r.size}}return n}function Hi(t){return!!t.children}function Qi(t,n=0,e){const r={columns:{rgCol:[],colPinStart:[],colPinEnd:[]},columnByProp:{},columnGrouping:{rgCol:[],colPinStart:[],colPinEnd:[]},maxLevel:n,sort:{}};return Fi(t,((t,r)=>{if(Hi(r)){return Zi(t,r,Qi(r.children,n+1,e),n)}const i=r.columnType&&(e===null||e===void 0?void 0:e[r.columnType]);const o=Object.assign(Object.assign({},i),r);if(!o.pin){t.columns.rgCol.push(o)}else{t.columns[o.pin].push(o)}if(o.order){t.sort[o.prop]=o}if(!t.columnByProp[o.prop]){t.columnByProp[o.prop]=[]}t.columnByProp[o.prop].push(o);o.beforeSetup&&o.beforeSetup(o);return t}),r)}function Zi(t,n,e,r=0){const i=Object.assign(Object.assign({},n),{level:r,ids:[]});for(let n in e.columns){const r=n;const o=t.columns[r];const s=e.columns[r];if(rn(o)&&rn(s)){o.push(...s);if(s.length){t.columnGrouping[r].push(Object.assign(Object.assign({},i),{ids:s.map((t=>t.prop))}))}}}for(let n in e.columnGrouping){const r=n;const i=e.columnGrouping[r];t.columnGrouping[r].push(...i)}t.maxLevel=Math.max(t.maxLevel,e.maxLevel);t.sort=Object.assign(Object.assign({},t.sort),e.sort);return t}function to(t,n){for(const e of t){if(Hi(e)){const t=to(e.children,n);if(t){return t}}else if(e.prop===n){return e}}return undefined}function no(t,n){return to(t,n)}const eo=`${f}-depth`;const ro=`${f}-name`;const io=`${f}-id`;const oo=`${f}-value`;const so=`${f}-column`;const uo=`${f}-expanded`;const co=`${f}-original-index`;const fo=`group-expand`;const ao=`groupexpandclick`;const lo="rgRow";function ho(t,n){return t[n]||null}function vo(t,n,{prevExpanded:e,expandedAll:r,getGroupValue:i=ho}){const o=new Map;t.forEach(((t,e)=>{const r=n.map((n=>i(t,n)));const s=r.pop();let u=o;r.forEach((t=>{if(!u.has(t)){u.set(t,new Map)}u=u.get(t)}));if(!u.has(s)){u.set(s,[])}const c=u.get(s);c.push(Object.assign(Object.assign({},t),{[co]:e}))}));let s=-1;const u=n.length;const c={};const f={};const a={};const l=[];function h(t,n,i){const o=n.length;t.forEach(((t,u)=>{const v=[...n,u];const d=v.join(",");const p=i&&(!!r||!!(e===null||e===void 0?void 0:e[d]));l.push({[ro]:u,[eo]:o,[io]:JSON.stringify(v),[oo]:d,[uo]:p});s+=1;if(!p&&o){c[s]=true}if(Array.isArray(t)){t.forEach((t=>{s+=1;if(!p){c[s]=true}f[t[co]]=s;const n=v.map(((t,n)=>v.slice(0,n+1).join(",")));n.forEach((t=>{if(!a[t]){a[t]=[]}a[t].push(s)}))}));l.push(...t)}else{h(t,v,p)}}))}h(o,[],true);return{sourceWithGroups:l,depth:u,trimmed:c,oldNewIndexMap:f,childrenByGroup:a}}function po(t){return t&&t[ro]}function bo(t){return typeof(t===null||t===void 0?void 0:t[ro])!=="undefined"}function yo(t){return t&&typeof t[so]!=="undefined"}function jo(t,n){const e=t.length;let r=0;for(;r<e;r++){if(t[r]!==n[r]){return r}}return r}function go(t){const n=JSON.parse(t);if(!Array.isArray(n)){return null}return n}function mo(t,n,e){const r=go(e[io]);if(!r){return false}const i=jo(t,r);return n[eo]<i}function wo(t,n,e){var r=-1,i=t.length;if(n<0){n=-n>i?0:i+n}e=e>i?i:e;if(e<0){e+=i}i=n>e?0:e-n>>>0;n>>>=0;var o=Array(i);while(++r<i){o[r]=t[r+n]}return o}function Oo(t,n,e){var r=t==null?0:t.length;if(!r){return[]}if(e&&typeof e!="number"&&ri(t,n,e)){n=0;e=r}else{n=n==null?0:Hr(n);e=e===undefined?r:Hr(e)}return wo(t,n,e)}class xo{get columns(){return wi(this.source)}constructor(t,n){this.dataStore=t;this.source=n;this.unsubscribe=[];this.hasGrouping=false;this.unsubscribe.push(n.onChange("source",(t=>this.checkGrouping(t))));this.checkGrouping(n.get("source"));this.type=n.get("type")}checkGrouping(t){for(let n of t){if(yo(n)){this.hasGrouping=true;return}this.hasGrouping=false}}isReadOnly(t,n){var e;const r=(e=this.columns[n])===null||e===void 0?void 0:e.readonly;if(typeof r==="function"){const e=this.rowDataModel(t,n);return r(e)}return!!r}mergeProperties(t,n,e,r,i){const o=Object.assign({},e);o.class=Object.assign(Object.assign({},typeof o.class==="string"?{[o.class]:true}:o.class),{[a]:true,[l]:this.isReadOnly(t,n)});const s=i===null||i===void 0?void 0:i(r);if(!s){return o}return Co(o,s)}getRowClass(t,n){const e=Oi(this.dataStore,t)||{};return e[n]||""}getCellData(t,n){const e=this.rowDataModel(t,n);return Ki(e.model[e.prop])}getSaveData(t,n,e){const r=this.rowDataModel(t,n);if(typeof e==="undefined"){e=Ki(r.model[r.prop])}return{prop:r.prop,rowIndex:t,colIndex:n,val:e,model:r.model,colType:this.type,type:this.dataStore.get("type")}}getCellEditor(t,n,e){var r;const i=(r=this.columns[n])===null||r===void 0?void 0:r.editor;if(!i){return undefined}if(typeof i==="string"){return e[i]}return i}rowDataModel(t,n){const e=this.columns[n];const r=e===null||e===void 0?void 0:e.prop;const i=Oi(this.dataStore,t)||{};const o=i[r];const s=this.dataStore.get("type");return{prop:r,model:i,data:this.dataStore.get("source"),column:e,rowIndex:t,colIndex:n,colType:this.type,type:s,value:o}}getRangeData(t,n){var e;const r={};const i=t.oldRange.x1-t.oldRange.x+1;const o=t.oldRange.y1-t.oldRange.y+1;const s={};for(let u=t.newRange.y,c=0;u<t.newRange.y1+1;u++,c++){const f=t.oldRange.y+c%o;const a=Oi(this.dataStore,f)||{};for(let o=t.newRange.x,c=0;o<t.newRange.x1+1;o++,c++){if(u>=t.oldRange.y&&u<=t.oldRange.y1&&o>=t.oldRange.x&&o<=t.oldRange.x1){continue}if(!this.columns[o]){continue}const l=(e=this.columns[o])===null||e===void 0?void 0:e.prop;const h=t.oldRange.x+c%i;const v=n[h].prop;if(!this.isReadOnly(u,o)){if(!r[u]){r[u]={}}r[u][l]=a[v];if(!s[u]){s[u]={}}s[u][l]={colIndex:h,colProp:v,rowIndex:f}}}}return{changed:r,mapping:s}}getTransformedDataToApply(t,n){const e={};const r=n.length;const i=this.columns.length;const o=this.dataStore.get("items").length;let s=t.y;let u=0;for(let c=0;s<o&&c<r;s++,c++){const o=n[c%r];const f=(o===null||o===void 0?void 0:o.length)||0;let a=t.x;for(let t=0;a<i&&t<f;a++,t++){const n=this.columns[a].prop;const r=t%i;if(!this.isReadOnly(s,a)){if(!e[s]){e[s]={}}e[s][n]=o[r]}}u=Math.max(u,a-1)}const c=Ji(t,{y:s-1,x:u});return{changed:e,range:c}}getRangeStaticData(t,n){const e={};for(let r=t.y,i=0;r<t.y1+1;r++,i++){for(let i=t.x,o=0;i<t.x1+1;i++,o++){if(!this.columns[i]){continue}const t=this.columns[i].prop;if(!this.isReadOnly(r,i)){if(!e[r]){e[r]={}}e[r][t]=n}}}return e}getRangeTransformedToProps(t,n){var e;const r=[];const i=this.dataStore.get("type");for(let o=t.y,s=0;o<t.y1+1;o++,s++){for(let s=t.x,u=0;s<t.x1+1;s++,u++){const t=(e=this.columns[s])===null||e===void 0?void 0:e.prop;r.push({prop:t,rowIndex:o,colIndex:s,model:Oi(n,o),type:i,colType:this.type})}}return r}copyRangeArray(t,n){const e=[...this.columns];const r=Oo(e,t.x,t.x1+1).map((t=>t.prop));const i=[];const o={};for(let e=t.y;e<=t.y1;e++){const t=[];o[e]={};for(let i of r){const r=Oi(n,e);if(!r){continue}const s=r[i];t.push(s);o[e][i]=s}i.push(t)}return{data:i,mapping:o}}destroy(){this.unsubscribe.forEach((t=>t()))}}function Ao(t,n){if(typeof t==="function"){return t(n)}return!!t}function _o(t={},n={}){if(typeof t==="string"){t={[t]:true}}if(typeof n==="string"){n={[n]:true}}return Object.assign(Object.assign({},t),n)}function Co(t,n){if(n.className){n.class=_o(n.class,n.className);delete n.className}let e=Object.assign(Object.assign({},n),t);if(n.class){e.class=_o(e.class,n.class)}if(n.style){e.style=Object.assign(Object.assign({},n.style),e.style)}return e}export{Ui as $,Fi as A,rn as B,ki as C,gi as D,Hr as E,ri as F,bo as G,po as H,Co as I,uo as J,go as K,mo as L,eo as M,io as N,lo as O,oo as P,so as Q,ao as R,Ni as S,vo as T,yo as U,Lr as V,Re as W,tr as X,Ce as Y,si as Z,Gi as _,wi as a,xo as a0,Zr as a1,fo as a2,ro as a3,Ao as a4,Q as a5,Kr as a6,Oi as b,xi as c,_i as d,Ci as e,Ri as f,mi as g,yi as h,Vi as i,Li as j,Ji as k,zi as l,ji as m,Wi as n,Ki as o,d as p,Xi as q,Yi as r,Ai as s,bi as t,qi as u,Hi as v,Qi as w,Zi as x,no as y,pi as z};
5
+ //# sourceMappingURL=column.service-264bf729.js.map