@ni/nimble-components 19.6.1 → 19.6.3

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 (40) hide show
  1. package/dist/all-components-bundle.js +160 -120
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +656 -632
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/all-components.d.ts +1 -0
  6. package/dist/esm/all-components.js +1 -0
  7. package/dist/esm/all-components.js.map +1 -1
  8. package/dist/esm/anchor-menu-item/styles.js +1 -1
  9. package/dist/esm/anchor-tabs/styles.js +4 -0
  10. package/dist/esm/anchor-tabs/styles.js.map +1 -1
  11. package/dist/esm/anchor-tree-item/styles.js +3 -6
  12. package/dist/esm/anchor-tree-item/styles.js.map +1 -1
  13. package/dist/esm/breadcrumb-item/styles.js +4 -6
  14. package/dist/esm/breadcrumb-item/styles.js.map +1 -1
  15. package/dist/esm/card-button/styles.js +2 -2
  16. package/dist/esm/list-option/styles.js +8 -0
  17. package/dist/esm/list-option/styles.js.map +1 -1
  18. package/dist/esm/menu-item/styles.js +1 -1
  19. package/dist/esm/number-field/styles.js +1 -1
  20. package/dist/esm/patterns/dropdown/styles.js +5 -1
  21. package/dist/esm/patterns/dropdown/styles.js.map +1 -1
  22. package/dist/esm/rich-text-editor/index.d.ts +12 -0
  23. package/dist/esm/rich-text-editor/index.js +18 -0
  24. package/dist/esm/rich-text-editor/index.js.map +1 -0
  25. package/dist/esm/rich-text-editor/styles.d.ts +1 -0
  26. package/dist/esm/rich-text-editor/styles.js +12 -0
  27. package/dist/esm/rich-text-editor/styles.js.map +1 -0
  28. package/dist/esm/rich-text-editor/template.d.ts +2 -0
  29. package/dist/esm/rich-text-editor/template.js +5 -0
  30. package/dist/esm/rich-text-editor/template.js.map +1 -0
  31. package/dist/esm/select/styles.js +1 -1
  32. package/dist/esm/src/all-components.d.ts +1 -0
  33. package/dist/esm/src/rich-text-editor/index.d.ts +12 -0
  34. package/dist/esm/src/rich-text-editor/styles.d.ts +1 -0
  35. package/dist/esm/src/rich-text-editor/template.d.ts +2 -0
  36. package/dist/esm/tabs/styles.js +4 -0
  37. package/dist/esm/tabs/styles.js.map +1 -1
  38. package/dist/esm/tree-item/styles.js +3 -6
  39. package/dist/esm/tree-item/styles.js.map +1 -1
  40. package/package.json +1 -1
@@ -1724,7 +1724,7 @@ const Qc=fe`
1724
1724
  height: ${da};
1725
1725
  }
1726
1726
 
1727
- :host(.indent-1) .start {
1727
+ :host(.indent-1) [part='start'] {
1728
1728
  grid-column: 1;
1729
1729
  }
1730
1730
 
@@ -1921,6 +1921,10 @@ const rd=fe`
1921
1921
  grid-template-rows: auto 1fr;
1922
1922
  }
1923
1923
 
1924
+ [part='start'] {
1925
+ display: none;
1926
+ }
1927
+
1924
1928
  .tablist {
1925
1929
  display: grid;
1926
1930
  grid-template-rows: auto auto;
@@ -2046,7 +2050,7 @@ return new be(o,i)})`
2046
2050
  }
2047
2051
 
2048
2052
  ${""}
2049
- span[part="start"] {
2053
+ [part="start"] {
2050
2054
  width: ${da};
2051
2055
  }
2052
2056
 
@@ -2063,11 +2067,8 @@ return new be(o,i)})`
2063
2067
  height: ${da};
2064
2068
  }
2065
2069
 
2066
- ${""}
2067
- .end {
2068
- display: flex;
2069
- fill: currentcolor;
2070
- margin-inline-start: ${da};
2070
+ [part='end'] {
2071
+ display: none;
2071
2072
  }
2072
2073
  `
2073
2074
  class hd extends $n{constructor(){super(...arguments),this.selected=!1,this.disabled=!1}isNestedItem(){return fn(this.parentElement)}handleFocus(e){this.setAttribute("tabindex","0")}handleBlur(e){this.setAttribute("tabindex","-1")}keydownHandler(e){if(e.defaultPrevented)return!1
@@ -2477,14 +2478,12 @@ const Xp=fe`
2477
2478
  text-decoration: underline;
2478
2479
  }
2479
2480
 
2480
- .start,
2481
- .end {
2482
- display: flex;
2483
- align-items: center;
2481
+ [part='start'] {
2482
+ display: none;
2484
2483
  }
2485
2484
 
2486
- .start {
2487
- margin-inline-end: 4px;
2485
+ [part='end'] {
2486
+ display: none;
2488
2487
  }
2489
2488
 
2490
2489
  slot[name='separator'] {
@@ -2656,11 +2655,11 @@ const Jp=fe`
2656
2655
  display: contents;
2657
2656
  }
2658
2657
 
2659
- slot[name='start'] {
2658
+ [part='start'] {
2660
2659
  display: none;
2661
2660
  }
2662
2661
 
2663
- slot[name='end'] {
2662
+ [part='end'] {
2664
2663
  display: none;
2665
2664
  }
2666
2665
  `.withBehaviors(wd(gs,fe`
@@ -3027,6 +3026,10 @@ const ug=ai.tagFor(hg),pg="above",gg="underline",vg="outline",mg="block",fg=fe`
3027
3026
  width: 0px;
3028
3027
  }
3029
3028
 
3029
+ [part='start'] {
3030
+ display: none;
3031
+ }
3032
+
3030
3033
  .control {
3031
3034
  align-items: center;
3032
3035
  box-sizing: border-box;
@@ -3132,7 +3135,7 @@ const ug=ai.tagFor(hg),pg="above",gg="underline",vg="outline",mg="block",fg=fe`
3132
3135
  fill: ${Il};
3133
3136
  }
3134
3137
 
3135
- .end {
3138
+ [part='end'] {
3136
3139
  margin-inline-start: auto;
3137
3140
  }
3138
3141
 
@@ -3868,6 +3871,10 @@ const Jf=fe`
3868
3871
  height: ${sa};
3869
3872
  }
3870
3873
 
3874
+ [part='start'] {
3875
+ display: none;
3876
+ }
3877
+
3871
3878
  .content {
3872
3879
  padding: 8px 4px;
3873
3880
  }
@@ -3912,6 +3919,10 @@ const Jf=fe`
3912
3919
  box-shadow: none;
3913
3920
  outline: none;
3914
3921
  }
3922
+
3923
+ [part='end'] {
3924
+ display: none;
3925
+ }
3915
3926
  `
3916
3927
  class eb extends ko{get value(){return super.value}set value(e){super.value=`${e}`,this.$fastController.isConnected&&this.setAttribute("value",this.value)}connectedCallback(){super.connectedCallback(),this.setAttribute("value",this.value)}}const tb=eb.compose({baseName:"list-option",baseClass:ko,template:(e,t)=>G`
3917
3928
  <template
@@ -4125,7 +4136,7 @@ const db=ai.tagFor(lb),hb=fe`
4125
4136
  width: ${da};
4126
4137
  height: ${da};
4127
4138
  }
4128
- :host(.indent-1) .start {
4139
+ :host(.indent-1) [part='start'] {
4129
4140
  grid-column: 1;
4130
4141
  }
4131
4142
  :host(.indent-1) .content {
@@ -4305,7 +4316,7 @@ const gb="underline",vb="outline",mb="block",fb=fe`
4305
4316
  }
4306
4317
 
4307
4318
  [part='start'] {
4308
- display: contents;
4319
+ display: none;
4309
4320
  }
4310
4321
 
4311
4322
  .control {
@@ -4658,7 +4669,7 @@ class kb extends Oi{}const Sb=kb.compose({baseName:"radio-group",baseClass:Oi,te
4658
4669
  `,styles:Cb,shadowOptions:{delegatesFocus:!0}})
4659
4670
  ai.getOrCreate().withPrefix("nimble").register(Sb()),ai.tagFor(kb)
4660
4671
  const _b=G`
4661
- <template> Rich Text Viewer here. </template>
4672
+ <template> Rich Text Editor here. </template>
4662
4673
  `,Ib=fe`
4663
4674
  ${xn("flex")}
4664
4675
 
@@ -4667,9 +4678,21 @@ const _b=G`
4667
4678
  color: ${_l};
4668
4679
  }
4669
4680
  `
4670
- class Rb extends Rt{}const Mb=Rb.compose({baseName:"rich-text-viewer",template:_b,styles:Ib})
4681
+ class Rb extends Rt{}const Mb=Rb.compose({baseName:"rich-text-editor",template:_b,styles:Ib})
4671
4682
  ai.getOrCreate().withPrefix("nimble").register(Mb()),ai.tagFor(Rb)
4672
- const Ab=fe`
4683
+ const Ab=G`
4684
+ <template> Rich Text Viewer here. </template>
4685
+ `,Eb=fe`
4686
+ ${xn("flex")}
4687
+
4688
+ :host {
4689
+ font: ${Sl};
4690
+ color: ${_l};
4691
+ }
4692
+ `
4693
+ class Ob extends Rt{}const Fb=Ob.compose({baseName:"rich-text-viewer",template:Ab,styles:Eb})
4694
+ ai.getOrCreate().withPrefix("nimble").register(Fb()),ai.tagFor(Ob)
4695
+ const Vb=fe`
4673
4696
  ${fg}
4674
4697
  ${bg}
4675
4698
 
@@ -4686,7 +4709,7 @@ const Ab=fe`
4686
4709
  order: 2;
4687
4710
  }
4688
4711
 
4689
- .end {
4712
+ [part='end'] {
4690
4713
  display: contents;
4691
4714
  }
4692
4715
  `.withBehaviors(Uc(mg,fe`
@@ -4695,9 +4718,9 @@ const Ab=fe`
4695
4718
  padding-bottom: 0;
4696
4719
  }
4697
4720
  `))
4698
- class Eb extends Li{constructor(){super(...arguments),this.appearance=gg,this.errorVisible=!1}setPositioning(){this.$fastController.isConnected&&(super.setPositioning(),this.updateListboxMaxHeightCssVariable())}slottedOptionsChanged(e,t){const o=this.value
4699
- super.slottedOptionsChanged(e,t),o&&(this.value=o)}regionChanged(e,t){this.region&&this.control&&(this.region.anchorElement=this.control)}controlChanged(e,t){this.region&&this.control&&(this.region.anchorElement=this.control)}maxHeightChanged(){this.updateListboxMaxHeightCssVariable()}updateListboxMaxHeightCssVariable(){this.listbox&&this.listbox.style.setProperty("--ni-private-select-max-height",`${this.maxHeight}px`)}}e([ne],Eb.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Eb.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Eb.prototype,"errorVisible",void 0),e([m],Eb.prototype,"region",void 0)
4700
- const Ob=Eb.compose({baseName:"select",baseClass:Li,template:(e,t)=>G`
4721
+ class Hb extends Li{constructor(){super(...arguments),this.appearance=gg,this.errorVisible=!1}setPositioning(){this.$fastController.isConnected&&(super.setPositioning(),this.updateListboxMaxHeightCssVariable())}slottedOptionsChanged(e,t){const o=this.value
4722
+ super.slottedOptionsChanged(e,t),o&&(this.value=o)}regionChanged(e,t){this.region&&this.control&&(this.region.anchorElement=this.control)}controlChanged(e,t){this.region&&this.control&&(this.region.anchorElement=this.control)}maxHeightChanged(){this.updateListboxMaxHeightCssVariable()}updateListboxMaxHeightCssVariable(){this.listbox&&this.listbox.style.setProperty("--ni-private-select-max-height",`${this.maxHeight}px`)}}e([ne],Hb.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Hb.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Hb.prototype,"errorVisible",void 0),e([m],Hb.prototype,"region",void 0)
4723
+ const Pb=Hb.compose({baseName:"select",baseClass:Li,template:(e,t)=>G`
4701
4724
  <template
4702
4725
  class="${e=>[e.collapsible&&"collapsible",e.collapsible&&e.open&&"open",e.disabled&&"disabled",e.collapsible&&e.position].filter(Boolean).join(" ")}"
4703
4726
  aria-activedescendant="${e=>e.ariaActiveDescendant}"
@@ -4761,15 +4784,15 @@ const Ob=Eb.compose({baseName:"select",baseClass:Li,template:(e,t)=>G`
4761
4784
  </div>
4762
4785
  </${md}>
4763
4786
  </template>
4764
- `,styles:Ab,indicator:Rd.data,end:G`
4787
+ `,styles:Vb,indicator:Rd.data,end:G`
4765
4788
  <${Ap}
4766
4789
  severity="error"
4767
4790
  class="error-icon"
4768
4791
  ></${Ap}>
4769
4792
  ${dg}
4770
4793
  `})
4771
- ai.getOrCreate().withPrefix("nimble").register(Ob()),ai.tagFor(Eb)
4772
- const Fb=fe`
4794
+ ai.getOrCreate().withPrefix("nimble").register(Pb()),ai.tagFor(Hb)
4795
+ const Tb=fe`
4773
4796
  ${xn("inline-flex")}
4774
4797
 
4775
4798
  :host {
@@ -4905,7 +4928,7 @@ const Fb=fe`
4905
4928
  :host {
4906
4929
  --ni-private-spinner-bits-background-color: ${Un};
4907
4930
  }
4908
- `)),Vb=G`
4931
+ `)),Db=G`
4909
4932
  <template role="progressbar">
4910
4933
  <div class="container">
4911
4934
  <div class="bit1"></div>
@@ -4913,9 +4936,9 @@ const Fb=fe`
4913
4936
  </div>
4914
4937
  </template>
4915
4938
  `
4916
- class Hb extends Rt{}const Pb=Hb.compose({baseName:"spinner",template:Vb,styles:Fb})
4917
- ai.getOrCreate().withPrefix("nimble").register(Pb()),ai.tagFor(Hb)
4918
- const Tb=fe`
4939
+ class Lb extends Rt{}const zb=Lb.compose({baseName:"spinner",template:Db,styles:Tb})
4940
+ ai.getOrCreate().withPrefix("nimble").register(zb()),ai.tagFor(Lb)
4941
+ const Bb=fe`
4919
4942
  ${xn("inline-flex")}
4920
4943
 
4921
4944
  :host {
@@ -5075,7 +5098,7 @@ const Tb=fe`
5075
5098
  --ni-private-switch-indicator-border-color: ${Un};
5076
5099
  --ni-private-switch-indicator-border-disabled-color: ${cs(Un,.3)};
5077
5100
  }
5078
- `)),Db=G`
5101
+ `)),Nb=G`
5079
5102
  <template
5080
5103
  role="switch"
5081
5104
  aria-checked="${e=>e.checked}"
@@ -5110,15 +5133,15 @@ const Tb=fe`
5110
5133
  </div>
5111
5134
  </template>
5112
5135
  `
5113
- class Lb extends Zi{}const zb=Lb.compose({baseClass:Zi,baseName:"switch",template:Db,styles:Tb})
5114
- ai.getOrCreate().withPrefix("nimble").register(zb()),ai.tagFor(Lb)
5115
- class Bb extends ji{}const Nb=Bb.compose({baseName:"tab",baseClass:ji,template:(e,t)=>G`
5136
+ class Zb extends Zi{}const qb=Zb.compose({baseClass:Zi,baseName:"switch",template:Nb,styles:Bb})
5137
+ ai.getOrCreate().withPrefix("nimble").register(qb()),ai.tagFor(Zb)
5138
+ class jb extends ji{}const Ub=jb.compose({baseName:"tab",baseClass:ji,template:(e,t)=>G`
5116
5139
  <template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">
5117
5140
  <slot></slot>
5118
5141
  </template>
5119
5142
  `,styles:od})
5120
- ai.getOrCreate().withPrefix("nimble").register(Nb()),ai.tagFor(Bb)
5121
- const Zb=fe`
5143
+ ai.getOrCreate().withPrefix("nimble").register(Ub()),ai.tagFor(jb)
5144
+ const Gb=fe`
5122
5145
  ${xn("block")}
5123
5146
 
5124
5147
  :host {
@@ -5128,11 +5151,11 @@ const Zb=fe`
5128
5151
  padding-top: ${la};
5129
5152
  }
5130
5153
  `
5131
- class qb extends qi{}const jb=qb.compose({baseName:"tab-panel",baseClass:qi,template:(e,t)=>G`
5154
+ class Wb extends qi{}const Kb=Wb.compose({baseName:"tab-panel",baseClass:qi,template:(e,t)=>G`
5132
5155
  <template slot="tabpanel" role="tabpanel">
5133
5156
  <slot></slot>
5134
5157
  </template>
5135
- `,styles:Zb})
5158
+ `,styles:Gb})
5136
5159
 
5137
5160
  ;/**
5138
5161
  * table-core
@@ -5144,10 +5167,10 @@ class qb extends qi{}const jb=qb.compose({baseName:"tab-panel",baseClass:qi,temp
5144
5167
  *
5145
5168
  * @license MIT
5146
5169
  */
5147
- function Ub(e,t){return"function"==typeof e?e(t):e}function Gb(e,t){return o=>{t.setState((t=>({...t,[e]:Ub(o,t[e])})))}}function Wb(e){return e instanceof Function}function Kb(e,t){const o=[],i=e=>{e.forEach((e=>{o.push(e)
5170
+ function Xb(e,t){return"function"==typeof e?e(t):e}function Yb(e,t){return o=>{t.setState((t=>({...t,[e]:Xb(o,t[e])})))}}function Qb(e){return e instanceof Function}function Jb(e,t){const o=[],i=e=>{e.forEach((e=>{o.push(e)
5148
5171
  const n=t(e)
5149
5172
  null!=n&&n.length&&i(n)}))}
5150
- return i(e),o}function Xb(e,t,o){let i,n=[]
5173
+ return i(e),o}function ew(e,t,o){let i,n=[]
5151
5174
  return()=>{let s
5152
5175
  o.key&&o.debug&&(s=Date.now())
5153
5176
  const r=e()
@@ -5155,36 +5178,36 @@ if(!(r.length!==n.length||r.some(((e,t)=>n[t]!==e))))return i
5155
5178
  let a
5156
5179
  if(n=r,o.key&&o.debug&&(a=Date.now()),i=t(...r),null==o||null==o.onChange||o.onChange(i),o.key&&o.debug&&null!=o&&o.debug()){const e=Math.round(100*(Date.now()-s))/100,t=Math.round(100*(Date.now()-a))/100,i=t/16,n=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e
5157
5180
  return e}
5158
- console.info(`%c⏱ ${n(t,5)} /${n(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==o?void 0:o.key)}return i}}function Yb(e,t,o){var i
5181
+ console.info(`%c⏱ ${n(t,5)} /${n(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==o?void 0:o.key)}return i}}function tw(e,t,o){var i
5159
5182
  let n={id:null!=(i=o.id)?i:t.id,column:t,index:o.index,isPlaceholder:!!o.isPlaceholder,placeholderId:o.placeholderId,depth:o.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=o=>{o.subHeaders&&o.subHeaders.length&&o.subHeaders.map(t),e.push(o)}
5160
5183
  return t(n),e},getContext:()=>({table:e,header:n,column:t})}
5161
- return e._features.forEach((t=>{Object.assign(n,null==t.createHeader?void 0:t.createHeader(n,e))})),n}ai.getOrCreate().withPrefix("nimble").register(jb()),ai.tagFor(qb)
5162
- const Qb={createTable:e=>({getHeaderGroups:Xb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,o,i,n)=>{var s,r
5184
+ return e._features.forEach((t=>{Object.assign(n,null==t.createHeader?void 0:t.createHeader(n,e))})),n}ai.getOrCreate().withPrefix("nimble").register(Kb()),ai.tagFor(Wb)
5185
+ const ow={createTable:e=>({getHeaderGroups:ew((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,o,i,n)=>{var s,r
5163
5186
  const a=null!=(s=null==i?void 0:i.map((e=>o.find((t=>t.id===e)))).filter(Boolean))?s:[],l=null!=(r=null==n?void 0:n.map((e=>o.find((t=>t.id===e)))).filter(Boolean))?r:[]
5164
- return Jb(t,[...a,...o.filter((e=>!(null!=i&&i.includes(e.id)||null!=n&&n.includes(e.id)))),...l],e)}),{key:!1,debug:()=>{var t
5165
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:Xb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,o,i,n)=>Jb(t,o=o.filter((e=>!(null!=i&&i.includes(e.id)||null!=n&&n.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t
5166
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:Xb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,o,i)=>{var n
5167
- return Jb(t,null!=(n=null==i?void 0:i.map((e=>o.find((t=>t.id===e)))).filter(Boolean))?n:[],e,"left")}),{key:!1,debug:()=>{var t
5168
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:Xb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,o,i)=>{var n
5169
- return Jb(t,null!=(n=null==i?void 0:i.map((e=>o.find((t=>t.id===e)))).filter(Boolean))?n:[],e,"right")}),{key:!1,debug:()=>{var t
5170
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:Xb((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5171
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:Xb((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5172
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:Xb((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5173
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:Xb((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5174
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:Xb((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5175
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:Xb((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5176
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:Xb((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5177
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:Xb((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5178
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:Xb((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t
5187
+ return iw(t,[...a,...o.filter((e=>!(null!=i&&i.includes(e.id)||null!=n&&n.includes(e.id)))),...l],e)}),{key:!1,debug:()=>{var t
5188
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:ew((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,o,i,n)=>iw(t,o=o.filter((e=>!(null!=i&&i.includes(e.id)||null!=n&&n.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t
5189
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:ew((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,o,i)=>{var n
5190
+ return iw(t,null!=(n=null==i?void 0:i.map((e=>o.find((t=>t.id===e)))).filter(Boolean))?n:[],e,"left")}),{key:!1,debug:()=>{var t
5191
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:ew((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,o,i)=>{var n
5192
+ return iw(t,null!=(n=null==i?void 0:i.map((e=>o.find((t=>t.id===e)))).filter(Boolean))?n:[],e,"right")}),{key:!1,debug:()=>{var t
5193
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:ew((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5194
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:ew((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5195
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:ew((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5196
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:ew((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5197
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:ew((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5198
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:ew((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5199
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:ew((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5200
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:ew((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5201
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:ew((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t
5179
5202
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
5180
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:Xb((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t
5203
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:ew((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t
5181
5204
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
5182
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:Xb((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t
5205
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:ew((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t
5183
5206
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
5184
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:Xb((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,o)=>{var i,n,s,r,a,l
5207
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:ew((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,o)=>{var i,n,s,r,a,l
5185
5208
  return[...null!=(i=null==(n=e[0])?void 0:n.headers)?i:[],...null!=(s=null==(r=t[0])?void 0:r.headers)?s:[],...null!=(a=null==(l=o[0])?void 0:l.headers)?a:[]].map((e=>e.getLeafHeaders())).flat()}),{key:!1,debug:()=>{var t
5186
5209
  return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})})}
5187
- function Jb(e,t,o,i){var n,s
5210
+ function iw(e,t,o,i){var n,s
5188
5211
  let r=0
5189
5212
  const a=function(e,t){void 0===t&&(t=1),r=Math.max(r,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var o
5190
5213
  null!=(o=e.columns)&&o.length&&a(e.columns,t+1)}),0)}
@@ -5194,16 +5217,16 @@ const c=(e,t)=>{const n={depth:t,id:[i,`${t}`].filter(Boolean).join("_"),headers
5194
5217
  e.forEach((e=>{const r=[...s].reverse()[0]
5195
5218
  let a,l=!1
5196
5219
  if(e.column.depth===n.depth&&e.column.parent?a=e.column.parent:(a=e.column,l=!0),r&&(null==r?void 0:r.column)===a)r.subHeaders.push(e)
5197
- else{const n=Yb(o,a,{id:[i,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${s.filter((e=>e.column===a)).length}`:void 0,depth:t,index:s.length})
5198
- n.subHeaders.push(e),s.push(n)}n.headers.push(e),e.headerGroup=n})),l.push(n),t>0&&c(s,t-1)},d=t.map(((e,t)=>Yb(o,e,{depth:r,index:t})))
5220
+ else{const n=tw(o,a,{id:[i,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${s.filter((e=>e.column===a)).length}`:void 0,depth:t,index:s.length})
5221
+ n.subHeaders.push(e),s.push(n)}n.headers.push(e),e.headerGroup=n})),l.push(n),t>0&&c(s,t-1)},d=t.map(((e,t)=>tw(o,e,{depth:r,index:t})))
5199
5222
  c(d,r-1),l.reverse()
5200
5223
  const h=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,o=0,i=[0]
5201
5224
  e.subHeaders&&e.subHeaders.length?(i=[],h(e.subHeaders).forEach((e=>{let{colSpan:o,rowSpan:n}=e
5202
5225
  t+=o,i.push(n)}))):t=1
5203
5226
  return o+=Math.min(...i),e.colSpan=t,e.rowSpan=o,{colSpan:t,rowSpan:o}}))
5204
- return h(null!=(n=null==(s=l[0])?void 0:s.headers)?n:[]),l}const ew={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},tw={getDefaultColumnDef:()=>ew,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:Gb("columnSizing",e),onColumnSizingInfoChange:Gb("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var o,i,n
5227
+ return h(null!=(n=null==(s=l[0])?void 0:s.headers)?n:[]),l}const nw={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},sw={getDefaultColumnDef:()=>nw,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:Yb("columnSizing",e),onColumnSizingInfoChange:Yb("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var o,i,n
5205
5228
  const s=t.getState().columnSizing[e.id]
5206
- return Math.min(Math.max(null!=(o=e.columnDef.minSize)?o:ew.minSize,null!=(i=null!=s?s:e.columnDef.size)?i:ew.size),null!=(n=e.columnDef.maxSize)?n:ew.maxSize)},getStart:o=>{const i=o?"left"===o?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),n=i.findIndex((t=>t.id===e.id))
5229
+ return Math.min(Math.max(null!=(o=e.columnDef.minSize)?o:nw.minSize,null!=(i=null!=s?s:e.columnDef.size)?i:nw.size),null!=(n=e.columnDef.maxSize)?n:nw.maxSize)},getStart:o=>{const i=o?"left"===o?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),n=i.findIndex((t=>t.id===e.id))
5207
5230
  if(n>0){const e=i[n-1]
5208
5231
  return e.getStart(o)+e.getSize()}return 0},resetSize:()=>{t.setColumnSizing((t=>{let{[e.id]:o,...i}=t
5209
5232
  return i}))},getCanResize:()=>{var o,i
@@ -5213,24 +5236,24 @@ e.subHeaders.length?e.subHeaders.forEach(o):t+=null!=(i=e.column.getSize())?i:0}
5213
5236
  return o(e),t},getStart:()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1]
5214
5237
  return t.getStart()+t.getSize()}return 0},getResizeHandler:()=>{const o=t.getColumn(e.column.id),i=null==o?void 0:o.getCanResize()
5215
5238
  return n=>{if(!o||!i)return
5216
- if(null==n.persist||n.persist(),iw(n)&&n.touches&&n.touches.length>1)return
5217
- const s=e.getSize(),r=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[o.id,o.getSize()]],a=iw(n)?Math.round(n.touches[0].clientX):n.clientX,l={},c=(e,o)=>{"number"==typeof o&&(t.setColumnSizingInfo((e=>{var t,i
5239
+ if(null==n.persist||n.persist(),aw(n)&&n.touches&&n.touches.length>1)return
5240
+ const s=e.getSize(),r=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[o.id,o.getSize()]],a=aw(n)?Math.round(n.touches[0].clientX):n.clientX,l={},c=(e,o)=>{"number"==typeof o&&(t.setColumnSizingInfo((e=>{var t,i
5218
5241
  const n=o-(null!=(t=null==e?void 0:e.startOffset)?t:0),s=Math.max(n/(null!=(i=null==e?void 0:e.startSize)?i:0),-.999999)
5219
5242
  return e.columnSizingStart.forEach((e=>{let[t,o]=e
5220
5243
  l[t]=Math.round(100*Math.max(o+o*s,0))/100})),{...e,deltaOffset:n,deltaPercentage:s}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...l}))))},d=e=>c("move",e),h=e=>{c("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},u={moveHandler:e=>d(e.clientX),upHandler:e=>{document.removeEventListener("mousemove",u.moveHandler),document.removeEventListener("mouseup",u.upHandler),h(e.clientX)}},p={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t
5221
- document.removeEventListener("touchmove",p.moveHandler),document.removeEventListener("touchend",p.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),h(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof ow)return ow
5244
+ document.removeEventListener("touchmove",p.moveHandler),document.removeEventListener("touchend",p.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),h(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof rw)return rw
5222
5245
  let e=!1
5223
5246
  try{const t={get passive(){return e=!0,!1}},o=()=>{}
5224
- window.addEventListener("test",o,t),window.removeEventListener("test",o)}catch(t){e=!1}return ow=e,ow}()&&{passive:!1}
5225
- iw(n)?(document.addEventListener("touchmove",p.moveHandler,g),document.addEventListener("touchend",p.upHandler,g)):(document.addEventListener("mousemove",u.moveHandler,g),document.addEventListener("mouseup",u.upHandler,g)),t.setColumnSizingInfo((e=>({...e,startOffset:a,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:r,isResizingColumn:o.id})))}}}),createTable:e=>({setColumnSizing:t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var o
5247
+ window.addEventListener("test",o,t),window.removeEventListener("test",o)}catch(t){e=!1}return rw=e,rw}()&&{passive:!1}
5248
+ aw(n)?(document.addEventListener("touchmove",p.moveHandler,g),document.addEventListener("touchend",p.upHandler,g)):(document.addEventListener("mousemove",u.moveHandler,g),document.addEventListener("mouseup",u.upHandler,g)),t.setColumnSizingInfo((e=>({...e,startOffset:a,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:r,isResizingColumn:o.id})))}}}),createTable:e=>({setColumnSizing:t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var o
5226
5249
  e.setColumnSizing(t?{}:null!=(o=e.initialState.columnSizing)?o:{})},resetHeaderSizeInfo:t=>{var o
5227
5250
  e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(o=e.initialState.columnSizingInfo)?o:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},getTotalSize:()=>{var t,o
5228
5251
  return null!=(t=null==(o=e.getHeaderGroups()[0])?void 0:o.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},getLeftTotalSize:()=>{var t,o
5229
5252
  return null!=(t=null==(o=e.getLeftHeaderGroups()[0])?void 0:o.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},getCenterTotalSize:()=>{var t,o
5230
5253
  return null!=(t=null==(o=e.getCenterHeaderGroups()[0])?void 0:o.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},getRightTotalSize:()=>{var t,o
5231
5254
  return null!=(t=null==(o=e.getRightHeaderGroups()[0])?void 0:o.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}})}
5232
- let ow=null
5233
- function iw(e){return"touchstart"===e.type}const nw={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Gb("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,o=!1
5255
+ let rw=null
5256
+ function aw(e){return"touchstart"===e.type}const lw={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Yb("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,o=!1
5234
5257
  return{_autoResetExpanded:()=>{var i,n
5235
5258
  if(t){if(null!=(i=null!=(n=e.options.autoResetAll)?n:e.options.autoResetExpanded)?i:!e.options.manualExpanding){if(o)return
5236
5259
  o=!0,e._queue((()=>{e.resetExpanded(),o=!1}))}}else e._queue((()=>{t=!0}))},setExpanded:t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),toggleAllRowsExpanded:t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},resetExpanded:t=>{var o,i
@@ -5247,57 +5270,57 @@ return o}return i}))},getIsExpanded:()=>{var o
5247
5270
  const i=t.getState().expanded
5248
5271
  return!!(null!=(o=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?o:!0===i||(null==i?void 0:i[e.id]))},getCanExpand:()=>{var o,i,n
5249
5272
  return null!=(o=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?o:(null==(i=t.options.enableExpanding)||i)&&!(null==(n=e.subRows)||!n.length)},getToggleExpandedHandler:()=>{const t=e.getCanExpand()
5250
- return()=>{t&&e.toggleExpanded()}}})},sw=(e,t,o)=>{var i
5273
+ return()=>{t&&e.toggleExpanded()}}})},cw=(e,t,o)=>{var i
5251
5274
  const n=o.toLowerCase()
5252
5275
  return Boolean(null==(i=e.getValue(t))?void 0:i.toLowerCase().includes(n))}
5253
- sw.autoRemove=e=>vw(e)
5254
- const rw=(e,t,o)=>{var i
5276
+ cw.autoRemove=e=>ww(e)
5277
+ const dw=(e,t,o)=>{var i
5255
5278
  return Boolean(null==(i=e.getValue(t))?void 0:i.includes(o))}
5256
- rw.autoRemove=e=>vw(e)
5257
- const aw=(e,t,o)=>{var i
5279
+ dw.autoRemove=e=>ww(e)
5280
+ const hw=(e,t,o)=>{var i
5258
5281
  return(null==(i=e.getValue(t))?void 0:i.toLowerCase())===o.toLowerCase()}
5259
- aw.autoRemove=e=>vw(e)
5260
- const lw=(e,t,o)=>{var i
5282
+ hw.autoRemove=e=>ww(e)
5283
+ const uw=(e,t,o)=>{var i
5261
5284
  return null==(i=e.getValue(t))?void 0:i.includes(o)}
5262
- lw.autoRemove=e=>vw(e)||!(null!=e&&e.length)
5263
- const cw=(e,t,o)=>!o.some((o=>{var i
5285
+ uw.autoRemove=e=>ww(e)||!(null!=e&&e.length)
5286
+ const pw=(e,t,o)=>!o.some((o=>{var i
5264
5287
  return!(null!=(i=e.getValue(t))&&i.includes(o))}))
5265
- cw.autoRemove=e=>vw(e)||!(null!=e&&e.length)
5266
- const dw=(e,t,o)=>o.some((o=>{var i
5288
+ pw.autoRemove=e=>ww(e)||!(null!=e&&e.length)
5289
+ const gw=(e,t,o)=>o.some((o=>{var i
5267
5290
  return null==(i=e.getValue(t))?void 0:i.includes(o)}))
5268
- dw.autoRemove=e=>vw(e)||!(null!=e&&e.length)
5269
- const hw=(e,t,o)=>e.getValue(t)===o
5270
- hw.autoRemove=e=>vw(e)
5271
- const uw=(e,t,o)=>e.getValue(t)==o
5272
- uw.autoRemove=e=>vw(e)
5273
- const pw=(e,t,o)=>{let[i,n]=o
5291
+ gw.autoRemove=e=>ww(e)||!(null!=e&&e.length)
5292
+ const vw=(e,t,o)=>e.getValue(t)===o
5293
+ vw.autoRemove=e=>ww(e)
5294
+ const mw=(e,t,o)=>e.getValue(t)==o
5295
+ mw.autoRemove=e=>ww(e)
5296
+ const fw=(e,t,o)=>{let[i,n]=o
5274
5297
  const s=e.getValue(t)
5275
5298
  return s>=i&&s<=n}
5276
- pw.resolveFilterValue=e=>{let[t,o]=e,i="number"!=typeof t?parseFloat(t):t,n="number"!=typeof o?parseFloat(o):o,s=null===t||Number.isNaN(i)?-1/0:i,r=null===o||Number.isNaN(n)?1/0:n
5299
+ fw.resolveFilterValue=e=>{let[t,o]=e,i="number"!=typeof t?parseFloat(t):t,n="number"!=typeof o?parseFloat(o):o,s=null===t||Number.isNaN(i)?-1/0:i,r=null===o||Number.isNaN(n)?1/0:n
5277
5300
  if(s>r){const e=s
5278
- s=r,r=e}return[s,r]},pw.autoRemove=e=>vw(e)||vw(e[0])&&vw(e[1])
5279
- const gw={includesString:sw,includesStringSensitive:rw,equalsString:aw,arrIncludes:lw,arrIncludesAll:cw,arrIncludesSome:dw,equals:hw,weakEquals:uw,inNumberRange:pw}
5280
- function vw(e){return null==e||""===e}const mw={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:Gb("columnFilters",e),onGlobalFilterChange:Gb("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var o,i
5301
+ s=r,r=e}return[s,r]},fw.autoRemove=e=>ww(e)||ww(e[0])&&ww(e[1])
5302
+ const bw={includesString:cw,includesStringSensitive:dw,equalsString:hw,arrIncludes:uw,arrIncludesAll:pw,arrIncludesSome:gw,equals:vw,weakEquals:mw,inNumberRange:fw}
5303
+ function ww(e){return null==e||""===e}const xw={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:Yb("columnFilters",e),onGlobalFilterChange:Yb("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var o,i
5281
5304
  const n=null==(o=e.getCoreRowModel().flatRows[0])||null==(i=o._getAllCellsByColumnId()[t.id])?void 0:i.getValue()
5282
5305
  return"string"==typeof n||"number"==typeof n}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{const o=t.getCoreRowModel().flatRows[0],i=null==o?void 0:o.getValue(e.id)
5283
- return"string"==typeof i?gw.includesString:"number"==typeof i?gw.inNumberRange:"boolean"==typeof i||null!==i&&"object"==typeof i?gw.equals:Array.isArray(i)?gw.arrIncludes:gw.weakEquals},getFilterFn:()=>{var o,i
5284
- return Wb(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(o=null==(i=t.options.filterFns)?void 0:i[e.columnDef.filterFn])?o:gw[e.columnDef.filterFn]},getCanFilter:()=>{var o,i,n
5306
+ return"string"==typeof i?bw.includesString:"number"==typeof i?bw.inNumberRange:"boolean"==typeof i||null!==i&&"object"==typeof i?bw.equals:Array.isArray(i)?bw.arrIncludes:bw.weakEquals},getFilterFn:()=>{var o,i
5307
+ return Qb(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(o=null==(i=t.options.filterFns)?void 0:i[e.columnDef.filterFn])?o:bw[e.columnDef.filterFn]},getCanFilter:()=>{var o,i,n
5285
5308
  return(null==(o=e.columnDef.enableColumnFilter)||o)&&(null==(i=t.options.enableColumnFilters)||i)&&(null==(n=t.options.enableFilters)||n)&&!!e.accessorFn},getCanGlobalFilter:()=>{var o,i,n,s
5286
5309
  return(null==(o=e.columnDef.enableGlobalFilter)||o)&&(null==(i=t.options.enableGlobalFilter)||i)&&(null==(n=t.options.enableFilters)||n)&&(null==(s=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||s)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var o,i
5287
5310
  return null==(o=t.getState().columnFilters)||null==(i=o.find((t=>t.id===e.id)))?void 0:i.value},getFilterIndex:()=>{var o,i
5288
- return null!=(o=null==(i=t.getState().columnFilters)?void 0:i.findIndex((t=>t.id===e.id)))?o:-1},setFilterValue:o=>{t.setColumnFilters((t=>{const i=e.getFilterFn(),n=null==t?void 0:t.find((t=>t.id===e.id)),s=Ub(o,n?n.value:void 0)
5311
+ return null!=(o=null==(i=t.getState().columnFilters)?void 0:i.findIndex((t=>t.id===e.id)))?o:-1},setFilterValue:o=>{t.setColumnFilters((t=>{const i=e.getFilterFn(),n=null==t?void 0:t.find((t=>t.id===e.id)),s=Xb(o,n?n.value:void 0)
5289
5312
  var r
5290
- if(fw(i,s,e))return null!=(r=null==t?void 0:t.filter((t=>t.id!==e.id)))?r:[]
5313
+ if(yw(i,s,e))return null!=(r=null==t?void 0:t.filter((t=>t.id!==e.id)))?r:[]
5291
5314
  const a={id:e.id,value:s}
5292
5315
  var l
5293
- return n?null!=(l=null==t?void 0:t.map((t=>t.id===e.id?a:t)))?l:[]:null!=t&&t.length?[...t,a]:[a]}))},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>gw.includesString,getGlobalFilterFn:()=>{var t,o
5316
+ return n?null!=(l=null==t?void 0:t.map((t=>t.id===e.id?a:t)))?l:[]:null!=t&&t.length?[...t,a]:[a]}))},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>bw.includesString,getGlobalFilterFn:()=>{var t,o
5294
5317
  const{globalFilterFn:i}=e.options
5295
- return Wb(i)?i:"auto"===i?e.getGlobalAutoFilterFn():null!=(t=null==(o=e.options.filterFns)?void 0:o[i])?t:gw[i]},setColumnFilters:t=>{const o=e.getAllLeafColumns()
5318
+ return Qb(i)?i:"auto"===i?e.getGlobalAutoFilterFn():null!=(t=null==(o=e.options.filterFns)?void 0:o[i])?t:bw[i]},setColumnFilters:t=>{const o=e.getAllLeafColumns()
5296
5319
  null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var i
5297
- return null==(i=Ub(t,e))?void 0:i.filter((e=>{const t=o.find((t=>t.id===e.id))
5298
- if(t){if(fw(t.getFilterFn(),e.value,t))return!1}return!0}))}))},setGlobalFilter:t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var o,i
5320
+ return null==(i=Xb(t,e))?void 0:i.filter((e=>{const t=o.find((t=>t.id===e.id))
5321
+ if(t){if(yw(t.getFilterFn(),e.value,t))return!1}return!0}))}))},setGlobalFilter:t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var o,i
5299
5322
  e.setColumnFilters(t?[]:null!=(o=null==(i=e.initialState)?void 0:i.columnFilters)?o:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})}
5300
- function fw(e,t,o){return!(!e||!e.autoRemove)&&e.autoRemove(t,o)||void 0===t||"string"==typeof t&&!t}const bw={sum:(e,t,o)=>o.reduce(((t,o)=>{const i=o.getValue(e)
5323
+ function yw(e,t,o){return!(!e||!e.autoRemove)&&e.autoRemove(t,o)||void 0===t||"string"==typeof t&&!t}const $w={sum:(e,t,o)=>o.reduce(((t,o)=>{const i=o.getValue(e)
5301
5324
  return t+("number"==typeof i?i:0)}),0),min:(e,t,o)=>{let i
5302
5325
  return o.forEach((t=>{const o=t.getValue(e)
5303
5326
  null!=o&&(i>o||void 0===i&&o>=o)&&(i=o)})),i},max:(e,t,o)=>{let i
@@ -5310,13 +5333,13 @@ null!=n&&(n=+n)>=n&&(++o,i+=n)})),o)return i/o},median:(e,t)=>{if(!t.length)retu
5310
5333
  let o=0,i=0
5311
5334
  return t.forEach((t=>{let n=t.getValue(e)
5312
5335
  "number"==typeof n&&(o=Math.min(o,n),i=Math.max(i,n))})),(o+i)/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length}
5313
- const ww={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Gb("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var o
5336
+ const Cw={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Yb("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var o
5314
5337
  return e.setRowSelection(t?{}:null!=(o=e.initialState.rowSelection)?o:{})},toggleAllRowsSelected:t=>{e.setRowSelection((o=>{t=void 0!==t?t:!e.getIsAllRowsSelected()
5315
5338
  const i={...o},n=e.getPreGroupedRowModel().flatRows
5316
5339
  return t?n.forEach((e=>{e.getCanSelect()&&(i[e.id]=!0)})):n.forEach((e=>{delete i[e.id]})),i}))},toggleAllPageRowsSelected:t=>e.setRowSelection((o=>{const i=void 0!==t?t:!e.getIsAllPageRowsSelected(),n={...o}
5317
- return e.getRowModel().rows.forEach((t=>{xw(n,t.id,i,e)})),n})),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:Xb((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,o)=>Object.keys(t).length?yw(e,o):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t
5318
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:Xb((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,o)=>Object.keys(t).length?yw(e,o):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t
5319
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:Xb((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,o)=>Object.keys(t).length?yw(e,o):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t
5340
+ return e.getRowModel().rows.forEach((t=>{kw(n,t.id,i,e)})),n})),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:ew((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,o)=>Object.keys(t).length?Sw(e,o):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t
5341
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:ew((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,o)=>Object.keys(t).length?Sw(e,o):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t
5342
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:ew((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,o)=>Object.keys(t).length?Sw(e,o):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t
5320
5343
  return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:o}=e.getState()
5321
5344
  let i=Boolean(t.length&&Object.keys(o).length)
5322
5345
  return i&&t.some((e=>e.getCanSelect()&&!o[e.id]))&&(i=!1),i},getIsAllPageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows,{rowSelection:o}=e.getState()
@@ -5327,71 +5350,71 @@ return o>0&&o<e.getFilteredRowModel().flatRows.length},getIsSomePageRowsSelected
5327
5350
  return!e.getIsAllPageRowsSelected()&&t.some((e=>e.getIsSelected()||e.getIsSomeSelected()))},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:o=>{const i=e.getIsSelected()
5328
5351
  t.setRowSelection((n=>{if(i===(o=void 0!==o?o:!i))return n
5329
5352
  const s={...n}
5330
- return xw(s,e.id,o,t),s}))},getIsSelected:()=>{const{rowSelection:o}=t.getState()
5331
- return $w(e,o)},getIsSomeSelected:()=>{const{rowSelection:o}=t.getState()
5332
- return"some"===Cw(e,o)},getIsAllSubRowsSelected:()=>{const{rowSelection:o}=t.getState()
5333
- return"all"===Cw(e,o)},getCanSelect:()=>{var o
5353
+ return kw(s,e.id,o,t),s}))},getIsSelected:()=>{const{rowSelection:o}=t.getState()
5354
+ return _w(e,o)},getIsSomeSelected:()=>{const{rowSelection:o}=t.getState()
5355
+ return"some"===Iw(e,o)},getIsAllSubRowsSelected:()=>{const{rowSelection:o}=t.getState()
5356
+ return"all"===Iw(e,o)},getCanSelect:()=>{var o
5334
5357
  return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(o=t.options.enableRowSelection)||o},getCanSelectSubRows:()=>{var o
5335
5358
  return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(o=t.options.enableSubRowSelection)||o},getCanMultiSelect:()=>{var o
5336
5359
  return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(o=t.options.enableMultiRowSelection)||o},getToggleSelectedHandler:()=>{const t=e.getCanSelect()
5337
5360
  return o=>{var i
5338
- t&&e.toggleSelected(null==(i=o.target)?void 0:i.checked)}}})},xw=(e,t,o,i)=>{var n
5361
+ t&&e.toggleSelected(null==(i=o.target)?void 0:i.checked)}}})},kw=(e,t,o,i)=>{var n
5339
5362
  const s=i.getRow(t)
5340
- o?(s.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),s.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(n=s.subRows)&&n.length&&s.getCanSelectSubRows()&&s.subRows.forEach((t=>xw(e,t.id,o,i)))}
5341
- function yw(e,t){const o=e.getState().rowSelection,i=[],n={},s=function(e,t){return e.map((e=>{var t
5342
- const r=$w(e,o)
5363
+ o?(s.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),s.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(n=s.subRows)&&n.length&&s.getCanSelectSubRows()&&s.subRows.forEach((t=>kw(e,t.id,o,i)))}
5364
+ function Sw(e,t){const o=e.getState().rowSelection,i=[],n={},s=function(e,t){return e.map((e=>{var t
5365
+ const r=_w(e,o)
5343
5366
  if(r&&(i.push(e),n[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:s(e.subRows)}),r)return e})).filter(Boolean)}
5344
- return{rows:s(t.rows),flatRows:i,rowsById:n}}function $w(e,t){var o
5345
- return null!=(o=t[e.id])&&o}function Cw(e,t,o){if(e.subRows&&e.subRows.length){let o=!0,i=!1
5346
- return e.subRows.forEach((e=>{i&&!o||($w(e,t)?i=!0:o=!1)})),o?"all":!!i&&"some"}return!1}const kw=/([0-9]+)/gm
5347
- function Sw(e,t){return e===t?0:e>t?1:-1}function _w(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Iw(e,t){const o=e.split(kw).filter(Boolean),i=t.split(kw).filter(Boolean)
5367
+ return{rows:s(t.rows),flatRows:i,rowsById:n}}function _w(e,t){var o
5368
+ return null!=(o=t[e.id])&&o}function Iw(e,t,o){if(e.subRows&&e.subRows.length){let o=!0,i=!1
5369
+ return e.subRows.forEach((e=>{i&&!o||(_w(e,t)?i=!0:o=!1)})),o?"all":!!i&&"some"}return!1}const Rw=/([0-9]+)/gm
5370
+ function Mw(e,t){return e===t?0:e>t?1:-1}function Aw(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Ew(e,t){const o=e.split(Rw).filter(Boolean),i=t.split(Rw).filter(Boolean)
5348
5371
  for(;o.length&&i.length;){const e=o.shift(),t=i.shift(),n=parseInt(e,10),s=parseInt(t,10),r=[n,s].sort()
5349
5372
  if(isNaN(r[0])){if(e>t)return 1
5350
5373
  if(t>e)return-1}else{if(isNaN(r[1]))return isNaN(n)?-1:1
5351
5374
  if(n>s)return 1
5352
- if(s>n)return-1}}return o.length-i.length}const Rw={alphanumeric:(e,t,o)=>Iw(_w(e.getValue(o)).toLowerCase(),_w(t.getValue(o)).toLowerCase()),alphanumericCaseSensitive:(e,t,o)=>Iw(_w(e.getValue(o)),_w(t.getValue(o))),text:(e,t,o)=>Sw(_w(e.getValue(o)).toLowerCase(),_w(t.getValue(o)).toLowerCase()),textCaseSensitive:(e,t,o)=>Sw(_w(e.getValue(o)),_w(t.getValue(o))),datetime:(e,t,o)=>{const i=e.getValue(o),n=t.getValue(o)
5353
- return i>n?1:i<n?-1:0},basic:(e,t,o)=>Sw(e.getValue(o),t.getValue(o))},Mw=[Qb,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Gb("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:o=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=o?o:!e.getIsVisible()})))},getIsVisible:()=>{var o,i
5375
+ if(s>n)return-1}}return o.length-i.length}const Ow={alphanumeric:(e,t,o)=>Ew(Aw(e.getValue(o)).toLowerCase(),Aw(t.getValue(o)).toLowerCase()),alphanumericCaseSensitive:(e,t,o)=>Ew(Aw(e.getValue(o)),Aw(t.getValue(o))),text:(e,t,o)=>Mw(Aw(e.getValue(o)).toLowerCase(),Aw(t.getValue(o)).toLowerCase()),textCaseSensitive:(e,t,o)=>Mw(Aw(e.getValue(o)),Aw(t.getValue(o))),datetime:(e,t,o)=>{const i=e.getValue(o),n=t.getValue(o)
5376
+ return i>n?1:i<n?-1:0},basic:(e,t,o)=>Mw(e.getValue(o),t.getValue(o))},Fw=[ow,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Yb("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:o=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=o?o:!e.getIsVisible()})))},getIsVisible:()=>{var o,i
5354
5377
  return null==(o=null==(i=t.getState().columnVisibility)?void 0:i[e.id])||o},getCanHide:()=>{var o,i
5355
- return(null==(o=e.columnDef.enableHiding)||o)&&(null==(i=t.options.enableHiding)||i)},getToggleVisibilityHandler:()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:Xb((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e
5356
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:Xb((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,o)=>[...e,...t,...o]),{key:!1,debug:()=>{var e
5357
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{const t=(t,o)=>Xb((()=>[o(),o().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t
5378
+ return(null==(o=e.columnDef.enableHiding)||o)&&(null==(i=t.options.enableHiding)||i)},getToggleVisibilityHandler:()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:ew((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e
5379
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:ew((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,o)=>[...e,...t,...o]),{key:!1,debug:()=>{var e
5380
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{const t=(t,o)=>ew((()=>[o(),o().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t
5358
5381
  return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})
5359
5382
  return{getVisibleFlatColumns:t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),getVisibleLeafColumns:t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),setColumnVisibility:t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),resetColumnVisibility:t=>{var o
5360
5383
  e.setColumnVisibility(t?{}:null!=(o=e.initialState.columnVisibility)?o:{})},toggleAllColumnsVisible:t=>{var o
5361
5384
  t=null!=(o=t)?o:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,o)=>({...e,[o.id]:t||!(null!=o.getCanHide&&o.getCanHide())})),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),getToggleAllColumnsVisibilityHandler:()=>t=>{var o
5362
- e.toggleAllColumnsVisible(null==(o=t.target)?void 0:o.checked)}}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Gb("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var o
5363
- e.setColumnOrder(t?[]:null!=(o=e.initialState.columnOrder)?o:[])},_getOrderColumnsFn:Xb((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,o)=>i=>{let n=[]
5385
+ e.toggleAllColumnsVisible(null==(o=t.target)?void 0:o.checked)}}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Yb("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var o
5386
+ e.setColumnOrder(t?[]:null!=(o=e.initialState.columnOrder)?o:[])},_getOrderColumnsFn:ew((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,o)=>i=>{let n=[]
5364
5387
  if(null!=e&&e.length){const t=[...e],o=[...i]
5365
5388
  for(;o.length&&t.length;){const e=t.shift(),i=o.findIndex((t=>t.id===e))
5366
5389
  i>-1&&n.push(o.splice(i,1)[0])}n=[...n,...o]}else n=i
5367
5390
  return function(e,t,o){if(null==t||!t.length||!o)return e
5368
5391
  const i=e.filter((e=>!t.includes(e.id)))
5369
- return"remove"===o?i:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...i]}(n,t,o)}),{key:!1})})},{getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:Gb("columnPinning",e)}),createColumn:(e,t)=>({pin:o=>{const i=e.getLeafColumns().map((e=>e.id)).filter(Boolean)
5392
+ return"remove"===o?i:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...i]}(n,t,o)}),{key:!1})})},{getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:Yb("columnPinning",e)}),createColumn:(e,t)=>({pin:o=>{const i=e.getLeafColumns().map((e=>e.id)).filter(Boolean)
5370
5393
  t.setColumnPinning((e=>{var t,n,s,r,a,l
5371
5394
  return"right"===o?{left:(null!=(s=null==e?void 0:e.left)?s:[]).filter((e=>!(null!=i&&i.includes(e)))),right:[...(null!=(r=null==e?void 0:e.right)?r:[]).filter((e=>!(null!=i&&i.includes(e)))),...i]}:"left"===o?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=i&&i.includes(e)))),...i],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter((e=>!(null!=i&&i.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=i&&i.includes(e)))),right:(null!=(n=null==e?void 0:e.right)?n:[]).filter((e=>!(null!=i&&i.includes(e))))}}))},getCanPin:()=>e.getLeafColumns().some((e=>{var o,i
5372
5395
  return(null==(o=e.columnDef.enablePinning)||o)&&(null==(i=t.options.enablePinning)||i)})),getIsPinned:()=>{const o=e.getLeafColumns().map((e=>e.id)),{left:i,right:n}=t.getState().columnPinning,s=o.some((e=>null==i?void 0:i.includes(e))),r=o.some((e=>null==n?void 0:n.includes(e)))
5373
5396
  return s?"left":!!r&&"right"},getPinnedIndex:()=>{var o,i,n
5374
5397
  const s=e.getIsPinned()
5375
- return s?null!=(o=null==(i=t.getState().columnPinning)||null==(n=i[s])?void 0:n.indexOf(e.id))?o:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:Xb((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,o)=>{const i=[...null!=t?t:[],...null!=o?o:[]]
5398
+ return s?null!=(o=null==(i=t.getState().columnPinning)||null==(n=i[s])?void 0:n.indexOf(e.id))?o:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:ew((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,o)=>{const i=[...null!=t?t:[],...null!=o?o:[]]
5376
5399
  return e.filter((e=>!i.includes(e.column.id)))}),{key:"row.getCenterVisibleCells",debug:()=>{var e
5377
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:Xb((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),{key:"row.getLeftVisibleCells",debug:()=>{var e
5378
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:Xb((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),{key:"row.getRightVisibleCells",debug:()=>{var e
5400
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:ew((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),{key:"row.getLeftVisibleCells",debug:()=>{var e
5401
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:ew((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),{key:"row.getRightVisibleCells",debug:()=>{var e
5379
5402
  return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var o,i
5380
5403
  return e.setColumnPinning(t?{left:[],right:[]}:null!=(o=null==(i=e.initialState)?void 0:i.columnPinning)?o:{left:[],right:[]})},getIsSomeColumnsPinned:t=>{var o
5381
5404
  const i=e.getState().columnPinning
5382
5405
  var n,s
5383
- return t?Boolean(null==(o=i[t])?void 0:o.length):Boolean((null==(n=i.left)?void 0:n.length)||(null==(s=i.right)?void 0:s.length))},getLeftLeafColumns:Xb((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t
5384
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:Xb((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t
5385
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:Xb((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,o)=>{const i=[...null!=t?t:[],...null!=o?o:[]]
5406
+ return t?Boolean(null==(o=i[t])?void 0:o.length):Boolean((null==(n=i.left)?void 0:n.length)||(null==(s=i.right)?void 0:s.length))},getLeftLeafColumns:ew((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t
5407
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:ew((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t
5408
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:ew((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,o)=>{const i=[...null!=t?t:[],...null!=o?o:[]]
5386
5409
  return e.filter((e=>!i.includes(e.id)))}),{key:!1,debug:()=>{var t
5387
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})},mw,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:Gb("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const o=t.getFilteredRowModel().flatRows.slice(10)
5410
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})},xw,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:Yb("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const o=t.getFilteredRowModel().flatRows.slice(10)
5388
5411
  let i=!1
5389
5412
  for(const t of o){const o=null==t?void 0:t.getValue(e.id)
5390
- if("[object Date]"===Object.prototype.toString.call(o))return Rw.datetime
5391
- if("string"==typeof o&&(i=!0,o.split(kw).length>1))return Rw.alphanumeric}return i?Rw.text:Rw.basic},getAutoSortDir:()=>{const o=t.getFilteredRowModel().flatRows[0]
5413
+ if("[object Date]"===Object.prototype.toString.call(o))return Ow.datetime
5414
+ if("string"==typeof o&&(i=!0,o.split(Rw).length>1))return Ow.alphanumeric}return i?Ow.text:Ow.basic},getAutoSortDir:()=>{const o=t.getFilteredRowModel().flatRows[0]
5392
5415
  return"string"==typeof(null==o?void 0:o.getValue(e.id))?"asc":"desc"},getSortingFn:()=>{var o,i
5393
5416
  if(!e)throw new Error
5394
- return Wb(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(o=null==(i=t.options.sortingFns)?void 0:i[e.columnDef.sortingFn])?o:Rw[e.columnDef.sortingFn]},toggleSorting:(o,i)=>{const n=e.getNextSortingOrder(),s=null!=o
5417
+ return Qb(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(o=null==(i=t.options.sortingFns)?void 0:i[e.columnDef.sortingFn])?o:Ow[e.columnDef.sortingFn]},toggleSorting:(o,i)=>{const n=e.getNextSortingOrder(),s=null!=o
5395
5418
  t.setSorting((r=>{const a=null==r?void 0:r.find((t=>t.id===e.id)),l=null==r?void 0:r.findIndex((t=>t.id===e.id))
5396
5419
  let c,d=[],h=s?o:"desc"===n
5397
5420
  var u;(c=null!=r&&r.length&&e.getCanMultiSort()&&i?a?"toggle":"add":null!=r&&r.length&&l!==r.length-1?"replace":a?"toggle":"replace","toggle"===c&&(s||n||(c="remove")),"add"===c)?(d=[...r,{id:e.id,desc:h}],d.splice(0,d.length-(null!=(u=t.options.maxMultiSortColCount)?u:Number.MAX_SAFE_INTEGER))):d="toggle"===c?r.map((t=>t.id===e.id?{...t,desc:h}:t)):"remove"===c?r.filter((t=>t.id!==e.id)):[{id:e.id,desc:h}]
@@ -5406,86 +5429,86 @@ return!!i&&(i.desc?"desc":"asc")},getSortIndex:()=>{var o,i
5406
5429
  return null!=(o=null==(i=t.getState().sorting)?void 0:i.findIndex((t=>t.id===e.id)))?o:-1},clearSorting:()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},getToggleSortingHandler:()=>{const o=e.getCanSort()
5407
5430
  return i=>{o&&(null==i.persist||i.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(i))))}}}),createTable:e=>({setSorting:t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),resetSorting:t=>{var o,i
5408
5431
  e.setSorting(t?[]:null!=(o=null==(i=e.initialState)?void 0:i.sorting)?o:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())})},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,o
5409
- return null!=(t=null==(o=e.getValue())||null==o.toString?void 0:o.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Gb("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},getCanGroup:()=>{var o,i,n,s
5432
+ return null!=(t=null==(o=e.getValue())||null==o.toString?void 0:o.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Yb("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},getCanGroup:()=>{var o,i,n,s
5410
5433
  return null!=(o=null==(i=null!=(n=null==(s=e.columnDef.enableGrouping)||s)?n:t.options.enableGrouping)||i)?o:!!e.accessorFn},getIsGrouped:()=>{var o
5411
5434
  return null==(o=t.getState().grouping)?void 0:o.includes(e.id)},getGroupedIndex:()=>{var o
5412
5435
  return null==(o=t.getState().grouping)?void 0:o.indexOf(e.id)},getToggleGroupingHandler:()=>{const t=e.getCanGroup()
5413
5436
  return()=>{t&&e.toggleGrouping()}},getAutoAggregationFn:()=>{const o=t.getCoreRowModel().flatRows[0],i=null==o?void 0:o.getValue(e.id)
5414
- return"number"==typeof i?bw.sum:"[object Date]"===Object.prototype.toString.call(i)?bw.extent:void 0},getAggregationFn:()=>{var o,i
5437
+ return"number"==typeof i?$w.sum:"[object Date]"===Object.prototype.toString.call(i)?$w.extent:void 0},getAggregationFn:()=>{var o,i
5415
5438
  if(!e)throw new Error
5416
- return Wb(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(o=null==(i=t.options.aggregationFns)?void 0:i[e.columnDef.aggregationFn])?o:bw[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var o,i
5439
+ return Qb(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(o=null==(i=t.options.aggregationFns)?void 0:i[e.columnDef.aggregationFn])?o:$w[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var o,i
5417
5440
  e.setGrouping(t?[]:null!=(o=null==(i=e.initialState)?void 0:i.grouping)?o:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())}),createRow:e=>({getIsGrouped:()=>!!e.groupingColumnId,_groupingValuesCache:{}}),createCell:(e,t,o,i)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===o.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var t
5418
- return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=o.subRows)||!t.length)}})},nw,{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Gb("pagination",e)}),createTable:e=>{let t=!1,o=!1
5441
+ return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=o.subRows)||!t.length)}})},lw,{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Yb("pagination",e)}),createTable:e=>{let t=!1,o=!1
5419
5442
  return{_autoResetPageIndex:()=>{var i,n
5420
5443
  if(t){if(null!=(i=null!=(n=e.options.autoResetAll)?n:e.options.autoResetPageIndex)?i:!e.options.manualPagination){if(o)return
5421
- o=!0,e._queue((()=>{e.resetPageIndex(),o=!1}))}}else e._queue((()=>{t=!0}))},setPagination:t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>Ub(t,e))),resetPagination:t=>{var o
5422
- e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(o=e.initialState.pagination)?o:{pageIndex:0,pageSize:10})},setPageIndex:t=>{e.setPagination((o=>{let i=Ub(t,o.pageIndex)
5444
+ o=!0,e._queue((()=>{e.resetPageIndex(),o=!1}))}}else e._queue((()=>{t=!0}))},setPagination:t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>Xb(t,e))),resetPagination:t=>{var o
5445
+ e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(o=e.initialState.pagination)?o:{pageIndex:0,pageSize:10})},setPageIndex:t=>{e.setPagination((o=>{let i=Xb(t,o.pageIndex)
5423
5446
  const n=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1
5424
5447
  return i=Math.max(0,Math.min(i,n)),{...o,pageIndex:i}}))},resetPageIndex:t=>{var o,i,n
5425
5448
  e.setPageIndex(t?0:null!=(o=null==(i=e.initialState)||null==(n=i.pagination)?void 0:n.pageIndex)?o:0)},resetPageSize:t=>{var o,i,n
5426
- e.setPageSize(t?10:null!=(o=null==(i=e.initialState)||null==(n=i.pagination)?void 0:n.pageSize)?o:10)},setPageSize:t=>{e.setPagination((e=>{const o=Math.max(1,Ub(t,e.pageSize)),i=e.pageSize*e.pageIndex,n=Math.floor(i/o)
5449
+ e.setPageSize(t?10:null!=(o=null==(i=e.initialState)||null==(n=i.pagination)?void 0:n.pageSize)?o:10)},setPageSize:t=>{e.setPagination((e=>{const o=Math.max(1,Xb(t,e.pageSize)),i=e.pageSize*e.pageIndex,n=Math.floor(i/o)
5427
5450
  return{...e,pageIndex:n,pageSize:o}}))},setPageCount:t=>e.setPagination((o=>{var i
5428
- let n=Ub(t,null!=(i=e.options.pageCount)?i:-1)
5429
- return"number"==typeof n&&(n=Math.max(-1,n)),{...o,pageCount:n}})),getPageOptions:Xb((()=>[e.getPageCount()]),(e=>{let t=[]
5451
+ let n=Xb(t,null!=(i=e.options.pageCount)?i:-1)
5452
+ return"number"==typeof n&&(n=Math.max(-1,n)),{...o,pageCount:n}})),getPageOptions:ew((()=>[e.getPageCount()]),(e=>{let t=[]
5430
5453
  return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:!1,debug:()=>{var t
5431
5454
  return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{const{pageIndex:t}=e.getState().pagination,o=e.getPageCount()
5432
5455
  return-1===o||0!==o&&t<o-1},previousPage:()=>e.setPageIndex((e=>e-1)),nextPage:()=>e.setPageIndex((e=>e+1)),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),getPageCount:()=>{var t
5433
- return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},ww,tw]
5434
- function Aw(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...")
5435
- let o={_features:Mw}
5456
+ return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},Cw,sw]
5457
+ function Vw(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...")
5458
+ let o={_features:Fw}
5436
5459
  const i=o._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o))),{})
5437
5460
  let n={...null!=(t=e.initialState)?t:{}}
5438
5461
  o._features.forEach((e=>{var t
5439
5462
  n=null!=(t=null==e.getInitialState?void 0:e.getInitialState(n))?t:n}))
5440
5463
  const s=[]
5441
5464
  let r=!1
5442
- const a={_features:Mw,options:{...i,...e},initialState:n,_queue:e=>{s.push(e),r||(r=!0,Promise.resolve().then((()=>{for(;s.length;)s.shift()()
5443
- r=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=Ub(e,o.options)
5465
+ const a={_features:Fw,options:{...i,...e},initialState:n,_queue:e=>{s.push(e),r||(r=!0,Promise.resolve().then((()=>{for(;s.length;)s.shift()()
5466
+ r=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=Xb(e,o.options)
5444
5467
  o.options=(e=>o.options.mergeOptions?o.options.mergeOptions(i,e):{...i,...e})(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,i)=>{var n
5445
5468
  return null!=(n=null==o.options.getRowId?void 0:o.options.getRowId(e,t,i))?n:`${i?[i.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:e=>{const t=o.getRowModel().rowsById[e]
5446
5469
  if(!t)throw new Error
5447
- return t},_getDefaultColumnDef:Xb((()=>[o.options.defaultColumn]),(e=>{var t
5470
+ return t},_getDefaultColumnDef:ew((()=>[o.options.defaultColumn]),(e=>{var t
5448
5471
  return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef
5449
5472
  return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,o
5450
5473
  return null!=(t=null==(o=e.renderValue())||null==o.toString?void 0:o.toString())?t:null},...o._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),{debug:()=>{var e
5451
- return null!=(e=o.options.debugAll)?e:o.options.debugColumns},key:!1}),_getColumnDefs:()=>o.options.columns,getAllColumns:Xb((()=>[o._getColumnDefs()]),(e=>{const t=function(e,i,n){return void 0===n&&(n=0),e.map((e=>{const s=function(e,t,o,i){var n,s
5474
+ return null!=(e=o.options.debugAll)?e:o.options.debugColumns},key:!1}),_getColumnDefs:()=>o.options.columns,getAllColumns:ew((()=>[o._getColumnDefs()]),(e=>{const t=function(e,i,n){return void 0===n&&(n=0),e.map((e=>{const s=function(e,t,o,i){var n,s
5452
5475
  const r={...e._getDefaultColumnDef(),...t},a=r.accessorKey
5453
5476
  let l,c=null!=(n=null!=(s=r.id)?s:a?a.replace(".","_"):void 0)?n:"string"==typeof r.header?r.header:void 0
5454
5477
  if(r.accessorFn?l=r.accessorFn:a&&(l=a.includes(".")?e=>{let t=e
5455
5478
  for(const e of a.split(".")){var o
5456
5479
  t=null==(o=t)?void 0:o[e]}return t}:e=>e[r.accessorKey]),!c)throw new Error
5457
- let d={id:`${String(c)}`,accessorFn:l,parent:i,depth:o,columnDef:r,columns:[],getFlatColumns:Xb((()=>[!0]),(()=>{var e
5480
+ let d={id:`${String(c)}`,accessorFn:l,parent:i,depth:o,columnDef:r,columns:[],getFlatColumns:ew((()=>[!0]),(()=>{var e
5458
5481
  return[d,...null==(e=d.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"column.getFlatColumns",debug:()=>{var t
5459
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:Xb((()=>[e._getOrderColumnsFn()]),(e=>{var t
5482
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:ew((()=>[e._getOrderColumnsFn()]),(e=>{var t
5460
5483
  if(null!=(t=d.columns)&&t.length){let t=d.columns.flatMap((e=>e.getLeafColumns()))
5461
5484
  return e(t)}return[d]}),{key:"column.getLeafColumns",debug:()=>{var t
5462
5485
  return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})}
5463
5486
  return d=e._features.reduce(((t,o)=>Object.assign(t,null==o.createColumn?void 0:o.createColumn(d,e))),d),d}(o,e,n,i),r=e
5464
5487
  return s.columns=r.columns?t(r.columns,s,n+1):[],s}))}
5465
5488
  return t(e)}),{key:!1,debug:()=>{var e
5466
- return null!=(e=o.options.debugAll)?e:o.options.debugColumns}}),getAllFlatColumns:Xb((()=>[o.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e
5467
- return null!=(e=o.options.debugAll)?e:o.options.debugColumns}}),_getAllFlatColumnsById:Xb((()=>[o.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e
5468
- return null!=(e=o.options.debugAll)?e:o.options.debugColumns}}),getAllLeafColumns:Xb((()=>[o.getAllColumns(),o._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:!1,debug:()=>{var e
5489
+ return null!=(e=o.options.debugAll)?e:o.options.debugColumns}}),getAllFlatColumns:ew((()=>[o.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e
5490
+ return null!=(e=o.options.debugAll)?e:o.options.debugColumns}}),_getAllFlatColumnsById:ew((()=>[o.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e
5491
+ return null!=(e=o.options.debugAll)?e:o.options.debugColumns}}),getAllLeafColumns:ew((()=>[o.getAllColumns(),o._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:!1,debug:()=>{var e
5469
5492
  return null!=(e=o.options.debugAll)?e:o.options.debugColumns}}),getColumn:e=>o._getAllFlatColumnsById()[e]}
5470
- return Object.assign(o,a),o._features.forEach((e=>Object.assign(o,null==e.createTable?void 0:e.createTable(o)))),o}const Ew=(e,t,o,i,n,s)=>{let r={id:t,index:i,original:o,depth:n,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(r._valuesCache.hasOwnProperty(t))return r._valuesCache[t]
5493
+ return Object.assign(o,a),o._features.forEach((e=>Object.assign(o,null==e.createTable?void 0:e.createTable(o)))),o}const Hw=(e,t,o,i,n,s)=>{let r={id:t,index:i,original:o,depth:n,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(r._valuesCache.hasOwnProperty(t))return r._valuesCache[t]
5471
5494
  const o=e.getColumn(t)
5472
5495
  return null!=o&&o.accessorFn?(r._valuesCache[t]=o.accessorFn(r.original,i),r._valuesCache[t]):void 0},getUniqueValues:t=>{if(r._uniqueValuesCache.hasOwnProperty(t))return r._uniqueValuesCache[t]
5473
5496
  const o=e.getColumn(t)
5474
5497
  return null!=o&&o.accessorFn?o.columnDef.getUniqueValues?(r._uniqueValuesCache[t]=o.columnDef.getUniqueValues(r.original,i),r._uniqueValuesCache[t]):(r._uniqueValuesCache[t]=[r.getValue(t)],r._uniqueValuesCache[t]):void 0},renderValue:t=>{var o
5475
- return null!=(o=r.getValue(t))?o:e.options.renderFallbackValue},subRows:null!=s?s:[],getLeafRows:()=>Kb(r.subRows,(e=>e.subRows)),getAllCells:Xb((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,o,i){const n={id:`${t.id}_${o.id}`,row:t,column:o,getValue:()=>t.getValue(i),renderValue:()=>{var t
5476
- return null!=(t=n.getValue())?t:e.options.renderFallbackValue},getContext:Xb((()=>[e,o,t,n]),((e,t,o,i)=>({table:e,column:t,row:o,cell:i,getValue:i.getValue,renderValue:i.renderValue})),{key:!1,debug:()=>e.options.debugAll})}
5498
+ return null!=(o=r.getValue(t))?o:e.options.renderFallbackValue},subRows:null!=s?s:[],getLeafRows:()=>Jb(r.subRows,(e=>e.subRows)),getAllCells:ew((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,o,i){const n={id:`${t.id}_${o.id}`,row:t,column:o,getValue:()=>t.getValue(i),renderValue:()=>{var t
5499
+ return null!=(t=n.getValue())?t:e.options.renderFallbackValue},getContext:ew((()=>[e,o,t,n]),((e,t,o,i)=>({table:e,column:t,row:o,cell:i,getValue:i.getValue,renderValue:i.renderValue})),{key:!1,debug:()=>e.options.debugAll})}
5477
5500
  return e._features.forEach((i=>{Object.assign(n,null==i.createCell?void 0:i.createCell(n,o,t,e))}),{}),n}(e,r,t,t.id)))),{key:!1,debug:()=>{var t
5478
- return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:Xb((()=>[r.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t
5501
+ return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:ew((()=>[r.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t
5479
5502
  return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}
5480
5503
  for(let t=0;t<e._features.length;t++){const o=e._features[t]
5481
5504
  Object.assign(r,null==o||null==o.createRow?void 0:o.createRow(r,e))}return r}
5482
- function Ow(){return e=>Xb((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,o)=>{if(!o.rows.length||!t.length)return o
5505
+ function Pw(){return e=>ew((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,o)=>{if(!o.rows.length||!t.length)return o
5483
5506
  const i=t.filter((t=>e.getColumn(t))),n=[],s={},r=function(t,o,a){if(void 0===o&&(o=0),o>=i.length)return t.map((e=>(e.depth=o,n.push(e),s[e.id]=e,e.subRows&&(e.subRows=r(e.subRows,o+1)),e)))
5484
5507
  const l=i[o],c=function(e,t){const o=new Map
5485
5508
  return e.reduce(((e,o)=>{const i=`${o.getValue(t)}`,n=e.get(i)
5486
5509
  return n?n.push(o):e.set(i,[o]),e}),o)}(t,l),d=Array.from(c.entries()).map(((t,c)=>{let[d,h]=t,u=`${l}:${d}`
5487
5510
  u=a?`${a}>${u}`:u
5488
- const p=r(h,o+1,u),g=o?Kb(h,(e=>e.subRows)):h,v=Ew(e,u,g[0].original,c,o)
5511
+ const p=r(h,o+1,u),g=o?Jb(h,(e=>e.subRows)):h,v=Hw(e,u,g[0].original,c,o)
5489
5512
  return Object.assign(v,{groupingColumnId:l,groupingValue:d,subRows:p,leafRows:g,getValue:t=>{if(i.includes(t)){if(v._valuesCache.hasOwnProperty(t))return v._valuesCache[t]
5490
5513
  var o
5491
5514
  if(h[0])v._valuesCache[t]=null!=(o=h[0].getValue(t))?o:void 0
@@ -5494,10 +5517,10 @@ const n=e.getColumn(t),s=null==n?void 0:n.getAggregationFn()
5494
5517
  return s?(v._groupingValuesCache[t]=s(t,g,h),v._groupingValuesCache[t]):void 0}}),p.forEach((e=>{n.push(e),s[e.id]=e})),v}))
5495
5518
  return d},a=r(o.rows,0,"")
5496
5519
  return a.forEach((e=>{n.push(e),s[e.id]=e})),{rows:a,flatRows:n,rowsById:s}}),{key:!1,debug:()=>{var t
5497
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))}})}const Fw={none:void 0,ascending:"ascending",descending:"descending"},Vw={none:void 0,single:"single",multiple:"multiple"},Hw="notSelected",Pw="selected",Tw="partiallySelected",Dw="basic",Lw="localeAwareCaseSensitive"
5498
- class zw extends Rt{}e([m],zw.prototype,"groupHeaderValue",void 0),e([m],zw.prototype,"columnConfig",void 0)
5499
- const Bw=e=>((e=>{let t
5500
- try{t=document.createElement(e)}catch(e){}if(!(t instanceof zw))throw new Error(`Group header view tag name (${e}) must evaluate to an element extending TableGroupHeaderView`)})(e),G`
5520
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))}})}const Tw={none:void 0,ascending:"ascending",descending:"descending"},Dw={none:void 0,single:"single",multiple:"multiple"},Lw="notSelected",zw="selected",Bw="partiallySelected",Nw="basic",Zw="localeAwareCaseSensitive"
5521
+ class qw extends Rt{}e([m],qw.prototype,"groupHeaderValue",void 0),e([m],qw.prototype,"columnConfig",void 0)
5522
+ const jw=e=>((e=>{let t
5523
+ try{t=document.createElement(e)}catch(e){}if(!(t instanceof qw))throw new Error(`Group header view tag name (${e}) must evaluate to an element extending TableGroupHeaderView`)})(e),G`
5501
5524
  <${e}
5502
5525
  :groupHeaderValue="${e=>e.groupRowValue}"
5503
5526
  :columnConfig="${e=>e.groupColumn?.columnInternals.columnConfig}"
@@ -5505,11 +5528,11 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof zw))throw new Error(
5505
5528
  >
5506
5529
  </${e}>
5507
5530
  `)
5508
- class Nw extends Rt{constructor(){super(...arguments),this.delegatedEvents=[],this.delegatedEventHandler=()=>{}}focusedRecycleCallback(){}columnChanged(){for(const e of this.delegatedEvents)this.removeEventListener(e,this.delegatedEventHandler)
5531
+ class Uw extends Rt{constructor(){super(...arguments),this.delegatedEvents=[],this.delegatedEventHandler=()=>{}}focusedRecycleCallback(){}columnChanged(){for(const e of this.delegatedEvents)this.removeEventListener(e,this.delegatedEventHandler)
5509
5532
  if(this.delegatedEvents=[],this.delegatedEventHandler=()=>{},this.column){this.delegatedEvents=this.column.columnInternals.delegatedEvents,this.delegatedEventHandler=e=>{this.column?.dispatchEvent(new CustomEvent("delegated-event",{detail:{originalEvent:e}}))}
5510
- for(const e of this.delegatedEvents)this.addEventListener(e,this.delegatedEventHandler)}}}e([m],Nw.prototype,"cellRecord",void 0),e([m],Nw.prototype,"columnConfig",void 0),e([m],Nw.prototype,"column",void 0)
5511
- const Zw=e=>((e=>{let t
5512
- try{t=document.createElement(e)}catch(e){}if(!(t instanceof Nw))throw new Error(`Cell view tag name (${e}) must evaluate to an element extending TableCellView`)})(e),G`
5533
+ for(const e of this.delegatedEvents)this.addEventListener(e,this.delegatedEventHandler)}}}e([m],Uw.prototype,"cellRecord",void 0),e([m],Uw.prototype,"columnConfig",void 0),e([m],Uw.prototype,"column",void 0)
5534
+ const Gw=e=>((e=>{let t
5535
+ try{t=document.createElement(e)}catch(e){}if(!(t instanceof Uw))throw new Error(`Cell view tag name (${e}) must evaluate to an element extending TableCellView`)})(e),G`
5513
5536
  <${e}
5514
5537
  :cellRecord="${e=>e.cellState?.cellRecord}"
5515
5538
  :columnConfig="${e=>e.cellState?.columnConfig}"
@@ -5518,10 +5541,10 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof Nw))throw new Error(
5518
5541
  >
5519
5542
  </${e}>
5520
5543
  `)
5521
- class qw{constructor(e){this.uniqueId=Hr("table-column-slot"),this.validConfiguration=!0,this.sortOperation=Dw,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=1,this.minPixelWidth=117,this.currentFractionalWidth=1,this.currentSortDirection=Fw.none,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=Zw(e.cellViewTag),this.groupHeaderViewTemplate=Bw(e.groupHeaderViewTag),this.delegatedEvents=e.delegatedEvents,this.sortOperation=e.sortOperation??Dw}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}e([m],qw.prototype,"columnConfig",void 0),e([m],qw.prototype,"validConfiguration",void 0),e([m],qw.prototype,"operandDataRecordFieldName",void 0),e([m],qw.prototype,"sortOperation",void 0),e([m],qw.prototype,"dataRecordFieldNames",void 0),e([m],qw.prototype,"groupingDisabled",void 0),e([m],qw.prototype,"groupIndex",void 0),e([m],qw.prototype,"pixelWidth",void 0),e([m],qw.prototype,"fractionalWidth",void 0),e([m],qw.prototype,"minPixelWidth",void 0),e([m],qw.prototype,"currentFractionalWidth",void 0),e([m],qw.prototype,"currentPixelWidth",void 0),e([m],qw.prototype,"currentSortIndex",void 0),e([m],qw.prototype,"currentSortDirection",void 0)
5522
- class jw extends Rt{constructor(){super(...arguments),this.columnInternals=new qw(this.getColumnInternalsOptions()),this.columnHidden=!1,this.sortDirection=Fw.none,this.sortingDisabled=!1,this.hasOverflow=!1}checkValidity(){return this.columnInternals.validConfiguration}get validity(){return{}}get headerTextContent(){return this.contentSlot.assignedNodes().map((e=>e.textContent?.trim())).join(" ")}sortDirectionChanged(){this.sortingDisabled||(this.columnInternals.currentSortDirection=this.sortDirection)}sortIndexChanged(){this.sortingDisabled||(this.columnInternals.currentSortIndex=this.sortIndex)}sortingDisabledChanged(){this.sortingDisabled?(this.columnInternals.currentSortDirection=Fw.none,this.columnInternals.currentSortIndex=void 0):(this.columnInternals.currentSortDirection=this.sortDirection,this.columnInternals.currentSortIndex=this.sortIndex)}}e([ne({attribute:"column-id"})],jw.prototype,"columnId",void 0),e([ne({attribute:"action-menu-slot"})],jw.prototype,"actionMenuSlot",void 0),e([ne({attribute:"action-menu-label"})],jw.prototype,"actionMenuLabel",void 0),e([ne({attribute:"column-hidden",mode:"boolean"})],jw.prototype,"columnHidden",void 0),e([ne({attribute:"sort-index",converter:oe})],jw.prototype,"sortIndex",void 0),e([ne({attribute:"sort-direction"})],jw.prototype,"sortDirection",void 0),e([ne({attribute:"sorting-disabled",mode:"boolean"})],jw.prototype,"sortingDisabled",void 0),e([m],jw.prototype,"hasOverflow",void 0)
5523
- class Uw{constructor(){this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.duplicateColumnId=!1,this.missingColumnId=!1,this.duplicateSortIndex=!1,this.duplicateGroupIndex=!1,this.idFieldNameNotConfigured=!1,this.invalidColumnConfiguration=!1,this.recordIds=new Set}getValidity(){return{duplicateRecordId:this.duplicateRecordId,missingRecordId:this.missingRecordId,invalidRecordId:this.invalidRecordId,duplicateColumnId:this.duplicateColumnId,missingColumnId:this.missingColumnId,duplicateSortIndex:this.duplicateSortIndex,duplicateGroupIndex:this.duplicateGroupIndex,idFieldNameNotConfigured:this.idFieldNameNotConfigured,invalidColumnConfiguration:this.invalidColumnConfiguration}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}areRecordIdsValid(){const e=this.getValidity()
5524
- return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateSelectionMode(e,t){return this.idFieldNameNotConfigured=e!==Vw.none&&"string"!=typeof t,!this.idFieldNameNotConfigured}validateRecordIds(e,t){if(this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.recordIds.clear(),"string"!=typeof t)return!0
5544
+ class Ww{constructor(e){this.uniqueId=Hr("table-column-slot"),this.validConfiguration=!0,this.sortOperation=Nw,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=1,this.minPixelWidth=117,this.currentFractionalWidth=1,this.currentSortDirection=Tw.none,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=Gw(e.cellViewTag),this.groupHeaderViewTemplate=jw(e.groupHeaderViewTag),this.delegatedEvents=e.delegatedEvents,this.sortOperation=e.sortOperation??Nw}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}e([m],Ww.prototype,"columnConfig",void 0),e([m],Ww.prototype,"validConfiguration",void 0),e([m],Ww.prototype,"operandDataRecordFieldName",void 0),e([m],Ww.prototype,"sortOperation",void 0),e([m],Ww.prototype,"dataRecordFieldNames",void 0),e([m],Ww.prototype,"groupingDisabled",void 0),e([m],Ww.prototype,"groupIndex",void 0),e([m],Ww.prototype,"pixelWidth",void 0),e([m],Ww.prototype,"fractionalWidth",void 0),e([m],Ww.prototype,"minPixelWidth",void 0),e([m],Ww.prototype,"currentFractionalWidth",void 0),e([m],Ww.prototype,"currentPixelWidth",void 0),e([m],Ww.prototype,"currentSortIndex",void 0),e([m],Ww.prototype,"currentSortDirection",void 0)
5545
+ class Kw extends Rt{constructor(){super(...arguments),this.columnInternals=new Ww(this.getColumnInternalsOptions()),this.columnHidden=!1,this.sortDirection=Tw.none,this.sortingDisabled=!1,this.hasOverflow=!1}checkValidity(){return this.columnInternals.validConfiguration}get validity(){return{}}get headerTextContent(){return this.contentSlot.assignedNodes().map((e=>e.textContent?.trim())).join(" ")}sortDirectionChanged(){this.sortingDisabled||(this.columnInternals.currentSortDirection=this.sortDirection)}sortIndexChanged(){this.sortingDisabled||(this.columnInternals.currentSortIndex=this.sortIndex)}sortingDisabledChanged(){this.sortingDisabled?(this.columnInternals.currentSortDirection=Tw.none,this.columnInternals.currentSortIndex=void 0):(this.columnInternals.currentSortDirection=this.sortDirection,this.columnInternals.currentSortIndex=this.sortIndex)}}e([ne({attribute:"column-id"})],Kw.prototype,"columnId",void 0),e([ne({attribute:"action-menu-slot"})],Kw.prototype,"actionMenuSlot",void 0),e([ne({attribute:"action-menu-label"})],Kw.prototype,"actionMenuLabel",void 0),e([ne({attribute:"column-hidden",mode:"boolean"})],Kw.prototype,"columnHidden",void 0),e([ne({attribute:"sort-index",converter:oe})],Kw.prototype,"sortIndex",void 0),e([ne({attribute:"sort-direction"})],Kw.prototype,"sortDirection",void 0),e([ne({attribute:"sorting-disabled",mode:"boolean"})],Kw.prototype,"sortingDisabled",void 0),e([m],Kw.prototype,"hasOverflow",void 0)
5546
+ class Xw{constructor(){this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.duplicateColumnId=!1,this.missingColumnId=!1,this.duplicateSortIndex=!1,this.duplicateGroupIndex=!1,this.idFieldNameNotConfigured=!1,this.invalidColumnConfiguration=!1,this.recordIds=new Set}getValidity(){return{duplicateRecordId:this.duplicateRecordId,missingRecordId:this.missingRecordId,invalidRecordId:this.invalidRecordId,duplicateColumnId:this.duplicateColumnId,missingColumnId:this.missingColumnId,duplicateSortIndex:this.duplicateSortIndex,duplicateGroupIndex:this.duplicateGroupIndex,idFieldNameNotConfigured:this.idFieldNameNotConfigured,invalidColumnConfiguration:this.invalidColumnConfiguration}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}areRecordIdsValid(){const e=this.getValidity()
5547
+ return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateSelectionMode(e,t){return this.idFieldNameNotConfigured=e!==Dw.none&&"string"!=typeof t,!this.idFieldNameNotConfigured}validateRecordIds(e,t){if(this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.recordIds.clear(),"string"!=typeof t)return!0
5525
5548
  for(const o of e){if(!Object.prototype.hasOwnProperty.call(o,t)){this.missingRecordId=!0
5526
5549
  continue}const e=o[t]
5527
5550
  "string"==typeof e?(this.recordIds.has(e)&&(this.duplicateRecordId=!0),this.recordIds.add(e)):this.invalidRecordId=!0}return!this.missingRecordId&&!this.invalidRecordId&&!this.duplicateRecordId}validateColumnIds(e){this.missingColumnId=!1,this.duplicateColumnId=!1
@@ -5529,7 +5552,7 @@ const t=e.some((e=>e))
5529
5552
  if(!t)return!0
5530
5553
  const o=new Set
5531
5554
  for(const t of e)t?(o.has(t)&&(this.duplicateColumnId=!0),o.add(t)):this.missingColumnId=!0
5532
- return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e){return this.duplicateSortIndex=!this.validateIndicesAreUnique(e),!this.duplicateSortIndex}validateColumnGroupIndices(e){return this.duplicateGroupIndex=!this.validateIndicesAreUnique(e),!this.duplicateGroupIndex}validateColumnConfigurations(e){return this.invalidColumnConfiguration=e.some((e=>!e.columnInternals.validConfiguration)),!this.invalidColumnConfiguration}getPresentRecordIds(e){return e.filter((e=>this.recordIds.has(e)))}validateIndicesAreUnique(e){return new Set(e).size===e.length}}const Gw=fe`
5555
+ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e){return this.duplicateSortIndex=!this.validateIndicesAreUnique(e),!this.duplicateSortIndex}validateColumnGroupIndices(e){return this.duplicateGroupIndex=!this.validateIndicesAreUnique(e),!this.duplicateGroupIndex}validateColumnConfigurations(e){return this.invalidColumnConfiguration=e.some((e=>!e.columnInternals.validConfiguration)),!this.invalidColumnConfiguration}getPresentRecordIds(e){return e.filter((e=>this.recordIds.has(e)))}validateIndicesAreUnique(e){return new Set(e).size===e.length}}const Yw=fe`
5533
5556
  ${xn("flex")}
5534
5557
 
5535
5558
  :host {
@@ -5638,7 +5661,7 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5638
5661
  background-color: ${cs(Un,.1)};
5639
5662
  position: absolute;
5640
5663
  }
5641
- `)),Ww=fe`
5664
+ `)),Qw=fe`
5642
5665
  ${xn("flex")}
5643
5666
 
5644
5667
  :host {
@@ -5657,7 +5680,7 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5657
5680
  .grouped-indicator {
5658
5681
  flex: 0 0 auto;
5659
5682
  }
5660
- `,Kw=G`
5683
+ `,Jw=G`
5661
5684
  <template role="columnheader"
5662
5685
  aria-sort="${e=>e.ariaSort}"
5663
5686
  ${""}
@@ -5665,10 +5688,10 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5665
5688
  >
5666
5689
  <slot></slot>
5667
5690
  ${""}
5668
- ${Me((e=>e.sortDirection===Fw.ascending),G`
5691
+ ${Me((e=>e.sortDirection===Tw.ascending),G`
5669
5692
  <${Gg} class="sort-indicator" aria-hidden="true"></${Gg}>
5670
5693
  `)}
5671
- ${Me((e=>e.sortDirection===Fw.descending),G`
5694
+ ${Me((e=>e.sortDirection===Tw.descending),G`
5672
5695
  <${Hg} class="sort-indicator" aria-hidden="true"></${Hg}>
5673
5696
  `)}
5674
5697
  ${Me((e=>e.isGrouped),G`
@@ -5676,10 +5699,10 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5676
5699
  `)}
5677
5700
  </template>
5678
5701
  `
5679
- class Xw extends Rt{constructor(){super(...arguments),this.sortDirection=Fw.none,this.firstSortedColumn=!1,this.isGrouped=!1}sortDirectionChanged(e,t){this.updateAriaSort()}firstSortedColumnChanged(e,t){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==Fw.none?this.sortDirection===Fw.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}e([ne({attribute:"sort-direction"})],Xw.prototype,"sortDirection",void 0),e([ne({attribute:"first-sorted-column",mode:"boolean"})],Xw.prototype,"firstSortedColumn",void 0),e([m],Xw.prototype,"isGrouped",void 0)
5680
- const Yw=Xw.compose({baseName:"table-header",template:Kw,styles:Ww})
5681
- ai.getOrCreate().withPrefix("nimble").register(Yw())
5682
- const Qw=ai.tagFor(Xw),Jw=fe`
5702
+ class ex extends Rt{constructor(){super(...arguments),this.sortDirection=Tw.none,this.firstSortedColumn=!1,this.isGrouped=!1}sortDirectionChanged(e,t){this.updateAriaSort()}firstSortedColumnChanged(e,t){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==Tw.none?this.sortDirection===Tw.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}e([ne({attribute:"sort-direction"})],ex.prototype,"sortDirection",void 0),e([ne({attribute:"first-sorted-column",mode:"boolean"})],ex.prototype,"firstSortedColumn",void 0),e([m],ex.prototype,"isGrouped",void 0)
5703
+ const tx=ex.compose({baseName:"table-header",template:Jw,styles:Qw})
5704
+ ai.getOrCreate().withPrefix("nimble").register(tx())
5705
+ const ox=ai.tagFor(ex),ix=fe`
5683
5706
  ${xn("flex")}
5684
5707
 
5685
5708
  :host {
@@ -5766,7 +5789,7 @@ const Qw=ai.tagFor(Xw),Jw=fe`
5766
5789
  :host([selected]:hover)::before {
5767
5790
  background-color: ${cs(Un,.2)};
5768
5791
  }
5769
- `)),ex=fe`
5792
+ `)),nx=fe`
5770
5793
  ${xn("flex")}
5771
5794
 
5772
5795
  :host {
@@ -5796,7 +5819,7 @@ const Qw=ai.tagFor(Xw),Jw=fe`
5796
5819
  height: ${ra};
5797
5820
  align-self: center;
5798
5821
  }
5799
- `,tx=G`
5822
+ `,sx=G`
5800
5823
  <template role="cell" style="--ni-private-table-cell-nesting-level: ${e=>e.nestingLevel}">
5801
5824
  ${e=>e.cellViewTemplate}
5802
5825
  ${Me((e=>e.hasActionMenu),G`
@@ -5815,10 +5838,10 @@ const Qw=ai.tagFor(Xw),Jw=fe`
5815
5838
  `)}
5816
5839
  </template>
5817
5840
  `
5818
- class ox extends Rt{constructor(){super(...arguments),this.hasActionMenu=!1,this.menuOpen=!1,this.nestingLevel=0}onActionMenuBeforeToggle(e){this.$emit("cell-action-menu-beforetoggle",e.detail)}onActionMenuToggle(e){this.menuOpen=e.detail.newState,this.$emit("cell-action-menu-toggle",e.detail)}}e([m],ox.prototype,"cellState",void 0),e([m],ox.prototype,"column",void 0),e([ne({attribute:"has-action-menu",mode:"boolean"})],ox.prototype,"hasActionMenu",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],ox.prototype,"menuOpen",void 0),e([ne({attribute:"action-menu-label"})],ox.prototype,"actionMenuLabel",void 0),e([m],ox.prototype,"cellViewTemplate",void 0),e([m],ox.prototype,"nestingLevel",void 0)
5819
- const ix=ox.compose({baseName:"table-cell",template:tx,styles:ex})
5820
- ai.getOrCreate().withPrefix("nimble").register(ix())
5821
- const nx=ai.tagFor(ox),sx=G`
5841
+ class rx extends Rt{constructor(){super(...arguments),this.hasActionMenu=!1,this.menuOpen=!1,this.nestingLevel=0}onActionMenuBeforeToggle(e){this.$emit("cell-action-menu-beforetoggle",e.detail)}onActionMenuToggle(e){this.menuOpen=e.detail.newState,this.$emit("cell-action-menu-toggle",e.detail)}}e([m],rx.prototype,"cellState",void 0),e([m],rx.prototype,"column",void 0),e([ne({attribute:"has-action-menu",mode:"boolean"})],rx.prototype,"hasActionMenu",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],rx.prototype,"menuOpen",void 0),e([ne({attribute:"action-menu-label"})],rx.prototype,"actionMenuLabel",void 0),e([m],rx.prototype,"cellViewTemplate",void 0),e([m],rx.prototype,"nestingLevel",void 0)
5842
+ const ax=rx.compose({baseName:"table-cell",template:sx,styles:nx})
5843
+ ai.getOrCreate().withPrefix("nimble").register(ax())
5844
+ const lx=ai.tagFor(rx),cx=G`
5822
5845
  <template role="row" aria-selected=${e=>e.ariaSelected}>
5823
5846
  ${Me((e=>e.selectable&&!e.hideSelection),G`
5824
5847
  <span role="gridcell" class="checkbox-container">
@@ -5837,7 +5860,7 @@ const nx=ai.tagFor(ox),sx=G`
5837
5860
  <span ${Re("cellContainer")} class="cell-container">
5838
5861
  ${He((e=>e.columnStates),G`
5839
5862
  ${Me((e=>!e.column.columnHidden),G`
5840
- <${nx}
5863
+ <${lx}
5841
5864
  class="cell"
5842
5865
  :cellState="${e=>e.cellState}"
5843
5866
  :cellViewTemplate="${e=>e.column.columnInternals.cellViewTemplate}"
@@ -5855,13 +5878,13 @@ const nx=ai.tagFor(ox),sx=G`
5855
5878
  slot="cellActionMenu"
5856
5879
  ></slot>
5857
5880
  `)}
5858
- </${nx}>
5881
+ </${lx}>
5859
5882
  `)}
5860
5883
  `)}
5861
5884
  </span>
5862
5885
  </template>
5863
5886
  `
5864
- class rx extends Rt{constructor(){super(...arguments),this.selectable=!1,this.selected=!1,this.hideSelection=!1,this.columns=[],this.nestingLevel=0,this.menuOpen=!1,this.ignoreSelectionChangeEvents=!1}get columnStates(){return this.columns.map(((e,t)=>{const o=e.columnInternals.dataRecordFieldNames
5887
+ class dx extends Rt{constructor(){super(...arguments),this.selectable=!1,this.selected=!1,this.hideSelection=!1,this.columns=[],this.nestingLevel=0,this.menuOpen=!1,this.ignoreSelectionChangeEvents=!1}get columnStates(){return this.columns.map(((e,t)=>{const o=e.columnInternals.dataRecordFieldNames
5865
5888
  let i
5866
5889
  if(this.hasValidFieldNames(o)&&this.dataRecord){const t=o.map((e=>this.dataRecord[e]))
5867
5890
  i={cellRecord:Object.fromEntries(e.columnInternals.cellRecordFieldNames.map(((e,o)=>[e,t[o]]))),columnConfig:e.columnInternals.columnConfig??{}}}else i={cellRecord:{},columnConfig:{}}
@@ -5869,12 +5892,12 @@ return{column:e,cellState:i,cellIndentLevel:0===t&&this.nestingLevel>0?this.nest
5869
5892
  const t=e.target.checked
5870
5893
  this.selected=t
5871
5894
  const o={oldState:!t,newState:t}
5872
- this.$emit("row-selection-toggle",o)}onCellActionMenuBeforeToggle(e,t){this.currentActionMenuColumn=t,this.emitActionMenuToggleEvent("row-action-menu-beforetoggle",e.detail,t)}onCellActionMenuToggle(e,t){this.menuOpen=e.detail.newState,this.emitActionMenuToggleEvent("row-action-menu-toggle",e.detail,t)}closeOpenActionMenus(){if(this.menuOpen){const e=Array.from(this.cellContainer.children).find((e=>e instanceof ox&&e.menuOpen))
5895
+ this.$emit("row-selection-toggle",o)}onCellActionMenuBeforeToggle(e,t){this.currentActionMenuColumn=t,this.emitActionMenuToggleEvent("row-action-menu-beforetoggle",e.detail,t)}onCellActionMenuToggle(e,t){this.menuOpen=e.detail.newState,this.emitActionMenuToggleEvent("row-action-menu-toggle",e.detail,t)}closeOpenActionMenus(){if(this.menuOpen){const e=Array.from(this.cellContainer.children).find((e=>e instanceof rx&&e.menuOpen))
5873
5896
  e?.actionMenuButton?.open&&e.actionMenuButton.toggleButton.control.click()}}emitActionMenuToggleEvent(e,t,o){const i={newState:t.newState,oldState:t.oldState,recordIds:[this.recordId],columnId:o.columnId}
5874
- this.$emit(e,i)}hasValidFieldNames(e){return e.every((e=>void 0!==e))}selectedChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selected,this.ignoreSelectionChangeEvents=!1)}}e([ne({attribute:"record-id"})],rx.prototype,"recordId",void 0),e([ne({mode:"boolean"})],rx.prototype,"selectable",void 0),e([ne({mode:"boolean"})],rx.prototype,"selected",void 0),e([ne({attribute:"hide-selection",mode:"boolean"})],rx.prototype,"hideSelection",void 0),e([m],rx.prototype,"dataRecord",void 0),e([m],rx.prototype,"columns",void 0),e([m],rx.prototype,"currentActionMenuColumn",void 0),e([m],rx.prototype,"nestingLevel",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],rx.prototype,"menuOpen",void 0),e([m],rx.prototype,"selectionCheckbox",void 0),e([f],rx.prototype,"columnStates",null),e([f],rx.prototype,"ariaSelected",null)
5875
- const ax=rx.compose({baseName:"table-row",template:sx,styles:Jw})
5876
- ai.getOrCreate().withPrefix("nimble").register(ax())
5877
- const lx=ai.tagFor(rx),cx=fe`
5897
+ this.$emit(e,i)}hasValidFieldNames(e){return e.every((e=>void 0!==e))}selectedChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selected,this.ignoreSelectionChangeEvents=!1)}}e([ne({attribute:"record-id"})],dx.prototype,"recordId",void 0),e([ne({mode:"boolean"})],dx.prototype,"selectable",void 0),e([ne({mode:"boolean"})],dx.prototype,"selected",void 0),e([ne({attribute:"hide-selection",mode:"boolean"})],dx.prototype,"hideSelection",void 0),e([m],dx.prototype,"dataRecord",void 0),e([m],dx.prototype,"columns",void 0),e([m],dx.prototype,"currentActionMenuColumn",void 0),e([m],dx.prototype,"nestingLevel",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],dx.prototype,"menuOpen",void 0),e([m],dx.prototype,"selectionCheckbox",void 0),e([f],dx.prototype,"columnStates",null),e([f],dx.prototype,"ariaSelected",null)
5898
+ const hx=dx.compose({baseName:"table-row",template:cx,styles:ix})
5899
+ ai.getOrCreate().withPrefix("nimble").register(hx())
5900
+ const ux=ai.tagFor(dx),px=fe`
5878
5901
  ${xn("grid")}
5879
5902
 
5880
5903
  :host {
@@ -5979,7 +6002,7 @@ const lx=ai.tagFor(rx),cx=fe`
5979
6002
  :host(:hover)::before {
5980
6003
  background-color: ${cs(Un,.1)};
5981
6004
  }
5982
- `)),dx=G`
6005
+ `)),gx=G`
5983
6006
  <template
5984
6007
  role="row"
5985
6008
  @click=${e=>e.onGroupExpandToggle()}
@@ -6015,14 +6038,14 @@ const lx=ai.tagFor(rx),cx=fe`
6015
6038
  </div>
6016
6039
  </template>
6017
6040
  `
6018
- class hx extends Rt{constructor(){super(...arguments),this.nestingLevel=0,this.expanded=!1,this.selectable=!1,this.selectionState=Hw,this.animationClass="",this.ignoreSelectionChangeEvents=!1,this.removeAnimatingClass=()=>{this.animationClass="",this.expandIcon.removeEventListener("transitionend",this.removeAnimatingClass)}}onGroupExpandToggle(){this.$emit("group-expand-toggle"),this.animationClass="animating",this.expandIcon.addEventListener("transitionend",this.removeAnimatingClass)}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
6041
+ class vx extends Rt{constructor(){super(...arguments),this.nestingLevel=0,this.expanded=!1,this.selectable=!1,this.selectionState=Lw,this.animationClass="",this.ignoreSelectionChangeEvents=!1,this.removeAnimatingClass=()=>{this.animationClass="",this.expandIcon.removeEventListener("transitionend",this.removeAnimatingClass)}}onGroupExpandToggle(){this.$emit("group-expand-toggle"),this.animationClass="animating",this.expandIcon.addEventListener("transitionend",this.removeAnimatingClass)}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
6019
6042
  const t=e.target.checked
6020
- this.selectionState=t?Pw:Hw
6043
+ this.selectionState=t?zw:Lw
6021
6044
  const o={oldState:!t,newState:t}
6022
- this.$emit("group-selection-toggle",o)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===Pw,this.selectionCheckbox.indeterminate=this.selectionState===Tw,this.ignoreSelectionChangeEvents=!1)}}e([m],hx.prototype,"groupRowValue",void 0),e([m],hx.prototype,"nestingLevel",void 0),e([m],hx.prototype,"leafItemCount",void 0),e([m],hx.prototype,"groupColumn",void 0),e([ne({mode:"boolean"})],hx.prototype,"expanded",void 0),e([ne({mode:"boolean"})],hx.prototype,"selectable",void 0),e([ne({attribute:"selection-state"})],hx.prototype,"selectionState",void 0),e([m],hx.prototype,"selectionCheckbox",void 0),e([m],hx.prototype,"animationClass",void 0)
6023
- const ux=hx.compose({baseName:"table-group-row",template:dx,styles:cx})
6024
- ai.getOrCreate().withPrefix("nimble").register(ux())
6025
- const px=ai.tagFor(hx),gx=G`
6045
+ this.$emit("group-selection-toggle",o)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===zw,this.selectionCheckbox.indeterminate=this.selectionState===Bw,this.ignoreSelectionChangeEvents=!1)}}e([m],vx.prototype,"groupRowValue",void 0),e([m],vx.prototype,"nestingLevel",void 0),e([m],vx.prototype,"leafItemCount",void 0),e([m],vx.prototype,"groupColumn",void 0),e([ne({mode:"boolean"})],vx.prototype,"expanded",void 0),e([ne({mode:"boolean"})],vx.prototype,"selectable",void 0),e([ne({attribute:"selection-state"})],vx.prototype,"selectionState",void 0),e([m],vx.prototype,"selectionCheckbox",void 0),e([m],vx.prototype,"animationClass",void 0)
6046
+ const mx=vx.compose({baseName:"table-group-row",template:gx,styles:px})
6047
+ ai.getOrCreate().withPrefix("nimble").register(mx())
6048
+ const fx=ai.tagFor(vx),bx=G`
6026
6049
  <template
6027
6050
  role="grid"
6028
6051
  aria-multiselectable="${e=>e.ariaMultiSelectable}"
@@ -6038,7 +6061,7 @@ const px=ai.tagFor(hx),gx=G`
6038
6061
  ">
6039
6062
  <div role="rowgroup" class="header-container">
6040
6063
  <div class="header-row" role="row">
6041
- ${Me((e=>e.selectionMode===Vw.multiple),G`
6064
+ ${Me((e=>e.selectionMode===Dw.multiple),G`
6042
6065
  <span role="columnheader" class="checkbox-container">
6043
6066
  <${sg}
6044
6067
  ${Re("selectionCheckbox")}
@@ -6063,15 +6086,15 @@ const px=ai.tagFor(hx),gx=G`
6063
6086
  <span class="column-header-container">
6064
6087
  ${He((e=>e.columns),G`
6065
6088
  ${Me((e=>!e.columnHidden),G`
6066
- <${Qw}
6089
+ <${ox}
6067
6090
  class="header"
6068
- sort-direction="${e=>"number"==typeof e.columnInternals.currentSortIndex?e.columnInternals.currentSortDirection:Fw.none}"
6091
+ sort-direction="${e=>"number"==typeof e.columnInternals.currentSortIndex?e.columnInternals.currentSortDirection:Tw.none}"
6069
6092
  ?first-sorted-column="${(e,t)=>e===t.parent.firstSortedColumn}"
6070
6093
  @click="${(e,t)=>t.parent.toggleColumnSort(e,t.event.shiftKey)}"
6071
6094
  :isGrouped=${e=>"number"==typeof e.columnInternals.groupIndex&&!e.columnInternals.groupingDisabled}
6072
6095
  >
6073
6096
  <slot name="${e=>e.slot}"></slot>
6074
- </${Qw}>
6097
+ </${ox}>
6075
6098
  `)}
6076
6099
  `)}
6077
6100
  <div class="header-scrollbar-spacer"></div>
@@ -6080,32 +6103,32 @@ const px=ai.tagFor(hx),gx=G`
6080
6103
  </div>
6081
6104
  <div class="table-viewport" ${Re("viewport")}>
6082
6105
  <div class="table-scroll"></div>
6083
- <div class="table-row-container" ${Be({property:"rowElements",filter:Pe(lx)})}
6106
+ <div class="table-row-container" ${Be({property:"rowElements",filter:Pe(ux)})}
6084
6107
  role="rowgroup">
6085
6108
  ${Me((e=>e.columns.length>0&&e.canRenderRows),G`
6086
6109
  ${He((e=>e.virtualizer.visibleItems),G`
6087
6110
  ${Me(((e,t)=>t.parent.tableData[e.index]?.isGrouped),G`
6088
- <${px}
6111
+ <${fx}
6089
6112
  class="group-row"
6090
6113
  :groupRowValue="${(e,t)=>t.parent.tableData[e.index]?.groupRowValue}"
6091
6114
  ?expanded="${(e,t)=>t.parent.tableData[e.index]?.isExpanded}"
6092
6115
  :nestingLevel="${(e,t)=>t.parent.tableData[e.index]?.nestingLevel}"
6093
6116
  :leafItemCount="${(e,t)=>t.parent.tableData[e.index]?.leafItemCount}"
6094
6117
  :groupColumn="${(e,t)=>t.parent.tableData[e.index]?.groupColumn}"
6095
- ?selectable="${(e,t)=>t.parent.selectionMode===Vw.multiple}"
6118
+ ?selectable="${(e,t)=>t.parent.selectionMode===Dw.multiple}"
6096
6119
  selection-state="${(e,t)=>t.parent.tableData[e.index]?.selectionState}"
6097
6120
  @group-selection-toggle="${(e,t)=>t.parent.onRowSelectionToggle(e.index,t.event)}"
6098
6121
  @group-expand-toggle="${(e,t)=>t.parent.handleGroupRowExpanded(e.index,t.event)}"
6099
6122
  >
6100
- </${px}>
6123
+ </${fx}>
6101
6124
  `)}
6102
6125
  ${Me(((e,t)=>!t.parent.tableData[e.index]?.isGrouped),G`
6103
- <${lx}
6126
+ <${ux}
6104
6127
  class="row"
6105
6128
  record-id="${(e,t)=>t.parent.tableData[e.index]?.id}"
6106
- ?selectable="${(e,t)=>t.parent.selectionMode!==Vw.none}"
6107
- ?selected="${(e,t)=>t.parent.tableData[e.index]?.selectionState===Pw}"
6108
- ?hide-selection="${(e,t)=>t.parent.selectionMode!==Vw.multiple}"
6129
+ ?selectable="${(e,t)=>t.parent.selectionMode!==Dw.none}"
6130
+ ?selected="${(e,t)=>t.parent.tableData[e.index]?.selectionState===zw}"
6131
+ ?hide-selection="${(e,t)=>t.parent.selectionMode!==Dw.multiple}"
6109
6132
  :dataRecord="${(e,t)=>t.parent.tableData[e.index]?.record}"
6110
6133
  :columns="${(e,t)=>t.parent.columns}"
6111
6134
  :nestingLevel="${(e,t)=>t.parent.tableData[e.index]?.nestingLevel}"
@@ -6122,7 +6145,7 @@ const px=ai.tagFor(hx),gx=G`
6122
6145
  </slot>
6123
6146
  `)}
6124
6147
  `)}
6125
- </${lx}>
6148
+ </${ux}>
6126
6149
  `)}
6127
6150
  `)}
6128
6151
  `)}
@@ -6141,8 +6164,8 @@ const px=ai.tagFor(hx),gx=G`
6141
6164
  *
6142
6165
  * @license MIT
6143
6166
  */
6144
- function vx(){return vx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]
6145
- for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},vx.apply(this,arguments)}
6167
+ function wx(){return wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]
6168
+ for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},wx.apply(this,arguments)}
6146
6169
  /**
6147
6170
  * virtual-core
6148
6171
  *
@@ -6152,42 +6175,42 @@ for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},
6152
6175
  * LICENSE.md file in the root directory of this source tree.
6153
6176
  *
6154
6177
  * @license MIT
6155
- */function mx(e,t,o){var i,n,s=null!=(i=o.initialDeps)?i:[]
6178
+ */function xx(e,t,o){var i,n,s=null!=(i=o.initialDeps)?i:[]
6156
6179
  return function(){var i
6157
6180
  o.key&&null!=o.debug&&o.debug()&&(i=Date.now())
6158
6181
  var r,a=e()
6159
6182
  if(!(a.length!==s.length||a.some((function(e,t){return s[t]!==e}))))return n
6160
6183
  if(s=a,o.key&&null!=o.debug&&o.debug()&&(r=Date.now()),n=t.apply(void 0,a),o.key&&null!=o.debug&&o.debug()){var l=Math.round(100*(Date.now()-i))/100,c=Math.round(100*(Date.now()-r))/100,d=c/16,h=function(e,t){for(e=String(e);e.length<t;)e=" "+e
6161
6184
  return e}
6162
- console.info("%c⏱ "+h(c,5)+" /"+h(l,5)+" ms","\n font-size: .6rem;\n font-weight: bold;\n color: hsl("+Math.max(0,Math.min(120-120*d,120))+"deg 100% 31%);",null==o?void 0:o.key)}return null==o||null==o.onChange||o.onChange(n),n}}var fx,bx=function(e){return e},wx=function(e){for(var t=Math.max(e.startIndex-e.overscan,0),o=Math.min(e.endIndex+e.overscan,e.count-1),i=[],n=t;n<=o;n++)i.push(n)
6163
- return i},xx=function(e,t){var o=new ResizeObserver((function(e){var o=e[0]
6185
+ console.info("%c⏱ "+h(c,5)+" /"+h(l,5)+" ms","\n font-size: .6rem;\n font-weight: bold;\n color: hsl("+Math.max(0,Math.min(120-120*d,120))+"deg 100% 31%);",null==o?void 0:o.key)}return null==o||null==o.onChange||o.onChange(n),n}}var yx,$x=function(e){return e},Cx=function(e){for(var t=Math.max(e.startIndex-e.overscan,0),o=Math.min(e.endIndex+e.overscan,e.count-1),i=[],n=t;n<=o;n++)i.push(n)
6186
+ return i},kx=function(e,t){var o=new ResizeObserver((function(e){var o=e[0]
6164
6187
  if(o){var i=o.contentRect,n=i.width,s=i.height
6165
6188
  t({width:Math.round(n),height:Math.round(s)})}else t({width:0,height:0})}))
6166
- if(e.scrollElement)return t(e.scrollElement.getBoundingClientRect()),o.observe(e.scrollElement),function(){o.unobserve(e.scrollElement)}},yx={element:["scrollLeft","scrollTop"],window:["scrollX","scrollY"]},$x=(fx="element",function(e,t){if(e.scrollElement){var o=yx[fx][0],i=yx[fx][1],n=e.scrollElement[o],s=e.scrollElement[i],r=function(){var n=e.scrollElement[e.options.horizontal?o:i]
6189
+ if(e.scrollElement)return t(e.scrollElement.getBoundingClientRect()),o.observe(e.scrollElement),function(){o.unobserve(e.scrollElement)}},Sx={element:["scrollLeft","scrollTop"],window:["scrollX","scrollY"]},_x=(yx="element",function(e,t){if(e.scrollElement){var o=Sx[yx][0],i=Sx[yx][1],n=e.scrollElement[o],s=e.scrollElement[i],r=function(){var n=e.scrollElement[e.options.horizontal?o:i]
6167
6190
  t(n)}
6168
6191
  r()
6169
6192
  var a=function(t){var a=t.currentTarget,l=a[o],c=a[i];(e.options.horizontal?n-l:s-c)&&r(),n=l,s=c}
6170
- return e.scrollElement.addEventListener("scroll",a,{capture:!1,passive:!0}),function(){e.scrollElement.removeEventListener("scroll",a)}}}),Cx=function(e,t){return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},kx=function(e,t,o){var i,n,s=t.adjustments,r=void 0===s?0:s,a=t.behavior,l=e+r
6171
- null==(i=o.scrollElement)||null==i.scrollTo||i.scrollTo(((n={})[o.options.horizontal?"left":"top"]=l,n.behavior=a,n))},Sx=function(e){var t,o=this
6193
+ return e.scrollElement.addEventListener("scroll",a,{capture:!1,passive:!0}),function(){e.scrollElement.removeEventListener("scroll",a)}}}),Ix=function(e,t){return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},Rx=function(e,t,o){var i,n,s=t.adjustments,r=void 0===s?0:s,a=t.behavior,l=e+r
6194
+ null==(i=o.scrollElement)||null==i.scrollTo||i.scrollTo(((n={})[o.options.horizontal?"left":"top"]=l,n.behavior=a,n))},Mx=function(e){var t,o=this
6172
6195
  this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache={},this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache={},this.getResizeObserver=(t=null,function(){return t||("undefined"!=typeof ResizeObserver?t=new ResizeObserver((function(e){e.forEach((function(e){o._measureElement(e.target,!1)}))})):null)}),this.range={startIndex:0,endIndex:0},this.setOptions=function(e){Object.entries(e).forEach((function(t){var o=t[0]
6173
- void 0===t[1]&&delete e[o]})),o.options=vx({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:bx,rangeExtractor:wx,onChange:function(){},measureElement:Cx,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[]},e)},this.notify=function(){null==o.options.onChange||o.options.onChange(o)},this.cleanup=function(){o.unsubs.filter(Boolean).forEach((function(e){return e()})),o.unsubs=[],o.scrollElement=null},this._didMount=function(){var e=o.getResizeObserver()
6196
+ void 0===t[1]&&delete e[o]})),o.options=wx({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:$x,rangeExtractor:Cx,onChange:function(){},measureElement:Ix,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[]},e)},this.notify=function(){null==o.options.onChange||o.options.onChange(o)},this.cleanup=function(){o.unsubs.filter(Boolean).forEach((function(e){return e()})),o.unsubs=[],o.scrollElement=null},this._didMount=function(){var e=o.getResizeObserver()
6174
6197
  return Object.values(o.measureElementCache).forEach((function(t){return null==e?void 0:e.observe(t)})),function(){null==e||e.disconnect(),o.cleanup()}},this._willUpdate=function(){var e=o.options.getScrollElement()
6175
- o.scrollElement!==e&&(o.cleanup(),o.scrollElement=e,o._scrollToOffset(o.scrollOffset,{adjustments:void 0,behavior:void 0}),o.unsubs.push(o.options.observeElementRect(o,(function(e){o.scrollRect=e,o.maybeNotify()}))),o.unsubs.push(o.options.observeElementOffset(o,(function(e){o.scrollAdjustments=0,o.scrollOffset!==e&&(null!==o.isScrollingTimeoutId&&(clearTimeout(o.isScrollingTimeoutId),o.isScrollingTimeoutId=null),o.isScrolling=!0,o.scrollDirection=o.scrollOffset<e?"forward":"backward",o.scrollOffset=e,o.maybeNotify(),o.isScrollingTimeoutId=setTimeout((function(){o.isScrollingTimeoutId=null,o.isScrolling=!1,o.scrollDirection=null,o.maybeNotify()}),o.options.scrollingDelay))}))))},this.getSize=function(){return o.scrollRect[o.options.horizontal?"width":"height"]},this.getMeasurements=mx((function(){return[o.options.count,o.options.paddingStart,o.options.scrollMargin,o.options.getItemKey,o.itemSizeCache]}),(function(e,t,i,n,s){var r=o.pendingMeasuredCacheIndexes.length>0?Math.min.apply(Math,o.pendingMeasuredCacheIndexes):0
6198
+ o.scrollElement!==e&&(o.cleanup(),o.scrollElement=e,o._scrollToOffset(o.scrollOffset,{adjustments:void 0,behavior:void 0}),o.unsubs.push(o.options.observeElementRect(o,(function(e){o.scrollRect=e,o.maybeNotify()}))),o.unsubs.push(o.options.observeElementOffset(o,(function(e){o.scrollAdjustments=0,o.scrollOffset!==e&&(null!==o.isScrollingTimeoutId&&(clearTimeout(o.isScrollingTimeoutId),o.isScrollingTimeoutId=null),o.isScrolling=!0,o.scrollDirection=o.scrollOffset<e?"forward":"backward",o.scrollOffset=e,o.maybeNotify(),o.isScrollingTimeoutId=setTimeout((function(){o.isScrollingTimeoutId=null,o.isScrolling=!1,o.scrollDirection=null,o.maybeNotify()}),o.options.scrollingDelay))}))))},this.getSize=function(){return o.scrollRect[o.options.horizontal?"width":"height"]},this.getMeasurements=xx((function(){return[o.options.count,o.options.paddingStart,o.options.scrollMargin,o.options.getItemKey,o.itemSizeCache]}),(function(e,t,i,n,s){var r=o.pendingMeasuredCacheIndexes.length>0?Math.min.apply(Math,o.pendingMeasuredCacheIndexes):0
6176
6199
  o.pendingMeasuredCacheIndexes=[]
6177
6200
  for(var a=o.measurementsCache.slice(0,r),l=r;l<e;l++){var c=n(l),d=s[c],h=a[l-1]?a[l-1].end:t+i,u="number"==typeof d?d:o.options.estimateSize(l),p=h+u
6178
- a[l]={index:l,start:h,size:u,end:p,key:c}}return o.measurementsCache=a,a}),{key:!1,debug:function(){return o.options.debug}}),this.calculateRange=mx((function(){return[o.getMeasurements(),o.getSize(),o.scrollOffset]}),(function(e,t,i){return o.range=function(e){var t=e.measurements,o=e.outerSize,i=e.scrollOffset,n=t.length-1,s=function(e){return t[e].start},r=function(e,t,o,i){for(;e<=t;){var n=(e+t)/2|0,s=o(n)
6201
+ a[l]={index:l,start:h,size:u,end:p,key:c}}return o.measurementsCache=a,a}),{key:!1,debug:function(){return o.options.debug}}),this.calculateRange=xx((function(){return[o.getMeasurements(),o.getSize(),o.scrollOffset]}),(function(e,t,i){return o.range=function(e){var t=e.measurements,o=e.outerSize,i=e.scrollOffset,n=t.length-1,s=function(e){return t[e].start},r=function(e,t,o,i){for(;e<=t;){var n=(e+t)/2|0,s=o(n)
6179
6202
  if(s<i)e=n+1
6180
6203
  else{if(!(s>i))return n
6181
6204
  t=n-1}}return e>0?e-1:0}(0,n,s,i),a=r
6182
6205
  for(;a<n&&t[a].end<i+o;)a++
6183
- return{startIndex:r,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:i})}),{key:!1,debug:function(){return o.options.debug}}),this.maybeNotify=mx((function(){return[].concat(Object.values(o.calculateRange()),[o.isScrolling])}),(function(){o.notify()}),{key:!1,debug:function(){return o.options.debug},initialDeps:[].concat(Object.values(this.range),[this.isScrolling])}),this.getIndexes=mx((function(){return[o.options.rangeExtractor,o.calculateRange(),o.options.overscan,o.options.count]}),(function(e,t,o,i){return e(vx({},t,{overscan:o,count:i}))}),{key:!1,debug:function(){return o.options.debug}}),this.indexFromElement=function(e){var t=o.options.indexAttribute,i=e.getAttribute(t)
6206
+ return{startIndex:r,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:i})}),{key:!1,debug:function(){return o.options.debug}}),this.maybeNotify=xx((function(){return[].concat(Object.values(o.calculateRange()),[o.isScrolling])}),(function(){o.notify()}),{key:!1,debug:function(){return o.options.debug},initialDeps:[].concat(Object.values(this.range),[this.isScrolling])}),this.getIndexes=xx((function(){return[o.options.rangeExtractor,o.calculateRange(),o.options.overscan,o.options.count]}),(function(e,t,o,i){return e(wx({},t,{overscan:o,count:i}))}),{key:!1,debug:function(){return o.options.debug}}),this.indexFromElement=function(e){var t=o.options.indexAttribute,i=e.getAttribute(t)
6184
6207
  return i?parseInt(i,10):(console.warn("Missing attribute name '"+t+"={index}' on measured element."),-1)},this._measureElement=function(e,t){var i,n=o.indexFromElement(e),s=o.measurementsCache[n]
6185
6208
  if(s){var r=o.measureElementCache[s.key],a=o.getResizeObserver()
6186
6209
  if(!e.isConnected)return null==a||a.unobserve(e),void(e===r&&delete o.measureElementCache[s.key])
6187
6210
  if(r!==e)r&&(null==a||a.unobserve(r)),null==a||a.observe(e),o.measureElementCache[s.key]=e
6188
6211
  else if(!t&&!r.__virtualizerSkipFirstNotSync)return void(r.__virtualizerSkipFirstNotSync=!0)
6189
6212
  var l,c=o.options.measureElement(e,o),d=c-(null!=(i=o.itemSizeCache[s.key])?i:s.size)
6190
- if(0!==d)s.start<o.scrollOffset&&o._scrollToOffset(o.scrollOffset,{adjustments:o.scrollAdjustments+=d,behavior:void 0}),o.pendingMeasuredCacheIndexes.push(n),o.itemSizeCache=vx({},o.itemSizeCache,((l={})[s.key]=c,l)),o.notify()}},this.measureElement=function(e){e&&o._measureElement(e,!0)},this.getVirtualItems=mx((function(){return[o.getIndexes(),o.getMeasurements()]}),(function(e,t){for(var o=[],i=0,n=e.length;i<n;i++){var s=t[e[i]]
6213
+ if(0!==d)s.start<o.scrollOffset&&o._scrollToOffset(o.scrollOffset,{adjustments:o.scrollAdjustments+=d,behavior:void 0}),o.pendingMeasuredCacheIndexes.push(n),o.itemSizeCache=wx({},o.itemSizeCache,((l={})[s.key]=c,l)),o.notify()}},this.measureElement=function(e){e&&o._measureElement(e,!0)},this.getVirtualItems=xx((function(){return[o.getIndexes(),o.getMeasurements()]}),(function(e,t){for(var o=[],i=0,n=e.length;i<n;i++){var s=t[e[i]]
6191
6214
  o.push(s)}return o}),{key:!1,debug:function(){return o.options.debug}}),this.getOffsetForAlignment=function(e,t){var i=o.getSize()
6192
6215
  "auto"===t&&(t=e<=o.scrollOffset?"start":e>=o.scrollOffset+i?"end":"start"),"start"===t||("end"===t?e-=i:"center"===t&&(e-=i/2))
6193
6216
  var n=o.options.horizontal?"scrollWidth":"scrollHeight",s=(o.scrollElement?"document"in o.scrollElement?o.scrollElement.document.documentElement[n]:o.scrollElement[n]:0)-o.getSize()
@@ -6217,25 +6240,25 @@ o.options.scrollToFn(e,{behavior:n,adjustments:i},o)},this.measure=function(){o.
6217
6240
  * LICENSE.md file in the root directory of this source tree.
6218
6241
  *
6219
6242
  * @license MIT
6220
- */class _x{constructor(e,t){this.visibleItems=[],this.allRowsHeight=0,this.headerContainerMarginRight=0,this.rowContainerYOffset=0,this.table=e,this.tanStackTable=t,this.viewportResizeObserver=new ResizeObserver((e=>{const t=e[0]?.borderBoxSize[0]
6243
+ */class Ax{constructor(e,t){this.visibleItems=[],this.allRowsHeight=0,this.headerContainerMarginRight=0,this.rowContainerYOffset=0,this.table=e,this.tanStackTable=t,this.viewportResizeObserver=new ResizeObserver((e=>{const t=e[0]?.borderBoxSize[0]
6221
6244
  if(t){const e=t.inlineSize
6222
6245
  this.headerContainerMarginRight=e-this.table.viewport.clientWidth}}))}connectedCallback(){this.viewportResizeObserver.observe(this.table.viewport),this.updateVirtualizer()}disconnectedCallback(){this.viewportResizeObserver.disconnect()}dataChanged(){this.table.$fastController.isConnected&&this.updateVirtualizer()}updateVirtualizer(){const e=this.createVirtualizerOptions()
6223
- this.virtualizer?this.virtualizer.setOptions(e):this.virtualizer=new Sx(e),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const e=parseFloat(sa.getValueFor(this.table))+2*parseFloat(ca.getValueFor(this.table))
6224
- return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:t=>e,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:kx,observeElementOffset:$x,observeElementRect:xx,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){this.notifyFocusedCellRecycling()
6246
+ this.virtualizer?this.virtualizer.setOptions(e):this.virtualizer=new Mx(e),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const e=parseFloat(sa.getValueFor(this.table))+2*parseFloat(ca.getValueFor(this.table))
6247
+ return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:t=>e,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:Rx,observeElementOffset:_x,observeElementRect:kx,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){this.notifyFocusedCellRecycling()
6225
6248
  const e=this.virtualizer
6226
6249
  this.visibleItems=e.getVirtualItems(),this.allRowsHeight=e.getTotalSize()
6227
6250
  let t=0
6228
6251
  if(this.visibleItems.length>0){t=this.visibleItems[0].start}this.rowContainerYOffset=t}notifyFocusedCellRecycling(){let e=this.table.shadowRoot.activeElement
6229
- for(;null!==e&&!(e instanceof Nw)&&e.shadowRoot;)e=e.shadowRoot.activeElement
6230
- if(e instanceof Nw&&e.focusedRecycleCallback(),void 0!==this.table.openActionMenuRecordId){this.table.rowElements.find((e=>e.recordId===this.table.openActionMenuRecordId))?.closeOpenActionMenus()}}}function Ix(e){switch(e){case Dw:return Rw.basic
6231
- case Lw:return Rx
6232
- default:return Rw.basic}}function Rx(e,t,o){const i=e.getValue(o),n=t.getValue(o)
6233
- return"string"==typeof i&&"string"==typeof n?i.localeCompare(n):i===n?0:void 0===i||null===i&&void 0!==n?-1:1}e([m],_x.prototype,"visibleItems",void 0),e([m],_x.prototype,"allRowsHeight",void 0),e([m],_x.prototype,"headerContainerMarginRight",void 0),e([m],_x.prototype,"rowContainerYOffset",void 0)
6234
- class Mx{constructor(e){this.trackedItems={},this.trackedItems=e.reduce(((e,t)=>({...e,[t]:!1})),this.trackedItems)}getTrackedItems(){return{...this.trackedItems}}isTracked(e){return this.trackedItems[e]}track(e){this.trackedItems[e]=!0}untrack(e){this.trackedItems[e]=!1}trackAll(){this.setAllKeys(!0)}untrackAll(){this.setAllKeys(!1)}allTracked(){return Object.values(this.trackedItems).every((e=>e))}anyTracked(){return Object.values(this.trackedItems).some((e=>e))}noneTracked(){return Object.values(this.trackedItems).every((e=>!e))}setAllKeys(e){this.trackedItems=Object.keys(this.trackedItems).reduce(((t,o)=>({...t,[o]:e})),this.trackedItems)}}class Ax extends Mx{}const Ex=(e,...t)=>{for(const o of t)if(e===o)return!0
6235
- return!1},Ox=(e,...t)=>{for(const o of t)if(e===o)return!0
6236
- return!1},Fx=["rowIds","groupRows","columnIds","columnSort","columnWidths","columnDefinition","actionMenuSlots","selectionMode"]
6237
- class Vx extends Ax{constructor(e){super(Fx),this.table=e,this.updateQueued=!1}get updateRowIds(){return this.isTracked("rowIds")}get updateGroupRows(){return this.isTracked("groupRows")}get updateColumnIds(){return this.isTracked("columnIds")}get updateColumnSort(){return this.isTracked("columnSort")}get updateColumnWidths(){return this.isTracked("columnWidths")}get updateColumnDefinition(){return this.isTracked("columnDefinition")}get updateActionMenuSlots(){return this.isTracked("actionMenuSlots")}get updateSelectionMode(){return this.isTracked("selectionMode")}get requiresTanStackUpdate(){return this.isTracked("rowIds")||this.isTracked("columnSort")||this.isTracked("columnDefinition")||this.isTracked("groupRows")||this.isTracked("selectionMode")}get requiresTanStackDataReset(){return this.isTracked("rowIds")||this.isTracked("columnDefinition")}trackAllStateChanged(){this.trackAll(),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(e){Ex(e,"columnId")?this.track("columnIds"):Ox(e,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):Ex(e,"sortingDisabled")||Ox(e,"currentSortDirection","currentSortIndex")?this.track("columnSort"):Ex(e,"columnHidden")||Ox(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth")?this.track("columnWidths"):Ex(e,"actionMenuSlot")?this.track("actionMenuSlots"):Ox(e,"groupIndex","groupingDisabled")&&this.track("groupRows"),this.queueUpdate()}trackColumnInstancesChanged(){this.track("columnIds"),this.track("columnDefinition"),this.track("columnSort"),this.track("columnWidths"),this.track("actionMenuSlots"),this.track("groupRows"),this.queueUpdate()}trackIdFieldNameChanged(){this.track("rowIds"),this.queueUpdate()}trackSelectionModeChanged(){this.track("selectionMode"),this.queueUpdate()}queueUpdate(){this.table.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.table.update(),this.untrackAll(),this.updateQueued=!1}))))}}class Hx{static getGridTemplateColumns(e){return e?.filter((e=>!e.columnHidden)).map((e=>{const{minPixelWidth:t,currentPixelWidth:o,currentFractionalWidth:i}=e.columnInternals
6238
- if(o){return`${Math.max(t,o)}px`}return`minmax(${t}px, ${i}fr)`})).join(" ")}}class Px{constructor(e){this.tanStackTable=e}reset(){}toggleIsRowSelected(e,t){e.isGrouped&&e.selectionState===Pw?this.deselectAllLeafRows(e.id):this.tanStackTable.getRow(e.id).toggleSelected(t)}selectSingleRow(e){if(e.isGrouped)throw new Error("function not intended to select grouped rows")
6252
+ for(;null!==e&&!(e instanceof Uw)&&e.shadowRoot;)e=e.shadowRoot.activeElement
6253
+ if(e instanceof Uw&&e.focusedRecycleCallback(),void 0!==this.table.openActionMenuRecordId){this.table.rowElements.find((e=>e.recordId===this.table.openActionMenuRecordId))?.closeOpenActionMenus()}}}function Ex(e){switch(e){case Nw:return Ow.basic
6254
+ case Zw:return Ox
6255
+ default:return Ow.basic}}function Ox(e,t,o){const i=e.getValue(o),n=t.getValue(o)
6256
+ return"string"==typeof i&&"string"==typeof n?i.localeCompare(n):i===n?0:void 0===i||null===i&&void 0!==n?-1:1}e([m],Ax.prototype,"visibleItems",void 0),e([m],Ax.prototype,"allRowsHeight",void 0),e([m],Ax.prototype,"headerContainerMarginRight",void 0),e([m],Ax.prototype,"rowContainerYOffset",void 0)
6257
+ class Fx{constructor(e){this.trackedItems={},this.trackedItems=e.reduce(((e,t)=>({...e,[t]:!1})),this.trackedItems)}getTrackedItems(){return{...this.trackedItems}}isTracked(e){return this.trackedItems[e]}track(e){this.trackedItems[e]=!0}untrack(e){this.trackedItems[e]=!1}trackAll(){this.setAllKeys(!0)}untrackAll(){this.setAllKeys(!1)}allTracked(){return Object.values(this.trackedItems).every((e=>e))}anyTracked(){return Object.values(this.trackedItems).some((e=>e))}noneTracked(){return Object.values(this.trackedItems).every((e=>!e))}setAllKeys(e){this.trackedItems=Object.keys(this.trackedItems).reduce(((t,o)=>({...t,[o]:e})),this.trackedItems)}}class Vx extends Fx{}const Hx=(e,...t)=>{for(const o of t)if(e===o)return!0
6258
+ return!1},Px=(e,...t)=>{for(const o of t)if(e===o)return!0
6259
+ return!1},Tx=["rowIds","groupRows","columnIds","columnSort","columnWidths","columnDefinition","actionMenuSlots","selectionMode"]
6260
+ class Dx extends Vx{constructor(e){super(Tx),this.table=e,this.updateQueued=!1}get updateRowIds(){return this.isTracked("rowIds")}get updateGroupRows(){return this.isTracked("groupRows")}get updateColumnIds(){return this.isTracked("columnIds")}get updateColumnSort(){return this.isTracked("columnSort")}get updateColumnWidths(){return this.isTracked("columnWidths")}get updateColumnDefinition(){return this.isTracked("columnDefinition")}get updateActionMenuSlots(){return this.isTracked("actionMenuSlots")}get updateSelectionMode(){return this.isTracked("selectionMode")}get requiresTanStackUpdate(){return this.isTracked("rowIds")||this.isTracked("columnSort")||this.isTracked("columnDefinition")||this.isTracked("groupRows")||this.isTracked("selectionMode")}get requiresTanStackDataReset(){return this.isTracked("rowIds")||this.isTracked("columnDefinition")}trackAllStateChanged(){this.trackAll(),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(e){Hx(e,"columnId")?this.track("columnIds"):Px(e,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):Hx(e,"sortingDisabled")||Px(e,"currentSortDirection","currentSortIndex")?this.track("columnSort"):Hx(e,"columnHidden")||Px(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth")?this.track("columnWidths"):Hx(e,"actionMenuSlot")?this.track("actionMenuSlots"):Px(e,"groupIndex","groupingDisabled")&&this.track("groupRows"),this.queueUpdate()}trackColumnInstancesChanged(){this.track("columnIds"),this.track("columnDefinition"),this.track("columnSort"),this.track("columnWidths"),this.track("actionMenuSlots"),this.track("groupRows"),this.queueUpdate()}trackIdFieldNameChanged(){this.track("rowIds"),this.queueUpdate()}trackSelectionModeChanged(){this.track("selectionMode"),this.queueUpdate()}queueUpdate(){this.table.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.table.update(),this.untrackAll(),this.updateQueued=!1}))))}}class Lx{static getGridTemplateColumns(e){return e?.filter((e=>!e.columnHidden)).map((e=>{const{minPixelWidth:t,currentPixelWidth:o,currentFractionalWidth:i}=e.columnInternals
6261
+ if(o){return`${Math.max(t,o)}px`}return`minmax(${t}px, ${i}fr)`})).join(" ")}}class zx{constructor(e){this.tanStackTable=e}reset(){}toggleIsRowSelected(e,t){e.isGrouped&&e.selectionState===zw?this.deselectAllLeafRows(e.id):this.tanStackTable.getRow(e.id).toggleSelected(t)}selectSingleRow(e){if(e.isGrouped)throw new Error("function not intended to select grouped rows")
6239
6262
  const t=this.tanStackTable.getState().rowSelection,o=[]
6240
6263
  if(Object.entries(t).forEach((([e,t])=>{t&&o.push(e)})),1===o.length&&o[0]===e.id)return!1
6241
6264
  const i={}
@@ -6245,7 +6268,7 @@ this.tanStackTable.setRowSelection(i)}getAllLeafRowIds(e){const t=this.tanStackT
6245
6268
  return t?.getIsGrouped()?t.getLeafRows().filter((e=>0===e.getLeafRows().length)).map((e=>e.id)):[]}getAllOrderedRows(){const e=this.tanStackTable.getPreExpandedRowModel().rows
6246
6269
  return this.getOrderedRows(e)}getOrderedRows(e){const t=[]
6247
6270
  for(const o of e)t.push(o),o.subRows?.length&&t.push(...this.getOrderedRows(o.subRows))
6248
- return t}}class Tx extends Px{handleRowSelectionToggle(e,t,o){return!1}handleRowClick(e,t,o){return!1}handleActionMenuOpening(e){return!1}}class Dx extends Px{handleRowSelectionToggle(e,t,o){return o&&this.tryUpdateRangeSelection(e.id)||(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(e,t)),!0}handleRowClick(e,t,o){return o?(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(e),!0):!(!t||!this.tryUpdateRangeSelection(e.id))||(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.selectSingleRow(e))}handleActionMenuOpening(e){return e.selectionState!==Pw&&this.selectSingleRow(e)}reset(){this.shiftSelectStartRowId=void 0,this.previousShiftSelectRowEndId=void 0}tryUpdateRangeSelection(e){if(void 0===this.shiftSelectStartRowId)return!1
6271
+ return t}}class Bx extends zx{handleRowSelectionToggle(e,t,o){return!1}handleRowClick(e,t,o){return!1}handleActionMenuOpening(e){return!1}}class Nx extends zx{handleRowSelectionToggle(e,t,o){return o&&this.tryUpdateRangeSelection(e.id)||(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(e,t)),!0}handleRowClick(e,t,o){return o?(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(e),!0):!(!t||!this.tryUpdateRangeSelection(e.id))||(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.selectSingleRow(e))}handleActionMenuOpening(e){return e.selectionState!==zw&&this.selectSingleRow(e)}reset(){this.shiftSelectStartRowId=void 0,this.previousShiftSelectRowEndId=void 0}tryUpdateRangeSelection(e){if(void 0===this.shiftSelectStartRowId)return!1
6249
6272
  const t=this.getAllOrderedRows(),o=this.getRowIndexForId(this.shiftSelectStartRowId,t)
6250
6273
  if(-1===o)return!1
6251
6274
  const i=this.tanStackTable.getState().rowSelection
@@ -6255,20 +6278,20 @@ this.updateSelectionStateForRange(e,o,n,i,!0)}updateSelectionStateForRange(e,t,o
6255
6278
  const s=Math.min(t,o),r=Math.max(t,o)
6256
6279
  for(let t=s;t<=r;t++){const o=i[t]
6257
6280
  o.getIsGrouped()||this.updateSelectionStateForRow(e,o.id,n)}const a=i[o]
6258
- a.getIsGrouped()&&this.getAllLeafRowIds(a.id).forEach((t=>this.updateSelectionStateForRow(e,t,n)))}updateSelectionStateForRow(e,t,o){o?e[t]=!0:delete e[t]}getRowIndexForId(e,t){return e?t.findIndex((t=>t.id===e)):-1}}class Lx extends Px{handleRowSelectionToggle(e,t,o){return this.toggleIsRowSelected(e,t),!0}handleRowClick(e,t,o){return this.selectSingleRow(e)}handleActionMenuOpening(e){return this.handleRowClick(e,!1,!1)}}class zx{constructor(e,t){this.tanStackTable=e,this.selectionManager=this.createSelectionManager(t)}handleRowSelectionToggle(e,t,o){return!!e&&this.selectionManager.handleRowSelectionToggle(e,t,o)}handleRowClick(e,t,o){return!!e&&this.selectionManager.handleRowClick(e,t,o)}handleActionMenuOpening(e){return!!e&&this.selectionManager.handleActionMenuOpening(e)}handleSelectionModeChanged(e){this.selectionManager=this.createSelectionManager(e)}handleSelectionReset(){this.selectionManager.reset()}createSelectionManager(e){switch(e){case Vw.multiple:return new Dx(this.tanStackTable)
6259
- case Vw.single:return new Lx(this.tanStackTable)
6260
- case Vw.none:return new Tx(this.tanStackTable)
6261
- default:throw new Error("unknown selection mode found")}}}class Bx extends Rt{constructor(){super(),this.selectionMode=Vw.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.actionMenuSlots=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=Hw,this.showCollapseAll=!1,this.documentShiftKeyDown=!1,this.tableValidator=new Uw,this.tableUpdateTracker=new Vx(this),this.columnNotifiers=[],this.isInitialized=!1,this.collapsedRows=new Set,this.ignoreSelectionChangeEvents=!1,this.onViewPortScroll=e=>{this.scrollX=e.target.scrollLeft},this.onKeyDown=e=>{e.key===Or&&(this.documentShiftKeyDown=!0)},this.onKeyUp=e=>{e.key===Or&&(this.documentShiftKeyDown=!1)},this.getIsRowExpanded=e=>{if(!e.getIsGrouped())return!1
6281
+ a.getIsGrouped()&&this.getAllLeafRowIds(a.id).forEach((t=>this.updateSelectionStateForRow(e,t,n)))}updateSelectionStateForRow(e,t,o){o?e[t]=!0:delete e[t]}getRowIndexForId(e,t){return e?t.findIndex((t=>t.id===e)):-1}}class Zx extends zx{handleRowSelectionToggle(e,t,o){return this.toggleIsRowSelected(e,t),!0}handleRowClick(e,t,o){return this.selectSingleRow(e)}handleActionMenuOpening(e){return this.handleRowClick(e,!1,!1)}}class qx{constructor(e,t){this.tanStackTable=e,this.selectionManager=this.createSelectionManager(t)}handleRowSelectionToggle(e,t,o){return!!e&&this.selectionManager.handleRowSelectionToggle(e,t,o)}handleRowClick(e,t,o){return!!e&&this.selectionManager.handleRowClick(e,t,o)}handleActionMenuOpening(e){return!!e&&this.selectionManager.handleActionMenuOpening(e)}handleSelectionModeChanged(e){this.selectionManager=this.createSelectionManager(e)}handleSelectionReset(){this.selectionManager.reset()}createSelectionManager(e){switch(e){case Dw.multiple:return new Nx(this.tanStackTable)
6282
+ case Dw.single:return new Zx(this.tanStackTable)
6283
+ case Dw.none:return new Bx(this.tanStackTable)
6284
+ default:throw new Error("unknown selection mode found")}}}class jx extends Rt{constructor(){super(),this.selectionMode=Dw.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.actionMenuSlots=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=Lw,this.showCollapseAll=!1,this.documentShiftKeyDown=!1,this.tableValidator=new Xw,this.tableUpdateTracker=new Dx(this),this.columnNotifiers=[],this.isInitialized=!1,this.collapsedRows=new Set,this.ignoreSelectionChangeEvents=!1,this.onViewPortScroll=e=>{this.scrollX=e.target.scrollLeft},this.onKeyDown=e=>{e.key===Or&&(this.documentShiftKeyDown=!0)},this.onKeyUp=e=>{e.key===Or&&(this.documentShiftKeyDown=!1)},this.getIsRowExpanded=e=>{if(!e.getIsGrouped())return!1
6262
6285
  const t=this.table.options.state.expanded
6263
6286
  return!0===t||(Object.keys(t??{}).includes(e.id)?t[e.id]:!this.collapsedRows.has(e.id))},this.handleRowSelectionChange=e=>{const t=e instanceof Function?e(this.table.getState().rowSelection):e
6264
6287
  this.updateTableOptions({state:{rowSelection:t}})},this.handleExpandedChange=e=>{const t=e instanceof Function?e(this.table.getState().expanded):e
6265
- this.updateTableOptions({state:{expanded:t}})},this.options={data:[],onStateChange:e=>{},onRowSelectionChange:this.handleRowSelectionChange,onExpandedChange:this.handleExpandedChange,getCoreRowModel:e=>Xb((()=>[e.options.data]),(t=>{const o={rows:[],flatRows:[],rowsById:{}},i=function(t,n,s){void 0===n&&(n=0)
6288
+ this.updateTableOptions({state:{expanded:t}})},this.options={data:[],onStateChange:e=>{},onRowSelectionChange:this.handleRowSelectionChange,onExpandedChange:this.handleExpandedChange,getCoreRowModel:e=>ew((()=>[e.options.data]),(t=>{const o={rows:[],flatRows:[],rowsById:{}},i=function(t,n,s){void 0===n&&(n=0)
6266
6289
  const r=[]
6267
- for(let l=0;l<t.length;l++){const c=Ew(e,e._getRowId(t[l],l,s),t[l],l,n)
6290
+ for(let l=0;l<t.length;l++){const c=Hw(e,e._getRowId(t[l],l,s),t[l],l,n)
6268
6291
  var a
6269
6292
  o.flatRows.push(c),o.rowsById[c.id]=c,r.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[l],l),null!=(a=c.originalSubRows)&&a.length&&(c.subRows=i(c.originalSubRows,n+1,c)))}return r}
6270
6293
  return o.rows=i(t),o}),{key:!1,debug:()=>{var t
6271
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>Xb((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,o)=>{if(!o.rows.length||null==t||!t.length)return o
6294
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>ew((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,o)=>{if(!o.rows.length||null==t||!t.length)return o
6272
6295
  const i=e.getState().sorting,n=[],s=i.filter((t=>{var o
6273
6296
  return null==(o=e.getColumn(t.id))?void 0:o.getCanSort()})),r={}
6274
6297
  s.forEach((t=>{const o=e.getColumn(t.id)
@@ -6281,57 +6304,57 @@ if(o||i)return o&&i?0:o?a.sortUndefined:-a.sortUndefined}let c=a.sortingFn(e,t,n
6281
6304
  if(0!==c)return l&&(c*=-1),a.invertSorting&&(c*=-1),c}return e.index-t.index})),t.forEach((e=>{var t
6282
6305
  n.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))})),t}
6283
6306
  return{rows:a(o.rows),flatRows:n,rowsById:o.rowsById}}),{key:!1,debug:()=>{var t
6284
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getGroupedRowModel:Ow(),getExpandedRowModel:e=>Xb((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,o)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:o?function(e){const t=[],o=e=>{var i
6307
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getGroupedRowModel:Pw(),getExpandedRowModel:e=>ew((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,o)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:o?function(e){const t=[],o=e=>{var i
6285
6308
  t.push(e),null!=(i=e.subRows)&&i.length&&e.getIsExpanded()&&e.subRows.forEach(o)}
6286
6309
  return e.rows.forEach(o),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}(t):t),{key:!1,debug:()=>{var t
6287
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsRowExpanded:this.getIsRowExpanded,columns:[],state:{rowSelection:{},grouping:[],expanded:!0},enableRowSelection:e=>!e.getIsGrouped(),enableMultiRowSelection:!1,enableSubRowSelection:!1,enableSorting:!0,enableGrouping:!0,renderFallbackValue:null,autoResetAll:!1},this.table=Aw(this.options),this.virtualizer=new _x(this,this.table),this.selectionManager=new zx(this.table,this.selectionMode)}get validity(){return this.tableValidator.getValidity()}async setData(e){await this.processPendingUpdates()
6310
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsRowExpanded:this.getIsRowExpanded,columns:[],state:{rowSelection:{},grouping:[],expanded:!0},enableRowSelection:e=>!e.getIsGrouped(),enableMultiRowSelection:!1,enableSubRowSelection:!1,enableSorting:!0,enableGrouping:!0,renderFallbackValue:null,autoResetAll:!1},this.table=Vw(this.options),this.virtualizer=new Ax(this,this.table),this.selectionManager=new qx(this.table,this.selectionMode)}get validity(){return this.tableValidator.getValidity()}async setData(e){await this.processPendingUpdates()
6288
6311
  const t=e.map((e=>({...e}))),o={data:t}
6289
6312
  if(this.validateWithData(t),this.tableValidator.areRecordIdsValid()){const e=await this.getSelectedRecordIds()
6290
6313
  o.state={rowSelection:this.calculateTanStackSelectionState(e)}}this.updateTableOptions(o)}async getSelectedRecordIds(){await this.processPendingUpdates()
6291
6314
  const e=this.options.state.rowSelection
6292
6315
  if(!e)return[]
6293
6316
  const t=[]
6294
- return Object.entries(e).forEach((([e,o])=>{o&&t.push(e)})),t}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==Vw.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(e)}})}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connectedCallback(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0}),document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp)}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnectedCallback(),this.viewport.removeEventListener("scroll",this.onViewPortScroll),document.removeEventListener("keydown",this.onKeyDown),document.removeEventListener("keyup",this.onKeyUp)}checkValidity(){return this.tableValidator.isValid()}handleChange(e,t){(e instanceof jw||e instanceof qw)&&"string"==typeof t&&("validConfiguration"===t?this.tableValidator.validateColumnConfigurations(this.columns):this.tableUpdateTracker.trackColumnPropertyChanged(t))}onRowSelectionToggle(e,t){t.stopImmediatePropagation()
6317
+ return Object.entries(e).forEach((([e,o])=>{o&&t.push(e)})),t}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==Dw.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(e)}})}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connectedCallback(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0}),document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp)}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnectedCallback(),this.viewport.removeEventListener("scroll",this.onViewPortScroll),document.removeEventListener("keydown",this.onKeyDown),document.removeEventListener("keyup",this.onKeyUp)}checkValidity(){return this.tableValidator.isValid()}handleChange(e,t){(e instanceof Kw||e instanceof Ww)&&"string"==typeof t&&("validConfiguration"===t?this.tableValidator.validateColumnConfigurations(this.columns):this.tableUpdateTracker.trackColumnPropertyChanged(t))}onRowSelectionToggle(e,t){t.stopImmediatePropagation()
6295
6318
  this.selectionManager.handleRowSelectionToggle(this.tableData[e],t.detail.newState,this.documentShiftKeyDown)&&this.emitSelectionChangeEvent()}onRowClick(e,t){return this.selectionManager.handleRowClick(this.tableData[e],t.shiftKey,t.ctrlKey||t.metaKey)&&this.emitSelectionChangeEvent(),!0}onAllRowsSelectionChange(e){e.stopPropagation(),this.ignoreSelectionChangeEvents||(this.table.toggleAllRowsSelected(this.selectionCheckbox.checked),this.emitSelectionChangeEvent())}onRowActionMenuBeforeToggle(e,t){t.stopImmediatePropagation(),this.handleActionMenuBeforeToggleEvent(e,t)}onRowActionMenuToggle(e){e.stopImmediatePropagation(),this.handleRowActionMenuToggleEvent(e)}handleCollapseAllGroupRows(){this.collapsedRows.clear(),this.table.getRowModel().flatRows.filter((e=>e.getIsGrouped())).forEach((e=>this.collapsedRows.add(e.id))),this.table.toggleAllRowsExpanded(!1)}handleGroupRowExpanded(e,t){this.toggleGroupExpanded(e),t.stopPropagation()}toggleColumnSort(e,t){if(e.sortingDisabled)return
6296
6319
  const o=this.getColumnsParticipatingInSorting().sort(((e,t)=>e.columnInternals.currentSortIndex-t.columnInternals.currentSortIndex)),i=o.indexOf(e),n=i>-1,s=e.columnInternals.currentSortDirection
6297
- let r=Fw.ascending
6298
- n?s===Fw.descending?(o.splice(i,1),r=Fw.none,e.columnInternals.currentSortIndex=void 0):r=Fw.descending:o.push(e),e.columnInternals.currentSortDirection=r
6320
+ let r=Tw.ascending
6321
+ n?s===Tw.descending?(o.splice(i,1),r=Tw.none,e.columnInternals.currentSortIndex=void 0):r=Tw.descending:o.push(e),e.columnInternals.currentSortDirection=r
6299
6322
  for(let i=0;i<o.length;i++){const n=o[i]
6300
- t?o[i].columnInternals.currentSortIndex=i:n===e?n.columnInternals.currentSortIndex=0:(n.columnInternals.currentSortIndex=void 0,n.columnInternals.currentSortDirection=Fw.none)}this.emitColumnConfigurationChangeEvent()}update(){this.validate(),this.tableUpdateTracker.requiresTanStackUpdate&&this.updateTanStack(),this.tableUpdateTracker.updateActionMenuSlots&&this.updateActionMenuSlots(),this.tableUpdateTracker.updateColumnWidths&&this.updateRowGridColumns(),this.tableUpdateTracker.updateGroupRows&&(this.showCollapseAll=this.getColumnsParticipatingInGrouping().length>0)}get ariaMultiSelectable(){switch(this.selectionMode){case Vw.multiple:return"true"
6301
- case Vw.single:return"false"
6323
+ t?o[i].columnInternals.currentSortIndex=i:n===e?n.columnInternals.currentSortIndex=0:(n.columnInternals.currentSortIndex=void 0,n.columnInternals.currentSortDirection=Tw.none)}this.emitColumnConfigurationChangeEvent()}update(){this.validate(),this.tableUpdateTracker.requiresTanStackUpdate&&this.updateTanStack(),this.tableUpdateTracker.updateActionMenuSlots&&this.updateActionMenuSlots(),this.tableUpdateTracker.updateColumnWidths&&this.updateRowGridColumns(),this.tableUpdateTracker.updateGroupRows&&(this.showCollapseAll=this.getColumnsParticipatingInGrouping().length>0)}get ariaMultiSelectable(){switch(this.selectionMode){case Dw.multiple:return"true"
6324
+ case Dw.single:return"false"
6302
6325
  default:return null}}selectionModeChanged(e,t){this.$fastController.isConnected&&this.tableUpdateTracker.trackSelectionModeChanged()}idFieldNameChanged(e,t){this.$fastController.isConnected&&this.tableUpdateTracker.trackIdFieldNameChanged()}columnsChanged(e,t){this.$fastController.isConnected&&(this.observeColumns(),this.tableUpdateTracker.trackColumnInstancesChanged())}async handleActionMenuBeforeToggleEvent(e,t){this.selectionManager.handleActionMenuOpening(this.tableData[e])&&await this.emitSelectionChangeEvent(),this.openActionMenuRecordId=t.detail.recordIds[0]
6303
6326
  const o=await this.getActionMenuToggleEventDetail(t)
6304
6327
  this.$emit("action-menu-beforetoggle",o)}async handleRowActionMenuToggleEvent(e){const t=await this.getActionMenuToggleEventDetail(e)
6305
- this.$emit("action-menu-toggle",t),e.detail.newState||(this.openActionMenuRecordId=void 0)}async getActionMenuToggleEventDetail(e){const t=this.selectionMode===Vw.multiple?await this.getSelectedRecordIds():[this.openActionMenuRecordId]
6328
+ this.$emit("action-menu-toggle",t),e.detail.newState||(this.openActionMenuRecordId=void 0)}async getActionMenuToggleEventDetail(e){const t=this.selectionMode===Dw.multiple?await this.getSelectedRecordIds():[this.openActionMenuRecordId]
6306
6329
  return{...e.detail,recordIds:t}}removeColumnObservers(){this.columnNotifiers.forEach((e=>{e.unsubscribe(this)})),this.columnNotifiers=[]}initialize(){this.isInitialized||(this.isInitialized=!0,this.$fastController.onConnectedCallback(),this.tableUpdateTracker.trackAllStateChanged(),this.observeColumns())}async processPendingUpdates(){if(this.initialize(),await u.nextUpdate(),this.tableUpdateTracker.hasPendingUpdates)throw new Error("Expected pending updates to be resolved")}observeColumns(){this.removeColumnObservers()
6307
6330
  for(const e of this.columns){const t=v.getNotifier(e)
6308
6331
  t.subscribe(this),this.columnNotifiers.push(t)
6309
- v.getNotifier(e.columnInternals).subscribe(this),this.columnNotifiers.push(t)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>!e.sortingDisabled&&e.columnInternals.currentSortDirection!==Fw.none&&"number"==typeof e.columnInternals.currentSortIndex))}getColumnsParticipatingInGrouping(){return this.columns.filter((e=>!e.columnInternals.groupingDisabled&&"number"==typeof e.columnInternals.groupIndex))}childItemsChanged(){this.updateColumnsFromChildItems()}async updateColumnsFromChildItems(){const e=this.childItems.map((async e=>e.matches(":not(:defined)")?customElements.whenDefined(e.localName):Promise.resolve()))
6310
- await Promise.all(e),this.columns=this.childItems.filter((e=>e instanceof jw))}updateTanStack(){const e={state:{}}
6311
- this.tableUpdateTracker.updateColumnSort&&(e.state.sorting=this.calculateTanStackSortState()),this.tableUpdateTracker.updateColumnDefinition&&(e.columns=this.calculateTanStackColumns()),this.tableUpdateTracker.updateRowIds&&(e.getRowId=this.calculateTanStackRowIdFunction(),e.state.rowSelection={},this.selectionManager.handleSelectionReset()),this.tableUpdateTracker.updateSelectionMode&&(e.enableMultiRowSelection=this.selectionMode===Vw.multiple,e.enableSubRowSelection=this.selectionMode===Vw.multiple,e.state.rowSelection={},this.selectionManager.handleSelectionModeChanged(this.selectionMode)),this.tableUpdateTracker.requiresTanStackDataReset&&(e.data=[...this.table.options.data]),this.tableUpdateTracker.updateGroupRows&&(e.state.grouping=this.calculateTanStackGroupingState(),e.state.expanded=!0,this.collapsedRows.clear()),this.updateTableOptions(e)}updateActionMenuSlots(){const e=new Set
6332
+ v.getNotifier(e.columnInternals).subscribe(this),this.columnNotifiers.push(t)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>!e.sortingDisabled&&e.columnInternals.currentSortDirection!==Tw.none&&"number"==typeof e.columnInternals.currentSortIndex))}getColumnsParticipatingInGrouping(){return this.columns.filter((e=>!e.columnInternals.groupingDisabled&&"number"==typeof e.columnInternals.groupIndex))}childItemsChanged(){this.updateColumnsFromChildItems()}async updateColumnsFromChildItems(){const e=this.childItems.map((async e=>e.matches(":not(:defined)")?customElements.whenDefined(e.localName):Promise.resolve()))
6333
+ await Promise.all(e),this.columns=this.childItems.filter((e=>e instanceof Kw))}updateTanStack(){const e={state:{}}
6334
+ this.tableUpdateTracker.updateColumnSort&&(e.state.sorting=this.calculateTanStackSortState()),this.tableUpdateTracker.updateColumnDefinition&&(e.columns=this.calculateTanStackColumns()),this.tableUpdateTracker.updateRowIds&&(e.getRowId=this.calculateTanStackRowIdFunction(),e.state.rowSelection={},this.selectionManager.handleSelectionReset()),this.tableUpdateTracker.updateSelectionMode&&(e.enableMultiRowSelection=this.selectionMode===Dw.multiple,e.enableSubRowSelection=this.selectionMode===Dw.multiple,e.state.rowSelection={},this.selectionManager.handleSelectionModeChanged(this.selectionMode)),this.tableUpdateTracker.requiresTanStackDataReset&&(e.data=[...this.table.options.data]),this.tableUpdateTracker.updateGroupRows&&(e.state.grouping=this.calculateTanStackGroupingState(),e.state.expanded=!0,this.collapsedRows.clear()),this.updateTableOptions(e)}updateActionMenuSlots(){const e=new Set
6312
6335
  for(const t of this.columns)t.actionMenuSlot&&e.add(t.actionMenuSlot)
6313
- this.actionMenuSlots=Array.from(e)}updateRowGridColumns(){this.rowGridColumns=Hx.getGridTemplateColumns(this.columns)}validate(){this.tableValidator.validateSelectionMode(this.selectionMode,this.idFieldName),this.tableValidator.validateColumnIds(this.columns.map((e=>e.columnId))),this.tableValidator.validateColumnSortIndices(this.getColumnsParticipatingInSorting().map((e=>e.columnInternals.currentSortIndex))),this.tableValidator.validateColumnGroupIndices(this.getColumnsParticipatingInGrouping().map((e=>e.columnInternals.groupIndex))),this.tableValidator.validateColumnConfigurations(this.columns),this.validateWithData(this.table.options.data)}validateWithData(e){this.tableValidator.validateRecordIds(e,this.idFieldName),this.canRenderRows=this.checkValidity()}emitColumnConfigurationChangeEvent(){const e={columns:this.columns.map((e=>({columnId:e.columnId,sortIndex:e.columnInternals.currentSortIndex??void 0,sortDirection:e.columnInternals.currentSortDirection,groupIndex:e.columnInternals.groupIndex,hidden:e.columnHidden,fractionalWidth:e.columnInternals.currentFractionalWidth,pixelWidth:e.columnInternals.currentPixelWidth})))}
6336
+ this.actionMenuSlots=Array.from(e)}updateRowGridColumns(){this.rowGridColumns=Lx.getGridTemplateColumns(this.columns)}validate(){this.tableValidator.validateSelectionMode(this.selectionMode,this.idFieldName),this.tableValidator.validateColumnIds(this.columns.map((e=>e.columnId))),this.tableValidator.validateColumnSortIndices(this.getColumnsParticipatingInSorting().map((e=>e.columnInternals.currentSortIndex))),this.tableValidator.validateColumnGroupIndices(this.getColumnsParticipatingInGrouping().map((e=>e.columnInternals.groupIndex))),this.tableValidator.validateColumnConfigurations(this.columns),this.validateWithData(this.table.options.data)}validateWithData(e){this.tableValidator.validateRecordIds(e,this.idFieldName),this.canRenderRows=this.checkValidity()}emitColumnConfigurationChangeEvent(){const e={columns:this.columns.map((e=>({columnId:e.columnId,sortIndex:e.columnInternals.currentSortIndex??void 0,sortDirection:e.columnInternals.currentSortDirection,groupIndex:e.columnInternals.groupIndex,hidden:e.columnHidden,fractionalWidth:e.columnInternals.currentFractionalWidth,pixelWidth:e.columnInternals.currentPixelWidth})))}
6314
6337
  this.$emit("column-configuration-change",e)}async emitSelectionChangeEvent(){const e={selectedRecordIds:await this.getSelectedRecordIds()}
6315
- this.$emit("selection-change",e)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===Pw,this.selectionCheckbox.indeterminate=this.selectionState===Tw,this.ignoreSelectionChangeEvents=!1)}refreshRows(){this.selectionState=this.getTableSelectionState()
6338
+ this.$emit("selection-change",e)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===zw,this.selectionCheckbox.indeterminate=this.selectionState===Bw,this.ignoreSelectionChangeEvents=!1)}refreshRows(){this.selectionState=this.getTableSelectionState()
6316
6339
  const e=this.table.getRowModel().rows
6317
- this.tableData=e.map((e=>({record:e.original,id:e.id,selectionState:this.getRowSelectionState(e),isGrouped:e.getIsGrouped(),isExpanded:e.getIsExpanded(),groupRowValue:e.getIsGrouped()?e.getValue(e.groupingColumnId):void 0,nestingLevel:e.depth,leafItemCount:e.getLeafRows().filter((e=>0===e.getLeafRows().length)).length,groupColumn:this.getGroupRowColumn(e)}))),this.virtualizer.dataChanged()}getTableSelectionState(){return this.table.getIsAllRowsSelected()?Pw:this.table.getIsSomeRowsSelected()?Tw:Hw}getRowSelectionState(e){return e.getIsGrouped()?this.getGroupedRowSelectionState(e):e.getIsSelected()?Pw:Hw}getGroupedRowSelectionState(e){const t=e.subRows??[]
6340
+ this.tableData=e.map((e=>({record:e.original,id:e.id,selectionState:this.getRowSelectionState(e),isGrouped:e.getIsGrouped(),isExpanded:e.getIsExpanded(),groupRowValue:e.getIsGrouped()?e.getValue(e.groupingColumnId):void 0,nestingLevel:e.depth,leafItemCount:e.getLeafRows().filter((e=>0===e.getLeafRows().length)).length,groupColumn:this.getGroupRowColumn(e)}))),this.virtualizer.dataChanged()}getTableSelectionState(){return this.table.getIsAllRowsSelected()?zw:this.table.getIsSomeRowsSelected()?Bw:Lw}getRowSelectionState(e){return e.getIsGrouped()?this.getGroupedRowSelectionState(e):e.getIsSelected()?zw:Lw}getGroupedRowSelectionState(e){const t=e.subRows??[]
6318
6341
  let o=!1,i=!1
6319
- for(const e of t){if(e.getIsGrouped()){switch(this.getGroupedRowSelectionState(e)){case Hw:i=!0
6342
+ for(const e of t){if(e.getIsGrouped()){switch(this.getGroupedRowSelectionState(e)){case Lw:i=!0
6320
6343
  break
6321
- case Pw:o=!0
6344
+ case zw:o=!0
6322
6345
  break
6323
- default:return Tw}}else e.getIsSelected()?o=!0:i=!0
6324
- if(o&&i)return Tw}return o?Pw:Hw}getGroupRowColumn(e){const t=e.groupingColumnId
6346
+ default:return Bw}}else e.getIsSelected()?o=!0:i=!0
6347
+ if(o&&i)return Bw}return o?zw:Lw}getGroupRowColumn(e){const t=e.groupingColumnId
6325
6348
  if(void 0!==t)return this.columns.find((e=>e.columnInternals.uniqueId===t))}updateTableOptions(e){this.options={...this.options,...e,state:{...this.options.state,...e.state}},this.table.setOptions(this.options),this.refreshRows()}toggleGroupExpanded(e){const t=this.table.getRowModel().rows[e]
6326
6349
  t.getIsExpanded()?this.collapsedRows.add(t.id):this.collapsedRows.delete(t.id),t.toggleExpanded()}calculateTanStackSortState(){const e=this.getColumnsParticipatingInSorting().sort(((e,t)=>e.columnInternals.currentSortIndex-t.columnInternals.currentSortIndex))
6327
- return this.firstSortedColumn=e.length?e[0]:void 0,e.map((e=>({id:e.columnInternals.uniqueId,desc:e.columnInternals.currentSortDirection===Fw.descending})))}calculateTanStackGroupingState(){return this.getColumnsParticipatingInGrouping().sort(((e,t)=>e.columnInternals.groupIndex-t.columnInternals.groupIndex)).map((e=>e.columnInternals.uniqueId))}calculateTanStackRowIdFunction(){return null===this.idFieldName||void 0===this.idFieldName?void 0:e=>e[this.idFieldName]}calculateTanStackColumns(){return this.columns.map((e=>({id:e.columnInternals.uniqueId,accessorFn:t=>{const o=e.columnInternals.operandDataRecordFieldName
6328
- if("string"==typeof o)return t[o]},sortingFn:Ix(e.columnInternals.sortOperation)})))}calculateTanStackSelectionState(e){if(this.selectionMode===Vw.none)return{}
6350
+ return this.firstSortedColumn=e.length?e[0]:void 0,e.map((e=>({id:e.columnInternals.uniqueId,desc:e.columnInternals.currentSortDirection===Tw.descending})))}calculateTanStackGroupingState(){return this.getColumnsParticipatingInGrouping().sort(((e,t)=>e.columnInternals.groupIndex-t.columnInternals.groupIndex)).map((e=>e.columnInternals.uniqueId))}calculateTanStackRowIdFunction(){return null===this.idFieldName||void 0===this.idFieldName?void 0:e=>e[this.idFieldName]}calculateTanStackColumns(){return this.columns.map((e=>({id:e.columnInternals.uniqueId,accessorFn:t=>{const o=e.columnInternals.operandDataRecordFieldName
6351
+ if("string"==typeof o)return t[o]},sortingFn:Ex(e.columnInternals.sortOperation)})))}calculateTanStackSelectionState(e){if(this.selectionMode===Dw.none)return{}
6329
6352
  const t={},o=this.tableValidator.getPresentRecordIds(e)
6330
- for(const e of o)if(t[e]=!0,this.selectionMode===Vw.single)break
6331
- return t}}e([ne({attribute:"id-field-name"})],Bx.prototype,"idFieldName",void 0),e([ne({attribute:"selection-mode"})],Bx.prototype,"selectionMode",void 0),e([m],Bx.prototype,"tableData",void 0),e([m],Bx.prototype,"columns",void 0),e([m],Bx.prototype,"childItems",void 0),e([m],Bx.prototype,"rowElements",void 0),e([m],Bx.prototype,"actionMenuSlots",void 0),e([m],Bx.prototype,"openActionMenuRecordId",void 0),e([m],Bx.prototype,"canRenderRows",void 0),e([m],Bx.prototype,"scrollX",void 0),e([m],Bx.prototype,"rowGridColumns",void 0),e([m],Bx.prototype,"selectionState",void 0),e([m],Bx.prototype,"selectionCheckbox",void 0),e([m],Bx.prototype,"showCollapseAll",void 0),e([m],Bx.prototype,"firstSortedColumn",void 0),e([m],Bx.prototype,"documentShiftKeyDown",void 0)
6332
- const Nx=Bx.compose({baseName:"table",template:gx,styles:Gw})
6333
- ai.getOrCreate().withPrefix("nimble").register(Nx()),ai.tagFor(Bx)
6334
- const Zx=fe`
6353
+ for(const e of o)if(t[e]=!0,this.selectionMode===Dw.single)break
6354
+ return t}}e([ne({attribute:"id-field-name"})],jx.prototype,"idFieldName",void 0),e([ne({attribute:"selection-mode"})],jx.prototype,"selectionMode",void 0),e([m],jx.prototype,"tableData",void 0),e([m],jx.prototype,"columns",void 0),e([m],jx.prototype,"childItems",void 0),e([m],jx.prototype,"rowElements",void 0),e([m],jx.prototype,"actionMenuSlots",void 0),e([m],jx.prototype,"openActionMenuRecordId",void 0),e([m],jx.prototype,"canRenderRows",void 0),e([m],jx.prototype,"scrollX",void 0),e([m],jx.prototype,"rowGridColumns",void 0),e([m],jx.prototype,"selectionState",void 0),e([m],jx.prototype,"selectionCheckbox",void 0),e([m],jx.prototype,"showCollapseAll",void 0),e([m],jx.prototype,"firstSortedColumn",void 0),e([m],jx.prototype,"documentShiftKeyDown",void 0)
6355
+ const Ux=jx.compose({baseName:"table",template:bx,styles:Yw})
6356
+ ai.getOrCreate().withPrefix("nimble").register(Ux()),ai.tagFor(jx)
6357
+ const Gx=fe`
6335
6358
  :host {
6336
6359
  display: contents;
6337
6360
  }
@@ -6342,11 +6365,11 @@ const Zx=fe`
6342
6365
  text-overflow: ellipsis;
6343
6366
  }
6344
6367
  `
6345
- class qx{constructor(e,t){this.target=e,this.propertyName=t}bind(e){this.source=e,this.setSourceValue(!1),this.mouseOverHandler=()=>{const e=this.target.offsetWidth<this.target.scrollWidth
6346
- this.setSourceValue(e)},this.mouseOutHandler=()=>{this.setSourceValue(!1)},this.target.addEventListener("mouseover",this.mouseOverHandler),this.target.addEventListener("mouseout",this.mouseOutHandler)}unbind(){this.source=void 0,this.target.removeEventListener("mouseover",this.mouseOverHandler),this.target.removeEventListener("mouseout",this.mouseOutHandler)}setSourceValue(e){this.source[this.propertyName]=e}}function jx(e){return new C("nimble-overflow",qx,e)}const Ux=G`
6368
+ class Wx{constructor(e,t){this.target=e,this.propertyName=t}bind(e){this.source=e,this.setSourceValue(!1),this.mouseOverHandler=()=>{const e=this.target.offsetWidth<this.target.scrollWidth
6369
+ this.setSourceValue(e)},this.mouseOutHandler=()=>{this.setSourceValue(!1)},this.target.addEventListener("mouseover",this.mouseOverHandler),this.target.addEventListener("mouseout",this.mouseOutHandler)}unbind(){this.source=void 0,this.target.removeEventListener("mouseover",this.mouseOverHandler),this.target.removeEventListener("mouseout",this.mouseOutHandler)}setSourceValue(e){this.source[this.propertyName]=e}}function Kx(e){return new C("nimble-overflow",Wx,e)}const Xx=G`
6347
6370
  <template slot="${e=>e.columnInternals.uniqueId}">
6348
6371
  <span
6349
- ${jx("hasOverflow")}
6372
+ ${Kx("hasOverflow")}
6350
6373
  class="header-content"
6351
6374
  title=${e=>e.hasOverflow&&e.headerTextContent?e.headerTextContent:null}
6352
6375
  >
@@ -6354,7 +6377,7 @@ this.setSourceValue(e)},this.mouseOutHandler=()=>{this.setSourceValue(!1)},this.
6354
6377
  </span>
6355
6378
  </template>
6356
6379
  `
6357
- function Gx(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.fractionalWidth?this.columnInternals.fractionalWidth=this.fractionalWidth:this.columnInternals.fractionalWidth=1}minPixelWidthChanged(){"number"==typeof this.minPixelWidth?this.columnInternals.minPixelWidth=this.minPixelWidth:this.columnInternals.minPixelWidth=117}}return ne({attribute:"fractional-width",converter:oe})(t.prototype,"fractionalWidth"),ne({attribute:"min-pixel-width",converter:oe})(t.prototype,"minPixelWidth"),t}function Wx(e){class t extends e{constructor(){super(...arguments),this.groupingDisabled=!1,this.groupIndex=null}groupingDisabledChanged(){this.columnInternals.groupingDisabled=this.groupingDisabled}groupIndexChanged(){"number"==typeof this.groupIndex?this.columnInternals.groupIndex=this.groupIndex:this.columnInternals.groupIndex=void 0}}return ne({attribute:"grouping-disabled",mode:"boolean"})(t.prototype,"groupingDisabled"),ne({attribute:"group-index",converter:oe})(t.prototype,"groupIndex"),t}const Kx=fe`
6380
+ function Yx(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.fractionalWidth?this.columnInternals.fractionalWidth=this.fractionalWidth:this.columnInternals.fractionalWidth=1}minPixelWidthChanged(){"number"==typeof this.minPixelWidth?this.columnInternals.minPixelWidth=this.minPixelWidth:this.columnInternals.minPixelWidth=117}}return ne({attribute:"fractional-width",converter:oe})(t.prototype,"fractionalWidth"),ne({attribute:"min-pixel-width",converter:oe})(t.prototype,"minPixelWidth"),t}function Qx(e){class t extends e{constructor(){super(...arguments),this.groupingDisabled=!1,this.groupIndex=null}groupingDisabledChanged(){this.columnInternals.groupingDisabled=this.groupingDisabled}groupIndexChanged(){"number"==typeof this.groupIndex?this.columnInternals.groupIndex=this.groupIndex:this.columnInternals.groupIndex=void 0}}return ne({attribute:"grouping-disabled",mode:"boolean"})(t.prototype,"groupingDisabled"),ne({attribute:"group-index",converter:oe})(t.prototype,"groupIndex"),t}const Jx=fe`
6358
6381
  :host {
6359
6382
  width: fit-content;
6360
6383
  max-width: 100%;
@@ -6379,14 +6402,14 @@ function Gx(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.
6379
6402
  .placeholder {
6380
6403
  color: ${Nl};
6381
6404
  }
6382
- `,Xx=G`
6405
+ `,ey=G`
6383
6406
  <template
6384
6407
  @click="${(e,t)=>("string"==typeof e.cellRecord.href&&t.event.stopPropagation(),!0)}"
6385
6408
  >
6386
6409
  ${Me((e=>"string"==typeof e.cellRecord.href),G`
6387
6410
  <${Bc}
6388
6411
  ${Re("anchor")}
6389
- ${jx("hasOverflow")}
6412
+ ${Kx("hasOverflow")}
6390
6413
  href="${e=>e.cellRecord.href}"
6391
6414
  hreflang="${e=>e.columnConfig.hreflang}"
6392
6415
  ping="${e=>e.columnConfig.ping}"
@@ -6403,7 +6426,7 @@ function Gx(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.
6403
6426
  </${Bc}>`)}
6404
6427
  ${Me((e=>"string"!=typeof e.cellRecord.href),G`
6405
6428
  <span
6406
- ${jx("hasOverflow")}
6429
+ ${Kx("hasOverflow")}
6407
6430
  class="${e=>"string"==typeof e.cellRecord.label?"":"placeholder"}"
6408
6431
  title=${e=>e.hasOverflow&&e.content?e.content:null}
6409
6432
  >
@@ -6411,20 +6434,20 @@ function Gx(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.
6411
6434
  </span>`)}
6412
6435
  </template>
6413
6436
  `
6414
- class Yx extends Nw{constructor(){super(...arguments),this.hasOverflow=!1}get content(){return"string"==typeof this.cellRecord.label?this.cellRecord.label:"string"==typeof this.cellRecord.href?this.cellRecord.href:this.columnConfig.placeholder}focusedRecycleCallback(){this.anchor?.blur()}}e([m],Yx.prototype,"hasOverflow",void 0),e([f],Yx.prototype,"content",null)
6415
- const Qx=Yx.compose({baseName:"table-column-anchor-cell-view",template:Xx,styles:Kx})
6416
- ai.getOrCreate().withPrefix("nimble").register(Qx())
6417
- const Jx=ai.tagFor(Yx)
6418
- class ey extends zw{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.placeholder="",this.shouldUsePlaceholder=!0}get content(){return this.shouldUsePlaceholder?this.placeholder:this.text}}e([m],ey.prototype,"hasOverflow",void 0),e([m],ey.prototype,"text",void 0),e([m],ey.prototype,"placeholder",void 0),e([m],ey.prototype,"shouldUsePlaceholder",void 0),e([f],ey.prototype,"content",null)
6419
- const ty=G`
6437
+ class ty extends Uw{constructor(){super(...arguments),this.hasOverflow=!1}get content(){return"string"==typeof this.cellRecord.label?this.cellRecord.label:"string"==typeof this.cellRecord.href?this.cellRecord.href:this.columnConfig.placeholder}focusedRecycleCallback(){this.anchor?.blur()}}e([m],ty.prototype,"hasOverflow",void 0),e([f],ty.prototype,"content",null)
6438
+ const oy=ty.compose({baseName:"table-column-anchor-cell-view",template:ey,styles:Jx})
6439
+ ai.getOrCreate().withPrefix("nimble").register(oy())
6440
+ const iy=ai.tagFor(ty)
6441
+ class ny extends qw{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.placeholder="",this.shouldUsePlaceholder=!0}get content(){return this.shouldUsePlaceholder?this.placeholder:this.text}}e([m],ny.prototype,"hasOverflow",void 0),e([m],ny.prototype,"text",void 0),e([m],ny.prototype,"placeholder",void 0),e([m],ny.prototype,"shouldUsePlaceholder",void 0),e([f],ny.prototype,"content",null)
6442
+ const sy=G`
6420
6443
  <span
6421
- ${jx("hasOverflow")}
6444
+ ${Kx("hasOverflow")}
6422
6445
  class="${e=>e.shouldUsePlaceholder?"placeholder":""}"
6423
6446
  title="${e=>e.hasOverflow&&e.content?e.content:void 0}"
6424
6447
  >
6425
6448
  ${e=>e.content}
6426
6449
  </span>
6427
- `,oy=fe`
6450
+ `,ry=fe`
6428
6451
  span {
6429
6452
  font: ${Sl};
6430
6453
  color: ${_l};
@@ -6437,22 +6460,22 @@ const ty=G`
6437
6460
  color: ${Nl};
6438
6461
  }
6439
6462
  `
6440
- class iy extends ey{columnConfigChanged(){this.placeholder=this.columnConfig?.placeholder??""}groupHeaderValueChanged(){"string"==typeof this.groupHeaderValue?(this.text=this.groupHeaderValue,this.shouldUsePlaceholder=!1):(this.text="",this.shouldUsePlaceholder=!0)}}const ny=iy.compose({baseName:"table-column-text-group-header",template:ty,styles:oy})
6441
- ai.getOrCreate().withPrefix("nimble").register(ny())
6442
- const sy=ai.tagFor(iy)
6443
- class ry extends(Wx(Gx(jw))){constructor(){super(...arguments),this.underlineHidden=!1}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:Jx,groupHeaderViewTag:sy,delegatedEvents:["click"],sortOperation:Lw}}labelFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName],this.columnInternals.operandDataRecordFieldName=this.labelFieldName}hrefFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName]}placeholderChanged(){this.updateColumnConfig()}appearanceChanged(){this.updateColumnConfig()}underlineHiddenChanged(){this.updateColumnConfig()}hreflangChanged(){this.updateColumnConfig()}pingChanged(){this.updateColumnConfig()}referrerpolicyChanged(){this.updateColumnConfig()}relChanged(){this.updateColumnConfig()}targetChanged(){this.updateColumnConfig()}typeChanged(){this.updateColumnConfig()}downloadChanged(){this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.columnConfig={placeholder:this.placeholder??"",appearance:this.appearance,underlineHidden:this.underlineHidden,hreflang:this.hreflang,ping:this.ping,referrerpolicy:this.referrerpolicy,rel:this.rel,target:this.target,type:this.type,download:this.download}}}e([ne({attribute:"label-field-name"})],ry.prototype,"labelFieldName",void 0),e([ne({attribute:"href-field-name"})],ry.prototype,"hrefFieldName",void 0),e([ne],ry.prototype,"placeholder",void 0),e([ne],ry.prototype,"appearance",void 0),e([ne({attribute:"underline-hidden",mode:"boolean"})],ry.prototype,"underlineHidden",void 0),e([ne],ry.prototype,"hreflang",void 0),e([ne],ry.prototype,"ping",void 0),e([ne],ry.prototype,"referrerpolicy",void 0),e([ne],ry.prototype,"rel",void 0),e([ne],ry.prototype,"target",void 0),e([ne],ry.prototype,"type",void 0),e([ne],ry.prototype,"download",void 0)
6444
- const ay=ry.compose({baseName:"table-column-anchor",template:Ux,styles:Zx})
6445
- ai.getOrCreate().withPrefix("nimble").register(ay()),ai.tagFor(ry)
6446
- class ly extends(Wx(Gx(jw))){fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder??""}}}e([ne({attribute:"field-name"})],ly.prototype,"fieldName",void 0),e([ne],ly.prototype,"placeholder",void 0)
6447
- const cy=G`
6463
+ class ay extends ny{columnConfigChanged(){this.placeholder=this.columnConfig?.placeholder??""}groupHeaderValueChanged(){"string"==typeof this.groupHeaderValue?(this.text=this.groupHeaderValue,this.shouldUsePlaceholder=!1):(this.text="",this.shouldUsePlaceholder=!0)}}const ly=ay.compose({baseName:"table-column-text-group-header",template:sy,styles:ry})
6464
+ ai.getOrCreate().withPrefix("nimble").register(ly())
6465
+ const cy=ai.tagFor(ay)
6466
+ class dy extends(Qx(Yx(Kw))){constructor(){super(...arguments),this.underlineHidden=!1}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:iy,groupHeaderViewTag:cy,delegatedEvents:["click"],sortOperation:Zw}}labelFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName],this.columnInternals.operandDataRecordFieldName=this.labelFieldName}hrefFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName]}placeholderChanged(){this.updateColumnConfig()}appearanceChanged(){this.updateColumnConfig()}underlineHiddenChanged(){this.updateColumnConfig()}hreflangChanged(){this.updateColumnConfig()}pingChanged(){this.updateColumnConfig()}referrerpolicyChanged(){this.updateColumnConfig()}relChanged(){this.updateColumnConfig()}targetChanged(){this.updateColumnConfig()}typeChanged(){this.updateColumnConfig()}downloadChanged(){this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.columnConfig={placeholder:this.placeholder??"",appearance:this.appearance,underlineHidden:this.underlineHidden,hreflang:this.hreflang,ping:this.ping,referrerpolicy:this.referrerpolicy,rel:this.rel,target:this.target,type:this.type,download:this.download}}}e([ne({attribute:"label-field-name"})],dy.prototype,"labelFieldName",void 0),e([ne({attribute:"href-field-name"})],dy.prototype,"hrefFieldName",void 0),e([ne],dy.prototype,"placeholder",void 0),e([ne],dy.prototype,"appearance",void 0),e([ne({attribute:"underline-hidden",mode:"boolean"})],dy.prototype,"underlineHidden",void 0),e([ne],dy.prototype,"hreflang",void 0),e([ne],dy.prototype,"ping",void 0),e([ne],dy.prototype,"referrerpolicy",void 0),e([ne],dy.prototype,"rel",void 0),e([ne],dy.prototype,"target",void 0),e([ne],dy.prototype,"type",void 0),e([ne],dy.prototype,"download",void 0)
6467
+ const hy=dy.compose({baseName:"table-column-anchor",template:Xx,styles:Gx})
6468
+ ai.getOrCreate().withPrefix("nimble").register(hy()),ai.tagFor(dy)
6469
+ class uy extends(Qx(Yx(Kw))){fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder??""}}}e([ne({attribute:"field-name"})],uy.prototype,"fieldName",void 0),e([ne],uy.prototype,"placeholder",void 0)
6470
+ const py=G`
6448
6471
  <span
6449
- ${jx("hasOverflow")}
6472
+ ${Kx("hasOverflow")}
6450
6473
  class="${e=>e.shouldUsePlaceholder?"placeholder":""}"
6451
6474
  title=${e=>e.hasOverflow&&e.content?e.content:null}
6452
6475
  >
6453
6476
  ${e=>e.content}
6454
6477
  </span>
6455
- `,dy=fe`
6478
+ `,gy=fe`
6456
6479
  span {
6457
6480
  font: ${Sl};
6458
6481
  color: ${_l};
@@ -6465,13 +6488,13 @@ const cy=G`
6465
6488
  color: ${Nl};
6466
6489
  }
6467
6490
  `
6468
- class hy extends Nw{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.placeholder="",this.shouldUsePlaceholder=!0}get content(){return this.shouldUsePlaceholder?this.placeholder:this.text}}e([m],hy.prototype,"hasOverflow",void 0),e([m],hy.prototype,"text",void 0),e([m],hy.prototype,"placeholder",void 0),e([m],hy.prototype,"shouldUsePlaceholder",void 0),e([f],hy.prototype,"content",null)
6469
- class uy extends hy{columnConfigChanged(){this.placeholder=this.columnConfig.placeholder}cellRecordChanged(){"string"==typeof this.cellRecord.value?(this.text=this.cellRecord.value,this.shouldUsePlaceholder=!1):(this.text="",this.shouldUsePlaceholder=!0)}}const py=uy.compose({baseName:"table-column-text-cell-view",template:cy,styles:dy})
6470
- ai.getOrCreate().withPrefix("nimble").register(py())
6471
- const gy=ai.tagFor(uy)
6472
- class vy extends ly{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:gy,groupHeaderViewTag:sy,delegatedEvents:[],sortOperation:Lw}}}const my=vy.compose({baseName:"table-column-text",template:Ux,styles:Zx})
6473
- ai.getOrCreate().withPrefix("nimble").register(my()),ai.tagFor(vy)
6474
- const fy=fe`
6491
+ class vy extends Uw{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.placeholder="",this.shouldUsePlaceholder=!0}get content(){return this.shouldUsePlaceholder?this.placeholder:this.text}}e([m],vy.prototype,"hasOverflow",void 0),e([m],vy.prototype,"text",void 0),e([m],vy.prototype,"placeholder",void 0),e([m],vy.prototype,"shouldUsePlaceholder",void 0),e([f],vy.prototype,"content",null)
6492
+ class my extends vy{columnConfigChanged(){this.placeholder=this.columnConfig.placeholder}cellRecordChanged(){"string"==typeof this.cellRecord.value?(this.text=this.cellRecord.value,this.shouldUsePlaceholder=!1):(this.text="",this.shouldUsePlaceholder=!0)}}const fy=my.compose({baseName:"table-column-text-cell-view",template:py,styles:gy})
6493
+ ai.getOrCreate().withPrefix("nimble").register(fy())
6494
+ const by=ai.tagFor(my)
6495
+ class wy extends uy{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:by,groupHeaderViewTag:cy,delegatedEvents:[],sortOperation:Zw}}}const xy=wy.compose({baseName:"table-column-text",template:Xx,styles:Gx})
6496
+ ai.getOrCreate().withPrefix("nimble").register(xy()),ai.tagFor(wy)
6497
+ const yy=fe`
6475
6498
  ${xn("grid")}
6476
6499
 
6477
6500
  :host {
@@ -6480,6 +6503,10 @@ const fy=fe`
6480
6503
  grid-template-rows: auto 1fr;
6481
6504
  }
6482
6505
 
6506
+ [part='start'] {
6507
+ display: none;
6508
+ }
6509
+
6483
6510
  .tablist {
6484
6511
  display: grid;
6485
6512
  grid-template-rows: auto auto;
@@ -6495,7 +6522,7 @@ const fy=fe`
6495
6522
  overflow: auto;
6496
6523
  }
6497
6524
  `
6498
- class by extends Gi{constructor(){super(),this.activeindicator=!1}}const wy=by.compose({baseName:"tabs",baseClass:Gi,template:(e,t)=>G`
6525
+ class $y extends Gi{constructor(){super(),this.activeindicator=!1}}const Cy=$y.compose({baseName:"tabs",baseClass:Gi,template:(e,t)=>G`
6499
6526
  <template class="${e=>e.orientation}">
6500
6527
  ${qe(0,t)}
6501
6528
  <div class="tablist" part="tablist" role="tablist">
@@ -6514,9 +6541,9 @@ class by extends Gi{constructor(){super(),this.activeindicator=!1}}const wy=by.c
6514
6541
  <slot name="tabpanel" part="tabpanel" ${Le("tabpanels")}></slot>
6515
6542
  </div>
6516
6543
  </template>
6517
- `,styles:fy})
6518
- ai.getOrCreate().withPrefix("nimble").register(wy()),ai.tagFor(by)
6519
- const xy=fe`
6544
+ `,styles:yy})
6545
+ ai.getOrCreate().withPrefix("nimble").register(Cy()),ai.tagFor($y)
6546
+ const ky=fe`
6520
6547
  ${xn("flex")}
6521
6548
 
6522
6549
  :host {
@@ -6534,15 +6561,15 @@ const xy=fe`
6534
6561
  rgba(${Xr}, 0.3);
6535
6562
  margin: calc(${la} / 4) calc(${la} / 2);
6536
6563
  }
6537
- `,yy=G`
6564
+ `,Sy=G`
6538
6565
  <template slot="end">
6539
6566
  <div class="separator"></div>
6540
6567
  <slot></slot>
6541
6568
  </template>
6542
6569
  `
6543
- class $y extends Rt{}const Cy=$y.compose({baseName:"tabs-toolbar",template:yy,styles:xy})
6544
- ai.getOrCreate().withPrefix("nimble").register(Cy()),ai.tagFor($y)
6545
- const ky="outline",Sy="block",_y=fe`
6570
+ class _y extends Rt{}const Iy=_y.compose({baseName:"tabs-toolbar",template:Sy,styles:ky})
6571
+ ai.getOrCreate().withPrefix("nimble").register(Iy()),ai.tagFor(_y)
6572
+ const Ry="outline",My="block",Ay=fe`
6546
6573
  ${xn("inline-flex")}
6547
6574
  ${bg}
6548
6575
 
@@ -6682,12 +6709,12 @@ const ky="outline",Sy="block",_y=fe`
6682
6709
  top: calc(${la} / 2);
6683
6710
  right: var(--ni-private-scrollbar-width);
6684
6711
  }
6685
- `.withBehaviors(Uc(ky,fe`
6712
+ `.withBehaviors(Uc(Ry,fe`
6686
6713
  .control {
6687
6714
  border-color: rgba(${Xr}, 0.3);
6688
6715
  background-color: transparent;
6689
6716
  }
6690
- `),Uc(Sy,fe`
6717
+ `),Uc(My,fe`
6691
6718
  .control {
6692
6719
  background-color: rgba(${Xr}, 0.1);
6693
6720
  }
@@ -6705,8 +6732,8 @@ const ky="outline",Sy="block",_y=fe`
6705
6732
  border-bottom-color: ${Yr};
6706
6733
  }
6707
6734
  `))
6708
- class Iy extends Yi{constructor(){super(...arguments),this.appearance=ky,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(e,t){super.valueChanged(e,t),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}e([ne],Iy.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Iy.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Iy.prototype,"errorVisible",void 0),e([m],Iy.prototype,"scrollbarWidth",void 0)
6709
- const Ry=Iy.compose({baseName:"text-area",baseClass:Yi,template:()=>G`
6735
+ class Ey extends Yi{constructor(){super(...arguments),this.appearance=Ry,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(e,t){super.valueChanged(e,t),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}e([ne],Ey.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Ey.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Ey.prototype,"errorVisible",void 0),e([m],Ey.prototype,"scrollbarWidth",void 0)
6736
+ const Oy=Ey.compose({baseName:"text-area",baseClass:Yi,template:()=>G`
6710
6737
  <label
6711
6738
  part="label"
6712
6739
  for="control"
@@ -6763,9 +6790,9 @@ const Ry=Iy.compose({baseName:"text-area",baseClass:Yi,template:()=>G`
6763
6790
  ></${Ap}>
6764
6791
  ${dg}
6765
6792
  </div>
6766
- `,styles:_y,shadowOptions:{delegatesFocus:!0}})
6767
- ai.getOrCreate().withPrefix("nimble").register(Ry()),ai.tagFor(Iy)
6768
- const My="underline",Ay="outline",Ey="block",Oy="frameless",Fy=fe`
6793
+ `,styles:Ay,shadowOptions:{delegatesFocus:!0}})
6794
+ ai.getOrCreate().withPrefix("nimble").register(Oy()),ai.tagFor(Ey)
6795
+ const Fy="underline",Vy="outline",Hy="block",Py="frameless",Ty=fe`
6769
6796
  ${xn("inline-block")}
6770
6797
  ${bg}
6771
6798
 
@@ -6936,12 +6963,12 @@ const My="underline",Ay="outline",Ey="block",Oy="frameless",Fy=fe`
6936
6963
  slot[name='actions']::slotted(*) {
6937
6964
  ${sa.cssCustomProperty}: 24px;
6938
6965
  }
6939
- `.withBehaviors(Uc(My,fe`
6966
+ `.withBehaviors(Uc(Fy,fe`
6940
6967
  .root {
6941
6968
  border-bottom-width: ${ca};
6942
6969
  padding-bottom: 0;
6943
6970
  }
6944
- `),Uc(Ey,fe`
6971
+ `),Uc(Hy,fe`
6945
6972
  .root {
6946
6973
  background-color: rgba(${Xr}, 0.1);
6947
6974
  }
@@ -6969,12 +6996,12 @@ const My="underline",Ay="outline",Ey="block",Oy="frameless",Fy=fe`
6969
6996
  :host([disabled]) .root {
6970
6997
  background-color: rgba(${Xr}, 0.07);
6971
6998
  }
6972
- `),Uc(Ay,fe`
6999
+ `),Uc(Vy,fe`
6973
7000
  .root {
6974
7001
  border-width: ${ca};
6975
7002
  padding: 0;
6976
7003
  }
6977
- `),Uc(Oy,fe`
7004
+ `),Uc(Py,fe`
6978
7005
  .control {
6979
7006
  padding-left: ${ca};
6980
7007
  padding-right: ${ca};
@@ -6992,8 +7019,8 @@ const My="underline",Ay="outline",Ey="block",Oy="frameless",Fy=fe`
6992
7019
  filter: invert(100%);
6993
7020
  }
6994
7021
  `))
6995
- class Vy extends Ii{constructor(){super(...arguments),this.appearance=My,this.errorVisible=!1,this.fullBleed=!1}}e([ne],Vy.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Vy.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Vy.prototype,"errorVisible",void 0),e([ne({attribute:"full-bleed",mode:"boolean"})],Vy.prototype,"fullBleed",void 0)
6996
- const Hy=Vy.compose({baseName:"text-field",baseClass:Ii,template:(e,t)=>G`
7022
+ class Dy extends Ii{constructor(){super(...arguments),this.appearance=Fy,this.errorVisible=!1,this.fullBleed=!1}}e([ne],Dy.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Dy.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Dy.prototype,"errorVisible",void 0),e([ne({attribute:"full-bleed",mode:"boolean"})],Dy.prototype,"fullBleed",void 0)
7023
+ const Ly=Dy.compose({baseName:"text-field",baseClass:Ii,template:(e,t)=>G`
6997
7024
  <template
6998
7025
  class="
6999
7026
  ${e=>e.readOnly?"readonly":""}
@@ -7053,7 +7080,7 @@ const Hy=Vy.compose({baseName:"text-field",baseClass:Ii,template:(e,t)=>G`
7053
7080
  ${Ze(0,t)}
7054
7081
  </div>
7055
7082
  </template>
7056
- `,styles:Fy,shadowOptions:{delegatesFocus:!0},end:G`
7083
+ `,styles:Ty,shadowOptions:{delegatesFocus:!0},end:G`
7057
7084
  <${Ap}
7058
7085
  severity="error"
7059
7086
  class="error-icon"
@@ -7063,8 +7090,8 @@ const Hy=Vy.compose({baseName:"text-field",baseClass:Ii,template:(e,t)=>G`
7063
7090
  </span>
7064
7091
  ${dg}
7065
7092
  `})
7066
- ai.getOrCreate().withPrefix("nimble").register(Hy()),ai.tagFor(Vy)
7067
- const Py=fe`
7093
+ ai.getOrCreate().withPrefix("nimble").register(Ly()),ai.tagFor(Dy)
7094
+ const zy=fe`
7068
7095
  .positioning-region {
7069
7096
  display: flex;
7070
7097
  padding: ${aa} ${la};
@@ -7089,7 +7116,7 @@ const Py=fe`
7089
7116
  margin-left: auto;
7090
7117
  }
7091
7118
  `
7092
- class Ty extends Ji{}const Dy=Ty.compose({baseName:"toolbar",baseClass:Ji,template:(e,t)=>G`
7119
+ class By extends Ji{}const Ny=By.compose({baseName:"toolbar",baseClass:Ji,template:(e,t)=>G`
7093
7120
  <template
7094
7121
  aria-label="${e=>e.ariaLabel}"
7095
7122
  aria-labelledby="${e=>e.ariaLabelledby}"
@@ -7110,9 +7137,9 @@ class Ty extends Ji{}const Dy=Ty.compose({baseName:"toolbar",baseClass:Ji,templa
7110
7137
  ${Ze(0,t)}
7111
7138
  </div>
7112
7139
  </template>
7113
- `,styles:Py,shadowOptions:{delegatesFocus:!0}})
7114
- ai.getOrCreate().withPrefix("nimble").register(Dy()),ai.tagFor(Ty)
7115
- const Ly=fe`
7140
+ `,styles:zy,shadowOptions:{delegatesFocus:!0}})
7141
+ ai.getOrCreate().withPrefix("nimble").register(Ny()),ai.tagFor(By)
7142
+ const Zy=fe`
7116
7143
  ${xn("inline-flex")}
7117
7144
 
7118
7145
  :host {
@@ -7197,7 +7224,7 @@ const Ly=fe`
7197
7224
  .status-icon {
7198
7225
  opacity: 0.6;
7199
7226
  }
7200
- `)),zy=G`
7227
+ `)),qy=G`
7201
7228
  ${Me((e=>e.tooltipVisible),G`
7202
7229
  <${md}
7203
7230
  class="anchored-region"
@@ -7230,11 +7257,11 @@ const Ly=fe`
7230
7257
  </${md}>
7231
7258
  `)}
7232
7259
  `
7233
- class By extends mn{constructor(){super(...arguments),this.iconVisible=!1}}e([ne],By.prototype,"severity",void 0),e([ne({attribute:"icon-visible",mode:"boolean"})],By.prototype,"iconVisible",void 0)
7234
- const Ny=By.compose({baseName:"tooltip",baseClass:mn,template:zy,styles:Ly})
7235
- ai.getOrCreate().withPrefix("nimble").register(Ny()),ai.tagFor(By)
7236
- const Zy="group-selected",qy="all",jy="leaves-only",Uy="none"
7237
- class Gy{constructor(e,t,o){this.ltr=e,this.rtl=t,this.source=o,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const Wy=fe`
7260
+ class jy extends mn{constructor(){super(...arguments),this.iconVisible=!1}}e([ne],jy.prototype,"severity",void 0),e([ne({attribute:"icon-visible",mode:"boolean"})],jy.prototype,"iconVisible",void 0)
7261
+ const Uy=jy.compose({baseName:"tooltip",baseClass:mn,template:qy,styles:Zy})
7262
+ ai.getOrCreate().withPrefix("nimble").register(Uy()),ai.tagFor(jy)
7263
+ const Gy="group-selected",Wy="all",Ky="leaves-only",Xy="none"
7264
+ class Yy{constructor(e,t,o){this.ltr=e,this.rtl=t,this.source=o,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const Qy=fe`
7238
7265
  ${xn("block")}
7239
7266
 
7240
7267
  :host {
@@ -7250,7 +7277,7 @@ class Gy{constructor(e,t,o){this.ltr=e,this.rtl=t,this.source=o,this.attached=nu
7250
7277
  }
7251
7278
 
7252
7279
  ${""}
7253
- :host([${Zy}])::after {
7280
+ :host([${Gy}])::after {
7254
7281
  background: ${ta};
7255
7282
  border-radius: 0px;
7256
7283
  content: '';
@@ -7272,7 +7299,7 @@ class Gy{constructor(e,t,o){this.ltr=e,this.rtl=t,this.source=o,this.attached=nu
7272
7299
  background: ${Wr};
7273
7300
  }
7274
7301
 
7275
- :host([${Zy}]) .positioning-region:hover {
7302
+ :host([${Gy}]) .positioning-region:hover {
7276
7303
  background: ${Gr};
7277
7304
  }
7278
7305
 
@@ -7342,7 +7369,7 @@ class Gy{constructor(e,t,o){this.ltr=e,this.rtl=t,this.source=o,this.attached=nu
7342
7369
  }
7343
7370
 
7344
7371
  ${""}
7345
- span[part="start"] {
7372
+ [part="start"] {
7346
7373
  width: ${da};
7347
7374
  }
7348
7375
 
@@ -7366,11 +7393,8 @@ class Gy{constructor(e,t,o){this.ltr=e,this.rtl=t,this.source=o,this.attached=nu
7366
7393
  );
7367
7394
  }
7368
7395
 
7369
- ${""}
7370
- .end {
7371
- display: flex;
7372
- fill: currentcolor;
7373
- margin-inline-start: ${da};
7396
+ [part='end'] {
7397
+ display: none;
7374
7398
  }
7375
7399
 
7376
7400
  .items {
@@ -7383,7 +7407,7 @@ class Gy{constructor(e,t,o){this.ltr=e,this.rtl=t,this.source=o,this.attached=nu
7383
7407
  display: block;
7384
7408
  }
7385
7409
  `.withBehaviors(new class{constructor(e,t){this.cache=new WeakMap,this.ltr=e,this.rtl=t}bind(e){this.attach(e)}unbind(e){const t=this.cache.get(e)
7386
- t&&Dr.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new Gy(this.ltr,this.rtl,e),o=Dr.getValueFor(e)
7410
+ t&&Dr.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new Yy(this.ltr,this.rtl,e),o=Dr.getValueFor(e)
7387
7411
  Dr.subscribe(t),t.attach(o),this.cache.set(e,t)}}(fe`
7388
7412
  .expand-collapse-button {
7389
7413
  left: var(
@@ -7415,8 +7439,8 @@ Dr.subscribe(t),t.attach(o),this.cache.set(e,t)}}(fe`
7415
7439
  transform: rotate(135deg);
7416
7440
  }
7417
7441
  `))
7418
- class Ky extends bn{constructor(){super(...arguments),this.groupSelected=!1}}e([ne({attribute:"group-selected",mode:"boolean"})],Ky.prototype,"groupSelected",void 0)
7419
- const Xy=Ky.compose({baseName:"tree-item",baseClass:bn,template:(e,t)=>G`
7442
+ class Jy extends bn{constructor(){super(...arguments),this.groupSelected=!1}}e([ne({attribute:"group-selected",mode:"boolean"})],Jy.prototype,"groupSelected",void 0)
7443
+ const e$=Jy.compose({baseName:"tree-item",baseClass:bn,template:(e,t)=>G`
7420
7444
  <template
7421
7445
  role="treeitem"
7422
7446
  slot="${e=>e.isNestedItem()?"item":void 0}"
@@ -7456,9 +7480,9 @@ const Xy=Ky.compose({baseName:"tree-item",baseClass:bn,template:(e,t)=>G`
7456
7480
  </div>
7457
7481
  `)}
7458
7482
  </template>
7459
- `,styles:Wy,expandCollapseGlyph:Ed.data})
7460
- ai.getOrCreate().withPrefix("nimble").register(Xy()),ai.tagFor(Ky)
7461
- const Yy=fe`
7483
+ `,styles:Qy,expandCollapseGlyph:Ed.data})
7484
+ ai.getOrCreate().withPrefix("nimble").register(e$()),ai.tagFor(Jy)
7485
+ const t$=fe`
7462
7486
  ${xn("flex")}
7463
7487
 
7464
7488
  :host {
@@ -7470,7 +7494,7 @@ const Yy=fe`
7470
7494
  :host(${Cn}) {
7471
7495
  outline: none;
7472
7496
  }
7473
- `,Qy=G`
7497
+ `,o$=G`
7474
7498
  <template
7475
7499
  role="tree"
7476
7500
  ${Re("treeView")}
@@ -7484,273 +7508,273 @@ const Yy=fe`
7484
7508
  <slot ${Le("slottedTreeItems")}></slot>
7485
7509
  </template>
7486
7510
  `
7487
- class Jy extends wn{constructor(){super(...arguments),this.selectionMode=qy,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
7511
+ class i$ extends wn{constructor(){super(...arguments),this.selectionMode=Wy,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
7488
7512
  if(!(e.target instanceof Element&&fn(e.target)))return!0
7489
7513
  const t=e.target
7490
- return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case qy:return!0
7491
- case Uy:return!1
7492
- case jy:return!this.itemHasChildren(e)
7493
- default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof Ky&&(e.groupSelected=!1)
7514
+ return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case Wy:return!0
7515
+ case Xy:return!1
7516
+ case Ky:return!this.itemHasChildren(e)
7517
+ default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof Jy&&(e.groupSelected=!1)
7494
7518
  for(let e of this.selectedItems){for(;null!==e.parentElement&&e.parentElement!==this;)e=e.parentElement
7495
- e instanceof Ky&&(e.groupSelected=!0)}}}e([ne({attribute:"selection-mode"})],Jy.prototype,"selectionMode",void 0),e([m],Jy.prototype,"selectedItems",void 0)
7496
- const e$=Jy.compose({baseName:"tree-view",baseClass:wn,template:Qy,styles:Yy})
7497
- ai.getOrCreate().withPrefix("nimble").register(e$()),ai.tagFor(Jy)
7498
- var t$={value:()=>{}}
7499
- function o$(){for(var e,t=0,o=arguments.length,i={};t<o;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e)
7500
- i[e]=[]}return new i$(i)}function i$(e){this._=e}function n$(e,t){return e.trim().split(/^|\s+/).map((function(e){var o="",i=e.indexOf(".")
7519
+ e instanceof Jy&&(e.groupSelected=!0)}}}e([ne({attribute:"selection-mode"})],i$.prototype,"selectionMode",void 0),e([m],i$.prototype,"selectedItems",void 0)
7520
+ const n$=i$.compose({baseName:"tree-view",baseClass:wn,template:o$,styles:t$})
7521
+ ai.getOrCreate().withPrefix("nimble").register(n$()),ai.tagFor(i$)
7522
+ var s$={value:()=>{}}
7523
+ function r$(){for(var e,t=0,o=arguments.length,i={};t<o;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e)
7524
+ i[e]=[]}return new a$(i)}function a$(e){this._=e}function l$(e,t){return e.trim().split(/^|\s+/).map((function(e){var o="",i=e.indexOf(".")
7501
7525
  if(i>=0&&(o=e.slice(i+1),e=e.slice(0,i)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e)
7502
- return{type:e,name:o}}))}function s$(e,t){for(var o,i=0,n=e.length;i<n;++i)if((o=e[i]).name===t)return o.value}function r$(e,t,o){for(var i=0,n=e.length;i<n;++i)if(e[i].name===t){e[i]=t$,e=e.slice(0,i).concat(e.slice(i+1))
7503
- break}return null!=o&&e.push({name:t,value:o}),e}i$.prototype=o$.prototype={constructor:i$,on:function(e,t){var o,i=this._,n=n$(e+"",i),s=-1,r=n.length
7526
+ return{type:e,name:o}}))}function c$(e,t){for(var o,i=0,n=e.length;i<n;++i)if((o=e[i]).name===t)return o.value}function d$(e,t,o){for(var i=0,n=e.length;i<n;++i)if(e[i].name===t){e[i]=s$,e=e.slice(0,i).concat(e.slice(i+1))
7527
+ break}return null!=o&&e.push({name:t,value:o}),e}a$.prototype=r$.prototype={constructor:a$,on:function(e,t){var o,i=this._,n=l$(e+"",i),s=-1,r=n.length
7504
7528
  if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
7505
- for(;++s<r;)if(o=(e=n[s]).type)i[o]=r$(i[o],e.name,t)
7506
- else if(null==t)for(o in i)i[o]=r$(i[o],e.name,null)
7507
- return this}for(;++s<r;)if((o=(e=n[s]).type)&&(o=s$(i[o],e.name)))return o},copy:function(){var e={},t=this._
7529
+ for(;++s<r;)if(o=(e=n[s]).type)i[o]=d$(i[o],e.name,t)
7530
+ else if(null==t)for(o in i)i[o]=d$(i[o],e.name,null)
7531
+ return this}for(;++s<r;)if((o=(e=n[s]).type)&&(o=c$(i[o],e.name)))return o},copy:function(){var e={},t=this._
7508
7532
  for(var o in t)e[o]=t[o].slice()
7509
- return new i$(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var o,i,n=new Array(o),s=0;s<o;++s)n[s]=arguments[s+2]
7533
+ return new a$(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var o,i,n=new Array(o),s=0;s<o;++s)n[s]=arguments[s+2]
7510
7534
  if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
7511
7535
  for(s=0,o=(i=this._[e]).length;s<o;++s)i[s].value.apply(t,n)},apply:function(e,t,o){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
7512
7536
  for(var i=this._[e],n=0,s=i.length;n<s;++n)i[n].value.apply(t,o)}}
7513
- var a$="http://www.w3.org/1999/xhtml",l$={svg:"http://www.w3.org/2000/svg",xhtml:a$,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
7514
- function c$(e){var t=e+="",o=t.indexOf(":")
7515
- return o>=0&&"xmlns"!==(t=e.slice(0,o))&&(e=e.slice(o+1)),l$.hasOwnProperty(t)?{space:l$[t],local:e}:e}function d$(e){return function(){var t=this.ownerDocument,o=this.namespaceURI
7516
- return o===a$&&t.documentElement.namespaceURI===a$?t.createElement(e):t.createElementNS(o,e)}}function h$(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function u$(e){var t=c$(e)
7517
- return(t.local?h$:d$)(t)}function p$(){}function g$(e){return null==e?p$:function(){return this.querySelector(e)}}function v$(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function m$(){return[]}function f$(e){return null==e?m$:function(){return this.querySelectorAll(e)}}function b$(e){return function(){return this.matches(e)}}function w$(e){return function(t){return t.matches(e)}}var x$=Array.prototype.find
7518
- function y$(){return this.firstElementChild}var $$=Array.prototype.filter
7519
- function C$(){return Array.from(this.children)}function k$(e){return new Array(e.length)}function S$(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function _$(e){return function(){return e}}function I$(e,t,o,i,n,s){for(var r,a=0,l=t.length,c=s.length;a<c;++a)(r=t[a])?(r.__data__=s[a],i[a]=r):o[a]=new S$(e,s[a])
7520
- for(;a<l;++a)(r=t[a])&&(n[a]=r)}function R$(e,t,o,i,n,s,r){var a,l,c,d=new Map,h=t.length,u=s.length,p=new Array(h)
7537
+ var h$="http://www.w3.org/1999/xhtml",u$={svg:"http://www.w3.org/2000/svg",xhtml:h$,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
7538
+ function p$(e){var t=e+="",o=t.indexOf(":")
7539
+ return o>=0&&"xmlns"!==(t=e.slice(0,o))&&(e=e.slice(o+1)),u$.hasOwnProperty(t)?{space:u$[t],local:e}:e}function g$(e){return function(){var t=this.ownerDocument,o=this.namespaceURI
7540
+ return o===h$&&t.documentElement.namespaceURI===h$?t.createElement(e):t.createElementNS(o,e)}}function v$(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function m$(e){var t=p$(e)
7541
+ return(t.local?v$:g$)(t)}function f$(){}function b$(e){return null==e?f$:function(){return this.querySelector(e)}}function w$(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function x$(){return[]}function y$(e){return null==e?x$:function(){return this.querySelectorAll(e)}}function $$(e){return function(){return this.matches(e)}}function C$(e){return function(t){return t.matches(e)}}var k$=Array.prototype.find
7542
+ function S$(){return this.firstElementChild}var _$=Array.prototype.filter
7543
+ function I$(){return Array.from(this.children)}function R$(e){return new Array(e.length)}function M$(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function A$(e){return function(){return e}}function E$(e,t,o,i,n,s){for(var r,a=0,l=t.length,c=s.length;a<c;++a)(r=t[a])?(r.__data__=s[a],i[a]=r):o[a]=new M$(e,s[a])
7544
+ for(;a<l;++a)(r=t[a])&&(n[a]=r)}function O$(e,t,o,i,n,s,r){var a,l,c,d=new Map,h=t.length,u=s.length,p=new Array(h)
7521
7545
  for(a=0;a<h;++a)(l=t[a])&&(p[a]=c=r.call(l,l.__data__,a,t)+"",d.has(c)?n[a]=l:d.set(c,l))
7522
- for(a=0;a<u;++a)c=r.call(e,s[a],a,s)+"",(l=d.get(c))?(i[a]=l,l.__data__=s[a],d.delete(c)):o[a]=new S$(e,s[a])
7523
- for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(n[a]=l)}function M$(e){return e.__data__}function A$(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function E$(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function O$(e){return function(){this.removeAttribute(e)}}function F$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function V$(e,t){return function(){this.setAttribute(e,t)}}function H$(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function P$(e,t){return function(){var o=t.apply(this,arguments)
7524
- null==o?this.removeAttribute(e):this.setAttribute(e,o)}}function T$(e,t){return function(){var o=t.apply(this,arguments)
7525
- null==o?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,o)}}function D$(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function L$(e){return function(){this.style.removeProperty(e)}}function z$(e,t,o){return function(){this.style.setProperty(e,t,o)}}function B$(e,t,o){return function(){var i=t.apply(this,arguments)
7526
- null==i?this.style.removeProperty(e):this.style.setProperty(e,i,o)}}function N$(e,t){return e.style.getPropertyValue(t)||D$(e).getComputedStyle(e,null).getPropertyValue(t)}function Z$(e){return function(){delete this[e]}}function q$(e,t){return function(){this[e]=t}}function j$(e,t){return function(){var o=t.apply(this,arguments)
7527
- null==o?delete this[e]:this[e]=o}}function U$(e){return e.trim().split(/^|\s+/)}function G$(e){return e.classList||new W$(e)}function W$(e){this._node=e,this._names=U$(e.getAttribute("class")||"")}function K$(e,t){for(var o=G$(e),i=-1,n=t.length;++i<n;)o.add(t[i])}function X$(e,t){for(var o=G$(e),i=-1,n=t.length;++i<n;)o.remove(t[i])}function Y$(e){return function(){K$(this,e)}}function Q$(e){return function(){X$(this,e)}}function J$(e,t){return function(){(t.apply(this,arguments)?K$:X$)(this,e)}}function eC(){this.textContent=""}function tC(e){return function(){this.textContent=e}}function oC(e){return function(){var t=e.apply(this,arguments)
7528
- this.textContent=null==t?"":t}}function iC(){this.innerHTML=""}function nC(e){return function(){this.innerHTML=e}}function sC(e){return function(){var t=e.apply(this,arguments)
7529
- this.innerHTML=null==t?"":t}}function rC(){this.nextSibling&&this.parentNode.appendChild(this)}function aC(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function lC(){return null}function cC(){var e=this.parentNode
7530
- e&&e.removeChild(this)}function dC(){var e=this.cloneNode(!1),t=this.parentNode
7531
- return t?t.insertBefore(e,this.nextSibling):e}function hC(){var e=this.cloneNode(!0),t=this.parentNode
7532
- return t?t.insertBefore(e,this.nextSibling):e}function uC(e){return e.trim().split(/^|\s+/).map((function(e){var t="",o=e.indexOf(".")
7533
- return o>=0&&(t=e.slice(o+1),e=e.slice(0,o)),{type:e,name:t}}))}function pC(e){return function(){var t=this.__on
7534
- if(t){for(var o,i=0,n=-1,s=t.length;i<s;++i)o=t[i],e.type&&o.type!==e.type||o.name!==e.name?t[++n]=o:this.removeEventListener(o.type,o.listener,o.options);++n?t.length=n:delete this.__on}}}function gC(e,t,o){return function(){var i,n=this.__on,s=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
7546
+ for(a=0;a<u;++a)c=r.call(e,s[a],a,s)+"",(l=d.get(c))?(i[a]=l,l.__data__=s[a],d.delete(c)):o[a]=new M$(e,s[a])
7547
+ for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(n[a]=l)}function F$(e){return e.__data__}function V$(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function H$(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function P$(e){return function(){this.removeAttribute(e)}}function T$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function D$(e,t){return function(){this.setAttribute(e,t)}}function L$(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function z$(e,t){return function(){var o=t.apply(this,arguments)
7548
+ null==o?this.removeAttribute(e):this.setAttribute(e,o)}}function B$(e,t){return function(){var o=t.apply(this,arguments)
7549
+ null==o?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,o)}}function N$(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Z$(e){return function(){this.style.removeProperty(e)}}function q$(e,t,o){return function(){this.style.setProperty(e,t,o)}}function j$(e,t,o){return function(){var i=t.apply(this,arguments)
7550
+ null==i?this.style.removeProperty(e):this.style.setProperty(e,i,o)}}function U$(e,t){return e.style.getPropertyValue(t)||N$(e).getComputedStyle(e,null).getPropertyValue(t)}function G$(e){return function(){delete this[e]}}function W$(e,t){return function(){this[e]=t}}function K$(e,t){return function(){var o=t.apply(this,arguments)
7551
+ null==o?delete this[e]:this[e]=o}}function X$(e){return e.trim().split(/^|\s+/)}function Y$(e){return e.classList||new Q$(e)}function Q$(e){this._node=e,this._names=X$(e.getAttribute("class")||"")}function J$(e,t){for(var o=Y$(e),i=-1,n=t.length;++i<n;)o.add(t[i])}function eC(e,t){for(var o=Y$(e),i=-1,n=t.length;++i<n;)o.remove(t[i])}function tC(e){return function(){J$(this,e)}}function oC(e){return function(){eC(this,e)}}function iC(e,t){return function(){(t.apply(this,arguments)?J$:eC)(this,e)}}function nC(){this.textContent=""}function sC(e){return function(){this.textContent=e}}function rC(e){return function(){var t=e.apply(this,arguments)
7552
+ this.textContent=null==t?"":t}}function aC(){this.innerHTML=""}function lC(e){return function(){this.innerHTML=e}}function cC(e){return function(){var t=e.apply(this,arguments)
7553
+ this.innerHTML=null==t?"":t}}function dC(){this.nextSibling&&this.parentNode.appendChild(this)}function hC(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function uC(){return null}function pC(){var e=this.parentNode
7554
+ e&&e.removeChild(this)}function gC(){var e=this.cloneNode(!1),t=this.parentNode
7555
+ return t?t.insertBefore(e,this.nextSibling):e}function vC(){var e=this.cloneNode(!0),t=this.parentNode
7556
+ return t?t.insertBefore(e,this.nextSibling):e}function mC(e){return e.trim().split(/^|\s+/).map((function(e){var t="",o=e.indexOf(".")
7557
+ return o>=0&&(t=e.slice(o+1),e=e.slice(0,o)),{type:e,name:t}}))}function fC(e){return function(){var t=this.__on
7558
+ if(t){for(var o,i=0,n=-1,s=t.length;i<s;++i)o=t[i],e.type&&o.type!==e.type||o.name!==e.name?t[++n]=o:this.removeEventListener(o.type,o.listener,o.options);++n?t.length=n:delete this.__on}}}function bC(e,t,o){return function(){var i,n=this.__on,s=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
7535
7559
  if(n)for(var r=0,a=n.length;r<a;++r)if((i=n[r]).type===e.type&&i.name===e.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=o),void(i.value=t)
7536
- this.addEventListener(e.type,s,o),i={type:e.type,name:e.name,value:t,listener:s,options:o},n?n.push(i):this.__on=[i]}}function vC(e,t,o){var i=D$(e),n=i.CustomEvent
7537
- "function"==typeof n?n=new n(t,o):(n=i.document.createEvent("Event"),o?(n.initEvent(t,o.bubbles,o.cancelable),n.detail=o.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function mC(e,t){return function(){return vC(this,e,t)}}function fC(e,t){return function(){return vC(this,e,t.apply(this,arguments))}}S$.prototype={constructor:S$,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},W$.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e)
7560
+ this.addEventListener(e.type,s,o),i={type:e.type,name:e.name,value:t,listener:s,options:o},n?n.push(i):this.__on=[i]}}function wC(e,t,o){var i=N$(e),n=i.CustomEvent
7561
+ "function"==typeof n?n=new n(t,o):(n=i.document.createEvent("Event"),o?(n.initEvent(t,o.bubbles,o.cancelable),n.detail=o.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function xC(e,t){return function(){return wC(this,e,t)}}function yC(e,t){return function(){return wC(this,e,t.apply(this,arguments))}}M$.prototype={constructor:M$,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},Q$.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e)
7538
7562
  t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
7539
- var bC=[null]
7540
- function wC(e,t){this._groups=e,this._parents=t}function xC(){return new wC([[document.documentElement]],bC)}function yC(e){return"string"==typeof e?new wC([[document.querySelector(e)]],[document.documentElement]):new wC([[e]],bC)}function $C(e,t){if(e=function(e){let t
7563
+ var $C=[null]
7564
+ function CC(e,t){this._groups=e,this._parents=t}function kC(){return new CC([[document.documentElement]],$C)}function SC(e){return"string"==typeof e?new CC([[document.querySelector(e)]],[document.documentElement]):new CC([[e]],$C)}function _C(e,t){if(e=function(e){let t
7541
7565
  for(;t=e.sourceEvent;)e=t
7542
7566
  return e}(e),void 0===t&&(t=e.currentTarget),t){var o=t.ownerSVGElement||t
7543
7567
  if(o.createSVGPoint){var i=o.createSVGPoint()
7544
7568
  return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}if(t.getBoundingClientRect){var n=t.getBoundingClientRect()
7545
- return[e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop]}}return[e.pageX,e.pageY]}wC.prototype=xC.prototype={constructor:wC,select:function(e){"function"!=typeof e&&(e=g$(e))
7569
+ return[e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop]}}return[e.pageX,e.pageY]}CC.prototype=kC.prototype={constructor:CC,select:function(e){"function"!=typeof e&&(e=b$(e))
7546
7570
  for(var t=this._groups,o=t.length,i=new Array(o),n=0;n<o;++n)for(var s,r,a=t[n],l=a.length,c=i[n]=new Array(l),d=0;d<l;++d)(s=a[d])&&(r=e.call(s,s.__data__,d,a))&&("__data__"in s&&(r.__data__=s.__data__),c[d]=r)
7547
- return new wC(i,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return v$(e.apply(this,arguments))}}(e):f$(e)
7571
+ return new CC(i,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return w$(e.apply(this,arguments))}}(e):y$(e)
7548
7572
  for(var t=this._groups,o=t.length,i=[],n=[],s=0;s<o;++s)for(var r,a=t[s],l=a.length,c=0;c<l;++c)(r=a[c])&&(i.push(e.call(r,r.__data__,c,a)),n.push(r))
7549
- return new wC(i,n)},selectChild:function(e){return this.select(null==e?y$:function(e){return function(){return x$.call(this.children,e)}}("function"==typeof e?e:w$(e)))},selectChildren:function(e){return this.selectAll(null==e?C$:function(e){return function(){return $$.call(this.children,e)}}("function"==typeof e?e:w$(e)))},filter:function(e){"function"!=typeof e&&(e=b$(e))
7573
+ return new CC(i,n)},selectChild:function(e){return this.select(null==e?S$:function(e){return function(){return k$.call(this.children,e)}}("function"==typeof e?e:C$(e)))},selectChildren:function(e){return this.selectAll(null==e?I$:function(e){return function(){return _$.call(this.children,e)}}("function"==typeof e?e:C$(e)))},filter:function(e){"function"!=typeof e&&(e=$$(e))
7550
7574
  for(var t=this._groups,o=t.length,i=new Array(o),n=0;n<o;++n)for(var s,r=t[n],a=r.length,l=i[n]=[],c=0;c<a;++c)(s=r[c])&&e.call(s,s.__data__,c,r)&&l.push(s)
7551
- return new wC(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,M$)
7552
- var o=t?R$:I$,i=this._parents,n=this._groups
7553
- "function"!=typeof e&&(e=_$(e))
7554
- for(var s=n.length,r=new Array(s),a=new Array(s),l=new Array(s),c=0;c<s;++c){var d=i[c],h=n[c],u=h.length,p=A$(e.call(d,d&&d.__data__,c,i)),g=p.length,v=a[c]=new Array(g),m=r[c]=new Array(g),f=l[c]=new Array(u)
7575
+ return new CC(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,F$)
7576
+ var o=t?O$:E$,i=this._parents,n=this._groups
7577
+ "function"!=typeof e&&(e=A$(e))
7578
+ for(var s=n.length,r=new Array(s),a=new Array(s),l=new Array(s),c=0;c<s;++c){var d=i[c],h=n[c],u=h.length,p=V$(e.call(d,d&&d.__data__,c,i)),g=p.length,v=a[c]=new Array(g),m=r[c]=new Array(g),f=l[c]=new Array(u)
7555
7579
  o(d,h,v,m,f,p,t)
7556
- for(var b,w,x=0,y=0;x<g;++x)if(b=v[x]){for(x>=y&&(y=x+1);!(w=m[y])&&++y<g;);b._next=w||null}}return(r=new wC(r,i))._enter=a,r._exit=l,r},enter:function(){return new wC(this._enter||this._groups.map(k$),this._parents)},exit:function(){return new wC(this._exit||this._groups.map(k$),this._parents)},join:function(e,t,o){var i=this.enter(),n=this,s=this.exit()
7580
+ for(var b,w,x=0,y=0;x<g;++x)if(b=v[x]){for(x>=y&&(y=x+1);!(w=m[y])&&++y<g;);b._next=w||null}}return(r=new CC(r,i))._enter=a,r._exit=l,r},enter:function(){return new CC(this._enter||this._groups.map(R$),this._parents)},exit:function(){return new CC(this._exit||this._groups.map(R$),this._parents)},join:function(e,t,o){var i=this.enter(),n=this,s=this.exit()
7557
7581
  return"function"==typeof e?(i=e(i))&&(i=i.selection()):i=i.append(e+""),null!=t&&(n=t(n))&&(n=n.selection()),null==o?s.remove():o(s),i&&n?i.merge(n).order():n},merge:function(e){for(var t=e.selection?e.selection():e,o=this._groups,i=t._groups,n=o.length,s=i.length,r=Math.min(n,s),a=new Array(n),l=0;l<r;++l)for(var c,d=o[l],h=i[l],u=d.length,p=a[l]=new Array(u),g=0;g<u;++g)(c=d[g]||h[g])&&(p[g]=c)
7558
7582
  for(;l<n;++l)a[l]=o[l]
7559
- return new wC(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,o=e.length;++t<o;)for(var i,n=e[t],s=n.length-1,r=n[s];--s>=0;)(i=n[s])&&(r&&4^i.compareDocumentPosition(r)&&r.parentNode.insertBefore(i,r),r=i)
7560
- return this},sort:function(e){function t(t,o){return t&&o?e(t.__data__,o.__data__):!t-!o}e||(e=E$)
7583
+ return new CC(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,o=e.length;++t<o;)for(var i,n=e[t],s=n.length-1,r=n[s];--s>=0;)(i=n[s])&&(r&&4^i.compareDocumentPosition(r)&&r.parentNode.insertBefore(i,r),r=i)
7584
+ return this},sort:function(e){function t(t,o){return t&&o?e(t.__data__,o.__data__):!t-!o}e||(e=H$)
7561
7585
  for(var o=this._groups,i=o.length,n=new Array(i),s=0;s<i;++s){for(var r,a=o[s],l=a.length,c=n[s]=new Array(l),d=0;d<l;++d)(r=a[d])&&(c[d]=r)
7562
- c.sort(t)}return new wC(n,this._parents).order()},call:function(){var e=arguments[0]
7586
+ c.sort(t)}return new CC(n,this._parents).order()},call:function(){var e=arguments[0]
7563
7587
  return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,o=e.length;t<o;++t)for(var i=e[t],n=0,s=i.length;n<s;++n){var r=i[n]
7564
7588
  if(r)return r}return null},size:function(){let e=0
7565
7589
  for(const t of this)++e
7566
7590
  return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,o=0,i=t.length;o<i;++o)for(var n,s=t[o],r=0,a=s.length;r<a;++r)(n=s[r])&&e.call(n,n.__data__,r,s)
7567
- return this},attr:function(e,t){var o=c$(e)
7591
+ return this},attr:function(e,t){var o=p$(e)
7568
7592
  if(arguments.length<2){var i=this.node()
7569
- return o.local?i.getAttributeNS(o.space,o.local):i.getAttribute(o)}return this.each((null==t?o.local?F$:O$:"function"==typeof t?o.local?T$:P$:o.local?H$:V$)(o,t))},style:function(e,t,o){return arguments.length>1?this.each((null==t?L$:"function"==typeof t?B$:z$)(e,t,null==o?"":o)):N$(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Z$:"function"==typeof t?j$:q$)(e,t)):this.node()[e]},classed:function(e,t){var o=U$(e+"")
7570
- if(arguments.length<2){for(var i=G$(this.node()),n=-1,s=o.length;++n<s;)if(!i.contains(o[n]))return!1
7571
- return!0}return this.each(("function"==typeof t?J$:t?Y$:Q$)(o,t))},text:function(e){return arguments.length?this.each(null==e?eC:("function"==typeof e?oC:tC)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?iC:("function"==typeof e?sC:nC)(e)):this.node().innerHTML},raise:function(){return this.each(rC)},lower:function(){return this.each(aC)},append:function(e){var t="function"==typeof e?e:u$(e)
7572
- return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var o="function"==typeof e?e:u$(e),i=null==t?lC:"function"==typeof t?t:g$(t)
7573
- return this.select((function(){return this.insertBefore(o.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(cC)},clone:function(e){return this.select(e?hC:dC)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,o){var i,n,s=uC(e+""),r=s.length
7574
- if(!(arguments.length<2)){for(a=t?gC:pC,i=0;i<r;++i)this.each(a(s[i],t,o))
7593
+ return o.local?i.getAttributeNS(o.space,o.local):i.getAttribute(o)}return this.each((null==t?o.local?T$:P$:"function"==typeof t?o.local?B$:z$:o.local?L$:D$)(o,t))},style:function(e,t,o){return arguments.length>1?this.each((null==t?Z$:"function"==typeof t?j$:q$)(e,t,null==o?"":o)):U$(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?G$:"function"==typeof t?K$:W$)(e,t)):this.node()[e]},classed:function(e,t){var o=X$(e+"")
7594
+ if(arguments.length<2){for(var i=Y$(this.node()),n=-1,s=o.length;++n<s;)if(!i.contains(o[n]))return!1
7595
+ return!0}return this.each(("function"==typeof t?iC:t?tC:oC)(o,t))},text:function(e){return arguments.length?this.each(null==e?nC:("function"==typeof e?rC:sC)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?aC:("function"==typeof e?cC:lC)(e)):this.node().innerHTML},raise:function(){return this.each(dC)},lower:function(){return this.each(hC)},append:function(e){var t="function"==typeof e?e:m$(e)
7596
+ return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var o="function"==typeof e?e:m$(e),i=null==t?uC:"function"==typeof t?t:b$(t)
7597
+ return this.select((function(){return this.insertBefore(o.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(pC)},clone:function(e){return this.select(e?vC:gC)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,o){var i,n,s=mC(e+""),r=s.length
7598
+ if(!(arguments.length<2)){for(a=t?bC:fC,i=0;i<r;++i)this.each(a(s[i],t,o))
7575
7599
  return this}var a=this.node().__on
7576
- if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<r;++i)if((n=s[i]).type===l.type&&n.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?fC:mC)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,o=e.length;t<o;++t)for(var i,n=e[t],s=0,r=n.length;s<r;++s)(i=n[s])&&(yield i)}}
7577
- const CC={capture:!0,passive:!1}
7578
- function kC(e){e.preventDefault(),e.stopImmediatePropagation()}function SC(e){var t=e.document.documentElement,o=yC(e).on("dragstart.drag",kC,CC)
7579
- "onselectstart"in t?o.on("selectstart.drag",kC,CC):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function _C(e,t){var o=e.document.documentElement,i=yC(e).on("dragstart.drag",null)
7580
- t&&(i.on("click.drag",kC,CC),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in o?i.on("selectstart.drag",null):(o.style.MozUserSelect=o.__noselect,delete o.__noselect)}function IC(e,t,o){e.prototype=t.prototype=o,o.constructor=e}function RC(e,t){var o=Object.create(e.prototype)
7600
+ if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<r;++i)if((n=s[i]).type===l.type&&n.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?yC:xC)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,o=e.length;t<o;++t)for(var i,n=e[t],s=0,r=n.length;s<r;++s)(i=n[s])&&(yield i)}}
7601
+ const IC={capture:!0,passive:!1}
7602
+ function RC(e){e.preventDefault(),e.stopImmediatePropagation()}function MC(e){var t=e.document.documentElement,o=SC(e).on("dragstart.drag",RC,IC)
7603
+ "onselectstart"in t?o.on("selectstart.drag",RC,IC):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function AC(e,t){var o=e.document.documentElement,i=SC(e).on("dragstart.drag",null)
7604
+ t&&(i.on("click.drag",RC,IC),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in o?i.on("selectstart.drag",null):(o.style.MozUserSelect=o.__noselect,delete o.__noselect)}function EC(e,t,o){e.prototype=t.prototype=o,o.constructor=e}function OC(e,t){var o=Object.create(e.prototype)
7581
7605
  for(var i in t)o[i]=t[i]
7582
- return o}function MC(){}var AC=.7,EC=1/AC,OC="\\s*([+-]?\\d+)\\s*",FC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",VC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",HC=/^#([0-9a-f]{3,8})$/,PC=new RegExp(`^rgb\\(${OC},${OC},${OC}\\)$`),TC=new RegExp(`^rgb\\(${VC},${VC},${VC}\\)$`),DC=new RegExp(`^rgba\\(${OC},${OC},${OC},${FC}\\)$`),LC=new RegExp(`^rgba\\(${VC},${VC},${VC},${FC}\\)$`),zC=new RegExp(`^hsl\\(${FC},${VC},${VC}\\)$`),BC=new RegExp(`^hsla\\(${FC},${VC},${VC},${FC}\\)$`),NC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074}
7583
- function ZC(){return this.rgb().formatHex()}function qC(){return this.rgb().formatRgb()}function jC(e){var t,o
7584
- return e=(e+"").trim().toLowerCase(),(t=HC.exec(e))?(o=t[1].length,t=parseInt(t[1],16),6===o?UC(t):3===o?new XC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===o?GC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===o?GC(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=PC.exec(e))?new XC(t[1],t[2],t[3],1):(t=TC.exec(e))?new XC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=DC.exec(e))?GC(t[1],t[2],t[3],t[4]):(t=LC.exec(e))?GC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=zC.exec(e))?ok(t[1],t[2]/100,t[3]/100,1):(t=BC.exec(e))?ok(t[1],t[2]/100,t[3]/100,t[4]):NC.hasOwnProperty(e)?UC(NC[e]):"transparent"===e?new XC(NaN,NaN,NaN,0):null}function UC(e){return new XC(e>>16&255,e>>8&255,255&e,1)}function GC(e,t,o,i){return i<=0&&(e=t=o=NaN),new XC(e,t,o,i)}function WC(e){return e instanceof MC||(e=jC(e)),e?new XC((e=e.rgb()).r,e.g,e.b,e.opacity):new XC}function KC(e,t,o,i){return 1===arguments.length?WC(e):new XC(e,t,o,null==i?1:i)}function XC(e,t,o,i){this.r=+e,this.g=+t,this.b=+o,this.opacity=+i}function YC(){return`#${tk(this.r)}${tk(this.g)}${tk(this.b)}`}function QC(){const e=JC(this.opacity)
7585
- return`${1===e?"rgb(":"rgba("}${ek(this.r)}, ${ek(this.g)}, ${ek(this.b)}${1===e?")":`, ${e})`}`}function JC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ek(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tk(e){return((e=ek(e))<16?"0":"")+e.toString(16)}function ok(e,t,o,i){return i<=0?e=t=o=NaN:o<=0||o>=1?e=t=NaN:t<=0&&(e=NaN),new nk(e,t,o,i)}function ik(e){if(e instanceof nk)return new nk(e.h,e.s,e.l,e.opacity)
7586
- if(e instanceof MC||(e=jC(e)),!e)return new nk
7587
- if(e instanceof nk)return e
7606
+ return o}function FC(){}var VC=.7,HC=1/VC,PC="\\s*([+-]?\\d+)\\s*",TC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",DC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",LC=/^#([0-9a-f]{3,8})$/,zC=new RegExp(`^rgb\\(${PC},${PC},${PC}\\)$`),BC=new RegExp(`^rgb\\(${DC},${DC},${DC}\\)$`),NC=new RegExp(`^rgba\\(${PC},${PC},${PC},${TC}\\)$`),ZC=new RegExp(`^rgba\\(${DC},${DC},${DC},${TC}\\)$`),qC=new RegExp(`^hsl\\(${TC},${DC},${DC}\\)$`),jC=new RegExp(`^hsla\\(${TC},${DC},${DC},${TC}\\)$`),UC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074}
7607
+ function GC(){return this.rgb().formatHex()}function WC(){return this.rgb().formatRgb()}function KC(e){var t,o
7608
+ return e=(e+"").trim().toLowerCase(),(t=LC.exec(e))?(o=t[1].length,t=parseInt(t[1],16),6===o?XC(t):3===o?new ek(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===o?YC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===o?YC(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=zC.exec(e))?new ek(t[1],t[2],t[3],1):(t=BC.exec(e))?new ek(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=NC.exec(e))?YC(t[1],t[2],t[3],t[4]):(t=ZC.exec(e))?YC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=qC.exec(e))?rk(t[1],t[2]/100,t[3]/100,1):(t=jC.exec(e))?rk(t[1],t[2]/100,t[3]/100,t[4]):UC.hasOwnProperty(e)?XC(UC[e]):"transparent"===e?new ek(NaN,NaN,NaN,0):null}function XC(e){return new ek(e>>16&255,e>>8&255,255&e,1)}function YC(e,t,o,i){return i<=0&&(e=t=o=NaN),new ek(e,t,o,i)}function QC(e){return e instanceof FC||(e=KC(e)),e?new ek((e=e.rgb()).r,e.g,e.b,e.opacity):new ek}function JC(e,t,o,i){return 1===arguments.length?QC(e):new ek(e,t,o,null==i?1:i)}function ek(e,t,o,i){this.r=+e,this.g=+t,this.b=+o,this.opacity=+i}function tk(){return`#${sk(this.r)}${sk(this.g)}${sk(this.b)}`}function ok(){const e=ik(this.opacity)
7609
+ return`${1===e?"rgb(":"rgba("}${nk(this.r)}, ${nk(this.g)}, ${nk(this.b)}${1===e?")":`, ${e})`}`}function ik(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function nk(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function sk(e){return((e=nk(e))<16?"0":"")+e.toString(16)}function rk(e,t,o,i){return i<=0?e=t=o=NaN:o<=0||o>=1?e=t=NaN:t<=0&&(e=NaN),new lk(e,t,o,i)}function ak(e){if(e instanceof lk)return new lk(e.h,e.s,e.l,e.opacity)
7610
+ if(e instanceof FC||(e=KC(e)),!e)return new lk
7611
+ if(e instanceof lk)return e
7588
7612
  var t=(e=e.rgb()).r/255,o=e.g/255,i=e.b/255,n=Math.min(t,o,i),s=Math.max(t,o,i),r=NaN,a=s-n,l=(s+n)/2
7589
- return a?(r=t===s?(o-i)/a+6*(o<i):o===s?(i-t)/a+2:(t-o)/a+4,a/=l<.5?s+n:2-s-n,r*=60):a=l>0&&l<1?0:r,new nk(r,a,l,e.opacity)}function nk(e,t,o,i){this.h=+e,this.s=+t,this.l=+o,this.opacity=+i}function sk(e){return(e=(e||0)%360)<0?e+360:e}function rk(e){return Math.max(0,Math.min(1,e||0))}function ak(e,t,o){return 255*(e<60?t+(o-t)*e/60:e<180?o:e<240?t+(o-t)*(240-e)/60:t)}IC(MC,jC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ZC,formatHex:ZC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ik(this).formatHsl()},formatRgb:qC,toString:qC}),IC(XC,KC,RC(MC,{brighter(e){return e=null==e?EC:Math.pow(EC,e),new XC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?AC:Math.pow(AC,e),new XC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new XC(ek(this.r),ek(this.g),ek(this.b),JC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:YC,formatHex:YC,formatHex8:function(){return`#${tk(this.r)}${tk(this.g)}${tk(this.b)}${tk(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:QC,toString:QC})),IC(nk,(function(e,t,o,i){return 1===arguments.length?ik(e):new nk(e,t,o,null==i?1:i)}),RC(MC,{brighter(e){return e=null==e?EC:Math.pow(EC,e),new nk(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?AC:Math.pow(AC,e),new nk(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,o=this.l,i=o+(o<.5?o:1-o)*t,n=2*o-i
7590
- return new XC(ak(e>=240?e-240:e+120,n,i),ak(e,n,i),ak(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new nk(sk(this.h),rk(this.s),rk(this.l),JC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=JC(this.opacity)
7591
- return`${1===e?"hsl(":"hsla("}${sk(this.h)}, ${100*rk(this.s)}%, ${100*rk(this.l)}%${1===e?")":`, ${e})`}`}}))
7592
- var lk=e=>()=>e
7593
- function ck(e){return 1==(e=+e)?dk:function(t,o){return o-t?function(e,t,o){return e=Math.pow(e,o),t=Math.pow(t,o)-e,o=1/o,function(i){return Math.pow(e+i*t,o)}}(t,o,e):lk(isNaN(t)?o:t)}}function dk(e,t){var o=t-e
7594
- return o?function(e,t){return function(o){return e+o*t}}(e,o):lk(isNaN(e)?t:e)}var hk=function e(t){var o=ck(t)
7595
- function i(e,t){var i=o((e=KC(e)).r,(t=KC(t)).r),n=o(e.g,t.g),s=o(e.b,t.b),r=dk(e.opacity,t.opacity)
7613
+ return a?(r=t===s?(o-i)/a+6*(o<i):o===s?(i-t)/a+2:(t-o)/a+4,a/=l<.5?s+n:2-s-n,r*=60):a=l>0&&l<1?0:r,new lk(r,a,l,e.opacity)}function lk(e,t,o,i){this.h=+e,this.s=+t,this.l=+o,this.opacity=+i}function ck(e){return(e=(e||0)%360)<0?e+360:e}function dk(e){return Math.max(0,Math.min(1,e||0))}function hk(e,t,o){return 255*(e<60?t+(o-t)*e/60:e<180?o:e<240?t+(o-t)*(240-e)/60:t)}EC(FC,KC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:GC,formatHex:GC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ak(this).formatHsl()},formatRgb:WC,toString:WC}),EC(ek,JC,OC(FC,{brighter(e){return e=null==e?HC:Math.pow(HC,e),new ek(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?VC:Math.pow(VC,e),new ek(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ek(nk(this.r),nk(this.g),nk(this.b),ik(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tk,formatHex:tk,formatHex8:function(){return`#${sk(this.r)}${sk(this.g)}${sk(this.b)}${sk(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ok,toString:ok})),EC(lk,(function(e,t,o,i){return 1===arguments.length?ak(e):new lk(e,t,o,null==i?1:i)}),OC(FC,{brighter(e){return e=null==e?HC:Math.pow(HC,e),new lk(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?VC:Math.pow(VC,e),new lk(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,o=this.l,i=o+(o<.5?o:1-o)*t,n=2*o-i
7614
+ return new ek(hk(e>=240?e-240:e+120,n,i),hk(e,n,i),hk(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new lk(ck(this.h),dk(this.s),dk(this.l),ik(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ik(this.opacity)
7615
+ return`${1===e?"hsl(":"hsla("}${ck(this.h)}, ${100*dk(this.s)}%, ${100*dk(this.l)}%${1===e?")":`, ${e})`}`}}))
7616
+ var uk=e=>()=>e
7617
+ function pk(e){return 1==(e=+e)?gk:function(t,o){return o-t?function(e,t,o){return e=Math.pow(e,o),t=Math.pow(t,o)-e,o=1/o,function(i){return Math.pow(e+i*t,o)}}(t,o,e):uk(isNaN(t)?o:t)}}function gk(e,t){var o=t-e
7618
+ return o?function(e,t){return function(o){return e+o*t}}(e,o):uk(isNaN(e)?t:e)}var vk=function e(t){var o=pk(t)
7619
+ function i(e,t){var i=o((e=JC(e)).r,(t=JC(t)).r),n=o(e.g,t.g),s=o(e.b,t.b),r=gk(e.opacity,t.opacity)
7596
7620
  return function(t){return e.r=i(t),e.g=n(t),e.b=s(t),e.opacity=r(t),e+""}}return i.gamma=e,i}(1)
7597
- function uk(e,t){t||(t=[])
7621
+ function mk(e,t){t||(t=[])
7598
7622
  var o,i=e?Math.min(t.length,e.length):0,n=t.slice()
7599
7623
  return function(s){for(o=0;o<i;++o)n[o]=e[o]*(1-s)+t[o]*s
7600
- return n}}function pk(e,t){var o,i=t?t.length:0,n=e?Math.min(i,e.length):0,s=new Array(n),r=new Array(i)
7601
- for(o=0;o<n;++o)s[o]=xk(e[o],t[o])
7624
+ return n}}function fk(e,t){var o,i=t?t.length:0,n=e?Math.min(i,e.length):0,s=new Array(n),r=new Array(i)
7625
+ for(o=0;o<n;++o)s[o]=kk(e[o],t[o])
7602
7626
  for(;o<i;++o)r[o]=t[o]
7603
7627
  return function(e){for(o=0;o<n;++o)r[o]=s[o](e)
7604
- return r}}function gk(e,t){var o=new Date
7605
- return e=+e,t=+t,function(i){return o.setTime(e*(1-i)+t*i),o}}function vk(e,t){return e=+e,t=+t,function(o){return e*(1-o)+t*o}}function mk(e,t){var o,i={},n={}
7606
- for(o in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)o in e?i[o]=xk(e[o],t[o]):n[o]=t[o]
7628
+ return r}}function bk(e,t){var o=new Date
7629
+ return e=+e,t=+t,function(i){return o.setTime(e*(1-i)+t*i),o}}function wk(e,t){return e=+e,t=+t,function(o){return e*(1-o)+t*o}}function xk(e,t){var o,i={},n={}
7630
+ for(o in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)o in e?i[o]=kk(e[o],t[o]):n[o]=t[o]
7607
7631
  return function(e){for(o in i)n[o]=i[o](e)
7608
- return n}}var fk=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bk=new RegExp(fk.source,"g")
7609
- function wk(e,t){var o,i,n,s=fk.lastIndex=bk.lastIndex=0,r=-1,a=[],l=[]
7610
- for(e+="",t+="";(o=fk.exec(e))&&(i=bk.exec(t));)(n=i.index)>s&&(n=t.slice(s,n),a[r]?a[r]+=n:a[++r]=n),(o=o[0])===(i=i[0])?a[r]?a[r]+=i:a[++r]=i:(a[++r]=null,l.push({i:r,x:vk(o,i)})),s=bk.lastIndex
7632
+ return n}}var yk=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$k=new RegExp(yk.source,"g")
7633
+ function Ck(e,t){var o,i,n,s=yk.lastIndex=$k.lastIndex=0,r=-1,a=[],l=[]
7634
+ for(e+="",t+="";(o=yk.exec(e))&&(i=$k.exec(t));)(n=i.index)>s&&(n=t.slice(s,n),a[r]?a[r]+=n:a[++r]=n),(o=o[0])===(i=i[0])?a[r]?a[r]+=i:a[++r]=i:(a[++r]=null,l.push({i:r,x:wk(o,i)})),s=$k.lastIndex
7611
7635
  return s<t.length&&(n=t.slice(s),a[r]?a[r]+=n:a[++r]=n),a.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var o,i=0;i<t;++i)a[(o=l[i]).i]=o.x(e)
7612
- return a.join("")})}function xk(e,t){var o,i,n=typeof t
7613
- return null==t||"boolean"===n?lk(t):("number"===n?vk:"string"===n?(o=jC(t))?(t=o,hk):wk:t instanceof jC?hk:t instanceof Date?gk:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?pk:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?mk:vk:uk))(e,t)}function yk(e,t){return e=+e,t=+t,function(o){return Math.round(e*(1-o)+t*o)}}var $k,Ck=180/Math.PI,kk={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
7614
- function Sk(e,t,o,i,n,s){var r,a,l
7615
- return(r=Math.sqrt(e*e+t*t))&&(e/=r,t/=r),(l=e*o+t*i)&&(o-=e*l,i-=t*l),(a=Math.sqrt(o*o+i*i))&&(o/=a,i/=a,l/=a),e*i<t*o&&(e=-e,t=-t,l=-l,r=-r),{translateX:n,translateY:s,rotate:Math.atan2(t,e)*Ck,skewX:Math.atan(l)*Ck,scaleX:r,scaleY:a}}function _k(e,t,o,i){function n(e){return e.length?e.pop()+" ":""}return function(s,r){var a=[],l=[]
7636
+ return a.join("")})}function kk(e,t){var o,i,n=typeof t
7637
+ return null==t||"boolean"===n?uk(t):("number"===n?wk:"string"===n?(o=KC(t))?(t=o,vk):Ck:t instanceof KC?vk:t instanceof Date?bk:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?fk:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?xk:wk:mk))(e,t)}function Sk(e,t){return e=+e,t=+t,function(o){return Math.round(e*(1-o)+t*o)}}var _k,Ik=180/Math.PI,Rk={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
7638
+ function Mk(e,t,o,i,n,s){var r,a,l
7639
+ return(r=Math.sqrt(e*e+t*t))&&(e/=r,t/=r),(l=e*o+t*i)&&(o-=e*l,i-=t*l),(a=Math.sqrt(o*o+i*i))&&(o/=a,i/=a,l/=a),e*i<t*o&&(e=-e,t=-t,l=-l,r=-r),{translateX:n,translateY:s,rotate:Math.atan2(t,e)*Ik,skewX:Math.atan(l)*Ik,scaleX:r,scaleY:a}}function Ak(e,t,o,i){function n(e){return e.length?e.pop()+" ":""}return function(s,r){var a=[],l=[]
7616
7640
  return s=e(s),r=e(r),function(e,i,n,s,r,a){if(e!==n||i!==s){var l=r.push("translate(",null,t,null,o)
7617
- a.push({i:l-4,x:vk(e,n)},{i:l-2,x:vk(i,s)})}else(n||s)&&r.push("translate("+n+t+s+o)}(s.translateX,s.translateY,r.translateX,r.translateY,a,l),function(e,t,o,s){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),s.push({i:o.push(n(o)+"rotate(",null,i)-2,x:vk(e,t)})):t&&o.push(n(o)+"rotate("+t+i)}(s.rotate,r.rotate,a,l),function(e,t,o,s){e!==t?s.push({i:o.push(n(o)+"skewX(",null,i)-2,x:vk(e,t)}):t&&o.push(n(o)+"skewX("+t+i)}(s.skewX,r.skewX,a,l),function(e,t,o,i,s,r){if(e!==o||t!==i){var a=s.push(n(s)+"scale(",null,",",null,")")
7618
- r.push({i:a-4,x:vk(e,o)},{i:a-2,x:vk(t,i)})}else 1===o&&1===i||s.push(n(s)+"scale("+o+","+i+")")}(s.scaleX,s.scaleY,r.scaleX,r.scaleY,a,l),s=r=null,function(e){for(var t,o=-1,i=l.length;++o<i;)a[(t=l[o]).i]=t.x(e)
7619
- return a.join("")}}}var Ik=_k((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
7620
- return t.isIdentity?kk:Sk(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Rk=_k((function(e){return null==e?kk:($k||($k=document.createElementNS("http://www.w3.org/2000/svg","g")),$k.setAttribute("transform",e),(e=$k.transform.baseVal.consolidate())?Sk((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):kk)}),", ",")",")")
7621
- function Mk(e){return((e=Math.exp(e))+1/e)/2}var Ak,Ek,Ok=function e(t,o,i){function n(e,n){var s,r,a=e[0],l=e[1],c=e[2],d=n[0],h=n[1],u=n[2],p=d-a,g=h-l,v=p*p+g*g
7641
+ a.push({i:l-4,x:wk(e,n)},{i:l-2,x:wk(i,s)})}else(n||s)&&r.push("translate("+n+t+s+o)}(s.translateX,s.translateY,r.translateX,r.translateY,a,l),function(e,t,o,s){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),s.push({i:o.push(n(o)+"rotate(",null,i)-2,x:wk(e,t)})):t&&o.push(n(o)+"rotate("+t+i)}(s.rotate,r.rotate,a,l),function(e,t,o,s){e!==t?s.push({i:o.push(n(o)+"skewX(",null,i)-2,x:wk(e,t)}):t&&o.push(n(o)+"skewX("+t+i)}(s.skewX,r.skewX,a,l),function(e,t,o,i,s,r){if(e!==o||t!==i){var a=s.push(n(s)+"scale(",null,",",null,")")
7642
+ r.push({i:a-4,x:wk(e,o)},{i:a-2,x:wk(t,i)})}else 1===o&&1===i||s.push(n(s)+"scale("+o+","+i+")")}(s.scaleX,s.scaleY,r.scaleX,r.scaleY,a,l),s=r=null,function(e){for(var t,o=-1,i=l.length;++o<i;)a[(t=l[o]).i]=t.x(e)
7643
+ return a.join("")}}}var Ek=Ak((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
7644
+ return t.isIdentity?Rk:Mk(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Ok=Ak((function(e){return null==e?Rk:(_k||(_k=document.createElementNS("http://www.w3.org/2000/svg","g")),_k.setAttribute("transform",e),(e=_k.transform.baseVal.consolidate())?Mk((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Rk)}),", ",")",")")
7645
+ function Fk(e){return((e=Math.exp(e))+1/e)/2}var Vk,Hk,Pk=function e(t,o,i){function n(e,n){var s,r,a=e[0],l=e[1],c=e[2],d=n[0],h=n[1],u=n[2],p=d-a,g=h-l,v=p*p+g*g
7622
7646
  if(v<1e-12)r=Math.log(u/c)/t,s=function(e){return[a+e*p,l+e*g,c*Math.exp(t*e*r)]}
7623
7647
  else{var m=Math.sqrt(v),f=(u*u-c*c+i*v)/(2*c*o*m),b=(u*u-c*c-i*v)/(2*u*o*m),w=Math.log(Math.sqrt(f*f+1)-f),x=Math.log(Math.sqrt(b*b+1)-b)
7624
- r=(x-w)/t,s=function(e){var i,n=e*r,s=Mk(w),d=c/(o*m)*(s*(i=t*n+w,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
7625
- return[a+d*p,l+d*g,c*s/Mk(t*n+w)]}}return s.duration=1e3*r*t/Math.SQRT2,s}return n.rho=function(t){var o=Math.max(.001,+t),i=o*o
7626
- return e(o,i,i*i)},n}(Math.SQRT2,2,4),Fk=0,Vk=0,Hk=0,Pk=0,Tk=0,Dk=0,Lk="object"==typeof performance&&performance.now?performance:Date,zk="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
7627
- function Bk(){return Tk||(zk(Nk),Tk=Lk.now()+Dk)}function Nk(){Tk=0}function Zk(){this._call=this._time=this._next=null}function qk(e,t,o){var i=new Zk
7628
- return i.restart(e,t,o),i}function jk(){Tk=(Pk=Lk.now())+Dk,Fk=Vk=0
7629
- try{!function(){Bk(),++Fk
7630
- for(var e,t=Ak;t;)(e=Tk-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Fk}()}finally{Fk=0,function(){var e,t,o=Ak,i=1/0
7631
- for(;o;)o._call?(i>o._time&&(i=o._time),e=o,o=o._next):(t=o._next,o._next=null,o=e?e._next=t:Ak=t)
7632
- Ek=e,Gk(i)}(),Tk=0}}function Uk(){var e=Lk.now(),t=e-Pk
7633
- t>1e3&&(Dk-=t,Pk=e)}function Gk(e){Fk||(Vk&&(Vk=clearTimeout(Vk)),e-Tk>24?(e<1/0&&(Vk=setTimeout(jk,e-Lk.now()-Dk)),Hk&&(Hk=clearInterval(Hk))):(Hk||(Pk=Lk.now(),Hk=setInterval(Uk,1e3)),Fk=1,zk(jk)))}function Wk(e,t,o){var i=new Zk
7634
- return t=null==t?0:+t,i.restart((o=>{i.stop(),e(o+t)}),t,o),i}Zk.prototype=qk.prototype={constructor:Zk,restart:function(e,t,o){if("function"!=typeof e)throw new TypeError("callback is not a function")
7635
- o=(null==o?Bk():+o)+(null==t?0:+t),this._next||Ek===this||(Ek?Ek._next=this:Ak=this,Ek=this),this._call=e,this._time=o,Gk()},stop:function(){this._call&&(this._call=null,this._time=1/0,Gk())}}
7636
- var Kk=o$("start","end","cancel","interrupt"),Xk=[]
7637
- function Yk(e,t,o,i,n,s){var r=e.__transition
7648
+ r=(x-w)/t,s=function(e){var i,n=e*r,s=Fk(w),d=c/(o*m)*(s*(i=t*n+w,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
7649
+ return[a+d*p,l+d*g,c*s/Fk(t*n+w)]}}return s.duration=1e3*r*t/Math.SQRT2,s}return n.rho=function(t){var o=Math.max(.001,+t),i=o*o
7650
+ return e(o,i,i*i)},n}(Math.SQRT2,2,4),Tk=0,Dk=0,Lk=0,zk=0,Bk=0,Nk=0,Zk="object"==typeof performance&&performance.now?performance:Date,qk="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
7651
+ function jk(){return Bk||(qk(Uk),Bk=Zk.now()+Nk)}function Uk(){Bk=0}function Gk(){this._call=this._time=this._next=null}function Wk(e,t,o){var i=new Gk
7652
+ return i.restart(e,t,o),i}function Kk(){Bk=(zk=Zk.now())+Nk,Tk=Dk=0
7653
+ try{!function(){jk(),++Tk
7654
+ for(var e,t=Vk;t;)(e=Bk-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Tk}()}finally{Tk=0,function(){var e,t,o=Vk,i=1/0
7655
+ for(;o;)o._call?(i>o._time&&(i=o._time),e=o,o=o._next):(t=o._next,o._next=null,o=e?e._next=t:Vk=t)
7656
+ Hk=e,Yk(i)}(),Bk=0}}function Xk(){var e=Zk.now(),t=e-zk
7657
+ t>1e3&&(Nk-=t,zk=e)}function Yk(e){Tk||(Dk&&(Dk=clearTimeout(Dk)),e-Bk>24?(e<1/0&&(Dk=setTimeout(Kk,e-Zk.now()-Nk)),Lk&&(Lk=clearInterval(Lk))):(Lk||(zk=Zk.now(),Lk=setInterval(Xk,1e3)),Tk=1,qk(Kk)))}function Qk(e,t,o){var i=new Gk
7658
+ return t=null==t?0:+t,i.restart((o=>{i.stop(),e(o+t)}),t,o),i}Gk.prototype=Wk.prototype={constructor:Gk,restart:function(e,t,o){if("function"!=typeof e)throw new TypeError("callback is not a function")
7659
+ o=(null==o?jk():+o)+(null==t?0:+t),this._next||Hk===this||(Hk?Hk._next=this:Vk=this,Hk=this),this._call=e,this._time=o,Yk()},stop:function(){this._call&&(this._call=null,this._time=1/0,Yk())}}
7660
+ var Jk=r$("start","end","cancel","interrupt"),eS=[]
7661
+ function tS(e,t,o,i,n,s){var r=e.__transition
7638
7662
  if(r){if(o in r)return}else e.__transition={}
7639
7663
  !function(e,t,o){var i,n=e.__transition
7640
7664
  function s(e){o.state=1,o.timer.restart(r,o.delay,o.time),o.delay<=e&&r(e-o.delay)}function r(s){var c,d,h,u
7641
7665
  if(1!==o.state)return l()
7642
- for(c in n)if((u=n[c]).name===o.name){if(3===u.state)return Wk(r)
7643
- 4===u.state?(u.state=6,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete n[c]):+c<t&&(u.state=6,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete n[c])}if(Wk((function(){3===o.state&&(o.state=4,o.timer.restart(a,o.delay,o.time),a(s))})),o.state=2,o.on.call("start",e,e.__data__,o.index,o.group),2===o.state){for(o.state=3,i=new Array(h=o.tween.length),c=0,d=-1;c<h;++c)(u=o.tween[c].value.call(e,e.__data__,o.index,o.group))&&(i[++d]=u)
7666
+ for(c in n)if((u=n[c]).name===o.name){if(3===u.state)return Qk(r)
7667
+ 4===u.state?(u.state=6,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete n[c]):+c<t&&(u.state=6,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete n[c])}if(Qk((function(){3===o.state&&(o.state=4,o.timer.restart(a,o.delay,o.time),a(s))})),o.state=2,o.on.call("start",e,e.__data__,o.index,o.group),2===o.state){for(o.state=3,i=new Array(h=o.tween.length),c=0,d=-1;c<h;++c)(u=o.tween[c].value.call(e,e.__data__,o.index,o.group))&&(i[++d]=u)
7644
7668
  i.length=d+1}}function a(t){for(var n=t<o.duration?o.ease.call(null,t/o.duration):(o.timer.restart(l),o.state=5,1),s=-1,r=i.length;++s<r;)i[s].call(e,n)
7645
7669
  5===o.state&&(o.on.call("end",e,e.__data__,o.index,o.group),l())}function l(){for(var i in o.state=6,o.timer.stop(),delete n[t],n)return
7646
- delete e.__transition}n[t]=o,o.timer=qk(s,0,o.time)}(e,o,{name:t,index:i,group:n,on:Kk,tween:Xk,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function Qk(e,t){var o=eS(e,t)
7670
+ delete e.__transition}n[t]=o,o.timer=Wk(s,0,o.time)}(e,o,{name:t,index:i,group:n,on:Jk,tween:eS,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function oS(e,t){var o=nS(e,t)
7647
7671
  if(o.state>0)throw new Error("too late; already scheduled")
7648
- return o}function Jk(e,t){var o=eS(e,t)
7672
+ return o}function iS(e,t){var o=nS(e,t)
7649
7673
  if(o.state>3)throw new Error("too late; already running")
7650
- return o}function eS(e,t){var o=e.__transition
7674
+ return o}function nS(e,t){var o=e.__transition
7651
7675
  if(!o||!(o=o[t]))throw new Error("transition not found")
7652
- return o}function tS(e,t){var o,i,n,s=e.__transition,r=!0
7676
+ return o}function sS(e,t){var o,i,n,s=e.__transition,r=!0
7653
7677
  if(s){for(n in t=null==t?null:t+"",s)(o=s[n]).name===t?(i=o.state>2&&o.state<5,o.state=6,o.timer.stop(),o.on.call(i?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete s[n]):r=!1
7654
- r&&delete e.__transition}}function oS(e,t){var o,i
7655
- return function(){var n=Jk(this,e),s=n.tween
7678
+ r&&delete e.__transition}}function rS(e,t){var o,i
7679
+ return function(){var n=iS(this,e),s=n.tween
7656
7680
  if(s!==o)for(var r=0,a=(i=o=s).length;r<a;++r)if(i[r].name===t){(i=i.slice()).splice(r,1)
7657
- break}n.tween=i}}function iS(e,t,o){var i,n
7681
+ break}n.tween=i}}function aS(e,t,o){var i,n
7658
7682
  if("function"!=typeof o)throw new Error
7659
- return function(){var s=Jk(this,e),r=s.tween
7683
+ return function(){var s=iS(this,e),r=s.tween
7660
7684
  if(r!==i){n=(i=r).slice()
7661
7685
  for(var a={name:t,value:o},l=0,c=n.length;l<c;++l)if(n[l].name===t){n[l]=a
7662
- break}l===c&&n.push(a)}s.tween=n}}function nS(e,t,o){var i=e._id
7663
- return e.each((function(){var e=Jk(this,i);(e.value||(e.value={}))[t]=o.apply(this,arguments)})),function(e){return eS(e,i).value[t]}}function sS(e,t){var o
7664
- return("number"==typeof t?vk:t instanceof jC?hk:(o=jC(t))?(t=o,hk):wk)(e,t)}function rS(e){return function(){this.removeAttribute(e)}}function aS(e){return function(){this.removeAttributeNS(e.space,e.local)}}function lS(e,t,o){var i,n,s=o+""
7686
+ break}l===c&&n.push(a)}s.tween=n}}function lS(e,t,o){var i=e._id
7687
+ return e.each((function(){var e=iS(this,i);(e.value||(e.value={}))[t]=o.apply(this,arguments)})),function(e){return nS(e,i).value[t]}}function cS(e,t){var o
7688
+ return("number"==typeof t?wk:t instanceof KC?vk:(o=KC(t))?(t=o,vk):Ck)(e,t)}function dS(e){return function(){this.removeAttribute(e)}}function hS(e){return function(){this.removeAttributeNS(e.space,e.local)}}function uS(e,t,o){var i,n,s=o+""
7665
7689
  return function(){var r=this.getAttribute(e)
7666
- return r===s?null:r===i?n:n=t(i=r,o)}}function cS(e,t,o){var i,n,s=o+""
7690
+ return r===s?null:r===i?n:n=t(i=r,o)}}function pS(e,t,o){var i,n,s=o+""
7667
7691
  return function(){var r=this.getAttributeNS(e.space,e.local)
7668
- return r===s?null:r===i?n:n=t(i=r,o)}}function dS(e,t,o){var i,n,s
7692
+ return r===s?null:r===i?n:n=t(i=r,o)}}function gS(e,t,o){var i,n,s
7669
7693
  return function(){var r,a,l=o(this)
7670
7694
  if(null!=l)return(r=this.getAttribute(e))===(a=l+"")?null:r===i&&a===n?s:(n=a,s=t(i=r,l))
7671
- this.removeAttribute(e)}}function hS(e,t,o){var i,n,s
7695
+ this.removeAttribute(e)}}function vS(e,t,o){var i,n,s
7672
7696
  return function(){var r,a,l=o(this)
7673
7697
  if(null!=l)return(r=this.getAttributeNS(e.space,e.local))===(a=l+"")?null:r===i&&a===n?s:(n=a,s=t(i=r,l))
7674
- this.removeAttributeNS(e.space,e.local)}}function uS(e,t){return function(o){this.setAttribute(e,t.call(this,o))}}function pS(e,t){return function(o){this.setAttributeNS(e.space,e.local,t.call(this,o))}}function gS(e,t){var o,i
7698
+ this.removeAttributeNS(e.space,e.local)}}function mS(e,t){return function(o){this.setAttribute(e,t.call(this,o))}}function fS(e,t){return function(o){this.setAttributeNS(e.space,e.local,t.call(this,o))}}function bS(e,t){var o,i
7675
7699
  function n(){var n=t.apply(this,arguments)
7676
- return n!==i&&(o=(i=n)&&pS(e,n)),o}return n._value=t,n}function vS(e,t){var o,i
7700
+ return n!==i&&(o=(i=n)&&fS(e,n)),o}return n._value=t,n}function wS(e,t){var o,i
7677
7701
  function n(){var n=t.apply(this,arguments)
7678
- return n!==i&&(o=(i=n)&&uS(e,n)),o}return n._value=t,n}function mS(e,t){return function(){Qk(this,e).delay=+t.apply(this,arguments)}}function fS(e,t){return t=+t,function(){Qk(this,e).delay=t}}function bS(e,t){return function(){Jk(this,e).duration=+t.apply(this,arguments)}}function wS(e,t){return t=+t,function(){Jk(this,e).duration=t}}function xS(e,t){if("function"!=typeof t)throw new Error
7679
- return function(){Jk(this,e).ease=t}}function yS(e,t,o){var i,n,s=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
7680
- return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?Qk:Jk
7702
+ return n!==i&&(o=(i=n)&&mS(e,n)),o}return n._value=t,n}function xS(e,t){return function(){oS(this,e).delay=+t.apply(this,arguments)}}function yS(e,t){return t=+t,function(){oS(this,e).delay=t}}function $S(e,t){return function(){iS(this,e).duration=+t.apply(this,arguments)}}function CS(e,t){return t=+t,function(){iS(this,e).duration=t}}function kS(e,t){if("function"!=typeof t)throw new Error
7703
+ return function(){iS(this,e).ease=t}}function SS(e,t,o){var i,n,s=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
7704
+ return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?oS:iS
7681
7705
  return function(){var r=s(this,e),a=r.on
7682
- a!==i&&(n=(i=a).copy()).on(t,o),r.on=n}}var $S=xC.prototype.constructor
7683
- function CS(e){return function(){this.style.removeProperty(e)}}function kS(e,t,o){return function(i){this.style.setProperty(e,t.call(this,i),o)}}function SS(e,t,o){var i,n
7706
+ a!==i&&(n=(i=a).copy()).on(t,o),r.on=n}}var _S=kC.prototype.constructor
7707
+ function IS(e){return function(){this.style.removeProperty(e)}}function RS(e,t,o){return function(i){this.style.setProperty(e,t.call(this,i),o)}}function MS(e,t,o){var i,n
7684
7708
  function s(){var s=t.apply(this,arguments)
7685
- return s!==n&&(i=(n=s)&&kS(e,s,o)),i}return s._value=t,s}function _S(e){return function(t){this.textContent=e.call(this,t)}}function IS(e){var t,o
7709
+ return s!==n&&(i=(n=s)&&RS(e,s,o)),i}return s._value=t,s}function AS(e){return function(t){this.textContent=e.call(this,t)}}function ES(e){var t,o
7686
7710
  function i(){var i=e.apply(this,arguments)
7687
- return i!==o&&(t=(o=i)&&_S(i)),t}return i._value=e,i}var RS=0
7688
- function MS(e,t,o,i){this._groups=e,this._parents=t,this._name=o,this._id=i}function AS(){return++RS}var ES=xC.prototype
7689
- MS.prototype={constructor:MS,select:function(e){var t=this._name,o=this._id
7690
- "function"!=typeof e&&(e=g$(e))
7691
- for(var i=this._groups,n=i.length,s=new Array(n),r=0;r<n;++r)for(var a,l,c=i[r],d=c.length,h=s[r]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,Yk(h[u],t,o,u,h,eS(a,o)))
7692
- return new MS(s,this._parents,t,o)},selectAll:function(e){var t=this._name,o=this._id
7693
- "function"!=typeof e&&(e=f$(e))
7694
- for(var i=this._groups,n=i.length,s=[],r=[],a=0;a<n;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),g=eS(l,o),v=0,m=p.length;v<m;++v)(u=p[v])&&Yk(u,t,o,v,p,g)
7695
- s.push(p),r.push(l)}return new MS(s,r,t,o)},selectChild:ES.selectChild,selectChildren:ES.selectChildren,filter:function(e){"function"!=typeof e&&(e=b$(e))
7711
+ return i!==o&&(t=(o=i)&&AS(i)),t}return i._value=e,i}var OS=0
7712
+ function FS(e,t,o,i){this._groups=e,this._parents=t,this._name=o,this._id=i}function VS(){return++OS}var HS=kC.prototype
7713
+ FS.prototype={constructor:FS,select:function(e){var t=this._name,o=this._id
7714
+ "function"!=typeof e&&(e=b$(e))
7715
+ for(var i=this._groups,n=i.length,s=new Array(n),r=0;r<n;++r)for(var a,l,c=i[r],d=c.length,h=s[r]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,tS(h[u],t,o,u,h,nS(a,o)))
7716
+ return new FS(s,this._parents,t,o)},selectAll:function(e){var t=this._name,o=this._id
7717
+ "function"!=typeof e&&(e=y$(e))
7718
+ for(var i=this._groups,n=i.length,s=[],r=[],a=0;a<n;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),g=nS(l,o),v=0,m=p.length;v<m;++v)(u=p[v])&&tS(u,t,o,v,p,g)
7719
+ s.push(p),r.push(l)}return new FS(s,r,t,o)},selectChild:HS.selectChild,selectChildren:HS.selectChildren,filter:function(e){"function"!=typeof e&&(e=$$(e))
7696
7720
  for(var t=this._groups,o=t.length,i=new Array(o),n=0;n<o;++n)for(var s,r=t[n],a=r.length,l=i[n]=[],c=0;c<a;++c)(s=r[c])&&e.call(s,s.__data__,c,r)&&l.push(s)
7697
- return new MS(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
7721
+ return new FS(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
7698
7722
  for(var t=this._groups,o=e._groups,i=t.length,n=o.length,s=Math.min(i,n),r=new Array(i),a=0;a<s;++a)for(var l,c=t[a],d=o[a],h=c.length,u=r[a]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(u[p]=l)
7699
7723
  for(;a<i;++a)r[a]=t[a]
7700
- return new MS(r,this._parents,this._name,this._id)},selection:function(){return new $S(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,o=AS(),i=this._groups,n=i.length,s=0;s<n;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)if(r=a[c]){var d=eS(r,t)
7701
- Yk(r,e,o,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new MS(i,this._parents,e,o)},call:ES.call,nodes:ES.nodes,node:ES.node,size:ES.size,empty:ES.empty,each:ES.each,on:function(e,t){var o=this._id
7702
- return arguments.length<2?eS(this.node(),o).on.on(e):this.each(yS(o,e,t))},attr:function(e,t){var o=c$(e),i="transform"===o?Rk:sS
7703
- return this.attrTween(e,"function"==typeof t?(o.local?hS:dS)(o,i,nS(this,"attr."+e,t)):null==t?(o.local?aS:rS)(o):(o.local?cS:lS)(o,i,t))},attrTween:function(e,t){var o="attr."+e
7724
+ return new FS(r,this._parents,this._name,this._id)},selection:function(){return new _S(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,o=VS(),i=this._groups,n=i.length,s=0;s<n;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)if(r=a[c]){var d=nS(r,t)
7725
+ tS(r,e,o,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new FS(i,this._parents,e,o)},call:HS.call,nodes:HS.nodes,node:HS.node,size:HS.size,empty:HS.empty,each:HS.each,on:function(e,t){var o=this._id
7726
+ return arguments.length<2?nS(this.node(),o).on.on(e):this.each(SS(o,e,t))},attr:function(e,t){var o=p$(e),i="transform"===o?Ok:cS
7727
+ return this.attrTween(e,"function"==typeof t?(o.local?vS:gS)(o,i,lS(this,"attr."+e,t)):null==t?(o.local?hS:dS)(o):(o.local?pS:uS)(o,i,t))},attrTween:function(e,t){var o="attr."+e
7704
7728
  if(arguments.length<2)return(o=this.tween(o))&&o._value
7705
7729
  if(null==t)return this.tween(o,null)
7706
7730
  if("function"!=typeof t)throw new Error
7707
- var i=c$(e)
7708
- return this.tween(o,(i.local?gS:vS)(i,t))},style:function(e,t,o){var i="transform"==(e+="")?Ik:sS
7731
+ var i=p$(e)
7732
+ return this.tween(o,(i.local?bS:wS)(i,t))},style:function(e,t,o){var i="transform"==(e+="")?Ek:cS
7709
7733
  return null==t?this.styleTween(e,function(e,t){var o,i,n
7710
- return function(){var s=N$(this,e),r=(this.style.removeProperty(e),N$(this,e))
7711
- return s===r?null:s===o&&r===i?n:n=t(o=s,i=r)}}(e,i)).on("end.style."+e,CS(e)):"function"==typeof t?this.styleTween(e,function(e,t,o){var i,n,s
7712
- return function(){var r=N$(this,e),a=o(this),l=a+""
7713
- return null==a&&(this.style.removeProperty(e),l=a=N$(this,e)),r===l?null:r===i&&l===n?s:(n=l,s=t(i=r,a))}}(e,i,nS(this,"style."+e,t))).each(function(e,t){var o,i,n,s,r="style."+t,a="end."+r
7714
- return function(){var l=Jk(this,e),c=l.on,d=null==l.value[r]?s||(s=CS(t)):void 0
7734
+ return function(){var s=U$(this,e),r=(this.style.removeProperty(e),U$(this,e))
7735
+ return s===r?null:s===o&&r===i?n:n=t(o=s,i=r)}}(e,i)).on("end.style."+e,IS(e)):"function"==typeof t?this.styleTween(e,function(e,t,o){var i,n,s
7736
+ return function(){var r=U$(this,e),a=o(this),l=a+""
7737
+ return null==a&&(this.style.removeProperty(e),l=a=U$(this,e)),r===l?null:r===i&&l===n?s:(n=l,s=t(i=r,a))}}(e,i,lS(this,"style."+e,t))).each(function(e,t){var o,i,n,s,r="style."+t,a="end."+r
7738
+ return function(){var l=iS(this,e),c=l.on,d=null==l.value[r]?s||(s=IS(t)):void 0
7715
7739
  c===o&&n===d||(i=(o=c).copy()).on(a,n=d),l.on=i}}(this._id,e)):this.styleTween(e,function(e,t,o){var i,n,s=o+""
7716
- return function(){var r=N$(this,e)
7740
+ return function(){var r=U$(this,e)
7717
7741
  return r===s?null:r===i?n:n=t(i=r,o)}}(e,i,t),o).on("end.style."+e,null)},styleTween:function(e,t,o){var i="style."+(e+="")
7718
7742
  if(arguments.length<2)return(i=this.tween(i))&&i._value
7719
7743
  if(null==t)return this.tween(i,null)
7720
7744
  if("function"!=typeof t)throw new Error
7721
- return this.tween(i,SS(e,t,null==o?"":o))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
7722
- this.textContent=null==t?"":t}}(nS(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
7745
+ return this.tween(i,MS(e,t,null==o?"":o))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
7746
+ this.textContent=null==t?"":t}}(lS(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
7723
7747
  if(arguments.length<1)return(t=this.tween(t))&&t._value
7724
7748
  if(null==e)return this.tween(t,null)
7725
7749
  if("function"!=typeof e)throw new Error
7726
- return this.tween(t,IS(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
7750
+ return this.tween(t,ES(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
7727
7751
  for(var o in this.__transition)if(+o!==e)return
7728
7752
  t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var o=this._id
7729
- if(e+="",arguments.length<2){for(var i,n=eS(this.node(),o).tween,s=0,r=n.length;s<r;++s)if((i=n[s]).name===e)return i.value
7730
- return null}return this.each((null==t?oS:iS)(o,e,t))},delay:function(e){var t=this._id
7731
- return arguments.length?this.each(("function"==typeof e?mS:fS)(t,e)):eS(this.node(),t).delay},duration:function(e){var t=this._id
7732
- return arguments.length?this.each(("function"==typeof e?bS:wS)(t,e)):eS(this.node(),t).duration},ease:function(e){var t=this._id
7733
- return arguments.length?this.each(xS(t,e)):eS(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
7753
+ if(e+="",arguments.length<2){for(var i,n=nS(this.node(),o).tween,s=0,r=n.length;s<r;++s)if((i=n[s]).name===e)return i.value
7754
+ return null}return this.each((null==t?rS:aS)(o,e,t))},delay:function(e){var t=this._id
7755
+ return arguments.length?this.each(("function"==typeof e?xS:yS)(t,e)):nS(this.node(),t).delay},duration:function(e){var t=this._id
7756
+ return arguments.length?this.each(("function"==typeof e?$S:CS)(t,e)):nS(this.node(),t).duration},ease:function(e){var t=this._id
7757
+ return arguments.length?this.each(kS(t,e)):nS(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
7734
7758
  return this.each(function(e,t){return function(){var o=t.apply(this,arguments)
7735
7759
  if("function"!=typeof o)throw new Error
7736
- Jk(this,e).ease=o}}(this._id,e))},end:function(){var e,t,o=this,i=o._id,n=o.size()
7760
+ iS(this,e).ease=o}}(this._id,e))},end:function(){var e,t,o=this,i=o._id,n=o.size()
7737
7761
  return new Promise((function(s,r){var a={value:r},l={value:function(){0==--n&&s()}}
7738
- o.each((function(){var o=Jk(this,i),n=o.on
7739
- n!==e&&((t=(e=n).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),o.on=t})),0===n&&s()}))},[Symbol.iterator]:ES[Symbol.iterator]}
7740
- var OS={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
7741
- function FS(e,t){for(var o;!(o=e.__transition)||!(o=o[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
7742
- return o}xC.prototype.interrupt=function(e){return this.each((function(){tS(this,e)}))},xC.prototype.transition=function(e){var t,o
7743
- e instanceof MS?(t=e._id,e=e._name):(t=AS(),(o=OS).time=Bk(),e=null==e?null:e+"")
7744
- for(var i=this._groups,n=i.length,s=0;s<n;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)(r=a[c])&&Yk(r,e,t,c,a,o||FS(r,t))
7745
- return new MS(i,this._parents,e,t)}
7746
- var VS=e=>()=>e
7747
- function HS(e,{sourceEvent:t,target:o,transform:i,dispatch:n}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:n}})}function PS(e,t,o){this.k=e,this.x=t,this.y=o}PS.prototype={constructor:PS,scale:function(e){return 1===e?this:new PS(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new PS(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
7748
- var TS=new PS(1,0,0)
7749
- function DS(e){for(;!e.__zoom;)if(!(e=e.parentNode))return TS
7750
- return e.__zoom}function LS(e){e.stopImmediatePropagation()}function zS(e){e.preventDefault(),e.stopImmediatePropagation()}function BS(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function NS(){var e=this
7751
- return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function ZS(){return this.__zoom||TS}function qS(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function jS(){return navigator.maxTouchPoints||"ontouchstart"in this}function US(e,t,o){var i=e.invertX(t[0][0])-o[0][0],n=e.invertX(t[1][0])-o[1][0],s=e.invertY(t[0][1])-o[0][1],r=e.invertY(t[1][1])-o[1][1]
7752
- return e.translate(n>i?(i+n)/2:Math.min(0,i)||Math.max(0,n),r>s?(s+r)/2:Math.min(0,s)||Math.max(0,r))}DS.prototype=PS.prototype
7753
- const GS=G`
7762
+ o.each((function(){var o=iS(this,i),n=o.on
7763
+ n!==e&&((t=(e=n).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),o.on=t})),0===n&&s()}))},[Symbol.iterator]:HS[Symbol.iterator]}
7764
+ var PS={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
7765
+ function TS(e,t){for(var o;!(o=e.__transition)||!(o=o[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
7766
+ return o}kC.prototype.interrupt=function(e){return this.each((function(){sS(this,e)}))},kC.prototype.transition=function(e){var t,o
7767
+ e instanceof FS?(t=e._id,e=e._name):(t=VS(),(o=PS).time=jk(),e=null==e?null:e+"")
7768
+ for(var i=this._groups,n=i.length,s=0;s<n;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)(r=a[c])&&tS(r,e,t,c,a,o||TS(r,t))
7769
+ return new FS(i,this._parents,e,t)}
7770
+ var DS=e=>()=>e
7771
+ function LS(e,{sourceEvent:t,target:o,transform:i,dispatch:n}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:n}})}function zS(e,t,o){this.k=e,this.x=t,this.y=o}zS.prototype={constructor:zS,scale:function(e){return 1===e?this:new zS(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new zS(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
7772
+ var BS=new zS(1,0,0)
7773
+ function NS(e){for(;!e.__zoom;)if(!(e=e.parentNode))return BS
7774
+ return e.__zoom}function ZS(e){e.stopImmediatePropagation()}function qS(e){e.preventDefault(),e.stopImmediatePropagation()}function jS(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function US(){var e=this
7775
+ return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function GS(){return this.__zoom||BS}function WS(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function KS(){return navigator.maxTouchPoints||"ontouchstart"in this}function XS(e,t,o){var i=e.invertX(t[0][0])-o[0][0],n=e.invertX(t[1][0])-o[1][0],s=e.invertY(t[0][1])-o[0][1],r=e.invertY(t[1][1])-o[1][1]
7776
+ return e.translate(n>i?(i+n)/2:Math.min(0,i)||Math.max(0,n),r>s?(s+r)/2:Math.min(0,s)||Math.max(0,r))}NS.prototype=zS.prototype
7777
+ const YS=G`
7754
7778
  <div class="wafer-map-container">
7755
7779
  <svg class="svg-root">
7756
7780
  <g ${Re("zoomContainer")} transform=${e=>e.transform.toString()}>
@@ -7780,7 +7804,7 @@ const GS=G`
7780
7804
  />
7781
7805
  </svg>
7782
7806
  </div>
7783
- `,WS=fe`
7807
+ `,QS=fe`
7784
7808
  :host {
7785
7809
  display: inline-block;
7786
7810
  width: 500px;
@@ -7864,68 +7888,68 @@ const GS=G`
7864
7888
  outline-width: 0px;
7865
7889
  }
7866
7890
  `
7867
- function KS(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function XS(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function YS(e){let t,o,i
7891
+ function JS(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function e_(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function t_(e){let t,o,i
7868
7892
  function n(e,i,n=0,s=e.length){if(n<s){if(0!==t(i,i))return s
7869
7893
  do{const t=n+s>>>1
7870
- o(e[t],i)<0?n=t+1:s=t}while(n<s)}return n}return 2!==e.length?(t=KS,o=(t,o)=>KS(e(t),o),i=(t,o)=>e(t)-o):(t=e===KS||e===XS?e:QS,o=e,i=e),{left:n,center:function(e,t,o=0,s=e.length){const r=n(e,t,o,s-1)
7894
+ o(e[t],i)<0?n=t+1:s=t}while(n<s)}return n}return 2!==e.length?(t=JS,o=(t,o)=>JS(e(t),o),i=(t,o)=>e(t)-o):(t=e===JS||e===e_?e:o_,o=e,i=e),{left:n,center:function(e,t,o=0,s=e.length){const r=n(e,t,o,s-1)
7871
7895
  return r>o&&i(e[r-1],t)>-i(e[r],t)?r-1:r},right:function(e,i,n=0,s=e.length){if(n<s){if(0!==t(i,i))return s
7872
7896
  do{const t=n+s>>>1
7873
- o(e[t],i)<=0?n=t+1:s=t}while(n<s)}return n}}}function QS(){return 0}function JS(e){return null===e?NaN:+e}const e_=YS(KS).right
7874
- YS(JS).center
7875
- var t_=e_
7876
- class o_ extends Map{constructor(e,t=n_){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,o]of e)this.set(t,o)}get(e){return super.get(i_(this,e))}has(e){return super.has(i_(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},o){const i=t(o)
7897
+ o(e[t],i)<=0?n=t+1:s=t}while(n<s)}return n}}}function o_(){return 0}function i_(e){return null===e?NaN:+e}const n_=t_(JS).right
7898
+ t_(i_).center
7899
+ var s_=n_
7900
+ class r_ extends Map{constructor(e,t=l_){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,o]of e)this.set(t,o)}get(e){return super.get(a_(this,e))}has(e){return super.has(a_(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},o){const i=t(o)
7877
7901
  return e.has(i)?e.get(i):(e.set(i,o),o)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},o){const i=t(o)
7878
7902
  e.has(i)&&(o=e.get(i),e.delete(i))
7879
- return o}(this,e))}}function i_({_intern:e,_key:t},o){const i=t(o)
7880
- return e.has(i)?e.get(i):o}function n_(e){return null!==e&&"object"==typeof e?e.valueOf():e}const s_=Math.sqrt(50),r_=Math.sqrt(10),a_=Math.sqrt(2)
7881
- function l_(e,t,o){const i=(t-e)/Math.max(0,o),n=Math.floor(Math.log10(i)),s=i/Math.pow(10,n),r=s>=s_?10:s>=r_?5:s>=a_?2:1
7903
+ return o}(this,e))}}function a_({_intern:e,_key:t},o){const i=t(o)
7904
+ return e.has(i)?e.get(i):o}function l_(e){return null!==e&&"object"==typeof e?e.valueOf():e}const c_=Math.sqrt(50),d_=Math.sqrt(10),h_=Math.sqrt(2)
7905
+ function u_(e,t,o){const i=(t-e)/Math.max(0,o),n=Math.floor(Math.log10(i)),s=i/Math.pow(10,n),r=s>=c_?10:s>=d_?5:s>=h_?2:1
7882
7906
  let a,l,c
7883
- return n<0?(c=Math.pow(10,-n)/r,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,n)*r,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=o&&o<2?l_(e,t,2*o):[a,l,c]}function c_(e,t,o){return l_(e=+e,t=+t,o=+o)[2]}function d_(e,t,o=JS){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+o(e[0],0,e)
7907
+ return n<0?(c=Math.pow(10,-n)/r,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,n)*r,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=o&&o<2?u_(e,t,2*o):[a,l,c]}function p_(e,t,o){return u_(e=+e,t=+t,o=+o)[2]}function g_(e,t,o=i_){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+o(e[0],0,e)
7884
7908
  if(t>=1)return+o(e[i-1],i-1,e)
7885
7909
  var i,n=(i-1)*t,s=Math.floor(n),r=+o(e[s],s,e)
7886
- return r+(+o(e[s+1],s+1,e)-r)*(n-s)}}function h_(e,t,o){e=+e,t=+t,o=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+o
7910
+ return r+(+o(e[s+1],s+1,e)-r)*(n-s)}}function v_(e,t,o){e=+e,t=+t,o=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+o
7887
7911
  for(var i=-1,n=0|Math.max(0,Math.ceil((t-e)/o)),s=new Array(n);++i<n;)s[i]=e+i*o
7888
- return s}function u_(e,t){switch(arguments.length){case 0:break
7912
+ return s}function m_(e,t){switch(arguments.length){case 0:break
7889
7913
  case 1:this.range(e)
7890
7914
  break
7891
- default:this.range(t).domain(e)}return this}const p_=Symbol("implicit")
7892
- function g_(){var e=new o_,t=[],o=[],i=p_
7915
+ default:this.range(t).domain(e)}return this}const f_=Symbol("implicit")
7916
+ function b_(){var e=new r_,t=[],o=[],i=f_
7893
7917
  function n(n){let s=e.get(n)
7894
- if(void 0===s){if(i!==p_)return i
7918
+ if(void 0===s){if(i!==f_)return i
7895
7919
  e.set(n,s=t.push(n)-1)}return o[s%o.length]}return n.domain=function(o){if(!arguments.length)return t.slice()
7896
- t=[],e=new o_
7920
+ t=[],e=new r_
7897
7921
  for(const i of o)e.has(i)||e.set(i,t.push(i)-1)
7898
- return n},n.range=function(e){return arguments.length?(o=Array.from(e),n):o.slice()},n.unknown=function(e){return arguments.length?(i=e,n):i},n.copy=function(){return g_(t,o).unknown(i)},u_.apply(n,arguments),n}function v_(){var e,t,o=g_().unknown(void 0),i=o.domain,n=o.range,s=0,r=1,a=!1,l=0,c=0,d=.5
7922
+ return n},n.range=function(e){return arguments.length?(o=Array.from(e),n):o.slice()},n.unknown=function(e){return arguments.length?(i=e,n):i},n.copy=function(){return b_(t,o).unknown(i)},m_.apply(n,arguments),n}function w_(){var e,t,o=b_().unknown(void 0),i=o.domain,n=o.range,s=0,r=1,a=!1,l=0,c=0,d=.5
7899
7923
  function h(){var o=i().length,h=r<s,u=h?r:s,p=h?s:r
7900
7924
  e=(p-u)/Math.max(1,o-l+2*c),a&&(e=Math.floor(e)),u+=(p-u-e*(o-l))*d,t=e*(1-l),a&&(u=Math.round(u),t=Math.round(t))
7901
- var g=h_(o).map((function(t){return u+e*t}))
7902
- return n(h?g.reverse():g)}return delete o.unknown,o.domain=function(e){return arguments.length?(i(e),h()):i()},o.range=function(e){return arguments.length?([s,r]=e,s=+s,r=+r,h()):[s,r]},o.rangeRound=function(e){return[s,r]=e,s=+s,r=+r,a=!0,h()},o.bandwidth=function(){return t},o.step=function(){return e},o.round=function(e){return arguments.length?(a=!!e,h()):a},o.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},o.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},o.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},o.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},o.copy=function(){return v_(i(),[s,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},u_.apply(h(),arguments)}function m_(e){return+e}var f_=[0,1]
7903
- function b_(e){return e}function w_(e,t){return(t-=e=+e)?function(o){return(o-e)/t}:(o=isNaN(t)?NaN:.5,function(){return o})
7904
- var o}function x_(e,t,o){var i=e[0],n=e[1],s=t[0],r=t[1]
7905
- return n<i?(i=w_(n,i),s=o(r,s)):(i=w_(i,n),s=o(s,r)),function(e){return s(i(e))}}function y_(e,t,o){var i=Math.min(e.length,t.length)-1,n=new Array(i),s=new Array(i),r=-1
7906
- for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<i;)n[r]=w_(e[r],e[r+1]),s[r]=o(t[r],t[r+1])
7907
- return function(t){var o=t_(e,t,1,i)-1
7908
- return s[o](n[o](t))}}function $_(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function C_(){var e,t,o,i,n,s,r=f_,a=f_,l=xk,c=b_
7925
+ var g=v_(o).map((function(t){return u+e*t}))
7926
+ return n(h?g.reverse():g)}return delete o.unknown,o.domain=function(e){return arguments.length?(i(e),h()):i()},o.range=function(e){return arguments.length?([s,r]=e,s=+s,r=+r,h()):[s,r]},o.rangeRound=function(e){return[s,r]=e,s=+s,r=+r,a=!0,h()},o.bandwidth=function(){return t},o.step=function(){return e},o.round=function(e){return arguments.length?(a=!!e,h()):a},o.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},o.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},o.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},o.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},o.copy=function(){return w_(i(),[s,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},m_.apply(h(),arguments)}function x_(e){return+e}var y_=[0,1]
7927
+ function $_(e){return e}function C_(e,t){return(t-=e=+e)?function(o){return(o-e)/t}:(o=isNaN(t)?NaN:.5,function(){return o})
7928
+ var o}function k_(e,t,o){var i=e[0],n=e[1],s=t[0],r=t[1]
7929
+ return n<i?(i=C_(n,i),s=o(r,s)):(i=C_(i,n),s=o(s,r)),function(e){return s(i(e))}}function S_(e,t,o){var i=Math.min(e.length,t.length)-1,n=new Array(i),s=new Array(i),r=-1
7930
+ for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<i;)n[r]=C_(e[r],e[r+1]),s[r]=o(t[r],t[r+1])
7931
+ return function(t){var o=s_(e,t,1,i)-1
7932
+ return s[o](n[o](t))}}function __(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function I_(){var e,t,o,i,n,s,r=y_,a=y_,l=kk,c=$_
7909
7933
  function d(){var e,t,o,l=Math.min(r.length,a.length)
7910
- return c!==b_&&(e=r[0],t=r[l-1],e>t&&(o=e,e=t,t=o),c=function(o){return Math.max(e,Math.min(t,o))}),i=l>2?y_:x_,n=s=null,h}function h(t){return null==t||isNaN(t=+t)?o:(n||(n=i(r.map(e),a,l)))(e(c(t)))}return h.invert=function(o){return c(t((s||(s=i(a,r.map(e),vk)))(o)))},h.domain=function(e){return arguments.length?(r=Array.from(e,m_),d()):r.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),d()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),l=yk,d()},h.clamp=function(e){return arguments.length?(c=!!e||b_,d()):c!==b_},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(o=e,h):o},function(o,i){return e=o,t=i,d()}}function k_(){return C_()(b_,b_)}function S_(e,t){if((o=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
7934
+ return c!==$_&&(e=r[0],t=r[l-1],e>t&&(o=e,e=t,t=o),c=function(o){return Math.max(e,Math.min(t,o))}),i=l>2?S_:k_,n=s=null,h}function h(t){return null==t||isNaN(t=+t)?o:(n||(n=i(r.map(e),a,l)))(e(c(t)))}return h.invert=function(o){return c(t((s||(s=i(a,r.map(e),wk)))(o)))},h.domain=function(e){return arguments.length?(r=Array.from(e,x_),d()):r.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),d()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),l=Sk,d()},h.clamp=function(e){return arguments.length?(c=!!e||$_,d()):c!==$_},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(o=e,h):o},function(o,i){return e=o,t=i,d()}}function R_(){return I_()($_,$_)}function M_(e,t){if((o=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
7911
7935
  var o,i=e.slice(0,o)
7912
- return[i.length>1?i[0]+i.slice(2):i,+e.slice(o+1)]}function __(e){return(e=S_(Math.abs(e)))?e[1]:NaN}var I_,R_=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
7913
- function M_(e){if(!(t=R_.exec(e)))throw new Error("invalid format: "+e)
7936
+ return[i.length>1?i[0]+i.slice(2):i,+e.slice(o+1)]}function A_(e){return(e=M_(Math.abs(e)))?e[1]:NaN}var E_,O_=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
7937
+ function F_(e){if(!(t=O_.exec(e)))throw new Error("invalid format: "+e)
7914
7938
  var t
7915
- return new A_({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function A_(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function E_(e,t){var o=S_(e,t)
7939
+ return new V_({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function V_(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function H_(e,t){var o=M_(e,t)
7916
7940
  if(!o)return e+""
7917
7941
  var i=o[0],n=o[1]
7918
- return n<0?"0."+new Array(-n).join("0")+i:i.length>n+1?i.slice(0,n+1)+"."+i.slice(n+1):i+new Array(n-i.length+2).join("0")}M_.prototype=A_.prototype,A_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}
7919
- var O_={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>E_(100*e,t),r:E_,s:function(e,t){var o=S_(e,t)
7942
+ return n<0?"0."+new Array(-n).join("0")+i:i.length>n+1?i.slice(0,n+1)+"."+i.slice(n+1):i+new Array(n-i.length+2).join("0")}F_.prototype=V_.prototype,V_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}
7943
+ var P_={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>H_(100*e,t),r:H_,s:function(e,t){var o=M_(e,t)
7920
7944
  if(!o)return e+""
7921
- var i=o[0],n=o[1],s=n-(I_=3*Math.max(-8,Math.min(8,Math.floor(n/3))))+1,r=i.length
7922
- return s===r?i:s>r?i+new Array(s-r+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+S_(e,Math.max(0,t+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
7923
- function F_(e){return e}var V_,H_,P_,T_=Array.prototype.map,D_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
7924
- function L_(e){var t,o,i=void 0===e.grouping||void 0===e.thousands?F_:(t=T_.call(e.grouping,Number),o=e.thousands+"",function(e,i){for(var n=e.length,s=[],r=0,a=t[0],l=0;n>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),s.push(e.substring(n-=a,n+a)),!((l+=a+1)>i));)a=t[r=(r+1)%t.length]
7925
- return s.reverse().join(o)}),n=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",r=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?F_:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(T_.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+""
7926
- function h(e){var t=(e=M_(e)).fill,o=e.align,h=e.sign,u=e.symbol,p=e.zero,g=e.width,v=e.comma,m=e.precision,f=e.trim,b=e.type
7927
- "n"===b?(v=!0,b="g"):O_[b]||(void 0===m&&(m=12),f=!0,b="g"),(p||"0"===t&&"="===o)&&(p=!0,t="0",o="=")
7928
- var w="$"===u?n:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===u?s:/[%p]/.test(b)?l:"",y=O_[b],$=/[defgprs%]/.test(b)
7945
+ var i=o[0],n=o[1],s=n-(E_=3*Math.max(-8,Math.min(8,Math.floor(n/3))))+1,r=i.length
7946
+ return s===r?i:s>r?i+new Array(s-r+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+M_(e,Math.max(0,t+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
7947
+ function T_(e){return e}var D_,L_,z_,B_=Array.prototype.map,N_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
7948
+ function Z_(e){var t,o,i=void 0===e.grouping||void 0===e.thousands?T_:(t=B_.call(e.grouping,Number),o=e.thousands+"",function(e,i){for(var n=e.length,s=[],r=0,a=t[0],l=0;n>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),s.push(e.substring(n-=a,n+a)),!((l+=a+1)>i));)a=t[r=(r+1)%t.length]
7949
+ return s.reverse().join(o)}),n=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",r=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?T_:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(B_.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+""
7950
+ function h(e){var t=(e=F_(e)).fill,o=e.align,h=e.sign,u=e.symbol,p=e.zero,g=e.width,v=e.comma,m=e.precision,f=e.trim,b=e.type
7951
+ "n"===b?(v=!0,b="g"):P_[b]||(void 0===m&&(m=12),f=!0,b="g"),(p||"0"===t&&"="===o)&&(p=!0,t="0",o="=")
7952
+ var w="$"===u?n:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===u?s:/[%p]/.test(b)?l:"",y=P_[b],$=/[defgprs%]/.test(b)
7929
7953
  function C(e){var n,s,l,u=w,C=x
7930
7954
  if("c"===b)C=y(e)+C,e=""
7931
7955
  else{var k=(e=+e)<0||1/e<0
@@ -7934,7 +7958,7 @@ break
7934
7958
  case"0":0===n&&(n=i),t=i
7935
7959
  break
7936
7960
  default:if(!+e[i])break e
7937
- n>0&&(n=0)}return n>0?e.slice(0,n)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==h&&(k=!1),u=(k?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?D_[8+I_/3]:"")+C+(k&&"("===h?")":""),$)for(n=-1,s=e.length;++n<s;)if(48>(l=e.charCodeAt(n))||l>57){C=(46===l?r+e.slice(n+1):e.slice(n))+C,e=e.slice(0,n)
7961
+ n>0&&(n=0)}return n>0?e.slice(0,n)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==h&&(k=!1),u=(k?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?N_[8+E_/3]:"")+C+(k&&"("===h?")":""),$)for(n=-1,s=e.length;++n<s;)if(48>(l=e.charCodeAt(n))||l>57){C=(46===l?r+e.slice(n+1):e.slice(n))+C,e=e.slice(0,n)
7938
7962
  break}}v&&!p&&(e=i(e,1/0))
7939
7963
  var S=u.length+e.length+C.length,_=S<g?new Array(g-S+1).join(t):""
7940
7964
  switch(v&&p&&(e=i(_+e,_.length?g-C.length:1/0),_=""),o){case"<":e=u+e+C+_
@@ -7943,19 +7967,19 @@ case"=":e=u+_+e+C
7943
7967
  break
7944
7968
  case"^":e=_.slice(0,S=_.length>>1)+u+e+C+_.slice(S)
7945
7969
  break
7946
- default:e=_+u+e+C}return a(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var o=h(((e=M_(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(__(t)/3))),n=Math.pow(10,-i),s=D_[8+i/3]
7947
- return function(e){return o(n*e)+s}}}}function z_(e,t,o,i){var n,s=function(e,t,o){o=+o
7948
- const i=(t=+t)<(e=+e),n=i?c_(t,e,o):c_(e,t,o)
7970
+ default:e=_+u+e+C}return a(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var o=h(((e=F_(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(A_(t)/3))),n=Math.pow(10,-i),s=N_[8+i/3]
7971
+ return function(e){return o(n*e)+s}}}}function q_(e,t,o,i){var n,s=function(e,t,o){o=+o
7972
+ const i=(t=+t)<(e=+e),n=i?p_(t,e,o):p_(e,t,o)
7949
7973
  return(i?-1:1)*(n<0?1/-n:n)}(e,t,o)
7950
- switch((i=M_(null==i?",f":i)).type){case"s":var r=Math.max(Math.abs(e),Math.abs(t))
7951
- return null!=i.precision||isNaN(n=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(__(t)/3)))-__(Math.abs(e)))}(s,r))||(i.precision=n),P_(i,r)
7952
- case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(n=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,__(t)-__(e))+1}(s,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=n-("e"===i.type))
7974
+ switch((i=F_(null==i?",f":i)).type){case"s":var r=Math.max(Math.abs(e),Math.abs(t))
7975
+ return null!=i.precision||isNaN(n=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(A_(t)/3)))-A_(Math.abs(e)))}(s,r))||(i.precision=n),z_(i,r)
7976
+ case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(n=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,A_(t)-A_(e))+1}(s,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=n-("e"===i.type))
7953
7977
  break
7954
- case"f":case"%":null!=i.precision||isNaN(n=function(e){return Math.max(0,-__(Math.abs(e)))}(s))||(i.precision=n-2*("%"===i.type))}return H_(i)}function B_(e){var t=e.domain
7978
+ case"f":case"%":null!=i.precision||isNaN(n=function(e){return Math.max(0,-A_(Math.abs(e)))}(s))||(i.precision=n-2*("%"===i.type))}return L_(i)}function j_(e){var t=e.domain
7955
7979
  return e.ticks=function(e){var o=t()
7956
7980
  return function(e,t,o){if(!((o=+o)>0))return[]
7957
7981
  if((e=+e)==(t=+t))return[e]
7958
- const i=t<e,[n,s,r]=i?l_(t,e,o):l_(e,t,o)
7982
+ const i=t<e,[n,s,r]=i?u_(t,e,o):u_(e,t,o)
7959
7983
  if(!(s>=n))return[]
7960
7984
  const a=s-n+1,l=new Array(a)
7961
7985
  if(i)if(r<0)for(let e=0;e<a;++e)l[e]=(s-e)/-r
@@ -7963,85 +7987,85 @@ else for(let e=0;e<a;++e)l[e]=(s-e)*r
7963
7987
  else if(r<0)for(let e=0;e<a;++e)l[e]=(n+e)/-r
7964
7988
  else for(let e=0;e<a;++e)l[e]=(n+e)*r
7965
7989
  return l}(o[0],o[o.length-1],null==e?10:e)},e.tickFormat=function(e,o){var i=t()
7966
- return z_(i[0],i[i.length-1],null==e?10:e,o)},e.nice=function(o){null==o&&(o=10)
7990
+ return q_(i[0],i[i.length-1],null==e?10:e,o)},e.nice=function(o){null==o&&(o=10)
7967
7991
  var i,n,s=t(),r=0,a=s.length-1,l=s[r],c=s[a],d=10
7968
- for(c<l&&(n=l,l=c,c=n,n=r,r=a,a=n);d-- >0;){if((n=c_(l,c,o))===i)return s[r]=l,s[a]=c,t(s)
7992
+ for(c<l&&(n=l,l=c,c=n,n=r,r=a,a=n);d-- >0;){if((n=p_(l,c,o))===i)return s[r]=l,s[a]=c,t(s)
7969
7993
  if(n>0)l=Math.floor(l/n)*n,c=Math.ceil(c/n)*n
7970
7994
  else{if(!(n<0))break
7971
- l=Math.ceil(l*n)/n,c=Math.floor(c*n)/n}i=n}return e},e}function N_(){var e=k_()
7972
- return e.copy=function(){return $_(e,N_())},u_.apply(e,arguments),B_(e)}function Z_(){var e,t=[],o=[],i=[]
7995
+ l=Math.ceil(l*n)/n,c=Math.floor(c*n)/n}i=n}return e},e}function U_(){var e=R_()
7996
+ return e.copy=function(){return __(e,U_())},m_.apply(e,arguments),j_(e)}function G_(){var e,t=[],o=[],i=[]
7973
7997
  function n(){var e=0,n=Math.max(1,o.length)
7974
- for(i=new Array(n-1);++e<n;)i[e-1]=d_(t,e/n)
7975
- return s}function s(t){return null==t||isNaN(t=+t)?e:o[t_(i,t)]}return s.invertExtent=function(e){var n=o.indexOf(e)
7998
+ for(i=new Array(n-1);++e<n;)i[e-1]=g_(t,e/n)
7999
+ return s}function s(t){return null==t||isNaN(t=+t)?e:o[s_(i,t)]}return s.invertExtent=function(e){var n=o.indexOf(e)
7976
8000
  return n<0?[NaN,NaN]:[n>0?i[n-1]:t[0],n<i.length?i[n]:t[t.length-1]]},s.domain=function(e){if(!arguments.length)return t.slice()
7977
8001
  t=[]
7978
8002
  for(let o of e)null==o||isNaN(o=+o)||t.push(o)
7979
- return t.sort(KS),n()},s.range=function(e){return arguments.length?(o=Array.from(e),n()):o.slice()},s.unknown=function(t){return arguments.length?(e=t,s):e},s.quantiles=function(){return i.slice()},s.copy=function(){return Z_().domain(t).range(o).unknown(e)},u_.apply(s,arguments)}V_=L_({thousands:",",grouping:[3],currency:["$",""]}),H_=V_.format,P_=V_.formatPrefix
7980
- const q_="bottom-left",j_="bottom-right",U_="top-left",G_="top-right",W_="top",K_="show",X_="hide",Y_="linear",Q_="ordinal"
7981
- class J_{constructor(e){this.defaultPadding=0,this.baseMarginPercentage=.04
8003
+ return t.sort(JS),n()},s.range=function(e){return arguments.length?(o=Array.from(e),n()):o.slice()},s.unknown=function(t){return arguments.length?(e=t,s):e},s.quantiles=function(){return i.slice()},s.copy=function(){return G_().domain(t).range(o).unknown(e)},m_.apply(s,arguments)}D_=Z_({thousands:",",grouping:[3],currency:["$",""]}),L_=D_.format,z_=D_.formatPrefix
8004
+ const W_="bottom-left",K_="bottom-right",X_="top-left",Y_="top-right",Q_="top",J_="show",eI="hide",tI="linear",oI="ordinal"
8005
+ class iI{constructor(e){this.defaultPadding=0,this.baseMarginPercentage=.04
7982
8006
  const t={width:e.canvasWidth,height:e.canvasHeight},o=this.calculateGridDimensions(e.dies),i=Math.min(t.width,t.height),n={top:(t.height-i)/2,right:(t.width-i)/2,bottom:(t.height-i)/2,left:(t.width-i)/2},s={top:i*this.baseMarginPercentage,right:i*this.baseMarginPercentage,bottom:i*this.baseMarginPercentage,left:i*this.baseMarginPercentage}
7983
8007
  this.margin=this.calculateMarginAddition(s,n),this.containerDimensions=this.calculateContainerDimensions(t,this.margin)
7984
8008
  const r=Math.min(this.containerDimensions.width,this.containerDimensions.height)
7985
8009
  this.horizontalScale=this.createHorizontalScale(e.quadrant,o,r),this.invertedHorizontalScale=this.createInvertedHorizontalScale(e.quadrant,o,r),this.verticalScale=this.createVerticalScale(e.quadrant,o,r),this.invertedVerticalScale=this.createInvertedVerticalScale(e.quadrant,o,r),this.dieDimensions={width:this.horizontalScale.bandwidth(),height:this.verticalScale.bandwidth()},this.radius=r/2}calculateGridDimensions(e){if(0===e.length||void 0===e[0])return{origin:{x:0,y:0},rows:0,cols:0}
7986
8010
  const t={x:e[0].x,y:e[0].y},o={x:e[0].x,y:e[0].y}
7987
8011
  for(const i of e)i.x<t.x&&(t.x=i.x),i.y<t.y&&(t.y=i.y),i.x>o.x&&(o.x=i.x),i.y>o.y&&(o.y=i.y)
7988
- return{origin:t,rows:o.y-t.y+1,cols:o.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,o){const i=v_().domain(h_(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
7989
- return e===q_||e===U_?i.range([0,o]):i.range([o,0])}createInvertedHorizontalScale(e,t,o){const i=Z_().domain([0,o])
7990
- return e===q_||e===U_?i.range(h_(t.origin.x,t.origin.x+t.cols)):i.range(h_(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,o){const i=v_().domain(h_(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
7991
- return e===q_||e===j_?i.range([o,0]):i.range([0,o])}createInvertedVerticalScale(e,t,o){const i=Z_().domain([0,o])
7992
- return e===q_||e===j_?i.range(h_(t.origin.y,t.origin.y+t.rows).reverse()):i.range(h_(t.origin.y,t.origin.y+t.rows))}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}}class eI{constructor(e,t,o,i,n){this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)",this.d3ColorScale=this.createD3ColorScale(e.colorScale,e.colorScaleMode),this.labelsFontSize=this.calculateLabelsFontSize(i,e.maxCharacters),this.diesRenderInfo=[]
8012
+ return{origin:t,rows:o.y-t.y+1,cols:o.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,o){const i=w_().domain(v_(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
8013
+ return e===W_||e===X_?i.range([0,o]):i.range([o,0])}createInvertedHorizontalScale(e,t,o){const i=G_().domain([0,o])
8014
+ return e===W_||e===X_?i.range(v_(t.origin.x,t.origin.x+t.cols)):i.range(v_(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,o){const i=w_().domain(v_(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
8015
+ return e===W_||e===K_?i.range([o,0]):i.range([0,o])}createInvertedVerticalScale(e,t,o){const i=G_().domain([0,o])
8016
+ return e===W_||e===K_?i.range(v_(t.origin.y,t.origin.y+t.rows).reverse()):i.range(v_(t.origin.y,t.origin.y+t.rows))}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}}class nI{constructor(e,t,o,i,n){this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)",this.d3ColorScale=this.createD3ColorScale(e.colorScale,e.colorScaleMode),this.labelsFontSize=this.calculateLabelsFontSize(i,e.maxCharacters),this.diesRenderInfo=[]
7993
8017
  for(const i of e.dies){const s=t(i.x)??0,r=o(i.y)??0
7994
- this.diesRenderInfo.push({x:s+n.right,y:r+n.top,fillStyle:this.calculateFillStyle(i.value,e.colorScaleMode,e.highlightedValues),text:this.buildLabel(i.value,e.maxCharacters,e.dieLabelsHidden,e.dieLabelsSuffix)})}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?N_().domain(e.values.map((e=>+e))).range(e.colors):g_().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,o,i){if(o||!this.dieHasData(e))return""
8018
+ this.diesRenderInfo.push({x:s+n.right,y:r+n.top,fillStyle:this.calculateFillStyle(i.value,e.colorScaleMode,e.highlightedValues),text:this.buildLabel(i.value,e.maxCharacters,e.dieLabelsHidden,e.dieLabelsSuffix)})}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?U_().domain(e.values.map((e=>+e))).range(e.colors):b_().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,o,i){if(o||!this.dieHasData(e))return""
7995
8019
  const n=`${e}${i}`
7996
- return n.length>t?`${n.substring(0,t)}…`:n}calculateOpacity(e,t){return t.length>0&&!t.some((t=>t===e))?this.nonHighlightedOpacity:1}isColorScaleLinear(e){return e===Y_}isColorScaleOrdinal(e){return e===Q_}calculateFillStyle(e,t,o){let i=this.emptyDieColor
8020
+ return n.length>t?`${n.substring(0,t)}…`:n}calculateOpacity(e,t){return t.length>0&&!t.some((t=>t===e))?this.nonHighlightedOpacity:1}isColorScaleLinear(e){return e===tI}isColorScaleOrdinal(e){return e===oI}calculateFillStyle(e,t,o){let i=this.emptyDieColor
7997
8021
  if(this.dieHasData(e)&&(isNaN(+e)?i=this.nanDieColor:this.isColorScaleLinear(t)?i=this.d3ColorScale(+e):this.isColorScaleOrdinal(t)&&(i=this.d3ColorScale(e))),void 0===i)return this.emptyDieColor
7998
8022
  let n=Pn(i)
7999
- return null===n?this.emptyDieColor:(n=new Rn(n.r,n.g,n.b,this.calculateOpacity(e,o)),n.toStringWebRGBA())}}class tI{constructor(e){this.computations=new J_(e),this.prerendering=new eI(e,this.horizontalScale,this.verticalScale,this.dieDimensions,this.margin),this.dataMap=new Map(e.dies.map((e=>[`${e.x}_${e.y}`,e])))}get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get invertedHorizontalScale(){return this.computations.invertedHorizontalScale}get verticalScale(){return this.computations.verticalScale}get invertedVerticalScale(){return this.computations.invertedVerticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}getWaferMapDie(e){return this.dataMap.get(`${e.x}_${e.y}`)}}class oI{constructor(e){this.wafermap=e,this.dies=e.dataManager.diesRenderInfo,this.dimensions=e.dataManager.dieDimensions,this.labelFontSize=e.dataManager.labelsFontSize}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.dataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.dataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?X_:K_,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x),t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y),o=this.wafermap.transform.apply([e+this.wafermap.dataManager.margin.left,t+this.wafermap.dataManager.margin.top])
8023
+ return null===n?this.emptyDieColor:(n=new Rn(n.r,n.g,n.b,this.calculateOpacity(e,o)),n.toStringWebRGBA())}}class sI{constructor(e){this.computations=new iI(e),this.prerendering=new nI(e,this.horizontalScale,this.verticalScale,this.dieDimensions,this.margin),this.dataMap=new Map(e.dies.map((e=>[`${e.x}_${e.y}`,e])))}get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get invertedHorizontalScale(){return this.computations.invertedHorizontalScale}get verticalScale(){return this.computations.verticalScale}get invertedVerticalScale(){return this.computations.invertedVerticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}getWaferMapDie(e){return this.dataMap.get(`${e.x}_${e.y}`)}}class rI{constructor(e){this.wafermap=e,this.dies=e.dataManager.diesRenderInfo,this.dimensions=e.dataManager.dieDimensions,this.labelFontSize=e.dataManager.labelsFontSize}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.dataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.dataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?eI:J_,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x),t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y),o=this.wafermap.transform.apply([e+this.wafermap.dataManager.margin.left,t+this.wafermap.dataManager.margin.top])
8000
8024
  return`translate(${o[0]}, ${o[1]})`}return""}renderDies(){let e
8001
8025
  this.dies.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.fillStyle?-1:0))
8002
8026
  for(const t of this.dies)e||(this.wafermap.canvasContext.fillStyle=t.fillStyle),e&&t.fillStyle!==e.fillStyle&&t.fillStyle&&(this.wafermap.canvasContext.fillStyle=t.fillStyle),this.wafermap.canvasContext.fillRect(t.x,t.y,this.dimensions.width,this.dimensions.height),e=t}renderText(){const e=this.dimensions.width*this.dimensions.height*(this.wafermap.transform.k||1),t=this.labelFontSize
8003
8027
  this.wafermap.canvasContext.font=`${t.toString()}px sans-serif`,this.wafermap.canvasContext.fillStyle="#ffffff",this.wafermap.canvasContext.textAlign="center",this.wafermap.canvasContext.lineCap="butt"
8004
8028
  const o=this.wafermap.canvasContext.measureText("M")
8005
- if(e>=50)for(const e of this.dies)this.wafermap.canvasContext.fillText(e.text,e.x+this.dimensions.width/2,e.y+this.dimensions.height/2+o.width/2,this.dimensions.width-this.dimensions.width/100*20)}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvasWidth*this.wafermap.transform.k,this.wafermap.canvasHeight*this.wafermap.transform.k)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}}class iI{constructor(e){this.wafermap=e,this.zoomTransform=TS,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100,this.zoomBehavior=this.createZoomBehavior(),this.zoomBehavior(yC(this.wafermap.canvas))}rescale(e){const t=e.transform
8006
- t.k===this.minScale?(this.zoomTransform=TS,this.zoomBehavior.transform(yC(this.wafermap.canvas),TS)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}createZoomBehavior(){const e=function(){var e,t,o,i=BS,n=NS,s=US,r=qS,a=jS,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Ok,u=o$("start","zoom","end"),p=500,g=0,v=10
8007
- function m(e){e.property("__zoom",ZS).on("wheel.zoom",C,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",S).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",R).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new PS(t,e.x,e.y)}function b(e,t,o){var i=t[0]-o[0]*e.k,n=t[1]-o[1]*e.k
8008
- return i===e.x&&n===e.y?e:new PS(e.k,i,n)}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,o,i){e.on("start.zoom",(function(){y(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){y(this,arguments).event(i).end()})).tween("zoom",(function(){var e=this,s=arguments,r=y(e,s).event(i),a=n.apply(e,s),l=null==o?w(a):"function"==typeof o?o.apply(e,s):o,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=e.__zoom,u="function"==typeof t?t.apply(e,s):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
8029
+ if(e>=50)for(const e of this.dies)this.wafermap.canvasContext.fillText(e.text,e.x+this.dimensions.width/2,e.y+this.dimensions.height/2+o.width/2,this.dimensions.width-this.dimensions.width/100*20)}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvasWidth*this.wafermap.transform.k,this.wafermap.canvasHeight*this.wafermap.transform.k)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}}class aI{constructor(e){this.wafermap=e,this.zoomTransform=BS,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100,this.zoomBehavior=this.createZoomBehavior(),this.zoomBehavior(SC(this.wafermap.canvas))}rescale(e){const t=e.transform
8030
+ t.k===this.minScale?(this.zoomTransform=BS,this.zoomBehavior.transform(SC(this.wafermap.canvas),BS)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}createZoomBehavior(){const e=function(){var e,t,o,i=jS,n=US,s=XS,r=WS,a=KS,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Pk,u=r$("start","zoom","end"),p=500,g=0,v=10
8031
+ function m(e){e.property("__zoom",GS).on("wheel.zoom",C,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",S).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",R).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new zS(t,e.x,e.y)}function b(e,t,o){var i=t[0]-o[0]*e.k,n=t[1]-o[1]*e.k
8032
+ return i===e.x&&n===e.y?e:new zS(e.k,i,n)}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,o,i){e.on("start.zoom",(function(){y(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){y(this,arguments).event(i).end()})).tween("zoom",(function(){var e=this,s=arguments,r=y(e,s).event(i),a=n.apply(e,s),l=null==o?w(a):"function"==typeof o?o.apply(e,s):o,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=e.__zoom,u="function"==typeof t?t.apply(e,s):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
8009
8033
  return function(e){if(1===e)e=u
8010
8034
  else{var t=p(e),o=c/t[2]
8011
- e=new PS(o,l[0]-t[0]*o,l[1]-t[1]*o)}r.zoom(null,e)}}))}function y(e,t,o){return!o&&e.__zooming||new $(e,t)}function $(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=n.apply(e,t),this.taps=0}function C(e,...t){if(i.apply(this,arguments)){var o=y(this,t).event(e),n=this.__zoom,a=Math.max(l[0],Math.min(l[1],n.k*Math.pow(2,r.apply(this,arguments)))),d=$C(e)
8035
+ e=new zS(o,l[0]-t[0]*o,l[1]-t[1]*o)}r.zoom(null,e)}}))}function y(e,t,o){return!o&&e.__zooming||new $(e,t)}function $(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=n.apply(e,t),this.taps=0}function C(e,...t){if(i.apply(this,arguments)){var o=y(this,t).event(e),n=this.__zoom,a=Math.max(l[0],Math.min(l[1],n.k*Math.pow(2,r.apply(this,arguments)))),d=_C(e)
8012
8036
  if(o.wheel)o.mouse[0][0]===d[0]&&o.mouse[0][1]===d[1]||(o.mouse[1]=n.invert(o.mouse[0]=d)),clearTimeout(o.wheel)
8013
8037
  else{if(n.k===a)return
8014
- o.mouse=[d,n.invert(d)],tS(this),o.start()}zS(e),o.wheel=setTimeout(h,150),o.zoom("mouse",s(b(f(n,a),o.mouse[0],o.mouse[1]),o.extent,c))}function h(){o.wheel=null,o.end()}}function k(e,...t){if(!o&&i.apply(this,arguments)){var n=e.currentTarget,r=y(this,t,!0).event(e),a=yC(e.view).on("mousemove.zoom",u,!0).on("mouseup.zoom",p,!0),l=$C(e,n),d=e.clientX,h=e.clientY
8015
- SC(e.view),LS(e),r.mouse=[l,this.__zoom.invert(l)],tS(this),r.start()}function u(e){if(zS(e),!r.moved){var t=e.clientX-d,o=e.clientY-h
8016
- r.moved=t*t+o*o>g}r.event(e).zoom("mouse",s(b(r.that.__zoom,r.mouse[0]=$C(e,n),r.mouse[1]),r.extent,c))}function p(e){a.on("mousemove.zoom mouseup.zoom",null),_C(e.view,r.moved),zS(e),r.event(e).end()}}function S(e,...t){if(i.apply(this,arguments)){var o=this.__zoom,r=$C(e.changedTouches?e.changedTouches[0]:e,this),a=o.invert(r),l=o.k*(e.shiftKey?.5:2),h=s(b(f(o,l),r,a),n.apply(this,t),c)
8017
- zS(e),d>0?yC(this).transition().duration(d).call(x,h,r,e):yC(this).call(m.transform,h,r,e)}}function _(o,...n){if(i.apply(this,arguments)){var s,r,a,l,c=o.touches,d=c.length,h=y(this,n,o.changedTouches.length===d).event(o)
8018
- for(LS(o),r=0;r<d;++r)l=[l=$C(a=c[r],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,s=!0,h.taps=1+!!e)
8019
- e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),tS(this),h.start())}}function I(e,...t){if(this.__zooming){var o,i,n,r,a=y(this,t).event(e),l=e.changedTouches,d=l.length
8020
- for(zS(e),o=0;o<d;++o)n=$C(i=l[o],this),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=n:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=n)
8038
+ o.mouse=[d,n.invert(d)],sS(this),o.start()}qS(e),o.wheel=setTimeout(h,150),o.zoom("mouse",s(b(f(n,a),o.mouse[0],o.mouse[1]),o.extent,c))}function h(){o.wheel=null,o.end()}}function k(e,...t){if(!o&&i.apply(this,arguments)){var n=e.currentTarget,r=y(this,t,!0).event(e),a=SC(e.view).on("mousemove.zoom",u,!0).on("mouseup.zoom",p,!0),l=_C(e,n),d=e.clientX,h=e.clientY
8039
+ MC(e.view),ZS(e),r.mouse=[l,this.__zoom.invert(l)],sS(this),r.start()}function u(e){if(qS(e),!r.moved){var t=e.clientX-d,o=e.clientY-h
8040
+ r.moved=t*t+o*o>g}r.event(e).zoom("mouse",s(b(r.that.__zoom,r.mouse[0]=_C(e,n),r.mouse[1]),r.extent,c))}function p(e){a.on("mousemove.zoom mouseup.zoom",null),AC(e.view,r.moved),qS(e),r.event(e).end()}}function S(e,...t){if(i.apply(this,arguments)){var o=this.__zoom,r=_C(e.changedTouches?e.changedTouches[0]:e,this),a=o.invert(r),l=o.k*(e.shiftKey?.5:2),h=s(b(f(o,l),r,a),n.apply(this,t),c)
8041
+ qS(e),d>0?SC(this).transition().duration(d).call(x,h,r,e):SC(this).call(m.transform,h,r,e)}}function _(o,...n){if(i.apply(this,arguments)){var s,r,a,l,c=o.touches,d=c.length,h=y(this,n,o.changedTouches.length===d).event(o)
8042
+ for(ZS(o),r=0;r<d;++r)l=[l=_C(a=c[r],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,s=!0,h.taps=1+!!e)
8043
+ e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),sS(this),h.start())}}function I(e,...t){if(this.__zooming){var o,i,n,r,a=y(this,t).event(e),l=e.changedTouches,d=l.length
8044
+ for(qS(e),o=0;o<d;++o)n=_C(i=l[o],this),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=n:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=n)
8021
8045
  if(i=a.that.__zoom,a.touch1){var h=a.touch0[0],u=a.touch0[1],p=a.touch1[0],g=a.touch1[1],v=(v=p[0]-h[0])*v+(v=p[1]-h[1])*v,m=(m=g[0]-u[0])*m+(m=g[1]-u[1])*m
8022
8046
  i=f(i,Math.sqrt(v/m)),n=[(h[0]+p[0])/2,(h[1]+p[1])/2],r=[(u[0]+g[0])/2,(u[1]+g[1])/2]}else{if(!a.touch0)return
8023
8047
  n=a.touch0[0],r=a.touch0[1]}a.zoom("touch",s(b(i,n,r),a.extent,c))}}function R(e,...i){if(this.__zooming){var n,s,r=y(this,i).event(e),a=e.changedTouches,l=a.length
8024
- for(LS(e),o&&clearTimeout(o),o=setTimeout((function(){o=null}),p),n=0;n<l;++n)s=a[n],r.touch0&&r.touch0[2]===s.identifier?delete r.touch0:r.touch1&&r.touch1[2]===s.identifier&&delete r.touch1
8048
+ for(ZS(e),o&&clearTimeout(o),o=setTimeout((function(){o=null}),p),n=0;n<l;++n)s=a[n],r.touch0&&r.touch0[2]===s.identifier?delete r.touch0:r.touch1&&r.touch1[2]===s.identifier&&delete r.touch1
8025
8049
  if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0])
8026
- else if(r.end(),2===r.taps&&(s=$C(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<v)){var c=yC(this).on("dblclick.zoom")
8050
+ else if(r.end(),2===r.taps&&(s=_C(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<v)){var c=SC(this).on("dblclick.zoom")
8027
8051
  c&&c.apply(this,arguments)}}}return m.transform=function(e,t,o,i){var n=e.selection?e.selection():e
8028
- n.property("__zoom",ZS),e!==n?x(e,t,o,i):n.interrupt().each((function(){y(this,arguments).event(i).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},m.scaleBy=function(e,t,o,i){m.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),o,i)},m.scaleTo=function(e,t,o,i){m.transform(e,(function(){var e=n.apply(this,arguments),i=this.__zoom,r=null==o?w(e):"function"==typeof o?o.apply(this,arguments):o,a=i.invert(r),l="function"==typeof t?t.apply(this,arguments):t
8052
+ n.property("__zoom",GS),e!==n?x(e,t,o,i):n.interrupt().each((function(){y(this,arguments).event(i).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},m.scaleBy=function(e,t,o,i){m.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),o,i)},m.scaleTo=function(e,t,o,i){m.transform(e,(function(){var e=n.apply(this,arguments),i=this.__zoom,r=null==o?w(e):"function"==typeof o?o.apply(this,arguments):o,a=i.invert(r),l="function"==typeof t?t.apply(this,arguments):t
8029
8053
  return s(b(f(i,l),r,a),e,c)}),o,i)},m.translateBy=function(e,t,o,i){m.transform(e,(function(){return s(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof o?o.apply(this,arguments):o),n.apply(this,arguments),c)}),null,i)},m.translateTo=function(e,t,o,i,r){m.transform(e,(function(){var e=n.apply(this,arguments),r=this.__zoom,a=null==i?w(e):"function"==typeof i?i.apply(this,arguments):i
8030
- return s(TS.translate(a[0],a[1]).scale(r.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof o?-o.apply(this,arguments):-o),e,c)}),i,r)},$.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=yC(this.that).datum()
8031
- u.call(e,this.that,new HS(e,{sourceEvent:this.sourceEvent,target:m,type:e,transform:this.that.__zoom,dispatch:u}),t)}},m.wheelDelta=function(e){return arguments.length?(r="function"==typeof e?e:VS(+e),m):r},m.filter=function(e){return arguments.length?(i="function"==typeof e?e:VS(!!e),m):i},m.touchable=function(e){return arguments.length?(a="function"==typeof e?e:VS(!!e),m):a},m.extent=function(e){return arguments.length?(n="function"==typeof e?e:VS([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),m):n},m.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],m):[l[0],l[1]]},m.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],m):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},m.constrain=function(e){return arguments.length?(s=e,m):s},m.duration=function(e){return arguments.length?(d=+e,m):d},m.interpolate=function(e){return arguments.length?(h=e,m):h},m.on=function(){var e=u.on.apply(u,arguments)
8032
- return e===u?m:e},m.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,m):Math.sqrt(g)},m.tapDistance=function(e){return arguments.length?(v=+e,m):v},m}().scaleExtent([1.1,this.getZoomMax(this.wafermap.canvasWidth*this.wafermap.canvasHeight,this.wafermap.dataManager.containerDimensions.width*this.wafermap.dataManager.containerDimensions.height)]).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth+this.extentPadding,this.wafermap.canvasHeight+this.extentPadding]]).filter((e=>DS(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)}))
8033
- return e}getZoomMax(e,t){return Math.ceil(t/e*100)}}class nI{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
8054
+ return s(BS.translate(a[0],a[1]).scale(r.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof o?-o.apply(this,arguments):-o),e,c)}),i,r)},$.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=SC(this.that).datum()
8055
+ u.call(e,this.that,new LS(e,{sourceEvent:this.sourceEvent,target:m,type:e,transform:this.that.__zoom,dispatch:u}),t)}},m.wheelDelta=function(e){return arguments.length?(r="function"==typeof e?e:DS(+e),m):r},m.filter=function(e){return arguments.length?(i="function"==typeof e?e:DS(!!e),m):i},m.touchable=function(e){return arguments.length?(a="function"==typeof e?e:DS(!!e),m):a},m.extent=function(e){return arguments.length?(n="function"==typeof e?e:DS([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),m):n},m.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],m):[l[0],l[1]]},m.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],m):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},m.constrain=function(e){return arguments.length?(s=e,m):s},m.duration=function(e){return arguments.length?(d=+e,m):d},m.interpolate=function(e){return arguments.length?(h=e,m):h},m.on=function(){var e=u.on.apply(u,arguments)
8056
+ return e===u?m:e},m.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,m):Math.sqrt(g)},m.tapDistance=function(e){return arguments.length?(v=+e,m):v},m}().scaleExtent([1.1,this.getZoomMax(this.wafermap.canvasWidth*this.wafermap.canvasHeight,this.wafermap.dataManager.containerDimensions.width*this.wafermap.dataManager.containerDimensions.height)]).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth+this.extentPadding,this.wafermap.canvasHeight+this.extentPadding]]).filter((e=>NS(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)}))
8057
+ return e}getZoomMax(e,t){return Math.ceil(t/e*100)}}class lI{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
8034
8058
  if(!this.hoversOverDie(t))return void(this.wafermap.hoverDie=void 0)
8035
8059
  const o=this.wafermap.transform.invert([t.x,t.y]),i=this.calculateDieCoordinates({x:o[0],y:o[1]})
8036
- this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(e){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e){const t=this.wafermap.quadrant,o=t===q_||t===U_?Math.floor:Math.ceil,i=t===U_||t===G_?Math.floor:Math.ceil
8060
+ this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(e){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e){const t=this.wafermap.quadrant,o=t===W_||t===X_?Math.floor:Math.ceil,i=t===X_||t===Y_?Math.floor:Math.ceil
8037
8061
  return{x:o(this.wafermap.dataManager.invertedHorizontalScale(e.x-this.wafermap.dataManager.margin.left)),y:i(this.wafermap.dataManager.invertedVerticalScale(e.y-this.wafermap.dataManager.margin.top))}}hoversOverDie(e){const t=this.wafermap.canvasContext.getImageData(e.x,e.y,1,1).data
8038
8062
  let o=0
8039
8063
  for(const e of t)o+=e
8040
- return o>0}}class sI{constructor(e){this.wafermap=e,this.onWheelMove=e=>{e.preventDefault()},this.onMouseMove=e=>{this.hoverHandler.mousemove(e)},this.onMouseOut=e=>{this.hoverHandler.mouseout(e)},this.zoomHandler=new iI(e),this.hoverHandler=new nI(e),this.attachEvents()}detachEvents(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.removeEventListener("wheel",this.onWheelMove)}attachEvents(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.addEventListener("wheel",this.onWheelMove,{passive:!1})}}class rI extends Rt{constructor(){super(...arguments),this.quadrant=U_,this.orientation=W_,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=Y_,this.renderQueued=!1,this.transform=TS,this.hoverTransform="",this.hoverOpacity=X_,this.hoverWidth=0,this.hoverHeight=0,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]}}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.resizeObserver=this.createResizeObserver()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}render(){this.renderQueued=!1,this.initializeInternalModules(),this.renderer?.drawWafer()}queueRender(){this.$fastController.isConnected&&(this.renderQueued||(this.renderQueued=!0,u.queueUpdate((()=>this.render()))))}queueRenderHover(){this.$fastController.isConnected&&u.queueUpdate((()=>this.renderer?.renderHover()))}initializeInternalModules(){this.eventCoordinator?.detachEvents(),this.dataManager=new tI(this),this.renderer=new oI(this),this.eventCoordinator=new sI(this)}createResizeObserver(){const e=new ResizeObserver((e=>{const t=e[0]
8064
+ return o>0}}class cI{constructor(e){this.wafermap=e,this.onWheelMove=e=>{e.preventDefault()},this.onMouseMove=e=>{this.hoverHandler.mousemove(e)},this.onMouseOut=e=>{this.hoverHandler.mouseout(e)},this.zoomHandler=new aI(e),this.hoverHandler=new lI(e),this.attachEvents()}detachEvents(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.removeEventListener("wheel",this.onWheelMove)}attachEvents(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.addEventListener("wheel",this.onWheelMove,{passive:!1})}}class dI extends Rt{constructor(){super(...arguments),this.quadrant=X_,this.orientation=Q_,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=tI,this.renderQueued=!1,this.transform=BS,this.hoverTransform="",this.hoverOpacity=eI,this.hoverWidth=0,this.hoverHeight=0,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]}}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.resizeObserver=this.createResizeObserver()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}render(){this.renderQueued=!1,this.initializeInternalModules(),this.renderer?.drawWafer()}queueRender(){this.$fastController.isConnected&&(this.renderQueued||(this.renderQueued=!0,u.queueUpdate((()=>this.render()))))}queueRenderHover(){this.$fastController.isConnected&&u.queueUpdate((()=>this.renderer?.renderHover()))}initializeInternalModules(){this.eventCoordinator?.detachEvents(),this.dataManager=new sI(this),this.renderer=new rI(this),this.eventCoordinator=new cI(this)}createResizeObserver(){const e=new ResizeObserver((e=>{const t=e[0]
8041
8065
  if(void 0===t)return
8042
8066
  const{height:o,width:i}=t.contentRect
8043
8067
  this.canvas.width=i,this.canvas.height=o,this.canvasWidth=i,this.canvasHeight=o}))
8044
- return e.observe(this),e}quadrantChanged(){this.queueRender()}orientationChanged(){this.queueRender()}maxCharactersChanged(){this.queueRender()}dieLabelsHiddenChanged(){this.queueRender()}dieLabelsSuffixChanged(){this.queueRender()}colorScaleModeChanged(){this.queueRender()}highlightedValuesChanged(){this.queueRender()}diesChanged(){this.queueRender()}colorScaleChanged(){this.queueRender()}transformChanged(){this.queueRender()}canvasWidthChanged(){this.queueRender()}canvasHeightChanged(){this.queueRender()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.queueRenderHover()}}e([ne],rI.prototype,"quadrant",void 0),e([ne],rI.prototype,"orientation",void 0),e([ne({attribute:"max-characters",converter:oe})],rI.prototype,"maxCharacters",void 0),e([ne({attribute:"die-labels-hidden",mode:"boolean"})],rI.prototype,"dieLabelsHidden",void 0),e([ne({attribute:"die-labels-suffix"})],rI.prototype,"dieLabelsSuffix",void 0),e([ne({attribute:"color-scale-mode"})],rI.prototype,"colorScaleMode",void 0),e([m],rI.prototype,"canvasWidth",void 0),e([m],rI.prototype,"canvasHeight",void 0),e([m],rI.prototype,"transform",void 0),e([m],rI.prototype,"hoverTransform",void 0),e([m],rI.prototype,"hoverOpacity",void 0),e([m],rI.prototype,"hoverWidth",void 0),e([m],rI.prototype,"hoverHeight",void 0),e([m],rI.prototype,"hoverDie",void 0),e([m],rI.prototype,"highlightedValues",void 0),e([m],rI.prototype,"dies",void 0),e([m],rI.prototype,"colorScale",void 0)
8045
- const aI=rI.compose({baseName:"wafer-map",template:GS,styles:WS})
8046
- ai.getOrCreate().withPrefix("nimble").register(aI()),ai.tagFor(rI)}()
8068
+ return e.observe(this),e}quadrantChanged(){this.queueRender()}orientationChanged(){this.queueRender()}maxCharactersChanged(){this.queueRender()}dieLabelsHiddenChanged(){this.queueRender()}dieLabelsSuffixChanged(){this.queueRender()}colorScaleModeChanged(){this.queueRender()}highlightedValuesChanged(){this.queueRender()}diesChanged(){this.queueRender()}colorScaleChanged(){this.queueRender()}transformChanged(){this.queueRender()}canvasWidthChanged(){this.queueRender()}canvasHeightChanged(){this.queueRender()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.queueRenderHover()}}e([ne],dI.prototype,"quadrant",void 0),e([ne],dI.prototype,"orientation",void 0),e([ne({attribute:"max-characters",converter:oe})],dI.prototype,"maxCharacters",void 0),e([ne({attribute:"die-labels-hidden",mode:"boolean"})],dI.prototype,"dieLabelsHidden",void 0),e([ne({attribute:"die-labels-suffix"})],dI.prototype,"dieLabelsSuffix",void 0),e([ne({attribute:"color-scale-mode"})],dI.prototype,"colorScaleMode",void 0),e([m],dI.prototype,"canvasWidth",void 0),e([m],dI.prototype,"canvasHeight",void 0),e([m],dI.prototype,"transform",void 0),e([m],dI.prototype,"hoverTransform",void 0),e([m],dI.prototype,"hoverOpacity",void 0),e([m],dI.prototype,"hoverWidth",void 0),e([m],dI.prototype,"hoverHeight",void 0),e([m],dI.prototype,"hoverDie",void 0),e([m],dI.prototype,"highlightedValues",void 0),e([m],dI.prototype,"dies",void 0),e([m],dI.prototype,"colorScale",void 0)
8069
+ const hI=dI.compose({baseName:"wafer-map",template:YS,styles:QS})
8070
+ ai.getOrCreate().withPrefix("nimble").register(hI()),ai.tagFor(dI)}()
8047
8071
  //# sourceMappingURL=all-components-bundle.min.js.map