@ni/spright-components 1.0.18 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all-components-bundle.js +95 -110
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +521 -549
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/utilities/style/display.d.ts +4 -2
- package/dist/esm/utilities/style/display.js +5 -3
- package/dist/esm/utilities/style/display.js.map +1 -1
- package/package.json +2 -2
|
@@ -1095,7 +1095,7 @@ const e=document.createElement("style"),t=function(){const e=document.querySelec
|
|
|
1095
1095
|
return e?e.getAttribute("content"):null}()
|
|
1096
1096
|
null!==t&&e.setAttribute("nonce",t),document.head.appendChild(e)
|
|
1097
1097
|
try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),Gt=!0}catch(e){Gt=!1}finally{document.head.removeChild(e)}return Gt}()?"focus-visible":"focus"
|
|
1098
|
-
class Ro extends mn{}const Fo=e=>`${To(e)}`,No=`:${Oo}`
|
|
1098
|
+
class Ro extends mn{}const Fo=e=>`${To(e)}:host{box-sizing:border-box;}*{box-sizing:border-box;}:host::before,:host::after,::before,::after{box-sizing:border-box;}`,No=`:${Oo}`
|
|
1099
1099
|
function Po(e,t,n){return isNaN(e)||e<=t?t:e>=n?n:e}function Lo(e,t,n){return isNaN(e)||e<=t?0:e>=n?1:e/(n-t)}function zo(e,t,n){return isNaN(e)?t:t+e*(n-t)}function Vo(e,t){const n=Math.pow(10,t)
|
|
1100
1100
|
return Math.round(e*n)/n}class Ho{constructor(e,t,n,i){this.r=e,this.g=t,this.b=n,this.a="number"!=typeof i||isNaN(i)?1:i}static fromObject(e){return!e||isNaN(e.r)||isNaN(e.g)||isNaN(e.b)?null:new Ho(e.r,e.g,e.b,e.a)}equalValue(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(zo(this.r,0,255))},${Math.round(zo(this.g,0,255))},${Math.round(zo(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(zo(this.r,0,255))},${Math.round(zo(this.g,0,255))},${Math.round(zo(this.b,0,255))},${Po(this.a,0,1)})`}roundToPrecision(e){return new Ho(Vo(this.r,e),Vo(this.g,e),Vo(this.b,e),Vo(this.a,e))}clamp(){return new Ho(Po(this.r,0,1),Po(this.g,0,1),Po(this.b,0,1),Po(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return function(e){const t=Math.round(Po(e,0,255)).toString(16)
|
|
1101
1101
|
return 1===t.length?"0"+t:t}(zo(e,0,255))}}const Bo={aliceblue:{r:.941176,g:.972549,b:1},antiquewhite:{r:.980392,g:.921569,b:.843137},aqua:{r:0,g:1,b:1},aquamarine:{r:.498039,g:1,b:.831373},azure:{r:.941176,g:1,b:1},beige:{r:.960784,g:.960784,b:.862745},bisque:{r:1,g:.894118,b:.768627},black:{r:0,g:0,b:0},blanchedalmond:{r:1,g:.921569,b:.803922},blue:{r:0,g:0,b:1},blueviolet:{r:.541176,g:.168627,b:.886275},brown:{r:.647059,g:.164706,b:.164706},burlywood:{r:.870588,g:.721569,b:.529412},cadetblue:{r:.372549,g:.619608,b:.627451},chartreuse:{r:.498039,g:1,b:0},chocolate:{r:.823529,g:.411765,b:.117647},coral:{r:1,g:.498039,b:.313725},cornflowerblue:{r:.392157,g:.584314,b:.929412},cornsilk:{r:1,g:.972549,b:.862745},crimson:{r:.862745,g:.078431,b:.235294},cyan:{r:0,g:1,b:1},darkblue:{r:0,g:0,b:.545098},darkcyan:{r:0,g:.545098,b:.545098},darkgoldenrod:{r:.721569,g:.52549,b:.043137},darkgray:{r:.662745,g:.662745,b:.662745},darkgreen:{r:0,g:.392157,b:0},darkgrey:{r:.662745,g:.662745,b:.662745},darkkhaki:{r:.741176,g:.717647,b:.419608},darkmagenta:{r:.545098,g:0,b:.545098},darkolivegreen:{r:.333333,g:.419608,b:.184314},darkorange:{r:1,g:.54902,b:0},darkorchid:{r:.6,g:.196078,b:.8},darkred:{r:.545098,g:0,b:0},darksalmon:{r:.913725,g:.588235,b:.478431},darkseagreen:{r:.560784,g:.737255,b:.560784},darkslateblue:{r:.282353,g:.239216,b:.545098},darkslategray:{r:.184314,g:.309804,b:.309804},darkslategrey:{r:.184314,g:.309804,b:.309804},darkturquoise:{r:0,g:.807843,b:.819608},darkviolet:{r:.580392,g:0,b:.827451},deeppink:{r:1,g:.078431,b:.576471},deepskyblue:{r:0,g:.74902,b:1},dimgray:{r:.411765,g:.411765,b:.411765},dimgrey:{r:.411765,g:.411765,b:.411765},dodgerblue:{r:.117647,g:.564706,b:1},firebrick:{r:.698039,g:.133333,b:.133333},floralwhite:{r:1,g:.980392,b:.941176},forestgreen:{r:.133333,g:.545098,b:.133333},fuchsia:{r:1,g:0,b:1},gainsboro:{r:.862745,g:.862745,b:.862745},ghostwhite:{r:.972549,g:.972549,b:1},gold:{r:1,g:.843137,b:0},goldenrod:{r:.854902,g:.647059,b:.12549},gray:{r:.501961,g:.501961,b:.501961},green:{r:0,g:.501961,b:0},greenyellow:{r:.678431,g:1,b:.184314},grey:{r:.501961,g:.501961,b:.501961},honeydew:{r:.941176,g:1,b:.941176},hotpink:{r:1,g:.411765,b:.705882},indianred:{r:.803922,g:.360784,b:.360784},indigo:{r:.294118,g:0,b:.509804},ivory:{r:1,g:1,b:.941176},khaki:{r:.941176,g:.901961,b:.54902},lavender:{r:.901961,g:.901961,b:.980392},lavenderblush:{r:1,g:.941176,b:.960784},lawngreen:{r:.486275,g:.988235,b:0},lemonchiffon:{r:1,g:.980392,b:.803922},lightblue:{r:.678431,g:.847059,b:.901961},lightcoral:{r:.941176,g:.501961,b:.501961},lightcyan:{r:.878431,g:1,b:1},lightgoldenrodyellow:{r:.980392,g:.980392,b:.823529},lightgray:{r:.827451,g:.827451,b:.827451},lightgreen:{r:.564706,g:.933333,b:.564706},lightgrey:{r:.827451,g:.827451,b:.827451},lightpink:{r:1,g:.713725,b:.756863},lightsalmon:{r:1,g:.627451,b:.478431},lightseagreen:{r:.12549,g:.698039,b:.666667},lightskyblue:{r:.529412,g:.807843,b:.980392},lightslategray:{r:.466667,g:.533333,b:.6},lightslategrey:{r:.466667,g:.533333,b:.6},lightsteelblue:{r:.690196,g:.768627,b:.870588},lightyellow:{r:1,g:1,b:.878431},lime:{r:0,g:1,b:0},limegreen:{r:.196078,g:.803922,b:.196078},linen:{r:.980392,g:.941176,b:.901961},magenta:{r:1,g:0,b:1},maroon:{r:.501961,g:0,b:0},mediumaquamarine:{r:.4,g:.803922,b:.666667},mediumblue:{r:0,g:0,b:.803922},mediumorchid:{r:.729412,g:.333333,b:.827451},mediumpurple:{r:.576471,g:.439216,b:.858824},mediumseagreen:{r:.235294,g:.701961,b:.443137},mediumslateblue:{r:.482353,g:.407843,b:.933333},mediumspringgreen:{r:0,g:.980392,b:.603922},mediumturquoise:{r:.282353,g:.819608,b:.8},mediumvioletred:{r:.780392,g:.082353,b:.521569},midnightblue:{r:.098039,g:.098039,b:.439216},mintcream:{r:.960784,g:1,b:.980392},mistyrose:{r:1,g:.894118,b:.882353},moccasin:{r:1,g:.894118,b:.709804},navajowhite:{r:1,g:.870588,b:.678431},navy:{r:0,g:0,b:.501961},oldlace:{r:.992157,g:.960784,b:.901961},olive:{r:.501961,g:.501961,b:0},olivedrab:{r:.419608,g:.556863,b:.137255},orange:{r:1,g:.647059,b:0},orangered:{r:1,g:.270588,b:0},orchid:{r:.854902,g:.439216,b:.839216},palegoldenrod:{r:.933333,g:.909804,b:.666667},palegreen:{r:.596078,g:.984314,b:.596078},paleturquoise:{r:.686275,g:.933333,b:.933333},palevioletred:{r:.858824,g:.439216,b:.576471},papayawhip:{r:1,g:.937255,b:.835294},peachpuff:{r:1,g:.854902,b:.72549},peru:{r:.803922,g:.521569,b:.247059},pink:{r:1,g:.752941,b:.796078},plum:{r:.866667,g:.627451,b:.866667},powderblue:{r:.690196,g:.878431,b:.901961},purple:{r:.501961,g:0,b:.501961},red:{r:1,g:0,b:0},rosybrown:{r:.737255,g:.560784,b:.560784},royalblue:{r:.254902,g:.411765,b:.882353},saddlebrown:{r:.545098,g:.270588,b:.07451},salmon:{r:.980392,g:.501961,b:.447059},sandybrown:{r:.956863,g:.643137,b:.376471},seagreen:{r:.180392,g:.545098,b:.341176},seashell:{r:1,g:.960784,b:.933333},sienna:{r:.627451,g:.321569,b:.176471},silver:{r:.752941,g:.752941,b:.752941},skyblue:{r:.529412,g:.807843,b:.921569},slateblue:{r:.415686,g:.352941,b:.803922},slategray:{r:.439216,g:.501961,b:.564706},slategrey:{r:.439216,g:.501961,b:.564706},snow:{r:1,g:.980392,b:.980392},springgreen:{r:0,g:1,b:.498039},steelblue:{r:.27451,g:.509804,b:.705882},tan:{r:.823529,g:.705882,b:.54902},teal:{r:0,g:.501961,b:.501961},thistle:{r:.847059,g:.74902,b:.847059},tomato:{r:1,g:.388235,b:.278431},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:.25098,g:.878431,b:.815686},violet:{r:.933333,g:.509804,b:.933333},wheat:{r:.960784,g:.870588,b:.701961},white:{r:1,g:1,b:1},whitesmoke:{r:.960784,g:.960784,b:.960784},yellow:{r:1,g:1,b:0},yellowgreen:{r:.603922,g:.803922,b:.196078}},qo=/^rgb\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){2}(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*)\)$/i,Uo=/^rgba\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){3}(?:0|1|0?\.\d*)\s*)\)$/i,jo=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i,Wo=/^#((?:[0-9a-f]{8}|[0-9a-f]{4}))$/i
|
|
@@ -1179,7 +1179,6 @@ default:return t}}function Id(e){return Ed(e,ts,"#ff4646",rs)}function Dd(e){ret
|
|
|
1179
1179
|
${Fo("inline")}
|
|
1180
1180
|
|
|
1181
1181
|
:host {
|
|
1182
|
-
box-sizing: border-box;
|
|
1183
1182
|
font: ${zl};
|
|
1184
1183
|
}
|
|
1185
1184
|
|
|
@@ -1342,7 +1341,6 @@ class Bd{constructor(e,t,n){this.propertyName=e,this.value=t,this.styles=n}bind(
|
|
|
1342
1341
|
cursor: pointer;
|
|
1343
1342
|
outline: none;
|
|
1344
1343
|
border: none;
|
|
1345
|
-
box-sizing: border-box;
|
|
1346
1344
|
${""}
|
|
1347
1345
|
vertical-align: middle;
|
|
1348
1346
|
}
|
|
@@ -1352,7 +1350,6 @@ class Bd{constructor(e,t,n){this.propertyName=e,this.value=t,this.styles=n}bind(
|
|
|
1352
1350
|
height: 100%;
|
|
1353
1351
|
width: 100%;
|
|
1354
1352
|
border: ${ll} solid transparent;
|
|
1355
|
-
box-sizing: border-box;
|
|
1356
1353
|
color: inherit;
|
|
1357
1354
|
border-radius: inherit;
|
|
1358
1355
|
fill: inherit;
|
|
@@ -1386,10 +1383,9 @@ class Bd{constructor(e,t,n){this.propertyName=e,this.value=t,this.styles=n}bind(
|
|
|
1386
1383
|
width: 100%;
|
|
1387
1384
|
height: 100%;
|
|
1388
1385
|
pointer-events: none;
|
|
1389
|
-
box-sizing: border-box;
|
|
1390
1386
|
outline: 0px solid transparent;
|
|
1391
1387
|
color: transparent;
|
|
1392
|
-
background-clip:
|
|
1388
|
+
background-clip: border-box;
|
|
1393
1389
|
transition: outline ${kd} ease-in-out;
|
|
1394
1390
|
}
|
|
1395
1391
|
|
|
@@ -1684,7 +1680,6 @@ const Xd=xe`
|
|
|
1684
1680
|
display: grid;
|
|
1685
1681
|
contain: layout;
|
|
1686
1682
|
overflow: visible;
|
|
1687
|
-
box-sizing: border-box;
|
|
1688
1683
|
height: ${nl};
|
|
1689
1684
|
grid-template-columns: 1fr;
|
|
1690
1685
|
column-gap: 8px;
|
|
@@ -1780,7 +1775,6 @@ const Qd=xe`
|
|
|
1780
1775
|
|
|
1781
1776
|
:host {
|
|
1782
1777
|
position: relative;
|
|
1783
|
-
box-sizing: border-box;
|
|
1784
1778
|
font: ${Zc};
|
|
1785
1779
|
height: ${nl};
|
|
1786
1780
|
color: ${xc};
|
|
@@ -1915,7 +1909,6 @@ const nh=xe`
|
|
|
1915
1909
|
${Fo("grid")}
|
|
1916
1910
|
|
|
1917
1911
|
:host {
|
|
1918
|
-
box-sizing: border-box;
|
|
1919
1912
|
grid-template-columns: auto 1fr;
|
|
1920
1913
|
grid-template-rows: auto 1fr;
|
|
1921
1914
|
}
|
|
@@ -2006,7 +1999,6 @@ const sh=ke`
|
|
|
2006
1999
|
.positioning-region {
|
|
2007
2000
|
display: flex;
|
|
2008
2001
|
position: relative;
|
|
2009
|
-
box-sizing: border-box;
|
|
2010
2002
|
height: calc(${cl} * 2);
|
|
2011
2003
|
width: 100%;
|
|
2012
2004
|
}
|
|
@@ -2420,7 +2412,6 @@ const $m=xe`
|
|
|
2420
2412
|
${Fo("inline-block")}
|
|
2421
2413
|
|
|
2422
2414
|
:host {
|
|
2423
|
-
box-sizing: border-box;
|
|
2424
2415
|
font: ${zl};
|
|
2425
2416
|
--ni-private-breadcrumb-link-font-color: ${Vl};
|
|
2426
2417
|
--ni-private-breadcrumb-link-active-font-color: ${Gl};
|
|
@@ -2460,7 +2451,6 @@ const Em=xe`
|
|
|
2460
2451
|
|
|
2461
2452
|
:host {
|
|
2462
2453
|
height: ${nl};
|
|
2463
|
-
box-sizing: border-box;
|
|
2464
2454
|
padding-left: calc(4px - ${ll});
|
|
2465
2455
|
|
|
2466
2456
|
${""}
|
|
@@ -2619,7 +2609,6 @@ const Om=xe`
|
|
|
2619
2609
|
cursor: pointer;
|
|
2620
2610
|
outline: none;
|
|
2621
2611
|
border: none;
|
|
2622
|
-
box-sizing: border-box;
|
|
2623
2612
|
transition: box-shadow ${kd};
|
|
2624
2613
|
}
|
|
2625
2614
|
|
|
@@ -2803,7 +2792,6 @@ const Nm=xe`
|
|
|
2803
2792
|
.control {
|
|
2804
2793
|
width: calc(${nl} / 2);
|
|
2805
2794
|
height: calc(${nl} / 2);
|
|
2806
|
-
box-sizing: border-box;
|
|
2807
2795
|
flex-shrink: 0;
|
|
2808
2796
|
border: ${ll} solid ${za};
|
|
2809
2797
|
padding: 2px;
|
|
@@ -3021,7 +3009,6 @@ const jm="nimble-icon-arrow-expander-down",Wm="above",Gm="underline",Zm="outline
|
|
|
3021
3009
|
${Fo("inline-flex")}
|
|
3022
3010
|
|
|
3023
3011
|
:host {
|
|
3024
|
-
box-sizing: border-box;
|
|
3025
3012
|
color: ${xc};
|
|
3026
3013
|
font: ${wc};
|
|
3027
3014
|
height: ${nl};
|
|
@@ -3099,7 +3086,6 @@ const jm="nimble-icon-arrow-expander-down",Wm="above",Gm="underline",Zm="outline
|
|
|
3099
3086
|
|
|
3100
3087
|
.control {
|
|
3101
3088
|
align-items: center;
|
|
3102
|
-
box-sizing: border-box;
|
|
3103
3089
|
cursor: pointer;
|
|
3104
3090
|
display: flex;
|
|
3105
3091
|
min-height: 100%;
|
|
@@ -3126,7 +3112,6 @@ const jm="nimble-icon-arrow-expander-down",Wm="above",Gm="underline",Zm="outline
|
|
|
3126
3112
|
}
|
|
3127
3113
|
|
|
3128
3114
|
.listbox {
|
|
3129
|
-
box-sizing: border-box;
|
|
3130
3115
|
display: inline-flex;
|
|
3131
3116
|
flex-direction: column;
|
|
3132
3117
|
overflow-y: auto;
|
|
@@ -3327,7 +3312,7 @@ const jm="nimble-icon-arrow-expander-down",Wm="above",Gm="underline",Zm="outline
|
|
|
3327
3312
|
border-right: 2px solid rgba(${Va}, 0.15);
|
|
3328
3313
|
height: calc(${nl} - 12px);
|
|
3329
3314
|
align-self: center;
|
|
3330
|
-
|
|
3315
|
+
margin-left: 4px;
|
|
3331
3316
|
}
|
|
3332
3317
|
|
|
3333
3318
|
.dropdown-button {
|
|
@@ -3659,7 +3644,6 @@ const hg=xe`
|
|
|
3659
3644
|
}
|
|
3660
3645
|
|
|
3661
3646
|
.dialog-contents {
|
|
3662
|
-
box-sizing: border-box;
|
|
3663
3647
|
display: flex;
|
|
3664
3648
|
flex-direction: column;
|
|
3665
3649
|
position: absolute;
|
|
@@ -4218,7 +4202,7 @@ const Fv=xe`
|
|
|
4218
4202
|
}
|
|
4219
4203
|
|
|
4220
4204
|
::slotted(hr) {
|
|
4221
|
-
box-sizing:
|
|
4205
|
+
box-sizing: border-box;
|
|
4222
4206
|
height: 2px;
|
|
4223
4207
|
margin: ${ol};
|
|
4224
4208
|
border: none;
|
|
@@ -4337,7 +4321,6 @@ const Bv="nimble-menu-button",qv=xe`
|
|
|
4337
4321
|
:host {
|
|
4338
4322
|
contain: layout;
|
|
4339
4323
|
overflow: visible;
|
|
4340
|
-
box-sizing: border-box;
|
|
4341
4324
|
height: ${nl};
|
|
4342
4325
|
grid-template-columns: 1fr;
|
|
4343
4326
|
column-gap: 8px;
|
|
@@ -4510,7 +4493,6 @@ const jv="underline",Wv="outline",Gv="block",Zv=xe`
|
|
|
4510
4493
|
}
|
|
4511
4494
|
|
|
4512
4495
|
.root {
|
|
4513
|
-
box-sizing: border-box;
|
|
4514
4496
|
position: relative;
|
|
4515
4497
|
display: flex;
|
|
4516
4498
|
flex-direction: row;
|
|
@@ -4625,7 +4607,7 @@ const jv="underline",Wv="outline",Gv="block",Zv=xe`
|
|
|
4625
4607
|
|
|
4626
4608
|
.error-icon {
|
|
4627
4609
|
order: 1;
|
|
4628
|
-
|
|
4610
|
+
margin-right: ${ol};
|
|
4629
4611
|
}
|
|
4630
4612
|
`.withBehaviors(qd(jv,xe`
|
|
4631
4613
|
.root {
|
|
@@ -4786,7 +4768,6 @@ const Yv=xe`
|
|
|
4786
4768
|
position: relative;
|
|
4787
4769
|
width: calc(${nl} / 2);
|
|
4788
4770
|
height: calc(${nl} / 2);
|
|
4789
|
-
box-sizing: border-box;
|
|
4790
4771
|
flex-shrink: 0;
|
|
4791
4772
|
border: ${ll} solid ${za};
|
|
4792
4773
|
border-radius: 100%;
|
|
@@ -7392,7 +7373,6 @@ const R$="nimble-rich-text-mention-listbox",F$=G`
|
|
|
7392
7373
|
}
|
|
7393
7374
|
|
|
7394
7375
|
.container {
|
|
7395
|
-
box-sizing: border-box;
|
|
7396
7376
|
display: flex;
|
|
7397
7377
|
flex-direction: column;
|
|
7398
7378
|
position: relative;
|
|
@@ -7472,7 +7452,6 @@ const R$="nimble-rich-text-mention-listbox",F$=G`
|
|
|
7472
7452
|
padding: 8px;
|
|
7473
7453
|
${""}
|
|
7474
7454
|
padding-right: calc(${cl});
|
|
7475
|
-
box-sizing: border-box;
|
|
7476
7455
|
position: relative;
|
|
7477
7456
|
color: inherit;
|
|
7478
7457
|
}
|
|
@@ -7571,7 +7550,6 @@ const R$="nimble-rich-text-mention-listbox",F$=G`
|
|
|
7571
7550
|
${w$}::part(positioning-region) {
|
|
7572
7551
|
background: transparent;
|
|
7573
7552
|
padding-right: 8px;
|
|
7574
|
-
box-sizing: border-box;
|
|
7575
7553
|
gap: 0px;
|
|
7576
7554
|
height: var(--ni-private-rich-text-editor-footer-section-height);
|
|
7577
7555
|
}
|
|
@@ -8876,7 +8854,6 @@ const hT=G`
|
|
|
8876
8854
|
.viewer {
|
|
8877
8855
|
font: inherit;
|
|
8878
8856
|
outline: none;
|
|
8879
|
-
box-sizing: border-box;
|
|
8880
8857
|
position: relative;
|
|
8881
8858
|
color: inherit;
|
|
8882
8859
|
overflow-wrap: anywhere;
|
|
@@ -9477,7 +9454,6 @@ const IT="nimble-spinner",DT=xe`
|
|
|
9477
9454
|
display: flex;
|
|
9478
9455
|
height: var(--ni-private-switch-height);
|
|
9479
9456
|
width: calc(var(--ni-private-switch-height) * 2);
|
|
9480
|
-
box-sizing: border-box;
|
|
9481
9457
|
background-color: ${La};
|
|
9482
9458
|
border-radius: calc(var(--ni-private-switch-height) / 2);
|
|
9483
9459
|
align-items: center;
|
|
@@ -9506,7 +9482,6 @@ const IT="nimble-spinner",DT=xe`
|
|
|
9506
9482
|
justify-content: center;
|
|
9507
9483
|
align-items: center;
|
|
9508
9484
|
background-color: var(--ni-private-switch-indicator-background-color);
|
|
9509
|
-
box-sizing: border-box;
|
|
9510
9485
|
width: var(--ni-private-switch-indicator-size);
|
|
9511
9486
|
height: var(--ni-private-switch-indicator-size);
|
|
9512
9487
|
border-radius: calc(var(--ni-private-switch-indicator-size) / 2);
|
|
@@ -9632,7 +9607,6 @@ const OT=xe`
|
|
|
9632
9607
|
|
|
9633
9608
|
:host {
|
|
9634
9609
|
position: relative;
|
|
9635
|
-
box-sizing: border-box;
|
|
9636
9610
|
font: ${Zc};
|
|
9637
9611
|
height: ${nl};
|
|
9638
9612
|
color: ${xc};
|
|
@@ -9738,7 +9712,6 @@ const FT=xe`
|
|
|
9738
9712
|
${Fo("block")}
|
|
9739
9713
|
|
|
9740
9714
|
:host {
|
|
9741
|
-
box-sizing: border-box;
|
|
9742
9715
|
font: ${wc};
|
|
9743
9716
|
color: ${xc};
|
|
9744
9717
|
padding-top: ${rl};
|
|
@@ -10138,9 +10111,9 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof YO))throw new Error(
|
|
|
10138
10111
|
>
|
|
10139
10112
|
</${e}>
|
|
10140
10113
|
`)
|
|
10141
|
-
class QO{constructor(e){this.uniqueId=xa("table-column-slot"),this.sortOperation=jO,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=ZO,this.minPixelWidth=GO,this.resizingDisabled=!1,this.hideHeaderIndicators=!1,this.currentFractionalWidth=ZO,this.currentSortDirection=VO.none,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=JO(e.cellViewTag),this.groupHeaderViewTemplate=XO(e.groupHeaderViewTag),this.delegatedEvents=e.delegatedEvents,this.sortOperation=e.sortOperation??jO,this.validator=e.validator}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}function eR(e,...t){for(const n of t)if(e===n)return!0
|
|
10142
|
-
return!1}e([g],QO.prototype,"columnConfig",void 0),e([g],QO.prototype,"operandDataRecordFieldName",void 0),e([g],QO.prototype,"sortOperation",void 0),e([g],QO.prototype,"dataRecordFieldNames",void 0),e([g],QO.prototype,"groupingDisabled",void 0),e([g],QO.prototype,"groupIndex",void 0),e([g],QO.prototype,"pixelWidth",void 0),e([g],QO.prototype,"fractionalWidth",void 0),e([g],QO.prototype,"minPixelWidth",void 0),e([g],QO.prototype,"resizingDisabled",void 0),e([g],QO.prototype,"hideHeaderIndicators",void 0),e([g],QO.prototype,"currentFractionalWidth",void 0),e([g],QO.prototype,"currentPixelWidth",void 0),e([g],QO.prototype,"currentSortIndex",void 0),e([g],QO.prototype,"currentSortDirection",void 0)
|
|
10143
|
-
class tR extends Vt{constructor(){super(...arguments),this.columnInternals=new QO(this.getColumnInternalsOptions()),this.columnHidden=!1,this.
|
|
10114
|
+
class QO{constructor(e){this.uniqueId=xa("table-column-slot"),this.sortOperation=jO,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=ZO,this.minPixelWidth=GO,this.resizingDisabled=!1,this.hideHeaderIndicators=!1,this.currentFractionalWidth=ZO,this.sortingDisabled=!1,this.currentSortDirection=VO.none,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=JO(e.cellViewTag),this.groupHeaderViewTemplate=XO(e.groupHeaderViewTag),this.delegatedEvents=e.delegatedEvents,this.sortOperation=e.sortOperation??jO,this.validator=e.validator}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}function eR(e,...t){for(const n of t)if(e===n)return!0
|
|
10115
|
+
return!1}e([g],QO.prototype,"columnConfig",void 0),e([g],QO.prototype,"operandDataRecordFieldName",void 0),e([g],QO.prototype,"sortOperation",void 0),e([g],QO.prototype,"dataRecordFieldNames",void 0),e([g],QO.prototype,"groupingDisabled",void 0),e([g],QO.prototype,"groupIndex",void 0),e([g],QO.prototype,"pixelWidth",void 0),e([g],QO.prototype,"fractionalWidth",void 0),e([g],QO.prototype,"minPixelWidth",void 0),e([g],QO.prototype,"resizingDisabled",void 0),e([g],QO.prototype,"hideHeaderIndicators",void 0),e([g],QO.prototype,"currentFractionalWidth",void 0),e([g],QO.prototype,"currentPixelWidth",void 0),e([g],QO.prototype,"sortingDisabled",void 0),e([g],QO.prototype,"currentSortIndex",void 0),e([g],QO.prototype,"currentSortDirection",void 0)
|
|
10116
|
+
class tR extends Vt{constructor(){super(...arguments),this.columnInternals=new QO(this.getColumnInternalsOptions()),this.columnHidden=!1,this.hasOverflow=!1}checkValidity(){return this.columnInternals.validator.isColumnValid}get validity(){return this.columnInternals.validator.getValidity()}get headerTextContent(){return this.contentSlot.assignedNodes().map((e=>e.textContent?.trim())).join(" ")}connectedCallback(){super.connectedCallback(),this.setAttribute("slot",this.columnInternals.uniqueId)}}e([le({attribute:"column-id"})],tR.prototype,"columnId",void 0),e([le({attribute:"action-menu-slot"})],tR.prototype,"actionMenuSlot",void 0),e([le({attribute:"action-menu-label"})],tR.prototype,"actionMenuLabel",void 0),e([le({attribute:"column-hidden",mode:"boolean"})],tR.prototype,"columnHidden",void 0),e([g],tR.prototype,"hasOverflow",void 0)
|
|
10144
10117
|
class nR{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.invalidParentIdConfiguration=!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,invalidParentIdConfiguration:this.invalidParentIdConfiguration}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}areRecordIdsValid(){const e=this.getValidity()
|
|
10145
10118
|
return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateIdFieldConfiguration(e,t,n){const i=e!==HO.none||"string"==typeof n
|
|
10146
10119
|
return this.idFieldNameNotConfigured=!!i&&"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
|
|
@@ -10423,7 +10396,6 @@ const lR="nimble-table-header",cR=xe`
|
|
|
10423
10396
|
background-color: ${Ra};
|
|
10424
10397
|
height: calc(${nl} + 2 * ${ll});
|
|
10425
10398
|
border-top: calc(2 * ${ll}) solid transparent;
|
|
10426
|
-
box-sizing: border-box;
|
|
10427
10399
|
background-clip: padding-box;
|
|
10428
10400
|
}
|
|
10429
10401
|
|
|
@@ -10432,7 +10404,6 @@ const lR="nimble-table-header",cR=xe`
|
|
|
10432
10404
|
width: 100%;
|
|
10433
10405
|
height: ${nl};
|
|
10434
10406
|
pointer-events: none;
|
|
10435
|
-
box-sizing: border-box;
|
|
10436
10407
|
bottom: 0px;
|
|
10437
10408
|
position: absolute;
|
|
10438
10409
|
}
|
|
@@ -10451,9 +10422,13 @@ const lR="nimble-table-header",cR=xe`
|
|
|
10451
10422
|
|
|
10452
10423
|
.expand-collapse-button {
|
|
10453
10424
|
flex: 0 0 auto;
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
${
|
|
10425
|
+
margin-left: max(
|
|
10426
|
+
calc(
|
|
10427
|
+
${sl} +
|
|
10428
|
+
(var(--ni-private-table-row-indent-level) - 1) *
|
|
10429
|
+
${nl}
|
|
10430
|
+
),
|
|
10431
|
+
0px
|
|
10457
10432
|
);
|
|
10458
10433
|
}
|
|
10459
10434
|
|
|
@@ -10465,9 +10440,13 @@ const lR="nimble-table-header",cR=xe`
|
|
|
10465
10440
|
display: flex;
|
|
10466
10441
|
align-items: center;
|
|
10467
10442
|
justify-content: center;
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
${
|
|
10443
|
+
margin-left: max(
|
|
10444
|
+
calc(
|
|
10445
|
+
${sl} +
|
|
10446
|
+
(var(--ni-private-table-row-indent-level) - 1) *
|
|
10447
|
+
${nl}
|
|
10448
|
+
),
|
|
10449
|
+
0px
|
|
10471
10450
|
);
|
|
10472
10451
|
}
|
|
10473
10452
|
|
|
@@ -10687,7 +10666,6 @@ const yR="nimble-table-row",wR=xe`
|
|
|
10687
10666
|
align-items: center;
|
|
10688
10667
|
height: calc(${nl} + 2 * ${ll});
|
|
10689
10668
|
border-top: calc(2 * ${ll}) solid ${Ra};
|
|
10690
|
-
box-sizing: border-box;
|
|
10691
10669
|
grid-template-columns:
|
|
10692
10670
|
calc(
|
|
10693
10671
|
${nl} *
|
|
@@ -11097,7 +11075,7 @@ for(let e=0;e<this.visibleColumns.length&&n<this.gridSizedColumns.length;e++){co
|
|
|
11097
11075
|
i===this.gridSizedColumns[n]&&(n+=1,i.columnInternals.currentFractionalWidth=i.columnInternals.currentPixelWidth/t,i.columnInternals.currentPixelWidth=void 0)}}getVisibleColumns(){return this.table.columns.filter((e=>!e.columnHidden))}getLeftColumnIndexFromDivider(e){return Math.floor(e/2)}}e([g],BR.prototype,"isColumnBeingSized",void 0),e([g],BR.prototype,"activeColumnIndex",void 0),e([g],BR.prototype,"activeColumnDivider",void 0)
|
|
11098
11076
|
const qR=(e,...t)=>{for(const n of t)if(e===n)return!0
|
|
11099
11077
|
return!1},UR=["rowIds","rowParentIds","groupRows","columnIds","columnSort","columnWidths","columnDefinition","actionMenuSlots","selectionMode"]
|
|
11100
|
-
class jR extends lI{constructor(e){super(UR),this.table=e,this.updateQueued=!1}get updateRowIds(){return this.isTracked("rowIds")}get updateRowParentIds(){return this.isTracked("rowParentIds")}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("rowParentIds")||this.isTracked("columnSort")||this.isTracked("columnDefinition")||this.isTracked("groupRows")||this.isTracked("selectionMode")}get requiresTanStackDataReset(){return this.isTracked("rowIds")||this.isTracked("columnDefinition")||this.isTracked("rowParentIds")}trackAllStateChanged(){this.trackAll(),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(e){qR(e,"columnId")?this.track("columnIds"):eR(e,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):
|
|
11078
|
+
class jR extends lI{constructor(e){super(UR),this.table=e,this.updateQueued=!1}get updateRowIds(){return this.isTracked("rowIds")}get updateRowParentIds(){return this.isTracked("rowParentIds")}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("rowParentIds")||this.isTracked("columnSort")||this.isTracked("columnDefinition")||this.isTracked("groupRows")||this.isTracked("selectionMode")}get requiresTanStackDataReset(){return this.isTracked("rowIds")||this.isTracked("columnDefinition")||this.isTracked("rowParentIds")}trackAllStateChanged(){this.trackAll(),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(e){qR(e,"columnId")?this.track("columnIds"):eR(e,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):eR(e,"sortingDisabled","currentSortDirection","currentSortIndex")?this.track("columnSort"):qR(e,"columnHidden")||eR(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth","resizingDisabled")?this.track("columnWidths"):qR(e,"actionMenuSlot")?this.track("actionMenuSlots"):eR(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()}trackParentIdFieldNameChanged(){this.track("rowParentIds"),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 WR{constructor(e){this.tanStackTable=e}reset(){}toggleIsRowSelected(e,t){e.isGroupRow&&e.selectionState===qO?this.deselectAllLeafRows(e.id):this.tanStackTable.getRow(e.id).toggleSelected(t,{selectChildren:e.isGroupRow})}selectSingleRow(e){if(e.isGroupRow)throw new Error("function not intended to select grouped rows")
|
|
11101
11079
|
const t=this.tanStackTable.getState().rowSelection,n=[]
|
|
11102
11080
|
if(Object.entries(t).forEach((([e,t])=>{t&&n.push(e)})),1===n.length&&n[0]===e.id)return!1
|
|
11103
11081
|
const i={}
|
|
@@ -11174,7 +11152,7 @@ const t=this.calculateTanStackData(e)
|
|
|
11174
11152
|
this.updateTableOptions(t)}async getSelectedRecordIds(){return await this.processPendingUpdates(),this.selectionManager.getCurrentSelectedRecordIds()}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==HO.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(e)}})}async setRecordHierarchyOptions(e){await this.processPendingUpdates()
|
|
11175
11153
|
const t=structuredClone(e),n=this.tableValidator.getOptionsWithPresentIds(t)
|
|
11176
11154
|
this.expansionManager.setHierarchyOptions(n),this.refreshRows()}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connect(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0}),document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp)}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnect(),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 tR||e instanceof QO)&&"string"==typeof t?this.tableUpdateTracker.trackColumnPropertyChanged(t):e instanceof nF&&"isColumnValid"===t?this.tableValidator.validateColumnConfigurations(this.columns):e instanceof BR&&"isColumnBeingSized"===t&&!this.layoutManager.isColumnBeingSized&&this.emitColumnConfigurationChangeEvent()}onRowSelectionToggle(e,t){t.stopImmediatePropagation()
|
|
11177
|
-
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)}handleCollapseAllRows(){this.expansionManager.collapseAll()}onRightDividerMouseDown(e,t){0===e.button&&this.layoutManager.beginColumnInteractiveSize(e.clientX,this.getRightDividerIndex(t))}onLeftDividerMouseDown(e,t){0===e.button&&this.layoutManager.beginColumnInteractiveSize(e.clientX,this.getLeftDividerIndex(t))}getLeftDividerIndex(e){return 2*e-1}getRightDividerIndex(e){return 2*e}handleGroupRowExpanded(e,t){this.toggleRowExpanded(e),t.stopPropagation()}handleRowExpanded(e){this.toggleRowExpanded(e)}toggleColumnSort(e,t){if(e.sortingDisabled)return
|
|
11155
|
+
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)}handleCollapseAllRows(){this.expansionManager.collapseAll()}onRightDividerMouseDown(e,t){0===e.button&&this.layoutManager.beginColumnInteractiveSize(e.clientX,this.getRightDividerIndex(t))}onLeftDividerMouseDown(e,t){0===e.button&&this.layoutManager.beginColumnInteractiveSize(e.clientX,this.getLeftDividerIndex(t))}getLeftDividerIndex(e){return 2*e-1}getRightDividerIndex(e){return 2*e}handleGroupRowExpanded(e,t){this.toggleRowExpanded(e),t.stopPropagation()}handleRowExpanded(e){this.toggleRowExpanded(e)}toggleColumnSort(e,t){if(e.columnInternals.sortingDisabled)return
|
|
11178
11156
|
const n=this.getColumnsParticipatingInSorting().sort(((e,t)=>e.columnInternals.currentSortIndex-t.columnInternals.currentSortIndex)),i=n.indexOf(e),o=i>-1,s=e.columnInternals.currentSortDirection
|
|
11179
11157
|
let r=VO.ascending
|
|
11180
11158
|
o?s===VO.descending?(n.splice(i,1),r=VO.none,e.columnInternals.currentSortIndex=void 0):r=VO.descending:n.push(e),e.columnInternals.currentSortDirection=r
|
|
@@ -11196,7 +11174,7 @@ t.subscribe(this),this.columnNotifiers.push(t)
|
|
|
11196
11174
|
const n=m.getNotifier(e.columnInternals)
|
|
11197
11175
|
n.subscribe(this),this.columnNotifiers.push(n)
|
|
11198
11176
|
const i=m.getNotifier(e.columnInternals.validator)
|
|
11199
|
-
i.subscribe(this),this.columnNotifiers.push(i)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>!e.sortingDisabled&&e.columnInternals.currentSortDirection!==VO.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(){await uI(this.childItems),this.columns=this.childItems.filter((e=>e instanceof tR))}updateTanStack(){const e={state:{}}
|
|
11177
|
+
i.subscribe(this),this.columnNotifiers.push(i)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>!e.columnInternals.sortingDisabled&&e.columnInternals.currentSortDirection!==VO.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(){await uI(this.childItems),this.columns=this.childItems.filter((e=>e instanceof tR))}updateTanStack(){const e={state:{}}
|
|
11200
11178
|
if(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.expansionManager.resetHierarchyOptions()),this.tableUpdateTracker.updateRowParentIds&&this.expansionManager.setHierarchyEnabled(this.isHierarchyEnabled()),this.tableUpdateTracker.updateSelectionMode&&(e.enableMultiRowSelection=this.selectionMode===HO.multiple,e.enableSubRowSelection=this.selectionMode===HO.multiple,e.state.rowSelection={},this.selectionManager.handleSelectionModeChanged(this.selectionMode)),this.dataHierarchyManager&&this.tableUpdateTracker.requiresTanStackDataReset)if(this.parentIdFieldName||this.tableUpdateTracker.updateRowParentIds){const t=this.dataHierarchyManager.getAllRecords(!0),n=this.calculateTanStackData(t)
|
|
11201
11179
|
n.state&&(e.state.rowSelection=n.state.rowSelection),e.data=n.data}else e.data=[...this.table.options.data]
|
|
11202
11180
|
this.tableUpdateTracker.updateGroupRows&&(e.state.grouping=this.calculateTanStackGroupingState()),(this.tableUpdateTracker.updateRowIds||this.tableUpdateTracker.updateRowParentIds||this.tableUpdateTracker.updateGroupRows)&&(e.state.expanded=!0,this.expansionManager.resetExpansionState()),this.updateTableOptions(e)}updateActionMenuSlots(){const e=new Set
|
|
@@ -11236,7 +11214,7 @@ const sF=xe`
|
|
|
11236
11214
|
>
|
|
11237
11215
|
<slot ${Pe("contentSlot")}></slot>
|
|
11238
11216
|
</span>`
|
|
11239
|
-
function aF(e){class t extends e{fractionalWidthChanged(){
|
|
11217
|
+
function aF(e){class t extends e{fractionalWidthChanged(){this.columnInternals.fractionalWidth=this.fractionalWidth??ZO}minPixelWidthChanged(){this.columnInternals.minPixelWidth=this.minPixelWidth??GO}}return le({attribute:"fractional-width",converter:re})(t.prototype,"fractionalWidth"),le({attribute:"min-pixel-width",converter:re})(t.prototype,"minPixelWidth"),t}function lF(e){class t extends e{constructor(){super(...arguments),this.groupingDisabled=!1}groupingDisabledChanged(){this.columnInternals.groupingDisabled=this.groupingDisabled}groupIndexChanged(){this.columnInternals.groupIndex=this.groupIndex??void 0}}return le({attribute:"grouping-disabled",mode:"boolean"})(t.prototype,"groupingDisabled"),le({attribute:"group-index",converter:re})(t.prototype,"groupIndex"),t}function cF(e){class t extends e{}return le({attribute:"placeholder"})(t.prototype,"placeholder"),t}const dF=xe`
|
|
11240
11218
|
${Fo("flex")}
|
|
11241
11219
|
|
|
11242
11220
|
:host {
|
|
@@ -11323,17 +11301,17 @@ const mF=G`
|
|
|
11323
11301
|
const vF=class extends fF{updateText(){this.text="string"==typeof this.groupHeaderValue?this.groupHeaderValue:""}}.compose({baseName:"table-column-text-group-header-view",template:mF,styles:gF})
|
|
11324
11302
|
yi.getOrCreate().withPrefix("nimble").register(vF())
|
|
11325
11303
|
const bF="nimble-table-column-text-group-header-view"
|
|
11326
|
-
|
|
11327
|
-
const wF
|
|
11328
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11329
|
-
class
|
|
11330
|
-
try{return e.format(t)}catch(e){return""}}e([le({attribute:"field-name"})],
|
|
11331
|
-
const
|
|
11332
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11333
|
-
const
|
|
11304
|
+
function yF(e){class t extends e{constructor(){super(...arguments),this.sortingDisabled=!1,this.sortDirection=VO.none}sortingDisabledChanged(){this.columnInternals.sortingDisabled=this.sortingDisabled,this.sortingDisabled?(this.columnInternals.currentSortDirection=VO.none,this.columnInternals.currentSortIndex=void 0):(this.columnInternals.currentSortDirection=this.sortDirection,this.columnInternals.currentSortIndex=this.sortIndex??void 0)}sortDirectionChanged(){this.sortingDisabled||(this.columnInternals.currentSortDirection=this.sortDirection)}sortIndexChanged(){this.sortingDisabled||(this.columnInternals.currentSortIndex=this.sortIndex??void 0)}}return le({attribute:"sorting-disabled",mode:"boolean"})(t.prototype,"sortingDisabled"),le({attribute:"sort-index",converter:re})(t.prototype,"sortIndex"),le({attribute:"sort-direction"})(t.prototype,"sortDirection"),t}class wF extends(lF(aF(cF(yF(tR))))){constructor(){super(...arguments),this.underlineHidden=!1}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:"nimble-table-column-anchor-cell-view",groupHeaderViewTag:bF,delegatedEvents:["click"],sortOperation:WO,validator:new nF([])}}labelFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName],this.columnInternals.operandDataRecordFieldName=this.labelFieldName}hrefFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName]}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={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,placeholder:this.placeholder}}}e([le({attribute:"label-field-name"})],wF.prototype,"labelFieldName",void 0),e([le({attribute:"href-field-name"})],wF.prototype,"hrefFieldName",void 0),e([le],wF.prototype,"appearance",void 0),e([le({attribute:"underline-hidden",mode:"boolean"})],wF.prototype,"underlineHidden",void 0),e([le],wF.prototype,"hreflang",void 0),e([le],wF.prototype,"ping",void 0),e([le],wF.prototype,"referrerpolicy",void 0),e([le],wF.prototype,"rel",void 0),e([le],wF.prototype,"target",void 0),e([le],wF.prototype,"type",void 0),e([le],wF.prototype,"download",void 0)
|
|
11305
|
+
const xF=wF.compose({baseName:"table-column-anchor",template:rF,styles:sF})
|
|
11306
|
+
yi.getOrCreate().withPrefix("nimble").register(xF())
|
|
11307
|
+
class CF extends tR{fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}}function kF(e){return lF(aF(cF(yF(e))))}function SF(e,t){if("number"!=typeof t)return""
|
|
11308
|
+
try{return e.format(t)}catch(e){return""}}e([le({attribute:"field-name"})],CF.prototype,"fieldName",void 0)
|
|
11309
|
+
const $F=class extends fF{updateText(){this.columnConfig?this.text=SF(this.columnConfig.formatter,this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-date-text-group-header-view",template:mF,styles:gF})
|
|
11310
|
+
yi.getOrCreate().withPrefix("nimble").register($F())
|
|
11311
|
+
const MF="left",_F="right",EF=G`
|
|
11334
11312
|
<template
|
|
11335
11313
|
class="
|
|
11336
|
-
${e=>e.alignment===
|
|
11314
|
+
${e=>e.alignment===_F?"right-align":""}
|
|
11337
11315
|
${e=>e.isPlaceholder?"placeholder":""}
|
|
11338
11316
|
"
|
|
11339
11317
|
>
|
|
@@ -11344,7 +11322,7 @@ const $F="left",MF="right",_F=G`
|
|
|
11344
11322
|
${e=>e.text}
|
|
11345
11323
|
</span>
|
|
11346
11324
|
</template>
|
|
11347
|
-
`,
|
|
11325
|
+
`,IF=xe`
|
|
11348
11326
|
${Fo("flex")}
|
|
11349
11327
|
|
|
11350
11328
|
:host {
|
|
@@ -11368,22 +11346,22 @@ const $F="left",MF="right",_F=G`
|
|
|
11368
11346
|
color: ${fc};
|
|
11369
11347
|
}
|
|
11370
11348
|
`
|
|
11371
|
-
class
|
|
11372
|
-
return"string"==typeof t&&null==e?(this.text=t,this.isPlaceholder=!0):this.isPlaceholder=!1,this.isPlaceholder}}e([g],
|
|
11373
|
-
const
|
|
11374
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11375
|
-
const
|
|
11376
|
-
class
|
|
11377
|
-
class
|
|
11349
|
+
class DF extends YO{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.alignment=MF,this.isPlaceholder=!1}columnConfigChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}cellRecordChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}applyPlaceholderTextIfNeeded(){const e=this.cellRecord?.value,t=this.columnConfig?.placeholder
|
|
11350
|
+
return"string"==typeof t&&null==e?(this.text=t,this.isPlaceholder=!0):this.isPlaceholder=!1,this.isPlaceholder}}e([g],DF.prototype,"hasOverflow",void 0),e([g],DF.prototype,"text",void 0),e([g],DF.prototype,"alignment",void 0),e([g],DF.prototype,"isPlaceholder",void 0)
|
|
11351
|
+
const AF=class extends DF{updateText(){this.columnConfig?this.text=SF(this.columnConfig.formatter,this.cellRecord?.value):this.text=""}}.compose({baseName:"table-column-date-text-cell-view",template:EF,styles:IF})
|
|
11352
|
+
yi.getOrCreate().withPrefix("nimble").register(AF())
|
|
11353
|
+
const TF=void 0,OF=["invalidCustomOptionsCombination"]
|
|
11354
|
+
class RF extends nF{constructor(){super(OF)}setCustomOptionsValidity(e){this.setConditionValue("invalidCustomOptionsCombination",!e)}}const FF={toView:e=>"boolean"==typeof e?e.toString():null,fromView:e=>"true"===e||!0===e||"false"!==e&&!1!==e&&void 0}
|
|
11355
|
+
class NF extends(kF(CF)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),_a.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),_a.unsubscribe(this.langSubscriber,this)}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-date-text-cell-view",groupHeaderViewTag:"nimble-table-column-date-text-group-header-view",delegatedEvents:[],sortOperation:jO,validator:new RF}}formatChanged(){this.updateColumnConfig()}customLocaleMatcherChanged(){this.updateColumnConfig()}customWeekdayChanged(){this.updateColumnConfig()}customEraChanged(){this.updateColumnConfig()}customYearChanged(){this.updateColumnConfig()}customMonthChanged(){this.updateColumnConfig()}customDayChanged(){this.updateColumnConfig()}customHourChanged(){this.updateColumnConfig()}customMinuteChanged(){this.updateColumnConfig()}customSecondChanged(){this.updateColumnConfig()}customTimeZoneNameChanged(){this.updateColumnConfig()}customFormatMatcherChanged(){this.updateColumnConfig()}customHour12Changed(){this.updateColumnConfig()}customTimeZoneChanged(){this.updateColumnConfig()}customCalendarChanged(){this.updateColumnConfig()}customDayPeriodChanged(){this.updateColumnConfig()}customNumberingSystemChanged(){this.updateColumnConfig()}customDateStyleChanged(){this.updateColumnConfig()}customTimeStyleChanged(){this.updateColumnConfig()}customHourCycleChanged(){this.updateColumnConfig()}updateColumnConfig(){const e=this.createFormatter()
|
|
11378
11356
|
if(e){const t={formatter:e,placeholder:this.placeholder}
|
|
11379
11357
|
this.columnInternals.columnConfig=t,this.columnInternals.validator.setCustomOptionsValidity(!0)}else this.columnInternals.columnConfig=void 0,this.columnInternals.validator.setCustomOptionsValidity(!1)}createFormatter(){let e
|
|
11380
|
-
e=this.format===
|
|
11381
|
-
try{return new Intl.DateTimeFormat(_a.getValueFor(this),e)}catch(e){return}}getCustomFormattingOptions(){return{localeMatcher:this.customLocaleMatcher??void 0,weekday:this.customWeekday??void 0,era:this.customEra??void 0,year:this.customYear??void 0,month:this.customMonth??void 0,day:this.customDay??void 0,hour:this.customHour??void 0,minute:this.customMinute??void 0,second:this.customSecond??void 0,timeZoneName:this.customTimeZoneName??void 0,formatMatcher:this.customFormatMatcher??void 0,hour12:this.customHour12??void 0,timeZone:this.customTimeZone??void 0,calendar:this.customCalendar??void 0,dayPeriod:this.customDayPeriod??void 0,numberingSystem:this.customNumberingSystem??void 0,dateStyle:this.customDateStyle??void 0,timeStyle:this.customTimeStyle??void 0,hourCycle:this.customHourCycle??void 0}}}e([le],
|
|
11382
|
-
const NF
|
|
11383
|
-
yi.getOrCreate().withPrefix("nimble").register(NF())
|
|
11384
|
-
const PF=class extends IF{updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-duration-text-cell-view",template:_F,styles:EF})
|
|
11358
|
+
e=this.format===TF?{dateStyle:"medium",timeStyle:"medium"}:this.getCustomFormattingOptions()
|
|
11359
|
+
try{return new Intl.DateTimeFormat(_a.getValueFor(this),e)}catch(e){return}}getCustomFormattingOptions(){return{localeMatcher:this.customLocaleMatcher??void 0,weekday:this.customWeekday??void 0,era:this.customEra??void 0,year:this.customYear??void 0,month:this.customMonth??void 0,day:this.customDay??void 0,hour:this.customHour??void 0,minute:this.customMinute??void 0,second:this.customSecond??void 0,timeZoneName:this.customTimeZoneName??void 0,formatMatcher:this.customFormatMatcher??void 0,hour12:this.customHour12??void 0,timeZone:this.customTimeZone??void 0,calendar:this.customCalendar??void 0,dayPeriod:this.customDayPeriod??void 0,numberingSystem:this.customNumberingSystem??void 0,dateStyle:this.customDateStyle??void 0,timeStyle:this.customTimeStyle??void 0,hourCycle:this.customHourCycle??void 0}}}e([le],NF.prototype,"format",void 0),e([le({attribute:"custom-locale-matcher"})],NF.prototype,"customLocaleMatcher",void 0),e([le({attribute:"custom-weekday"})],NF.prototype,"customWeekday",void 0),e([le({attribute:"custom-era"})],NF.prototype,"customEra",void 0),e([le({attribute:"custom-year"})],NF.prototype,"customYear",void 0),e([le({attribute:"custom-month"})],NF.prototype,"customMonth",void 0),e([le({attribute:"custom-day"})],NF.prototype,"customDay",void 0),e([le({attribute:"custom-hour"})],NF.prototype,"customHour",void 0),e([le({attribute:"custom-minute"})],NF.prototype,"customMinute",void 0),e([le({attribute:"custom-second"})],NF.prototype,"customSecond",void 0),e([le({attribute:"custom-time-zone-name"})],NF.prototype,"customTimeZoneName",void 0),e([le({attribute:"custom-format-matcher"})],NF.prototype,"customFormatMatcher",void 0),e([le({attribute:"custom-hour12",converter:FF})],NF.prototype,"customHour12",void 0),e([le({attribute:"custom-time-zone"})],NF.prototype,"customTimeZone",void 0),e([le({attribute:"custom-calendar"})],NF.prototype,"customCalendar",void 0),e([le({attribute:"custom-day-period"})],NF.prototype,"customDayPeriod",void 0),e([le({attribute:"custom-numbering-system"})],NF.prototype,"customNumberingSystem",void 0),e([le({attribute:"custom-date-style"})],NF.prototype,"customDateStyle",void 0),e([le({attribute:"custom-time-style"})],NF.prototype,"customTimeStyle",void 0),e([le({attribute:"custom-hour-cycle"})],NF.prototype,"customHourCycle",void 0)
|
|
11360
|
+
const PF=NF.compose({baseName:"table-column-date-text",template:rF,styles:sF})
|
|
11385
11361
|
yi.getOrCreate().withPrefix("nimble").register(PF())
|
|
11386
|
-
class
|
|
11362
|
+
const LF=class extends DF{updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-duration-text-cell-view",template:EF,styles:IF})
|
|
11363
|
+
yi.getOrCreate().withPrefix("nimble").register(LF())
|
|
11364
|
+
class zF{constructor(e){this.lang=e,this.daysFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"day"}),this.hoursFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"hour"}),this.minutesFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"minute"}),this.secondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second"}),this.scientificSecondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second",notation:"scientific",maximumFractionDigits:3})}format(e){if("number"!=typeof e||e<0||!Number.isFinite(e))return""
|
|
11387
11365
|
const t=[],n=1e3,i=6e4,o=36e5,s=864e5,r=e/s
|
|
11388
11366
|
let a=e
|
|
11389
11367
|
const l=Math.floor(r)
|
|
@@ -11396,37 +11374,37 @@ if(a-=d*i,d){const e=this.minutesFormatter.format(d)
|
|
|
11396
11374
|
t.push(e)}const h=a/n,u=0===h?0:h%60
|
|
11397
11375
|
if(e<1&&0!==h)return this.scientificSecondsFormatter.format(h)
|
|
11398
11376
|
if(u>=5e-4||0===u&&0===t.length){const e=this.secondsFormatter.format(u)
|
|
11399
|
-
t.push(e)}return t.join(", ")}}const
|
|
11400
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11401
|
-
class
|
|
11402
|
-
this.columnInternals.columnConfig=e}}const HF
|
|
11403
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11404
|
-
const
|
|
11377
|
+
t.push(e)}return t.join(", ")}}const VF=class extends fF{updateText(){this.columnConfig?this.text=this.columnConfig.formatter.format(this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-duration-text-group-header-view",template:mF,styles:gF})
|
|
11378
|
+
yi.getOrCreate().withPrefix("nimble").register(VF())
|
|
11379
|
+
class HF extends(kF(CF)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),_a.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),_a.unsubscribe(this.langSubscriber,this)}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-duration-text-cell-view",groupHeaderViewTag:"nimble-table-column-duration-text-group-header-view",delegatedEvents:[],sortOperation:jO,validator:new nF([])}}updateColumnConfig(){const e={formatter:new zF(_a.getValueFor(this)),placeholder:this.placeholder}
|
|
11380
|
+
this.columnInternals.columnConfig=e}}const BF=HF.compose({baseName:"table-column-duration-text",template:rF,styles:sF})
|
|
11381
|
+
yi.getOrCreate().withPrefix("nimble").register(BF())
|
|
11382
|
+
const qF=(e,t)=>{if("number"===t){const t=re.fromView(e)
|
|
11405
11383
|
return null===t?void 0:t}return"boolean"===t?!1!==e&&"false"!==e&&(!0===e||"true"===e||void 0):e?.toString()??void 0}
|
|
11406
|
-
class
|
|
11407
|
-
return this.mappings.forEach((t=>{const n=
|
|
11384
|
+
class UF extends tR{constructor(){super(...arguments),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(e,t){e instanceof kv&&"string"==typeof t&&this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.validator.validate(this.mappings,this.keyType),this.columnInternals.columnConfig=this.checkValidity()?this.createColumnConfig(this.getMappingConfigs()):void 0}getMappingConfigs(){const e=new Map
|
|
11385
|
+
return this.mappings.forEach((t=>{const n=qF(t.key,this.keyType)
|
|
11408
11386
|
if(void 0===n)throw Error("Key was invalid for type. Validation should have prevented this.")
|
|
11409
11387
|
const i=this.createMappingConfig(t)
|
|
11410
11388
|
e.set(n,i)})),e}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}mappingsChanged(){this.updateColumnConfig(),this.observeMappings()}keyTypeChanged(){this.updateColumnConfig()}removeMappingObservers(){this.mappingNotifiers.forEach((e=>{e.unsubscribe(this)})),this.mappingNotifiers=[]}observeMappings(){this.removeMappingObservers()
|
|
11411
11389
|
for(const e of this.mappings){const t=m.getNotifier(e)
|
|
11412
|
-
t.subscribe(this),this.mappingNotifiers.push(t)}}}e([g],
|
|
11413
|
-
const
|
|
11390
|
+
t.subscribe(this),this.mappingNotifiers.push(t)}}}e([g],UF.prototype,"mappings",void 0),e([le({attribute:"field-name"})],UF.prototype,"fieldName",void 0),e([le({attribute:"key-type"})],UF.prototype,"keyType",void 0)
|
|
11391
|
+
const jF=xe`
|
|
11414
11392
|
${sF}
|
|
11415
11393
|
|
|
11416
11394
|
slot[name='mapping'] {
|
|
11417
11395
|
display: none;
|
|
11418
11396
|
}
|
|
11419
|
-
`,
|
|
11420
|
-
class
|
|
11397
|
+
`,WF=G`${rF}<slot ${Ye("mappings")} name="mapping"></slot>`
|
|
11398
|
+
class GF extends nF{constructor(e){super(e)}validate(e,t){this.untrackAll()
|
|
11421
11399
|
const n=e.map((e=>e.key))
|
|
11422
|
-
this.validateKeyValuesForType(n,t),this.validateUniqueKeys(n,t),this.validateNoMissingKeys(e)}validateKeyValuesForType(e,t){const n=e.some((e=>void 0!==e&&void 0===
|
|
11423
|
-
this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(e,t){const n=e.map((e=>
|
|
11400
|
+
this.validateKeyValuesForType(n,t),this.validateUniqueKeys(n,t),this.validateNoMissingKeys(e)}validateKeyValuesForType(e,t){const n=e.some((e=>void 0!==e&&void 0===qF(e,t)))
|
|
11401
|
+
this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(e,t){const n=e.map((e=>qF(e,t))),i=new Set(n).size!==n.length
|
|
11424
11402
|
this.setConditionValue("duplicateMappingKey",i)}validateNoMissingKeys(e){const t=e.some((e=>void 0===e.key))
|
|
11425
|
-
this.setConditionValue("missingKeyValue",t)}}const
|
|
11426
|
-
class
|
|
11427
|
-
this.setConditionValue("invalidIconName",t)}validateNoMissingText(e){const t=e.filter(
|
|
11428
|
-
this.setConditionValue("missingTextValue",t)}validateMappingTypes(e){const t=e.every(
|
|
11429
|
-
this.setConditionValue("unsupportedMappingType",!t)}}const
|
|
11403
|
+
this.setConditionValue("missingKeyValue",t)}}const ZF=["invalidMappingKeyValueForType","duplicateMappingKey","missingKeyValue","unsupportedMappingType","invalidIconName","missingTextValue"]
|
|
11404
|
+
class KF extends GF{constructor(){super(ZF)}static isIconMappingElement(e){return e instanceof Iv}static isSupportedMappingElement(e){return e instanceof Iv||e instanceof Av||e instanceof Ov||e instanceof Mv}validate(e,t){super.validate(e,t),this.validateMappingTypes(e),this.validateIconNames(e),this.validateNoMissingText(e)}validateIconNames(e){const t=e.filter(KF.isIconMappingElement).some((e=>void 0===e.resolvedIcon))
|
|
11405
|
+
this.setConditionValue("invalidIconName",t)}validateNoMissingText(e){const t=e.filter(KF.isSupportedMappingElement).some((e=>void 0===e.text))
|
|
11406
|
+
this.setConditionValue("missingTextValue",t)}validateMappingTypes(e){const t=e.every(KF.isSupportedMappingElement)
|
|
11407
|
+
this.setConditionValue("unsupportedMappingType",!t)}}const XF=xe`
|
|
11430
11408
|
${Fo("inline-flex")}
|
|
11431
11409
|
|
|
11432
11410
|
:host {
|
|
@@ -11448,7 +11426,7 @@ this.setConditionValue("unsupportedMappingType",!t)}}const KF=xe`
|
|
|
11448
11426
|
overflow: hidden;
|
|
11449
11427
|
text-overflow: ellipsis;
|
|
11450
11428
|
}
|
|
11451
|
-
`,
|
|
11429
|
+
`,YF=G`
|
|
11452
11430
|
${He((e=>e.visualizationTemplate),G`
|
|
11453
11431
|
<span class="reserve-icon-size">
|
|
11454
11432
|
${e=>e.visualizationTemplate}
|
|
@@ -11459,8 +11437,8 @@ this.setConditionValue("unsupportedMappingType",!t)}}const KF=xe`
|
|
|
11459
11437
|
title="${e=>e.hasOverflow&&e.text?e.text:null}"
|
|
11460
11438
|
class="text"
|
|
11461
11439
|
>${e=>e.text}</span>
|
|
11462
|
-
`,
|
|
11463
|
-
class
|
|
11440
|
+
`,JF={default:void 0,error:"error",warning:"warning",success:"success",information:"information"}
|
|
11441
|
+
class QF{constructor(e){this.text=e}}class eN extends QF{constructor(e,t,n,i){var o
|
|
11464
11442
|
super(n),this.severity=t,this.textHidden=i,this.iconTemplate=G`
|
|
11465
11443
|
<${o=e}
|
|
11466
11444
|
title="${e=>e.textHidden?e.text:""}"
|
|
@@ -11470,7 +11448,7 @@ super(n),this.severity=t,this.textHidden=i,this.iconTemplate=G`
|
|
|
11470
11448
|
severity="${e=>e.severity}"
|
|
11471
11449
|
>
|
|
11472
11450
|
</${o}>
|
|
11473
|
-
`}}const
|
|
11451
|
+
`}}const tN=G`
|
|
11474
11452
|
<${IT}
|
|
11475
11453
|
title="${e=>e.textHidden?e.text:""}"
|
|
11476
11454
|
aria-label="${e=>e.text}"
|
|
@@ -11478,12 +11456,12 @@ super(n),this.severity=t,this.textHidden=i,this.iconTemplate=G`
|
|
|
11478
11456
|
>
|
|
11479
11457
|
</${IT}>
|
|
11480
11458
|
`
|
|
11481
|
-
class
|
|
11459
|
+
class nN extends QF{constructor(e,t){super(e),this.textHidden=t,this.spinnerTemplate=tN}}class iN extends QF{}class oN extends QF{}class sN extends KO{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.textHidden=!1}columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.resetState(),!this.columnConfig)return
|
|
11482
11460
|
const e=this.groupHeaderValue,t=this.columnConfig.mappingConfigs.get(e)
|
|
11483
|
-
t instanceof
|
|
11484
|
-
const sN
|
|
11485
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11486
|
-
const
|
|
11461
|
+
t instanceof eN?(this.severity=t.severity,this.text=t.text??"",this.visualizationTemplate=t.iconTemplate):t instanceof nN?(this.text=t.text??"",this.visualizationTemplate=t.spinnerTemplate):(t instanceof iN||t instanceof oN)&&(this.text=t.text??"")}resetState(){this.text="",this.visualizationTemplate=void 0,this.severity=JF.default}}e([g],sN.prototype,"hasOverflow",void 0),e([g],sN.prototype,"text",void 0),e([g],sN.prototype,"severity",void 0),e([g],sN.prototype,"visualizationTemplate",void 0)
|
|
11462
|
+
const rN=sN.compose({baseName:"table-column-mapping-group-header-view",template:YF,styles:XF})
|
|
11463
|
+
yi.getOrCreate().withPrefix("nimble").register(rN())
|
|
11464
|
+
const aN=xe`
|
|
11487
11465
|
${Fo("inline-flex")}
|
|
11488
11466
|
|
|
11489
11467
|
:host {
|
|
@@ -11505,7 +11483,7 @@ const rN=xe`
|
|
|
11505
11483
|
overflow: hidden;
|
|
11506
11484
|
text-overflow: ellipsis;
|
|
11507
11485
|
}
|
|
11508
|
-
`,
|
|
11486
|
+
`,lN=G`
|
|
11509
11487
|
${He((e=>e.visualizationTemplate),G`
|
|
11510
11488
|
<span class="reserve-icon-size">
|
|
11511
11489
|
${e=>e.visualizationTemplate}
|
|
@@ -11521,22 +11499,22 @@ const rN=xe`
|
|
|
11521
11499
|
</span>
|
|
11522
11500
|
`)}
|
|
11523
11501
|
`
|
|
11524
|
-
class
|
|
11502
|
+
class cN extends YO{constructor(){super(...arguments),this.textHidden=!1,this.hasOverflow=!1}columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.resetState(),!this.columnConfig||!this.cellRecord)return
|
|
11525
11503
|
const e=this.cellRecord.value
|
|
11526
11504
|
if(null==e)return
|
|
11527
11505
|
const t=this.columnConfig.mappingConfigs.get(e)
|
|
11528
|
-
t instanceof
|
|
11529
|
-
const cN
|
|
11530
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11531
|
-
const
|
|
11532
|
-
class
|
|
11533
|
-
return new
|
|
11534
|
-
if(e instanceof Ov)return new
|
|
11535
|
-
if(e instanceof Mv)return new
|
|
11536
|
-
throw new Error("Unsupported mapping")}widthModeChanged(){this.widthMode===
|
|
11537
|
-
const uN
|
|
11538
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11539
|
-
const
|
|
11506
|
+
t instanceof eN?(this.severity=t.severity,this.text=t.text,this.visualizationTemplate=t.iconTemplate,this.textHidden=t.textHidden):t instanceof nN?(this.text=t.text,this.visualizationTemplate=t.spinnerTemplate,this.textHidden=t.textHidden):t instanceof iN?(this.text=t.text,this.textHidden=!1):t instanceof oN&&(this.text=t.text,this.textHidden=!0)}resetState(){this.text=void 0,this.textHidden=!1,this.visualizationTemplate=void 0,this.severity=JF.default}}e([g],cN.prototype,"severity",void 0),e([g],cN.prototype,"text",void 0),e([g],cN.prototype,"visualizationTemplate",void 0),e([g],cN.prototype,"textHidden",void 0),e([g],cN.prototype,"hasOverflow",void 0)
|
|
11507
|
+
const dN=cN.compose({baseName:"table-column-mapping-cell-view",template:lN,styles:aN})
|
|
11508
|
+
yi.getOrCreate().withPrefix("nimble").register(dN())
|
|
11509
|
+
const hN="icon-size"
|
|
11510
|
+
class uN extends(lF(aF(yF(UF)))){minPixelWidthChanged(){this.widthMode!==hN&&(this.columnInternals.minPixelWidth=this.getConfiguredMinPixelWidth())}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-mapping-cell-view",groupHeaderViewTag:"nimble-table-column-mapping-group-header-view",delegatedEvents:[],sortOperation:jO,validator:new KF}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof Iv){if(!e.resolvedIcon)throw Error("Unresolved icon")
|
|
11511
|
+
return new eN(e.resolvedIcon,e.severity,e.text,e.textHidden)}if(e instanceof Av)return new nN(e.text,e.textHidden)
|
|
11512
|
+
if(e instanceof Ov)return new iN(e.text)
|
|
11513
|
+
if(e instanceof Mv)return new oN(e.text)
|
|
11514
|
+
throw new Error("Unsupported mapping")}widthModeChanged(){this.widthMode===hN?(this.columnInternals.resizingDisabled=!0,this.columnInternals.hideHeaderIndicators=!0,this.columnInternals.pixelWidth=32,this.columnInternals.minPixelWidth=32):(this.columnInternals.resizingDisabled=!1,this.columnInternals.hideHeaderIndicators=!1,this.columnInternals.pixelWidth=void 0,this.columnInternals.minPixelWidth=this.getConfiguredMinPixelWidth())}getConfiguredMinPixelWidth(){return"number"==typeof this.minPixelWidth?this.minPixelWidth:GO}}e([le({attribute:"width-mode"})],uN.prototype,"widthMode",void 0)
|
|
11515
|
+
const pN=uN.compose({baseName:"table-column-mapping",template:WF,styles:jF})
|
|
11516
|
+
yi.getOrCreate().withPrefix("nimble").register(pN())
|
|
11517
|
+
const fN=G`<span
|
|
11540
11518
|
${tg("hasOverflow")}
|
|
11541
11519
|
class="header-content"
|
|
11542
11520
|
title=${e=>e.hasOverflow&&e.headerTextContent?e.headerTextContent:null}
|
|
@@ -11544,13 +11522,13 @@ const pN=G`<span
|
|
|
11544
11522
|
<slot ${Pe("contentSlot")}></slot>
|
|
11545
11523
|
<slot ${Ye({property:"unitElements",filter:Ze()})} name="unit"></slot>
|
|
11546
11524
|
</span>`
|
|
11547
|
-
const
|
|
11548
|
-
yi.getOrCreate().withPrefix("nimble").register(fN())
|
|
11549
|
-
const mN=class extends IF{columnConfigChanged(){super.columnConfigChanged(),this.alignment=this.columnConfig?.alignment??$F}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:_F,styles:EF})
|
|
11525
|
+
const mN=class extends fF{updateText(){this.text=this.columnConfig?.formatter?.format(this.groupHeaderValue)??""}}.compose({baseName:"table-column-number-text-group-header-view",template:mF,styles:gF})
|
|
11550
11526
|
yi.getOrCreate().withPrefix("nimble").register(mN())
|
|
11551
|
-
const gN={
|
|
11552
|
-
|
|
11553
|
-
|
|
11527
|
+
const gN=class extends DF{columnConfigChanged(){super.columnConfigChanged(),this.alignment=this.columnConfig?.alignment??MF}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:EF,styles:IF})
|
|
11528
|
+
yi.getOrCreate().withPrefix("nimble").register(gN())
|
|
11529
|
+
const vN={default:void 0,decimal:"decimal"},bN="left",yN="right"
|
|
11530
|
+
class wN{format(e){if("number"!=typeof e)return""
|
|
11531
|
+
try{return this.tryFormat(e)}catch{return""}}}class xN{constructor(e){this.locale=e.locale,this.intlNumberFormatOptions=e.intlNumberFormatOptions}}class CN extends xN{constructor(e,t){super(e),this.formatter=new Intl.NumberFormat(this.locale,{...t,...this.intlNumberFormatOptions})}static createFactory(e){return t=>new CN(t,e)}format(e){return this.formatter.format(e)}}class kN{constructor(e,t){this.scaleFactor=e,this.scaledUnitFormatFactory=t}isBase(){return 1===this.scaleFactor}}class SN{constructor(e){this.supportedScaledUnits=e
|
|
11554
11532
|
const t=e.every(((e,t,n)=>0===t||n[t-1].scaleFactor<e.scaleFactor))
|
|
11555
11533
|
if(!t)throw new Error("Supported scaled units must have unique and ordered scale factors")
|
|
11556
11534
|
const n=e.find((e=>e.isBase()))
|
|
@@ -11559,43 +11537,42 @@ this.supportedScaledUnits=e,this.baseScaledUnit=n}scaleNumber(e){const t=Math.ab
|
|
|
11559
11537
|
if(1===this.supportedScaledUnits.length||0===t||t===1/0||Number.isNaN(t))return{scaledValue:e,scaledUnit:this.baseScaledUnit}
|
|
11560
11538
|
for(let n=this.supportedScaledUnits.length-1;n>=0;n-=1){const i=this.supportedScaledUnits[n]
|
|
11561
11539
|
if(t/i.scaleFactor>=1)return{scaledValue:e/i.scaleFactor,scaledUnit:i}}const n=this.supportedScaledUnits[0]
|
|
11562
|
-
return{scaledValue:e/n.scaleFactor,scaledUnit:n}}}const
|
|
11563
|
-
class
|
|
11540
|
+
return{scaledValue:e/n.scaleFactor,scaledUnit:n}}}const $N=new class extends SN{constructor(){super([new kN(1,CN.createFactory({}))])}},MN="negative"
|
|
11541
|
+
class _N extends wN{constructor(e,{unitScale:t=$N}={unitScale:$N}){super(),this.defaultIntlNumberFormatOptions={maximumSignificantDigits:_N.maximumDigits,maximumFractionDigits:_N.maximumDigits-1,roundingPriority:"lessPrecision",signDisplay:MN},this.defaultScaledUnitFormatters=new Map,this.exponentialIntlNumberFormatOptions={maximumSignificantDigits:_N.maximumDigits,notation:"scientific",signDisplay:MN}
|
|
11564
11542
|
for(const n of t.supportedScaledUnits)this.defaultScaledUnitFormatters.set(n.scaleFactor,n.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:this.defaultIntlNumberFormatOptions}))
|
|
11565
11543
|
this.exponentialScaledUnitFormatter=t.baseScaledUnit.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:this.exponentialIntlNumberFormatOptions}),this.unitScale=t}resolvedOptions(){return{unitScale:this.unitScale}}tryFormat(e){const{scaledValue:t,scaledUnit:n}=this.unitScale.scaleNumber(e),i=Math.abs(t)
|
|
11566
|
-
return 0!==i&&(i>=
|
|
11567
|
-
class
|
|
11544
|
+
return 0!==i&&(i>=_N.exponentialUpperBound||i<_N.exponentialLowerBound)?this.exponentialScaledUnitFormatter.format(e):this.defaultScaledUnitFormatters.get(n.scaleFactor).format(t)}}_N.maximumDigits=6,_N.exponentialLowerBound=995e-6,_N.exponentialUpperBound=999999.5
|
|
11545
|
+
class EN extends wN{constructor(e,{minimumFractionDigits:t=0,maximumFractionDigits:n=Math.max(3,t),unitScale:i=$N}={minimumFractionDigits:0,maximumFractionDigits:3,unitScale:$N}){super(),this.scaledUnitFormatters=new Map
|
|
11568
11546
|
const o={maximumFractionDigits:n,minimumFractionDigits:t,signDisplay:"negative"}
|
|
11569
11547
|
for(const t of i.supportedScaledUnits)this.scaledUnitFormatters.set(t.scaleFactor,t.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:o}))
|
|
11570
11548
|
this.unitScale=i,this.minimumFractionDigits=t,this.maximumFractionDigits=n}resolvedOptions(){return{unitScale:this.unitScale,maximumFractionDigits:this.maximumFractionDigits,minimumFractionDigits:this.minimumFractionDigits}}tryFormat(e){const{scaledValue:t,scaledUnit:n}=this.unitScale.scaleNumber(e)
|
|
11571
|
-
return this.scaledUnitFormatters.get(n.scaleFactor).format(t)}}class
|
|
11549
|
+
return this.scaledUnitFormatters.get(n.scaleFactor).format(t)}}class IN extends wN{constructor(e,t){super(),this._resolvedOptions=this.resolveOptions(t),this.resolvedUnitFormat=this.resolveUnitFormat(e,this._resolvedOptions)}resolvedOptions(){return{...this._resolvedOptions}}optionsMatch(e){const t=this.resolveOptions(e)
|
|
11572
11550
|
return this._resolvedOptions.decimalDigits===t.decimalDigits&&this._resolvedOptions.decimalMaximumDigits===t.decimalMaximumDigits&&this._resolvedOptions.numberTextFormat===t.numberTextFormat&&this._resolvedOptions.unitScale===t.unitScale}tryFormat(e){return this.resolvedUnitFormat.format(e)}resolveUnitFormat(e,t){const{numberTextFormat:n,decimalMaximumDigits:i,decimalDigits:o,unitScale:s}=t
|
|
11573
|
-
return n===
|
|
11551
|
+
return n===vN.default?new _N(e,{unitScale:s}):new EN(e,"number"==typeof o?{minimumFractionDigits:o,maximumFractionDigits:o,unitScale:s}:{minimumFractionDigits:0,maximumFractionDigits:i,unitScale:s})}resolveOptions(e){if(!e||e.numberTextFormat===vN.default)return{numberTextFormat:vN.default,decimalDigits:void 0,decimalMaximumDigits:void 0,unitScale:e?.unitScale??$N}
|
|
11574
11552
|
const t="number"==typeof e.decimalDigits,n="number"==typeof e.decimalMaximumDigits
|
|
11575
11553
|
if(t&&n)throw new Error("decimalDigits and decimalMaximumDigits are mutually exclusive. Do not specify both.")
|
|
11576
|
-
return t||n?{numberTextFormat:
|
|
11577
|
-
const
|
|
11578
|
-
class
|
|
11579
|
-
this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(e,t){const n=!!(e===
|
|
11580
|
-
this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(e,t,n){const i=!!(e===
|
|
11554
|
+
return t||n?{numberTextFormat:vN.decimal,decimalDigits:e.decimalDigits,decimalMaximumDigits:e.decimalMaximumDigits,unitScale:e.unitScale??$N}:{numberTextFormat:vN.decimal,decimalDigits:IN.defaultDecimalDigits,decimalMaximumDigits:void 0,unitScale:e.unitScale??$N}}}IN.defaultDecimalDigits=2
|
|
11555
|
+
const DN=["invalidDecimalDigits","invalidDecimalMaximumDigits","decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits","moreThanOneUnitSpecified"]
|
|
11556
|
+
class AN extends nF{constructor(){super(DN)}validateDecimalDigits(e,t){const n=!!(e===vN.decimal&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
|
|
11557
|
+
this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(e,t){const n=!!(e===vN.decimal&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
|
|
11558
|
+
this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(e,t,n){const i=!!(e===vN.decimal)&&("number"==typeof t&&"number"==typeof n)
|
|
11581
11559
|
this.setConditionValue("decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits",i)}validateAtMostOneUnit(e){const t=e.length>1
|
|
11582
|
-
this.setConditionValue("moreThanOneUnitSpecified",t)}isInvalidDecimalDigitsValue(e){return e<0||e>20}}class
|
|
11583
|
-
class
|
|
11584
|
-
e.subscribe(this.unitSubscriber,"resolvedUnitScale"),this.unitNotifier=e}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}decimalMaximumDigitsChanged(){this.updateColumnConfig()}unitElementsChanged(){this.updateUnit()}async updateUnit(){this.unit=void 0,this.unitElements&&(await uI(this.unitElements),this.unit=this.unitElements.find((e=>e instanceof
|
|
11560
|
+
this.setConditionValue("moreThanOneUnitSpecified",t)}isInvalidDecimalDigitsValue(e){return e<0||e>20}}class TN extends Vt{}e([g],TN.prototype,"resolvedUnitScale",void 0)
|
|
11561
|
+
class ON extends(kF(CF)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}},this.unitSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),_a.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),_a.unsubscribe(this.langSubscriber,this)}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-number-text-cell-view",groupHeaderViewTag:"nimble-table-column-number-text-group-header-view",delegatedEvents:[],sortOperation:jO,validator:new AN}}updateUnitNotifier(){if(this.unitNotifier&&(this.unitNotifier.unsubscribe(this.unitSubscriber),this.unitNotifier=void 0),this.unit){const e=m.getNotifier(this.unit)
|
|
11562
|
+
e.subscribe(this.unitSubscriber,"resolvedUnitScale"),this.unitNotifier=e}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}decimalMaximumDigitsChanged(){this.updateColumnConfig()}unitElementsChanged(){this.updateUnit()}async updateUnit(){this.unit=void 0,this.unitElements&&(await uI(this.unitElements),this.unit=this.unitElements.find((e=>e instanceof TN))),this.updateUnitNotifier()}unitChanged(){this.updateColumnConfig()}updateColumnConfig(){const e=this.columnInternals.validator
|
|
11585
11563
|
if(e.validateDecimalDigits(this.format,this.decimalDigits),e.validateDecimalMaximumDigits(this.format,this.decimalMaximumDigits),e.validateNoMutuallyExclusiveProperties(this.format,this.decimalDigits,this.decimalMaximumDigits),e.validateAtMostOneUnit(this.unitElements??[]),e.isValid()){const e={formatter:this.createFormatter(),alignment:this.determineCellContentAlignment(),placeholder:this.placeholder}
|
|
11586
11564
|
this.columnInternals.columnConfig=e}else this.columnInternals.columnConfig=void 0}createFormatter(){const e=this.unit?.resolvedUnitScale
|
|
11587
|
-
return new
|
|
11588
|
-
const ON
|
|
11589
|
-
yi.getOrCreate().withPrefix("nimble").register(ON())
|
|
11590
|
-
const RN=class extends IF{updateText(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:_F,styles:EF})
|
|
11565
|
+
return new IN(_a.getValueFor(this),{numberTextFormat:this.format??void 0,decimalDigits:this.decimalDigits??void 0,decimalMaximumDigits:this.decimalMaximumDigits??void 0,unitScale:e})}determineCellContentAlignment(){return this.alignment===bN?MF:this.alignment===yN?_F:this.format!==vN.decimal||"number"==typeof this.decimalMaximumDigits||this.unit?MF:_F}}e([le],ON.prototype,"format",void 0),e([le],ON.prototype,"alignment",void 0),e([le({attribute:"decimal-digits",converter:re})],ON.prototype,"decimalDigits",void 0),e([le({attribute:"decimal-maximum-digits",converter:re})],ON.prototype,"decimalMaximumDigits",void 0),e([g],ON.prototype,"unitElements",void 0),e([g],ON.prototype,"unit",void 0)
|
|
11566
|
+
const RN=ON.compose({baseName:"table-column-number-text",template:fN,styles:sF})
|
|
11591
11567
|
yi.getOrCreate().withPrefix("nimble").register(RN())
|
|
11592
|
-
|
|
11593
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11594
|
-
const PN=
|
|
11568
|
+
const FN=class extends DF{updateText(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:EF,styles:IF})
|
|
11569
|
+
yi.getOrCreate().withPrefix("nimble").register(FN())
|
|
11570
|
+
class NN extends(kF(CF)){placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder}}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:bF,delegatedEvents:[],sortOperation:WO,validator:new nF([])}}}const PN=NN.compose({baseName:"table-column-text",template:rF,styles:sF})
|
|
11571
|
+
yi.getOrCreate().withPrefix("nimble").register(PN())
|
|
11572
|
+
const LN=xe`
|
|
11595
11573
|
${Fo("grid")}
|
|
11596
11574
|
|
|
11597
11575
|
:host {
|
|
11598
|
-
box-sizing: border-box;
|
|
11599
11576
|
grid-template-columns: auto 1fr;
|
|
11600
11577
|
grid-template-rows: auto 1fr;
|
|
11601
11578
|
}
|
|
@@ -11619,7 +11596,7 @@ const PN=xe`
|
|
|
11619
11596
|
overflow: auto;
|
|
11620
11597
|
}
|
|
11621
11598
|
`
|
|
11622
|
-
const
|
|
11599
|
+
const zN=class extends so{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:so,template:(e,t)=>G`
|
|
11623
11600
|
<template class="${e=>e.orientation}">
|
|
11624
11601
|
${nt(0,t)}
|
|
11625
11602
|
<div class="tablist" part="tablist" role="tablist">
|
|
@@ -11638,15 +11615,14 @@ const LN=class extends so{constructor(){super(),this.activeindicator=!1}}.compos
|
|
|
11638
11615
|
<slot name="tabpanel" ${Ye("tabpanels")}></slot>
|
|
11639
11616
|
</div>
|
|
11640
11617
|
</template>
|
|
11641
|
-
`,styles:
|
|
11642
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11643
|
-
const
|
|
11618
|
+
`,styles:LN})
|
|
11619
|
+
yi.getOrCreate().withPrefix("nimble").register(zN())
|
|
11620
|
+
const VN=xe`
|
|
11644
11621
|
${Fo("flex")}
|
|
11645
11622
|
|
|
11646
11623
|
:host {
|
|
11647
11624
|
align-items: center;
|
|
11648
11625
|
height: ${nl};
|
|
11649
|
-
box-sizing: border-box;
|
|
11650
11626
|
font: ${wc};
|
|
11651
11627
|
color: ${xc};
|
|
11652
11628
|
}
|
|
@@ -11658,15 +11634,15 @@ const zN=xe`
|
|
|
11658
11634
|
rgba(${Va}, 0.3);
|
|
11659
11635
|
margin: ${ol} ${sl};
|
|
11660
11636
|
}
|
|
11661
|
-
`,
|
|
11637
|
+
`,HN=G`
|
|
11662
11638
|
<template slot="end">
|
|
11663
11639
|
<div class="separator"></div>
|
|
11664
11640
|
<slot></slot>
|
|
11665
11641
|
</template>
|
|
11666
11642
|
`
|
|
11667
|
-
const
|
|
11668
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11669
|
-
const
|
|
11643
|
+
const BN=class extends Vt{}.compose({baseName:"tabs-toolbar",template:HN,styles:VN})
|
|
11644
|
+
yi.getOrCreate().withPrefix("nimble").register(BN())
|
|
11645
|
+
const qN="outline",UN="block",jN=xe`
|
|
11670
11646
|
${Fo("inline-flex")}
|
|
11671
11647
|
${Ym}
|
|
11672
11648
|
|
|
@@ -11737,7 +11713,6 @@ const BN="outline",qN="block",UN=xe`
|
|
|
11737
11713
|
font: inherit;
|
|
11738
11714
|
flex-grow: 1;
|
|
11739
11715
|
outline: none;
|
|
11740
|
-
box-sizing: border-box;
|
|
11741
11716
|
position: relative;
|
|
11742
11717
|
color: inherit;
|
|
11743
11718
|
border-radius: 0px;
|
|
@@ -11806,12 +11781,12 @@ const BN="outline",qN="block",UN=xe`
|
|
|
11806
11781
|
top: ${sl};
|
|
11807
11782
|
right: var(--ni-private-scrollbar-width);
|
|
11808
11783
|
}
|
|
11809
|
-
`.withBehaviors(qd(
|
|
11784
|
+
`.withBehaviors(qd(qN,xe`
|
|
11810
11785
|
.control {
|
|
11811
11786
|
border-color: rgba(${Va}, 0.3);
|
|
11812
11787
|
background-color: transparent;
|
|
11813
11788
|
}
|
|
11814
|
-
`),qd(
|
|
11789
|
+
`),qd(UN,xe`
|
|
11815
11790
|
.control {
|
|
11816
11791
|
background-color: rgba(${Va}, 0.1);
|
|
11817
11792
|
}
|
|
@@ -11829,8 +11804,8 @@ const BN="outline",qN="block",UN=xe`
|
|
|
11829
11804
|
border-bottom-color: ${Ha};
|
|
11830
11805
|
}
|
|
11831
11806
|
`))
|
|
11832
|
-
class
|
|
11833
|
-
const WN
|
|
11807
|
+
class WN extends co{constructor(){super(...arguments),this.appearance=qN,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.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([le],WN.prototype,"appearance",void 0),e([le({attribute:"error-text"})],WN.prototype,"errorText",void 0),e([le({attribute:"error-visible",mode:"boolean"})],WN.prototype,"errorVisible",void 0),e([g],WN.prototype,"scrollbarWidth",void 0)
|
|
11808
|
+
const GN=WN.compose({baseName:"text-area",baseClass:co,template:()=>G`
|
|
11834
11809
|
<label
|
|
11835
11810
|
part="label"
|
|
11836
11811
|
for="control"
|
|
@@ -11887,9 +11862,9 @@ const WN=jN.compose({baseName:"text-area",baseClass:co,template:()=>G`
|
|
|
11887
11862
|
></${tm}>
|
|
11888
11863
|
${Um}
|
|
11889
11864
|
</div>
|
|
11890
|
-
`,styles:
|
|
11891
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11892
|
-
const
|
|
11865
|
+
`,styles:jN,shadowOptions:{delegatesFocus:!0}})
|
|
11866
|
+
yi.getOrCreate().withPrefix("nimble").register(GN())
|
|
11867
|
+
const ZN="underline",KN="outline",XN="block",YN="frameless",JN=xe`
|
|
11893
11868
|
${Fo("inline-block")}
|
|
11894
11869
|
${Ym}
|
|
11895
11870
|
|
|
@@ -11919,7 +11894,6 @@ const GN="underline",ZN="outline",KN="block",XN="frameless",YN=xe`
|
|
|
11919
11894
|
}
|
|
11920
11895
|
|
|
11921
11896
|
.root {
|
|
11922
|
-
box-sizing: border-box;
|
|
11923
11897
|
position: relative;
|
|
11924
11898
|
display: flex;
|
|
11925
11899
|
flex-direction: row;
|
|
@@ -12065,12 +12039,12 @@ const GN="underline",ZN="outline",KN="block",XN="frameless",YN=xe`
|
|
|
12065
12039
|
slot[name='actions']::slotted(*) {
|
|
12066
12040
|
${nl.cssCustomProperty}: 24px;
|
|
12067
12041
|
}
|
|
12068
|
-
`.withBehaviors(qd(
|
|
12042
|
+
`.withBehaviors(qd(ZN,xe`
|
|
12069
12043
|
.root {
|
|
12070
12044
|
border-bottom-width: ${ll};
|
|
12071
12045
|
padding-bottom: 0;
|
|
12072
12046
|
}
|
|
12073
|
-
`),qd(
|
|
12047
|
+
`),qd(XN,xe`
|
|
12074
12048
|
.root {
|
|
12075
12049
|
background-color: rgba(${Va}, 0.1);
|
|
12076
12050
|
}
|
|
@@ -12098,12 +12072,12 @@ const GN="underline",ZN="outline",KN="block",XN="frameless",YN=xe`
|
|
|
12098
12072
|
:host([disabled]) .root {
|
|
12099
12073
|
background-color: rgba(${Va}, 0.07);
|
|
12100
12074
|
}
|
|
12101
|
-
`),qd(
|
|
12075
|
+
`),qd(KN,xe`
|
|
12102
12076
|
.root {
|
|
12103
12077
|
border-width: ${ll};
|
|
12104
12078
|
padding: 0;
|
|
12105
12079
|
}
|
|
12106
|
-
`),qd(
|
|
12080
|
+
`),qd(YN,xe`
|
|
12107
12081
|
.control {
|
|
12108
12082
|
padding-left: ${ll};
|
|
12109
12083
|
padding-right: ${ll};
|
|
@@ -12121,8 +12095,8 @@ const GN="underline",ZN="outline",KN="block",XN="frameless",YN=xe`
|
|
|
12121
12095
|
filter: invert(100%);
|
|
12122
12096
|
}
|
|
12123
12097
|
`))
|
|
12124
|
-
class
|
|
12125
|
-
const QN
|
|
12098
|
+
class QN extends zi{constructor(){super(...arguments),this.appearance=ZN,this.errorVisible=!1,this.fullBleed=!1}}e([le],QN.prototype,"appearance",void 0),e([le({attribute:"error-text"})],QN.prototype,"errorText",void 0),e([le({attribute:"error-visible",mode:"boolean"})],QN.prototype,"errorVisible",void 0),e([le({attribute:"full-bleed",mode:"boolean"})],QN.prototype,"fullBleed",void 0)
|
|
12099
|
+
const eP=QN.compose({baseName:"text-field",baseClass:zi,template:(e,t)=>G`
|
|
12126
12100
|
<template
|
|
12127
12101
|
class="
|
|
12128
12102
|
${e=>e.readOnly?"readonly":""}
|
|
@@ -12182,7 +12156,7 @@ const QN=JN.compose({baseName:"text-field",baseClass:zi,template:(e,t)=>G`
|
|
|
12182
12156
|
${tt(0,t)}
|
|
12183
12157
|
</div>
|
|
12184
12158
|
</template>
|
|
12185
|
-
`,styles:
|
|
12159
|
+
`,styles:JN,shadowOptions:{delegatesFocus:!0},end:G`
|
|
12186
12160
|
<${tm}
|
|
12187
12161
|
severity="error"
|
|
12188
12162
|
class="error-icon"
|
|
@@ -12192,8 +12166,8 @@ const QN=JN.compose({baseName:"text-field",baseClass:zi,template:(e,t)=>G`
|
|
|
12192
12166
|
</span>
|
|
12193
12167
|
${Um}
|
|
12194
12168
|
`})
|
|
12195
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
12196
|
-
const
|
|
12169
|
+
yi.getOrCreate().withPrefix("nimble").register(eP())
|
|
12170
|
+
const tP=xe`
|
|
12197
12171
|
${Fo("inline-flex")}
|
|
12198
12172
|
|
|
12199
12173
|
:host {
|
|
@@ -12205,7 +12179,6 @@ const eP=xe`
|
|
|
12205
12179
|
}
|
|
12206
12180
|
|
|
12207
12181
|
.tooltip {
|
|
12208
|
-
box-sizing: border-box;
|
|
12209
12182
|
flex-shrink: 0;
|
|
12210
12183
|
max-width: 440px;
|
|
12211
12184
|
box-shadow: ${gl};
|
|
@@ -12278,7 +12251,7 @@ const eP=xe`
|
|
|
12278
12251
|
.status-icon {
|
|
12279
12252
|
opacity: 0.6;
|
|
12280
12253
|
}
|
|
12281
|
-
`)),
|
|
12254
|
+
`)),nP=G`
|
|
12282
12255
|
${He((e=>e.tooltipVisible),G`
|
|
12283
12256
|
<${ph}
|
|
12284
12257
|
class="anchored-region"
|
|
@@ -12311,11 +12284,11 @@ const eP=xe`
|
|
|
12311
12284
|
</${ph}>
|
|
12312
12285
|
`)}
|
|
12313
12286
|
`
|
|
12314
|
-
class
|
|
12315
|
-
const iP
|
|
12316
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
12317
|
-
const
|
|
12318
|
-
class
|
|
12287
|
+
class iP extends Eo{constructor(){super(...arguments),this.iconVisible=!1}}e([le],iP.prototype,"severity",void 0),e([le({attribute:"icon-visible",mode:"boolean"})],iP.prototype,"iconVisible",void 0)
|
|
12288
|
+
const oP=iP.compose({baseName:"tooltip",baseClass:Eo,template:nP,styles:tP})
|
|
12289
|
+
yi.getOrCreate().withPrefix("nimble").register(oP())
|
|
12290
|
+
const sP="group-selected",rP="all",aP="leaves-only",lP="none"
|
|
12291
|
+
class cP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,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 dP=xe`
|
|
12319
12292
|
${Fo("block")}
|
|
12320
12293
|
|
|
12321
12294
|
:host {
|
|
@@ -12336,7 +12309,7 @@ class lP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
|
|
|
12336
12309
|
}
|
|
12337
12310
|
|
|
12338
12311
|
${""}
|
|
12339
|
-
:host([${
|
|
12312
|
+
:host([${sP}])::after {
|
|
12340
12313
|
background: ${ja};
|
|
12341
12314
|
border-radius: 0px;
|
|
12342
12315
|
content: '';
|
|
@@ -12350,7 +12323,6 @@ class lP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
|
|
|
12350
12323
|
.positioning-region {
|
|
12351
12324
|
display: flex;
|
|
12352
12325
|
position: relative;
|
|
12353
|
-
box-sizing: border-box;
|
|
12354
12326
|
height: calc(${cl} * 2);
|
|
12355
12327
|
}
|
|
12356
12328
|
|
|
@@ -12358,7 +12330,7 @@ class lP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
|
|
|
12358
12330
|
background: ${La};
|
|
12359
12331
|
}
|
|
12360
12332
|
|
|
12361
|
-
:host([${
|
|
12333
|
+
:host([${sP}]) .positioning-region:hover {
|
|
12362
12334
|
background: ${Pa};
|
|
12363
12335
|
}
|
|
12364
12336
|
|
|
@@ -12464,7 +12436,7 @@ class lP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
|
|
|
12464
12436
|
display: block;
|
|
12465
12437
|
}
|
|
12466
12438
|
`.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)
|
|
12467
|
-
t&&Ea.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new
|
|
12439
|
+
t&&Ea.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new cP(this.ltr,this.rtl,e),n=Ea.getValueFor(e)
|
|
12468
12440
|
Ea.subscribe(t),t.attach(n),this.cache.set(e,t)}}(xe`
|
|
12469
12441
|
.expand-collapse-button {
|
|
12470
12442
|
left: var(
|
|
@@ -12496,8 +12468,8 @@ Ea.subscribe(t),t.attach(n),this.cache.set(e,t)}}(xe`
|
|
|
12496
12468
|
transform: rotate(135deg);
|
|
12497
12469
|
}
|
|
12498
12470
|
`))
|
|
12499
|
-
class
|
|
12500
|
-
const hP
|
|
12471
|
+
class hP extends Do{constructor(){super(...arguments),this.groupSelected=!1}}e([le({attribute:"group-selected",mode:"boolean"})],hP.prototype,"groupSelected",void 0)
|
|
12472
|
+
const uP=hP.compose({baseName:"tree-item",baseClass:Do,template:(e,t)=>G`
|
|
12501
12473
|
<template
|
|
12502
12474
|
role="treeitem"
|
|
12503
12475
|
slot="${e=>e.isNestedItem()?"item":void 0}"
|
|
@@ -12537,9 +12509,9 @@ const hP=dP.compose({baseName:"tree-item",baseClass:Do,template:(e,t)=>G`
|
|
|
12537
12509
|
</div>
|
|
12538
12510
|
`)}
|
|
12539
12511
|
</template>
|
|
12540
|
-
`,styles:
|
|
12541
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
12542
|
-
const
|
|
12512
|
+
`,styles:dP,expandCollapseGlyph:Ih.data})
|
|
12513
|
+
yi.getOrCreate().withPrefix("nimble").register(uP())
|
|
12514
|
+
const pP=xe`
|
|
12543
12515
|
${Fo("flex")}
|
|
12544
12516
|
|
|
12545
12517
|
:host {
|
|
@@ -12551,7 +12523,7 @@ const uP=xe`
|
|
|
12551
12523
|
:host(${No}) {
|
|
12552
12524
|
outline: none;
|
|
12553
12525
|
}
|
|
12554
|
-
`,
|
|
12526
|
+
`,fP=G`
|
|
12555
12527
|
<template
|
|
12556
12528
|
role="tree"
|
|
12557
12529
|
${Pe("treeView")}
|
|
@@ -12565,248 +12537,248 @@ const uP=xe`
|
|
|
12565
12537
|
<slot ${Ye("slottedTreeItems")}></slot>
|
|
12566
12538
|
</template>
|
|
12567
12539
|
`
|
|
12568
|
-
class
|
|
12540
|
+
class mP extends Ao{constructor(){super(...arguments),this.selectionMode=rP,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
|
|
12569
12541
|
if(!(e.target instanceof Element&&Io(e.target)))return!0
|
|
12570
12542
|
const t=e.target
|
|
12571
|
-
return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case
|
|
12572
|
-
case
|
|
12573
|
-
case
|
|
12574
|
-
default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof
|
|
12543
|
+
return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case rP:return!0
|
|
12544
|
+
case lP:return!1
|
|
12545
|
+
case aP:return!this.itemHasChildren(e)
|
|
12546
|
+
default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof hP&&(e.groupSelected=!1)
|
|
12575
12547
|
for(let e of this.selectedItems){for(;null!==e.parentElement&&e.parentElement!==this;)e=e.parentElement
|
|
12576
|
-
e instanceof
|
|
12577
|
-
const mP
|
|
12578
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
12579
|
-
const
|
|
12580
|
-
class
|
|
12581
|
-
this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(t,this.locale),this.scaledPrefixText=n}static createFactory(e){return t=>new
|
|
12548
|
+
e instanceof hP&&(e.groupSelected=!0)}}}e([le({attribute:"selection-mode"})],mP.prototype,"selectionMode",void 0),e([g],mP.prototype,"selectedItems",void 0)
|
|
12549
|
+
const gP=mP.compose({baseName:"tree-view",baseClass:Ao,template:fP,styles:pP})
|
|
12550
|
+
yi.getOrCreate().withPrefix("nimble").register(gP())
|
|
12551
|
+
const vP=G`<template slot="unit"></template>`
|
|
12552
|
+
class bP{constructor(e,t,n){this.singular=e,this.plural=t,this.symbol=n}}class yP extends xN{constructor(e,{unitTranslations:t,scaledPrefixText:n}){if(super(e),!t.get("en"))throw new Error('English translations must exist with locale string "en"')
|
|
12553
|
+
this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(t,this.locale),this.scaledPrefixText=n}static createFactory(e){return t=>new yP(t,e)}format(e){const t=this.formatter.format(e)
|
|
12582
12554
|
if(""!==this.scaledPrefixText)return`${t} ${this.scaledPrefixText}${this.unitTranslation.symbol}`
|
|
12583
12555
|
return`${t} ${"one"===this.pluralRules.select(e)?this.unitTranslation.singular:this.unitTranslation.plural}`}getTranslationToUse(e,t){const n=new Intl.Locale(t??"en"),i=n.language,o=n.region
|
|
12584
|
-
return(o?e.get(`${i}-${o}`):void 0)??e.get(i)??e.get("en")}}const
|
|
12585
|
-
const
|
|
12586
|
-
const
|
|
12556
|
+
return(o?e.get(`${i}-${o}`):void 0)??e.get(i)??e.get("en")}}const wP=new Map([["en",new bP("byte","bytes","B")],["fr",new bP("octet","octets","o")],["de",new bP("Byte","Byte","B")],["ja",new bP("バイト","バイト","B")],["zh",new bP("字节","字节","B")]]),xP=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
|
|
12557
|
+
const CP=new class extends SN{constructor(){super(xP.map((([e,t])=>new kN(e,yP.createFactory({unitTranslations:wP,scaledPrefixText:t})))))}},kP=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
|
|
12558
|
+
const SP=new class extends SN{constructor(){super(kP.map((([e,t,n])=>new kN(e,CN.createFactory({style:"unit",unit:t,unitDisplay:n})))))}},$P=xe`
|
|
12587
12559
|
${Fo("none")}
|
|
12588
12560
|
`
|
|
12589
|
-
class
|
|
12590
|
-
const MP
|
|
12591
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
12592
|
-
const
|
|
12593
|
-
const
|
|
12594
|
-
const
|
|
12595
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
12596
|
-
var
|
|
12597
|
-
function
|
|
12598
|
-
i[e]=[]}return new
|
|
12599
|
-
break}return null!=n&&e.push({name:t,value:n}),e}
|
|
12561
|
+
class MP extends TN{constructor(){super(),this.binary=!1,this.resolvedUnitScale=SP}binaryChanged(){this.resolvedUnitScale=this.binary?CP:SP}}e([le({mode:"boolean"})],MP.prototype,"binary",void 0)
|
|
12562
|
+
const _P=MP.compose({baseName:"unit-byte",template:vP,styles:$P})
|
|
12563
|
+
yi.getOrCreate().withPrefix("nimble").register(_P())
|
|
12564
|
+
const EP=[[1e-15,"f"],[1e-12,"p"],[1e-9,"n"],[10**-6,"μ"],[.001,"m"],[.01,"c"],[.1,"d"],[1,""],[1e3,"k"],[10**6,"M"],[10**9,"G"],[10**12,"T"],[10**15,"P"],[10**18,"E"]],IP=new Map([["en",new bP("volt","volts","V")],["fr",new bP("volt","volts","V")],["de",new bP("Volt","Volt","V")],["ja",new bP("ボルト","ボルト","V")],["zh",new bP("伏特","伏特","V")]])
|
|
12565
|
+
const DP=new class extends SN{constructor(){super(EP.map((([e,t])=>new kN(e,yP.createFactory({unitTranslations:IP,scaledPrefixText:t})))))}}
|
|
12566
|
+
const AP=class extends TN{constructor(){super(),this.resolvedUnitScale=DP}}.compose({baseName:"unit-volt",template:vP,styles:$P})
|
|
12567
|
+
yi.getOrCreate().withPrefix("nimble").register(AP())
|
|
12568
|
+
var TP={value:()=>{}}
|
|
12569
|
+
function OP(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e)
|
|
12570
|
+
i[e]=[]}return new RP(i)}function RP(e){this._=e}function FP(e,t){for(var n,i=0,o=e.length;i<o;++i)if((n=e[i]).name===t)return n.value}function NP(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=TP,e=e.slice(0,i).concat(e.slice(i+1))
|
|
12571
|
+
break}return null!=n&&e.push({name:t,value:n}),e}RP.prototype=OP.prototype={constructor:RP,on:function(e,t){var n,i,o=this._,s=(i=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
|
|
12600
12572
|
if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!i.hasOwnProperty(e))throw new Error("unknown type: "+e)
|
|
12601
12573
|
return{type:e,name:t}}))),r=-1,a=s.length
|
|
12602
12574
|
if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
|
|
12603
|
-
for(;++r<a;)if(n=(e=s[r]).type)o[n]=
|
|
12604
|
-
else if(null==t)for(n in o)o[n]=
|
|
12605
|
-
return this}for(;++r<a;)if((n=(e=s[r]).type)&&(n=
|
|
12575
|
+
for(;++r<a;)if(n=(e=s[r]).type)o[n]=NP(o[n],e.name,t)
|
|
12576
|
+
else if(null==t)for(n in o)o[n]=NP(o[n],e.name,null)
|
|
12577
|
+
return this}for(;++r<a;)if((n=(e=s[r]).type)&&(n=FP(o[n],e.name)))return n},copy:function(){var e={},t=this._
|
|
12606
12578
|
for(var n in t)e[n]=t[n].slice()
|
|
12607
|
-
return new
|
|
12579
|
+
return new RP(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),s=0;s<n;++s)o[s]=arguments[s+2]
|
|
12608
12580
|
if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
|
|
12609
12581
|
for(s=0,n=(i=this._[e]).length;s<n;++s)i[s].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
|
|
12610
12582
|
for(var i=this._[e],o=0,s=i.length;o<s;++o)i[o].value.apply(t,n)}}
|
|
12611
|
-
var
|
|
12612
|
-
function
|
|
12613
|
-
return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),
|
|
12614
|
-
return n===
|
|
12615
|
-
return(t.local?VP
|
|
12616
|
-
var t}}function
|
|
12617
|
-
function
|
|
12618
|
-
function
|
|
12619
|
-
for(;a<l;++a)(r=t[a])&&(o[a]=r)}function
|
|
12583
|
+
var PP="http://www.w3.org/1999/xhtml",LP={svg:"http://www.w3.org/2000/svg",xhtml:PP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
|
|
12584
|
+
function zP(e){var t=e+="",n=t.indexOf(":")
|
|
12585
|
+
return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),LP.hasOwnProperty(t)?{space:LP[t],local:e}:e}function VP(e){return function(){var t=this.ownerDocument,n=this.namespaceURI
|
|
12586
|
+
return n===PP&&t.documentElement.namespaceURI===PP?t.createElement(e):t.createElementNS(n,e)}}function HP(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function BP(e){var t=zP(e)
|
|
12587
|
+
return(t.local?HP:VP)(t)}function qP(){}function UP(e){return null==e?qP:function(){return this.querySelector(e)}}function jP(){return[]}function WP(e){return null==e?jP:function(){return this.querySelectorAll(e)}}function GP(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t)
|
|
12588
|
+
var t}}function ZP(e){return function(){return this.matches(e)}}function KP(e){return function(t){return t.matches(e)}}var XP=Array.prototype.find
|
|
12589
|
+
function YP(){return this.firstElementChild}var JP=Array.prototype.filter
|
|
12590
|
+
function QP(){return Array.from(this.children)}function eL(e){return new Array(e.length)}function tL(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function nL(e,t,n,i,o,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):n[a]=new tL(e,s[a])
|
|
12591
|
+
for(;a<l;++a)(r=t[a])&&(o[a]=r)}function iL(e,t,n,i,o,s,r){var a,l,c,d=new Map,h=t.length,u=s.length,p=new Array(h)
|
|
12620
12592
|
for(a=0;a<h;++a)(l=t[a])&&(p[a]=c=r.call(l,l.__data__,a,t)+"",d.has(c)?o[a]=l:d.set(c,l))
|
|
12621
|
-
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)):n[a]=new
|
|
12622
|
-
for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function
|
|
12623
|
-
null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function
|
|
12624
|
-
null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function
|
|
12625
|
-
null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function
|
|
12626
|
-
null==n?delete this[e]:this[e]=n}}function
|
|
12627
|
-
this.textContent=null==t?"":t}}function
|
|
12628
|
-
this.innerHTML=null==t?"":t}}function
|
|
12629
|
-
e&&e.removeChild(this)}function
|
|
12630
|
-
return t?t.insertBefore(e,this.nextSibling):e}function
|
|
12631
|
-
return t?t.insertBefore(e,this.nextSibling):e}function
|
|
12632
|
-
if(t){for(var n,i=0,o=-1,s=t.length;i<s;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function
|
|
12593
|
+
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)):n[a]=new tL(e,s[a])
|
|
12594
|
+
for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function oL(e){return e.__data__}function sL(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function rL(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function aL(e){return function(){this.removeAttribute(e)}}function lL(e){return function(){this.removeAttributeNS(e.space,e.local)}}function cL(e,t){return function(){this.setAttribute(e,t)}}function dL(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function hL(e,t){return function(){var n=t.apply(this,arguments)
|
|
12595
|
+
null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function uL(e,t){return function(){var n=t.apply(this,arguments)
|
|
12596
|
+
null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function pL(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function fL(e){return function(){this.style.removeProperty(e)}}function mL(e,t,n){return function(){this.style.setProperty(e,t,n)}}function gL(e,t,n){return function(){var i=t.apply(this,arguments)
|
|
12597
|
+
null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function vL(e,t){return e.style.getPropertyValue(t)||pL(e).getComputedStyle(e,null).getPropertyValue(t)}function bL(e){return function(){delete this[e]}}function yL(e,t){return function(){this[e]=t}}function wL(e,t){return function(){var n=t.apply(this,arguments)
|
|
12598
|
+
null==n?delete this[e]:this[e]=n}}function xL(e){return e.trim().split(/^|\s+/)}function CL(e){return e.classList||new kL(e)}function kL(e){this._node=e,this._names=xL(e.getAttribute("class")||"")}function SL(e,t){for(var n=CL(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function $L(e,t){for(var n=CL(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function ML(e){return function(){SL(this,e)}}function _L(e){return function(){$L(this,e)}}function EL(e,t){return function(){(t.apply(this,arguments)?SL:$L)(this,e)}}function IL(){this.textContent=""}function DL(e){return function(){this.textContent=e}}function AL(e){return function(){var t=e.apply(this,arguments)
|
|
12599
|
+
this.textContent=null==t?"":t}}function TL(){this.innerHTML=""}function OL(e){return function(){this.innerHTML=e}}function RL(e){return function(){var t=e.apply(this,arguments)
|
|
12600
|
+
this.innerHTML=null==t?"":t}}function FL(){this.nextSibling&&this.parentNode.appendChild(this)}function NL(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function PL(){return null}function LL(){var e=this.parentNode
|
|
12601
|
+
e&&e.removeChild(this)}function zL(){var e=this.cloneNode(!1),t=this.parentNode
|
|
12602
|
+
return t?t.insertBefore(e,this.nextSibling):e}function VL(){var e=this.cloneNode(!0),t=this.parentNode
|
|
12603
|
+
return t?t.insertBefore(e,this.nextSibling):e}function HL(e){return function(){var t=this.__on
|
|
12604
|
+
if(t){for(var n,i=0,o=-1,s=t.length;i<s;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function BL(e,t,n){return function(){var i,o=this.__on,s=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
|
|
12633
12605
|
if(o)for(var r=0,a=o.length;r<a;++r)if((i=o[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=n),void(i.value=t)
|
|
12634
|
-
this.addEventListener(e.type,s,n),i={type:e.type,name:e.name,value:t,listener:s,options:n},o?o.push(i):this.__on=[i]}}function
|
|
12635
|
-
"function"==typeof o?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function
|
|
12606
|
+
this.addEventListener(e.type,s,n),i={type:e.type,name:e.name,value:t,listener:s,options:n},o?o.push(i):this.__on=[i]}}function qL(e,t,n){var i=pL(e),o=i.CustomEvent
|
|
12607
|
+
"function"==typeof o?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function UL(e,t){return function(){return qL(this,e,t)}}function jL(e,t){return function(){return qL(this,e,t.apply(this,arguments))}}tL.prototype={constructor:tL,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)}},kL.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)
|
|
12636
12608
|
t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
|
|
12637
|
-
var
|
|
12638
|
-
function
|
|
12609
|
+
var WL=[null]
|
|
12610
|
+
function GL(e,t){this._groups=e,this._parents=t}function ZL(){return new GL([[document.documentElement]],WL)}function KL(e){return"string"==typeof e?new GL([[document.querySelector(e)]],[document.documentElement]):new GL([[e]],WL)}function XL(e,t){if(e=function(e){let t
|
|
12639
12611
|
for(;t=e.sourceEvent;)e=t
|
|
12640
12612
|
return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t
|
|
12641
12613
|
if(n.createSVGPoint){var i=n.createSVGPoint()
|
|
12642
12614
|
return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect()
|
|
12643
|
-
return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}
|
|
12615
|
+
return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}GL.prototype=ZL.prototype={constructor:GL,select:function(e){"function"!=typeof e&&(e=UP(e))
|
|
12644
12616
|
for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var s,r,a=t[o],l=a.length,c=i[o]=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)
|
|
12645
|
-
return new
|
|
12617
|
+
return new GL(i,this._parents)},selectAll:function(e){e="function"==typeof e?GP(e):WP(e)
|
|
12646
12618
|
for(var t=this._groups,n=t.length,i=[],o=[],s=0;s<n;++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)),o.push(r))
|
|
12647
|
-
return new
|
|
12619
|
+
return new GL(i,o)},selectChild:function(e){return this.select(null==e?YP:function(e){return function(){return XP.call(this.children,e)}}("function"==typeof e?e:KP(e)))},selectChildren:function(e){return this.selectAll(null==e?QP:function(e){return function(){return JP.call(this.children,e)}}("function"==typeof e?e:KP(e)))},filter:function(e){"function"!=typeof e&&(e=ZP(e))
|
|
12648
12620
|
for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var s,r=t[o],a=r.length,l=i[o]=[],c=0;c<a;++c)(s=r[c])&&e.call(s,s.__data__,c,r)&&l.push(s)
|
|
12649
|
-
return new
|
|
12650
|
-
var n,i=t?nL
|
|
12621
|
+
return new GL(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,oL)
|
|
12622
|
+
var n,i=t?iL:nL,o=this._parents,s=this._groups
|
|
12651
12623
|
"function"!=typeof e&&(n=e,e=function(){return n})
|
|
12652
|
-
for(var r=s.length,a=new Array(r),l=new Array(r),c=new Array(r),d=0;d<r;++d){var h=o[d],u=s[d],p=u.length,f=
|
|
12624
|
+
for(var r=s.length,a=new Array(r),l=new Array(r),c=new Array(r),d=0;d<r;++d){var h=o[d],u=s[d],p=u.length,f=sL(e.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
|
|
12653
12625
|
i(h,u,g,v,c[d]=new Array(p),f,t)
|
|
12654
|
-
for(var b,y,w=0,x=0;w<m;++w)if(b=g[w]){for(w>=x&&(x=w+1);!(y=v[x])&&++x<m;);b._next=y||null}}return(a=new
|
|
12626
|
+
for(var b,y,w=0,x=0;w<m;++w)if(b=g[w]){for(w>=x&&(x=w+1);!(y=v[x])&&++x<m;);b._next=y||null}}return(a=new GL(a,o))._enter=l,a._exit=c,a},enter:function(){return new GL(this._enter||this._groups.map(eL),this._parents)},exit:function(){return new GL(this._exit||this._groups.map(eL),this._parents)},join:function(e,t,n){var i=this.enter(),o=this,s=this.exit()
|
|
12655
12627
|
return"function"==typeof e?(i=e(i))&&(i=i.selection()):i=i.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?s.remove():n(s),i&&o?i.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,o=n.length,s=i.length,r=Math.min(o,s),a=new Array(o),l=0;l<r;++l)for(var c,d=n[l],h=i[l],u=d.length,p=a[l]=new Array(u),f=0;f<u;++f)(c=d[f]||h[f])&&(p[f]=c)
|
|
12656
12628
|
for(;l<o;++l)a[l]=n[l]
|
|
12657
|
-
return new
|
|
12658
|
-
return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=
|
|
12629
|
+
return new GL(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,o=e[t],s=o.length-1,r=o[s];--s>=0;)(i=o[s])&&(r&&4^i.compareDocumentPosition(r)&&r.parentNode.insertBefore(i,r),r=i)
|
|
12630
|
+
return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=rL)
|
|
12659
12631
|
for(var n=this._groups,i=n.length,o=new Array(i),s=0;s<i;++s){for(var r,a=n[s],l=a.length,c=o[s]=new Array(l),d=0;d<l;++d)(r=a[d])&&(c[d]=r)
|
|
12660
|
-
c.sort(t)}return new
|
|
12632
|
+
c.sort(t)}return new GL(o,this._parents).order()},call:function(){var e=arguments[0]
|
|
12661
12633
|
return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,s=i.length;o<s;++o){var r=i[o]
|
|
12662
12634
|
if(r)return r}return null},size:function(){let e=0
|
|
12663
12635
|
for(const t of this)++e
|
|
12664
12636
|
return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o,s=t[n],r=0,a=s.length;r<a;++r)(o=s[r])&&e.call(o,o.__data__,r,s)
|
|
12665
|
-
return this},attr:function(e,t){var n=
|
|
12637
|
+
return this},attr:function(e,t){var n=zP(e)
|
|
12666
12638
|
if(arguments.length<2){var i=this.node()
|
|
12667
|
-
return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?aL:
|
|
12668
|
-
if(arguments.length<2){for(var i=
|
|
12669
|
-
return!0}return this.each(("function"==typeof t?
|
|
12670
|
-
return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:
|
|
12671
|
-
return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(
|
|
12639
|
+
return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?lL:aL:"function"==typeof t?n.local?uL:hL:n.local?dL:cL)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?fL:"function"==typeof t?gL:mL)(e,t,null==n?"":n)):vL(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?bL:"function"==typeof t?wL:yL)(e,t)):this.node()[e]},classed:function(e,t){var n=xL(e+"")
|
|
12640
|
+
if(arguments.length<2){for(var i=CL(this.node()),o=-1,s=n.length;++o<s;)if(!i.contains(n[o]))return!1
|
|
12641
|
+
return!0}return this.each(("function"==typeof t?EL:t?ML:_L)(n,t))},text:function(e){return arguments.length?this.each(null==e?IL:("function"==typeof e?AL:DL)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?TL:("function"==typeof e?RL:OL)(e)):this.node().innerHTML},raise:function(){return this.each(FL)},lower:function(){return this.each(NL)},append:function(e){var t="function"==typeof e?e:BP(e)
|
|
12642
|
+
return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:BP(e),i=null==t?PL:"function"==typeof t?t:UP(t)
|
|
12643
|
+
return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(LL)},clone:function(e){return this.select(e?VL:zL)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,o,s=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
|
|
12672
12644
|
return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),r=s.length
|
|
12673
|
-
if(!(arguments.length<2)){for(a=t?HL
|
|
12645
|
+
if(!(arguments.length<2)){for(a=t?BL:HL,i=0;i<r;++i)this.each(a(s[i],t,n))
|
|
12674
12646
|
return this}var a=this.node().__on
|
|
12675
|
-
if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<r;++i)if((o=s[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?UL
|
|
12676
|
-
const
|
|
12677
|
-
function
|
|
12647
|
+
if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<r;++i)if((o=s[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?jL:UL)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i,o=e[t],s=0,r=o.length;s<r;++s)(i=o[s])&&(yield i)}}
|
|
12648
|
+
const YL={capture:!0,passive:!1}
|
|
12649
|
+
function JL(e){e.preventDefault(),e.stopImmediatePropagation()}function QL(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ez(e,t){var n=Object.create(e.prototype)
|
|
12678
12650
|
for(var i in t)n[i]=t[i]
|
|
12679
|
-
return n}function
|
|
12680
|
-
function
|
|
12681
|
-
return e=(e+"").trim().toLowerCase(),(t=
|
|
12682
|
-
var o}function
|
|
12683
|
-
return`${1===e?"rgb(":"rgba("}${
|
|
12684
|
-
if(e instanceof
|
|
12685
|
-
if(e instanceof
|
|
12651
|
+
return n}function tz(){}var nz=.7,iz=1/nz,oz="\\s*([+-]?\\d+)\\s*",sz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",az=/^#([0-9a-f]{3,8})$/,lz=new RegExp(`^rgb\\(${oz},${oz},${oz}\\)$`),cz=new RegExp(`^rgb\\(${rz},${rz},${rz}\\)$`),dz=new RegExp(`^rgba\\(${oz},${oz},${oz},${sz}\\)$`),hz=new RegExp(`^rgba\\(${rz},${rz},${rz},${sz}\\)$`),uz=new RegExp(`^hsl\\(${sz},${rz},${rz}\\)$`),pz=new RegExp(`^hsla\\(${sz},${rz},${rz},${sz}\\)$`),fz={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}
|
|
12652
|
+
function mz(){return this.rgb().formatHex()}function gz(){return this.rgb().formatRgb()}function vz(e){var t,n
|
|
12653
|
+
return e=(e+"").trim().toLowerCase(),(t=az.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?bz(t):3===n?new xz(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?yz(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?yz(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=lz.exec(e))?new xz(t[1],t[2],t[3],1):(t=cz.exec(e))?new xz(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=dz.exec(e))?yz(t[1],t[2],t[3],t[4]):(t=hz.exec(e))?yz(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=uz.exec(e))?_z(t[1],t[2]/100,t[3]/100,1):(t=pz.exec(e))?_z(t[1],t[2]/100,t[3]/100,t[4]):fz.hasOwnProperty(e)?bz(fz[e]):"transparent"===e?new xz(NaN,NaN,NaN,0):null}function bz(e){return new xz(e>>16&255,e>>8&255,255&e,1)}function yz(e,t,n,i){return i<=0&&(e=t=n=NaN),new xz(e,t,n,i)}function wz(e,t,n,i){return 1===arguments.length?((o=e)instanceof tz||(o=vz(o)),o?new xz((o=o.rgb()).r,o.g,o.b,o.opacity):new xz):new xz(e,t,n,null==i?1:i)
|
|
12654
|
+
var o}function xz(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function Cz(){return`#${Mz(this.r)}${Mz(this.g)}${Mz(this.b)}`}function kz(){const e=Sz(this.opacity)
|
|
12655
|
+
return`${1===e?"rgb(":"rgba("}${$z(this.r)}, ${$z(this.g)}, ${$z(this.b)}${1===e?")":`, ${e})`}`}function Sz(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function $z(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Mz(e){return((e=$z(e))<16?"0":"")+e.toString(16)}function _z(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Iz(e,t,n,i)}function Ez(e){if(e instanceof Iz)return new Iz(e.h,e.s,e.l,e.opacity)
|
|
12656
|
+
if(e instanceof tz||(e=vz(e)),!e)return new Iz
|
|
12657
|
+
if(e instanceof Iz)return e
|
|
12686
12658
|
var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),s=Math.max(t,n,i),r=NaN,a=s-o,l=(s+o)/2
|
|
12687
|
-
return a?(r=t===s?(n-i)/a+6*(n<i):n===s?(i-t)/a+2:(t-n)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new
|
|
12688
|
-
return new
|
|
12689
|
-
return`${1===e?"hsl(":"hsla("}${
|
|
12690
|
-
var
|
|
12691
|
-
function
|
|
12692
|
-
return n?function(e,t){return function(n){return e+n*t}}(e,n):
|
|
12693
|
-
function i(e,t){var i=n((e=
|
|
12659
|
+
return a?(r=t===s?(n-i)/a+6*(n<i):n===s?(i-t)/a+2:(t-n)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new Iz(r,a,l,e.opacity)}function Iz(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Dz(e){return(e=(e||0)%360)<0?e+360:e}function Az(e){return Math.max(0,Math.min(1,e||0))}function Tz(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}QL(tz,vz,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:mz,formatHex:mz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ez(this).formatHsl()},formatRgb:gz,toString:gz}),QL(xz,wz,ez(tz,{brighter(e){return e=null==e?iz:Math.pow(iz,e),new xz(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?nz:Math.pow(nz,e),new xz(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xz($z(this.r),$z(this.g),$z(this.b),Sz(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:Cz,formatHex:Cz,formatHex8:function(){return`#${Mz(this.r)}${Mz(this.g)}${Mz(this.b)}${Mz(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:kz,toString:kz})),QL(Iz,(function(e,t,n,i){return 1===arguments.length?Ez(e):new Iz(e,t,n,null==i?1:i)}),ez(tz,{brighter(e){return e=null==e?iz:Math.pow(iz,e),new Iz(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?nz:Math.pow(nz,e),new Iz(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,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i
|
|
12660
|
+
return new xz(Tz(e>=240?e-240:e+120,o,i),Tz(e,o,i),Tz(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Iz(Dz(this.h),Az(this.s),Az(this.l),Sz(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=Sz(this.opacity)
|
|
12661
|
+
return`${1===e?"hsl(":"hsla("}${Dz(this.h)}, ${100*Az(this.s)}%, ${100*Az(this.l)}%${1===e?")":`, ${e})`}`}}))
|
|
12662
|
+
var Oz=e=>()=>e
|
|
12663
|
+
function Rz(e){return 1==(e=+e)?Fz:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):Oz(isNaN(t)?n:t)}}function Fz(e,t){var n=t-e
|
|
12664
|
+
return n?function(e,t){return function(n){return e+n*t}}(e,n):Oz(isNaN(e)?t:e)}var Nz=function e(t){var n=Rz(t)
|
|
12665
|
+
function i(e,t){var i=n((e=wz(e)).r,(t=wz(t)).r),o=n(e.g,t.g),s=n(e.b,t.b),r=Fz(e.opacity,t.opacity)
|
|
12694
12666
|
return function(t){return e.r=i(t),e.g=o(t),e.b=s(t),e.opacity=r(t),e+""}}return i.gamma=e,i}(1)
|
|
12695
|
-
function
|
|
12667
|
+
function Pz(e,t){t||(t=[])
|
|
12696
12668
|
var n,i=e?Math.min(t.length,e.length):0,o=t.slice()
|
|
12697
12669
|
return function(s){for(n=0;n<i;++n)o[n]=e[n]*(1-s)+t[n]*s
|
|
12698
|
-
return o}}function
|
|
12699
|
-
for(n=0;n<o;++n)s[n]=
|
|
12670
|
+
return o}}function Lz(e,t){var n,i=t?t.length:0,o=e?Math.min(i,e.length):0,s=new Array(o),r=new Array(i)
|
|
12671
|
+
for(n=0;n<o;++n)s[n]=jz(e[n],t[n])
|
|
12700
12672
|
for(;n<i;++n)r[n]=t[n]
|
|
12701
12673
|
return function(e){for(n=0;n<o;++n)r[n]=s[n](e)
|
|
12702
|
-
return r}}function
|
|
12703
|
-
return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function
|
|
12704
|
-
for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=
|
|
12674
|
+
return r}}function zz(e,t){var n=new Date
|
|
12675
|
+
return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function Vz(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Hz(e,t){var n,i={},o={}
|
|
12676
|
+
for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=jz(e[n],t[n]):o[n]=t[n]
|
|
12705
12677
|
return function(e){for(n in i)o[n]=i[n](e)
|
|
12706
|
-
return o}}var
|
|
12707
|
-
function
|
|
12708
|
-
for(e+="",t+="";(n=
|
|
12678
|
+
return o}}var Bz=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qz=new RegExp(Bz.source,"g")
|
|
12679
|
+
function Uz(e,t){var n,i,o,s=Bz.lastIndex=qz.lastIndex=0,r=-1,a=[],l=[]
|
|
12680
|
+
for(e+="",t+="";(n=Bz.exec(e))&&(i=qz.exec(t));)(o=i.index)>s&&(o=t.slice(s,o),a[r]?a[r]+=o:a[++r]=o),(n=n[0])===(i=i[0])?a[r]?a[r]+=i:a[++r]=i:(a[++r]=null,l.push({i:r,x:Vz(n,i)})),s=qz.lastIndex
|
|
12709
12681
|
return s<t.length&&(o=t.slice(s),a[r]?a[r]+=o:a[++r]=o),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 n,i=0;i<t;++i)a[(n=l[i]).i]=n.x(e)
|
|
12710
|
-
return a.join("")})}function
|
|
12711
|
-
return null==t||"boolean"===o?
|
|
12712
|
-
function
|
|
12713
|
-
return(r=Math.sqrt(e*e+t*t))&&(e/=r,t/=r),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,r=-r),{translateX:o,translateY:s,rotate:Math.atan2(t,e)*
|
|
12682
|
+
return a.join("")})}function jz(e,t){var n,i,o=typeof t
|
|
12683
|
+
return null==t||"boolean"===o?Oz(t):("number"===o?Vz:"string"===o?(n=vz(t))?(t=n,Nz):Uz:t instanceof vz?Nz:t instanceof Date?zz:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?Lz:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Hz:Vz:Pz))(e,t)}function Wz(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Gz,Zz=180/Math.PI,Kz={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
|
|
12684
|
+
function Xz(e,t,n,i,o,s){var r,a,l
|
|
12685
|
+
return(r=Math.sqrt(e*e+t*t))&&(e/=r,t/=r),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,r=-r),{translateX:o,translateY:s,rotate:Math.atan2(t,e)*Zz,skewX:Math.atan(l)*Zz,scaleX:r,scaleY:a}}function Yz(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}return function(s,r){var a=[],l=[]
|
|
12714
12686
|
return s=e(s),r=e(r),function(e,i,o,s,r,a){if(e!==o||i!==s){var l=r.push("translate(",null,t,null,n)
|
|
12715
|
-
a.push({i:l-4,x:
|
|
12716
|
-
r.push({i:a-4,x:
|
|
12717
|
-
return a.join("")}}}var Yz
|
|
12718
|
-
return t.isIdentity?
|
|
12719
|
-
function
|
|
12687
|
+
a.push({i:l-4,x:Vz(e,o)},{i:l-2,x:Vz(i,s)})}else(o||s)&&r.push("translate("+o+t+s+n)}(s.translateX,s.translateY,r.translateX,r.translateY,a,l),function(e,t,n,s){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),s.push({i:n.push(o(n)+"rotate(",null,i)-2,x:Vz(e,t)})):t&&n.push(o(n)+"rotate("+t+i)}(s.rotate,r.rotate,a,l),function(e,t,n,s){e!==t?s.push({i:n.push(o(n)+"skewX(",null,i)-2,x:Vz(e,t)}):t&&n.push(o(n)+"skewX("+t+i)}(s.skewX,r.skewX,a,l),function(e,t,n,i,s,r){if(e!==n||t!==i){var a=s.push(o(s)+"scale(",null,",",null,")")
|
|
12688
|
+
r.push({i:a-4,x:Vz(e,n)},{i:a-2,x:Vz(t,i)})}else 1===n&&1===i||s.push(o(s)+"scale("+n+","+i+")")}(s.scaleX,s.scaleY,r.scaleX,r.scaleY,a,l),s=r=null,function(e){for(var t,n=-1,i=l.length;++n<i;)a[(t=l[n]).i]=t.x(e)
|
|
12689
|
+
return a.join("")}}}var Jz=Yz((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
|
|
12690
|
+
return t.isIdentity?Kz:Xz(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Qz=Yz((function(e){return null==e?Kz:(Gz||(Gz=document.createElementNS("http://www.w3.org/2000/svg","g")),Gz.setAttribute("transform",e),(e=Gz.transform.baseVal.consolidate())?Xz((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Kz)}),", ",")",")")
|
|
12691
|
+
function eV(e){return((e=Math.exp(e))+1/e)/2}var tV,nV,iV=function e(t,n,i){function o(e,o){var s,r,a=e[0],l=e[1],c=e[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
|
|
12720
12692
|
if(m<1e-12)r=Math.log(u/c)/t,s=function(e){return[a+e*p,l+e*f,c*Math.exp(t*e*r)]}
|
|
12721
12693
|
else{var g=Math.sqrt(m),v=(u*u-c*c+i*m)/(2*c*n*g),b=(u*u-c*c-i*m)/(2*u*n*g),y=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(b*b+1)-b)
|
|
12722
|
-
r=(w-y)/t,s=function(e){var i,o=e*r,s=
|
|
12723
|
-
return[a+d*p,l+d*f,c*s/
|
|
12724
|
-
return e(n,i,i*i)},o}(Math.SQRT2,2,4),
|
|
12725
|
-
function
|
|
12726
|
-
return i.restart(e,t,n),i}function
|
|
12727
|
-
try{!function(){
|
|
12728
|
-
for(var e,t=
|
|
12729
|
-
for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:
|
|
12730
|
-
|
|
12731
|
-
t>
|
|
12732
|
-
return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}
|
|
12733
|
-
n=(null==n?
|
|
12734
|
-
var
|
|
12735
|
-
function
|
|
12694
|
+
r=(w-y)/t,s=function(e){var i,o=e*r,s=eV(y),d=c/(n*g)*(s*(i=t*o+y,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(y))
|
|
12695
|
+
return[a+d*p,l+d*f,c*s/eV(t*o+y)]}}return s.duration=1e3*r*t/Math.SQRT2,s}return o.rho=function(t){var n=Math.max(.001,+t),i=n*n
|
|
12696
|
+
return e(n,i,i*i)},o}(Math.SQRT2,2,4),oV=0,sV=0,rV=0,aV=1e3,lV=0,cV=0,dV=0,hV="object"==typeof performance&&performance.now?performance:Date,uV="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
|
|
12697
|
+
function pV(){return cV||(uV(fV),cV=hV.now()+dV)}function fV(){cV=0}function mV(){this._call=this._time=this._next=null}function gV(e,t,n){var i=new mV
|
|
12698
|
+
return i.restart(e,t,n),i}function vV(){cV=(lV=hV.now())+dV,oV=sV=0
|
|
12699
|
+
try{!function(){pV(),++oV
|
|
12700
|
+
for(var e,t=tV;t;)(e=cV-t._time)>=0&&t._call.call(void 0,e),t=t._next;--oV}()}finally{oV=0,function(){var e,t,n=tV,i=1/0
|
|
12701
|
+
for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:tV=t)
|
|
12702
|
+
nV=e,yV(i)}(),cV=0}}function bV(){var e=hV.now(),t=e-lV
|
|
12703
|
+
t>aV&&(dV-=t,lV=e)}function yV(e){oV||(sV&&(sV=clearTimeout(sV)),e-cV>24?(e<1/0&&(sV=setTimeout(vV,e-hV.now()-dV)),rV&&(rV=clearInterval(rV))):(rV||(lV=hV.now(),rV=setInterval(bV,aV)),oV=1,uV(vV)))}function wV(e,t,n){var i=new mV
|
|
12704
|
+
return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}mV.prototype=gV.prototype={constructor:mV,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function")
|
|
12705
|
+
n=(null==n?pV():+n)+(null==t?0:+t),this._next||nV===this||(nV?nV._next=this:tV=this,nV=this),this._call=e,this._time=n,yV()},stop:function(){this._call&&(this._call=null,this._time=1/0,yV())}}
|
|
12706
|
+
var xV=OP("start","end","cancel","interrupt"),CV=[],kV=0,SV=1,$V=2,MV=3,_V=4,EV=5,IV=6
|
|
12707
|
+
function DV(e,t,n,i,o,s){var r=e.__transition
|
|
12736
12708
|
if(r){if(n in r)return}else e.__transition={}
|
|
12737
12709
|
!function(e,t,n){var i,o=e.__transition
|
|
12738
|
-
function s(e){n.state=
|
|
12739
|
-
if(n.state!==
|
|
12740
|
-
for(c in o)if((u=o[c]).name===n.name){if(u.state
|
|
12741
|
-
u.state===
|
|
12742
|
-
i.length=d+1}}function a(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=
|
|
12743
|
-
n.state===
|
|
12744
|
-
delete e.__transition}o[t]=n,n.timer=
|
|
12745
|
-
if(n.state>
|
|
12746
|
-
return n}function
|
|
12747
|
-
if(n.state
|
|
12748
|
-
return n}function
|
|
12710
|
+
function s(e){n.state=SV,n.timer.restart(r,n.delay,n.time),n.delay<=e&&r(e-n.delay)}function r(s){var c,d,h,u
|
|
12711
|
+
if(n.state!==SV)return l()
|
|
12712
|
+
for(c in o)if((u=o[c]).name===n.name){if(u.state===MV)return wV(r)
|
|
12713
|
+
u.state===_V?(u.state=IV,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=IV,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(wV((function(){n.state===MV&&(n.state=_V,n.timer.restart(a,n.delay,n.time),a(s))})),n.state=$V,n.on.call("start",e,e.__data__,n.index,n.group),n.state===$V){for(n.state=MV,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=u)
|
|
12714
|
+
i.length=d+1}}function a(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=EV,1),s=-1,r=i.length;++s<r;)i[s].call(e,o)
|
|
12715
|
+
n.state===EV&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=IV,n.timer.stop(),delete o[t],o)return
|
|
12716
|
+
delete e.__transition}o[t]=n,n.timer=gV(s,0,n.time)}(e,n,{name:t,index:i,group:o,on:xV,tween:CV,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:kV})}function AV(e,t){var n=OV(e,t)
|
|
12717
|
+
if(n.state>kV)throw new Error("too late; already scheduled")
|
|
12718
|
+
return n}function TV(e,t){var n=OV(e,t)
|
|
12719
|
+
if(n.state>MV)throw new Error("too late; already running")
|
|
12720
|
+
return n}function OV(e,t){var n=e.__transition
|
|
12749
12721
|
if(!n||!(n=n[t]))throw new Error("transition not found")
|
|
12750
|
-
return n}function
|
|
12751
|
-
if(s){for(o in t=null==t?null:t+"",s)(n=s[o]).name===t?(i=n.state
|
|
12752
|
-
r&&delete e.__transition}}function
|
|
12753
|
-
return function(){var o=
|
|
12722
|
+
return n}function RV(e,t){var n,i,o,s=e.__transition,r=!0
|
|
12723
|
+
if(s){for(o in t=null==t?null:t+"",s)(n=s[o]).name===t?(i=n.state>$V&&n.state<EV,n.state=IV,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete s[o]):r=!1
|
|
12724
|
+
r&&delete e.__transition}}function FV(e,t){var n,i
|
|
12725
|
+
return function(){var o=TV(this,e),s=o.tween
|
|
12754
12726
|
if(s!==n)for(var r=0,a=(i=n=s).length;r<a;++r)if(i[r].name===t){(i=i.slice()).splice(r,1)
|
|
12755
|
-
break}o.tween=i}}function
|
|
12727
|
+
break}o.tween=i}}function NV(e,t,n){var i,o
|
|
12756
12728
|
if("function"!=typeof n)throw new Error
|
|
12757
|
-
return function(){var s=
|
|
12729
|
+
return function(){var s=TV(this,e),r=s.tween
|
|
12758
12730
|
if(r!==i){o=(i=r).slice()
|
|
12759
12731
|
for(var a={name:t,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===t){o[l]=a
|
|
12760
|
-
break}l===c&&o.push(a)}s.tween=o}}function
|
|
12761
|
-
return e.each((function(){var e=
|
|
12762
|
-
return("number"==typeof t?
|
|
12732
|
+
break}l===c&&o.push(a)}s.tween=o}}function PV(e,t,n){var i=e._id
|
|
12733
|
+
return e.each((function(){var e=TV(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return OV(e,i).value[t]}}function LV(e,t){var n
|
|
12734
|
+
return("number"==typeof t?Vz:t instanceof vz?Nz:(n=vz(t))?(t=n,Nz):Uz)(e,t)}function zV(e){return function(){this.removeAttribute(e)}}function VV(e){return function(){this.removeAttributeNS(e.space,e.local)}}function HV(e,t,n){var i,o,s=n+""
|
|
12763
12735
|
return function(){var r=this.getAttribute(e)
|
|
12764
|
-
return r===s?null:r===i?o:o=t(i=r,n)}}function
|
|
12736
|
+
return r===s?null:r===i?o:o=t(i=r,n)}}function BV(e,t,n){var i,o,s=n+""
|
|
12765
12737
|
return function(){var r=this.getAttributeNS(e.space,e.local)
|
|
12766
|
-
return r===s?null:r===i?o:o=t(i=r,n)}}function
|
|
12738
|
+
return r===s?null:r===i?o:o=t(i=r,n)}}function qV(e,t,n){var i,o,s
|
|
12767
12739
|
return function(){var r,a,l=n(this)
|
|
12768
12740
|
if(null!=l)return(r=this.getAttribute(e))===(a=l+"")?null:r===i&&a===o?s:(o=a,s=t(i=r,l))
|
|
12769
|
-
this.removeAttribute(e)}}function
|
|
12741
|
+
this.removeAttribute(e)}}function UV(e,t,n){var i,o,s
|
|
12770
12742
|
return function(){var r,a,l=n(this)
|
|
12771
12743
|
if(null!=l)return(r=this.getAttributeNS(e.space,e.local))===(a=l+"")?null:r===i&&a===o?s:(o=a,s=t(i=r,l))
|
|
12772
|
-
this.removeAttributeNS(e.space,e.local)}}function
|
|
12744
|
+
this.removeAttributeNS(e.space,e.local)}}function jV(e,t){var n,i
|
|
12773
12745
|
function o(){var o=t.apply(this,arguments)
|
|
12774
|
-
return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function
|
|
12746
|
+
return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function WV(e,t){var n,i
|
|
12775
12747
|
function o(){var o=t.apply(this,arguments)
|
|
12776
|
-
return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function
|
|
12777
|
-
function
|
|
12778
|
-
function
|
|
12779
|
-
|
|
12780
|
-
"function"!=typeof e&&(e=
|
|
12781
|
-
for(var i=this._groups,o=i.length,s=new Array(o),r=0;r<o;++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,
|
|
12782
|
-
return new
|
|
12783
|
-
"function"!=typeof e&&(e=
|
|
12784
|
-
for(var i=this._groups,o=i.length,s=[],r=[],a=0;a<o;++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),f=
|
|
12785
|
-
s.push(p),r.push(l)}return new
|
|
12748
|
+
return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function GV(e,t){return function(){AV(this,e).delay=+t.apply(this,arguments)}}function ZV(e,t){return t=+t,function(){AV(this,e).delay=t}}function KV(e,t){return function(){TV(this,e).duration=+t.apply(this,arguments)}}function XV(e,t){return t=+t,function(){TV(this,e).duration=t}}var YV=ZL.prototype.constructor
|
|
12749
|
+
function JV(e){return function(){this.style.removeProperty(e)}}var QV=0
|
|
12750
|
+
function eH(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function tH(){return++QV}var nH=ZL.prototype
|
|
12751
|
+
eH.prototype={constructor:eH,select:function(e){var t=this._name,n=this._id
|
|
12752
|
+
"function"!=typeof e&&(e=UP(e))
|
|
12753
|
+
for(var i=this._groups,o=i.length,s=new Array(o),r=0;r<o;++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,DV(h[u],t,n,u,h,OV(a,n)))
|
|
12754
|
+
return new eH(s,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
|
|
12755
|
+
"function"!=typeof e&&(e=WP(e))
|
|
12756
|
+
for(var i=this._groups,o=i.length,s=[],r=[],a=0;a<o;++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),f=OV(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&DV(u,t,n,m,p,f)
|
|
12757
|
+
s.push(p),r.push(l)}return new eH(s,r,t,n)},selectChild:nH.selectChild,selectChildren:nH.selectChildren,filter:function(e){"function"!=typeof e&&(e=ZP(e))
|
|
12786
12758
|
for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var s,r=t[o],a=r.length,l=i[o]=[],c=0;c<a;++c)(s=r[c])&&e.call(s,s.__data__,c,r)&&l.push(s)
|
|
12787
|
-
return new
|
|
12759
|
+
return new eH(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
|
|
12788
12760
|
for(var t=this._groups,n=e._groups,i=t.length,o=n.length,s=Math.min(i,o),r=new Array(i),a=0;a<s;++a)for(var l,c=t[a],d=n[a],h=c.length,u=r[a]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(u[p]=l)
|
|
12789
12761
|
for(;a<i;++a)r[a]=t[a]
|
|
12790
|
-
return new
|
|
12791
|
-
|
|
12792
|
-
return arguments.length<2?
|
|
12793
|
-
return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?
|
|
12762
|
+
return new eH(r,this._parents,this._name,this._id)},selection:function(){return new YV(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=tH(),i=this._groups,o=i.length,s=0;s<o;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)if(r=a[c]){var d=OV(r,t)
|
|
12763
|
+
DV(r,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new eH(i,this._parents,e,n)},call:nH.call,nodes:nH.nodes,node:nH.node,size:nH.size,empty:nH.empty,each:nH.each,on:function(e,t){var n=this._id
|
|
12764
|
+
return arguments.length<2?OV(this.node(),n).on.on(e):this.each(function(e,t,n){var i,o,s=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
|
|
12765
|
+
return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?AV:TV
|
|
12794
12766
|
return function(){var r=s(this,e),a=r.on
|
|
12795
|
-
a!==i&&(o=(i=a).copy()).on(t,n),r.on=o}}(n,e,t))},attr:function(e,t){var n=
|
|
12796
|
-
return this.attrTween(e,"function"==typeof t?(n.local?qV
|
|
12767
|
+
a!==i&&(o=(i=a).copy()).on(t,n),r.on=o}}(n,e,t))},attr:function(e,t){var n=zP(e),i="transform"===n?Qz:LV
|
|
12768
|
+
return this.attrTween(e,"function"==typeof t?(n.local?UV:qV)(n,i,PV(this,"attr."+e,t)):null==t?(n.local?VV:zV)(n):(n.local?BV:HV)(n,i,t))},attrTween:function(e,t){var n="attr."+e
|
|
12797
12769
|
if(arguments.length<2)return(n=this.tween(n))&&n._value
|
|
12798
12770
|
if(null==t)return this.tween(n,null)
|
|
12799
12771
|
if("function"!=typeof t)throw new Error
|
|
12800
|
-
var i=
|
|
12801
|
-
return this.tween(n,(i.local?
|
|
12772
|
+
var i=zP(e)
|
|
12773
|
+
return this.tween(n,(i.local?jV:WV)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?Jz:LV
|
|
12802
12774
|
return null==t?this.styleTween(e,function(e,t){var n,i,o
|
|
12803
|
-
return function(){var s=
|
|
12804
|
-
return s===r?null:s===n&&r===i?o:o=t(n=s,i=r)}}(e,i)).on("end.style."+e,
|
|
12805
|
-
return function(){var r=
|
|
12806
|
-
return null==a&&(this.style.removeProperty(e),l=a=
|
|
12807
|
-
return function(){var l=
|
|
12775
|
+
return function(){var s=vL(this,e),r=(this.style.removeProperty(e),vL(this,e))
|
|
12776
|
+
return s===r?null:s===n&&r===i?o:o=t(n=s,i=r)}}(e,i)).on("end.style."+e,JV(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,o,s
|
|
12777
|
+
return function(){var r=vL(this,e),a=n(this),l=a+""
|
|
12778
|
+
return null==a&&(this.style.removeProperty(e),l=a=vL(this,e)),r===l?null:r===i&&l===o?s:(o=l,s=t(i=r,a))}}(e,i,PV(this,"style."+e,t))).each(function(e,t){var n,i,o,s,r="style."+t,a="end."+r
|
|
12779
|
+
return function(){var l=TV(this,e),c=l.on,d=null==l.value[r]?s||(s=JV(t)):void 0
|
|
12808
12780
|
c===n&&o===d||(i=(n=c).copy()).on(a,o=d),l.on=i}}(this._id,e)):this.styleTween(e,function(e,t,n){var i,o,s=n+""
|
|
12809
|
-
return function(){var r=
|
|
12781
|
+
return function(){var r=vL(this,e)
|
|
12810
12782
|
return r===s?null:r===i?o:o=t(i=r,n)}}(e,i,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var i="style."+(e+="")
|
|
12811
12783
|
if(arguments.length<2)return(i=this.tween(i))&&i._value
|
|
12812
12784
|
if(null==t)return this.tween(i,null)
|
|
@@ -12814,7 +12786,7 @@ if("function"!=typeof t)throw new Error
|
|
|
12814
12786
|
return this.tween(i,function(e,t,n){var i,o
|
|
12815
12787
|
function s(){var s=t.apply(this,arguments)
|
|
12816
12788
|
return s!==o&&(i=(o=s)&&function(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}(e,s,n)),i}return s._value=t,s}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
|
|
12817
|
-
this.textContent=null==t?"":t}}(
|
|
12789
|
+
this.textContent=null==t?"":t}}(PV(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
|
|
12818
12790
|
if(arguments.length<1)return(t=this.tween(t))&&t._value
|
|
12819
12791
|
if(null==e)return this.tween(t,null)
|
|
12820
12792
|
if("function"!=typeof e)throw new Error
|
|
@@ -12823,59 +12795,59 @@ function i(){var i=e.apply(this,arguments)
|
|
|
12823
12795
|
return i!==n&&(t=(n=i)&&function(e){return function(t){this.textContent=e.call(this,t)}}(i)),t}return i._value=e,i}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
|
|
12824
12796
|
for(var n in this.__transition)if(+n!==e)return
|
|
12825
12797
|
t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id
|
|
12826
|
-
if(e+="",arguments.length<2){for(var i,o=
|
|
12827
|
-
return null}return this.each((null==t?
|
|
12828
|
-
return arguments.length?this.each(("function"==typeof e?
|
|
12829
|
-
return arguments.length?this.each(("function"==typeof e?
|
|
12798
|
+
if(e+="",arguments.length<2){for(var i,o=OV(this.node(),n).tween,s=0,r=o.length;s<r;++s)if((i=o[s]).name===e)return i.value
|
|
12799
|
+
return null}return this.each((null==t?FV:NV)(n,e,t))},delay:function(e){var t=this._id
|
|
12800
|
+
return arguments.length?this.each(("function"==typeof e?GV:ZV)(t,e)):OV(this.node(),t).delay},duration:function(e){var t=this._id
|
|
12801
|
+
return arguments.length?this.each(("function"==typeof e?KV:XV)(t,e)):OV(this.node(),t).duration},ease:function(e){var t=this._id
|
|
12830
12802
|
return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error
|
|
12831
|
-
return function(){
|
|
12803
|
+
return function(){TV(this,e).ease=t}}(t,e)):OV(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
|
|
12832
12804
|
return this.each(function(e,t){return function(){var n=t.apply(this,arguments)
|
|
12833
12805
|
if("function"!=typeof n)throw new Error
|
|
12834
|
-
|
|
12806
|
+
TV(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,o=n.size()
|
|
12835
12807
|
return new Promise((function(s,r){var a={value:r},l={value:function(){0==--o&&s()}}
|
|
12836
|
-
n.each((function(){var n=
|
|
12837
|
-
o!==e&&((t=(e=o).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t})),0===o&&s()}))},[Symbol.iterator]:
|
|
12838
|
-
var
|
|
12839
|
-
function
|
|
12840
|
-
return n}
|
|
12841
|
-
e instanceof
|
|
12842
|
-
for(var i=this._groups,o=i.length,s=0;s<o;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)(r=a[c])&&
|
|
12843
|
-
return new
|
|
12844
|
-
var
|
|
12845
|
-
function
|
|
12846
|
-
var
|
|
12847
|
-
function
|
|
12848
|
-
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
|
|
12849
|
-
return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),r>s?(s+r)/2:Math.min(0,s)||Math.max(0,r))}function
|
|
12850
|
-
function v(e){e.property("__zoom",
|
|
12851
|
-
return i===e.x&&o===e.y?e:new
|
|
12808
|
+
n.each((function(){var n=TV(this,i),o=n.on
|
|
12809
|
+
o!==e&&((t=(e=o).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t})),0===o&&s()}))},[Symbol.iterator]:nH[Symbol.iterator]}
|
|
12810
|
+
var iH={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
|
|
12811
|
+
function oH(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
|
|
12812
|
+
return n}ZL.prototype.interrupt=function(e){return this.each((function(){RV(this,e)}))},ZL.prototype.transition=function(e){var t,n
|
|
12813
|
+
e instanceof eH?(t=e._id,e=e._name):(t=tH(),(n=iH).time=pV(),e=null==e?null:e+"")
|
|
12814
|
+
for(var i=this._groups,o=i.length,s=0;s<o;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)(r=a[c])&&DV(r,e,t,c,a,n||oH(r,t))
|
|
12815
|
+
return new eH(i,this._parents,e,t)}
|
|
12816
|
+
var sH=e=>()=>e
|
|
12817
|
+
function rH(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function aH(e,t,n){this.k=e,this.x=t,this.y=n}aH.prototype={constructor:aH,scale:function(e){return 1===e?this:new aH(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new aH(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+")"}}
|
|
12818
|
+
var lH=new aH(1,0,0)
|
|
12819
|
+
function cH(e){e.stopImmediatePropagation()}function dH(e){e.preventDefault(),e.stopImmediatePropagation()}function hH(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function uH(){var e=this
|
|
12820
|
+
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 pH(){return this.__zoom||lH}function fH(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function mH(){return navigator.maxTouchPoints||"ontouchstart"in this}function gH(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],s=e.invertY(t[0][1])-n[0][1],r=e.invertY(t[1][1])-n[1][1]
|
|
12821
|
+
return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),r>s?(s+r)/2:Math.min(0,s)||Math.max(0,r))}function vH(){var e,t,n,i=hH,o=uH,s=gH,r=fH,a=mH,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=iV,u=OP("start","zoom","end"),p=500,f=150,m=0,g=10
|
|
12822
|
+
function v(e){e.property("__zoom",pH).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new aH(t,e.x,e.y)}function y(e,t,n){var i=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k
|
|
12823
|
+
return i===e.x&&o===e.y?e:new aH(e.k,i,o)}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,n,i){e.on("start.zoom",(function(){C(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){C(this,arguments).event(i).end()})).tween("zoom",(function(){var e=this,s=arguments,r=C(e,s).event(i),a=o.apply(e,s),l=null==n?w(a):"function"==typeof n?n.apply(e,s):n,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))
|
|
12852
12824
|
return function(e){if(1===e)e=u
|
|
12853
12825
|
else{var t=p(e),n=c/t[2]
|
|
12854
|
-
e=new
|
|
12826
|
+
e=new aH(n,l[0]-t[0]*n,l[1]-t[1]*n)}r.zoom(null,e)}}))}function C(e,t,n){return!n&&e.__zooming||new k(e,t)}function k(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function S(e,...t){if(i.apply(this,arguments)){var n=C(this,t).event(e),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,r.apply(this,arguments)))),d=XL(e)
|
|
12855
12827
|
if(n.wheel)n.mouse[0][0]===d[0]&&n.mouse[0][1]===d[1]||(n.mouse[1]=o.invert(n.mouse[0]=d)),clearTimeout(n.wheel)
|
|
12856
12828
|
else{if(o.k===a)return
|
|
12857
|
-
n.mouse=[d,o.invert(d)],
|
|
12858
|
-
r.moved=t*t+n*n>m}r.event(e).zoom("mouse",s(y(r.that.__zoom,r.mouse[0]=
|
|
12859
|
-
t&&(i.on("click.drag",YL
|
|
12860
|
-
!function(e){var t=e.document.documentElement,n=
|
|
12861
|
-
"onselectstart"in t?n.on("selectstart.drag",YL
|
|
12862
|
-
|
|
12863
|
-
for(
|
|
12864
|
-
e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),
|
|
12865
|
-
for(
|
|
12829
|
+
n.mouse=[d,o.invert(d)],RV(this),n.start()}dH(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",s(y(b(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function $(e,...t){if(!n&&i.apply(this,arguments)){var o=e.currentTarget,r=C(this,t,!0).event(e),a=KL(e.view).on("mousemove.zoom",(function(e){if(dH(e),!r.moved){var t=e.clientX-d,n=e.clientY-h
|
|
12830
|
+
r.moved=t*t+n*n>m}r.event(e).zoom("mouse",s(y(r.that.__zoom,r.mouse[0]=XL(e,o),r.mouse[1]),r.extent,c))}),!0).on("mouseup.zoom",(function(e){a.on("mousemove.zoom mouseup.zoom",null),function(e,t){var n=e.document.documentElement,i=KL(e).on("dragstart.drag",null)
|
|
12831
|
+
t&&(i.on("click.drag",JL,YL),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,r.moved),dH(e),r.event(e).end()}),!0),l=XL(e,o),d=e.clientX,h=e.clientY
|
|
12832
|
+
!function(e){var t=e.document.documentElement,n=KL(e).on("dragstart.drag",JL,YL)
|
|
12833
|
+
"onselectstart"in t?n.on("selectstart.drag",JL,YL):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),cH(e),r.mouse=[l,this.__zoom.invert(l)],RV(this),r.start()}}function M(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,r=XL(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(r),l=n.k*(e.shiftKey?.5:2),h=s(y(b(n,l),r,a),o.apply(this,t),c)
|
|
12834
|
+
dH(e),d>0?KL(this).transition().duration(d).call(x,h,r,e):KL(this).call(v.transform,h,r,e)}}function _(n,...o){if(i.apply(this,arguments)){var s,r,a,l,c=n.touches,d=c.length,h=C(this,o,n.changedTouches.length===d).event(n)
|
|
12835
|
+
for(cH(n),r=0;r<d;++r)l=[l=XL(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)
|
|
12836
|
+
e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),RV(this),h.start())}}function E(e,...t){if(this.__zooming){var n,i,o,r,a=C(this,t).event(e),l=e.changedTouches,d=l.length
|
|
12837
|
+
for(dH(e),n=0;n<d;++n)o=XL(i=l[n],this),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=o:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=o)
|
|
12866
12838
|
if(i=a.that.__zoom,a.touch1){var h=a.touch0[0],u=a.touch0[1],p=a.touch1[0],f=a.touch1[1],m=(m=p[0]-h[0])*m+(m=p[1]-h[1])*m,g=(g=f[0]-u[0])*g+(g=f[1]-u[1])*g
|
|
12867
12839
|
i=b(i,Math.sqrt(m/g)),o=[(h[0]+p[0])/2,(h[1]+p[1])/2],r=[(u[0]+f[0])/2,(u[1]+f[1])/2]}else{if(!a.touch0)return
|
|
12868
12840
|
o=a.touch0[0],r=a.touch0[1]}a.zoom("touch",s(y(i,o,r),a.extent,c))}}function I(e,...i){if(this.__zooming){var o,s,r=C(this,i).event(e),a=e.changedTouches,l=a.length
|
|
12869
|
-
for(
|
|
12841
|
+
for(cH(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<l;++o)s=a[o],r.touch0&&r.touch0[2]===s.identifier?delete r.touch0:r.touch1&&r.touch1[2]===s.identifier&&delete r.touch1
|
|
12870
12842
|
if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0])
|
|
12871
|
-
else if(r.end(),2===r.taps&&(s=
|
|
12843
|
+
else if(r.end(),2===r.taps&&(s=XL(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<g)){var c=KL(this).on("dblclick.zoom")
|
|
12872
12844
|
c&&c.apply(this,arguments)}}}return v.transform=function(e,t,n,i){var o=e.selection?e.selection():e
|
|
12873
|
-
o.property("__zoom",
|
|
12845
|
+
o.property("__zoom",pH),e!==o?x(e,t,n,i):o.interrupt().each((function(){C(this,arguments).event(i).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,i){v.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),n,i)},v.scaleTo=function(e,t,n,i){v.transform(e,(function(){var e=o.apply(this,arguments),i=this.__zoom,r=null==n?w(e):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(r),l="function"==typeof t?t.apply(this,arguments):t
|
|
12874
12846
|
return s(y(b(i,l),r,a),e,c)}),n,i)},v.translateBy=function(e,t,n,i){v.transform(e,(function(){return s(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)}),null,i)},v.translateTo=function(e,t,n,i,r){v.transform(e,(function(){var e=o.apply(this,arguments),r=this.__zoom,a=null==i?w(e):"function"==typeof i?i.apply(this,arguments):i
|
|
12875
|
-
return s(
|
|
12876
|
-
u.call(e,this.that,new
|
|
12877
|
-
return e===u?v:e},v.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,v):Math.sqrt(m)},v.tapDistance=function(e){return arguments.length?(g=+e,v):g},v}
|
|
12878
|
-
const
|
|
12847
|
+
return s(lH.translate(a[0],a[1]).scale(r.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)}),i,r)},k.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=KL(this.that).datum()
|
|
12848
|
+
u.call(e,this.that,new rH(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:u}),t)}},v.wheelDelta=function(e){return arguments.length?(r="function"==typeof e?e:sH(+e),v):r},v.filter=function(e){return arguments.length?(i="function"==typeof e?e:sH(!!e),v):i},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:sH(!!e),v):a},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:sH([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):o},v.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],v):[l[0],l[1]]},v.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],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(s=e,v):s},v.duration=function(e){return arguments.length?(d=+e,v):d},v.interpolate=function(e){return arguments.length?(h=e,v):h},v.on=function(){var e=u.on.apply(u,arguments)
|
|
12849
|
+
return e===u?v:e},v.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,v):Math.sqrt(m)},v.tapDistance=function(e){return arguments.length?(g=+e,v):g},v}aH.prototype
|
|
12850
|
+
const bH=G`
|
|
12879
12851
|
<div class="wafer-map-container">
|
|
12880
12852
|
<svg class="svg-root">
|
|
12881
12853
|
<g ${Pe("zoomContainer")} transform=${e=>e.transform.toString()}>
|
|
@@ -12906,7 +12878,7 @@ const vH=G`
|
|
|
12906
12878
|
/>
|
|
12907
12879
|
</svg>
|
|
12908
12880
|
</div>
|
|
12909
|
-
`,
|
|
12881
|
+
`,yH=xe`
|
|
12910
12882
|
${Fo("inline-block")}
|
|
12911
12883
|
|
|
12912
12884
|
:host {
|
|
@@ -12996,67 +12968,67 @@ const vH=G`
|
|
|
12996
12968
|
outline-width: 0px;
|
|
12997
12969
|
}
|
|
12998
12970
|
`
|
|
12999
|
-
function
|
|
12971
|
+
function wH(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xH(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function CH(e){let t,n,i
|
|
13000
12972
|
function o(e,i,o=0,s=e.length){if(o<s){if(0!==t(i,i))return s
|
|
13001
12973
|
do{const t=o+s>>>1
|
|
13002
|
-
n(e[t],i)<0?o=t+1:s=t}while(o<s)}return o}return 2!==e.length?(t=
|
|
12974
|
+
n(e[t],i)<0?o=t+1:s=t}while(o<s)}return o}return 2!==e.length?(t=wH,n=(t,n)=>wH(e(t),n),i=(t,n)=>e(t)-n):(t=e===wH||e===xH?e:kH,n=e,i=e),{left:o,center:function(e,t,n=0,s=e.length){const r=o(e,t,n,s-1)
|
|
13003
12975
|
return r>n&&i(e[r-1],t)>-i(e[r],t)?r-1:r},right:function(e,i,o=0,s=e.length){if(o<s){if(0!==t(i,i))return s
|
|
13004
12976
|
do{const t=o+s>>>1
|
|
13005
|
-
n(e[t],i)<=0?o=t+1:s=t}while(o<s)}return o}}}function
|
|
13006
|
-
|
|
13007
|
-
class
|
|
12977
|
+
n(e[t],i)<=0?o=t+1:s=t}while(o<s)}return o}}}function kH(){return 0}function SH(e){return null===e?NaN:+e}const $H=CH(wH).right
|
|
12978
|
+
CH(SH).center
|
|
12979
|
+
class MH extends Map{constructor(e,t=EH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(_H(this,e))}has(e){return super.has(_H(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const i=t(n)
|
|
13008
12980
|
return e.has(i)?e.get(i):(e.set(i,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const i=t(n)
|
|
13009
12981
|
e.has(i)&&(n=e.get(i),e.delete(i))
|
|
13010
|
-
return n}(this,e))}}function
|
|
13011
|
-
return e.has(i)?e.get(i):n}function
|
|
13012
|
-
function
|
|
12982
|
+
return n}(this,e))}}function _H({_intern:e,_key:t},n){const i=t(n)
|
|
12983
|
+
return e.has(i)?e.get(i):n}function EH(e){return null!==e&&"object"==typeof e?e.valueOf():e}const IH=Math.sqrt(50),DH=Math.sqrt(10),AH=Math.sqrt(2)
|
|
12984
|
+
function TH(e,t,n){const i=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(i)),s=i/Math.pow(10,o),r=s>=IH?10:s>=DH?5:s>=AH?2:1
|
|
13013
12985
|
let a,l,c
|
|
13014
|
-
return o<0?(c=Math.pow(10,-o)/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,o)*r,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?
|
|
12986
|
+
return o<0?(c=Math.pow(10,-o)/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,o)*r,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?TH(e,t,2*n):[a,l,c]}function OH(e,t,n){return TH(e=+e,t=+t,n=+n)[2]}function RH(e,t,n=SH){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e)
|
|
13015
12987
|
if(t>=1)return+n(e[i-1],i-1,e)
|
|
13016
12988
|
var i,o=(i-1)*t,s=Math.floor(o),r=+n(e[s],s,e)
|
|
13017
|
-
return r+(+n(e[s+1],s+1,e)-r)*(o-s)}}function
|
|
12989
|
+
return r+(+n(e[s+1],s+1,e)-r)*(o-s)}}function FH(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n
|
|
13018
12990
|
for(var i=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),s=new Array(o);++i<o;)s[i]=e+i*n
|
|
13019
|
-
return s}function
|
|
12991
|
+
return s}function NH(e,t){switch(arguments.length){case 0:break
|
|
13020
12992
|
case 1:this.range(e)
|
|
13021
12993
|
break
|
|
13022
|
-
default:this.range(t).domain(e)}return this}const
|
|
13023
|
-
function
|
|
12994
|
+
default:this.range(t).domain(e)}return this}const PH=Symbol("implicit")
|
|
12995
|
+
function LH(){var e=new MH,t=[],n=[],i=PH
|
|
13024
12996
|
function o(o){let s=e.get(o)
|
|
13025
|
-
if(void 0===s){if(i!==
|
|
12997
|
+
if(void 0===s){if(i!==PH)return i
|
|
13026
12998
|
e.set(o,s=t.push(o)-1)}return n[s%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice()
|
|
13027
|
-
t=[],e=new
|
|
12999
|
+
t=[],e=new MH
|
|
13028
13000
|
for(const i of n)e.has(i)||e.set(i,t.push(i)-1)
|
|
13029
|
-
return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return
|
|
13001
|
+
return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return LH(t,n).unknown(i)},NH.apply(o,arguments),o}function zH(){var e,t,n=LH().unknown(void 0),i=n.domain,o=n.range,s=0,r=1,a=!1,l=0,c=0,d=.5
|
|
13030
13002
|
function h(){var n=i().length,h=r<s,u=h?r:s,p=h?s:r
|
|
13031
13003
|
e=(p-u)/Math.max(1,n-l+2*c),a&&(e=Math.floor(e)),u+=(p-u-e*(n-l))*d,t=e*(1-l),a&&(u=Math.round(u),t=Math.round(t))
|
|
13032
|
-
var f=
|
|
13033
|
-
return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),h()):i()},n.range=function(e){return arguments.length?([s,r]=e,s=+s,r=+r,h()):[s,r]},n.rangeRound=function(e){return[s,r]=e,s=+s,r=+r,a=!0,h()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,h()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},n.copy=function(){return
|
|
13034
|
-
function
|
|
13035
|
-
var n}function
|
|
13036
|
-
return o<i?(i=
|
|
13037
|
-
for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<i;)o[r]=
|
|
13038
|
-
return function(t){var n
|
|
13039
|
-
return s[n](o[n](t))}}function
|
|
13004
|
+
var f=FH(n).map((function(t){return u+e*t}))
|
|
13005
|
+
return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),h()):i()},n.range=function(e){return arguments.length?([s,r]=e,s=+s,r=+r,h()):[s,r]},n.rangeRound=function(e){return[s,r]=e,s=+s,r=+r,a=!0,h()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,h()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},n.copy=function(){return zH(i(),[s,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},NH.apply(h(),arguments)}function VH(e){return+e}var HH=[0,1]
|
|
13006
|
+
function BH(e){return e}function qH(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})
|
|
13007
|
+
var n}function UH(e,t,n){var i=e[0],o=e[1],s=t[0],r=t[1]
|
|
13008
|
+
return o<i?(i=qH(o,i),s=n(r,s)):(i=qH(i,o),s=n(s,r)),function(e){return s(i(e))}}function jH(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),s=new Array(i),r=-1
|
|
13009
|
+
for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<i;)o[r]=qH(e[r],e[r+1]),s[r]=n(t[r],t[r+1])
|
|
13010
|
+
return function(t){var n=$H(e,t,1,i)-1
|
|
13011
|
+
return s[n](o[n](t))}}function WH(){var e,t,n,i,o,s,r=HH,a=HH,l=jz,c=BH
|
|
13040
13012
|
function d(){var e,t,n,l=Math.min(r.length,a.length)
|
|
13041
|
-
return c!==
|
|
13013
|
+
return c!==BH&&(e=r[0],t=r[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),i=l>2?jH:UH,o=s=null,h}function h(t){return null==t||isNaN(t=+t)?n:(o||(o=i(r.map(e),a,l)))(e(c(t)))}return h.invert=function(n){return c(t((s||(s=i(a,r.map(e),Vz)))(n)))},h.domain=function(e){return arguments.length?(r=Array.from(e,VH),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=Wz,d()},h.clamp=function(e){return arguments.length?(c=!!e||BH,d()):c!==BH},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,i){return e=n,t=i,d()}}function GH(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
|
|
13042
13014
|
var n,i=e.slice(0,n)
|
|
13043
|
-
return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function
|
|
13044
|
-
function
|
|
13015
|
+
return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function ZH(e){return(e=GH(Math.abs(e)))?e[1]:NaN}var KH,XH=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
|
|
13016
|
+
function YH(e){if(!(t=XH.exec(e)))throw new Error("invalid format: "+e)
|
|
13045
13017
|
var t
|
|
13046
|
-
return new
|
|
13018
|
+
return new JH({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 JH(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 QH(e,t){var n=GH(e,t)
|
|
13047
13019
|
if(!n)return e+""
|
|
13048
13020
|
var i=n[0],o=n[1]
|
|
13049
|
-
return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}
|
|
13050
|
-
var
|
|
13021
|
+
return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}YH.prototype=JH.prototype,JH.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}
|
|
13022
|
+
var eB={"%":(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)=>QH(100*e,t),r:QH,s:function(e,t){var n=GH(e,t)
|
|
13051
13023
|
if(!n)return e+""
|
|
13052
|
-
var i=n[0],o=n[1],s=o-(
|
|
13053
|
-
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")+
|
|
13054
|
-
function
|
|
13055
|
-
function
|
|
13056
|
-
return s.reverse().join(n)}),o=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?
|
|
13057
|
-
function h(e){var t=(e=
|
|
13058
|
-
"n"===b?(m=!0,b="g"):
|
|
13059
|
-
var y="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?s:/[%p]/.test(b)?l:"",x=
|
|
13024
|
+
var i=n[0],o=n[1],s=o-(KH=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,r=i.length
|
|
13025
|
+
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")+GH(e,Math.max(0,t+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
|
|
13026
|
+
function tB(e){return e}var nB,iB,oB,sB=Array.prototype.map,rB=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
|
|
13027
|
+
function aB(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?tB:(t=sB.call(e.grouping,Number),n=e.thousands+"",function(e,i){for(var o=e.length,s=[],r=0,a=t[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),s.push(e.substring(o-=a,o+a)),!((l+=a+1)>i));)a=t[r=(r+1)%t.length]
|
|
13028
|
+
return s.reverse().join(n)}),o=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?tB:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(sB.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+""
|
|
13029
|
+
function h(e){var t=(e=YH(e)).fill,n=e.align,h=e.sign,u=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,v=e.trim,b=e.type
|
|
13030
|
+
"n"===b?(m=!0,b="g"):eB[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=")
|
|
13031
|
+
var y="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?s:/[%p]/.test(b)?l:"",x=eB[b],C=/[defgprs%]/.test(b)
|
|
13060
13032
|
function k(e){var o,s,l,u=y,k=w
|
|
13061
13033
|
if("c"===b)k=x(e)+k,e=""
|
|
13062
13034
|
else{var S=(e=+e)<0||1/e<0
|
|
@@ -13065,7 +13037,7 @@ break
|
|
|
13065
13037
|
case"0":0===o&&(o=i),t=i
|
|
13066
13038
|
break
|
|
13067
13039
|
default:if(!+e[i])break e
|
|
13068
|
-
o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,k=("s"===b?
|
|
13040
|
+
o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,k=("s"===b?rB[8+KH/3]:"")+k+(S&&"("===h?")":""),C)for(o=-1,s=e.length;++o<s;)if(48>(l=e.charCodeAt(o))||l>57){k=(46===l?r+e.slice(o+1):e.slice(o))+k,e=e.slice(0,o)
|
|
13069
13041
|
break}}m&&!p&&(e=i(e,1/0))
|
|
13070
13042
|
var $=u.length+e.length+k.length,M=$<f?new Array(f-$+1).join(t):""
|
|
13071
13043
|
switch(m&&p&&(e=i(M+e,M.length?f-k.length:1/0),M=""),n){case"<":e=u+e+k+M
|
|
@@ -13074,19 +13046,19 @@ case"=":e=u+M+e+k
|
|
|
13074
13046
|
break
|
|
13075
13047
|
case"^":e=M.slice(0,$=M.length>>1)+u+e+k+M.slice($)
|
|
13076
13048
|
break
|
|
13077
|
-
default:e=M+u+e+k}return a(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return e+""},k}return{format:h,formatPrefix:function(e,t){var n=h(((e=
|
|
13078
|
-
return function(e){return n(o*e)+s}}}}function
|
|
13079
|
-
const i=(t=+t)<(e=+e),o=i?
|
|
13049
|
+
default:e=M+u+e+k}return a(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return e+""},k}return{format:h,formatPrefix:function(e,t){var n=h(((e=YH(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(ZH(t)/3))),o=Math.pow(10,-i),s=rB[8+i/3]
|
|
13050
|
+
return function(e){return n(o*e)+s}}}}function lB(e,t,n,i){var o,s=function(e,t,n){n=+n
|
|
13051
|
+
const i=(t=+t)<(e=+e),o=i?OH(t,e,n):OH(e,t,n)
|
|
13080
13052
|
return(i?-1:1)*(o<0?1/-o:o)}(e,t,n)
|
|
13081
|
-
switch((i=
|
|
13082
|
-
return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(
|
|
13083
|
-
case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,
|
|
13053
|
+
switch((i=YH(null==i?",f":i)).type){case"s":var r=Math.max(Math.abs(e),Math.abs(t))
|
|
13054
|
+
return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ZH(t)/3)))-ZH(Math.abs(e)))}(s,r))||(i.precision=o),oB(i,r)
|
|
13055
|
+
case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ZH(t)-ZH(e))+1}(s,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type))
|
|
13084
13056
|
break
|
|
13085
|
-
case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-
|
|
13057
|
+
case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-ZH(Math.abs(e)))}(s))||(i.precision=o-2*("%"===i.type))}return iB(i)}function cB(e){var t=e.domain
|
|
13086
13058
|
return e.ticks=function(e){var n=t()
|
|
13087
13059
|
return function(e,t,n){if(!((n=+n)>0))return[]
|
|
13088
13060
|
if((e=+e)==(t=+t))return[e]
|
|
13089
|
-
const i=t<e,[o,s,r]=i?
|
|
13061
|
+
const i=t<e,[o,s,r]=i?TH(t,e,n):TH(e,t,n)
|
|
13090
13062
|
if(!(s>=o))return[]
|
|
13091
13063
|
const a=s-o+1,l=new Array(a)
|
|
13092
13064
|
if(i)if(r<0)for(let e=0;e<a;++e)l[e]=(s-e)/-r
|
|
@@ -13094,33 +13066,33 @@ else for(let e=0;e<a;++e)l[e]=(s-e)*r
|
|
|
13094
13066
|
else if(r<0)for(let e=0;e<a;++e)l[e]=(o+e)/-r
|
|
13095
13067
|
else for(let e=0;e<a;++e)l[e]=(o+e)*r
|
|
13096
13068
|
return l}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var i=t()
|
|
13097
|
-
return
|
|
13069
|
+
return lB(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10)
|
|
13098
13070
|
var i,o,s=t(),r=0,a=s.length-1,l=s[r],c=s[a],d=10
|
|
13099
|
-
for(c<l&&(o=l,l=c,c=o,o=r,r=a,a=o);d-- >0;){if((o=
|
|
13071
|
+
for(c<l&&(o=l,l=c,c=o,o=r,r=a,a=o);d-- >0;){if((o=OH(l,c,n))===i)return s[r]=l,s[a]=c,t(s)
|
|
13100
13072
|
if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o
|
|
13101
13073
|
else{if(!(o<0))break
|
|
13102
|
-
l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function
|
|
13103
|
-
return e.copy=function(){return t=e,
|
|
13104
|
-
var t},
|
|
13074
|
+
l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function dB(){var e=WH()(BH,BH)
|
|
13075
|
+
return e.copy=function(){return t=e,dB().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())
|
|
13076
|
+
var t},NH.apply(e,arguments),cB(e)}function hB(){var e,t=[],n=[],i=[]
|
|
13105
13077
|
function o(){var e=0,o=Math.max(1,n.length)
|
|
13106
|
-
for(i=new Array(o-1);++e<o;)i[e-1]=
|
|
13107
|
-
return s}function s(t){return null==t||isNaN(t=+t)?e:n[
|
|
13078
|
+
for(i=new Array(o-1);++e<o;)i[e-1]=RH(t,e/o)
|
|
13079
|
+
return s}function s(t){return null==t||isNaN(t=+t)?e:n[$H(i,t)]}return s.invertExtent=function(e){var o=n.indexOf(e)
|
|
13108
13080
|
return o<0?[NaN,NaN]:[o>0?i[o-1]:t[0],o<i.length?i[o]:t[t.length-1]]},s.domain=function(e){if(!arguments.length)return t.slice()
|
|
13109
13081
|
t=[]
|
|
13110
13082
|
for(let n of e)null==n||isNaN(n=+n)||t.push(n)
|
|
13111
|
-
return t.sort(
|
|
13112
|
-
const
|
|
13113
|
-
class
|
|
13083
|
+
return t.sort(wH),o()},s.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},s.unknown=function(t){return arguments.length?(e=t,s):e},s.quantiles=function(){return i.slice()},s.copy=function(){return hB().domain(t).range(n).unknown(e)},NH.apply(s,arguments)}nB=aB({thousands:",",grouping:[3],currency:["$",""]}),iB=nB.format,oB=nB.formatPrefix
|
|
13084
|
+
const uB="bottom-left",pB="bottom-right",fB="top-left",mB="top",gB="show",vB="hide",bB="linear",yB="ordinal"
|
|
13085
|
+
class wB{get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}constructor(e){this.wafermap=e,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.wafermap.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode)
|
|
13114
13086
|
const e=e=>null!==e
|
|
13115
13087
|
void 0===this.wafermap.diesTable&&(this._diesRenderInfo=this.wafermap.dies.map((e=>this.computeDieRenderInfo(e))).filter(e))}computeDieRenderInfo(e){const t=this.wafermap.dataManager.margin,n=this.wafermap.dataManager.horizontalScale(e.x),i=this.wafermap.dataManager.verticalScale(e.y)
|
|
13116
|
-
return void 0===n||void 0===i?null:{x:n+t.right,y:i+t.top,fillStyle:this.calculateFillStyle(e.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,e.tags),text:this.buildLabel(e.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.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)?
|
|
13088
|
+
return void 0===n||void 0===i?null:{x:n+t.right,y:i+t.top,fillStyle:this.calculateFillStyle(e.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,e.tags),text:this.buildLabel(e.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.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)?dB().domain(e.values.map((e=>+e))).range(e.colors):LH().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,n,i){if(n||!this.dieHasData(e))return""
|
|
13117
13089
|
const o=`${e}${i}`
|
|
13118
13090
|
return o.length>=t?`${o.substring(0,t)}…`:o}calculateOpacity(e,t){if(!t||0===t.length)return 1
|
|
13119
13091
|
const n=new Set(t)
|
|
13120
|
-
return e?.some((e=>n.has(e)))?1:this.nonHighlightedOpacity}isColorScaleLinear(e){return e===
|
|
13092
|
+
return e?.some((e=>n.has(e)))?1:this.nonHighlightedOpacity}isColorScaleLinear(e){return e===bB}isColorScaleOrdinal(e){return e===yB}calculateFillStyle(e,t,n,i){let o=this.emptyDieColor
|
|
13121
13093
|
if(this.dieHasData(e)&&(isNaN(+e)?o=this.nanDieColor:this.isColorScaleLinear(t)?o=this.d3ColorScale(+e):this.isColorScaleOrdinal(t)&&(o=this.d3ColorScale(e))),void 0===o)return this.emptyDieColor
|
|
13122
13094
|
let s=Ko(o)
|
|
13123
|
-
return null===s?this.emptyDieColor:(s=new Ho(s.r,s.g,s.b,this.calculateOpacity(i,n)),s.toStringWebRGBA())}}class
|
|
13095
|
+
return null===s?this.emptyDieColor:(s=new Ho(s.r,s.g,s.b,this.calculateOpacity(i,n)),s.toStringWebRGBA())}}class xB{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}get data(){return this.dataMap}constructor(e){this.wafermap=e,this.computations=new class{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get radius(){return this._radius}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get invertedHorizontalScale(){return this._invertedHorizontalScale}get invertedVerticalScale(){return this._invertedVerticalScale}constructor(e){this.wafermap=e,this.defaultPadding=0,this.baseMarginPercentage=.04}updateContainerDimensions(){const e={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},t=Math.min(e.width,e.height),n={top:(e.height-t)/2,right:(e.width-t)/2,bottom:(e.height-t)/2,left:(e.width-t)/2},i={top:t*this.baseMarginPercentage,right:t*this.baseMarginPercentage,bottom:t*this.baseMarginPercentage,left:t*this.baseMarginPercentage}
|
|
13124
13096
|
this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(e,this._margin)
|
|
13125
13097
|
const o=Math.min(this._containerDimensions.width,this._containerDimensions.height)
|
|
13126
13098
|
this._radius=o/2,this.updateScales()}updateScales(){const e=Math.min(this._containerDimensions.width,this._containerDimensions.height),t=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(this.wafermap.dies),n=this.wafermap.originLocation
|
|
@@ -13130,11 +13102,11 @@ this._dieDimensions={width:isNaN(i)?0:i,height:isNaN(o)?0:o}}gridDimensionsValid
|
|
|
13130
13102
|
return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(e.origin.x=this.wafermap.gridMinX,e.origin.y=this.wafermap.gridMinY,e.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,e.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),e}calculateGridDimensionsFromDies(e){if(0===e.length||void 0===e[0])return{origin:{x:0,y:0},rows:0,cols:0}
|
|
13131
13103
|
const t={x:e[0].x,y:e[0].y},n={x:e[0].x,y:e[0].y}
|
|
13132
13104
|
for(const i of e)i.x<t.x&&(t.x=i.x),i.y<t.y&&(t.y=i.y),i.x>n.x&&(n.x=i.x),i.y>n.y&&(n.y=i.y)
|
|
13133
|
-
return{origin:t,rows:n.y-t.y+1,cols:n.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,n){const i=
|
|
13134
|
-
return e===
|
|
13135
|
-
return e===
|
|
13136
|
-
return e===
|
|
13137
|
-
return e===
|
|
13105
|
+
return{origin:t,rows:n.y-t.y+1,cols:n.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,n){const i=zH().domain(FH(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
|
|
13106
|
+
return e===uB||e===fB?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(e,t,n){const i=hB().domain([0,n])
|
|
13107
|
+
return e===uB||e===fB?i.range(FH(t.origin.x,t.origin.x+t.cols)):i.range(FH(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,n){const i=zH().domain(FH(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
|
|
13108
|
+
return e===uB||e===pB?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(e,t,n){const i=hB().domain([0,n])
|
|
13109
|
+
return e===uB||e===pB?i.range(FH(t.origin.y,t.origin.y+t.rows).reverse()):i.range(FH(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}}}(e),this.prerendering=new wB(e)}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(e){return this.dataMap.get(`${e.x}_${e.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((e=>[`${e.x}_${e.y}`,e])))}}class CB{constructor(e){this.wafermap=e,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.fillStyle?-1:0)),this.drawWafer()}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){void 0!==this.wafermap.dataManager.dieDimensions&&void 0!==this.wafermap.transform&&(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?vB:gB,this.wafermap.hoverTransform=this.calculateHoverTransform())}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
|
|
13138
13110
|
if(void 0===e)return""
|
|
13139
13111
|
const t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
|
|
13140
13112
|
if(void 0===t)return""
|
|
@@ -13147,117 +13119,117 @@ if(e*t*(this.wafermap.transform.k||1)>=this.minDieDim){const n=this.wafermap.dat
|
|
|
13147
13119
|
i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
|
|
13148
13120
|
const o=i.measureText("M"),s=this.wafermap.transform.invert([0,0]),r=this.wafermap.transform.invert([this.wafermap.canvas.width,this.wafermap.canvas.height])
|
|
13149
13121
|
s[0]-=e,s[1]-=t
|
|
13150
|
-
for(const n of this.dies)this.isDieVisible(n,s,r)&&i.fillText(n.text,n.x+e/2,n.y+t/2+o.width/2,e-e/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}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)}isDieVisible(e,t,n){return e.x>=t[0]&&e.x<n[0]&&e.y>=t[1]&&e.y<n[1]}}const
|
|
13151
|
-
class
|
|
13152
|
-
!function(e){e[e.Sparse=0]="Sparse",e[e.Dense=1]="Dense"}(
|
|
13153
|
-
class
|
|
13154
|
-
class
|
|
13155
|
-
class
|
|
13122
|
+
for(const n of this.dies)this.isDieVisible(n,s,r)&&i.fillText(n.text,n.x+e/2,n.y+t/2+o.width/2,e-e/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}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)}isDieVisible(e,t,n){return e.x>=t[0]&&e.x<n[0]&&e.y>=t[1]&&e.y<n[1]}}const kB=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
|
|
13123
|
+
class SB extends lI{constructor(e){super(kB),this.wafermap=e,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresWorkerWaferSetup(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresComponentResizeUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresScalesUpdate(){return this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")}get requiresInputDataUpdate(){return this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")}get requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresColorAndTextUpdate(){return this.isTracked("maxCharacters")||this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresDrawnWaferUpdate(){return this.isTracked("transform")}get requiresRenderHoverUpdate(){return this.isTracked("hoverDie")}queueUpdate(){this.wafermap.$fastController.isConnected&&!this.updateQueued&&(this.updateQueued=!0,void 0===this.wafermap.currentTask?u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1})):(async()=>{await this.wafermap.currentTask,u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1,this.wafermap.currentTask=void 0}))})())}}var $B,MB,_B,EB,IB,DB,AB,TB,OB
|
|
13124
|
+
!function(e){e[e.Sparse=0]="Sparse",e[e.Dense=1]="Dense"}($B||($B={})),function(e){e[e.HALF=0]="HALF",e[e.SINGLE=1]="SINGLE",e[e.DOUBLE=2]="DOUBLE"}(MB||(MB={})),function(e){e[e.DAY=0]="DAY",e[e.MILLISECOND=1]="MILLISECOND"}(_B||(_B={})),function(e){e[e.SECOND=0]="SECOND",e[e.MILLISECOND=1]="MILLISECOND",e[e.MICROSECOND=2]="MICROSECOND",e[e.NANOSECOND=3]="NANOSECOND"}(EB||(EB={})),function(e){e[e.YEAR_MONTH=0]="YEAR_MONTH",e[e.DAY_TIME=1]="DAY_TIME",e[e.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(IB||(IB={})),function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.Float=3]="Float",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct=13]="Struct",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Duration=18]="Duration",e[e.LargeBinary=19]="LargeBinary",e[e.LargeUtf8=20]="LargeUtf8",e[e.Dictionary=-1]="Dictionary",e[e.Int8=-2]="Int8",e[e.Int16=-3]="Int16",e[e.Int32=-4]="Int32",e[e.Int64=-5]="Int64",e[e.Uint8=-6]="Uint8",e[e.Uint16=-7]="Uint16",e[e.Uint32=-8]="Uint32",e[e.Uint64=-9]="Uint64",e[e.Float16=-10]="Float16",e[e.Float32=-11]="Float32",e[e.Float64=-12]="Float64",e[e.DateDay=-13]="DateDay",e[e.DateMillisecond=-14]="DateMillisecond",e[e.TimestampSecond=-15]="TimestampSecond",e[e.TimestampMillisecond=-16]="TimestampMillisecond",e[e.TimestampMicrosecond=-17]="TimestampMicrosecond",e[e.TimestampNanosecond=-18]="TimestampNanosecond",e[e.TimeSecond=-19]="TimeSecond",e[e.TimeMillisecond=-20]="TimeMillisecond",e[e.TimeMicrosecond=-21]="TimeMicrosecond",e[e.TimeNanosecond=-22]="TimeNanosecond",e[e.DenseUnion=-23]="DenseUnion",e[e.SparseUnion=-24]="SparseUnion",e[e.IntervalDayTime=-25]="IntervalDayTime",e[e.IntervalYearMonth=-26]="IntervalYearMonth",e[e.DurationSecond=-27]="DurationSecond",e[e.DurationMillisecond=-28]="DurationMillisecond",e[e.DurationMicrosecond=-29]="DurationMicrosecond",e[e.DurationNanosecond=-30]="DurationNanosecond"}(DB||(DB={})),function(e){e[e.OFFSET=0]="OFFSET",e[e.DATA=1]="DATA",e[e.VALIDITY=2]="VALIDITY",e[e.TYPE=3]="TYPE"}(AB||(AB={}))
|
|
13125
|
+
class RB{static isNull(e){return(null==e?void 0:e.typeId)===DB.Null}static isInt(e){return(null==e?void 0:e.typeId)===DB.Int}static isFloat(e){return(null==e?void 0:e.typeId)===DB.Float}static isBinary(e){return(null==e?void 0:e.typeId)===DB.Binary}static isLargeBinary(e){return(null==e?void 0:e.typeId)===DB.LargeBinary}static isUtf8(e){return(null==e?void 0:e.typeId)===DB.Utf8}static isLargeUtf8(e){return(null==e?void 0:e.typeId)===DB.LargeUtf8}static isBool(e){return(null==e?void 0:e.typeId)===DB.Bool}static isDecimal(e){return(null==e?void 0:e.typeId)===DB.Decimal}static isDate(e){return(null==e?void 0:e.typeId)===DB.Date}static isTime(e){return(null==e?void 0:e.typeId)===DB.Time}static isTimestamp(e){return(null==e?void 0:e.typeId)===DB.Timestamp}static isInterval(e){return(null==e?void 0:e.typeId)===DB.Interval}static isDuration(e){return(null==e?void 0:e.typeId)===DB.Duration}static isList(e){return(null==e?void 0:e.typeId)===DB.List}static isStruct(e){return(null==e?void 0:e.typeId)===DB.Struct}static isUnion(e){return(null==e?void 0:e.typeId)===DB.Union}static isFixedSizeBinary(e){return(null==e?void 0:e.typeId)===DB.FixedSizeBinary}static isFixedSizeList(e){return(null==e?void 0:e.typeId)===DB.FixedSizeList}static isMap(e){return(null==e?void 0:e.typeId)===DB.Map}static isDictionary(e){return(null==e?void 0:e.typeId)===DB.Dictionary}static isDenseUnion(e){return RB.isUnion(e)&&e.mode===$B.Dense}static isSparseUnion(e){return RB.isUnion(e)&&e.mode===$B.Sparse}constructor(e){this.typeId=e}}TB=Symbol.toStringTag,RB[TB]=((OB=RB.prototype).children=null,OB.ArrayType=Array,OB.OffsetArrayType=Int32Array,OB[Symbol.toStringTag]="DataType")
|
|
13126
|
+
class FB extends RB{constructor(){super(DB.Null)}toString(){return"Null"}}FB[Symbol.toStringTag]=(e=>e[Symbol.toStringTag]="Null")(FB.prototype)
|
|
13127
|
+
class NB extends RB{constructor(e,t){super(DB.Int),this.isSigned=e,this.bitWidth=t}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array
|
|
13156
13128
|
case 16:return this.isSigned?Int16Array:Uint16Array
|
|
13157
13129
|
case 32:return this.isSigned?Int32Array:Uint32Array
|
|
13158
|
-
case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}
|
|
13159
|
-
class
|
|
13160
|
-
case
|
|
13161
|
-
case
|
|
13162
|
-
class
|
|
13163
|
-
class
|
|
13164
|
-
class
|
|
13165
|
-
class
|
|
13166
|
-
class
|
|
13167
|
-
class
|
|
13168
|
-
class
|
|
13169
|
-
class
|
|
13170
|
-
case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}
|
|
13171
|
-
class
|
|
13172
|
-
class
|
|
13173
|
-
class
|
|
13174
|
-
class
|
|
13175
|
-
class
|
|
13176
|
-
class
|
|
13177
|
-
class
|
|
13178
|
-
class
|
|
13179
|
-
class
|
|
13180
|
-
if(super(
|
|
13130
|
+
case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}NB[Symbol.toStringTag]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]="Int"))(NB.prototype)
|
|
13131
|
+
class PB extends RB{constructor(e){super(DB.Float),this.precision=e}get ArrayType(){switch(this.precision){case MB.HALF:return Uint16Array
|
|
13132
|
+
case MB.SINGLE:return Float32Array
|
|
13133
|
+
case MB.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}PB[Symbol.toStringTag]=(e=>(e.precision=null,e[Symbol.toStringTag]="Float"))(PB.prototype)
|
|
13134
|
+
class LB extends RB{constructor(){super(DB.Binary)}toString(){return"Binary"}}LB[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Binary"))(LB.prototype)
|
|
13135
|
+
class zB extends RB{constructor(){super(DB.LargeBinary)}toString(){return"LargeBinary"}}zB[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]="LargeBinary"))(zB.prototype)
|
|
13136
|
+
class VB extends RB{constructor(){super(DB.Utf8)}toString(){return"Utf8"}}VB[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Utf8"))(VB.prototype)
|
|
13137
|
+
class HB extends RB{constructor(){super(DB.LargeUtf8)}toString(){return"LargeUtf8"}}HB[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]="LargeUtf8"))(HB.prototype)
|
|
13138
|
+
class BB extends RB{constructor(){super(DB.Bool)}toString(){return"Bool"}}BB[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Bool"))(BB.prototype)
|
|
13139
|
+
class qB extends RB{constructor(e,t,n=128){super(DB.Decimal),this.scale=e,this.precision=t,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}qB[Symbol.toStringTag]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]="Decimal"))(qB.prototype)
|
|
13140
|
+
class UB extends RB{constructor(e){super(DB.Date),this.unit=e}toString(){return`Date${32*(this.unit+1)}<${_B[this.unit]}>`}}UB[Symbol.toStringTag]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Date"))(UB.prototype)
|
|
13141
|
+
class jB extends RB{constructor(e,t){super(DB.Time),this.unit=e,this.bitWidth=t}toString(){return`Time${this.bitWidth}<${EB[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array
|
|
13142
|
+
case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}jB[Symbol.toStringTag]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]="Time"))(jB.prototype)
|
|
13143
|
+
class WB extends RB{constructor(e,t){super(DB.Timestamp),this.unit=e,this.timezone=t}toString(){return`Timestamp<${EB[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}WB[Symbol.toStringTag]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Timestamp"))(WB.prototype)
|
|
13144
|
+
class GB extends RB{constructor(e){super(DB.Interval),this.unit=e}toString(){return`Interval<${IB[this.unit]}>`}}GB[Symbol.toStringTag]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Interval"))(GB.prototype)
|
|
13145
|
+
class ZB extends RB{constructor(e){super(DB.Duration),this.unit=e}toString(){return`Duration<${EB[this.unit]}>`}}ZB[Symbol.toStringTag]=(e=>(e.unit=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]="Duration"))(ZB.prototype)
|
|
13146
|
+
class KB extends RB{constructor(e){super(DB.List),this.children=[e]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}KB[Symbol.toStringTag]=(e=>(e.children=null,e[Symbol.toStringTag]="List"))(KB.prototype)
|
|
13147
|
+
class XB extends RB{constructor(e){super(DB.Struct),this.children=e}toString(){return`Struct<{${this.children.map((e=>`${e.name}:${e.type}`)).join(", ")}}>`}}XB[Symbol.toStringTag]=(e=>(e.children=null,e[Symbol.toStringTag]="Struct"))(XB.prototype)
|
|
13148
|
+
class YB extends RB{constructor(e,t,n){super(DB.Union),this.mode=e,this.children=n,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce(((e,t,n)=>(e[t]=n)&&e||e),Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((e=>`${e.type}`)).join(" | ")}>`}}YB[Symbol.toStringTag]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]="Union"))(YB.prototype)
|
|
13149
|
+
class JB extends RB{constructor(e){super(DB.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}JB[Symbol.toStringTag]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]="FixedSizeBinary"))(JB.prototype)
|
|
13150
|
+
class QB extends RB{constructor(e,t){super(DB.FixedSizeList),this.listSize=e,this.children=[t]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}QB[Symbol.toStringTag]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]="FixedSizeList"))(QB.prototype)
|
|
13151
|
+
class eq extends RB{constructor(e,t=!1){var n,i,o
|
|
13152
|
+
if(super(DB.Map),this.children=[e],this.keysSorted=t,e&&(e.name="entries",null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.children)){const t=null===(i=null==e?void 0:e.type)||void 0===i?void 0:i.children[0]
|
|
13181
13153
|
t&&(t.name="key")
|
|
13182
13154
|
const n=null===(o=null==e?void 0:e.type)||void 0===o?void 0:o.children[1]
|
|
13183
|
-
n&&(n.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((e=>`${e.name}:${e.type}`)).join(", ")}}>`}}
|
|
13184
|
-
const
|
|
13185
|
-
var
|
|
13186
|
-
class
|
|
13187
|
-
return Number(e)}(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}
|
|
13188
|
-
class
|
|
13155
|
+
n&&(n.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((e=>`${e.name}:${e.type}`)).join(", ")}}>`}}eq[Symbol.toStringTag]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]="Map_"))(eq.prototype)
|
|
13156
|
+
const tq=(nq=-1,()=>++nq)
|
|
13157
|
+
var nq
|
|
13158
|
+
class iq extends RB{constructor(e,t,n,i){super(DB.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=i||!1,this.id=null==n?tq():function(e){if("bigint"==typeof e&&(e<Number.MIN_SAFE_INTEGER||e>Number.MAX_SAFE_INTEGER))throw new TypeError(`${e} is not safe to convert to a number.`)
|
|
13159
|
+
return Number(e)}(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}iq[Symbol.toStringTag]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]="Dictionary"))(iq.prototype)
|
|
13160
|
+
class oq{constructor(e){this.wafermap=e,this.invalidGridDimensions=!1,this.invalidDiesTableSchema=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions,invalidDiesTableSchema:this.invalidDiesTableSchema}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}validateDiesTableSchema(){if(this.invalidDiesTableSchema=!1,void 0===this.wafermap.diesTable)this.invalidDiesTableSchema=!1
|
|
13189
13161
|
else{const e=this.wafermap.diesTable.schema.fields,t=e.find((e=>"colIndex"===e.name)),n=e.find((e=>"rowIndex"===e.name)),i=e.find((e=>"value"===e.name))
|
|
13190
|
-
t&&n&&i&&
|
|
13162
|
+
t&&n&&i&&RB.isInt(t.type)&&32===t.type.bitWidth&&RB.isInt(n.type)&&32===n.type.bitWidth&&RB.isFloat(i.type)&&i.type.precision===MB.DOUBLE||(this.invalidDiesTableSchema=!0)}return!this.invalidDiesTableSchema}}
|
|
13191
13163
|
/**
|
|
13192
13164
|
* @license
|
|
13193
13165
|
* Copyright 2019 Google LLC
|
|
13194
13166
|
* SPDX-License-Identifier: Apache-2.0
|
|
13195
|
-
*/const
|
|
13196
|
-
return
|
|
13167
|
+
*/const sq=Symbol("Comlink.proxy"),rq=Symbol("Comlink.endpoint"),aq=Symbol("Comlink.releaseProxy"),lq=Symbol("Comlink.finalizer"),cq=Symbol("Comlink.thrown"),dq=e=>"object"==typeof e&&null!==e||"function"==typeof e,hq=new Map([["proxy",{canHandle:e=>dq(e)&&e[sq],serialize(e){const{port1:t,port2:n}=new MessageChannel
|
|
13168
|
+
return uq(e,t),[n,[n]]},deserialize:e=>(e.start(),fq(e))}],["throw",{canHandle:e=>dq(e)&&cq in e,serialize({value:e}){let t
|
|
13197
13169
|
return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value)
|
|
13198
13170
|
throw e.value}}]])
|
|
13199
|
-
function
|
|
13171
|
+
function uq(e,t=globalThis,n=["*"]){t.addEventListener("message",(function i(o){if(!o||!o.data)return
|
|
13200
13172
|
if(!function(e,t){for(const n of e){if(t===n||"*"===n)return!0
|
|
13201
13173
|
if(n instanceof RegExp&&n.test(t))return!0}return!1}(n,o.origin))return void console.warn(`Invalid origin '${o.origin}' for comlink proxy`)
|
|
13202
|
-
const{id:s,type:r,path:a}=Object.assign({path:[]},o.data),l=(o.data.argumentList||[]).map(
|
|
13174
|
+
const{id:s,type:r,path:a}=Object.assign({path:[]},o.data),l=(o.data.argumentList||[]).map(Sq)
|
|
13203
13175
|
let c
|
|
13204
13176
|
try{const t=a.slice(0,-1).reduce(((e,t)=>e[t]),e),n=a.reduce(((e,t)=>e[t]),e)
|
|
13205
13177
|
switch(r){case"GET":c=n
|
|
13206
13178
|
break
|
|
13207
|
-
case"SET":t[a.slice(-1)[0]]=
|
|
13179
|
+
case"SET":t[a.slice(-1)[0]]=Sq(o.data.value),c=!0
|
|
13208
13180
|
break
|
|
13209
13181
|
case"APPLY":c=n.apply(t,l)
|
|
13210
13182
|
break
|
|
13211
|
-
case"CONSTRUCT":c=function(e){return Object.assign(e,{[
|
|
13183
|
+
case"CONSTRUCT":c=function(e){return Object.assign(e,{[sq]:!0})}(new n(...l))
|
|
13212
13184
|
break
|
|
13213
13185
|
case"ENDPOINT":{const{port1:t,port2:n}=new MessageChannel
|
|
13214
|
-
|
|
13186
|
+
uq(e,n),c=Cq(t,[t])}break
|
|
13215
13187
|
case"RELEASE":c=void 0
|
|
13216
13188
|
break
|
|
13217
|
-
default:return}}catch(e){c={value:e,[
|
|
13218
|
-
t.postMessage(Object.assign(Object.assign({},o),{id:s}),a),"RELEASE"===r&&(t.removeEventListener("message",i),
|
|
13219
|
-
t.postMessage(Object.assign(Object.assign({},n),{id:s}),i)}))})),t.start&&t.start()}function
|
|
13220
|
-
|
|
13221
|
-
function
|
|
13222
|
-
const o=new Proxy(n,{get(n,s){if(
|
|
13189
|
+
default:return}}catch(e){c={value:e,[cq]:0}}Promise.resolve(c).catch((e=>({value:e,[cq]:0}))).then((n=>{const[o,a]=kq(n)
|
|
13190
|
+
t.postMessage(Object.assign(Object.assign({},o),{id:s}),a),"RELEASE"===r&&(t.removeEventListener("message",i),pq(t),lq in e&&"function"==typeof e[lq]&&e[lq]())})).catch((e=>{const[n,i]=kq({value:new TypeError("Unserializable return value"),[cq]:0})
|
|
13191
|
+
t.postMessage(Object.assign(Object.assign({},n),{id:s}),i)}))})),t.start&&t.start()}function pq(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function fq(e,t){return yq(e,[],t)}function mq(e){if(e)throw new Error("Proxy has been released and is not useable")}function gq(e){return $q(e,{type:"RELEASE"}).then((()=>{pq(e)}))}const vq=new WeakMap,bq="FinalizationRegistry"in globalThis&&new FinalizationRegistry((e=>{const t=(vq.get(e)||0)-1
|
|
13192
|
+
vq.set(e,t),0===t&&gq(e)}))
|
|
13193
|
+
function yq(e,t=[],n=function(){}){let i=!1
|
|
13194
|
+
const o=new Proxy(n,{get(n,s){if(mq(i),s===aq)return()=>{!function(e){bq&&bq.unregister(e)}(o),gq(e),i=!0}
|
|
13223
13195
|
if("then"===s){if(0===t.length)return{then:()=>o}
|
|
13224
|
-
const n
|
|
13225
|
-
return n.then.bind(n)}return
|
|
13226
|
-
const[r,a]=
|
|
13227
|
-
return
|
|
13196
|
+
const n=$q(e,{type:"GET",path:t.map((e=>e.toString()))}).then(Sq)
|
|
13197
|
+
return n.then.bind(n)}return yq(e,[...t,s])},set(n,o,s){mq(i)
|
|
13198
|
+
const[r,a]=kq(s)
|
|
13199
|
+
return $q(e,{type:"SET",path:[...t,o].map((e=>e.toString())),value:r},a).then(Sq)},apply(n,o,s){mq(i)
|
|
13228
13200
|
const r=t[t.length-1]
|
|
13229
|
-
if(r===
|
|
13230
|
-
if("bind"===r)return
|
|
13231
|
-
const[a,l]=
|
|
13232
|
-
return
|
|
13233
|
-
const[s,r]=
|
|
13234
|
-
return
|
|
13235
|
-
return function(e,t){const n=(
|
|
13236
|
-
|
|
13201
|
+
if(r===rq)return $q(e,{type:"ENDPOINT"}).then(Sq)
|
|
13202
|
+
if("bind"===r)return yq(e,t.slice(0,-1))
|
|
13203
|
+
const[a,l]=wq(s)
|
|
13204
|
+
return $q(e,{type:"APPLY",path:t.map((e=>e.toString())),argumentList:a},l).then(Sq)},construct(n,o){mq(i)
|
|
13205
|
+
const[s,r]=wq(o)
|
|
13206
|
+
return $q(e,{type:"CONSTRUCT",path:t.map((e=>e.toString())),argumentList:s},r).then(Sq)}})
|
|
13207
|
+
return function(e,t){const n=(vq.get(t)||0)+1
|
|
13208
|
+
vq.set(t,n),bq&&bq.register(e,t,e)}(o,e),o}function wq(e){const t=e.map(kq)
|
|
13237
13209
|
return[t.map((e=>e[0])),(n=t.map((e=>e[1])),Array.prototype.concat.apply([],n))]
|
|
13238
|
-
var n}const
|
|
13239
|
-
function
|
|
13240
|
-
return[{type:"HANDLER",name:t,value:i},o]}return[{type:"RAW",value:e},
|
|
13241
|
-
case"RAW":return e.value}}function
|
|
13242
|
-
e.addEventListener("message",(function t(n){n.data&&n.data.id&&n.data.id===o&&(e.removeEventListener("message",t),i(n.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:o},t),n)}))}let
|
|
13243
|
-
class Mq{constructor(e){this.wafermap=e,this.minDieDim=100}async setupWafer(e){if(void 0===this.matrixRenderer){const{matrixRenderer:e}=await(async()=>{if(void 0===$q){const e=new Blob(['var MatrixRenderer = (function (exports) {\n \'use strict\';\n\n /**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n const proxyMarker = Symbol("Comlink.proxy");\n const createEndpoint = Symbol("Comlink.endpoint");\n const releaseProxy = Symbol("Comlink.releaseProxy");\n const finalizer = Symbol("Comlink.finalizer");\n const throwMarker = Symbol("Comlink.thrown");\n const isObject = (val) => (typeof val === "object" && val !== null) || typeof val === "function";\n /**\n * Internal transfer handle to handle objects marked to proxy.\n */\n const proxyTransferHandler = {\n canHandle: (val) => isObject(val) && val[proxyMarker],\n serialize(obj) {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port1);\n return [port2, [port2]];\n },\n deserialize(port) {\n port.start();\n return wrap(port);\n },\n };\n /**\n * Internal transfer handler to handle thrown exceptions.\n */\n const throwTransferHandler = {\n canHandle: (value) => isObject(value) && throwMarker in value,\n serialize({ value }) {\n let serialized;\n if (value instanceof Error) {\n serialized = {\n isError: true,\n value: {\n message: value.message,\n name: value.name,\n stack: value.stack,\n },\n };\n }\n else {\n serialized = { isError: false, value };\n }\n return [serialized, []];\n },\n deserialize(serialized) {\n if (serialized.isError) {\n throw Object.assign(new Error(serialized.value.message), serialized.value);\n }\n throw serialized.value;\n },\n };\n /**\n * Allows customizing the serialization of certain values.\n */\n const transferHandlers = new Map([\n ["proxy", proxyTransferHandler],\n ["throw", throwTransferHandler],\n ]);\n function isAllowedOrigin(allowedOrigins, origin) {\n for (const allowedOrigin of allowedOrigins) {\n if (origin === allowedOrigin || allowedOrigin === "*") {\n return true;\n }\n if (allowedOrigin instanceof RegExp && allowedOrigin.test(origin)) {\n return true;\n }\n }\n return false;\n }\n function expose(obj, ep = globalThis, allowedOrigins = ["*"]) {\n ep.addEventListener("message", function callback(ev) {\n if (!ev || !ev.data) {\n return;\n }\n if (!isAllowedOrigin(allowedOrigins, ev.origin)) {\n console.warn(`Invalid origin \'${ev.origin}\' for comlink proxy`);\n return;\n }\n const { id, type, path } = Object.assign({ path: [] }, ev.data);\n const argumentList = (ev.data.argumentList || []).map(fromWireValue);\n let returnValue;\n try {\n const parent = path.slice(0, -1).reduce((obj, prop) => obj[prop], obj);\n const rawValue = path.reduce((obj, prop) => obj[prop], obj);\n switch (type) {\n case "GET" /* MessageType.GET */:\n {\n returnValue = rawValue;\n }\n break;\n case "SET" /* MessageType.SET */:\n {\n parent[path.slice(-1)[0]] = fromWireValue(ev.data.value);\n returnValue = true;\n }\n break;\n case "APPLY" /* MessageType.APPLY */:\n {\n returnValue = rawValue.apply(parent, argumentList);\n }\n break;\n case "CONSTRUCT" /* MessageType.CONSTRUCT */:\n {\n const value = new rawValue(...argumentList);\n returnValue = proxy(value);\n }\n break;\n case "ENDPOINT" /* MessageType.ENDPOINT */:\n {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port2);\n returnValue = transfer(port1, [port1]);\n }\n break;\n case "RELEASE" /* MessageType.RELEASE */:\n {\n returnValue = undefined;\n }\n break;\n default:\n return;\n }\n }\n catch (value) {\n returnValue = { value, [throwMarker]: 0 };\n }\n Promise.resolve(returnValue)\n .catch((value) => {\n return { value, [throwMarker]: 0 };\n })\n .then((returnValue) => {\n const [wireValue, transferables] = toWireValue(returnValue);\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n if (type === "RELEASE" /* MessageType.RELEASE */) {\n // detach and deactive after sending release response above.\n ep.removeEventListener("message", callback);\n closeEndPoint(ep);\n if (finalizer in obj && typeof obj[finalizer] === "function") {\n obj[finalizer]();\n }\n }\n })\n .catch((error) => {\n // Send Serialization Error To Caller\n const [wireValue, transferables] = toWireValue({\n value: new TypeError("Unserializable return value"),\n [throwMarker]: 0,\n });\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n });\n });\n if (ep.start) {\n ep.start();\n }\n }\n function isMessagePort(endpoint) {\n return endpoint.constructor.name === "MessagePort";\n }\n function closeEndPoint(endpoint) {\n if (isMessagePort(endpoint))\n endpoint.close();\n }\n function wrap(ep, target) {\n return createProxy(ep, [], target);\n }\n function throwIfProxyReleased(isReleased) {\n if (isReleased) {\n throw new Error("Proxy has been released and is not useable");\n }\n }\n function releaseEndpoint(ep) {\n return requestResponseMessage(ep, {\n type: "RELEASE" /* MessageType.RELEASE */,\n }).then(() => {\n closeEndPoint(ep);\n });\n }\n const proxyCounter = new WeakMap();\n const proxyFinalizers = "FinalizationRegistry" in globalThis &&\n new FinalizationRegistry((ep) => {\n const newCount = (proxyCounter.get(ep) || 0) - 1;\n proxyCounter.set(ep, newCount);\n if (newCount === 0) {\n releaseEndpoint(ep);\n }\n });\n function registerProxy(proxy, ep) {\n const newCount = (proxyCounter.get(ep) || 0) + 1;\n proxyCounter.set(ep, newCount);\n if (proxyFinalizers) {\n proxyFinalizers.register(proxy, ep, proxy);\n }\n }\n function unregisterProxy(proxy) {\n if (proxyFinalizers) {\n proxyFinalizers.unregister(proxy);\n }\n }\n function createProxy(ep, path = [], target = function () { }) {\n let isProxyReleased = false;\n const proxy = new Proxy(target, {\n get(_target, prop) {\n throwIfProxyReleased(isProxyReleased);\n if (prop === releaseProxy) {\n return () => {\n unregisterProxy(proxy);\n releaseEndpoint(ep);\n isProxyReleased = true;\n };\n }\n if (prop === "then") {\n if (path.length === 0) {\n return { then: () => proxy };\n }\n const r = requestResponseMessage(ep, {\n type: "GET" /* MessageType.GET */,\n path: path.map((p) => p.toString()),\n }).then(fromWireValue);\n return r.then.bind(r);\n }\n return createProxy(ep, [...path, prop]);\n },\n set(_target, prop, rawValue) {\n throwIfProxyReleased(isProxyReleased);\n // FIXME: ES6 Proxy Handler `set` methods are supposed to return a\n // boolean. To show good will, we return true asynchronously ¯\\_(ツ)_/¯\n const [value, transferables] = toWireValue(rawValue);\n return requestResponseMessage(ep, {\n type: "SET" /* MessageType.SET */,\n path: [...path, prop].map((p) => p.toString()),\n value,\n }, transferables).then(fromWireValue);\n },\n apply(_target, _thisArg, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const last = path[path.length - 1];\n if (last === createEndpoint) {\n return requestResponseMessage(ep, {\n type: "ENDPOINT" /* MessageType.ENDPOINT */,\n }).then(fromWireValue);\n }\n // We just pretend that `bind()` didn’t happen.\n if (last === "bind") {\n return createProxy(ep, path.slice(0, -1));\n }\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, {\n type: "APPLY" /* MessageType.APPLY */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n construct(_target, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, {\n type: "CONSTRUCT" /* MessageType.CONSTRUCT */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n });\n registerProxy(proxy, ep);\n return proxy;\n }\n function myFlat(arr) {\n return Array.prototype.concat.apply([], arr);\n }\n function processArguments(argumentList) {\n const processed = argumentList.map(toWireValue);\n return [processed.map((v) => v[0]), myFlat(processed.map((v) => v[1]))];\n }\n const transferCache = new WeakMap();\n function transfer(obj, transfers) {\n transferCache.set(obj, transfers);\n return obj;\n }\n function proxy(obj) {\n return Object.assign(obj, { [proxyMarker]: true });\n }\n function toWireValue(value) {\n for (const [name, handler] of transferHandlers) {\n if (handler.canHandle(value)) {\n const [serializedValue, transferables] = handler.serialize(value);\n return [\n {\n type: "HANDLER" /* WireValueType.HANDLER */,\n name,\n value: serializedValue,\n },\n transferables,\n ];\n }\n }\n return [\n {\n type: "RAW" /* WireValueType.RAW */,\n value,\n },\n transferCache.get(value) || [],\n ];\n }\n function fromWireValue(value) {\n switch (value.type) {\n case "HANDLER" /* WireValueType.HANDLER */:\n return transferHandlers.get(value.name).deserialize(value.value);\n case "RAW" /* WireValueType.RAW */:\n return value.value;\n }\n }\n function requestResponseMessage(ep, msg, transfers) {\n return new Promise((resolve) => {\n const id = generateUUID();\n ep.addEventListener("message", function l(ev) {\n if (!ev.data || !ev.data.id || ev.data.id !== id) {\n return;\n }\n ep.removeEventListener("message", l);\n resolve(ev.data);\n });\n if (ep.start) {\n ep.start();\n }\n ep.postMessage(Object.assign({ id }, msg), transfers);\n });\n }\n function generateUUID() {\n return new Array(4)\n .fill(0)\n .map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16))\n .join("-");\n }\n\n /**\n * MatrixRenderer class is meant to be used within a Web Worker context,\n * using Comlink to facilitate communication between the main thread and the worker.\n * The MatrixRenderer class manages a matrix of dies, once an instance of MatrixRenderer is created,\n * it is exposed to the main thread using Comlink\'s `expose` method.\n * This setup is used in the wafer-map component to perform heavy computational duties\n */\n class MatrixRenderer {\n constructor() {\n this.values = Float64Array.from([]);\n this.scaledColumnIndices = Float64Array.from([]);\n this.scaledRowIndices = Float64Array.from([]);\n this.columnIndicesPositions = Int32Array.from([]);\n this.colorIndices = Int32Array.from([]);\n this.colors = [];\n this.colorValues = Float64Array.from([]);\n this.outsideRangeDieColor = \'rgba(218,223,236,1)\';\n this.fontSizeFactor = 0.8;\n this.renderConfig = {\n dieDimensions: {\n width: 0,\n height: 0\n },\n margin: {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n },\n verticalCoefficient: 1,\n horizontalCoefficient: 1,\n horizontalConstant: 0,\n verticalConstant: 0,\n gridMinX: 0,\n gridMaxX: 0,\n gridMinY: 0,\n gridMaxY: 0,\n labelsFontSize: 0,\n colorScale: [],\n dieLabelsSuffix: \'\',\n maxCharacters: 0\n };\n this.transformConfig = {\n transform: {\n k: 1,\n x: 0,\n y: 0\n },\n topLeftCanvasCorner: {\n x: 0,\n y: 0\n },\n bottomRightCanvasCorner: {\n x: 0,\n y: 0\n }\n };\n }\n setMatrixData(columnIndices, rowIndices, valuesBuffer) {\n const scaledColumnIndex = [];\n const columnPositions = [];\n const scaledRowIndices = [];\n const values = [];\n const colorIndices = [];\n let prevXIndex;\n let dieCount = 0;\n for (let i = 0; i < columnIndices.length; i++) {\n const xIndex = columnIndices[i];\n const yIndex = rowIndices[i];\n if (this.isDieInGrid(xIndex, yIndex)) {\n if (xIndex !== prevXIndex) {\n scaledColumnIndex.push(this.calculateHorizontalScaledIndices(xIndex));\n columnPositions.push(dieCount);\n prevXIndex = xIndex;\n }\n scaledRowIndices.push(this.calculateVerticalScaledIndices(yIndex));\n const value = valuesBuffer[i];\n values.push(value);\n colorIndices.push(this.findColorIndex(value));\n dieCount += 1;\n }\n }\n this.scaledColumnIndices = Float64Array.from(scaledColumnIndex);\n this.columnIndicesPositions = Int32Array.from(columnPositions);\n this.scaledRowIndices = Float64Array.from(scaledRowIndices);\n this.values = Float64Array.from(values);\n this.colorIndices = Int32Array.from(colorIndices);\n }\n setRenderConfig(renderConfig) {\n this.renderConfig = renderConfig;\n this.colors = renderConfig.colorScale.map(marker => marker.color);\n this.colorValues = Float64Array.from(renderConfig.colorScale.map(marker => marker.value));\n }\n setTransformConfig(transformData) {\n this.transformConfig = transformData;\n }\n setCanvas(canvas) {\n this.canvas = canvas;\n this.context = canvas.getContext(\'2d\');\n }\n scaleCanvas() {\n this.context.translate(this.transformConfig.transform.x, this.transformConfig.transform.y);\n this.context.scale(this.transformConfig.transform.k, this.transformConfig.transform.k);\n }\n setCanvasDimensions(data) {\n this.canvas.width = data.width;\n this.canvas.height = data.height;\n }\n getCanvasDimensions() {\n return {\n width: this.canvas.width,\n height: this.canvas.height\n };\n }\n clearCanvas() {\n this.context.clearRect(0, 0, this.canvas.width, this.canvas.height);\n }\n drawWafer() {\n this.context.restore();\n this.context.save();\n this.clearCanvas();\n this.scaleCanvas();\n for (let i = 0; i < this.scaledColumnIndices.length; i++) {\n const scaledX = this.scaledColumnIndices[i];\n if (!(scaledX >= this.transformConfig.topLeftCanvasCorner.x\n && scaledX < this.transformConfig.bottomRightCanvasCorner.x)) {\n continue;\n }\n // columnIndexPositions is used to get chunks to determine the start and end index of the column, it looks something like [0, 1, 4, 9, 12]\n // This means that the first column has a start index of 0 and an end index of 1, the second column has a start index of 1 and an end index of 4, and so on\n // scaledRowIndices is used when we reach the end of the columnIndexPositions, when columnIndexPositions is [0, 1, 4, 9, 12], scaledRowIndices is 13\n const columnEndIndex = this.columnIndicesPositions[i + 1] !== undefined\n ? this.columnIndicesPositions[i + 1]\n : this.scaledRowIndices.length;\n for (let columnStartIndex = this.columnIndicesPositions[i]; columnStartIndex < columnEndIndex; columnStartIndex++) {\n const scaledY = this.scaledRowIndices[columnStartIndex];\n if (!(scaledY >= this.transformConfig.topLeftCanvasCorner.y\n && scaledY < this.transformConfig.bottomRightCanvasCorner.y)) {\n continue;\n }\n // Fill style is temporary green for all dies, will be replaced with a color based on the value of the die in a future implementation\n this.context.fillStyle = this.colors[this.colorIndices[columnStartIndex]]\n ?? this.outsideRangeDieColor;\n this.context.fillRect(scaledX, scaledY, this.renderConfig.dieDimensions.width, this.renderConfig.dieDimensions.height);\n }\n }\n }\n drawText() {\n this.context.font = `${this.renderConfig.labelsFontSize.toString()}px sans-serif`;\n this.context.fillStyle = \'#ffffff\';\n this.context.textAlign = \'center\';\n this.context.lineCap = \'butt\';\n const approximateTextHeight = this.context.measureText(\'M\');\n for (let i = 0; i < this.scaledColumnIndices.length; i++) {\n const scaledX = this.scaledColumnIndices[i];\n if (!(scaledX >= this.transformConfig.topLeftCanvasCorner.x\n && scaledX < this.transformConfig.bottomRightCanvasCorner.x)) {\n continue;\n }\n // columnIndexPositions is used to get chunks to determine the start and end index of the column, it looks something like [0, 1, 4, 9, 12]\n // This means that the first column has a start index of 0 and an end index of 1, the second column has a start index of 1 and an end index of 4, and so on\n // scaledRowIndices is used when we reach the end of the columnIndexPositions, when columnIndexPositions is [0, 1, 4, 9, 12], scaledRowIndices is 13\n const columnEndIndex = this.columnIndicesPositions[i + 1] !== undefined\n ? this.columnIndicesPositions[i + 1]\n : this.scaledRowIndices.length;\n for (let columnStartIndex = this.columnIndicesPositions[i]; columnStartIndex < columnEndIndex; columnStartIndex++) {\n const scaledY = this.scaledRowIndices[columnStartIndex];\n if (!(scaledY >= this.transformConfig.topLeftCanvasCorner.y\n && scaledY < this.transformConfig.bottomRightCanvasCorner.y)) {\n continue;\n }\n let label = `${this.values[columnStartIndex] || \'NaN\'}${this.renderConfig.dieLabelsSuffix}`;\n if (label.length >= this.renderConfig.maxCharacters) {\n label = `${label.substring(0, this.renderConfig.maxCharacters)}…`;\n }\n this.context.fillText(label, scaledX + this.renderConfig.dieDimensions.width / 2, scaledY\n + this.renderConfig.dieDimensions.height / 2\n + approximateTextHeight.width / 2, this.renderConfig.dieDimensions.width * this.fontSizeFactor);\n }\n }\n }\n isDieInGrid(x, y) {\n return (x >= this.renderConfig.gridMinX\n && x <= this.renderConfig.gridMaxX\n && y >= this.renderConfig.gridMinY\n && y <= this.renderConfig.gridMaxY);\n }\n calculateHorizontalScaledIndices(columnIndex) {\n return (this.renderConfig.horizontalCoefficient * columnIndex\n + this.renderConfig.horizontalConstant\n + this.renderConfig.margin.left);\n }\n calculateVerticalScaledIndices(rowIndex) {\n return (this.renderConfig.verticalCoefficient * rowIndex\n + this.renderConfig.verticalConstant\n + this.renderConfig.margin.top);\n }\n findColorIndex(value) {\n let index = -1;\n if (this.colorValues.length === 0 || this.colorValues[0] >= value) {\n return index;\n }\n for (let i = 0; i < this.colorValues.length; i++) {\n if (value <= this.colorValues[i]) {\n index = i;\n break;\n }\n }\n return index;\n }\n }\n expose(MatrixRenderer);\n\n exports.MatrixRenderer = MatrixRenderer;\n\n return exports;\n\n})({});\n'],{type:"text/javascript"})
|
|
13244
|
-
|
|
13210
|
+
var n}const xq=new WeakMap
|
|
13211
|
+
function Cq(e,t){return xq.set(e,t),e}function kq(e){for(const[t,n]of hq)if(n.canHandle(e)){const[i,o]=n.serialize(e)
|
|
13212
|
+
return[{type:"HANDLER",name:t,value:i},o]}return[{type:"RAW",value:e},xq.get(e)||[]]}function Sq(e){switch(e.type){case"HANDLER":return hq.get(e.name).deserialize(e.value)
|
|
13213
|
+
case"RAW":return e.value}}function $q(e,t,n){return new Promise((i=>{const o=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-")
|
|
13214
|
+
e.addEventListener("message",(function t(n){n.data&&n.data.id&&n.data.id===o&&(e.removeEventListener("message",t),i(n.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:o},t),n)}))}let Mq
|
|
13215
|
+
class _q{constructor(e){this.wafermap=e,this.minDieDim=100}async setupWafer(e){if(void 0===this.matrixRenderer){const{matrixRenderer:e}=await(async()=>{if(void 0===Mq){const e=new Blob(['var MatrixRenderer = (function (exports) {\n \'use strict\';\n\n /**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n const proxyMarker = Symbol("Comlink.proxy");\n const createEndpoint = Symbol("Comlink.endpoint");\n const releaseProxy = Symbol("Comlink.releaseProxy");\n const finalizer = Symbol("Comlink.finalizer");\n const throwMarker = Symbol("Comlink.thrown");\n const isObject = (val) => (typeof val === "object" && val !== null) || typeof val === "function";\n /**\n * Internal transfer handle to handle objects marked to proxy.\n */\n const proxyTransferHandler = {\n canHandle: (val) => isObject(val) && val[proxyMarker],\n serialize(obj) {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port1);\n return [port2, [port2]];\n },\n deserialize(port) {\n port.start();\n return wrap(port);\n },\n };\n /**\n * Internal transfer handler to handle thrown exceptions.\n */\n const throwTransferHandler = {\n canHandle: (value) => isObject(value) && throwMarker in value,\n serialize({ value }) {\n let serialized;\n if (value instanceof Error) {\n serialized = {\n isError: true,\n value: {\n message: value.message,\n name: value.name,\n stack: value.stack,\n },\n };\n }\n else {\n serialized = { isError: false, value };\n }\n return [serialized, []];\n },\n deserialize(serialized) {\n if (serialized.isError) {\n throw Object.assign(new Error(serialized.value.message), serialized.value);\n }\n throw serialized.value;\n },\n };\n /**\n * Allows customizing the serialization of certain values.\n */\n const transferHandlers = new Map([\n ["proxy", proxyTransferHandler],\n ["throw", throwTransferHandler],\n ]);\n function isAllowedOrigin(allowedOrigins, origin) {\n for (const allowedOrigin of allowedOrigins) {\n if (origin === allowedOrigin || allowedOrigin === "*") {\n return true;\n }\n if (allowedOrigin instanceof RegExp && allowedOrigin.test(origin)) {\n return true;\n }\n }\n return false;\n }\n function expose(obj, ep = globalThis, allowedOrigins = ["*"]) {\n ep.addEventListener("message", function callback(ev) {\n if (!ev || !ev.data) {\n return;\n }\n if (!isAllowedOrigin(allowedOrigins, ev.origin)) {\n console.warn(`Invalid origin \'${ev.origin}\' for comlink proxy`);\n return;\n }\n const { id, type, path } = Object.assign({ path: [] }, ev.data);\n const argumentList = (ev.data.argumentList || []).map(fromWireValue);\n let returnValue;\n try {\n const parent = path.slice(0, -1).reduce((obj, prop) => obj[prop], obj);\n const rawValue = path.reduce((obj, prop) => obj[prop], obj);\n switch (type) {\n case "GET" /* MessageType.GET */:\n {\n returnValue = rawValue;\n }\n break;\n case "SET" /* MessageType.SET */:\n {\n parent[path.slice(-1)[0]] = fromWireValue(ev.data.value);\n returnValue = true;\n }\n break;\n case "APPLY" /* MessageType.APPLY */:\n {\n returnValue = rawValue.apply(parent, argumentList);\n }\n break;\n case "CONSTRUCT" /* MessageType.CONSTRUCT */:\n {\n const value = new rawValue(...argumentList);\n returnValue = proxy(value);\n }\n break;\n case "ENDPOINT" /* MessageType.ENDPOINT */:\n {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port2);\n returnValue = transfer(port1, [port1]);\n }\n break;\n case "RELEASE" /* MessageType.RELEASE */:\n {\n returnValue = undefined;\n }\n break;\n default:\n return;\n }\n }\n catch (value) {\n returnValue = { value, [throwMarker]: 0 };\n }\n Promise.resolve(returnValue)\n .catch((value) => {\n return { value, [throwMarker]: 0 };\n })\n .then((returnValue) => {\n const [wireValue, transferables] = toWireValue(returnValue);\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n if (type === "RELEASE" /* MessageType.RELEASE */) {\n // detach and deactive after sending release response above.\n ep.removeEventListener("message", callback);\n closeEndPoint(ep);\n if (finalizer in obj && typeof obj[finalizer] === "function") {\n obj[finalizer]();\n }\n }\n })\n .catch((error) => {\n // Send Serialization Error To Caller\n const [wireValue, transferables] = toWireValue({\n value: new TypeError("Unserializable return value"),\n [throwMarker]: 0,\n });\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n });\n });\n if (ep.start) {\n ep.start();\n }\n }\n function isMessagePort(endpoint) {\n return endpoint.constructor.name === "MessagePort";\n }\n function closeEndPoint(endpoint) {\n if (isMessagePort(endpoint))\n endpoint.close();\n }\n function wrap(ep, target) {\n return createProxy(ep, [], target);\n }\n function throwIfProxyReleased(isReleased) {\n if (isReleased) {\n throw new Error("Proxy has been released and is not useable");\n }\n }\n function releaseEndpoint(ep) {\n return requestResponseMessage(ep, {\n type: "RELEASE" /* MessageType.RELEASE */,\n }).then(() => {\n closeEndPoint(ep);\n });\n }\n const proxyCounter = new WeakMap();\n const proxyFinalizers = "FinalizationRegistry" in globalThis &&\n new FinalizationRegistry((ep) => {\n const newCount = (proxyCounter.get(ep) || 0) - 1;\n proxyCounter.set(ep, newCount);\n if (newCount === 0) {\n releaseEndpoint(ep);\n }\n });\n function registerProxy(proxy, ep) {\n const newCount = (proxyCounter.get(ep) || 0) + 1;\n proxyCounter.set(ep, newCount);\n if (proxyFinalizers) {\n proxyFinalizers.register(proxy, ep, proxy);\n }\n }\n function unregisterProxy(proxy) {\n if (proxyFinalizers) {\n proxyFinalizers.unregister(proxy);\n }\n }\n function createProxy(ep, path = [], target = function () { }) {\n let isProxyReleased = false;\n const proxy = new Proxy(target, {\n get(_target, prop) {\n throwIfProxyReleased(isProxyReleased);\n if (prop === releaseProxy) {\n return () => {\n unregisterProxy(proxy);\n releaseEndpoint(ep);\n isProxyReleased = true;\n };\n }\n if (prop === "then") {\n if (path.length === 0) {\n return { then: () => proxy };\n }\n const r = requestResponseMessage(ep, {\n type: "GET" /* MessageType.GET */,\n path: path.map((p) => p.toString()),\n }).then(fromWireValue);\n return r.then.bind(r);\n }\n return createProxy(ep, [...path, prop]);\n },\n set(_target, prop, rawValue) {\n throwIfProxyReleased(isProxyReleased);\n // FIXME: ES6 Proxy Handler `set` methods are supposed to return a\n // boolean. To show good will, we return true asynchronously ¯\\_(ツ)_/¯\n const [value, transferables] = toWireValue(rawValue);\n return requestResponseMessage(ep, {\n type: "SET" /* MessageType.SET */,\n path: [...path, prop].map((p) => p.toString()),\n value,\n }, transferables).then(fromWireValue);\n },\n apply(_target, _thisArg, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const last = path[path.length - 1];\n if (last === createEndpoint) {\n return requestResponseMessage(ep, {\n type: "ENDPOINT" /* MessageType.ENDPOINT */,\n }).then(fromWireValue);\n }\n // We just pretend that `bind()` didn’t happen.\n if (last === "bind") {\n return createProxy(ep, path.slice(0, -1));\n }\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, {\n type: "APPLY" /* MessageType.APPLY */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n construct(_target, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, {\n type: "CONSTRUCT" /* MessageType.CONSTRUCT */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n });\n registerProxy(proxy, ep);\n return proxy;\n }\n function myFlat(arr) {\n return Array.prototype.concat.apply([], arr);\n }\n function processArguments(argumentList) {\n const processed = argumentList.map(toWireValue);\n return [processed.map((v) => v[0]), myFlat(processed.map((v) => v[1]))];\n }\n const transferCache = new WeakMap();\n function transfer(obj, transfers) {\n transferCache.set(obj, transfers);\n return obj;\n }\n function proxy(obj) {\n return Object.assign(obj, { [proxyMarker]: true });\n }\n function toWireValue(value) {\n for (const [name, handler] of transferHandlers) {\n if (handler.canHandle(value)) {\n const [serializedValue, transferables] = handler.serialize(value);\n return [\n {\n type: "HANDLER" /* WireValueType.HANDLER */,\n name,\n value: serializedValue,\n },\n transferables,\n ];\n }\n }\n return [\n {\n type: "RAW" /* WireValueType.RAW */,\n value,\n },\n transferCache.get(value) || [],\n ];\n }\n function fromWireValue(value) {\n switch (value.type) {\n case "HANDLER" /* WireValueType.HANDLER */:\n return transferHandlers.get(value.name).deserialize(value.value);\n case "RAW" /* WireValueType.RAW */:\n return value.value;\n }\n }\n function requestResponseMessage(ep, msg, transfers) {\n return new Promise((resolve) => {\n const id = generateUUID();\n ep.addEventListener("message", function l(ev) {\n if (!ev.data || !ev.data.id || ev.data.id !== id) {\n return;\n }\n ep.removeEventListener("message", l);\n resolve(ev.data);\n });\n if (ep.start) {\n ep.start();\n }\n ep.postMessage(Object.assign({ id }, msg), transfers);\n });\n }\n function generateUUID() {\n return new Array(4)\n .fill(0)\n .map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16))\n .join("-");\n }\n\n /**\n * MatrixRenderer class is meant to be used within a Web Worker context,\n * using Comlink to facilitate communication between the main thread and the worker.\n * The MatrixRenderer class manages a matrix of dies, once an instance of MatrixRenderer is created,\n * it is exposed to the main thread using Comlink\'s `expose` method.\n * This setup is used in the wafer-map component to perform heavy computational duties\n */\n class MatrixRenderer {\n constructor() {\n this.values = Float64Array.from([]);\n this.scaledColumnIndices = Float64Array.from([]);\n this.scaledRowIndices = Float64Array.from([]);\n this.columnIndicesPositions = Int32Array.from([]);\n this.colorIndices = Int32Array.from([]);\n this.colors = [];\n this.colorValues = Float64Array.from([]);\n this.outsideRangeDieColor = \'rgba(218,223,236,1)\';\n this.fontSizeFactor = 0.8;\n this.renderConfig = {\n dieDimensions: {\n width: 0,\n height: 0\n },\n margin: {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n },\n verticalCoefficient: 1,\n horizontalCoefficient: 1,\n horizontalConstant: 0,\n verticalConstant: 0,\n gridMinX: 0,\n gridMaxX: 0,\n gridMinY: 0,\n gridMaxY: 0,\n labelsFontSize: 0,\n colorScale: [],\n dieLabelsSuffix: \'\',\n maxCharacters: 0\n };\n this.transformConfig = {\n transform: {\n k: 1,\n x: 0,\n y: 0\n },\n topLeftCanvasCorner: {\n x: 0,\n y: 0\n },\n bottomRightCanvasCorner: {\n x: 0,\n y: 0\n }\n };\n }\n setMatrixData(columnIndices, rowIndices, valuesBuffer) {\n const scaledColumnIndex = [];\n const columnPositions = [];\n const scaledRowIndices = [];\n const values = [];\n const colorIndices = [];\n let prevXIndex;\n let dieCount = 0;\n for (let i = 0; i < columnIndices.length; i++) {\n const xIndex = columnIndices[i];\n const yIndex = rowIndices[i];\n if (this.isDieInGrid(xIndex, yIndex)) {\n if (xIndex !== prevXIndex) {\n scaledColumnIndex.push(this.calculateHorizontalScaledIndices(xIndex));\n columnPositions.push(dieCount);\n prevXIndex = xIndex;\n }\n scaledRowIndices.push(this.calculateVerticalScaledIndices(yIndex));\n const value = valuesBuffer[i];\n values.push(value);\n colorIndices.push(this.findColorIndex(value));\n dieCount += 1;\n }\n }\n this.scaledColumnIndices = Float64Array.from(scaledColumnIndex);\n this.columnIndicesPositions = Int32Array.from(columnPositions);\n this.scaledRowIndices = Float64Array.from(scaledRowIndices);\n this.values = Float64Array.from(values);\n this.colorIndices = Int32Array.from(colorIndices);\n }\n setRenderConfig(renderConfig) {\n this.renderConfig = renderConfig;\n this.colors = renderConfig.colorScale.map(marker => marker.color);\n this.colorValues = Float64Array.from(renderConfig.colorScale.map(marker => marker.value));\n }\n setTransformConfig(transformData) {\n this.transformConfig = transformData;\n }\n setCanvas(canvas) {\n this.canvas = canvas;\n this.context = canvas.getContext(\'2d\');\n }\n scaleCanvas() {\n this.context.translate(this.transformConfig.transform.x, this.transformConfig.transform.y);\n this.context.scale(this.transformConfig.transform.k, this.transformConfig.transform.k);\n }\n setCanvasDimensions(data) {\n this.canvas.width = data.width;\n this.canvas.height = data.height;\n }\n getCanvasDimensions() {\n return {\n width: this.canvas.width,\n height: this.canvas.height\n };\n }\n clearCanvas() {\n this.context.clearRect(0, 0, this.canvas.width, this.canvas.height);\n }\n drawWafer() {\n this.context.restore();\n this.context.save();\n this.clearCanvas();\n this.scaleCanvas();\n for (let i = 0; i < this.scaledColumnIndices.length; i++) {\n const scaledX = this.scaledColumnIndices[i];\n if (!(scaledX >= this.transformConfig.topLeftCanvasCorner.x\n && scaledX < this.transformConfig.bottomRightCanvasCorner.x)) {\n continue;\n }\n // columnIndexPositions is used to get chunks to determine the start and end index of the column, it looks something like [0, 1, 4, 9, 12]\n // This means that the first column has a start index of 0 and an end index of 1, the second column has a start index of 1 and an end index of 4, and so on\n // scaledRowIndices is used when we reach the end of the columnIndexPositions, when columnIndexPositions is [0, 1, 4, 9, 12], scaledRowIndices is 13\n const columnEndIndex = this.columnIndicesPositions[i + 1] !== undefined\n ? this.columnIndicesPositions[i + 1]\n : this.scaledRowIndices.length;\n for (let columnStartIndex = this.columnIndicesPositions[i]; columnStartIndex < columnEndIndex; columnStartIndex++) {\n const scaledY = this.scaledRowIndices[columnStartIndex];\n if (!(scaledY >= this.transformConfig.topLeftCanvasCorner.y\n && scaledY < this.transformConfig.bottomRightCanvasCorner.y)) {\n continue;\n }\n // Fill style is temporary green for all dies, will be replaced with a color based on the value of the die in a future implementation\n this.context.fillStyle = this.colors[this.colorIndices[columnStartIndex]]\n ?? this.outsideRangeDieColor;\n this.context.fillRect(scaledX, scaledY, this.renderConfig.dieDimensions.width, this.renderConfig.dieDimensions.height);\n }\n }\n }\n drawText() {\n this.context.font = `${this.renderConfig.labelsFontSize.toString()}px sans-serif`;\n this.context.fillStyle = \'#ffffff\';\n this.context.textAlign = \'center\';\n this.context.lineCap = \'butt\';\n const approximateTextHeight = this.context.measureText(\'M\');\n for (let i = 0; i < this.scaledColumnIndices.length; i++) {\n const scaledX = this.scaledColumnIndices[i];\n if (!(scaledX >= this.transformConfig.topLeftCanvasCorner.x\n && scaledX < this.transformConfig.bottomRightCanvasCorner.x)) {\n continue;\n }\n // columnIndexPositions is used to get chunks to determine the start and end index of the column, it looks something like [0, 1, 4, 9, 12]\n // This means that the first column has a start index of 0 and an end index of 1, the second column has a start index of 1 and an end index of 4, and so on\n // scaledRowIndices is used when we reach the end of the columnIndexPositions, when columnIndexPositions is [0, 1, 4, 9, 12], scaledRowIndices is 13\n const columnEndIndex = this.columnIndicesPositions[i + 1] !== undefined\n ? this.columnIndicesPositions[i + 1]\n : this.scaledRowIndices.length;\n for (let columnStartIndex = this.columnIndicesPositions[i]; columnStartIndex < columnEndIndex; columnStartIndex++) {\n const scaledY = this.scaledRowIndices[columnStartIndex];\n if (!(scaledY >= this.transformConfig.topLeftCanvasCorner.y\n && scaledY < this.transformConfig.bottomRightCanvasCorner.y)) {\n continue;\n }\n let label = `${this.values[columnStartIndex] || \'NaN\'}${this.renderConfig.dieLabelsSuffix}`;\n if (label.length >= this.renderConfig.maxCharacters) {\n label = `${label.substring(0, this.renderConfig.maxCharacters)}…`;\n }\n this.context.fillText(label, scaledX + this.renderConfig.dieDimensions.width / 2, scaledY\n + this.renderConfig.dieDimensions.height / 2\n + approximateTextHeight.width / 2, this.renderConfig.dieDimensions.width * this.fontSizeFactor);\n }\n }\n }\n isDieInGrid(x, y) {\n return (x >= this.renderConfig.gridMinX\n && x <= this.renderConfig.gridMaxX\n && y >= this.renderConfig.gridMinY\n && y <= this.renderConfig.gridMaxY);\n }\n calculateHorizontalScaledIndices(columnIndex) {\n return (this.renderConfig.horizontalCoefficient * columnIndex\n + this.renderConfig.horizontalConstant\n + this.renderConfig.margin.left);\n }\n calculateVerticalScaledIndices(rowIndex) {\n return (this.renderConfig.verticalCoefficient * rowIndex\n + this.renderConfig.verticalConstant\n + this.renderConfig.margin.top);\n }\n findColorIndex(value) {\n let index = -1;\n if (this.colorValues.length === 0 || this.colorValues[0] >= value) {\n return index;\n }\n for (let i = 0; i < this.colorValues.length; i++) {\n if (value <= this.colorValues[i]) {\n index = i;\n break;\n }\n }\n return index;\n }\n }\n expose(MatrixRenderer);\n\n exports.MatrixRenderer = MatrixRenderer;\n\n return exports;\n\n})({});\n'],{type:"text/javascript"})
|
|
13216
|
+
Mq=URL.createObjectURL(e)}const e=new Worker(Mq),t=fq(e)
|
|
13245
13217
|
return{matrixRenderer:await new t,terminate:()=>e.terminate()}})()
|
|
13246
13218
|
this.matrixRenderer=e
|
|
13247
13219
|
const t=this.wafermap.workerCanvas.transferControlToOffscreen()
|
|
13248
|
-
await this.matrixRenderer.setCanvas(
|
|
13249
|
-
await this.matrixRenderer.setTransformConfig({transform:e.transform,topLeftCanvasCorner:{x:t[0]-e.dieDimensions.width,y:t[1]-e.dieDimensions.height},bottomRightCanvasCorner:{x:n[0],y:n[1]}}),await this.matrixRenderer.drawWafer(),!e.dieLabelsHidden&&e.dieDimensions&&e.dieDimensions.width*e.dieDimensions.height*(e.transform.k||1)>=this.minDieDim&&await this.matrixRenderer.drawText()}renderHover(){void 0!==this.wafermap.computations.dieDimensions&&void 0!==this.wafermap.transform&&(this.wafermap.hoverWidth=this.wafermap.computations.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.computations.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?gB
|
|
13220
|
+
await this.matrixRenderer.setCanvas(Cq(t,[t]))}await this.matrixRenderer.setCanvasDimensions(e.canvasDimensions),await this.matrixRenderer.setRenderConfig(e.renderConfig),await this.matrixRenderer.setMatrixData(e.columnIndices,e.rowIndices,e.values)}async drawWafer(e){const t=e.transform.invert([0,0]),n=e.transform.invert([e.canvasDimensions.width,e.canvasDimensions.height])
|
|
13221
|
+
await this.matrixRenderer.setTransformConfig({transform:e.transform,topLeftCanvasCorner:{x:t[0]-e.dieDimensions.width,y:t[1]-e.dieDimensions.height},bottomRightCanvasCorner:{x:n[0],y:n[1]}}),await this.matrixRenderer.drawWafer(),!e.dieLabelsHidden&&e.dieDimensions&&e.dieDimensions.width*e.dieDimensions.height*(e.transform.k||1)>=this.minDieDim&&await this.matrixRenderer.drawText()}renderHover(){void 0!==this.wafermap.computations.dieDimensions&&void 0!==this.wafermap.transform&&(this.wafermap.hoverWidth=this.wafermap.computations.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.computations.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?vB:gB,this.wafermap.hoverTransform=this.calculateHoverTransform())}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.computations.horizontalScale(this.wafermap.hoverDie.x)
|
|
13250
13222
|
if(void 0===e)return""
|
|
13251
13223
|
const t=this.wafermap.computations.verticalScale(this.wafermap.hoverDie.y)
|
|
13252
13224
|
if(void 0===t)return""
|
|
13253
13225
|
const n=this.wafermap.transform.apply([e+this.wafermap.computations.margin.left,t+this.wafermap.computations.margin.top])
|
|
13254
|
-
return`translate(${n[0]}, ${n[1]})`}return""}}class
|
|
13226
|
+
return`translate(${n[0]}, ${n[1]})`}return""}}class Eq{constructor(e){this.wafermap=e,this.onMouseMove=e=>{if(!this.wafermap.isExperimentalUpdate())return
|
|
13255
13227
|
const t=this.wafermap.transform.invert([e.offsetX,e.offsetY]),n=this.calculateDieCoordinates({x:t[0],y:t[1]})
|
|
13256
13228
|
if(void 0===n||!this.isDieInGrid(n.x,n.y))return void(this.wafermap.hoverDie=void 0)
|
|
13257
13229
|
const i=this.wafermap.diesTable.getChild("colIndex").toArray(),o=this.wafermap.diesTable.getChild("rowIndex").toArray()
|
|
13258
13230
|
for(let e=0;e<i.length;e++)if(i[e]===n.x&&o[e]===n.y)return void(this.wafermap.hoverDie={index:e,x:n.x,y:n.y})
|
|
13259
|
-
this.wafermap.hoverDie=void 0},this.onMouseOut=e=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(e){if(this.wafermap.isExperimentalUpdate()){const t=this.wafermap.originLocation,n=t===
|
|
13260
|
-
return{x:n(this.wafermap.computations.horizontalScale.invert(e.x-this.wafermap.computations.margin.left)),y:i(this.wafermap.computations.verticalScale.invert(e.y-this.wafermap.computations.margin.top))}}}isDieInGrid(e,t){return e>=this.wafermap.computations.gridMinX&&e<=this.wafermap.computations.gridMaxX&&t>=this.wafermap.computations.gridMinY&&t<=this.wafermap.computations.gridMaxY}}class
|
|
13231
|
+
this.wafermap.hoverDie=void 0},this.onMouseOut=e=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(e){if(this.wafermap.isExperimentalUpdate()){const t=this.wafermap.originLocation,n=t===uB||t===fB?Math.floor:Math.ceil,i=t===uB||t===pB?Math.ceil:Math.floor
|
|
13232
|
+
return{x:n(this.wafermap.computations.horizontalScale.invert(e.x-this.wafermap.computations.margin.left)),y:i(this.wafermap.computations.verticalScale.invert(e.y-this.wafermap.computations.margin.top))}}}isDieInGrid(e,t){return e>=this.wafermap.computations.gridMinX&&e<=this.wafermap.computations.gridMaxX&&t>=this.wafermap.computations.gridMinY&&t<=this.wafermap.computations.gridMaxY}}class Iq{constructor(e){this.wafermap=e,this.scaleExtent=[1,100],this.minExtentPoint=[0,0],this.onWheelMove=e=>{e.preventDefault()},this.wafermapNotifier=m.getNotifier(this.wafermap),this.wafermapNotifier.subscribe(this,"canvasWidth"),this.wafermapNotifier.subscribe(this,"canvasHeight")}connect(){this.createZoomBehavior(),this.wafermap.addEventListener("wheel",this.onWheelMove,{passive:!1})}disconnect(){vH().on("zoom",null)(KL(this.wafermap)),this.wafermap.removeEventListener("wheel",this.onWheelMove)}handleChange(e,t){e!==this.wafermap||"canvasWidth"!==t&&"canvasHeight"!==t||this.createZoomBehavior()}createZoomBehavior(){vH().scaleExtent(this.scaleExtent).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth,this.wafermap.canvasHeight]]).on("zoom",(e=>{this.wafermap.transform=e.transform}))(KL(this.wafermap))}}class Dq{get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get margin(){return this._margin}get verticalCoefficient(){return this._verticalCoefficient}get horizontalCoefficient(){return this._horizontalCoefficient}get horizontalConstant(){return this._horizontalConstant}get verticalConstant(){return this._verticalConstant}get gridMinX(){return this._gridMinX}get gridMaxX(){return this._gridMaxX}get gridMinY(){return this._gridMinY}get gridMaxY(){return this._gridMaxY}get labelsFontSize(){return this._labelsFontSize}get colorScale(){return this._colorScale}constructor(e){this.wafermap=e,this.baseMarginPercentage=.04,this.fontSizeFactor=.8,this.colorScaleResolution=10}componentResizeUpdate(){const e={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},t=Math.min(e.width,e.height),n={top:(e.height-t)/2,right:(e.width-t)/2,bottom:(e.height-t)/2,left:(e.width-t)/2},i={top:t*this.baseMarginPercentage,right:t*this.baseMarginPercentage,bottom:t*this.baseMarginPercentage,left:t*this.baseMarginPercentage}
|
|
13261
13233
|
this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(e,this.margin),this.inputDataUpdate()}inputDataUpdate(){if(void 0===this._containerDimensions)return void this.componentResizeUpdate()
|
|
13262
13234
|
const e=Math.min(this._containerDimensions.width,this._containerDimensions.height)
|
|
13263
13235
|
this.gridDimensionsValidAndDefined()?this.setGridDimensionsFromBoundingBox():this.setGridDimensionsFromDies()
|
|
@@ -13265,31 +13237,31 @@ const t=this.wafermap.originLocation
|
|
|
13265
13237
|
this._horizontalScale=this.createHorizontalScale(t,e),this._verticalScale=this.createVerticalScale(t,e),this._horizontalCoefficient=this._horizontalScale(1)-this._horizontalScale(0),this._verticalCoefficient=this._verticalScale(1)-this._verticalScale(0),this._horizontalConstant=this._horizontalScale(0),this._verticalConstant=this._verticalScale(0),this._dieDimensions={width:Math.abs(this._horizontalScale(0)-this._horizontalScale(1)),height:Math.abs(this._verticalScale(0)-this._verticalScale(1))},this.colorAndTextUpdate()}colorAndTextUpdate(){void 0!==this._dieDimensions?(this._labelsFontSize=this.calculateLabelsFontSize(this._dieDimensions,this.wafermap.maxCharacters),this._colorScale=this.calculateColorScale()):this.inputDataUpdate()}gridDimensionsValidAndDefined(){return!this.wafermap.validity.invalidGridDimensions&&"number"==typeof this.wafermap.gridMinX&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX}setGridDimensionsFromBoundingBox(){this._gridMinX=this.wafermap.gridMinX,this._gridMinY=this.wafermap.gridMinY,this._gridMaxX=this.wafermap.gridMaxX,this._gridMaxY=this.wafermap.gridMaxY}setGridDimensionsFromDies(){if(void 0===this.wafermap.diesTable)return
|
|
13266
13238
|
const e=this.wafermap.diesTable.getChild("colIndex").toArray(),t=this.wafermap.diesTable.getChild("rowIndex").toArray(),n={x:e[0],y:t[0]},i={x:e[0],y:t[0]}
|
|
13267
13239
|
for(let o=0;o<e.length;o++)e[o]<n.x&&(n.x=e[o]),e[o]>i.x&&(i.x=e[o]),t[o]<n.y&&(n.y=t[o]),t[o]>i.y&&(i.y=t[o])
|
|
13268
|
-
this._gridMinX=n.x,this._gridMinY=n.y,this._gridMaxX=i.x,this._gridMaxY=i.y}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t){const n=
|
|
13269
|
-
return e===
|
|
13270
|
-
return e===
|
|
13240
|
+
this._gridMinX=n.x,this._gridMinY=n.y,this._gridMaxX=i.x,this._gridMaxY=i.y}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t){const n=dB()
|
|
13241
|
+
return e===uB||e===fB?n.domain([this._gridMinX,this._gridMaxX+1]).range([0,t]):n.domain([this._gridMinX-1,this._gridMaxX]).range([t,0])}createVerticalScale(e,t){const n=dB()
|
|
13242
|
+
return e===uB||e===pB?n.domain([this._gridMinY-1,this._gridMaxY]).range([t,0]):n.domain([this._gridMinY,this._gridMaxY+1]).range([0,t])}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}calculateColorScale(){if(this.wafermap.colorScaleMode===bB){const e=this.wafermap.colorScale.values.map((e=>+e)),t=dB().domain(e).range(this.wafermap.colorScale.colors)
|
|
13271
13243
|
let n=e[0],i=e[0]
|
|
13272
13244
|
e.forEach((e=>{e<n&&(n=e),e>i&&(i=e)}))
|
|
13273
|
-
return
|
|
13245
|
+
return FH(n,i,(i-n)/(e.length*this.colorScaleResolution)).concat(i).map((e=>({color:t(e),value:e})))}return this.wafermap.colorScale.colors.map(((e,t)=>({color:e,value:+this.wafermap.colorScale.values[t]}))).sort(((e,t)=>e.value-t.value))}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}}class Aq extends Vt{constructor(){super(...arguments),this.waferMapUpdateTracker=new SB(this.asRequiredFieldsWaferMap),this.originLocation=uB,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=mB,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=bB,this.computations=new Dq(this.asRequiredFieldsWaferMap),this.dataManager=new xB(this.asRequiredFieldsWaferMap),this.workerRenderer=new _q(this.asRequiredFieldsWaferMap),this.renderer=new CB(this.asRequiredFieldsWaferMap),this.renderQueued=!1,this.transform=lH,this.hoverTransform="",this.hoverOpacity=vB,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.hoverHandler=new class{constructor(e){this.wafermap=e,this.onMouseMove=e=>{if(this.wafermap.isExperimentalUpdate())return
|
|
13274
13246
|
const t={x:e.offsetX,y:e.offsetY}
|
|
13275
13247
|
if(!this.hoversOverDie(t))return void(this.wafermap.hoverDie=void 0)
|
|
13276
13248
|
const n=this.wafermap.transform.invert([t.x,t.y]),i=this.calculateDieCoordinates({x:n[0],y:n[1]})
|
|
13277
|
-
this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=e=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(e){if(!this.wafermap.isExperimentalUpdate()){const t=this.wafermap.originLocation,n=t===
|
|
13249
|
+
this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=e=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(e){if(!this.wafermap.isExperimentalUpdate()){const t=this.wafermap.originLocation,n=t===uB||t===fB?Math.floor:Math.ceil,i=t===uB||t===pB?Math.floor:Math.ceil
|
|
13278
13250
|
return{x:n(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
|
|
13279
13251
|
let n=0
|
|
13280
13252
|
for(const e of t)n+=e
|
|
13281
|
-
return n>0}}(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new
|
|
13253
|
+
return n>0}}(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new Eq(this.asRequiredFieldsWaferMap),this.zoomHandler=new Iq(this.asRequiredFieldsWaferMap),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new oq(this.asRequiredFieldsWaferMap)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.hoverHandler.connect(),this.experimentalHoverHandler.connect(),this.zoomHandler.connect(),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.hoverHandler.disconnect(),this.experimentalHoverHandler.disconnect(),this.zoomHandler.disconnect(),this.resizeObserver.unobserve(this)}async experimentalUpdate(){if(!this.validity.invalidDiesTableSchema){if(this.waferMapUpdateTracker.requiresEventsUpdate){this.waferMapUpdateTracker.requiresComponentResizeUpdate?this.computations.componentResizeUpdate():this.waferMapUpdateTracker.requiresInputDataUpdate?this.computations.inputDataUpdate():this.waferMapUpdateTracker.requiresColorAndTextUpdate&&this.computations.colorAndTextUpdate()
|
|
13282
13254
|
const e=this.createSnapshot()
|
|
13283
13255
|
this.waferMapUpdateTracker.requiresWorkerWaferSetup&&await this.workerRenderer.setupWafer(e),await this.workerRenderer.drawWafer(e)}this.workerRenderer.renderHover()}}update(){this.validate(),this.isExperimentalUpdate()?this.currentTask=this.experimentalUpdate():this.waferMapUpdateTracker.requiresEventsUpdate?this.waferMapUpdateTracker.requiresContainerDimensionsUpdate?(this.dataManager.updateContainerDimensions(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresScalesUpdate?(this.dataManager.updateScales(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate?(this.dataManager.updateLabelsFontSize(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.dataManager.updateDiesRenderInfo(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.renderer.drawWafer():this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}isExperimentalUpdate(){return void 0!==this.diesTable}createSnapshot(){const e={width:this.canvasWidth??0,height:this.canvasHeight??0},t={dieDimensions:this.computations.dieDimensions,margin:this.computations.margin,verticalCoefficient:this.computations.verticalCoefficient,horizontalCoefficient:this.computations.horizontalCoefficient,horizontalConstant:this.computations.horizontalConstant,verticalConstant:this.computations.verticalConstant,gridMinX:this.computations.gridMinX,gridMaxX:this.computations.gridMaxX,gridMinY:this.computations.gridMinY,gridMaxY:this.computations.gridMaxY,labelsFontSize:this.computations.labelsFontSize,colorScale:this.computations.colorScale,dieLabelsSuffix:this.dieLabelsSuffix,maxCharacters:this.maxCharacters},n=this.computations.dieDimensions,i=this.transform,o=this.dieLabelsHidden
|
|
13284
13256
|
if(void 0===this.diesTable)return{canvasDimensions:e,renderConfig:t,dieDimensions:n,transform:i,dieLabelsHidden:o,columnIndices:Int32Array.from([]),rowIndices:Int32Array.from([]),values:Float64Array.from([])}
|
|
13285
13257
|
return{canvasDimensions:e,renderConfig:t,columnIndices:this.diesTable.getChild("colIndex").toArray(),rowIndices:this.diesTable.getChild("rowIndex").toArray(),values:this.diesTable.getChild("value").toArray(),dieDimensions:n,transform:i,dieLabelsHidden:o}}validate(){this.waferMapValidator.validateGridDimensions(),this.waferMapValidator.validateDiesTableSchema()}createResizeObserver(){return new ResizeObserver((e=>{const t=e[0]
|
|
13286
13258
|
if(void 0===t)return
|
|
13287
13259
|
const{height:n,width:i}=t.contentRect
|
|
13288
|
-
this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}highlightedTagsChanged(){this.waferMapUpdateTracker.track("highlightedTags"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}diesTableChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}get asRequiredFieldsWaferMap(){return this}}e([le({attribute:"origin-location"})],
|
|
13289
|
-
const Aq
|
|
13290
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
13291
|
-
const
|
|
13292
|
-
${
|
|
13260
|
+
this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}highlightedTagsChanged(){this.waferMapUpdateTracker.track("highlightedTags"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}diesTableChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}get asRequiredFieldsWaferMap(){return this}}e([le({attribute:"origin-location"})],Aq.prototype,"originLocation",void 0),e([le({attribute:"grid-min-x",converter:re})],Aq.prototype,"gridMinX",void 0),e([le({attribute:"grid-max-x",converter:re})],Aq.prototype,"gridMaxX",void 0),e([le({attribute:"grid-min-y",converter:re})],Aq.prototype,"gridMinY",void 0),e([le({attribute:"grid-max-y",converter:re})],Aq.prototype,"gridMaxY",void 0),e([le],Aq.prototype,"orientation",void 0),e([le({attribute:"max-characters",converter:re})],Aq.prototype,"maxCharacters",void 0),e([le({attribute:"die-labels-hidden",mode:"boolean"})],Aq.prototype,"dieLabelsHidden",void 0),e([le({attribute:"die-labels-suffix"})],Aq.prototype,"dieLabelsSuffix",void 0),e([le({attribute:"color-scale-mode"})],Aq.prototype,"colorScaleMode",void 0),e([g],Aq.prototype,"renderer",void 0),e([g],Aq.prototype,"canvasWidth",void 0),e([g],Aq.prototype,"canvasHeight",void 0),e([g],Aq.prototype,"transform",void 0),e([g],Aq.prototype,"hoverTransform",void 0),e([g],Aq.prototype,"hoverOpacity",void 0),e([g],Aq.prototype,"hoverWidth",void 0),e([g],Aq.prototype,"hoverHeight",void 0),e([g],Aq.prototype,"hoverDie",void 0),e([g],Aq.prototype,"highlightedTags",void 0),e([g],Aq.prototype,"dies",void 0),e([g],Aq.prototype,"diesTable",void 0),e([g],Aq.prototype,"colorScale",void 0)
|
|
13261
|
+
const Tq=Aq.compose({baseName:"wafer-map",template:bH,styles:yH})
|
|
13262
|
+
yi.getOrCreate().withPrefix("nimble").register(Tq())
|
|
13263
|
+
const Oq=xe`
|
|
13264
|
+
${Rq="inline-block",`${To(Rq)}:host{box-sizing:border-box;}*{box-sizing:border-box;}:host::before,:host::after,::before,::after{box-sizing:border-box;}`}
|
|
13293
13265
|
|
|
13294
13266
|
:host {
|
|
13295
13267
|
border: 2px solid ${ja};
|
|
@@ -13312,8 +13284,8 @@ const Tq=xe`
|
|
|
13312
13284
|
color: ${Cc};
|
|
13313
13285
|
}
|
|
13314
13286
|
`
|
|
13315
|
-
var
|
|
13316
|
-
const
|
|
13317
|
-
const
|
|
13318
|
-
yi.getOrCreate().withPrefix("spright").register(
|
|
13287
|
+
var Rq
|
|
13288
|
+
const Fq=G`<slot></slot>`
|
|
13289
|
+
const Nq=class extends Vt{}.compose({baseName:"rectangle",template:Fq,styles:Oq})
|
|
13290
|
+
yi.getOrCreate().withPrefix("spright").register(Nq())}()
|
|
13319
13291
|
//# sourceMappingURL=all-components-bundle.min.js.map
|