@ni/nimble-components 19.6.0 → 19.6.2

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 (35) hide show
  1. package/dist/all-components-bundle.js +254 -156
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +750 -668
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/all-components.d.ts +1 -0
  6. package/dist/esm/all-components.js +1 -0
  7. package/dist/esm/all-components.js.map +1 -1
  8. package/dist/esm/checkbox/styles.js +2 -2
  9. package/dist/esm/checkbox/styles.js.map +1 -1
  10. package/dist/esm/patterns/button/styles.js +66 -50
  11. package/dist/esm/patterns/button/styles.js.map +1 -1
  12. package/dist/esm/patterns/tab/styles.js +2 -2
  13. package/dist/esm/patterns/tab/styles.js.map +1 -1
  14. package/dist/esm/radio/styles.js +2 -2
  15. package/dist/esm/radio/styles.js.map +1 -1
  16. package/dist/esm/rich-text-editor/index.d.ts +12 -0
  17. package/dist/esm/rich-text-editor/index.js +18 -0
  18. package/dist/esm/rich-text-editor/index.js.map +1 -0
  19. package/dist/esm/rich-text-editor/styles.d.ts +1 -0
  20. package/dist/esm/rich-text-editor/styles.js +12 -0
  21. package/dist/esm/rich-text-editor/styles.js.map +1 -0
  22. package/dist/esm/rich-text-editor/template.d.ts +2 -0
  23. package/dist/esm/rich-text-editor/template.js +5 -0
  24. package/dist/esm/rich-text-editor/template.js.map +1 -0
  25. package/dist/esm/src/all-components.d.ts +1 -0
  26. package/dist/esm/src/rich-text-editor/index.d.ts +12 -0
  27. package/dist/esm/src/rich-text-editor/styles.d.ts +1 -0
  28. package/dist/esm/src/rich-text-editor/template.d.ts +2 -0
  29. package/dist/esm/switch/styles.js +2 -2
  30. package/dist/esm/switch/styles.js.map +1 -1
  31. package/dist/esm/theme-provider/design-tokens.js +2 -2
  32. package/dist/esm/theme-provider/design-tokens.js.map +1 -1
  33. package/dist/esm/toggle-button/styles.js +59 -5
  34. package/dist/esm/toggle-button/styles.js.map +1 -1
  35. package/package.json +2 -2
@@ -1169,7 +1169,7 @@ const Ur=ti.create(Sr($s)).withDefault((e=>cs(Tc(e),.2)))
1169
1169
  ti.create(Sr(Cs)).withDefault((e=>Ec(Tc(e))))
1170
1170
  const Gr=ti.create(Sr(ks)).withDefault((e=>cs(Tc(e),.15))),Wr=ti.create(Sr(Ss)).withDefault((e=>cs(function(e){return Fc(e,Xn,qn,Un)}(e),.1)))
1171
1171
  ti.create(Sr(_s)).withDefault((e=>cs(function(e){return Fc(e,Xn,qn,Un)}(e),.15)))
1172
- const Kr=ti.create(Sr(Is)).withDefault((e=>Hc(e))),Xr=ti.create(Sr(Rs)).withDefault((e=>Ec(Hc(e)))),Yr=ti.create(Sr(Ms)).withDefault((e=>Vc(e))),Qr=ti.create(Sr(As)).withDefault((e=>function(e){return Fc(e,es,Ln,Un)}(e))),Jr=ti.create(Sr(Es)).withDefault((e=>function(e){return Fc(e,zn,Bn,Un)}(e))),ea=ti.create(Sr(Os)).withDefault((e=>function(e){return Fc(e,Dn,Tn,Un)}(e))),ta=ti.create(Sr(Fs)).withDefault((e=>Fc(e,Qn,Qn,Un))),oa=ti.create(Sr(Vs)).withDefault((e=>Fc(e,Xn,qn,Un)))
1172
+ const Kr=ti.create(Sr(Is)).withDefault((e=>Hc(e))),Xr=ti.create(Sr(Rs)).withDefault((e=>Ec(Hc(e)))),Yr=ti.create(Sr(Ms)).withDefault((e=>Vc(e))),Qr=ti.create(Sr(As)).withDefault((e=>function(e){return Fc(e,es,Ln,Un)}(e))),Jr=ti.create(Sr(Es)).withDefault((e=>function(e){return Fc(e,zn,Bn,Un)}(e))),ea=ti.create(Sr(Os)).withDefault((e=>function(e){return Fc(e,Dn,Tn,Un)}(e))),ta=ti.create(Sr(Fs)).withDefault((e=>Fc(e,Qn,os,Un))),oa=ti.create(Sr(Vs)).withDefault((e=>Fc(e,Xn,qn,Un)))
1173
1173
  ti.create(Sr(Hs)).withDefault((e=>function(e){switch(Lr.getValueFor(e)){case gs:return ds
1174
1174
  case vs:return hs
1175
1175
  case ms:return us
@@ -1186,7 +1186,7 @@ const pa=ti.create(Sr($r)).withDefault((e=>`0px 2px 4px ${cs(Fc(e,Kn,Kn,Kn),.16)
1186
1186
  Oc(er,(e=>Pc(e)),(e=>cs(Pc(e),.3)),"Noto Serif","400","25px","32px","Noto Serif Fallback"),Oc(Js,(e=>Pc(e)),(e=>cs(Pc(e),.3)),"Noto Serif","400","29.100000381469727px","40px","Noto Serif Fallback"),Oc(or,(e=>Pc(e)),(e=>cs(Pc(e),.3)),"Source Sans Pro","400","25px","32px","Source Sans Pro Fallback")
1187
1187
  const[va,ma,fa,ba,wa,xa,ya,$a]=Oc(ir,(e=>Pc(e)),(e=>cs(Pc(e),.3)),"Source Sans Pro","400","22px","28px","Source Sans Pro Fallback")
1188
1188
  Oc(nr,(e=>Pc(e)),(e=>cs(Pc(e),.3)),"Source Sans Pro","400","19px","24px","Source Sans Pro Fallback"),Oc(sr,(e=>Pc(e)),(e=>cs(Pc(e),.3)),"Source Sans Pro","300","16px","20px","Source Sans Pro Fallback")
1189
- const[Ca,ka,Sa,_a,Ia,Ra,Ma,Aa]=Oc(rr,(e=>Pc(e)),(e=>cs(Pc(e),.3)),"Source Sans Pro","300","12.800000190734863px","16px","Source Sans Pro Fallback"),[Ea,Oa,Fa,Va,Ha,Pa,Ta,Da]=Oc(ar,(e=>Pc(e)),(e=>cs(Pc(e),.3)),is,ns,ss,rs,Zr),[La,za,Ba,Na,Za,qa,ja,Ua]=Oc(lr,(e=>Fc(e,ts,os,cs(Un,.6))),(e=>cs(Pc(e),.3)),is,ns,ss,rs,Zr),[Ga,Wa,Ka,Xa,Ya,Qa,Ja,el]=Oc(cr,(e=>Fc(e,ts,os,os)),(e=>cs(Pc(e),.3)),is,ns,ss,rs,Zr),[tl,ol,il,nl,sl,rl,al,ll]=Oc(dr,(e=>Pc(e)),(e=>cs(Pc(e),.3)),is,ns,ss,rs,Zr),[cl,dl,hl,ul,pl,gl,vl,ml]=Oc(hr,(e=>cs(Pc(e),.6)),(e=>cs(Pc(e),.3)),"Source Sans Pro","400","14px","18px","Source Sans Pro Fallback"),[fl,bl,wl,xl,yl,$l,Cl,kl]=Oc(ur,(e=>Pc(e)),(e=>cs(Pc(e),.3)),"Source Sans Pro","600","14px","18px","Source Sans Pro Fallback"),[Sl,_l,Il,Rl,Ml,Al,El,Ol]=Oc(pr,(e=>Pc(e)),(e=>cs(Pc(e),.3)),"Source Sans Pro","400","14px","18px","Source Sans Pro Fallback"),[Fl,Vl,Hl,Pl,Tl,Dl,Ll,zl]=Oc(gr,(e=>Pc(e)),(e=>cs(Pc(e),.3)),"Source Sans Pro","600","11px","16px","Source Sans Pro Fallback"),[Bl,Nl,Zl,ql,jl,Ul,Gl,Wl]=Oc(vr,(e=>cs(Pc(e),.6)),(e=>cs(Pc(e),.3)),"Source Sans Pro","600","11px","16px","Source Sans Pro Fallback"),[Kl,Xl,Yl,Ql,Jl,ec,tc,oc]=Oc(mr,(e=>Pc(e)),(e=>cs(Pc(e),.3)),"Source Sans Pro","400","12.800000190734863px","16px","Source Sans Pro Fallback"),[ic,nc,sc,rc,ac,lc,cc,dc]=Oc(fr,(e=>Pc(e)),(e=>cs(Pc(e),.3)),"Source Sans Pro","400","11px",as,"Source Sans Pro Fallback"),[hc,uc,pc,gc,vc,mc,fc,bc]=Oc(wr,(e=>Vc(e)),(e=>cs(Vc(e),.3)),"Source Sans Pro","400","11px",as,"Source Sans Pro Fallback"),[wc,xc,yc,$c,Cc,kc,Sc,_c]=Oc(tr,(e=>cs(Pc(e),.6)),(e=>cs(Pc(e),.3)),"Source Sans Pro","600","12.800000190734863px",as,"Source Sans Pro Fallback"),Ic=ti.create(Sr(qs)).withDefault("uppercase"),Rc=ti.create(Sr(Xs)).withDefault("0.075s"),Mc=ti.create(Sr(Ys)).withDefault("0.15s"),Ac=ti.create(Sr(Qs)).withDefault(ls)
1189
+ const[Ca,ka,Sa,_a,Ia,Ra,Ma,Aa]=Oc(rr,(e=>Pc(e)),(e=>cs(Pc(e),.3)),"Source Sans Pro","300","12.800000190734863px","16px","Source Sans Pro Fallback"),[Ea,Oa,Fa,Va,Ha,Pa,Ta,Da]=Oc(ar,(e=>Pc(e)),(e=>cs(Pc(e),.3)),is,ns,ss,rs,Zr),[La,za,Ba,Na,Za,qa,ja,Ua]=Oc(lr,(e=>Fc(e,ts,os,cs(Un,.6))),(e=>cs(Pc(e),.3)),is,ns,ss,rs,Zr),[Ga,Wa,Ka,Xa,Ya,Qa,Ja,el]=Oc(cr,(e=>Fc(e,ts,os,os)),(e=>cs(Pc(e),.3)),is,ns,ss,rs,Zr),[tl,ol,il,nl,sl,rl,al,ll]=Oc(dr,(e=>Pc(e)),(e=>cs(Pc(e),.3)),is,ns,ss,rs,Zr),[cl,dl,hl,ul,pl,gl,vl,ml]=Oc(hr,(e=>cs(Pc(e),.6)),(e=>cs(Pc(e),.3)),"Source Sans Pro","400","14px","18px","Source Sans Pro Fallback"),[fl,bl,wl,xl,yl,$l,Cl,kl]=Oc(ur,(e=>Pc(e)),(e=>cs(Pc(e),.3)),"Source Sans Pro","600","14px","18px","Source Sans Pro Fallback"),[Sl,_l,Il,Rl,Ml,Al,El,Ol]=Oc(pr,(e=>Pc(e)),(e=>cs(Pc(e),.3)),"Source Sans Pro","400","14px","18px","Source Sans Pro Fallback"),[Fl,Vl,Hl,Pl,Tl,Dl,Ll,zl]=Oc(gr,(e=>Pc(e)),(e=>cs(Pc(e),.3)),"Source Sans Pro","600","11px","16px","Source Sans Pro Fallback"),[Bl,Nl,Zl,ql,jl,Ul,Gl,Wl]=Oc(vr,(e=>cs(Pc(e),.6)),(e=>cs(Pc(e),.3)),"Source Sans Pro","600","11px","16px","Source Sans Pro Fallback"),[Kl,Xl,Yl,Ql,Jl,ec,tc,oc]=Oc(mr,(e=>Pc(e)),(e=>cs(Pc(e),.3)),"Source Sans Pro","600","12.800000190734863px","16px","Source Sans Pro Fallback"),[ic,nc,sc,rc,ac,lc,cc,dc]=Oc(fr,(e=>Pc(e)),(e=>cs(Pc(e),.3)),"Source Sans Pro","400","11px",as,"Source Sans Pro Fallback"),[hc,uc,pc,gc,vc,mc,fc,bc]=Oc(wr,(e=>Vc(e)),(e=>cs(Vc(e),.3)),"Source Sans Pro","400","11px",as,"Source Sans Pro Fallback"),[wc,xc,yc,$c,Cc,kc,Sc,_c]=Oc(tr,(e=>cs(Pc(e),.6)),(e=>cs(Pc(e),.3)),"Source Sans Pro","600","12.800000190734863px",as,"Source Sans Pro Fallback"),Ic=ti.create(Sr(qs)).withDefault("uppercase"),Rc=ti.create(Sr(Xs)).withDefault("0.075s"),Mc=ti.create(Sr(Ys)).withDefault("0.15s"),Ac=ti.create(Sr(Qs)).withDefault(ls)
1190
1190
  function Ec(e){const{r:t,g:o,b:i}=Hn(e)
1191
1191
  return`${255*t}, ${255*o}, ${255*i}`}function Oc(e,t,o,i,n,s,r,a){if(""===e||""===i||""===n||""===s||""===r||""===a)throw new Error("createFontTokens parameter unexpectedly set to empty string")
1192
1192
  const l=ti.create(Sr(e)).withDefault(`${n} ${s}/${r} ${i}, ${a}`),c=e.split("-font"),d=c[0]
@@ -1194,7 +1194,7 @@ if(void 0===d||""!==c[1])throw new Error(`fontTokenName value of ${e} did not ha
1194
1194
  return[l,ti.create(Sr(`${d}-font-color`)).withDefault((e=>t(e))),ti.create(Sr(`${d}-disabled-font-color`)).withDefault((e=>o(e))),ti.create(Sr(`${d}-font-family`)).withDefault(`${i}`),ti.create(Sr(`${d}-font-weight`)).withDefault(`${n}`),ti.create(Sr(`${d}-font-size`)).withDefault(`${s}`),ti.create(Sr(`${d}-font-line-height`)).withDefault(`${r}`),ti.create(Sr(`${d}-fallback-font-family`)).withDefault(`${a}`)]}function Fc(e,t,o,i){switch(Lr.getValueFor(e)){case gs:return t
1195
1195
  case vs:return o
1196
1196
  case ms:return i
1197
- default:return t}}function Vc(e){return Fc(e,Nn,"#ff4646",Un)}function Hc(e){return Fc(e,Xn,qn,Un)}function Pc(e){return Fc(e,Xn,qn,Un)}function Tc(e){return Fc(e,Qn,Qn,Un)}const Dc=fe`
1197
+ default:return t}}function Vc(e){return Fc(e,Nn,"#ff4646",Un)}function Hc(e){return Fc(e,Xn,qn,Un)}function Pc(e){return Fc(e,Xn,qn,Un)}function Tc(e){return Fc(e,Qn,os,Un)}const Dc=fe`
1198
1198
  ${xn("inline")}
1199
1199
 
1200
1200
  :host {
@@ -1365,7 +1365,13 @@ class jc{constructor(e,t,o){this.propertyName=e,this.value=t,this.styles=o}bind(
1365
1365
  outline: none;
1366
1366
  margin: 0;
1367
1367
  padding: 0 ${la};
1368
- transition: box-shadow ${Rc};
1368
+ position: relative;
1369
+ transition: box-shadow ${Rc} ease-in-out,
1370
+ border-color ${Rc} ease-in-out,
1371
+ background-size ${Rc} ease-in-out;
1372
+ background-size: 100% 100%;
1373
+ background-repeat: no-repeat;
1374
+ background-position: center;
1369
1375
  }
1370
1376
 
1371
1377
  :host([content-hidden]) .control {
@@ -1380,26 +1386,55 @@ class jc{constructor(e,t,o){this.propertyName=e,this.value=t,this.styles=o}bind(
1380
1386
  }
1381
1387
 
1382
1388
  .control:hover {
1389
+ border-color: ${ta};
1383
1390
  box-shadow: 0px 0px 0px ${ca} ${ta} inset;
1384
- outline: none;
1385
1391
  }
1386
1392
 
1387
1393
  .control${Cn} {
1394
+ border-color: ${ta};
1388
1395
  box-shadow: 0px 0px 0px ${ca} ${ta} inset;
1389
- outline: ${ca} solid ${ta};
1390
- outline-offset: -4px;
1391
1396
  }
1392
1397
 
1393
1398
  .control:active {
1394
1399
  box-shadow: none;
1395
- outline: none;
1400
+ background-image: linear-gradient(
1401
+ ${Ur},
1402
+ ${Ur}
1403
+ );
1404
+ background-size: calc(100% - 2px) calc(100% - 2px);
1396
1405
  }
1397
1406
 
1398
1407
  :host([disabled]) .control {
1399
1408
  box-shadow: none;
1409
+ background-image: none;
1410
+ }
1411
+
1412
+ .control::before {
1413
+ content: '';
1414
+ position: absolute;
1415
+ width: 100%;
1416
+ height: 100%;
1417
+ pointer-events: none;
1418
+ box-sizing: border-box;
1419
+ outline: 0px solid transparent;
1420
+ color: transparent;
1421
+ background-clip: content-box;
1422
+ transition: outline ${Rc} ease-in-out;
1423
+ }
1424
+
1425
+ .control${Cn}::before {
1426
+ outline: ${ca} solid ${ta};
1427
+ outline-offset: -3px;
1428
+ }
1429
+
1430
+ .control:active::before {
1400
1431
  outline: none;
1401
1432
  }
1402
1433
 
1434
+ :host([disabled]) .control::before {
1435
+ box-shadow: none;
1436
+ }
1437
+
1403
1438
  .content {
1404
1439
  display: contents;
1405
1440
  }
@@ -1440,77 +1475,57 @@ class jc{constructor(e,t,o){this.propertyName=e,this.value=t,this.styles=o}bind(
1440
1475
  }
1441
1476
  `.withBehaviors(Uc(Nc,fe`
1442
1477
  .control {
1443
- background-color: transparent;
1444
1478
  border-color: rgba(${qr}, 0.3);
1445
1479
  }
1446
1480
 
1447
1481
  .control:hover {
1448
1482
  background-color: transparent;
1449
- border-color: ${ta};
1450
- }
1451
-
1452
- .control${Cn} {
1453
- background-color: transparent;
1454
- border-color: ${ta};
1455
- }
1456
-
1457
- .control:active {
1458
- background-color: ${Ur};
1459
- border-color: ${Ur};
1460
1483
  }
1461
1484
 
1462
1485
  :host([disabled]) .control {
1463
- background-color: transparent;
1464
- border-color: rgba(${Xr}, 0.2);
1486
+ border-color: rgba(${Xr}, 0.3);
1465
1487
  }
1466
1488
  `),Uc(Zc,fe`
1467
- .control {
1468
- background-color: transparent;
1469
- border-color: transparent;
1470
- }
1471
-
1472
1489
  .control:hover {
1473
1490
  background-color: transparent;
1474
- border-color: ${ta};
1475
1491
  }
1476
1492
 
1477
1493
  .control${Cn} {
1478
1494
  background-color: transparent;
1479
- border-color: ${ta};
1480
- }
1481
-
1482
- .control:active {
1483
- background-color: ${Ur};
1484
- border-color: ${Ur};
1485
1495
  }
1486
1496
 
1487
1497
  :host([disabled]) .control {
1488
- background-color: transparent;
1489
1498
  border-color: transparent;
1490
1499
  }
1491
1500
  `),Uc(qc,fe`
1492
1501
  .control {
1493
1502
  background-color: rgba(${Xr}, 0.1);
1494
- border-color: transparent;
1495
1503
  }
1496
1504
 
1497
1505
  .control:hover {
1498
1506
  background-color: transparent;
1499
- border-color: ${ta};
1507
+ background-image: linear-gradient(
1508
+ rgba(${Xr}, 0.1),
1509
+ rgba(${Xr}, 0.1)
1510
+ );
1511
+ background-size: calc(100% - 4px) calc(100% - 4px);
1500
1512
  }
1501
1513
 
1502
1514
  .control${Cn} {
1503
- background-color: rgba(${Xr}, 0.1);
1504
- border-color: ${ta};
1505
- }
1506
-
1507
- .control${Cn}:hover {
1508
1515
  background-color: transparent;
1516
+ background-image: linear-gradient(
1517
+ rgba(${Xr}, 0.1),
1518
+ rgba(${Xr}, 0.1)
1519
+ );
1520
+ background-size: calc(100% - 4px) calc(100% - 4px);
1509
1521
  }
1510
1522
 
1511
1523
  .control:active {
1512
- background-color: ${Ur};
1513
- border-color: ${Ur};
1524
+ background-image: linear-gradient(
1525
+ ${Ur},
1526
+ ${Ur}
1527
+ );
1528
+ background-size: calc(100% - 2px) calc(100% - 2px);
1514
1529
  }
1515
1530
 
1516
1531
  :host([disabled]) .control {
@@ -1532,7 +1547,8 @@ class jc{constructor(e,t,o){this.propertyName=e,this.value=t,this.styles=o}bind(
1532
1547
  }
1533
1548
 
1534
1549
  :host([appearance-variant='primary']) .control:active {
1535
- box-shadow: none;
1550
+ box-shadow: 0px 0px 0px ${ca} ${Ur}
1551
+ inset;
1536
1552
  }
1537
1553
 
1538
1554
  :host([appearance-variant='primary'][disabled]) .control {
@@ -1540,10 +1556,9 @@ class jc{constructor(e,t,o){this.propertyName=e,this.value=t,this.styles=o}bind(
1540
1556
  }
1541
1557
  `),Uc(qc,fe`
1542
1558
  :host([appearance-variant='primary']) .control {
1543
- background-clip: padding-box;
1544
1559
  border-color: rgba(${qr}, 0.3);
1545
- border-width: calc(2 * ${ca});
1546
- padding: 0 calc(${la} - ${ca});
1560
+ box-shadow: 0px 0px 0px ${ca}
1561
+ rgba(${qr}, 0.3) inset;
1547
1562
  }
1548
1563
 
1549
1564
  :host([appearance-variant='primary'][content-hidden]) .control {
@@ -1552,7 +1567,7 @@ class jc{constructor(e,t,o){this.propertyName=e,this.value=t,this.styles=o}bind(
1552
1567
 
1553
1568
  :host([appearance-variant='primary']) .control:hover {
1554
1569
  border-color: ${ta};
1555
- box-shadow: none;
1570
+ box-shadow: 0px 0px 0px ${ca} ${ta} inset;
1556
1571
  }
1557
1572
 
1558
1573
  :host([appearance-variant='primary']) .control${Cn} {
@@ -1569,11 +1584,7 @@ class jc{constructor(e,t,o){this.propertyName=e,this.value=t,this.styles=o}bind(
1569
1584
  }
1570
1585
 
1571
1586
  :host([appearance-variant='primary']) .control:active {
1572
- background-clip: border-box;
1573
- border-color: ${Ur};
1574
- border-width: ${ca};
1575
1587
  box-shadow: none;
1576
- padding: 0 ${la};
1577
1588
  }
1578
1589
 
1579
1590
  :host([appearance-variant='primary'][content-hidden])
@@ -1593,6 +1604,11 @@ class jc{constructor(e,t,o){this.propertyName=e,this.value=t,this.styles=o}bind(
1593
1604
  .control {
1594
1605
  padding: 0px;
1595
1606
  }
1607
+
1608
+ :host([appearance-variant='primary']) .control:active::before {
1609
+ border-color: ${Ur};
1610
+ border-width: ${ca};
1611
+ }
1596
1612
  `)),Kc=fe`
1597
1613
  ${Gc}
1598
1614
  ${Wc}
@@ -1759,7 +1775,7 @@ const od=fe`
1759
1775
  :host {
1760
1776
  position: relative;
1761
1777
  box-sizing: border-box;
1762
- font: ${Sl};
1778
+ font: ${Kl};
1763
1779
  height: ${sa};
1764
1780
  color: ${_l};
1765
1781
  align-items: center;
@@ -2676,7 +2692,7 @@ const og=fe`
2676
2692
  ${xn("inline-flex")}
2677
2693
 
2678
2694
  :host {
2679
- font: ${Kl};
2695
+ font: ${Sl};
2680
2696
  align-items: center;
2681
2697
  cursor: pointer;
2682
2698
  outline: none;
@@ -2811,24 +2827,78 @@ const sg=ai.tagFor(ig),rg=fe`
2811
2827
  .control[aria-pressed='true'] {
2812
2828
  background-color: ${Ur};
2813
2829
  border-color: ${Ur};
2830
+ position: relative;
2831
+ transition: box-shadow ${Rc} ease-in-out,
2832
+ border-color ${Rc} ease-in-out,
2833
+ background-size ${Rc} ease-in-out;
2834
+ background-size: 100% 100%;
2835
+ background-repeat: no-repeat;
2836
+ background-position: center;
2814
2837
  }
2815
2838
 
2816
2839
  .control[aria-pressed='true']:hover {
2817
- background-color: ${Ur};
2840
+ border-color: ${ta};
2841
+ box-shadow: 0px 0px 0px ${ca} ${ta} inset;
2842
+ background-image: linear-gradient(
2843
+ ${Ur},
2844
+ ${Ur}
2845
+ );
2846
+ background-size: calc(100% - 4px) calc(100% - 4px);
2818
2847
  }
2819
2848
 
2820
2849
  .control[aria-pressed='true']${Cn} {
2821
- background-color: ${Ur};
2850
+ background-color: transparent;
2851
+ border-color: ${ta};
2852
+ box-shadow: 0px 0px 0px ${ca} ${ta} inset;
2853
+ background-image: linear-gradient(
2854
+ ${Ur},
2855
+ ${Ur}
2856
+ );
2857
+ background-size: calc(100% - 4px) calc(100% - 4px);
2858
+ }
2859
+
2860
+ .control[aria-pressed='true']:active {
2861
+ box-shadow: none;
2862
+ background-image: linear-gradient(
2863
+ ${Ur},
2864
+ ${Ur}
2865
+ );
2866
+ background-size: calc(100% - 2px) calc(100% - 2px);
2822
2867
  }
2823
2868
 
2824
2869
  :host([disabled]) .control[aria-pressed='true'] {
2825
- background-color: ${Ur};
2826
2870
  border-color: ${Ur};
2871
+ background-color: ${Ur};
2872
+ background-image: none;
2827
2873
  }
2828
2874
 
2829
2875
  :host([disabled]) .control[aria-pressed='true']:hover {
2830
- background-color: ${Ur};
2831
2876
  border-color: ${Ur};
2877
+ background-color: ${Ur};
2878
+ box-shadow: none;
2879
+ }
2880
+
2881
+ .control[aria-pressed='true']::before {
2882
+ content: '';
2883
+ position: absolute;
2884
+ width: 100%;
2885
+ height: 100%;
2886
+ pointer-events: none;
2887
+ box-sizing: border-box;
2888
+ outline: 0px solid transparent;
2889
+ outline: none;
2890
+ background-clip: content-box;
2891
+ transition: outline ${Rc} ease-in-out;
2892
+ }
2893
+
2894
+ .control[aria-pressed='true']${Cn}::before {
2895
+ outline: ${ca} solid ${ta};
2896
+ outline-offset: -3px;
2897
+ color: transparent;
2898
+ }
2899
+
2900
+ .control[aria-pressed='true']:active::before {
2901
+ outline: none;
2832
2902
  }
2833
2903
  `
2834
2904
  class ag extends Zi{constructor(){super(...arguments),this.appearance=Nc,this.contentHidden=!1}}e([ne],ag.prototype,"appearance",void 0),e([ne({attribute:"content-hidden",mode:"boolean"})],ag.prototype,"contentHidden",void 0),Et(ag,Ne,wo)
@@ -4433,7 +4503,7 @@ const xb=fe`
4433
4503
  ${xn("inline-flex")}
4434
4504
 
4435
4505
  :host {
4436
- font: ${Kl};
4506
+ font: ${Sl};
4437
4507
  align-items: center;
4438
4508
  outline: none;
4439
4509
  width: fit-content;
@@ -4588,7 +4658,7 @@ class kb extends Oi{}const Sb=kb.compose({baseName:"radio-group",baseClass:Oi,te
4588
4658
  `,styles:Cb,shadowOptions:{delegatesFocus:!0}})
4589
4659
  ai.getOrCreate().withPrefix("nimble").register(Sb()),ai.tagFor(kb)
4590
4660
  const _b=G`
4591
- <template> Rich Text Viewer here. </template>
4661
+ <template> Rich Text Editor here. </template>
4592
4662
  `,Ib=fe`
4593
4663
  ${xn("flex")}
4594
4664
 
@@ -4597,9 +4667,21 @@ const _b=G`
4597
4667
  color: ${_l};
4598
4668
  }
4599
4669
  `
4600
- class Rb extends Rt{}const Mb=Rb.compose({baseName:"rich-text-viewer",template:_b,styles:Ib})
4670
+ class Rb extends Rt{}const Mb=Rb.compose({baseName:"rich-text-editor",template:_b,styles:Ib})
4601
4671
  ai.getOrCreate().withPrefix("nimble").register(Mb()),ai.tagFor(Rb)
4602
- const Ab=fe`
4672
+ const Ab=G`
4673
+ <template> Rich Text Viewer here. </template>
4674
+ `,Eb=fe`
4675
+ ${xn("flex")}
4676
+
4677
+ :host {
4678
+ font: ${Sl};
4679
+ color: ${_l};
4680
+ }
4681
+ `
4682
+ class Ob extends Rt{}const Fb=Ob.compose({baseName:"rich-text-viewer",template:Ab,styles:Eb})
4683
+ ai.getOrCreate().withPrefix("nimble").register(Fb()),ai.tagFor(Ob)
4684
+ const Vb=fe`
4603
4685
  ${fg}
4604
4686
  ${bg}
4605
4687
 
@@ -4625,9 +4707,9 @@ const Ab=fe`
4625
4707
  padding-bottom: 0;
4626
4708
  }
4627
4709
  `))
4628
- class Eb extends Li{constructor(){super(...arguments),this.appearance=gg,this.errorVisible=!1}setPositioning(){this.$fastController.isConnected&&(super.setPositioning(),this.updateListboxMaxHeightCssVariable())}slottedOptionsChanged(e,t){const o=this.value
4629
- super.slottedOptionsChanged(e,t),o&&(this.value=o)}regionChanged(e,t){this.region&&this.control&&(this.region.anchorElement=this.control)}controlChanged(e,t){this.region&&this.control&&(this.region.anchorElement=this.control)}maxHeightChanged(){this.updateListboxMaxHeightCssVariable()}updateListboxMaxHeightCssVariable(){this.listbox&&this.listbox.style.setProperty("--ni-private-select-max-height",`${this.maxHeight}px`)}}e([ne],Eb.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Eb.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Eb.prototype,"errorVisible",void 0),e([m],Eb.prototype,"region",void 0)
4630
- const Ob=Eb.compose({baseName:"select",baseClass:Li,template:(e,t)=>G`
4710
+ class Hb extends Li{constructor(){super(...arguments),this.appearance=gg,this.errorVisible=!1}setPositioning(){this.$fastController.isConnected&&(super.setPositioning(),this.updateListboxMaxHeightCssVariable())}slottedOptionsChanged(e,t){const o=this.value
4711
+ super.slottedOptionsChanged(e,t),o&&(this.value=o)}regionChanged(e,t){this.region&&this.control&&(this.region.anchorElement=this.control)}controlChanged(e,t){this.region&&this.control&&(this.region.anchorElement=this.control)}maxHeightChanged(){this.updateListboxMaxHeightCssVariable()}updateListboxMaxHeightCssVariable(){this.listbox&&this.listbox.style.setProperty("--ni-private-select-max-height",`${this.maxHeight}px`)}}e([ne],Hb.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Hb.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Hb.prototype,"errorVisible",void 0),e([m],Hb.prototype,"region",void 0)
4712
+ const Pb=Hb.compose({baseName:"select",baseClass:Li,template:(e,t)=>G`
4631
4713
  <template
4632
4714
  class="${e=>[e.collapsible&&"collapsible",e.collapsible&&e.open&&"open",e.disabled&&"disabled",e.collapsible&&e.position].filter(Boolean).join(" ")}"
4633
4715
  aria-activedescendant="${e=>e.ariaActiveDescendant}"
@@ -4691,15 +4773,15 @@ const Ob=Eb.compose({baseName:"select",baseClass:Li,template:(e,t)=>G`
4691
4773
  </div>
4692
4774
  </${md}>
4693
4775
  </template>
4694
- `,styles:Ab,indicator:Rd.data,end:G`
4776
+ `,styles:Vb,indicator:Rd.data,end:G`
4695
4777
  <${Ap}
4696
4778
  severity="error"
4697
4779
  class="error-icon"
4698
4780
  ></${Ap}>
4699
4781
  ${dg}
4700
4782
  `})
4701
- ai.getOrCreate().withPrefix("nimble").register(Ob()),ai.tagFor(Eb)
4702
- const Fb=fe`
4783
+ ai.getOrCreate().withPrefix("nimble").register(Pb()),ai.tagFor(Hb)
4784
+ const Tb=fe`
4703
4785
  ${xn("inline-flex")}
4704
4786
 
4705
4787
  :host {
@@ -4835,7 +4917,7 @@ const Fb=fe`
4835
4917
  :host {
4836
4918
  --ni-private-spinner-bits-background-color: ${Un};
4837
4919
  }
4838
- `)),Vb=G`
4920
+ `)),Db=G`
4839
4921
  <template role="progressbar">
4840
4922
  <div class="container">
4841
4923
  <div class="bit1"></div>
@@ -4843,14 +4925,14 @@ const Fb=fe`
4843
4925
  </div>
4844
4926
  </template>
4845
4927
  `
4846
- class Hb extends Rt{}const Pb=Hb.compose({baseName:"spinner",template:Vb,styles:Fb})
4847
- ai.getOrCreate().withPrefix("nimble").register(Pb()),ai.tagFor(Hb)
4848
- const Tb=fe`
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`
4849
4931
  ${xn("inline-flex")}
4850
4932
 
4851
4933
  :host {
4852
4934
  outline: none;
4853
- font: ${Kl};
4935
+ font: ${Sl};
4854
4936
  color: ${Xl};
4855
4937
  flex-direction: column;
4856
4938
  cursor: pointer;
@@ -5005,7 +5087,7 @@ const Tb=fe`
5005
5087
  --ni-private-switch-indicator-border-color: ${Un};
5006
5088
  --ni-private-switch-indicator-border-disabled-color: ${cs(Un,.3)};
5007
5089
  }
5008
- `)),Db=G`
5090
+ `)),Nb=G`
5009
5091
  <template
5010
5092
  role="switch"
5011
5093
  aria-checked="${e=>e.checked}"
@@ -5040,15 +5122,15 @@ const Tb=fe`
5040
5122
  </div>
5041
5123
  </template>
5042
5124
  `
5043
- class Lb extends Zi{}const zb=Lb.compose({baseClass:Zi,baseName:"switch",template:Db,styles:Tb})
5044
- ai.getOrCreate().withPrefix("nimble").register(zb()),ai.tagFor(Lb)
5045
- class Bb extends ji{}const Nb=Bb.compose({baseName:"tab",baseClass:ji,template:(e,t)=>G`
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`
5046
5128
  <template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">
5047
5129
  <slot></slot>
5048
5130
  </template>
5049
5131
  `,styles:od})
5050
- ai.getOrCreate().withPrefix("nimble").register(Nb()),ai.tagFor(Bb)
5051
- const Zb=fe`
5132
+ ai.getOrCreate().withPrefix("nimble").register(Ub()),ai.tagFor(jb)
5133
+ const Gb=fe`
5052
5134
  ${xn("block")}
5053
5135
 
5054
5136
  :host {
@@ -5058,11 +5140,11 @@ const Zb=fe`
5058
5140
  padding-top: ${la};
5059
5141
  }
5060
5142
  `
5061
- class qb extends qi{}const jb=qb.compose({baseName:"tab-panel",baseClass:qi,template:(e,t)=>G`
5143
+ class Wb extends qi{}const Kb=Wb.compose({baseName:"tab-panel",baseClass:qi,template:(e,t)=>G`
5062
5144
  <template slot="tabpanel" role="tabpanel">
5063
5145
  <slot></slot>
5064
5146
  </template>
5065
- `,styles:Zb})
5147
+ `,styles:Gb})
5066
5148
 
5067
5149
  ;/**
5068
5150
  * table-core
@@ -5074,10 +5156,10 @@ class qb extends qi{}const jb=qb.compose({baseName:"tab-panel",baseClass:qi,temp
5074
5156
  *
5075
5157
  * @license MIT
5076
5158
  */
5077
- function Ub(e,t){return"function"==typeof e?e(t):e}function Gb(e,t){return o=>{t.setState((t=>({...t,[e]:Ub(o,t[e])})))}}function Wb(e){return e instanceof Function}function Kb(e,t){const o=[],i=e=>{e.forEach((e=>{o.push(e)
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)
5078
5160
  const n=t(e)
5079
5161
  null!=n&&n.length&&i(n)}))}
5080
- return i(e),o}function Xb(e,t,o){let i,n=[]
5162
+ return i(e),o}function ew(e,t,o){let i,n=[]
5081
5163
  return()=>{let s
5082
5164
  o.key&&o.debug&&(s=Date.now())
5083
5165
  const r=e()
@@ -5085,36 +5167,36 @@ if(!(r.length!==n.length||r.some(((e,t)=>n[t]!==e))))return i
5085
5167
  let a
5086
5168
  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
5087
5169
  return e}
5088
- console.info(`%c⏱ ${n(t,5)} /${n(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==o?void 0:o.key)}return i}}function Yb(e,t,o){var i
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
5089
5171
  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)}
5090
5172
  return t(n),e},getContext:()=>({table:e,header:n,column:t})}
5091
- return e._features.forEach((t=>{Object.assign(n,null==t.createHeader?void 0:t.createHeader(n,e))})),n}ai.getOrCreate().withPrefix("nimble").register(jb()),ai.tagFor(qb)
5092
- const Qb={createTable:e=>({getHeaderGroups:Xb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,o,i,n)=>{var s,r
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
5093
5175
  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:[]
5094
- return Jb(t,[...a,...o.filter((e=>!(null!=i&&i.includes(e.id)||null!=n&&n.includes(e.id)))),...l],e)}),{key:!1,debug:()=>{var t
5095
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:Xb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,o,i,n)=>Jb(t,o=o.filter((e=>!(null!=i&&i.includes(e.id)||null!=n&&n.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t
5096
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:Xb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,o,i)=>{var n
5097
- return Jb(t,null!=(n=null==i?void 0:i.map((e=>o.find((t=>t.id===e)))).filter(Boolean))?n:[],e,"left")}),{key:!1,debug:()=>{var t
5098
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:Xb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,o,i)=>{var n
5099
- return Jb(t,null!=(n=null==i?void 0:i.map((e=>o.find((t=>t.id===e)))).filter(Boolean))?n:[],e,"right")}),{key:!1,debug:()=>{var t
5100
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:Xb((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5101
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:Xb((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5102
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:Xb((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5103
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:Xb((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5104
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:Xb((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5105
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:Xb((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5106
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:Xb((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5107
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:Xb((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5108
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:Xb((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t
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
5109
5191
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
5110
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:Xb((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t
5192
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:ew((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t
5111
5193
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
5112
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:Xb((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t
5194
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:ew((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t
5113
5195
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
5114
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:Xb((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,o)=>{var i,n,s,r,a,l
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
5115
5197
  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
5116
5198
  return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})})}
5117
- function Jb(e,t,o,i){var n,s
5199
+ function iw(e,t,o,i){var n,s
5118
5200
  let r=0
5119
5201
  const a=function(e,t){void 0===t&&(t=1),r=Math.max(r,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var o
5120
5202
  null!=(o=e.columns)&&o.length&&a(e.columns,t+1)}),0)}
@@ -5124,16 +5206,16 @@ const c=(e,t)=>{const n={depth:t,id:[i,`${t}`].filter(Boolean).join("_"),headers
5124
5206
  e.forEach((e=>{const r=[...s].reverse()[0]
5125
5207
  let a,l=!1
5126
5208
  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)
5127
- else{const n=Yb(o,a,{id:[i,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${s.filter((e=>e.column===a)).length}`:void 0,depth:t,index:s.length})
5128
- n.subHeaders.push(e),s.push(n)}n.headers.push(e),e.headerGroup=n})),l.push(n),t>0&&c(s,t-1)},d=t.map(((e,t)=>Yb(o,e,{depth:r,index:t})))
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})))
5129
5211
  c(d,r-1),l.reverse()
5130
5212
  const h=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,o=0,i=[0]
5131
5213
  e.subHeaders&&e.subHeaders.length?(i=[],h(e.subHeaders).forEach((e=>{let{colSpan:o,rowSpan:n}=e
5132
5214
  t+=o,i.push(n)}))):t=1
5133
5215
  return o+=Math.min(...i),e.colSpan=t,e.rowSpan=o,{colSpan:t,rowSpan:o}}))
5134
- return h(null!=(n=null==(s=l[0])?void 0:s.headers)?n:[]),l}const ew={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},tw={getDefaultColumnDef:()=>ew,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:Gb("columnSizing",e),onColumnSizingInfoChange:Gb("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var o,i,n
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
5135
5217
  const s=t.getState().columnSizing[e.id]
5136
- return Math.min(Math.max(null!=(o=e.columnDef.minSize)?o:ew.minSize,null!=(i=null!=s?s:e.columnDef.size)?i:ew.size),null!=(n=e.columnDef.maxSize)?n:ew.maxSize)},getStart:o=>{const i=o?"left"===o?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),n=i.findIndex((t=>t.id===e.id))
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))
5137
5219
  if(n>0){const e=i[n-1]
5138
5220
  return e.getStart(o)+e.getSize()}return 0},resetSize:()=>{t.setColumnSizing((t=>{let{[e.id]:o,...i}=t
5139
5221
  return i}))},getCanResize:()=>{var o,i
@@ -5143,24 +5225,24 @@ e.subHeaders.length?e.subHeaders.forEach(o):t+=null!=(i=e.column.getSize())?i:0}
5143
5225
  return o(e),t},getStart:()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1]
5144
5226
  return t.getStart()+t.getSize()}return 0},getResizeHandler:()=>{const o=t.getColumn(e.column.id),i=null==o?void 0:o.getCanResize()
5145
5227
  return n=>{if(!o||!i)return
5146
- if(null==n.persist||n.persist(),iw(n)&&n.touches&&n.touches.length>1)return
5147
- const s=e.getSize(),r=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[o.id,o.getSize()]],a=iw(n)?Math.round(n.touches[0].clientX):n.clientX,l={},c=(e,o)=>{"number"==typeof o&&(t.setColumnSizingInfo((e=>{var t,i
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
5148
5230
  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)
5149
5231
  return e.columnSizingStart.forEach((e=>{let[t,o]=e
5150
5232
  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
5151
- document.removeEventListener("touchmove",p.moveHandler),document.removeEventListener("touchend",p.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),h(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof ow)return ow
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
5152
5234
  let e=!1
5153
5235
  try{const t={get passive(){return e=!0,!1}},o=()=>{}
5154
- window.addEventListener("test",o,t),window.removeEventListener("test",o)}catch(t){e=!1}return ow=e,ow}()&&{passive:!1}
5155
- iw(n)?(document.addEventListener("touchmove",p.moveHandler,g),document.addEventListener("touchend",p.upHandler,g)):(document.addEventListener("mousemove",u.moveHandler,g),document.addEventListener("mouseup",u.upHandler,g)),t.setColumnSizingInfo((e=>({...e,startOffset:a,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:r,isResizingColumn:o.id})))}}}),createTable:e=>({setColumnSizing:t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var o
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
5156
5238
  e.setColumnSizing(t?{}:null!=(o=e.initialState.columnSizing)?o:{})},resetHeaderSizeInfo:t=>{var o
5157
5239
  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
5158
5240
  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
5159
5241
  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
5160
5242
  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
5161
5243
  return null!=(t=null==(o=e.getRightHeaderGroups()[0])?void 0:o.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}})}
5162
- let ow=null
5163
- function iw(e){return"touchstart"===e.type}const nw={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Gb("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,o=!1
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
5164
5246
  return{_autoResetExpanded:()=>{var i,n
5165
5247
  if(t){if(null!=(i=null!=(n=e.options.autoResetAll)?n:e.options.autoResetExpanded)?i:!e.options.manualExpanding){if(o)return
5166
5248
  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
@@ -5177,57 +5259,57 @@ return o}return i}))},getIsExpanded:()=>{var o
5177
5259
  const i=t.getState().expanded
5178
5260
  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
5179
5261
  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()
5180
- return()=>{t&&e.toggleExpanded()}}})},sw=(e,t,o)=>{var i
5262
+ return()=>{t&&e.toggleExpanded()}}})},cw=(e,t,o)=>{var i
5181
5263
  const n=o.toLowerCase()
5182
5264
  return Boolean(null==(i=e.getValue(t))?void 0:i.toLowerCase().includes(n))}
5183
- sw.autoRemove=e=>vw(e)
5184
- const rw=(e,t,o)=>{var i
5265
+ cw.autoRemove=e=>ww(e)
5266
+ const dw=(e,t,o)=>{var i
5185
5267
  return Boolean(null==(i=e.getValue(t))?void 0:i.includes(o))}
5186
- rw.autoRemove=e=>vw(e)
5187
- const aw=(e,t,o)=>{var i
5268
+ dw.autoRemove=e=>ww(e)
5269
+ const hw=(e,t,o)=>{var i
5188
5270
  return(null==(i=e.getValue(t))?void 0:i.toLowerCase())===o.toLowerCase()}
5189
- aw.autoRemove=e=>vw(e)
5190
- const lw=(e,t,o)=>{var i
5271
+ hw.autoRemove=e=>ww(e)
5272
+ const uw=(e,t,o)=>{var i
5191
5273
  return null==(i=e.getValue(t))?void 0:i.includes(o)}
5192
- lw.autoRemove=e=>vw(e)||!(null!=e&&e.length)
5193
- const cw=(e,t,o)=>!o.some((o=>{var i
5274
+ uw.autoRemove=e=>ww(e)||!(null!=e&&e.length)
5275
+ const pw=(e,t,o)=>!o.some((o=>{var i
5194
5276
  return!(null!=(i=e.getValue(t))&&i.includes(o))}))
5195
- cw.autoRemove=e=>vw(e)||!(null!=e&&e.length)
5196
- const dw=(e,t,o)=>o.some((o=>{var i
5277
+ pw.autoRemove=e=>ww(e)||!(null!=e&&e.length)
5278
+ const gw=(e,t,o)=>o.some((o=>{var i
5197
5279
  return null==(i=e.getValue(t))?void 0:i.includes(o)}))
5198
- dw.autoRemove=e=>vw(e)||!(null!=e&&e.length)
5199
- const hw=(e,t,o)=>e.getValue(t)===o
5200
- hw.autoRemove=e=>vw(e)
5201
- const uw=(e,t,o)=>e.getValue(t)==o
5202
- uw.autoRemove=e=>vw(e)
5203
- const pw=(e,t,o)=>{let[i,n]=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
5204
5286
  const s=e.getValue(t)
5205
5287
  return s>=i&&s<=n}
5206
- pw.resolveFilterValue=e=>{let[t,o]=e,i="number"!=typeof t?parseFloat(t):t,n="number"!=typeof o?parseFloat(o):o,s=null===t||Number.isNaN(i)?-1/0:i,r=null===o||Number.isNaN(n)?1/0:n
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
5207
5289
  if(s>r){const e=s
5208
- s=r,r=e}return[s,r]},pw.autoRemove=e=>vw(e)||vw(e[0])&&vw(e[1])
5209
- const gw={includesString:sw,includesStringSensitive:rw,equalsString:aw,arrIncludes:lw,arrIncludesAll:cw,arrIncludesSome:dw,equals:hw,weakEquals:uw,inNumberRange:pw}
5210
- function vw(e){return null==e||""===e}const mw={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:Gb("columnFilters",e),onGlobalFilterChange:Gb("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var o,i
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
5211
5293
  const n=null==(o=e.getCoreRowModel().flatRows[0])||null==(i=o._getAllCellsByColumnId()[t.id])?void 0:i.getValue()
5212
5294
  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)
5213
- return"string"==typeof i?gw.includesString:"number"==typeof i?gw.inNumberRange:"boolean"==typeof i||null!==i&&"object"==typeof i?gw.equals:Array.isArray(i)?gw.arrIncludes:gw.weakEquals},getFilterFn:()=>{var o,i
5214
- return Wb(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(o=null==(i=t.options.filterFns)?void 0:i[e.columnDef.filterFn])?o:gw[e.columnDef.filterFn]},getCanFilter:()=>{var o,i,n
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
5215
5297
  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
5216
5298
  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
5217
5299
  return null==(o=t.getState().columnFilters)||null==(i=o.find((t=>t.id===e.id)))?void 0:i.value},getFilterIndex:()=>{var o,i
5218
- return null!=(o=null==(i=t.getState().columnFilters)?void 0:i.findIndex((t=>t.id===e.id)))?o:-1},setFilterValue:o=>{t.setColumnFilters((t=>{const i=e.getFilterFn(),n=null==t?void 0:t.find((t=>t.id===e.id)),s=Ub(o,n?n.value:void 0)
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)
5219
5301
  var r
5220
- if(fw(i,s,e))return null!=(r=null==t?void 0:t.filter((t=>t.id!==e.id)))?r:[]
5302
+ if(yw(i,s,e))return null!=(r=null==t?void 0:t.filter((t=>t.id!==e.id)))?r:[]
5221
5303
  const a={id:e.id,value:s}
5222
5304
  var l
5223
- return n?null!=(l=null==t?void 0:t.map((t=>t.id===e.id?a:t)))?l:[]:null!=t&&t.length?[...t,a]:[a]}))},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>gw.includesString,getGlobalFilterFn:()=>{var t,o
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
5224
5306
  const{globalFilterFn:i}=e.options
5225
- return Wb(i)?i:"auto"===i?e.getGlobalAutoFilterFn():null!=(t=null==(o=e.options.filterFns)?void 0:o[i])?t:gw[i]},setColumnFilters:t=>{const o=e.getAllLeafColumns()
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()
5226
5308
  null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var i
5227
- return null==(i=Ub(t,e))?void 0:i.filter((e=>{const t=o.find((t=>t.id===e.id))
5228
- if(t){if(fw(t.getFilterFn(),e.value,t))return!1}return!0}))}))},setGlobalFilter:t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var o,i
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
5229
5311
  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()}})}
5230
- function fw(e,t,o){return!(!e||!e.autoRemove)&&e.autoRemove(t,o)||void 0===t||"string"==typeof t&&!t}const bw={sum:(e,t,o)=>o.reduce(((t,o)=>{const i=o.getValue(e)
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)
5231
5313
  return t+("number"==typeof i?i:0)}),0),min:(e,t,o)=>{let i
5232
5314
  return o.forEach((t=>{const o=t.getValue(e)
5233
5315
  null!=o&&(i>o||void 0===i&&o>=o)&&(i=o)})),i},max:(e,t,o)=>{let i
@@ -5240,13 +5322,13 @@ null!=n&&(n=+n)>=n&&(++o,i+=n)})),o)return i/o},median:(e,t)=>{if(!t.length)retu
5240
5322
  let o=0,i=0
5241
5323
  return t.forEach((t=>{let n=t.getValue(e)
5242
5324
  "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}
5243
- const ww={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Gb("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var o
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
5244
5326
  return e.setRowSelection(t?{}:null!=(o=e.initialState.rowSelection)?o:{})},toggleAllRowsSelected:t=>{e.setRowSelection((o=>{t=void 0!==t?t:!e.getIsAllRowsSelected()
5245
5327
  const i={...o},n=e.getPreGroupedRowModel().flatRows
5246
5328
  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}
5247
- return e.getRowModel().rows.forEach((t=>{xw(n,t.id,i,e)})),n})),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:Xb((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,o)=>Object.keys(t).length?yw(e,o):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t
5248
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:Xb((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,o)=>Object.keys(t).length?yw(e,o):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t
5249
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:Xb((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,o)=>Object.keys(t).length?yw(e,o):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t
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
5250
5332
  return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:o}=e.getState()
5251
5333
  let i=Boolean(t.length&&Object.keys(o).length)
5252
5334
  return i&&t.some((e=>e.getCanSelect()&&!o[e.id]))&&(i=!1),i},getIsAllPageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows,{rowSelection:o}=e.getState()
@@ -5257,71 +5339,71 @@ return o>0&&o<e.getFilteredRowModel().flatRows.length},getIsSomePageRowsSelected
5257
5339
  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()
5258
5340
  t.setRowSelection((n=>{if(i===(o=void 0!==o?o:!i))return n
5259
5341
  const s={...n}
5260
- return xw(s,e.id,o,t),s}))},getIsSelected:()=>{const{rowSelection:o}=t.getState()
5261
- return $w(e,o)},getIsSomeSelected:()=>{const{rowSelection:o}=t.getState()
5262
- return"some"===Cw(e,o)},getIsAllSubRowsSelected:()=>{const{rowSelection:o}=t.getState()
5263
- return"all"===Cw(e,o)},getCanSelect:()=>{var o
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
5264
5346
  return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(o=t.options.enableRowSelection)||o},getCanSelectSubRows:()=>{var o
5265
5347
  return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(o=t.options.enableSubRowSelection)||o},getCanMultiSelect:()=>{var o
5266
5348
  return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(o=t.options.enableMultiRowSelection)||o},getToggleSelectedHandler:()=>{const t=e.getCanSelect()
5267
5349
  return o=>{var i
5268
- t&&e.toggleSelected(null==(i=o.target)?void 0:i.checked)}}})},xw=(e,t,o,i)=>{var n
5350
+ t&&e.toggleSelected(null==(i=o.target)?void 0:i.checked)}}})},kw=(e,t,o,i)=>{var n
5269
5351
  const s=i.getRow(t)
5270
- o?(s.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),s.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(n=s.subRows)&&n.length&&s.getCanSelectSubRows()&&s.subRows.forEach((t=>xw(e,t.id,o,i)))}
5271
- function yw(e,t){const o=e.getState().rowSelection,i=[],n={},s=function(e,t){return e.map((e=>{var t
5272
- const r=$w(e,o)
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)
5273
5355
  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)}
5274
- return{rows:s(t.rows),flatRows:i,rowsById:n}}function $w(e,t){var o
5275
- return null!=(o=t[e.id])&&o}function Cw(e,t,o){if(e.subRows&&e.subRows.length){let o=!0,i=!1
5276
- return e.subRows.forEach((e=>{i&&!o||($w(e,t)?i=!0:o=!1)})),o?"all":!!i&&"some"}return!1}const kw=/([0-9]+)/gm
5277
- function Sw(e,t){return e===t?0:e>t?1:-1}function _w(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Iw(e,t){const o=e.split(kw).filter(Boolean),i=t.split(kw).filter(Boolean)
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)
5278
5360
  for(;o.length&&i.length;){const e=o.shift(),t=i.shift(),n=parseInt(e,10),s=parseInt(t,10),r=[n,s].sort()
5279
5361
  if(isNaN(r[0])){if(e>t)return 1
5280
5362
  if(t>e)return-1}else{if(isNaN(r[1]))return isNaN(n)?-1:1
5281
5363
  if(n>s)return 1
5282
- if(s>n)return-1}}return o.length-i.length}const Rw={alphanumeric:(e,t,o)=>Iw(_w(e.getValue(o)).toLowerCase(),_w(t.getValue(o)).toLowerCase()),alphanumericCaseSensitive:(e,t,o)=>Iw(_w(e.getValue(o)),_w(t.getValue(o))),text:(e,t,o)=>Sw(_w(e.getValue(o)).toLowerCase(),_w(t.getValue(o)).toLowerCase()),textCaseSensitive:(e,t,o)=>Sw(_w(e.getValue(o)),_w(t.getValue(o))),datetime:(e,t,o)=>{const i=e.getValue(o),n=t.getValue(o)
5283
- return i>n?1:i<n?-1:0},basic:(e,t,o)=>Sw(e.getValue(o),t.getValue(o))},Mw=[Qb,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Gb("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:o=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=o?o:!e.getIsVisible()})))},getIsVisible:()=>{var o,i
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
5284
5366
  return null==(o=null==(i=t.getState().columnVisibility)?void 0:i[e.id])||o},getCanHide:()=>{var o,i
5285
- return(null==(o=e.columnDef.enableHiding)||o)&&(null==(i=t.options.enableHiding)||i)},getToggleVisibilityHandler:()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:Xb((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e
5286
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:Xb((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,o)=>[...e,...t,...o]),{key:!1,debug:()=>{var e
5287
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{const t=(t,o)=>Xb((()=>[o(),o().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t
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
5288
5370
  return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})
5289
5371
  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
5290
5372
  e.setColumnVisibility(t?{}:null!=(o=e.initialState.columnVisibility)?o:{})},toggleAllColumnsVisible:t=>{var o
5291
5373
  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
5292
- e.toggleAllColumnsVisible(null==(o=t.target)?void 0:o.checked)}}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Gb("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var o
5293
- e.setColumnOrder(t?[]:null!=(o=e.initialState.columnOrder)?o:[])},_getOrderColumnsFn:Xb((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,o)=>i=>{let n=[]
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=[]
5294
5376
  if(null!=e&&e.length){const t=[...e],o=[...i]
5295
5377
  for(;o.length&&t.length;){const e=t.shift(),i=o.findIndex((t=>t.id===e))
5296
5378
  i>-1&&n.push(o.splice(i,1)[0])}n=[...n,...o]}else n=i
5297
5379
  return function(e,t,o){if(null==t||!t.length||!o)return e
5298
5380
  const i=e.filter((e=>!t.includes(e.id)))
5299
- return"remove"===o?i:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...i]}(n,t,o)}),{key:!1})})},{getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:Gb("columnPinning",e)}),createColumn:(e,t)=>({pin:o=>{const i=e.getLeafColumns().map((e=>e.id)).filter(Boolean)
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)
5300
5382
  t.setColumnPinning((e=>{var t,n,s,r,a,l
5301
5383
  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
5302
5384
  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)))
5303
5385
  return s?"left":!!r&&"right"},getPinnedIndex:()=>{var o,i,n
5304
5386
  const s=e.getIsPinned()
5305
- return s?null!=(o=null==(i=t.getState().columnPinning)||null==(n=i[s])?void 0:n.indexOf(e.id))?o:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:Xb((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,o)=>{const i=[...null!=t?t:[],...null!=o?o:[]]
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:[]]
5306
5388
  return e.filter((e=>!i.includes(e.column.id)))}),{key:"row.getCenterVisibleCells",debug:()=>{var e
5307
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:Xb((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),{key:"row.getLeftVisibleCells",debug:()=>{var e
5308
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:Xb((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),{key:"row.getRightVisibleCells",debug:()=>{var e
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
5309
5391
  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
5310
5392
  return e.setColumnPinning(t?{left:[],right:[]}:null!=(o=null==(i=e.initialState)?void 0:i.columnPinning)?o:{left:[],right:[]})},getIsSomeColumnsPinned:t=>{var o
5311
5393
  const i=e.getState().columnPinning
5312
5394
  var n,s
5313
- return t?Boolean(null==(o=i[t])?void 0:o.length):Boolean((null==(n=i.left)?void 0:n.length)||(null==(s=i.right)?void 0:s.length))},getLeftLeafColumns:Xb((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t
5314
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:Xb((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t
5315
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:Xb((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,o)=>{const i=[...null!=t?t:[],...null!=o?o:[]]
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:[]]
5316
5398
  return e.filter((e=>!i.includes(e.id)))}),{key:!1,debug:()=>{var t
5317
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})},mw,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:Gb("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const o=t.getFilteredRowModel().flatRows.slice(10)
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)
5318
5400
  let i=!1
5319
5401
  for(const t of o){const o=null==t?void 0:t.getValue(e.id)
5320
- if("[object Date]"===Object.prototype.toString.call(o))return Rw.datetime
5321
- if("string"==typeof o&&(i=!0,o.split(kw).length>1))return Rw.alphanumeric}return i?Rw.text:Rw.basic},getAutoSortDir:()=>{const o=t.getFilteredRowModel().flatRows[0]
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]
5322
5404
  return"string"==typeof(null==o?void 0:o.getValue(e.id))?"asc":"desc"},getSortingFn:()=>{var o,i
5323
5405
  if(!e)throw new Error
5324
- return Wb(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(o=null==(i=t.options.sortingFns)?void 0:i[e.columnDef.sortingFn])?o:Rw[e.columnDef.sortingFn]},toggleSorting:(o,i)=>{const n=e.getNextSortingOrder(),s=null!=o
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
5325
5407
  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))
5326
5408
  let c,d=[],h=s?o:"desc"===n
5327
5409
  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}]
@@ -5336,86 +5418,86 @@ return!!i&&(i.desc?"desc":"asc")},getSortIndex:()=>{var o,i
5336
5418
  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()
5337
5419
  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
5338
5420
  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
5339
- return null!=(t=null==(o=e.getValue())||null==o.toString?void 0:o.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Gb("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},getCanGroup:()=>{var o,i,n,s
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
5340
5422
  return null!=(o=null==(i=null!=(n=null==(s=e.columnDef.enableGrouping)||s)?n:t.options.enableGrouping)||i)?o:!!e.accessorFn},getIsGrouped:()=>{var o
5341
5423
  return null==(o=t.getState().grouping)?void 0:o.includes(e.id)},getGroupedIndex:()=>{var o
5342
5424
  return null==(o=t.getState().grouping)?void 0:o.indexOf(e.id)},getToggleGroupingHandler:()=>{const t=e.getCanGroup()
5343
5425
  return()=>{t&&e.toggleGrouping()}},getAutoAggregationFn:()=>{const o=t.getCoreRowModel().flatRows[0],i=null==o?void 0:o.getValue(e.id)
5344
- return"number"==typeof i?bw.sum:"[object Date]"===Object.prototype.toString.call(i)?bw.extent:void 0},getAggregationFn:()=>{var o,i
5426
+ return"number"==typeof i?$w.sum:"[object Date]"===Object.prototype.toString.call(i)?$w.extent:void 0},getAggregationFn:()=>{var o,i
5345
5427
  if(!e)throw new Error
5346
- return Wb(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(o=null==(i=t.options.aggregationFns)?void 0:i[e.columnDef.aggregationFn])?o:bw[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var o,i
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
5347
5429
  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
5348
- return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=o.subRows)||!t.length)}})},nw,{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Gb("pagination",e)}),createTable:e=>{let t=!1,o=!1
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
5349
5431
  return{_autoResetPageIndex:()=>{var i,n
5350
5432
  if(t){if(null!=(i=null!=(n=e.options.autoResetAll)?n:e.options.autoResetPageIndex)?i:!e.options.manualPagination){if(o)return
5351
- o=!0,e._queue((()=>{e.resetPageIndex(),o=!1}))}}else e._queue((()=>{t=!0}))},setPagination:t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>Ub(t,e))),resetPagination:t=>{var o
5352
- e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(o=e.initialState.pagination)?o:{pageIndex:0,pageSize:10})},setPageIndex:t=>{e.setPagination((o=>{let i=Ub(t,o.pageIndex)
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)
5353
5435
  const n=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1
5354
5436
  return i=Math.max(0,Math.min(i,n)),{...o,pageIndex:i}}))},resetPageIndex:t=>{var o,i,n
5355
5437
  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
5356
- e.setPageSize(t?10:null!=(o=null==(i=e.initialState)||null==(n=i.pagination)?void 0:n.pageSize)?o:10)},setPageSize:t=>{e.setPagination((e=>{const o=Math.max(1,Ub(t,e.pageSize)),i=e.pageSize*e.pageIndex,n=Math.floor(i/o)
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)
5357
5439
  return{...e,pageIndex:n,pageSize:o}}))},setPageCount:t=>e.setPagination((o=>{var i
5358
- let n=Ub(t,null!=(i=e.options.pageCount)?i:-1)
5359
- return"number"==typeof n&&(n=Math.max(-1,n)),{...o,pageCount:n}})),getPageOptions:Xb((()=>[e.getPageCount()]),(e=>{let t=[]
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=[]
5360
5442
  return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:!1,debug:()=>{var t
5361
5443
  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()
5362
5444
  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
5363
- return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},ww,tw]
5364
- function Aw(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...")
5365
- let o={_features:Mw}
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}
5366
5448
  const i=o._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o))),{})
5367
5449
  let n={...null!=(t=e.initialState)?t:{}}
5368
5450
  o._features.forEach((e=>{var t
5369
5451
  n=null!=(t=null==e.getInitialState?void 0:e.getInitialState(n))?t:n}))
5370
5452
  const s=[]
5371
5453
  let r=!1
5372
- const a={_features:Mw,options:{...i,...e},initialState:n,_queue:e=>{s.push(e),r||(r=!0,Promise.resolve().then((()=>{for(;s.length;)s.shift()()
5373
- r=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=Ub(e,o.options)
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)
5374
5456
  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
5375
5457
  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]
5376
5458
  if(!t)throw new Error
5377
- return t},_getDefaultColumnDef:Xb((()=>[o.options.defaultColumn]),(e=>{var t
5459
+ return t},_getDefaultColumnDef:ew((()=>[o.options.defaultColumn]),(e=>{var t
5378
5460
  return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef
5379
5461
  return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,o
5380
5462
  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
5381
- return null!=(e=o.options.debugAll)?e:o.options.debugColumns},key:!1}),_getColumnDefs:()=>o.options.columns,getAllColumns:Xb((()=>[o._getColumnDefs()]),(e=>{const t=function(e,i,n){return void 0===n&&(n=0),e.map((e=>{const s=function(e,t,o,i){var n,s
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
5382
5464
  const r={...e._getDefaultColumnDef(),...t},a=r.accessorKey
5383
5465
  let l,c=null!=(n=null!=(s=r.id)?s:a?a.replace(".","_"):void 0)?n:"string"==typeof r.header?r.header:void 0
5384
5466
  if(r.accessorFn?l=r.accessorFn:a&&(l=a.includes(".")?e=>{let t=e
5385
5467
  for(const e of a.split(".")){var o
5386
5468
  t=null==(o=t)?void 0:o[e]}return t}:e=>e[r.accessorKey]),!c)throw new Error
5387
- let d={id:`${String(c)}`,accessorFn:l,parent:i,depth:o,columnDef:r,columns:[],getFlatColumns:Xb((()=>[!0]),(()=>{var e
5469
+ let d={id:`${String(c)}`,accessorFn:l,parent:i,depth:o,columnDef:r,columns:[],getFlatColumns:ew((()=>[!0]),(()=>{var e
5388
5470
  return[d,...null==(e=d.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"column.getFlatColumns",debug:()=>{var t
5389
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:Xb((()=>[e._getOrderColumnsFn()]),(e=>{var t
5471
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:ew((()=>[e._getOrderColumnsFn()]),(e=>{var t
5390
5472
  if(null!=(t=d.columns)&&t.length){let t=d.columns.flatMap((e=>e.getLeafColumns()))
5391
5473
  return e(t)}return[d]}),{key:"column.getLeafColumns",debug:()=>{var t
5392
5474
  return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})}
5393
5475
  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
5394
5476
  return s.columns=r.columns?t(r.columns,s,n+1):[],s}))}
5395
5477
  return t(e)}),{key:!1,debug:()=>{var e
5396
- return null!=(e=o.options.debugAll)?e:o.options.debugColumns}}),getAllFlatColumns:Xb((()=>[o.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e
5397
- return null!=(e=o.options.debugAll)?e:o.options.debugColumns}}),_getAllFlatColumnsById:Xb((()=>[o.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e
5398
- return null!=(e=o.options.debugAll)?e:o.options.debugColumns}}),getAllLeafColumns:Xb((()=>[o.getAllColumns(),o._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:!1,debug:()=>{var e
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
5399
5481
  return null!=(e=o.options.debugAll)?e:o.options.debugColumns}}),getColumn:e=>o._getAllFlatColumnsById()[e]}
5400
- return Object.assign(o,a),o._features.forEach((e=>Object.assign(o,null==e.createTable?void 0:e.createTable(o)))),o}const Ew=(e,t,o,i,n,s)=>{let r={id:t,index:i,original:o,depth:n,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(r._valuesCache.hasOwnProperty(t))return r._valuesCache[t]
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]
5401
5483
  const o=e.getColumn(t)
5402
5484
  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]
5403
5485
  const o=e.getColumn(t)
5404
5486
  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
5405
- return null!=(o=r.getValue(t))?o:e.options.renderFallbackValue},subRows:null!=s?s:[],getLeafRows:()=>Kb(r.subRows,(e=>e.subRows)),getAllCells:Xb((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,o,i){const n={id:`${t.id}_${o.id}`,row:t,column:o,getValue:()=>t.getValue(i),renderValue:()=>{var t
5406
- return null!=(t=n.getValue())?t:e.options.renderFallbackValue},getContext:Xb((()=>[e,o,t,n]),((e,t,o,i)=>({table:e,column:t,row:o,cell:i,getValue:i.getValue,renderValue:i.renderValue})),{key:!1,debug:()=>e.options.debugAll})}
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})}
5407
5489
  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
5408
- return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:Xb((()=>[r.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t
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
5409
5491
  return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}
5410
5492
  for(let t=0;t<e._features.length;t++){const o=e._features[t]
5411
5493
  Object.assign(r,null==o||null==o.createRow?void 0:o.createRow(r,e))}return r}
5412
- function Ow(){return e=>Xb((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,o)=>{if(!o.rows.length||!t.length)return o
5494
+ function Pw(){return e=>ew((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,o)=>{if(!o.rows.length||!t.length)return o
5413
5495
  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)))
5414
5496
  const l=i[o],c=function(e,t){const o=new Map
5415
5497
  return e.reduce(((e,o)=>{const i=`${o.getValue(t)}`,n=e.get(i)
5416
5498
  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}`
5417
5499
  u=a?`${a}>${u}`:u
5418
- const p=r(h,o+1,u),g=o?Kb(h,(e=>e.subRows)):h,v=Ew(e,u,g[0].original,c,o)
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)
5419
5501
  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]
5420
5502
  var o
5421
5503
  if(h[0])v._valuesCache[t]=null!=(o=h[0].getValue(t))?o:void 0
@@ -5424,10 +5506,10 @@ const n=e.getColumn(t),s=null==n?void 0:n.getAggregationFn()
5424
5506
  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}))
5425
5507
  return d},a=r(o.rows,0,"")
5426
5508
  return a.forEach((e=>{n.push(e),s[e.id]=e})),{rows:a,flatRows:n,rowsById:s}}),{key:!1,debug:()=>{var t
5427
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))}})}const Fw={none:void 0,ascending:"ascending",descending:"descending"},Vw={none:void 0,single:"single",multiple:"multiple"},Hw="notSelected",Pw="selected",Tw="partiallySelected",Dw="basic",Lw="localeAwareCaseSensitive"
5428
- class zw extends Rt{}e([m],zw.prototype,"groupHeaderValue",void 0),e([m],zw.prototype,"columnConfig",void 0)
5429
- const Bw=e=>((e=>{let t
5430
- try{t=document.createElement(e)}catch(e){}if(!(t instanceof zw))throw new Error(`Group header view tag name (${e}) must evaluate to an element extending TableGroupHeaderView`)})(e),G`
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`
5431
5513
  <${e}
5432
5514
  :groupHeaderValue="${e=>e.groupRowValue}"
5433
5515
  :columnConfig="${e=>e.groupColumn?.columnInternals.columnConfig}"
@@ -5435,11 +5517,11 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof zw))throw new Error(
5435
5517
  >
5436
5518
  </${e}>
5437
5519
  `)
5438
- class Nw extends Rt{constructor(){super(...arguments),this.delegatedEvents=[],this.delegatedEventHandler=()=>{}}focusedRecycleCallback(){}columnChanged(){for(const e of this.delegatedEvents)this.removeEventListener(e,this.delegatedEventHandler)
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)
5439
5521
  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}}))}
5440
- for(const e of this.delegatedEvents)this.addEventListener(e,this.delegatedEventHandler)}}}e([m],Nw.prototype,"cellRecord",void 0),e([m],Nw.prototype,"columnConfig",void 0),e([m],Nw.prototype,"column",void 0)
5441
- const Zw=e=>((e=>{let t
5442
- try{t=document.createElement(e)}catch(e){}if(!(t instanceof Nw))throw new Error(`Cell view tag name (${e}) must evaluate to an element extending TableCellView`)})(e),G`
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`
5443
5525
  <${e}
5444
5526
  :cellRecord="${e=>e.cellState?.cellRecord}"
5445
5527
  :columnConfig="${e=>e.cellState?.columnConfig}"
@@ -5448,10 +5530,10 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof Nw))throw new Error(
5448
5530
  >
5449
5531
  </${e}>
5450
5532
  `)
5451
- class qw{constructor(e){this.uniqueId=Hr("table-column-slot"),this.validConfiguration=!0,this.sortOperation=Dw,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=1,this.minPixelWidth=117,this.currentFractionalWidth=1,this.currentSortDirection=Fw.none,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=Zw(e.cellViewTag),this.groupHeaderViewTemplate=Bw(e.groupHeaderViewTag),this.delegatedEvents=e.delegatedEvents,this.sortOperation=e.sortOperation??Dw}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}e([m],qw.prototype,"columnConfig",void 0),e([m],qw.prototype,"validConfiguration",void 0),e([m],qw.prototype,"operandDataRecordFieldName",void 0),e([m],qw.prototype,"sortOperation",void 0),e([m],qw.prototype,"dataRecordFieldNames",void 0),e([m],qw.prototype,"groupingDisabled",void 0),e([m],qw.prototype,"groupIndex",void 0),e([m],qw.prototype,"pixelWidth",void 0),e([m],qw.prototype,"fractionalWidth",void 0),e([m],qw.prototype,"minPixelWidth",void 0),e([m],qw.prototype,"currentFractionalWidth",void 0),e([m],qw.prototype,"currentPixelWidth",void 0),e([m],qw.prototype,"currentSortIndex",void 0),e([m],qw.prototype,"currentSortDirection",void 0)
5452
- class jw extends Rt{constructor(){super(...arguments),this.columnInternals=new qw(this.getColumnInternalsOptions()),this.columnHidden=!1,this.sortDirection=Fw.none,this.sortingDisabled=!1,this.hasOverflow=!1}checkValidity(){return this.columnInternals.validConfiguration}get validity(){return{}}get headerTextContent(){return this.contentSlot.assignedNodes().map((e=>e.textContent?.trim())).join(" ")}sortDirectionChanged(){this.sortingDisabled||(this.columnInternals.currentSortDirection=this.sortDirection)}sortIndexChanged(){this.sortingDisabled||(this.columnInternals.currentSortIndex=this.sortIndex)}sortingDisabledChanged(){this.sortingDisabled?(this.columnInternals.currentSortDirection=Fw.none,this.columnInternals.currentSortIndex=void 0):(this.columnInternals.currentSortDirection=this.sortDirection,this.columnInternals.currentSortIndex=this.sortIndex)}}e([ne({attribute:"column-id"})],jw.prototype,"columnId",void 0),e([ne({attribute:"action-menu-slot"})],jw.prototype,"actionMenuSlot",void 0),e([ne({attribute:"action-menu-label"})],jw.prototype,"actionMenuLabel",void 0),e([ne({attribute:"column-hidden",mode:"boolean"})],jw.prototype,"columnHidden",void 0),e([ne({attribute:"sort-index",converter:oe})],jw.prototype,"sortIndex",void 0),e([ne({attribute:"sort-direction"})],jw.prototype,"sortDirection",void 0),e([ne({attribute:"sorting-disabled",mode:"boolean"})],jw.prototype,"sortingDisabled",void 0),e([m],jw.prototype,"hasOverflow",void 0)
5453
- class Uw{constructor(){this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.duplicateColumnId=!1,this.missingColumnId=!1,this.duplicateSortIndex=!1,this.duplicateGroupIndex=!1,this.idFieldNameNotConfigured=!1,this.invalidColumnConfiguration=!1,this.recordIds=new Set}getValidity(){return{duplicateRecordId:this.duplicateRecordId,missingRecordId:this.missingRecordId,invalidRecordId:this.invalidRecordId,duplicateColumnId:this.duplicateColumnId,missingColumnId:this.missingColumnId,duplicateSortIndex:this.duplicateSortIndex,duplicateGroupIndex:this.duplicateGroupIndex,idFieldNameNotConfigured:this.idFieldNameNotConfigured,invalidColumnConfiguration:this.invalidColumnConfiguration}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}areRecordIdsValid(){const e=this.getValidity()
5454
- return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateSelectionMode(e,t){return this.idFieldNameNotConfigured=e!==Vw.none&&"string"!=typeof t,!this.idFieldNameNotConfigured}validateRecordIds(e,t){if(this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.recordIds.clear(),"string"!=typeof t)return!0
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
5455
5537
  for(const o of e){if(!Object.prototype.hasOwnProperty.call(o,t)){this.missingRecordId=!0
5456
5538
  continue}const e=o[t]
5457
5539
  "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
@@ -5459,7 +5541,7 @@ const t=e.some((e=>e))
5459
5541
  if(!t)return!0
5460
5542
  const o=new Set
5461
5543
  for(const t of e)t?(o.has(t)&&(this.duplicateColumnId=!0),o.add(t)):this.missingColumnId=!0
5462
- return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e){return this.duplicateSortIndex=!this.validateIndicesAreUnique(e),!this.duplicateSortIndex}validateColumnGroupIndices(e){return this.duplicateGroupIndex=!this.validateIndicesAreUnique(e),!this.duplicateGroupIndex}validateColumnConfigurations(e){return this.invalidColumnConfiguration=e.some((e=>!e.columnInternals.validConfiguration)),!this.invalidColumnConfiguration}getPresentRecordIds(e){return e.filter((e=>this.recordIds.has(e)))}validateIndicesAreUnique(e){return new Set(e).size===e.length}}const Gw=fe`
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`
5463
5545
  ${xn("flex")}
5464
5546
 
5465
5547
  :host {
@@ -5568,7 +5650,7 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5568
5650
  background-color: ${cs(Un,.1)};
5569
5651
  position: absolute;
5570
5652
  }
5571
- `)),Ww=fe`
5653
+ `)),Qw=fe`
5572
5654
  ${xn("flex")}
5573
5655
 
5574
5656
  :host {
@@ -5587,7 +5669,7 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5587
5669
  .grouped-indicator {
5588
5670
  flex: 0 0 auto;
5589
5671
  }
5590
- `,Kw=G`
5672
+ `,Jw=G`
5591
5673
  <template role="columnheader"
5592
5674
  aria-sort="${e=>e.ariaSort}"
5593
5675
  ${""}
@@ -5595,10 +5677,10 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5595
5677
  >
5596
5678
  <slot></slot>
5597
5679
  ${""}
5598
- ${Me((e=>e.sortDirection===Fw.ascending),G`
5680
+ ${Me((e=>e.sortDirection===Tw.ascending),G`
5599
5681
  <${Gg} class="sort-indicator" aria-hidden="true"></${Gg}>
5600
5682
  `)}
5601
- ${Me((e=>e.sortDirection===Fw.descending),G`
5683
+ ${Me((e=>e.sortDirection===Tw.descending),G`
5602
5684
  <${Hg} class="sort-indicator" aria-hidden="true"></${Hg}>
5603
5685
  `)}
5604
5686
  ${Me((e=>e.isGrouped),G`
@@ -5606,10 +5688,10 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5606
5688
  `)}
5607
5689
  </template>
5608
5690
  `
5609
- class Xw extends Rt{constructor(){super(...arguments),this.sortDirection=Fw.none,this.firstSortedColumn=!1,this.isGrouped=!1}sortDirectionChanged(e,t){this.updateAriaSort()}firstSortedColumnChanged(e,t){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==Fw.none?this.sortDirection===Fw.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}e([ne({attribute:"sort-direction"})],Xw.prototype,"sortDirection",void 0),e([ne({attribute:"first-sorted-column",mode:"boolean"})],Xw.prototype,"firstSortedColumn",void 0),e([m],Xw.prototype,"isGrouped",void 0)
5610
- const Yw=Xw.compose({baseName:"table-header",template:Kw,styles:Ww})
5611
- ai.getOrCreate().withPrefix("nimble").register(Yw())
5612
- const Qw=ai.tagFor(Xw),Jw=fe`
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`
5613
5695
  ${xn("flex")}
5614
5696
 
5615
5697
  :host {
@@ -5696,7 +5778,7 @@ const Qw=ai.tagFor(Xw),Jw=fe`
5696
5778
  :host([selected]:hover)::before {
5697
5779
  background-color: ${cs(Un,.2)};
5698
5780
  }
5699
- `)),ex=fe`
5781
+ `)),nx=fe`
5700
5782
  ${xn("flex")}
5701
5783
 
5702
5784
  :host {
@@ -5726,7 +5808,7 @@ const Qw=ai.tagFor(Xw),Jw=fe`
5726
5808
  height: ${ra};
5727
5809
  align-self: center;
5728
5810
  }
5729
- `,tx=G`
5811
+ `,sx=G`
5730
5812
  <template role="cell" style="--ni-private-table-cell-nesting-level: ${e=>e.nestingLevel}">
5731
5813
  ${e=>e.cellViewTemplate}
5732
5814
  ${Me((e=>e.hasActionMenu),G`
@@ -5745,10 +5827,10 @@ const Qw=ai.tagFor(Xw),Jw=fe`
5745
5827
  `)}
5746
5828
  </template>
5747
5829
  `
5748
- class ox extends Rt{constructor(){super(...arguments),this.hasActionMenu=!1,this.menuOpen=!1,this.nestingLevel=0}onActionMenuBeforeToggle(e){this.$emit("cell-action-menu-beforetoggle",e.detail)}onActionMenuToggle(e){this.menuOpen=e.detail.newState,this.$emit("cell-action-menu-toggle",e.detail)}}e([m],ox.prototype,"cellState",void 0),e([m],ox.prototype,"column",void 0),e([ne({attribute:"has-action-menu",mode:"boolean"})],ox.prototype,"hasActionMenu",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],ox.prototype,"menuOpen",void 0),e([ne({attribute:"action-menu-label"})],ox.prototype,"actionMenuLabel",void 0),e([m],ox.prototype,"cellViewTemplate",void 0),e([m],ox.prototype,"nestingLevel",void 0)
5749
- const ix=ox.compose({baseName:"table-cell",template:tx,styles:ex})
5750
- ai.getOrCreate().withPrefix("nimble").register(ix())
5751
- const nx=ai.tagFor(ox),sx=G`
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`
5752
5834
  <template role="row" aria-selected=${e=>e.ariaSelected}>
5753
5835
  ${Me((e=>e.selectable&&!e.hideSelection),G`
5754
5836
  <span role="gridcell" class="checkbox-container">
@@ -5767,7 +5849,7 @@ const nx=ai.tagFor(ox),sx=G`
5767
5849
  <span ${Re("cellContainer")} class="cell-container">
5768
5850
  ${He((e=>e.columnStates),G`
5769
5851
  ${Me((e=>!e.column.columnHidden),G`
5770
- <${nx}
5852
+ <${lx}
5771
5853
  class="cell"
5772
5854
  :cellState="${e=>e.cellState}"
5773
5855
  :cellViewTemplate="${e=>e.column.columnInternals.cellViewTemplate}"
@@ -5785,13 +5867,13 @@ const nx=ai.tagFor(ox),sx=G`
5785
5867
  slot="cellActionMenu"
5786
5868
  ></slot>
5787
5869
  `)}
5788
- </${nx}>
5870
+ </${lx}>
5789
5871
  `)}
5790
5872
  `)}
5791
5873
  </span>
5792
5874
  </template>
5793
5875
  `
5794
- class rx extends Rt{constructor(){super(...arguments),this.selectable=!1,this.selected=!1,this.hideSelection=!1,this.columns=[],this.nestingLevel=0,this.menuOpen=!1,this.ignoreSelectionChangeEvents=!1}get columnStates(){return this.columns.map(((e,t)=>{const o=e.columnInternals.dataRecordFieldNames
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
5795
5877
  let i
5796
5878
  if(this.hasValidFieldNames(o)&&this.dataRecord){const t=o.map((e=>this.dataRecord[e]))
5797
5879
  i={cellRecord:Object.fromEntries(e.columnInternals.cellRecordFieldNames.map(((e,o)=>[e,t[o]]))),columnConfig:e.columnInternals.columnConfig??{}}}else i={cellRecord:{},columnConfig:{}}
@@ -5799,12 +5881,12 @@ return{column:e,cellState:i,cellIndentLevel:0===t&&this.nestingLevel>0?this.nest
5799
5881
  const t=e.target.checked
5800
5882
  this.selected=t
5801
5883
  const o={oldState:!t,newState:t}
5802
- this.$emit("row-selection-toggle",o)}onCellActionMenuBeforeToggle(e,t){this.currentActionMenuColumn=t,this.emitActionMenuToggleEvent("row-action-menu-beforetoggle",e.detail,t)}onCellActionMenuToggle(e,t){this.menuOpen=e.detail.newState,this.emitActionMenuToggleEvent("row-action-menu-toggle",e.detail,t)}closeOpenActionMenus(){if(this.menuOpen){const e=Array.from(this.cellContainer.children).find((e=>e instanceof ox&&e.menuOpen))
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))
5803
5885
  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}
5804
- this.$emit(e,i)}hasValidFieldNames(e){return e.every((e=>void 0!==e))}selectedChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selected,this.ignoreSelectionChangeEvents=!1)}}e([ne({attribute:"record-id"})],rx.prototype,"recordId",void 0),e([ne({mode:"boolean"})],rx.prototype,"selectable",void 0),e([ne({mode:"boolean"})],rx.prototype,"selected",void 0),e([ne({attribute:"hide-selection",mode:"boolean"})],rx.prototype,"hideSelection",void 0),e([m],rx.prototype,"dataRecord",void 0),e([m],rx.prototype,"columns",void 0),e([m],rx.prototype,"currentActionMenuColumn",void 0),e([m],rx.prototype,"nestingLevel",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],rx.prototype,"menuOpen",void 0),e([m],rx.prototype,"selectionCheckbox",void 0),e([f],rx.prototype,"columnStates",null),e([f],rx.prototype,"ariaSelected",null)
5805
- const ax=rx.compose({baseName:"table-row",template:sx,styles:Jw})
5806
- ai.getOrCreate().withPrefix("nimble").register(ax())
5807
- const lx=ai.tagFor(rx),cx=fe`
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`
5808
5890
  ${xn("grid")}
5809
5891
 
5810
5892
  :host {
@@ -5909,7 +5991,7 @@ const lx=ai.tagFor(rx),cx=fe`
5909
5991
  :host(:hover)::before {
5910
5992
  background-color: ${cs(Un,.1)};
5911
5993
  }
5912
- `)),dx=G`
5994
+ `)),gx=G`
5913
5995
  <template
5914
5996
  role="row"
5915
5997
  @click=${e=>e.onGroupExpandToggle()}
@@ -5945,14 +6027,14 @@ const lx=ai.tagFor(rx),cx=fe`
5945
6027
  </div>
5946
6028
  </template>
5947
6029
  `
5948
- class hx extends Rt{constructor(){super(...arguments),this.nestingLevel=0,this.expanded=!1,this.selectable=!1,this.selectionState=Hw,this.animationClass="",this.ignoreSelectionChangeEvents=!1,this.removeAnimatingClass=()=>{this.animationClass="",this.expandIcon.removeEventListener("transitionend",this.removeAnimatingClass)}}onGroupExpandToggle(){this.$emit("group-expand-toggle"),this.animationClass="animating",this.expandIcon.addEventListener("transitionend",this.removeAnimatingClass)}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
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
5949
6031
  const t=e.target.checked
5950
- this.selectionState=t?Pw:Hw
6032
+ this.selectionState=t?zw:Lw
5951
6033
  const o={oldState:!t,newState:t}
5952
- this.$emit("group-selection-toggle",o)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===Pw,this.selectionCheckbox.indeterminate=this.selectionState===Tw,this.ignoreSelectionChangeEvents=!1)}}e([m],hx.prototype,"groupRowValue",void 0),e([m],hx.prototype,"nestingLevel",void 0),e([m],hx.prototype,"leafItemCount",void 0),e([m],hx.prototype,"groupColumn",void 0),e([ne({mode:"boolean"})],hx.prototype,"expanded",void 0),e([ne({mode:"boolean"})],hx.prototype,"selectable",void 0),e([ne({attribute:"selection-state"})],hx.prototype,"selectionState",void 0),e([m],hx.prototype,"selectionCheckbox",void 0),e([m],hx.prototype,"animationClass",void 0)
5953
- const ux=hx.compose({baseName:"table-group-row",template:dx,styles:cx})
5954
- ai.getOrCreate().withPrefix("nimble").register(ux())
5955
- const px=ai.tagFor(hx),gx=G`
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`
5956
6038
  <template
5957
6039
  role="grid"
5958
6040
  aria-multiselectable="${e=>e.ariaMultiSelectable}"
@@ -5968,7 +6050,7 @@ const px=ai.tagFor(hx),gx=G`
5968
6050
  ">
5969
6051
  <div role="rowgroup" class="header-container">
5970
6052
  <div class="header-row" role="row">
5971
- ${Me((e=>e.selectionMode===Vw.multiple),G`
6053
+ ${Me((e=>e.selectionMode===Dw.multiple),G`
5972
6054
  <span role="columnheader" class="checkbox-container">
5973
6055
  <${sg}
5974
6056
  ${Re("selectionCheckbox")}
@@ -5993,15 +6075,15 @@ const px=ai.tagFor(hx),gx=G`
5993
6075
  <span class="column-header-container">
5994
6076
  ${He((e=>e.columns),G`
5995
6077
  ${Me((e=>!e.columnHidden),G`
5996
- <${Qw}
6078
+ <${ox}
5997
6079
  class="header"
5998
- sort-direction="${e=>"number"==typeof e.columnInternals.currentSortIndex?e.columnInternals.currentSortDirection:Fw.none}"
6080
+ sort-direction="${e=>"number"==typeof e.columnInternals.currentSortIndex?e.columnInternals.currentSortDirection:Tw.none}"
5999
6081
  ?first-sorted-column="${(e,t)=>e===t.parent.firstSortedColumn}"
6000
6082
  @click="${(e,t)=>t.parent.toggleColumnSort(e,t.event.shiftKey)}"
6001
6083
  :isGrouped=${e=>"number"==typeof e.columnInternals.groupIndex&&!e.columnInternals.groupingDisabled}
6002
6084
  >
6003
6085
  <slot name="${e=>e.slot}"></slot>
6004
- </${Qw}>
6086
+ </${ox}>
6005
6087
  `)}
6006
6088
  `)}
6007
6089
  <div class="header-scrollbar-spacer"></div>
@@ -6010,32 +6092,32 @@ const px=ai.tagFor(hx),gx=G`
6010
6092
  </div>
6011
6093
  <div class="table-viewport" ${Re("viewport")}>
6012
6094
  <div class="table-scroll"></div>
6013
- <div class="table-row-container" ${Be({property:"rowElements",filter:Pe(lx)})}
6095
+ <div class="table-row-container" ${Be({property:"rowElements",filter:Pe(ux)})}
6014
6096
  role="rowgroup">
6015
6097
  ${Me((e=>e.columns.length>0&&e.canRenderRows),G`
6016
6098
  ${He((e=>e.virtualizer.visibleItems),G`
6017
6099
  ${Me(((e,t)=>t.parent.tableData[e.index]?.isGrouped),G`
6018
- <${px}
6100
+ <${fx}
6019
6101
  class="group-row"
6020
6102
  :groupRowValue="${(e,t)=>t.parent.tableData[e.index]?.groupRowValue}"
6021
6103
  ?expanded="${(e,t)=>t.parent.tableData[e.index]?.isExpanded}"
6022
6104
  :nestingLevel="${(e,t)=>t.parent.tableData[e.index]?.nestingLevel}"
6023
6105
  :leafItemCount="${(e,t)=>t.parent.tableData[e.index]?.leafItemCount}"
6024
6106
  :groupColumn="${(e,t)=>t.parent.tableData[e.index]?.groupColumn}"
6025
- ?selectable="${(e,t)=>t.parent.selectionMode===Vw.multiple}"
6107
+ ?selectable="${(e,t)=>t.parent.selectionMode===Dw.multiple}"
6026
6108
  selection-state="${(e,t)=>t.parent.tableData[e.index]?.selectionState}"
6027
6109
  @group-selection-toggle="${(e,t)=>t.parent.onRowSelectionToggle(e.index,t.event)}"
6028
6110
  @group-expand-toggle="${(e,t)=>t.parent.handleGroupRowExpanded(e.index,t.event)}"
6029
6111
  >
6030
- </${px}>
6112
+ </${fx}>
6031
6113
  `)}
6032
6114
  ${Me(((e,t)=>!t.parent.tableData[e.index]?.isGrouped),G`
6033
- <${lx}
6115
+ <${ux}
6034
6116
  class="row"
6035
6117
  record-id="${(e,t)=>t.parent.tableData[e.index]?.id}"
6036
- ?selectable="${(e,t)=>t.parent.selectionMode!==Vw.none}"
6037
- ?selected="${(e,t)=>t.parent.tableData[e.index]?.selectionState===Pw}"
6038
- ?hide-selection="${(e,t)=>t.parent.selectionMode!==Vw.multiple}"
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}"
6039
6121
  :dataRecord="${(e,t)=>t.parent.tableData[e.index]?.record}"
6040
6122
  :columns="${(e,t)=>t.parent.columns}"
6041
6123
  :nestingLevel="${(e,t)=>t.parent.tableData[e.index]?.nestingLevel}"
@@ -6052,7 +6134,7 @@ const px=ai.tagFor(hx),gx=G`
6052
6134
  </slot>
6053
6135
  `)}
6054
6136
  `)}
6055
- </${lx}>
6137
+ </${ux}>
6056
6138
  `)}
6057
6139
  `)}
6058
6140
  `)}
@@ -6071,8 +6153,8 @@ const px=ai.tagFor(hx),gx=G`
6071
6153
  *
6072
6154
  * @license MIT
6073
6155
  */
6074
- function vx(){return vx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]
6075
- for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},vx.apply(this,arguments)}
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)}
6076
6158
  /**
6077
6159
  * virtual-core
6078
6160
  *
@@ -6082,42 +6164,42 @@ for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},
6082
6164
  * LICENSE.md file in the root directory of this source tree.
6083
6165
  *
6084
6166
  * @license MIT
6085
- */function mx(e,t,o){var i,n,s=null!=(i=o.initialDeps)?i:[]
6167
+ */function xx(e,t,o){var i,n,s=null!=(i=o.initialDeps)?i:[]
6086
6168
  return function(){var i
6087
6169
  o.key&&null!=o.debug&&o.debug()&&(i=Date.now())
6088
6170
  var r,a=e()
6089
6171
  if(!(a.length!==s.length||a.some((function(e,t){return s[t]!==e}))))return n
6090
6172
  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
6091
6173
  return e}
6092
- console.info("%c⏱ "+h(c,5)+" /"+h(l,5)+" ms","\n font-size: .6rem;\n font-weight: bold;\n color: hsl("+Math.max(0,Math.min(120-120*d,120))+"deg 100% 31%);",null==o?void 0:o.key)}return null==o||null==o.onChange||o.onChange(n),n}}var fx,bx=function(e){return e},wx=function(e){for(var t=Math.max(e.startIndex-e.overscan,0),o=Math.min(e.endIndex+e.overscan,e.count-1),i=[],n=t;n<=o;n++)i.push(n)
6093
- return i},xx=function(e,t){var o=new ResizeObserver((function(e){var o=e[0]
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]
6094
6176
  if(o){var i=o.contentRect,n=i.width,s=i.height
6095
6177
  t({width:Math.round(n),height:Math.round(s)})}else t({width:0,height:0})}))
6096
- if(e.scrollElement)return t(e.scrollElement.getBoundingClientRect()),o.observe(e.scrollElement),function(){o.unobserve(e.scrollElement)}},yx={element:["scrollLeft","scrollTop"],window:["scrollX","scrollY"]},$x=(fx="element",function(e,t){if(e.scrollElement){var o=yx[fx][0],i=yx[fx][1],n=e.scrollElement[o],s=e.scrollElement[i],r=function(){var n=e.scrollElement[e.options.horizontal?o:i]
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]
6097
6179
  t(n)}
6098
6180
  r()
6099
6181
  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}
6100
- return e.scrollElement.addEventListener("scroll",a,{capture:!1,passive:!0}),function(){e.scrollElement.removeEventListener("scroll",a)}}}),Cx=function(e,t){return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},kx=function(e,t,o){var i,n,s=t.adjustments,r=void 0===s?0:s,a=t.behavior,l=e+r
6101
- null==(i=o.scrollElement)||null==i.scrollTo||i.scrollTo(((n={})[o.options.horizontal?"left":"top"]=l,n.behavior=a,n))},Sx=function(e){var t,o=this
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
6102
6184
  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]
6103
- void 0===t[1]&&delete e[o]})),o.options=vx({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:bx,rangeExtractor:wx,onChange:function(){},measureElement:Cx,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[]},e)},this.notify=function(){null==o.options.onChange||o.options.onChange(o)},this.cleanup=function(){o.unsubs.filter(Boolean).forEach((function(e){return e()})),o.unsubs=[],o.scrollElement=null},this._didMount=function(){var e=o.getResizeObserver()
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()
6104
6186
  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()
6105
- o.scrollElement!==e&&(o.cleanup(),o.scrollElement=e,o._scrollToOffset(o.scrollOffset,{adjustments:void 0,behavior:void 0}),o.unsubs.push(o.options.observeElementRect(o,(function(e){o.scrollRect=e,o.maybeNotify()}))),o.unsubs.push(o.options.observeElementOffset(o,(function(e){o.scrollAdjustments=0,o.scrollOffset!==e&&(null!==o.isScrollingTimeoutId&&(clearTimeout(o.isScrollingTimeoutId),o.isScrollingTimeoutId=null),o.isScrolling=!0,o.scrollDirection=o.scrollOffset<e?"forward":"backward",o.scrollOffset=e,o.maybeNotify(),o.isScrollingTimeoutId=setTimeout((function(){o.isScrollingTimeoutId=null,o.isScrolling=!1,o.scrollDirection=null,o.maybeNotify()}),o.options.scrollingDelay))}))))},this.getSize=function(){return o.scrollRect[o.options.horizontal?"width":"height"]},this.getMeasurements=mx((function(){return[o.options.count,o.options.paddingStart,o.options.scrollMargin,o.options.getItemKey,o.itemSizeCache]}),(function(e,t,i,n,s){var r=o.pendingMeasuredCacheIndexes.length>0?Math.min.apply(Math,o.pendingMeasuredCacheIndexes):0
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
6106
6188
  o.pendingMeasuredCacheIndexes=[]
6107
6189
  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
6108
- a[l]={index:l,start:h,size:u,end:p,key:c}}return o.measurementsCache=a,a}),{key:!1,debug:function(){return o.options.debug}}),this.calculateRange=mx((function(){return[o.getMeasurements(),o.getSize(),o.scrollOffset]}),(function(e,t,i){return o.range=function(e){var t=e.measurements,o=e.outerSize,i=e.scrollOffset,n=t.length-1,s=function(e){return t[e].start},r=function(e,t,o,i){for(;e<=t;){var n=(e+t)/2|0,s=o(n)
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)
6109
6191
  if(s<i)e=n+1
6110
6192
  else{if(!(s>i))return n
6111
6193
  t=n-1}}return e>0?e-1:0}(0,n,s,i),a=r
6112
6194
  for(;a<n&&t[a].end<i+o;)a++
6113
- return{startIndex:r,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:i})}),{key:!1,debug:function(){return o.options.debug}}),this.maybeNotify=mx((function(){return[].concat(Object.values(o.calculateRange()),[o.isScrolling])}),(function(){o.notify()}),{key:!1,debug:function(){return o.options.debug},initialDeps:[].concat(Object.values(this.range),[this.isScrolling])}),this.getIndexes=mx((function(){return[o.options.rangeExtractor,o.calculateRange(),o.options.overscan,o.options.count]}),(function(e,t,o,i){return e(vx({},t,{overscan:o,count:i}))}),{key:!1,debug:function(){return o.options.debug}}),this.indexFromElement=function(e){var t=o.options.indexAttribute,i=e.getAttribute(t)
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)
6114
6196
  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]
6115
6197
  if(s){var r=o.measureElementCache[s.key],a=o.getResizeObserver()
6116
6198
  if(!e.isConnected)return null==a||a.unobserve(e),void(e===r&&delete o.measureElementCache[s.key])
6117
6199
  if(r!==e)r&&(null==a||a.unobserve(r)),null==a||a.observe(e),o.measureElementCache[s.key]=e
6118
6200
  else if(!t&&!r.__virtualizerSkipFirstNotSync)return void(r.__virtualizerSkipFirstNotSync=!0)
6119
6201
  var l,c=o.options.measureElement(e,o),d=c-(null!=(i=o.itemSizeCache[s.key])?i:s.size)
6120
- if(0!==d)s.start<o.scrollOffset&&o._scrollToOffset(o.scrollOffset,{adjustments:o.scrollAdjustments+=d,behavior:void 0}),o.pendingMeasuredCacheIndexes.push(n),o.itemSizeCache=vx({},o.itemSizeCache,((l={})[s.key]=c,l)),o.notify()}},this.measureElement=function(e){e&&o._measureElement(e,!0)},this.getVirtualItems=mx((function(){return[o.getIndexes(),o.getMeasurements()]}),(function(e,t){for(var o=[],i=0,n=e.length;i<n;i++){var s=t[e[i]]
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]]
6121
6203
  o.push(s)}return o}),{key:!1,debug:function(){return o.options.debug}}),this.getOffsetForAlignment=function(e,t){var i=o.getSize()
6122
6204
  "auto"===t&&(t=e<=o.scrollOffset?"start":e>=o.scrollOffset+i?"end":"start"),"start"===t||("end"===t?e-=i:"center"===t&&(e-=i/2))
6123
6205
  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()
@@ -6147,25 +6229,25 @@ o.options.scrollToFn(e,{behavior:n,adjustments:i},o)},this.measure=function(){o.
6147
6229
  * LICENSE.md file in the root directory of this source tree.
6148
6230
  *
6149
6231
  * @license MIT
6150
- */class _x{constructor(e,t){this.visibleItems=[],this.allRowsHeight=0,this.headerContainerMarginRight=0,this.rowContainerYOffset=0,this.table=e,this.tanStackTable=t,this.viewportResizeObserver=new ResizeObserver((e=>{const t=e[0]?.borderBoxSize[0]
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]
6151
6233
  if(t){const e=t.inlineSize
6152
6234
  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()
6153
- this.virtualizer?this.virtualizer.setOptions(e):this.virtualizer=new Sx(e),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const e=parseFloat(sa.getValueFor(this.table))+2*parseFloat(ca.getValueFor(this.table))
6154
- return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:t=>e,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:kx,observeElementOffset:$x,observeElementRect:xx,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){this.notifyFocusedCellRecycling()
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()
6155
6237
  const e=this.virtualizer
6156
6238
  this.visibleItems=e.getVirtualItems(),this.allRowsHeight=e.getTotalSize()
6157
6239
  let t=0
6158
6240
  if(this.visibleItems.length>0){t=this.visibleItems[0].start}this.rowContainerYOffset=t}notifyFocusedCellRecycling(){let e=this.table.shadowRoot.activeElement
6159
- for(;null!==e&&!(e instanceof Nw)&&e.shadowRoot;)e=e.shadowRoot.activeElement
6160
- if(e instanceof Nw&&e.focusedRecycleCallback(),void 0!==this.table.openActionMenuRecordId){this.table.rowElements.find((e=>e.recordId===this.table.openActionMenuRecordId))?.closeOpenActionMenus()}}}function Ix(e){switch(e){case Dw:return Rw.basic
6161
- case Lw:return Rx
6162
- default:return Rw.basic}}function Rx(e,t,o){const i=e.getValue(o),n=t.getValue(o)
6163
- return"string"==typeof i&&"string"==typeof n?i.localeCompare(n):i===n?0:void 0===i||null===i&&void 0!==n?-1:1}e([m],_x.prototype,"visibleItems",void 0),e([m],_x.prototype,"allRowsHeight",void 0),e([m],_x.prototype,"headerContainerMarginRight",void 0),e([m],_x.prototype,"rowContainerYOffset",void 0)
6164
- class Mx{constructor(e){this.trackedItems={},this.trackedItems=e.reduce(((e,t)=>({...e,[t]:!1})),this.trackedItems)}getTrackedItems(){return{...this.trackedItems}}isTracked(e){return this.trackedItems[e]}track(e){this.trackedItems[e]=!0}untrack(e){this.trackedItems[e]=!1}trackAll(){this.setAllKeys(!0)}untrackAll(){this.setAllKeys(!1)}allTracked(){return Object.values(this.trackedItems).every((e=>e))}anyTracked(){return Object.values(this.trackedItems).some((e=>e))}noneTracked(){return Object.values(this.trackedItems).every((e=>!e))}setAllKeys(e){this.trackedItems=Object.keys(this.trackedItems).reduce(((t,o)=>({...t,[o]:e})),this.trackedItems)}}class Ax extends Mx{}const Ex=(e,...t)=>{for(const o of t)if(e===o)return!0
6165
- return!1},Ox=(e,...t)=>{for(const o of t)if(e===o)return!0
6166
- return!1},Fx=["rowIds","groupRows","columnIds","columnSort","columnWidths","columnDefinition","actionMenuSlots","selectionMode"]
6167
- class Vx extends Ax{constructor(e){super(Fx),this.table=e,this.updateQueued=!1}get updateRowIds(){return this.isTracked("rowIds")}get updateGroupRows(){return this.isTracked("groupRows")}get updateColumnIds(){return this.isTracked("columnIds")}get updateColumnSort(){return this.isTracked("columnSort")}get updateColumnWidths(){return this.isTracked("columnWidths")}get updateColumnDefinition(){return this.isTracked("columnDefinition")}get updateActionMenuSlots(){return this.isTracked("actionMenuSlots")}get updateSelectionMode(){return this.isTracked("selectionMode")}get requiresTanStackUpdate(){return this.isTracked("rowIds")||this.isTracked("columnSort")||this.isTracked("columnDefinition")||this.isTracked("groupRows")||this.isTracked("selectionMode")}get requiresTanStackDataReset(){return this.isTracked("rowIds")||this.isTracked("columnDefinition")}trackAllStateChanged(){this.trackAll(),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(e){Ex(e,"columnId")?this.track("columnIds"):Ox(e,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):Ex(e,"sortingDisabled")||Ox(e,"currentSortDirection","currentSortIndex")?this.track("columnSort"):Ex(e,"columnHidden")||Ox(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth")?this.track("columnWidths"):Ex(e,"actionMenuSlot")?this.track("actionMenuSlots"):Ox(e,"groupIndex","groupingDisabled")&&this.track("groupRows"),this.queueUpdate()}trackColumnInstancesChanged(){this.track("columnIds"),this.track("columnDefinition"),this.track("columnSort"),this.track("columnWidths"),this.track("actionMenuSlots"),this.track("groupRows"),this.queueUpdate()}trackIdFieldNameChanged(){this.track("rowIds"),this.queueUpdate()}trackSelectionModeChanged(){this.track("selectionMode"),this.queueUpdate()}queueUpdate(){this.table.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.table.update(),this.untrackAll(),this.updateQueued=!1}))))}}class Hx{static getGridTemplateColumns(e){return e?.filter((e=>!e.columnHidden)).map((e=>{const{minPixelWidth:t,currentPixelWidth:o,currentFractionalWidth:i}=e.columnInternals
6168
- if(o){return`${Math.max(t,o)}px`}return`minmax(${t}px, ${i}fr)`})).join(" ")}}class Px{constructor(e){this.tanStackTable=e}reset(){}toggleIsRowSelected(e,t){e.isGrouped&&e.selectionState===Pw?this.deselectAllLeafRows(e.id):this.tanStackTable.getRow(e.id).toggleSelected(t)}selectSingleRow(e){if(e.isGrouped)throw new Error("function not intended to select grouped rows")
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")
6169
6251
  const t=this.tanStackTable.getState().rowSelection,o=[]
6170
6252
  if(Object.entries(t).forEach((([e,t])=>{t&&o.push(e)})),1===o.length&&o[0]===e.id)return!1
6171
6253
  const i={}
@@ -6175,7 +6257,7 @@ this.tanStackTable.setRowSelection(i)}getAllLeafRowIds(e){const t=this.tanStackT
6175
6257
  return t?.getIsGrouped()?t.getLeafRows().filter((e=>0===e.getLeafRows().length)).map((e=>e.id)):[]}getAllOrderedRows(){const e=this.tanStackTable.getPreExpandedRowModel().rows
6176
6258
  return this.getOrderedRows(e)}getOrderedRows(e){const t=[]
6177
6259
  for(const o of e)t.push(o),o.subRows?.length&&t.push(...this.getOrderedRows(o.subRows))
6178
- return t}}class Tx extends Px{handleRowSelectionToggle(e,t,o){return!1}handleRowClick(e,t,o){return!1}handleActionMenuOpening(e){return!1}}class Dx extends Px{handleRowSelectionToggle(e,t,o){return o&&this.tryUpdateRangeSelection(e.id)||(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(e,t)),!0}handleRowClick(e,t,o){return o?(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(e),!0):!(!t||!this.tryUpdateRangeSelection(e.id))||(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.selectSingleRow(e))}handleActionMenuOpening(e){return e.selectionState!==Pw&&this.selectSingleRow(e)}reset(){this.shiftSelectStartRowId=void 0,this.previousShiftSelectRowEndId=void 0}tryUpdateRangeSelection(e){if(void 0===this.shiftSelectStartRowId)return!1
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
6179
6261
  const t=this.getAllOrderedRows(),o=this.getRowIndexForId(this.shiftSelectStartRowId,t)
6180
6262
  if(-1===o)return!1
6181
6263
  const i=this.tanStackTable.getState().rowSelection
@@ -6185,20 +6267,20 @@ this.updateSelectionStateForRange(e,o,n,i,!0)}updateSelectionStateForRange(e,t,o
6185
6267
  const s=Math.min(t,o),r=Math.max(t,o)
6186
6268
  for(let t=s;t<=r;t++){const o=i[t]
6187
6269
  o.getIsGrouped()||this.updateSelectionStateForRow(e,o.id,n)}const a=i[o]
6188
- a.getIsGrouped()&&this.getAllLeafRowIds(a.id).forEach((t=>this.updateSelectionStateForRow(e,t,n)))}updateSelectionStateForRow(e,t,o){o?e[t]=!0:delete e[t]}getRowIndexForId(e,t){return e?t.findIndex((t=>t.id===e)):-1}}class Lx extends Px{handleRowSelectionToggle(e,t,o){return this.toggleIsRowSelected(e,t),!0}handleRowClick(e,t,o){return this.selectSingleRow(e)}handleActionMenuOpening(e){return this.handleRowClick(e,!1,!1)}}class zx{constructor(e,t){this.tanStackTable=e,this.selectionManager=this.createSelectionManager(t)}handleRowSelectionToggle(e,t,o){return!!e&&this.selectionManager.handleRowSelectionToggle(e,t,o)}handleRowClick(e,t,o){return!!e&&this.selectionManager.handleRowClick(e,t,o)}handleActionMenuOpening(e){return!!e&&this.selectionManager.handleActionMenuOpening(e)}handleSelectionModeChanged(e){this.selectionManager=this.createSelectionManager(e)}handleSelectionReset(){this.selectionManager.reset()}createSelectionManager(e){switch(e){case Vw.multiple:return new Dx(this.tanStackTable)
6189
- case Vw.single:return new Lx(this.tanStackTable)
6190
- case Vw.none:return new Tx(this.tanStackTable)
6191
- default:throw new Error("unknown selection mode found")}}}class Bx extends Rt{constructor(){super(),this.selectionMode=Vw.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.actionMenuSlots=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=Hw,this.showCollapseAll=!1,this.documentShiftKeyDown=!1,this.tableValidator=new Uw,this.tableUpdateTracker=new Vx(this),this.columnNotifiers=[],this.isInitialized=!1,this.collapsedRows=new Set,this.ignoreSelectionChangeEvents=!1,this.onViewPortScroll=e=>{this.scrollX=e.target.scrollLeft},this.onKeyDown=e=>{e.key===Or&&(this.documentShiftKeyDown=!0)},this.onKeyUp=e=>{e.key===Or&&(this.documentShiftKeyDown=!1)},this.getIsRowExpanded=e=>{if(!e.getIsGrouped())return!1
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
6192
6274
  const t=this.table.options.state.expanded
6193
6275
  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
6194
6276
  this.updateTableOptions({state:{rowSelection:t}})},this.handleExpandedChange=e=>{const t=e instanceof Function?e(this.table.getState().expanded):e
6195
- this.updateTableOptions({state:{expanded:t}})},this.options={data:[],onStateChange:e=>{},onRowSelectionChange:this.handleRowSelectionChange,onExpandedChange:this.handleExpandedChange,getCoreRowModel:e=>Xb((()=>[e.options.data]),(t=>{const o={rows:[],flatRows:[],rowsById:{}},i=function(t,n,s){void 0===n&&(n=0)
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)
6196
6278
  const r=[]
6197
- for(let l=0;l<t.length;l++){const c=Ew(e,e._getRowId(t[l],l,s),t[l],l,n)
6279
+ for(let l=0;l<t.length;l++){const c=Hw(e,e._getRowId(t[l],l,s),t[l],l,n)
6198
6280
  var a
6199
6281
  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}
6200
6282
  return o.rows=i(t),o}),{key:!1,debug:()=>{var t
6201
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>Xb((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,o)=>{if(!o.rows.length||null==t||!t.length)return o
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
6202
6284
  const i=e.getState().sorting,n=[],s=i.filter((t=>{var o
6203
6285
  return null==(o=e.getColumn(t.id))?void 0:o.getCanSort()})),r={}
6204
6286
  s.forEach((t=>{const o=e.getColumn(t.id)
@@ -6211,57 +6293,57 @@ if(o||i)return o&&i?0:o?a.sortUndefined:-a.sortUndefined}let c=a.sortingFn(e,t,n
6211
6293
  if(0!==c)return l&&(c*=-1),a.invertSorting&&(c*=-1),c}return e.index-t.index})),t.forEach((e=>{var t
6212
6294
  n.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))})),t}
6213
6295
  return{rows:a(o.rows),flatRows:n,rowsById:o.rowsById}}),{key:!1,debug:()=>{var t
6214
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getGroupedRowModel:Ow(),getExpandedRowModel:e=>Xb((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,o)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:o?function(e){const t=[],o=e=>{var i
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
6215
6297
  t.push(e),null!=(i=e.subRows)&&i.length&&e.getIsExpanded()&&e.subRows.forEach(o)}
6216
6298
  return e.rows.forEach(o),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}(t):t),{key:!1,debug:()=>{var t
6217
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsRowExpanded:this.getIsRowExpanded,columns:[],state:{rowSelection:{},grouping:[],expanded:!0},enableRowSelection:e=>!e.getIsGrouped(),enableMultiRowSelection:!1,enableSubRowSelection:!1,enableSorting:!0,enableGrouping:!0,renderFallbackValue:null,autoResetAll:!1},this.table=Aw(this.options),this.virtualizer=new _x(this,this.table),this.selectionManager=new zx(this.table,this.selectionMode)}get validity(){return this.tableValidator.getValidity()}async setData(e){await this.processPendingUpdates()
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()
6218
6300
  const t=e.map((e=>({...e}))),o={data:t}
6219
6301
  if(this.validateWithData(t),this.tableValidator.areRecordIdsValid()){const e=await this.getSelectedRecordIds()
6220
6302
  o.state={rowSelection:this.calculateTanStackSelectionState(e)}}this.updateTableOptions(o)}async getSelectedRecordIds(){await this.processPendingUpdates()
6221
6303
  const e=this.options.state.rowSelection
6222
6304
  if(!e)return[]
6223
6305
  const t=[]
6224
- return Object.entries(e).forEach((([e,o])=>{o&&t.push(e)})),t}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==Vw.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(e)}})}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connectedCallback(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0}),document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp)}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnectedCallback(),this.viewport.removeEventListener("scroll",this.onViewPortScroll),document.removeEventListener("keydown",this.onKeyDown),document.removeEventListener("keyup",this.onKeyUp)}checkValidity(){return this.tableValidator.isValid()}handleChange(e,t){(e instanceof jw||e instanceof qw)&&"string"==typeof t&&("validConfiguration"===t?this.tableValidator.validateColumnConfigurations(this.columns):this.tableUpdateTracker.trackColumnPropertyChanged(t))}onRowSelectionToggle(e,t){t.stopImmediatePropagation()
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()
6225
6307
  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
6226
6308
  const o=this.getColumnsParticipatingInSorting().sort(((e,t)=>e.columnInternals.currentSortIndex-t.columnInternals.currentSortIndex)),i=o.indexOf(e),n=i>-1,s=e.columnInternals.currentSortDirection
6227
- let r=Fw.ascending
6228
- n?s===Fw.descending?(o.splice(i,1),r=Fw.none,e.columnInternals.currentSortIndex=void 0):r=Fw.descending:o.push(e),e.columnInternals.currentSortDirection=r
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
6229
6311
  for(let i=0;i<o.length;i++){const n=o[i]
6230
- t?o[i].columnInternals.currentSortIndex=i:n===e?n.columnInternals.currentSortIndex=0:(n.columnInternals.currentSortIndex=void 0,n.columnInternals.currentSortDirection=Fw.none)}this.emitColumnConfigurationChangeEvent()}update(){this.validate(),this.tableUpdateTracker.requiresTanStackUpdate&&this.updateTanStack(),this.tableUpdateTracker.updateActionMenuSlots&&this.updateActionMenuSlots(),this.tableUpdateTracker.updateColumnWidths&&this.updateRowGridColumns(),this.tableUpdateTracker.updateGroupRows&&(this.showCollapseAll=this.getColumnsParticipatingInGrouping().length>0)}get ariaMultiSelectable(){switch(this.selectionMode){case Vw.multiple:return"true"
6231
- case Vw.single:return"false"
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"
6232
6314
  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]
6233
6315
  const o=await this.getActionMenuToggleEventDetail(t)
6234
6316
  this.$emit("action-menu-beforetoggle",o)}async handleRowActionMenuToggleEvent(e){const t=await this.getActionMenuToggleEventDetail(e)
6235
- this.$emit("action-menu-toggle",t),e.detail.newState||(this.openActionMenuRecordId=void 0)}async getActionMenuToggleEventDetail(e){const t=this.selectionMode===Vw.multiple?await this.getSelectedRecordIds():[this.openActionMenuRecordId]
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]
6236
6318
  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()
6237
6319
  for(const e of this.columns){const t=v.getNotifier(e)
6238
6320
  t.subscribe(this),this.columnNotifiers.push(t)
6239
- v.getNotifier(e.columnInternals).subscribe(this),this.columnNotifiers.push(t)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>!e.sortingDisabled&&e.columnInternals.currentSortDirection!==Fw.none&&"number"==typeof e.columnInternals.currentSortIndex))}getColumnsParticipatingInGrouping(){return this.columns.filter((e=>!e.columnInternals.groupingDisabled&&"number"==typeof e.columnInternals.groupIndex))}childItemsChanged(){this.updateColumnsFromChildItems()}async updateColumnsFromChildItems(){const e=this.childItems.map((async e=>e.matches(":not(:defined)")?customElements.whenDefined(e.localName):Promise.resolve()))
6240
- await Promise.all(e),this.columns=this.childItems.filter((e=>e instanceof jw))}updateTanStack(){const e={state:{}}
6241
- this.tableUpdateTracker.updateColumnSort&&(e.state.sorting=this.calculateTanStackSortState()),this.tableUpdateTracker.updateColumnDefinition&&(e.columns=this.calculateTanStackColumns()),this.tableUpdateTracker.updateRowIds&&(e.getRowId=this.calculateTanStackRowIdFunction(),e.state.rowSelection={},this.selectionManager.handleSelectionReset()),this.tableUpdateTracker.updateSelectionMode&&(e.enableMultiRowSelection=this.selectionMode===Vw.multiple,e.enableSubRowSelection=this.selectionMode===Vw.multiple,e.state.rowSelection={},this.selectionManager.handleSelectionModeChanged(this.selectionMode)),this.tableUpdateTracker.requiresTanStackDataReset&&(e.data=[...this.table.options.data]),this.tableUpdateTracker.updateGroupRows&&(e.state.grouping=this.calculateTanStackGroupingState(),e.state.expanded=!0,this.collapsedRows.clear()),this.updateTableOptions(e)}updateActionMenuSlots(){const e=new Set
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
6242
6324
  for(const t of this.columns)t.actionMenuSlot&&e.add(t.actionMenuSlot)
6243
- this.actionMenuSlots=Array.from(e)}updateRowGridColumns(){this.rowGridColumns=Hx.getGridTemplateColumns(this.columns)}validate(){this.tableValidator.validateSelectionMode(this.selectionMode,this.idFieldName),this.tableValidator.validateColumnIds(this.columns.map((e=>e.columnId))),this.tableValidator.validateColumnSortIndices(this.getColumnsParticipatingInSorting().map((e=>e.columnInternals.currentSortIndex))),this.tableValidator.validateColumnGroupIndices(this.getColumnsParticipatingInGrouping().map((e=>e.columnInternals.groupIndex))),this.tableValidator.validateColumnConfigurations(this.columns),this.validateWithData(this.table.options.data)}validateWithData(e){this.tableValidator.validateRecordIds(e,this.idFieldName),this.canRenderRows=this.checkValidity()}emitColumnConfigurationChangeEvent(){const e={columns:this.columns.map((e=>({columnId:e.columnId,sortIndex:e.columnInternals.currentSortIndex??void 0,sortDirection:e.columnInternals.currentSortDirection,groupIndex:e.columnInternals.groupIndex,hidden:e.columnHidden,fractionalWidth:e.columnInternals.currentFractionalWidth,pixelWidth:e.columnInternals.currentPixelWidth})))}
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})))}
6244
6326
  this.$emit("column-configuration-change",e)}async emitSelectionChangeEvent(){const e={selectedRecordIds:await this.getSelectedRecordIds()}
6245
- this.$emit("selection-change",e)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===Pw,this.selectionCheckbox.indeterminate=this.selectionState===Tw,this.ignoreSelectionChangeEvents=!1)}refreshRows(){this.selectionState=this.getTableSelectionState()
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()
6246
6328
  const e=this.table.getRowModel().rows
6247
- this.tableData=e.map((e=>({record:e.original,id:e.id,selectionState:this.getRowSelectionState(e),isGrouped:e.getIsGrouped(),isExpanded:e.getIsExpanded(),groupRowValue:e.getIsGrouped()?e.getValue(e.groupingColumnId):void 0,nestingLevel:e.depth,leafItemCount:e.getLeafRows().filter((e=>0===e.getLeafRows().length)).length,groupColumn:this.getGroupRowColumn(e)}))),this.virtualizer.dataChanged()}getTableSelectionState(){return this.table.getIsAllRowsSelected()?Pw:this.table.getIsSomeRowsSelected()?Tw:Hw}getRowSelectionState(e){return e.getIsGrouped()?this.getGroupedRowSelectionState(e):e.getIsSelected()?Pw:Hw}getGroupedRowSelectionState(e){const t=e.subRows??[]
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??[]
6248
6330
  let o=!1,i=!1
6249
- for(const e of t){if(e.getIsGrouped()){switch(this.getGroupedRowSelectionState(e)){case Hw:i=!0
6331
+ for(const e of t){if(e.getIsGrouped()){switch(this.getGroupedRowSelectionState(e)){case Lw:i=!0
6250
6332
  break
6251
- case Pw:o=!0
6333
+ case zw:o=!0
6252
6334
  break
6253
- default:return Tw}}else e.getIsSelected()?o=!0:i=!0
6254
- if(o&&i)return Tw}return o?Pw:Hw}getGroupRowColumn(e){const t=e.groupingColumnId
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
6255
6337
  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]
6256
6338
  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))
6257
- return this.firstSortedColumn=e.length?e[0]:void 0,e.map((e=>({id:e.columnInternals.uniqueId,desc:e.columnInternals.currentSortDirection===Fw.descending})))}calculateTanStackGroupingState(){return this.getColumnsParticipatingInGrouping().sort(((e,t)=>e.columnInternals.groupIndex-t.columnInternals.groupIndex)).map((e=>e.columnInternals.uniqueId))}calculateTanStackRowIdFunction(){return null===this.idFieldName||void 0===this.idFieldName?void 0:e=>e[this.idFieldName]}calculateTanStackColumns(){return this.columns.map((e=>({id:e.columnInternals.uniqueId,accessorFn:t=>{const o=e.columnInternals.operandDataRecordFieldName
6258
- if("string"==typeof o)return t[o]},sortingFn:Ix(e.columnInternals.sortOperation)})))}calculateTanStackSelectionState(e){if(this.selectionMode===Vw.none)return{}
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{}
6259
6341
  const t={},o=this.tableValidator.getPresentRecordIds(e)
6260
- for(const e of o)if(t[e]=!0,this.selectionMode===Vw.single)break
6261
- return t}}e([ne({attribute:"id-field-name"})],Bx.prototype,"idFieldName",void 0),e([ne({attribute:"selection-mode"})],Bx.prototype,"selectionMode",void 0),e([m],Bx.prototype,"tableData",void 0),e([m],Bx.prototype,"columns",void 0),e([m],Bx.prototype,"childItems",void 0),e([m],Bx.prototype,"rowElements",void 0),e([m],Bx.prototype,"actionMenuSlots",void 0),e([m],Bx.prototype,"openActionMenuRecordId",void 0),e([m],Bx.prototype,"canRenderRows",void 0),e([m],Bx.prototype,"scrollX",void 0),e([m],Bx.prototype,"rowGridColumns",void 0),e([m],Bx.prototype,"selectionState",void 0),e([m],Bx.prototype,"selectionCheckbox",void 0),e([m],Bx.prototype,"showCollapseAll",void 0),e([m],Bx.prototype,"firstSortedColumn",void 0),e([m],Bx.prototype,"documentShiftKeyDown",void 0)
6262
- const Nx=Bx.compose({baseName:"table",template:gx,styles:Gw})
6263
- ai.getOrCreate().withPrefix("nimble").register(Nx()),ai.tagFor(Bx)
6264
- const Zx=fe`
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`
6265
6347
  :host {
6266
6348
  display: contents;
6267
6349
  }
@@ -6272,11 +6354,11 @@ const Zx=fe`
6272
6354
  text-overflow: ellipsis;
6273
6355
  }
6274
6356
  `
6275
- class qx{constructor(e,t){this.target=e,this.propertyName=t}bind(e){this.source=e,this.setSourceValue(!1),this.mouseOverHandler=()=>{const e=this.target.offsetWidth<this.target.scrollWidth
6276
- this.setSourceValue(e)},this.mouseOutHandler=()=>{this.setSourceValue(!1)},this.target.addEventListener("mouseover",this.mouseOverHandler),this.target.addEventListener("mouseout",this.mouseOutHandler)}unbind(){this.source=void 0,this.target.removeEventListener("mouseover",this.mouseOverHandler),this.target.removeEventListener("mouseout",this.mouseOutHandler)}setSourceValue(e){this.source[this.propertyName]=e}}function jx(e){return new C("nimble-overflow",qx,e)}const Ux=G`
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`
6277
6359
  <template slot="${e=>e.columnInternals.uniqueId}">
6278
6360
  <span
6279
- ${jx("hasOverflow")}
6361
+ ${Kx("hasOverflow")}
6280
6362
  class="header-content"
6281
6363
  title=${e=>e.hasOverflow&&e.headerTextContent?e.headerTextContent:null}
6282
6364
  >
@@ -6284,7 +6366,7 @@ this.setSourceValue(e)},this.mouseOutHandler=()=>{this.setSourceValue(!1)},this.
6284
6366
  </span>
6285
6367
  </template>
6286
6368
  `
6287
- function Gx(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.fractionalWidth?this.columnInternals.fractionalWidth=this.fractionalWidth:this.columnInternals.fractionalWidth=1}minPixelWidthChanged(){"number"==typeof this.minPixelWidth?this.columnInternals.minPixelWidth=this.minPixelWidth:this.columnInternals.minPixelWidth=117}}return ne({attribute:"fractional-width",converter:oe})(t.prototype,"fractionalWidth"),ne({attribute:"min-pixel-width",converter:oe})(t.prototype,"minPixelWidth"),t}function Wx(e){class t extends e{constructor(){super(...arguments),this.groupingDisabled=!1,this.groupIndex=null}groupingDisabledChanged(){this.columnInternals.groupingDisabled=this.groupingDisabled}groupIndexChanged(){"number"==typeof this.groupIndex?this.columnInternals.groupIndex=this.groupIndex:this.columnInternals.groupIndex=void 0}}return ne({attribute:"grouping-disabled",mode:"boolean"})(t.prototype,"groupingDisabled"),ne({attribute:"group-index",converter:oe})(t.prototype,"groupIndex"),t}const Kx=fe`
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`
6288
6370
  :host {
6289
6371
  width: fit-content;
6290
6372
  max-width: 100%;
@@ -6309,14 +6391,14 @@ function Gx(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.
6309
6391
  .placeholder {
6310
6392
  color: ${Nl};
6311
6393
  }
6312
- `,Xx=G`
6394
+ `,ey=G`
6313
6395
  <template
6314
6396
  @click="${(e,t)=>("string"==typeof e.cellRecord.href&&t.event.stopPropagation(),!0)}"
6315
6397
  >
6316
6398
  ${Me((e=>"string"==typeof e.cellRecord.href),G`
6317
6399
  <${Bc}
6318
6400
  ${Re("anchor")}
6319
- ${jx("hasOverflow")}
6401
+ ${Kx("hasOverflow")}
6320
6402
  href="${e=>e.cellRecord.href}"
6321
6403
  hreflang="${e=>e.columnConfig.hreflang}"
6322
6404
  ping="${e=>e.columnConfig.ping}"
@@ -6333,7 +6415,7 @@ function Gx(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.
6333
6415
  </${Bc}>`)}
6334
6416
  ${Me((e=>"string"!=typeof e.cellRecord.href),G`
6335
6417
  <span
6336
- ${jx("hasOverflow")}
6418
+ ${Kx("hasOverflow")}
6337
6419
  class="${e=>"string"==typeof e.cellRecord.label?"":"placeholder"}"
6338
6420
  title=${e=>e.hasOverflow&&e.content?e.content:null}
6339
6421
  >
@@ -6341,20 +6423,20 @@ function Gx(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.
6341
6423
  </span>`)}
6342
6424
  </template>
6343
6425
  `
6344
- class Yx extends Nw{constructor(){super(...arguments),this.hasOverflow=!1}get content(){return"string"==typeof this.cellRecord.label?this.cellRecord.label:"string"==typeof this.cellRecord.href?this.cellRecord.href:this.columnConfig.placeholder}focusedRecycleCallback(){this.anchor?.blur()}}e([m],Yx.prototype,"hasOverflow",void 0),e([f],Yx.prototype,"content",null)
6345
- const Qx=Yx.compose({baseName:"table-column-anchor-cell-view",template:Xx,styles:Kx})
6346
- ai.getOrCreate().withPrefix("nimble").register(Qx())
6347
- const Jx=ai.tagFor(Yx)
6348
- class ey extends zw{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.placeholder="",this.shouldUsePlaceholder=!0}get content(){return this.shouldUsePlaceholder?this.placeholder:this.text}}e([m],ey.prototype,"hasOverflow",void 0),e([m],ey.prototype,"text",void 0),e([m],ey.prototype,"placeholder",void 0),e([m],ey.prototype,"shouldUsePlaceholder",void 0),e([f],ey.prototype,"content",null)
6349
- const ty=G`
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`
6350
6432
  <span
6351
- ${jx("hasOverflow")}
6433
+ ${Kx("hasOverflow")}
6352
6434
  class="${e=>e.shouldUsePlaceholder?"placeholder":""}"
6353
6435
  title="${e=>e.hasOverflow&&e.content?e.content:void 0}"
6354
6436
  >
6355
6437
  ${e=>e.content}
6356
6438
  </span>
6357
- `,oy=fe`
6439
+ `,ry=fe`
6358
6440
  span {
6359
6441
  font: ${Sl};
6360
6442
  color: ${_l};
@@ -6367,22 +6449,22 @@ const ty=G`
6367
6449
  color: ${Nl};
6368
6450
  }
6369
6451
  `
6370
- class iy extends ey{columnConfigChanged(){this.placeholder=this.columnConfig?.placeholder??""}groupHeaderValueChanged(){"string"==typeof this.groupHeaderValue?(this.text=this.groupHeaderValue,this.shouldUsePlaceholder=!1):(this.text="",this.shouldUsePlaceholder=!0)}}const ny=iy.compose({baseName:"table-column-text-group-header",template:ty,styles:oy})
6371
- ai.getOrCreate().withPrefix("nimble").register(ny())
6372
- const sy=ai.tagFor(iy)
6373
- class ry extends(Wx(Gx(jw))){constructor(){super(...arguments),this.underlineHidden=!1}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:Jx,groupHeaderViewTag:sy,delegatedEvents:["click"],sortOperation:Lw}}labelFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName],this.columnInternals.operandDataRecordFieldName=this.labelFieldName}hrefFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName]}placeholderChanged(){this.updateColumnConfig()}appearanceChanged(){this.updateColumnConfig()}underlineHiddenChanged(){this.updateColumnConfig()}hreflangChanged(){this.updateColumnConfig()}pingChanged(){this.updateColumnConfig()}referrerpolicyChanged(){this.updateColumnConfig()}relChanged(){this.updateColumnConfig()}targetChanged(){this.updateColumnConfig()}typeChanged(){this.updateColumnConfig()}downloadChanged(){this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.columnConfig={placeholder:this.placeholder??"",appearance:this.appearance,underlineHidden:this.underlineHidden,hreflang:this.hreflang,ping:this.ping,referrerpolicy:this.referrerpolicy,rel:this.rel,target:this.target,type:this.type,download:this.download}}}e([ne({attribute:"label-field-name"})],ry.prototype,"labelFieldName",void 0),e([ne({attribute:"href-field-name"})],ry.prototype,"hrefFieldName",void 0),e([ne],ry.prototype,"placeholder",void 0),e([ne],ry.prototype,"appearance",void 0),e([ne({attribute:"underline-hidden",mode:"boolean"})],ry.prototype,"underlineHidden",void 0),e([ne],ry.prototype,"hreflang",void 0),e([ne],ry.prototype,"ping",void 0),e([ne],ry.prototype,"referrerpolicy",void 0),e([ne],ry.prototype,"rel",void 0),e([ne],ry.prototype,"target",void 0),e([ne],ry.prototype,"type",void 0),e([ne],ry.prototype,"download",void 0)
6374
- const ay=ry.compose({baseName:"table-column-anchor",template:Ux,styles:Zx})
6375
- ai.getOrCreate().withPrefix("nimble").register(ay()),ai.tagFor(ry)
6376
- class ly extends(Wx(Gx(jw))){fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder??""}}}e([ne({attribute:"field-name"})],ly.prototype,"fieldName",void 0),e([ne],ly.prototype,"placeholder",void 0)
6377
- const cy=G`
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`
6378
6460
  <span
6379
- ${jx("hasOverflow")}
6461
+ ${Kx("hasOverflow")}
6380
6462
  class="${e=>e.shouldUsePlaceholder?"placeholder":""}"
6381
6463
  title=${e=>e.hasOverflow&&e.content?e.content:null}
6382
6464
  >
6383
6465
  ${e=>e.content}
6384
6466
  </span>
6385
- `,dy=fe`
6467
+ `,gy=fe`
6386
6468
  span {
6387
6469
  font: ${Sl};
6388
6470
  color: ${_l};
@@ -6395,13 +6477,13 @@ const cy=G`
6395
6477
  color: ${Nl};
6396
6478
  }
6397
6479
  `
6398
- class hy extends Nw{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.placeholder="",this.shouldUsePlaceholder=!0}get content(){return this.shouldUsePlaceholder?this.placeholder:this.text}}e([m],hy.prototype,"hasOverflow",void 0),e([m],hy.prototype,"text",void 0),e([m],hy.prototype,"placeholder",void 0),e([m],hy.prototype,"shouldUsePlaceholder",void 0),e([f],hy.prototype,"content",null)
6399
- class uy extends hy{columnConfigChanged(){this.placeholder=this.columnConfig.placeholder}cellRecordChanged(){"string"==typeof this.cellRecord.value?(this.text=this.cellRecord.value,this.shouldUsePlaceholder=!1):(this.text="",this.shouldUsePlaceholder=!0)}}const py=uy.compose({baseName:"table-column-text-cell-view",template:cy,styles:dy})
6400
- ai.getOrCreate().withPrefix("nimble").register(py())
6401
- const gy=ai.tagFor(uy)
6402
- class vy extends ly{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:gy,groupHeaderViewTag:sy,delegatedEvents:[],sortOperation:Lw}}}const my=vy.compose({baseName:"table-column-text",template:Ux,styles:Zx})
6403
- ai.getOrCreate().withPrefix("nimble").register(my()),ai.tagFor(vy)
6404
- const fy=fe`
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`
6405
6487
  ${xn("grid")}
6406
6488
 
6407
6489
  :host {
@@ -6425,7 +6507,7 @@ const fy=fe`
6425
6507
  overflow: auto;
6426
6508
  }
6427
6509
  `
6428
- class by extends Gi{constructor(){super(),this.activeindicator=!1}}const wy=by.compose({baseName:"tabs",baseClass:Gi,template:(e,t)=>G`
6510
+ class $y extends Gi{constructor(){super(),this.activeindicator=!1}}const Cy=$y.compose({baseName:"tabs",baseClass:Gi,template:(e,t)=>G`
6429
6511
  <template class="${e=>e.orientation}">
6430
6512
  ${qe(0,t)}
6431
6513
  <div class="tablist" part="tablist" role="tablist">
@@ -6444,9 +6526,9 @@ class by extends Gi{constructor(){super(),this.activeindicator=!1}}const wy=by.c
6444
6526
  <slot name="tabpanel" part="tabpanel" ${Le("tabpanels")}></slot>
6445
6527
  </div>
6446
6528
  </template>
6447
- `,styles:fy})
6448
- ai.getOrCreate().withPrefix("nimble").register(wy()),ai.tagFor(by)
6449
- const xy=fe`
6529
+ `,styles:yy})
6530
+ ai.getOrCreate().withPrefix("nimble").register(Cy()),ai.tagFor($y)
6531
+ const ky=fe`
6450
6532
  ${xn("flex")}
6451
6533
 
6452
6534
  :host {
@@ -6464,15 +6546,15 @@ const xy=fe`
6464
6546
  rgba(${Xr}, 0.3);
6465
6547
  margin: calc(${la} / 4) calc(${la} / 2);
6466
6548
  }
6467
- `,yy=G`
6549
+ `,Sy=G`
6468
6550
  <template slot="end">
6469
6551
  <div class="separator"></div>
6470
6552
  <slot></slot>
6471
6553
  </template>
6472
6554
  `
6473
- class $y extends Rt{}const Cy=$y.compose({baseName:"tabs-toolbar",template:yy,styles:xy})
6474
- ai.getOrCreate().withPrefix("nimble").register(Cy()),ai.tagFor($y)
6475
- const ky="outline",Sy="block",_y=fe`
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`
6476
6558
  ${xn("inline-flex")}
6477
6559
  ${bg}
6478
6560
 
@@ -6612,12 +6694,12 @@ const ky="outline",Sy="block",_y=fe`
6612
6694
  top: calc(${la} / 2);
6613
6695
  right: var(--ni-private-scrollbar-width);
6614
6696
  }
6615
- `.withBehaviors(Uc(ky,fe`
6697
+ `.withBehaviors(Uc(Ry,fe`
6616
6698
  .control {
6617
6699
  border-color: rgba(${Xr}, 0.3);
6618
6700
  background-color: transparent;
6619
6701
  }
6620
- `),Uc(Sy,fe`
6702
+ `),Uc(My,fe`
6621
6703
  .control {
6622
6704
  background-color: rgba(${Xr}, 0.1);
6623
6705
  }
@@ -6635,8 +6717,8 @@ const ky="outline",Sy="block",_y=fe`
6635
6717
  border-bottom-color: ${Yr};
6636
6718
  }
6637
6719
  `))
6638
- class Iy extends Yi{constructor(){super(...arguments),this.appearance=ky,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(e,t){super.valueChanged(e,t),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}e([ne],Iy.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Iy.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Iy.prototype,"errorVisible",void 0),e([m],Iy.prototype,"scrollbarWidth",void 0)
6639
- const Ry=Iy.compose({baseName:"text-area",baseClass:Yi,template:()=>G`
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`
6640
6722
  <label
6641
6723
  part="label"
6642
6724
  for="control"
@@ -6693,9 +6775,9 @@ const Ry=Iy.compose({baseName:"text-area",baseClass:Yi,template:()=>G`
6693
6775
  ></${Ap}>
6694
6776
  ${dg}
6695
6777
  </div>
6696
- `,styles:_y,shadowOptions:{delegatesFocus:!0}})
6697
- ai.getOrCreate().withPrefix("nimble").register(Ry()),ai.tagFor(Iy)
6698
- const My="underline",Ay="outline",Ey="block",Oy="frameless",Fy=fe`
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`
6699
6781
  ${xn("inline-block")}
6700
6782
  ${bg}
6701
6783
 
@@ -6866,12 +6948,12 @@ const My="underline",Ay="outline",Ey="block",Oy="frameless",Fy=fe`
6866
6948
  slot[name='actions']::slotted(*) {
6867
6949
  ${sa.cssCustomProperty}: 24px;
6868
6950
  }
6869
- `.withBehaviors(Uc(My,fe`
6951
+ `.withBehaviors(Uc(Fy,fe`
6870
6952
  .root {
6871
6953
  border-bottom-width: ${ca};
6872
6954
  padding-bottom: 0;
6873
6955
  }
6874
- `),Uc(Ey,fe`
6956
+ `),Uc(Hy,fe`
6875
6957
  .root {
6876
6958
  background-color: rgba(${Xr}, 0.1);
6877
6959
  }
@@ -6899,12 +6981,12 @@ const My="underline",Ay="outline",Ey="block",Oy="frameless",Fy=fe`
6899
6981
  :host([disabled]) .root {
6900
6982
  background-color: rgba(${Xr}, 0.07);
6901
6983
  }
6902
- `),Uc(Ay,fe`
6984
+ `),Uc(Vy,fe`
6903
6985
  .root {
6904
6986
  border-width: ${ca};
6905
6987
  padding: 0;
6906
6988
  }
6907
- `),Uc(Oy,fe`
6989
+ `),Uc(Py,fe`
6908
6990
  .control {
6909
6991
  padding-left: ${ca};
6910
6992
  padding-right: ${ca};
@@ -6922,8 +7004,8 @@ const My="underline",Ay="outline",Ey="block",Oy="frameless",Fy=fe`
6922
7004
  filter: invert(100%);
6923
7005
  }
6924
7006
  `))
6925
- class Vy extends Ii{constructor(){super(...arguments),this.appearance=My,this.errorVisible=!1,this.fullBleed=!1}}e([ne],Vy.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Vy.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Vy.prototype,"errorVisible",void 0),e([ne({attribute:"full-bleed",mode:"boolean"})],Vy.prototype,"fullBleed",void 0)
6926
- const Hy=Vy.compose({baseName:"text-field",baseClass:Ii,template:(e,t)=>G`
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`
6927
7009
  <template
6928
7010
  class="
6929
7011
  ${e=>e.readOnly?"readonly":""}
@@ -6983,7 +7065,7 @@ const Hy=Vy.compose({baseName:"text-field",baseClass:Ii,template:(e,t)=>G`
6983
7065
  ${Ze(0,t)}
6984
7066
  </div>
6985
7067
  </template>
6986
- `,styles:Fy,shadowOptions:{delegatesFocus:!0},end:G`
7068
+ `,styles:Ty,shadowOptions:{delegatesFocus:!0},end:G`
6987
7069
  <${Ap}
6988
7070
  severity="error"
6989
7071
  class="error-icon"
@@ -6993,8 +7075,8 @@ const Hy=Vy.compose({baseName:"text-field",baseClass:Ii,template:(e,t)=>G`
6993
7075
  </span>
6994
7076
  ${dg}
6995
7077
  `})
6996
- ai.getOrCreate().withPrefix("nimble").register(Hy()),ai.tagFor(Vy)
6997
- const Py=fe`
7078
+ ai.getOrCreate().withPrefix("nimble").register(Ly()),ai.tagFor(Dy)
7079
+ const zy=fe`
6998
7080
  .positioning-region {
6999
7081
  display: flex;
7000
7082
  padding: ${aa} ${la};
@@ -7019,7 +7101,7 @@ const Py=fe`
7019
7101
  margin-left: auto;
7020
7102
  }
7021
7103
  `
7022
- class Ty extends Ji{}const Dy=Ty.compose({baseName:"toolbar",baseClass:Ji,template:(e,t)=>G`
7104
+ class By extends Ji{}const Ny=By.compose({baseName:"toolbar",baseClass:Ji,template:(e,t)=>G`
7023
7105
  <template
7024
7106
  aria-label="${e=>e.ariaLabel}"
7025
7107
  aria-labelledby="${e=>e.ariaLabelledby}"
@@ -7040,9 +7122,9 @@ class Ty extends Ji{}const Dy=Ty.compose({baseName:"toolbar",baseClass:Ji,templa
7040
7122
  ${Ze(0,t)}
7041
7123
  </div>
7042
7124
  </template>
7043
- `,styles:Py,shadowOptions:{delegatesFocus:!0}})
7044
- ai.getOrCreate().withPrefix("nimble").register(Dy()),ai.tagFor(Ty)
7045
- const Ly=fe`
7125
+ `,styles:zy,shadowOptions:{delegatesFocus:!0}})
7126
+ ai.getOrCreate().withPrefix("nimble").register(Ny()),ai.tagFor(By)
7127
+ const Zy=fe`
7046
7128
  ${xn("inline-flex")}
7047
7129
 
7048
7130
  :host {
@@ -7127,7 +7209,7 @@ const Ly=fe`
7127
7209
  .status-icon {
7128
7210
  opacity: 0.6;
7129
7211
  }
7130
- `)),zy=G`
7212
+ `)),qy=G`
7131
7213
  ${Me((e=>e.tooltipVisible),G`
7132
7214
  <${md}
7133
7215
  class="anchored-region"
@@ -7160,11 +7242,11 @@ const Ly=fe`
7160
7242
  </${md}>
7161
7243
  `)}
7162
7244
  `
7163
- class By extends mn{constructor(){super(...arguments),this.iconVisible=!1}}e([ne],By.prototype,"severity",void 0),e([ne({attribute:"icon-visible",mode:"boolean"})],By.prototype,"iconVisible",void 0)
7164
- const Ny=By.compose({baseName:"tooltip",baseClass:mn,template:zy,styles:Ly})
7165
- ai.getOrCreate().withPrefix("nimble").register(Ny()),ai.tagFor(By)
7166
- const Zy="group-selected",qy="all",jy="leaves-only",Uy="none"
7167
- class Gy{constructor(e,t,o){this.ltr=e,this.rtl=t,this.source=o,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const Wy=fe`
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`
7168
7250
  ${xn("block")}
7169
7251
 
7170
7252
  :host {
@@ -7180,7 +7262,7 @@ class Gy{constructor(e,t,o){this.ltr=e,this.rtl=t,this.source=o,this.attached=nu
7180
7262
  }
7181
7263
 
7182
7264
  ${""}
7183
- :host([${Zy}])::after {
7265
+ :host([${Gy}])::after {
7184
7266
  background: ${ta};
7185
7267
  border-radius: 0px;
7186
7268
  content: '';
@@ -7202,7 +7284,7 @@ class Gy{constructor(e,t,o){this.ltr=e,this.rtl=t,this.source=o,this.attached=nu
7202
7284
  background: ${Wr};
7203
7285
  }
7204
7286
 
7205
- :host([${Zy}]) .positioning-region:hover {
7287
+ :host([${Gy}]) .positioning-region:hover {
7206
7288
  background: ${Gr};
7207
7289
  }
7208
7290
 
@@ -7313,7 +7395,7 @@ class Gy{constructor(e,t,o){this.ltr=e,this.rtl=t,this.source=o,this.attached=nu
7313
7395
  display: block;
7314
7396
  }
7315
7397
  `.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)
7316
- t&&Dr.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new Gy(this.ltr,this.rtl,e),o=Dr.getValueFor(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)
7317
7399
  Dr.subscribe(t),t.attach(o),this.cache.set(e,t)}}(fe`
7318
7400
  .expand-collapse-button {
7319
7401
  left: var(
@@ -7345,8 +7427,8 @@ Dr.subscribe(t),t.attach(o),this.cache.set(e,t)}}(fe`
7345
7427
  transform: rotate(135deg);
7346
7428
  }
7347
7429
  `))
7348
- class Ky extends bn{constructor(){super(...arguments),this.groupSelected=!1}}e([ne({attribute:"group-selected",mode:"boolean"})],Ky.prototype,"groupSelected",void 0)
7349
- const Xy=Ky.compose({baseName:"tree-item",baseClass:bn,template:(e,t)=>G`
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`
7350
7432
  <template
7351
7433
  role="treeitem"
7352
7434
  slot="${e=>e.isNestedItem()?"item":void 0}"
@@ -7386,9 +7468,9 @@ const Xy=Ky.compose({baseName:"tree-item",baseClass:bn,template:(e,t)=>G`
7386
7468
  </div>
7387
7469
  `)}
7388
7470
  </template>
7389
- `,styles:Wy,expandCollapseGlyph:Ed.data})
7390
- ai.getOrCreate().withPrefix("nimble").register(Xy()),ai.tagFor(Ky)
7391
- const Yy=fe`
7471
+ `,styles:Qy,expandCollapseGlyph:Ed.data})
7472
+ ai.getOrCreate().withPrefix("nimble").register(e$()),ai.tagFor(Jy)
7473
+ const t$=fe`
7392
7474
  ${xn("flex")}
7393
7475
 
7394
7476
  :host {
@@ -7400,7 +7482,7 @@ const Yy=fe`
7400
7482
  :host(${Cn}) {
7401
7483
  outline: none;
7402
7484
  }
7403
- `,Qy=G`
7485
+ `,o$=G`
7404
7486
  <template
7405
7487
  role="tree"
7406
7488
  ${Re("treeView")}
@@ -7414,273 +7496,273 @@ const Yy=fe`
7414
7496
  <slot ${Le("slottedTreeItems")}></slot>
7415
7497
  </template>
7416
7498
  `
7417
- class Jy extends wn{constructor(){super(...arguments),this.selectionMode=qy,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
7499
+ class i$ extends wn{constructor(){super(...arguments),this.selectionMode=Wy,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
7418
7500
  if(!(e.target instanceof Element&&fn(e.target)))return!0
7419
7501
  const t=e.target
7420
- return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case qy:return!0
7421
- case Uy:return!1
7422
- case jy:return!this.itemHasChildren(e)
7423
- default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof Ky&&(e.groupSelected=!1)
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)
7424
7506
  for(let e of this.selectedItems){for(;null!==e.parentElement&&e.parentElement!==this;)e=e.parentElement
7425
- e instanceof Ky&&(e.groupSelected=!0)}}}e([ne({attribute:"selection-mode"})],Jy.prototype,"selectionMode",void 0),e([m],Jy.prototype,"selectedItems",void 0)
7426
- const e$=Jy.compose({baseName:"tree-view",baseClass:wn,template:Qy,styles:Yy})
7427
- ai.getOrCreate().withPrefix("nimble").register(e$()),ai.tagFor(Jy)
7428
- var t$={value:()=>{}}
7429
- function o$(){for(var e,t=0,o=arguments.length,i={};t<o;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e)
7430
- i[e]=[]}return new i$(i)}function i$(e){this._=e}function n$(e,t){return e.trim().split(/^|\s+/).map((function(e){var o="",i=e.indexOf(".")
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(".")
7431
7513
  if(i>=0&&(o=e.slice(i+1),e=e.slice(0,i)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e)
7432
- return{type:e,name:o}}))}function s$(e,t){for(var o,i=0,n=e.length;i<n;++i)if((o=e[i]).name===t)return o.value}function r$(e,t,o){for(var i=0,n=e.length;i<n;++i)if(e[i].name===t){e[i]=t$,e=e.slice(0,i).concat(e.slice(i+1))
7433
- break}return null!=o&&e.push({name:t,value:o}),e}i$.prototype=o$.prototype={constructor:i$,on:function(e,t){var o,i=this._,n=n$(e+"",i),s=-1,r=n.length
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
7434
7516
  if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
7435
- for(;++s<r;)if(o=(e=n[s]).type)i[o]=r$(i[o],e.name,t)
7436
- else if(null==t)for(o in i)i[o]=r$(i[o],e.name,null)
7437
- return this}for(;++s<r;)if((o=(e=n[s]).type)&&(o=s$(i[o],e.name)))return o},copy:function(){var e={},t=this._
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._
7438
7520
  for(var o in t)e[o]=t[o].slice()
7439
- return new i$(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var o,i,n=new Array(o),s=0;s<o;++s)n[s]=arguments[s+2]
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]
7440
7522
  if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
7441
7523
  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)
7442
7524
  for(var i=this._[e],n=0,s=i.length;n<s;++n)i[n].value.apply(t,o)}}
7443
- var a$="http://www.w3.org/1999/xhtml",l$={svg:"http://www.w3.org/2000/svg",xhtml:a$,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
7444
- function c$(e){var t=e+="",o=t.indexOf(":")
7445
- return o>=0&&"xmlns"!==(t=e.slice(0,o))&&(e=e.slice(o+1)),l$.hasOwnProperty(t)?{space:l$[t],local:e}:e}function d$(e){return function(){var t=this.ownerDocument,o=this.namespaceURI
7446
- return o===a$&&t.documentElement.namespaceURI===a$?t.createElement(e):t.createElementNS(o,e)}}function h$(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function u$(e){var t=c$(e)
7447
- return(t.local?h$:d$)(t)}function p$(){}function g$(e){return null==e?p$:function(){return this.querySelector(e)}}function v$(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function m$(){return[]}function f$(e){return null==e?m$:function(){return this.querySelectorAll(e)}}function b$(e){return function(){return this.matches(e)}}function w$(e){return function(t){return t.matches(e)}}var x$=Array.prototype.find
7448
- function y$(){return this.firstElementChild}var $$=Array.prototype.filter
7449
- function C$(){return Array.from(this.children)}function k$(e){return new Array(e.length)}function S$(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function _$(e){return function(){return e}}function I$(e,t,o,i,n,s){for(var r,a=0,l=t.length,c=s.length;a<c;++a)(r=t[a])?(r.__data__=s[a],i[a]=r):o[a]=new S$(e,s[a])
7450
- for(;a<l;++a)(r=t[a])&&(n[a]=r)}function R$(e,t,o,i,n,s,r){var a,l,c,d=new Map,h=t.length,u=s.length,p=new Array(h)
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)
7451
7533
  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))
7452
- for(a=0;a<u;++a)c=r.call(e,s[a],a,s)+"",(l=d.get(c))?(i[a]=l,l.__data__=s[a],d.delete(c)):o[a]=new S$(e,s[a])
7453
- for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(n[a]=l)}function M$(e){return e.__data__}function A$(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function E$(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function O$(e){return function(){this.removeAttribute(e)}}function F$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function V$(e,t){return function(){this.setAttribute(e,t)}}function H$(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function P$(e,t){return function(){var o=t.apply(this,arguments)
7454
- null==o?this.removeAttribute(e):this.setAttribute(e,o)}}function T$(e,t){return function(){var o=t.apply(this,arguments)
7455
- null==o?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,o)}}function D$(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function L$(e){return function(){this.style.removeProperty(e)}}function z$(e,t,o){return function(){this.style.setProperty(e,t,o)}}function B$(e,t,o){return function(){var i=t.apply(this,arguments)
7456
- null==i?this.style.removeProperty(e):this.style.setProperty(e,i,o)}}function N$(e,t){return e.style.getPropertyValue(t)||D$(e).getComputedStyle(e,null).getPropertyValue(t)}function Z$(e){return function(){delete this[e]}}function q$(e,t){return function(){this[e]=t}}function j$(e,t){return function(){var o=t.apply(this,arguments)
7457
- null==o?delete this[e]:this[e]=o}}function U$(e){return e.trim().split(/^|\s+/)}function G$(e){return e.classList||new W$(e)}function W$(e){this._node=e,this._names=U$(e.getAttribute("class")||"")}function K$(e,t){for(var o=G$(e),i=-1,n=t.length;++i<n;)o.add(t[i])}function X$(e,t){for(var o=G$(e),i=-1,n=t.length;++i<n;)o.remove(t[i])}function Y$(e){return function(){K$(this,e)}}function Q$(e){return function(){X$(this,e)}}function J$(e,t){return function(){(t.apply(this,arguments)?K$:X$)(this,e)}}function eC(){this.textContent=""}function tC(e){return function(){this.textContent=e}}function oC(e){return function(){var t=e.apply(this,arguments)
7458
- this.textContent=null==t?"":t}}function iC(){this.innerHTML=""}function nC(e){return function(){this.innerHTML=e}}function sC(e){return function(){var t=e.apply(this,arguments)
7459
- this.innerHTML=null==t?"":t}}function rC(){this.nextSibling&&this.parentNode.appendChild(this)}function aC(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function lC(){return null}function cC(){var e=this.parentNode
7460
- e&&e.removeChild(this)}function dC(){var e=this.cloneNode(!1),t=this.parentNode
7461
- return t?t.insertBefore(e,this.nextSibling):e}function hC(){var e=this.cloneNode(!0),t=this.parentNode
7462
- return t?t.insertBefore(e,this.nextSibling):e}function uC(e){return e.trim().split(/^|\s+/).map((function(e){var t="",o=e.indexOf(".")
7463
- return o>=0&&(t=e.slice(o+1),e=e.slice(0,o)),{type:e,name:t}}))}function pC(e){return function(){var t=this.__on
7464
- if(t){for(var o,i=0,n=-1,s=t.length;i<s;++i)o=t[i],e.type&&o.type!==e.type||o.name!==e.name?t[++n]=o:this.removeEventListener(o.type,o.listener,o.options);++n?t.length=n:delete this.__on}}}function gC(e,t,o){return function(){var i,n=this.__on,s=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
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)
7465
7547
  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)
7466
- this.addEventListener(e.type,s,o),i={type:e.type,name:e.name,value:t,listener:s,options:o},n?n.push(i):this.__on=[i]}}function vC(e,t,o){var i=D$(e),n=i.CustomEvent
7467
- "function"==typeof n?n=new n(t,o):(n=i.document.createEvent("Event"),o?(n.initEvent(t,o.bubbles,o.cancelable),n.detail=o.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function mC(e,t){return function(){return vC(this,e,t)}}function fC(e,t){return function(){return vC(this,e,t.apply(this,arguments))}}S$.prototype={constructor:S$,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},W$.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e)
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)
7468
7550
  t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
7469
- var bC=[null]
7470
- function wC(e,t){this._groups=e,this._parents=t}function xC(){return new wC([[document.documentElement]],bC)}function yC(e){return"string"==typeof e?new wC([[document.querySelector(e)]],[document.documentElement]):new wC([[e]],bC)}function $C(e,t){if(e=function(e){let t
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
7471
7553
  for(;t=e.sourceEvent;)e=t
7472
7554
  return e}(e),void 0===t&&(t=e.currentTarget),t){var o=t.ownerSVGElement||t
7473
7555
  if(o.createSVGPoint){var i=o.createSVGPoint()
7474
7556
  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()
7475
- return[e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop]}}return[e.pageX,e.pageY]}wC.prototype=xC.prototype={constructor:wC,select:function(e){"function"!=typeof e&&(e=g$(e))
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))
7476
7558
  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)
7477
- return new wC(i,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return v$(e.apply(this,arguments))}}(e):f$(e)
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)
7478
7560
  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))
7479
- return new wC(i,n)},selectChild:function(e){return this.select(null==e?y$:function(e){return function(){return x$.call(this.children,e)}}("function"==typeof e?e:w$(e)))},selectChildren:function(e){return this.selectAll(null==e?C$:function(e){return function(){return $$.call(this.children,e)}}("function"==typeof e?e:w$(e)))},filter:function(e){"function"!=typeof e&&(e=b$(e))
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))
7480
7562
  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)
7481
- return new wC(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,M$)
7482
- var o=t?R$:I$,i=this._parents,n=this._groups
7483
- "function"!=typeof e&&(e=_$(e))
7484
- for(var s=n.length,r=new Array(s),a=new Array(s),l=new Array(s),c=0;c<s;++c){var d=i[c],h=n[c],u=h.length,p=A$(e.call(d,d&&d.__data__,c,i)),g=p.length,v=a[c]=new Array(g),m=r[c]=new Array(g),f=l[c]=new Array(u)
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)
7485
7567
  o(d,h,v,m,f,p,t)
7486
- for(var b,w,x=0,y=0;x<g;++x)if(b=v[x]){for(x>=y&&(y=x+1);!(w=m[y])&&++y<g;);b._next=w||null}}return(r=new wC(r,i))._enter=a,r._exit=l,r},enter:function(){return new wC(this._enter||this._groups.map(k$),this._parents)},exit:function(){return new wC(this._exit||this._groups.map(k$),this._parents)},join:function(e,t,o){var i=this.enter(),n=this,s=this.exit()
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()
7487
7569
  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)
7488
7570
  for(;l<n;++l)a[l]=o[l]
7489
- return new wC(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,o=e.length;++t<o;)for(var i,n=e[t],s=n.length-1,r=n[s];--s>=0;)(i=n[s])&&(r&&4^i.compareDocumentPosition(r)&&r.parentNode.insertBefore(i,r),r=i)
7490
- return this},sort:function(e){function t(t,o){return t&&o?e(t.__data__,o.__data__):!t-!o}e||(e=E$)
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$)
7491
7573
  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)
7492
- c.sort(t)}return new wC(n,this._parents).order()},call:function(){var e=arguments[0]
7574
+ c.sort(t)}return new CC(n,this._parents).order()},call:function(){var e=arguments[0]
7493
7575
  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]
7494
7576
  if(r)return r}return null},size:function(){let e=0
7495
7577
  for(const t of this)++e
7496
7578
  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)
7497
- return this},attr:function(e,t){var o=c$(e)
7579
+ return this},attr:function(e,t){var o=p$(e)
7498
7580
  if(arguments.length<2){var i=this.node()
7499
- return o.local?i.getAttributeNS(o.space,o.local):i.getAttribute(o)}return this.each((null==t?o.local?F$:O$:"function"==typeof t?o.local?T$:P$:o.local?H$:V$)(o,t))},style:function(e,t,o){return arguments.length>1?this.each((null==t?L$:"function"==typeof t?B$:z$)(e,t,null==o?"":o)):N$(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Z$:"function"==typeof t?j$:q$)(e,t)):this.node()[e]},classed:function(e,t){var o=U$(e+"")
7500
- if(arguments.length<2){for(var i=G$(this.node()),n=-1,s=o.length;++n<s;)if(!i.contains(o[n]))return!1
7501
- return!0}return this.each(("function"==typeof t?J$:t?Y$:Q$)(o,t))},text:function(e){return arguments.length?this.each(null==e?eC:("function"==typeof e?oC:tC)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?iC:("function"==typeof e?sC:nC)(e)):this.node().innerHTML},raise:function(){return this.each(rC)},lower:function(){return this.each(aC)},append:function(e){var t="function"==typeof e?e:u$(e)
7502
- return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var o="function"==typeof e?e:u$(e),i=null==t?lC:"function"==typeof t?t:g$(t)
7503
- return this.select((function(){return this.insertBefore(o.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(cC)},clone:function(e){return this.select(e?hC:dC)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,o){var i,n,s=uC(e+""),r=s.length
7504
- if(!(arguments.length<2)){for(a=t?gC:pC,i=0;i<r;++i)this.each(a(s[i],t,o))
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))
7505
7587
  return this}var a=this.node().__on
7506
- if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<r;++i)if((n=s[i]).type===l.type&&n.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?fC:mC)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,o=e.length;t<o;++t)for(var i,n=e[t],s=0,r=n.length;s<r;++s)(i=n[s])&&(yield i)}}
7507
- const CC={capture:!0,passive:!1}
7508
- function kC(e){e.preventDefault(),e.stopImmediatePropagation()}function SC(e){var t=e.document.documentElement,o=yC(e).on("dragstart.drag",kC,CC)
7509
- "onselectstart"in t?o.on("selectstart.drag",kC,CC):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function _C(e,t){var o=e.document.documentElement,i=yC(e).on("dragstart.drag",null)
7510
- t&&(i.on("click.drag",kC,CC),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in o?i.on("selectstart.drag",null):(o.style.MozUserSelect=o.__noselect,delete o.__noselect)}function IC(e,t,o){e.prototype=t.prototype=o,o.constructor=e}function RC(e,t){var o=Object.create(e.prototype)
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)
7511
7593
  for(var i in t)o[i]=t[i]
7512
- return o}function MC(){}var AC=.7,EC=1/AC,OC="\\s*([+-]?\\d+)\\s*",FC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",VC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",HC=/^#([0-9a-f]{3,8})$/,PC=new RegExp(`^rgb\\(${OC},${OC},${OC}\\)$`),TC=new RegExp(`^rgb\\(${VC},${VC},${VC}\\)$`),DC=new RegExp(`^rgba\\(${OC},${OC},${OC},${FC}\\)$`),LC=new RegExp(`^rgba\\(${VC},${VC},${VC},${FC}\\)$`),zC=new RegExp(`^hsl\\(${FC},${VC},${VC}\\)$`),BC=new RegExp(`^hsla\\(${FC},${VC},${VC},${FC}\\)$`),NC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074}
7513
- function ZC(){return this.rgb().formatHex()}function qC(){return this.rgb().formatRgb()}function jC(e){var t,o
7514
- return e=(e+"").trim().toLowerCase(),(t=HC.exec(e))?(o=t[1].length,t=parseInt(t[1],16),6===o?UC(t):3===o?new XC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===o?GC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===o?GC(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=PC.exec(e))?new XC(t[1],t[2],t[3],1):(t=TC.exec(e))?new XC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=DC.exec(e))?GC(t[1],t[2],t[3],t[4]):(t=LC.exec(e))?GC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=zC.exec(e))?ok(t[1],t[2]/100,t[3]/100,1):(t=BC.exec(e))?ok(t[1],t[2]/100,t[3]/100,t[4]):NC.hasOwnProperty(e)?UC(NC[e]):"transparent"===e?new XC(NaN,NaN,NaN,0):null}function UC(e){return new XC(e>>16&255,e>>8&255,255&e,1)}function GC(e,t,o,i){return i<=0&&(e=t=o=NaN),new XC(e,t,o,i)}function WC(e){return e instanceof MC||(e=jC(e)),e?new XC((e=e.rgb()).r,e.g,e.b,e.opacity):new XC}function KC(e,t,o,i){return 1===arguments.length?WC(e):new XC(e,t,o,null==i?1:i)}function XC(e,t,o,i){this.r=+e,this.g=+t,this.b=+o,this.opacity=+i}function YC(){return`#${tk(this.r)}${tk(this.g)}${tk(this.b)}`}function QC(){const e=JC(this.opacity)
7515
- return`${1===e?"rgb(":"rgba("}${ek(this.r)}, ${ek(this.g)}, ${ek(this.b)}${1===e?")":`, ${e})`}`}function JC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ek(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tk(e){return((e=ek(e))<16?"0":"")+e.toString(16)}function ok(e,t,o,i){return i<=0?e=t=o=NaN:o<=0||o>=1?e=t=NaN:t<=0&&(e=NaN),new nk(e,t,o,i)}function ik(e){if(e instanceof nk)return new nk(e.h,e.s,e.l,e.opacity)
7516
- if(e instanceof MC||(e=jC(e)),!e)return new nk
7517
- if(e instanceof nk)return e
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
7518
7600
  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
7519
- return a?(r=t===s?(o-i)/a+6*(o<i):o===s?(i-t)/a+2:(t-o)/a+4,a/=l<.5?s+n:2-s-n,r*=60):a=l>0&&l<1?0:r,new nk(r,a,l,e.opacity)}function nk(e,t,o,i){this.h=+e,this.s=+t,this.l=+o,this.opacity=+i}function sk(e){return(e=(e||0)%360)<0?e+360:e}function rk(e){return Math.max(0,Math.min(1,e||0))}function ak(e,t,o){return 255*(e<60?t+(o-t)*e/60:e<180?o:e<240?t+(o-t)*(240-e)/60:t)}IC(MC,jC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ZC,formatHex:ZC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ik(this).formatHsl()},formatRgb:qC,toString:qC}),IC(XC,KC,RC(MC,{brighter(e){return e=null==e?EC:Math.pow(EC,e),new XC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?AC:Math.pow(AC,e),new XC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new XC(ek(this.r),ek(this.g),ek(this.b),JC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:YC,formatHex:YC,formatHex8:function(){return`#${tk(this.r)}${tk(this.g)}${tk(this.b)}${tk(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:QC,toString:QC})),IC(nk,(function(e,t,o,i){return 1===arguments.length?ik(e):new nk(e,t,o,null==i?1:i)}),RC(MC,{brighter(e){return e=null==e?EC:Math.pow(EC,e),new nk(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?AC:Math.pow(AC,e),new nk(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,o=this.l,i=o+(o<.5?o:1-o)*t,n=2*o-i
7520
- return new XC(ak(e>=240?e-240:e+120,n,i),ak(e,n,i),ak(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new nk(sk(this.h),rk(this.s),rk(this.l),JC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=JC(this.opacity)
7521
- return`${1===e?"hsl(":"hsla("}${sk(this.h)}, ${100*rk(this.s)}%, ${100*rk(this.l)}%${1===e?")":`, ${e})`}`}}))
7522
- var lk=e=>()=>e
7523
- function ck(e){return 1==(e=+e)?dk:function(t,o){return o-t?function(e,t,o){return e=Math.pow(e,o),t=Math.pow(t,o)-e,o=1/o,function(i){return Math.pow(e+i*t,o)}}(t,o,e):lk(isNaN(t)?o:t)}}function dk(e,t){var o=t-e
7524
- return o?function(e,t){return function(o){return e+o*t}}(e,o):lk(isNaN(e)?t:e)}var hk=function e(t){var o=ck(t)
7525
- function i(e,t){var i=o((e=KC(e)).r,(t=KC(t)).r),n=o(e.g,t.g),s=o(e.b,t.b),r=dk(e.opacity,t.opacity)
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)
7526
7608
  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)
7527
- function uk(e,t){t||(t=[])
7609
+ function mk(e,t){t||(t=[])
7528
7610
  var o,i=e?Math.min(t.length,e.length):0,n=t.slice()
7529
7611
  return function(s){for(o=0;o<i;++o)n[o]=e[o]*(1-s)+t[o]*s
7530
- return n}}function pk(e,t){var o,i=t?t.length:0,n=e?Math.min(i,e.length):0,s=new Array(n),r=new Array(i)
7531
- for(o=0;o<n;++o)s[o]=xk(e[o],t[o])
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])
7532
7614
  for(;o<i;++o)r[o]=t[o]
7533
7615
  return function(e){for(o=0;o<n;++o)r[o]=s[o](e)
7534
- return r}}function gk(e,t){var o=new Date
7535
- return e=+e,t=+t,function(i){return o.setTime(e*(1-i)+t*i),o}}function vk(e,t){return e=+e,t=+t,function(o){return e*(1-o)+t*o}}function mk(e,t){var o,i={},n={}
7536
- for(o in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)o in e?i[o]=xk(e[o],t[o]):n[o]=t[o]
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]
7537
7619
  return function(e){for(o in i)n[o]=i[o](e)
7538
- return n}}var fk=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bk=new RegExp(fk.source,"g")
7539
- function wk(e,t){var o,i,n,s=fk.lastIndex=bk.lastIndex=0,r=-1,a=[],l=[]
7540
- for(e+="",t+="";(o=fk.exec(e))&&(i=bk.exec(t));)(n=i.index)>s&&(n=t.slice(s,n),a[r]?a[r]+=n:a[++r]=n),(o=o[0])===(i=i[0])?a[r]?a[r]+=i:a[++r]=i:(a[++r]=null,l.push({i:r,x:vk(o,i)})),s=bk.lastIndex
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
7541
7623
  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)
7542
- return a.join("")})}function xk(e,t){var o,i,n=typeof t
7543
- return null==t||"boolean"===n?lk(t):("number"===n?vk:"string"===n?(o=jC(t))?(t=o,hk):wk:t instanceof jC?hk:t instanceof Date?gk:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?pk:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?mk:vk:uk))(e,t)}function yk(e,t){return e=+e,t=+t,function(o){return Math.round(e*(1-o)+t*o)}}var $k,Ck=180/Math.PI,kk={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
7544
- function Sk(e,t,o,i,n,s){var r,a,l
7545
- return(r=Math.sqrt(e*e+t*t))&&(e/=r,t/=r),(l=e*o+t*i)&&(o-=e*l,i-=t*l),(a=Math.sqrt(o*o+i*i))&&(o/=a,i/=a,l/=a),e*i<t*o&&(e=-e,t=-t,l=-l,r=-r),{translateX:n,translateY:s,rotate:Math.atan2(t,e)*Ck,skewX:Math.atan(l)*Ck,scaleX:r,scaleY:a}}function _k(e,t,o,i){function n(e){return e.length?e.pop()+" ":""}return function(s,r){var a=[],l=[]
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=[]
7546
7628
  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)
7547
- a.push({i:l-4,x:vk(e,n)},{i:l-2,x:vk(i,s)})}else(n||s)&&r.push("translate("+n+t+s+o)}(s.translateX,s.translateY,r.translateX,r.translateY,a,l),function(e,t,o,s){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),s.push({i:o.push(n(o)+"rotate(",null,i)-2,x:vk(e,t)})):t&&o.push(n(o)+"rotate("+t+i)}(s.rotate,r.rotate,a,l),function(e,t,o,s){e!==t?s.push({i:o.push(n(o)+"skewX(",null,i)-2,x:vk(e,t)}):t&&o.push(n(o)+"skewX("+t+i)}(s.skewX,r.skewX,a,l),function(e,t,o,i,s,r){if(e!==o||t!==i){var a=s.push(n(s)+"scale(",null,",",null,")")
7548
- r.push({i:a-4,x:vk(e,o)},{i:a-2,x:vk(t,i)})}else 1===o&&1===i||s.push(n(s)+"scale("+o+","+i+")")}(s.scaleX,s.scaleY,r.scaleX,r.scaleY,a,l),s=r=null,function(e){for(var t,o=-1,i=l.length;++o<i;)a[(t=l[o]).i]=t.x(e)
7549
- return a.join("")}}}var Ik=_k((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
7550
- return t.isIdentity?kk:Sk(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Rk=_k((function(e){return null==e?kk:($k||($k=document.createElementNS("http://www.w3.org/2000/svg","g")),$k.setAttribute("transform",e),(e=$k.transform.baseVal.consolidate())?Sk((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):kk)}),", ",")",")")
7551
- function Mk(e){return((e=Math.exp(e))+1/e)/2}var Ak,Ek,Ok=function e(t,o,i){function n(e,n){var s,r,a=e[0],l=e[1],c=e[2],d=n[0],h=n[1],u=n[2],p=d-a,g=h-l,v=p*p+g*g
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
7552
7634
  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)]}
7553
7635
  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)
7554
- r=(x-w)/t,s=function(e){var i,n=e*r,s=Mk(w),d=c/(o*m)*(s*(i=t*n+w,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
7555
- return[a+d*p,l+d*g,c*s/Mk(t*n+w)]}}return s.duration=1e3*r*t/Math.SQRT2,s}return n.rho=function(t){var o=Math.max(.001,+t),i=o*o
7556
- return e(o,i,i*i)},n}(Math.SQRT2,2,4),Fk=0,Vk=0,Hk=0,Pk=0,Tk=0,Dk=0,Lk="object"==typeof performance&&performance.now?performance:Date,zk="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
7557
- function Bk(){return Tk||(zk(Nk),Tk=Lk.now()+Dk)}function Nk(){Tk=0}function Zk(){this._call=this._time=this._next=null}function qk(e,t,o){var i=new Zk
7558
- return i.restart(e,t,o),i}function jk(){Tk=(Pk=Lk.now())+Dk,Fk=Vk=0
7559
- try{!function(){Bk(),++Fk
7560
- for(var e,t=Ak;t;)(e=Tk-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Fk}()}finally{Fk=0,function(){var e,t,o=Ak,i=1/0
7561
- for(;o;)o._call?(i>o._time&&(i=o._time),e=o,o=o._next):(t=o._next,o._next=null,o=e?e._next=t:Ak=t)
7562
- Ek=e,Gk(i)}(),Tk=0}}function Uk(){var e=Lk.now(),t=e-Pk
7563
- t>1e3&&(Dk-=t,Pk=e)}function Gk(e){Fk||(Vk&&(Vk=clearTimeout(Vk)),e-Tk>24?(e<1/0&&(Vk=setTimeout(jk,e-Lk.now()-Dk)),Hk&&(Hk=clearInterval(Hk))):(Hk||(Pk=Lk.now(),Hk=setInterval(Uk,1e3)),Fk=1,zk(jk)))}function Wk(e,t,o){var i=new Zk
7564
- return t=null==t?0:+t,i.restart((o=>{i.stop(),e(o+t)}),t,o),i}Zk.prototype=qk.prototype={constructor:Zk,restart:function(e,t,o){if("function"!=typeof e)throw new TypeError("callback is not a function")
7565
- o=(null==o?Bk():+o)+(null==t?0:+t),this._next||Ek===this||(Ek?Ek._next=this:Ak=this,Ek=this),this._call=e,this._time=o,Gk()},stop:function(){this._call&&(this._call=null,this._time=1/0,Gk())}}
7566
- var Kk=o$("start","end","cancel","interrupt"),Xk=[]
7567
- function Yk(e,t,o,i,n,s){var r=e.__transition
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
7568
7650
  if(r){if(o in r)return}else e.__transition={}
7569
7651
  !function(e,t,o){var i,n=e.__transition
7570
7652
  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
7571
7653
  if(1!==o.state)return l()
7572
- for(c in n)if((u=n[c]).name===o.name){if(3===u.state)return Wk(r)
7573
- 4===u.state?(u.state=6,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete n[c]):+c<t&&(u.state=6,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete n[c])}if(Wk((function(){3===o.state&&(o.state=4,o.timer.restart(a,o.delay,o.time),a(s))})),o.state=2,o.on.call("start",e,e.__data__,o.index,o.group),2===o.state){for(o.state=3,i=new Array(h=o.tween.length),c=0,d=-1;c<h;++c)(u=o.tween[c].value.call(e,e.__data__,o.index,o.group))&&(i[++d]=u)
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)
7574
7656
  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)
7575
7657
  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
7576
- delete e.__transition}n[t]=o,o.timer=qk(s,0,o.time)}(e,o,{name:t,index:i,group:n,on:Kk,tween:Xk,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function Qk(e,t){var o=eS(e,t)
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)
7577
7659
  if(o.state>0)throw new Error("too late; already scheduled")
7578
- return o}function Jk(e,t){var o=eS(e,t)
7660
+ return o}function iS(e,t){var o=nS(e,t)
7579
7661
  if(o.state>3)throw new Error("too late; already running")
7580
- return o}function eS(e,t){var o=e.__transition
7662
+ return o}function nS(e,t){var o=e.__transition
7581
7663
  if(!o||!(o=o[t]))throw new Error("transition not found")
7582
- return o}function tS(e,t){var o,i,n,s=e.__transition,r=!0
7664
+ return o}function sS(e,t){var o,i,n,s=e.__transition,r=!0
7583
7665
  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
7584
- r&&delete e.__transition}}function oS(e,t){var o,i
7585
- return function(){var n=Jk(this,e),s=n.tween
7666
+ r&&delete e.__transition}}function rS(e,t){var o,i
7667
+ return function(){var n=iS(this,e),s=n.tween
7586
7668
  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)
7587
- break}n.tween=i}}function iS(e,t,o){var i,n
7669
+ break}n.tween=i}}function aS(e,t,o){var i,n
7588
7670
  if("function"!=typeof o)throw new Error
7589
- return function(){var s=Jk(this,e),r=s.tween
7671
+ return function(){var s=iS(this,e),r=s.tween
7590
7672
  if(r!==i){n=(i=r).slice()
7591
7673
  for(var a={name:t,value:o},l=0,c=n.length;l<c;++l)if(n[l].name===t){n[l]=a
7592
- break}l===c&&n.push(a)}s.tween=n}}function nS(e,t,o){var i=e._id
7593
- return e.each((function(){var e=Jk(this,i);(e.value||(e.value={}))[t]=o.apply(this,arguments)})),function(e){return eS(e,i).value[t]}}function sS(e,t){var o
7594
- return("number"==typeof t?vk:t instanceof jC?hk:(o=jC(t))?(t=o,hk):wk)(e,t)}function rS(e){return function(){this.removeAttribute(e)}}function aS(e){return function(){this.removeAttributeNS(e.space,e.local)}}function lS(e,t,o){var i,n,s=o+""
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+""
7595
7677
  return function(){var r=this.getAttribute(e)
7596
- return r===s?null:r===i?n:n=t(i=r,o)}}function cS(e,t,o){var i,n,s=o+""
7678
+ return r===s?null:r===i?n:n=t(i=r,o)}}function pS(e,t,o){var i,n,s=o+""
7597
7679
  return function(){var r=this.getAttributeNS(e.space,e.local)
7598
- return r===s?null:r===i?n:n=t(i=r,o)}}function dS(e,t,o){var i,n,s
7680
+ return r===s?null:r===i?n:n=t(i=r,o)}}function gS(e,t,o){var i,n,s
7599
7681
  return function(){var r,a,l=o(this)
7600
7682
  if(null!=l)return(r=this.getAttribute(e))===(a=l+"")?null:r===i&&a===n?s:(n=a,s=t(i=r,l))
7601
- this.removeAttribute(e)}}function hS(e,t,o){var i,n,s
7683
+ this.removeAttribute(e)}}function vS(e,t,o){var i,n,s
7602
7684
  return function(){var r,a,l=o(this)
7603
7685
  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))
7604
- this.removeAttributeNS(e.space,e.local)}}function uS(e,t){return function(o){this.setAttribute(e,t.call(this,o))}}function pS(e,t){return function(o){this.setAttributeNS(e.space,e.local,t.call(this,o))}}function gS(e,t){var o,i
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
7605
7687
  function n(){var n=t.apply(this,arguments)
7606
- return n!==i&&(o=(i=n)&&pS(e,n)),o}return n._value=t,n}function vS(e,t){var o,i
7688
+ return n!==i&&(o=(i=n)&&fS(e,n)),o}return n._value=t,n}function wS(e,t){var o,i
7607
7689
  function n(){var n=t.apply(this,arguments)
7608
- return n!==i&&(o=(i=n)&&uS(e,n)),o}return n._value=t,n}function mS(e,t){return function(){Qk(this,e).delay=+t.apply(this,arguments)}}function fS(e,t){return t=+t,function(){Qk(this,e).delay=t}}function bS(e,t){return function(){Jk(this,e).duration=+t.apply(this,arguments)}}function wS(e,t){return t=+t,function(){Jk(this,e).duration=t}}function xS(e,t){if("function"!=typeof t)throw new Error
7609
- return function(){Jk(this,e).ease=t}}function yS(e,t,o){var i,n,s=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
7610
- return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?Qk:Jk
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
7611
7693
  return function(){var r=s(this,e),a=r.on
7612
- a!==i&&(n=(i=a).copy()).on(t,o),r.on=n}}var $S=xC.prototype.constructor
7613
- function CS(e){return function(){this.style.removeProperty(e)}}function kS(e,t,o){return function(i){this.style.setProperty(e,t.call(this,i),o)}}function SS(e,t,o){var i,n
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
7614
7696
  function s(){var s=t.apply(this,arguments)
7615
- return s!==n&&(i=(n=s)&&kS(e,s,o)),i}return s._value=t,s}function _S(e){return function(t){this.textContent=e.call(this,t)}}function IS(e){var t,o
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
7616
7698
  function i(){var i=e.apply(this,arguments)
7617
- return i!==o&&(t=(o=i)&&_S(i)),t}return i._value=e,i}var RS=0
7618
- function MS(e,t,o,i){this._groups=e,this._parents=t,this._name=o,this._id=i}function AS(){return++RS}var ES=xC.prototype
7619
- MS.prototype={constructor:MS,select:function(e){var t=this._name,o=this._id
7620
- "function"!=typeof e&&(e=g$(e))
7621
- for(var i=this._groups,n=i.length,s=new Array(n),r=0;r<n;++r)for(var a,l,c=i[r],d=c.length,h=s[r]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,Yk(h[u],t,o,u,h,eS(a,o)))
7622
- return new MS(s,this._parents,t,o)},selectAll:function(e){var t=this._name,o=this._id
7623
- "function"!=typeof e&&(e=f$(e))
7624
- for(var i=this._groups,n=i.length,s=[],r=[],a=0;a<n;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),g=eS(l,o),v=0,m=p.length;v<m;++v)(u=p[v])&&Yk(u,t,o,v,p,g)
7625
- s.push(p),r.push(l)}return new MS(s,r,t,o)},selectChild:ES.selectChild,selectChildren:ES.selectChildren,filter:function(e){"function"!=typeof e&&(e=b$(e))
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))
7626
7708
  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)
7627
- return new MS(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
7709
+ return new FS(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
7628
7710
  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)
7629
7711
  for(;a<i;++a)r[a]=t[a]
7630
- return new MS(r,this._parents,this._name,this._id)},selection:function(){return new $S(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,o=AS(),i=this._groups,n=i.length,s=0;s<n;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)if(r=a[c]){var d=eS(r,t)
7631
- Yk(r,e,o,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new MS(i,this._parents,e,o)},call:ES.call,nodes:ES.nodes,node:ES.node,size:ES.size,empty:ES.empty,each:ES.each,on:function(e,t){var o=this._id
7632
- return arguments.length<2?eS(this.node(),o).on.on(e):this.each(yS(o,e,t))},attr:function(e,t){var o=c$(e),i="transform"===o?Rk:sS
7633
- return this.attrTween(e,"function"==typeof t?(o.local?hS:dS)(o,i,nS(this,"attr."+e,t)):null==t?(o.local?aS:rS)(o):(o.local?cS:lS)(o,i,t))},attrTween:function(e,t){var o="attr."+e
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
7634
7716
  if(arguments.length<2)return(o=this.tween(o))&&o._value
7635
7717
  if(null==t)return this.tween(o,null)
7636
7718
  if("function"!=typeof t)throw new Error
7637
- var i=c$(e)
7638
- return this.tween(o,(i.local?gS:vS)(i,t))},style:function(e,t,o){var i="transform"==(e+="")?Ik:sS
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
7639
7721
  return null==t?this.styleTween(e,function(e,t){var o,i,n
7640
- return function(){var s=N$(this,e),r=(this.style.removeProperty(e),N$(this,e))
7641
- return s===r?null:s===o&&r===i?n:n=t(o=s,i=r)}}(e,i)).on("end.style."+e,CS(e)):"function"==typeof t?this.styleTween(e,function(e,t,o){var i,n,s
7642
- return function(){var r=N$(this,e),a=o(this),l=a+""
7643
- return null==a&&(this.style.removeProperty(e),l=a=N$(this,e)),r===l?null:r===i&&l===n?s:(n=l,s=t(i=r,a))}}(e,i,nS(this,"style."+e,t))).each(function(e,t){var o,i,n,s,r="style."+t,a="end."+r
7644
- return function(){var l=Jk(this,e),c=l.on,d=null==l.value[r]?s||(s=CS(t)):void 0
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
7645
7727
  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+""
7646
- return function(){var r=N$(this,e)
7728
+ return function(){var r=U$(this,e)
7647
7729
  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+="")
7648
7730
  if(arguments.length<2)return(i=this.tween(i))&&i._value
7649
7731
  if(null==t)return this.tween(i,null)
7650
7732
  if("function"!=typeof t)throw new Error
7651
- return this.tween(i,SS(e,t,null==o?"":o))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
7652
- this.textContent=null==t?"":t}}(nS(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
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"
7653
7735
  if(arguments.length<1)return(t=this.tween(t))&&t._value
7654
7736
  if(null==e)return this.tween(t,null)
7655
7737
  if("function"!=typeof e)throw new Error
7656
- return this.tween(t,IS(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
7738
+ return this.tween(t,ES(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
7657
7739
  for(var o in this.__transition)if(+o!==e)return
7658
7740
  t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var o=this._id
7659
- if(e+="",arguments.length<2){for(var i,n=eS(this.node(),o).tween,s=0,r=n.length;s<r;++s)if((i=n[s]).name===e)return i.value
7660
- return null}return this.each((null==t?oS:iS)(o,e,t))},delay:function(e){var t=this._id
7661
- return arguments.length?this.each(("function"==typeof e?mS:fS)(t,e)):eS(this.node(),t).delay},duration:function(e){var t=this._id
7662
- return arguments.length?this.each(("function"==typeof e?bS:wS)(t,e)):eS(this.node(),t).duration},ease:function(e){var t=this._id
7663
- return arguments.length?this.each(xS(t,e)):eS(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
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
7664
7746
  return this.each(function(e,t){return function(){var o=t.apply(this,arguments)
7665
7747
  if("function"!=typeof o)throw new Error
7666
- Jk(this,e).ease=o}}(this._id,e))},end:function(){var e,t,o=this,i=o._id,n=o.size()
7748
+ iS(this,e).ease=o}}(this._id,e))},end:function(){var e,t,o=this,i=o._id,n=o.size()
7667
7749
  return new Promise((function(s,r){var a={value:r},l={value:function(){0==--n&&s()}}
7668
- o.each((function(){var o=Jk(this,i),n=o.on
7669
- n!==e&&((t=(e=n).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),o.on=t})),0===n&&s()}))},[Symbol.iterator]:ES[Symbol.iterator]}
7670
- var OS={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
7671
- function FS(e,t){for(var o;!(o=e.__transition)||!(o=o[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
7672
- return o}xC.prototype.interrupt=function(e){return this.each((function(){tS(this,e)}))},xC.prototype.transition=function(e){var t,o
7673
- e instanceof MS?(t=e._id,e=e._name):(t=AS(),(o=OS).time=Bk(),e=null==e?null:e+"")
7674
- for(var i=this._groups,n=i.length,s=0;s<n;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)(r=a[c])&&Yk(r,e,t,c,a,o||FS(r,t))
7675
- return new MS(i,this._parents,e,t)}
7676
- var VS=e=>()=>e
7677
- function HS(e,{sourceEvent:t,target:o,transform:i,dispatch:n}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:n}})}function PS(e,t,o){this.k=e,this.x=t,this.y=o}PS.prototype={constructor:PS,scale:function(e){return 1===e?this:new PS(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new PS(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
7678
- var TS=new PS(1,0,0)
7679
- function DS(e){for(;!e.__zoom;)if(!(e=e.parentNode))return TS
7680
- return e.__zoom}function LS(e){e.stopImmediatePropagation()}function zS(e){e.preventDefault(),e.stopImmediatePropagation()}function BS(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function NS(){var e=this
7681
- return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function ZS(){return this.__zoom||TS}function qS(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function jS(){return navigator.maxTouchPoints||"ontouchstart"in this}function US(e,t,o){var i=e.invertX(t[0][0])-o[0][0],n=e.invertX(t[1][0])-o[1][0],s=e.invertY(t[0][1])-o[0][1],r=e.invertY(t[1][1])-o[1][1]
7682
- return e.translate(n>i?(i+n)/2:Math.min(0,i)||Math.max(0,n),r>s?(s+r)/2:Math.min(0,s)||Math.max(0,r))}DS.prototype=PS.prototype
7683
- const GS=G`
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`
7684
7766
  <div class="wafer-map-container">
7685
7767
  <svg class="svg-root">
7686
7768
  <g ${Re("zoomContainer")} transform=${e=>e.transform.toString()}>
@@ -7710,7 +7792,7 @@ const GS=G`
7710
7792
  />
7711
7793
  </svg>
7712
7794
  </div>
7713
- `,WS=fe`
7795
+ `,QS=fe`
7714
7796
  :host {
7715
7797
  display: inline-block;
7716
7798
  width: 500px;
@@ -7794,68 +7876,68 @@ const GS=G`
7794
7876
  outline-width: 0px;
7795
7877
  }
7796
7878
  `
7797
- function KS(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function XS(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function YS(e){let t,o,i
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
7798
7880
  function n(e,i,n=0,s=e.length){if(n<s){if(0!==t(i,i))return s
7799
7881
  do{const t=n+s>>>1
7800
- o(e[t],i)<0?n=t+1:s=t}while(n<s)}return n}return 2!==e.length?(t=KS,o=(t,o)=>KS(e(t),o),i=(t,o)=>e(t)-o):(t=e===KS||e===XS?e:QS,o=e,i=e),{left:n,center:function(e,t,o=0,s=e.length){const r=n(e,t,o,s-1)
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)
7801
7883
  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
7802
7884
  do{const t=n+s>>>1
7803
- o(e[t],i)<=0?n=t+1:s=t}while(n<s)}return n}}}function QS(){return 0}function JS(e){return null===e?NaN:+e}const e_=YS(KS).right
7804
- YS(JS).center
7805
- var t_=e_
7806
- class o_ extends Map{constructor(e,t=n_){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,o]of e)this.set(t,o)}get(e){return super.get(i_(this,e))}has(e){return super.has(i_(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},o){const i=t(o)
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)
7807
7889
  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)
7808
7890
  e.has(i)&&(o=e.get(i),e.delete(i))
7809
- return o}(this,e))}}function i_({_intern:e,_key:t},o){const i=t(o)
7810
- return e.has(i)?e.get(i):o}function n_(e){return null!==e&&"object"==typeof e?e.valueOf():e}const s_=Math.sqrt(50),r_=Math.sqrt(10),a_=Math.sqrt(2)
7811
- function l_(e,t,o){const i=(t-e)/Math.max(0,o),n=Math.floor(Math.log10(i)),s=i/Math.pow(10,n),r=s>=s_?10:s>=r_?5:s>=a_?2:1
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
7812
7894
  let a,l,c
7813
- return n<0?(c=Math.pow(10,-n)/r,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,n)*r,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=o&&o<2?l_(e,t,2*o):[a,l,c]}function c_(e,t,o){return l_(e=+e,t=+t,o=+o)[2]}function d_(e,t,o=JS){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+o(e[0],0,e)
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)
7814
7896
  if(t>=1)return+o(e[i-1],i-1,e)
7815
7897
  var i,n=(i-1)*t,s=Math.floor(n),r=+o(e[s],s,e)
7816
- return r+(+o(e[s+1],s+1,e)-r)*(n-s)}}function h_(e,t,o){e=+e,t=+t,o=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+o
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
7817
7899
  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
7818
- return s}function u_(e,t){switch(arguments.length){case 0:break
7900
+ return s}function m_(e,t){switch(arguments.length){case 0:break
7819
7901
  case 1:this.range(e)
7820
7902
  break
7821
- default:this.range(t).domain(e)}return this}const p_=Symbol("implicit")
7822
- function g_(){var e=new o_,t=[],o=[],i=p_
7903
+ default:this.range(t).domain(e)}return this}const f_=Symbol("implicit")
7904
+ function b_(){var e=new r_,t=[],o=[],i=f_
7823
7905
  function n(n){let s=e.get(n)
7824
- if(void 0===s){if(i!==p_)return i
7906
+ if(void 0===s){if(i!==f_)return i
7825
7907
  e.set(n,s=t.push(n)-1)}return o[s%o.length]}return n.domain=function(o){if(!arguments.length)return t.slice()
7826
- t=[],e=new o_
7908
+ t=[],e=new r_
7827
7909
  for(const i of o)e.has(i)||e.set(i,t.push(i)-1)
7828
- return n},n.range=function(e){return arguments.length?(o=Array.from(e),n):o.slice()},n.unknown=function(e){return arguments.length?(i=e,n):i},n.copy=function(){return g_(t,o).unknown(i)},u_.apply(n,arguments),n}function v_(){var e,t,o=g_().unknown(void 0),i=o.domain,n=o.range,s=0,r=1,a=!1,l=0,c=0,d=.5
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
7829
7911
  function h(){var o=i().length,h=r<s,u=h?r:s,p=h?s:r
7830
7912
  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))
7831
- var g=h_(o).map((function(t){return u+e*t}))
7832
- return n(h?g.reverse():g)}return delete o.unknown,o.domain=function(e){return arguments.length?(i(e),h()):i()},o.range=function(e){return arguments.length?([s,r]=e,s=+s,r=+r,h()):[s,r]},o.rangeRound=function(e){return[s,r]=e,s=+s,r=+r,a=!0,h()},o.bandwidth=function(){return t},o.step=function(){return e},o.round=function(e){return arguments.length?(a=!!e,h()):a},o.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},o.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},o.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},o.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},o.copy=function(){return v_(i(),[s,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},u_.apply(h(),arguments)}function m_(e){return+e}var f_=[0,1]
7833
- function b_(e){return e}function w_(e,t){return(t-=e=+e)?function(o){return(o-e)/t}:(o=isNaN(t)?NaN:.5,function(){return o})
7834
- var o}function x_(e,t,o){var i=e[0],n=e[1],s=t[0],r=t[1]
7835
- return n<i?(i=w_(n,i),s=o(r,s)):(i=w_(i,n),s=o(s,r)),function(e){return s(i(e))}}function y_(e,t,o){var i=Math.min(e.length,t.length)-1,n=new Array(i),s=new Array(i),r=-1
7836
- for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<i;)n[r]=w_(e[r],e[r+1]),s[r]=o(t[r],t[r+1])
7837
- return function(t){var o=t_(e,t,1,i)-1
7838
- return s[o](n[o](t))}}function $_(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function C_(){var e,t,o,i,n,s,r=f_,a=f_,l=xk,c=b_
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=$_
7839
7921
  function d(){var e,t,o,l=Math.min(r.length,a.length)
7840
- return c!==b_&&(e=r[0],t=r[l-1],e>t&&(o=e,e=t,t=o),c=function(o){return Math.max(e,Math.min(t,o))}),i=l>2?y_:x_,n=s=null,h}function h(t){return null==t||isNaN(t=+t)?o:(n||(n=i(r.map(e),a,l)))(e(c(t)))}return h.invert=function(o){return c(t((s||(s=i(a,r.map(e),vk)))(o)))},h.domain=function(e){return arguments.length?(r=Array.from(e,m_),d()):r.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),d()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),l=yk,d()},h.clamp=function(e){return arguments.length?(c=!!e||b_,d()):c!==b_},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(o=e,h):o},function(o,i){return e=o,t=i,d()}}function k_(){return C_()(b_,b_)}function S_(e,t){if((o=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
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
7841
7923
  var o,i=e.slice(0,o)
7842
- return[i.length>1?i[0]+i.slice(2):i,+e.slice(o+1)]}function __(e){return(e=S_(Math.abs(e)))?e[1]:NaN}var I_,R_=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
7843
- function M_(e){if(!(t=R_.exec(e)))throw new Error("invalid format: "+e)
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)
7844
7926
  var t
7845
- return new A_({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function A_(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function E_(e,t){var o=S_(e,t)
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)
7846
7928
  if(!o)return e+""
7847
7929
  var i=o[0],n=o[1]
7848
- return n<0?"0."+new Array(-n).join("0")+i:i.length>n+1?i.slice(0,n+1)+"."+i.slice(n+1):i+new Array(n-i.length+2).join("0")}M_.prototype=A_.prototype,A_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}
7849
- var O_={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>E_(100*e,t),r:E_,s:function(e,t){var o=S_(e,t)
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)
7850
7932
  if(!o)return e+""
7851
- var i=o[0],n=o[1],s=n-(I_=3*Math.max(-8,Math.min(8,Math.floor(n/3))))+1,r=i.length
7852
- return s===r?i:s>r?i+new Array(s-r+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+S_(e,Math.max(0,t+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
7853
- function F_(e){return e}var V_,H_,P_,T_=Array.prototype.map,D_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
7854
- function L_(e){var t,o,i=void 0===e.grouping||void 0===e.thousands?F_:(t=T_.call(e.grouping,Number),o=e.thousands+"",function(e,i){for(var n=e.length,s=[],r=0,a=t[0],l=0;n>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),s.push(e.substring(n-=a,n+a)),!((l+=a+1)>i));)a=t[r=(r+1)%t.length]
7855
- return s.reverse().join(o)}),n=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",r=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?F_:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(T_.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+""
7856
- function h(e){var t=(e=M_(e)).fill,o=e.align,h=e.sign,u=e.symbol,p=e.zero,g=e.width,v=e.comma,m=e.precision,f=e.trim,b=e.type
7857
- "n"===b?(v=!0,b="g"):O_[b]||(void 0===m&&(m=12),f=!0,b="g"),(p||"0"===t&&"="===o)&&(p=!0,t="0",o="=")
7858
- var w="$"===u?n:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===u?s:/[%p]/.test(b)?l:"",y=O_[b],$=/[defgprs%]/.test(b)
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)
7859
7941
  function C(e){var n,s,l,u=w,C=x
7860
7942
  if("c"===b)C=y(e)+C,e=""
7861
7943
  else{var k=(e=+e)<0||1/e<0
@@ -7864,7 +7946,7 @@ break
7864
7946
  case"0":0===n&&(n=i),t=i
7865
7947
  break
7866
7948
  default:if(!+e[i])break e
7867
- n>0&&(n=0)}return n>0?e.slice(0,n)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==h&&(k=!1),u=(k?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?D_[8+I_/3]:"")+C+(k&&"("===h?")":""),$)for(n=-1,s=e.length;++n<s;)if(48>(l=e.charCodeAt(n))||l>57){C=(46===l?r+e.slice(n+1):e.slice(n))+C,e=e.slice(0,n)
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)
7868
7950
  break}}v&&!p&&(e=i(e,1/0))
7869
7951
  var S=u.length+e.length+C.length,_=S<g?new Array(g-S+1).join(t):""
7870
7952
  switch(v&&p&&(e=i(_+e,_.length?g-C.length:1/0),_=""),o){case"<":e=u+e+C+_
@@ -7873,19 +7955,19 @@ case"=":e=u+_+e+C
7873
7955
  break
7874
7956
  case"^":e=_.slice(0,S=_.length>>1)+u+e+C+_.slice(S)
7875
7957
  break
7876
- default:e=_+u+e+C}return a(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var o=h(((e=M_(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(__(t)/3))),n=Math.pow(10,-i),s=D_[8+i/3]
7877
- return function(e){return o(n*e)+s}}}}function z_(e,t,o,i){var n,s=function(e,t,o){o=+o
7878
- const i=(t=+t)<(e=+e),n=i?c_(t,e,o):c_(e,t,o)
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)
7879
7961
  return(i?-1:1)*(n<0?1/-n:n)}(e,t,o)
7880
- switch((i=M_(null==i?",f":i)).type){case"s":var r=Math.max(Math.abs(e),Math.abs(t))
7881
- return null!=i.precision||isNaN(n=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(__(t)/3)))-__(Math.abs(e)))}(s,r))||(i.precision=n),P_(i,r)
7882
- case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(n=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,__(t)-__(e))+1}(s,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=n-("e"===i.type))
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))
7883
7965
  break
7884
- case"f":case"%":null!=i.precision||isNaN(n=function(e){return Math.max(0,-__(Math.abs(e)))}(s))||(i.precision=n-2*("%"===i.type))}return H_(i)}function B_(e){var t=e.domain
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
7885
7967
  return e.ticks=function(e){var o=t()
7886
7968
  return function(e,t,o){if(!((o=+o)>0))return[]
7887
7969
  if((e=+e)==(t=+t))return[e]
7888
- const i=t<e,[n,s,r]=i?l_(t,e,o):l_(e,t,o)
7970
+ const i=t<e,[n,s,r]=i?u_(t,e,o):u_(e,t,o)
7889
7971
  if(!(s>=n))return[]
7890
7972
  const a=s-n+1,l=new Array(a)
7891
7973
  if(i)if(r<0)for(let e=0;e<a;++e)l[e]=(s-e)/-r
@@ -7893,85 +7975,85 @@ else for(let e=0;e<a;++e)l[e]=(s-e)*r
7893
7975
  else if(r<0)for(let e=0;e<a;++e)l[e]=(n+e)/-r
7894
7976
  else for(let e=0;e<a;++e)l[e]=(n+e)*r
7895
7977
  return l}(o[0],o[o.length-1],null==e?10:e)},e.tickFormat=function(e,o){var i=t()
7896
- return z_(i[0],i[i.length-1],null==e?10:e,o)},e.nice=function(o){null==o&&(o=10)
7978
+ return q_(i[0],i[i.length-1],null==e?10:e,o)},e.nice=function(o){null==o&&(o=10)
7897
7979
  var i,n,s=t(),r=0,a=s.length-1,l=s[r],c=s[a],d=10
7898
- for(c<l&&(n=l,l=c,c=n,n=r,r=a,a=n);d-- >0;){if((n=c_(l,c,o))===i)return s[r]=l,s[a]=c,t(s)
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)
7899
7981
  if(n>0)l=Math.floor(l/n)*n,c=Math.ceil(c/n)*n
7900
7982
  else{if(!(n<0))break
7901
- l=Math.ceil(l*n)/n,c=Math.floor(c*n)/n}i=n}return e},e}function N_(){var e=k_()
7902
- return e.copy=function(){return $_(e,N_())},u_.apply(e,arguments),B_(e)}function Z_(){var e,t=[],o=[],i=[]
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=[]
7903
7985
  function n(){var e=0,n=Math.max(1,o.length)
7904
- for(i=new Array(n-1);++e<n;)i[e-1]=d_(t,e/n)
7905
- return s}function s(t){return null==t||isNaN(t=+t)?e:o[t_(i,t)]}return s.invertExtent=function(e){var n=o.indexOf(e)
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)
7906
7988
  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()
7907
7989
  t=[]
7908
7990
  for(let o of e)null==o||isNaN(o=+o)||t.push(o)
7909
- return t.sort(KS),n()},s.range=function(e){return arguments.length?(o=Array.from(e),n()):o.slice()},s.unknown=function(t){return arguments.length?(e=t,s):e},s.quantiles=function(){return i.slice()},s.copy=function(){return Z_().domain(t).range(o).unknown(e)},u_.apply(s,arguments)}V_=L_({thousands:",",grouping:[3],currency:["$",""]}),H_=V_.format,P_=V_.formatPrefix
7910
- const q_="bottom-left",j_="bottom-right",U_="top-left",G_="top-right",W_="top",K_="show",X_="hide",Y_="linear",Q_="ordinal"
7911
- class J_{constructor(e){this.defaultPadding=0,this.baseMarginPercentage=.04
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
7912
7994
  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}
7913
7995
  this.margin=this.calculateMarginAddition(s,n),this.containerDimensions=this.calculateContainerDimensions(t,this.margin)
7914
7996
  const r=Math.min(this.containerDimensions.width,this.containerDimensions.height)
7915
7997
  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}
7916
7998
  const t={x:e[0].x,y:e[0].y},o={x:e[0].x,y:e[0].y}
7917
7999
  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)
7918
- return{origin:t,rows:o.y-t.y+1,cols:o.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,o){const i=v_().domain(h_(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
7919
- return e===q_||e===U_?i.range([0,o]):i.range([o,0])}createInvertedHorizontalScale(e,t,o){const i=Z_().domain([0,o])
7920
- return e===q_||e===U_?i.range(h_(t.origin.x,t.origin.x+t.cols)):i.range(h_(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,o){const i=v_().domain(h_(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
7921
- return e===q_||e===j_?i.range([o,0]):i.range([0,o])}createInvertedVerticalScale(e,t,o){const i=Z_().domain([0,o])
7922
- return e===q_||e===j_?i.range(h_(t.origin.y,t.origin.y+t.rows).reverse()):i.range(h_(t.origin.y,t.origin.y+t.rows))}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}}class eI{constructor(e,t,o,i,n){this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)",this.d3ColorScale=this.createD3ColorScale(e.colorScale,e.colorScaleMode),this.labelsFontSize=this.calculateLabelsFontSize(i,e.maxCharacters),this.diesRenderInfo=[]
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=[]
7923
8005
  for(const i of e.dies){const s=t(i.x)??0,r=o(i.y)??0
7924
- this.diesRenderInfo.push({x:s+n.right,y:r+n.top,fillStyle:this.calculateFillStyle(i.value,e.colorScaleMode,e.highlightedValues),text:this.buildLabel(i.value,e.maxCharacters,e.dieLabelsHidden,e.dieLabelsSuffix)})}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?N_().domain(e.values.map((e=>+e))).range(e.colors):g_().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,o,i){if(o||!this.dieHasData(e))return""
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""
7925
8007
  const n=`${e}${i}`
7926
- return n.length>t?`${n.substring(0,t)}…`:n}calculateOpacity(e,t){return t.length>0&&!t.some((t=>t===e))?this.nonHighlightedOpacity:1}isColorScaleLinear(e){return e===Y_}isColorScaleOrdinal(e){return e===Q_}calculateFillStyle(e,t,o){let i=this.emptyDieColor
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
7927
8009
  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
7928
8010
  let n=Pn(i)
7929
- return null===n?this.emptyDieColor:(n=new Rn(n.r,n.g,n.b,this.calculateOpacity(e,o)),n.toStringWebRGBA())}}class tI{constructor(e){this.computations=new J_(e),this.prerendering=new eI(e,this.horizontalScale,this.verticalScale,this.dieDimensions,this.margin),this.dataMap=new Map(e.dies.map((e=>[`${e.x}_${e.y}`,e])))}get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get invertedHorizontalScale(){return this.computations.invertedHorizontalScale}get verticalScale(){return this.computations.verticalScale}get invertedVerticalScale(){return this.computations.invertedVerticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}getWaferMapDie(e){return this.dataMap.get(`${e.x}_${e.y}`)}}class oI{constructor(e){this.wafermap=e,this.dies=e.dataManager.diesRenderInfo,this.dimensions=e.dataManager.dieDimensions,this.labelFontSize=e.dataManager.labelsFontSize}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.dataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.dataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?X_:K_,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x),t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y),o=this.wafermap.transform.apply([e+this.wafermap.dataManager.margin.left,t+this.wafermap.dataManager.margin.top])
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])
7930
8012
  return`translate(${o[0]}, ${o[1]})`}return""}renderDies(){let e
7931
8013
  this.dies.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.fillStyle?-1:0))
7932
8014
  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
7933
8015
  this.wafermap.canvasContext.font=`${t.toString()}px sans-serif`,this.wafermap.canvasContext.fillStyle="#ffffff",this.wafermap.canvasContext.textAlign="center",this.wafermap.canvasContext.lineCap="butt"
7934
8016
  const o=this.wafermap.canvasContext.measureText("M")
7935
- if(e>=50)for(const e of this.dies)this.wafermap.canvasContext.fillText(e.text,e.x+this.dimensions.width/2,e.y+this.dimensions.height/2+o.width/2,this.dimensions.width-this.dimensions.width/100*20)}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvasWidth*this.wafermap.transform.k,this.wafermap.canvasHeight*this.wafermap.transform.k)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}}class iI{constructor(e){this.wafermap=e,this.zoomTransform=TS,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100,this.zoomBehavior=this.createZoomBehavior(),this.zoomBehavior(yC(this.wafermap.canvas))}rescale(e){const t=e.transform
7936
- t.k===this.minScale?(this.zoomTransform=TS,this.zoomBehavior.transform(yC(this.wafermap.canvas),TS)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}createZoomBehavior(){const e=function(){var e,t,o,i=BS,n=NS,s=US,r=qS,a=jS,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Ok,u=o$("start","zoom","end"),p=500,g=0,v=10
7937
- function m(e){e.property("__zoom",ZS).on("wheel.zoom",C,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",S).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",R).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new PS(t,e.x,e.y)}function b(e,t,o){var i=t[0]-o[0]*e.k,n=t[1]-o[1]*e.k
7938
- return i===e.x&&n===e.y?e:new PS(e.k,i,n)}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,o,i){e.on("start.zoom",(function(){y(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){y(this,arguments).event(i).end()})).tween("zoom",(function(){var e=this,s=arguments,r=y(e,s).event(i),a=n.apply(e,s),l=null==o?w(a):"function"==typeof o?o.apply(e,s):o,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=e.__zoom,u="function"==typeof t?t.apply(e,s):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
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))
7939
8021
  return function(e){if(1===e)e=u
7940
8022
  else{var t=p(e),o=c/t[2]
7941
- e=new PS(o,l[0]-t[0]*o,l[1]-t[1]*o)}r.zoom(null,e)}}))}function y(e,t,o){return!o&&e.__zooming||new $(e,t)}function $(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=n.apply(e,t),this.taps=0}function C(e,...t){if(i.apply(this,arguments)){var o=y(this,t).event(e),n=this.__zoom,a=Math.max(l[0],Math.min(l[1],n.k*Math.pow(2,r.apply(this,arguments)))),d=$C(e)
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)
7942
8024
  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)
7943
8025
  else{if(n.k===a)return
7944
- o.mouse=[d,n.invert(d)],tS(this),o.start()}zS(e),o.wheel=setTimeout(h,150),o.zoom("mouse",s(b(f(n,a),o.mouse[0],o.mouse[1]),o.extent,c))}function h(){o.wheel=null,o.end()}}function k(e,...t){if(!o&&i.apply(this,arguments)){var n=e.currentTarget,r=y(this,t,!0).event(e),a=yC(e.view).on("mousemove.zoom",u,!0).on("mouseup.zoom",p,!0),l=$C(e,n),d=e.clientX,h=e.clientY
7945
- SC(e.view),LS(e),r.mouse=[l,this.__zoom.invert(l)],tS(this),r.start()}function u(e){if(zS(e),!r.moved){var t=e.clientX-d,o=e.clientY-h
7946
- r.moved=t*t+o*o>g}r.event(e).zoom("mouse",s(b(r.that.__zoom,r.mouse[0]=$C(e,n),r.mouse[1]),r.extent,c))}function p(e){a.on("mousemove.zoom mouseup.zoom",null),_C(e.view,r.moved),zS(e),r.event(e).end()}}function S(e,...t){if(i.apply(this,arguments)){var o=this.__zoom,r=$C(e.changedTouches?e.changedTouches[0]:e,this),a=o.invert(r),l=o.k*(e.shiftKey?.5:2),h=s(b(f(o,l),r,a),n.apply(this,t),c)
7947
- zS(e),d>0?yC(this).transition().duration(d).call(x,h,r,e):yC(this).call(m.transform,h,r,e)}}function _(o,...n){if(i.apply(this,arguments)){var s,r,a,l,c=o.touches,d=c.length,h=y(this,n,o.changedTouches.length===d).event(o)
7948
- for(LS(o),r=0;r<d;++r)l=[l=$C(a=c[r],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,s=!0,h.taps=1+!!e)
7949
- e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),tS(this),h.start())}}function I(e,...t){if(this.__zooming){var o,i,n,r,a=y(this,t).event(e),l=e.changedTouches,d=l.length
7950
- for(zS(e),o=0;o<d;++o)n=$C(i=l[o],this),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=n:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=n)
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)
7951
8033
  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
7952
8034
  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
7953
8035
  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
7954
- for(LS(e),o&&clearTimeout(o),o=setTimeout((function(){o=null}),p),n=0;n<l;++n)s=a[n],r.touch0&&r.touch0[2]===s.identifier?delete r.touch0:r.touch1&&r.touch1[2]===s.identifier&&delete r.touch1
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
7955
8037
  if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0])
7956
- else if(r.end(),2===r.taps&&(s=$C(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<v)){var c=yC(this).on("dblclick.zoom")
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")
7957
8039
  c&&c.apply(this,arguments)}}}return m.transform=function(e,t,o,i){var n=e.selection?e.selection():e
7958
- n.property("__zoom",ZS),e!==n?x(e,t,o,i):n.interrupt().each((function(){y(this,arguments).event(i).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},m.scaleBy=function(e,t,o,i){m.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),o,i)},m.scaleTo=function(e,t,o,i){m.transform(e,(function(){var e=n.apply(this,arguments),i=this.__zoom,r=null==o?w(e):"function"==typeof o?o.apply(this,arguments):o,a=i.invert(r),l="function"==typeof t?t.apply(this,arguments):t
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
7959
8041
  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
7960
- return s(TS.translate(a[0],a[1]).scale(r.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof o?-o.apply(this,arguments):-o),e,c)}),i,r)},$.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=yC(this.that).datum()
7961
- u.call(e,this.that,new HS(e,{sourceEvent:this.sourceEvent,target:m,type:e,transform:this.that.__zoom,dispatch:u}),t)}},m.wheelDelta=function(e){return arguments.length?(r="function"==typeof e?e:VS(+e),m):r},m.filter=function(e){return arguments.length?(i="function"==typeof e?e:VS(!!e),m):i},m.touchable=function(e){return arguments.length?(a="function"==typeof e?e:VS(!!e),m):a},m.extent=function(e){return arguments.length?(n="function"==typeof e?e:VS([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),m):n},m.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],m):[l[0],l[1]]},m.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],m):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},m.constrain=function(e){return arguments.length?(s=e,m):s},m.duration=function(e){return arguments.length?(d=+e,m):d},m.interpolate=function(e){return arguments.length?(h=e,m):h},m.on=function(){var e=u.on.apply(u,arguments)
7962
- return e===u?m:e},m.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,m):Math.sqrt(g)},m.tapDistance=function(e){return arguments.length?(v=+e,m):v},m}().scaleExtent([1.1,this.getZoomMax(this.wafermap.canvasWidth*this.wafermap.canvasHeight,this.wafermap.dataManager.containerDimensions.width*this.wafermap.dataManager.containerDimensions.height)]).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth+this.extentPadding,this.wafermap.canvasHeight+this.extentPadding]]).filter((e=>DS(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)}))
7963
- return e}getZoomMax(e,t){return Math.ceil(t/e*100)}}class nI{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
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}
7964
8046
  if(!this.hoversOverDie(t))return void(this.wafermap.hoverDie=void 0)
7965
8047
  const o=this.wafermap.transform.invert([t.x,t.y]),i=this.calculateDieCoordinates({x:o[0],y:o[1]})
7966
- this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(e){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e){const t=this.wafermap.quadrant,o=t===q_||t===U_?Math.floor:Math.ceil,i=t===U_||t===G_?Math.floor:Math.ceil
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
7967
8049
  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
7968
8050
  let o=0
7969
8051
  for(const e of t)o+=e
7970
- return o>0}}class sI{constructor(e){this.wafermap=e,this.onWheelMove=e=>{e.preventDefault()},this.onMouseMove=e=>{this.hoverHandler.mousemove(e)},this.onMouseOut=e=>{this.hoverHandler.mouseout(e)},this.zoomHandler=new iI(e),this.hoverHandler=new nI(e),this.attachEvents()}detachEvents(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.removeEventListener("wheel",this.onWheelMove)}attachEvents(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.addEventListener("wheel",this.onWheelMove,{passive:!1})}}class rI extends Rt{constructor(){super(...arguments),this.quadrant=U_,this.orientation=W_,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=Y_,this.renderQueued=!1,this.transform=TS,this.hoverTransform="",this.hoverOpacity=X_,this.hoverWidth=0,this.hoverHeight=0,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]}}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.resizeObserver=this.createResizeObserver()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}render(){this.renderQueued=!1,this.initializeInternalModules(),this.renderer?.drawWafer()}queueRender(){this.$fastController.isConnected&&(this.renderQueued||(this.renderQueued=!0,u.queueUpdate((()=>this.render()))))}queueRenderHover(){this.$fastController.isConnected&&u.queueUpdate((()=>this.renderer?.renderHover()))}initializeInternalModules(){this.eventCoordinator?.detachEvents(),this.dataManager=new tI(this),this.renderer=new oI(this),this.eventCoordinator=new sI(this)}createResizeObserver(){const e=new ResizeObserver((e=>{const t=e[0]
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]
7971
8053
  if(void 0===t)return
7972
8054
  const{height:o,width:i}=t.contentRect
7973
8055
  this.canvas.width=i,this.canvas.height=o,this.canvasWidth=i,this.canvasHeight=o}))
7974
- return e.observe(this),e}quadrantChanged(){this.queueRender()}orientationChanged(){this.queueRender()}maxCharactersChanged(){this.queueRender()}dieLabelsHiddenChanged(){this.queueRender()}dieLabelsSuffixChanged(){this.queueRender()}colorScaleModeChanged(){this.queueRender()}highlightedValuesChanged(){this.queueRender()}diesChanged(){this.queueRender()}colorScaleChanged(){this.queueRender()}transformChanged(){this.queueRender()}canvasWidthChanged(){this.queueRender()}canvasHeightChanged(){this.queueRender()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.queueRenderHover()}}e([ne],rI.prototype,"quadrant",void 0),e([ne],rI.prototype,"orientation",void 0),e([ne({attribute:"max-characters",converter:oe})],rI.prototype,"maxCharacters",void 0),e([ne({attribute:"die-labels-hidden",mode:"boolean"})],rI.prototype,"dieLabelsHidden",void 0),e([ne({attribute:"die-labels-suffix"})],rI.prototype,"dieLabelsSuffix",void 0),e([ne({attribute:"color-scale-mode"})],rI.prototype,"colorScaleMode",void 0),e([m],rI.prototype,"canvasWidth",void 0),e([m],rI.prototype,"canvasHeight",void 0),e([m],rI.prototype,"transform",void 0),e([m],rI.prototype,"hoverTransform",void 0),e([m],rI.prototype,"hoverOpacity",void 0),e([m],rI.prototype,"hoverWidth",void 0),e([m],rI.prototype,"hoverHeight",void 0),e([m],rI.prototype,"hoverDie",void 0),e([m],rI.prototype,"highlightedValues",void 0),e([m],rI.prototype,"dies",void 0),e([m],rI.prototype,"colorScale",void 0)
7975
- const aI=rI.compose({baseName:"wafer-map",template:GS,styles:WS})
7976
- ai.getOrCreate().withPrefix("nimble").register(aI()),ai.tagFor(rI)}()
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)}()
7977
8059
  //# sourceMappingURL=all-components-bundle.min.js.map