@ni/nimble-components 19.6.2 → 19.7.0

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 (34) hide show
  1. package/dist/all-components-bundle.js +74 -27
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +651 -624
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/anchor-menu-item/styles.js +1 -1
  6. package/dist/esm/anchor-tabs/styles.js +4 -0
  7. package/dist/esm/anchor-tabs/styles.js.map +1 -1
  8. package/dist/esm/anchor-tree-item/styles.js +3 -6
  9. package/dist/esm/anchor-tree-item/styles.js.map +1 -1
  10. package/dist/esm/breadcrumb-item/styles.js +4 -6
  11. package/dist/esm/breadcrumb-item/styles.js.map +1 -1
  12. package/dist/esm/card-button/styles.js +2 -2
  13. package/dist/esm/list-option/styles.js +8 -0
  14. package/dist/esm/list-option/styles.js.map +1 -1
  15. package/dist/esm/menu-item/styles.js +1 -1
  16. package/dist/esm/number-field/styles.js +1 -1
  17. package/dist/esm/patterns/dropdown/styles.js +5 -1
  18. package/dist/esm/patterns/dropdown/styles.js.map +1 -1
  19. package/dist/esm/select/styles.js +1 -1
  20. package/dist/esm/spinner/index.d.ts +7 -0
  21. package/dist/esm/spinner/index.js +15 -0
  22. package/dist/esm/spinner/index.js.map +1 -1
  23. package/dist/esm/spinner/styles.js +16 -2
  24. package/dist/esm/spinner/styles.js.map +1 -1
  25. package/dist/esm/spinner/types.d.ts +9 -0
  26. package/dist/esm/spinner/types.js +9 -0
  27. package/dist/esm/spinner/types.js.map +1 -0
  28. package/dist/esm/src/spinner/index.d.ts +7 -0
  29. package/dist/esm/src/spinner/types.d.ts +9 -0
  30. package/dist/esm/tabs/styles.js +4 -0
  31. package/dist/esm/tabs/styles.js.map +1 -1
  32. package/dist/esm/tree-item/styles.js +3 -6
  33. package/dist/esm/tree-item/styles.js.map +1 -1
  34. 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 {
@@ -4698,7 +4709,7 @@ const Vb=fe`
4698
4709
  order: 2;
4699
4710
  }
4700
4711
 
4701
- .end {
4712
+ [part='end'] {
4702
4713
  display: contents;
4703
4714
  }
4704
4715
  `.withBehaviors(Uc(mg,fe`
@@ -4797,6 +4808,10 @@ const Tb=fe`
4797
4808
  opacity: 0.6;
4798
4809
  }
4799
4810
 
4811
+ :host([appearance='accent']) div.container {
4812
+ opacity: 1;
4813
+ }
4814
+
4800
4815
  div.bit1,
4801
4816
  div.bit2 {
4802
4817
  background: var(--ni-private-spinner-bits-background-color);
@@ -4908,15 +4923,25 @@ const Tb=fe`
4908
4923
  }
4909
4924
  `.withBehaviors(wd(gs,fe`
4910
4925
  :host {
4911
- --ni-private-spinner-bits-background-color: ${Xn}
4926
+ --ni-private-spinner-bits-background-color: ${Xn};
4927
+ }
4928
+ :host([appearance='accent']) {
4929
+ --ni-private-spinner-bits-background-color: ${Qn};
4930
+ }
4912
4931
  `),wd(vs,fe`
4913
4932
  :host {
4914
4933
  --ni-private-spinner-bits-background-color: ${qn};
4915
4934
  }
4935
+ :host([appearance='accent']) {
4936
+ --ni-private-spinner-bits-background-color: ${os};
4937
+ }
4916
4938
  `),wd(ms,fe`
4917
4939
  :host {
4918
4940
  --ni-private-spinner-bits-background-color: ${Un};
4919
4941
  }
4942
+ :host([appearance='accent']) {
4943
+ --ni-private-spinner-bits-background-color: ${os};
4944
+ }
4920
4945
  `)),Db=G`
4921
4946
  <template role="progressbar">
4922
4947
  <div class="container">
@@ -4924,10 +4949,11 @@ const Tb=fe`
4924
4949
  <div class="bit2"></div>
4925
4950
  </div>
4926
4951
  </template>
4927
- `
4928
- class Lb extends Rt{}const zb=Lb.compose({baseName:"spinner",template:Db,styles:Tb})
4929
- ai.getOrCreate().withPrefix("nimble").register(zb()),ai.tagFor(Lb)
4930
- const Bb=fe`
4952
+ `,Lb={default:void 0,accent:"accent"}
4953
+ class zb extends Rt{constructor(){super(...arguments),this.appearance=Lb.default}}e([ne],zb.prototype,"appearance",void 0)
4954
+ const Bb=zb.compose({baseName:"spinner",template:Db,styles:Tb})
4955
+ ai.getOrCreate().withPrefix("nimble").register(Bb()),ai.tagFor(zb)
4956
+ const Nb=fe`
4931
4957
  ${xn("inline-flex")}
4932
4958
 
4933
4959
  :host {
@@ -5087,7 +5113,7 @@ const Bb=fe`
5087
5113
  --ni-private-switch-indicator-border-color: ${Un};
5088
5114
  --ni-private-switch-indicator-border-disabled-color: ${cs(Un,.3)};
5089
5115
  }
5090
- `)),Nb=G`
5116
+ `)),Zb=G`
5091
5117
  <template
5092
5118
  role="switch"
5093
5119
  aria-checked="${e=>e.checked}"
@@ -5122,15 +5148,15 @@ const Bb=fe`
5122
5148
  </div>
5123
5149
  </template>
5124
5150
  `
5125
- class Zb extends Zi{}const qb=Zb.compose({baseClass:Zi,baseName:"switch",template:Nb,styles:Bb})
5126
- ai.getOrCreate().withPrefix("nimble").register(qb()),ai.tagFor(Zb)
5127
- class jb extends ji{}const Ub=jb.compose({baseName:"tab",baseClass:ji,template:(e,t)=>G`
5151
+ class qb extends Zi{}const jb=qb.compose({baseClass:Zi,baseName:"switch",template:Zb,styles:Nb})
5152
+ ai.getOrCreate().withPrefix("nimble").register(jb()),ai.tagFor(qb)
5153
+ class Ub extends ji{}const Gb=Ub.compose({baseName:"tab",baseClass:ji,template:(e,t)=>G`
5128
5154
  <template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">
5129
5155
  <slot></slot>
5130
5156
  </template>
5131
5157
  `,styles:od})
5132
- ai.getOrCreate().withPrefix("nimble").register(Ub()),ai.tagFor(jb)
5133
- const Gb=fe`
5158
+ ai.getOrCreate().withPrefix("nimble").register(Gb()),ai.tagFor(Ub)
5159
+ const Wb=fe`
5134
5160
  ${xn("block")}
5135
5161
 
5136
5162
  :host {
@@ -5140,11 +5166,11 @@ const Gb=fe`
5140
5166
  padding-top: ${la};
5141
5167
  }
5142
5168
  `
5143
- class Wb extends qi{}const Kb=Wb.compose({baseName:"tab-panel",baseClass:qi,template:(e,t)=>G`
5169
+ class Kb extends qi{}const Xb=Kb.compose({baseName:"tab-panel",baseClass:qi,template:(e,t)=>G`
5144
5170
  <template slot="tabpanel" role="tabpanel">
5145
5171
  <slot></slot>
5146
5172
  </template>
5147
- `,styles:Gb})
5173
+ `,styles:Wb})
5148
5174
 
5149
5175
  ;/**
5150
5176
  * table-core
@@ -5156,10 +5182,10 @@ class Wb extends qi{}const Kb=Wb.compose({baseName:"tab-panel",baseClass:qi,temp
5156
5182
  *
5157
5183
  * @license MIT
5158
5184
  */
5159
- 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)
5185
+ function Yb(e,t){return"function"==typeof e?e(t):e}function Qb(e,t){return o=>{t.setState((t=>({...t,[e]:Yb(o,t[e])})))}}function Jb(e){return e instanceof Function}function ew(e,t){const o=[],i=e=>{e.forEach((e=>{o.push(e)
5160
5186
  const n=t(e)
5161
5187
  null!=n&&n.length&&i(n)}))}
5162
- return i(e),o}function ew(e,t,o){let i,n=[]
5188
+ return i(e),o}function tw(e,t,o){let i,n=[]
5163
5189
  return()=>{let s
5164
5190
  o.key&&o.debug&&(s=Date.now())
5165
5191
  const r=e()
@@ -5167,36 +5193,36 @@ if(!(r.length!==n.length||r.some(((e,t)=>n[t]!==e))))return i
5167
5193
  let a
5168
5194
  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
5169
5195
  return e}
5170
- 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
5196
+ 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 ow(e,t,o){var i
5171
5197
  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)}
5172
5198
  return t(n),e},getContext:()=>({table:e,header:n,column:t})}
5173
- 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)
5174
- 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
5199
+ return e._features.forEach((t=>{Object.assign(n,null==t.createHeader?void 0:t.createHeader(n,e))})),n}ai.getOrCreate().withPrefix("nimble").register(Xb()),ai.tagFor(Kb)
5200
+ const iw={createTable:e=>({getHeaderGroups:tw((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,o,i,n)=>{var s,r
5175
5201
  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:[]
5176
- 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
5177
- 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
5178
- 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
5179
- 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
5180
- 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
5181
- 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
5182
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:ew((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5183
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:ew((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5184
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:ew((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5185
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:ew((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5186
- 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
5187
- 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
5188
- 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
5189
- 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
5190
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:ew((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t
5202
+ return nw(t,[...a,...o.filter((e=>!(null!=i&&i.includes(e.id)||null!=n&&n.includes(e.id)))),...l],e)}),{key:!1,debug:()=>{var t
5203
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:tw((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,o,i,n)=>nw(t,o=o.filter((e=>!(null!=i&&i.includes(e.id)||null!=n&&n.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t
5204
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:tw((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,o,i)=>{var n
5205
+ return nw(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
5206
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:tw((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,o,i)=>{var n
5207
+ return nw(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
5208
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:tw((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5209
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:tw((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5210
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:tw((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5211
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:tw((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5212
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:tw((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5213
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:tw((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5214
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:tw((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5215
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:tw((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5216
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:tw((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t
5191
5217
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
5192
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:ew((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t
5218
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:tw((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t
5193
5219
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
5194
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:ew((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t
5220
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:tw((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t
5195
5221
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
5196
- 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
5222
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:tw((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,o)=>{var i,n,s,r,a,l
5197
5223
  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
5198
5224
  return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})})}
5199
- function iw(e,t,o,i){var n,s
5225
+ function nw(e,t,o,i){var n,s
5200
5226
  let r=0
5201
5227
  const a=function(e,t){void 0===t&&(t=1),r=Math.max(r,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var o
5202
5228
  null!=(o=e.columns)&&o.length&&a(e.columns,t+1)}),0)}
@@ -5206,16 +5232,16 @@ const c=(e,t)=>{const n={depth:t,id:[i,`${t}`].filter(Boolean).join("_"),headers
5206
5232
  e.forEach((e=>{const r=[...s].reverse()[0]
5207
5233
  let a,l=!1
5208
5234
  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)
5209
- 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})
5210
- 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})))
5235
+ else{const n=ow(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})
5236
+ 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)=>ow(o,e,{depth:r,index:t})))
5211
5237
  c(d,r-1),l.reverse()
5212
5238
  const h=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,o=0,i=[0]
5213
5239
  e.subHeaders&&e.subHeaders.length?(i=[],h(e.subHeaders).forEach((e=>{let{colSpan:o,rowSpan:n}=e
5214
5240
  t+=o,i.push(n)}))):t=1
5215
5241
  return o+=Math.min(...i),e.colSpan=t,e.rowSpan=o,{colSpan:t,rowSpan:o}}))
5216
- 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
5242
+ return h(null!=(n=null==(s=l[0])?void 0:s.headers)?n:[]),l}const sw={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},rw={getDefaultColumnDef:()=>sw,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:Qb("columnSizing",e),onColumnSizingInfoChange:Qb("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var o,i,n
5217
5243
  const s=t.getState().columnSizing[e.id]
5218
- 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))
5244
+ return Math.min(Math.max(null!=(o=e.columnDef.minSize)?o:sw.minSize,null!=(i=null!=s?s:e.columnDef.size)?i:sw.size),null!=(n=e.columnDef.maxSize)?n:sw.maxSize)},getStart:o=>{const i=o?"left"===o?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),n=i.findIndex((t=>t.id===e.id))
5219
5245
  if(n>0){const e=i[n-1]
5220
5246
  return e.getStart(o)+e.getSize()}return 0},resetSize:()=>{t.setColumnSizing((t=>{let{[e.id]:o,...i}=t
5221
5247
  return i}))},getCanResize:()=>{var o,i
@@ -5225,24 +5251,24 @@ e.subHeaders.length?e.subHeaders.forEach(o):t+=null!=(i=e.column.getSize())?i:0}
5225
5251
  return o(e),t},getStart:()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1]
5226
5252
  return t.getStart()+t.getSize()}return 0},getResizeHandler:()=>{const o=t.getColumn(e.column.id),i=null==o?void 0:o.getCanResize()
5227
5253
  return n=>{if(!o||!i)return
5228
- if(null==n.persist||n.persist(),aw(n)&&n.touches&&n.touches.length>1)return
5229
- 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
5254
+ if(null==n.persist||n.persist(),lw(n)&&n.touches&&n.touches.length>1)return
5255
+ const s=e.getSize(),r=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[o.id,o.getSize()]],a=lw(n)?Math.round(n.touches[0].clientX):n.clientX,l={},c=(e,o)=>{"number"==typeof o&&(t.setColumnSizingInfo((e=>{var t,i
5230
5256
  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)
5231
5257
  return e.columnSizingStart.forEach((e=>{let[t,o]=e
5232
5258
  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
5233
- 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
5259
+ 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 aw)return aw
5234
5260
  let e=!1
5235
5261
  try{const t={get passive(){return e=!0,!1}},o=()=>{}
5236
- window.addEventListener("test",o,t),window.removeEventListener("test",o)}catch(t){e=!1}return rw=e,rw}()&&{passive:!1}
5237
- 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
5262
+ window.addEventListener("test",o,t),window.removeEventListener("test",o)}catch(t){e=!1}return aw=e,aw}()&&{passive:!1}
5263
+ lw(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
5238
5264
  e.setColumnSizing(t?{}:null!=(o=e.initialState.columnSizing)?o:{})},resetHeaderSizeInfo:t=>{var o
5239
5265
  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
5240
5266
  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
5241
5267
  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
5242
5268
  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
5243
5269
  return null!=(t=null==(o=e.getRightHeaderGroups()[0])?void 0:o.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}})}
5244
- let rw=null
5245
- 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
5270
+ let aw=null
5271
+ function lw(e){return"touchstart"===e.type}const cw={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Qb("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,o=!1
5246
5272
  return{_autoResetExpanded:()=>{var i,n
5247
5273
  if(t){if(null!=(i=null!=(n=e.options.autoResetAll)?n:e.options.autoResetExpanded)?i:!e.options.manualExpanding){if(o)return
5248
5274
  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
@@ -5259,57 +5285,57 @@ return o}return i}))},getIsExpanded:()=>{var o
5259
5285
  const i=t.getState().expanded
5260
5286
  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
5261
5287
  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()
5262
- return()=>{t&&e.toggleExpanded()}}})},cw=(e,t,o)=>{var i
5288
+ return()=>{t&&e.toggleExpanded()}}})},dw=(e,t,o)=>{var i
5263
5289
  const n=o.toLowerCase()
5264
5290
  return Boolean(null==(i=e.getValue(t))?void 0:i.toLowerCase().includes(n))}
5265
- cw.autoRemove=e=>ww(e)
5266
- const dw=(e,t,o)=>{var i
5267
- return Boolean(null==(i=e.getValue(t))?void 0:i.includes(o))}
5268
- dw.autoRemove=e=>ww(e)
5291
+ dw.autoRemove=e=>xw(e)
5269
5292
  const hw=(e,t,o)=>{var i
5270
- return(null==(i=e.getValue(t))?void 0:i.toLowerCase())===o.toLowerCase()}
5271
- hw.autoRemove=e=>ww(e)
5293
+ return Boolean(null==(i=e.getValue(t))?void 0:i.includes(o))}
5294
+ hw.autoRemove=e=>xw(e)
5272
5295
  const uw=(e,t,o)=>{var i
5296
+ return(null==(i=e.getValue(t))?void 0:i.toLowerCase())===o.toLowerCase()}
5297
+ uw.autoRemove=e=>xw(e)
5298
+ const pw=(e,t,o)=>{var i
5273
5299
  return null==(i=e.getValue(t))?void 0:i.includes(o)}
5274
- uw.autoRemove=e=>ww(e)||!(null!=e&&e.length)
5275
- const pw=(e,t,o)=>!o.some((o=>{var i
5300
+ pw.autoRemove=e=>xw(e)||!(null!=e&&e.length)
5301
+ const gw=(e,t,o)=>!o.some((o=>{var i
5276
5302
  return!(null!=(i=e.getValue(t))&&i.includes(o))}))
5277
- pw.autoRemove=e=>ww(e)||!(null!=e&&e.length)
5278
- const gw=(e,t,o)=>o.some((o=>{var i
5303
+ gw.autoRemove=e=>xw(e)||!(null!=e&&e.length)
5304
+ const vw=(e,t,o)=>o.some((o=>{var i
5279
5305
  return null==(i=e.getValue(t))?void 0:i.includes(o)}))
5280
- gw.autoRemove=e=>ww(e)||!(null!=e&&e.length)
5281
- const vw=(e,t,o)=>e.getValue(t)===o
5282
- vw.autoRemove=e=>ww(e)
5283
- const mw=(e,t,o)=>e.getValue(t)==o
5284
- mw.autoRemove=e=>ww(e)
5285
- const fw=(e,t,o)=>{let[i,n]=o
5306
+ vw.autoRemove=e=>xw(e)||!(null!=e&&e.length)
5307
+ const mw=(e,t,o)=>e.getValue(t)===o
5308
+ mw.autoRemove=e=>xw(e)
5309
+ const fw=(e,t,o)=>e.getValue(t)==o
5310
+ fw.autoRemove=e=>xw(e)
5311
+ const bw=(e,t,o)=>{let[i,n]=o
5286
5312
  const s=e.getValue(t)
5287
5313
  return s>=i&&s<=n}
5288
- 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
5314
+ bw.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
5289
5315
  if(s>r){const e=s
5290
- s=r,r=e}return[s,r]},fw.autoRemove=e=>ww(e)||ww(e[0])&&ww(e[1])
5291
- const bw={includesString:cw,includesStringSensitive:dw,equalsString:hw,arrIncludes:uw,arrIncludesAll:pw,arrIncludesSome:gw,equals:vw,weakEquals:mw,inNumberRange:fw}
5292
- 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
5316
+ s=r,r=e}return[s,r]},bw.autoRemove=e=>xw(e)||xw(e[0])&&xw(e[1])
5317
+ const ww={includesString:dw,includesStringSensitive:hw,equalsString:uw,arrIncludes:pw,arrIncludesAll:gw,arrIncludesSome:vw,equals:mw,weakEquals:fw,inNumberRange:bw}
5318
+ function xw(e){return null==e||""===e}const yw={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:Qb("columnFilters",e),onGlobalFilterChange:Qb("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var o,i
5293
5319
  const n=null==(o=e.getCoreRowModel().flatRows[0])||null==(i=o._getAllCellsByColumnId()[t.id])?void 0:i.getValue()
5294
5320
  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)
5295
- 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
5296
- 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
5321
+ return"string"==typeof i?ww.includesString:"number"==typeof i?ww.inNumberRange:"boolean"==typeof i||null!==i&&"object"==typeof i?ww.equals:Array.isArray(i)?ww.arrIncludes:ww.weakEquals},getFilterFn:()=>{var o,i
5322
+ return Jb(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:ww[e.columnDef.filterFn]},getCanFilter:()=>{var o,i,n
5297
5323
  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
5298
5324
  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
5299
5325
  return null==(o=t.getState().columnFilters)||null==(i=o.find((t=>t.id===e.id)))?void 0:i.value},getFilterIndex:()=>{var o,i
5300
- 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)
5326
+ 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=Yb(o,n?n.value:void 0)
5301
5327
  var r
5302
- if(yw(i,s,e))return null!=(r=null==t?void 0:t.filter((t=>t.id!==e.id)))?r:[]
5328
+ if($w(i,s,e))return null!=(r=null==t?void 0:t.filter((t=>t.id!==e.id)))?r:[]
5303
5329
  const a={id:e.id,value:s}
5304
5330
  var l
5305
- 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
5331
+ 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:()=>ww.includesString,getGlobalFilterFn:()=>{var t,o
5306
5332
  const{globalFilterFn:i}=e.options
5307
- 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()
5333
+ return Jb(i)?i:"auto"===i?e.getGlobalAutoFilterFn():null!=(t=null==(o=e.options.filterFns)?void 0:o[i])?t:ww[i]},setColumnFilters:t=>{const o=e.getAllLeafColumns()
5308
5334
  null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var i
5309
- return null==(i=Xb(t,e))?void 0:i.filter((e=>{const t=o.find((t=>t.id===e.id))
5310
- 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
5335
+ return null==(i=Yb(t,e))?void 0:i.filter((e=>{const t=o.find((t=>t.id===e.id))
5336
+ if(t){if($w(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
5311
5337
  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()}})}
5312
- 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)
5338
+ function $w(e,t,o){return!(!e||!e.autoRemove)&&e.autoRemove(t,o)||void 0===t||"string"==typeof t&&!t}const Cw={sum:(e,t,o)=>o.reduce(((t,o)=>{const i=o.getValue(e)
5313
5339
  return t+("number"==typeof i?i:0)}),0),min:(e,t,o)=>{let i
5314
5340
  return o.forEach((t=>{const o=t.getValue(e)
5315
5341
  null!=o&&(i>o||void 0===i&&o>=o)&&(i=o)})),i},max:(e,t,o)=>{let i
@@ -5322,13 +5348,13 @@ null!=n&&(n=+n)>=n&&(++o,i+=n)})),o)return i/o},median:(e,t)=>{if(!t.length)retu
5322
5348
  let o=0,i=0
5323
5349
  return t.forEach((t=>{let n=t.getValue(e)
5324
5350
  "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}
5325
- 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
5351
+ const kw={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Qb("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
5326
5352
  return e.setRowSelection(t?{}:null!=(o=e.initialState.rowSelection)?o:{})},toggleAllRowsSelected:t=>{e.setRowSelection((o=>{t=void 0!==t?t:!e.getIsAllRowsSelected()
5327
5353
  const i={...o},n=e.getPreGroupedRowModel().flatRows
5328
5354
  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}
5329
- 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
5330
- 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
5331
- 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
5355
+ return e.getRowModel().rows.forEach((t=>{Sw(n,t.id,i,e)})),n})),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:tw((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,o)=>Object.keys(t).length?_w(e,o):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t
5356
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:tw((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,o)=>Object.keys(t).length?_w(e,o):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t
5357
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:tw((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,o)=>Object.keys(t).length?_w(e,o):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t
5332
5358
  return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:o}=e.getState()
5333
5359
  let i=Boolean(t.length&&Object.keys(o).length)
5334
5360
  return i&&t.some((e=>e.getCanSelect()&&!o[e.id]))&&(i=!1),i},getIsAllPageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows,{rowSelection:o}=e.getState()
@@ -5339,71 +5365,71 @@ return o>0&&o<e.getFilteredRowModel().flatRows.length},getIsSomePageRowsSelected
5339
5365
  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()
5340
5366
  t.setRowSelection((n=>{if(i===(o=void 0!==o?o:!i))return n
5341
5367
  const s={...n}
5342
- return kw(s,e.id,o,t),s}))},getIsSelected:()=>{const{rowSelection:o}=t.getState()
5343
- return _w(e,o)},getIsSomeSelected:()=>{const{rowSelection:o}=t.getState()
5344
- return"some"===Iw(e,o)},getIsAllSubRowsSelected:()=>{const{rowSelection:o}=t.getState()
5345
- return"all"===Iw(e,o)},getCanSelect:()=>{var o
5368
+ return Sw(s,e.id,o,t),s}))},getIsSelected:()=>{const{rowSelection:o}=t.getState()
5369
+ return Iw(e,o)},getIsSomeSelected:()=>{const{rowSelection:o}=t.getState()
5370
+ return"some"===Rw(e,o)},getIsAllSubRowsSelected:()=>{const{rowSelection:o}=t.getState()
5371
+ return"all"===Rw(e,o)},getCanSelect:()=>{var o
5346
5372
  return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(o=t.options.enableRowSelection)||o},getCanSelectSubRows:()=>{var o
5347
5373
  return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(o=t.options.enableSubRowSelection)||o},getCanMultiSelect:()=>{var o
5348
5374
  return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(o=t.options.enableMultiRowSelection)||o},getToggleSelectedHandler:()=>{const t=e.getCanSelect()
5349
5375
  return o=>{var i
5350
- t&&e.toggleSelected(null==(i=o.target)?void 0:i.checked)}}})},kw=(e,t,o,i)=>{var n
5376
+ t&&e.toggleSelected(null==(i=o.target)?void 0:i.checked)}}})},Sw=(e,t,o,i)=>{var n
5351
5377
  const s=i.getRow(t)
5352
- 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)))}
5353
- function Sw(e,t){const o=e.getState().rowSelection,i=[],n={},s=function(e,t){return e.map((e=>{var t
5354
- const r=_w(e,o)
5378
+ 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=>Sw(e,t.id,o,i)))}
5379
+ function _w(e,t){const o=e.getState().rowSelection,i=[],n={},s=function(e,t){return e.map((e=>{var t
5380
+ const r=Iw(e,o)
5355
5381
  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)}
5356
- return{rows:s(t.rows),flatRows:i,rowsById:n}}function _w(e,t){var o
5357
- return null!=(o=t[e.id])&&o}function Iw(e,t,o){if(e.subRows&&e.subRows.length){let o=!0,i=!1
5358
- 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
5359
- 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)
5382
+ return{rows:s(t.rows),flatRows:i,rowsById:n}}function Iw(e,t){var o
5383
+ return null!=(o=t[e.id])&&o}function Rw(e,t,o){if(e.subRows&&e.subRows.length){let o=!0,i=!1
5384
+ return e.subRows.forEach((e=>{i&&!o||(Iw(e,t)?i=!0:o=!1)})),o?"all":!!i&&"some"}return!1}const Mw=/([0-9]+)/gm
5385
+ function Aw(e,t){return e===t?0:e>t?1:-1}function Ew(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Ow(e,t){const o=e.split(Mw).filter(Boolean),i=t.split(Mw).filter(Boolean)
5360
5386
  for(;o.length&&i.length;){const e=o.shift(),t=i.shift(),n=parseInt(e,10),s=parseInt(t,10),r=[n,s].sort()
5361
5387
  if(isNaN(r[0])){if(e>t)return 1
5362
5388
  if(t>e)return-1}else{if(isNaN(r[1]))return isNaN(n)?-1:1
5363
5389
  if(n>s)return 1
5364
- 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)
5365
- 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
5390
+ if(s>n)return-1}}return o.length-i.length}const Fw={alphanumeric:(e,t,o)=>Ow(Ew(e.getValue(o)).toLowerCase(),Ew(t.getValue(o)).toLowerCase()),alphanumericCaseSensitive:(e,t,o)=>Ow(Ew(e.getValue(o)),Ew(t.getValue(o))),text:(e,t,o)=>Aw(Ew(e.getValue(o)).toLowerCase(),Ew(t.getValue(o)).toLowerCase()),textCaseSensitive:(e,t,o)=>Aw(Ew(e.getValue(o)),Ew(t.getValue(o))),datetime:(e,t,o)=>{const i=e.getValue(o),n=t.getValue(o)
5391
+ return i>n?1:i<n?-1:0},basic:(e,t,o)=>Aw(e.getValue(o),t.getValue(o))},Vw=[iw,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Qb("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:o=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=o?o:!e.getIsVisible()})))},getIsVisible:()=>{var o,i
5366
5392
  return null==(o=null==(i=t.getState().columnVisibility)?void 0:i[e.id])||o},getCanHide:()=>{var o,i
5367
- 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
5368
- 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
5369
- 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
5393
+ 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:tw((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e
5394
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:tw((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,o)=>[...e,...t,...o]),{key:!1,debug:()=>{var e
5395
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{const t=(t,o)=>tw((()=>[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
5370
5396
  return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})
5371
5397
  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
5372
5398
  e.setColumnVisibility(t?{}:null!=(o=e.initialState.columnVisibility)?o:{})},toggleAllColumnsVisible:t=>{var o
5373
5399
  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
5374
- 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
5375
- 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=[]
5400
+ e.toggleAllColumnsVisible(null==(o=t.target)?void 0:o.checked)}}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Qb("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var o
5401
+ e.setColumnOrder(t?[]:null!=(o=e.initialState.columnOrder)?o:[])},_getOrderColumnsFn:tw((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,o)=>i=>{let n=[]
5376
5402
  if(null!=e&&e.length){const t=[...e],o=[...i]
5377
5403
  for(;o.length&&t.length;){const e=t.shift(),i=o.findIndex((t=>t.id===e))
5378
5404
  i>-1&&n.push(o.splice(i,1)[0])}n=[...n,...o]}else n=i
5379
5405
  return function(e,t,o){if(null==t||!t.length||!o)return e
5380
5406
  const i=e.filter((e=>!t.includes(e.id)))
5381
- 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)
5407
+ 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:Qb("columnPinning",e)}),createColumn:(e,t)=>({pin:o=>{const i=e.getLeafColumns().map((e=>e.id)).filter(Boolean)
5382
5408
  t.setColumnPinning((e=>{var t,n,s,r,a,l
5383
5409
  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
5384
5410
  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)))
5385
5411
  return s?"left":!!r&&"right"},getPinnedIndex:()=>{var o,i,n
5386
5412
  const s=e.getIsPinned()
5387
- 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:[]]
5413
+ 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:tw((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,o)=>{const i=[...null!=t?t:[],...null!=o?o:[]]
5388
5414
  return e.filter((e=>!i.includes(e.column.id)))}),{key:"row.getCenterVisibleCells",debug:()=>{var e
5389
- 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
5390
- 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
5415
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:tw((()=>[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
5416
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:tw((()=>[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
5391
5417
  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
5392
5418
  return e.setColumnPinning(t?{left:[],right:[]}:null!=(o=null==(i=e.initialState)?void 0:i.columnPinning)?o:{left:[],right:[]})},getIsSomeColumnsPinned:t=>{var o
5393
5419
  const i=e.getState().columnPinning
5394
5420
  var n,s
5395
- 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
5396
- 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
5397
- 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:[]]
5421
+ 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:tw((()=>[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
5422
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:tw((()=>[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
5423
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:tw((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,o)=>{const i=[...null!=t?t:[],...null!=o?o:[]]
5398
5424
  return e.filter((e=>!i.includes(e.id)))}),{key:!1,debug:()=>{var t
5399
- 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)
5425
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})},yw,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:Qb("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const o=t.getFilteredRowModel().flatRows.slice(10)
5400
5426
  let i=!1
5401
5427
  for(const t of o){const o=null==t?void 0:t.getValue(e.id)
5402
- if("[object Date]"===Object.prototype.toString.call(o))return Ow.datetime
5403
- 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]
5428
+ if("[object Date]"===Object.prototype.toString.call(o))return Fw.datetime
5429
+ if("string"==typeof o&&(i=!0,o.split(Mw).length>1))return Fw.alphanumeric}return i?Fw.text:Fw.basic},getAutoSortDir:()=>{const o=t.getFilteredRowModel().flatRows[0]
5404
5430
  return"string"==typeof(null==o?void 0:o.getValue(e.id))?"asc":"desc"},getSortingFn:()=>{var o,i
5405
5431
  if(!e)throw new Error
5406
- 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
5432
+ return Jb(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:Fw[e.columnDef.sortingFn]},toggleSorting:(o,i)=>{const n=e.getNextSortingOrder(),s=null!=o
5407
5433
  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))
5408
5434
  let c,d=[],h=s?o:"desc"===n
5409
5435
  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}]
@@ -5418,86 +5444,86 @@ return!!i&&(i.desc?"desc":"asc")},getSortIndex:()=>{var o,i
5418
5444
  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()
5419
5445
  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
5420
5446
  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
5421
- 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
5447
+ 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:Qb("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
5422
5448
  return null!=(o=null==(i=null!=(n=null==(s=e.columnDef.enableGrouping)||s)?n:t.options.enableGrouping)||i)?o:!!e.accessorFn},getIsGrouped:()=>{var o
5423
5449
  return null==(o=t.getState().grouping)?void 0:o.includes(e.id)},getGroupedIndex:()=>{var o
5424
5450
  return null==(o=t.getState().grouping)?void 0:o.indexOf(e.id)},getToggleGroupingHandler:()=>{const t=e.getCanGroup()
5425
5451
  return()=>{t&&e.toggleGrouping()}},getAutoAggregationFn:()=>{const o=t.getCoreRowModel().flatRows[0],i=null==o?void 0:o.getValue(e.id)
5426
- return"number"==typeof i?$w.sum:"[object Date]"===Object.prototype.toString.call(i)?$w.extent:void 0},getAggregationFn:()=>{var o,i
5452
+ return"number"==typeof i?Cw.sum:"[object Date]"===Object.prototype.toString.call(i)?Cw.extent:void 0},getAggregationFn:()=>{var o,i
5427
5453
  if(!e)throw new Error
5428
- 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
5454
+ return Jb(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:Cw[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var o,i
5429
5455
  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
5430
- 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
5456
+ return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=o.subRows)||!t.length)}})},cw,{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Qb("pagination",e)}),createTable:e=>{let t=!1,o=!1
5431
5457
  return{_autoResetPageIndex:()=>{var i,n
5432
5458
  if(t){if(null!=(i=null!=(n=e.options.autoResetAll)?n:e.options.autoResetPageIndex)?i:!e.options.manualPagination){if(o)return
5433
- 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
5434
- 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)
5459
+ 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=>Yb(t,e))),resetPagination:t=>{var o
5460
+ e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(o=e.initialState.pagination)?o:{pageIndex:0,pageSize:10})},setPageIndex:t=>{e.setPagination((o=>{let i=Yb(t,o.pageIndex)
5435
5461
  const n=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1
5436
5462
  return i=Math.max(0,Math.min(i,n)),{...o,pageIndex:i}}))},resetPageIndex:t=>{var o,i,n
5437
5463
  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
5438
- 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)
5464
+ 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,Yb(t,e.pageSize)),i=e.pageSize*e.pageIndex,n=Math.floor(i/o)
5439
5465
  return{...e,pageIndex:n,pageSize:o}}))},setPageCount:t=>e.setPagination((o=>{var i
5440
- let n=Xb(t,null!=(i=e.options.pageCount)?i:-1)
5441
- return"number"==typeof n&&(n=Math.max(-1,n)),{...o,pageCount:n}})),getPageOptions:ew((()=>[e.getPageCount()]),(e=>{let t=[]
5466
+ let n=Yb(t,null!=(i=e.options.pageCount)?i:-1)
5467
+ return"number"==typeof n&&(n=Math.max(-1,n)),{...o,pageCount:n}})),getPageOptions:tw((()=>[e.getPageCount()]),(e=>{let t=[]
5442
5468
  return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:!1,debug:()=>{var t
5443
5469
  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()
5444
5470
  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
5445
- return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},Cw,sw]
5446
- function Vw(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...")
5447
- let o={_features:Fw}
5471
+ return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},kw,rw]
5472
+ function Hw(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...")
5473
+ let o={_features:Vw}
5448
5474
  const i=o._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o))),{})
5449
5475
  let n={...null!=(t=e.initialState)?t:{}}
5450
5476
  o._features.forEach((e=>{var t
5451
5477
  n=null!=(t=null==e.getInitialState?void 0:e.getInitialState(n))?t:n}))
5452
5478
  const s=[]
5453
5479
  let r=!1
5454
- 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()()
5455
- r=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=Xb(e,o.options)
5480
+ const a={_features:Vw,options:{...i,...e},initialState:n,_queue:e=>{s.push(e),r||(r=!0,Promise.resolve().then((()=>{for(;s.length;)s.shift()()
5481
+ r=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=Yb(e,o.options)
5456
5482
  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
5457
5483
  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]
5458
5484
  if(!t)throw new Error
5459
- return t},_getDefaultColumnDef:ew((()=>[o.options.defaultColumn]),(e=>{var t
5485
+ return t},_getDefaultColumnDef:tw((()=>[o.options.defaultColumn]),(e=>{var t
5460
5486
  return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef
5461
5487
  return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,o
5462
5488
  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
5463
- 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
5489
+ return null!=(e=o.options.debugAll)?e:o.options.debugColumns},key:!1}),_getColumnDefs:()=>o.options.columns,getAllColumns:tw((()=>[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
5464
5490
  const r={...e._getDefaultColumnDef(),...t},a=r.accessorKey
5465
5491
  let l,c=null!=(n=null!=(s=r.id)?s:a?a.replace(".","_"):void 0)?n:"string"==typeof r.header?r.header:void 0
5466
5492
  if(r.accessorFn?l=r.accessorFn:a&&(l=a.includes(".")?e=>{let t=e
5467
5493
  for(const e of a.split(".")){var o
5468
5494
  t=null==(o=t)?void 0:o[e]}return t}:e=>e[r.accessorKey]),!c)throw new Error
5469
- let d={id:`${String(c)}`,accessorFn:l,parent:i,depth:o,columnDef:r,columns:[],getFlatColumns:ew((()=>[!0]),(()=>{var e
5495
+ let d={id:`${String(c)}`,accessorFn:l,parent:i,depth:o,columnDef:r,columns:[],getFlatColumns:tw((()=>[!0]),(()=>{var e
5470
5496
  return[d,...null==(e=d.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"column.getFlatColumns",debug:()=>{var t
5471
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:ew((()=>[e._getOrderColumnsFn()]),(e=>{var t
5497
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:tw((()=>[e._getOrderColumnsFn()]),(e=>{var t
5472
5498
  if(null!=(t=d.columns)&&t.length){let t=d.columns.flatMap((e=>e.getLeafColumns()))
5473
5499
  return e(t)}return[d]}),{key:"column.getLeafColumns",debug:()=>{var t
5474
5500
  return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})}
5475
5501
  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
5476
5502
  return s.columns=r.columns?t(r.columns,s,n+1):[],s}))}
5477
5503
  return t(e)}),{key:!1,debug:()=>{var e
5478
- 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
5479
- 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
5480
- 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
5504
+ return null!=(e=o.options.debugAll)?e:o.options.debugColumns}}),getAllFlatColumns:tw((()=>[o.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e
5505
+ return null!=(e=o.options.debugAll)?e:o.options.debugColumns}}),_getAllFlatColumnsById:tw((()=>[o.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e
5506
+ return null!=(e=o.options.debugAll)?e:o.options.debugColumns}}),getAllLeafColumns:tw((()=>[o.getAllColumns(),o._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:!1,debug:()=>{var e
5481
5507
  return null!=(e=o.options.debugAll)?e:o.options.debugColumns}}),getColumn:e=>o._getAllFlatColumnsById()[e]}
5482
- 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]
5508
+ return Object.assign(o,a),o._features.forEach((e=>Object.assign(o,null==e.createTable?void 0:e.createTable(o)))),o}const Pw=(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]
5483
5509
  const o=e.getColumn(t)
5484
5510
  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]
5485
5511
  const o=e.getColumn(t)
5486
5512
  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
5487
- 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
5488
- 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})}
5513
+ return null!=(o=r.getValue(t))?o:e.options.renderFallbackValue},subRows:null!=s?s:[],getLeafRows:()=>ew(r.subRows,(e=>e.subRows)),getAllCells:tw((()=>[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
5514
+ return null!=(t=n.getValue())?t:e.options.renderFallbackValue},getContext:tw((()=>[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})}
5489
5515
  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
5490
- 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
5516
+ return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:tw((()=>[r.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t
5491
5517
  return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}
5492
5518
  for(let t=0;t<e._features.length;t++){const o=e._features[t]
5493
5519
  Object.assign(r,null==o||null==o.createRow?void 0:o.createRow(r,e))}return r}
5494
- function Pw(){return e=>ew((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,o)=>{if(!o.rows.length||!t.length)return o
5520
+ function Tw(){return e=>tw((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,o)=>{if(!o.rows.length||!t.length)return o
5495
5521
  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)))
5496
5522
  const l=i[o],c=function(e,t){const o=new Map
5497
5523
  return e.reduce(((e,o)=>{const i=`${o.getValue(t)}`,n=e.get(i)
5498
5524
  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}`
5499
5525
  u=a?`${a}>${u}`:u
5500
- const p=r(h,o+1,u),g=o?Jb(h,(e=>e.subRows)):h,v=Hw(e,u,g[0].original,c,o)
5526
+ const p=r(h,o+1,u),g=o?ew(h,(e=>e.subRows)):h,v=Pw(e,u,g[0].original,c,o)
5501
5527
  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]
5502
5528
  var o
5503
5529
  if(h[0])v._valuesCache[t]=null!=(o=h[0].getValue(t))?o:void 0
@@ -5506,10 +5532,10 @@ const n=e.getColumn(t),s=null==n?void 0:n.getAggregationFn()
5506
5532
  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}))
5507
5533
  return d},a=r(o.rows,0,"")
5508
5534
  return a.forEach((e=>{n.push(e),s[e.id]=e})),{rows:a,flatRows:n,rowsById:s}}),{key:!1,debug:()=>{var t
5509
- 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"
5510
- class qw extends Rt{}e([m],qw.prototype,"groupHeaderValue",void 0),e([m],qw.prototype,"columnConfig",void 0)
5511
- const jw=e=>((e=>{let t
5512
- 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`
5535
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))}})}const Dw={none:void 0,ascending:"ascending",descending:"descending"},Lw={none:void 0,single:"single",multiple:"multiple"},zw="notSelected",Bw="selected",Nw="partiallySelected",Zw="basic",qw="localeAwareCaseSensitive"
5536
+ class jw extends Rt{}e([m],jw.prototype,"groupHeaderValue",void 0),e([m],jw.prototype,"columnConfig",void 0)
5537
+ const Uw=e=>((e=>{let t
5538
+ try{t=document.createElement(e)}catch(e){}if(!(t instanceof jw))throw new Error(`Group header view tag name (${e}) must evaluate to an element extending TableGroupHeaderView`)})(e),G`
5513
5539
  <${e}
5514
5540
  :groupHeaderValue="${e=>e.groupRowValue}"
5515
5541
  :columnConfig="${e=>e.groupColumn?.columnInternals.columnConfig}"
@@ -5517,11 +5543,11 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof qw))throw new Error(
5517
5543
  >
5518
5544
  </${e}>
5519
5545
  `)
5520
- class Uw extends Rt{constructor(){super(...arguments),this.delegatedEvents=[],this.delegatedEventHandler=()=>{}}focusedRecycleCallback(){}columnChanged(){for(const e of this.delegatedEvents)this.removeEventListener(e,this.delegatedEventHandler)
5546
+ class Gw extends Rt{constructor(){super(...arguments),this.delegatedEvents=[],this.delegatedEventHandler=()=>{}}focusedRecycleCallback(){}columnChanged(){for(const e of this.delegatedEvents)this.removeEventListener(e,this.delegatedEventHandler)
5521
5547
  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}}))}
5522
- 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)
5523
- const Gw=e=>((e=>{let t
5524
- 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`
5548
+ for(const e of this.delegatedEvents)this.addEventListener(e,this.delegatedEventHandler)}}}e([m],Gw.prototype,"cellRecord",void 0),e([m],Gw.prototype,"columnConfig",void 0),e([m],Gw.prototype,"column",void 0)
5549
+ const Ww=e=>((e=>{let t
5550
+ try{t=document.createElement(e)}catch(e){}if(!(t instanceof Gw))throw new Error(`Cell view tag name (${e}) must evaluate to an element extending TableCellView`)})(e),G`
5525
5551
  <${e}
5526
5552
  :cellRecord="${e=>e.cellState?.cellRecord}"
5527
5553
  :columnConfig="${e=>e.cellState?.columnConfig}"
@@ -5530,10 +5556,10 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof Uw))throw new Error(
5530
5556
  >
5531
5557
  </${e}>
5532
5558
  `)
5533
- 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)
5534
- 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)
5535
- 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()
5536
- 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
5559
+ class Kw{constructor(e){this.uniqueId=Hr("table-column-slot"),this.validConfiguration=!0,this.sortOperation=Zw,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=1,this.minPixelWidth=117,this.currentFractionalWidth=1,this.currentSortDirection=Dw.none,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=Ww(e.cellViewTag),this.groupHeaderViewTemplate=Uw(e.groupHeaderViewTag),this.delegatedEvents=e.delegatedEvents,this.sortOperation=e.sortOperation??Zw}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}e([m],Kw.prototype,"columnConfig",void 0),e([m],Kw.prototype,"validConfiguration",void 0),e([m],Kw.prototype,"operandDataRecordFieldName",void 0),e([m],Kw.prototype,"sortOperation",void 0),e([m],Kw.prototype,"dataRecordFieldNames",void 0),e([m],Kw.prototype,"groupingDisabled",void 0),e([m],Kw.prototype,"groupIndex",void 0),e([m],Kw.prototype,"pixelWidth",void 0),e([m],Kw.prototype,"fractionalWidth",void 0),e([m],Kw.prototype,"minPixelWidth",void 0),e([m],Kw.prototype,"currentFractionalWidth",void 0),e([m],Kw.prototype,"currentPixelWidth",void 0),e([m],Kw.prototype,"currentSortIndex",void 0),e([m],Kw.prototype,"currentSortDirection",void 0)
5560
+ class Xw extends Rt{constructor(){super(...arguments),this.columnInternals=new Kw(this.getColumnInternalsOptions()),this.columnHidden=!1,this.sortDirection=Dw.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=Dw.none,this.columnInternals.currentSortIndex=void 0):(this.columnInternals.currentSortDirection=this.sortDirection,this.columnInternals.currentSortIndex=this.sortIndex)}}e([ne({attribute:"column-id"})],Xw.prototype,"columnId",void 0),e([ne({attribute:"action-menu-slot"})],Xw.prototype,"actionMenuSlot",void 0),e([ne({attribute:"action-menu-label"})],Xw.prototype,"actionMenuLabel",void 0),e([ne({attribute:"column-hidden",mode:"boolean"})],Xw.prototype,"columnHidden",void 0),e([ne({attribute:"sort-index",converter:oe})],Xw.prototype,"sortIndex",void 0),e([ne({attribute:"sort-direction"})],Xw.prototype,"sortDirection",void 0),e([ne({attribute:"sorting-disabled",mode:"boolean"})],Xw.prototype,"sortingDisabled",void 0),e([m],Xw.prototype,"hasOverflow",void 0)
5561
+ class Yw{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()
5562
+ return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateSelectionMode(e,t){return this.idFieldNameNotConfigured=e!==Lw.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
5537
5563
  for(const o of e){if(!Object.prototype.hasOwnProperty.call(o,t)){this.missingRecordId=!0
5538
5564
  continue}const e=o[t]
5539
5565
  "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
@@ -5541,7 +5567,7 @@ const t=e.some((e=>e))
5541
5567
  if(!t)return!0
5542
5568
  const o=new Set
5543
5569
  for(const t of e)t?(o.has(t)&&(this.duplicateColumnId=!0),o.add(t)):this.missingColumnId=!0
5544
- 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`
5570
+ 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 Qw=fe`
5545
5571
  ${xn("flex")}
5546
5572
 
5547
5573
  :host {
@@ -5650,7 +5676,7 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5650
5676
  background-color: ${cs(Un,.1)};
5651
5677
  position: absolute;
5652
5678
  }
5653
- `)),Qw=fe`
5679
+ `)),Jw=fe`
5654
5680
  ${xn("flex")}
5655
5681
 
5656
5682
  :host {
@@ -5669,7 +5695,7 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5669
5695
  .grouped-indicator {
5670
5696
  flex: 0 0 auto;
5671
5697
  }
5672
- `,Jw=G`
5698
+ `,ex=G`
5673
5699
  <template role="columnheader"
5674
5700
  aria-sort="${e=>e.ariaSort}"
5675
5701
  ${""}
@@ -5677,10 +5703,10 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5677
5703
  >
5678
5704
  <slot></slot>
5679
5705
  ${""}
5680
- ${Me((e=>e.sortDirection===Tw.ascending),G`
5706
+ ${Me((e=>e.sortDirection===Dw.ascending),G`
5681
5707
  <${Gg} class="sort-indicator" aria-hidden="true"></${Gg}>
5682
5708
  `)}
5683
- ${Me((e=>e.sortDirection===Tw.descending),G`
5709
+ ${Me((e=>e.sortDirection===Dw.descending),G`
5684
5710
  <${Hg} class="sort-indicator" aria-hidden="true"></${Hg}>
5685
5711
  `)}
5686
5712
  ${Me((e=>e.isGrouped),G`
@@ -5688,10 +5714,10 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5688
5714
  `)}
5689
5715
  </template>
5690
5716
  `
5691
- 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)
5692
- const tx=ex.compose({baseName:"table-header",template:Jw,styles:Qw})
5693
- ai.getOrCreate().withPrefix("nimble").register(tx())
5694
- const ox=ai.tagFor(ex),ix=fe`
5717
+ class tx extends Rt{constructor(){super(...arguments),this.sortDirection=Dw.none,this.firstSortedColumn=!1,this.isGrouped=!1}sortDirectionChanged(e,t){this.updateAriaSort()}firstSortedColumnChanged(e,t){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==Dw.none?this.sortDirection===Dw.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}e([ne({attribute:"sort-direction"})],tx.prototype,"sortDirection",void 0),e([ne({attribute:"first-sorted-column",mode:"boolean"})],tx.prototype,"firstSortedColumn",void 0),e([m],tx.prototype,"isGrouped",void 0)
5718
+ const ox=tx.compose({baseName:"table-header",template:ex,styles:Jw})
5719
+ ai.getOrCreate().withPrefix("nimble").register(ox())
5720
+ const ix=ai.tagFor(tx),nx=fe`
5695
5721
  ${xn("flex")}
5696
5722
 
5697
5723
  :host {
@@ -5778,7 +5804,7 @@ const ox=ai.tagFor(ex),ix=fe`
5778
5804
  :host([selected]:hover)::before {
5779
5805
  background-color: ${cs(Un,.2)};
5780
5806
  }
5781
- `)),nx=fe`
5807
+ `)),sx=fe`
5782
5808
  ${xn("flex")}
5783
5809
 
5784
5810
  :host {
@@ -5808,7 +5834,7 @@ const ox=ai.tagFor(ex),ix=fe`
5808
5834
  height: ${ra};
5809
5835
  align-self: center;
5810
5836
  }
5811
- `,sx=G`
5837
+ `,rx=G`
5812
5838
  <template role="cell" style="--ni-private-table-cell-nesting-level: ${e=>e.nestingLevel}">
5813
5839
  ${e=>e.cellViewTemplate}
5814
5840
  ${Me((e=>e.hasActionMenu),G`
@@ -5827,10 +5853,10 @@ const ox=ai.tagFor(ex),ix=fe`
5827
5853
  `)}
5828
5854
  </template>
5829
5855
  `
5830
- 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)
5831
- const ax=rx.compose({baseName:"table-cell",template:sx,styles:nx})
5832
- ai.getOrCreate().withPrefix("nimble").register(ax())
5833
- const lx=ai.tagFor(rx),cx=G`
5856
+ class ax 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],ax.prototype,"cellState",void 0),e([m],ax.prototype,"column",void 0),e([ne({attribute:"has-action-menu",mode:"boolean"})],ax.prototype,"hasActionMenu",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],ax.prototype,"menuOpen",void 0),e([ne({attribute:"action-menu-label"})],ax.prototype,"actionMenuLabel",void 0),e([m],ax.prototype,"cellViewTemplate",void 0),e([m],ax.prototype,"nestingLevel",void 0)
5857
+ const lx=ax.compose({baseName:"table-cell",template:rx,styles:sx})
5858
+ ai.getOrCreate().withPrefix("nimble").register(lx())
5859
+ const cx=ai.tagFor(ax),dx=G`
5834
5860
  <template role="row" aria-selected=${e=>e.ariaSelected}>
5835
5861
  ${Me((e=>e.selectable&&!e.hideSelection),G`
5836
5862
  <span role="gridcell" class="checkbox-container">
@@ -5849,7 +5875,7 @@ const lx=ai.tagFor(rx),cx=G`
5849
5875
  <span ${Re("cellContainer")} class="cell-container">
5850
5876
  ${He((e=>e.columnStates),G`
5851
5877
  ${Me((e=>!e.column.columnHidden),G`
5852
- <${lx}
5878
+ <${cx}
5853
5879
  class="cell"
5854
5880
  :cellState="${e=>e.cellState}"
5855
5881
  :cellViewTemplate="${e=>e.column.columnInternals.cellViewTemplate}"
@@ -5867,13 +5893,13 @@ const lx=ai.tagFor(rx),cx=G`
5867
5893
  slot="cellActionMenu"
5868
5894
  ></slot>
5869
5895
  `)}
5870
- </${lx}>
5896
+ </${cx}>
5871
5897
  `)}
5872
5898
  `)}
5873
5899
  </span>
5874
5900
  </template>
5875
5901
  `
5876
- 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
5902
+ class hx 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
5877
5903
  let i
5878
5904
  if(this.hasValidFieldNames(o)&&this.dataRecord){const t=o.map((e=>this.dataRecord[e]))
5879
5905
  i={cellRecord:Object.fromEntries(e.columnInternals.cellRecordFieldNames.map(((e,o)=>[e,t[o]]))),columnConfig:e.columnInternals.columnConfig??{}}}else i={cellRecord:{},columnConfig:{}}
@@ -5881,12 +5907,12 @@ return{column:e,cellState:i,cellIndentLevel:0===t&&this.nestingLevel>0?this.nest
5881
5907
  const t=e.target.checked
5882
5908
  this.selected=t
5883
5909
  const o={oldState:!t,newState:t}
5884
- 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))
5910
+ 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 ax&&e.menuOpen))
5885
5911
  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}
5886
- 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)
5887
- const hx=dx.compose({baseName:"table-row",template:cx,styles:ix})
5888
- ai.getOrCreate().withPrefix("nimble").register(hx())
5889
- const ux=ai.tagFor(dx),px=fe`
5912
+ 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"})],hx.prototype,"recordId",void 0),e([ne({mode:"boolean"})],hx.prototype,"selectable",void 0),e([ne({mode:"boolean"})],hx.prototype,"selected",void 0),e([ne({attribute:"hide-selection",mode:"boolean"})],hx.prototype,"hideSelection",void 0),e([m],hx.prototype,"dataRecord",void 0),e([m],hx.prototype,"columns",void 0),e([m],hx.prototype,"currentActionMenuColumn",void 0),e([m],hx.prototype,"nestingLevel",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],hx.prototype,"menuOpen",void 0),e([m],hx.prototype,"selectionCheckbox",void 0),e([f],hx.prototype,"columnStates",null),e([f],hx.prototype,"ariaSelected",null)
5913
+ const ux=hx.compose({baseName:"table-row",template:dx,styles:nx})
5914
+ ai.getOrCreate().withPrefix("nimble").register(ux())
5915
+ const px=ai.tagFor(hx),gx=fe`
5890
5916
  ${xn("grid")}
5891
5917
 
5892
5918
  :host {
@@ -5991,7 +6017,7 @@ const ux=ai.tagFor(dx),px=fe`
5991
6017
  :host(:hover)::before {
5992
6018
  background-color: ${cs(Un,.1)};
5993
6019
  }
5994
- `)),gx=G`
6020
+ `)),vx=G`
5995
6021
  <template
5996
6022
  role="row"
5997
6023
  @click=${e=>e.onGroupExpandToggle()}
@@ -6027,14 +6053,14 @@ const ux=ai.tagFor(dx),px=fe`
6027
6053
  </div>
6028
6054
  </template>
6029
6055
  `
6030
- 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
6056
+ class mx extends Rt{constructor(){super(...arguments),this.nestingLevel=0,this.expanded=!1,this.selectable=!1,this.selectionState=zw,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
6031
6057
  const t=e.target.checked
6032
- this.selectionState=t?zw:Lw
6058
+ this.selectionState=t?Bw:zw
6033
6059
  const o={oldState:!t,newState:t}
6034
- 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)
6035
- const mx=vx.compose({baseName:"table-group-row",template:gx,styles:px})
6036
- ai.getOrCreate().withPrefix("nimble").register(mx())
6037
- const fx=ai.tagFor(vx),bx=G`
6060
+ this.$emit("group-selection-toggle",o)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===Bw,this.selectionCheckbox.indeterminate=this.selectionState===Nw,this.ignoreSelectionChangeEvents=!1)}}e([m],mx.prototype,"groupRowValue",void 0),e([m],mx.prototype,"nestingLevel",void 0),e([m],mx.prototype,"leafItemCount",void 0),e([m],mx.prototype,"groupColumn",void 0),e([ne({mode:"boolean"})],mx.prototype,"expanded",void 0),e([ne({mode:"boolean"})],mx.prototype,"selectable",void 0),e([ne({attribute:"selection-state"})],mx.prototype,"selectionState",void 0),e([m],mx.prototype,"selectionCheckbox",void 0),e([m],mx.prototype,"animationClass",void 0)
6061
+ const fx=mx.compose({baseName:"table-group-row",template:vx,styles:gx})
6062
+ ai.getOrCreate().withPrefix("nimble").register(fx())
6063
+ const bx=ai.tagFor(mx),wx=G`
6038
6064
  <template
6039
6065
  role="grid"
6040
6066
  aria-multiselectable="${e=>e.ariaMultiSelectable}"
@@ -6050,7 +6076,7 @@ const fx=ai.tagFor(vx),bx=G`
6050
6076
  ">
6051
6077
  <div role="rowgroup" class="header-container">
6052
6078
  <div class="header-row" role="row">
6053
- ${Me((e=>e.selectionMode===Dw.multiple),G`
6079
+ ${Me((e=>e.selectionMode===Lw.multiple),G`
6054
6080
  <span role="columnheader" class="checkbox-container">
6055
6081
  <${sg}
6056
6082
  ${Re("selectionCheckbox")}
@@ -6075,15 +6101,15 @@ const fx=ai.tagFor(vx),bx=G`
6075
6101
  <span class="column-header-container">
6076
6102
  ${He((e=>e.columns),G`
6077
6103
  ${Me((e=>!e.columnHidden),G`
6078
- <${ox}
6104
+ <${ix}
6079
6105
  class="header"
6080
- sort-direction="${e=>"number"==typeof e.columnInternals.currentSortIndex?e.columnInternals.currentSortDirection:Tw.none}"
6106
+ sort-direction="${e=>"number"==typeof e.columnInternals.currentSortIndex?e.columnInternals.currentSortDirection:Dw.none}"
6081
6107
  ?first-sorted-column="${(e,t)=>e===t.parent.firstSortedColumn}"
6082
6108
  @click="${(e,t)=>t.parent.toggleColumnSort(e,t.event.shiftKey)}"
6083
6109
  :isGrouped=${e=>"number"==typeof e.columnInternals.groupIndex&&!e.columnInternals.groupingDisabled}
6084
6110
  >
6085
6111
  <slot name="${e=>e.slot}"></slot>
6086
- </${ox}>
6112
+ </${ix}>
6087
6113
  `)}
6088
6114
  `)}
6089
6115
  <div class="header-scrollbar-spacer"></div>
@@ -6092,32 +6118,32 @@ const fx=ai.tagFor(vx),bx=G`
6092
6118
  </div>
6093
6119
  <div class="table-viewport" ${Re("viewport")}>
6094
6120
  <div class="table-scroll"></div>
6095
- <div class="table-row-container" ${Be({property:"rowElements",filter:Pe(ux)})}
6121
+ <div class="table-row-container" ${Be({property:"rowElements",filter:Pe(px)})}
6096
6122
  role="rowgroup">
6097
6123
  ${Me((e=>e.columns.length>0&&e.canRenderRows),G`
6098
6124
  ${He((e=>e.virtualizer.visibleItems),G`
6099
6125
  ${Me(((e,t)=>t.parent.tableData[e.index]?.isGrouped),G`
6100
- <${fx}
6126
+ <${bx}
6101
6127
  class="group-row"
6102
6128
  :groupRowValue="${(e,t)=>t.parent.tableData[e.index]?.groupRowValue}"
6103
6129
  ?expanded="${(e,t)=>t.parent.tableData[e.index]?.isExpanded}"
6104
6130
  :nestingLevel="${(e,t)=>t.parent.tableData[e.index]?.nestingLevel}"
6105
6131
  :leafItemCount="${(e,t)=>t.parent.tableData[e.index]?.leafItemCount}"
6106
6132
  :groupColumn="${(e,t)=>t.parent.tableData[e.index]?.groupColumn}"
6107
- ?selectable="${(e,t)=>t.parent.selectionMode===Dw.multiple}"
6133
+ ?selectable="${(e,t)=>t.parent.selectionMode===Lw.multiple}"
6108
6134
  selection-state="${(e,t)=>t.parent.tableData[e.index]?.selectionState}"
6109
6135
  @group-selection-toggle="${(e,t)=>t.parent.onRowSelectionToggle(e.index,t.event)}"
6110
6136
  @group-expand-toggle="${(e,t)=>t.parent.handleGroupRowExpanded(e.index,t.event)}"
6111
6137
  >
6112
- </${fx}>
6138
+ </${bx}>
6113
6139
  `)}
6114
6140
  ${Me(((e,t)=>!t.parent.tableData[e.index]?.isGrouped),G`
6115
- <${ux}
6141
+ <${px}
6116
6142
  class="row"
6117
6143
  record-id="${(e,t)=>t.parent.tableData[e.index]?.id}"
6118
- ?selectable="${(e,t)=>t.parent.selectionMode!==Dw.none}"
6119
- ?selected="${(e,t)=>t.parent.tableData[e.index]?.selectionState===zw}"
6120
- ?hide-selection="${(e,t)=>t.parent.selectionMode!==Dw.multiple}"
6144
+ ?selectable="${(e,t)=>t.parent.selectionMode!==Lw.none}"
6145
+ ?selected="${(e,t)=>t.parent.tableData[e.index]?.selectionState===Bw}"
6146
+ ?hide-selection="${(e,t)=>t.parent.selectionMode!==Lw.multiple}"
6121
6147
  :dataRecord="${(e,t)=>t.parent.tableData[e.index]?.record}"
6122
6148
  :columns="${(e,t)=>t.parent.columns}"
6123
6149
  :nestingLevel="${(e,t)=>t.parent.tableData[e.index]?.nestingLevel}"
@@ -6134,7 +6160,7 @@ const fx=ai.tagFor(vx),bx=G`
6134
6160
  </slot>
6135
6161
  `)}
6136
6162
  `)}
6137
- </${ux}>
6163
+ </${px}>
6138
6164
  `)}
6139
6165
  `)}
6140
6166
  `)}
@@ -6153,8 +6179,8 @@ const fx=ai.tagFor(vx),bx=G`
6153
6179
  *
6154
6180
  * @license MIT
6155
6181
  */
6156
- function wx(){return wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]
6157
- for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},wx.apply(this,arguments)}
6182
+ function xx(){return xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]
6183
+ for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},xx.apply(this,arguments)}
6158
6184
  /**
6159
6185
  * virtual-core
6160
6186
  *
@@ -6164,42 +6190,42 @@ for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},
6164
6190
  * LICENSE.md file in the root directory of this source tree.
6165
6191
  *
6166
6192
  * @license MIT
6167
- */function xx(e,t,o){var i,n,s=null!=(i=o.initialDeps)?i:[]
6193
+ */function yx(e,t,o){var i,n,s=null!=(i=o.initialDeps)?i:[]
6168
6194
  return function(){var i
6169
6195
  o.key&&null!=o.debug&&o.debug()&&(i=Date.now())
6170
6196
  var r,a=e()
6171
6197
  if(!(a.length!==s.length||a.some((function(e,t){return s[t]!==e}))))return n
6172
6198
  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
6173
6199
  return e}
6174
- 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)
6175
- return i},kx=function(e,t){var o=new ResizeObserver((function(e){var o=e[0]
6200
+ 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 $x,Cx=function(e){return e},kx=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)
6201
+ return i},Sx=function(e,t){var o=new ResizeObserver((function(e){var o=e[0]
6176
6202
  if(o){var i=o.contentRect,n=i.width,s=i.height
6177
6203
  t({width:Math.round(n),height:Math.round(s)})}else t({width:0,height:0})}))
6178
- 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]
6204
+ if(e.scrollElement)return t(e.scrollElement.getBoundingClientRect()),o.observe(e.scrollElement),function(){o.unobserve(e.scrollElement)}},_x={element:["scrollLeft","scrollTop"],window:["scrollX","scrollY"]},Ix=($x="element",function(e,t){if(e.scrollElement){var o=_x[$x][0],i=_x[$x][1],n=e.scrollElement[o],s=e.scrollElement[i],r=function(){var n=e.scrollElement[e.options.horizontal?o:i]
6179
6205
  t(n)}
6180
6206
  r()
6181
6207
  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}
6182
- 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
6183
- 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
6208
+ return e.scrollElement.addEventListener("scroll",a,{capture:!1,passive:!0}),function(){e.scrollElement.removeEventListener("scroll",a)}}}),Rx=function(e,t){return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},Mx=function(e,t,o){var i,n,s=t.adjustments,r=void 0===s?0:s,a=t.behavior,l=e+r
6209
+ null==(i=o.scrollElement)||null==i.scrollTo||i.scrollTo(((n={})[o.options.horizontal?"left":"top"]=l,n.behavior=a,n))},Ax=function(e){var t,o=this
6184
6210
  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]
6185
- 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()
6211
+ void 0===t[1]&&delete e[o]})),o.options=xx({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Cx,rangeExtractor:kx,onChange:function(){},measureElement:Rx,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()
6186
6212
  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()
6187
- 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
6213
+ 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=yx((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
6188
6214
  o.pendingMeasuredCacheIndexes=[]
6189
6215
  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
6190
- 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)
6216
+ 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=yx((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)
6191
6217
  if(s<i)e=n+1
6192
6218
  else{if(!(s>i))return n
6193
6219
  t=n-1}}return e>0?e-1:0}(0,n,s,i),a=r
6194
6220
  for(;a<n&&t[a].end<i+o;)a++
6195
- 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)
6221
+ return{startIndex:r,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:i})}),{key:!1,debug:function(){return o.options.debug}}),this.maybeNotify=yx((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=yx((function(){return[o.options.rangeExtractor,o.calculateRange(),o.options.overscan,o.options.count]}),(function(e,t,o,i){return e(xx({},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)
6196
6222
  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]
6197
6223
  if(s){var r=o.measureElementCache[s.key],a=o.getResizeObserver()
6198
6224
  if(!e.isConnected)return null==a||a.unobserve(e),void(e===r&&delete o.measureElementCache[s.key])
6199
6225
  if(r!==e)r&&(null==a||a.unobserve(r)),null==a||a.observe(e),o.measureElementCache[s.key]=e
6200
6226
  else if(!t&&!r.__virtualizerSkipFirstNotSync)return void(r.__virtualizerSkipFirstNotSync=!0)
6201
6227
  var l,c=o.options.measureElement(e,o),d=c-(null!=(i=o.itemSizeCache[s.key])?i:s.size)
6202
- 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]]
6228
+ if(0!==d)s.start<o.scrollOffset&&o._scrollToOffset(o.scrollOffset,{adjustments:o.scrollAdjustments+=d,behavior:void 0}),o.pendingMeasuredCacheIndexes.push(n),o.itemSizeCache=xx({},o.itemSizeCache,((l={})[s.key]=c,l)),o.notify()}},this.measureElement=function(e){e&&o._measureElement(e,!0)},this.getVirtualItems=yx((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]]
6203
6229
  o.push(s)}return o}),{key:!1,debug:function(){return o.options.debug}}),this.getOffsetForAlignment=function(e,t){var i=o.getSize()
6204
6230
  "auto"===t&&(t=e<=o.scrollOffset?"start":e>=o.scrollOffset+i?"end":"start"),"start"===t||("end"===t?e-=i:"center"===t&&(e-=i/2))
6205
6231
  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()
@@ -6229,25 +6255,25 @@ o.options.scrollToFn(e,{behavior:n,adjustments:i},o)},this.measure=function(){o.
6229
6255
  * LICENSE.md file in the root directory of this source tree.
6230
6256
  *
6231
6257
  * @license MIT
6232
- */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]
6258
+ */class Ex{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]
6233
6259
  if(t){const e=t.inlineSize
6234
6260
  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()
6235
- 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))
6236
- 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()
6261
+ this.virtualizer?this.virtualizer.setOptions(e):this.virtualizer=new Ax(e),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const e=parseFloat(sa.getValueFor(this.table))+2*parseFloat(ca.getValueFor(this.table))
6262
+ return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:t=>e,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:Mx,observeElementOffset:Ix,observeElementRect:Sx,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){this.notifyFocusedCellRecycling()
6237
6263
  const e=this.virtualizer
6238
6264
  this.visibleItems=e.getVirtualItems(),this.allRowsHeight=e.getTotalSize()
6239
6265
  let t=0
6240
6266
  if(this.visibleItems.length>0){t=this.visibleItems[0].start}this.rowContainerYOffset=t}notifyFocusedCellRecycling(){let e=this.table.shadowRoot.activeElement
6241
- for(;null!==e&&!(e instanceof Uw)&&e.shadowRoot;)e=e.shadowRoot.activeElement
6242
- 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
6243
- case Zw:return Ox
6244
- default:return Ow.basic}}function Ox(e,t,o){const i=e.getValue(o),n=t.getValue(o)
6245
- 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)
6246
- 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
6247
- return!1},Px=(e,...t)=>{for(const o of t)if(e===o)return!0
6248
- return!1},Tx=["rowIds","groupRows","columnIds","columnSort","columnWidths","columnDefinition","actionMenuSlots","selectionMode"]
6249
- 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
6250
- 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")
6267
+ for(;null!==e&&!(e instanceof Gw)&&e.shadowRoot;)e=e.shadowRoot.activeElement
6268
+ if(e instanceof Gw&&e.focusedRecycleCallback(),void 0!==this.table.openActionMenuRecordId){this.table.rowElements.find((e=>e.recordId===this.table.openActionMenuRecordId))?.closeOpenActionMenus()}}}function Ox(e){switch(e){case Zw:return Fw.basic
6269
+ case qw:return Fx
6270
+ default:return Fw.basic}}function Fx(e,t,o){const i=e.getValue(o),n=t.getValue(o)
6271
+ 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],Ex.prototype,"visibleItems",void 0),e([m],Ex.prototype,"allRowsHeight",void 0),e([m],Ex.prototype,"headerContainerMarginRight",void 0),e([m],Ex.prototype,"rowContainerYOffset",void 0)
6272
+ class Vx{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 Hx extends Vx{}const Px=(e,...t)=>{for(const o of t)if(e===o)return!0
6273
+ return!1},Tx=(e,...t)=>{for(const o of t)if(e===o)return!0
6274
+ return!1},Dx=["rowIds","groupRows","columnIds","columnSort","columnWidths","columnDefinition","actionMenuSlots","selectionMode"]
6275
+ class Lx extends Hx{constructor(e){super(Dx),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){Px(e,"columnId")?this.track("columnIds"):Tx(e,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):Px(e,"sortingDisabled")||Tx(e,"currentSortDirection","currentSortIndex")?this.track("columnSort"):Px(e,"columnHidden")||Tx(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth")?this.track("columnWidths"):Px(e,"actionMenuSlot")?this.track("actionMenuSlots"):Tx(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 zx{static getGridTemplateColumns(e){return e?.filter((e=>!e.columnHidden)).map((e=>{const{minPixelWidth:t,currentPixelWidth:o,currentFractionalWidth:i}=e.columnInternals
6276
+ if(o){return`${Math.max(t,o)}px`}return`minmax(${t}px, ${i}fr)`})).join(" ")}}class Bx{constructor(e){this.tanStackTable=e}reset(){}toggleIsRowSelected(e,t){e.isGrouped&&e.selectionState===Bw?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")
6251
6277
  const t=this.tanStackTable.getState().rowSelection,o=[]
6252
6278
  if(Object.entries(t).forEach((([e,t])=>{t&&o.push(e)})),1===o.length&&o[0]===e.id)return!1
6253
6279
  const i={}
@@ -6257,7 +6283,7 @@ this.tanStackTable.setRowSelection(i)}getAllLeafRowIds(e){const t=this.tanStackT
6257
6283
  return t?.getIsGrouped()?t.getLeafRows().filter((e=>0===e.getLeafRows().length)).map((e=>e.id)):[]}getAllOrderedRows(){const e=this.tanStackTable.getPreExpandedRowModel().rows
6258
6284
  return this.getOrderedRows(e)}getOrderedRows(e){const t=[]
6259
6285
  for(const o of e)t.push(o),o.subRows?.length&&t.push(...this.getOrderedRows(o.subRows))
6260
- 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
6286
+ return t}}class Nx extends Bx{handleRowSelectionToggle(e,t,o){return!1}handleRowClick(e,t,o){return!1}handleActionMenuOpening(e){return!1}}class Zx extends Bx{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!==Bw&&this.selectSingleRow(e)}reset(){this.shiftSelectStartRowId=void 0,this.previousShiftSelectRowEndId=void 0}tryUpdateRangeSelection(e){if(void 0===this.shiftSelectStartRowId)return!1
6261
6287
  const t=this.getAllOrderedRows(),o=this.getRowIndexForId(this.shiftSelectStartRowId,t)
6262
6288
  if(-1===o)return!1
6263
6289
  const i=this.tanStackTable.getState().rowSelection
@@ -6267,20 +6293,20 @@ this.updateSelectionStateForRange(e,o,n,i,!0)}updateSelectionStateForRange(e,t,o
6267
6293
  const s=Math.min(t,o),r=Math.max(t,o)
6268
6294
  for(let t=s;t<=r;t++){const o=i[t]
6269
6295
  o.getIsGrouped()||this.updateSelectionStateForRow(e,o.id,n)}const a=i[o]
6270
- 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)
6271
- case Dw.single:return new Zx(this.tanStackTable)
6272
- case Dw.none:return new Bx(this.tanStackTable)
6273
- 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
6296
+ 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 qx extends Bx{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 jx{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 Lw.multiple:return new Zx(this.tanStackTable)
6297
+ case Lw.single:return new qx(this.tanStackTable)
6298
+ case Lw.none:return new Nx(this.tanStackTable)
6299
+ default:throw new Error("unknown selection mode found")}}}class Ux extends Rt{constructor(){super(),this.selectionMode=Lw.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.actionMenuSlots=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=zw,this.showCollapseAll=!1,this.documentShiftKeyDown=!1,this.tableValidator=new Yw,this.tableUpdateTracker=new Lx(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
6274
6300
  const t=this.table.options.state.expanded
6275
6301
  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
6276
6302
  this.updateTableOptions({state:{rowSelection:t}})},this.handleExpandedChange=e=>{const t=e instanceof Function?e(this.table.getState().expanded):e
6277
- 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)
6303
+ this.updateTableOptions({state:{expanded:t}})},this.options={data:[],onStateChange:e=>{},onRowSelectionChange:this.handleRowSelectionChange,onExpandedChange:this.handleExpandedChange,getCoreRowModel:e=>tw((()=>[e.options.data]),(t=>{const o={rows:[],flatRows:[],rowsById:{}},i=function(t,n,s){void 0===n&&(n=0)
6278
6304
  const r=[]
6279
- for(let l=0;l<t.length;l++){const c=Hw(e,e._getRowId(t[l],l,s),t[l],l,n)
6305
+ for(let l=0;l<t.length;l++){const c=Pw(e,e._getRowId(t[l],l,s),t[l],l,n)
6280
6306
  var a
6281
6307
  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}
6282
6308
  return o.rows=i(t),o}),{key:!1,debug:()=>{var t
6283
- 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
6309
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>tw((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,o)=>{if(!o.rows.length||null==t||!t.length)return o
6284
6310
  const i=e.getState().sorting,n=[],s=i.filter((t=>{var o
6285
6311
  return null==(o=e.getColumn(t.id))?void 0:o.getCanSort()})),r={}
6286
6312
  s.forEach((t=>{const o=e.getColumn(t.id)
@@ -6293,57 +6319,57 @@ if(o||i)return o&&i?0:o?a.sortUndefined:-a.sortUndefined}let c=a.sortingFn(e,t,n
6293
6319
  if(0!==c)return l&&(c*=-1),a.invertSorting&&(c*=-1),c}return e.index-t.index})),t.forEach((e=>{var t
6294
6320
  n.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))})),t}
6295
6321
  return{rows:a(o.rows),flatRows:n,rowsById:o.rowsById}}),{key:!1,debug:()=>{var t
6296
- 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
6322
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getGroupedRowModel:Tw(),getExpandedRowModel:e=>tw((()=>[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
6297
6323
  t.push(e),null!=(i=e.subRows)&&i.length&&e.getIsExpanded()&&e.subRows.forEach(o)}
6298
6324
  return e.rows.forEach(o),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}(t):t),{key:!1,debug:()=>{var t
6299
- 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()
6325
+ 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=Hw(this.options),this.virtualizer=new Ex(this,this.table),this.selectionManager=new jx(this.table,this.selectionMode)}get validity(){return this.tableValidator.getValidity()}async setData(e){await this.processPendingUpdates()
6300
6326
  const t=e.map((e=>({...e}))),o={data:t}
6301
6327
  if(this.validateWithData(t),this.tableValidator.areRecordIdsValid()){const e=await this.getSelectedRecordIds()
6302
6328
  o.state={rowSelection:this.calculateTanStackSelectionState(e)}}this.updateTableOptions(o)}async getSelectedRecordIds(){await this.processPendingUpdates()
6303
6329
  const e=this.options.state.rowSelection
6304
6330
  if(!e)return[]
6305
6331
  const t=[]
6306
- 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()
6332
+ return Object.entries(e).forEach((([e,o])=>{o&&t.push(e)})),t}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==Lw.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 Xw||e instanceof Kw)&&"string"==typeof t&&("validConfiguration"===t?this.tableValidator.validateColumnConfigurations(this.columns):this.tableUpdateTracker.trackColumnPropertyChanged(t))}onRowSelectionToggle(e,t){t.stopImmediatePropagation()
6307
6333
  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
6308
6334
  const o=this.getColumnsParticipatingInSorting().sort(((e,t)=>e.columnInternals.currentSortIndex-t.columnInternals.currentSortIndex)),i=o.indexOf(e),n=i>-1,s=e.columnInternals.currentSortDirection
6309
- let r=Tw.ascending
6310
- 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
6335
+ let r=Dw.ascending
6336
+ n?s===Dw.descending?(o.splice(i,1),r=Dw.none,e.columnInternals.currentSortIndex=void 0):r=Dw.descending:o.push(e),e.columnInternals.currentSortDirection=r
6311
6337
  for(let i=0;i<o.length;i++){const n=o[i]
6312
- 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"
6313
- case Dw.single:return"false"
6338
+ t?o[i].columnInternals.currentSortIndex=i:n===e?n.columnInternals.currentSortIndex=0:(n.columnInternals.currentSortIndex=void 0,n.columnInternals.currentSortDirection=Dw.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 Lw.multiple:return"true"
6339
+ case Lw.single:return"false"
6314
6340
  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]
6315
6341
  const o=await this.getActionMenuToggleEventDetail(t)
6316
6342
  this.$emit("action-menu-beforetoggle",o)}async handleRowActionMenuToggleEvent(e){const t=await this.getActionMenuToggleEventDetail(e)
6317
- 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]
6343
+ this.$emit("action-menu-toggle",t),e.detail.newState||(this.openActionMenuRecordId=void 0)}async getActionMenuToggleEventDetail(e){const t=this.selectionMode===Lw.multiple?await this.getSelectedRecordIds():[this.openActionMenuRecordId]
6318
6344
  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()
6319
6345
  for(const e of this.columns){const t=v.getNotifier(e)
6320
6346
  t.subscribe(this),this.columnNotifiers.push(t)
6321
- 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()))
6322
- await Promise.all(e),this.columns=this.childItems.filter((e=>e instanceof Kw))}updateTanStack(){const e={state:{}}
6323
- 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
6347
+ v.getNotifier(e.columnInternals).subscribe(this),this.columnNotifiers.push(t)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>!e.sortingDisabled&&e.columnInternals.currentSortDirection!==Dw.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()))
6348
+ await Promise.all(e),this.columns=this.childItems.filter((e=>e instanceof Xw))}updateTanStack(){const e={state:{}}
6349
+ 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===Lw.multiple,e.enableSubRowSelection=this.selectionMode===Lw.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
6324
6350
  for(const t of this.columns)t.actionMenuSlot&&e.add(t.actionMenuSlot)
6325
- 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})))}
6351
+ this.actionMenuSlots=Array.from(e)}updateRowGridColumns(){this.rowGridColumns=zx.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})))}
6326
6352
  this.$emit("column-configuration-change",e)}async emitSelectionChangeEvent(){const e={selectedRecordIds:await this.getSelectedRecordIds()}
6327
- 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()
6353
+ this.$emit("selection-change",e)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===Bw,this.selectionCheckbox.indeterminate=this.selectionState===Nw,this.ignoreSelectionChangeEvents=!1)}refreshRows(){this.selectionState=this.getTableSelectionState()
6328
6354
  const e=this.table.getRowModel().rows
6329
- 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??[]
6355
+ 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()?Bw:this.table.getIsSomeRowsSelected()?Nw:zw}getRowSelectionState(e){return e.getIsGrouped()?this.getGroupedRowSelectionState(e):e.getIsSelected()?Bw:zw}getGroupedRowSelectionState(e){const t=e.subRows??[]
6330
6356
  let o=!1,i=!1
6331
- for(const e of t){if(e.getIsGrouped()){switch(this.getGroupedRowSelectionState(e)){case Lw:i=!0
6357
+ for(const e of t){if(e.getIsGrouped()){switch(this.getGroupedRowSelectionState(e)){case zw:i=!0
6332
6358
  break
6333
- case zw:o=!0
6359
+ case Bw:o=!0
6334
6360
  break
6335
- default:return Bw}}else e.getIsSelected()?o=!0:i=!0
6336
- if(o&&i)return Bw}return o?zw:Lw}getGroupRowColumn(e){const t=e.groupingColumnId
6361
+ default:return Nw}}else e.getIsSelected()?o=!0:i=!0
6362
+ if(o&&i)return Nw}return o?Bw:zw}getGroupRowColumn(e){const t=e.groupingColumnId
6337
6363
  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]
6338
6364
  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))
6339
- 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
6340
- if("string"==typeof o)return t[o]},sortingFn:Ex(e.columnInternals.sortOperation)})))}calculateTanStackSelectionState(e){if(this.selectionMode===Dw.none)return{}
6365
+ return this.firstSortedColumn=e.length?e[0]:void 0,e.map((e=>({id:e.columnInternals.uniqueId,desc:e.columnInternals.currentSortDirection===Dw.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
6366
+ if("string"==typeof o)return t[o]},sortingFn:Ox(e.columnInternals.sortOperation)})))}calculateTanStackSelectionState(e){if(this.selectionMode===Lw.none)return{}
6341
6367
  const t={},o=this.tableValidator.getPresentRecordIds(e)
6342
- for(const e of o)if(t[e]=!0,this.selectionMode===Dw.single)break
6343
- 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)
6344
- const Ux=jx.compose({baseName:"table",template:bx,styles:Yw})
6345
- ai.getOrCreate().withPrefix("nimble").register(Ux()),ai.tagFor(jx)
6346
- const Gx=fe`
6368
+ for(const e of o)if(t[e]=!0,this.selectionMode===Lw.single)break
6369
+ return t}}e([ne({attribute:"id-field-name"})],Ux.prototype,"idFieldName",void 0),e([ne({attribute:"selection-mode"})],Ux.prototype,"selectionMode",void 0),e([m],Ux.prototype,"tableData",void 0),e([m],Ux.prototype,"columns",void 0),e([m],Ux.prototype,"childItems",void 0),e([m],Ux.prototype,"rowElements",void 0),e([m],Ux.prototype,"actionMenuSlots",void 0),e([m],Ux.prototype,"openActionMenuRecordId",void 0),e([m],Ux.prototype,"canRenderRows",void 0),e([m],Ux.prototype,"scrollX",void 0),e([m],Ux.prototype,"rowGridColumns",void 0),e([m],Ux.prototype,"selectionState",void 0),e([m],Ux.prototype,"selectionCheckbox",void 0),e([m],Ux.prototype,"showCollapseAll",void 0),e([m],Ux.prototype,"firstSortedColumn",void 0),e([m],Ux.prototype,"documentShiftKeyDown",void 0)
6370
+ const Gx=Ux.compose({baseName:"table",template:wx,styles:Qw})
6371
+ ai.getOrCreate().withPrefix("nimble").register(Gx()),ai.tagFor(Ux)
6372
+ const Wx=fe`
6347
6373
  :host {
6348
6374
  display: contents;
6349
6375
  }
@@ -6354,11 +6380,11 @@ const Gx=fe`
6354
6380
  text-overflow: ellipsis;
6355
6381
  }
6356
6382
  `
6357
- 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
6358
- 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`
6383
+ class Kx{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
6384
+ 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 Xx(e){return new C("nimble-overflow",Kx,e)}const Yx=G`
6359
6385
  <template slot="${e=>e.columnInternals.uniqueId}">
6360
6386
  <span
6361
- ${Kx("hasOverflow")}
6387
+ ${Xx("hasOverflow")}
6362
6388
  class="header-content"
6363
6389
  title=${e=>e.hasOverflow&&e.headerTextContent?e.headerTextContent:null}
6364
6390
  >
@@ -6366,7 +6392,7 @@ this.setSourceValue(e)},this.mouseOutHandler=()=>{this.setSourceValue(!1)},this.
6366
6392
  </span>
6367
6393
  </template>
6368
6394
  `
6369
- 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`
6395
+ function Qx(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 Jx(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 ey=fe`
6370
6396
  :host {
6371
6397
  width: fit-content;
6372
6398
  max-width: 100%;
@@ -6391,14 +6417,14 @@ function Yx(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.
6391
6417
  .placeholder {
6392
6418
  color: ${Nl};
6393
6419
  }
6394
- `,ey=G`
6420
+ `,ty=G`
6395
6421
  <template
6396
6422
  @click="${(e,t)=>("string"==typeof e.cellRecord.href&&t.event.stopPropagation(),!0)}"
6397
6423
  >
6398
6424
  ${Me((e=>"string"==typeof e.cellRecord.href),G`
6399
6425
  <${Bc}
6400
6426
  ${Re("anchor")}
6401
- ${Kx("hasOverflow")}
6427
+ ${Xx("hasOverflow")}
6402
6428
  href="${e=>e.cellRecord.href}"
6403
6429
  hreflang="${e=>e.columnConfig.hreflang}"
6404
6430
  ping="${e=>e.columnConfig.ping}"
@@ -6415,7 +6441,7 @@ function Yx(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.
6415
6441
  </${Bc}>`)}
6416
6442
  ${Me((e=>"string"!=typeof e.cellRecord.href),G`
6417
6443
  <span
6418
- ${Kx("hasOverflow")}
6444
+ ${Xx("hasOverflow")}
6419
6445
  class="${e=>"string"==typeof e.cellRecord.label?"":"placeholder"}"
6420
6446
  title=${e=>e.hasOverflow&&e.content?e.content:null}
6421
6447
  >
@@ -6423,20 +6449,20 @@ function Yx(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.
6423
6449
  </span>`)}
6424
6450
  </template>
6425
6451
  `
6426
- 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)
6427
- const oy=ty.compose({baseName:"table-column-anchor-cell-view",template:ey,styles:Jx})
6428
- ai.getOrCreate().withPrefix("nimble").register(oy())
6429
- const iy=ai.tagFor(ty)
6430
- 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)
6431
- const sy=G`
6452
+ class oy extends Gw{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],oy.prototype,"hasOverflow",void 0),e([f],oy.prototype,"content",null)
6453
+ const iy=oy.compose({baseName:"table-column-anchor-cell-view",template:ty,styles:ey})
6454
+ ai.getOrCreate().withPrefix("nimble").register(iy())
6455
+ const ny=ai.tagFor(oy)
6456
+ class sy extends jw{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.placeholder="",this.shouldUsePlaceholder=!0}get content(){return this.shouldUsePlaceholder?this.placeholder:this.text}}e([m],sy.prototype,"hasOverflow",void 0),e([m],sy.prototype,"text",void 0),e([m],sy.prototype,"placeholder",void 0),e([m],sy.prototype,"shouldUsePlaceholder",void 0),e([f],sy.prototype,"content",null)
6457
+ const ry=G`
6432
6458
  <span
6433
- ${Kx("hasOverflow")}
6459
+ ${Xx("hasOverflow")}
6434
6460
  class="${e=>e.shouldUsePlaceholder?"placeholder":""}"
6435
6461
  title="${e=>e.hasOverflow&&e.content?e.content:void 0}"
6436
6462
  >
6437
6463
  ${e=>e.content}
6438
6464
  </span>
6439
- `,ry=fe`
6465
+ `,ay=fe`
6440
6466
  span {
6441
6467
  font: ${Sl};
6442
6468
  color: ${_l};
@@ -6449,22 +6475,22 @@ const sy=G`
6449
6475
  color: ${Nl};
6450
6476
  }
6451
6477
  `
6452
- 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})
6453
- ai.getOrCreate().withPrefix("nimble").register(ly())
6454
- const cy=ai.tagFor(ay)
6455
- 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)
6456
- const hy=dy.compose({baseName:"table-column-anchor",template:Xx,styles:Gx})
6457
- ai.getOrCreate().withPrefix("nimble").register(hy()),ai.tagFor(dy)
6458
- 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)
6459
- const py=G`
6478
+ class ly extends sy{columnConfigChanged(){this.placeholder=this.columnConfig?.placeholder??""}groupHeaderValueChanged(){"string"==typeof this.groupHeaderValue?(this.text=this.groupHeaderValue,this.shouldUsePlaceholder=!1):(this.text="",this.shouldUsePlaceholder=!0)}}const cy=ly.compose({baseName:"table-column-text-group-header",template:ry,styles:ay})
6479
+ ai.getOrCreate().withPrefix("nimble").register(cy())
6480
+ const dy=ai.tagFor(ly)
6481
+ class hy extends(Jx(Qx(Xw))){constructor(){super(...arguments),this.underlineHidden=!1}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:ny,groupHeaderViewTag:dy,delegatedEvents:["click"],sortOperation:qw}}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"})],hy.prototype,"labelFieldName",void 0),e([ne({attribute:"href-field-name"})],hy.prototype,"hrefFieldName",void 0),e([ne],hy.prototype,"placeholder",void 0),e([ne],hy.prototype,"appearance",void 0),e([ne({attribute:"underline-hidden",mode:"boolean"})],hy.prototype,"underlineHidden",void 0),e([ne],hy.prototype,"hreflang",void 0),e([ne],hy.prototype,"ping",void 0),e([ne],hy.prototype,"referrerpolicy",void 0),e([ne],hy.prototype,"rel",void 0),e([ne],hy.prototype,"target",void 0),e([ne],hy.prototype,"type",void 0),e([ne],hy.prototype,"download",void 0)
6482
+ const uy=hy.compose({baseName:"table-column-anchor",template:Yx,styles:Wx})
6483
+ ai.getOrCreate().withPrefix("nimble").register(uy()),ai.tagFor(hy)
6484
+ class py extends(Jx(Qx(Xw))){fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder??""}}}e([ne({attribute:"field-name"})],py.prototype,"fieldName",void 0),e([ne],py.prototype,"placeholder",void 0)
6485
+ const gy=G`
6460
6486
  <span
6461
- ${Kx("hasOverflow")}
6487
+ ${Xx("hasOverflow")}
6462
6488
  class="${e=>e.shouldUsePlaceholder?"placeholder":""}"
6463
6489
  title=${e=>e.hasOverflow&&e.content?e.content:null}
6464
6490
  >
6465
6491
  ${e=>e.content}
6466
6492
  </span>
6467
- `,gy=fe`
6493
+ `,vy=fe`
6468
6494
  span {
6469
6495
  font: ${Sl};
6470
6496
  color: ${_l};
@@ -6477,13 +6503,13 @@ const py=G`
6477
6503
  color: ${Nl};
6478
6504
  }
6479
6505
  `
6480
- 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)
6481
- 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})
6482
- ai.getOrCreate().withPrefix("nimble").register(fy())
6483
- const by=ai.tagFor(my)
6484
- 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})
6485
- ai.getOrCreate().withPrefix("nimble").register(xy()),ai.tagFor(wy)
6486
- const yy=fe`
6506
+ class my extends Gw{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.placeholder="",this.shouldUsePlaceholder=!0}get content(){return this.shouldUsePlaceholder?this.placeholder:this.text}}e([m],my.prototype,"hasOverflow",void 0),e([m],my.prototype,"text",void 0),e([m],my.prototype,"placeholder",void 0),e([m],my.prototype,"shouldUsePlaceholder",void 0),e([f],my.prototype,"content",null)
6507
+ class fy extends my{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 by=fy.compose({baseName:"table-column-text-cell-view",template:gy,styles:vy})
6508
+ ai.getOrCreate().withPrefix("nimble").register(by())
6509
+ const wy=ai.tagFor(fy)
6510
+ class xy extends py{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:wy,groupHeaderViewTag:dy,delegatedEvents:[],sortOperation:qw}}}const yy=xy.compose({baseName:"table-column-text",template:Yx,styles:Wx})
6511
+ ai.getOrCreate().withPrefix("nimble").register(yy()),ai.tagFor(xy)
6512
+ const $y=fe`
6487
6513
  ${xn("grid")}
6488
6514
 
6489
6515
  :host {
@@ -6492,6 +6518,10 @@ const yy=fe`
6492
6518
  grid-template-rows: auto 1fr;
6493
6519
  }
6494
6520
 
6521
+ [part='start'] {
6522
+ display: none;
6523
+ }
6524
+
6495
6525
  .tablist {
6496
6526
  display: grid;
6497
6527
  grid-template-rows: auto auto;
@@ -6507,7 +6537,7 @@ const yy=fe`
6507
6537
  overflow: auto;
6508
6538
  }
6509
6539
  `
6510
- class $y extends Gi{constructor(){super(),this.activeindicator=!1}}const Cy=$y.compose({baseName:"tabs",baseClass:Gi,template:(e,t)=>G`
6540
+ class Cy extends Gi{constructor(){super(),this.activeindicator=!1}}const ky=Cy.compose({baseName:"tabs",baseClass:Gi,template:(e,t)=>G`
6511
6541
  <template class="${e=>e.orientation}">
6512
6542
  ${qe(0,t)}
6513
6543
  <div class="tablist" part="tablist" role="tablist">
@@ -6526,9 +6556,9 @@ class $y extends Gi{constructor(){super(),this.activeindicator=!1}}const Cy=$y.c
6526
6556
  <slot name="tabpanel" part="tabpanel" ${Le("tabpanels")}></slot>
6527
6557
  </div>
6528
6558
  </template>
6529
- `,styles:yy})
6530
- ai.getOrCreate().withPrefix("nimble").register(Cy()),ai.tagFor($y)
6531
- const ky=fe`
6559
+ `,styles:$y})
6560
+ ai.getOrCreate().withPrefix("nimble").register(ky()),ai.tagFor(Cy)
6561
+ const Sy=fe`
6532
6562
  ${xn("flex")}
6533
6563
 
6534
6564
  :host {
@@ -6546,15 +6576,15 @@ const ky=fe`
6546
6576
  rgba(${Xr}, 0.3);
6547
6577
  margin: calc(${la} / 4) calc(${la} / 2);
6548
6578
  }
6549
- `,Sy=G`
6579
+ `,_y=G`
6550
6580
  <template slot="end">
6551
6581
  <div class="separator"></div>
6552
6582
  <slot></slot>
6553
6583
  </template>
6554
6584
  `
6555
- class _y extends Rt{}const Iy=_y.compose({baseName:"tabs-toolbar",template:Sy,styles:ky})
6556
- ai.getOrCreate().withPrefix("nimble").register(Iy()),ai.tagFor(_y)
6557
- const Ry="outline",My="block",Ay=fe`
6585
+ class Iy extends Rt{}const Ry=Iy.compose({baseName:"tabs-toolbar",template:_y,styles:Sy})
6586
+ ai.getOrCreate().withPrefix("nimble").register(Ry()),ai.tagFor(Iy)
6587
+ const My="outline",Ay="block",Ey=fe`
6558
6588
  ${xn("inline-flex")}
6559
6589
  ${bg}
6560
6590
 
@@ -6694,12 +6724,12 @@ const Ry="outline",My="block",Ay=fe`
6694
6724
  top: calc(${la} / 2);
6695
6725
  right: var(--ni-private-scrollbar-width);
6696
6726
  }
6697
- `.withBehaviors(Uc(Ry,fe`
6727
+ `.withBehaviors(Uc(My,fe`
6698
6728
  .control {
6699
6729
  border-color: rgba(${Xr}, 0.3);
6700
6730
  background-color: transparent;
6701
6731
  }
6702
- `),Uc(My,fe`
6732
+ `),Uc(Ay,fe`
6703
6733
  .control {
6704
6734
  background-color: rgba(${Xr}, 0.1);
6705
6735
  }
@@ -6717,8 +6747,8 @@ const Ry="outline",My="block",Ay=fe`
6717
6747
  border-bottom-color: ${Yr};
6718
6748
  }
6719
6749
  `))
6720
- 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)
6721
- const Oy=Ey.compose({baseName:"text-area",baseClass:Yi,template:()=>G`
6750
+ class Oy extends Yi{constructor(){super(...arguments),this.appearance=My,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],Oy.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Oy.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Oy.prototype,"errorVisible",void 0),e([m],Oy.prototype,"scrollbarWidth",void 0)
6751
+ const Fy=Oy.compose({baseName:"text-area",baseClass:Yi,template:()=>G`
6722
6752
  <label
6723
6753
  part="label"
6724
6754
  for="control"
@@ -6775,9 +6805,9 @@ const Oy=Ey.compose({baseName:"text-area",baseClass:Yi,template:()=>G`
6775
6805
  ></${Ap}>
6776
6806
  ${dg}
6777
6807
  </div>
6778
- `,styles:Ay,shadowOptions:{delegatesFocus:!0}})
6779
- ai.getOrCreate().withPrefix("nimble").register(Oy()),ai.tagFor(Ey)
6780
- const Fy="underline",Vy="outline",Hy="block",Py="frameless",Ty=fe`
6808
+ `,styles:Ey,shadowOptions:{delegatesFocus:!0}})
6809
+ ai.getOrCreate().withPrefix("nimble").register(Fy()),ai.tagFor(Oy)
6810
+ const Vy="underline",Hy="outline",Py="block",Ty="frameless",Dy=fe`
6781
6811
  ${xn("inline-block")}
6782
6812
  ${bg}
6783
6813
 
@@ -6948,12 +6978,12 @@ const Fy="underline",Vy="outline",Hy="block",Py="frameless",Ty=fe`
6948
6978
  slot[name='actions']::slotted(*) {
6949
6979
  ${sa.cssCustomProperty}: 24px;
6950
6980
  }
6951
- `.withBehaviors(Uc(Fy,fe`
6981
+ `.withBehaviors(Uc(Vy,fe`
6952
6982
  .root {
6953
6983
  border-bottom-width: ${ca};
6954
6984
  padding-bottom: 0;
6955
6985
  }
6956
- `),Uc(Hy,fe`
6986
+ `),Uc(Py,fe`
6957
6987
  .root {
6958
6988
  background-color: rgba(${Xr}, 0.1);
6959
6989
  }
@@ -6981,12 +7011,12 @@ const Fy="underline",Vy="outline",Hy="block",Py="frameless",Ty=fe`
6981
7011
  :host([disabled]) .root {
6982
7012
  background-color: rgba(${Xr}, 0.07);
6983
7013
  }
6984
- `),Uc(Vy,fe`
7014
+ `),Uc(Hy,fe`
6985
7015
  .root {
6986
7016
  border-width: ${ca};
6987
7017
  padding: 0;
6988
7018
  }
6989
- `),Uc(Py,fe`
7019
+ `),Uc(Ty,fe`
6990
7020
  .control {
6991
7021
  padding-left: ${ca};
6992
7022
  padding-right: ${ca};
@@ -7004,8 +7034,8 @@ const Fy="underline",Vy="outline",Hy="block",Py="frameless",Ty=fe`
7004
7034
  filter: invert(100%);
7005
7035
  }
7006
7036
  `))
7007
- 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)
7008
- const Ly=Dy.compose({baseName:"text-field",baseClass:Ii,template:(e,t)=>G`
7037
+ class Ly extends Ii{constructor(){super(...arguments),this.appearance=Vy,this.errorVisible=!1,this.fullBleed=!1}}e([ne],Ly.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Ly.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Ly.prototype,"errorVisible",void 0),e([ne({attribute:"full-bleed",mode:"boolean"})],Ly.prototype,"fullBleed",void 0)
7038
+ const zy=Ly.compose({baseName:"text-field",baseClass:Ii,template:(e,t)=>G`
7009
7039
  <template
7010
7040
  class="
7011
7041
  ${e=>e.readOnly?"readonly":""}
@@ -7065,7 +7095,7 @@ const Ly=Dy.compose({baseName:"text-field",baseClass:Ii,template:(e,t)=>G`
7065
7095
  ${Ze(0,t)}
7066
7096
  </div>
7067
7097
  </template>
7068
- `,styles:Ty,shadowOptions:{delegatesFocus:!0},end:G`
7098
+ `,styles:Dy,shadowOptions:{delegatesFocus:!0},end:G`
7069
7099
  <${Ap}
7070
7100
  severity="error"
7071
7101
  class="error-icon"
@@ -7075,8 +7105,8 @@ const Ly=Dy.compose({baseName:"text-field",baseClass:Ii,template:(e,t)=>G`
7075
7105
  </span>
7076
7106
  ${dg}
7077
7107
  `})
7078
- ai.getOrCreate().withPrefix("nimble").register(Ly()),ai.tagFor(Dy)
7079
- const zy=fe`
7108
+ ai.getOrCreate().withPrefix("nimble").register(zy()),ai.tagFor(Ly)
7109
+ const By=fe`
7080
7110
  .positioning-region {
7081
7111
  display: flex;
7082
7112
  padding: ${aa} ${la};
@@ -7101,7 +7131,7 @@ const zy=fe`
7101
7131
  margin-left: auto;
7102
7132
  }
7103
7133
  `
7104
- class By extends Ji{}const Ny=By.compose({baseName:"toolbar",baseClass:Ji,template:(e,t)=>G`
7134
+ class Ny extends Ji{}const Zy=Ny.compose({baseName:"toolbar",baseClass:Ji,template:(e,t)=>G`
7105
7135
  <template
7106
7136
  aria-label="${e=>e.ariaLabel}"
7107
7137
  aria-labelledby="${e=>e.ariaLabelledby}"
@@ -7122,9 +7152,9 @@ class By extends Ji{}const Ny=By.compose({baseName:"toolbar",baseClass:Ji,templa
7122
7152
  ${Ze(0,t)}
7123
7153
  </div>
7124
7154
  </template>
7125
- `,styles:zy,shadowOptions:{delegatesFocus:!0}})
7126
- ai.getOrCreate().withPrefix("nimble").register(Ny()),ai.tagFor(By)
7127
- const Zy=fe`
7155
+ `,styles:By,shadowOptions:{delegatesFocus:!0}})
7156
+ ai.getOrCreate().withPrefix("nimble").register(Zy()),ai.tagFor(Ny)
7157
+ const qy=fe`
7128
7158
  ${xn("inline-flex")}
7129
7159
 
7130
7160
  :host {
@@ -7209,7 +7239,7 @@ const Zy=fe`
7209
7239
  .status-icon {
7210
7240
  opacity: 0.6;
7211
7241
  }
7212
- `)),qy=G`
7242
+ `)),jy=G`
7213
7243
  ${Me((e=>e.tooltipVisible),G`
7214
7244
  <${md}
7215
7245
  class="anchored-region"
@@ -7242,11 +7272,11 @@ const Zy=fe`
7242
7272
  </${md}>
7243
7273
  `)}
7244
7274
  `
7245
- 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)
7246
- const Uy=jy.compose({baseName:"tooltip",baseClass:mn,template:qy,styles:Zy})
7247
- ai.getOrCreate().withPrefix("nimble").register(Uy()),ai.tagFor(jy)
7248
- const Gy="group-selected",Wy="all",Ky="leaves-only",Xy="none"
7249
- 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`
7275
+ class Uy extends mn{constructor(){super(...arguments),this.iconVisible=!1}}e([ne],Uy.prototype,"severity",void 0),e([ne({attribute:"icon-visible",mode:"boolean"})],Uy.prototype,"iconVisible",void 0)
7276
+ const Gy=Uy.compose({baseName:"tooltip",baseClass:mn,template:jy,styles:qy})
7277
+ ai.getOrCreate().withPrefix("nimble").register(Gy()),ai.tagFor(Uy)
7278
+ const Wy="group-selected",Ky="all",Xy="leaves-only",Yy="none"
7279
+ class Qy{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 Jy=fe`
7250
7280
  ${xn("block")}
7251
7281
 
7252
7282
  :host {
@@ -7262,7 +7292,7 @@ class Yy{constructor(e,t,o){this.ltr=e,this.rtl=t,this.source=o,this.attached=nu
7262
7292
  }
7263
7293
 
7264
7294
  ${""}
7265
- :host([${Gy}])::after {
7295
+ :host([${Wy}])::after {
7266
7296
  background: ${ta};
7267
7297
  border-radius: 0px;
7268
7298
  content: '';
@@ -7284,7 +7314,7 @@ class Yy{constructor(e,t,o){this.ltr=e,this.rtl=t,this.source=o,this.attached=nu
7284
7314
  background: ${Wr};
7285
7315
  }
7286
7316
 
7287
- :host([${Gy}]) .positioning-region:hover {
7317
+ :host([${Wy}]) .positioning-region:hover {
7288
7318
  background: ${Gr};
7289
7319
  }
7290
7320
 
@@ -7354,7 +7384,7 @@ class Yy{constructor(e,t,o){this.ltr=e,this.rtl=t,this.source=o,this.attached=nu
7354
7384
  }
7355
7385
 
7356
7386
  ${""}
7357
- span[part="start"] {
7387
+ [part="start"] {
7358
7388
  width: ${da};
7359
7389
  }
7360
7390
 
@@ -7378,11 +7408,8 @@ class Yy{constructor(e,t,o){this.ltr=e,this.rtl=t,this.source=o,this.attached=nu
7378
7408
  );
7379
7409
  }
7380
7410
 
7381
- ${""}
7382
- .end {
7383
- display: flex;
7384
- fill: currentcolor;
7385
- margin-inline-start: ${da};
7411
+ [part='end'] {
7412
+ display: none;
7386
7413
  }
7387
7414
 
7388
7415
  .items {
@@ -7395,7 +7422,7 @@ class Yy{constructor(e,t,o){this.ltr=e,this.rtl=t,this.source=o,this.attached=nu
7395
7422
  display: block;
7396
7423
  }
7397
7424
  `.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)
7398
- t&&Dr.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new Yy(this.ltr,this.rtl,e),o=Dr.getValueFor(e)
7425
+ t&&Dr.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new Qy(this.ltr,this.rtl,e),o=Dr.getValueFor(e)
7399
7426
  Dr.subscribe(t),t.attach(o),this.cache.set(e,t)}}(fe`
7400
7427
  .expand-collapse-button {
7401
7428
  left: var(
@@ -7427,8 +7454,8 @@ Dr.subscribe(t),t.attach(o),this.cache.set(e,t)}}(fe`
7427
7454
  transform: rotate(135deg);
7428
7455
  }
7429
7456
  `))
7430
- class Jy extends bn{constructor(){super(...arguments),this.groupSelected=!1}}e([ne({attribute:"group-selected",mode:"boolean"})],Jy.prototype,"groupSelected",void 0)
7431
- const e$=Jy.compose({baseName:"tree-item",baseClass:bn,template:(e,t)=>G`
7457
+ class e$ extends bn{constructor(){super(...arguments),this.groupSelected=!1}}e([ne({attribute:"group-selected",mode:"boolean"})],e$.prototype,"groupSelected",void 0)
7458
+ const t$=e$.compose({baseName:"tree-item",baseClass:bn,template:(e,t)=>G`
7432
7459
  <template
7433
7460
  role="treeitem"
7434
7461
  slot="${e=>e.isNestedItem()?"item":void 0}"
@@ -7468,9 +7495,9 @@ const e$=Jy.compose({baseName:"tree-item",baseClass:bn,template:(e,t)=>G`
7468
7495
  </div>
7469
7496
  `)}
7470
7497
  </template>
7471
- `,styles:Qy,expandCollapseGlyph:Ed.data})
7472
- ai.getOrCreate().withPrefix("nimble").register(e$()),ai.tagFor(Jy)
7473
- const t$=fe`
7498
+ `,styles:Jy,expandCollapseGlyph:Ed.data})
7499
+ ai.getOrCreate().withPrefix("nimble").register(t$()),ai.tagFor(e$)
7500
+ const o$=fe`
7474
7501
  ${xn("flex")}
7475
7502
 
7476
7503
  :host {
@@ -7482,7 +7509,7 @@ const t$=fe`
7482
7509
  :host(${Cn}) {
7483
7510
  outline: none;
7484
7511
  }
7485
- `,o$=G`
7512
+ `,i$=G`
7486
7513
  <template
7487
7514
  role="tree"
7488
7515
  ${Re("treeView")}
@@ -7496,273 +7523,273 @@ const t$=fe`
7496
7523
  <slot ${Le("slottedTreeItems")}></slot>
7497
7524
  </template>
7498
7525
  `
7499
- class i$ extends wn{constructor(){super(...arguments),this.selectionMode=Wy,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
7526
+ class n$ extends wn{constructor(){super(...arguments),this.selectionMode=Ky,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
7500
7527
  if(!(e.target instanceof Element&&fn(e.target)))return!0
7501
7528
  const t=e.target
7502
- 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
7503
- case Xy:return!1
7504
- case Ky:return!this.itemHasChildren(e)
7505
- 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)
7529
+ return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case Ky:return!0
7530
+ case Yy:return!1
7531
+ case Xy:return!this.itemHasChildren(e)
7532
+ default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof e$&&(e.groupSelected=!1)
7506
7533
  for(let e of this.selectedItems){for(;null!==e.parentElement&&e.parentElement!==this;)e=e.parentElement
7507
- e instanceof Jy&&(e.groupSelected=!0)}}}e([ne({attribute:"selection-mode"})],i$.prototype,"selectionMode",void 0),e([m],i$.prototype,"selectedItems",void 0)
7508
- const n$=i$.compose({baseName:"tree-view",baseClass:wn,template:o$,styles:t$})
7509
- ai.getOrCreate().withPrefix("nimble").register(n$()),ai.tagFor(i$)
7510
- var s$={value:()=>{}}
7511
- 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)
7512
- 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(".")
7534
+ e instanceof e$&&(e.groupSelected=!0)}}}e([ne({attribute:"selection-mode"})],n$.prototype,"selectionMode",void 0),e([m],n$.prototype,"selectedItems",void 0)
7535
+ const s$=n$.compose({baseName:"tree-view",baseClass:wn,template:i$,styles:o$})
7536
+ ai.getOrCreate().withPrefix("nimble").register(s$()),ai.tagFor(n$)
7537
+ var r$={value:()=>{}}
7538
+ function a$(){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)
7539
+ i[e]=[]}return new l$(i)}function l$(e){this._=e}function c$(e,t){return e.trim().split(/^|\s+/).map((function(e){var o="",i=e.indexOf(".")
7513
7540
  if(i>=0&&(o=e.slice(i+1),e=e.slice(0,i)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e)
7514
- 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))
7515
- 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
7541
+ return{type:e,name:o}}))}function d$(e,t){for(var o,i=0,n=e.length;i<n;++i)if((o=e[i]).name===t)return o.value}function h$(e,t,o){for(var i=0,n=e.length;i<n;++i)if(e[i].name===t){e[i]=r$,e=e.slice(0,i).concat(e.slice(i+1))
7542
+ break}return null!=o&&e.push({name:t,value:o}),e}l$.prototype=a$.prototype={constructor:l$,on:function(e,t){var o,i=this._,n=c$(e+"",i),s=-1,r=n.length
7516
7543
  if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
7517
- for(;++s<r;)if(o=(e=n[s]).type)i[o]=d$(i[o],e.name,t)
7518
- else if(null==t)for(o in i)i[o]=d$(i[o],e.name,null)
7519
- 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._
7544
+ for(;++s<r;)if(o=(e=n[s]).type)i[o]=h$(i[o],e.name,t)
7545
+ else if(null==t)for(o in i)i[o]=h$(i[o],e.name,null)
7546
+ return this}for(;++s<r;)if((o=(e=n[s]).type)&&(o=d$(i[o],e.name)))return o},copy:function(){var e={},t=this._
7520
7547
  for(var o in t)e[o]=t[o].slice()
7521
- 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]
7548
+ return new l$(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]
7522
7549
  if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
7523
7550
  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)
7524
7551
  for(var i=this._[e],n=0,s=i.length;n<s;++n)i[n].value.apply(t,o)}}
7525
- 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/"}
7526
- function p$(e){var t=e+="",o=t.indexOf(":")
7527
- 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
7528
- 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)
7529
- 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
7530
- function S$(){return this.firstElementChild}var _$=Array.prototype.filter
7531
- 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])
7532
- 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)
7552
+ var u$="http://www.w3.org/1999/xhtml",p$={svg:"http://www.w3.org/2000/svg",xhtml:u$,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
7553
+ function g$(e){var t=e+="",o=t.indexOf(":")
7554
+ return o>=0&&"xmlns"!==(t=e.slice(0,o))&&(e=e.slice(o+1)),p$.hasOwnProperty(t)?{space:p$[t],local:e}:e}function v$(e){return function(){var t=this.ownerDocument,o=this.namespaceURI
7555
+ return o===u$&&t.documentElement.namespaceURI===u$?t.createElement(e):t.createElementNS(o,e)}}function m$(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function f$(e){var t=g$(e)
7556
+ return(t.local?m$:v$)(t)}function b$(){}function w$(e){return null==e?b$:function(){return this.querySelector(e)}}function x$(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function y$(){return[]}function $$(e){return null==e?y$:function(){return this.querySelectorAll(e)}}function C$(e){return function(){return this.matches(e)}}function k$(e){return function(t){return t.matches(e)}}var S$=Array.prototype.find
7557
+ function _$(){return this.firstElementChild}var I$=Array.prototype.filter
7558
+ function R$(){return Array.from(this.children)}function M$(e){return new Array(e.length)}function A$(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function E$(e){return function(){return e}}function O$(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 A$(e,s[a])
7559
+ for(;a<l;++a)(r=t[a])&&(n[a]=r)}function F$(e,t,o,i,n,s,r){var a,l,c,d=new Map,h=t.length,u=s.length,p=new Array(h)
7533
7560
  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))
7534
- 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])
7535
- 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)
7536
- null==o?this.removeAttribute(e):this.setAttribute(e,o)}}function B$(e,t){return function(){var o=t.apply(this,arguments)
7537
- 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)
7538
- 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)
7539
- 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)
7540
- 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)
7541
- 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
7542
- e&&e.removeChild(this)}function gC(){var e=this.cloneNode(!1),t=this.parentNode
7543
- return t?t.insertBefore(e,this.nextSibling):e}function vC(){var e=this.cloneNode(!0),t=this.parentNode
7544
- return t?t.insertBefore(e,this.nextSibling):e}function mC(e){return e.trim().split(/^|\s+/).map((function(e){var t="",o=e.indexOf(".")
7545
- 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
7546
- 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)
7561
+ 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 A$(e,s[a])
7562
+ for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(n[a]=l)}function V$(e){return e.__data__}function H$(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function P$(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function T$(e){return function(){this.removeAttribute(e)}}function D$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function L$(e,t){return function(){this.setAttribute(e,t)}}function z$(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function B$(e,t){return function(){var o=t.apply(this,arguments)
7563
+ null==o?this.removeAttribute(e):this.setAttribute(e,o)}}function N$(e,t){return function(){var o=t.apply(this,arguments)
7564
+ null==o?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,o)}}function Z$(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function q$(e){return function(){this.style.removeProperty(e)}}function j$(e,t,o){return function(){this.style.setProperty(e,t,o)}}function U$(e,t,o){return function(){var i=t.apply(this,arguments)
7565
+ null==i?this.style.removeProperty(e):this.style.setProperty(e,i,o)}}function G$(e,t){return e.style.getPropertyValue(t)||Z$(e).getComputedStyle(e,null).getPropertyValue(t)}function W$(e){return function(){delete this[e]}}function K$(e,t){return function(){this[e]=t}}function X$(e,t){return function(){var o=t.apply(this,arguments)
7566
+ null==o?delete this[e]:this[e]=o}}function Y$(e){return e.trim().split(/^|\s+/)}function Q$(e){return e.classList||new J$(e)}function J$(e){this._node=e,this._names=Y$(e.getAttribute("class")||"")}function eC(e,t){for(var o=Q$(e),i=-1,n=t.length;++i<n;)o.add(t[i])}function tC(e,t){for(var o=Q$(e),i=-1,n=t.length;++i<n;)o.remove(t[i])}function oC(e){return function(){eC(this,e)}}function iC(e){return function(){tC(this,e)}}function nC(e,t){return function(){(t.apply(this,arguments)?eC:tC)(this,e)}}function sC(){this.textContent=""}function rC(e){return function(){this.textContent=e}}function aC(e){return function(){var t=e.apply(this,arguments)
7567
+ this.textContent=null==t?"":t}}function lC(){this.innerHTML=""}function cC(e){return function(){this.innerHTML=e}}function dC(e){return function(){var t=e.apply(this,arguments)
7568
+ this.innerHTML=null==t?"":t}}function hC(){this.nextSibling&&this.parentNode.appendChild(this)}function uC(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function pC(){return null}function gC(){var e=this.parentNode
7569
+ e&&e.removeChild(this)}function vC(){var e=this.cloneNode(!1),t=this.parentNode
7570
+ return t?t.insertBefore(e,this.nextSibling):e}function mC(){var e=this.cloneNode(!0),t=this.parentNode
7571
+ return t?t.insertBefore(e,this.nextSibling):e}function fC(e){return e.trim().split(/^|\s+/).map((function(e){var t="",o=e.indexOf(".")
7572
+ return o>=0&&(t=e.slice(o+1),e=e.slice(0,o)),{type:e,name:t}}))}function bC(e){return function(){var t=this.__on
7573
+ 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 wC(e,t,o){return function(){var i,n=this.__on,s=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
7547
7574
  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)
7548
- 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
7549
- "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)
7575
+ 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 xC(e,t,o){var i=Z$(e),n=i.CustomEvent
7576
+ "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 yC(e,t){return function(){return xC(this,e,t)}}function $C(e,t){return function(){return xC(this,e,t.apply(this,arguments))}}A$.prototype={constructor:A$,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)}},J$.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)
7550
7577
  t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
7551
- var $C=[null]
7552
- 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
7578
+ var CC=[null]
7579
+ function kC(e,t){this._groups=e,this._parents=t}function SC(){return new kC([[document.documentElement]],CC)}function _C(e){return"string"==typeof e?new kC([[document.querySelector(e)]],[document.documentElement]):new kC([[e]],CC)}function IC(e,t){if(e=function(e){let t
7553
7580
  for(;t=e.sourceEvent;)e=t
7554
7581
  return e}(e),void 0===t&&(t=e.currentTarget),t){var o=t.ownerSVGElement||t
7555
7582
  if(o.createSVGPoint){var i=o.createSVGPoint()
7556
7583
  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()
7557
- 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))
7584
+ return[e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop]}}return[e.pageX,e.pageY]}kC.prototype=SC.prototype={constructor:kC,select:function(e){"function"!=typeof e&&(e=w$(e))
7558
7585
  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)
7559
- 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)
7586
+ return new kC(i,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return x$(e.apply(this,arguments))}}(e):$$(e)
7560
7587
  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))
7561
- 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))
7588
+ return new kC(i,n)},selectChild:function(e){return this.select(null==e?_$:function(e){return function(){return S$.call(this.children,e)}}("function"==typeof e?e:k$(e)))},selectChildren:function(e){return this.selectAll(null==e?R$:function(e){return function(){return I$.call(this.children,e)}}("function"==typeof e?e:k$(e)))},filter:function(e){"function"!=typeof e&&(e=C$(e))
7562
7589
  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)
7563
- return new CC(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,F$)
7564
- var o=t?O$:E$,i=this._parents,n=this._groups
7565
- "function"!=typeof e&&(e=A$(e))
7566
- 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)
7590
+ return new kC(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,V$)
7591
+ var o=t?F$:O$,i=this._parents,n=this._groups
7592
+ "function"!=typeof e&&(e=E$(e))
7593
+ 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=H$(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)
7567
7594
  o(d,h,v,m,f,p,t)
7568
- 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()
7595
+ 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 kC(r,i))._enter=a,r._exit=l,r},enter:function(){return new kC(this._enter||this._groups.map(M$),this._parents)},exit:function(){return new kC(this._exit||this._groups.map(M$),this._parents)},join:function(e,t,o){var i=this.enter(),n=this,s=this.exit()
7569
7596
  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)
7570
7597
  for(;l<n;++l)a[l]=o[l]
7571
- 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)
7572
- return this},sort:function(e){function t(t,o){return t&&o?e(t.__data__,o.__data__):!t-!o}e||(e=H$)
7598
+ return new kC(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)
7599
+ return this},sort:function(e){function t(t,o){return t&&o?e(t.__data__,o.__data__):!t-!o}e||(e=P$)
7573
7600
  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)
7574
- c.sort(t)}return new CC(n,this._parents).order()},call:function(){var e=arguments[0]
7601
+ c.sort(t)}return new kC(n,this._parents).order()},call:function(){var e=arguments[0]
7575
7602
  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]
7576
7603
  if(r)return r}return null},size:function(){let e=0
7577
7604
  for(const t of this)++e
7578
7605
  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)
7579
- return this},attr:function(e,t){var o=p$(e)
7606
+ return this},attr:function(e,t){var o=g$(e)
7580
7607
  if(arguments.length<2){var i=this.node()
7581
- 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+"")
7582
- if(arguments.length<2){for(var i=Y$(this.node()),n=-1,s=o.length;++n<s;)if(!i.contains(o[n]))return!1
7583
- 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)
7584
- 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)
7585
- 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
7586
- if(!(arguments.length<2)){for(a=t?bC:fC,i=0;i<r;++i)this.each(a(s[i],t,o))
7608
+ return o.local?i.getAttributeNS(o.space,o.local):i.getAttribute(o)}return this.each((null==t?o.local?D$:T$:"function"==typeof t?o.local?N$:B$:o.local?z$:L$)(o,t))},style:function(e,t,o){return arguments.length>1?this.each((null==t?q$:"function"==typeof t?U$:j$)(e,t,null==o?"":o)):G$(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?W$:"function"==typeof t?X$:K$)(e,t)):this.node()[e]},classed:function(e,t){var o=Y$(e+"")
7609
+ if(arguments.length<2){for(var i=Q$(this.node()),n=-1,s=o.length;++n<s;)if(!i.contains(o[n]))return!1
7610
+ return!0}return this.each(("function"==typeof t?nC:t?oC:iC)(o,t))},text:function(e){return arguments.length?this.each(null==e?sC:("function"==typeof e?aC:rC)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?lC:("function"==typeof e?dC:cC)(e)):this.node().innerHTML},raise:function(){return this.each(hC)},lower:function(){return this.each(uC)},append:function(e){var t="function"==typeof e?e:f$(e)
7611
+ return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var o="function"==typeof e?e:f$(e),i=null==t?pC:"function"==typeof t?t:w$(t)
7612
+ return this.select((function(){return this.insertBefore(o.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(gC)},clone:function(e){return this.select(e?mC:vC)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,o){var i,n,s=fC(e+""),r=s.length
7613
+ if(!(arguments.length<2)){for(a=t?wC:bC,i=0;i<r;++i)this.each(a(s[i],t,o))
7587
7614
  return this}var a=this.node().__on
7588
- 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)}}
7589
- const IC={capture:!0,passive:!1}
7590
- function RC(e){e.preventDefault(),e.stopImmediatePropagation()}function MC(e){var t=e.document.documentElement,o=SC(e).on("dragstart.drag",RC,IC)
7591
- "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)
7592
- 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)
7615
+ 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?$C:yC)(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)}}
7616
+ const RC={capture:!0,passive:!1}
7617
+ function MC(e){e.preventDefault(),e.stopImmediatePropagation()}function AC(e){var t=e.document.documentElement,o=_C(e).on("dragstart.drag",MC,RC)
7618
+ "onselectstart"in t?o.on("selectstart.drag",MC,RC):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function EC(e,t){var o=e.document.documentElement,i=_C(e).on("dragstart.drag",null)
7619
+ t&&(i.on("click.drag",MC,RC),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 OC(e,t,o){e.prototype=t.prototype=o,o.constructor=e}function FC(e,t){var o=Object.create(e.prototype)
7593
7620
  for(var i in t)o[i]=t[i]
7594
- 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}
7595
- function GC(){return this.rgb().formatHex()}function WC(){return this.rgb().formatRgb()}function KC(e){var t,o
7596
- 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)
7597
- 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)
7598
- if(e instanceof FC||(e=KC(e)),!e)return new lk
7599
- if(e instanceof lk)return e
7621
+ return o}function VC(){}var HC=.7,PC=1/HC,TC="\\s*([+-]?\\d+)\\s*",DC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",LC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zC=/^#([0-9a-f]{3,8})$/,BC=new RegExp(`^rgb\\(${TC},${TC},${TC}\\)$`),NC=new RegExp(`^rgb\\(${LC},${LC},${LC}\\)$`),ZC=new RegExp(`^rgba\\(${TC},${TC},${TC},${DC}\\)$`),qC=new RegExp(`^rgba\\(${LC},${LC},${LC},${DC}\\)$`),jC=new RegExp(`^hsl\\(${DC},${LC},${LC}\\)$`),UC=new RegExp(`^hsla\\(${DC},${LC},${LC},${DC}\\)$`),GC={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}
7622
+ function WC(){return this.rgb().formatHex()}function KC(){return this.rgb().formatRgb()}function XC(e){var t,o
7623
+ return e=(e+"").trim().toLowerCase(),(t=zC.exec(e))?(o=t[1].length,t=parseInt(t[1],16),6===o?YC(t):3===o?new tk(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===o?QC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===o?QC(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=BC.exec(e))?new tk(t[1],t[2],t[3],1):(t=NC.exec(e))?new tk(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ZC.exec(e))?QC(t[1],t[2],t[3],t[4]):(t=qC.exec(e))?QC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=jC.exec(e))?ak(t[1],t[2]/100,t[3]/100,1):(t=UC.exec(e))?ak(t[1],t[2]/100,t[3]/100,t[4]):GC.hasOwnProperty(e)?YC(GC[e]):"transparent"===e?new tk(NaN,NaN,NaN,0):null}function YC(e){return new tk(e>>16&255,e>>8&255,255&e,1)}function QC(e,t,o,i){return i<=0&&(e=t=o=NaN),new tk(e,t,o,i)}function JC(e){return e instanceof VC||(e=XC(e)),e?new tk((e=e.rgb()).r,e.g,e.b,e.opacity):new tk}function ek(e,t,o,i){return 1===arguments.length?JC(e):new tk(e,t,o,null==i?1:i)}function tk(e,t,o,i){this.r=+e,this.g=+t,this.b=+o,this.opacity=+i}function ok(){return`#${rk(this.r)}${rk(this.g)}${rk(this.b)}`}function ik(){const e=nk(this.opacity)
7624
+ return`${1===e?"rgb(":"rgba("}${sk(this.r)}, ${sk(this.g)}, ${sk(this.b)}${1===e?")":`, ${e})`}`}function nk(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function sk(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function rk(e){return((e=sk(e))<16?"0":"")+e.toString(16)}function ak(e,t,o,i){return i<=0?e=t=o=NaN:o<=0||o>=1?e=t=NaN:t<=0&&(e=NaN),new ck(e,t,o,i)}function lk(e){if(e instanceof ck)return new ck(e.h,e.s,e.l,e.opacity)
7625
+ if(e instanceof VC||(e=XC(e)),!e)return new ck
7626
+ if(e instanceof ck)return e
7600
7627
  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
7601
- 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
7602
- 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)
7603
- return`${1===e?"hsl(":"hsla("}${ck(this.h)}, ${100*dk(this.s)}%, ${100*dk(this.l)}%${1===e?")":`, ${e})`}`}}))
7604
- var uk=e=>()=>e
7605
- 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
7606
- 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)
7607
- 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)
7628
+ 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 ck(r,a,l,e.opacity)}function ck(e,t,o,i){this.h=+e,this.s=+t,this.l=+o,this.opacity=+i}function dk(e){return(e=(e||0)%360)<0?e+360:e}function hk(e){return Math.max(0,Math.min(1,e||0))}function uk(e,t,o){return 255*(e<60?t+(o-t)*e/60:e<180?o:e<240?t+(o-t)*(240-e)/60:t)}OC(VC,XC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:WC,formatHex:WC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return lk(this).formatHsl()},formatRgb:KC,toString:KC}),OC(tk,ek,FC(VC,{brighter(e){return e=null==e?PC:Math.pow(PC,e),new tk(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?HC:Math.pow(HC,e),new tk(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tk(sk(this.r),sk(this.g),sk(this.b),nk(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:ok,formatHex:ok,formatHex8:function(){return`#${rk(this.r)}${rk(this.g)}${rk(this.b)}${rk(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ik,toString:ik})),OC(ck,(function(e,t,o,i){return 1===arguments.length?lk(e):new ck(e,t,o,null==i?1:i)}),FC(VC,{brighter(e){return e=null==e?PC:Math.pow(PC,e),new ck(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?HC:Math.pow(HC,e),new ck(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
7629
+ return new tk(uk(e>=240?e-240:e+120,n,i),uk(e,n,i),uk(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new ck(dk(this.h),hk(this.s),hk(this.l),nk(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=nk(this.opacity)
7630
+ return`${1===e?"hsl(":"hsla("}${dk(this.h)}, ${100*hk(this.s)}%, ${100*hk(this.l)}%${1===e?")":`, ${e})`}`}}))
7631
+ var pk=e=>()=>e
7632
+ function gk(e){return 1==(e=+e)?vk: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):pk(isNaN(t)?o:t)}}function vk(e,t){var o=t-e
7633
+ return o?function(e,t){return function(o){return e+o*t}}(e,o):pk(isNaN(e)?t:e)}var mk=function e(t){var o=gk(t)
7634
+ function i(e,t){var i=o((e=ek(e)).r,(t=ek(t)).r),n=o(e.g,t.g),s=o(e.b,t.b),r=vk(e.opacity,t.opacity)
7608
7635
  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)
7609
- function mk(e,t){t||(t=[])
7636
+ function fk(e,t){t||(t=[])
7610
7637
  var o,i=e?Math.min(t.length,e.length):0,n=t.slice()
7611
7638
  return function(s){for(o=0;o<i;++o)n[o]=e[o]*(1-s)+t[o]*s
7612
- 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)
7613
- for(o=0;o<n;++o)s[o]=kk(e[o],t[o])
7639
+ return n}}function bk(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)
7640
+ for(o=0;o<n;++o)s[o]=Sk(e[o],t[o])
7614
7641
  for(;o<i;++o)r[o]=t[o]
7615
7642
  return function(e){for(o=0;o<n;++o)r[o]=s[o](e)
7616
- return r}}function bk(e,t){var o=new Date
7617
- 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={}
7618
- 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]
7643
+ return r}}function wk(e,t){var o=new Date
7644
+ return e=+e,t=+t,function(i){return o.setTime(e*(1-i)+t*i),o}}function xk(e,t){return e=+e,t=+t,function(o){return e*(1-o)+t*o}}function yk(e,t){var o,i={},n={}
7645
+ for(o in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)o in e?i[o]=Sk(e[o],t[o]):n[o]=t[o]
7619
7646
  return function(e){for(o in i)n[o]=i[o](e)
7620
- return n}}var yk=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$k=new RegExp(yk.source,"g")
7621
- function Ck(e,t){var o,i,n,s=yk.lastIndex=$k.lastIndex=0,r=-1,a=[],l=[]
7622
- 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
7647
+ return n}}var $k=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ck=new RegExp($k.source,"g")
7648
+ function kk(e,t){var o,i,n,s=$k.lastIndex=Ck.lastIndex=0,r=-1,a=[],l=[]
7649
+ for(e+="",t+="";(o=$k.exec(e))&&(i=Ck.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:xk(o,i)})),s=Ck.lastIndex
7623
7650
  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)
7624
- return a.join("")})}function kk(e,t){var o,i,n=typeof t
7625
- 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}
7626
- function Mk(e,t,o,i,n,s){var r,a,l
7627
- 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=[]
7651
+ return a.join("")})}function Sk(e,t){var o,i,n=typeof t
7652
+ return null==t||"boolean"===n?pk(t):("number"===n?xk:"string"===n?(o=XC(t))?(t=o,mk):kk:t instanceof XC?mk:t instanceof Date?wk:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?bk:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?yk:xk:fk))(e,t)}function _k(e,t){return e=+e,t=+t,function(o){return Math.round(e*(1-o)+t*o)}}var Ik,Rk=180/Math.PI,Mk={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
7653
+ function Ak(e,t,o,i,n,s){var r,a,l
7654
+ 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)*Rk,skewX:Math.atan(l)*Rk,scaleX:r,scaleY:a}}function Ek(e,t,o,i){function n(e){return e.length?e.pop()+" ":""}return function(s,r){var a=[],l=[]
7628
7655
  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)
7629
- 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,")")
7630
- 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)
7631
- return a.join("")}}}var Ek=Ak((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
7632
- 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)}),", ",")",")")
7633
- 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
7656
+ a.push({i:l-4,x:xk(e,n)},{i:l-2,x:xk(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:xk(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:xk(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,")")
7657
+ r.push({i:a-4,x:xk(e,o)},{i:a-2,x:xk(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)
7658
+ return a.join("")}}}var Ok=Ek((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
7659
+ return t.isIdentity?Mk:Ak(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Fk=Ek((function(e){return null==e?Mk:(Ik||(Ik=document.createElementNS("http://www.w3.org/2000/svg","g")),Ik.setAttribute("transform",e),(e=Ik.transform.baseVal.consolidate())?Ak((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Mk)}),", ",")",")")
7660
+ function Vk(e){return((e=Math.exp(e))+1/e)/2}var Hk,Pk,Tk=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
7634
7661
  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)]}
7635
7662
  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)
7636
- 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))
7637
- 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
7638
- 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)}
7639
- 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
7640
- return i.restart(e,t,o),i}function Kk(){Bk=(zk=Zk.now())+Nk,Tk=Dk=0
7641
- try{!function(){jk(),++Tk
7642
- 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
7643
- 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)
7644
- Hk=e,Yk(i)}(),Bk=0}}function Xk(){var e=Zk.now(),t=e-zk
7645
- 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
7646
- 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")
7647
- 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())}}
7648
- var Jk=r$("start","end","cancel","interrupt"),eS=[]
7649
- function tS(e,t,o,i,n,s){var r=e.__transition
7663
+ r=(x-w)/t,s=function(e){var i,n=e*r,s=Vk(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))
7664
+ return[a+d*p,l+d*g,c*s/Vk(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
7665
+ return e(o,i,i*i)},n}(Math.SQRT2,2,4),Dk=0,Lk=0,zk=0,Bk=0,Nk=0,Zk=0,qk="object"==typeof performance&&performance.now?performance:Date,jk="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
7666
+ function Uk(){return Nk||(jk(Gk),Nk=qk.now()+Zk)}function Gk(){Nk=0}function Wk(){this._call=this._time=this._next=null}function Kk(e,t,o){var i=new Wk
7667
+ return i.restart(e,t,o),i}function Xk(){Nk=(Bk=qk.now())+Zk,Dk=Lk=0
7668
+ try{!function(){Uk(),++Dk
7669
+ for(var e,t=Hk;t;)(e=Nk-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Dk}()}finally{Dk=0,function(){var e,t,o=Hk,i=1/0
7670
+ 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:Hk=t)
7671
+ Pk=e,Qk(i)}(),Nk=0}}function Yk(){var e=qk.now(),t=e-Bk
7672
+ t>1e3&&(Zk-=t,Bk=e)}function Qk(e){Dk||(Lk&&(Lk=clearTimeout(Lk)),e-Nk>24?(e<1/0&&(Lk=setTimeout(Xk,e-qk.now()-Zk)),zk&&(zk=clearInterval(zk))):(zk||(Bk=qk.now(),zk=setInterval(Yk,1e3)),Dk=1,jk(Xk)))}function Jk(e,t,o){var i=new Wk
7673
+ return t=null==t?0:+t,i.restart((o=>{i.stop(),e(o+t)}),t,o),i}Wk.prototype=Kk.prototype={constructor:Wk,restart:function(e,t,o){if("function"!=typeof e)throw new TypeError("callback is not a function")
7674
+ o=(null==o?Uk():+o)+(null==t?0:+t),this._next||Pk===this||(Pk?Pk._next=this:Hk=this,Pk=this),this._call=e,this._time=o,Qk()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qk())}}
7675
+ var eS=a$("start","end","cancel","interrupt"),tS=[]
7676
+ function oS(e,t,o,i,n,s){var r=e.__transition
7650
7677
  if(r){if(o in r)return}else e.__transition={}
7651
7678
  !function(e,t,o){var i,n=e.__transition
7652
7679
  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
7653
7680
  if(1!==o.state)return l()
7654
- for(c in n)if((u=n[c]).name===o.name){if(3===u.state)return Qk(r)
7655
- 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)
7681
+ for(c in n)if((u=n[c]).name===o.name){if(3===u.state)return Jk(r)
7682
+ 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(Jk((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)
7656
7683
  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)
7657
7684
  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
7658
- 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)
7685
+ delete e.__transition}n[t]=o,o.timer=Kk(s,0,o.time)}(e,o,{name:t,index:i,group:n,on:eS,tween:tS,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function iS(e,t){var o=sS(e,t)
7659
7686
  if(o.state>0)throw new Error("too late; already scheduled")
7660
- return o}function iS(e,t){var o=nS(e,t)
7687
+ return o}function nS(e,t){var o=sS(e,t)
7661
7688
  if(o.state>3)throw new Error("too late; already running")
7662
- return o}function nS(e,t){var o=e.__transition
7689
+ return o}function sS(e,t){var o=e.__transition
7663
7690
  if(!o||!(o=o[t]))throw new Error("transition not found")
7664
- return o}function sS(e,t){var o,i,n,s=e.__transition,r=!0
7691
+ return o}function rS(e,t){var o,i,n,s=e.__transition,r=!0
7665
7692
  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
7666
- r&&delete e.__transition}}function rS(e,t){var o,i
7667
- return function(){var n=iS(this,e),s=n.tween
7693
+ r&&delete e.__transition}}function aS(e,t){var o,i
7694
+ return function(){var n=nS(this,e),s=n.tween
7668
7695
  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)
7669
- break}n.tween=i}}function aS(e,t,o){var i,n
7696
+ break}n.tween=i}}function lS(e,t,o){var i,n
7670
7697
  if("function"!=typeof o)throw new Error
7671
- return function(){var s=iS(this,e),r=s.tween
7698
+ return function(){var s=nS(this,e),r=s.tween
7672
7699
  if(r!==i){n=(i=r).slice()
7673
7700
  for(var a={name:t,value:o},l=0,c=n.length;l<c;++l)if(n[l].name===t){n[l]=a
7674
- break}l===c&&n.push(a)}s.tween=n}}function lS(e,t,o){var i=e._id
7675
- 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
7676
- 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+""
7701
+ break}l===c&&n.push(a)}s.tween=n}}function cS(e,t,o){var i=e._id
7702
+ return e.each((function(){var e=nS(this,i);(e.value||(e.value={}))[t]=o.apply(this,arguments)})),function(e){return sS(e,i).value[t]}}function dS(e,t){var o
7703
+ return("number"==typeof t?xk:t instanceof XC?mk:(o=XC(t))?(t=o,mk):kk)(e,t)}function hS(e){return function(){this.removeAttribute(e)}}function uS(e){return function(){this.removeAttributeNS(e.space,e.local)}}function pS(e,t,o){var i,n,s=o+""
7677
7704
  return function(){var r=this.getAttribute(e)
7678
- return r===s?null:r===i?n:n=t(i=r,o)}}function pS(e,t,o){var i,n,s=o+""
7705
+ return r===s?null:r===i?n:n=t(i=r,o)}}function gS(e,t,o){var i,n,s=o+""
7679
7706
  return function(){var r=this.getAttributeNS(e.space,e.local)
7680
- return r===s?null:r===i?n:n=t(i=r,o)}}function gS(e,t,o){var i,n,s
7707
+ return r===s?null:r===i?n:n=t(i=r,o)}}function vS(e,t,o){var i,n,s
7681
7708
  return function(){var r,a,l=o(this)
7682
7709
  if(null!=l)return(r=this.getAttribute(e))===(a=l+"")?null:r===i&&a===n?s:(n=a,s=t(i=r,l))
7683
- this.removeAttribute(e)}}function vS(e,t,o){var i,n,s
7710
+ this.removeAttribute(e)}}function mS(e,t,o){var i,n,s
7684
7711
  return function(){var r,a,l=o(this)
7685
7712
  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))
7686
- 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
7713
+ this.removeAttributeNS(e.space,e.local)}}function fS(e,t){return function(o){this.setAttribute(e,t.call(this,o))}}function bS(e,t){return function(o){this.setAttributeNS(e.space,e.local,t.call(this,o))}}function wS(e,t){var o,i
7687
7714
  function n(){var n=t.apply(this,arguments)
7688
- return n!==i&&(o=(i=n)&&fS(e,n)),o}return n._value=t,n}function wS(e,t){var o,i
7715
+ return n!==i&&(o=(i=n)&&bS(e,n)),o}return n._value=t,n}function xS(e,t){var o,i
7689
7716
  function n(){var n=t.apply(this,arguments)
7690
- 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
7691
- 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(".")
7692
- return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?oS:iS
7717
+ return n!==i&&(o=(i=n)&&fS(e,n)),o}return n._value=t,n}function yS(e,t){return function(){iS(this,e).delay=+t.apply(this,arguments)}}function $S(e,t){return t=+t,function(){iS(this,e).delay=t}}function CS(e,t){return function(){nS(this,e).duration=+t.apply(this,arguments)}}function kS(e,t){return t=+t,function(){nS(this,e).duration=t}}function SS(e,t){if("function"!=typeof t)throw new Error
7718
+ return function(){nS(this,e).ease=t}}function _S(e,t,o){var i,n,s=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
7719
+ return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?iS:nS
7693
7720
  return function(){var r=s(this,e),a=r.on
7694
- a!==i&&(n=(i=a).copy()).on(t,o),r.on=n}}var _S=kC.prototype.constructor
7695
- 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
7721
+ a!==i&&(n=(i=a).copy()).on(t,o),r.on=n}}var IS=SC.prototype.constructor
7722
+ function RS(e){return function(){this.style.removeProperty(e)}}function MS(e,t,o){return function(i){this.style.setProperty(e,t.call(this,i),o)}}function AS(e,t,o){var i,n
7696
7723
  function s(){var s=t.apply(this,arguments)
7697
- 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
7724
+ return s!==n&&(i=(n=s)&&MS(e,s,o)),i}return s._value=t,s}function ES(e){return function(t){this.textContent=e.call(this,t)}}function OS(e){var t,o
7698
7725
  function i(){var i=e.apply(this,arguments)
7699
- return i!==o&&(t=(o=i)&&AS(i)),t}return i._value=e,i}var OS=0
7700
- 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
7701
- FS.prototype={constructor:FS,select:function(e){var t=this._name,o=this._id
7702
- "function"!=typeof e&&(e=b$(e))
7703
- 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)))
7704
- return new FS(s,this._parents,t,o)},selectAll:function(e){var t=this._name,o=this._id
7705
- "function"!=typeof e&&(e=y$(e))
7706
- 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)
7707
- 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))
7726
+ return i!==o&&(t=(o=i)&&ES(i)),t}return i._value=e,i}var FS=0
7727
+ function VS(e,t,o,i){this._groups=e,this._parents=t,this._name=o,this._id=i}function HS(){return++FS}var PS=SC.prototype
7728
+ VS.prototype={constructor:VS,select:function(e){var t=this._name,o=this._id
7729
+ "function"!=typeof e&&(e=w$(e))
7730
+ 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,oS(h[u],t,o,u,h,sS(a,o)))
7731
+ return new VS(s,this._parents,t,o)},selectAll:function(e){var t=this._name,o=this._id
7732
+ "function"!=typeof e&&(e=$$(e))
7733
+ 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=sS(l,o),v=0,m=p.length;v<m;++v)(u=p[v])&&oS(u,t,o,v,p,g)
7734
+ s.push(p),r.push(l)}return new VS(s,r,t,o)},selectChild:PS.selectChild,selectChildren:PS.selectChildren,filter:function(e){"function"!=typeof e&&(e=C$(e))
7708
7735
  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)
7709
- return new FS(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
7736
+ return new VS(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
7710
7737
  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)
7711
7738
  for(;a<i;++a)r[a]=t[a]
7712
- 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)
7713
- 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
7714
- 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
7715
- 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
7739
+ return new VS(r,this._parents,this._name,this._id)},selection:function(){return new IS(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,o=HS(),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=sS(r,t)
7740
+ oS(r,e,o,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new VS(i,this._parents,e,o)},call:PS.call,nodes:PS.nodes,node:PS.node,size:PS.size,empty:PS.empty,each:PS.each,on:function(e,t){var o=this._id
7741
+ return arguments.length<2?sS(this.node(),o).on.on(e):this.each(_S(o,e,t))},attr:function(e,t){var o=g$(e),i="transform"===o?Fk:dS
7742
+ return this.attrTween(e,"function"==typeof t?(o.local?mS:vS)(o,i,cS(this,"attr."+e,t)):null==t?(o.local?uS:hS)(o):(o.local?gS:pS)(o,i,t))},attrTween:function(e,t){var o="attr."+e
7716
7743
  if(arguments.length<2)return(o=this.tween(o))&&o._value
7717
7744
  if(null==t)return this.tween(o,null)
7718
7745
  if("function"!=typeof t)throw new Error
7719
- var i=p$(e)
7720
- return this.tween(o,(i.local?bS:wS)(i,t))},style:function(e,t,o){var i="transform"==(e+="")?Ek:cS
7746
+ var i=g$(e)
7747
+ return this.tween(o,(i.local?wS:xS)(i,t))},style:function(e,t,o){var i="transform"==(e+="")?Ok:dS
7721
7748
  return null==t?this.styleTween(e,function(e,t){var o,i,n
7722
- return function(){var s=U$(this,e),r=(this.style.removeProperty(e),U$(this,e))
7723
- 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
7724
- return function(){var r=U$(this,e),a=o(this),l=a+""
7725
- 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
7726
- return function(){var l=iS(this,e),c=l.on,d=null==l.value[r]?s||(s=IS(t)):void 0
7749
+ return function(){var s=G$(this,e),r=(this.style.removeProperty(e),G$(this,e))
7750
+ return s===r?null:s===o&&r===i?n:n=t(o=s,i=r)}}(e,i)).on("end.style."+e,RS(e)):"function"==typeof t?this.styleTween(e,function(e,t,o){var i,n,s
7751
+ return function(){var r=G$(this,e),a=o(this),l=a+""
7752
+ return null==a&&(this.style.removeProperty(e),l=a=G$(this,e)),r===l?null:r===i&&l===n?s:(n=l,s=t(i=r,a))}}(e,i,cS(this,"style."+e,t))).each(function(e,t){var o,i,n,s,r="style."+t,a="end."+r
7753
+ return function(){var l=nS(this,e),c=l.on,d=null==l.value[r]?s||(s=RS(t)):void 0
7727
7754
  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+""
7728
- return function(){var r=U$(this,e)
7755
+ return function(){var r=G$(this,e)
7729
7756
  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+="")
7730
7757
  if(arguments.length<2)return(i=this.tween(i))&&i._value
7731
7758
  if(null==t)return this.tween(i,null)
7732
7759
  if("function"!=typeof t)throw new Error
7733
- 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)
7734
- 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"
7760
+ return this.tween(i,AS(e,t,null==o?"":o))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
7761
+ this.textContent=null==t?"":t}}(cS(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
7735
7762
  if(arguments.length<1)return(t=this.tween(t))&&t._value
7736
7763
  if(null==e)return this.tween(t,null)
7737
7764
  if("function"!=typeof e)throw new Error
7738
- return this.tween(t,ES(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
7765
+ return this.tween(t,OS(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
7739
7766
  for(var o in this.__transition)if(+o!==e)return
7740
7767
  t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var o=this._id
7741
- 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
7742
- return null}return this.each((null==t?rS:aS)(o,e,t))},delay:function(e){var t=this._id
7743
- return arguments.length?this.each(("function"==typeof e?xS:yS)(t,e)):nS(this.node(),t).delay},duration:function(e){var t=this._id
7744
- return arguments.length?this.each(("function"==typeof e?$S:CS)(t,e)):nS(this.node(),t).duration},ease:function(e){var t=this._id
7745
- return arguments.length?this.each(kS(t,e)):nS(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
7768
+ if(e+="",arguments.length<2){for(var i,n=sS(this.node(),o).tween,s=0,r=n.length;s<r;++s)if((i=n[s]).name===e)return i.value
7769
+ return null}return this.each((null==t?aS:lS)(o,e,t))},delay:function(e){var t=this._id
7770
+ return arguments.length?this.each(("function"==typeof e?yS:$S)(t,e)):sS(this.node(),t).delay},duration:function(e){var t=this._id
7771
+ return arguments.length?this.each(("function"==typeof e?CS:kS)(t,e)):sS(this.node(),t).duration},ease:function(e){var t=this._id
7772
+ return arguments.length?this.each(SS(t,e)):sS(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
7746
7773
  return this.each(function(e,t){return function(){var o=t.apply(this,arguments)
7747
7774
  if("function"!=typeof o)throw new Error
7748
- iS(this,e).ease=o}}(this._id,e))},end:function(){var e,t,o=this,i=o._id,n=o.size()
7775
+ nS(this,e).ease=o}}(this._id,e))},end:function(){var e,t,o=this,i=o._id,n=o.size()
7749
7776
  return new Promise((function(s,r){var a={value:r},l={value:function(){0==--n&&s()}}
7750
- o.each((function(){var o=iS(this,i),n=o.on
7751
- 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]}
7752
- var PS={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
7753
- function TS(e,t){for(var o;!(o=e.__transition)||!(o=o[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
7754
- return o}kC.prototype.interrupt=function(e){return this.each((function(){sS(this,e)}))},kC.prototype.transition=function(e){var t,o
7755
- e instanceof FS?(t=e._id,e=e._name):(t=VS(),(o=PS).time=jk(),e=null==e?null:e+"")
7756
- 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))
7757
- return new FS(i,this._parents,e,t)}
7758
- var DS=e=>()=>e
7759
- 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+")"}}
7760
- var BS=new zS(1,0,0)
7761
- function NS(e){for(;!e.__zoom;)if(!(e=e.parentNode))return BS
7762
- 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
7763
- 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]
7764
- 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
7765
- const YS=G`
7777
+ o.each((function(){var o=nS(this,i),n=o.on
7778
+ 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]:PS[Symbol.iterator]}
7779
+ var TS={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
7780
+ function DS(e,t){for(var o;!(o=e.__transition)||!(o=o[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
7781
+ return o}SC.prototype.interrupt=function(e){return this.each((function(){rS(this,e)}))},SC.prototype.transition=function(e){var t,o
7782
+ e instanceof VS?(t=e._id,e=e._name):(t=HS(),(o=TS).time=Uk(),e=null==e?null:e+"")
7783
+ 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])&&oS(r,e,t,c,a,o||DS(r,t))
7784
+ return new VS(i,this._parents,e,t)}
7785
+ var LS=e=>()=>e
7786
+ function zS(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 BS(e,t,o){this.k=e,this.x=t,this.y=o}BS.prototype={constructor:BS,scale:function(e){return 1===e?this:new BS(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new BS(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+")"}}
7787
+ var NS=new BS(1,0,0)
7788
+ function ZS(e){for(;!e.__zoom;)if(!(e=e.parentNode))return NS
7789
+ return e.__zoom}function qS(e){e.stopImmediatePropagation()}function jS(e){e.preventDefault(),e.stopImmediatePropagation()}function US(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function GS(){var e=this
7790
+ 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 WS(){return this.__zoom||NS}function KS(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function XS(){return navigator.maxTouchPoints||"ontouchstart"in this}function YS(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]
7791
+ 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))}ZS.prototype=BS.prototype
7792
+ const QS=G`
7766
7793
  <div class="wafer-map-container">
7767
7794
  <svg class="svg-root">
7768
7795
  <g ${Re("zoomContainer")} transform=${e=>e.transform.toString()}>
@@ -7792,7 +7819,7 @@ const YS=G`
7792
7819
  />
7793
7820
  </svg>
7794
7821
  </div>
7795
- `,QS=fe`
7822
+ `,JS=fe`
7796
7823
  :host {
7797
7824
  display: inline-block;
7798
7825
  width: 500px;
@@ -7876,68 +7903,68 @@ const YS=G`
7876
7903
  outline-width: 0px;
7877
7904
  }
7878
7905
  `
7879
- 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
7906
+ function e_(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function t_(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function o_(e){let t,o,i
7880
7907
  function n(e,i,n=0,s=e.length){if(n<s){if(0!==t(i,i))return s
7881
7908
  do{const t=n+s>>>1
7882
- 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)
7909
+ o(e[t],i)<0?n=t+1:s=t}while(n<s)}return n}return 2!==e.length?(t=e_,o=(t,o)=>e_(e(t),o),i=(t,o)=>e(t)-o):(t=e===e_||e===t_?e:i_,o=e,i=e),{left:n,center:function(e,t,o=0,s=e.length){const r=n(e,t,o,s-1)
7883
7910
  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
7884
7911
  do{const t=n+s>>>1
7885
- 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
7886
- t_(i_).center
7887
- var s_=n_
7888
- 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)
7912
+ o(e[t],i)<=0?n=t+1:s=t}while(n<s)}return n}}}function i_(){return 0}function n_(e){return null===e?NaN:+e}const s_=o_(e_).right
7913
+ o_(n_).center
7914
+ var r_=s_
7915
+ class a_ extends Map{constructor(e,t=c_){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(l_(this,e))}has(e){return super.has(l_(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},o){const i=t(o)
7889
7916
  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)
7890
7917
  e.has(i)&&(o=e.get(i),e.delete(i))
7891
- return o}(this,e))}}function a_({_intern:e,_key:t},o){const i=t(o)
7892
- 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)
7893
- 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
7918
+ return o}(this,e))}}function l_({_intern:e,_key:t},o){const i=t(o)
7919
+ return e.has(i)?e.get(i):o}function c_(e){return null!==e&&"object"==typeof e?e.valueOf():e}const d_=Math.sqrt(50),h_=Math.sqrt(10),u_=Math.sqrt(2)
7920
+ function p_(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>=d_?10:s>=h_?5:s>=u_?2:1
7894
7921
  let a,l,c
7895
- 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)
7922
+ 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?p_(e,t,2*o):[a,l,c]}function g_(e,t,o){return p_(e=+e,t=+t,o=+o)[2]}function v_(e,t,o=n_){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+o(e[0],0,e)
7896
7923
  if(t>=1)return+o(e[i-1],i-1,e)
7897
7924
  var i,n=(i-1)*t,s=Math.floor(n),r=+o(e[s],s,e)
7898
- 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
7925
+ return r+(+o(e[s+1],s+1,e)-r)*(n-s)}}function m_(e,t,o){e=+e,t=+t,o=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+o
7899
7926
  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
7900
- return s}function m_(e,t){switch(arguments.length){case 0:break
7927
+ return s}function f_(e,t){switch(arguments.length){case 0:break
7901
7928
  case 1:this.range(e)
7902
7929
  break
7903
- default:this.range(t).domain(e)}return this}const f_=Symbol("implicit")
7904
- function b_(){var e=new r_,t=[],o=[],i=f_
7930
+ default:this.range(t).domain(e)}return this}const b_=Symbol("implicit")
7931
+ function w_(){var e=new a_,t=[],o=[],i=b_
7905
7932
  function n(n){let s=e.get(n)
7906
- if(void 0===s){if(i!==f_)return i
7933
+ if(void 0===s){if(i!==b_)return i
7907
7934
  e.set(n,s=t.push(n)-1)}return o[s%o.length]}return n.domain=function(o){if(!arguments.length)return t.slice()
7908
- t=[],e=new r_
7935
+ t=[],e=new a_
7909
7936
  for(const i of o)e.has(i)||e.set(i,t.push(i)-1)
7910
- 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
7937
+ 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 w_(t,o).unknown(i)},f_.apply(n,arguments),n}function x_(){var e,t,o=w_().unknown(void 0),i=o.domain,n=o.range,s=0,r=1,a=!1,l=0,c=0,d=.5
7911
7938
  function h(){var o=i().length,h=r<s,u=h?r:s,p=h?s:r
7912
7939
  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))
7913
- var g=v_(o).map((function(t){return u+e*t}))
7914
- 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]
7915
- 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})
7916
- var o}function k_(e,t,o){var i=e[0],n=e[1],s=t[0],r=t[1]
7917
- 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
7918
- 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])
7919
- return function(t){var o=s_(e,t,1,i)-1
7920
- 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=$_
7940
+ var g=m_(o).map((function(t){return u+e*t}))
7941
+ 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 x_(i(),[s,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},f_.apply(h(),arguments)}function y_(e){return+e}var $_=[0,1]
7942
+ function C_(e){return e}function k_(e,t){return(t-=e=+e)?function(o){return(o-e)/t}:(o=isNaN(t)?NaN:.5,function(){return o})
7943
+ var o}function S_(e,t,o){var i=e[0],n=e[1],s=t[0],r=t[1]
7944
+ return n<i?(i=k_(n,i),s=o(r,s)):(i=k_(i,n),s=o(s,r)),function(e){return s(i(e))}}function __(e,t,o){var i=Math.min(e.length,t.length)-1,n=new Array(i),s=new Array(i),r=-1
7945
+ for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<i;)n[r]=k_(e[r],e[r+1]),s[r]=o(t[r],t[r+1])
7946
+ return function(t){var o=r_(e,t,1,i)-1
7947
+ return s[o](n[o](t))}}function I_(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function R_(){var e,t,o,i,n,s,r=$_,a=$_,l=Sk,c=C_
7921
7948
  function d(){var e,t,o,l=Math.min(r.length,a.length)
7922
- 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
7949
+ return c!==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_,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),xk)))(o)))},h.domain=function(e){return arguments.length?(r=Array.from(e,y_),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=_k,d()},h.clamp=function(e){return arguments.length?(c=!!e||C_,d()):c!==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 M_(){return R_()(C_,C_)}function A_(e,t){if((o=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
7923
7950
  var o,i=e.slice(0,o)
7924
- 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
7925
- function F_(e){if(!(t=O_.exec(e)))throw new Error("invalid format: "+e)
7951
+ return[i.length>1?i[0]+i.slice(2):i,+e.slice(o+1)]}function E_(e){return(e=A_(Math.abs(e)))?e[1]:NaN}var O_,F_=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
7952
+ function V_(e){if(!(t=F_.exec(e)))throw new Error("invalid format: "+e)
7926
7953
  var t
7927
- 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)
7954
+ return new H_({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 H_(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 P_(e,t){var o=A_(e,t)
7928
7955
  if(!o)return e+""
7929
7956
  var i=o[0],n=o[1]
7930
- 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}
7931
- 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)
7957
+ 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")}V_.prototype=H_.prototype,H_.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}
7958
+ var T_={"%":(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)=>P_(100*e,t),r:P_,s:function(e,t){var o=A_(e,t)
7932
7959
  if(!o)return e+""
7933
- 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
7934
- 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)}
7935
- 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"]
7936
- 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]
7937
- 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+""
7938
- 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
7939
- "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="=")
7940
- var w="$"===u?n:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===u?s:/[%p]/.test(b)?l:"",y=P_[b],$=/[defgprs%]/.test(b)
7960
+ var i=o[0],n=o[1],s=n-(O_=3*Math.max(-8,Math.min(8,Math.floor(n/3))))+1,r=i.length
7961
+ 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")+A_(e,Math.max(0,t+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
7962
+ function D_(e){return e}var L_,z_,B_,N_=Array.prototype.map,Z_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
7963
+ function q_(e){var t,o,i=void 0===e.grouping||void 0===e.thousands?D_:(t=N_.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]
7964
+ 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?D_:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(N_.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+""
7965
+ function h(e){var t=(e=V_(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
7966
+ "n"===b?(v=!0,b="g"):T_[b]||(void 0===m&&(m=12),f=!0,b="g"),(p||"0"===t&&"="===o)&&(p=!0,t="0",o="=")
7967
+ var w="$"===u?n:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===u?s:/[%p]/.test(b)?l:"",y=T_[b],$=/[defgprs%]/.test(b)
7941
7968
  function C(e){var n,s,l,u=w,C=x
7942
7969
  if("c"===b)C=y(e)+C,e=""
7943
7970
  else{var k=(e=+e)<0||1/e<0
@@ -7946,7 +7973,7 @@ break
7946
7973
  case"0":0===n&&(n=i),t=i
7947
7974
  break
7948
7975
  default:if(!+e[i])break e
7949
- 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)
7976
+ 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?Z_[8+O_/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)
7950
7977
  break}}v&&!p&&(e=i(e,1/0))
7951
7978
  var S=u.length+e.length+C.length,_=S<g?new Array(g-S+1).join(t):""
7952
7979
  switch(v&&p&&(e=i(_+e,_.length?g-C.length:1/0),_=""),o){case"<":e=u+e+C+_
@@ -7955,19 +7982,19 @@ case"=":e=u+_+e+C
7955
7982
  break
7956
7983
  case"^":e=_.slice(0,S=_.length>>1)+u+e+C+_.slice(S)
7957
7984
  break
7958
- 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]
7959
- return function(e){return o(n*e)+s}}}}function q_(e,t,o,i){var n,s=function(e,t,o){o=+o
7960
- const i=(t=+t)<(e=+e),n=i?p_(t,e,o):p_(e,t,o)
7985
+ 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=V_(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(E_(t)/3))),n=Math.pow(10,-i),s=Z_[8+i/3]
7986
+ return function(e){return o(n*e)+s}}}}function j_(e,t,o,i){var n,s=function(e,t,o){o=+o
7987
+ const i=(t=+t)<(e=+e),n=i?g_(t,e,o):g_(e,t,o)
7961
7988
  return(i?-1:1)*(n<0?1/-n:n)}(e,t,o)
7962
- switch((i=F_(null==i?",f":i)).type){case"s":var r=Math.max(Math.abs(e),Math.abs(t))
7963
- 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)
7964
- 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))
7989
+ switch((i=V_(null==i?",f":i)).type){case"s":var r=Math.max(Math.abs(e),Math.abs(t))
7990
+ return null!=i.precision||isNaN(n=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(E_(t)/3)))-E_(Math.abs(e)))}(s,r))||(i.precision=n),B_(i,r)
7991
+ 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,E_(t)-E_(e))+1}(s,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=n-("e"===i.type))
7965
7992
  break
7966
- 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
7993
+ case"f":case"%":null!=i.precision||isNaN(n=function(e){return Math.max(0,-E_(Math.abs(e)))}(s))||(i.precision=n-2*("%"===i.type))}return z_(i)}function U_(e){var t=e.domain
7967
7994
  return e.ticks=function(e){var o=t()
7968
7995
  return function(e,t,o){if(!((o=+o)>0))return[]
7969
7996
  if((e=+e)==(t=+t))return[e]
7970
- const i=t<e,[n,s,r]=i?u_(t,e,o):u_(e,t,o)
7997
+ const i=t<e,[n,s,r]=i?p_(t,e,o):p_(e,t,o)
7971
7998
  if(!(s>=n))return[]
7972
7999
  const a=s-n+1,l=new Array(a)
7973
8000
  if(i)if(r<0)for(let e=0;e<a;++e)l[e]=(s-e)/-r
@@ -7975,85 +8002,85 @@ else for(let e=0;e<a;++e)l[e]=(s-e)*r
7975
8002
  else if(r<0)for(let e=0;e<a;++e)l[e]=(n+e)/-r
7976
8003
  else for(let e=0;e<a;++e)l[e]=(n+e)*r
7977
8004
  return l}(o[0],o[o.length-1],null==e?10:e)},e.tickFormat=function(e,o){var i=t()
7978
- return q_(i[0],i[i.length-1],null==e?10:e,o)},e.nice=function(o){null==o&&(o=10)
8005
+ return j_(i[0],i[i.length-1],null==e?10:e,o)},e.nice=function(o){null==o&&(o=10)
7979
8006
  var i,n,s=t(),r=0,a=s.length-1,l=s[r],c=s[a],d=10
7980
- 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)
8007
+ for(c<l&&(n=l,l=c,c=n,n=r,r=a,a=n);d-- >0;){if((n=g_(l,c,o))===i)return s[r]=l,s[a]=c,t(s)
7981
8008
  if(n>0)l=Math.floor(l/n)*n,c=Math.ceil(c/n)*n
7982
8009
  else{if(!(n<0))break
7983
- l=Math.ceil(l*n)/n,c=Math.floor(c*n)/n}i=n}return e},e}function U_(){var e=R_()
7984
- return e.copy=function(){return __(e,U_())},m_.apply(e,arguments),j_(e)}function G_(){var e,t=[],o=[],i=[]
8010
+ l=Math.ceil(l*n)/n,c=Math.floor(c*n)/n}i=n}return e},e}function G_(){var e=M_()
8011
+ return e.copy=function(){return I_(e,G_())},f_.apply(e,arguments),U_(e)}function W_(){var e,t=[],o=[],i=[]
7985
8012
  function n(){var e=0,n=Math.max(1,o.length)
7986
- for(i=new Array(n-1);++e<n;)i[e-1]=g_(t,e/n)
7987
- 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)
8013
+ for(i=new Array(n-1);++e<n;)i[e-1]=v_(t,e/n)
8014
+ return s}function s(t){return null==t||isNaN(t=+t)?e:o[r_(i,t)]}return s.invertExtent=function(e){var n=o.indexOf(e)
7988
8015
  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()
7989
8016
  t=[]
7990
8017
  for(let o of e)null==o||isNaN(o=+o)||t.push(o)
7991
- 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
7992
- const W_="bottom-left",K_="bottom-right",X_="top-left",Y_="top-right",Q_="top",J_="show",eI="hide",tI="linear",oI="ordinal"
7993
- class iI{constructor(e){this.defaultPadding=0,this.baseMarginPercentage=.04
8018
+ return t.sort(e_),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 W_().domain(t).range(o).unknown(e)},f_.apply(s,arguments)}L_=q_({thousands:",",grouping:[3],currency:["$",""]}),z_=L_.format,B_=L_.formatPrefix
8019
+ const K_="bottom-left",X_="bottom-right",Y_="top-left",Q_="top-right",J_="top",eI="show",tI="hide",oI="linear",iI="ordinal"
8020
+ class nI{constructor(e){this.defaultPadding=0,this.baseMarginPercentage=.04
7994
8021
  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}
7995
8022
  this.margin=this.calculateMarginAddition(s,n),this.containerDimensions=this.calculateContainerDimensions(t,this.margin)
7996
8023
  const r=Math.min(this.containerDimensions.width,this.containerDimensions.height)
7997
8024
  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}
7998
8025
  const t={x:e[0].x,y:e[0].y},o={x:e[0].x,y:e[0].y}
7999
8026
  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)
8000
- 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)
8001
- return e===W_||e===X_?i.range([0,o]):i.range([o,0])}createInvertedHorizontalScale(e,t,o){const i=G_().domain([0,o])
8002
- 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)
8003
- return e===W_||e===K_?i.range([o,0]):i.range([0,o])}createInvertedVerticalScale(e,t,o){const i=G_().domain([0,o])
8004
- 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=[]
8027
+ 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=x_().domain(m_(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
8028
+ return e===K_||e===Y_?i.range([0,o]):i.range([o,0])}createInvertedHorizontalScale(e,t,o){const i=W_().domain([0,o])
8029
+ return e===K_||e===Y_?i.range(m_(t.origin.x,t.origin.x+t.cols)):i.range(m_(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,o){const i=x_().domain(m_(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
8030
+ return e===K_||e===X_?i.range([o,0]):i.range([0,o])}createInvertedVerticalScale(e,t,o){const i=W_().domain([0,o])
8031
+ return e===K_||e===X_?i.range(m_(t.origin.y,t.origin.y+t.rows).reverse()):i.range(m_(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 sI{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=[]
8005
8032
  for(const i of e.dies){const s=t(i.x)??0,r=o(i.y)??0
8006
- 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""
8033
+ 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)?G_().domain(e.values.map((e=>+e))).range(e.colors):w_().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,o,i){if(o||!this.dieHasData(e))return""
8007
8034
  const n=`${e}${i}`
8008
- 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
8035
+ 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===oI}isColorScaleOrdinal(e){return e===iI}calculateFillStyle(e,t,o){let i=this.emptyDieColor
8009
8036
  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
8010
8037
  let n=Pn(i)
8011
- 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])
8038
+ return null===n?this.emptyDieColor:(n=new Rn(n.r,n.g,n.b,this.calculateOpacity(e,o)),n.toStringWebRGBA())}}class rI{constructor(e){this.computations=new nI(e),this.prerendering=new sI(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 aI{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?tI:eI,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])
8012
8039
  return`translate(${o[0]}, ${o[1]})`}return""}renderDies(){let e
8013
8040
  this.dies.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.fillStyle?-1:0))
8014
8041
  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
8015
8042
  this.wafermap.canvasContext.font=`${t.toString()}px sans-serif`,this.wafermap.canvasContext.fillStyle="#ffffff",this.wafermap.canvasContext.textAlign="center",this.wafermap.canvasContext.lineCap="butt"
8016
8043
  const o=this.wafermap.canvasContext.measureText("M")
8017
- 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
8018
- 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
8019
- 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
8020
- 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))
8044
+ 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 lI{constructor(e){this.wafermap=e,this.zoomTransform=NS,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100,this.zoomBehavior=this.createZoomBehavior(),this.zoomBehavior(_C(this.wafermap.canvas))}rescale(e){const t=e.transform
8045
+ t.k===this.minScale?(this.zoomTransform=NS,this.zoomBehavior.transform(_C(this.wafermap.canvas),NS)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}createZoomBehavior(){const e=function(){var e,t,o,i=US,n=GS,s=YS,r=KS,a=XS,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Tk,u=a$("start","zoom","end"),p=500,g=0,v=10
8046
+ function m(e){e.property("__zoom",WS).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 BS(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
8047
+ return i===e.x&&n===e.y?e:new BS(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))
8021
8048
  return function(e){if(1===e)e=u
8022
8049
  else{var t=p(e),o=c/t[2]
8023
- 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)
8050
+ e=new BS(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=IC(e)
8024
8051
  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)
8025
8052
  else{if(n.k===a)return
8026
- 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
8027
- 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
8028
- 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)
8029
- 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)
8030
- 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)
8031
- 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
8032
- 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)
8053
+ o.mouse=[d,n.invert(d)],rS(this),o.start()}jS(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=_C(e.view).on("mousemove.zoom",u,!0).on("mouseup.zoom",p,!0),l=IC(e,n),d=e.clientX,h=e.clientY
8054
+ AC(e.view),qS(e),r.mouse=[l,this.__zoom.invert(l)],rS(this),r.start()}function u(e){if(jS(e),!r.moved){var t=e.clientX-d,o=e.clientY-h
8055
+ r.moved=t*t+o*o>g}r.event(e).zoom("mouse",s(b(r.that.__zoom,r.mouse[0]=IC(e,n),r.mouse[1]),r.extent,c))}function p(e){a.on("mousemove.zoom mouseup.zoom",null),EC(e.view,r.moved),jS(e),r.event(e).end()}}function S(e,...t){if(i.apply(this,arguments)){var o=this.__zoom,r=IC(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)
8056
+ jS(e),d>0?_C(this).transition().duration(d).call(x,h,r,e):_C(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)
8057
+ for(qS(o),r=0;r<d;++r)l=[l=IC(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)
8058
+ e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),rS(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
8059
+ for(jS(e),o=0;o<d;++o)n=IC(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)
8033
8060
  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
8034
8061
  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
8035
8062
  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
8036
- 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
8063
+ for(qS(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
8037
8064
  if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0])
8038
- 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")
8065
+ else if(r.end(),2===r.taps&&(s=IC(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<v)){var c=_C(this).on("dblclick.zoom")
8039
8066
  c&&c.apply(this,arguments)}}}return m.transform=function(e,t,o,i){var n=e.selection?e.selection():e
8040
- 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
8067
+ n.property("__zoom",WS),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
8041
8068
  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
8042
- 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()
8043
- 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)
8044
- 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)}))
8045
- 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}
8069
+ return s(NS.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=_C(this.that).datum()
8070
+ u.call(e,this.that,new zS(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:LS(+e),m):r},m.filter=function(e){return arguments.length?(i="function"==typeof e?e:LS(!!e),m):i},m.touchable=function(e){return arguments.length?(a="function"==typeof e?e:LS(!!e),m):a},m.extent=function(e){return arguments.length?(n="function"==typeof e?e:LS([[+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)
8071
+ 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=>ZS(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)}))
8072
+ return e}getZoomMax(e,t){return Math.ceil(t/e*100)}}class cI{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
8046
8073
  if(!this.hoversOverDie(t))return void(this.wafermap.hoverDie=void 0)
8047
8074
  const o=this.wafermap.transform.invert([t.x,t.y]),i=this.calculateDieCoordinates({x:o[0],y:o[1]})
8048
- 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
8075
+ this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(e){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e){const t=this.wafermap.quadrant,o=t===K_||t===Y_?Math.floor:Math.ceil,i=t===Y_||t===Q_?Math.floor:Math.ceil
8049
8076
  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
8050
8077
  let o=0
8051
8078
  for(const e of t)o+=e
8052
- 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]
8079
+ return o>0}}class dI{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 lI(e),this.hoverHandler=new cI(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 hI extends Rt{constructor(){super(...arguments),this.quadrant=Y_,this.orientation=J_,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=oI,this.renderQueued=!1,this.transform=NS,this.hoverTransform="",this.hoverOpacity=tI,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 rI(this),this.renderer=new aI(this),this.eventCoordinator=new dI(this)}createResizeObserver(){const e=new ResizeObserver((e=>{const t=e[0]
8053
8080
  if(void 0===t)return
8054
8081
  const{height:o,width:i}=t.contentRect
8055
8082
  this.canvas.width=i,this.canvas.height=o,this.canvasWidth=i,this.canvasHeight=o}))
8056
- 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)
8057
- const hI=dI.compose({baseName:"wafer-map",template:YS,styles:QS})
8058
- ai.getOrCreate().withPrefix("nimble").register(hI()),ai.tagFor(dI)}()
8083
+ 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],hI.prototype,"quadrant",void 0),e([ne],hI.prototype,"orientation",void 0),e([ne({attribute:"max-characters",converter:oe})],hI.prototype,"maxCharacters",void 0),e([ne({attribute:"die-labels-hidden",mode:"boolean"})],hI.prototype,"dieLabelsHidden",void 0),e([ne({attribute:"die-labels-suffix"})],hI.prototype,"dieLabelsSuffix",void 0),e([ne({attribute:"color-scale-mode"})],hI.prototype,"colorScaleMode",void 0),e([m],hI.prototype,"canvasWidth",void 0),e([m],hI.prototype,"canvasHeight",void 0),e([m],hI.prototype,"transform",void 0),e([m],hI.prototype,"hoverTransform",void 0),e([m],hI.prototype,"hoverOpacity",void 0),e([m],hI.prototype,"hoverWidth",void 0),e([m],hI.prototype,"hoverHeight",void 0),e([m],hI.prototype,"hoverDie",void 0),e([m],hI.prototype,"highlightedValues",void 0),e([m],hI.prototype,"dies",void 0),e([m],hI.prototype,"colorScale",void 0)
8084
+ const uI=hI.compose({baseName:"wafer-map",template:QS,styles:JS})
8085
+ ai.getOrCreate().withPrefix("nimble").register(uI()),ai.tagFor(hI)}()
8059
8086
  //# sourceMappingURL=all-components-bundle.min.js.map